@urbicon-ui/blocks 6.37.1 → 6.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AvatarGroup/AvatarGroup.svelte +60 -0
- package/dist/components/AvatarGroup/AvatarGroup.svelte.d.ts +4 -0
- package/dist/components/AvatarGroup/avatar-group.variants.d.ts +20 -0
- package/dist/components/AvatarGroup/avatar-group.variants.js +21 -0
- package/dist/components/AvatarGroup/index.d.ts +57 -0
- package/dist/components/AvatarGroup/index.js +2 -0
- package/dist/components/Calendar/calendar.variants.d.ts +126 -126
- package/dist/components/CopyButton/CopyButton.svelte +139 -0
- package/dist/components/CopyButton/CopyButton.svelte.d.ts +4 -0
- package/dist/components/CopyButton/copy-button.variants.d.ts +29 -0
- package/dist/components/CopyButton/copy-button.variants.js +32 -0
- package/dist/components/CopyButton/index.d.ts +55 -0
- package/dist/components/CopyButton/index.js +2 -0
- package/dist/components/FileUpload/FileUpload.svelte.d.ts +1 -1
- package/dist/components/PinInput/pin-input.variants.d.ts +7 -7
- package/dist/components/PinInput/pin-input.variants.js +25 -29
- package/dist/components/Planner/planner.variants.d.ts +34 -34
- package/dist/components/TimeInput/time-input.variants.d.ts +9 -9
- package/dist/components/TimeInput/time-input.variants.js +24 -21
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +2 -0
- package/dist/i18n/index.d.ts +6 -390
- package/dist/internal/field-chrome.d.ts +87 -0
- package/dist/internal/field-chrome.js +81 -0
- package/dist/primitives/Accordion/accordion.variants.d.ts +7 -7
- package/dist/primitives/Alert/alert.variants.d.ts +8 -8
- package/dist/primitives/Avatar/avatar.variants.d.ts +12 -12
- package/dist/primitives/Badge/badge.variants.d.ts +10 -10
- package/dist/primitives/Button/button.variants.d.ts +4 -4
- package/dist/primitives/Card/card.variants.d.ts +5 -5
- package/dist/primitives/Checkbox/checkbox.variants.d.ts +7 -7
- package/dist/primitives/Collapsible/collapsible.variants.d.ts +6 -6
- package/dist/primitives/Combobox/combobox.variants.d.ts +50 -50
- package/dist/primitives/Input/input.variants.d.ts +27 -27
- package/dist/primitives/Input/input.variants.js +24 -19
- package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
- package/dist/primitives/Kbd/Kbd.svelte +44 -0
- package/dist/primitives/Kbd/Kbd.svelte.d.ts +4 -0
- package/dist/primitives/Kbd/index.d.ts +51 -0
- package/dist/primitives/Kbd/index.js +2 -0
- package/dist/primitives/Kbd/kbd.variants.d.ts +20 -0
- package/dist/primitives/Kbd/kbd.variants.js +27 -0
- package/dist/primitives/Progress/progress.variants.d.ts +11 -11
- package/dist/primitives/RadioGroup/radioGroup.variants.d.ts +6 -6
- package/dist/primitives/Select/select.variants.d.ts +34 -34
- package/dist/primitives/Skeleton/skeleton.variants.d.ts +3 -3
- package/dist/primitives/Spinner/spinner.variants.d.ts +48 -48
- package/dist/primitives/Stepper/stepper.variants.d.ts +11 -11
- package/dist/primitives/Textarea/textarea.variants.d.ts +21 -21
- package/dist/primitives/Toast/toast.variants.d.ts +12 -12
- package/dist/primitives/Toggle/toggle.variants.d.ts +7 -7
- package/dist/primitives/Toolbar/toolbar.variants.d.ts +6 -6
- package/dist/primitives/Tooltip/tooltip.variants.d.ts +3 -3
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.js +1 -0
- package/dist/translations/de.d.ts +4 -0
- package/dist/translations/de.js +4 -0
- package/dist/translations/en.d.ts +4 -0
- package/dist/translations/en.js +4 -0
- package/package.json +3 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared style fragments for the bordered field frame.
|
|
3
|
+
*
|
|
4
|
+
* Input, PinInput and TimeInput (and NumberInput, via its Input composition)
|
|
5
|
+
* all render the same field chrome — the neutral resting frame, the focus ring,
|
|
6
|
+
* the `outlined | filled | ghost` surfaces, the intent colours, the disabled /
|
|
7
|
+
* error states and the label / message scaffolding. Before this module each of
|
|
8
|
+
* the three `*.variants.ts` hand-copied those class strings, so a token fix had
|
|
9
|
+
* to be applied in three places and drift crept in silently.
|
|
10
|
+
*
|
|
11
|
+
* These exports are the single source for the shared tokens. They are composed
|
|
12
|
+
* back into each `tv()` config at the EXACT positions the inlined strings held,
|
|
13
|
+
* so the resolved (flattened) class output is byte-identical — proven by the
|
|
14
|
+
* render-identity matrix diff in the debt-fix-wave-5 (40 960 Input / 2 304 Pin /
|
|
15
|
+
* 4 608 TimeInput combinations, zero diff). This is a pure de-duplication, not a
|
|
16
|
+
* behaviour change.
|
|
17
|
+
*
|
|
18
|
+
* The one axis of genuine divergence is the focus mechanism: Input and PinInput
|
|
19
|
+
* put the ring on the focusable element itself (`focus-visible:`), while
|
|
20
|
+
* TimeInput hosts borderless segments inside a bordered container and lights the
|
|
21
|
+
* whole field via `focus-within:`. That is why the ring / variant / intent /
|
|
22
|
+
* error fragments are parameterised by {@link FieldFocus} rather than fixed.
|
|
23
|
+
*
|
|
24
|
+
* NOT covered here (deliberately component-local): the per-component frame
|
|
25
|
+
* prefix (Input's `w-full`, PinInput's cell content styles, TimeInput's
|
|
26
|
+
* `inline-flex` container), Input's `underline` variant and `placeholder`
|
|
27
|
+
* colour, PinInput's `focus-visible:z-10`, TimeInput's `fullWidth` and its
|
|
28
|
+
* cursor-free readonly. The shared label/message MARKUP in the `.svelte` files
|
|
29
|
+
* is a separate, larger cut (see technical-debt "Field chrome…" part b).
|
|
30
|
+
*
|
|
31
|
+
* This is not a component and imports nothing from other component dirs, so it
|
|
32
|
+
* is exempt from the cross-component import guard (imports-lint treats
|
|
33
|
+
* `internal/**` as the extraction target).
|
|
34
|
+
*/
|
|
35
|
+
/** The field's colour/border/shadow transition — the longest shared string. */
|
|
36
|
+
export declare const FIELD_TRANSITION = "transition-[color,background-color,border-color,box-shadow] duration-[var(--blocks-duration-fast)] ease-out";
|
|
37
|
+
/** The neutral resting frame: border + primary text + base surface. Input
|
|
38
|
+
* appends its own `placeholder:` colour after this. */
|
|
39
|
+
export declare const FIELD_SURFACE = "border text-text-primary bg-surface-base";
|
|
40
|
+
/** `:disabled` / `:read-only` pseudo-class fallbacks on a NATIVE field element
|
|
41
|
+
* (Input's `base`, PinInput's `cell`). TimeInput's frame is a container whose
|
|
42
|
+
* segments carry their own states, so it omits these. */
|
|
43
|
+
export declare const FIELD_NATIVE_DISABLED = "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-surface-subtle";
|
|
44
|
+
export declare const FIELD_NATIVE_READONLY = "read-only:bg-surface-subtle read-only:cursor-default";
|
|
45
|
+
/**
|
|
46
|
+
* Where the focus ring lives: `focus-visible:` on a directly-focusable field
|
|
47
|
+
* (Input, PinInput cell), `focus-within:` on a container that hosts focusable
|
|
48
|
+
* segments (TimeInput).
|
|
49
|
+
*/
|
|
50
|
+
export type FieldFocus = 'focus-visible' | 'focus-within';
|
|
51
|
+
/** The primary focus ring (border + 2px ring at 20% alpha), for the given mode. */
|
|
52
|
+
export declare const fieldFocusRing: (f: FieldFocus) => string;
|
|
53
|
+
/**
|
|
54
|
+
* The `outlined | filled | ghost` surface values, parameterised by focus mode.
|
|
55
|
+
* `outlined` is a constant; consumers add their own extra variants (Input's
|
|
56
|
+
* `underline`) alongside.
|
|
57
|
+
*/
|
|
58
|
+
export declare const fieldSurfaceVariants: (f: FieldFocus) => {
|
|
59
|
+
outlined: string;
|
|
60
|
+
filled: string;
|
|
61
|
+
ghost: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The intent frame values (border + focus ring tint) for success/warning/danger,
|
|
65
|
+
* parameterised by focus mode. `default` carries no frame class, so callers keep
|
|
66
|
+
* their own empty `default: {}` slot entry.
|
|
67
|
+
*/
|
|
68
|
+
export declare const fieldIntentFrames: (f: FieldFocus) => {
|
|
69
|
+
success: string;
|
|
70
|
+
warning: string;
|
|
71
|
+
danger: string;
|
|
72
|
+
};
|
|
73
|
+
/** The error frame value (danger border + ring), parameterised by focus mode. */
|
|
74
|
+
export declare const fieldErrorFrame: (f: FieldFocus) => string;
|
|
75
|
+
/** Frame classes when the whole control is disabled (the `disabled` variant). */
|
|
76
|
+
export declare const FIELD_DISABLED_FRAME = "opacity-50 cursor-not-allowed bg-surface-disabled pointer-events-none";
|
|
77
|
+
/** The field label base, shared verbatim across all three fields. */
|
|
78
|
+
export declare const FIELD_LABEL = "block font-medium text-text-secondary text-sm";
|
|
79
|
+
/** Label colour when the control is disabled. */
|
|
80
|
+
export declare const FIELD_LABEL_DISABLED = "text-text-disabled";
|
|
81
|
+
/** Required-marker asterisk appended after the label. */
|
|
82
|
+
export declare const FIELD_REQUIRED_LABEL = "after:content-['*'] after:ml-1 after:text-danger";
|
|
83
|
+
/** The two `messageType` message tones (error wins the fold when both apply). */
|
|
84
|
+
export declare const FIELD_MESSAGE_TONES: {
|
|
85
|
+
readonly error: "text-danger";
|
|
86
|
+
readonly helper: "text-text-tertiary";
|
|
87
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared style fragments for the bordered field frame.
|
|
3
|
+
*
|
|
4
|
+
* Input, PinInput and TimeInput (and NumberInput, via its Input composition)
|
|
5
|
+
* all render the same field chrome — the neutral resting frame, the focus ring,
|
|
6
|
+
* the `outlined | filled | ghost` surfaces, the intent colours, the disabled /
|
|
7
|
+
* error states and the label / message scaffolding. Before this module each of
|
|
8
|
+
* the three `*.variants.ts` hand-copied those class strings, so a token fix had
|
|
9
|
+
* to be applied in three places and drift crept in silently.
|
|
10
|
+
*
|
|
11
|
+
* These exports are the single source for the shared tokens. They are composed
|
|
12
|
+
* back into each `tv()` config at the EXACT positions the inlined strings held,
|
|
13
|
+
* so the resolved (flattened) class output is byte-identical — proven by the
|
|
14
|
+
* render-identity matrix diff in the debt-fix-wave-5 (40 960 Input / 2 304 Pin /
|
|
15
|
+
* 4 608 TimeInput combinations, zero diff). This is a pure de-duplication, not a
|
|
16
|
+
* behaviour change.
|
|
17
|
+
*
|
|
18
|
+
* The one axis of genuine divergence is the focus mechanism: Input and PinInput
|
|
19
|
+
* put the ring on the focusable element itself (`focus-visible:`), while
|
|
20
|
+
* TimeInput hosts borderless segments inside a bordered container and lights the
|
|
21
|
+
* whole field via `focus-within:`. That is why the ring / variant / intent /
|
|
22
|
+
* error fragments are parameterised by {@link FieldFocus} rather than fixed.
|
|
23
|
+
*
|
|
24
|
+
* NOT covered here (deliberately component-local): the per-component frame
|
|
25
|
+
* prefix (Input's `w-full`, PinInput's cell content styles, TimeInput's
|
|
26
|
+
* `inline-flex` container), Input's `underline` variant and `placeholder`
|
|
27
|
+
* colour, PinInput's `focus-visible:z-10`, TimeInput's `fullWidth` and its
|
|
28
|
+
* cursor-free readonly. The shared label/message MARKUP in the `.svelte` files
|
|
29
|
+
* is a separate, larger cut (see technical-debt "Field chrome…" part b).
|
|
30
|
+
*
|
|
31
|
+
* This is not a component and imports nothing from other component dirs, so it
|
|
32
|
+
* is exempt from the cross-component import guard (imports-lint treats
|
|
33
|
+
* `internal/**` as the extraction target).
|
|
34
|
+
*/
|
|
35
|
+
/** The field's colour/border/shadow transition — the longest shared string. */
|
|
36
|
+
export const FIELD_TRANSITION = 'transition-[color,background-color,border-color,box-shadow] duration-[var(--blocks-duration-fast)] ease-out';
|
|
37
|
+
/** The neutral resting frame: border + primary text + base surface. Input
|
|
38
|
+
* appends its own `placeholder:` colour after this. */
|
|
39
|
+
export const FIELD_SURFACE = 'border text-text-primary bg-surface-base';
|
|
40
|
+
/** `:disabled` / `:read-only` pseudo-class fallbacks on a NATIVE field element
|
|
41
|
+
* (Input's `base`, PinInput's `cell`). TimeInput's frame is a container whose
|
|
42
|
+
* segments carry their own states, so it omits these. */
|
|
43
|
+
export const FIELD_NATIVE_DISABLED = 'disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-surface-subtle';
|
|
44
|
+
export const FIELD_NATIVE_READONLY = 'read-only:bg-surface-subtle read-only:cursor-default';
|
|
45
|
+
/** The primary focus ring (border + 2px ring at 20% alpha), for the given mode. */
|
|
46
|
+
export const fieldFocusRing = (f) => `${f}:border-primary ${f}:ring-2 ${f}:ring-primary/20`;
|
|
47
|
+
/**
|
|
48
|
+
* The `outlined | filled | ghost` surface values, parameterised by focus mode.
|
|
49
|
+
* `outlined` is a constant; consumers add their own extra variants (Input's
|
|
50
|
+
* `underline`) alongside.
|
|
51
|
+
*/
|
|
52
|
+
export const fieldSurfaceVariants = (f) => ({
|
|
53
|
+
outlined: 'border-border-subtle',
|
|
54
|
+
filled: `bg-surface-interactive border-transparent hover:bg-surface-hover ${f}:bg-surface-base`,
|
|
55
|
+
ghost: `bg-transparent hover:bg-surface-subtle ${f}:bg-surface-base ${f}:border-border-subtle`
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* The intent frame values (border + focus ring tint) for success/warning/danger,
|
|
59
|
+
* parameterised by focus mode. `default` carries no frame class, so callers keep
|
|
60
|
+
* their own empty `default: {}` slot entry.
|
|
61
|
+
*/
|
|
62
|
+
export const fieldIntentFrames = (f) => ({
|
|
63
|
+
success: `border-success ${f}:border-success ${f}:ring-success/20`,
|
|
64
|
+
warning: `border-warning ${f}:border-warning ${f}:ring-warning/20`,
|
|
65
|
+
danger: `border-danger ${f}:border-danger ${f}:ring-danger/20`
|
|
66
|
+
});
|
|
67
|
+
/** The error frame value (danger border + ring), parameterised by focus mode. */
|
|
68
|
+
export const fieldErrorFrame = (f) => `border-danger ${f}:border-danger ${f}:ring-danger/20`;
|
|
69
|
+
/** Frame classes when the whole control is disabled (the `disabled` variant). */
|
|
70
|
+
export const FIELD_DISABLED_FRAME = 'opacity-50 cursor-not-allowed bg-surface-disabled pointer-events-none';
|
|
71
|
+
/** The field label base, shared verbatim across all three fields. */
|
|
72
|
+
export const FIELD_LABEL = 'block font-medium text-text-secondary text-sm';
|
|
73
|
+
/** Label colour when the control is disabled. */
|
|
74
|
+
export const FIELD_LABEL_DISABLED = 'text-text-disabled';
|
|
75
|
+
/** Required-marker asterisk appended after the label. */
|
|
76
|
+
export const FIELD_REQUIRED_LABEL = "after:content-['*'] after:ml-1 after:text-danger";
|
|
77
|
+
/** The two `messageType` message tones (error wins the fold when both apply). */
|
|
78
|
+
export const FIELD_MESSAGE_TONES = {
|
|
79
|
+
error: 'text-danger',
|
|
80
|
+
helper: 'text-text-tertiary'
|
|
81
|
+
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const accordionVariants: ((props?: {
|
|
3
|
-
variant?: "default" | "
|
|
3
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
4
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
5
5
|
} | undefined) => {
|
|
6
6
|
base: (props?: ({
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
8
8
|
size?: "sm" | "md" | "lg" | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
11
11
|
}) | undefined) => string;
|
|
12
12
|
item: (props?: ({
|
|
13
|
-
variant?: "default" | "
|
|
13
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
14
14
|
size?: "sm" | "md" | "lg" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
17
17
|
}) | undefined) => string;
|
|
18
18
|
trigger: (props?: ({
|
|
19
|
-
variant?: "default" | "
|
|
19
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
20
20
|
size?: "sm" | "md" | "lg" | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
23
23
|
}) | undefined) => string;
|
|
24
24
|
chevron: (props?: ({
|
|
25
|
-
variant?: "default" | "
|
|
25
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
29
29
|
}) | undefined) => string;
|
|
30
30
|
content: (props?: ({
|
|
31
|
-
variant?: "default" | "
|
|
31
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
32
32
|
size?: "sm" | "md" | "lg" | undefined;
|
|
33
33
|
} & {
|
|
34
34
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
35
35
|
}) | undefined) => string;
|
|
36
36
|
contentInner: (props?: ({
|
|
37
|
-
variant?: "default" | "
|
|
37
|
+
variant?: "default" | "card" | "ghost" | undefined;
|
|
38
38
|
size?: "sm" | "md" | "lg" | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const alertVariants: ((props?: {
|
|
3
|
-
intent?: "
|
|
3
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
4
4
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | undefined;
|
|
6
6
|
} | undefined) => {
|
|
7
7
|
base: (props?: ({
|
|
8
|
-
intent?: "
|
|
8
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
9
9
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
10
10
|
size?: "sm" | "md" | "lg" | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
13
13
|
}) | undefined) => string;
|
|
14
14
|
icon: (props?: ({
|
|
15
|
-
intent?: "
|
|
15
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
16
16
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
17
17
|
size?: "sm" | "md" | "lg" | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
20
20
|
}) | undefined) => string;
|
|
21
21
|
content: (props?: ({
|
|
22
|
-
intent?: "
|
|
22
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
23
23
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
27
27
|
}) | undefined) => string;
|
|
28
28
|
title: (props?: ({
|
|
29
|
-
intent?: "
|
|
29
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
30
30
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
31
31
|
size?: "sm" | "md" | "lg" | undefined;
|
|
32
32
|
} & {
|
|
33
33
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
34
34
|
}) | undefined) => string;
|
|
35
35
|
description: (props?: ({
|
|
36
|
-
intent?: "
|
|
36
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
37
37
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
38
38
|
size?: "sm" | "md" | "lg" | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
41
41
|
}) | undefined) => string;
|
|
42
42
|
actions: (props?: ({
|
|
43
|
-
intent?: "
|
|
43
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
44
44
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
45
45
|
size?: "sm" | "md" | "lg" | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
48
48
|
}) | undefined) => string;
|
|
49
49
|
dismissButton: (props?: ({
|
|
50
|
-
intent?: "
|
|
50
|
+
intent?: "primary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
|
|
51
51
|
variant?: "inline" | "filled" | "soft" | undefined;
|
|
52
52
|
size?: "sm" | "md" | "lg" | undefined;
|
|
53
53
|
} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const avatarVariants: ((props?: {
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
4
4
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
5
5
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
6
|
-
status?: "
|
|
6
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
7
7
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
8
8
|
pulse?: boolean | undefined;
|
|
9
9
|
ring?: boolean | undefined;
|
|
@@ -11,10 +11,10 @@ export declare const avatarVariants: ((props?: {
|
|
|
11
11
|
interactive?: boolean | undefined;
|
|
12
12
|
} | undefined) => {
|
|
13
13
|
base: (props?: ({
|
|
14
|
-
size?: "
|
|
14
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
15
15
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
16
16
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
17
|
-
status?: "
|
|
17
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
18
18
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
19
19
|
pulse?: boolean | undefined;
|
|
20
20
|
ring?: boolean | undefined;
|
|
@@ -24,10 +24,10 @@ export declare const avatarVariants: ((props?: {
|
|
|
24
24
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
25
25
|
}) | undefined) => string;
|
|
26
26
|
frame: (props?: ({
|
|
27
|
-
size?: "
|
|
27
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
28
28
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
29
29
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
30
|
-
status?: "
|
|
30
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
31
31
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
32
32
|
pulse?: boolean | undefined;
|
|
33
33
|
ring?: boolean | undefined;
|
|
@@ -37,10 +37,10 @@ export declare const avatarVariants: ((props?: {
|
|
|
37
37
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
38
38
|
}) | undefined) => string;
|
|
39
39
|
image: (props?: ({
|
|
40
|
-
size?: "
|
|
40
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
41
41
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
42
42
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
43
|
-
status?: "
|
|
43
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
44
44
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
45
45
|
pulse?: boolean | undefined;
|
|
46
46
|
ring?: boolean | undefined;
|
|
@@ -50,10 +50,10 @@ export declare const avatarVariants: ((props?: {
|
|
|
50
50
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
51
51
|
}) | undefined) => string;
|
|
52
52
|
fallback: (props?: ({
|
|
53
|
-
size?: "
|
|
53
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
54
54
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
55
55
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
56
|
-
status?: "
|
|
56
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
57
57
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
58
58
|
pulse?: boolean | undefined;
|
|
59
59
|
ring?: boolean | undefined;
|
|
@@ -63,10 +63,10 @@ export declare const avatarVariants: ((props?: {
|
|
|
63
63
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
64
64
|
}) | undefined) => string;
|
|
65
65
|
status: (props?: ({
|
|
66
|
-
size?: "
|
|
66
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
67
67
|
variant?: "rounded" | "circle" | "square" | undefined;
|
|
68
68
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
69
|
-
status?: "
|
|
69
|
+
status?: "online" | "offline" | "away" | "busy" | undefined;
|
|
70
70
|
statusPosition?: "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
71
71
|
pulse?: boolean | undefined;
|
|
72
72
|
ring?: boolean | undefined;
|
|
@@ -3,8 +3,8 @@ export declare const PLACEMENT_VALUES: readonly ["top", "top-start", "top-end",
|
|
|
3
3
|
export declare const badgeVariants: ((props?: {
|
|
4
4
|
tier?: "commit" | "modify" | undefined;
|
|
5
5
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "filled" | "dot" | "soft" | "outlined" | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
8
8
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
9
9
|
counter?: boolean | undefined;
|
|
10
10
|
pulse?: boolean | undefined;
|
|
@@ -16,8 +16,8 @@ export declare const badgeVariants: ((props?: {
|
|
|
16
16
|
base: (props?: ({
|
|
17
17
|
tier?: "commit" | "modify" | undefined;
|
|
18
18
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
19
|
-
variant?: "
|
|
20
|
-
size?: "
|
|
19
|
+
variant?: "filled" | "dot" | "soft" | "outlined" | undefined;
|
|
20
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
21
21
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
22
22
|
counter?: boolean | undefined;
|
|
23
23
|
pulse?: boolean | undefined;
|
|
@@ -31,8 +31,8 @@ export declare const badgeVariants: ((props?: {
|
|
|
31
31
|
content: (props?: ({
|
|
32
32
|
tier?: "commit" | "modify" | undefined;
|
|
33
33
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
34
|
-
variant?: "
|
|
35
|
-
size?: "
|
|
34
|
+
variant?: "filled" | "dot" | "soft" | "outlined" | undefined;
|
|
35
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
36
36
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
37
37
|
counter?: boolean | undefined;
|
|
38
38
|
pulse?: boolean | undefined;
|
|
@@ -46,8 +46,8 @@ export declare const badgeVariants: ((props?: {
|
|
|
46
46
|
removeButton: (props?: ({
|
|
47
47
|
tier?: "commit" | "modify" | undefined;
|
|
48
48
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
49
|
-
variant?: "
|
|
50
|
-
size?: "
|
|
49
|
+
variant?: "filled" | "dot" | "soft" | "outlined" | undefined;
|
|
50
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
51
51
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
52
52
|
counter?: boolean | undefined;
|
|
53
53
|
pulse?: boolean | undefined;
|
|
@@ -61,8 +61,8 @@ export declare const badgeVariants: ((props?: {
|
|
|
61
61
|
removeIcon: (props?: ({
|
|
62
62
|
tier?: "commit" | "modify" | undefined;
|
|
63
63
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
64
|
-
variant?: "
|
|
65
|
-
size?: "
|
|
64
|
+
variant?: "filled" | "dot" | "soft" | "outlined" | undefined;
|
|
65
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
66
66
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
67
67
|
counter?: boolean | undefined;
|
|
68
68
|
pulse?: boolean | undefined;
|
|
@@ -4,7 +4,7 @@ export declare const buttonVariants: ((props?: {
|
|
|
4
4
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
5
5
|
pressed?: boolean | undefined;
|
|
6
6
|
variant?: "text" | "ghost" | "filled" | "outlined" | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xs" | undefined;
|
|
8
8
|
loading?: boolean | undefined;
|
|
9
9
|
loadingPlacement?: "start" | "end" | "overlay" | undefined;
|
|
10
10
|
active?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const buttonVariants: ((props?: {
|
|
|
15
15
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
16
16
|
pressed?: boolean | undefined;
|
|
17
17
|
variant?: "text" | "ghost" | "filled" | "outlined" | undefined;
|
|
18
|
-
size?: "
|
|
18
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xs" | undefined;
|
|
19
19
|
loading?: boolean | undefined;
|
|
20
20
|
loadingPlacement?: "start" | "end" | "overlay" | undefined;
|
|
21
21
|
active?: boolean | undefined;
|
|
@@ -28,7 +28,7 @@ export declare const buttonVariants: ((props?: {
|
|
|
28
28
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
29
29
|
pressed?: boolean | undefined;
|
|
30
30
|
variant?: "text" | "ghost" | "filled" | "outlined" | undefined;
|
|
31
|
-
size?: "
|
|
31
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xs" | undefined;
|
|
32
32
|
loading?: boolean | undefined;
|
|
33
33
|
loadingPlacement?: "start" | "end" | "overlay" | undefined;
|
|
34
34
|
active?: boolean | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const buttonVariants: ((props?: {
|
|
|
41
41
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
42
42
|
pressed?: boolean | undefined;
|
|
43
43
|
variant?: "text" | "ghost" | "filled" | "outlined" | undefined;
|
|
44
|
-
size?: "
|
|
44
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xs" | undefined;
|
|
45
45
|
loading?: boolean | undefined;
|
|
46
46
|
loadingPlacement?: "start" | "end" | "overlay" | undefined;
|
|
47
47
|
active?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const cardVariants: ((props?: {
|
|
3
|
-
variant?: "
|
|
3
|
+
variant?: "outlined" | "quiet" | "elevated" | "floating" | undefined;
|
|
4
4
|
padding?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
5
5
|
dividers?: boolean | undefined;
|
|
6
6
|
interactive?: boolean | undefined;
|
|
@@ -8,7 +8,7 @@ export declare const cardVariants: ((props?: {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
} | undefined) => {
|
|
10
10
|
base: (props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "outlined" | "quiet" | "elevated" | "floating" | undefined;
|
|
12
12
|
padding?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
13
13
|
dividers?: boolean | undefined;
|
|
14
14
|
interactive?: boolean | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const cardVariants: ((props?: {
|
|
|
18
18
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
19
19
|
}) | undefined) => string;
|
|
20
20
|
header: (props?: ({
|
|
21
|
-
variant?: "
|
|
21
|
+
variant?: "outlined" | "quiet" | "elevated" | "floating" | undefined;
|
|
22
22
|
padding?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
23
23
|
dividers?: boolean | undefined;
|
|
24
24
|
interactive?: boolean | undefined;
|
|
@@ -28,7 +28,7 @@ export declare const cardVariants: ((props?: {
|
|
|
28
28
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
29
29
|
}) | undefined) => string;
|
|
30
30
|
content: (props?: ({
|
|
31
|
-
variant?: "
|
|
31
|
+
variant?: "outlined" | "quiet" | "elevated" | "floating" | undefined;
|
|
32
32
|
padding?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
33
33
|
dividers?: boolean | undefined;
|
|
34
34
|
interactive?: boolean | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const cardVariants: ((props?: {
|
|
|
38
38
|
class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
|
|
39
39
|
}) | undefined) => string;
|
|
40
40
|
footer: (props?: ({
|
|
41
|
-
variant?: "
|
|
41
|
+
variant?: "outlined" | "quiet" | "elevated" | "floating" | undefined;
|
|
42
42
|
padding?: "none" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
43
43
|
dividers?: boolean | undefined;
|
|
44
44
|
interactive?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
2
|
export declare const checkboxVariants: ((props?: {
|
|
3
3
|
tier?: "commit" | "modify" | undefined;
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
5
5
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
6
6
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
7
7
|
checked?: boolean | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
11
11
|
} | undefined) => {
|
|
12
12
|
wrapper: (props?: ({
|
|
13
13
|
tier?: "commit" | "modify" | undefined;
|
|
14
|
-
size?: "
|
|
14
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
15
15
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
16
16
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
17
17
|
checked?: boolean | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
23
23
|
}) | undefined) => string;
|
|
24
24
|
control: (props?: ({
|
|
25
25
|
tier?: "commit" | "modify" | undefined;
|
|
26
|
-
size?: "
|
|
26
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
27
27
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
28
28
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
29
29
|
checked?: boolean | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
35
35
|
}) | undefined) => string;
|
|
36
36
|
box: (props?: ({
|
|
37
37
|
tier?: "commit" | "modify" | undefined;
|
|
38
|
-
size?: "
|
|
38
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
39
39
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
40
40
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
41
41
|
checked?: boolean | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
47
47
|
}) | undefined) => string;
|
|
48
48
|
icon: (props?: ({
|
|
49
49
|
tier?: "commit" | "modify" | undefined;
|
|
50
|
-
size?: "
|
|
50
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
51
51
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
52
52
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
53
53
|
checked?: boolean | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
59
59
|
}) | undefined) => string;
|
|
60
60
|
label: (props?: ({
|
|
61
61
|
tier?: "commit" | "modify" | undefined;
|
|
62
|
-
size?: "
|
|
62
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
63
63
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
64
64
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
65
65
|
checked?: boolean | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const checkboxVariants: ((props?: {
|
|
|
71
71
|
}) | undefined) => string;
|
|
72
72
|
message: (props?: ({
|
|
73
73
|
tier?: "commit" | "modify" | undefined;
|
|
74
|
-
size?: "
|
|
74
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
75
75
|
intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
76
76
|
variant?: "ghost" | "filled" | "outlined" | undefined;
|
|
77
77
|
checked?: boolean | undefined;
|