@carto/meridian-ds 2.16.1 → 2.17.0
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/CHANGELOG.md +6 -1
- package/dist/components/index.cjs +55 -23
- package/dist/components/index.js +56 -24
- package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts +13 -0
- package/dist/types/components/AccordionGroup/AccordionGroup.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts +12 -0
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts +24 -1
- package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts +56 -2
- package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts +82 -3
- package/dist/types/components/ChipGroup/ChipGroup.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts +76 -52
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +19 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts +15 -2
- package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts +1 -0
- package/dist/types/components/CopiableComponent/CopiableComponent.stories.d.ts.map +1 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts +40 -1
- package/dist/types/components/CopiableInputText/CopiableInputText.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts +18 -0
- package/dist/types/components/DatePickers/DateCalendar.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts +10 -0
- package/dist/types/components/DatePickers/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts +15 -0
- package/dist/types/components/DatePickers/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts +12 -0
- package/dist/types/components/DatePickers/DateTimePicker/DateTimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts +9 -0
- package/dist/types/components/DatePickers/TimePicker/TimePicker.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts +52 -1
- package/dist/types/components/Dialog/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts +19 -0
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts.map +1 -1
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +36 -3
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -1
- package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts +12 -1
- package/dist/types/components/FilterDropdown/FilterDropdown.stories.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts +63 -0
- package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/types/components/MessageField/MessageField.stories.d.ts +10 -0
- package/dist/types/components/MessageField/MessageField.stories.d.ts.map +1 -1
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts +14 -0
- package/dist/types/components/PasswordField/PasswordField.stories.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.stories.d.ts +7 -0
- package/dist/types/components/SearchField/SearchField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts +52 -0
- package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts +24 -0
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts +20 -4
- package/dist/types/components/Snackbar/Snackbar.stories.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.d.ts +6 -1
- package/dist/types/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.stories.d.ts +27 -0
- package/dist/types/components/SplitButton/SplitButton.stories.d.ts.map +1 -1
- package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts +7 -0
- package/dist/types/components/TablePaginationActions/TablePaginationActions.stories.d.ts.map +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +30 -0
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts.map +1 -1
- package/dist/types/components/UploadField/UploadField.stories.d.ts +25 -1
- package/dist/types/components/UploadField/UploadField.stories.d.ts.map +1 -1
- package/package.json +26 -21
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
## 2.0
|
|
6
6
|
|
|
7
|
+
### 2.17.0
|
|
8
|
+
|
|
9
|
+
- feat(CodeAreaDialog): add `confirmationDialogButtons` prop to override the confirmation's cancel/close actions [#418](https://github.com/CartoDB/meridian-ds/pull/418)
|
|
10
|
+
- Storybook: add interaction tests via `@storybook/addon-vitest` [#407](https://github.com/CartoDB/meridian-ds/pull/407)
|
|
11
|
+
|
|
7
12
|
### 2.16.1
|
|
8
13
|
|
|
9
14
|
- Chore: enable echarts treeshaking by switching `ReactEcharts` to `echarts-for-react/lib/core` and registering only the charts/components actually used [#415](https://github.com/CartoDB/meridian-ds/pull/415)
|
|
10
15
|
|
|
11
16
|
### 2.16.0
|
|
12
17
|
|
|
13
|
-
- feat(
|
|
18
|
+
- feat(Slider): restyle `marks` as a thin vertical break in the rail to act as stop indicators [#410](https://github.com/CartoDB/meridian-ds/pull/410)
|
|
14
19
|
- Feat: add `markLine` prop to `TimeSeriesWidgetUI` for custom reference lines [#409](https://github.com/CartoDB/meridian-ds/pull/409)
|
|
15
20
|
- Chore: remove redundant prepublish lifecycle hook [#404](https://github.com/CartoDB/meridian-ds/pull/404)
|
|
16
21
|
- Test: fill unit testing gaps [#401](https://github.com/CartoDB/meridian-ds/pull/401)
|
|
@@ -144,6 +144,17 @@ function _Button({
|
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
const Button = React.forwardRef(_Button);
|
|
147
|
+
const idCounter = {};
|
|
148
|
+
function uniqueId(prefix = "$lodash$") {
|
|
149
|
+
if (!idCounter[prefix]) {
|
|
150
|
+
idCounter[prefix] = 0;
|
|
151
|
+
}
|
|
152
|
+
const id = ++idCounter[prefix];
|
|
153
|
+
if (prefix === "$lodash$") {
|
|
154
|
+
return `${id}`;
|
|
155
|
+
}
|
|
156
|
+
return `${prefix}${id}`;
|
|
157
|
+
}
|
|
147
158
|
const ButtonGroup = material.styled(material.ButtonGroup)(({ theme, size }) => ({
|
|
148
159
|
"& .MuiButton-root:last-child": {
|
|
149
160
|
padding: 0,
|
|
@@ -160,9 +171,17 @@ function SplitButton({
|
|
|
160
171
|
size,
|
|
161
172
|
color,
|
|
162
173
|
defaultOpen,
|
|
174
|
+
toggleAriaLabel,
|
|
163
175
|
...otherProps
|
|
164
176
|
}) {
|
|
165
177
|
var _a;
|
|
178
|
+
const toggleLabel = paletteUtils.useTranslationWithFallback(
|
|
179
|
+
"c4r.button.showOptions",
|
|
180
|
+
toggleAriaLabel
|
|
181
|
+
);
|
|
182
|
+
const [baseId] = React.useState(() => uniqueId("split-button-"));
|
|
183
|
+
const toggleId = `${baseId}-toggle`;
|
|
184
|
+
const menuId = `${baseId}-menu`;
|
|
166
185
|
const [open, setOpen] = React.useState(defaultOpen ?? false);
|
|
167
186
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
168
187
|
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
@@ -205,7 +224,19 @@ function SplitButton({
|
|
|
205
224
|
children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
|
|
206
225
|
}
|
|
207
226
|
),
|
|
208
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
227
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: toggleLabel, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
+
Button,
|
|
229
|
+
{
|
|
230
|
+
id: toggleId,
|
|
231
|
+
disabled: loading || disabled,
|
|
232
|
+
onClick: handleToggle,
|
|
233
|
+
"aria-label": toggleLabel,
|
|
234
|
+
"aria-haspopup": "menu",
|
|
235
|
+
"aria-expanded": open,
|
|
236
|
+
"aria-controls": open ? menuId : void 0,
|
|
237
|
+
children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {})
|
|
238
|
+
}
|
|
239
|
+
) }) })
|
|
209
240
|
]
|
|
210
241
|
}
|
|
211
242
|
),
|
|
@@ -213,7 +244,7 @@ function SplitButton({
|
|
|
213
244
|
material.Popper,
|
|
214
245
|
{
|
|
215
246
|
sx: { zIndex: 1 },
|
|
216
|
-
open,
|
|
247
|
+
open: open && Boolean(anchorEl),
|
|
217
248
|
anchorEl,
|
|
218
249
|
role: void 0,
|
|
219
250
|
transition: true,
|
|
@@ -226,16 +257,25 @@ function SplitButton({
|
|
|
226
257
|
style: {
|
|
227
258
|
transformOrigin: placement === "bottom" ? "center top" : "center bottom"
|
|
228
259
|
},
|
|
229
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(material.Paper, { elevation: 8, children: /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
material.
|
|
260
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(material.Paper, { elevation: 8, children: /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
261
|
+
material.MenuList,
|
|
231
262
|
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
263
|
+
id: menuId,
|
|
264
|
+
"aria-labelledby": toggleId,
|
|
265
|
+
autoFocusItem: menuAutoFocus,
|
|
266
|
+
sx: { paddingY: 1 },
|
|
267
|
+
children: options.map((option, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
+
material.MenuItem,
|
|
269
|
+
{
|
|
270
|
+
disabled: option.disabled,
|
|
271
|
+
selected: index === selectedIndex,
|
|
272
|
+
onClick: (event) => handleMenuItemClick(event, index),
|
|
273
|
+
children: option.label
|
|
274
|
+
},
|
|
275
|
+
option.label
|
|
276
|
+
))
|
|
277
|
+
}
|
|
278
|
+
) }) })
|
|
239
279
|
}
|
|
240
280
|
)
|
|
241
281
|
}
|
|
@@ -353,17 +393,6 @@ function _PasswordField({
|
|
|
353
393
|
);
|
|
354
394
|
}
|
|
355
395
|
const PasswordField = React.forwardRef(_PasswordField);
|
|
356
|
-
const idCounter = {};
|
|
357
|
-
function uniqueId(prefix = "$lodash$") {
|
|
358
|
-
if (!idCounter[prefix]) {
|
|
359
|
-
idCounter[prefix] = 0;
|
|
360
|
-
}
|
|
361
|
-
const id = ++idCounter[prefix];
|
|
362
|
-
if (prefix === "$lodash$") {
|
|
363
|
-
return `${id}`;
|
|
364
|
-
}
|
|
365
|
-
return `${prefix}${id}`;
|
|
366
|
-
}
|
|
367
396
|
const StyledSelect = material.styled(material.Select)(({ theme }) => ({
|
|
368
397
|
"& .MuiInputAdornment-positionStart": {
|
|
369
398
|
paddingLeft: theme.spacing(2),
|
|
@@ -3817,6 +3846,7 @@ function CodeAreaDialog({
|
|
|
3817
3846
|
onCancelConfirm,
|
|
3818
3847
|
onCloseConfirm,
|
|
3819
3848
|
confirmationDialogTexts,
|
|
3849
|
+
confirmationDialogButtons = {},
|
|
3820
3850
|
footerProps,
|
|
3821
3851
|
saveLoading,
|
|
3822
3852
|
showSaveSnackbar,
|
|
@@ -3885,7 +3915,9 @@ function CodeAreaDialog({
|
|
|
3885
3915
|
titleText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.titleText,
|
|
3886
3916
|
contentText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.contentText,
|
|
3887
3917
|
cancelText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.cancelText,
|
|
3888
|
-
leaveText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.leaveText
|
|
3918
|
+
leaveText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.leaveText,
|
|
3919
|
+
cancelButton: confirmationDialogButtons.cancelButton,
|
|
3920
|
+
closeButton: confirmationDialogButtons.closeButton
|
|
3889
3921
|
}
|
|
3890
3922
|
)
|
|
3891
3923
|
]
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React, { forwardRef, useState, useRef, useEffect, useMemo, createElement, Fragment as Fragment$1, useCallback, useImperativeHandle } from "react";
|
|
3
|
-
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText as ListItemText$1,
|
|
3
|
+
import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Tooltip, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText as ListItemText$1, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip as Chip$1, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
|
|
4
4
|
import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
|
|
5
5
|
import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, ArrowBackOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
|
|
6
6
|
import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, o as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, l as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, p as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles, r as resolvePalettePath } from "../palette-utils-gZwK5wCD.js";
|
|
@@ -128,6 +128,17 @@ function _Button({
|
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
const Button = forwardRef(_Button);
|
|
131
|
+
const idCounter = {};
|
|
132
|
+
function uniqueId(prefix = "$lodash$") {
|
|
133
|
+
if (!idCounter[prefix]) {
|
|
134
|
+
idCounter[prefix] = 0;
|
|
135
|
+
}
|
|
136
|
+
const id = ++idCounter[prefix];
|
|
137
|
+
if (prefix === "$lodash$") {
|
|
138
|
+
return `${id}`;
|
|
139
|
+
}
|
|
140
|
+
return `${prefix}${id}`;
|
|
141
|
+
}
|
|
131
142
|
const ButtonGroup = styled(ButtonGroup$1)(({ theme, size }) => ({
|
|
132
143
|
"& .MuiButton-root:last-child": {
|
|
133
144
|
padding: 0,
|
|
@@ -144,9 +155,17 @@ function SplitButton({
|
|
|
144
155
|
size,
|
|
145
156
|
color,
|
|
146
157
|
defaultOpen,
|
|
158
|
+
toggleAriaLabel,
|
|
147
159
|
...otherProps
|
|
148
160
|
}) {
|
|
149
161
|
var _a;
|
|
162
|
+
const toggleLabel = useTranslationWithFallback(
|
|
163
|
+
"c4r.button.showOptions",
|
|
164
|
+
toggleAriaLabel
|
|
165
|
+
);
|
|
166
|
+
const [baseId] = useState(() => uniqueId("split-button-"));
|
|
167
|
+
const toggleId = `${baseId}-toggle`;
|
|
168
|
+
const menuId = `${baseId}-menu`;
|
|
150
169
|
const [open, setOpen] = useState(defaultOpen ?? false);
|
|
151
170
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
152
171
|
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
@@ -189,7 +208,19 @@ function SplitButton({
|
|
|
189
208
|
children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
|
|
190
209
|
}
|
|
191
210
|
),
|
|
192
|
-
/* @__PURE__ */ jsx(
|
|
211
|
+
/* @__PURE__ */ jsx(Tooltip, { title: toggleLabel, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
212
|
+
Button,
|
|
213
|
+
{
|
|
214
|
+
id: toggleId,
|
|
215
|
+
disabled: loading || disabled,
|
|
216
|
+
onClick: handleToggle,
|
|
217
|
+
"aria-label": toggleLabel,
|
|
218
|
+
"aria-haspopup": "menu",
|
|
219
|
+
"aria-expanded": open,
|
|
220
|
+
"aria-controls": open ? menuId : void 0,
|
|
221
|
+
children: open ? /* @__PURE__ */ jsx(ForwardedComponent, {}) : /* @__PURE__ */ jsx(ForwardedComponent$1, {})
|
|
222
|
+
}
|
|
223
|
+
) }) })
|
|
193
224
|
]
|
|
194
225
|
}
|
|
195
226
|
),
|
|
@@ -197,7 +228,7 @@ function SplitButton({
|
|
|
197
228
|
Popper,
|
|
198
229
|
{
|
|
199
230
|
sx: { zIndex: 1 },
|
|
200
|
-
open,
|
|
231
|
+
open: open && Boolean(anchorEl),
|
|
201
232
|
anchorEl,
|
|
202
233
|
role: void 0,
|
|
203
234
|
transition: true,
|
|
@@ -210,16 +241,25 @@ function SplitButton({
|
|
|
210
241
|
style: {
|
|
211
242
|
transformOrigin: placement === "bottom" ? "center top" : "center bottom"
|
|
212
243
|
},
|
|
213
|
-
children: /* @__PURE__ */ jsx(Paper, { elevation: 8, children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsx(
|
|
214
|
-
|
|
244
|
+
children: /* @__PURE__ */ jsx(Paper, { elevation: 8, children: /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsx(
|
|
245
|
+
MenuList$1,
|
|
215
246
|
{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
247
|
+
id: menuId,
|
|
248
|
+
"aria-labelledby": toggleId,
|
|
249
|
+
autoFocusItem: menuAutoFocus,
|
|
250
|
+
sx: { paddingY: 1 },
|
|
251
|
+
children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
252
|
+
MenuItem,
|
|
253
|
+
{
|
|
254
|
+
disabled: option.disabled,
|
|
255
|
+
selected: index === selectedIndex,
|
|
256
|
+
onClick: (event) => handleMenuItemClick(event, index),
|
|
257
|
+
children: option.label
|
|
258
|
+
},
|
|
259
|
+
option.label
|
|
260
|
+
))
|
|
261
|
+
}
|
|
262
|
+
) }) })
|
|
223
263
|
}
|
|
224
264
|
)
|
|
225
265
|
}
|
|
@@ -337,17 +377,6 @@ function _PasswordField({
|
|
|
337
377
|
);
|
|
338
378
|
}
|
|
339
379
|
const PasswordField = forwardRef(_PasswordField);
|
|
340
|
-
const idCounter = {};
|
|
341
|
-
function uniqueId(prefix = "$lodash$") {
|
|
342
|
-
if (!idCounter[prefix]) {
|
|
343
|
-
idCounter[prefix] = 0;
|
|
344
|
-
}
|
|
345
|
-
const id = ++idCounter[prefix];
|
|
346
|
-
if (prefix === "$lodash$") {
|
|
347
|
-
return `${id}`;
|
|
348
|
-
}
|
|
349
|
-
return `${prefix}${id}`;
|
|
350
|
-
}
|
|
351
380
|
const StyledSelect = styled(Select)(({ theme }) => ({
|
|
352
381
|
"& .MuiInputAdornment-positionStart": {
|
|
353
382
|
paddingLeft: theme.spacing(2),
|
|
@@ -3801,6 +3830,7 @@ function CodeAreaDialog({
|
|
|
3801
3830
|
onCancelConfirm,
|
|
3802
3831
|
onCloseConfirm,
|
|
3803
3832
|
confirmationDialogTexts,
|
|
3833
|
+
confirmationDialogButtons = {},
|
|
3804
3834
|
footerProps,
|
|
3805
3835
|
saveLoading,
|
|
3806
3836
|
showSaveSnackbar,
|
|
@@ -3869,7 +3899,9 @@ function CodeAreaDialog({
|
|
|
3869
3899
|
titleText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.titleText,
|
|
3870
3900
|
contentText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.contentText,
|
|
3871
3901
|
cancelText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.cancelText,
|
|
3872
|
-
leaveText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.leaveText
|
|
3902
|
+
leaveText: confirmationDialogTexts == null ? void 0 : confirmationDialogTexts.leaveText,
|
|
3903
|
+
cancelButton: confirmationDialogButtons.cancelButton,
|
|
3904
|
+
closeButton: confirmationDialogButtons.closeButton
|
|
3873
3905
|
}
|
|
3874
3906
|
)
|
|
3875
3907
|
]
|
|
@@ -42,6 +42,19 @@ export declare const Playground: {
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
+
export declare const Interaction: {
|
|
46
|
+
render: (props: AccordionGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
tags: string[];
|
|
48
|
+
args: {
|
|
49
|
+
items: {
|
|
50
|
+
summary: string;
|
|
51
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
play: ({ canvasElement }: {
|
|
55
|
+
canvasElement: HTMLElement;
|
|
56
|
+
}) => Promise<void>;
|
|
57
|
+
};
|
|
45
58
|
export declare const Guide: {
|
|
46
59
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
47
60
|
parameters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AccordionGroup/AccordionGroup.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccordionGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AccordionGroup/AccordionGroup.stories.tsx"],"names":[],"mappings":"AAcA,OAAO,EAEL,mBAAmB,EAIpB,MAAM,cAAc,CAAA;AAErB,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CAsB0B,CAAA;AACvC,eAAe,OAAO,CAAA;AA+MtB,eAAO,MAAM,UAAU;oBAvJY,mBAAmB;;;;;;;;;;;;;;;;;CA+JrD,CAAA;AAED,eAAO,MAAM,WAAW;oBAjKW,mBAAmB;;;;;;;;8BAuKpB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CA4B/D,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,QAAQ;oBAxMS,mBAAmB;;;;;;;;CA2MhD,CAAA;AAED,eAAO,MAAM,IAAI;oBA1LY,mBAAmB;;;;;;;;CA6L/C,CAAA;AAED,eAAO,MAAM,OAAO;oBA5KY,mBAAmB;;;;;;;;;;;;;;;;CA0NlD,CAAA;AAED,eAAO,MAAM,gBAAgB;oBAtQM,mBAAmB;;;;;;;;CA8QrD,CAAA;AAED,eAAO,MAAM,gBAAgB;oBAhRM,mBAAmB;;;;;;;;;;;;;;;;CA0RrD,CAAA;AAED,eAAO,MAAM,iCAAiC;oBA5RX,mBAAmB;;;;;;;;;;;;;;;;;;CAsSrD,CAAA;AAED,eAAO,MAAM,QAAQ;oBAxKY,mBAAmB;;;;;;;;CA2KnD,CAAA"}
|
|
@@ -81,6 +81,18 @@ export declare const Playground: {
|
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
+
export declare const Interaction: {
|
|
85
|
+
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, ...props }: AutocompleteProps<(typeof top100Films)[number], boolean> & AutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
tags: string[];
|
|
87
|
+
args: {
|
|
88
|
+
label: string;
|
|
89
|
+
placeholder: string;
|
|
90
|
+
helperText: string;
|
|
91
|
+
};
|
|
92
|
+
play: ({ canvasElement }: {
|
|
93
|
+
canvasElement: HTMLElement;
|
|
94
|
+
}) => Promise<void>;
|
|
95
|
+
};
|
|
84
96
|
export declare const Variants: {
|
|
85
97
|
render: ({ label, placeholder, helperText, error, size, required, disableCloseOnSelect, ...props }: AutocompleteProps<(typeof top100Films)[number]> & AutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
98
|
args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Autoc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iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,sBAAsB;;;;;;;;;;;;;;CAuiB9D,CAAA;AAED,eAAO,MAAM,qBAAqB;+FAhS/B,iBAAiB,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAAG,sBAAsB;;;;;;;;;;;;;CA2SvE,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;wGA9iDrB,iBAAiB,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC,GAChD,sBAAsB;;;;;;;;;;;;;CAkjDvB,CAAA"}
|
package/dist/types/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.d.ts
CHANGED
|
@@ -111,6 +111,25 @@ export declare const Playground: {
|
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
+
export declare const Interaction: {
|
|
115
|
+
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, extended, options, ...props }: CreatableAutocompleteProps<(typeof top100Films)[number]> & AutocompleteInputProps & {
|
|
116
|
+
options?: unknown[];
|
|
117
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
tags: string[];
|
|
119
|
+
args: {
|
|
120
|
+
label: string;
|
|
121
|
+
placeholder: string;
|
|
122
|
+
helperText: string;
|
|
123
|
+
};
|
|
124
|
+
parameters: {
|
|
125
|
+
chromatic: {
|
|
126
|
+
delay: number;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
play: ({ canvasElement }: {
|
|
130
|
+
canvasElement: HTMLElement;
|
|
131
|
+
}) => Promise<void>;
|
|
132
|
+
};
|
|
114
133
|
export declare const Guide: {
|
|
115
134
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
116
135
|
parameters: {
|
|
@@ -151,8 +170,9 @@ export declare const Multiple: {
|
|
|
151
170
|
};
|
|
152
171
|
};
|
|
153
172
|
};
|
|
154
|
-
export declare const
|
|
173
|
+
export declare const InteractionCustomNewOption: {
|
|
155
174
|
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, ...props }: CreatableAutocompleteProps<(typeof top100Films)[number]> & AutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
tags: string[];
|
|
156
176
|
args: {
|
|
157
177
|
label: string;
|
|
158
178
|
placeholder: string;
|
|
@@ -165,6 +185,9 @@ export declare const CustomNewOption: {
|
|
|
165
185
|
};
|
|
166
186
|
};
|
|
167
187
|
};
|
|
188
|
+
play: ({ canvasElement }: {
|
|
189
|
+
canvasElement: HTMLElement;
|
|
190
|
+
}) => Promise<void>;
|
|
168
191
|
};
|
|
169
192
|
export declare const GroupedVirtualization: {
|
|
170
193
|
render: ({ label, placeholder, error, size, required, helperText, disableCloseOnSelect, }: CreatableAutocompleteProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatableAutocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreatableAutocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/CreatableAutocomplete/CreatableAutocomplete.stories.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,0BAA0B,EAAuB,MAAM,UAAU,CAAA;AAQ1E,OAAO,EAGL,kBAAkB,EACnB,MAAM,2BAA2B,CAAA;AASlC,QAAA,MAAM,OAAO;;iNAgIsC,WACnD;WASM,CAAC;kOA5IgC,WAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFjC,CAAA;AAChB,eAAe,OAAO,CAAA;AAEtB,QAAA,MAAM,WAAW,sBAAmB,CAAA;AAUpC,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAA;IAC9B,WAAW,EAA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B,CAAA;AAED,eAAO,MAAM,YAAY;oIAz9BtB,0BAA0B,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC,GACzD,sBAAsB,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4+BjD,CAAA;AAED,eAAO,MAAM,oBAAoB;oIA/+B9B,0BAA0B,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC,GACzD,sBAAsB,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAggCjD,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;oIAngCrB,0BAA0B,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC,GACzD,sBAAsB,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE;;;;;;;;;;;;;CAygCjD,CAAA"}
|
package/dist/types/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.d.ts
CHANGED
|
@@ -112,6 +112,30 @@ export declare const Playground: {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
+
export declare const Interaction: {
|
|
116
|
+
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, extended, options, ...props }: AutocompleteProps<(typeof top100Films)[number], boolean> & MultipleAutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
tags: string[];
|
|
118
|
+
args: {
|
|
119
|
+
label: string;
|
|
120
|
+
placeholder: string;
|
|
121
|
+
helperText: string;
|
|
122
|
+
};
|
|
123
|
+
argTypes: {
|
|
124
|
+
multiple: {
|
|
125
|
+
table: {
|
|
126
|
+
disable: boolean;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
parameters: {
|
|
131
|
+
chromatic: {
|
|
132
|
+
delay: number;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
play: ({ canvasElement }: {
|
|
136
|
+
canvasElement: HTMLElement;
|
|
137
|
+
}) => Promise<void>;
|
|
138
|
+
};
|
|
115
139
|
export declare const Guide: {
|
|
116
140
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
117
141
|
parameters: {
|
|
@@ -145,8 +169,9 @@ export declare const States: {
|
|
|
145
169
|
};
|
|
146
170
|
};
|
|
147
171
|
};
|
|
148
|
-
export declare const
|
|
172
|
+
export declare const InteractionShowFilters: {
|
|
149
173
|
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, extended, options, ...props }: AutocompleteProps<(typeof top100Films)[number], boolean> & MultipleAutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
|
+
tags: string[];
|
|
150
175
|
args: {
|
|
151
176
|
showFilters: boolean;
|
|
152
177
|
label: string;
|
|
@@ -159,9 +184,38 @@ export declare const ShowFilters: {
|
|
|
159
184
|
story: string;
|
|
160
185
|
};
|
|
161
186
|
};
|
|
187
|
+
chromatic: {
|
|
188
|
+
delay: number;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
play: ({ canvasElement }: {
|
|
192
|
+
canvasElement: HTMLElement;
|
|
193
|
+
}) => Promise<void>;
|
|
194
|
+
};
|
|
195
|
+
export declare const InteractionShowCounter: {
|
|
196
|
+
render: ({ label, variant, placeholder, helperText, error, size, required, disableCloseOnSelect, extended, options, ...props }: AutocompleteProps<(typeof top100Films)[number], boolean> & MultipleAutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
197
|
+
tags: string[];
|
|
198
|
+
args: {
|
|
199
|
+
showCounter: boolean;
|
|
200
|
+
label: string;
|
|
201
|
+
placeholder: string;
|
|
202
|
+
helperText: string;
|
|
203
|
+
};
|
|
204
|
+
parameters: {
|
|
205
|
+
docs: {
|
|
206
|
+
description: {
|
|
207
|
+
story: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
chromatic: {
|
|
211
|
+
delay: number;
|
|
212
|
+
};
|
|
162
213
|
};
|
|
214
|
+
play: ({ canvasElement }: {
|
|
215
|
+
canvasElement: HTMLElement;
|
|
216
|
+
}) => Promise<void>;
|
|
163
217
|
};
|
|
164
|
-
export declare const
|
|
218
|
+
export declare const CounterFormatters: {
|
|
165
219
|
render: ({ label, placeholder, error, size, required, helperText, disableCloseOnSelect, ...props }: AutocompleteProps<(typeof top100Films)[number], true, false, false> & MultipleAutocompleteInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
166
220
|
args: {
|
|
167
221
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleAutocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultipleAutocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Autocomplete/MultipleAutocomplete/MultipleAutocomplete.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAQ5C,OAAO,EAGL,kBAAkB,EACnB,MAAM,2BAA2B,CAAA;AASlC,QAAA,MAAM,OAAO;;4MA0FD,WAAW;WAOX,CAAC;6NAnGN,WAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ED,CAAA;AAChB,eAAe,OAAO,CAAA;AAEtB,QAAA,MAAM,WAAW,sBAAmB,CAAA;AAUpC,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,GAAG,QAAQ,CA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AqgB/B,CAAA;AAED,eAAO,MAAM,cAAc;oIA3vBxB,iBAAiB,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,GACzD,8BAA8B;;;;;;;CAgwB/B,CAAA;AAED,eAAO,MAAM,YAAY;oIAnwBtB,iBAAiB,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,GACzD,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsxB/B,CAAA;AAED,eAAO,MAAM,oBAAoB;oIAzxB9B,iBAAiB,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,GACzD,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyyB/B,CAAA;AAED,eAAO,MAAM,qBAAqB;+FApY/B,iBAAiB,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAC3E,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;CAmZ/B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;wGA1xBrB,iBAAiB,CAAC,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GACpE,8BAA8B;;;;;;;;;;;;;;;;;;CAiyB/B,CAAA"}
|
|
@@ -107,6 +107,64 @@ export declare const Playground: {
|
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
+
export declare const Interaction: {
|
|
111
|
+
render: ({ chips, variant, color, size, ...rest }: PlaygroundStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
tags: string[];
|
|
113
|
+
args: {
|
|
114
|
+
variant: string;
|
|
115
|
+
color: string;
|
|
116
|
+
size: string;
|
|
117
|
+
};
|
|
118
|
+
argTypes: {
|
|
119
|
+
variant: {
|
|
120
|
+
options: string[];
|
|
121
|
+
control: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
table: {
|
|
125
|
+
category: string;
|
|
126
|
+
defaultValue: {
|
|
127
|
+
summary: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
color: {
|
|
133
|
+
options: string[];
|
|
134
|
+
control: {
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
table: {
|
|
138
|
+
category: string;
|
|
139
|
+
defaultValue: {
|
|
140
|
+
summary: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
size: {
|
|
146
|
+
options: string[];
|
|
147
|
+
control: {
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
table: {
|
|
151
|
+
category: string;
|
|
152
|
+
defaultValue: {
|
|
153
|
+
summary: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
description: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
parameters: {
|
|
160
|
+
chromatic: {
|
|
161
|
+
delay: number;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
play: ({ canvasElement }: {
|
|
165
|
+
canvasElement: HTMLElement;
|
|
166
|
+
}) => Promise<void>;
|
|
167
|
+
};
|
|
110
168
|
export declare const Variant: {
|
|
111
169
|
render: ({ chips, ...rest }: ChipGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
112
170
|
};
|
|
@@ -122,14 +180,35 @@ export declare const Disabled: {
|
|
|
122
180
|
disabled: boolean;
|
|
123
181
|
};
|
|
124
182
|
};
|
|
125
|
-
export declare const
|
|
183
|
+
export declare const InteractionMaxLengthChip: {
|
|
126
184
|
render: ({ chips, variant, color, size, ...rest }: PlaygroundStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
185
|
+
tags: string[];
|
|
127
186
|
args: {
|
|
128
187
|
maxLengthChip: number;
|
|
129
188
|
};
|
|
189
|
+
parameters: {
|
|
190
|
+
chromatic: {
|
|
191
|
+
delay: number;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
play: ({ canvasElement }: {
|
|
195
|
+
canvasElement: HTMLElement;
|
|
196
|
+
}) => Promise<void>;
|
|
130
197
|
};
|
|
131
|
-
export declare const
|
|
132
|
-
render: ({ chips, ...rest }:
|
|
198
|
+
export declare const InteractionMaxVisibleChips: {
|
|
199
|
+
render: ({ chips, variant, color, size, ...rest }: PlaygroundStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
200
|
+
tags: string[];
|
|
201
|
+
args: {
|
|
202
|
+
maxVisibleChips: number;
|
|
203
|
+
};
|
|
204
|
+
parameters: {
|
|
205
|
+
chromatic: {
|
|
206
|
+
delay: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
play: ({ canvasElement }: {
|
|
210
|
+
canvasElement: HTMLElement;
|
|
211
|
+
}) => Promise<void>;
|
|
133
212
|
};
|
|
134
213
|
export declare const Behavior: {
|
|
135
214
|
render: ({ ...rest }: ChipGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAQ,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"ChipGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAQ,MAAM,eAAe,CAAA;AAUpD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGxC;;GAEG;AACH,UAAU,oBAAqB,SAAQ,cAAc;IACnD,wDAAwD;IACxD,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC9B,s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