frontile 0.18.0-beta.0 → 0.18.0-beta.2
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/declarations/-private/deprecated-args.d.ts +18 -0
- package/declarations/-private/notification.d.ts +4 -4
- package/declarations/-private/types.d.ts +10 -8
- package/declarations/components/buttons/button-group.d.ts +3 -1
- package/declarations/components/buttons/button.d.ts +12 -3
- package/declarations/components/buttons/chip.d.ts +15 -8
- package/declarations/components/buttons/close-button.d.ts +5 -2
- package/declarations/components/buttons/segmented-control/segmented-control.d.ts +9 -9
- package/declarations/components/buttons/toggle-button.d.ts +9 -1
- package/declarations/components/collections/calendar/calendar.d.ts +49 -49
- package/declarations/components/collections/calendar/utils.d.ts +1 -0
- package/declarations/components/collections/dropdown/dropdown.d.ts +13 -2
- package/declarations/components/collections/dropdown/menu-context.d.ts +3 -3
- package/declarations/components/collections/listbox/group.d.ts +7 -2
- package/declarations/components/collections/listbox/item.d.ts +27 -6
- package/declarations/components/collections/listbox/listbox.d.ts +31 -4
- package/declarations/components/collections/simple-table/body.d.ts +72 -72
- package/declarations/components/collections/simple-table/cell.d.ts +72 -72
- package/declarations/components/collections/simple-table/column.d.ts +72 -72
- package/declarations/components/collections/simple-table/footer.d.ts +72 -72
- package/declarations/components/collections/simple-table/header.d.ts +72 -72
- package/declarations/components/collections/simple-table/index.d.ts +84 -72
- package/declarations/components/collections/simple-table/row.d.ts +72 -72
- package/declarations/components/collections/table/column-visibility.d.ts +72 -72
- package/declarations/components/collections/table/sort-button.d.ts +72 -72
- package/declarations/components/collections/table/table.d.ts +73 -72
- package/declarations/components/disclosure/accordion/accordion.d.ts +23 -23
- package/declarations/components/forms/autocomplete.d.ts +24 -12
- package/declarations/components/forms/date-picker/date-picker.d.ts +268 -0
- package/declarations/components/forms/date-picker/end-content.d.ts +29 -0
- package/declarations/components/forms/date-picker/trigger.d.ts +40 -0
- package/declarations/components/forms/date-picker/types.d.ts +149 -0
- package/declarations/components/forms/date-picker/value.d.ts +43 -0
- package/declarations/components/forms/date-picker.d.ts +3 -0
- package/declarations/components/forms/field.d.ts +5 -0
- package/declarations/components/forms/form-control.d.ts +1 -1
- package/declarations/components/forms/form-feedback.d.ts +17 -2
- package/declarations/components/forms/icons.d.ts +4 -1
- package/declarations/components/forms/index.d.ts +2 -0
- package/declarations/components/forms/input.d.ts +10 -10
- package/declarations/components/forms/native-select.d.ts +7 -7
- package/declarations/components/forms/select/select.d.ts +30 -17
- package/declarations/components/forms/select/trigger.d.ts +5 -3
- package/declarations/components/forms/select/types.d.ts +42 -12
- package/declarations/components/forms/switch.d.ts +22 -18
- package/declarations/components/forms/textarea.d.ts +6 -6
- package/declarations/components/navigation/pagination/pagination.d.ts +21 -20
- package/declarations/components/navigation/tab-nav/tab-nav.d.ts +12 -12
- package/declarations/components/navigation/tabs/tabs.d.ts +12 -12
- package/declarations/components/notifications/index.d.ts +2 -2
- package/declarations/components/notifications/notification-card.d.ts +5 -5
- package/declarations/components/notifications/notifications-container.d.ts +2 -2
- package/declarations/components/overlays/drawer.d.ts +32 -32
- package/declarations/components/overlays/popover.d.ts +1 -1
- package/declarations/components/overlays/tooltip.d.ts +2 -2
- package/declarations/components/status/alert.d.ts +10 -10
- package/declarations/components/status/progress-bar.d.ts +5 -1
- package/declarations/components/utilities/kbd.d.ts +4 -4
- package/declarations/components/utilities/spinner.d.ts +14 -7
- package/declarations/index.d.ts +1 -1
- package/declarations/template-registry.d.ts +2 -1
- package/declarations/test-support.d.ts +22 -0
- package/declarations/utils/selection-indicator.d.ts +4 -0
- package/dist/components/buttons/button-group.js +26 -1
- package/dist/components/buttons/button-group.js.map +1 -1
- package/dist/components/buttons/button.js +23 -4
- package/dist/components/buttons/button.js.map +1 -1
- package/dist/components/buttons/chip.js +20 -3
- package/dist/components/buttons/chip.js.map +1 -1
- package/dist/components/buttons/close-button.js +18 -2
- package/dist/components/buttons/close-button.js.map +1 -1
- package/dist/components/buttons/segmented-control/item.js +1 -1
- package/dist/components/buttons/segmented-control/item.js.map +1 -1
- package/dist/components/buttons/segmented-control/segmented-control.js +2 -2
- package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/buttons/toggle-button.js +37 -3
- package/dist/components/buttons/toggle-button.js.map +1 -1
- package/dist/components/collections/calendar/calendar.js +43 -6
- package/dist/components/collections/calendar/calendar.js.map +1 -1
- package/dist/components/collections/calendar/day-cell.js +1 -1
- package/dist/components/collections/calendar/day-cell.js.map +1 -1
- package/dist/components/collections/calendar/header.js +1 -1
- package/dist/components/collections/calendar/header.js.map +1 -1
- package/dist/components/collections/calendar/month-grid.js +1 -1
- package/dist/components/collections/calendar/month-grid.js.map +1 -1
- package/dist/components/collections/calendar/utils.js +1 -1
- package/dist/components/collections/calendar/utils.js.map +1 -1
- package/dist/components/collections/calendar/year-grid.js +15 -3
- package/dist/components/collections/calendar/year-grid.js.map +1 -1
- package/dist/components/collections/command/command.js +1 -1
- package/dist/components/collections/command/command.js.map +1 -1
- package/dist/components/collections/command/dialog.js +1 -1
- package/dist/components/collections/command/dialog.js.map +1 -1
- package/dist/components/collections/command/footer.js +3 -3
- package/dist/components/collections/command/footer.js.map +1 -1
- package/dist/components/collections/command/input.js +1 -1
- package/dist/components/collections/command/input.js.map +1 -1
- package/dist/components/collections/command/list.js +1 -1
- package/dist/components/collections/command/list.js.map +1 -1
- package/dist/components/collections/dropdown/dropdown.js +45 -7
- package/dist/components/collections/dropdown/dropdown.js.map +1 -1
- package/dist/components/collections/dropdown/menu-context.js.map +1 -1
- package/dist/components/collections/listbox/group.js +1 -1
- package/dist/components/collections/listbox/group.js.map +1 -1
- package/dist/components/collections/listbox/item.js +47 -8
- package/dist/components/collections/listbox/item.js.map +1 -1
- package/dist/components/collections/listbox/listbox.js +53 -2
- package/dist/components/collections/listbox/listbox.js.map +1 -1
- package/dist/components/collections/simple-table/body.js +1 -1
- package/dist/components/collections/simple-table/body.js.map +1 -1
- package/dist/components/collections/simple-table/cell.js +1 -1
- package/dist/components/collections/simple-table/cell.js.map +1 -1
- package/dist/components/collections/simple-table/column.js +1 -1
- package/dist/components/collections/simple-table/column.js.map +1 -1
- package/dist/components/collections/simple-table/footer.js +1 -1
- package/dist/components/collections/simple-table/footer.js.map +1 -1
- package/dist/components/collections/simple-table/header.js +1 -1
- package/dist/components/collections/simple-table/header.js.map +1 -1
- package/dist/components/collections/simple-table/index.js +5 -3
- package/dist/components/collections/simple-table/index.js.map +1 -1
- package/dist/components/collections/simple-table/row.js +1 -1
- package/dist/components/collections/simple-table/row.js.map +1 -1
- package/dist/components/collections/table/checkbox.js +1 -1
- package/dist/components/collections/table/checkbox.js.map +1 -1
- package/dist/components/collections/table/column-visibility.js +1 -1
- package/dist/components/collections/table/column-visibility.js.map +1 -1
- package/dist/components/collections/table/sort-button.js +1 -1
- package/dist/components/collections/table/sort-button.js.map +1 -1
- package/dist/components/collections/table/table.js +7 -3
- package/dist/components/collections/table/table.js.map +1 -1
- package/dist/components/disclosure/accordion/accordion.js +3 -2
- package/dist/components/disclosure/accordion/accordion.js.map +1 -1
- package/dist/components/disclosure/accordion/item.js +1 -1
- package/dist/components/disclosure/accordion/item.js.map +1 -1
- package/dist/components/forms/autocomplete.js +47 -2
- package/dist/components/forms/autocomplete.js.map +1 -1
- package/dist/components/forms/checkbox-group.js +1 -1
- package/dist/components/forms/checkbox-group.js.map +1 -1
- package/dist/components/forms/checkbox.js +1 -1
- package/dist/components/forms/checkbox.js.map +1 -1
- package/dist/components/forms/date-picker/date-picker.js +301 -0
- package/dist/components/forms/date-picker/date-picker.js.map +1 -0
- package/dist/components/forms/date-picker/end-content.js +21 -0
- package/dist/components/forms/date-picker/end-content.js.map +1 -0
- package/dist/components/forms/date-picker/trigger.js +14 -0
- package/dist/components/forms/date-picker/trigger.js.map +1 -0
- package/dist/components/forms/date-picker/types.js +2 -0
- package/dist/components/forms/date-picker/types.js.map +1 -0
- package/dist/components/forms/date-picker/value.js +97 -0
- package/dist/components/forms/date-picker/value.js.map +1 -0
- package/dist/components/forms/date-picker.js +2 -0
- package/dist/components/forms/date-picker.js.map +1 -0
- package/dist/components/forms/field.js +3 -1
- package/dist/components/forms/field.js.map +1 -1
- package/dist/components/forms/form-control.js +1 -1
- package/dist/components/forms/form-control.js.map +1 -1
- package/dist/components/forms/form-description.js +1 -1
- package/dist/components/forms/form-description.js.map +1 -1
- package/dist/components/forms/form-feedback.js +26 -3
- package/dist/components/forms/form-feedback.js.map +1 -1
- package/dist/components/forms/icons.js +4 -1
- package/dist/components/forms/icons.js.map +1 -1
- package/dist/components/forms/index.js +2 -0
- package/dist/components/forms/index.js.map +1 -1
- package/dist/components/forms/input-otp.js +1 -1
- package/dist/components/forms/input-otp.js.map +1 -1
- package/dist/components/forms/input.js +1 -1
- package/dist/components/forms/input.js.map +1 -1
- package/dist/components/forms/label.js +1 -1
- package/dist/components/forms/label.js.map +1 -1
- package/dist/components/forms/native-select.js +2 -2
- package/dist/components/forms/native-select.js.map +1 -1
- package/dist/components/forms/radio-group.js +1 -1
- package/dist/components/forms/radio-group.js.map +1 -1
- package/dist/components/forms/radio.js +1 -1
- package/dist/components/forms/radio.js.map +1 -1
- package/dist/components/forms/select/end-content.js +1 -1
- package/dist/components/forms/select/end-content.js.map +1 -1
- package/dist/components/forms/select/select.js +61 -7
- package/dist/components/forms/select/select.js.map +1 -1
- package/dist/components/forms/select/selected-items.js +1 -1
- package/dist/components/forms/select/selected-items.js.map +1 -1
- package/dist/components/forms/select/trigger.js +6 -4
- package/dist/components/forms/select/trigger.js.map +1 -1
- package/dist/components/forms/switch.js +10 -2
- package/dist/components/forms/switch.js.map +1 -1
- package/dist/components/forms/textarea.js +1 -1
- package/dist/components/forms/textarea.js.map +1 -1
- package/dist/components/navigation/external-link.js +2 -2
- package/dist/components/navigation/external-link.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -2
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-nav/item.js +1 -1
- package/dist/components/navigation/tab-nav/item.js.map +1 -1
- package/dist/components/navigation/tab-nav/tab-nav.js +2 -2
- package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -1
- package/dist/components/navigation/tabs/panel.js +1 -1
- package/dist/components/navigation/tabs/panel.js.map +1 -1
- package/dist/components/navigation/tabs/tab.js +1 -1
- package/dist/components/navigation/tabs/tab.js.map +1 -1
- package/dist/components/navigation/tabs/tabs.js +3 -3
- package/dist/components/navigation/tabs/tabs.js.map +1 -1
- package/dist/components/notifications/index.js +2 -2
- package/dist/components/notifications/notification-card.js +1 -1
- package/dist/components/notifications/notifications-container.js +2 -2
- package/dist/components/notifications/notifications-container.js.map +1 -1
- package/dist/components/overlays/drawer/body.js +1 -1
- package/dist/components/overlays/drawer/body.js.map +1 -1
- package/dist/components/overlays/drawer/drag-handle.js +1 -1
- package/dist/components/overlays/drawer/drag-handle.js.map +1 -1
- package/dist/components/overlays/drawer/footer.js +1 -1
- package/dist/components/overlays/drawer/footer.js.map +1 -1
- package/dist/components/overlays/drawer/header.js +4 -4
- package/dist/components/overlays/drawer/header.js.map +1 -1
- package/dist/components/overlays/drawer.js +4 -4
- package/dist/components/overlays/drawer.js.map +1 -1
- package/dist/components/overlays/modal/body.js +1 -1
- package/dist/components/overlays/modal/body.js.map +1 -1
- package/dist/components/overlays/modal/footer.js +1 -1
- package/dist/components/overlays/modal/footer.js.map +1 -1
- package/dist/components/overlays/modal/header.js +1 -1
- package/dist/components/overlays/modal/header.js.map +1 -1
- package/dist/components/overlays/modal.js +1 -1
- package/dist/components/overlays/modal.js.map +1 -1
- package/dist/components/overlays/overlay.js +1 -1
- package/dist/components/overlays/overlay.js.map +1 -1
- package/dist/components/overlays/popover.js.map +1 -1
- package/dist/components/overlays/tooltip.js +14 -2
- package/dist/components/overlays/tooltip.js.map +1 -1
- package/dist/components/status/alert.js +19 -15
- package/dist/components/status/alert.js.map +1 -1
- package/dist/components/status/progress-bar.js +10 -2
- package/dist/components/status/progress-bar.js.map +1 -1
- package/dist/components/utilities/avatar.js +1 -1
- package/dist/components/utilities/avatar.js.map +1 -1
- package/dist/components/utilities/divider.js +1 -1
- package/dist/components/utilities/divider.js.map +1 -1
- package/dist/components/utilities/kbd.js +3 -3
- package/dist/components/utilities/kbd.js.map +1 -1
- package/dist/components/utilities/skeleton.js +1 -1
- package/dist/components/utilities/skeleton.js.map +1 -1
- package/dist/components/utilities/spinner.js +26 -7
- package/dist/components/utilities/spinner.js.map +1 -1
- package/dist/deprecated-args-BIUjLA8y.js +32 -0
- package/dist/deprecated-args-BIUjLA8y.js.map +1 -0
- package/dist/forms.js +2 -0
- package/dist/forms.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{manager-CDIZzrQ9.js → manager-B-PnYqDs.js} +28 -22
- package/dist/manager-B-PnYqDs.js.map +1 -0
- package/dist/{notification-card-D5fd-Sxa.js → notification-card-CYmWQ35W.js} +25 -22
- package/dist/notification-card-CYmWQ35W.js.map +1 -0
- package/dist/notifications.js +2 -2
- package/dist/services/notifications.js +1 -1
- package/dist/test-support.js +40 -2
- package/dist/test-support.js.map +1 -1
- package/dist/utils/selection-indicator.js +30 -2
- package/dist/utils/selection-indicator.js.map +1 -1
- package/package.json +3 -3
- package/dist/manager-CDIZzrQ9.js.map +0 -1
- package/dist/notification-card-D5fd-Sxa.js.map +0 -1
|
@@ -23,10 +23,14 @@ interface Args extends FormControlSharedArgs {
|
|
|
23
23
|
*/
|
|
24
24
|
size?: SwitchVariants['size'];
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The color of the Switch.
|
|
27
27
|
* @defaultValue 'primary'
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
color?: SwitchVariants['color'];
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use `color`. `default` is now `neutral`.
|
|
32
|
+
*/
|
|
33
|
+
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
30
34
|
/**
|
|
31
35
|
* Custom classes to style different slots of the Switch component.
|
|
32
36
|
*/
|
|
@@ -66,84 +70,84 @@ declare class Switch extends Component<SwitchSignature> {
|
|
|
66
70
|
handleBlur: () => void;
|
|
67
71
|
get classes(): {
|
|
68
72
|
base: (slotProps?: ({
|
|
73
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
69
74
|
size?: "sm" | "md" | "lg" | undefined;
|
|
70
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
71
75
|
isDisabled?: boolean | undefined;
|
|
72
76
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
73
77
|
labelContainer: (slotProps?: ({
|
|
78
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
74
79
|
size?: "sm" | "md" | "lg" | undefined;
|
|
75
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
76
80
|
isDisabled?: boolean | undefined;
|
|
77
81
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
78
82
|
label: (slotProps?: ({
|
|
83
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
79
84
|
size?: "sm" | "md" | "lg" | undefined;
|
|
80
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
81
85
|
isDisabled?: boolean | undefined;
|
|
82
86
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
83
87
|
wrapper: (slotProps?: ({
|
|
88
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
84
89
|
size?: "sm" | "md" | "lg" | undefined;
|
|
85
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
86
90
|
isDisabled?: boolean | undefined;
|
|
87
91
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
88
92
|
hiddenInput: (slotProps?: ({
|
|
93
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
89
94
|
size?: "sm" | "md" | "lg" | undefined;
|
|
90
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
91
95
|
isDisabled?: boolean | undefined;
|
|
92
96
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
93
97
|
thumb: (slotProps?: ({
|
|
98
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
94
99
|
size?: "sm" | "md" | "lg" | undefined;
|
|
95
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
96
100
|
isDisabled?: boolean | undefined;
|
|
97
101
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
98
102
|
startContent: (slotProps?: ({
|
|
103
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
99
104
|
size?: "sm" | "md" | "lg" | undefined;
|
|
100
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
101
105
|
isDisabled?: boolean | undefined;
|
|
102
106
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
103
107
|
endContent: (slotProps?: ({
|
|
108
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
104
109
|
size?: "sm" | "md" | "lg" | undefined;
|
|
105
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
106
110
|
isDisabled?: boolean | undefined;
|
|
107
111
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
108
112
|
} & {
|
|
109
113
|
base: (slotProps?: ({
|
|
114
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
110
115
|
size?: "sm" | "md" | "lg" | undefined;
|
|
111
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
112
116
|
isDisabled?: boolean | undefined;
|
|
113
117
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
114
118
|
labelContainer: (slotProps?: ({
|
|
119
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
115
120
|
size?: "sm" | "md" | "lg" | undefined;
|
|
116
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
117
121
|
isDisabled?: boolean | undefined;
|
|
118
122
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
119
123
|
label: (slotProps?: ({
|
|
124
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
120
125
|
size?: "sm" | "md" | "lg" | undefined;
|
|
121
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
122
126
|
isDisabled?: boolean | undefined;
|
|
123
127
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
124
128
|
wrapper: (slotProps?: ({
|
|
129
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
125
130
|
size?: "sm" | "md" | "lg" | undefined;
|
|
126
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
127
131
|
isDisabled?: boolean | undefined;
|
|
128
132
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
129
133
|
hiddenInput: (slotProps?: ({
|
|
134
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
130
135
|
size?: "sm" | "md" | "lg" | undefined;
|
|
131
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
132
136
|
isDisabled?: boolean | undefined;
|
|
133
137
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
134
138
|
thumb: (slotProps?: ({
|
|
139
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
135
140
|
size?: "sm" | "md" | "lg" | undefined;
|
|
136
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
137
141
|
isDisabled?: boolean | undefined;
|
|
138
142
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
139
143
|
startContent: (slotProps?: ({
|
|
144
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
140
145
|
size?: "sm" | "md" | "lg" | undefined;
|
|
141
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
142
146
|
isDisabled?: boolean | undefined;
|
|
143
147
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
144
148
|
endContent: (slotProps?: ({
|
|
149
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
145
150
|
size?: "sm" | "md" | "lg" | undefined;
|
|
146
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
147
151
|
isDisabled?: boolean | undefined;
|
|
148
152
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
149
153
|
} & {};
|
|
@@ -51,52 +51,52 @@ declare class Textarea extends Component<TextareaSignature> {
|
|
|
51
51
|
get classes(): {
|
|
52
52
|
base: (slotProps?: ({
|
|
53
53
|
size?: "sm" | "md" | "lg" | undefined;
|
|
54
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
55
54
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
56
55
|
hasStartContent?: boolean | undefined;
|
|
57
56
|
hasEndContent?: boolean | undefined;
|
|
58
57
|
hasChips?: boolean | undefined;
|
|
58
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
59
59
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
60
60
|
innerContainer: (slotProps?: ({
|
|
61
61
|
size?: "sm" | "md" | "lg" | undefined;
|
|
62
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
63
62
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
64
63
|
hasStartContent?: boolean | undefined;
|
|
65
64
|
hasEndContent?: boolean | undefined;
|
|
66
65
|
hasChips?: boolean | undefined;
|
|
66
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
67
67
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
68
68
|
startContent: (slotProps?: ({
|
|
69
69
|
size?: "sm" | "md" | "lg" | undefined;
|
|
70
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
71
70
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
72
71
|
hasStartContent?: boolean | undefined;
|
|
73
72
|
hasEndContent?: boolean | undefined;
|
|
74
73
|
hasChips?: boolean | undefined;
|
|
74
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
75
75
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
76
76
|
endContent: (slotProps?: ({
|
|
77
77
|
size?: "sm" | "md" | "lg" | undefined;
|
|
78
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
79
78
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
80
79
|
hasStartContent?: boolean | undefined;
|
|
81
80
|
hasEndContent?: boolean | undefined;
|
|
82
81
|
hasChips?: boolean | undefined;
|
|
82
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
83
83
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
84
84
|
input: (slotProps?: ({
|
|
85
85
|
size?: "sm" | "md" | "lg" | undefined;
|
|
86
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
87
86
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
88
87
|
hasStartContent?: boolean | undefined;
|
|
89
88
|
hasEndContent?: boolean | undefined;
|
|
90
89
|
hasChips?: boolean | undefined;
|
|
90
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
91
91
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
92
92
|
} & {
|
|
93
93
|
input: (slotProps?: ({
|
|
94
94
|
size?: "sm" | "md" | "lg" | undefined;
|
|
95
|
-
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
96
95
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
97
96
|
hasStartContent?: boolean | undefined;
|
|
98
97
|
hasEndContent?: boolean | undefined;
|
|
99
98
|
hasChips?: boolean | undefined;
|
|
99
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
100
100
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
101
101
|
} & {};
|
|
102
102
|
}
|
|
@@ -92,8 +92,9 @@ interface PaginationArgs {
|
|
|
92
92
|
*/
|
|
93
93
|
showEdges?: boolean;
|
|
94
94
|
/**
|
|
95
|
-
* Set to false for
|
|
96
|
-
*
|
|
95
|
+
* Set to false for compact page-number navigation with previous and next
|
|
96
|
+
* controls but no page chips. `@total` and `@pageSize` still determine the
|
|
97
|
+
* first and last pages.
|
|
97
98
|
*
|
|
98
99
|
* @defaultValue true
|
|
99
100
|
*/
|
|
@@ -103,9 +104,9 @@ interface PaginationArgs {
|
|
|
103
104
|
/**
|
|
104
105
|
* The colour of the active page chip.
|
|
105
106
|
*
|
|
106
|
-
* @defaultValue '
|
|
107
|
+
* @defaultValue 'neutral'
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
|
+
color?: PaginationVariants['color'];
|
|
109
110
|
/**
|
|
110
111
|
* Disables every control.
|
|
111
112
|
*
|
|
@@ -176,84 +177,84 @@ declare class Pagination extends Component<PaginationSignature> {
|
|
|
176
177
|
get summary(): PaginationSummary;
|
|
177
178
|
get styles(): {
|
|
178
179
|
base: (slotProps?: ({
|
|
180
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
179
181
|
size?: "sm" | "md" | "lg" | undefined;
|
|
180
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
181
182
|
isDisabled?: boolean | undefined;
|
|
182
183
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
183
184
|
summary: (slotProps?: ({
|
|
185
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
184
186
|
size?: "sm" | "md" | "lg" | undefined;
|
|
185
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
186
187
|
isDisabled?: boolean | undefined;
|
|
187
188
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
188
189
|
list: (slotProps?: ({
|
|
190
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
189
191
|
size?: "sm" | "md" | "lg" | undefined;
|
|
190
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
191
192
|
isDisabled?: boolean | undefined;
|
|
192
193
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
193
194
|
item: (slotProps?: ({
|
|
195
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
194
196
|
size?: "sm" | "md" | "lg" | undefined;
|
|
195
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
196
197
|
isDisabled?: boolean | undefined;
|
|
197
198
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
198
199
|
page: (slotProps?: ({
|
|
200
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
199
201
|
size?: "sm" | "md" | "lg" | undefined;
|
|
200
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
201
202
|
isDisabled?: boolean | undefined;
|
|
202
203
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
203
204
|
prev: (slotProps?: ({
|
|
205
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
204
206
|
size?: "sm" | "md" | "lg" | undefined;
|
|
205
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
206
207
|
isDisabled?: boolean | undefined;
|
|
207
208
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
208
209
|
next: (slotProps?: ({
|
|
210
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
209
211
|
size?: "sm" | "md" | "lg" | undefined;
|
|
210
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
211
212
|
isDisabled?: boolean | undefined;
|
|
212
213
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
213
214
|
ellipsis: (slotProps?: ({
|
|
215
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
214
216
|
size?: "sm" | "md" | "lg" | undefined;
|
|
215
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
216
217
|
isDisabled?: boolean | undefined;
|
|
217
218
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
218
219
|
} & {
|
|
219
220
|
base: (slotProps?: ({
|
|
221
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
220
222
|
size?: "sm" | "md" | "lg" | undefined;
|
|
221
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
222
223
|
isDisabled?: boolean | undefined;
|
|
223
224
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
224
225
|
summary: (slotProps?: ({
|
|
226
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
225
227
|
size?: "sm" | "md" | "lg" | undefined;
|
|
226
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
227
228
|
isDisabled?: boolean | undefined;
|
|
228
229
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
229
230
|
list: (slotProps?: ({
|
|
231
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
230
232
|
size?: "sm" | "md" | "lg" | undefined;
|
|
231
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
232
233
|
isDisabled?: boolean | undefined;
|
|
233
234
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
234
235
|
item: (slotProps?: ({
|
|
236
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
235
237
|
size?: "sm" | "md" | "lg" | undefined;
|
|
236
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
237
238
|
isDisabled?: boolean | undefined;
|
|
238
239
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
239
240
|
page: (slotProps?: ({
|
|
241
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
240
242
|
size?: "sm" | "md" | "lg" | undefined;
|
|
241
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
242
243
|
isDisabled?: boolean | undefined;
|
|
243
244
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
244
245
|
prev: (slotProps?: ({
|
|
246
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
245
247
|
size?: "sm" | "md" | "lg" | undefined;
|
|
246
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
247
248
|
isDisabled?: boolean | undefined;
|
|
248
249
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
249
250
|
next: (slotProps?: ({
|
|
251
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
250
252
|
size?: "sm" | "md" | "lg" | undefined;
|
|
251
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
252
253
|
isDisabled?: boolean | undefined;
|
|
253
254
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
254
255
|
ellipsis: (slotProps?: ({
|
|
256
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
255
257
|
size?: "sm" | "md" | "lg" | undefined;
|
|
256
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
257
258
|
isDisabled?: boolean | undefined;
|
|
258
259
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
259
260
|
} & {};
|
|
@@ -15,9 +15,9 @@ interface TabNavArgs {
|
|
|
15
15
|
/**
|
|
16
16
|
* The colour intent applied to the indicator.
|
|
17
17
|
*
|
|
18
|
-
* @defaultValue '
|
|
18
|
+
* @defaultValue 'neutral'
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
color?: TabsVariants['color'];
|
|
21
21
|
/**
|
|
22
22
|
* The size of the links, driving padding and text size.
|
|
23
23
|
*
|
|
@@ -64,40 +64,40 @@ declare class TabNav extends Component<TabNavSignature> {
|
|
|
64
64
|
indicator: import("../../utilities").SelectionIndicator;
|
|
65
65
|
get styles(): {
|
|
66
66
|
base: (slotProps?: ({
|
|
67
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
67
68
|
size?: "sm" | "md" | "lg" | undefined;
|
|
68
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
69
69
|
variant?: "solid" | "underline" | undefined;
|
|
70
70
|
isDisabled?: boolean | undefined;
|
|
71
71
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
72
72
|
isFullWidth?: boolean | undefined;
|
|
73
73
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
74
74
|
list: (slotProps?: ({
|
|
75
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
75
76
|
size?: "sm" | "md" | "lg" | undefined;
|
|
76
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
77
77
|
variant?: "solid" | "underline" | undefined;
|
|
78
78
|
isDisabled?: boolean | undefined;
|
|
79
79
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
80
80
|
isFullWidth?: boolean | undefined;
|
|
81
81
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
82
82
|
indicator: (slotProps?: ({
|
|
83
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
83
84
|
size?: "sm" | "md" | "lg" | undefined;
|
|
84
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
85
85
|
variant?: "solid" | "underline" | undefined;
|
|
86
86
|
isDisabled?: boolean | undefined;
|
|
87
87
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
88
88
|
isFullWidth?: boolean | undefined;
|
|
89
89
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
90
90
|
tab: (slotProps?: ({
|
|
91
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
91
92
|
size?: "sm" | "md" | "lg" | undefined;
|
|
92
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
93
93
|
variant?: "solid" | "underline" | undefined;
|
|
94
94
|
isDisabled?: boolean | undefined;
|
|
95
95
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
96
96
|
isFullWidth?: boolean | undefined;
|
|
97
97
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
98
98
|
panel: (slotProps?: ({
|
|
99
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
99
100
|
size?: "sm" | "md" | "lg" | undefined;
|
|
100
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
101
101
|
variant?: "solid" | "underline" | undefined;
|
|
102
102
|
isDisabled?: boolean | undefined;
|
|
103
103
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -105,40 +105,40 @@ declare class TabNav extends Component<TabNavSignature> {
|
|
|
105
105
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
106
106
|
} & {
|
|
107
107
|
base: (slotProps?: ({
|
|
108
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
108
109
|
size?: "sm" | "md" | "lg" | undefined;
|
|
109
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
110
110
|
variant?: "solid" | "underline" | undefined;
|
|
111
111
|
isDisabled?: boolean | undefined;
|
|
112
112
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
113
113
|
isFullWidth?: boolean | undefined;
|
|
114
114
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
115
115
|
list: (slotProps?: ({
|
|
116
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
116
117
|
size?: "sm" | "md" | "lg" | undefined;
|
|
117
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
118
118
|
variant?: "solid" | "underline" | undefined;
|
|
119
119
|
isDisabled?: boolean | undefined;
|
|
120
120
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
121
121
|
isFullWidth?: boolean | undefined;
|
|
122
122
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
123
123
|
indicator: (slotProps?: ({
|
|
124
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
124
125
|
size?: "sm" | "md" | "lg" | undefined;
|
|
125
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
126
126
|
variant?: "solid" | "underline" | undefined;
|
|
127
127
|
isDisabled?: boolean | undefined;
|
|
128
128
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
129
129
|
isFullWidth?: boolean | undefined;
|
|
130
130
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
131
131
|
tab: (slotProps?: ({
|
|
132
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
132
133
|
size?: "sm" | "md" | "lg" | undefined;
|
|
133
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
134
134
|
variant?: "solid" | "underline" | undefined;
|
|
135
135
|
isDisabled?: boolean | undefined;
|
|
136
136
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
137
137
|
isFullWidth?: boolean | undefined;
|
|
138
138
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
139
139
|
panel: (slotProps?: ({
|
|
140
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
140
141
|
size?: "sm" | "md" | "lg" | undefined;
|
|
141
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
142
142
|
variant?: "solid" | "underline" | undefined;
|
|
143
143
|
isDisabled?: boolean | undefined;
|
|
144
144
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -17,9 +17,9 @@ interface TabsArgs<T> {
|
|
|
17
17
|
/**
|
|
18
18
|
* The colour intent applied to the indicator.
|
|
19
19
|
*
|
|
20
|
-
* @defaultValue '
|
|
20
|
+
* @defaultValue 'neutral'
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
color?: TabsVariants['color'];
|
|
23
23
|
/**
|
|
24
24
|
* The size of the tabs, driving padding and text size.
|
|
25
25
|
*
|
|
@@ -124,40 +124,40 @@ declare class Tabs<T> extends Component<TabsSignature<T>> {
|
|
|
124
124
|
constructor(owner: Owner, args: TabsSignature<T>['Args']);
|
|
125
125
|
get styles(): {
|
|
126
126
|
base: (slotProps?: ({
|
|
127
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
127
128
|
size?: "sm" | "md" | "lg" | undefined;
|
|
128
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
129
129
|
variant?: "solid" | "underline" | undefined;
|
|
130
130
|
isDisabled?: boolean | undefined;
|
|
131
131
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
132
132
|
isFullWidth?: boolean | undefined;
|
|
133
133
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
134
134
|
list: (slotProps?: ({
|
|
135
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
135
136
|
size?: "sm" | "md" | "lg" | undefined;
|
|
136
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
137
137
|
variant?: "solid" | "underline" | undefined;
|
|
138
138
|
isDisabled?: boolean | undefined;
|
|
139
139
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
140
140
|
isFullWidth?: boolean | undefined;
|
|
141
141
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
142
142
|
indicator: (slotProps?: ({
|
|
143
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
143
144
|
size?: "sm" | "md" | "lg" | undefined;
|
|
144
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
145
145
|
variant?: "solid" | "underline" | undefined;
|
|
146
146
|
isDisabled?: boolean | undefined;
|
|
147
147
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
148
148
|
isFullWidth?: boolean | undefined;
|
|
149
149
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
150
150
|
tab: (slotProps?: ({
|
|
151
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
151
152
|
size?: "sm" | "md" | "lg" | undefined;
|
|
152
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
153
153
|
variant?: "solid" | "underline" | undefined;
|
|
154
154
|
isDisabled?: boolean | undefined;
|
|
155
155
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
156
156
|
isFullWidth?: boolean | undefined;
|
|
157
157
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
158
158
|
panel: (slotProps?: ({
|
|
159
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
159
160
|
size?: "sm" | "md" | "lg" | undefined;
|
|
160
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
161
161
|
variant?: "solid" | "underline" | undefined;
|
|
162
162
|
isDisabled?: boolean | undefined;
|
|
163
163
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -165,40 +165,40 @@ declare class Tabs<T> extends Component<TabsSignature<T>> {
|
|
|
165
165
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
166
166
|
} & {
|
|
167
167
|
base: (slotProps?: ({
|
|
168
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
168
169
|
size?: "sm" | "md" | "lg" | undefined;
|
|
169
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
170
170
|
variant?: "solid" | "underline" | undefined;
|
|
171
171
|
isDisabled?: boolean | undefined;
|
|
172
172
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
173
173
|
isFullWidth?: boolean | undefined;
|
|
174
174
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
175
175
|
list: (slotProps?: ({
|
|
176
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
176
177
|
size?: "sm" | "md" | "lg" | undefined;
|
|
177
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
178
178
|
variant?: "solid" | "underline" | undefined;
|
|
179
179
|
isDisabled?: boolean | undefined;
|
|
180
180
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
181
181
|
isFullWidth?: boolean | undefined;
|
|
182
182
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
183
183
|
indicator: (slotProps?: ({
|
|
184
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
184
185
|
size?: "sm" | "md" | "lg" | undefined;
|
|
185
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
186
186
|
variant?: "solid" | "underline" | undefined;
|
|
187
187
|
isDisabled?: boolean | undefined;
|
|
188
188
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
189
189
|
isFullWidth?: boolean | undefined;
|
|
190
190
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
191
191
|
tab: (slotProps?: ({
|
|
192
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
192
193
|
size?: "sm" | "md" | "lg" | undefined;
|
|
193
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
194
194
|
variant?: "solid" | "underline" | undefined;
|
|
195
195
|
isDisabled?: boolean | undefined;
|
|
196
196
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
197
197
|
isFullWidth?: boolean | undefined;
|
|
198
198
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
199
199
|
panel: (slotProps?: ({
|
|
200
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
200
201
|
size?: "sm" | "md" | "lg" | undefined;
|
|
201
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
202
202
|
variant?: "solid" | "underline" | undefined;
|
|
203
203
|
isDisabled?: boolean | undefined;
|
|
204
204
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Notification from '../../-private/notification';
|
|
2
2
|
import Timer from '../../-private/timer';
|
|
3
3
|
import NotificationsService from '../../services/notifications';
|
|
4
|
-
import type { DefaultConfig, NotificationOptions, NotificationContent,
|
|
4
|
+
import type { DefaultConfig, NotificationOptions, NotificationContent, NotificationStatus, NotificationAppearance, NotificationUpdate, CustomAction, PromiseMessage, PromiseNotificationOptions } from '../../-private/types';
|
|
5
5
|
import { NotificationStack } from '../../-private/notification-stack';
|
|
6
6
|
import type { NotificationStackInput } from '../../-private/notification-stack';
|
|
7
7
|
export { Notification, Timer, NotificationStack };
|
|
8
8
|
export type { NotificationsService };
|
|
9
|
-
export type { NotificationOptions, DefaultConfig, CustomAction, NotificationContent,
|
|
9
|
+
export type { NotificationOptions, DefaultConfig, CustomAction, NotificationContent, NotificationStatus, NotificationAppearance, NotificationUpdate, PromiseMessage, PromiseNotificationOptions };
|
|
10
10
|
export type { NotificationStackInput };
|
|
11
11
|
export * from './notification-card';
|
|
12
12
|
export * from './notifications-container';
|
|
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import type NotificationsService from '../../services/notifications';
|
|
3
3
|
import type Notification from '../../-private/notification';
|
|
4
4
|
import type { CardGeometry } from '../../-private/notification-stack';
|
|
5
|
-
import type { CustomAction, containerPlacement,
|
|
5
|
+
import type { CustomAction, containerPlacement, NotificationStatus } from '../../-private/types';
|
|
6
6
|
import type { SafeString } from '@ember/template';
|
|
7
7
|
interface NotificationCardSignature {
|
|
8
8
|
Args: {
|
|
@@ -11,9 +11,9 @@ interface NotificationCardSignature {
|
|
|
11
11
|
/**
|
|
12
12
|
* The visual style of the card.
|
|
13
13
|
*
|
|
14
|
-
* @defaultValue '
|
|
14
|
+
* @defaultValue 'surface'
|
|
15
15
|
*/
|
|
16
|
-
variant?: '
|
|
16
|
+
variant?: 'surface' | 'soft' | 'solid';
|
|
17
17
|
/**
|
|
18
18
|
* Position, scale, and stacking supplied by the container. When omitted
|
|
19
19
|
* the card renders in place with no stack transform.
|
|
@@ -42,11 +42,11 @@ declare class NotificationCard extends Component<NotificationCardSignature> {
|
|
|
42
42
|
*/
|
|
43
43
|
hasEntered: boolean;
|
|
44
44
|
get isTopPlacement(): boolean;
|
|
45
|
-
get
|
|
45
|
+
get status(): NotificationStatus;
|
|
46
46
|
get icon(): import("@ember/component/template-only").TemplateOnlyComponent<{
|
|
47
47
|
Element: SVGElement;
|
|
48
48
|
}>;
|
|
49
|
-
get
|
|
49
|
+
get actionColor(): "neutral" | "primary" | "success" | "warning" | "danger";
|
|
50
50
|
get role(): 'status' | 'alert';
|
|
51
51
|
get style(): SafeString;
|
|
52
52
|
/**
|
|
@@ -23,9 +23,9 @@ interface NotificationsContainerSignature {
|
|
|
23
23
|
/**
|
|
24
24
|
* The visual style applied to every card.
|
|
25
25
|
*
|
|
26
|
-
* @defaultValue '
|
|
26
|
+
* @defaultValue 'surface'
|
|
27
27
|
*/
|
|
28
|
-
variant?: '
|
|
28
|
+
variant?: 'surface' | 'soft' | 'solid';
|
|
29
29
|
/**
|
|
30
30
|
* How many cards stay visible while the stack is collapsed.
|
|
31
31
|
*
|