burne-ui 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/cli/burne-ui.js +4 -3
- package/cli/init.js +83 -19
- package/cli/skin-validate.mjs +83 -2
- package/cli/tailwind.css +12 -0
- package/cli/theme-bridge.css +2 -0
- package/dist/authoring.d.ts +2 -0
- package/dist/authoring.js +8 -0
- package/dist/components/composite/Accordion/accordionStyles.js +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.js +1 -1
- package/dist/components/composite/Form/formStyles.js +4 -4
- package/dist/components/core/Alert/alertStyles.d.ts +1 -1
- package/dist/components/core/Alert/alertStyles.js +1 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsStyles.js +4 -4
- package/dist/components/core/Button/buttonStyles.d.ts +1 -1
- package/dist/components/core/Button/buttonStyles.js +9 -8
- package/dist/components/core/Calendar/calendarStyles.d.ts +3 -3
- package/dist/components/core/Calendar/calendarStyles.js +4 -4
- package/dist/components/core/Card/cardStyles.d.ts +2 -2
- package/dist/components/core/Card/cardStyles.js +2 -2
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +3 -3
- package/dist/components/core/Checkbox/checkboxStyles.js +3 -3
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +2 -2
- package/dist/components/core/ColorPicker/colorPickerStyles.js +2 -2
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +1 -1
- package/dist/components/core/ColorPicker/colorSliderStyles.js +1 -1
- package/dist/components/core/ComboBox/comboBoxStyles.d.ts +4 -4
- package/dist/components/core/ComboBox/comboBoxStyles.js +4 -4
- package/dist/components/core/DatePicker/datePickerStyles.d.ts +2 -2
- package/dist/components/core/DatePicker/datePickerStyles.js +2 -2
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureStyles.js +3 -3
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +3 -3
- package/dist/components/core/Dropdown/dropdownStyles.js +3 -3
- package/dist/components/core/Expandable/expandableStyles.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.js +1 -1
- package/dist/components/core/Field/fieldStyles.js +1 -1
- package/dist/components/core/Input/inputStyles.d.ts +5 -5
- package/dist/components/core/Input/inputStyles.js +5 -5
- package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
- package/dist/components/core/Kbd/kbdStyles.js +1 -1
- package/dist/components/core/Link/linkStyles.d.ts +1 -1
- package/dist/components/core/Link/linkStyles.js +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +3 -3
- package/dist/components/core/ListBox/listBoxStyles.js +3 -3
- package/dist/components/core/Loading/loadingStyles.js +1 -1
- package/dist/components/core/Meter/meterStyles.d.ts +1 -1
- package/dist/components/core/Meter/meterStyles.js +1 -1
- package/dist/components/core/NumberInput/numberInputStyles.js +2 -2
- package/dist/components/core/Pagination/paginationStyles.d.ts +3 -3
- package/dist/components/core/Pagination/paginationStyles.js +3 -3
- package/dist/components/core/PinInput/pinInputStyles.d.ts +1 -1
- package/dist/components/core/PinInput/pinInputStyles.js +2 -2
- package/dist/components/core/ProgressBar/progressBarStyles.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarStyles.js +1 -1
- package/dist/components/core/Radio/radioStyles.d.ts +3 -3
- package/dist/components/core/Radio/radioStyles.js +3 -3
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
- package/dist/components/core/SearchInput/searchInputStyles.js +2 -2
- package/dist/components/core/Select/selectStyles.d.ts +3 -3
- package/dist/components/core/Select/selectStyles.js +3 -3
- package/dist/components/core/Separator/separatorStyles.d.ts +2 -2
- package/dist/components/core/Separator/separatorStyles.js +2 -2
- package/dist/components/core/Slider/sliderStyles.d.ts +1 -1
- package/dist/components/core/Slider/sliderStyles.js +1 -1
- package/dist/components/core/Stepper/stepperStyles.js +1 -1
- package/dist/components/core/Switch/switchStyles.d.ts +3 -3
- package/dist/components/core/Switch/switchStyles.js +3 -3
- package/dist/components/core/Table/tableStyles.d.ts +1 -1
- package/dist/components/core/Table/tableStyles.js +2 -2
- package/dist/components/core/Tabs/tabsStyles.js +1 -1
- package/dist/components/core/TagsInput/tagsInputStyles.js +2 -2
- package/dist/components/core/TextArea/textAreaStyles.d.ts +3 -3
- package/dist/components/core/TextArea/textAreaStyles.js +2 -2
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +1 -1
- package/dist/components/core/TimeField/timeFieldStyles.js +1 -1
- package/dist/components/core/Toast/toastStyles.d.ts +1 -1
- package/dist/components/core/Toast/toastStyles.js +1 -1
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +1 -1
- package/dist/components/core/Tooltip/tooltipStyles.js +1 -1
- package/dist/components/core/utils/inputAffixStyles.js +1 -1
- package/dist/components/core/utils/optionListItemStyles.d.ts +2 -2
- package/dist/components/core/utils/optionListItemStyles.js +2 -2
- package/dist/components/core/utils/semanticStatusSurface.js +4 -4
- package/dist/components/core/utils/sizeLayout/panel.js +4 -4
- package/dist/studio/colorPresets.d.ts +1 -1
- package/dist/studio/colorPresets.js +8 -1
- package/dist/studio.d.ts +1 -1
- package/dist/studio.js +13 -1
- package/dist/theme/namedPalettes.d.ts +12 -0
- package/dist/theme/namedPalettes.js +697 -1
- package/dist/tokens/config.d.ts +8 -2
- package/dist/tokens/config.js +8 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +9 -0
- package/dist/ui.css +55 -45
- package/dist/utils/cn.js +2 -0
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ const CALENDAR_GRID_CLASS = "min-w-0";
|
|
|
77
77
|
const CALENDAR_CONTENTS_CLASS = "contents";
|
|
78
78
|
const CALENDAR_DAYS_WEEKDAY_GRID_CLASS = "grid grid-cols-7 gap-xsmall";
|
|
79
79
|
const CALENDAR_DAYS_CELL_GRID_CLASS = "grid grid-cols-7 gap-xsmall";
|
|
80
|
-
const CALENDAR_WEEKDAY_LABEL_CLASS = "flex items-center justify-center font-w-mid text-muted";
|
|
80
|
+
const CALENDAR_WEEKDAY_LABEL_CLASS = "flex items-center justify-center font-w-mid text-muted-foreground";
|
|
81
81
|
const CALENDAR_DAY_CELL_WRAPPER_CLASS = "relative flex items-center justify-center";
|
|
82
82
|
const CALENDAR_DAY_CELL_LAYER_CLASS = "relative z-10";
|
|
83
83
|
const CALENDAR_MONTHS_GRID_CLASS = "grid grid-cols-3";
|
|
@@ -86,7 +86,7 @@ const CALENDAR_FOOTER_CLASS = "flex items-center justify-between border-t-token
|
|
|
86
86
|
const CALENDAR_NAV_BUTTON_CLASS = cn(
|
|
87
87
|
hoverVariant(),
|
|
88
88
|
"flex shrink-0 origin-center items-center justify-center rounded-base",
|
|
89
|
-
"text-muted focus-ring",
|
|
89
|
+
"text-muted-foreground focus-ring",
|
|
90
90
|
"disabled:cursor-not-allowed disabled:opacity-40"
|
|
91
91
|
);
|
|
92
92
|
const CALENDAR_CELL_BUTTON_CLASS = "group/calendar-cell relative inline-flex origin-center items-center justify-center overflow-hidden outline-none focus-ring rounded-mid";
|
|
@@ -108,8 +108,8 @@ const CALENDAR_CELL_CURRENT_CLASS = "font-w-mid text-primary";
|
|
|
108
108
|
const CALENDAR_CELL_DEFAULT_CLASS = "text-foreground";
|
|
109
109
|
const CALENDAR_CELL_DISABLED_CLASS = "cursor-not-allowed opacity-35";
|
|
110
110
|
const CALENDAR_CELL_POINTER_CLASS = "cursor-pointer";
|
|
111
|
-
const CALENDAR_YEAR_OUT_OF_DECADE_CLASS = "text-muted";
|
|
112
|
-
const CALENDAR_FOOTER_TODAY_BUTTON_CLASS = "text-muted";
|
|
111
|
+
const CALENDAR_YEAR_OUT_OF_DECADE_CLASS = "text-muted-foreground";
|
|
112
|
+
const CALENDAR_FOOTER_TODAY_BUTTON_CLASS = "text-muted-foreground";
|
|
113
113
|
function calendarNavButtonClass(size) {
|
|
114
114
|
return cn(CALENDAR_NAV_BUTTON_CLASS, CALENDAR_NAV_BTN[size]);
|
|
115
115
|
}
|
|
@@ -16,8 +16,8 @@ export declare const CARD_HEADER_BASE_CLASS = "flex shrink-0 flex-col text-start
|
|
|
16
16
|
export declare const CARD_HEADING_BLOCK_BASE_CLASS = "flex min-w-0 flex-1 flex-col text-start";
|
|
17
17
|
export declare const CARD_BODY_BASE_CLASS = "min-w-0";
|
|
18
18
|
export declare const CARD_TITLE_CLASS = "min-w-0";
|
|
19
|
-
export declare const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted";
|
|
20
|
-
export declare const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted";
|
|
19
|
+
export declare const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted-foreground";
|
|
20
|
+
export declare const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted-foreground";
|
|
21
21
|
export declare function cardRootClass(variant: CardVariant, pressable: boolean, pressableMotionClass: string, size: CardSize, shadow?: ShadowLevel, className?: string, disabled?: boolean): string;
|
|
22
22
|
export declare function cardHeaderClass(size: CardSize, className?: string): string;
|
|
23
23
|
export declare function cardHeadingBlockClass(size: CardSize, className?: string): string;
|
|
@@ -25,8 +25,8 @@ const CARD_HEADER_BASE_CLASS = "flex shrink-0 flex-col text-start";
|
|
|
25
25
|
const CARD_HEADING_BLOCK_BASE_CLASS = "flex min-w-0 flex-1 flex-col text-start";
|
|
26
26
|
const CARD_BODY_BASE_CLASS = "min-w-0";
|
|
27
27
|
const CARD_TITLE_CLASS = "min-w-0";
|
|
28
|
-
const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted";
|
|
29
|
-
const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted";
|
|
28
|
+
const CARD_DESCRIPTION_CLASS = "min-w-0 text-muted-foreground";
|
|
29
|
+
const CARD_FOOTER_BASE_CLASS = "mt-auto border-t-token text-muted-foreground";
|
|
30
30
|
function cardRootClass(variant, pressable, pressableMotionClass, size, shadow = "base", className, disabled = false) {
|
|
31
31
|
const visual = resolveVariantVisual(variant, KIT_CARD_VARIANTS, "card.root");
|
|
32
32
|
const interactiveRootClass = disabled ? CARD_PRESSABLE_DISABLED_ROOT_CLASS : CARD_PRESSABLE_ROOT_CLASS;
|
|
@@ -11,11 +11,11 @@ export declare const CHECKBOX_LABEL_POINTER_CLASS = "cursor-pointer";
|
|
|
11
11
|
export declare const CHECKBOX_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0 font-w-mid";
|
|
12
12
|
export declare const CHECKBOX_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
|
|
13
13
|
export declare const CHECKBOX_LABEL_MOTION_CLASS = "origin-center";
|
|
14
|
-
export declare const CHECKBOX_LABEL_TEXT_DISABLED_CLASS = "text-muted";
|
|
14
|
+
export declare const CHECKBOX_LABEL_TEXT_DISABLED_CLASS = "text-muted-foreground";
|
|
15
15
|
export declare const CHECKBOX_LABEL_TEXT_DANGER_CLASS = "text-danger";
|
|
16
16
|
export declare const CHECKBOX_REQUIRED_MARK_CLASS = "text-danger";
|
|
17
|
-
export declare const CHECKBOX_HINT_DISABLED_CLASS = "text-muted";
|
|
18
|
-
export declare const CHECKBOX_ERROR_DISABLED_CLASS = "text-muted";
|
|
17
|
+
export declare const CHECKBOX_HINT_DISABLED_CLASS = "text-muted-foreground";
|
|
18
|
+
export declare const CHECKBOX_ERROR_DISABLED_CLASS = "text-muted-foreground";
|
|
19
19
|
export declare const CHECKBOX_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
|
|
20
20
|
export declare const CHECKBOX_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
|
|
21
21
|
export declare const CHECKBOX_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-start";
|
|
@@ -19,11 +19,11 @@ const CHECKBOX_LABEL_POINTER_CLASS = "cursor-pointer";
|
|
|
19
19
|
const CHECKBOX_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0 font-w-mid";
|
|
20
20
|
const CHECKBOX_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
|
|
21
21
|
const CHECKBOX_LABEL_MOTION_CLASS = "origin-center";
|
|
22
|
-
const CHECKBOX_LABEL_TEXT_DISABLED_CLASS = "text-muted";
|
|
22
|
+
const CHECKBOX_LABEL_TEXT_DISABLED_CLASS = "text-muted-foreground";
|
|
23
23
|
const CHECKBOX_LABEL_TEXT_DANGER_CLASS = "text-danger";
|
|
24
24
|
const CHECKBOX_REQUIRED_MARK_CLASS = "text-danger";
|
|
25
|
-
const CHECKBOX_HINT_DISABLED_CLASS = "text-muted";
|
|
26
|
-
const CHECKBOX_ERROR_DISABLED_CLASS = "text-muted";
|
|
25
|
+
const CHECKBOX_HINT_DISABLED_CLASS = "text-muted-foreground";
|
|
26
|
+
const CHECKBOX_ERROR_DISABLED_CLASS = "text-muted-foreground";
|
|
27
27
|
const CHECKBOX_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
|
|
28
28
|
const CHECKBOX_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
|
|
29
29
|
const CHECKBOX_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-start";
|
|
@@ -14,11 +14,11 @@ export declare const COLOR_PICKER_SLIDERS_ROW_CLASS = "flex items-center gap-sma
|
|
|
14
14
|
export declare const COLOR_PICKER_SLIDERS_STACK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall";
|
|
15
15
|
export declare const COLOR_PICKER_INPUTS_ROW_CLASS = "flex min-w-0 items-center gap-small";
|
|
16
16
|
export declare const COLOR_PICKER_HEX_INPUT_CLASS = "flex min-w-0 shrink items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
|
|
17
|
-
export declare const COLOR_PICKER_HEX_PREFIX_CLASS = "text-small text-muted select-none";
|
|
17
|
+
export declare const COLOR_PICKER_HEX_PREFIX_CLASS = "text-small text-muted-foreground select-none";
|
|
18
18
|
export declare const COLOR_PICKER_HEX_FIELD_CLASS = "w-[8ch] bg-transparent text-small font-mono uppercase text-foreground outline-none field-control-mobile-no-zoom";
|
|
19
19
|
export declare const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex shrink-0 items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
|
|
20
20
|
export declare const COLOR_PICKER_ALPHA_FIELD_CLASS = "w-8 bg-transparent text-end text-small font-mono text-foreground outline-none field-control-mobile-no-zoom";
|
|
21
|
-
export declare const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted select-none";
|
|
21
|
+
export declare const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted-foreground select-none";
|
|
22
22
|
export declare const COLOR_PICKER_PRESETS_CLASS = "flex flex-wrap gap-xsmall border-t-token pt-small";
|
|
23
23
|
export declare const COLOR_PICKER_PREVIEW_WRAP_CLASS = "inline-flex shrink-0";
|
|
24
24
|
export declare const COLOR_PICKER_PREVIEW_SWATCH_CLASS = "shrink-0";
|
|
@@ -29,11 +29,11 @@ const COLOR_PICKER_SLIDERS_ROW_CLASS = "flex items-center gap-small";
|
|
|
29
29
|
const COLOR_PICKER_SLIDERS_STACK_CLASS = "flex min-w-0 flex-1 flex-col gap-xsmall";
|
|
30
30
|
const COLOR_PICKER_INPUTS_ROW_CLASS = "flex min-w-0 items-center gap-small";
|
|
31
31
|
const COLOR_PICKER_HEX_INPUT_CLASS = "flex min-w-0 shrink items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
|
|
32
|
-
const COLOR_PICKER_HEX_PREFIX_CLASS = "text-small text-muted select-none";
|
|
32
|
+
const COLOR_PICKER_HEX_PREFIX_CLASS = "text-small text-muted-foreground select-none";
|
|
33
33
|
const COLOR_PICKER_HEX_FIELD_CLASS = `w-[8ch] bg-transparent text-small font-mono uppercase text-foreground outline-none ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
34
34
|
const COLOR_PICKER_ALPHA_INPUT_CLASS = "flex shrink-0 items-center gap-xsmall rounded-small border-token bg-secondary px-small py-xsmall focus-within-ring";
|
|
35
35
|
const COLOR_PICKER_ALPHA_FIELD_CLASS = `w-8 bg-transparent text-end text-small font-mono text-foreground outline-none ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
36
|
-
const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted select-none";
|
|
36
|
+
const COLOR_PICKER_ALPHA_SUFFIX_CLASS = "text-small text-muted-foreground select-none";
|
|
37
37
|
const COLOR_PICKER_PRESETS_CLASS = "flex flex-wrap gap-xsmall border-t-token pt-small";
|
|
38
38
|
const COLOR_PICKER_PREVIEW_WRAP_CLASS = "inline-flex shrink-0";
|
|
39
39
|
const COLOR_PICKER_PREVIEW_SWATCH_CLASS = "shrink-0";
|
|
@@ -6,7 +6,7 @@ export declare const COLOR_SLIDER_TRACK_OVERFLOW_CLASS = "overflow-hidden";
|
|
|
6
6
|
export declare const COLOR_SLIDER_DISABLED_CLASS = "opacity-48";
|
|
7
7
|
export declare const COLOR_SLIDER_ROOT_CLASS = "flex flex-col gap-xsmall";
|
|
8
8
|
export declare const COLOR_SLIDER_LABEL_ROW_CLASS = "flex items-center justify-between";
|
|
9
|
-
export declare const COLOR_SLIDER_LABEL_TEXT_CLASS = "text-muted";
|
|
9
|
+
export declare const COLOR_SLIDER_LABEL_TEXT_CLASS = "text-muted-foreground";
|
|
10
10
|
export declare const COLOR_SLIDER_VALUE_TEXT_CLASS = "font-w-mid text-foreground";
|
|
11
11
|
export declare const CHANNEL_A11Y_LABEL: Record<ColorChannel, string>;
|
|
12
12
|
export declare function colorSliderTrackClass({ size, orientation, disabled, slotClass, className, }: {
|
|
@@ -6,7 +6,7 @@ const COLOR_SLIDER_TRACK_OVERFLOW_CLASS = "overflow-hidden";
|
|
|
6
6
|
const COLOR_SLIDER_DISABLED_CLASS = "opacity-48";
|
|
7
7
|
const COLOR_SLIDER_ROOT_CLASS = "flex flex-col gap-xsmall";
|
|
8
8
|
const COLOR_SLIDER_LABEL_ROW_CLASS = "flex items-center justify-between";
|
|
9
|
-
const COLOR_SLIDER_LABEL_TEXT_CLASS = "text-muted";
|
|
9
|
+
const COLOR_SLIDER_LABEL_TEXT_CLASS = "text-muted-foreground";
|
|
10
10
|
const COLOR_SLIDER_VALUE_TEXT_CLASS = "font-w-mid text-foreground";
|
|
11
11
|
const CHANNEL_A11Y_LABEL = {
|
|
12
12
|
hue: "Hue",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes.js';
|
|
2
2
|
import { InputSize, InputVariant } from '../Input/index.js';
|
|
3
3
|
import { FieldShellStatus } from '../utils/fieldShellVariant.js';
|
|
4
|
-
export declare const COMBOBOX_LOADING_CLASS = "px-mid py-small text-muted";
|
|
4
|
+
export declare const COMBOBOX_LOADING_CLASS = "px-mid py-small text-muted-foreground";
|
|
5
5
|
export declare const COMBOBOX_INPUT_CONTROL: Record<InputSize, string>;
|
|
6
6
|
export declare const COMBOBOX_CHEVRON_ICON_SLOT: Record<InputSize, string>;
|
|
7
7
|
export declare const COMBOBOX_INPUT_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start motion-reduce:transition-none";
|
|
8
|
-
export declare const COMBOBOX_INPUT_BASE_CLASS = "min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted field-control-mobile-no-zoom";
|
|
9
|
-
export declare const COMBOBOX_INPUT_MUTED_CLASS = "text-muted";
|
|
10
|
-
export declare const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
|
|
8
|
+
export declare const COMBOBOX_INPUT_BASE_CLASS = "min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground field-control-mobile-no-zoom";
|
|
9
|
+
export declare const COMBOBOX_INPUT_MUTED_CLASS = "text-muted-foreground";
|
|
10
|
+
export declare const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted-foreground hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
|
|
11
11
|
export declare const COMBOBOX_TRIGGER_DISABLED_CLASS = "pointer-events-none";
|
|
12
12
|
export declare const COMBOBOX_POPOVER_CLASS = "z-popover";
|
|
13
13
|
export declare const COMBOBOX_POPOVER_BODY_CLASS = "gap-0 p-base";
|
|
@@ -7,7 +7,7 @@ import { usesKitElevation, resolveVariantVisual, skinVisualClass } from "../../.
|
|
|
7
7
|
import { cn } from "../../../utils/cn.js";
|
|
8
8
|
import { CONTROL_SIZE_LAYOUT } from "../utils/sizeLayout/control.js";
|
|
9
9
|
import { iconSlotClass } from "../utils/sizeLayout/iconSlot.js";
|
|
10
|
-
const COMBOBOX_LOADING_CLASS = "px-mid py-small text-muted";
|
|
10
|
+
const COMBOBOX_LOADING_CLASS = "px-mid py-small text-muted-foreground";
|
|
11
11
|
const COMBOBOX_INPUT_CONTROL = {
|
|
12
12
|
small: CONTROL_SIZE_LAYOUT.small.controlPad,
|
|
13
13
|
base: CONTROL_SIZE_LAYOUT.base.controlPad,
|
|
@@ -21,9 +21,9 @@ const COMBOBOX_CHEVRON_ICON_SLOT = {
|
|
|
21
21
|
large: iconSlotClass("large")
|
|
22
22
|
};
|
|
23
23
|
const COMBOBOX_INPUT_GROUP_BASE_CLASS = "relative z-0 flex min-w-0 items-stretch border-1 text-start motion-reduce:transition-none";
|
|
24
|
-
const COMBOBOX_INPUT_BASE_CLASS = `min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
25
|
-
const COMBOBOX_INPUT_MUTED_CLASS = "text-muted";
|
|
26
|
-
const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
|
|
24
|
+
const COMBOBOX_INPUT_BASE_CLASS = `min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
25
|
+
const COMBOBOX_INPUT_MUTED_CLASS = "text-muted-foreground";
|
|
26
|
+
const COMBOBOX_TRIGGER_BASE_CLASS = "flex shrink-0 origin-center cursor-pointer items-center justify-center self-stretch px-small outline-none text-muted-foreground hover:text-foreground focus-ring-inset disabled:cursor-not-allowed";
|
|
27
27
|
const COMBOBOX_TRIGGER_DISABLED_CLASS = "pointer-events-none";
|
|
28
28
|
const COMBOBOX_POPOVER_CLASS = "z-popover";
|
|
29
29
|
const COMBOBOX_POPOVER_BODY_CLASS = "gap-0 p-base";
|
|
@@ -4,8 +4,8 @@ export declare const DATE_PICKER_ROOT_CLASS = "w-fit max-w-full min-w-0";
|
|
|
4
4
|
export declare const DATE_PICKER_TRIGGER_PAD: Record<InputSize, string>;
|
|
5
5
|
export declare const DATE_PICKER_TRIGGER_MIN: Record<InputSize, string>;
|
|
6
6
|
export declare const DATE_PICKER_VALUE_CLASS = "min-w-0 flex-1 truncate text-start";
|
|
7
|
-
export declare const DATE_PICKER_VALUE_MUTED_CLASS = "text-muted";
|
|
8
|
-
export declare const DATE_PICKER_ICON_CLASS = "shrink-0 text-muted";
|
|
7
|
+
export declare const DATE_PICKER_VALUE_MUTED_CLASS = "text-muted-foreground";
|
|
8
|
+
export declare const DATE_PICKER_ICON_CLASS = "shrink-0 text-muted-foreground";
|
|
9
9
|
export declare const DATE_PICKER_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-55";
|
|
10
10
|
export declare const DATE_PICKER_POPOVER_CLASS = "z-popover";
|
|
11
11
|
/** Popover shell stays clear so the calendar is the only card. */
|
|
@@ -25,8 +25,8 @@ const DATE_PICKER_ICON_STEP = {
|
|
|
25
25
|
large: "large"
|
|
26
26
|
};
|
|
27
27
|
const DATE_PICKER_VALUE_CLASS = "min-w-0 flex-1 truncate text-start";
|
|
28
|
-
const DATE_PICKER_VALUE_MUTED_CLASS = "text-muted";
|
|
29
|
-
const DATE_PICKER_ICON_CLASS = "shrink-0 text-muted";
|
|
28
|
+
const DATE_PICKER_VALUE_MUTED_CLASS = "text-muted-foreground";
|
|
29
|
+
const DATE_PICKER_ICON_CLASS = "shrink-0 text-muted-foreground";
|
|
30
30
|
const DATE_PICKER_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-55";
|
|
31
31
|
const DATE_PICKER_POPOVER_CLASS = "z-popover";
|
|
32
32
|
const DATE_PICKER_POPOVER_PANEL_CLASS = "border-0 bg-transparent shadow-none overflow-visible";
|
|
@@ -8,7 +8,7 @@ export declare const DISCLOSURE_TRIGGER_TITLE_LIFT_CLASS = "min-w-0 flex-1 origi
|
|
|
8
8
|
export declare const DISCLOSURE_TRIGGER_TITLE_CLASS = "block";
|
|
9
9
|
export declare function disclosureTriggerTitleToneClass(open: boolean): string;
|
|
10
10
|
export declare const DISCLOSURE_TRIGGER_ICON_BASE_CLASS = "icon-slot inline-flex shrink-0 text-primary";
|
|
11
|
-
export declare const DISCLOSURE_TRIGGER_CHEVRON_BASE_CLASS = "inline-flex shrink-0 origin-center items-center justify-center text-muted";
|
|
11
|
+
export declare const DISCLOSURE_TRIGGER_CHEVRON_BASE_CLASS = "inline-flex shrink-0 origin-center items-center justify-center text-muted-foreground";
|
|
12
12
|
export declare const DISCLOSURE_TRIGGER_CHEVRON_ICON_CLASS = "size-full";
|
|
13
13
|
export declare const DISCLOSURE_TRIGGER_CHEVRON_OPEN_CLASS = "text-primary";
|
|
14
14
|
export declare const DISCLOSURE_CONTENT_SHELL_CLASS = "overflow-hidden";
|
|
@@ -38,7 +38,7 @@ function disclosureTriggerTitleToneClass(open) {
|
|
|
38
38
|
return open ? "text-primary" : "text-foreground";
|
|
39
39
|
}
|
|
40
40
|
const DISCLOSURE_TRIGGER_ICON_BASE_CLASS = "icon-slot inline-flex shrink-0 text-primary";
|
|
41
|
-
const DISCLOSURE_TRIGGER_CHEVRON_BASE_CLASS = "inline-flex shrink-0 origin-center items-center justify-center text-muted";
|
|
41
|
+
const DISCLOSURE_TRIGGER_CHEVRON_BASE_CLASS = "inline-flex shrink-0 origin-center items-center justify-center text-muted-foreground";
|
|
42
42
|
const DISCLOSURE_TRIGGER_CHEVRON_ICON_CLASS = "size-full";
|
|
43
43
|
const DISCLOSURE_TRIGGER_CHEVRON_OPEN_CLASS = "text-primary";
|
|
44
44
|
const DISCLOSURE_CONTENT_SHELL_CLASS = "overflow-hidden";
|
|
@@ -126,8 +126,8 @@ function disclosureContentClass({
|
|
|
126
126
|
framed && key === "outline" && FRAMED_PANEL.outline,
|
|
127
127
|
framed && key === "secondary" && FRAMED_PANEL.secondary,
|
|
128
128
|
key === "card" && "border-t-token",
|
|
129
|
-
key === "ghost" && "text-muted",
|
|
130
|
-
key === "default" && "text-muted",
|
|
129
|
+
key === "ghost" && "text-muted-foreground",
|
|
130
|
+
key === "default" && "text-muted-foreground",
|
|
131
131
|
visual.extend,
|
|
132
132
|
slotClass,
|
|
133
133
|
className
|
|
@@ -13,17 +13,17 @@ export declare const DROPDOWN_POPOVER_CLASS = "z-dropdown";
|
|
|
13
13
|
export declare const DROPDOWN_POPOVER_BODY_CLASS = "max-h-[min(24rem,70dvh)] gap-xsmall overflow-y-auto overflow-x-hidden p-base text-start outline-none";
|
|
14
14
|
export declare const DROPDOWN_GROUP_CLASS = "flex min-w-0 flex-col gap-xsmall text-start";
|
|
15
15
|
export declare const DROPDOWN_LABEL_CLASS = "px-base text-start";
|
|
16
|
-
export declare const DROPDOWN_LABEL_TEXT_CLASS = "text-muted";
|
|
16
|
+
export declare const DROPDOWN_LABEL_TEXT_CLASS = "text-muted-foreground";
|
|
17
17
|
export declare const DROPDOWN_SUB_CLASS = "relative min-w-0";
|
|
18
18
|
export declare const DROPDOWN_SUB_TRIGGER_CLASS = "flex w-full min-w-0 cursor-pointer items-center gap-base rounded-mid px-base py-small text-start outline-none text-base text-foreground";
|
|
19
19
|
export declare const DROPDOWN_SUB_TRIGGER_LABEL_WRAP_CLASS = "min-w-0 flex-1";
|
|
20
|
-
export declare const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted icon-base rtl:rotate-180";
|
|
20
|
+
export declare const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted-foreground icon-base rtl:rotate-180";
|
|
21
21
|
export declare const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-dropdown-sub outline-none";
|
|
22
22
|
export declare const DROPDOWN_SUB_CONTENT_LAYOUT_CLASS = "flex min-h-0 flex-col rounded-mid text-start";
|
|
23
23
|
export declare const DROPDOWN_SUB_CONTENT_BODY_CLASS = "flex max-h-[min(22rem,65dvh)] min-h-0 flex-col gap-xsmall overflow-y-auto overflow-x-hidden p-base text-start";
|
|
24
24
|
export declare const DROPDOWN_SUB_CONTENT_SURFACE_CLASS = "border-token bg-surface shadow-token-mid";
|
|
25
25
|
export declare const DROPDOWN_ITEM_BASE_CLASS = "w-full min-w-0 origin-center rounded-mid px-base py-small text-start no-underline outline-none text-base";
|
|
26
|
-
export declare const DROPDOWN_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45 hover:bg-transparent";
|
|
26
|
+
export declare const DROPDOWN_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted-foreground opacity-45 hover:bg-transparent";
|
|
27
27
|
export declare function dropdownItemRowClass({ status, disabled, hasHint, showIndicatorSlot, hasIcon, className, slotClass, size, }: {
|
|
28
28
|
status: DropdownItemStatus;
|
|
29
29
|
disabled: boolean;
|
|
@@ -21,17 +21,17 @@ const DROPDOWN_POPOVER_CLASS = "z-dropdown";
|
|
|
21
21
|
const DROPDOWN_POPOVER_BODY_CLASS = "max-h-[min(24rem,70dvh)] gap-xsmall overflow-y-auto overflow-x-hidden p-base text-start outline-none";
|
|
22
22
|
const DROPDOWN_GROUP_CLASS = "flex min-w-0 flex-col gap-xsmall text-start";
|
|
23
23
|
const DROPDOWN_LABEL_CLASS = "px-base text-start";
|
|
24
|
-
const DROPDOWN_LABEL_TEXT_CLASS = "text-muted";
|
|
24
|
+
const DROPDOWN_LABEL_TEXT_CLASS = "text-muted-foreground";
|
|
25
25
|
const DROPDOWN_SUB_CLASS = "relative min-w-0";
|
|
26
26
|
const DROPDOWN_SUB_TRIGGER_CLASS = "flex w-full min-w-0 cursor-pointer items-center gap-base rounded-mid px-base py-small text-start outline-none text-base text-foreground";
|
|
27
27
|
const DROPDOWN_SUB_TRIGGER_LABEL_WRAP_CLASS = "min-w-0 flex-1";
|
|
28
|
-
const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted icon-base rtl:rotate-180";
|
|
28
|
+
const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted-foreground icon-base rtl:rotate-180";
|
|
29
29
|
const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-dropdown-sub outline-none";
|
|
30
30
|
const DROPDOWN_SUB_CONTENT_LAYOUT_CLASS = "flex min-h-0 flex-col rounded-mid text-start";
|
|
31
31
|
const DROPDOWN_SUB_CONTENT_BODY_CLASS = "flex max-h-[min(22rem,65dvh)] min-h-0 flex-col gap-xsmall overflow-y-auto overflow-x-hidden p-base text-start";
|
|
32
32
|
const DROPDOWN_SUB_CONTENT_SURFACE_CLASS = "border-token bg-surface shadow-token-mid";
|
|
33
33
|
const DROPDOWN_ITEM_BASE_CLASS = "w-full min-w-0 origin-center rounded-mid px-base py-small text-start no-underline outline-none text-base";
|
|
34
|
-
const DROPDOWN_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45 hover:bg-transparent";
|
|
34
|
+
const DROPDOWN_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted-foreground opacity-45 hover:bg-transparent";
|
|
35
35
|
const DROPDOWN_ITEM_STATUS_CLASS = {
|
|
36
36
|
default: cn("text-foreground", hoverVariant()),
|
|
37
37
|
danger: cn("text-danger", hoverVariant("danger")),
|
|
@@ -14,7 +14,7 @@ export declare const EXPANDABLE_CHEVRON_SVG_CLASS = "shrink-0";
|
|
|
14
14
|
export declare const EXPANDABLE_MESSAGE_CLASS = "contents";
|
|
15
15
|
export declare const EXPANDABLE_ICON_BASE_CLASS = "icon-slot inline-flex h-[length:var(--icon-size)] w-[length:var(--icon-size)] shrink-0 items-center justify-center text-primary";
|
|
16
16
|
export declare const EXPANDABLE_CONTENT_CLASS = "contents";
|
|
17
|
-
export declare const EXPANDABLE_DESCRIPTION_CLASS = "text-muted";
|
|
17
|
+
export declare const EXPANDABLE_DESCRIPTION_CLASS = "text-muted-foreground";
|
|
18
18
|
export declare const EXPANDABLE_TITLE_CLASS = "font-w-mid";
|
|
19
19
|
export declare const EXPANDABLE_CHEVRON_WRAP_CLASS = "relative z-[1] flex shrink-0 origin-center self-center";
|
|
20
20
|
export declare const EXPANDABLE_PANEL_SHELL_CLASS = "overflow-hidden";
|
|
@@ -22,7 +22,7 @@ const EXPANDABLE_CHEVRON_SVG_CLASS = "shrink-0";
|
|
|
22
22
|
const EXPANDABLE_MESSAGE_CLASS = EXPANDABLE_COMPOUND_CONTENTS_CLASS;
|
|
23
23
|
const EXPANDABLE_ICON_BASE_CLASS = "icon-slot inline-flex h-[length:var(--icon-size)] w-[length:var(--icon-size)] shrink-0 items-center justify-center text-primary";
|
|
24
24
|
const EXPANDABLE_CONTENT_CLASS = EXPANDABLE_COMPOUND_CONTENTS_CLASS;
|
|
25
|
-
const EXPANDABLE_DESCRIPTION_CLASS = "text-muted";
|
|
25
|
+
const EXPANDABLE_DESCRIPTION_CLASS = "text-muted-foreground";
|
|
26
26
|
const EXPANDABLE_TITLE_CLASS = "font-w-mid";
|
|
27
27
|
const EXPANDABLE_CHEVRON_WRAP_CLASS = EXPANDABLE_TRIGGER_CHEVRON_WRAP_CLASS;
|
|
28
28
|
const EXPANDABLE_PANEL_SHELL_CLASS = "overflow-hidden";
|
|
@@ -2,7 +2,7 @@ import { cn } from "../../../utils/cn.js";
|
|
|
2
2
|
import { resolveComponentSize } from "../utils/sizeLayout/componentSize.js";
|
|
3
3
|
const FIELD_ROOT_BASE_CLASS = "flex w-full flex-col";
|
|
4
4
|
const FIELD_HINT_STATUS_CLASS = {
|
|
5
|
-
default: "text-muted",
|
|
5
|
+
default: "text-muted-foreground",
|
|
6
6
|
danger: "text-danger",
|
|
7
7
|
success: "text-success",
|
|
8
8
|
info: "text-info",
|
|
@@ -5,21 +5,21 @@ export declare const INPUT_AFFIX_SURFACE_CLASS = "bg-primary-tint";
|
|
|
5
5
|
export declare const INPUT_SHELL_BASE_CLASS = "flex items-stretch";
|
|
6
6
|
/** Clips prefix/suffix tint to the shell's inner curve. Shadow layers stay on the shell. */
|
|
7
7
|
export declare function inputShellClipClass(variant: InputVariant): string;
|
|
8
|
-
export declare const INPUT_CONTROL_BASE_CLASS = "min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted field-control-mobile-no-zoom";
|
|
8
|
+
export declare const INPUT_CONTROL_BASE_CLASS = "min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground field-control-mobile-no-zoom";
|
|
9
9
|
export declare const INPUT_FILE_INPUT_CLASS = "absolute inset-0 cursor-pointer opacity-0 disabled:cursor-not-allowed field-control-mobile-no-zoom";
|
|
10
|
-
export declare const INPUT_FILE_EMPTY_ICON_CLASS = "pointer-events-none size-12 shrink-0 text-muted";
|
|
11
|
-
export declare const INPUT_FILE_GLYPH_SHELL_CLASS = "flex size-9 shrink-0 items-center justify-center rounded-base bg-surface text-muted border-token";
|
|
10
|
+
export declare const INPUT_FILE_EMPTY_ICON_CLASS = "pointer-events-none size-12 shrink-0 text-muted-foreground";
|
|
11
|
+
export declare const INPUT_FILE_GLYPH_SHELL_CLASS = "flex size-9 shrink-0 items-center justify-center rounded-base bg-surface text-muted-foreground border-token";
|
|
12
12
|
export declare const INPUT_FILE_GLYPH_ICON_CLASS = "icon-mid shrink-0";
|
|
13
13
|
export declare const INPUT_FILE_REMOVE_ICON_CLASS = "icon-mid shrink-0";
|
|
14
14
|
export declare const INPUT_PASSWORD_TOGGLE_ICON_CLASS = "shrink-0";
|
|
15
|
-
export declare const INPUT_FILE_EMPTY_TEXT_CLASS = "pointer-events-none max-w-[18rem] text-center text-muted";
|
|
15
|
+
export declare const INPUT_FILE_EMPTY_TEXT_CLASS = "pointer-events-none max-w-[18rem] text-center text-muted-foreground";
|
|
16
16
|
export declare const INPUT_FILE_PREVIEW_CLASS = "size-9 shrink-0 rounded-base border-token object-cover";
|
|
17
17
|
export declare const INPUT_FILE_ROW_CLASS = "flex min-w-0 items-center gap-base";
|
|
18
18
|
export declare const INPUT_FILE_ROW_SINGLE_CLASS = "flex h-full min-w-0 flex-1 items-center gap-base";
|
|
19
19
|
export declare const INPUT_FILE_NAME_CLASS = "min-w-0 flex-1 truncate";
|
|
20
20
|
export declare const INPUT_FILE_REMOVE_CLASS = "relative z-10 flex size-8 shrink-0 items-center justify-center rounded-base text-danger outline-none";
|
|
21
21
|
export declare const INPUT_PASSWORD_TOGGLE_WRAP_CLASS = "flex self-stretch shrink-0 items-stretch border-s-token";
|
|
22
|
-
export declare const INPUT_PASSWORD_TOGGLE_BUTTON_CLASS = "relative z-10 flex h-full items-center justify-center text-muted outline-none hover:text-foreground focus-ring-inset";
|
|
22
|
+
export declare const INPUT_PASSWORD_TOGGLE_BUTTON_CLASS = "relative z-10 flex h-full items-center justify-center text-muted-foreground outline-none hover:text-foreground focus-ring-inset";
|
|
23
23
|
export declare const INPUT_AFFIX_PREFIX_EDGE_CLASS = "border-e-token";
|
|
24
24
|
export declare const INPUT_AFFIX_SUFFIX_EDGE_CLASS = "border-s-token";
|
|
25
25
|
export declare const INPUT_CONTROL_PAD: Record<InputSize, string>;
|
|
@@ -16,21 +16,21 @@ function inputShellClipClass(variant) {
|
|
|
16
16
|
variant === "outline" && "field-radius-clip-outline"
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
const INPUT_CONTROL_BASE_CLASS = `min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
19
|
+
const INPUT_CONTROL_BASE_CLASS = `min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
20
20
|
const INPUT_FILE_INPUT_CLASS = `absolute inset-0 cursor-pointer opacity-0 disabled:cursor-not-allowed ${FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS}`;
|
|
21
|
-
const INPUT_FILE_EMPTY_ICON_CLASS = "pointer-events-none size-12 shrink-0 text-muted";
|
|
22
|
-
const INPUT_FILE_GLYPH_SHELL_CLASS = "flex size-9 shrink-0 items-center justify-center rounded-base bg-surface text-muted border-token";
|
|
21
|
+
const INPUT_FILE_EMPTY_ICON_CLASS = "pointer-events-none size-12 shrink-0 text-muted-foreground";
|
|
22
|
+
const INPUT_FILE_GLYPH_SHELL_CLASS = "flex size-9 shrink-0 items-center justify-center rounded-base bg-surface text-muted-foreground border-token";
|
|
23
23
|
const INPUT_FILE_GLYPH_ICON_CLASS = "icon-mid shrink-0";
|
|
24
24
|
const INPUT_FILE_REMOVE_ICON_CLASS = "icon-mid shrink-0";
|
|
25
25
|
const INPUT_PASSWORD_TOGGLE_ICON_CLASS = "shrink-0";
|
|
26
|
-
const INPUT_FILE_EMPTY_TEXT_CLASS = "pointer-events-none max-w-[18rem] text-center text-muted";
|
|
26
|
+
const INPUT_FILE_EMPTY_TEXT_CLASS = "pointer-events-none max-w-[18rem] text-center text-muted-foreground";
|
|
27
27
|
const INPUT_FILE_PREVIEW_CLASS = "size-9 shrink-0 rounded-base border-token object-cover";
|
|
28
28
|
const INPUT_FILE_ROW_CLASS = "flex min-w-0 items-center gap-base";
|
|
29
29
|
const INPUT_FILE_ROW_SINGLE_CLASS = "flex h-full min-w-0 flex-1 items-center gap-base";
|
|
30
30
|
const INPUT_FILE_NAME_CLASS = "min-w-0 flex-1 truncate";
|
|
31
31
|
const INPUT_FILE_REMOVE_CLASS = "relative z-10 flex size-8 shrink-0 items-center justify-center rounded-base text-danger outline-none";
|
|
32
32
|
const INPUT_PASSWORD_TOGGLE_WRAP_CLASS = "flex self-stretch shrink-0 items-stretch border-s-token";
|
|
33
|
-
const INPUT_PASSWORD_TOGGLE_BUTTON_CLASS = "relative z-10 flex h-full items-center justify-center text-muted outline-none hover:text-foreground focus-ring-inset";
|
|
33
|
+
const INPUT_PASSWORD_TOGGLE_BUTTON_CLASS = "relative z-10 flex h-full items-center justify-center text-muted-foreground outline-none hover:text-foreground focus-ring-inset";
|
|
34
34
|
const INPUT_AFFIX_PREFIX_EDGE_CLASS = "border-e-token";
|
|
35
35
|
const INPUT_AFFIX_SUFFIX_EDGE_CLASS = "border-s-token";
|
|
36
36
|
const AFFIX_PADDING = {
|
|
@@ -7,7 +7,7 @@ export declare const KBD_TEXT_CLASS = "leading-none";
|
|
|
7
7
|
export declare const KBD_LAYOUT: Record<KbdSize, string>;
|
|
8
8
|
export declare const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
|
|
9
9
|
export declare const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
|
|
10
|
-
export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall leading-none";
|
|
10
|
+
export declare const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted-foreground text-xsmall leading-none";
|
|
11
11
|
export declare function kbdSurfaceClass(variant: KbdVariant): string;
|
|
12
12
|
export declare function kbdRootClass({ variant, size, motionClass, slotRoot, className, }: {
|
|
13
13
|
variant: KbdVariant;
|
|
@@ -22,7 +22,7 @@ const KBD_LAYOUT = {
|
|
|
22
22
|
};
|
|
23
23
|
const KBD_ROOT_BASE_CLASS = "box-border isolate inline-flex max-w-full shrink-0 select-none items-center justify-center whitespace-nowrap rounded-small font-mono motion-reduce:transition-none";
|
|
24
24
|
const KBD_GROUP_BASE_CLASS = "inline-flex items-center gap-xsmall";
|
|
25
|
-
const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted text-xsmall leading-none";
|
|
25
|
+
const KBD_GROUP_SEPARATOR_CLASS = "select-none text-muted-foreground text-xsmall leading-none";
|
|
26
26
|
function kbdSurfaceClass(variant) {
|
|
27
27
|
const visual = resolveVariantVisual(variant, KIT_KBD_VARIANTS, "kbd.root");
|
|
28
28
|
return skinVisualClass(visual, KBD_VARIANT_SURFACE[visual.key]);
|
|
@@ -4,7 +4,7 @@ export declare const LINK_ANCHOR_CLASS = "group/link inline-flex max-w-full min-
|
|
|
4
4
|
export declare const LINK_DISABLED_CLASS = "pointer-events-none opacity-50 cursor-not-allowed";
|
|
5
5
|
export declare const LINK_TEXT_BASE_CLASS = "min-w-0 truncate font-w-mid";
|
|
6
6
|
export declare const LINK_TEXT_UNDERLINE_CLASS = "underline decoration-current/70 underline-offset-[0.2em]";
|
|
7
|
-
export declare const LINK_ICON_MUTED_CLASS = "text-muted group-hover/link:text-foreground group-focus-visible/link:text-foreground";
|
|
7
|
+
export declare const LINK_ICON_MUTED_CLASS = "text-muted-foreground group-hover/link:text-foreground group-focus-visible/link:text-foreground";
|
|
8
8
|
export declare const LINK_ICON_FOREGROUND_CLASS = "text-foreground";
|
|
9
9
|
export declare const LINK_DEFAULT_ICON_ROTATE_CLASS = "rotate-[-45deg]";
|
|
10
10
|
export declare const LINK_TEXT_VARIANT: Record<LinkSize, TextVariant>;
|
|
@@ -5,7 +5,7 @@ const LINK_ANCHOR_CLASS = "group/link inline-flex max-w-full min-w-0 items-cente
|
|
|
5
5
|
const LINK_DISABLED_CLASS = "pointer-events-none opacity-50 cursor-not-allowed";
|
|
6
6
|
const LINK_TEXT_BASE_CLASS = "min-w-0 truncate font-w-mid";
|
|
7
7
|
const LINK_TEXT_UNDERLINE_CLASS = "underline decoration-current/70 underline-offset-[0.2em]";
|
|
8
|
-
const LINK_ICON_MUTED_CLASS = "text-muted group-hover/link:text-foreground group-focus-visible/link:text-foreground";
|
|
8
|
+
const LINK_ICON_MUTED_CLASS = "text-muted-foreground group-hover/link:text-foreground group-focus-visible/link:text-foreground";
|
|
9
9
|
const LINK_ICON_FOREGROUND_CLASS = "text-foreground";
|
|
10
10
|
const LINK_DEFAULT_ICON_ROTATE_CLASS = "rotate-[-45deg]";
|
|
11
11
|
const LINK_TEXT_VARIANT = {
|
|
@@ -5,13 +5,13 @@ export declare const LISTBOX_VIRTUAL_FRAME_CLASS = "relative w-full shrink-0";
|
|
|
5
5
|
export declare const LISTBOX_VIRTUAL_WINDOW_CLASS = "absolute inset-x-0 top-0";
|
|
6
6
|
export declare const LISTBOX_SECTION_CLASS = "flex min-w-0 flex-col gap-xsmall";
|
|
7
7
|
export declare const LISTBOX_HEADER_CLASS = "px-mid text-start";
|
|
8
|
-
export declare const LISTBOX_HEADER_TEXT_CLASS = "text-muted";
|
|
8
|
+
export declare const LISTBOX_HEADER_TEXT_CLASS = "text-muted-foreground";
|
|
9
9
|
export declare const LISTBOX_SEPARATOR_CLASS = "my-xsmall h-0 w-full shrink-0 border-t-token";
|
|
10
|
-
export declare const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted";
|
|
10
|
+
export declare const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted-foreground";
|
|
11
11
|
export declare const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid text-start outline-none";
|
|
12
12
|
export declare const LISTBOX_ITEM_PAD: Record<ListBoxSize, string>;
|
|
13
13
|
export declare const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
|
|
14
|
-
export declare const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45";
|
|
14
|
+
export declare const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted-foreground opacity-45";
|
|
15
15
|
export declare function listBoxRootClass({ variant, slotClass, className, virtualized, }: {
|
|
16
16
|
variant: ListBoxVariant;
|
|
17
17
|
slotClass?: string;
|
|
@@ -9,9 +9,9 @@ const LISTBOX_VIRTUAL_FRAME_CLASS = "relative w-full shrink-0";
|
|
|
9
9
|
const LISTBOX_VIRTUAL_WINDOW_CLASS = "absolute inset-x-0 top-0";
|
|
10
10
|
const LISTBOX_SECTION_CLASS = "flex min-w-0 flex-col gap-xsmall";
|
|
11
11
|
const LISTBOX_HEADER_CLASS = "px-mid text-start";
|
|
12
|
-
const LISTBOX_HEADER_TEXT_CLASS = "text-muted";
|
|
12
|
+
const LISTBOX_HEADER_TEXT_CLASS = "text-muted-foreground";
|
|
13
13
|
const LISTBOX_SEPARATOR_CLASS = "my-xsmall h-0 w-full shrink-0 border-t-token";
|
|
14
|
-
const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted";
|
|
14
|
+
const LISTBOX_EMPTY_CLASS = "px-large py-small text-center text-muted-foreground";
|
|
15
15
|
const LISTBOX_ITEM_BASE_CLASS = "w-full min-w-0 rounded-mid text-start outline-none";
|
|
16
16
|
const LISTBOX_ITEM_PAD = {
|
|
17
17
|
small: cn(CONTROL_SIZE_LAYOUT.small.padX, CONTROL_SIZE_LAYOUT.small.padY),
|
|
@@ -20,7 +20,7 @@ const LISTBOX_ITEM_PAD = {
|
|
|
20
20
|
large: cn(CONTROL_SIZE_LAYOUT.large.padX, CONTROL_SIZE_LAYOUT.large.padY)
|
|
21
21
|
};
|
|
22
22
|
const LISTBOX_ITEM_INTERACTIVE_CLASS = "cursor-pointer text-foreground focus-ring";
|
|
23
|
-
const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted opacity-45";
|
|
23
|
+
const LISTBOX_ITEM_DISABLED_CLASS = "cursor-not-allowed bg-transparent text-muted-foreground opacity-45";
|
|
24
24
|
function listBoxRootClass({
|
|
25
25
|
variant,
|
|
26
26
|
slotClass,
|
|
@@ -13,7 +13,7 @@ export declare const METER_FILL_DEFAULT_COLOR_CLASS = "bg-primary";
|
|
|
13
13
|
export declare const METER_HEADER_BASE_CLASS = "flex items-baseline justify-between gap-xsmall";
|
|
14
14
|
export declare const METER_HEADER_HORIZONTAL_CLASS = "w-full";
|
|
15
15
|
export declare const METER_HEADER_VERTICAL_CLASS = "min-w-[8rem]";
|
|
16
|
-
export declare const METER_VALUE_CLASS = "tabular-nums text-muted";
|
|
16
|
+
export declare const METER_VALUE_CLASS = "tabular-nums text-muted-foreground";
|
|
17
17
|
export declare function meterRootClass({ orientation, slotClass, className, }: {
|
|
18
18
|
orientation: MeterOrientation;
|
|
19
19
|
slotClass?: string;
|
|
@@ -24,7 +24,7 @@ const METER_FILL_DEFAULT_COLOR_CLASS = "bg-primary";
|
|
|
24
24
|
const METER_HEADER_BASE_CLASS = "flex items-baseline justify-between gap-xsmall";
|
|
25
25
|
const METER_HEADER_HORIZONTAL_CLASS = "w-full";
|
|
26
26
|
const METER_HEADER_VERTICAL_CLASS = "min-w-[8rem]";
|
|
27
|
-
const METER_VALUE_CLASS = "tabular-nums text-muted";
|
|
27
|
+
const METER_VALUE_CLASS = "tabular-nums text-muted-foreground";
|
|
28
28
|
function meterRootClass({
|
|
29
29
|
orientation,
|
|
30
30
|
slotClass,
|
|
@@ -69,7 +69,7 @@ function numberInputControlClass({
|
|
|
69
69
|
className
|
|
70
70
|
}) {
|
|
71
71
|
return cn(
|
|
72
|
-
"min-w-0 flex-1 bg-transparent text-center text-foreground outline-none placeholder:text-muted tabular-nums",
|
|
72
|
+
"min-w-0 flex-1 bg-transparent text-center text-foreground outline-none placeholder:text-muted-foreground tabular-nums",
|
|
73
73
|
CONTROL_SIZE_LAYOUT[size].controlPad,
|
|
74
74
|
NUMBER_INPUT_CONTROL_MIN[size],
|
|
75
75
|
FIELD_CONTROL_MOBILE_NO_ZOOM_CLASS,
|
|
@@ -85,7 +85,7 @@ function numberInputStepperClass({
|
|
|
85
85
|
className
|
|
86
86
|
}) {
|
|
87
87
|
return cn(
|
|
88
|
-
"relative z-10 flex shrink-0 items-center justify-center text-muted outline-none focus-ring-inset",
|
|
88
|
+
"relative z-10 flex shrink-0 items-center justify-center text-muted-foreground outline-none focus-ring-inset",
|
|
89
89
|
TEXT_COLOR_TRANSITION,
|
|
90
90
|
NUMBER_INPUT_BUTTON_PAD[size],
|
|
91
91
|
side === "decrement" ? "border-e-token" : "border-s-token",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ComponentSize } from '../utils/sizeLayout/index.js';
|
|
2
2
|
export declare const PAGINATION_ROOT_CLASS = "flex w-full min-w-0 flex-wrap items-center justify-between gap-xsmall gap-y-xsmall text-start";
|
|
3
3
|
export declare const PAGINATION_SUMMARY_CLASS = "flex min-w-0 flex-1 basis-component-xsmall";
|
|
4
|
-
export declare const PAGINATION_SUMMARY_TEXT_CLASS = "min-w-0 truncate text-muted";
|
|
4
|
+
export declare const PAGINATION_SUMMARY_TEXT_CLASS = "min-w-0 truncate text-muted-foreground";
|
|
5
5
|
export declare const PAGINATION_CONTENT_CLASS = "my-0 me-0 ms-auto flex max-w-full min-w-0 list-none flex-nowrap items-center justify-start gap-xsmall overflow-x-auto overscroll-x-contain p-0";
|
|
6
6
|
export declare const PAGINATION_ITEM_CLASS = "flex shrink-0 items-center";
|
|
7
7
|
export declare const PAGINATION_SIZE_CLASS: Record<ComponentSize, string>;
|
|
8
|
-
export declare const PAGINATION_INTERACTIVE_BUTTON_CLASS = "inline-flex min-w-0 origin-center cursor-pointer items-center justify-center gap-xsmall rounded-mid border-0 bg-transparent px-xsmall py-xsmall font-[inherit] text-muted no-underline outline-none hover:text-foreground focus-ring disabled:cursor-not-allowed disabled:opacity-48 disabled:hover:text-muted disabled:hover:bg-transparent aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-48 aria-disabled:hover:text-muted aria-disabled:hover:bg-transparent motion-reduce:animate-none";
|
|
8
|
+
export declare const PAGINATION_INTERACTIVE_BUTTON_CLASS = "inline-flex min-w-0 origin-center cursor-pointer items-center justify-center gap-xsmall rounded-mid border-0 bg-transparent px-xsmall py-xsmall font-[inherit] text-muted-foreground no-underline outline-none hover:text-foreground focus-ring disabled:cursor-not-allowed disabled:opacity-48 disabled:hover:text-muted-foreground disabled:hover:bg-transparent aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-48 aria-disabled:hover:text-muted-foreground aria-disabled:hover:bg-transparent motion-reduce:animate-none";
|
|
9
9
|
/** Page digit column — `--size-scale-2xlarge` (≈1.75rem), not panel max-width. */
|
|
10
10
|
export declare const PAGINATION_PAGE_ACTIVE_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall font-w-mid text-foreground tabular-nums text-base";
|
|
11
11
|
export declare const PAGINATION_PAGE_TEXT_CLASS = "min-w-[length:var(--size-scale-2xlarge)] tabular-nums";
|
|
12
|
-
export declare const PAGINATION_ELLIPSIS_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall text-muted tabular-nums";
|
|
12
|
+
export declare const PAGINATION_ELLIPSIS_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall text-muted-foreground tabular-nums";
|
|
13
13
|
export declare const PAGINATION_NAV_TEXT_CLASS = "";
|
|
14
14
|
export declare const PAGINATION_PREVIOUS_ICON_CLASS = "shrink-0 icon-small opacity-75 rtl:rotate-180";
|
|
15
15
|
export declare const PAGINATION_NEXT_ICON_CLASS = "shrink-0 icon-small opacity-75 rtl:rotate-180";
|
|
@@ -2,7 +2,7 @@ import { hoverVariant } from "../utils/hoverVariant.js";
|
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
const PAGINATION_ROOT_CLASS = "flex w-full min-w-0 flex-wrap items-center justify-between gap-xsmall gap-y-xsmall text-start";
|
|
4
4
|
const PAGINATION_SUMMARY_CLASS = "flex min-w-0 flex-1 basis-component-xsmall";
|
|
5
|
-
const PAGINATION_SUMMARY_TEXT_CLASS = "min-w-0 truncate text-muted";
|
|
5
|
+
const PAGINATION_SUMMARY_TEXT_CLASS = "min-w-0 truncate text-muted-foreground";
|
|
6
6
|
const PAGINATION_CONTENT_CLASS = "my-0 me-0 ms-auto flex max-w-full min-w-0 list-none flex-nowrap items-center justify-start gap-xsmall overflow-x-auto overscroll-x-contain p-0";
|
|
7
7
|
const PAGINATION_ITEM_CLASS = "flex shrink-0 items-center";
|
|
8
8
|
const PAGINATION_SIZE_CLASS = {
|
|
@@ -11,10 +11,10 @@ const PAGINATION_SIZE_CLASS = {
|
|
|
11
11
|
mid: "min-h-control-mid text-mid",
|
|
12
12
|
large: "min-h-control-large text-large"
|
|
13
13
|
};
|
|
14
|
-
const PAGINATION_INTERACTIVE_BUTTON_CLASS = "inline-flex min-w-0 origin-center cursor-pointer items-center justify-center gap-xsmall rounded-mid border-0 bg-transparent px-xsmall py-xsmall font-[inherit] text-muted no-underline outline-none hover:text-foreground focus-ring disabled:cursor-not-allowed disabled:opacity-48 disabled:hover:text-muted disabled:hover:bg-transparent aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-48 aria-disabled:hover:text-muted aria-disabled:hover:bg-transparent motion-reduce:animate-none";
|
|
14
|
+
const PAGINATION_INTERACTIVE_BUTTON_CLASS = "inline-flex min-w-0 origin-center cursor-pointer items-center justify-center gap-xsmall rounded-mid border-0 bg-transparent px-xsmall py-xsmall font-[inherit] text-muted-foreground no-underline outline-none hover:text-foreground focus-ring disabled:cursor-not-allowed disabled:opacity-48 disabled:hover:text-muted-foreground disabled:hover:bg-transparent aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-48 aria-disabled:hover:text-muted-foreground aria-disabled:hover:bg-transparent motion-reduce:animate-none";
|
|
15
15
|
const PAGINATION_PAGE_ACTIVE_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall font-w-mid text-foreground tabular-nums text-base";
|
|
16
16
|
const PAGINATION_PAGE_TEXT_CLASS = "min-w-[length:var(--size-scale-2xlarge)] tabular-nums";
|
|
17
|
-
const PAGINATION_ELLIPSIS_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall text-muted tabular-nums";
|
|
17
|
+
const PAGINATION_ELLIPSIS_CLASS = "inline-flex min-w-[length:var(--size-scale-2xlarge)] items-center justify-center px-xsmall py-xsmall text-muted-foreground tabular-nums";
|
|
18
18
|
const PAGINATION_NAV_TEXT_CLASS = "";
|
|
19
19
|
const PAGINATION_PREVIOUS_ICON_CLASS = "shrink-0 icon-small opacity-75 rtl:rotate-180";
|
|
20
20
|
const PAGINATION_NEXT_ICON_CLASS = "shrink-0 icon-small opacity-75 rtl:rotate-180";
|
|
@@ -2,7 +2,7 @@ import { FieldShellStatus } from '../utils/fieldShellVariant.js';
|
|
|
2
2
|
import { InputSize, InputVariant } from '../Input/inputTypes.js';
|
|
3
3
|
export declare const PIN_INPUT_ROOT_CLASS = "w-fit max-w-full min-w-0";
|
|
4
4
|
export declare const PIN_INPUT_GROUP_CLASS = "flex items-center gap-small";
|
|
5
|
-
export declare const PIN_INPUT_SEPARATOR_CLASS = "select-none text-muted";
|
|
5
|
+
export declare const PIN_INPUT_SEPARATOR_CLASS = "select-none text-muted-foreground";
|
|
6
6
|
export declare const PIN_INPUT_DISABLED_CLASS = "cursor-not-allowed opacity-55";
|
|
7
7
|
/** Dots without `type="password"`, so the browser does not offer a saved password. */
|
|
8
8
|
export declare const PIN_INPUT_MASK_CLASS = "[-webkit-text-security:disc] [text-security:disc]";
|
|
@@ -7,7 +7,7 @@ import { cn } from "../../../utils/cn.js";
|
|
|
7
7
|
import { CONTROL_SIZE_LAYOUT } from "../utils/sizeLayout/control.js";
|
|
8
8
|
const PIN_INPUT_ROOT_CLASS = "w-fit max-w-full min-w-0";
|
|
9
9
|
const PIN_INPUT_GROUP_CLASS = "flex items-center gap-small";
|
|
10
|
-
const PIN_INPUT_SEPARATOR_CLASS = "select-none text-muted";
|
|
10
|
+
const PIN_INPUT_SEPARATOR_CLASS = "select-none text-muted-foreground";
|
|
11
11
|
const PIN_INPUT_CELL_BOX = {
|
|
12
12
|
small: "w-control-small min-h-control-small",
|
|
13
13
|
base: "w-control-base min-h-control-base",
|
|
@@ -44,7 +44,7 @@ function pinInputFieldClass({
|
|
|
44
44
|
}) {
|
|
45
45
|
const kitSurface = usesKitElevation(variant, KIT_INPUT_VARIANTS);
|
|
46
46
|
return cn(
|
|
47
|
-
"box-border shrink-0 border-1 text-center text-foreground outline-none tabular-nums placeholder:text-muted",
|
|
47
|
+
"box-border shrink-0 border-1 text-center text-foreground outline-none tabular-nums placeholder:text-muted-foreground",
|
|
48
48
|
PIN_INPUT_CELL_BOX[size],
|
|
49
49
|
CONTROL_SIZE_LAYOUT[size].rounded,
|
|
50
50
|
PIN_INPUT_CELL_TEXT[size],
|
|
@@ -18,7 +18,7 @@ export declare const PROGRESS_BAR_INDETERMINATE_FILL_REDUCED_VERTICAL_CLASS = "b
|
|
|
18
18
|
export declare const PROGRESS_BAR_HEADER_BASE_CLASS = "flex items-baseline justify-between gap-xsmall";
|
|
19
19
|
export declare const PROGRESS_BAR_HEADER_HORIZONTAL_CLASS = "w-full";
|
|
20
20
|
export declare const PROGRESS_BAR_HEADER_VERTICAL_CLASS = "min-w-[8rem]";
|
|
21
|
-
export declare const PROGRESS_BAR_VALUE_CLASS = "tabular-nums text-muted";
|
|
21
|
+
export declare const PROGRESS_BAR_VALUE_CLASS = "tabular-nums text-muted-foreground";
|
|
22
22
|
export declare function progressBarRootClass({ orientation, slotClass, className, }: {
|
|
23
23
|
orientation: ProgressBarOrientation;
|
|
24
24
|
slotClass?: string;
|