@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { default as CodeAreaField } from './CodeAreaField/CodeAreaField';
|
|
2
3
|
interface PlaygroundTemplateProps {
|
|
3
4
|
value?: string;
|
|
@@ -77,6 +78,14 @@ declare const options: {
|
|
|
77
78
|
};
|
|
78
79
|
};
|
|
79
80
|
export default options;
|
|
81
|
+
type ConfirmationDialogButtons = {
|
|
82
|
+
cancelButton?: React.ReactNode;
|
|
83
|
+
closeButton?: React.ReactNode;
|
|
84
|
+
};
|
|
85
|
+
type ConfirmationDialogButtonsArg = ConfirmationDialogButtons | ((handlers: {
|
|
86
|
+
onCloseConfirm: () => void;
|
|
87
|
+
onCancelConfirm: () => void;
|
|
88
|
+
}) => ConfirmationDialogButtons);
|
|
80
89
|
export declare const Playground: {
|
|
81
90
|
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
82
91
|
parameters: {
|
|
@@ -111,65 +120,92 @@ export declare const States: {
|
|
|
111
120
|
};
|
|
112
121
|
};
|
|
113
122
|
};
|
|
114
|
-
export declare const ReadOnly: {
|
|
115
|
-
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
116
|
-
args: {
|
|
117
|
-
options: {
|
|
118
|
-
readOnly: boolean;
|
|
119
|
-
};
|
|
120
|
-
value: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
123
|
export declare const Mode: {
|
|
124
124
|
render: ({ value, ...args }: {
|
|
125
125
|
value?: string;
|
|
126
126
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
127
127
|
};
|
|
128
|
-
export declare const
|
|
128
|
+
export declare const CustomTextMarking: {
|
|
129
129
|
render: ({ value, ...args }: {
|
|
130
130
|
value?: string;
|
|
131
131
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
132
132
|
};
|
|
133
|
-
export declare const
|
|
134
|
-
render: ({ value, ...args }: {
|
|
135
|
-
value?: string;
|
|
136
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
137
|
-
};
|
|
138
|
-
export declare const ExpandAutosave: {
|
|
133
|
+
export declare const InteractionExpandAutosave: {
|
|
139
134
|
render: ({ value, variant, title, label, ...args }: ExpandWithSaveButtonTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
135
|
+
tags: string[];
|
|
140
136
|
args: {
|
|
141
137
|
footerProps: {
|
|
142
138
|
alertContent: string;
|
|
143
139
|
};
|
|
144
140
|
title: string;
|
|
145
141
|
};
|
|
142
|
+
play: ({ canvasElement }: {
|
|
143
|
+
canvasElement: HTMLElement;
|
|
144
|
+
}) => Promise<void>;
|
|
146
145
|
};
|
|
147
|
-
export declare const
|
|
148
|
-
render: ({ value, variant, title, label, ...args }: ExpandWithSaveButtonTemplateProps
|
|
146
|
+
export declare const InteractionExpandWithSaveButton: {
|
|
147
|
+
render: ({ value, variant, title, label, confirmationDialogButtons, ...args }: ExpandWithSaveButtonTemplateProps & {
|
|
148
|
+
confirmationDialogButtons?: ConfirmationDialogButtonsArg;
|
|
149
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
150
|
+
tags: string[];
|
|
149
151
|
args: {
|
|
150
152
|
footerProps: {
|
|
151
153
|
alertContent: string;
|
|
152
154
|
};
|
|
153
155
|
title: string;
|
|
154
156
|
};
|
|
157
|
+
play: ({ canvasElement }: {
|
|
158
|
+
canvasElement: HTMLElement;
|
|
159
|
+
}) => Promise<void>;
|
|
155
160
|
};
|
|
156
|
-
export declare const
|
|
157
|
-
render: ({ value, ...args }:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
export declare const InteractionExpandWithDestructiveLeaveButton: {
|
|
162
|
+
render: ({ value, variant, title, label, confirmationDialogButtons, ...args }: ExpandWithSaveButtonTemplateProps & {
|
|
163
|
+
confirmationDialogButtons?: ConfirmationDialogButtonsArg;
|
|
164
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
165
|
+
tags: string[];
|
|
161
166
|
args: {
|
|
167
|
+
footerProps: {
|
|
168
|
+
alertContent: string;
|
|
169
|
+
};
|
|
170
|
+
confirmationDialogButtons: ({ onCloseConfirm, onCancelConfirm, }: {
|
|
171
|
+
onCloseConfirm: () => void;
|
|
172
|
+
onCancelConfirm: () => void;
|
|
173
|
+
}) => {
|
|
174
|
+
cancelButton: import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
closeButton: import("react/jsx-runtime").JSX.Element;
|
|
176
|
+
};
|
|
162
177
|
title: string;
|
|
163
178
|
};
|
|
179
|
+
parameters: {
|
|
180
|
+
chromatic: {
|
|
181
|
+
delay: number;
|
|
182
|
+
};
|
|
183
|
+
docs: {
|
|
184
|
+
description: {
|
|
185
|
+
story: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
play: ({ canvasElement }: {
|
|
190
|
+
canvasElement: HTMLElement;
|
|
191
|
+
}) => Promise<void>;
|
|
192
|
+
};
|
|
193
|
+
export declare const InteractionCopyAction: {
|
|
194
|
+
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
195
|
+
tags: string[];
|
|
196
|
+
play: ({ canvasElement }: {
|
|
197
|
+
canvasElement: HTMLElement;
|
|
198
|
+
}) => Promise<void>;
|
|
164
199
|
};
|
|
165
|
-
export declare const
|
|
200
|
+
export declare const InteractionExpandAndCopyAction: {
|
|
166
201
|
render: ({ value, variant, title, label, ...args }: ExpandWithSaveButtonTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
202
|
+
tags: string[];
|
|
167
203
|
args: {
|
|
168
204
|
title: string;
|
|
169
205
|
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
206
|
+
play: ({ canvasElement }: {
|
|
207
|
+
canvasElement: HTMLElement;
|
|
208
|
+
}) => Promise<void>;
|
|
173
209
|
};
|
|
174
210
|
export declare const CustomSaveLabelAction: {
|
|
175
211
|
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -177,17 +213,6 @@ export declare const CustomSaveLabelAction: {
|
|
|
177
213
|
buttonFooterLabelId: string;
|
|
178
214
|
};
|
|
179
215
|
};
|
|
180
|
-
export declare const Errors: {
|
|
181
|
-
render: ({ value, variant, title, label, ...args }: ExpandWithSaveButtonTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
182
|
-
args: {
|
|
183
|
-
error: boolean;
|
|
184
|
-
helperText: string;
|
|
185
|
-
footerProps: {
|
|
186
|
-
alertContent: string;
|
|
187
|
-
};
|
|
188
|
-
title: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
216
|
export declare const FoldCode: {
|
|
192
217
|
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
193
218
|
args: {
|
|
@@ -224,7 +249,7 @@ export declare const FullScreen: {
|
|
|
224
249
|
};
|
|
225
250
|
};
|
|
226
251
|
export declare const Autocompletion: {
|
|
227
|
-
render: (args: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
252
|
+
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
228
253
|
parameters: {
|
|
229
254
|
docs: {
|
|
230
255
|
description: {
|
|
@@ -233,8 +258,8 @@ export declare const Autocompletion: {
|
|
|
233
258
|
};
|
|
234
259
|
};
|
|
235
260
|
};
|
|
236
|
-
export declare const
|
|
237
|
-
render: (args: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
261
|
+
export declare const AutocompletionWithHighlight: {
|
|
262
|
+
render: ({ value, ...args }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
238
263
|
parameters: {
|
|
239
264
|
docs: {
|
|
240
265
|
description: {
|
|
@@ -243,24 +268,23 @@ export declare const AutocompletionStyling: {
|
|
|
243
268
|
};
|
|
244
269
|
};
|
|
245
270
|
};
|
|
246
|
-
export declare const
|
|
247
|
-
|
|
271
|
+
export declare const PseudoHover: {
|
|
272
|
+
tags: string[];
|
|
248
273
|
parameters: {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
274
|
+
pseudo: {
|
|
275
|
+
hover?: string | boolean | readonly string[];
|
|
276
|
+
focus?: string | boolean | readonly string[];
|
|
277
|
+
focusVisible?: string | boolean | readonly string[];
|
|
278
|
+
active?: string | boolean | readonly string[];
|
|
279
|
+
visited?: string | boolean | readonly string[];
|
|
280
|
+
rootSelector?: string;
|
|
253
281
|
};
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
export declare const AutocompletionWithHighlight: {
|
|
257
|
-
render: (args: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
258
|
-
parameters: {
|
|
259
282
|
docs: {
|
|
260
283
|
description: {
|
|
261
284
|
story: string;
|
|
262
285
|
};
|
|
263
286
|
};
|
|
264
287
|
};
|
|
288
|
+
render: ({ value, ...rest }: PlaygroundTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
265
289
|
};
|
|
266
290
|
//# sourceMappingURL=CodeArea.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeArea.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeArea/CodeArea.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeArea.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeArea/CodeArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,OAAO,aAAa,MAAM,+BAA+B,CAAA;AA2BzD,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,UAAU,iCAAiC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,UAAU,wBAAyB,SAAQ,uBAAuB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDyB,CAAA;AAEtC,eAAe,OAAO,CAAA;AActB,KA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;;;8BAsB6B;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAsB/D,CAAA;AAED,eAAO,MAAM,qBAAqB;iCAx8Bc,uBAAuB;;8BA28BrC;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAS/D,CAAA;AAED,eAAO,MAAM,8BAA8B;wDA/7BxC,iCAAiC;;;;;8BAq8BF;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAoB/D,CAAA;AAED,eAAO,MAAM,qBAAqB;iCA/6Bc,uBAAuB;;;;CAo7BtE,CAAA;AAED,eAAO,MAAM,QAAQ;iCAvqC2B,uBAAuB;;;;;;;;CAgrCtE,CAAA;AAED,eAAO,MAAM,iBAAiB;iCAlrCkB,uBAAuB;;;;;;;;;CA4rCtE,CAAA;AAED,eAAO,MAAM,WAAW;iCA9rCwB,uBAAuB;;;;;CAosCtE,CAAA;AAED,eAAO,MAAM,UAAU;iCAtsCyB,uBAAuB;;;;;CA4sCtE,CAAA;AAED,eAAO,MAAM,cAAc;iCAjaxB,uBAAuB;;;;;;;;CA2azB,CAAA;AAED,eAAO,MAAM,2BAA2B;iCAtXrC,uBAAuB;;;;;;;;CAgYzB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;iCAl9BqB,uBAAuB;CAq9BnE,CAAA"}
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { CodeAreaProps } from '../types';
|
|
3
3
|
interface CodeAreaDialogProps extends CodeAreaProps {
|
|
4
|
+
/** Whether the dialog is open. */
|
|
4
5
|
open: boolean;
|
|
6
|
+
/** Called when the user requests to close the dialog (header close button or backdrop). */
|
|
5
7
|
onClose: () => void;
|
|
8
|
+
/** Dialog header title. */
|
|
6
9
|
title?: string | ReactNode;
|
|
10
|
+
/** Show the unsaved-changes confirmation overlay on top of the dialog. */
|
|
7
11
|
showConfirmation?: boolean;
|
|
12
|
+
/** Called when the user cancels the confirmation (keeps editing). */
|
|
8
13
|
onCancelConfirm?: () => void;
|
|
14
|
+
/** Called when the user confirms (leaves) the confirmation. Defaults to `onClose`. */
|
|
9
15
|
onCloseConfirm?: () => void;
|
|
16
|
+
/** Text overrides for the unsaved-changes confirmation dialog. */
|
|
10
17
|
confirmationDialogTexts?: {
|
|
11
18
|
titleText?: string;
|
|
12
19
|
contentText?: string;
|
|
13
20
|
cancelText?: string;
|
|
14
21
|
leaveText?: string;
|
|
15
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Override the cancel/close buttons of the unsaved-changes confirmation.
|
|
25
|
+
* Consumer owns the `onClick` (`onCancelConfirm` / `onCloseConfirm ?? onClose`).
|
|
26
|
+
*/
|
|
27
|
+
confirmationDialogButtons?: {
|
|
28
|
+
cancelButton?: ReactNode;
|
|
29
|
+
closeButton?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
/** Props forwarded to the underlying `DialogFooter`. */
|
|
16
32
|
footerProps?: object;
|
|
33
|
+
/** Test id forwarded to the dialog root. */
|
|
17
34
|
'data-testid'?: string;
|
|
35
|
+
/** Accessible label forwarded to the dialog root. */
|
|
18
36
|
'aria-label'?: string;
|
|
19
37
|
}
|
|
20
|
-
export default function CodeAreaDialog({ open, onClose, title, error, helperText, onClickFooter, disabledButtonFooter, buttonFooterLabelId, disabled, showConfirmation, onCancelConfirm, onCloseConfirm, confirmationDialogTexts, footerProps, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
38
|
+
export default function CodeAreaDialog({ open, onClose, title, error, helperText, onClickFooter, disabledButtonFooter, buttonFooterLabelId, disabled, showConfirmation, onCancelConfirm, onCloseConfirm, confirmationDialogTexts, confirmationDialogButtons, footerProps, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
39
|
export {};
|
|
22
40
|
//# sourceMappingURL=CodeAreaDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeAreaDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/CodeArea/CodeAreaDialog/CodeAreaDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,UAAU,mBAAoB,SAAQ,aAAa;IACjD,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,uBAAuB,CAAC,EAAE;QACxB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CodeA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vB,yBAA8B,EAC9B,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,mBAAmB,kDAsErB"}
|
package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { CartoAlertSeverity } from '../../..';
|
|
3
|
-
interface
|
|
3
|
+
interface CodeAreaDialogConfirmationProps {
|
|
4
|
+
/** Called when the user confirms (leaves) — wired to the close button. */
|
|
4
5
|
onClose?: () => void;
|
|
6
|
+
/** Called when the user cancels (keeps editing) — wired to the cancel button. */
|
|
5
7
|
onCancel?: () => void;
|
|
8
|
+
/** Custom node that fully replaces the default cancel button. */
|
|
6
9
|
cancelButton?: ReactNode;
|
|
10
|
+
/** Custom node that fully replaces the default close (leave) button. */
|
|
7
11
|
closeButton?: ReactNode;
|
|
12
|
+
/** Translation key for the cancel button label. Defaults to `c4r.button.cancel`. */
|
|
8
13
|
cancelLabelId?: string;
|
|
14
|
+
/** Fallback text for the cancel button when no translation exists. */
|
|
9
15
|
cancelText?: string;
|
|
16
|
+
/** Translation key for the body content. Defaults to `c4r.dialog.confirmation.content`. */
|
|
10
17
|
contentLabelId?: string;
|
|
18
|
+
/** Fallback text for the body content when no translation exists. */
|
|
11
19
|
contentText?: string;
|
|
20
|
+
/** Translation key for the title. Defaults to `c4r.dialog.confirmation.title`. */
|
|
12
21
|
titleLabelId?: string;
|
|
22
|
+
/** Fallback text for the title when no translation exists. */
|
|
13
23
|
titleText?: string;
|
|
24
|
+
/** Alert severity used by the underlying `DialogConfirmation`. Defaults to `warning`. */
|
|
14
25
|
severity?: CartoAlertSeverity;
|
|
26
|
+
/** Custom body content. Overrides `contentLabelId` / `contentText` when provided. */
|
|
15
27
|
content?: ReactNode;
|
|
28
|
+
/** Fallback text for the leave button when no translation exists. */
|
|
16
29
|
leaveText?: string;
|
|
17
30
|
}
|
|
18
|
-
declare function CodeAreaDialogConfirmation({ onClose, onCancel, cancelLabelId, cancelText, cancelButton, closeButton, contentLabelId, contentText, titleLabelId, titleText, severity, content, leaveText, }:
|
|
31
|
+
declare function CodeAreaDialogConfirmation({ onClose, onCancel, cancelLabelId, cancelText, cancelButton, closeButton, contentLabelId, contentText, titleLabelId, titleText, severity, content, leaveText, }: CodeAreaDialogConfirmationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
32
|
export default CodeAreaDialogConfirmation;
|
|
20
33
|
//# sourceMappingURL=CodeAreaDialogConfirmation.d.ts.map
|
package/dist/types/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeAreaDialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAU,kBAAkB,EAAsB,MAAM,cAAc,CAAA;AAG7E,UAAU,
|
|
1
|
+
{"version":3,"file":"CodeAreaDialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CodeArea/CodeAreaDialog/components/CodeAreaDialogConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAU,kBAAkB,EAAsB,MAAM,cAAc,CAAA;AAG7E,UAAU,+BAA+B;IACvC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iEAAiE;IACjE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,wEAAwE;IACxE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,qFAAqF;IACrF,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,0BAA0B,CAAC,EAClC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,cAAc,EACd,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAoB,EACpB,OAAO,EACP,SAAS,GACV,EAAE,+BAA+B,kDA8CjC;AAED,eAAe,0BAA0B,CAAA"}
|
|
@@ -4,6 +4,7 @@ declare const meta: Meta<typeof CopiableComponent>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof CopiableComponent>;
|
|
6
6
|
export declare const Playground: Story;
|
|
7
|
+
export declare const Interaction: Story;
|
|
7
8
|
export declare const Variants: Story;
|
|
8
9
|
export declare const Tooltip: Story;
|
|
9
10
|
export declare const CustomIcon: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopiableComponent.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CopiableComponent/CopiableComponent.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"CopiableComponent.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CopiableComponent/CopiableComponent.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAGtD,OAAO,EACL,iBAAiB,EAIlB,MAAM,cAAc,CAAA;AAQrB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAuDxC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAA;AA6B/C,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAuBzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA;AAoCD,eAAO,MAAM,OAAO,EAAE,KASrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KASjC,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAGzB,CAAA"}
|
|
@@ -86,6 +86,24 @@ export declare const Playground: {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
export declare const Interaction: {
|
|
90
|
+
render: ({ value, variant, size, password, disabled, error, placeholder, helperText, ...props }: CopiableInputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
tags: string[];
|
|
92
|
+
args: {
|
|
93
|
+
value: string;
|
|
94
|
+
label: string;
|
|
95
|
+
placeholder: string;
|
|
96
|
+
helperText: string;
|
|
97
|
+
};
|
|
98
|
+
parameters: {
|
|
99
|
+
chromatic: {
|
|
100
|
+
delay: number;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
play: ({ canvasElement }: {
|
|
104
|
+
canvasElement: HTMLElement;
|
|
105
|
+
}) => Promise<void>;
|
|
106
|
+
};
|
|
89
107
|
export declare const Variants: {
|
|
90
108
|
render: ({ value, size, password, disabled, error, ...props }: CopiableInputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
91
109
|
args: {
|
|
@@ -216,8 +234,23 @@ export declare const PseudoHover: {
|
|
|
216
234
|
};
|
|
217
235
|
};
|
|
218
236
|
};
|
|
219
|
-
export declare const
|
|
237
|
+
export declare const InteractionPassword: {
|
|
220
238
|
render: ({ value, variant, size, password, disabled, error, placeholder, helperText, ...props }: CopiableInputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
239
|
+
tags: string[];
|
|
240
|
+
args: {
|
|
241
|
+
value: string;
|
|
242
|
+
password: boolean;
|
|
243
|
+
label: string;
|
|
244
|
+
placeholder: string;
|
|
245
|
+
helperText: string;
|
|
246
|
+
};
|
|
247
|
+
play: ({ canvasElement }: {
|
|
248
|
+
canvasElement: HTMLElement;
|
|
249
|
+
}) => Promise<void>;
|
|
250
|
+
};
|
|
251
|
+
export declare const InteractionCustomToggleText: {
|
|
252
|
+
render: ({ value, variant, size, password, disabled, error, placeholder, helperText, ...props }: CopiableInputTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
253
|
+
tags: string[];
|
|
221
254
|
args: {
|
|
222
255
|
value: string;
|
|
223
256
|
password: boolean;
|
|
@@ -233,6 +266,12 @@ export declare const CustomToggleText: {
|
|
|
233
266
|
story: string;
|
|
234
267
|
};
|
|
235
268
|
};
|
|
269
|
+
chromatic: {
|
|
270
|
+
delay: number;
|
|
271
|
+
};
|
|
236
272
|
};
|
|
273
|
+
play: ({ canvasElement }: {
|
|
274
|
+
canvasElement: HTMLElement;
|
|
275
|
+
}) => Promise<void>;
|
|
237
276
|
};
|
|
238
277
|
//# sourceMappingURL=CopiableInputText.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopiableInputText.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CopiableInputText/CopiableInputText.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopiableInputText.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CopiableInputText/CopiableInputText.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAQxE,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CG,CAAA;AAChB,eAAe,OAAO,CAAA;AAiNtB,eAAO,MAAM,UAAU;qGArMpB,sBAAsB;;;;;;;;;;;;;;;;;CA2MxB,CAAA;AAED,eAAO,MAAM,WAAW;qGA7MrB,sBAAsB;;;;;;;;;;;;;8BAqNS;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAiB/D,CAAA;AAED,eAAO,MAAM,QAAQ;mEA/MlB,sBAAsB;;;;;;;;;;;;;;;;;;;;;CA0NxB,CAAA;AAED,eAAO,MAAM,KAAK;sEApKf,sBAAsB;;;;;;;;;;;;;;;;;;;;;CA+KxB,CAAA;AAED,eAAO,MAAM,MAAM;iDAzIhB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJxB,CAAA;AAED,eAAO,MAAM,SAAS;qGAhRnB,sBAAsB;;;;;;;;;;;;;;CA8RxB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;mEAvQrB,sBAAsB;;;;;;;;;;;;;;;;;CAiRxB,CAAA;AAED,eAAO,MAAM,mBAAmB;qGA5S7B,sBAAsB;;;;;;;;;8BAoTS;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAa/D,CAAA;AAED,eAAO,MAAM,2BAA2B;qGAnUrC,sBAAsB;;;;;;;;;;;;;;;;;;;;;8BAuVS;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAY/D,CAAA"}
|
|
@@ -37,6 +37,24 @@ export declare const Playground: {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
export declare const Interaction: {
|
|
41
|
+
render: ({ storyExplanation, ...args }: DateCalendarProps<Date> & {
|
|
42
|
+
storyExplanation?: string;
|
|
43
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
tags: string[];
|
|
45
|
+
args: {
|
|
46
|
+
referenceDate: Date;
|
|
47
|
+
value: null;
|
|
48
|
+
};
|
|
49
|
+
parameters: {
|
|
50
|
+
chromatic: {
|
|
51
|
+
delay: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
play: ({ canvasElement }: {
|
|
55
|
+
canvasElement: HTMLElement;
|
|
56
|
+
}) => Promise<void>;
|
|
57
|
+
};
|
|
40
58
|
export declare const Composition: {
|
|
41
59
|
render: (args: DateCalendarProps<Date>) => import("react/jsx-runtime").JSX.Element;
|
|
42
60
|
parameters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateCalendar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePickers/DateCalendar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"DateCalendar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePickers/DateCalendar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAgBzE,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAgBG,CAAA;AAChB,eAAe,OAAO,CAAA;AAwJtB,eAAO,MAAM,UAAU;4CAnJpB,iBAAiB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;CA2JzD,CAAA;AAED,eAAO,MAAM,WAAW;4CA7JrB,iBAAiB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;8BAyKxB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAkD/D,CAAA;AAED,eAAO,MAAM,WAAW;mBAxMW,iBAAiB,CAAC,IAAI,CAAC;;;;;;CA+MzD,CAAA;AAED,eAAO,MAAM,SAAS;4CAtOnB,iBAAiB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;CA2OzD,CAAA;AAED,eAAO,MAAM,aAAa;mBAlGW,iBAAiB,CAAC,IAAI,CAAC;CAoG3D,CAAA;AAED,eAAO,MAAM,KAAK;mBA3KW,iBAAiB,CAAC,IAAI,CAAC;CA6KnD,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;mBA/KK,iBAAiB,CAAC,IAAI,CAAC;CAkLnD,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;mBApLF,iBAAiB,CAAC,IAAI,CAAC;CAuLnD,CAAA"}
|
|
@@ -66,6 +66,16 @@ export declare const Playground: {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
export declare const Interaction: {
|
|
70
|
+
render: (args: DatePickerProps<Date>) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
tags: string[];
|
|
72
|
+
args: {
|
|
73
|
+
referenceDate: Date;
|
|
74
|
+
};
|
|
75
|
+
play: ({ canvasElement }: {
|
|
76
|
+
canvasElement: HTMLElement;
|
|
77
|
+
}) => Promise<void>;
|
|
78
|
+
};
|
|
69
79
|
export declare const DateUtils: {
|
|
70
80
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
71
81
|
parameters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAoB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAoB,MAAM,cAAc,CAAA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
|
};
|
|
99
|
+
export declare const Interaction: {
|
|
100
|
+
render: (args: DateRangePickerProps<Date>) => import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
tags: string[];
|
|
102
|
+
args: {
|
|
103
|
+
startProps: {
|
|
104
|
+
referenceDate: Date;
|
|
105
|
+
};
|
|
106
|
+
endProps: {
|
|
107
|
+
referenceDate: Date;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
play: ({ canvasElement }: {
|
|
111
|
+
canvasElement: HTMLElement;
|
|
112
|
+
}) => Promise<void>;
|
|
113
|
+
};
|
|
99
114
|
export declare const DateUtils: {
|
|
100
115
|
render: () => import("react/jsx-runtime").JSX.Element;
|
|
101
116
|
parameters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DateRangePicker/DateRangePicker.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,eAAe,EAAoB,MAAM,cAAc,CAAA;AAQvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"DateRangePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DateRangePicker/DateRangePicker.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAS,eAAe,EAAoB,MAAM,cAAc,CAAA;AAQvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAkB/C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CG,CAAA;AAChB,eAAe,OAAO,CAAA;AA8ctB,eAAO,MAAM,UAAU;mBA5cC,oBAAoB,CAAC,IAAI,CAAC;;;;;;;;;;;CAidjD,CAAA;AAED,eAAO,MAAM,WAAW;mBAndA,oBAAoB,CAAC,IAAI,CAAC;;;;;;;;;;8BA4dhB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAkC/D,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;CAKrB,CAAA;AAED,eAAO,MAAM,kBAAkB;kDAhgB5B,oBAAoB,CAAC,IAAI,CAAC;CAkgB5B,CAAA;AAED,eAAO,MAAM,KAAK;mBAxMW,oBAAoB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;CA+MtD,CAAA;AAED,eAAO,MAAM,SAAS;oBA9OY,oBAAoB,CAAC,IAAI,CAAC;CAgP3D,CAAA;AAED,eAAO,MAAM,aAAa;mBAhHW,oBAAoB,CAAC,IAAI,CAAC;;CAmH9D,CAAA;AAED,eAAO,MAAM,KAAK;mBAvKW,oBAAoB,CAAC,IAAI,CAAC;;CA0KtD,CAAA;AAED,eAAO,MAAM,uBAAuB;mBAliBZ,oBAAoB,CAAC,IAAI,CAAC;;;;;;;;;;CA6iBjD,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;mBAzLK,oBAAoB,CAAC,IAAI,CAAC;CA4LtD,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;mBA9LF,oBAAoB,CAAC,IAAI,CAAC;CAiMtD,CAAA;AAED,eAAO,MAAM,kBAAkB;;CAqB9B,CAAA"}
|
|
@@ -72,6 +72,18 @@ export declare const Playground: {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
+
export declare const Interaction: {
|
|
76
|
+
render: ({ storyExplanation, ...args }: DateTimePickerProps<Date> & {
|
|
77
|
+
storyExplanation?: string;
|
|
78
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
tags: string[];
|
|
80
|
+
args: {
|
|
81
|
+
referenceDate: Date;
|
|
82
|
+
};
|
|
83
|
+
play: ({ canvasElement }: {
|
|
84
|
+
canvasElement: HTMLElement;
|
|
85
|
+
}) => Promise<void>;
|
|
86
|
+
};
|
|
75
87
|
export declare const LabelAndHelperText: {
|
|
76
88
|
render: ({ helperText, ...props }: DateTimePickerProps<Date>) => import("react/jsx-runtime").JSX.Element;
|
|
77
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DateTimePicker/DateTimePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,cAAc,EAAc,MAAM,cAAc,CAAA;AAOhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"DateTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/DateTimePicker/DateTimePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,cAAc,EAAc,MAAM,cAAc,CAAA;AAOhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAmB9C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCG,CAAA;AAChB,eAAe,OAAO,CAAA;AAwUtB,eAAO,MAAM,UAAU;4CAnUpB,mBAAmB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CAwU3D,CAAA;AAED,eAAO,MAAM,WAAW;4CA1UrB,mBAAmB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;8BAkV1B;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAmB/D,CAAA;AAED,eAAO,MAAM,kBAAkB;uCAvV5B,mBAAmB,CAAC,IAAI,CAAC;CAyV3B,CAAA;AAED,eAAO,MAAM,KAAK;mBAtLW,mBAAmB,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;CA4LrD,CAAA;AAED,eAAO,MAAM,SAAS;oBA9EY,mBAAmB,CAAC,IAAI,CAAC;;;;CAmF1D,CAAA;AAED,eAAO,MAAM,aAAa;mBAhGW,mBAAmB,CAAC,IAAI,CAAC;;CAmG7D,CAAA;AAED,eAAO,MAAM,KAAK;mBA5KW,mBAAmB,CAAC,IAAI,CAAC;;CA+KrD,CAAA;AAED,eAAO,MAAM,iBAAiB;4CApY3B,mBAAmB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;CA2Y3D,CAAA;AAED,eAAO,MAAM,YAAY;4CA7YtB,mBAAmB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;CAkZ3D,CAAA;AAED,eAAO,MAAM,QAAQ;4CApZlB,mBAAmB,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;CA0Z3D,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;mBAzMK,mBAAmB,CAAC,IAAI,CAAC;CA4MrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;mBA9MF,mBAAmB,CAAC,IAAI,CAAC;CAiNrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;CAsB9B,CAAA"}
|
|
@@ -72,6 +72,15 @@ export declare const Playground: {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
+
export declare const Interaction: {
|
|
76
|
+
render: ({ storyExplanation, ...args }: TimePickerProps<Date> & {
|
|
77
|
+
storyExplanation?: string;
|
|
78
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
tags: string[];
|
|
80
|
+
play: ({ canvasElement }: {
|
|
81
|
+
canvasElement: HTMLElement;
|
|
82
|
+
}) => Promise<void>;
|
|
83
|
+
};
|
|
75
84
|
export declare const LabelAndHelperText: {
|
|
76
85
|
render: ({ helperText, ...props }: TimePickerProps<Date>) => import("react/jsx-runtime").JSX.Element;
|
|
77
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/TimePicker/TimePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAc,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"TimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DatePickers/TimePicker/TimePicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAc,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAwB1C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCG,CAAA;AAChB,eAAe,OAAO,CAAA;AA4RtB,eAAO,MAAM,UAAU;4CAvRpB,eAAe,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CA4RvD,CAAA;AAED,eAAO,MAAM,WAAW;4CA9RrB,eAAe,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;8BAiStB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CAkB/D,CAAA;AAED,eAAO,MAAM,kBAAkB;uCArS5B,eAAe,CAAC,IAAI,CAAC;CAuSvB,CAAA;AAED,eAAO,MAAM,KAAK;mBA3IW,eAAe,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAiJjD,CAAA;AAED,eAAO,MAAM,SAAS;oBAnKY,eAAe,CAAC,IAAI,CAAC;;;;CAwKtD,CAAA;AAED,eAAO,MAAM,KAAK;mBA7IW,eAAe,CAAC,IAAI,CAAC;CA+IjD,CAAA;AAED,eAAO,MAAM,aAAa;mBApEW,eAAe,CAAC,IAAI,CAAC;CAsEzD,CAAA;AAED,eAAO,MAAM,cAAc;4CAhVxB,eAAe,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;CAuVvD,CAAA;AAED,eAAO,MAAM,YAAY;4CAzVtB,eAAe,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;CA8VvD,CAAA;AAED,eAAO,MAAM,QAAQ;4CAhWlB,eAAe,CAAC,IAAI,CAAC,GAAG;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;CAsWvD,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;mBAhJM,eAAe,CAAC,IAAI,CAAC;CAmJlD,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;mBArJD,eAAe,CAAC,IAAI,CAAC;CAwJlD,CAAA;AAED,eAAO,MAAM,kBAAkB;;CAsB9B,CAAA"}
|
|
@@ -96,6 +96,45 @@ export declare const Playground: {
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
+
export declare const Interaction: {
|
|
100
|
+
render: ({ explanation, ...args }: DialogStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
tags: string[];
|
|
102
|
+
argTypes: {
|
|
103
|
+
closeButton: {
|
|
104
|
+
table: {
|
|
105
|
+
disable: boolean;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
chipLabel: {
|
|
109
|
+
table: {
|
|
110
|
+
disable: boolean;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
title: {
|
|
114
|
+
table: {
|
|
115
|
+
disable: boolean;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
scrollableContent: {
|
|
119
|
+
table: {
|
|
120
|
+
disable: boolean;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
showActions: {
|
|
124
|
+
table: {
|
|
125
|
+
disable: boolean;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
showStepper: {
|
|
129
|
+
table: {
|
|
130
|
+
disable: boolean;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
play: ({ canvasElement }: {
|
|
135
|
+
canvasElement: HTMLElement;
|
|
136
|
+
}) => Promise<void>;
|
|
137
|
+
};
|
|
99
138
|
export declare const Types: {
|
|
100
139
|
render: (args: DialogStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
101
140
|
argTypes: {
|
|
@@ -551,9 +590,11 @@ export declare const InternallScroll: {
|
|
|
551
590
|
};
|
|
552
591
|
};
|
|
553
592
|
};
|
|
554
|
-
export declare const
|
|
593
|
+
export declare const InteractionNonClosable: {
|
|
555
594
|
render: (args: DialogStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
595
|
+
tags: string[];
|
|
556
596
|
args: {
|
|
597
|
+
closeButton: boolean;
|
|
557
598
|
nonModal: boolean;
|
|
558
599
|
showActions: boolean;
|
|
559
600
|
};
|
|
@@ -589,6 +630,16 @@ export declare const NonClosableDialog: {
|
|
|
589
630
|
};
|
|
590
631
|
};
|
|
591
632
|
};
|
|
633
|
+
parameters: {
|
|
634
|
+
docs: {
|
|
635
|
+
description: {
|
|
636
|
+
story: string;
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
play: ({ canvasElement }: {
|
|
641
|
+
canvasElement: HTMLElement;
|
|
642
|
+
}) => Promise<void>;
|
|
592
643
|
};
|
|
593
644
|
export declare const CustomSpacing: {
|
|
594
645
|
render: (args: DialogStoryProps) => import("react/jsx-runtime").JSX.Element;
|