@lumx/core 4.14.0-next.0 → 4.14.0-next.2

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 (107) hide show
  1. package/js/components/AlertDialog/Stories.d.ts +115 -0
  2. package/js/components/AlertDialog/index.d.ts +91 -0
  3. package/js/components/Avatar/Stories.d.ts +52 -0
  4. package/js/components/Avatar/index.d.ts +50 -0
  5. package/js/components/Badge/BadgeWrapper.d.ts +13 -0
  6. package/js/components/Badge/BadgeWrapperStories.d.ts +29 -0
  7. package/js/components/Badge/Stories.d.ts +46 -0
  8. package/js/components/Badge/index.d.ts +37 -0
  9. package/js/components/Button/ButtonGroup.d.ts +36 -0
  10. package/js/components/Button/ButtonGroupStories.d.ts +33 -0
  11. package/js/components/Button/IconButtonStories.d.ts +210 -0
  12. package/js/components/Button/Stories.d.ts +302 -0
  13. package/js/components/Checkbox/Stories.d.ts +89 -0
  14. package/js/components/Chip/ChipGroupStories.d.ts +17 -0
  15. package/js/components/Chip/SelectionChipGroupStories.d.ts +54 -0
  16. package/js/components/Chip/Stories.d.ts +127 -0
  17. package/js/components/Combobox/ComboboxOptionTests.d.ts +24 -0
  18. package/js/components/Combobox/Stories.d.ts +167 -0
  19. package/js/components/Combobox/TestStories.d.ts +143 -0
  20. package/js/components/Combobox/Tests.d.ts +168 -0
  21. package/js/components/Dialog/Stories.d.ts +97 -0
  22. package/js/components/Dialog/index.d.ts +99 -0
  23. package/js/components/Divider/Stories.d.ts +21 -0
  24. package/js/components/DragHandle/Stories.d.ts +18 -0
  25. package/js/components/ExpansionPanel/Stories.d.ts +67 -0
  26. package/js/components/Flag/Stories.d.ts +120 -0
  27. package/js/components/FlexBox/Stories.d.ts +116 -0
  28. package/js/components/FlexBox/constants.d.ts +3 -3
  29. package/js/components/GenericBlock/Stories.d.ts +74 -0
  30. package/js/components/GenericBlock/constants.d.ts +1 -1
  31. package/js/components/GenericBlock/index.d.ts +85 -0
  32. package/js/components/GridColumn/GridColumnStories.d.ts +45 -0
  33. package/js/components/GridColumn/index.d.ts +2 -0
  34. package/js/components/Heading/Stories.d.ts +90 -0
  35. package/js/components/Icon/Stories.d.ts +156 -0
  36. package/js/components/ImageBlock/Stories.d.ts +187 -0
  37. package/js/components/InlineList/Stories.d.ts +64 -0
  38. package/js/components/InlineList/index.d.ts +53 -0
  39. package/js/components/InputHelper/Stories.d.ts +35 -0
  40. package/js/components/InputLabel/Stories.d.ts +34 -0
  41. package/js/components/Lightbox/Stories.d.ts +40 -0
  42. package/js/components/Lightbox/index.d.ts +68 -0
  43. package/js/components/Link/Stories.d.ts +282 -0
  44. package/js/components/Link/index.d.ts +47 -0
  45. package/js/components/LinkPreview/Stories.d.ts +61 -0
  46. package/js/components/LinkPreview/index.d.ts +53 -0
  47. package/js/components/List/ListDivider.d.ts +33 -0
  48. package/js/components/List/ListDividerStories.d.ts +17 -0
  49. package/js/components/List/ListItemStories.d.ts +53 -0
  50. package/js/components/List/ListSection.d.ts +45 -0
  51. package/js/components/List/ListSectionStories.d.ts +125 -0
  52. package/js/components/List/ListStories.d.ts +34 -0
  53. package/js/components/Message/Stories.d.ts +119 -0
  54. package/js/components/Mosaic/Stories.d.ts +102 -0
  55. package/js/components/Mosaic/index.d.ts +40 -0
  56. package/js/components/Popover/Stories.d.ts +139 -0
  57. package/js/components/Popover/index.d.ts +119 -0
  58. package/js/components/PopoverDialog/Stories.d.ts +44 -0
  59. package/js/components/PopoverDialog/index.d.ts +22 -0
  60. package/js/components/RadioButton/Stories.d.ts +78 -0
  61. package/js/components/RadioGroup/index.d.ts +34 -0
  62. package/js/components/SelectButton/Stories.d.ts +135 -0
  63. package/js/components/SelectButton/TestStories.d.ts +37 -0
  64. package/js/components/SelectButton/Tests.d.ts +34 -0
  65. package/js/components/SelectButton/index.d.ts +85 -0
  66. package/js/components/SelectTextField/Stories.d.ts +192 -0
  67. package/js/components/SelectTextField/TestStories.d.ts +39 -0
  68. package/js/components/SelectTextField/Tests.d.ts +38 -0
  69. package/js/components/SelectTextField/index.d.ts +87 -0
  70. package/js/components/Skeleton/SkeletonCircleStories.d.ts +43 -0
  71. package/js/components/Skeleton/SkeletonRectangleStories.d.ts +83 -0
  72. package/js/components/Skeleton/SkeletonTypographyStories.d.ts +53 -0
  73. package/js/components/Switch/Stories.d.ts +94 -0
  74. package/js/components/Table/Stories.d.ts +30 -0
  75. package/js/components/Table/TableBody.d.ts +25 -0
  76. package/js/components/Table/TableCellStories.d.ts +47 -0
  77. package/js/components/Table/TableHeader.d.ts +29 -0
  78. package/js/components/Table/TableRow.d.ts +35 -0
  79. package/js/components/Table/TableRowStories.d.ts +23 -0
  80. package/js/components/Table/index.d.ts +27 -0
  81. package/js/components/Tabs/Tab.d.ts +70 -0
  82. package/js/components/Tabs/TabPanel.d.ts +43 -0
  83. package/js/components/Text/Stories.d.ts +164 -0
  84. package/js/components/TextField/RawInputText.d.ts +22 -0
  85. package/js/components/TextField/RawInputTextStories.d.ts +16 -0
  86. package/js/components/TextField/RawInputTextareaStories.d.ts +21 -0
  87. package/js/components/TextField/Stories.d.ts +101 -0
  88. package/js/components/TextField/TextField.d.ts +84 -0
  89. package/js/components/Thumbnail/Stories.d.ts +178 -0
  90. package/js/components/Toolbar/Stories.d.ts +29 -0
  91. package/js/components/Toolbar/index.d.ts +33 -0
  92. package/js/components/Tooltip/Stories.d.ts +61 -0
  93. package/js/components/Tooltip/TestStories.d.ts +72 -0
  94. package/js/components/Tooltip/index.d.ts +65 -0
  95. package/js/components/Uploader/Stories.d.ts +116 -0
  96. package/js/components/Uploader/index.d.ts +79 -0
  97. package/js/components/UserBlock/Stories.d.ts +153 -0
  98. package/js/components/UserBlock/index.d.ts +145 -0
  99. package/js/utils/ClickAway/TestStories.d.ts +36 -0
  100. package/js/utils/InfiniteScroll/TestStories.d.ts +50 -0
  101. package/js/utils/InfiniteScroll/index.d.ts +21 -0
  102. package/js/utils/Portal/Stories.d.ts +29 -0
  103. package/js/utils/action-area/Stories.d.ts +38 -0
  104. package/js/utils/select/renderSelectOptions.d.ts +7 -0
  105. package/package.json +2 -2
  106. package/stories/utils/CombinationsTable.d.ts +26 -0
  107. package/stories/utils/ThemingVariablesTable.d.ts +29 -0
@@ -0,0 +1,192 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare const FRUITS: {
3
+ id: string;
4
+ name: string;
5
+ icon: string;
6
+ category: string;
7
+ categoryIcon: string;
8
+ description: string;
9
+ }[];
10
+ export type Fruit = (typeof FRUITS)[number];
11
+ /**
12
+ * Setup SelectTextField stories for a specific framework (React or Vue).
13
+ */
14
+ export declare function setup({ components: { SelectTextField }, decorators: { withValueOnChange }, }: SetupStoriesOptions<{
15
+ components: {
16
+ SelectTextField: any;
17
+ };
18
+ decorators: 'withValueOnChange';
19
+ }>): {
20
+ meta: {
21
+ component: any;
22
+ play({ canvas }: any): Promise<void>;
23
+ };
24
+ Default: {
25
+ args: {
26
+ value: undefined;
27
+ };
28
+ decorators: ((story: any, context: any) => any)[];
29
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
30
+ };
31
+ WithSelectedValue: {
32
+ args: {
33
+ value: {
34
+ id: string;
35
+ name: string;
36
+ icon: string;
37
+ category: string;
38
+ categoryIcon: string;
39
+ description: string;
40
+ };
41
+ };
42
+ decorators: ((story: any, context: any) => any)[];
43
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
44
+ };
45
+ NoClearButton: {
46
+ args: {
47
+ value: {
48
+ id: string;
49
+ name: string;
50
+ icon: string;
51
+ category: string;
52
+ categoryIcon: string;
53
+ description: string;
54
+ };
55
+ };
56
+ decorators: ((story: any, context: any) => any)[];
57
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
58
+ };
59
+ WithDescriptions: {
60
+ args: {
61
+ value: undefined;
62
+ };
63
+ decorators: ((story: any, context: any) => any)[];
64
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
65
+ };
66
+ WithSections: {
67
+ args: {
68
+ value: undefined;
69
+ };
70
+ decorators: ((story: any, context: any) => any)[];
71
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
72
+ };
73
+ WithIcon: {
74
+ args: {
75
+ value: undefined;
76
+ };
77
+ decorators: ((story: any, context: any) => any)[];
78
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
79
+ };
80
+ Disabled: {
81
+ args: {
82
+ value: {
83
+ id: string;
84
+ name: string;
85
+ icon: string;
86
+ category: string;
87
+ categoryIcon: string;
88
+ description: string;
89
+ };
90
+ };
91
+ decorators: ((story: any, context: any) => any)[];
92
+ play: any;
93
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
94
+ };
95
+ WithError: {
96
+ args: {
97
+ value: undefined;
98
+ };
99
+ decorators: ((story: any, context: any) => any)[];
100
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
101
+ };
102
+ WithHelper: {
103
+ args: {
104
+ value: undefined;
105
+ };
106
+ decorators: ((story: any, context: any) => any)[];
107
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
108
+ };
109
+ MultipleSelection: {
110
+ args: {
111
+ value: never[];
112
+ };
113
+ decorators: ((story: any, context: any) => any)[];
114
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
115
+ };
116
+ MultipleWithPreselected: {
117
+ args: {
118
+ value: {
119
+ id: string;
120
+ name: string;
121
+ icon: string;
122
+ category: string;
123
+ categoryIcon: string;
124
+ description: string;
125
+ }[];
126
+ };
127
+ decorators: ((story: any, context: any) => any)[];
128
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
129
+ };
130
+ MultipleWithManyChips: {
131
+ args: {
132
+ value: ({
133
+ id: string;
134
+ name: string;
135
+ icon: string;
136
+ category: string;
137
+ categoryIcon: string;
138
+ description: string;
139
+ } | {
140
+ id: string;
141
+ name: string;
142
+ category: string;
143
+ })[];
144
+ };
145
+ decorators: ((story: any, context: any) => any)[];
146
+ play: any;
147
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
148
+ };
149
+ MultipleDisabled: {
150
+ args: {
151
+ value: {
152
+ id: string;
153
+ name: string;
154
+ icon: string;
155
+ category: string;
156
+ categoryIcon: string;
157
+ description: string;
158
+ }[];
159
+ };
160
+ decorators: ((story: any, context: any) => any)[];
161
+ play: any;
162
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
163
+ };
164
+ WithNbOptionMessage: {
165
+ args: {
166
+ value: undefined;
167
+ };
168
+ decorators: ((story: any, context: any) => any)[];
169
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
170
+ };
171
+ Loading: {
172
+ args: {
173
+ value: undefined;
174
+ };
175
+ decorators: ((story: any, context: any) => any)[];
176
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
177
+ };
178
+ LoadingMore: {
179
+ args: {
180
+ value: undefined;
181
+ };
182
+ decorators: ((story: any, context: any) => any)[];
183
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
184
+ };
185
+ ErrorState: {
186
+ args: {
187
+ value: undefined;
188
+ };
189
+ decorators: ((story: any, context: any) => any)[];
190
+ render: ({ value, onChange }: any) => import("react").JSX.Element;
191
+ };
192
+ };
@@ -0,0 +1,39 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup test stories
4
+ */
5
+ export declare function setup({ components: { SelectTextField }, }: SetupStoriesOptions<{
6
+ components: {
7
+ SelectTextField: any;
8
+ Combobox?: any;
9
+ };
10
+ }>): {
11
+ meta: {
12
+ component: any;
13
+ tags: string[];
14
+ parameters: {
15
+ chromatic: {
16
+ disable: boolean;
17
+ };
18
+ };
19
+ };
20
+ ClickOutsideCloses: {
21
+ render: (args: any) => import("react").JSX.Element;
22
+ play({ canvas }: any): Promise<void>;
23
+ };
24
+ BlurResetsToSelectedValue: {
25
+ render: (args: any) => import("react").JSX.Element;
26
+ play({ canvas }: any): Promise<void>;
27
+ };
28
+ BlurResetsToEmpty: {
29
+ render: (args: any) => import("react").JSX.Element;
30
+ play({ canvas }: any): Promise<void>;
31
+ };
32
+ MultiBlurResetsSearch: {
33
+ render: (args: any) => import("react").JSX.Element;
34
+ play({ canvas }: any): Promise<void>;
35
+ };
36
+ WithInfiniteScroll: {
37
+ play({ canvas }: any): Promise<void>;
38
+ };
39
+ };
@@ -0,0 +1,38 @@
1
+ export declare const TRANSLATIONS: {
2
+ clearLabel: string;
3
+ showSuggestionsLabel: string;
4
+ };
5
+ export declare const MULTI_TRANSLATIONS: {
6
+ chipGroupLabel: string;
7
+ chipRemoveLabel: string;
8
+ clearLabel: string;
9
+ showSuggestionsLabel: string;
10
+ };
11
+ type RenderResult = {
12
+ unmount: () => void;
13
+ container: HTMLElement;
14
+ };
15
+ /**
16
+ * Options to set up the SelectTextField test suite.
17
+ * Injected by the framework-specific test file (React or Vue).
18
+ */
19
+ export interface SelectTextFieldTestSetup {
20
+ components: {
21
+ SelectTextField: any;
22
+ Combobox: any;
23
+ };
24
+ /**
25
+ * Render a SelectTextField template with controlled state management.
26
+ *
27
+ * @param template JSX render function receiving `{ value, onChange, ... }`.
28
+ * @param initialArgs Initial props (value, spies, etc.).
29
+ */
30
+ renderWithState: (template: (props: any) => any, initialArgs?: Record<string, any>) => RenderResult;
31
+ }
32
+ export declare function createTemplates(SelectTextField: any): {
33
+ defaultTemplate: (props: any) => import("react").JSX.Element;
34
+ searchTemplate: (props: any) => import("react").JSX.Element;
35
+ multiTemplate: (props: any) => import("react").JSX.Element;
36
+ };
37
+ export default function selectTextFieldTests({ components, renderWithState }: SelectTextFieldTestSetup): void;
38
+ export {};
@@ -0,0 +1,87 @@
1
+ import type { JSXElement, LumxClassName } from '../../types';
2
+ import { BaseSelectComponents, BaseSelectProps, SelectTextFieldStatus } from '../../utils/select/types';
3
+ /**
4
+ * Defines the props for the core SelectTextField template.
5
+ */
6
+ export interface SelectTextFieldProps<O = any> extends BaseSelectProps<O> {
7
+ /** Selected option (single) or options (multiple) — for marking options as selected. */
8
+ selected?: O | O[];
9
+ /** Field label (required). Also used as aria-label for the listbox. */
10
+ label: string;
11
+ /** Whether the listbox supports multiple selection. */
12
+ isMultiselectable?: boolean;
13
+ /** Props forwarded to Combobox.Input. */
14
+ inputProps?: Record<string, any>;
15
+ /** Props forwarded to Combobox.Popover. */
16
+ popoverProps?: Record<string, any>;
17
+ /** Props forwarded to Combobox.List (e.g. ref). */
18
+ listProps?: Record<string, any>;
19
+ /**
20
+ * Status of the dropdown list.
21
+ * - `'idle'` — Default state, no loading indicators.
22
+ * - `'loading'` — Full loading: shows skeleton placeholders, hides real options.
23
+ * - `'loadingMore'` — Paginated loading: appends a skeleton after existing options.
24
+ * - `'error'` — Error state: shows an error message in the dropdown.
25
+ * @default 'idle'
26
+ */
27
+ listStatus?: SelectTextFieldStatus;
28
+ /** Screen reader loading announcement (e.g. "Loading…"). */
29
+ loadingMessage?: string;
30
+ /**
31
+ * Message to display when the list has no visible options.
32
+ * Can be a plain string or a function receiving the current input value (for dynamic messages).
33
+ * When omitted, the empty state is not shown.
34
+ */
35
+ emptyMessage?: string | ((inputValue: string) => string);
36
+ /**
37
+ * Message callback to display the number of available options.
38
+ * Called with the current visible option count and should return a human-readable string.
39
+ * Displayed when the combobox is open, not empty, not loading, and not in error.
40
+ * When omitted, no option count message is shown.
41
+ */
42
+ nbOptionMessage?: (optionsLength: number) => string;
43
+ /** Error title displayed in the dropdown (e.g. "Failed to load"). */
44
+ errorMessage?: string;
45
+ /** Secondary error message (e.g. "Please try again"). */
46
+ errorTryReloadMessage?: string;
47
+ /** Callback fired when the dropdown open state changes. */
48
+ onOpen?: (isOpen: boolean) => void;
49
+ /** Chips element rendered inside the input (multiple selection). */
50
+ chips?: JSXElement;
51
+ /** Content to render before the options list. */
52
+ beforeOptions?: JSXElement;
53
+ /** Content to render after options. */
54
+ afterOptions?: JSXElement;
55
+ /**
56
+ * Callback fired to load more items (infinite scroll).
57
+ * When provided together with an injected `InfiniteScroll` component, an invisible
58
+ * sentinel element is rendered after the options to trigger loading via IntersectionObserver.
59
+ */
60
+ onLoadMore?: () => void;
61
+ /** IntersectionObserver options forwarded to the InfiniteScroll sentinel. */
62
+ infiniteScrollOptions?: IntersectionObserverInit;
63
+ }
64
+ /**
65
+ * Component display name.
66
+ */
67
+ export declare const COMPONENT_NAME = "SelectTextField";
68
+ /**
69
+ * Component default class name.
70
+ */
71
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
72
+ /**
73
+ * SelectTextField core template.
74
+ * Renders a Combobox with a text input trigger and a dropdown list of options.
75
+ * Supports search/filter, single selection, and multiple selection with chips.
76
+ *
77
+ * Framework-specific components are passed as a second argument by the React/Vue wrappers.
78
+ *
79
+ * @param props Component props.
80
+ * @param components Injected framework-specific components.
81
+ * @return JSX element.
82
+ */
83
+ export declare const SelectTextField: {
84
+ (props: SelectTextFieldProps, { Combobox, InfiniteScroll }: BaseSelectComponents): import("react").JSX.Element;
85
+ displayName: string;
86
+ className: "lumx-select-text-field";
87
+ };
@@ -0,0 +1,43 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ import type { SkeletonCircleProps } from './SkeletonCircle';
3
+ /**
4
+ * Setup SkeletonCircle stories for a specific framework (React or Vue).
5
+ */
6
+ export declare function setup({ component: SkeletonCircle, decorators: { withCombinations }, }: SetupStoriesOptions<{
7
+ decorators: 'withCombinations';
8
+ }>): {
9
+ meta: {
10
+ component: any;
11
+ render: (args: any) => import("react").JSX.Element;
12
+ argTypes: {
13
+ size: {
14
+ control: string;
15
+ options: import("../../constants").GlobalSize[];
16
+ };
17
+ color: {
18
+ control: string;
19
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey")[];
20
+ };
21
+ };
22
+ args: Partial<SkeletonCircleProps>;
23
+ };
24
+ AllSize: {
25
+ argTypes: {
26
+ size: {
27
+ control: boolean;
28
+ };
29
+ };
30
+ decorators: ((story: any, context: any) => any)[];
31
+ };
32
+ AllColor: {
33
+ args: {
34
+ size: "m";
35
+ };
36
+ argTypes: {
37
+ color: {
38
+ control: boolean;
39
+ };
40
+ };
41
+ decorators: ((story: any, context: any) => any)[];
42
+ };
43
+ };
@@ -0,0 +1,83 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ import { SkeletonRectangleVariant } from './SkeletonRectangle';
3
+ import type { SkeletonRectangleProps } from './SkeletonRectangle';
4
+ /**
5
+ * Setup SkeletonRectangle stories for a specific framework (React or Vue).
6
+ */
7
+ export declare function setup({ component: SkeletonRectangle, decorators: { withCombinations }, }: SetupStoriesOptions<{
8
+ decorators: 'withCombinations';
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: (args: any) => import("react").JSX.Element;
13
+ argTypes: {
14
+ width: {
15
+ control: string;
16
+ options: (import("../../constants").GlobalSize | undefined)[];
17
+ };
18
+ height: {
19
+ control: string;
20
+ options: (import("../../constants").GlobalSize | undefined)[];
21
+ };
22
+ aspectRatio: {
23
+ control: string;
24
+ options: ("vertical" | "horizontal" | "wide" | "square" | undefined)[];
25
+ };
26
+ color: {
27
+ control: string;
28
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey")[];
29
+ };
30
+ variant: {
31
+ control: string;
32
+ options: (SkeletonRectangleVariant | undefined)[];
33
+ };
34
+ };
35
+ args: Partial<SkeletonRectangleProps>;
36
+ };
37
+ AllSize: {
38
+ argTypes: {
39
+ width: {
40
+ control: boolean;
41
+ };
42
+ height: {
43
+ control: boolean;
44
+ };
45
+ };
46
+ decorators: ((story: any, context: any) => any)[];
47
+ };
48
+ AllRatios: {
49
+ args: {
50
+ width: "xl";
51
+ };
52
+ argTypes: {
53
+ aspectRatio: {
54
+ control: boolean;
55
+ };
56
+ };
57
+ decorators: ((story: any, context: any) => any)[];
58
+ };
59
+ AllVariants: {
60
+ args: {
61
+ width: "l";
62
+ height: "m";
63
+ };
64
+ argTypes: {
65
+ variant: {
66
+ control: boolean;
67
+ };
68
+ };
69
+ decorators: ((story: any, context: any) => any)[];
70
+ };
71
+ AllColors: {
72
+ args: {
73
+ width: "l";
74
+ height: "m";
75
+ };
76
+ argTypes: {
77
+ color: {
78
+ control: boolean;
79
+ };
80
+ };
81
+ decorators: ((story: any, context: any) => any)[];
82
+ };
83
+ };
@@ -0,0 +1,53 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup SkeletonTypography stories for a specific framework (React or Vue).
4
+ */
5
+ export declare function setup({ component: SkeletonTypography, decorators: { withCombinations }, }: SetupStoriesOptions<{
6
+ decorators: 'withCombinations';
7
+ }>): {
8
+ meta: {
9
+ component: any;
10
+ render: (args: any) => import("react").JSX.Element;
11
+ argTypes: {
12
+ typography: {
13
+ control: string;
14
+ options: ("caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1")[];
15
+ };
16
+ color: {
17
+ control: string;
18
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey")[];
19
+ };
20
+ width: {
21
+ control: string;
22
+ };
23
+ };
24
+ args: {
25
+ typography: "body1";
26
+ width?: import("csstype").Property.Width<string | number> | undefined;
27
+ color?: import("../../constants").ColorPalette | undefined;
28
+ ref?: import("../../types").CommonRef;
29
+ style?: import("react").CSSProperties | undefined;
30
+ theme?: import("../../constants").Theme | undefined;
31
+ className?: string | undefined;
32
+ };
33
+ };
34
+ TextTypography: {
35
+ args: {
36
+ typography: "body1";
37
+ };
38
+ };
39
+ WidthVariations: {
40
+ render: () => import("react").JSX.Element;
41
+ };
42
+ AllColors: {
43
+ argTypes: {
44
+ color: {
45
+ control: boolean;
46
+ };
47
+ };
48
+ args: {
49
+ width: string;
50
+ };
51
+ decorators: ((story: any, context: any) => any)[];
52
+ };
53
+ };
@@ -0,0 +1,94 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup Switch stories for a specific framework (React or Vue).
4
+ * This function creates all the stories with the appropriate decorators.
5
+ * Framework-specific render functions or args can be injected via `overrides`.
6
+ */
7
+ export declare function setup({ component: Switch, decorators: { withCombinations }, }: SetupStoriesOptions<{
8
+ decorators: 'withCombinations';
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: (args: any) => import("react").JSX.Element;
13
+ argTypes: {
14
+ onChange: {
15
+ action: boolean;
16
+ };
17
+ name: {
18
+ control: boolean;
19
+ };
20
+ value: {
21
+ control: boolean;
22
+ };
23
+ position: {
24
+ control: string;
25
+ options: string[];
26
+ };
27
+ };
28
+ args: {
29
+ isChecked: boolean;
30
+ name: string;
31
+ value: string;
32
+ helper?: string | undefined;
33
+ id?: string | undefined;
34
+ label?: import("react").ReactNode;
35
+ inputProps?: Record<string, any> | undefined;
36
+ inputRef?: import("../../types").CommonRef;
37
+ inputId?: string | undefined;
38
+ handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
39
+ position?: "left" | "right" | undefined;
40
+ ref?: import("../../types").CommonRef;
41
+ theme?: import("../../constants").Theme | undefined;
42
+ className?: string | undefined;
43
+ 'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
44
+ isDisabled?: boolean | undefined;
45
+ disabled?: boolean | undefined;
46
+ checked?: boolean | undefined;
47
+ };
48
+ };
49
+ /** Default switch */
50
+ Default: {};
51
+ /** With label and helper */
52
+ LabelAndHelper: {
53
+ argTypes: {
54
+ label: {
55
+ control: string;
56
+ };
57
+ helper: {
58
+ control: string;
59
+ };
60
+ };
61
+ args: {
62
+ label: string;
63
+ helper: string;
64
+ };
65
+ };
66
+ /** With position right */
67
+ PositionRight: {
68
+ argTypes: {
69
+ position: {
70
+ control: boolean;
71
+ };
72
+ };
73
+ args: {
74
+ label: string;
75
+ position: string;
76
+ };
77
+ };
78
+ /** Disabled */
79
+ Disabled: {
80
+ argTypes: {
81
+ isDisabled: {
82
+ control: boolean;
83
+ };
84
+ 'aria-disabled': {
85
+ control: boolean;
86
+ };
87
+ };
88
+ args: {
89
+ label: string;
90
+ helper: string;
91
+ };
92
+ decorators: ((story: any, context: any) => any)[];
93
+ };
94
+ };
@@ -0,0 +1,30 @@
1
+ import type { SetupStoriesOptions } from '../../../stories/types';
2
+ export declare function setup({ component: Table, components: { TableBody, TableCell, TableHeader, TableRow }, }: SetupStoriesOptions<{
3
+ components: {
4
+ TableBody: any;
5
+ TableCell: any;
6
+ TableHeader: any;
7
+ TableRow: any;
8
+ };
9
+ decorators?: never;
10
+ }>): {
11
+ meta: {
12
+ component: any;
13
+ args: {
14
+ hasBefore: boolean;
15
+ hasDividers: boolean;
16
+ children?: import("react").ReactNode;
17
+ ref?: import("../../types").CommonRef;
18
+ theme?: import("../../constants").Theme | undefined;
19
+ className?: string | undefined;
20
+ };
21
+ };
22
+ /** Simple table */
23
+ Default: {
24
+ render: (args: any) => import("react").JSX.Element;
25
+ };
26
+ /** Table with header */
27
+ WithHeader: {
28
+ render: (args: any) => import("react").JSX.Element;
29
+ };
30
+ };
@@ -0,0 +1,25 @@
1
+ import type { JSXElement, HasClassName, CommonRef } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface TableBodyProps extends HasClassName {
6
+ /** Children */
7
+ children?: JSXElement;
8
+ /** reference to the root element */
9
+ ref?: CommonRef;
10
+ }
11
+ /**
12
+ * Component display name.
13
+ */
14
+ export declare const COMPONENT_NAME = "TableBody";
15
+ /**
16
+ * Component default class name and class prefix.
17
+ */
18
+ export declare const CLASSNAME: string;
19
+ /**
20
+ * TableBody component.
21
+ *
22
+ * @param props Component props.
23
+ * @return React element.
24
+ */
25
+ export declare const TableBody: (props: TableBodyProps) => import("react").JSX.Element;