@arquimedes.co/eureka-forms 3.0.44-test → 3.0.46-mui9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/@Types/FormStep.d.ts +4 -2
  2. package/dist/@Types/GenericFormSteps.d.ts +1 -1
  3. package/dist/App/AppHooks.js +13 -13
  4. package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +7 -5
  5. package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.js +5 -3
  6. package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.js +7 -5
  7. package/dist/FormSteps/@StoryDecorators/FormStepDecorator.d.ts +9 -0
  8. package/dist/FormSteps/@StoryDecorators/FormStepDecorator.js +86 -0
  9. package/dist/FormSteps/AYFStepMapper.js +2 -2
  10. package/dist/FormSteps/DatePickerRangeStep/MaterialDatePickerRangeStep/MaterialDatePickerRangeStep.js +3 -3
  11. package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.js +7 -5
  12. package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +1 -1
  13. package/dist/FormSteps/StepFunctions.js +1 -1
  14. package/dist/Shared/ErkCheckbox/ErkCheckBox.d.ts +1 -0
  15. package/dist/Shared/ErkCheckbox/ErkCheckBox.js +2 -2
  16. package/dist/Shared/ErkDatePicker/ErkDatePicker.js +41 -35
  17. package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.d.ts +4 -1
  18. package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.js +38 -25
  19. package/dist/Shared/ErkMenuItem.d.ts +1 -1
  20. package/dist/Shared/ErkSelect/ErkSelect.d.ts +2 -2
  21. package/dist/Shared/ErkTextField/ErkTextField.d.ts +17 -2
  22. package/dist/Shared/ErkTextField/ErkTextField.js +3 -3
  23. package/dist/Shared/ErkTimePicker/ErkTimePicker.js +1 -1
  24. package/dist/Shared/Rating/Ratings/ScaleRating.js +1 -1
  25. package/dist/States/GlobalSlice.d.ts +8 -26
  26. package/dist/States/GlobalSlice.js +3 -2
  27. package/dist/States/SiteSlice.d.ts +8 -33
  28. package/dist/States/SiteSlice.js +11 -9
  29. package/dist/States/WidthStatsSlice.d.ts +5 -1
  30. package/dist/Utils/DraftFunctions.js +1 -1
  31. package/dist/index.css +7 -0
  32. package/dist/main.d.ts +1 -1
  33. package/dist/main.js +1 -1
  34. package/package.json +35 -34
  35. package/dist/Shared/ErkButton/ErkButton.stories.d.ts +0 -16
  36. package/dist/Shared/ErkButton/ErkButton.stories.js +0 -28
  37. package/dist/Shared/ErkCheckbox/ErkCheckBox.stories.d.ts +0 -13
  38. package/dist/Shared/ErkCheckbox/ErkCheckBox.stories.js +0 -34
  39. package/dist/Shared/ErkDatePicker/ErkDatePicker.stories.d.ts +0 -23
  40. package/dist/Shared/ErkDatePicker/ErkDatePicker.stories.js +0 -98
  41. package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.stories.d.ts +0 -36
  42. package/dist/Shared/ErkDateRangePicker/ErkDateRangePicker.stories.js +0 -274
  43. package/dist/Shared/ErkSelect/ErkSelect.stories.d.ts +0 -21
  44. package/dist/Shared/ErkSelect/ErkSelect.stories.js +0 -87
  45. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.stories.d.ts +0 -26
  46. package/dist/Shared/ErkSmartSelect/ErkSmartSelect.stories.js +0 -159
  47. package/dist/Shared/ErkTextField/ErkTextField.stories.d.ts +0 -24
  48. package/dist/Shared/ErkTextField/ErkTextField.stories.js +0 -99
  49. package/dist/Shared/Navbar/Navbar.stories.d.ts +0 -13
  50. package/dist/Shared/Navbar/Navbar.stories.js +0 -13
  51. package/dist/Shared/Rating/Rating.stories.d.ts +0 -15
  52. package/dist/Shared/Rating/Rating.stories.js +0 -47
@@ -1,24 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-vite';
2
- import ErkTextField from './ErkTextField';
3
- declare const meta: {
4
- component: typeof ErkTextField;
5
- tags: string[];
6
- args: {
7
- disabled: false;
8
- multiline: false;
9
- };
10
- };
11
- export default meta;
12
- type Story = StoryObj<typeof meta>;
13
- export declare const Empty: Story;
14
- export declare const EmptyLabel: Story;
15
- export declare const Default: Story;
16
- export declare const Focused: Story;
17
- export declare const FocusedNoLabel: Story;
18
- export declare const WithValue: Story;
19
- export declare const Multiline: Story;
20
- export declare const WithHelperText: Story;
21
- export declare const WithValueandLabel: Story;
22
- export declare const WithMaxLength: Story;
23
- export declare const Full: Story;
24
- export declare const Error: Story;
@@ -1,99 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import ErkTextField from './ErkTextField';
3
- import { useArgs } from 'storybook/internal/preview-api';
4
- const meta = {
5
- component: ErkTextField,
6
- tags: ['autodocs'],
7
- args: {
8
- disabled: false,
9
- multiline: false,
10
- },
11
- };
12
- export default meta;
13
- export const Empty = {
14
- args: {},
15
- };
16
- export const EmptyLabel = {
17
- args: {
18
- label: 'Label',
19
- },
20
- };
21
- export const Default = {
22
- args: {
23
- label: 'Label',
24
- },
25
- play: async ({ canvas, userEvent }) => {
26
- const emailInput = canvas.getByRole('textbox');
27
- await userEvent.click(emailInput);
28
- await userEvent.type(emailInput, 'example-email@email.com', { initialSelectionStart: 100 });
29
- },
30
- render: function Component(args) {
31
- const [, setArgs] = useArgs();
32
- const onValueChange = (value) => {
33
- args.onChange?.(value);
34
- setArgs({ value });
35
- };
36
- return _jsx(ErkTextField, { ...args, ref: undefined, onChange: onValueChange });
37
- },
38
- };
39
- export const Focused = {
40
- args: {
41
- label: 'Label',
42
- },
43
- play: async ({ canvas, userEvent }) => {
44
- const emailInput = canvas.getByRole('textbox');
45
- await userEvent.click(emailInput);
46
- },
47
- };
48
- export const FocusedNoLabel = {
49
- args: {},
50
- play: async ({ canvas, userEvent }) => {
51
- const emailInput = canvas.getByRole('textbox');
52
- await userEvent.click(emailInput);
53
- },
54
- };
55
- export const WithValue = {
56
- args: {
57
- value: 'Textinput Value',
58
- },
59
- };
60
- export const Multiline = {
61
- args: {
62
- value: 'TextArea Value',
63
- multiline: true,
64
- minRows: 4,
65
- },
66
- };
67
- export const WithHelperText = {
68
- args: {
69
- helperText: 'Helper text',
70
- },
71
- };
72
- export const WithValueandLabel = {
73
- args: {
74
- label: 'Label',
75
- value: 'Textinput Value',
76
- },
77
- };
78
- export const WithMaxLength = {
79
- args: {
80
- value: 'Value',
81
- maxLength: 10,
82
- },
83
- };
84
- export const Full = {
85
- args: {
86
- label: 'Label',
87
- value: 'Value',
88
- helperText: 'Helper text',
89
- maxLength: 10,
90
- },
91
- };
92
- export const Error = {
93
- args: {
94
- label: 'Label',
95
- value: 'Value',
96
- helperText: 'Helper text',
97
- error: true,
98
- },
99
- };
@@ -1,13 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-vite';
2
- import Navbar from './Navbar';
3
- declare const meta: {
4
- component: typeof Navbar;
5
- tags: string[];
6
- args: {
7
- logo: string;
8
- color: string;
9
- };
10
- };
11
- export default meta;
12
- type Story = StoryObj<typeof meta>;
13
- export declare const Default: Story;
@@ -1,13 +0,0 @@
1
- import Navbar from './Navbar';
2
- const meta = {
3
- component: Navbar,
4
- tags: ['autodocs'],
5
- args: {
6
- logo: 'https://content.capta.co/Capta/CaptaWhite.svg',
7
- color: '#3d5a7f',
8
- },
9
- };
10
- export default meta;
11
- export const Default = {
12
- args: {},
13
- };
@@ -1,15 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-vite';
2
- import Rating from './Rating';
3
- declare const meta: {
4
- component: typeof Rating;
5
- tags: string[];
6
- args: {};
7
- };
8
- export default meta;
9
- type Story = StoryObj<typeof meta>;
10
- export declare const ScaleRating: Story;
11
- export declare const ScaleRatingWidthValue: Story;
12
- export declare const LikeRating: Story;
13
- export declare const LikeRatingWithValue: Story;
14
- export declare const SatisfactionRating: Story;
15
- export declare const SatisfactionRatingWidthValue: Story;
@@ -1,47 +0,0 @@
1
- import Rating from './Rating';
2
- import { RatingTypes } from '../../constants/FormStepTypes';
3
- const meta = {
4
- component: Rating,
5
- tags: ['autodocs'],
6
- args: {},
7
- };
8
- export default meta;
9
- export const ScaleRating = {
10
- args: {
11
- type: RatingTypes.SCALE,
12
- onChange: () => { },
13
- },
14
- };
15
- export const ScaleRatingWidthValue = {
16
- args: {
17
- type: RatingTypes.SCALE,
18
- onChange: () => { },
19
- value: 4,
20
- },
21
- };
22
- export const LikeRating = {
23
- args: {
24
- type: RatingTypes.LIKE,
25
- onChange: () => { },
26
- },
27
- };
28
- export const LikeRatingWithValue = {
29
- args: {
30
- type: RatingTypes.LIKE,
31
- onChange: () => { },
32
- value: 1,
33
- },
34
- };
35
- export const SatisfactionRating = {
36
- args: {
37
- type: RatingTypes.SATISFACTION,
38
- onChange: () => { },
39
- },
40
- };
41
- export const SatisfactionRatingWidthValue = {
42
- args: {
43
- type: RatingTypes.SATISFACTION,
44
- onChange: () => { },
45
- value: 3,
46
- },
47
- };