@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.
- package/js/components/AlertDialog/Stories.d.ts +115 -0
- package/js/components/AlertDialog/index.d.ts +91 -0
- package/js/components/Avatar/Stories.d.ts +52 -0
- package/js/components/Avatar/index.d.ts +50 -0
- package/js/components/Badge/BadgeWrapper.d.ts +13 -0
- package/js/components/Badge/BadgeWrapperStories.d.ts +29 -0
- package/js/components/Badge/Stories.d.ts +46 -0
- package/js/components/Badge/index.d.ts +37 -0
- package/js/components/Button/ButtonGroup.d.ts +36 -0
- package/js/components/Button/ButtonGroupStories.d.ts +33 -0
- package/js/components/Button/IconButtonStories.d.ts +210 -0
- package/js/components/Button/Stories.d.ts +302 -0
- package/js/components/Checkbox/Stories.d.ts +89 -0
- package/js/components/Chip/ChipGroupStories.d.ts +17 -0
- package/js/components/Chip/SelectionChipGroupStories.d.ts +54 -0
- package/js/components/Chip/Stories.d.ts +127 -0
- package/js/components/Combobox/ComboboxOptionTests.d.ts +24 -0
- package/js/components/Combobox/Stories.d.ts +167 -0
- package/js/components/Combobox/TestStories.d.ts +143 -0
- package/js/components/Combobox/Tests.d.ts +168 -0
- package/js/components/Dialog/Stories.d.ts +97 -0
- package/js/components/Dialog/index.d.ts +99 -0
- package/js/components/Divider/Stories.d.ts +21 -0
- package/js/components/DragHandle/Stories.d.ts +18 -0
- package/js/components/ExpansionPanel/Stories.d.ts +67 -0
- package/js/components/Flag/Stories.d.ts +120 -0
- package/js/components/FlexBox/Stories.d.ts +116 -0
- package/js/components/FlexBox/constants.d.ts +3 -3
- package/js/components/GenericBlock/Stories.d.ts +74 -0
- package/js/components/GenericBlock/constants.d.ts +1 -1
- package/js/components/GenericBlock/index.d.ts +85 -0
- package/js/components/GridColumn/GridColumnStories.d.ts +45 -0
- package/js/components/GridColumn/index.d.ts +2 -0
- package/js/components/Heading/Stories.d.ts +90 -0
- package/js/components/Icon/Stories.d.ts +156 -0
- package/js/components/ImageBlock/Stories.d.ts +187 -0
- package/js/components/InlineList/Stories.d.ts +64 -0
- package/js/components/InlineList/index.d.ts +53 -0
- package/js/components/InputHelper/Stories.d.ts +35 -0
- package/js/components/InputLabel/Stories.d.ts +34 -0
- package/js/components/Lightbox/Stories.d.ts +40 -0
- package/js/components/Lightbox/index.d.ts +68 -0
- package/js/components/Link/Stories.d.ts +282 -0
- package/js/components/Link/index.d.ts +47 -0
- package/js/components/LinkPreview/Stories.d.ts +61 -0
- package/js/components/LinkPreview/index.d.ts +53 -0
- package/js/components/List/ListDivider.d.ts +33 -0
- package/js/components/List/ListDividerStories.d.ts +17 -0
- package/js/components/List/ListItemStories.d.ts +53 -0
- package/js/components/List/ListSection.d.ts +45 -0
- package/js/components/List/ListSectionStories.d.ts +125 -0
- package/js/components/List/ListStories.d.ts +34 -0
- package/js/components/Message/Stories.d.ts +119 -0
- package/js/components/Mosaic/Stories.d.ts +102 -0
- package/js/components/Mosaic/index.d.ts +40 -0
- package/js/components/Popover/Stories.d.ts +139 -0
- package/js/components/Popover/index.d.ts +119 -0
- package/js/components/PopoverDialog/Stories.d.ts +44 -0
- package/js/components/PopoverDialog/index.d.ts +22 -0
- package/js/components/RadioButton/Stories.d.ts +78 -0
- package/js/components/RadioGroup/index.d.ts +34 -0
- package/js/components/SelectButton/Stories.d.ts +135 -0
- package/js/components/SelectButton/TestStories.d.ts +37 -0
- package/js/components/SelectButton/Tests.d.ts +34 -0
- package/js/components/SelectButton/index.d.ts +85 -0
- package/js/components/SelectTextField/Stories.d.ts +192 -0
- package/js/components/SelectTextField/TestStories.d.ts +39 -0
- package/js/components/SelectTextField/Tests.d.ts +38 -0
- package/js/components/SelectTextField/index.d.ts +87 -0
- package/js/components/Skeleton/SkeletonCircleStories.d.ts +43 -0
- package/js/components/Skeleton/SkeletonRectangleStories.d.ts +83 -0
- package/js/components/Skeleton/SkeletonTypographyStories.d.ts +53 -0
- package/js/components/Switch/Stories.d.ts +94 -0
- package/js/components/Table/Stories.d.ts +30 -0
- package/js/components/Table/TableBody.d.ts +25 -0
- package/js/components/Table/TableCellStories.d.ts +47 -0
- package/js/components/Table/TableHeader.d.ts +29 -0
- package/js/components/Table/TableRow.d.ts +35 -0
- package/js/components/Table/TableRowStories.d.ts +23 -0
- package/js/components/Table/index.d.ts +27 -0
- package/js/components/Tabs/Tab.d.ts +70 -0
- package/js/components/Tabs/TabPanel.d.ts +43 -0
- package/js/components/Text/Stories.d.ts +164 -0
- package/js/components/TextField/RawInputText.d.ts +22 -0
- package/js/components/TextField/RawInputTextStories.d.ts +16 -0
- package/js/components/TextField/RawInputTextareaStories.d.ts +21 -0
- package/js/components/TextField/Stories.d.ts +101 -0
- package/js/components/TextField/TextField.d.ts +84 -0
- package/js/components/Thumbnail/Stories.d.ts +178 -0
- package/js/components/Toolbar/Stories.d.ts +29 -0
- package/js/components/Toolbar/index.d.ts +33 -0
- package/js/components/Tooltip/Stories.d.ts +61 -0
- package/js/components/Tooltip/TestStories.d.ts +72 -0
- package/js/components/Tooltip/index.d.ts +65 -0
- package/js/components/Uploader/Stories.d.ts +116 -0
- package/js/components/Uploader/index.d.ts +79 -0
- package/js/components/UserBlock/Stories.d.ts +153 -0
- package/js/components/UserBlock/index.d.ts +145 -0
- package/js/utils/ClickAway/TestStories.d.ts +36 -0
- package/js/utils/InfiniteScroll/TestStories.d.ts +50 -0
- package/js/utils/InfiniteScroll/index.d.ts +21 -0
- package/js/utils/Portal/Stories.d.ts +29 -0
- package/js/utils/action-area/Stories.d.ts +38 -0
- package/js/utils/select/renderSelectOptions.d.ts +7 -0
- package/package.json +5 -4
- package/stories/utils/CombinationsTable.d.ts +26 -0
- package/stories/utils/ThemingVariablesTable.d.ts +29 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Emphasis } from '@lumx/core/js/constants';
|
|
2
|
+
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
3
|
+
import { ButtonSize } from './ButtonRoot';
|
|
4
|
+
/**
|
|
5
|
+
* Setup IconButton stories for a specific framework (React or Vue).
|
|
6
|
+
* This function creates all the stories with the appropriate decorators.
|
|
7
|
+
* Framework-specific components are injected via `components`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function setup({ component: IconButton, decorators: { withCombinations, withThemedBackground }, }: SetupStoriesOptions<{
|
|
10
|
+
decorators: 'withCombinations' | 'withThemedBackground';
|
|
11
|
+
}>): {
|
|
12
|
+
meta: {
|
|
13
|
+
component: any;
|
|
14
|
+
render: (args: any) => import("react").JSX.Element;
|
|
15
|
+
argTypes: {
|
|
16
|
+
isSelected: {
|
|
17
|
+
control: string;
|
|
18
|
+
};
|
|
19
|
+
isDisabled: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
hasBackground: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
emphasis: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select" | "inline-radio";
|
|
28
|
+
};
|
|
29
|
+
options: ("medium" | "low" | "high")[];
|
|
30
|
+
mapping: Record<string, "medium" | "low" | "high"> | undefined;
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "select" | "inline-radio";
|
|
35
|
+
};
|
|
36
|
+
options: ButtonSize[];
|
|
37
|
+
mapping: Record<string, ButtonSize> | undefined;
|
|
38
|
+
};
|
|
39
|
+
icon: {
|
|
40
|
+
control: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
options: {
|
|
44
|
+
undefined: undefined;
|
|
45
|
+
mdiAbTesting: string;
|
|
46
|
+
mdiAbjadArabic: string;
|
|
47
|
+
mdiAccount: string;
|
|
48
|
+
mdiAccountBox: string;
|
|
49
|
+
mdiAlert: string;
|
|
50
|
+
mdiAlertCircle: string;
|
|
51
|
+
mdiArrowDown: string;
|
|
52
|
+
mdiArrowUp: string;
|
|
53
|
+
mdiAtom: string;
|
|
54
|
+
mdiBee: string;
|
|
55
|
+
mdiBell: string;
|
|
56
|
+
mdiBullhornOutline: string;
|
|
57
|
+
mdiCheck: string;
|
|
58
|
+
mdiCheckCircle: string;
|
|
59
|
+
mdiChevronDown: string;
|
|
60
|
+
mdiChevronLeft: string;
|
|
61
|
+
mdiChevronRight: string;
|
|
62
|
+
mdiChevronUp: string;
|
|
63
|
+
mdiClose: string;
|
|
64
|
+
mdiCloseCircle: string;
|
|
65
|
+
mdiDelete: string;
|
|
66
|
+
mdiDotsHorizontal: string;
|
|
67
|
+
mdiDragVertical: string;
|
|
68
|
+
mdiEarth: string;
|
|
69
|
+
mdiEmail: string;
|
|
70
|
+
mdiEye: string;
|
|
71
|
+
mdiFileEdit: string;
|
|
72
|
+
mdiFlag: string;
|
|
73
|
+
mdiFolder: string;
|
|
74
|
+
mdiFolderGoogleDrive: string;
|
|
75
|
+
mdiFoodApple: string;
|
|
76
|
+
mdiGoogleCirclesExtended: string;
|
|
77
|
+
mdiHeart: string;
|
|
78
|
+
mdiHome: string;
|
|
79
|
+
mdiImageBroken: string;
|
|
80
|
+
mdiInformation: string;
|
|
81
|
+
mdiLink: string;
|
|
82
|
+
mdiMagnifyMinusOutline: string;
|
|
83
|
+
mdiMagnifyPlusOutline: string;
|
|
84
|
+
mdiMenuDown: string;
|
|
85
|
+
mdiMessageTextOutline: string;
|
|
86
|
+
mdiMinus: string;
|
|
87
|
+
mdiOpenInNew: string;
|
|
88
|
+
mdiPauseCircleOutline: string;
|
|
89
|
+
mdiPencil: string;
|
|
90
|
+
mdiPlay: string;
|
|
91
|
+
mdiPlayCircleOutline: string;
|
|
92
|
+
mdiPlus: string;
|
|
93
|
+
mdiRadioboxBlank: string;
|
|
94
|
+
mdiRadioboxMarked: string;
|
|
95
|
+
mdiReply: string;
|
|
96
|
+
mdiSend: string;
|
|
97
|
+
mdiStar: string;
|
|
98
|
+
mdiTextBox: string;
|
|
99
|
+
mdiTextBoxPlus: string;
|
|
100
|
+
mdiTram: string;
|
|
101
|
+
mdiTranslate: string;
|
|
102
|
+
mdiViewList: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
color: {
|
|
106
|
+
control: {
|
|
107
|
+
type: "select" | "inline-radio";
|
|
108
|
+
};
|
|
109
|
+
options: ("light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined)[];
|
|
110
|
+
mapping: Record<string, "light" | "dark" | "primary" | "secondary" | "blue" | "green" | "yellow" | "red" | "grey" | undefined> | undefined;
|
|
111
|
+
};
|
|
112
|
+
ref: {
|
|
113
|
+
table: {
|
|
114
|
+
disable: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
onClick: {
|
|
118
|
+
action: boolean;
|
|
119
|
+
table: {
|
|
120
|
+
disable: boolean;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
linkAs: {
|
|
124
|
+
table: {
|
|
125
|
+
disable: boolean;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
className: {
|
|
129
|
+
table: {
|
|
130
|
+
disable: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
target: {
|
|
134
|
+
if: {
|
|
135
|
+
arg: string;
|
|
136
|
+
exists: boolean;
|
|
137
|
+
};
|
|
138
|
+
control: {
|
|
139
|
+
type: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
type: {
|
|
143
|
+
if: {
|
|
144
|
+
arg: string;
|
|
145
|
+
exists: boolean;
|
|
146
|
+
};
|
|
147
|
+
control: {
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
args: {
|
|
153
|
+
label: string;
|
|
154
|
+
icon: string;
|
|
155
|
+
image?: string | undefined;
|
|
156
|
+
title?: string | undefined;
|
|
157
|
+
color?: import("@lumx/core/js/constants").ColorPalette | undefined;
|
|
158
|
+
emphasis?: Emphasis | undefined;
|
|
159
|
+
hasBackground?: boolean | undefined;
|
|
160
|
+
href?: string | undefined;
|
|
161
|
+
isDisabled?: boolean | undefined;
|
|
162
|
+
isSelected?: boolean | undefined;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
size?: ButtonSize | undefined;
|
|
165
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
|
|
166
|
+
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
167
|
+
linkAs?: "a" | any;
|
|
168
|
+
fullWidth?: boolean | undefined;
|
|
169
|
+
isActive?: boolean | undefined;
|
|
170
|
+
isFocused?: boolean | undefined;
|
|
171
|
+
isHovered?: boolean | undefined;
|
|
172
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
173
|
+
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
174
|
+
'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
|
|
175
|
+
'aria-label'?: string | undefined;
|
|
176
|
+
className?: string | undefined;
|
|
177
|
+
theme?: import("@lumx/core/js/constants").Theme | undefined;
|
|
178
|
+
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
179
|
+
children?: import("react").ReactNode;
|
|
180
|
+
handleClick?: ((event?: any) => void) | undefined;
|
|
181
|
+
handleKeyPress?: ((event?: any) => void) | undefined;
|
|
182
|
+
ref?: import("../../types").CommonRef;
|
|
183
|
+
disabled?: boolean | undefined;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
Default: {};
|
|
187
|
+
WithImage: {
|
|
188
|
+
argTypes: {
|
|
189
|
+
control: {
|
|
190
|
+
type: "select" | "inline-radio";
|
|
191
|
+
};
|
|
192
|
+
options: string[];
|
|
193
|
+
mapping: Record<string, string> | undefined;
|
|
194
|
+
};
|
|
195
|
+
args: {
|
|
196
|
+
image: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
IconStateVariations: {
|
|
200
|
+
args: {};
|
|
201
|
+
argTypes: {
|
|
202
|
+
[k: string]: {
|
|
203
|
+
table: {
|
|
204
|
+
disable: boolean;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
decorators: ((story: any, context: any) => any)[];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
@@ -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 components are injected via `components`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function setup({ component: Button, decorators: { withCombinations, withThemedBackground }, }: SetupStoriesOptions<{
|
|
11
|
+
decorators: 'withCombinations' | 'withThemedBackground';
|
|
12
|
+
}>): {
|
|
13
|
+
meta: {
|
|
14
|
+
component: any;
|
|
15
|
+
render: ({ children, ...args }: any) => import("react").JSX.Element;
|
|
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,89 @@
|
|
|
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: Checkbox, decorators: { withCombinations, withValueOnChange }, }: SetupStoriesOptions<{
|
|
8
|
+
decorators: 'withCombinations' | 'withValueOnChange';
|
|
9
|
+
}>): {
|
|
10
|
+
meta: {
|
|
11
|
+
component: any;
|
|
12
|
+
render: (args: any) => import("react").JSX.Element;
|
|
13
|
+
decorators: ((story: any, context: any) => any)[];
|
|
14
|
+
argTypes: {
|
|
15
|
+
onChange: {
|
|
16
|
+
action: boolean;
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
control: boolean;
|
|
20
|
+
};
|
|
21
|
+
value: {
|
|
22
|
+
control: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
args: {
|
|
26
|
+
isChecked: boolean;
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
helper?: string | undefined;
|
|
30
|
+
id?: string | undefined;
|
|
31
|
+
label?: import("react").ReactNode;
|
|
32
|
+
inputProps?: Record<string, any> | undefined;
|
|
33
|
+
inputRef?: import("../../types").CommonRef;
|
|
34
|
+
inputId?: string | undefined;
|
|
35
|
+
handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
|
|
36
|
+
ref?: import("../../types").CommonRef;
|
|
37
|
+
theme?: import("../../constants").Theme | undefined;
|
|
38
|
+
className?: string | undefined;
|
|
39
|
+
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
40
|
+
isDisabled?: boolean | undefined;
|
|
41
|
+
disabled?: boolean | undefined;
|
|
42
|
+
checked?: boolean | undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/** Default checkbox */
|
|
46
|
+
Default: {};
|
|
47
|
+
/** With label and helper */
|
|
48
|
+
LabelAndHelper: {
|
|
49
|
+
argTypes: {
|
|
50
|
+
label: {
|
|
51
|
+
control: string;
|
|
52
|
+
};
|
|
53
|
+
helper: {
|
|
54
|
+
control: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
args: {
|
|
58
|
+
label: string;
|
|
59
|
+
helper: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/** With intermediate state */
|
|
63
|
+
IntermediateState: {
|
|
64
|
+
argTypes: {
|
|
65
|
+
isChecked: {
|
|
66
|
+
control: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
args: {
|
|
70
|
+
isChecked: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/** Disabled */
|
|
74
|
+
Disabled: {
|
|
75
|
+
argTypes: {
|
|
76
|
+
isDisabled: {
|
|
77
|
+
control: boolean;
|
|
78
|
+
};
|
|
79
|
+
'aria-disabled': {
|
|
80
|
+
control: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
args: {
|
|
84
|
+
label: string;
|
|
85
|
+
helper: string;
|
|
86
|
+
};
|
|
87
|
+
decorators: ((story: any, context: any) => any)[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
+
export declare function setup({ component: ChipGroup, components: { Chip }, }: SetupStoriesOptions<{
|
|
3
|
+
components: {
|
|
4
|
+
Chip: any;
|
|
5
|
+
};
|
|
6
|
+
}>): {
|
|
7
|
+
meta: {
|
|
8
|
+
component: any;
|
|
9
|
+
args: Partial<import("./ChipGroup").ChipGroupProps>;
|
|
10
|
+
};
|
|
11
|
+
Default: {
|
|
12
|
+
render: () => import("react").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
Small: {
|
|
15
|
+
render: () => import("react").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { SetupStoriesOptions } from '@lumx/core/stories/types';
|
|
2
|
+
declare const fruits: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}[];
|
|
6
|
+
type FruitOption = (typeof fruits)[number];
|
|
7
|
+
export declare function setup({ component: SelectionChipGroup, decorators: { withValueOnChange, withResizableBox }, }: SetupStoriesOptions<{
|
|
8
|
+
decorators: 'withValueOnChange' | 'withResizableBox';
|
|
9
|
+
}>): {
|
|
10
|
+
meta: {
|
|
11
|
+
component: any;
|
|
12
|
+
args: {
|
|
13
|
+
value: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
getOptionId: string;
|
|
18
|
+
getOptionName: string;
|
|
19
|
+
label: string;
|
|
20
|
+
chipRemoveLabel: string;
|
|
21
|
+
};
|
|
22
|
+
decorators: ((story: any, context: any) => any)[];
|
|
23
|
+
};
|
|
24
|
+
Default: {};
|
|
25
|
+
Disabled: {
|
|
26
|
+
args: {
|
|
27
|
+
isDisabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
IndividuallyDisabled: {
|
|
31
|
+
args: {
|
|
32
|
+
getChipProps: (option: FruitOption) => {
|
|
33
|
+
isDisabled: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
Empty: {
|
|
38
|
+
args: {
|
|
39
|
+
value: never[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
ConstrainedSpace: {
|
|
43
|
+
decorators: ((story: any, context: any) => any)[];
|
|
44
|
+
args: {
|
|
45
|
+
value: ({
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
} | {
|
|
49
|
+
name: string;
|
|
50
|
+
})[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export {};
|