@lumx/core 4.3.2-alpha.4 → 4.3.2-alpha.40

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 (130) hide show
  1. package/js/components/Badge/BadgeWrapper.d.ts +13 -0
  2. package/js/components/Badge/BadgeWrapperStories.d.ts +29 -0
  3. package/js/components/Badge/BadgeWrapperTests.d.ts +9 -0
  4. package/js/components/Badge/Stories.d.ts +52 -0
  5. package/js/components/Badge/Tests.d.ts +12 -0
  6. package/js/components/Badge/index.d.ts +37 -0
  7. package/js/components/Button/Button.d.ts +48 -0
  8. package/js/components/Button/ButtonGroup.d.ts +36 -0
  9. package/js/components/Button/ButtonGroupStories.d.ts +37 -0
  10. package/js/components/Button/ButtonRoot.d.ts +55 -0
  11. package/js/components/Button/ButtonRootTests.d.ts +12 -0
  12. package/js/components/Button/IconButton.d.ts +45 -0
  13. package/js/components/Button/IconButtonStories.d.ts +212 -0
  14. package/js/components/Button/IconButtonTests.d.ts +15 -0
  15. package/js/components/Button/Stories.d.ts +302 -0
  16. package/js/components/Button/Tests.d.ts +15 -0
  17. package/js/components/Checkbox/Stories.d.ts +88 -0
  18. package/js/components/Checkbox/Tests.d.ts +15 -0
  19. package/js/components/Checkbox/index.d.ts +49 -0
  20. package/js/components/Divider/Stories.d.ts +21 -0
  21. package/js/components/Divider/Tests.d.ts +12 -0
  22. package/js/components/Divider/index.d.ts +27 -0
  23. package/js/components/Flag/Stories.d.ts +120 -0
  24. package/js/components/Flag/Tests.d.ts +14 -0
  25. package/js/components/Flag/index.d.ts +34 -0
  26. package/js/components/FlexBox/Stories.d.ts +108 -0
  27. package/js/components/FlexBox/Tests.d.ts +13 -0
  28. package/js/components/FlexBox/constants.d.ts +4 -0
  29. package/js/components/FlexBox/index.d.ts +50 -0
  30. package/js/components/FlexBox/types.d.ts +7 -0
  31. package/js/components/GridColumn/GridColumn.d.ts +48 -0
  32. package/js/components/GridColumn/GridColumnStories.d.ts +47 -0
  33. package/js/components/GridColumn/GridColumnTests.d.ts +12 -0
  34. package/js/components/Heading/Stories.d.ts +89 -0
  35. package/js/components/Heading/Tests.d.ts +11 -0
  36. package/js/components/Heading/constants.d.ts +21 -0
  37. package/js/components/Heading/index.d.ts +44 -0
  38. package/js/components/Heading/utils.d.ts +8 -0
  39. package/js/components/Icon/Stories.d.ts +150 -0
  40. package/js/components/Icon/Tests.d.ts +14 -0
  41. package/js/components/Icon/constants.d.ts +1 -0
  42. package/js/components/Icon/index.d.ts +41 -0
  43. package/js/components/InputHelper/Stories.d.ts +43 -0
  44. package/js/components/InputHelper/Tests.d.ts +12 -0
  45. package/js/components/InputHelper/constants.d.ts +3 -0
  46. package/js/components/InputHelper/index.d.ts +26 -0
  47. package/js/components/InputLabel/Stories.d.ts +34 -0
  48. package/js/components/InputLabel/Tests.d.ts +12 -0
  49. package/js/components/InputLabel/index.d.ts +25 -0
  50. package/js/components/Link/Stories.d.ts +93 -0
  51. package/js/components/Link/Tests.d.ts +15 -0
  52. package/js/components/Link/index.d.ts +54 -0
  53. package/js/components/Message/Stories.d.ts +119 -0
  54. package/js/components/Message/Tests.d.ts +14 -0
  55. package/js/components/Message/index.d.ts +75 -0
  56. package/js/components/ProgressCircular/Stories.d.ts +30 -0
  57. package/js/components/ProgressCircular/Tests.d.ts +11 -0
  58. package/js/components/ProgressCircular/index.d.ts +52 -0
  59. package/js/components/ProgressLinear/Stories.d.ts +11 -0
  60. package/js/components/ProgressLinear/Tests.d.ts +11 -0
  61. package/js/components/ProgressLinear/index.d.ts +27 -0
  62. package/js/components/RadioButton/Stories.d.ts +77 -0
  63. package/js/components/RadioButton/Tests.d.ts +15 -0
  64. package/js/components/RadioButton/index.d.ts +45 -0
  65. package/js/components/RawClickable/Tests.d.ts +14 -0
  66. package/js/components/RawClickable/index.d.ts +14 -0
  67. package/js/components/Skeleton/SkeletonCircle.d.ts +32 -0
  68. package/js/components/Skeleton/SkeletonCircleStories.d.ts +45 -0
  69. package/js/components/Skeleton/SkeletonCircleTests.d.ts +12 -0
  70. package/js/components/Skeleton/SkeletonRectangle.d.ts +47 -0
  71. package/js/components/Skeleton/SkeletonRectangleStories.d.ts +87 -0
  72. package/js/components/Skeleton/SkeletonRectangleTests.d.ts +13 -0
  73. package/js/components/Skeleton/SkeletonTypography.d.ts +37 -0
  74. package/js/components/Skeleton/SkeletonTypographyStories.d.ts +40 -0
  75. package/js/components/Skeleton/SkeletonTypographyTests.d.ts +13 -0
  76. package/js/components/Skeleton/index.d.ts +3 -0
  77. package/js/components/Switch/Stories.d.ts +94 -0
  78. package/js/components/Switch/Tests.d.ts +15 -0
  79. package/js/components/Switch/index.d.ts +47 -0
  80. package/js/components/Table/Stories.d.ts +25 -0
  81. package/js/components/Table/TableCell.d.ts +55 -0
  82. package/js/components/Table/TableCellStories.d.ts +44 -0
  83. package/js/components/Table/TableCellTests.d.ts +11 -0
  84. package/js/components/Table/TableRowStories.d.ts +23 -0
  85. package/js/components/Table/Tests.d.ts +11 -0
  86. package/js/components/Table/constants.d.ts +9 -0
  87. package/js/components/Table/index.d.ts +27 -0
  88. package/js/components/Text/Stories.d.ts +167 -0
  89. package/js/components/Text/Tests.d.ts +10 -0
  90. package/js/components/Text/index.d.ts +935 -0
  91. package/js/components/Thumbnail/Stories.d.ts +178 -0
  92. package/js/components/Thumbnail/Tests.d.ts +11 -0
  93. package/js/components/Thumbnail/index.d.ts +84 -0
  94. package/js/components/Thumbnail/types.d.ts +45 -0
  95. package/js/components/Thumbnail/utils.d.ts +79 -0
  96. package/js/components/Toolbar/Stories.d.ts +46 -0
  97. package/js/components/Toolbar/Tests.d.ts +12 -0
  98. package/js/components/Toolbar/index.d.ts +33 -0
  99. package/js/constants/enums/index.d.ts +9 -0
  100. package/js/constants/enums/index.js +10 -1
  101. package/js/constants/index.js +1 -1
  102. package/js/types/AriaAttributes.d.ts +29 -2
  103. package/js/types/PartialBy.d.ts +12 -0
  104. package/js/types/index.d.ts +2 -0
  105. package/js/types/jsx/PropsToOverride.d.ts +2 -0
  106. package/js/utils/classNames/bem/block.d.ts +3 -2
  107. package/js/utils/classNames/bem/element.d.ts +3 -2
  108. package/js/utils/classNames/bem/index.d.ts +5 -4
  109. package/package.json +31 -2
  110. package/stories/controls/color.d.ts +15 -0
  111. package/stories/controls/element.d.ts +16 -0
  112. package/stories/controls/focusPoint.d.ts +8 -0
  113. package/stories/controls/icons.d.ts +66 -0
  114. package/stories/controls/image.d.ts +96 -0
  115. package/stories/controls/selectArgType.d.ts +7 -0
  116. package/stories/controls/theme.d.ts +7 -0
  117. package/stories/controls/typography.d.ts +8 -0
  118. package/stories/controls/withUndefined.d.ts +1 -0
  119. package/stories/types.d.ts +43 -0
  120. package/stories/utils/combinations.d.ts +100 -0
  121. package/stories/utils/concatPath.d.ts +10 -0
  122. package/stories/utils/disableArgTypes.d.ts +7 -0
  123. package/stories/utils/initDemoShadowDOMPortal.d.ts +5 -0
  124. package/stories/utils/lorem.d.ts +7 -0
  125. package/stories/utils/toFlattenProps.d.ts +12 -0
  126. package/stories/utils/withCategory.d.ts +4 -0
  127. package/testing/commonTestsSuiteTL.d.ts +87 -0
  128. package/testing/index.d.ts +1 -0
  129. package/testing/queries.d.ts +4 -0
  130. package/js/utils/events/index.js +0 -2
@@ -0,0 +1,302 @@
1
+ import { Emphasis, Theme } from '@lumx/core/js/constants';
2
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
3
+ import { ButtonSize } from './ButtonRoot';
4
+ export declare const excludeCombination: ({ isSelected, emphasis, hasBackground }: any) => boolean;
5
+ /**
6
+ * Setup Button stories for a specific framework (React or Vue).
7
+ * This function creates all the stories with the appropriate decorators.
8
+ * Framework-specific render functions or args can be injected via `overrides`.
9
+ */
10
+ export declare function setup({ component, render, decorators: { withCombinations, withThemedBackground }, }: SetupStoriesOptions<{
11
+ decorators: 'withCombinations' | 'withThemedBackground';
12
+ }>): {
13
+ meta: {
14
+ component: any;
15
+ render: any;
16
+ argTypes: {
17
+ isSelected: {
18
+ control: string;
19
+ if: {
20
+ arg: string;
21
+ eq: string;
22
+ };
23
+ };
24
+ isDisabled: {
25
+ control: string;
26
+ };
27
+ hasBackground: {
28
+ control: string;
29
+ if: {
30
+ arg: string;
31
+ eq: string;
32
+ };
33
+ };
34
+ emphasis: {
35
+ control: {
36
+ type: "select" | "inline-radio";
37
+ };
38
+ options: ("medium" | "low" | "high")[];
39
+ mapping: Record<string, "medium" | "low" | "high"> | undefined;
40
+ };
41
+ size: {
42
+ control: {
43
+ type: "select" | "inline-radio";
44
+ };
45
+ options: ButtonSize[];
46
+ mapping: Record<string, ButtonSize> | undefined;
47
+ };
48
+ rightIcon: {
49
+ control: {
50
+ type: string;
51
+ };
52
+ options: {
53
+ undefined: undefined;
54
+ mdiAbTesting: string;
55
+ mdiAbjadArabic: string;
56
+ mdiAccount: string;
57
+ mdiAccountBox: string;
58
+ mdiAlert: string;
59
+ mdiAlertCircle: string;
60
+ mdiArrowDown: string;
61
+ mdiArrowUp: string;
62
+ mdiAtom: string;
63
+ mdiBee: string;
64
+ mdiBell: string;
65
+ mdiBullhornOutline: string;
66
+ mdiCheck: string;
67
+ mdiCheckCircle: string;
68
+ mdiChevronDown: string;
69
+ mdiChevronLeft: string;
70
+ mdiChevronRight: string;
71
+ mdiChevronUp: string;
72
+ mdiClose: string;
73
+ mdiCloseCircle: string;
74
+ mdiDelete: string;
75
+ mdiDotsHorizontal: string;
76
+ mdiDragVertical: string;
77
+ mdiEarth: string;
78
+ mdiEmail: string;
79
+ mdiEye: string;
80
+ mdiFileEdit: string;
81
+ mdiFlag: string;
82
+ mdiFolder: string;
83
+ mdiFolderGoogleDrive: string;
84
+ mdiFoodApple: string;
85
+ mdiGoogleCirclesExtended: string;
86
+ mdiHeart: string;
87
+ mdiHome: string;
88
+ mdiImageBroken: string;
89
+ mdiInformation: string;
90
+ mdiLink: string;
91
+ mdiMagnifyMinusOutline: string;
92
+ mdiMagnifyPlusOutline: string;
93
+ mdiMenuDown: string;
94
+ mdiMessageTextOutline: string;
95
+ mdiMinus: string;
96
+ mdiOpenInNew: string;
97
+ mdiPauseCircleOutline: string;
98
+ mdiPencil: string;
99
+ mdiPlay: string;
100
+ mdiPlayCircleOutline: string;
101
+ mdiPlus: string;
102
+ mdiRadioboxBlank: string;
103
+ mdiRadioboxMarked: string;
104
+ mdiReply: string;
105
+ mdiSend: string;
106
+ mdiStar: string;
107
+ mdiTextBox: string;
108
+ mdiTextBoxPlus: string;
109
+ mdiTram: string;
110
+ mdiTranslate: string;
111
+ mdiViewList: string;
112
+ };
113
+ };
114
+ leftIcon: {
115
+ control: {
116
+ type: string;
117
+ };
118
+ options: {
119
+ undefined: undefined;
120
+ mdiAbTesting: string;
121
+ mdiAbjadArabic: string;
122
+ mdiAccount: string;
123
+ mdiAccountBox: string;
124
+ mdiAlert: string;
125
+ mdiAlertCircle: string;
126
+ mdiArrowDown: string;
127
+ mdiArrowUp: string;
128
+ mdiAtom: string;
129
+ mdiBee: string;
130
+ mdiBell: string;
131
+ mdiBullhornOutline: string;
132
+ mdiCheck: string;
133
+ mdiCheckCircle: string;
134
+ mdiChevronDown: string;
135
+ mdiChevronLeft: string;
136
+ mdiChevronRight: string;
137
+ mdiChevronUp: string;
138
+ mdiClose: string;
139
+ mdiCloseCircle: string;
140
+ mdiDelete: string;
141
+ mdiDotsHorizontal: string;
142
+ mdiDragVertical: string;
143
+ mdiEarth: string;
144
+ mdiEmail: string;
145
+ mdiEye: string;
146
+ mdiFileEdit: string;
147
+ mdiFlag: string;
148
+ mdiFolder: string;
149
+ mdiFolderGoogleDrive: string;
150
+ mdiFoodApple: string;
151
+ mdiGoogleCirclesExtended: string;
152
+ mdiHeart: string;
153
+ mdiHome: string;
154
+ mdiImageBroken: string;
155
+ mdiInformation: string;
156
+ mdiLink: string;
157
+ mdiMagnifyMinusOutline: string;
158
+ mdiMagnifyPlusOutline: string;
159
+ mdiMenuDown: string;
160
+ mdiMessageTextOutline: string;
161
+ mdiMinus: string;
162
+ mdiOpenInNew: string;
163
+ mdiPauseCircleOutline: string;
164
+ mdiPencil: string;
165
+ mdiPlay: string;
166
+ mdiPlayCircleOutline: string;
167
+ mdiPlus: string;
168
+ mdiRadioboxBlank: string;
169
+ mdiRadioboxMarked: string;
170
+ mdiReply: string;
171
+ mdiSend: string;
172
+ mdiStar: string;
173
+ mdiTextBox: string;
174
+ mdiTextBoxPlus: string;
175
+ mdiTram: string;
176
+ mdiTranslate: string;
177
+ mdiViewList: string;
178
+ };
179
+ };
180
+ color: {
181
+ control: {
182
+ type: "select" | "inline-radio";
183
+ };
184
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
185
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
186
+ };
187
+ ref: {
188
+ table: {
189
+ disable: boolean;
190
+ };
191
+ };
192
+ onClick: {
193
+ action: boolean;
194
+ table: {
195
+ disable: boolean;
196
+ };
197
+ };
198
+ linkAs: {
199
+ table: {
200
+ disable: boolean;
201
+ };
202
+ };
203
+ className: {
204
+ table: {
205
+ disable: boolean;
206
+ };
207
+ };
208
+ target: {
209
+ if: {
210
+ arg: string;
211
+ exists: boolean;
212
+ };
213
+ control: {
214
+ type: string;
215
+ };
216
+ };
217
+ type: {
218
+ if: {
219
+ arg: string;
220
+ exists: boolean;
221
+ };
222
+ control: {
223
+ type: string;
224
+ };
225
+ };
226
+ };
227
+ args: {
228
+ children: string;
229
+ leftIcon?: string | undefined;
230
+ rightIcon?: string | undefined;
231
+ fullWidth?: boolean | undefined;
232
+ color?: import("@lumx/core/js/constants").ColorPalette | undefined;
233
+ emphasis?: Emphasis | undefined;
234
+ hasBackground?: boolean | undefined;
235
+ href?: string | undefined;
236
+ isDisabled?: boolean | undefined;
237
+ isSelected?: boolean | undefined;
238
+ name?: string | undefined;
239
+ size?: ButtonSize | undefined;
240
+ target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
241
+ type?: "submit" | "reset" | "button" | undefined | undefined;
242
+ linkAs?: "a" | any;
243
+ isActive?: boolean | undefined;
244
+ isFocused?: boolean | undefined;
245
+ isHovered?: boolean | undefined;
246
+ 'aria-expanded'?: boolean | "true" | "false" | undefined;
247
+ 'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
248
+ 'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
249
+ 'aria-label'?: string | undefined;
250
+ className?: string | undefined;
251
+ theme?: Theme | undefined;
252
+ 'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
253
+ handleClick?: ((event?: any) => void) | undefined;
254
+ handleKeyPress?: ((event?: any) => void) | undefined;
255
+ ref?: import("../../types").CommonRef;
256
+ disabled?: boolean | undefined;
257
+ };
258
+ };
259
+ /** Default button */
260
+ Base: {
261
+ args: {
262
+ children: string;
263
+ };
264
+ };
265
+ /** All combinations of size and emphasis */
266
+ SizeAndEmphasis: {
267
+ args: {
268
+ children: string;
269
+ };
270
+ argTypes: {
271
+ [k: string]: {
272
+ table: {
273
+ disable: boolean;
274
+ };
275
+ };
276
+ };
277
+ decorators: ((story: any, context: any) => any)[];
278
+ };
279
+ /** Setting a href to transform the button into a link. */
280
+ LinkButton: {
281
+ args: {
282
+ href: string;
283
+ children: string;
284
+ };
285
+ decorators: ((story: any, context: any) => any)[];
286
+ };
287
+ /** Check button style variations (color, states, emphasis, etc.) */
288
+ StateVariations: {
289
+ args: {
290
+ children: string;
291
+ rightIcon: string;
292
+ };
293
+ argTypes: {
294
+ [k: string]: {
295
+ table: {
296
+ disable: boolean;
297
+ };
298
+ };
299
+ };
300
+ decorators: ((story: any, context: any) => any)[];
301
+ };
302
+ };
@@ -0,0 +1,15 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ import { ButtonProps } from './Button';
3
+ type SetupProps = Partial<ButtonProps>;
4
+ /**
5
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
6
+ */
7
+ export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<ButtonProps>) => {
8
+ props: any;
9
+ button: HTMLElement;
10
+ buttonWrapper: HTMLElement | null;
11
+ icons: HTMLElement[];
12
+ wrapper: Partial<import("../../../testing").SetupResult>;
13
+ };
14
+ declare const _default: (renderOptions: SetupOptions<ButtonProps>) => void;
15
+ export default _default;
@@ -0,0 +1,88 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup Checkbox 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, render, decorators: { withCombinations }, }: SetupStoriesOptions<{
8
+ decorators: 'withCombinations';
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: any;
13
+ argTypes: {
14
+ onChange: {
15
+ action: boolean;
16
+ };
17
+ name: {
18
+ control: boolean;
19
+ };
20
+ value: {
21
+ control: boolean;
22
+ };
23
+ };
24
+ args: {
25
+ isChecked: boolean;
26
+ name: string;
27
+ value: string;
28
+ helper?: string | undefined;
29
+ id?: string | undefined;
30
+ label?: import("react").ReactNode;
31
+ inputProps?: Record<string, any> | undefined;
32
+ inputRef?: import("../../types").CommonRef;
33
+ inputId?: string | undefined;
34
+ handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
35
+ ref?: import("../../types").CommonRef;
36
+ theme?: import("../../constants").Theme | undefined;
37
+ className?: string | undefined;
38
+ 'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
39
+ isDisabled?: boolean | undefined;
40
+ disabled?: boolean | undefined;
41
+ checked?: boolean | undefined;
42
+ };
43
+ };
44
+ /** Default checkbox */
45
+ Default: {};
46
+ /** With label and helper */
47
+ LabelAndHelper: {
48
+ argTypes: {
49
+ label: {
50
+ control: string;
51
+ };
52
+ helper: {
53
+ control: string;
54
+ };
55
+ };
56
+ args: {
57
+ label: string;
58
+ helper: string;
59
+ };
60
+ };
61
+ /** With intermediate state */
62
+ IntermediateState: {
63
+ argTypes: {
64
+ isChecked: {
65
+ control: boolean;
66
+ };
67
+ };
68
+ args: {
69
+ isChecked: string;
70
+ };
71
+ };
72
+ /** Disabled */
73
+ Disabled: {
74
+ argTypes: {
75
+ isDisabled: {
76
+ control: boolean;
77
+ };
78
+ 'aria-disabled': {
79
+ control: boolean;
80
+ };
81
+ };
82
+ args: {
83
+ label: string;
84
+ helper: string;
85
+ };
86
+ decorators: ((story: any, context: any) => any)[];
87
+ };
88
+ };
@@ -0,0 +1,15 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ import { CheckboxProps } from '.';
3
+ type SetupProps = Partial<CheckboxProps>;
4
+ /**
5
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
6
+ */
7
+ export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<CheckboxProps>) => {
8
+ checkbox: HTMLElement;
9
+ helper: HTMLElement | null;
10
+ label: HTMLElement | null;
11
+ input: HTMLElement;
12
+ props: CheckboxProps;
13
+ };
14
+ declare const _default: (renderOptions: SetupOptions<CheckboxProps>) => void;
15
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import type { JSXElement, LumxClassName, HasTheme, HasAriaDisabled, HasDisabled, HasClassName, HasChecked, CommonRef } from '../../types';
2
+ /**
3
+ * Intermediate state of checkbox.
4
+ */
5
+ export declare const INTERMEDIATE_STATE = "intermediate";
6
+ /**
7
+ * Defines the props of the component.
8
+ */
9
+ export interface CheckboxProps extends HasTheme, HasClassName, HasAriaDisabled, HasDisabled, HasChecked<boolean | 'intermediate'> {
10
+ /** Helper text. */
11
+ helper?: string;
12
+ /** Native input id property. */
13
+ id?: string;
14
+ /** Label text. */
15
+ label?: JSXElement;
16
+ /** Native input name property. */
17
+ name?: string;
18
+ /** Native input value property. */
19
+ value?: string;
20
+ /** optional props for input */
21
+ inputProps?: Record<string, any>;
22
+ /** Native input ref. */
23
+ inputRef?: CommonRef;
24
+ /** Native input id. */
25
+ inputId: string;
26
+ /** On change callback. */
27
+ handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
28
+ /** reference to the root element */
29
+ ref?: CommonRef;
30
+ }
31
+ /**
32
+ * Component display name.
33
+ */
34
+ export declare const COMPONENT_NAME = "Checkbox";
35
+ /**
36
+ * Component default class name and class prefix.
37
+ */
38
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
39
+ /**
40
+ * Component default props.
41
+ */
42
+ export declare const DEFAULT_PROPS: Partial<CheckboxProps>;
43
+ /**
44
+ * Checkbox component.
45
+ *
46
+ * @param props Component props.
47
+ * @return JSX element.
48
+ */
49
+ export declare const Checkbox: (props: CheckboxProps) => import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup Divider 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, render, }: SetupStoriesOptions<{
8
+ decorators?: never;
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: any;
13
+ args: {
14
+ ref?: import("../../types").CommonRef;
15
+ theme?: import("../../constants").Theme | undefined;
16
+ className?: string | undefined;
17
+ };
18
+ };
19
+ /** Default divider */
20
+ Default: {};
21
+ };
@@ -0,0 +1,12 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ import { DividerProps } from '.';
3
+ type SetupProps = Partial<DividerProps>;
4
+ /**
5
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
6
+ */
7
+ export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<DividerProps>) => {
8
+ divider: HTMLElement;
9
+ props: DividerProps;
10
+ };
11
+ declare const _default: (renderOptions: SetupOptions<DividerProps>) => void;
12
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import type { LumxClassName, HasTheme, HasClassName, CommonRef } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface DividerProps extends HasTheme, HasClassName {
6
+ /** reference to the root element */
7
+ ref?: CommonRef;
8
+ }
9
+ /**
10
+ * Component display name.
11
+ */
12
+ export declare const COMPONENT_NAME = "Divider";
13
+ /**
14
+ * Component default class name and class prefix.
15
+ */
16
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
17
+ /**
18
+ * Component default props.
19
+ */
20
+ export declare const DEFAULT_PROPS: Partial<DividerProps>;
21
+ /**
22
+ * Divider component.
23
+ *
24
+ * @param props Component props.
25
+ * @return JSX element.
26
+ */
27
+ export declare const Divider: (props: DividerProps) => import("react").JSX.Element;
@@ -0,0 +1,120 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /**
3
+ * Setup Flag 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, render, decorators: { withCombinations, withResizableBox }, }: SetupStoriesOptions<{
8
+ decorators: 'withCombinations' | 'withResizableBox';
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: any;
13
+ argTypes: {
14
+ color: {
15
+ control: {
16
+ type: "select" | "inline-radio";
17
+ };
18
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
19
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
20
+ };
21
+ icon: {
22
+ control: {
23
+ type: string;
24
+ };
25
+ options: {
26
+ undefined: undefined;
27
+ mdiAbTesting: string;
28
+ mdiAbjadArabic: string;
29
+ mdiAccount: string;
30
+ mdiAccountBox: string;
31
+ mdiAlert: string;
32
+ mdiAlertCircle: string;
33
+ mdiArrowDown: string;
34
+ mdiArrowUp: string;
35
+ mdiAtom: string;
36
+ mdiBee: string;
37
+ mdiBell: string;
38
+ mdiBullhornOutline: string;
39
+ mdiCheck: string;
40
+ mdiCheckCircle: string;
41
+ mdiChevronDown: string;
42
+ mdiChevronLeft: string;
43
+ mdiChevronRight: string;
44
+ mdiChevronUp: string;
45
+ mdiClose: string;
46
+ mdiCloseCircle: string;
47
+ mdiDelete: string;
48
+ mdiDotsHorizontal: string;
49
+ mdiDragVertical: string;
50
+ mdiEarth: string;
51
+ mdiEmail: string;
52
+ mdiEye: string;
53
+ mdiFileEdit: string;
54
+ mdiFlag: string;
55
+ mdiFolder: string;
56
+ mdiFolderGoogleDrive: string;
57
+ mdiFoodApple: string;
58
+ mdiGoogleCirclesExtended: string;
59
+ mdiHeart: string;
60
+ mdiHome: string;
61
+ mdiImageBroken: string;
62
+ mdiInformation: string;
63
+ mdiLink: string;
64
+ mdiMagnifyMinusOutline: string;
65
+ mdiMagnifyPlusOutline: string;
66
+ mdiMenuDown: string;
67
+ mdiMessageTextOutline: string;
68
+ mdiMinus: string;
69
+ mdiOpenInNew: string;
70
+ mdiPauseCircleOutline: string;
71
+ mdiPencil: string;
72
+ mdiPlay: string;
73
+ mdiPlayCircleOutline: string;
74
+ mdiPlus: string;
75
+ mdiRadioboxBlank: string;
76
+ mdiRadioboxMarked: string;
77
+ mdiReply: string;
78
+ mdiSend: string;
79
+ mdiStar: string;
80
+ mdiTextBox: string;
81
+ mdiTextBoxPlus: string;
82
+ mdiTram: string;
83
+ mdiTranslate: string;
84
+ mdiViewList: string;
85
+ };
86
+ };
87
+ };
88
+ args: {
89
+ label: string;
90
+ };
91
+ };
92
+ /** Default flag with label */
93
+ Default: {};
94
+ /** With icon */
95
+ WithIcon: {
96
+ args: {
97
+ icon: string;
98
+ };
99
+ };
100
+ /** All `color` variants */
101
+ AllColors: {
102
+ args: {
103
+ icon: string;
104
+ };
105
+ argTypes: {
106
+ color: {
107
+ control: boolean;
108
+ };
109
+ };
110
+ decorators: ((story: any, context: any) => any)[];
111
+ };
112
+ /** Truncate text option */
113
+ Truncate: {
114
+ args: {
115
+ label: string;
116
+ truncate: boolean;
117
+ };
118
+ decorators: ((story: any, context: any) => any)[];
119
+ };
120
+ };
@@ -0,0 +1,14 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ import { FlagProps } from '.';
3
+ type SetupProps = Partial<FlagProps>;
4
+ /**
5
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
6
+ */
7
+ export declare const setup: (propsOverride: SetupProps | undefined, { render, ...options }: SetupOptions<FlagProps>) => {
8
+ flag: HTMLElement;
9
+ icon: HTMLElement | null;
10
+ label: HTMLElement | null;
11
+ props: FlagProps;
12
+ };
13
+ declare const _default: (renderOptions: SetupOptions<FlagProps>) => void;
14
+ export default _default;