frontile 0.18.0-beta.1 → 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 +68 -68
- package/declarations/components/collections/simple-table/cell.d.ts +68 -68
- package/declarations/components/collections/simple-table/column.d.ts +68 -68
- package/declarations/components/collections/simple-table/footer.d.ts +68 -68
- package/declarations/components/collections/simple-table/header.d.ts +68 -68
- package/declarations/components/collections/simple-table/index.d.ts +68 -68
- package/declarations/components/collections/simple-table/row.d.ts +68 -68
- package/declarations/components/collections/table/column-visibility.d.ts +68 -68
- package/declarations/components/collections/table/sort-button.d.ts +68 -68
- package/declarations/components/collections/table/table.d.ts +68 -68
- 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/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 +18 -18
- 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/dist/components/buttons/button-group.js +26 -1
- package/dist/components/buttons/button-group.js.map +1 -1
- package/dist/components/buttons/button.js +21 -2
- package/dist/components/buttons/button.js.map +1 -1
- package/dist/components/buttons/chip.js +19 -2
- package/dist/components/buttons/chip.js.map +1 -1
- package/dist/components/buttons/close-button.js +17 -1
- package/dist/components/buttons/close-button.js.map +1 -1
- package/dist/components/buttons/segmented-control/segmented-control.js +1 -1
- package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/buttons/toggle-button.js +36 -2
- package/dist/components/buttons/toggle-button.js.map +1 -1
- package/dist/components/collections/calendar/calendar.js +36 -3
- package/dist/components/collections/calendar/calendar.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/command/footer.js +1 -1
- package/dist/components/collections/command/footer.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/table/column-visibility.js +1 -1
- package/dist/components/collections/table/column-visibility.js.map +1 -1
- package/dist/components/disclosure/accordion/accordion.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/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-feedback.js +25 -2
- 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.js +1 -1
- package/dist/components/forms/input.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/switch.js +9 -1
- package/dist/components/forms/switch.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-nav/tab-nav.js +1 -1
- package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -1
- package/dist/components/navigation/tabs/tabs.js +1 -1
- 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 +1 -1
- package/dist/components/notifications/notifications-container.js.map +1 -1
- package/dist/components/overlays/drawer.js +3 -3
- package/dist/components/overlays/drawer.js.map +1 -1
- package/dist/components/overlays/popover.js.map +1 -1
- package/dist/components/overlays/tooltip.js +1 -1
- 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 +9 -1
- package/dist/components/status/progress-bar.js.map +1 -1
- package/dist/components/utilities/kbd.js +2 -2
- package/dist/components/utilities/kbd.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-BHTra4Zh.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/package.json +3 -3
- package/dist/manager-CDIZzrQ9.js.map +0 -1
- package/dist/notification-card-BHTra4Zh.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface RenamedArgOptions {
|
|
2
|
+
/** Component name as it appears to a consumer, e.g. `'Button'`. */
|
|
3
|
+
component: string;
|
|
4
|
+
/** The old argument name, without the `@`. */
|
|
5
|
+
from: string;
|
|
6
|
+
/** The new argument name, without the `@`. */
|
|
7
|
+
to: string;
|
|
8
|
+
/** Deprecation id, e.g. `'frontile.button.appearance'`. */
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolve an argument whose name *and* values moved.
|
|
13
|
+
*
|
|
14
|
+
* `values` maps old spellings to new ones. A legacy value absent from the map
|
|
15
|
+
* kept its name (e.g. Button's `custom`) and passes through untouched — so the
|
|
16
|
+
* map only lists what actually changed.
|
|
17
|
+
*/
|
|
18
|
+
export declare function renamedArgValue<Old extends string, New extends string>(next: New | undefined, legacy: Old | undefined, values: Partial<Record<Old, New>>, options: RenamedArgOptions): New | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Timer from './timer';
|
|
2
|
-
import type { NotificationOptions, NotificationContent,
|
|
2
|
+
import type { NotificationOptions, NotificationContent, NotificationStatus, NotificationUpdate, CustomAction, DefaultConfig } from './types';
|
|
3
3
|
export default class Notification<TMetadata extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
4
|
/**
|
|
5
5
|
* The title of the notification. Named `message` for backwards
|
|
@@ -7,7 +7,7 @@ export default class Notification<TMetadata extends Record<string, unknown> = Re
|
|
|
7
7
|
*/
|
|
8
8
|
message: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
|
|
10
|
+
status: NotificationStatus;
|
|
11
11
|
allowClosing: boolean;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
customActions?: CustomAction[];
|
|
@@ -21,12 +21,12 @@ export default class Notification<TMetadata extends Record<string, unknown> = Re
|
|
|
21
21
|
/** Read-only alias of `message` — do not add a setter. */
|
|
22
22
|
get title(): string;
|
|
23
23
|
/**
|
|
24
|
-
* @deprecated Read `
|
|
24
|
+
* @deprecated Read `status` instead.
|
|
25
25
|
*
|
|
26
26
|
* The return type is widened to include `'default'` because `default` is
|
|
27
27
|
* new vocabulary introduced alongside this getter's deprecation — it has
|
|
28
28
|
* no equivalent in the old `NotificationAppearance` names, so mapping it
|
|
29
|
-
* onto `'info'` here would silently lie about the notification's
|
|
29
|
+
* onto `'info'` here would silently lie about the notification's status.
|
|
30
30
|
* Everything else keeps the old four-value shape.
|
|
31
31
|
*/
|
|
32
32
|
get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -9,9 +9,9 @@ export interface CustomAction {
|
|
|
9
9
|
*/
|
|
10
10
|
onClick: () => void;
|
|
11
11
|
}
|
|
12
|
-
export type
|
|
12
|
+
export type NotificationStatus = 'neutral' | 'primary' | 'success' | 'warning' | 'danger';
|
|
13
13
|
/**
|
|
14
|
-
* The deprecated
|
|
14
|
+
* The deprecated status names. `error` maps onto `danger`.
|
|
15
15
|
*/
|
|
16
16
|
export type NotificationAppearance = 'info' | 'success' | 'warning' | 'error';
|
|
17
17
|
export interface NotificationContent {
|
|
@@ -27,7 +27,7 @@ export interface NotificationContent {
|
|
|
27
27
|
export interface NotificationUpdate {
|
|
28
28
|
title?: string;
|
|
29
29
|
description?: string;
|
|
30
|
-
|
|
30
|
+
status?: NotificationStatus;
|
|
31
31
|
allowClosing?: boolean;
|
|
32
32
|
isLoading?: boolean;
|
|
33
33
|
}
|
|
@@ -58,15 +58,17 @@ export interface NotificationOptions<TMetadata extends Record<string, unknown> =
|
|
|
58
58
|
*/
|
|
59
59
|
description?: string;
|
|
60
60
|
/**
|
|
61
|
-
* The
|
|
61
|
+
* The status of the notification. Drives the glyph, the ARIA role and
|
|
62
|
+
* the action button's colour — not only the colour, which is why it is
|
|
63
|
+
* `status` rather than `color`.
|
|
62
64
|
*
|
|
63
|
-
* @defaultValue '
|
|
65
|
+
* @defaultValue 'neutral'
|
|
64
66
|
*/
|
|
65
|
-
|
|
67
|
+
status?: NotificationStatus;
|
|
66
68
|
/**
|
|
67
69
|
* The appearance of the notification.
|
|
68
70
|
*
|
|
69
|
-
* @deprecated Use `
|
|
71
|
+
* @deprecated Use `status` instead. `error` maps onto `danger`.
|
|
70
72
|
* @defaultValue undefined
|
|
71
73
|
*/
|
|
72
74
|
appearance?: NotificationAppearance;
|
|
@@ -77,7 +79,7 @@ export interface NotificationOptions<TMetadata extends Record<string, unknown> =
|
|
|
77
79
|
*/
|
|
78
80
|
hideIcon?: boolean;
|
|
79
81
|
/**
|
|
80
|
-
* Render a spinner in place of the
|
|
82
|
+
* Render a spinner in place of the status icon. Set by `promise()`.
|
|
81
83
|
*
|
|
82
84
|
* @defaultValue false
|
|
83
85
|
*/
|
|
@@ -3,7 +3,7 @@ import { type ButtonSignature } from './button';
|
|
|
3
3
|
import type { ButtonArgs } from './button';
|
|
4
4
|
import { type ToggleButtonSignature } from './toggle-button';
|
|
5
5
|
import type { ComponentLike, WithBoundArgs } from '@glint/template';
|
|
6
|
-
interface ButtonGroupArgs extends Pick<ButtonArgs, 'appearance' | 'intent' | 'size' | 'class'> {
|
|
6
|
+
interface ButtonGroupArgs extends Pick<ButtonArgs, 'variant' | 'appearance' | 'color' | 'intent' | 'size' | 'class'> {
|
|
7
7
|
}
|
|
8
8
|
interface ButtonGroupSignature {
|
|
9
9
|
Args: ButtonGroupArgs;
|
|
@@ -18,6 +18,8 @@ interface ButtonGroupSignature {
|
|
|
18
18
|
Element: HTMLDivElement;
|
|
19
19
|
}
|
|
20
20
|
declare class ButtonGroup extends Component<ButtonGroupSignature> {
|
|
21
|
+
get variant(): "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | undefined;
|
|
22
|
+
get color(): "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
21
23
|
get classNames(): string;
|
|
22
24
|
}
|
|
23
25
|
export { ButtonGroup, type ButtonGroupSignature };
|
|
@@ -8,13 +8,22 @@ export interface ButtonArgs {
|
|
|
8
8
|
*/
|
|
9
9
|
type?: 'button' | 'submit' | 'reset';
|
|
10
10
|
/**
|
|
11
|
-
* The button
|
|
11
|
+
* The button variant.
|
|
12
12
|
*
|
|
13
|
-
* @defaultValue '
|
|
13
|
+
* @defaultValue 'solid'
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'solid' | 'soft' | 'subtle' | 'outline' | 'ghost' | 'plain' | 'custom';
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `variant`. `default` is now `solid`, `outlined` is
|
|
18
|
+
* `outline`, and `minimal` is `plain`.
|
|
14
19
|
*/
|
|
15
20
|
appearance?: 'default' | 'soft' | 'outlined' | 'minimal' | 'tonal' | 'custom';
|
|
16
21
|
/**
|
|
17
|
-
* The
|
|
22
|
+
* The color of the button
|
|
23
|
+
*/
|
|
24
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use `color`. `default` is now `neutral`.
|
|
18
27
|
*/
|
|
19
28
|
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
20
29
|
/**
|
|
@@ -2,15 +2,22 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
interface ChipSignature {
|
|
3
3
|
Args: {
|
|
4
4
|
/**
|
|
5
|
-
* The chip
|
|
5
|
+
* The chip variant.
|
|
6
6
|
*
|
|
7
|
-
* @defaultValue '
|
|
7
|
+
* @defaultValue 'solid'
|
|
8
|
+
*/
|
|
9
|
+
variant?: 'solid' | 'outline' | 'soft';
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `variant`. `default` is now `solid`, `outlined` is
|
|
12
|
+
* `outline`, and `faded` is `soft`.
|
|
8
13
|
*/
|
|
9
14
|
appearance?: 'default' | 'outlined' | 'faded';
|
|
10
15
|
/**
|
|
11
|
-
* The
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
* The color of the chip.
|
|
17
|
+
*/
|
|
18
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `color`. `default` is now `neutral`.
|
|
14
21
|
*/
|
|
15
22
|
intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
16
23
|
/**
|
|
@@ -26,9 +33,9 @@ interface ChipSignature {
|
|
|
26
33
|
*/
|
|
27
34
|
radius?: 'none' | 'sm' | 'lg' | 'full';
|
|
28
35
|
/**
|
|
29
|
-
* Adds a dot before the content, colored by `@
|
|
30
|
-
*
|
|
31
|
-
* background is already the
|
|
36
|
+
* Adds a dot before the content, colored by `@color`. On the `solid`
|
|
37
|
+
* variant the dot takes the chip's text color, since the chip's
|
|
38
|
+
* background is already the chip's color.
|
|
32
39
|
*
|
|
33
40
|
* @defaultValue false
|
|
34
41
|
*/
|
|
@@ -17,9 +17,11 @@ interface CloseButtonSignature {
|
|
|
17
17
|
*/
|
|
18
18
|
size?: CloseButtonVariants['size'];
|
|
19
19
|
/**
|
|
20
|
-
* @defaultValue '
|
|
20
|
+
* @defaultValue 'ghost'
|
|
21
|
+
*
|
|
22
|
+
* `transparent` and `subtle` are @deprecated — use `ghost` and `soft` instead.
|
|
21
23
|
*/
|
|
22
|
-
variant?:
|
|
24
|
+
variant?: 'ghost' | 'soft' | 'transparent' | 'subtle';
|
|
23
25
|
/**
|
|
24
26
|
* The function to call when button is pressed
|
|
25
27
|
*/
|
|
@@ -43,6 +45,7 @@ interface CloseButtonSignature {
|
|
|
43
45
|
declare class CloseButton extends Component<CloseButtonSignature> {
|
|
44
46
|
isPressed: boolean;
|
|
45
47
|
constructor(owner: Owner, args: CloseButtonSignature['Args']);
|
|
48
|
+
get variant(): 'ghost' | 'soft';
|
|
46
49
|
get classes(): {
|
|
47
50
|
base: string;
|
|
48
51
|
icon: string;
|
|
@@ -35,11 +35,11 @@ interface SegmentedControlArgs<T> {
|
|
|
35
35
|
*/
|
|
36
36
|
name?: string;
|
|
37
37
|
/**
|
|
38
|
-
* The colour
|
|
38
|
+
* The colour applied to the selected item's indicator and label.
|
|
39
39
|
*
|
|
40
|
-
* @defaultValue '
|
|
40
|
+
* @defaultValue 'neutral'
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
color?: SegmentedControlVariants['color'];
|
|
43
43
|
/**
|
|
44
44
|
* The visual style of the control's track and indicator.
|
|
45
45
|
*
|
|
@@ -113,8 +113,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
113
113
|
constructor(owner: Owner, args: SegmentedControlSignature<T>['Args']);
|
|
114
114
|
get styles(): {
|
|
115
115
|
base: (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" | "ghost" | undefined;
|
|
119
119
|
isDisabled?: boolean | undefined;
|
|
120
120
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -122,8 +122,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
122
122
|
hasSeparators?: boolean | undefined;
|
|
123
123
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
124
124
|
indicator: (slotProps?: ({
|
|
125
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
125
126
|
size?: "sm" | "md" | "lg" | undefined;
|
|
126
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
127
127
|
variant?: "solid" | "ghost" | undefined;
|
|
128
128
|
isDisabled?: boolean | undefined;
|
|
129
129
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -131,8 +131,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
131
131
|
hasSeparators?: boolean | undefined;
|
|
132
132
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
133
133
|
item: (slotProps?: ({
|
|
134
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
134
135
|
size?: "sm" | "md" | "lg" | undefined;
|
|
135
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
136
136
|
variant?: "solid" | "ghost" | undefined;
|
|
137
137
|
isDisabled?: boolean | undefined;
|
|
138
138
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -141,8 +141,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
141
141
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
142
142
|
} & {
|
|
143
143
|
base: (slotProps?: ({
|
|
144
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
144
145
|
size?: "sm" | "md" | "lg" | undefined;
|
|
145
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
146
146
|
variant?: "solid" | "ghost" | undefined;
|
|
147
147
|
isDisabled?: boolean | undefined;
|
|
148
148
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -150,8 +150,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
150
150
|
hasSeparators?: boolean | undefined;
|
|
151
151
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
152
152
|
indicator: (slotProps?: ({
|
|
153
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
153
154
|
size?: "sm" | "md" | "lg" | undefined;
|
|
154
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
155
155
|
variant?: "solid" | "ghost" | undefined;
|
|
156
156
|
isDisabled?: boolean | undefined;
|
|
157
157
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -159,8 +159,8 @@ declare class SegmentedControl<T> extends Component<SegmentedControlSignature<T>
|
|
|
159
159
|
hasSeparators?: boolean | undefined;
|
|
160
160
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
161
161
|
item: (slotProps?: ({
|
|
162
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
162
163
|
size?: "sm" | "md" | "lg" | undefined;
|
|
163
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
164
164
|
variant?: "solid" | "ghost" | undefined;
|
|
165
165
|
isDisabled?: boolean | undefined;
|
|
166
166
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import type { ButtonArgs } from './button';
|
|
3
|
-
interface ToggleButtonArgs extends Pick<ButtonArgs, 'intent' | 'size' | 'class' | 'isInGroup'> {
|
|
3
|
+
interface ToggleButtonArgs extends Pick<ButtonArgs, 'variant' | 'appearance' | 'color' | 'intent' | 'size' | 'class' | 'isInGroup'> {
|
|
4
4
|
/**
|
|
5
5
|
* If the button is currently selected
|
|
6
6
|
*
|
|
@@ -20,6 +20,14 @@ interface ToggleButtonSignature {
|
|
|
20
20
|
Element: HTMLButtonElement;
|
|
21
21
|
}
|
|
22
22
|
declare class ToggleButton extends Component<ToggleButtonSignature> {
|
|
23
|
+
/**
|
|
24
|
+
* ToggleButton's theme only ever renders the `outline` variant — reading
|
|
25
|
+
* this getter resolves (and, when needed, deprecates) `@appearance` /
|
|
26
|
+
* `@variant` so a consumer still migrating gets the warning, even though
|
|
27
|
+
* the resolved value itself has nowhere else to go.
|
|
28
|
+
*/
|
|
29
|
+
get variant(): "solid" | "soft" | "subtle" | "outline" | "ghost" | "plain" | "custom" | undefined;
|
|
30
|
+
get color(): "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
23
31
|
get classNames(): string;
|
|
24
32
|
get isSelected(): boolean;
|
|
25
33
|
onChange: () => void;
|
|
@@ -70,7 +70,7 @@ export interface CalendarArgs<M extends CalendarMode = 'single'> {
|
|
|
70
70
|
*
|
|
71
71
|
* @defaultValue 'primary'
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
color?: CalendarVariants['color'];
|
|
74
74
|
/**
|
|
75
75
|
* The size of the calendar cells and caption text.
|
|
76
76
|
*
|
|
@@ -316,244 +316,244 @@ declare class Calendar<M extends CalendarMode = 'single'> extends Component<Cale
|
|
|
316
316
|
get isReadOnly(): boolean;
|
|
317
317
|
get styles(): {
|
|
318
318
|
base: (slotProps?: ({
|
|
319
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
319
320
|
size?: "sm" | "md" | "lg" | undefined;
|
|
320
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
321
321
|
isDisabled?: boolean | undefined;
|
|
322
322
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
323
323
|
body: (slotProps?: ({
|
|
324
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
324
325
|
size?: "sm" | "md" | "lg" | undefined;
|
|
325
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
326
326
|
isDisabled?: boolean | undefined;
|
|
327
327
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
328
328
|
header: (slotProps?: ({
|
|
329
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
329
330
|
size?: "sm" | "md" | "lg" | undefined;
|
|
330
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
331
331
|
isDisabled?: boolean | undefined;
|
|
332
332
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
333
333
|
title: (slotProps?: ({
|
|
334
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
334
335
|
size?: "sm" | "md" | "lg" | undefined;
|
|
335
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
336
336
|
isDisabled?: boolean | undefined;
|
|
337
337
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
338
338
|
nav: (slotProps?: ({
|
|
339
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
339
340
|
size?: "sm" | "md" | "lg" | undefined;
|
|
340
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
341
341
|
isDisabled?: boolean | undefined;
|
|
342
342
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
343
343
|
monthSelectWrapper: (slotProps?: ({
|
|
344
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
344
345
|
size?: "sm" | "md" | "lg" | undefined;
|
|
345
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
346
346
|
isDisabled?: boolean | undefined;
|
|
347
347
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
348
348
|
monthSelectValue: (slotProps?: ({
|
|
349
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
349
350
|
size?: "sm" | "md" | "lg" | undefined;
|
|
350
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
351
351
|
isDisabled?: boolean | undefined;
|
|
352
352
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
353
353
|
monthSelect: (slotProps?: ({
|
|
354
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
354
355
|
size?: "sm" | "md" | "lg" | undefined;
|
|
355
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
356
356
|
isDisabled?: boolean | undefined;
|
|
357
357
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
358
358
|
monthSelectIcon: (slotProps?: ({
|
|
359
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
359
360
|
size?: "sm" | "md" | "lg" | undefined;
|
|
360
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
361
361
|
isDisabled?: boolean | undefined;
|
|
362
362
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
363
363
|
yearTrigger: (slotProps?: ({
|
|
364
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
364
365
|
size?: "sm" | "md" | "lg" | undefined;
|
|
365
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
366
366
|
isDisabled?: boolean | undefined;
|
|
367
367
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
368
368
|
navButton: (slotProps?: ({
|
|
369
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
369
370
|
size?: "sm" | "md" | "lg" | undefined;
|
|
370
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
371
371
|
isDisabled?: boolean | undefined;
|
|
372
372
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
373
373
|
monthsWrapper: (slotProps?: ({
|
|
374
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
374
375
|
size?: "sm" | "md" | "lg" | undefined;
|
|
375
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
376
376
|
isDisabled?: boolean | undefined;
|
|
377
377
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
378
378
|
monthGrid: (slotProps?: ({
|
|
379
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
379
380
|
size?: "sm" | "md" | "lg" | undefined;
|
|
380
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
381
381
|
isDisabled?: boolean | undefined;
|
|
382
382
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
383
383
|
weekdaysRow: (slotProps?: ({
|
|
384
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
384
385
|
size?: "sm" | "md" | "lg" | undefined;
|
|
385
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
386
386
|
isDisabled?: boolean | undefined;
|
|
387
387
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
388
388
|
weekday: (slotProps?: ({
|
|
389
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
389
390
|
size?: "sm" | "md" | "lg" | undefined;
|
|
390
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
391
391
|
isDisabled?: boolean | undefined;
|
|
392
392
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
393
393
|
week: (slotProps?: ({
|
|
394
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
394
395
|
size?: "sm" | "md" | "lg" | undefined;
|
|
395
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
396
396
|
isDisabled?: boolean | undefined;
|
|
397
397
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
398
398
|
cell: (slotProps?: ({
|
|
399
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
399
400
|
size?: "sm" | "md" | "lg" | undefined;
|
|
400
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
401
401
|
isDisabled?: boolean | undefined;
|
|
402
402
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
403
403
|
cellBand: (slotProps?: ({
|
|
404
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
404
405
|
size?: "sm" | "md" | "lg" | undefined;
|
|
405
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
406
406
|
isDisabled?: boolean | undefined;
|
|
407
407
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
408
408
|
day: (slotProps?: ({
|
|
409
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
409
410
|
size?: "sm" | "md" | "lg" | undefined;
|
|
410
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
411
411
|
isDisabled?: boolean | undefined;
|
|
412
412
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
413
413
|
dayContent: (slotProps?: ({
|
|
414
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
414
415
|
size?: "sm" | "md" | "lg" | undefined;
|
|
415
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
416
416
|
isDisabled?: boolean | undefined;
|
|
417
417
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
418
418
|
footer: (slotProps?: ({
|
|
419
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
419
420
|
size?: "sm" | "md" | "lg" | undefined;
|
|
420
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
421
421
|
isDisabled?: boolean | undefined;
|
|
422
422
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
423
423
|
indicator: (slotProps?: ({
|
|
424
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
424
425
|
size?: "sm" | "md" | "lg" | undefined;
|
|
425
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
426
426
|
isDisabled?: boolean | undefined;
|
|
427
427
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
428
428
|
yearGrid: (slotProps?: ({
|
|
429
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
429
430
|
size?: "sm" | "md" | "lg" | undefined;
|
|
430
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
431
431
|
isDisabled?: boolean | undefined;
|
|
432
432
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
433
433
|
yearCell: (slotProps?: ({
|
|
434
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
434
435
|
size?: "sm" | "md" | "lg" | undefined;
|
|
435
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
436
436
|
isDisabled?: boolean | undefined;
|
|
437
437
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
438
438
|
} & {
|
|
439
439
|
base: (slotProps?: ({
|
|
440
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
440
441
|
size?: "sm" | "md" | "lg" | undefined;
|
|
441
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
442
442
|
isDisabled?: boolean | undefined;
|
|
443
443
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
444
444
|
body: (slotProps?: ({
|
|
445
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
445
446
|
size?: "sm" | "md" | "lg" | undefined;
|
|
446
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
447
447
|
isDisabled?: boolean | undefined;
|
|
448
448
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
449
449
|
header: (slotProps?: ({
|
|
450
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
450
451
|
size?: "sm" | "md" | "lg" | undefined;
|
|
451
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
452
452
|
isDisabled?: boolean | undefined;
|
|
453
453
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
454
454
|
title: (slotProps?: ({
|
|
455
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
455
456
|
size?: "sm" | "md" | "lg" | undefined;
|
|
456
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
457
457
|
isDisabled?: boolean | undefined;
|
|
458
458
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
459
459
|
nav: (slotProps?: ({
|
|
460
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
460
461
|
size?: "sm" | "md" | "lg" | undefined;
|
|
461
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
462
462
|
isDisabled?: boolean | undefined;
|
|
463
463
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
464
464
|
monthSelectWrapper: (slotProps?: ({
|
|
465
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
465
466
|
size?: "sm" | "md" | "lg" | undefined;
|
|
466
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
467
467
|
isDisabled?: boolean | undefined;
|
|
468
468
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
469
469
|
monthSelectValue: (slotProps?: ({
|
|
470
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
470
471
|
size?: "sm" | "md" | "lg" | undefined;
|
|
471
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
472
472
|
isDisabled?: boolean | undefined;
|
|
473
473
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
474
474
|
monthSelect: (slotProps?: ({
|
|
475
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
475
476
|
size?: "sm" | "md" | "lg" | undefined;
|
|
476
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
477
477
|
isDisabled?: boolean | undefined;
|
|
478
478
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
479
479
|
monthSelectIcon: (slotProps?: ({
|
|
480
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
480
481
|
size?: "sm" | "md" | "lg" | undefined;
|
|
481
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
482
482
|
isDisabled?: boolean | undefined;
|
|
483
483
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
484
484
|
yearTrigger: (slotProps?: ({
|
|
485
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
485
486
|
size?: "sm" | "md" | "lg" | undefined;
|
|
486
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
487
487
|
isDisabled?: boolean | undefined;
|
|
488
488
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
489
489
|
navButton: (slotProps?: ({
|
|
490
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
490
491
|
size?: "sm" | "md" | "lg" | undefined;
|
|
491
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
492
492
|
isDisabled?: boolean | undefined;
|
|
493
493
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
494
494
|
monthsWrapper: (slotProps?: ({
|
|
495
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
495
496
|
size?: "sm" | "md" | "lg" | undefined;
|
|
496
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
497
497
|
isDisabled?: boolean | undefined;
|
|
498
498
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
499
499
|
monthGrid: (slotProps?: ({
|
|
500
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
500
501
|
size?: "sm" | "md" | "lg" | undefined;
|
|
501
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
502
502
|
isDisabled?: boolean | undefined;
|
|
503
503
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
504
504
|
weekdaysRow: (slotProps?: ({
|
|
505
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
505
506
|
size?: "sm" | "md" | "lg" | undefined;
|
|
506
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
507
507
|
isDisabled?: boolean | undefined;
|
|
508
508
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
509
509
|
weekday: (slotProps?: ({
|
|
510
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
510
511
|
size?: "sm" | "md" | "lg" | undefined;
|
|
511
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
512
512
|
isDisabled?: boolean | undefined;
|
|
513
513
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
514
514
|
week: (slotProps?: ({
|
|
515
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
515
516
|
size?: "sm" | "md" | "lg" | undefined;
|
|
516
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
517
517
|
isDisabled?: boolean | undefined;
|
|
518
518
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
519
519
|
cell: (slotProps?: ({
|
|
520
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
520
521
|
size?: "sm" | "md" | "lg" | undefined;
|
|
521
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
522
522
|
isDisabled?: boolean | undefined;
|
|
523
523
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
524
524
|
cellBand: (slotProps?: ({
|
|
525
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
525
526
|
size?: "sm" | "md" | "lg" | undefined;
|
|
526
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
527
527
|
isDisabled?: boolean | undefined;
|
|
528
528
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
529
529
|
day: (slotProps?: ({
|
|
530
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
530
531
|
size?: "sm" | "md" | "lg" | undefined;
|
|
531
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
532
532
|
isDisabled?: boolean | undefined;
|
|
533
533
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
534
534
|
dayContent: (slotProps?: ({
|
|
535
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
535
536
|
size?: "sm" | "md" | "lg" | undefined;
|
|
536
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
537
537
|
isDisabled?: boolean | undefined;
|
|
538
538
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
539
539
|
footer: (slotProps?: ({
|
|
540
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
540
541
|
size?: "sm" | "md" | "lg" | undefined;
|
|
541
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
542
542
|
isDisabled?: boolean | undefined;
|
|
543
543
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
544
544
|
indicator: (slotProps?: ({
|
|
545
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
545
546
|
size?: "sm" | "md" | "lg" | undefined;
|
|
546
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
547
547
|
isDisabled?: boolean | undefined;
|
|
548
548
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
549
549
|
yearGrid: (slotProps?: ({
|
|
550
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
550
551
|
size?: "sm" | "md" | "lg" | undefined;
|
|
551
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
552
552
|
isDisabled?: boolean | undefined;
|
|
553
553
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
554
554
|
yearCell: (slotProps?: ({
|
|
555
|
+
color?: "neutral" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
555
556
|
size?: "sm" | "md" | "lg" | undefined;
|
|
556
|
-
intent?: "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | undefined;
|
|
557
557
|
isDisabled?: boolean | undefined;
|
|
558
558
|
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
559
559
|
} & {};
|