@techsio/ui-kit 0.57.0 → 0.59.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/README.md +128 -133
- package/dist/atoms/action-icon.js +9 -8
- package/dist/atoms/button.js +114 -18
- package/dist/atoms/checkbox.js +77 -17
- package/dist/atoms/hotkeys.js +26 -7
- package/dist/atoms/icon.js +5 -5
- package/dist/atoms/image.js +118 -3
- package/dist/atoms/input.js +57 -9
- package/dist/atoms/label.js +13 -4
- package/dist/atoms/link-button.js +15 -12
- package/dist/atoms/link.js +18 -4
- package/dist/atoms/numeric-input.js +362 -84
- package/dist/atoms/rating.js +306 -73
- package/dist/atoms/skeleton.js +18 -14
- package/dist/atoms/status-text.js +31 -18
- package/dist/atoms/textarea.js +59 -12
- package/dist/atoms/tooltip.js +64 -43
- package/dist/hotkeys.js +1 -0
- package/dist/internal/choice-control.js +173 -0
- package/dist/internal/combobox-query-sync.js +11 -0
- package/dist/internal/date-picker-coordinator.js +56 -40
- package/dist/internal/date-picker-dom.js +44 -0
- package/dist/internal/date-picker-input.js +30 -0
- package/dist/internal/described-by.js +23 -18
- package/dist/internal/form-control-lifecycle.js +122 -0
- package/dist/internal/molecules/command.context.js +1 -0
- package/dist/internal/molecules/drawer.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.styles.js +9 -2
- package/dist/internal/numeric-input-editing.js +87 -0
- package/dist/internal/organisms/sidebar.context.js +1 -0
- package/dist/internal/organisms/sidebar.focus.js +1 -0
- package/dist/internal/overlay-portal.js +72 -0
- package/dist/internal/reduced-motion.js +1 -0
- package/dist/internal/use-effective-disabled.js +8 -0
- package/dist/molecules/accordion.js +44 -30
- package/dist/molecules/availability-status.js +1 -0
- package/dist/molecules/breadcrumb.js +11 -11
- package/dist/molecules/carousel.js +279 -97
- package/dist/molecules/cascade-select.js +327 -81
- package/dist/molecules/chart.js +427 -78
- package/dist/molecules/color-select.js +181 -62
- package/dist/molecules/combobox.js +537 -182
- package/dist/molecules/command.js +2 -1
- package/dist/molecules/date-picker.js +629 -119
- package/dist/molecules/dialog.js +89 -48
- package/dist/molecules/drawer.js +63 -6
- package/dist/molecules/file-upload.js +373 -37
- package/dist/molecules/form-checkbox.js +65 -22
- package/dist/molecules/form-error-summary.js +29 -5
- package/dist/molecules/form-input.js +26 -30
- package/dist/molecules/form-numeric-input.js +11 -9
- package/dist/molecules/form-textarea.js +26 -23
- package/dist/molecules/menu.js +170 -47
- package/dist/molecules/pagination.js +100 -28
- package/dist/molecules/phone-input.js +172 -37
- package/dist/molecules/popover.js +53 -26
- package/dist/molecules/price-block.js +1 -0
- package/dist/molecules/product-card.js +85 -23
- package/dist/molecules/quantity-field.js +4 -2
- package/dist/molecules/radio-card.js +102 -30
- package/dist/molecules/radio-group.js +108 -31
- package/dist/molecules/search-form.js +116 -13
- package/dist/molecules/select.js +226 -81
- package/dist/molecules/slider.js +141 -30
- package/dist/molecules/steps.js +181 -50
- package/dist/molecules/switch.js +86 -20
- package/dist/molecules/tabs.js +227 -31
- package/dist/molecules/toast.js +155 -53
- package/dist/molecules/totals-summary.js +2 -1
- package/dist/molecules/tour.js +9 -5
- package/dist/molecules/tree-view.js +255 -109
- package/dist/molecules/vertical-navigation.js +8 -4
- package/dist/organisms/data-table.fields.js +26 -5
- package/dist/organisms/data-table.helpers.js +6 -2
- package/dist/organisms/data-table.js +587 -154
- package/dist/organisms/footer.js +18 -11
- package/dist/organisms/gallery.js +61 -24
- package/dist/organisms/header.js +106 -32
- package/dist/organisms/line-item.js +1 -0
- package/dist/organisms/sidebar.js +1 -0
- package/dist/organisms/table.js +22 -7
- package/dist/src/atoms/action-icon.d.ts +10 -10
- package/dist/src/atoms/action-icon.d.ts.map +1 -1
- package/dist/src/atoms/badge.d.ts +3 -3
- package/dist/src/atoms/badge.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +47 -24
- package/dist/src/atoms/button.d.ts.map +1 -1
- package/dist/src/atoms/checkbox.d.ts +6 -5
- package/dist/src/atoms/checkbox.d.ts.map +1 -1
- package/dist/src/atoms/hotkeys.d.ts +3 -2
- package/dist/src/atoms/hotkeys.d.ts.map +1 -1
- package/dist/src/atoms/icon.d.ts +18 -17
- package/dist/src/atoms/icon.d.ts.map +1 -1
- package/dist/src/atoms/image.d.ts +38 -7
- package/dist/src/atoms/image.d.ts.map +1 -1
- package/dist/src/atoms/input.d.ts +23 -14
- package/dist/src/atoms/input.d.ts.map +1 -1
- package/dist/src/atoms/label.d.ts +4 -4
- package/dist/src/atoms/label.d.ts.map +1 -1
- package/dist/src/atoms/link-button.d.ts +78 -31
- package/dist/src/atoms/link-button.d.ts.map +1 -1
- package/dist/src/atoms/link.d.ts +30 -9
- package/dist/src/atoms/link.d.ts.map +1 -1
- package/dist/src/atoms/numeric-input.d.ts +24 -19
- package/dist/src/atoms/numeric-input.d.ts.map +1 -1
- package/dist/src/atoms/rating.d.ts +54 -26
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +9 -9
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +21 -13
- package/dist/src/atoms/status-text.d.ts.map +1 -1
- package/dist/src/atoms/textarea.d.ts +22 -20
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/atoms/tooltip.d.ts +5 -5
- package/dist/src/atoms/tooltip.d.ts.map +1 -1
- package/dist/src/hotkeys.d.ts +1 -1
- package/dist/src/hotkeys.d.ts.map +1 -1
- package/dist/src/internal/choice-control.d.ts +18 -0
- package/dist/src/internal/choice-control.d.ts.map +1 -0
- package/dist/src/internal/combobox-query-sync.d.ts +4 -0
- package/dist/src/internal/combobox-query-sync.d.ts.map +1 -0
- package/dist/src/internal/date-picker-coordinator.d.ts +7 -1
- package/dist/src/internal/date-picker-coordinator.d.ts.map +1 -1
- package/dist/src/internal/date-picker-dom.d.ts +10 -0
- package/dist/src/internal/date-picker-dom.d.ts.map +1 -0
- package/dist/src/internal/date-picker-input.d.ts +7 -0
- package/dist/src/internal/date-picker-input.d.ts.map +1 -0
- package/dist/src/internal/described-by.d.ts +7 -1
- package/dist/src/internal/described-by.d.ts.map +1 -1
- package/dist/src/internal/form-control-lifecycle.d.ts +22 -0
- package/dist/src/internal/form-control-lifecycle.d.ts.map +1 -0
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts +1 -1
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts.map +1 -1
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts +21 -0
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts.map +1 -1
- package/dist/src/internal/numeric-input-editing.d.ts +13 -0
- package/dist/src/internal/numeric-input-editing.d.ts.map +1 -0
- package/dist/src/internal/overlay-portal.d.ts +18 -0
- package/dist/src/internal/overlay-portal.d.ts.map +1 -0
- package/dist/src/internal/use-effective-disabled.d.ts +4 -0
- package/dist/src/internal/use-effective-disabled.d.ts.map +1 -0
- package/dist/src/molecules/accordion.d.ts +25 -19
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/availability-status.d.ts +4 -1
- package/dist/src/molecules/availability-status.d.ts.map +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +2 -2
- package/dist/src/molecules/breadcrumb.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +51 -52
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/cascade-select.d.ts +23 -8
- package/dist/src/molecules/cascade-select.d.ts.map +1 -1
- package/dist/src/molecules/chart.d.ts +18 -1
- package/dist/src/molecules/chart.d.ts.map +1 -1
- package/dist/src/molecules/color-select.d.ts +19 -3
- package/dist/src/molecules/color-select.d.ts.map +1 -1
- package/dist/src/molecules/combobox.d.ts +27 -5
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/command.d.ts +1 -1
- package/dist/src/molecules/date-picker.d.ts +30 -4
- package/dist/src/molecules/date-picker.d.ts.map +1 -1
- package/dist/src/molecules/dialog.d.ts +17 -4
- package/dist/src/molecules/dialog.d.ts.map +1 -1
- package/dist/src/molecules/drawer.d.ts +4 -4
- package/dist/src/molecules/drawer.d.ts.map +1 -1
- package/dist/src/molecules/file-upload.d.ts +11 -6
- package/dist/src/molecules/file-upload.d.ts.map +1 -1
- package/dist/src/molecules/form-checkbox.d.ts +7 -2
- package/dist/src/molecules/form-checkbox.d.ts.map +1 -1
- package/dist/src/molecules/form-error-summary.d.ts +4 -3
- package/dist/src/molecules/form-error-summary.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +5 -6
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +5 -5
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +5 -6
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +17 -3
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +1 -1
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +4 -1
- package/dist/src/molecules/phone-input.d.ts.map +1 -1
- package/dist/src/molecules/popover.d.ts +7 -1
- package/dist/src/molecules/popover.d.ts.map +1 -1
- package/dist/src/molecules/price-block.d.ts +1 -1
- package/dist/src/molecules/price-block.d.ts.map +1 -1
- package/dist/src/molecules/product-card.d.ts +127 -27
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/quantity-field.d.ts +1 -1
- package/dist/src/molecules/quantity-field.d.ts.map +1 -1
- package/dist/src/molecules/radio-card.d.ts +10 -3
- package/dist/src/molecules/radio-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-group.d.ts +15 -6
- package/dist/src/molecules/radio-group.d.ts.map +1 -1
- package/dist/src/molecules/search-form.d.ts +37 -12
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +34 -29
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +23 -2
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +30 -10
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts +54 -33
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts +11 -11
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/toast.d.ts +38 -14
- package/dist/src/molecules/toast.d.ts.map +1 -1
- package/dist/src/molecules/totals-summary.d.ts +1 -1
- package/dist/src/molecules/totals-summary.d.ts.map +1 -1
- package/dist/src/molecules/tour.d.ts +1 -1
- package/dist/src/molecules/tour.d.ts.map +1 -1
- package/dist/src/molecules/tree-view.d.ts +16 -20
- package/dist/src/molecules/tree-view.d.ts.map +1 -1
- package/dist/src/molecules/vertical-navigation.d.ts +2 -2
- package/dist/src/molecules/vertical-navigation.d.ts.map +1 -1
- package/dist/src/organisms/data-table.d.ts +28 -3
- package/dist/src/organisms/data-table.d.ts.map +1 -1
- package/dist/src/organisms/data-table.fields.d.ts +4 -1
- package/dist/src/organisms/data-table.fields.d.ts.map +1 -1
- package/dist/src/organisms/data-table.helpers.d.ts +5 -12
- package/dist/src/organisms/data-table.helpers.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +5 -5
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/gallery.d.ts +11 -9
- package/dist/src/organisms/gallery.d.ts.map +1 -1
- package/dist/src/organisms/header.d.ts +24 -22
- package/dist/src/organisms/header.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +14 -14
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/accordion.d.ts +8 -6
- package/dist/src/templates/accordion.d.ts.map +1 -1
- package/dist/src/templates/breadcrumb.d.ts +1 -1
- package/dist/src/templates/breadcrumb.d.ts.map +1 -1
- package/dist/src/templates/carousel.d.ts +3 -3
- package/dist/src/templates/carousel.d.ts.map +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts +9 -3
- package/dist/src/templates/facet-filter-panel.d.ts.map +1 -1
- package/dist/src/templates/gallery.d.ts +2 -2
- package/dist/src/templates/gallery.d.ts.map +1 -1
- package/dist/src/templates/numeric-input.d.ts +1 -1
- package/dist/src/templates/numeric-input.d.ts.map +1 -1
- package/dist/src/templates/popover.d.ts +4 -2
- package/dist/src/templates/popover.d.ts.map +1 -1
- package/dist/src/templates/product-card.d.ts +12 -4
- package/dist/src/templates/product-card.d.ts.map +1 -1
- package/dist/src/templates/search-suggestions.d.ts +1 -1
- package/dist/src/templates/select.d.ts +7 -2
- package/dist/src/templates/select.d.ts.map +1 -1
- package/dist/src/templates/tabs.d.ts +8 -7
- package/dist/src/templates/tabs.d.ts.map +1 -1
- package/dist/src/theme/theme-config.d.ts +9 -16
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/src/theme/theme-provider.d.ts +16 -21
- package/dist/src/theme/theme-provider.d.ts.map +1 -1
- package/dist/src/theme/theme-toggle.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/templates/accordion.js +3 -1
- package/dist/templates/breadcrumb.js +11 -4
- package/dist/templates/carousel.js +3 -6
- package/dist/templates/facet-filter-panel.js +121 -52
- package/dist/templates/gallery.js +6 -2
- package/dist/templates/numeric-input.js +6 -1
- package/dist/templates/popover.js +6 -1
- package/dist/templates/product-card.js +52 -26
- package/dist/templates/select.js +6 -1
- package/dist/templates/tabs.js +4 -2
- package/dist/theme/theme-config.js +8 -16
- package/dist/theme/theme-provider.js +89 -63
- package/dist/theme/theme-toggle.js +17 -9
- package/dist/utils.js +11 -1
- package/package.json +9 -5
- package/src/tokens/_base.css +4 -3
- package/src/tokens/_business-atoms.css +96 -0
- package/src/tokens/_foundation-overrides.css +251 -0
- package/src/tokens/_reset.css +10 -10
- package/src/tokens/_scheme-scopes.css +4194 -0
- package/src/tokens/_semantic.css +1 -23
- package/src/tokens/_tokens-base.css +36 -32
- package/src/tokens/_typography.css +2 -1
- package/src/tokens/components/_form-control.css +149 -6
- package/src/tokens/components/_popup-surface.css +15 -29
- package/src/tokens/components/atoms/_action-icon.css +49 -0
- package/src/tokens/components/atoms/_button.css +77 -0
- package/src/tokens/components/atoms/_checkbox.css +47 -4
- package/src/tokens/components/atoms/_hotkeys.css +2 -0
- package/src/tokens/components/atoms/_icon.css +60 -7
- package/src/tokens/components/atoms/_image.css +18 -0
- package/src/tokens/components/atoms/_input.css +20 -0
- package/src/tokens/components/atoms/_label.css +3 -7
- package/src/tokens/components/atoms/_link.css +47 -5
- package/src/tokens/components/atoms/_numeric-input.css +121 -2
- package/src/tokens/components/atoms/_rating.css +55 -6
- package/src/tokens/components/atoms/_skeleton.css +12 -2
- package/src/tokens/components/atoms/_status-text.css +35 -5
- package/src/tokens/components/atoms/_textarea.css +32 -3
- package/src/tokens/components/atoms/_tooltip.css +25 -0
- package/src/tokens/components/molecules/_accordion.css +46 -5
- package/src/tokens/components/molecules/_breadcrumb.css +15 -4
- package/src/tokens/components/molecules/_carousel.css +67 -0
- package/src/tokens/components/molecules/_cascade-select.css +104 -0
- package/src/tokens/components/molecules/_chart.css +32 -16
- package/src/tokens/components/molecules/_color-select.css +21 -0
- package/src/tokens/components/molecules/_combobox.css +81 -0
- package/src/tokens/components/molecules/_command.css +1 -0
- package/src/tokens/components/molecules/_date-picker.css +66 -10
- package/src/tokens/components/molecules/_dialog.css +36 -4
- package/src/tokens/components/molecules/_drawer.css +39 -3
- package/src/tokens/components/molecules/_file-upload.css +16 -1
- package/src/tokens/components/molecules/_menu.css +17 -0
- package/src/tokens/components/molecules/_pagination.css +19 -0
- package/src/tokens/components/molecules/_phone-input.css +20 -5
- package/src/tokens/components/molecules/_popover.css +34 -0
- package/src/tokens/components/molecules/_product-card.css +70 -0
- package/src/tokens/components/molecules/_radio-card.css +35 -0
- package/src/tokens/components/molecules/_radio-group.css +8 -0
- package/src/tokens/components/molecules/_select.css +33 -0
- package/src/tokens/components/molecules/_slider.css +5 -0
- package/src/tokens/components/molecules/_steps.css +52 -0
- package/src/tokens/components/molecules/_switch.css +59 -10
- package/src/tokens/components/molecules/_tabs.css +61 -3
- package/src/tokens/components/molecules/_toast.css +60 -0
- package/src/tokens/components/molecules/_totals-summary.css +22 -22
- package/src/tokens/components/molecules/_tour.css +16 -1
- package/src/tokens/components/molecules/_tree-view.css +27 -3
- package/src/tokens/components/molecules/_vertical-navigation.css +21 -3
- package/src/tokens/components/organisms/_data-table.css +97 -0
- package/src/tokens/components/organisms/_footer.css +9 -0
- package/src/tokens/components/organisms/_gallery.css +11 -0
- package/src/tokens/components/organisms/_header.css +22 -0
- package/src/tokens/components/organisms/_sidebar.css +1 -1
- package/src/tokens/components/organisms/_table.css +31 -0
- package/src/tokens/components/templates/_facet-filter-panel.css +11 -1
- package/src/tokens/figma/akros/variables.css +15 -6
- package/src/tokens/figma/brand-overrides.css +171 -57
- package/src/tokens/figma/business/variables.css +15 -6
- package/src/tokens/figma/cyber/variables.css +115 -38
- package/src/tokens/figma/cyber-dark/variables.css +115 -38
- package/src/tokens/figma/dark/variables.css +13 -4
- package/src/tokens/figma/light/variables.css +62 -49
- package/src/tokens/figma/{neo → n1}/variables.css +123 -114
- package/src/tokens/figma/variables.css +658 -249
- package/src/tokens/theme.css +24 -4
- package/src/tokens/_colors.css +0 -5
- package/src/tokens/figma/neo-dark/variables.css +0 -457
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { connect as connectSelect, type Props as ZagSelectProps } from "@zag-js/select";
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import type { VariantProps } from "tailwind-variants";
|
|
4
4
|
import { type IconProps } from "../atoms/icon.js";
|
|
5
5
|
import { type DescribedBy } from "../internal/described-by.js";
|
|
6
6
|
export type SelectSize = "xs" | "sm" | "md" | "lg";
|
|
@@ -133,30 +133,34 @@ declare const selectVariants: import("tailwind-variants").TVReturnType<{
|
|
|
133
133
|
valueText: string[];
|
|
134
134
|
}>>;
|
|
135
135
|
type SelectContextValue = {
|
|
136
|
-
api: ReturnType<typeof
|
|
136
|
+
api: ReturnType<typeof connectSelect>;
|
|
137
137
|
size: SelectSize;
|
|
138
138
|
items: SelectItem[];
|
|
139
139
|
validateStatus: "default" | "error" | "success" | "warning";
|
|
140
|
-
|
|
140
|
+
readOnly: boolean;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
readOnlyId: string;
|
|
143
|
+
errors: DescribedBy;
|
|
141
144
|
} & DescribedBy;
|
|
142
145
|
declare function useSelectContext(): SelectContextValue;
|
|
143
|
-
export
|
|
146
|
+
export type SelectProps = VariantProps<typeof selectVariants> & Omit<ZagSelectProps, "collection" | "id" | "invalid"> & {
|
|
147
|
+
/** Authoritative options; removed values are cleared, not replaced implicitly. */
|
|
144
148
|
items: SelectItem[];
|
|
145
149
|
id?: string;
|
|
146
150
|
className?: string;
|
|
147
151
|
children: ReactNode;
|
|
148
152
|
ref?: Ref<HTMLDivElement>;
|
|
149
153
|
validateStatus?: "default" | "error" | "success" | "warning";
|
|
150
|
-
}
|
|
151
|
-
export declare function Select({ items, id: providedId, size, value, defaultValue, multiple, disabled, validateStatus, required, readOnly, closeOnSelect, loopFocus, name, form, onValueChange, onOpenChange, onHighlightChange, className, children, ref, }: SelectProps): import("react").JSX.Element;
|
|
154
|
+
};
|
|
155
|
+
export declare function Select({ items, id: providedId, size, value, defaultValue, multiple, disabled: explicitDisabled, validateStatus, required, readOnly, closeOnSelect, loopFocus, name, form, onValueChange, onOpenChange, onHighlightChange, className, children, ref, ...machineProps }: SelectProps): import("react").JSX.Element;
|
|
152
156
|
export declare namespace Select {
|
|
153
157
|
var _a: ({ children, ...props }: SelectLabelProps) => import("react").JSX.Element;
|
|
154
158
|
export { _a as Label };
|
|
155
159
|
export var Control: ({ children, className, ref, ...props }: SelectControlProps) => import("react").JSX.Element;
|
|
156
160
|
export var Trigger: ({ children, className, size: sizeProp, iconSize, ref, ...props }: SelectTriggerProps) => import("react").JSX.Element;
|
|
157
161
|
export var ValueText: ({ placeholder, className, size: sizeProp, ref, children, ...props }: SelectValueTextProps) => import("react").JSX.Element;
|
|
158
|
-
export var ClearTrigger: ({ className, ref, ...props }: SelectClearTriggerProps) => import("react").JSX.Element;
|
|
159
|
-
export var Positioner: ({ children, className, ref, ...props }: SelectPositionerProps) => import("react").JSX.Element;
|
|
162
|
+
export var ClearTrigger: ({ className, ref, ...props }: SelectClearTriggerProps) => import("react").JSX.Element | null;
|
|
163
|
+
export var Positioner: ({ portalled, children, className, ref, ...props }: SelectPositionerProps) => import("react").JSX.Element;
|
|
160
164
|
export var Content: ({ children, className, ref, ...props }: SelectContentProps) => import("react").JSX.Element;
|
|
161
165
|
export var ItemGroup: ({ id, children, className, ref, ...props }: SelectItemGroupProps) => import("react").JSX.Element;
|
|
162
166
|
export var ItemGroupLabel: ({ htmlFor, children, className, ref, ...props }: SelectItemGroupLabelProps) => import("react").JSX.Element;
|
|
@@ -166,57 +170,58 @@ export declare namespace Select {
|
|
|
166
170
|
export var StatusText: ({ status: statusProp, size: sizeProp, showIcon, children, ...props }: SelectStatusTextProps) => import("react").JSX.Element;
|
|
167
171
|
export var displayName: string;
|
|
168
172
|
}
|
|
169
|
-
|
|
173
|
+
type SelectLabelProps = ComponentPropsWithoutRef<"label"> & {
|
|
170
174
|
ref?: Ref<HTMLLabelElement>;
|
|
171
|
-
}
|
|
172
|
-
|
|
175
|
+
};
|
|
176
|
+
type SelectControlProps = ComponentPropsWithoutRef<"div"> & {
|
|
173
177
|
ref?: Ref<HTMLDivElement>;
|
|
174
|
-
}
|
|
178
|
+
};
|
|
175
179
|
type SelectTriggerProps = ComponentPropsWithoutRef<"button"> & {
|
|
176
180
|
size?: SelectSize;
|
|
177
181
|
iconSize?: IconProps["size"];
|
|
178
182
|
ref?: Ref<HTMLButtonElement>;
|
|
179
183
|
};
|
|
180
|
-
|
|
184
|
+
type SelectValueTextProps = Omit<ComponentPropsWithoutRef<"span">, "children"> & {
|
|
181
185
|
placeholder?: string;
|
|
182
186
|
size?: SelectSize;
|
|
183
187
|
ref?: Ref<HTMLSpanElement>;
|
|
184
188
|
children?: ReactNode | ((items: SelectItem[]) => ReactNode);
|
|
185
|
-
}
|
|
189
|
+
};
|
|
186
190
|
type SelectClearTriggerProps = ComponentPropsWithoutRef<"button"> & {
|
|
187
191
|
ref?: Ref<HTMLButtonElement>;
|
|
188
192
|
};
|
|
189
|
-
|
|
193
|
+
type SelectPositionerProps = ComponentPropsWithoutRef<"div"> & {
|
|
194
|
+
portalled?: boolean;
|
|
190
195
|
ref?: Ref<HTMLDivElement>;
|
|
191
|
-
}
|
|
192
|
-
|
|
196
|
+
};
|
|
197
|
+
type SelectContentProps = ComponentPropsWithoutRef<"ul"> & {
|
|
193
198
|
ref?: Ref<HTMLUListElement>;
|
|
194
|
-
}
|
|
195
|
-
|
|
199
|
+
};
|
|
200
|
+
type SelectItemGroupProps = ComponentPropsWithoutRef<"div"> & {
|
|
196
201
|
id: string;
|
|
197
202
|
ref?: Ref<HTMLDivElement>;
|
|
198
|
-
}
|
|
199
|
-
|
|
203
|
+
};
|
|
204
|
+
type SelectItemGroupLabelProps = ComponentPropsWithoutRef<"div"> & {
|
|
200
205
|
htmlFor: string;
|
|
201
206
|
ref?: Ref<HTMLDivElement>;
|
|
202
|
-
}
|
|
203
|
-
|
|
207
|
+
};
|
|
208
|
+
type SelectItemProps = ComponentPropsWithoutRef<"li"> & {
|
|
204
209
|
item: SelectItem;
|
|
205
210
|
size?: SelectSize;
|
|
206
211
|
ref?: Ref<HTMLLIElement>;
|
|
207
|
-
}
|
|
208
|
-
|
|
212
|
+
};
|
|
213
|
+
type SelectItemTextProps = ComponentPropsWithoutRef<"span"> & {
|
|
209
214
|
ref?: Ref<HTMLSpanElement>;
|
|
210
|
-
}
|
|
215
|
+
};
|
|
211
216
|
type SelectItemIndicatorProps = ComponentPropsWithoutRef<"span"> & {
|
|
212
217
|
iconSize?: IconProps["size"];
|
|
213
218
|
ref?: Ref<HTMLSpanElement>;
|
|
214
219
|
};
|
|
215
|
-
|
|
220
|
+
type SelectStatusTextProps = ComponentPropsWithoutRef<"div"> & {
|
|
216
221
|
status?: "default" | "error" | "success" | "warning";
|
|
217
222
|
size?: SelectSize;
|
|
218
223
|
showIcon?: boolean;
|
|
219
224
|
ref?: Ref<HTMLDivElement>;
|
|
220
|
-
}
|
|
225
|
+
};
|
|
221
226
|
export { selectVariants, useSelectContext };
|
|
222
227
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/molecules/select.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/molecules/select.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,OAAO,IAAI,aAAa,EAGxB,KAAK,KAAK,IAAI,cAAc,EAC7B,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EACd,KAAK,GAAG,EAOT,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,0BAA0B,CAAA;AAoCjC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAWlD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,CA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,CAAC,CAAA;CAC3B,CAAA;AAuBD,KAAK,wBAAwB,GAAG,wBAAwB,CAAC,MAAM,CAAC,GAAG;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAA;CAC3B,CAAA;AAuBD,KAAK,qBAAqB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;IACpD,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B,CAAA;AAyCD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef } from "react";
|
|
1
2
|
import type { VariantProps } from "tailwind-variants";
|
|
2
3
|
declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
3
4
|
size: {
|
|
4
5
|
sm: {
|
|
6
|
+
root: string;
|
|
5
7
|
track: string[];
|
|
6
8
|
thumb: string[];
|
|
7
9
|
};
|
|
8
10
|
md: {
|
|
11
|
+
root: string;
|
|
9
12
|
track: string[];
|
|
10
13
|
thumb: string[];
|
|
11
14
|
};
|
|
12
15
|
lg: {
|
|
16
|
+
root: string;
|
|
13
17
|
track: string[];
|
|
14
18
|
thumb: string[];
|
|
15
19
|
};
|
|
@@ -30,14 +34,17 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
30
34
|
}, undefined, {
|
|
31
35
|
size: {
|
|
32
36
|
sm: {
|
|
37
|
+
root: string;
|
|
33
38
|
track: string[];
|
|
34
39
|
thumb: string[];
|
|
35
40
|
};
|
|
36
41
|
md: {
|
|
42
|
+
root: string;
|
|
37
43
|
track: string[];
|
|
38
44
|
thumb: string[];
|
|
39
45
|
};
|
|
40
46
|
lg: {
|
|
47
|
+
root: string;
|
|
41
48
|
track: string[];
|
|
42
49
|
thumb: string[];
|
|
43
50
|
};
|
|
@@ -58,14 +65,17 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
58
65
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
59
66
|
size: {
|
|
60
67
|
sm: {
|
|
68
|
+
root: string;
|
|
61
69
|
track: string[];
|
|
62
70
|
thumb: string[];
|
|
63
71
|
};
|
|
64
72
|
md: {
|
|
73
|
+
root: string;
|
|
65
74
|
track: string[];
|
|
66
75
|
thumb: string[];
|
|
67
76
|
};
|
|
68
77
|
lg: {
|
|
78
|
+
root: string;
|
|
69
79
|
track: string[];
|
|
70
80
|
thumb: string[];
|
|
71
81
|
};
|
|
@@ -84,15 +94,20 @@ declare const sliderVariants: import("tailwind-variants").TVReturnType<{
|
|
|
84
94
|
markerLine: string[];
|
|
85
95
|
markerText: string[];
|
|
86
96
|
}>>;
|
|
97
|
+
/** Ref and focus events target the actual focusable `role="slider"` thumb, not its hidden input. */
|
|
98
|
+
export type SliderThumbProps = Pick<ComponentPropsWithRef<"div">, "ref" | "onFocus" | "onBlur">;
|
|
87
99
|
export type SliderProps = VariantProps<typeof sliderVariants> & {
|
|
88
100
|
id?: string;
|
|
89
101
|
name?: string;
|
|
102
|
+
form?: string;
|
|
90
103
|
label?: string;
|
|
91
104
|
/**
|
|
92
|
-
* One accessible name per thumb,
|
|
105
|
+
* One distinct accessible name per thumb, including sliders with a visible `label`
|
|
93
106
|
* (e.g. `["Minimum price", "Maximum price"]`).
|
|
94
107
|
*/
|
|
95
108
|
"aria-label"?: string[];
|
|
109
|
+
"aria-describedby"?: string;
|
|
110
|
+
"aria-errormessage"?: string;
|
|
96
111
|
validateStatus?: "default" | "error" | "success" | "warning";
|
|
97
112
|
helpText?: string;
|
|
98
113
|
showHelpTextIcon?: boolean;
|
|
@@ -113,10 +128,16 @@ export type SliderProps = VariantProps<typeof sliderVariants> & {
|
|
|
113
128
|
showValueText?: boolean;
|
|
114
129
|
formatRangeText?: (values: number[]) => string;
|
|
115
130
|
formatValue?: (value: number) => string;
|
|
131
|
+
getAriaValueText?: (details: {
|
|
132
|
+
value: number;
|
|
133
|
+
index: number;
|
|
134
|
+
}) => string;
|
|
135
|
+
/** Zero-based thumb props. React cleans up callback/object refs on removal; focus handlers compose with Zag. */
|
|
136
|
+
getThumbProps?: (index: number) => SliderThumbProps;
|
|
116
137
|
className?: string;
|
|
117
138
|
onChange?: (values: number[]) => void;
|
|
118
139
|
onChangeEnd?: (values: number[]) => void;
|
|
119
140
|
};
|
|
120
|
-
export declare function Slider({ id, name, label, "aria-label": ariaLabel, validateStatus, helpText, showHelpTextIcon, value, origin, thumbAlignment, defaultValue, min, max, step, minStepsBetweenThumbs, disabled, readOnly, dir, orientation, size, showMarkers, markerCount, showValueText, formatRangeText, formatValue, className, onChange, onChangeEnd, }: SliderProps): import("react").JSX.Element;
|
|
141
|
+
export declare function Slider({ id, name, form, label, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "aria-errormessage": ariaErrorMessage, validateStatus, helpText, showHelpTextIcon, value, origin, thumbAlignment, defaultValue, min, max, step, minStepsBetweenThumbs, disabled: explicitDisabled, readOnly, dir, orientation, size, showMarkers, markerCount, showValueText, formatRangeText, getAriaValueText, getThumbProps, formatValue, className, onChange, onChangeEnd, }: SliderProps): import("react").JSX.Element;
|
|
121
142
|
export {};
|
|
122
143
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/molecules/slider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/molecules/slider.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,qBAAqB,EAM3B,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YA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,EACX,WAAmB,EACnB,WAAe,EACf,aAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,WAA6C,EAC7C,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,EAAE,WAAW,+BAgTb"}
|
|
@@ -4,8 +4,11 @@ import type { VariantProps } from "tailwind-variants";
|
|
|
4
4
|
import { type ButtonProps } from "../atoms/button.js";
|
|
5
5
|
declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
|
-
subtle: {
|
|
7
|
+
subtle: {
|
|
8
|
+
item: string;
|
|
9
|
+
};
|
|
8
10
|
solid: {
|
|
11
|
+
item: string;
|
|
9
12
|
trigger: string[];
|
|
10
13
|
title: string;
|
|
11
14
|
indicator: string[];
|
|
@@ -13,6 +16,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
13
16
|
};
|
|
14
17
|
size: {
|
|
15
18
|
sm: {
|
|
19
|
+
item: string;
|
|
16
20
|
indicator: string;
|
|
17
21
|
indicatorIcon: string;
|
|
18
22
|
number: string;
|
|
@@ -22,6 +26,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
22
26
|
completedContent: string;
|
|
23
27
|
};
|
|
24
28
|
md: {
|
|
29
|
+
item: string;
|
|
25
30
|
indicator: string;
|
|
26
31
|
indicatorIcon: string;
|
|
27
32
|
number: string;
|
|
@@ -31,6 +36,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
31
36
|
completedContent: string;
|
|
32
37
|
};
|
|
33
38
|
lg: {
|
|
39
|
+
item: string;
|
|
34
40
|
indicator: string;
|
|
35
41
|
indicatorIcon: string;
|
|
36
42
|
number: string;
|
|
@@ -62,8 +68,11 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
62
68
|
nextTrigger: string;
|
|
63
69
|
}, undefined, {
|
|
64
70
|
variant: {
|
|
65
|
-
subtle: {
|
|
71
|
+
subtle: {
|
|
72
|
+
item: string;
|
|
73
|
+
};
|
|
66
74
|
solid: {
|
|
75
|
+
item: string;
|
|
67
76
|
trigger: string[];
|
|
68
77
|
title: string;
|
|
69
78
|
indicator: string[];
|
|
@@ -71,6 +80,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
71
80
|
};
|
|
72
81
|
size: {
|
|
73
82
|
sm: {
|
|
83
|
+
item: string;
|
|
74
84
|
indicator: string;
|
|
75
85
|
indicatorIcon: string;
|
|
76
86
|
number: string;
|
|
@@ -80,6 +90,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
80
90
|
completedContent: string;
|
|
81
91
|
};
|
|
82
92
|
md: {
|
|
93
|
+
item: string;
|
|
83
94
|
indicator: string;
|
|
84
95
|
indicatorIcon: string;
|
|
85
96
|
number: string;
|
|
@@ -89,6 +100,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
89
100
|
completedContent: string;
|
|
90
101
|
};
|
|
91
102
|
lg: {
|
|
103
|
+
item: string;
|
|
92
104
|
indicator: string;
|
|
93
105
|
indicatorIcon: string;
|
|
94
106
|
number: string;
|
|
@@ -120,8 +132,11 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
120
132
|
nextTrigger: string;
|
|
121
133
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
122
134
|
variant: {
|
|
123
|
-
subtle: {
|
|
135
|
+
subtle: {
|
|
136
|
+
item: string;
|
|
137
|
+
};
|
|
124
138
|
solid: {
|
|
139
|
+
item: string;
|
|
125
140
|
trigger: string[];
|
|
126
141
|
title: string;
|
|
127
142
|
indicator: string[];
|
|
@@ -129,6 +144,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
129
144
|
};
|
|
130
145
|
size: {
|
|
131
146
|
sm: {
|
|
147
|
+
item: string;
|
|
132
148
|
indicator: string;
|
|
133
149
|
indicatorIcon: string;
|
|
134
150
|
number: string;
|
|
@@ -138,6 +154,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
138
154
|
completedContent: string;
|
|
139
155
|
};
|
|
140
156
|
md: {
|
|
157
|
+
item: string;
|
|
141
158
|
indicator: string;
|
|
142
159
|
indicatorIcon: string;
|
|
143
160
|
number: string;
|
|
@@ -147,6 +164,7 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
147
164
|
completedContent: string;
|
|
148
165
|
};
|
|
149
166
|
lg: {
|
|
167
|
+
item: string;
|
|
150
168
|
indicator: string;
|
|
151
169
|
indicatorIcon: string;
|
|
152
170
|
number: string;
|
|
@@ -177,18 +195,20 @@ declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
177
195
|
prevTrigger: string;
|
|
178
196
|
nextTrigger: string;
|
|
179
197
|
}>>;
|
|
180
|
-
type StepsApi = ZagStepsApi
|
|
198
|
+
type StepsApi = ZagStepsApi & {
|
|
199
|
+
linear?: boolean;
|
|
200
|
+
};
|
|
181
201
|
export type StepsStoreProps = Omit<StepsMachineProps, "id"> & {
|
|
182
202
|
id?: string;
|
|
183
203
|
};
|
|
184
|
-
export declare function useSteps({ id, ...props }: StepsStoreProps):
|
|
204
|
+
export declare function useSteps({ id, count, step, defaultStep, onStepChange, ...props }: StepsStoreProps): StepsApi;
|
|
185
205
|
type StepsRootSharedProps = VariantProps<typeof stepsVariants> & Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
|
|
186
206
|
ref?: Ref<HTMLDivElement>;
|
|
187
207
|
};
|
|
188
208
|
export type StepsProps = StepsRootSharedProps & Omit<StepsMachineProps, "id"> & {
|
|
189
209
|
id?: string;
|
|
190
210
|
};
|
|
191
|
-
export declare function Steps({
|
|
211
|
+
export declare function Steps({ size, variant, children, className, ref, ...props }: StepsProps): import("react").JSX.Element;
|
|
192
212
|
export declare namespace Steps {
|
|
193
213
|
export var RootProvider: ({ value, size, variant, children, className, ref, ...props }: StepsRootProviderProps) => import("react").JSX.Element;
|
|
194
214
|
export var List: ({ children, className, ref, ...props }: StepsListProps) => import("react").JSX.Element;
|
|
@@ -214,8 +234,8 @@ export declare namespace Steps {
|
|
|
214
234
|
type StepsRootProviderProps = StepsRootSharedProps & {
|
|
215
235
|
value: StepsApi;
|
|
216
236
|
};
|
|
217
|
-
type StepsListProps = ComponentPropsWithoutRef<"
|
|
218
|
-
ref?: Ref<
|
|
237
|
+
type StepsListProps = ComponentPropsWithoutRef<"ol"> & {
|
|
238
|
+
ref?: Ref<HTMLOListElement>;
|
|
219
239
|
};
|
|
220
240
|
type StepsPanelsProps = ComponentPropsWithoutRef<"div"> & {
|
|
221
241
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -223,9 +243,9 @@ type StepsPanelsProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
223
243
|
type StepsNavigationProps = ComponentPropsWithoutRef<"div"> & {
|
|
224
244
|
ref?: Ref<HTMLDivElement>;
|
|
225
245
|
};
|
|
226
|
-
type StepsItemProps = ComponentPropsWithoutRef<"
|
|
246
|
+
type StepsItemProps = ComponentPropsWithoutRef<"li"> & {
|
|
227
247
|
index: number;
|
|
228
|
-
ref?: Ref<
|
|
248
|
+
ref?: Ref<HTMLLIElement>;
|
|
229
249
|
};
|
|
230
250
|
type StepsTriggerProps = Omit<ComponentPropsWithoutRef<"button">, "children"> & {
|
|
231
251
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/molecules/steps.tsx"],"names":[],"mappings":"AAYA,OAAO,EAEL,KAAK,KAAK,IAAI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/molecules/steps.tsx"],"names":[],"mappings":"AAYA,OAAO,EAEL,KAAK,KAAK,IAAI,iBAAiB,EAG/B,KAAK,GAAG,IAAI,WAAW,EAExB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EACd,K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MAAM,CAAA;IACb,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B,CAAA;AA8BD,KAAK,kBAAkB,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5E,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B,CAAA;AAgCD,KAAK,0BAA0B,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAClE,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B,CAAA;AAoCD,KAAK,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,GAAG;IAClD,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B,CAAA;AAgGD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAEtB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,OAAO,EAAE,GAAG,CAAC,OAAO,CAAA;CAC5E"}
|
|
@@ -1,55 +1,76 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
2
2
|
import type { VariantProps } from "tailwind-variants";
|
|
3
3
|
declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
control
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
size: {
|
|
5
|
+
sm: {
|
|
6
|
+
control: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
control: string;
|
|
11
|
+
label: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
control: string;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
12
17
|
};
|
|
13
|
-
}
|
|
14
|
-
[x: string]: {
|
|
15
|
-
[x: string]: {
|
|
16
|
-
control?: import("tailwind-variants").ClassValue;
|
|
17
|
-
hiddenInput?: import("tailwind-variants").ClassValue;
|
|
18
|
-
label?: import("tailwind-variants").ClassValue;
|
|
19
|
-
root?: import("tailwind-variants").ClassValue;
|
|
20
|
-
thumb?: import("tailwind-variants").ClassValue;
|
|
21
|
-
} | import("tailwind-variants").ClassValue;
|
|
22
|
-
};
|
|
23
|
-
} | {}, {
|
|
18
|
+
}, {
|
|
24
19
|
root: string[];
|
|
25
20
|
control: string[];
|
|
26
21
|
thumb: string[];
|
|
27
22
|
label: string[];
|
|
28
23
|
hiddenInput: string;
|
|
29
24
|
}, undefined, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
control
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
size: {
|
|
26
|
+
sm: {
|
|
27
|
+
control: string;
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
control: string;
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
lg: {
|
|
35
|
+
control: string;
|
|
36
|
+
label: string;
|
|
37
|
+
};
|
|
38
38
|
};
|
|
39
|
-
}
|
|
39
|
+
}, {
|
|
40
40
|
root: string[];
|
|
41
41
|
control: string[];
|
|
42
42
|
thumb: string[];
|
|
43
43
|
label: string[];
|
|
44
44
|
hiddenInput: string;
|
|
45
|
-
}, import("tailwind-variants").TVReturnTypeLike<
|
|
45
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
control: string;
|
|
49
|
+
label: string;
|
|
50
|
+
};
|
|
51
|
+
md: {
|
|
52
|
+
control: string;
|
|
53
|
+
label: string;
|
|
54
|
+
};
|
|
55
|
+
lg: {
|
|
56
|
+
control: string;
|
|
57
|
+
label: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
46
61
|
root: string[];
|
|
47
62
|
control: string[];
|
|
48
63
|
thumb: string[];
|
|
49
64
|
label: string[];
|
|
50
65
|
hiddenInput: string;
|
|
51
66
|
}>>;
|
|
52
|
-
export
|
|
67
|
+
export type SwitchProps = VariantProps<typeof switchVariants> & {
|
|
68
|
+
"aria-describedby"?: string;
|
|
69
|
+
/** Ref targets the native, focusable input rather than the visual control. */
|
|
70
|
+
ref?: Ref<HTMLInputElement>;
|
|
71
|
+
inputProps?: Omit<ComponentPropsWithoutRef<"input">, "type" | "checked" | "defaultChecked" | "disabled" | "readOnly" | "required" | "name" | "value" | "id">;
|
|
72
|
+
"aria-label"?: string;
|
|
73
|
+
"aria-labelledby"?: string;
|
|
53
74
|
id?: string;
|
|
54
75
|
name?: string;
|
|
55
76
|
value?: string | number;
|
|
@@ -65,7 +86,7 @@ export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
|
65
86
|
validateStatus?: "default" | "error" | "success" | "warning";
|
|
66
87
|
helpText?: ReactNode;
|
|
67
88
|
showHelpTextIcon?: boolean;
|
|
68
|
-
}
|
|
69
|
-
export declare function Switch({ id, name, value, checked, defaultChecked, disabled, readOnly, required, dir, children, className, onCheckedChange, validateStatus, helpText, showHelpTextIcon, }: SwitchProps): import("react").JSX.Element;
|
|
89
|
+
};
|
|
90
|
+
export declare function Switch({ ref, inputProps: nativeInputProps, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, "aria-describedby": ariaDescribedBy, size, name, value, checked, defaultChecked, disabled, readOnly, required, dir, children, className, onCheckedChange, validateStatus, helpText, showHelpTextIcon, }: SwitchProps): import("react").JSX.Element;
|
|
70
91
|
export {};
|
|
71
92
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/molecules/switch.tsx"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/molecules/switch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,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IACnB,cAAc,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,UAAU,EAAE,gBAAqB,EACjC,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,EAAE,EACF,kBAAkB,EAAE,eAAe,EACnC,IAAW,EACX,IAAI,EACJ,KAAK,EACL,OAAO,EACP,cAAc,EACd,QAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,GAAW,EACX,QAAQ,EACR,SAAS,EACT,eAAe,EACf,cAA0B,EAC1B,QAAQ,EACR,gBAAuB,GACxB,EAAE,WAAW,+BA8Fb"}
|
|
@@ -4,7 +4,7 @@ import { type ButtonProps } from "../atoms/button.js";
|
|
|
4
4
|
declare const tabsVariants: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
variant: {
|
|
6
6
|
default: {
|
|
7
|
-
|
|
7
|
+
trigger: string;
|
|
8
8
|
indicator: string;
|
|
9
9
|
};
|
|
10
10
|
line: {
|
|
@@ -60,7 +60,7 @@ declare const tabsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
60
60
|
}, undefined, {
|
|
61
61
|
variant: {
|
|
62
62
|
default: {
|
|
63
|
-
|
|
63
|
+
trigger: string;
|
|
64
64
|
indicator: string;
|
|
65
65
|
};
|
|
66
66
|
line: {
|
|
@@ -116,7 +116,7 @@ declare const tabsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
116
116
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
117
117
|
variant: {
|
|
118
118
|
default: {
|
|
119
|
-
|
|
119
|
+
trigger: string;
|
|
120
120
|
indicator: string;
|
|
121
121
|
};
|
|
122
122
|
line: {
|
|
@@ -170,7 +170,7 @@ declare const tabsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
170
170
|
indicator: string[];
|
|
171
171
|
content: string[];
|
|
172
172
|
}>>;
|
|
173
|
-
export
|
|
173
|
+
export type TabsProps = VariantProps<typeof tabsVariants> & Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
|
|
174
174
|
id?: string;
|
|
175
175
|
defaultValue?: string;
|
|
176
176
|
value?: string;
|
|
@@ -180,7 +180,7 @@ export interface TabsProps extends VariantProps<typeof tabsVariants>, Omit<Compo
|
|
|
180
180
|
loopFocus?: boolean;
|
|
181
181
|
onValueChange?: (value: string) => void;
|
|
182
182
|
ref?: Ref<HTMLDivElement>;
|
|
183
|
-
}
|
|
183
|
+
};
|
|
184
184
|
export declare function Tabs({ id, defaultValue, value, orientation, dir, activationMode, loopFocus, onValueChange, variant, size, fitted, justify, children, ref, className, ...props }: TabsProps): import("react").JSX.Element;
|
|
185
185
|
export declare namespace Tabs {
|
|
186
186
|
var List: ({ children, ref, className, ...props }: TabsListProps) => import("react").JSX.Element;
|
|
@@ -189,19 +189,19 @@ export declare namespace Tabs {
|
|
|
189
189
|
var Indicator: ({ ref, className, ...props }: TabsIndicatorProps) => import("react").JSX.Element;
|
|
190
190
|
var displayName: string;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
type TabsListProps = ComponentPropsWithoutRef<"div"> & {
|
|
193
193
|
ref?: Ref<HTMLDivElement>;
|
|
194
|
-
}
|
|
194
|
+
};
|
|
195
195
|
type TabsTriggerProps = Omit<ButtonProps, "value"> & {
|
|
196
196
|
value: string;
|
|
197
197
|
ref?: Ref<HTMLButtonElement>;
|
|
198
198
|
};
|
|
199
|
-
|
|
199
|
+
type TabsContentProps = ComponentPropsWithoutRef<"div"> & {
|
|
200
200
|
value: string;
|
|
201
201
|
ref?: Ref<HTMLDivElement>;
|
|
202
|
-
}
|
|
203
|
-
|
|
202
|
+
};
|
|
203
|
+
type TabsIndicatorProps = ComponentPropsWithoutRef<"div"> & {
|
|
204
204
|
ref?: Ref<HTMLDivElement>;
|
|
205
|
-
}
|
|
205
|
+
};
|
|
206
206
|
export {};
|
|
207
207
|
//# sourceMappingURL=tabs.d.ts.map
|