@lumx/core 4.13.0 → 4.14.0-alpha.1

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 +5 -4
  106. package/stories/utils/CombinationsTable.d.ts +26 -0
  107. package/stories/utils/ThemingVariablesTable.d.ts +29 -0
@@ -0,0 +1,47 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component: TableCell, components: { Table, TableBody, TableHeader, TableRow }, decorators: { withCombinations }, }: SetupStoriesOptions<{
3
+ decorators: 'withCombinations';
4
+ components: {
5
+ Table: any;
6
+ TableBody: any;
7
+ TableHeader: any;
8
+ TableRow: any;
9
+ };
10
+ }>): {
11
+ meta: {
12
+ component: any;
13
+ argTypes: {
14
+ variant: {
15
+ control: {
16
+ type: "select" | "inline-radio";
17
+ };
18
+ options: ("body" | "head")[];
19
+ mapping: Record<string, "body" | "head"> | undefined;
20
+ };
21
+ onHeaderClick: {
22
+ action: boolean;
23
+ };
24
+ };
25
+ };
26
+ Default: {
27
+ args: {
28
+ children: string;
29
+ };
30
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
31
+ };
32
+ Header: {
33
+ args: {
34
+ variant: string;
35
+ children: string;
36
+ };
37
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
38
+ };
39
+ AllHeaderStates: {
40
+ args: {
41
+ variant: string;
42
+ children: string;
43
+ };
44
+ decorators: ((story: any, context: any) => any)[];
45
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
46
+ };
47
+ };
@@ -0,0 +1,29 @@
1
+ import type { JSXElement, HasClassName, CommonRef } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface TableHeaderProps 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 = "TableHeader";
15
+ /**
16
+ * Component default class name and class prefix.
17
+ */
18
+ export declare const CLASSNAME: string;
19
+ /**
20
+ * Component default props.
21
+ */
22
+ export declare const DEFAULT_PROPS: Partial<TableHeaderProps>;
23
+ /**
24
+ * TableHeader component.
25
+ *
26
+ * @param props Component props.
27
+ * @return React element.
28
+ */
29
+ export declare const TableHeader: (props: TableHeaderProps) => import("react").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import type { JSXElement, HasClassName, CommonRef, HasAriaDisabled } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface TableRowProps extends HasClassName, HasAriaDisabled {
6
+ /** Whether the component is clickable or not. */
7
+ isClickable?: boolean;
8
+ /** Whether the component is selected or not. */
9
+ isSelected?: boolean;
10
+ /** Tab index */
11
+ tabIndex?: number;
12
+ /** Children */
13
+ children?: JSXElement;
14
+ /** reference to the root element */
15
+ ref?: CommonRef;
16
+ }
17
+ /**
18
+ * Component display name.
19
+ */
20
+ export declare const COMPONENT_NAME = "TableRow";
21
+ /**
22
+ * Component default class name and class prefix.
23
+ */
24
+ export declare const CLASSNAME: string;
25
+ /**
26
+ * Component default props.
27
+ */
28
+ export declare const DEFAULT_PROPS: Partial<TableRowProps>;
29
+ /**
30
+ * TableRow component.
31
+ *
32
+ * @param props Component props.
33
+ * @return React element.
34
+ */
35
+ export declare const TableRow: (props: TableRowProps) => import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component: TableRow, components: { Table, TableBody, TableCell }, decorators: { withCombinations }, }: SetupStoriesOptions<{
3
+ decorators: 'withCombinations';
4
+ components: {
5
+ Table: any;
6
+ TableBody: any;
7
+ TableCell: any;
8
+ };
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ render: (args: any) => import("react").JSX.Element;
13
+ argTypes: {
14
+ children: {
15
+ control: boolean;
16
+ };
17
+ };
18
+ };
19
+ Default: {};
20
+ AllStates: {
21
+ decorators: ((story: any, context: any) => any)[];
22
+ };
23
+ };
@@ -0,0 +1,27 @@
1
+ import type { JSXElement, HasTheme, HasClassName, CommonRef } from '../../types';
2
+ import { CLASSNAME, COMPONENT_NAME } from './constants';
3
+ /**
4
+ * Defines the props of the component.
5
+ */
6
+ export interface TableProps extends HasTheme, HasClassName {
7
+ /** Whether the table has checkbox or thumbnail on first cell or not. */
8
+ hasBefore?: boolean;
9
+ /** Whether the table has dividers or not. */
10
+ hasDividers?: boolean;
11
+ /** Children */
12
+ children?: JSXElement;
13
+ /** reference to the root element */
14
+ ref?: CommonRef;
15
+ }
16
+ /**
17
+ * Component default props.
18
+ */
19
+ export declare const DEFAULT_PROPS: Partial<TableProps>;
20
+ /**
21
+ * Table component.
22
+ *
23
+ * @param props Component props.
24
+ * @return React element.
25
+ */
26
+ export declare const Table: (props: TableProps) => import("react").JSX.Element;
27
+ export { CLASSNAME, COMPONENT_NAME };
@@ -0,0 +1,70 @@
1
+ import { CommonRef, HasClassName, JSXElement } from '../../types';
2
+ import { IconProps } from '../Icon';
3
+ /**
4
+ * Defines the props of the component.
5
+ */
6
+ export interface TabProps extends HasClassName {
7
+ /** Children are not supported. */
8
+ children?: never;
9
+ /** Icon (SVG path). */
10
+ icon?: IconProps['icon'];
11
+ /** Icon component properties. */
12
+ iconProps?: Omit<IconProps, 'icon'>;
13
+ /** Native id property. */
14
+ id?: string;
15
+ /** Whether the tab is active or not. */
16
+ isActive?: boolean;
17
+ /** Whether the component is disabled or not. */
18
+ isDisabled?: boolean;
19
+ /** Label content. */
20
+ label: string | JSXElement;
21
+ /** Whether any tab in the list is disabled (used to block interaction). */
22
+ isAnyDisabled?: boolean;
23
+ /** Whether the tab should become active when it receives focus (automatic activation pattern). */
24
+ shouldActivateOnFocus?: boolean;
25
+ /** Focus event handler injected by TabList. */
26
+ handleFocus?: (event: any) => void;
27
+ /** Keypress event handler injected by TabList. */
28
+ handleKeyPress?: (event: any) => void;
29
+ /** Callback to activate this tab, injected by TabList. */
30
+ changeToTab?: () => void;
31
+ /** Tab index for roving tabindex management. */
32
+ tabIndex?: number;
33
+ /** Name of the prop used to set tab index (framework-dependent). */
34
+ tabIndexProp?: string;
35
+ /** Name of the prop used to attach the keypress event (framework-dependent). */
36
+ keyPressProp?: string;
37
+ /** ID applied to the tab button element (for aria-labelledby on the panel). */
38
+ tabId?: string;
39
+ /** ID of the associated tab panel (for aria-controls). */
40
+ tabPanelId?: string;
41
+ /** Icon component injected by the framework wrapper. */
42
+ Icon: any;
43
+ /** Text component injected by the framework wrapper. */
44
+ Text: any;
45
+ /** Forward ref to the underlying button element. */
46
+ ref?: CommonRef;
47
+ }
48
+ export type TabPropsToOverride = 'isAnyDisabled' | 'shouldActivateOnFocus' | 'changeToTab' | 'tabIndex' | 'tabIndexProp' | 'keyPressProp' | 'tabId' | 'tabPanelId' | 'Icon' | 'Text';
49
+ /**
50
+ * Component display name.
51
+ */
52
+ export declare const COMPONENT_NAME = "Tab";
53
+ /**
54
+ * Component default props.
55
+ */
56
+ export declare const DEFAULT_PROPS: Partial<TabProps>;
57
+ /**
58
+ * Component default class name and class prefix.
59
+ */
60
+ export declare const CLASSNAME = "lumx-tabs__link";
61
+ /**
62
+ * Tab component.
63
+ *
64
+ * Implements WAI-ARIA `tab` role {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label}
65
+ *
66
+ * @param props Component props.
67
+ * @param ref Component ref.
68
+ * @return React element.
69
+ */
70
+ export declare const Tab: (props: TabProps) => import("react").JSX.Element;
@@ -0,0 +1,43 @@
1
+ import { CommonRef, HasClassName, JSXElement, LumxClassName } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface TabPanelProps extends HasClassName {
6
+ /** Whether the tab is active or not. */
7
+ isActive?: boolean;
8
+ /** Whether the tab is lazy loaded or not */
9
+ isLazy?: boolean;
10
+ /** Children */
11
+ children?: JSXElement;
12
+ /** ID applied to the tab button element (for aria-labelledby on the panel). */
13
+ tabId?: string;
14
+ /** ID of the associated tab panel (for aria-controls). */
15
+ id?: string;
16
+ /** Name of the prop used to set tab index (framework-dependent). */
17
+ tabIndexProp?: string;
18
+ /** Forward ref to the underlying button element. */
19
+ ref?: CommonRef;
20
+ }
21
+ export type TabPanelPropsToOverride = 'tabId' | 'isLazy' | 'tabIndexProp';
22
+ /**
23
+ * Component display name.
24
+ */
25
+ export declare const COMPONENT_NAME = "TabPanel";
26
+ /**
27
+ * Component default class name and class prefix.
28
+ */
29
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
30
+ /**
31
+ * Component default props.
32
+ */
33
+ export declare const DEFAULT_PROPS: Partial<TabPanelProps>;
34
+ /**
35
+ * TabPanel component.
36
+ *
37
+ * Implements WAI-ARIA `tabpanel` role {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label}
38
+ *
39
+ * @param props Component props.
40
+ * @param ref Component ref.
41
+ * @return React element.
42
+ */
43
+ export declare const TabPanel: (props: TabPanelProps) => import("react").JSX.Element;
@@ -0,0 +1,164 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ /** Shared argTypes for Text (also reused by Heading) */
3
+ export declare const TEXT_ARG_TYPES: {
4
+ as: {
5
+ control: {
6
+ type: "select" | "inline-radio";
7
+ };
8
+ options: import("../../types").TextElement[];
9
+ mapping: Record<string, import("../../types").TextElement> | undefined;
10
+ };
11
+ typography: {
12
+ control: {
13
+ type: "select" | "inline-radio";
14
+ };
15
+ options: ("caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button")[];
16
+ mapping: Record<string, "caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button"> | undefined;
17
+ };
18
+ color: {
19
+ control: {
20
+ type: "select" | "inline-radio";
21
+ };
22
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
23
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
24
+ };
25
+ colorVariant: {
26
+ control: {
27
+ type: "select" | "inline-radio";
28
+ };
29
+ options: ("D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N")[];
30
+ mapping: Record<string, "D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N"> | undefined;
31
+ };
32
+ whiteSpace: {
33
+ control: {
34
+ type: "select" | "inline-radio";
35
+ };
36
+ options: string[];
37
+ mapping: Record<string, string> | undefined;
38
+ };
39
+ };
40
+ /**
41
+ * Setup Text stories for a specific framework (React or Vue).
42
+ * Framework-specific components (Icon) are injected via `components`.
43
+ */
44
+ export declare function setup({ component: Text, components: { Icon }, decorators: { withCombinations, withResizableBox }, overrides, }: SetupStoriesOptions<{
45
+ overrides: 'TestUpdateTruncateTitleLabel';
46
+ decorators: 'withCombinations' | 'withResizableBox';
47
+ components: {
48
+ Icon: any;
49
+ };
50
+ }>): {
51
+ meta: {
52
+ component: any;
53
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
54
+ args: {
55
+ as: string;
56
+ children: string;
57
+ };
58
+ argTypes: {
59
+ as: {
60
+ control: {
61
+ type: "select" | "inline-radio";
62
+ };
63
+ options: import("../../types").TextElement[];
64
+ mapping: Record<string, import("../../types").TextElement> | undefined;
65
+ };
66
+ typography: {
67
+ control: {
68
+ type: "select" | "inline-radio";
69
+ };
70
+ options: ("caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button")[];
71
+ mapping: Record<string, "caption" | "title" | "overline" | "body1" | "body2" | "subtitle1" | "subtitle2" | "headline" | "display1" | "custom-title1" | "custom-title2" | "custom-title3" | "custom-title4" | "custom-title5" | "custom-title6" | "custom-intro" | "custom-body-large" | "custom-body" | "custom-quote" | "custom-publish-info" | "custom-button"> | undefined;
72
+ };
73
+ color: {
74
+ control: {
75
+ type: "select" | "inline-radio";
76
+ };
77
+ options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
78
+ mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
79
+ };
80
+ colorVariant: {
81
+ control: {
82
+ type: "select" | "inline-radio";
83
+ };
84
+ options: ("D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N")[];
85
+ mapping: Record<string, "D1" | "D2" | "L1" | "L2" | "L3" | "L4" | "L5" | "L6" | "N"> | undefined;
86
+ };
87
+ whiteSpace: {
88
+ control: {
89
+ type: "select" | "inline-radio";
90
+ };
91
+ options: string[];
92
+ mapping: Record<string, string> | undefined;
93
+ };
94
+ };
95
+ };
96
+ Base: {};
97
+ LongText: {
98
+ args: {
99
+ children: string;
100
+ };
101
+ decorators: ((story: any, context: any) => any)[];
102
+ };
103
+ NoWrap: {
104
+ args: {
105
+ children: string;
106
+ noWrap: boolean;
107
+ };
108
+ };
109
+ AllWhiteSpace: {
110
+ args: {
111
+ children: string;
112
+ };
113
+ decorators: ((story: any, context: any) => any)[];
114
+ };
115
+ Truncate: {
116
+ args: {
117
+ children: string;
118
+ truncate: boolean;
119
+ };
120
+ };
121
+ TruncateMultiline: {
122
+ args: {
123
+ children: string;
124
+ truncate: {
125
+ lines: number;
126
+ };
127
+ };
128
+ };
129
+ WithIcon: {
130
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
131
+ };
132
+ AllTypography: {
133
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
134
+ argTypes: {
135
+ typography: {
136
+ control: boolean;
137
+ };
138
+ };
139
+ decorators: ((story: any, context: any) => any)[];
140
+ };
141
+ AllColors: {
142
+ render: ({ children, ...args }: any) => import("react").JSX.Element;
143
+ argTypes: {
144
+ color: {
145
+ control: boolean;
146
+ };
147
+ colorVariant: {
148
+ control: boolean;
149
+ };
150
+ };
151
+ decorators: ((story: any, context: any) => any)[];
152
+ };
153
+ TestUpdateTruncateTitleLabel: {
154
+ args: {
155
+ children: undefined;
156
+ };
157
+ parameters: {
158
+ chromatic: {
159
+ disable: boolean;
160
+ };
161
+ };
162
+ tags: string[];
163
+ };
164
+ };
@@ -0,0 +1,22 @@
1
+ import type { HTMLInputTypeAttribute } from 'react';
2
+ import { CommonRef, HasClassName, HasTheme } from '../../types';
3
+ /**
4
+ * Defines the props of the component.
5
+ */
6
+ export interface RawInputTextProps extends HasTheme, HasClassName {
7
+ value?: string;
8
+ type?: HTMLInputTypeAttribute;
9
+ name?: string | undefined;
10
+ ref?: CommonRef;
11
+ handleChange?: (value: string, name?: string, event?: any) => void;
12
+ handleInput?: (value: string, name?: string, event?: any) => void;
13
+ }
14
+ /**
15
+ * Component default props.
16
+ */
17
+ export declare const DEFAULT_PROPS: Partial<RawInputTextProps>;
18
+ /**
19
+ * Raw input text component
20
+ * (input element without any decoration)
21
+ */
22
+ export declare const RawInputText: (props: RawInputTextProps) => import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component: RawInputText, decorators: { withValueOnChange, withWrapper }, }: SetupStoriesOptions<{
3
+ decorators: 'withValueOnChange' | 'withWrapper';
4
+ }>): {
5
+ meta: {
6
+ component: any;
7
+ args: Partial<import("./RawInputText").RawInputTextProps>;
8
+ decorators: ((story: any, context: any) => any)[];
9
+ };
10
+ Default: {};
11
+ WithPlaceholder: {
12
+ args: {
13
+ placeholder: string;
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,21 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component: RawInputTextarea, decorators: { withValueOnChange, withWrapper }, }: SetupStoriesOptions<{
3
+ decorators: 'withValueOnChange' | 'withWrapper';
4
+ }>): {
5
+ meta: {
6
+ component: any;
7
+ args: Partial<import("./RawInputTextarea").RawInputTextareaProps>;
8
+ decorators: ((story: any, context: any) => any)[];
9
+ };
10
+ Default: {};
11
+ WithMinimumRows: {
12
+ args: {
13
+ rows: number;
14
+ };
15
+ };
16
+ WithPlaceholder: {
17
+ args: {
18
+ placeholder: string;
19
+ };
20
+ };
21
+ };
@@ -0,0 +1,101 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component: TextField, components: { Chip, IconButton, Typography }, decorators: { withValueOnChange, withCombinations }, }: SetupStoriesOptions<{
3
+ decorators: 'withValueOnChange' | 'withCombinations';
4
+ components: {
5
+ Chip: any;
6
+ IconButton: any;
7
+ Typography: any;
8
+ };
9
+ }>): {
10
+ meta: {
11
+ component: any;
12
+ argTypes: {
13
+ clearButtonProps: {
14
+ control: boolean;
15
+ };
16
+ chips: {
17
+ control: boolean;
18
+ };
19
+ afterElement: {
20
+ control: boolean;
21
+ };
22
+ onClear: {
23
+ action: boolean;
24
+ };
25
+ };
26
+ decorators: ((story: any, context: any) => any)[];
27
+ };
28
+ Default: {
29
+ args: {
30
+ value: string;
31
+ };
32
+ };
33
+ Placeholder: {
34
+ args: {
35
+ value: string;
36
+ placeholder: string;
37
+ };
38
+ };
39
+ LabelAndHelper: {
40
+ args: {
41
+ label: string;
42
+ helper: string;
43
+ value: string;
44
+ };
45
+ };
46
+ CustomLabelAndHelper: {
47
+ render: (args: any) => import("react").JSX.Element;
48
+ };
49
+ NumberField: {
50
+ args: {
51
+ value: string;
52
+ type: string;
53
+ };
54
+ };
55
+ TextareaField: {
56
+ args: {
57
+ value: string;
58
+ multiline: boolean;
59
+ minimumRows: number;
60
+ };
61
+ };
62
+ Error: {
63
+ args: {
64
+ hasError: boolean;
65
+ error: string;
66
+ label: string;
67
+ helper: string;
68
+ value: string;
69
+ };
70
+ };
71
+ Valid: {
72
+ args: {
73
+ isValid: boolean;
74
+ label: string;
75
+ helper: string;
76
+ value: string;
77
+ };
78
+ };
79
+ MaxLength: {
80
+ args: {
81
+ value: string;
82
+ maxLength: number;
83
+ label: string;
84
+ helper: string;
85
+ };
86
+ };
87
+ WithAfterElement: {
88
+ render: (args: any) => import("react").JSX.Element;
89
+ };
90
+ WithChips: {
91
+ render: (args: any) => import("react").JSX.Element;
92
+ };
93
+ Disabled: {
94
+ args: {
95
+ value: string;
96
+ label: string;
97
+ helper: string;
98
+ };
99
+ decorators: ((story: any, context: any) => any)[];
100
+ };
101
+ };