@loadsmart/loadsmart-ui 7.7.0-beta.1 → 8.0.0-rc.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/README.md +1 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +5 -5
- package/dist/components/DatePicker/DatePicker.stories.d.ts +3 -3
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +3 -3
- package/dist/components/DatePicker/useDatePicker.d.ts +8 -9
- package/dist/components/DatePicker/useDateRangePicker.d.ts +13 -14
- package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.stories.d.ts +5 -5
- package/dist/components/Dropdown/DropdownTrigger.d.ts +1 -1
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +1 -1
- package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingDots.stories.d.ts +3 -3
- package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
- package/dist/components/Loaders/index.d.ts +3 -3
- package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/Select/Select.stories.d.ts +16 -16
- package/dist/components/Steps/Steps.stories.d.ts +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +4 -4
- package/dist/components/Table/Table.types.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +3 -3
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +4 -4
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/{miranda-compatibility.theme-C_FEacSw.js → miranda-compatibility.theme-kYNEZ7mW.js} +2 -2
- package/dist/{miranda-compatibility.theme-C_FEacSw.js.map → miranda-compatibility.theme-kYNEZ7mW.js.map} +1 -1
- package/dist/{prop-B8LY6G2g.js → prop-K2Z3EsyG.js} +2 -2
- package/dist/{prop-B8LY6G2g.js.map → prop-K2Z3EsyG.js.map} +1 -1
- package/dist/styles/typography.d.ts +2 -4
- package/dist/testing/index.js +1 -1
- package/dist/tests/renderer.d.ts +1 -1
- package/dist/theming/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/utils/toolset/flatten.d.ts +1 -1
- package/dist/utils/toolset/get.d.ts +1 -1
- package/dist/utils/toolset/isEmpty.d.ts +1 -1
- package/dist/utils/toolset/omit.d.ts +1 -1
- package/dist/utils/toolset/range.d.ts +1 -1
- package/package.json +40 -42
- package/dist/addons/Theme/register.d.ts +0 -1
package/README.md
CHANGED
|
@@ -49,9 +49,7 @@ If you are using Jest, you need to add this library to `transformIgnorePatterns`
|
|
|
49
49
|
|
|
50
50
|
```json
|
|
51
51
|
{
|
|
52
|
-
|
|
53
|
-
"node_modules/(?!@loadsmart/loadsmart-ui)"
|
|
54
|
-
]
|
|
52
|
+
"transformIgnorePatterns": ["node_modules/(?!@loadsmart/loadsmart-ui)"]
|
|
55
53
|
}
|
|
56
54
|
```
|
|
57
55
|
|
|
@@ -2,4 +2,4 @@ import { BreadcrumbsProps } from './Breadcrumbs';
|
|
|
2
2
|
import { Meta } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground: import('@storybook/
|
|
5
|
+
export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BreadcrumbsProps>;
|
|
@@ -3,7 +3,7 @@ import { CalendarDate } from './Date.helper';
|
|
|
3
3
|
import { CalendarProps } from './Calendar.types';
|
|
4
4
|
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const Playground: import('@storybook/
|
|
6
|
+
export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CalendarProps>;
|
|
7
7
|
export declare function Selection(): JSX.Element;
|
|
8
8
|
declare function isWeekend(date: CalendarDate): boolean;
|
|
9
9
|
export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CalendarPickerProps } from '../Calendar.types';
|
|
2
2
|
export declare const WEEKDAYS: string[];
|
|
3
|
-
export declare const formatter: import('
|
|
3
|
+
export declare const formatter: import('..').DateFormat;
|
|
4
4
|
/**
|
|
5
5
|
* filling days of previous month
|
|
6
6
|
* TODO: supress this for range selection
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { CardProps } from './Card';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const Default:
|
|
7
|
-
export declare const TitleOnly:
|
|
8
|
-
export declare const Flagged:
|
|
5
|
+
export declare const Playground: StoryFn<CardProps>;
|
|
6
|
+
export declare const Default: StoryFn<CardProps>;
|
|
7
|
+
export declare const TitleOnly: StoryFn<CardProps>;
|
|
8
|
+
export declare const Flagged: StoryFn<CardProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { DatePickerProps } from './DatePicker.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const WithValue:
|
|
5
|
+
export declare const Playground: StoryFn<DatePickerProps>;
|
|
6
|
+
export declare const WithValue: StoryFn<DatePickerProps>;
|
|
7
7
|
export declare function DatePickerConstraints(args: DatePickerProps): JSX.Element;
|
|
8
8
|
export declare namespace DatePickerConstraints {
|
|
9
9
|
var args: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { DateRangePickerProps } from './DatePicker.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const WithValue:
|
|
5
|
+
export declare const Playground: StoryFn<DateRangePickerProps>;
|
|
6
|
+
export declare const WithValue: StoryFn<DateRangePickerProps>;
|
|
7
7
|
export declare function DateRangePickerConstraints(args: DateRangePickerProps): JSX.Element;
|
|
8
8
|
export declare namespace DateRangePickerConstraints {
|
|
9
9
|
var args: {
|
|
@@ -27,11 +27,11 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
27
27
|
children?: import('react').ReactNode;
|
|
28
28
|
accept?: string | undefined;
|
|
29
29
|
alt?: string | undefined;
|
|
30
|
-
autoComplete?:
|
|
30
|
+
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
31
31
|
capture?: boolean | "user" | "environment" | undefined;
|
|
32
32
|
checked?: boolean | undefined;
|
|
33
33
|
form?: string | undefined;
|
|
34
|
-
formAction?: string | undefined;
|
|
34
|
+
formAction?: string | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
35
35
|
formEncType?: string | undefined;
|
|
36
36
|
formMethod?: string | undefined;
|
|
37
37
|
formNoValidate?: boolean | undefined;
|
|
@@ -60,7 +60,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
60
60
|
accessKey?: string | undefined;
|
|
61
61
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
62
62
|
autoFocus?: boolean | undefined;
|
|
63
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
63
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
64
64
|
contextMenu?: string | undefined;
|
|
65
65
|
dir?: string | undefined;
|
|
66
66
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -225,6 +225,8 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
225
225
|
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
226
|
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
227
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
230
|
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
229
231
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
230
232
|
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -293,9 +295,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
293
295
|
onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
294
296
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
295
297
|
onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
296
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
297
298
|
onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
298
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
299
299
|
onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
300
300
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
301
301
|
onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
@@ -338,7 +338,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
338
338
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
339
339
|
autoFocus?: boolean | undefined;
|
|
340
340
|
className?: string | undefined;
|
|
341
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
341
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
342
342
|
contextMenu?: string | undefined;
|
|
343
343
|
dir?: string | undefined;
|
|
344
344
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -347,7 +347,6 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
347
347
|
id?: string | undefined;
|
|
348
348
|
lang?: string | undefined;
|
|
349
349
|
nonce?: string | undefined;
|
|
350
|
-
placeholder?: string | undefined;
|
|
351
350
|
slot?: string | undefined;
|
|
352
351
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
353
352
|
style?: import('react').CSSProperties | undefined;
|
|
@@ -507,6 +506,8 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
507
506
|
onProgressCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
508
507
|
onRateChange?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
509
508
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
509
|
+
onResize?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
510
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
510
511
|
onSeeked?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
511
512
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
512
513
|
onSeeking?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -576,9 +577,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
576
577
|
onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
577
578
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
578
579
|
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
579
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
580
580
|
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
581
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
582
581
|
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
583
582
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
584
583
|
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -20,11 +20,11 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
20
20
|
children?: import('react').ReactNode;
|
|
21
21
|
accept?: string | undefined;
|
|
22
22
|
alt?: string | undefined;
|
|
23
|
-
autoComplete?:
|
|
23
|
+
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
24
24
|
capture?: boolean | "user" | "environment" | undefined;
|
|
25
25
|
checked?: boolean | undefined;
|
|
26
26
|
form?: string | undefined;
|
|
27
|
-
formAction?: string | undefined;
|
|
27
|
+
formAction?: string | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
28
28
|
formEncType?: string | undefined;
|
|
29
29
|
formMethod?: string | undefined;
|
|
30
30
|
formNoValidate?: boolean | undefined;
|
|
@@ -53,7 +53,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
53
53
|
accessKey?: string | undefined;
|
|
54
54
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
55
55
|
autoFocus?: boolean | undefined;
|
|
56
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
56
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
57
57
|
contextMenu?: string | undefined;
|
|
58
58
|
dir?: string | undefined;
|
|
59
59
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -217,6 +217,8 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
217
217
|
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
218
|
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
219
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
222
|
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
223
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
222
224
|
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -285,9 +287,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
285
287
|
onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
286
288
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
287
289
|
onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
288
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
289
290
|
onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
290
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
291
291
|
onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
292
292
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
293
293
|
onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
@@ -326,11 +326,11 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
326
326
|
children?: import('react').ReactNode;
|
|
327
327
|
accept?: string | undefined;
|
|
328
328
|
alt?: string | undefined;
|
|
329
|
-
autoComplete?:
|
|
329
|
+
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
330
330
|
capture?: boolean | "user" | "environment" | undefined;
|
|
331
331
|
checked?: boolean | undefined;
|
|
332
332
|
form?: string | undefined;
|
|
333
|
-
formAction?: string | undefined;
|
|
333
|
+
formAction?: string | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
334
334
|
formEncType?: string | undefined;
|
|
335
335
|
formMethod?: string | undefined;
|
|
336
336
|
formNoValidate?: boolean | undefined;
|
|
@@ -359,7 +359,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
359
359
|
accessKey?: string | undefined;
|
|
360
360
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
361
361
|
autoFocus?: boolean | undefined;
|
|
362
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
362
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
363
363
|
contextMenu?: string | undefined;
|
|
364
364
|
dir?: string | undefined;
|
|
365
365
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -523,6 +523,8 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
523
523
|
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
524
524
|
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
525
525
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
526
|
+
onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
527
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
526
528
|
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
527
529
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
528
530
|
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -591,9 +593,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
591
593
|
onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
592
594
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
593
595
|
onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
594
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
595
596
|
onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
596
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
597
597
|
onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
598
598
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
599
599
|
onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
@@ -636,7 +636,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
636
636
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
637
637
|
autoFocus?: boolean | undefined;
|
|
638
638
|
className?: string | undefined;
|
|
639
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
639
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
640
640
|
contextMenu?: string | undefined;
|
|
641
641
|
dir?: string | undefined;
|
|
642
642
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -645,7 +645,6 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
645
645
|
id?: string | undefined;
|
|
646
646
|
lang?: string | undefined;
|
|
647
647
|
nonce?: string | undefined;
|
|
648
|
-
placeholder?: string | undefined;
|
|
649
648
|
slot?: string | undefined;
|
|
650
649
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
651
650
|
style?: import('react').CSSProperties | undefined;
|
|
@@ -805,6 +804,8 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
805
804
|
onProgressCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
806
805
|
onRateChange?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
807
806
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
807
|
+
onResize?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
808
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
808
809
|
onSeeked?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
809
810
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
810
811
|
onSeeking?: import('react').ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -874,9 +875,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
874
875
|
onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
875
876
|
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
876
877
|
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
877
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
878
878
|
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
879
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
880
879
|
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
881
880
|
onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
882
881
|
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { DrawerProps } from './Drawer';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const SmallerContentPlayground:
|
|
5
|
+
export declare const Playground: StoryFn<DrawerProps>;
|
|
6
|
+
export declare const SmallerContentPlayground: StoryFn<DrawerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { DropdownProps, DropdownTriggerProps } from './Dropdown.types';
|
|
3
3
|
declare const meta: Meta;
|
|
4
4
|
export default meta;
|
|
@@ -6,7 +6,7 @@ export type DropdownStoryProps = DropdownProps & {
|
|
|
6
6
|
scale: DropdownTriggerProps['scale'];
|
|
7
7
|
outlined?: DropdownTriggerProps['outlined'];
|
|
8
8
|
};
|
|
9
|
-
export declare const Playground:
|
|
10
|
-
export declare const WithSections:
|
|
11
|
-
export declare const Extended:
|
|
12
|
-
export declare const CustomTrigger:
|
|
9
|
+
export declare const Playground: StoryFn<DropdownStoryProps>;
|
|
10
|
+
export declare const WithSections: StoryFn<DropdownStoryProps>;
|
|
11
|
+
export declare const Extended: StoryFn<DropdownStoryProps>;
|
|
12
|
+
export declare const CustomTrigger: StoryFn<DropdownStoryProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
import { DropdownTriggerProps, DropdownContextReturn } from './Dropdown.types';
|
|
3
3
|
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
4
|
-
export interface DropdownTriggerButtonProps extends DropdownTriggerProps {
|
|
4
|
+
export interface DropdownTriggerButtonProps extends Omit<DropdownTriggerProps, 'children'> {
|
|
5
5
|
children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
|
|
6
6
|
}
|
|
7
7
|
declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { HighlightMatchProps } from './HighlightMatch';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<HighlightMatchProps>;
|
|
@@ -11,7 +11,7 @@ export interface IconProps<T> {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
color?: ThemeColors;
|
|
13
13
|
}
|
|
14
|
-
export type IconMapping = Record<string,
|
|
14
|
+
export type IconMapping = Record<string, ComponentType<Omit<IconProps<string>, 'name'>>>;
|
|
15
15
|
export declare function UnknownIcon(): ReactElement;
|
|
16
16
|
declare function IconFactory(map: IconMapping): ComponentType<IconProps<typeof map>>;
|
|
17
17
|
export default IconFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { icons } from './IconFactory.fixtures';
|
|
3
3
|
import { IconProps } from './IconFactory';
|
|
4
4
|
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const Playground:
|
|
6
|
+
export declare const Playground: StoryFn<IconProps<typeof icons>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { LoadingBarProps } from './LoadingBar';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<LoadingBarProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { LoadingDotsProps } from './LoadingDots';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const InsideButton:
|
|
5
|
+
export declare const Playground: StoryFn<LoadingDotsProps>;
|
|
6
|
+
export declare const InsideButton: StoryFn<LoadingDotsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { SpinnerProps } from './Spinner';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<SpinnerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Spinner, SpinnerProps } from './Spinner';
|
|
2
|
-
export { default as LoadingBar, LoadingBarProps } from './LoadingBar';
|
|
3
|
-
export { default as LoadingDots, LoadingDotsProps } from './LoadingDots';
|
|
1
|
+
export { default as Spinner, type SpinnerProps } from './Spinner';
|
|
2
|
+
export { default as LoadingBar, type LoadingBarProps } from './LoadingBar';
|
|
3
|
+
export { default as LoadingDots, type LoadingDotsProps } from './LoadingDots';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { PaginationProps } from './Pagination.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<PaginationProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { PopoverProps } from './Popover.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<PopoverProps>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { SelectProps } from './Select.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const SingleSyncDatasource:
|
|
7
|
-
export declare const SingleCustomOptionRendering:
|
|
8
|
-
export declare const SingleCustomEmptyRendering:
|
|
9
|
-
export declare const SingleAsyncDatasource:
|
|
10
|
-
export declare const SingleMixedDatasources:
|
|
11
|
-
export declare const MultiSyncDatasource:
|
|
12
|
-
export declare const MultiAsyncDatasource:
|
|
13
|
-
export declare const MultiMixedDatasource:
|
|
14
|
-
export declare const VariousAsyncDatasources:
|
|
15
|
-
export declare const MultiCustomOptionRendering:
|
|
16
|
-
export declare const CreatableSync:
|
|
17
|
-
export declare const CreatableAsync:
|
|
18
|
-
export declare const CustomCreatableOption:
|
|
19
|
-
export declare const SelectWithFixedCreatableOption:
|
|
5
|
+
export declare const Playground: StoryFn<SelectProps>;
|
|
6
|
+
export declare const SingleSyncDatasource: StoryFn<SelectProps>;
|
|
7
|
+
export declare const SingleCustomOptionRendering: StoryFn<SelectProps>;
|
|
8
|
+
export declare const SingleCustomEmptyRendering: StoryFn<SelectProps>;
|
|
9
|
+
export declare const SingleAsyncDatasource: StoryFn<SelectProps>;
|
|
10
|
+
export declare const SingleMixedDatasources: StoryFn<SelectProps>;
|
|
11
|
+
export declare const MultiSyncDatasource: StoryFn<SelectProps>;
|
|
12
|
+
export declare const MultiAsyncDatasource: StoryFn<SelectProps>;
|
|
13
|
+
export declare const MultiMixedDatasource: StoryFn<SelectProps>;
|
|
14
|
+
export declare const VariousAsyncDatasources: StoryFn<SelectProps>;
|
|
15
|
+
export declare const MultiCustomOptionRendering: StoryFn<SelectProps>;
|
|
16
|
+
export declare const CreatableSync: StoryFn<SelectProps>;
|
|
17
|
+
export declare const CreatableAsync: StoryFn<SelectProps>;
|
|
18
|
+
export declare const CustomCreatableOption: StoryFn<SelectProps>;
|
|
19
|
+
export declare const SelectWithFixedCreatableOption: StoryFn<SelectProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { StepsProps } from './Steps';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<StepsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { SwitchProps } from './Switch';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<SwitchProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useSelection } from './Selection';
|
|
1
|
+
import { useSelection, TableSelectableRow } from './Selection';
|
|
2
2
|
import { default as TableSortHandle } from './TableSortHandle';
|
|
3
3
|
import { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
|
|
4
|
-
declare function Table<T>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
|
|
4
|
+
declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
|
|
5
5
|
declare namespace Table {
|
|
6
6
|
var Head: typeof TableHead;
|
|
7
7
|
var Body: typeof TableBody;
|
|
@@ -23,8 +23,8 @@ declare function TableCaption({ children, position, height }: TableCaptionProps)
|
|
|
23
23
|
declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
|
|
24
24
|
declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
|
|
25
25
|
declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
|
|
26
|
-
declare function SelectionCell<T>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
|
|
27
|
-
declare function SelectionHeadCell<T>(props: SelectionCellProps<T>): JSX.Element;
|
|
26
|
+
declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
|
|
27
|
+
declare function SelectionHeadCell<T extends TableSelectableRow>(props: SelectionCellProps<T>): JSX.Element;
|
|
28
28
|
declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
|
|
29
29
|
declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
|
|
30
30
|
declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
|
|
@@ -17,7 +17,7 @@ export interface TableSelectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
values: TableSelectableRow[];
|
|
18
18
|
}>[];
|
|
19
19
|
}
|
|
20
|
-
export interface SelectionCellProps<T extends
|
|
20
|
+
export interface SelectionCellProps<T extends TableSelectableRow = TableSelectableRow> extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
|
|
21
21
|
value?: T;
|
|
22
22
|
children?: (props: {
|
|
23
23
|
selected: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { TablePaginationProps } from './TablePagination.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: StoryFn<TablePaginationProps>;
|
|
@@ -3,5 +3,5 @@ import { Text } from '.';
|
|
|
3
3
|
import { TextProps } from './Text';
|
|
4
4
|
declare const meta: Meta<typeof Text>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type
|
|
7
|
-
export declare const Playground:
|
|
6
|
+
type StoryFn = StoryObj<TextProps>;
|
|
7
|
+
export declare const Playground: StoryFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { ToggleGroupProps } from './ToggleGroup.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const WithIcon:
|
|
5
|
+
export declare const Playground: StoryFn<ToggleGroupProps>;
|
|
6
|
+
export declare const WithIcon: StoryFn<ToggleGroupProps>;
|
|
@@ -2,7 +2,7 @@ import { PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
|
|
|
2
2
|
import { Dropdown } from '../../Dropdown';
|
|
3
3
|
export declare const MenuDropdown: import('styled-components').StyledComponent<typeof Dropdown, any, {}, never>;
|
|
4
4
|
export declare const MenuDropdownSeparator: import('styled-components').StyledComponent<"hr", any, {}, never>;
|
|
5
|
-
export declare const MenuDropdownLabel: import('styled-components').StyledComponent<"label", any,
|
|
5
|
+
export declare const MenuDropdownLabel: import('styled-components').StyledComponent<"label", any, import('../../../theming').ThemedProps, never>;
|
|
6
6
|
type MenuDropdownSubItemProps = HTMLAttributes<HTMLElement> & {
|
|
7
7
|
label: string;
|
|
8
8
|
url?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { useFocusTrapProps } from './useFocusTrap';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const TabTrap:
|
|
7
|
-
export declare const ArrowTrap:
|
|
5
|
+
export declare const Playground: StoryFn<useFocusTrapProps>;
|
|
6
|
+
export declare const TabTrap: StoryFn<useFocusTrapProps>;
|
|
7
|
+
export declare const ArrowTrap: StoryFn<useFocusTrapProps>;
|
package/dist/index.js
CHANGED
|
@@ -2,18 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import React__default, { forwardRef, Fragment, useState, useRef, useCallback, useEffect, createContext, useMemo, useReducer, useContext, useLayoutEffect, Children as Children$5, isValidElement } from "react";
|
|
3
3
|
import styled, { css, keyframes, useTheme } from "styled-components";
|
|
4
4
|
import { getToken } from "./theming/index.js";
|
|
5
|
-
import flatten from "lodash
|
|
6
|
-
import isEmpty from "lodash/isEmpty.js";
|
|
5
|
+
import { isEmpty, flatten, omit, get, range } from "lodash-es";
|
|
7
6
|
import { t as toArray } from "./toArray-Dxb1kUxx.js";
|
|
8
|
-
import { c as conditional, w as whenProps, p as prop } from "./prop-
|
|
9
|
-
import
|
|
10
|
-
import { r as rem, B as BASE_PIXELS } from "./miranda-compatibility.theme-C_FEacSw.js";
|
|
7
|
+
import { c as conditional, w as whenProps, p as prop } from "./prop-K2Z3EsyG.js";
|
|
8
|
+
import { r as rem, B as BASE_PIXELS } from "./miranda-compatibility.theme-kYNEZ7mW.js";
|
|
11
9
|
import { isFunction, identity } from "@loadsmart/utils-function";
|
|
12
10
|
import clsx from "clsx";
|
|
13
11
|
import { isBlank } from "@loadsmart/utils-string";
|
|
14
12
|
import { isNil, isObject } from "@loadsmart/utils-object";
|
|
15
|
-
import get from "lodash/get.js";
|
|
16
|
-
import range from "lodash/range.js";
|
|
17
13
|
import ReactDOM from "react-dom";
|
|
18
14
|
import { useFloating, autoUpdate, offset, flip, shift, arrow } from "@floating-ui/react-dom";
|
|
19
15
|
import { u as useDragDropFileContext } from "./DragDropFile.context-oKnUu6d3.js";
|
|
@@ -6533,8 +6529,8 @@ function MenuExpandable({
|
|
|
6533
6529
|
toggle,
|
|
6534
6530
|
height
|
|
6535
6531
|
} = useHeightExpansionToggler(expandableItemsRef);
|
|
6536
|
-
return /* @__PURE__ */ React__default.createElement("div", { ...props, role: "none" }, /* @__PURE__ */ React__default.createElement(MenuBaseItem, { onClick: toggle, label, trailing: /* @__PURE__ */ React__default.createElement(IconWrapper$1, null, /* @__PURE__ */ React__default.createElement(StyledIcon, { $expanded: expanded, name: "chevron-down", size: 16 })), "aria-haspopup": "true", "aria-expanded": expanded }), /* @__PURE__ */ React__default.createElement(ExpandableItems, { $height: height, role: "menu" }, /* @__PURE__ */ React__default.createElement(ItemsWrapper, { $expanded: expanded, ref: expandableItemsRef, role: "presentation" }, React__default.Children.map(children, (child) => {
|
|
6537
|
-
if (!child) return
|
|
6532
|
+
return /* @__PURE__ */ React__default.createElement("div", { ...props, role: "none" }, /* @__PURE__ */ React__default.createElement(MenuBaseItem, { onClick: toggle, label, trailing: /* @__PURE__ */ React__default.createElement(IconWrapper$1, null, /* @__PURE__ */ React__default.createElement(StyledIcon, { $expanded: expanded, name: "chevron-down", size: 16 })), "aria-haspopup": "true", "aria-expanded": expanded }), /* @__PURE__ */ React__default.createElement(ExpandableItems, { $height: height, role: "menu" }, /* @__PURE__ */ React__default.createElement(ItemsWrapper, { $expanded: expanded, ref: expandableItemsRef, role: "presentation" }, /* @__PURE__ */ React__default.createElement(Fragment, null, React__default.Children.map(children, (child) => {
|
|
6533
|
+
if (!child) return null;
|
|
6538
6534
|
if (typeof child === "object" && "type" in child) {
|
|
6539
6535
|
return React__default.cloneElement(child, {
|
|
6540
6536
|
key: label,
|
|
@@ -6543,7 +6539,7 @@ function MenuExpandable({
|
|
|
6543
6539
|
});
|
|
6544
6540
|
}
|
|
6545
6541
|
return child;
|
|
6546
|
-
}))));
|
|
6542
|
+
})))));
|
|
6547
6543
|
}
|
|
6548
6544
|
function styledCompounds(Parent, compounds) {
|
|
6549
6545
|
Object.keys(compounds).forEach((key) => {
|
|
@@ -7154,7 +7150,7 @@ function TablePickerItem({
|
|
|
7154
7150
|
children,
|
|
7155
7151
|
...props
|
|
7156
7152
|
}) {
|
|
7157
|
-
return /* @__PURE__ */ React__default.createElement(Dropdown.Item, { leading: checked ? /* @__PURE__ */ React__default.createElement(Icon$2, { name: "check", size: "16", color: "neutral-darker" }) : /* @__PURE__ */ React__default.createElement(Layout.Box, { padding: "s" }), role: "option", "aria-selected": checked ? "true" : "false", ...props }, children || option && (option.option || option.title || option.key) || "Column");
|
|
7153
|
+
return /* @__PURE__ */ React__default.createElement(Dropdown.Item, { leading: checked ? /* @__PURE__ */ React__default.createElement(Icon$2, { name: "check", size: "16", color: "neutral-darker" }) : /* @__PURE__ */ React__default.createElement(Layout.Box, { padding: "s" }), role: "option", "aria-selected": checked ? "true" : "false", ...props }, children || option && (option.option || option.title || (typeof option.key !== "symbol" ? option.key : null)) || "Column");
|
|
7158
7154
|
}
|
|
7159
7155
|
const TriggerIcon = styled(Icon$2).attrs({
|
|
7160
7156
|
name: "dots-horizontal",
|