commit f214fa8477bc52e602bf2f329817390e7df03a24 parent 332cdc06e587e2317ec17130ee1ce967aac35870 Author: Sebastian <sebasjm@gmail.com> Date: Sun, 23 Feb 2025 15:15:41 -0300 vqf from stories Diffstat:
12 files changed, 341 insertions(+), 2 deletions(-)
diff --git a/packages/web-util/src/forms/gana/GLS_Onboarding.stories.tsx b/packages/web-util/src/forms/gana/GLS_Onboarding.stories.tsx @@ -34,7 +34,7 @@ export namespace Simplest { } } -setupI18n("es", {}); +setupI18n("en", {}); type TargetObject = {}; const initial: TargetObject = {}; diff --git a/packages/web-util/src/forms/gana/VQF_902_1.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_1.stories.tsx @@ -0,0 +1,37 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_1 } from "./VQF_902_1.js"; +export default { + title: "VQF_902_1e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_1(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_11.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_11.stories.tsx @@ -0,0 +1,37 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_11 } from "./VQF_902_11.js"; +export default { + title: "VQF 902 11e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_11(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_12.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_12.stories.tsx @@ -0,0 +1,37 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_12 } from "./VQF_902_12.js"; +export default { + title: "VQF 902 12e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_12(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_13.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_13.stories.tsx @@ -0,0 +1,36 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_13 } from "./VQF_902_13.js"; +export default { + title: "VQF 902 13e", +}; +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_13(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_14.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_14.stories.tsx @@ -0,0 +1,36 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_14 } from "./VQF_902_14.js"; +export default { + title: "VQF 902 14e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_14(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_15.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_15.stories.tsx @@ -0,0 +1,36 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_15 } from "./VQF_902_15.js"; +export default { + title: "VQF 902 15e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_15(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_4.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_4.stories.tsx @@ -0,0 +1,37 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_4 } from "./VQF_902_4.js"; +export default { + title: "VQF 902 4e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial: {}, + design: VQF_902_4(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_5.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_5.stories.tsx @@ -0,0 +1,36 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_5 } from "./VQF_902_5.js"; +export default { + title: "VQF 902 5e", +}; +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial: {}, + design: VQF_902_5(i18n), +}); diff --git a/packages/web-util/src/forms/gana/VQF_902_9.stories.tsx b/packages/web-util/src/forms/gana/VQF_902_9.stories.tsx @@ -0,0 +1,37 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { i18n, setupI18n } from "@gnu-taler/taler-util"; +import * as tests from "../../tests/hook.js"; +import { DefaultForm as TestedComponent } from "../forms-ui.js"; +import { VQF_902_9 } from "./VQF_902_9.js"; +export default { + title: "VQF 902 9e", +}; + +setupI18n("en", {}); +type TargetObject = {}; +const initial: TargetObject = {}; + +export const EmptyForm = tests.createExample(TestedComponent, { + initial, + design: VQF_902_9(i18n), +}); diff --git a/packages/web-util/src/forms/gana/index.stories.ts b/packages/web-util/src/forms/gana/index.stories.ts @@ -0,0 +1,10 @@ +export * as a1 from "./GLS_Onboarding.stories.js"; +export * as a2 from "./VQF_902_1.stories.js"; +export * as a3 from "./VQF_902_4.stories.js"; +export * as a4 from "./VQF_902_5.stories.js"; +export * as a5 from "./VQF_902_9.stories.js"; +export * as a6 from "./VQF_902_11.stories.js"; +export * as a7 from "./VQF_902_12.stories.js"; +export * as a8 from "./VQF_902_13.stories.js"; +export * as a9 from "./VQF_902_14.stories.js"; +export * as a10 from "./VQF_902_15.stories.js"; diff --git a/packages/web-util/src/forms/index.stories.ts b/packages/web-util/src/forms/index.stories.ts @@ -13,5 +13,5 @@ export * as a13 from "./fields/InputToggle.stories.js"; export * as a14 from "./fields/InputSecret.stories.js"; export * as a15 from "./fields/InputDuration.stories.js"; export * as a16 from "./fields/InputDurationText.stories.js"; -export * as a17 from "./gana/GLS_Onboarding.stories.js"; export * as a18 from "./fields/InputIsoTime.stories.js"; +export * as a17 from "./gana/index.stories.js";