@vikram-hegde/skeletal 0.0.1
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 +35 -0
- package/dist/alert-dialog/index.d.ts +2 -0
- package/dist/alert-dialog/index.js +2 -0
- package/dist/alert-dialog-1hxVC_5N.js +71 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge-C3p1L0E7.css +53 -0
- package/dist/badge-C3p1L0E7.js +32 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/index.js +2 -0
- package/dist/button-B48UNbaC.css +152 -0
- package/dist/button-B48UNbaC.js +46 -0
- package/dist/button-Dvd4n2U4.d.ts +56 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox-wh2BoiSj.css +76 -0
- package/dist/checkbox-wh2BoiSj.js +112 -0
- package/dist/cluster-BJ4m5uGN.css +9 -0
- package/dist/cluster-BJ4m5uGN.js +21 -0
- package/dist/combobox/index.d.ts +2 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox-DWH7uSsx.css +389 -0
- package/dist/combobox-DWH7uSsx.js +327 -0
- package/dist/command-palette/index.d.ts +2 -0
- package/dist/command-palette/index.js +2 -0
- package/dist/command-palette-DF4XJ8qz.css +164 -0
- package/dist/command-palette-DF4XJ8qz.js +191 -0
- package/dist/dialog/index.d.ts +6 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog-C4yqxII_.js +73 -0
- package/dist/dialog-footer-Br9KZP4v.js +29 -0
- package/dist/dialog-footer-bNVIVPbu.d.ts +56 -0
- package/dist/dialog-portal-B21WFYkQ.css +131 -0
- package/dist/dialog-portal-B21WFYkQ.js +26 -0
- package/dist/dialog-portal-BF89FBeX.d.ts +15 -0
- package/dist/dialog-title-DRYRIxCp.js +35 -0
- package/dist/dialog-title-jyf86Q8C.d.ts +36 -0
- package/dist/dialog-viewport-CaMWJrCJ.d.ts +42 -0
- package/dist/dialog-viewport-vpbsq7Ib.js +21 -0
- package/dist/drawer/index.d.ts +2 -0
- package/dist/drawer/index.js +2 -0
- package/dist/drawer-DQmz_uCP.css +214 -0
- package/dist/drawer-DQmz_uCP.js +180 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-DBOdxNvH.css +6 -0
- package/dist/icon-DBOdxNvH.js +20 -0
- package/dist/index-A2QmU5r9.d.ts +37 -0
- package/dist/index-B0uNLS7z.d.ts +301 -0
- package/dist/index-B63PSP58.d.ts +94 -0
- package/dist/index-BBOkTl3h.d.ts +261 -0
- package/dist/index-BLFVnve3.d.ts +53 -0
- package/dist/index-BXPUT5u-.d.ts +72 -0
- package/dist/index-BngvATZx.d.ts +35 -0
- package/dist/index-Br2NrBW_.d.ts +444 -0
- package/dist/index-CUy-9csi.d.ts +135 -0
- package/dist/index-CbMW32E9.d.ts +82 -0
- package/dist/index-CyTcR6iv.d.ts +433 -0
- package/dist/index-CznsZ_1M.d.ts +85 -0
- package/dist/index-D-6gOciw.d.ts +350 -0
- package/dist/index-DdqDyczP.d.ts +209 -0
- package/dist/index-GOGpFujX.d.ts +144 -0
- package/dist/index-W3ozKcis.d.ts +245 -0
- package/dist/index-kpw3_4q_.d.ts +50 -0
- package/dist/index-rH7TJeJt.d.ts +334 -0
- package/dist/index-rQ7sRkqg.d.ts +122 -0
- package/dist/index.css +93 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +26 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +2 -0
- package/dist/input-CQ_ean8e.css +129 -0
- package/dist/input-CQ_ean8e.js +65 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +4 -0
- package/dist/layout-qoyutnKU.css +181 -0
- package/dist/layout-qoyutnKU.js +169 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu-DRdGMI_-.css +236 -0
- package/dist/menu-DRdGMI_-.js +243 -0
- package/dist/merge-class-name-C4KJJGuK.js +15 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover-CenynT0Z.css +139 -0
- package/dist/popover-CenynT0Z.js +174 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio-BJrvdkga.css +80 -0
- package/dist/radio-BJrvdkga.js +75 -0
- package/dist/scroll-area/index.d.ts +2 -0
- package/dist/scroll-area/index.js +2 -0
- package/dist/scroll-area-DkORxJE9.css +175 -0
- package/dist/scroll-area-DkORxJE9.js +114 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +2 -0
- package/dist/select-BaqBHUac.css +273 -0
- package/dist/select-BaqBHUac.js +254 -0
- package/dist/skeleton/index.d.ts +2 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton-W6fwO5pf.css +88 -0
- package/dist/skeleton-W6fwO5pf.js +97 -0
- package/dist/spinner/index.d.ts +2 -0
- package/dist/spinner/index.js +2 -0
- package/dist/spinner-DB6ap8Si.css +43 -0
- package/dist/spinner-DB6ap8Si.js +27 -0
- package/dist/stack-BzFVrsmT.css +12 -0
- package/dist/stack-BzFVrsmT.js +52 -0
- package/dist/style-vars-ZSrCUzKx.js +13 -0
- package/dist/switch/index.d.ts +2 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch-DizP31iF.css +76 -0
- package/dist/switch-DizP31iF.js +58 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip-CQk2WjUS.css +92 -0
- package/dist/tooltip-CQk2WjUS.js +138 -0
- package/package.json +68 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { n as ButtonProps } from "./button-Dvd4n2U4.js";
|
|
2
|
+
import { SelectArrowProps, SelectBackdropProps, SelectGroupLabelProps, SelectGroupProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectListProps, SelectPopupProps, SelectPortalProps, SelectPositionerProps, SelectRootProps, SelectScrollDownArrowProps, SelectScrollUpArrowProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps } from "@base-ui/react/select";
|
|
3
|
+
//#region src/select/select-arrow.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A small arrow pointing from the popup to the trigger. Renders a `<div>`
|
|
6
|
+
* element.
|
|
7
|
+
*
|
|
8
|
+
* Place it inside `Select.Popup` (before the list). It orients itself based on
|
|
9
|
+
* the popup's `data-side` attribute, so it works for any placement. Pair with a
|
|
10
|
+
* larger `sideOffset` on the `Select.Positioner` so the arrow has room.
|
|
11
|
+
*/
|
|
12
|
+
interface SelectArrowProps$1 extends SelectArrowProps {}
|
|
13
|
+
declare function SelectArrow({ className, ...props }: SelectArrowProps$1): import("react").JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/select/select-backdrop.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* An overlay rendered beneath the select popup, used when the select is modal.
|
|
18
|
+
* Renders a `<div>` element.
|
|
19
|
+
*
|
|
20
|
+
* Only needed when `Select.Root` is modal (the default). Clicking the backdrop
|
|
21
|
+
* dismisses the popup. The overlay is translucent; set a fully opaque color
|
|
22
|
+
* (or remove it) if you prefer a "dimmed page" look vs. a light scrim.
|
|
23
|
+
*/
|
|
24
|
+
interface SelectBackdropProps$1 extends SelectBackdropProps {}
|
|
25
|
+
declare function SelectBackdrop({ className, ...props }: SelectBackdropProps$1): import("react").JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/select/select-group.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Groups related select items under an accessible label. Renders a `<div>`
|
|
30
|
+
* element.
|
|
31
|
+
*
|
|
32
|
+
* Pair with `<Select.GroupLabel>` inside the group; Base UI wires the
|
|
33
|
+
* `aria-labelledby` association automatically.
|
|
34
|
+
*
|
|
35
|
+
* Rendered with `display: contents` so its items participate directly in the
|
|
36
|
+
* popup grid.
|
|
37
|
+
*/
|
|
38
|
+
interface SelectGroupProps$1 extends SelectGroupProps {}
|
|
39
|
+
declare function SelectGroup({ className, ...props }: SelectGroupProps$1): import("react").JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/select/select-group-label.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* A label for a `<Select.Group>`, automatically associated with it for screen
|
|
44
|
+
* readers. Renders a `<div>` element.
|
|
45
|
+
*
|
|
46
|
+
* Styled small and muted; add a `Select.Separator` before the group to visually
|
|
47
|
+
* divide it from the items above.
|
|
48
|
+
*/
|
|
49
|
+
interface SelectGroupLabelProps$1 extends SelectGroupLabelProps {}
|
|
50
|
+
declare function SelectGroupLabel({ className, ...props }: SelectGroupLabelProps$1): import("react").JSX.Element;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/select/select-item.d.ts
|
|
53
|
+
/**
|
|
54
|
+
* An individual option in the select popup. Renders a `<div>` element.
|
|
55
|
+
*
|
|
56
|
+
* Accepts all Base UI item props: `value` (any primitive or object), `disabled`,
|
|
57
|
+
* and `label` for keyboard text navigation. Give each item a unique `value`;
|
|
58
|
+
* when `Select.Value` renders the label, pass the same `items` to `Select.Root`.
|
|
59
|
+
*
|
|
60
|
+
* A selected item shows its `Select.ItemIndicator` (e.g. a check icon) in the
|
|
61
|
+
* leading column.
|
|
62
|
+
*
|
|
63
|
+
* @default value = null
|
|
64
|
+
* @default disabled = false
|
|
65
|
+
*/
|
|
66
|
+
interface SelectItemProps$1 extends SelectItemProps {}
|
|
67
|
+
declare function SelectItem({ className, ...props }: SelectItemProps$1): import("react").JSX.Element;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/select/select-item-indicator.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* A checkmark slot shown on the selected item. Renders a `<span>` element.
|
|
72
|
+
*
|
|
73
|
+
* Place it as the first child of a `Select.Item`; it sits in the leading grid
|
|
74
|
+
* column. The indicator (and its children) unmount when the item is not
|
|
75
|
+
* selected unless `keepMounted` is set. It animates in/out via
|
|
76
|
+
* `data-starting-style` / `data-ending-style`.
|
|
77
|
+
*
|
|
78
|
+
* @default keepMounted = false
|
|
79
|
+
*/
|
|
80
|
+
interface SelectItemIndicatorProps$1 extends SelectItemIndicatorProps {}
|
|
81
|
+
declare function SelectItemIndicator({ className, ...props }: SelectItemIndicatorProps$1): import("react").JSX.Element;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/select/select-item-text.d.ts
|
|
84
|
+
/**
|
|
85
|
+
* The text label of a select item. Renders a `<div>` element.
|
|
86
|
+
*
|
|
87
|
+
* Place it as a child of a `Select.Item`; it fills the trailing grid column and
|
|
88
|
+
* truncates with an ellipsis when the popup is narrower than its content.
|
|
89
|
+
*/
|
|
90
|
+
interface SelectItemTextProps$1 extends SelectItemTextProps {}
|
|
91
|
+
declare function SelectItemText({ className, ...props }: SelectItemTextProps$1): import("react").JSX.Element;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/select/select-label.d.ts
|
|
94
|
+
/**
|
|
95
|
+
* An accessible label for the select trigger. Renders a `<div>` element.
|
|
96
|
+
*
|
|
97
|
+
* Clicking it focuses the trigger without opening the popup. Place it as a
|
|
98
|
+
* sibling of the trigger inside `Select.Root`; Base UI wires the
|
|
99
|
+
* `aria-labelledby` association automatically.
|
|
100
|
+
*
|
|
101
|
+
* Styled medium-weight with comfortable spacing below it (0.5rem), so the
|
|
102
|
+
* label reads as a field caption rather than crowding the trigger. It dims to
|
|
103
|
+
* the muted color when the select is `disabled`.
|
|
104
|
+
*/
|
|
105
|
+
interface SelectLabelProps$1 extends SelectLabelProps {}
|
|
106
|
+
declare function SelectLabel({ className, ...props }: SelectLabelProps$1): import("react").JSX.Element;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/select/select-list.d.ts
|
|
109
|
+
/**
|
|
110
|
+
* A scrollable container for the select items. Renders a `<div>` element.
|
|
111
|
+
*
|
|
112
|
+
* Constrained by `--available-height` so long lists scroll; wrap it between
|
|
113
|
+
* the `Select.ScrollUpArrow` and `Select.ScrollDownArrow` for edge scrolling.
|
|
114
|
+
*/
|
|
115
|
+
interface SelectListProps$1 extends SelectListProps {}
|
|
116
|
+
declare function SelectList({ className, ...props }: SelectListProps$1): import("react").JSX.Element;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/select/select-popup.d.ts
|
|
119
|
+
/**
|
|
120
|
+
* The popup panel that holds the select list. Renders a `<div>` element.
|
|
121
|
+
*
|
|
122
|
+
* Accepts all Base UI popup props, including `finalFocus` for controlling
|
|
123
|
+
* focus when the popup closes. Content animates in/out via the
|
|
124
|
+
* `data-starting-style` / `data-ending-style` transitions.
|
|
125
|
+
*
|
|
126
|
+
* By default the popup is at least as wide as the trigger and never narrower
|
|
127
|
+
* than 13rem (`min-width: max(var(--anchor-width), 13rem)`), so a small trigger
|
|
128
|
+
* still gets a comfortable dropdown. Pass `style={{ width: ... }}` or a
|
|
129
|
+
* `className` to constrain it. In `alignItemWithTrigger` mode (`data-side="none"`)
|
|
130
|
+
* the popup widens by 1.75rem so the selected item aligns with the trigger's
|
|
131
|
+
* value text.
|
|
132
|
+
*
|
|
133
|
+
* @default finalFocus = true
|
|
134
|
+
*/
|
|
135
|
+
interface SelectPopupProps$1 extends SelectPopupProps {}
|
|
136
|
+
declare function SelectPopup({ className, ...props }: SelectPopupProps$1): import("react").JSX.Element;
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/select/select-portal.d.ts
|
|
139
|
+
/**
|
|
140
|
+
* Moves the select popup to a different part of the DOM, appended to `<body>`
|
|
141
|
+
* by default. Renders a `<div>` element.
|
|
142
|
+
*
|
|
143
|
+
* `container` overrides the portal target.
|
|
144
|
+
*/
|
|
145
|
+
interface SelectPortalProps$1 extends SelectPortalProps {}
|
|
146
|
+
declare function SelectPortal({ className, ...props }: SelectPortalProps$1): import("react").JSX.Element;
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/select/select-positioner.d.ts
|
|
149
|
+
/**
|
|
150
|
+
* Positions the select popup against the trigger. Renders a `<div>` element.
|
|
151
|
+
*
|
|
152
|
+
* Accepts all Base UI positioner props: `side`, `align`, `sideOffset`,
|
|
153
|
+
* `alignOffset`, `collisionAvoidance`, `collisionBoundary`, `collisionPadding`,
|
|
154
|
+
* `sticky`, `positionMethod`, `arrowPadding`, and `anchor`.
|
|
155
|
+
*
|
|
156
|
+
* By default `alignItemWithTrigger` is `true`: the popup overlaps the trigger
|
|
157
|
+
* so the selected item's text aligns with the trigger's value text (the
|
|
158
|
+
* `data-side` is `"none"` on the popup in this mode). Set it to `false` for a
|
|
159
|
+
* plain dropdown that floats below the trigger. Other positioning props like
|
|
160
|
+
* `side`/`align` only take effect when `alignItemWithTrigger` is `false` or in
|
|
161
|
+
* fallback mode.
|
|
162
|
+
*
|
|
163
|
+
* @default sideOffset = 4
|
|
164
|
+
* @default alignItemWithTrigger = true
|
|
165
|
+
*/
|
|
166
|
+
interface SelectPositionerProps$1 extends SelectPositionerProps {}
|
|
167
|
+
declare function SelectPositioner({ className, sideOffset, ...props }: SelectPositionerProps$1): import("react").JSX.Element;
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/select/select-root.d.ts
|
|
170
|
+
/**
|
|
171
|
+
* The root of the select, grouping all parts together. Renders no DOM element.
|
|
172
|
+
*
|
|
173
|
+
* All Base UI root props are supported: `value` / `defaultValue`,
|
|
174
|
+
* `onValueChange`, `multiple`, `items`, `itemToStringValue`, `open` /
|
|
175
|
+
* `defaultOpen`, `onOpenChange`, `disabled`, `readOnly`, `required`,
|
|
176
|
+
* `modal`, `name`, `form`, and `autoComplete`.
|
|
177
|
+
*
|
|
178
|
+
* Pass `items` (an array of `{ value, label }` or a record of label lookups)
|
|
179
|
+
* so `Select.Value` renders the matching label for the selected value instead
|
|
180
|
+
* of the raw value. Add `multiple` to allow multi-selection.
|
|
181
|
+
*
|
|
182
|
+
* `modal` is `true` by default (pointer outside is blocked and page scroll is
|
|
183
|
+
* locked while open); set `modal={false}` for a non-blocking dropdown that
|
|
184
|
+
* dismisses when you click elsewhere.
|
|
185
|
+
*
|
|
186
|
+
* @default modal = true
|
|
187
|
+
*/
|
|
188
|
+
interface SelectProps<Value, Multiple extends boolean | undefined = false> extends SelectRootProps<Value, Multiple> {}
|
|
189
|
+
declare function SelectRoot<Value, Multiple extends boolean | undefined = false>(props: SelectProps<Value, Multiple>): import("react").JSX.Element;
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/select/select-scroll-down-arrow.d.ts
|
|
192
|
+
/**
|
|
193
|
+
* A bottom edge arrow that scrolls the select list down while hovered. Renders
|
|
194
|
+
* a `<div>` element. Hidden when the list is not scrollable (or on touch input).
|
|
195
|
+
*
|
|
196
|
+
* Place it below `Select.List` inside the popup and give it a chevron child.
|
|
197
|
+
* Its background covers the list so items scroll underneath it.
|
|
198
|
+
*
|
|
199
|
+
* @default keepMounted = false
|
|
200
|
+
*/
|
|
201
|
+
interface SelectScrollDownArrowProps$1 extends SelectScrollDownArrowProps {}
|
|
202
|
+
declare function SelectScrollDownArrow({ className, ...props }: SelectScrollDownArrowProps$1): import("react").JSX.Element;
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/select/select-scroll-up-arrow.d.ts
|
|
205
|
+
/**
|
|
206
|
+
* A top edge arrow that scrolls the select list up while hovered. Renders a
|
|
207
|
+
* `<div>` element. Hidden when the list is not scrollable (or on touch input).
|
|
208
|
+
*
|
|
209
|
+
* Place it above `Select.List` inside the popup and give it a chevron child.
|
|
210
|
+
* Its background covers the list so items scroll underneath it.
|
|
211
|
+
*
|
|
212
|
+
* @default keepMounted = false
|
|
213
|
+
*/
|
|
214
|
+
interface SelectScrollUpArrowProps$1 extends SelectScrollUpArrowProps {}
|
|
215
|
+
declare function SelectScrollUpArrow({ className, ...props }: SelectScrollUpArrowProps$1): import("react").JSX.Element;
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/select/select-separator.d.ts
|
|
218
|
+
/**
|
|
219
|
+
* A horizontal divider between groups of select items. Renders a `<div>` element.
|
|
220
|
+
*
|
|
221
|
+
* It is announced to screen readers via `role="separator"`.
|
|
222
|
+
*
|
|
223
|
+
* @default orientation = 'horizontal'
|
|
224
|
+
*/
|
|
225
|
+
interface SelectSeparatorProps$1 extends SelectSeparatorProps {}
|
|
226
|
+
declare function SelectSeparator({ className, ...props }: SelectSeparatorProps$1): import("react").JSX.Element;
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/select/select-trigger.d.ts
|
|
229
|
+
/**
|
|
230
|
+
* A button that opens the select popup. Renders a `<button>` element.
|
|
231
|
+
*
|
|
232
|
+
* Composed from the `Button` component via Base UI's `render` prop, so it
|
|
233
|
+
* accepts all `Button` props (`variant`, `size`, `fullWidth`, `disabled`,
|
|
234
|
+
* `onClick`, ...) plus the select-trigger props from Base UI. Defaults to the
|
|
235
|
+
* `outline` variant.
|
|
236
|
+
*
|
|
237
|
+
* The trigger always renders the selected `Select.Value` on the left and a
|
|
238
|
+
* built-in `CaretDown` disclosure chevron on the right (via `BaseSelect.Icon`,
|
|
239
|
+
* which rotates 180° when open). The layout is `justify-content: space-between`.
|
|
240
|
+
*/
|
|
241
|
+
interface SelectTriggerProps$1 extends ButtonProps, Omit<SelectTriggerProps, "className" | "style" | "render" | "nativeButton"> {}
|
|
242
|
+
declare function SelectTrigger({ className, variant, size, fullWidth, children, ...props }: SelectTriggerProps$1): import("react").JSX.Element;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/select/select-value.d.ts
|
|
245
|
+
/**
|
|
246
|
+
* The currently selected value shown in the trigger. Renders a `<span>` element.
|
|
247
|
+
*
|
|
248
|
+
* By default renders the raw value, or the matching label when `items` is
|
|
249
|
+
* passed to `Select.Root`. Pass `placeholder` to show hint text when no value
|
|
250
|
+
* is selected, or a function as `children` to format the value:
|
|
251
|
+
*
|
|
252
|
+
* ```tsx
|
|
253
|
+
* <Select.Value placeholder="Choose a theme">
|
|
254
|
+
* {(value) => value ? labels[value] : 'Nothing selected'}
|
|
255
|
+
* </Select.Value>
|
|
256
|
+
* ```
|
|
257
|
+
*
|
|
258
|
+
* Placeholder text is styled muted via the `data-placeholder` state.
|
|
259
|
+
*/
|
|
260
|
+
interface SelectValueProps$1 extends SelectValueProps {}
|
|
261
|
+
declare function SelectValue({ className, ...props }: SelectValueProps$1): import("react").JSX.Element;
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/select/index.d.ts
|
|
264
|
+
/**
|
|
265
|
+
* Compound component for choosing a predefined value from a dropdown.
|
|
266
|
+
*
|
|
267
|
+
* Assemble the parts as properties of the object:
|
|
268
|
+
*
|
|
269
|
+
* ```tsx
|
|
270
|
+
* import { Select } from '@vikram-hegde/skeletal'
|
|
271
|
+
*
|
|
272
|
+
* const items = [
|
|
273
|
+
* { value: 'system', label: 'System default' },
|
|
274
|
+
* { value: 'light', label: 'Light' },
|
|
275
|
+
* { value: 'dark', label: 'Dark' },
|
|
276
|
+
* ]
|
|
277
|
+
*
|
|
278
|
+
* <Select.Root items={items} defaultValue="system">
|
|
279
|
+
* <Select.Label>Theme</Select.Label>
|
|
280
|
+
* <Select.Trigger>
|
|
281
|
+
* <Select.Value placeholder="Select theme" />
|
|
282
|
+
* </Select.Trigger>
|
|
283
|
+
* <Select.Portal>
|
|
284
|
+
* <Select.Positioner>
|
|
285
|
+
* <Select.Popup>
|
|
286
|
+
* <Select.List>
|
|
287
|
+
* {items.map((item) => (
|
|
288
|
+
* <Select.Item key={item.value} value={item.value}>
|
|
289
|
+
* <Select.ItemIndicator>
|
|
290
|
+
* <Icon name={Check} size={14} />
|
|
291
|
+
* </Select.ItemIndicator>
|
|
292
|
+
* <Select.ItemText>{item.label}</Select.ItemText>
|
|
293
|
+
* </Select.Item>
|
|
294
|
+
* ))}
|
|
295
|
+
* </Select.List>
|
|
296
|
+
* </Select.Popup>
|
|
297
|
+
* </Select.Positioner>
|
|
298
|
+
* </Select.Portal>
|
|
299
|
+
* </Select.Root>
|
|
300
|
+
* ```
|
|
301
|
+
*
|
|
302
|
+
* Composition follows the Base UI anatomy — `Select.Positioner` floats the
|
|
303
|
+
* popup against the trigger and handles collision avoidance; by default it
|
|
304
|
+
* overlaps the trigger so the selected item aligns with the trigger's value
|
|
305
|
+
* text (`alignItemWithTrigger`). `Select.Portal` moves the popup to `<body>`.
|
|
306
|
+
* `Select.ScrollUpArrow` / `Select.ScrollDownArrow` give edge scrolling on long
|
|
307
|
+
* lists. The trigger owns its `CaretDown` chevron — no `Select.Icon` is needed.
|
|
308
|
+
*
|
|
309
|
+
* All parts are thin styled wrappers over Base UI's `Select`, so every Base UI
|
|
310
|
+
* prop, `render` override, and ref behaves the same. Part prop types are
|
|
311
|
+
* exported separately (`SelectProps`, `SelectItemProps`, etc.).
|
|
312
|
+
*/
|
|
313
|
+
declare const Select$1: {
|
|
314
|
+
Root: typeof SelectRoot;
|
|
315
|
+
Label: typeof SelectLabel;
|
|
316
|
+
Trigger: typeof SelectTrigger;
|
|
317
|
+
Value: typeof SelectValue;
|
|
318
|
+
Portal: typeof SelectPortal;
|
|
319
|
+
Backdrop: typeof SelectBackdrop;
|
|
320
|
+
Positioner: typeof SelectPositioner;
|
|
321
|
+
Popup: typeof SelectPopup;
|
|
322
|
+
List: typeof SelectList;
|
|
323
|
+
Item: typeof SelectItem;
|
|
324
|
+
ItemIndicator: typeof SelectItemIndicator;
|
|
325
|
+
ItemText: typeof SelectItemText;
|
|
326
|
+
Arrow: typeof SelectArrow;
|
|
327
|
+
ScrollUpArrow: typeof SelectScrollUpArrow;
|
|
328
|
+
ScrollDownArrow: typeof SelectScrollDownArrow;
|
|
329
|
+
Group: typeof SelectGroup;
|
|
330
|
+
GroupLabel: typeof SelectGroupLabel;
|
|
331
|
+
Separator: typeof SelectSeparator;
|
|
332
|
+
};
|
|
333
|
+
//#endregion
|
|
334
|
+
export { SelectGroupProps$1 as _, SelectScrollUpArrowProps$1 as a, SelectPositionerProps$1 as c, SelectListProps$1 as d, SelectLabelProps$1 as f, SelectGroupLabelProps$1 as g, SelectItemProps$1 as h, SelectSeparatorProps$1 as i, SelectPortalProps$1 as l, SelectItemIndicatorProps$1 as m, SelectValueProps$1 as n, SelectScrollDownArrowProps$1 as o, SelectItemTextProps$1 as p, SelectTriggerProps$1 as r, SelectProps as s, Select$1 as t, SelectPopupProps$1 as u, SelectBackdropProps$1 as v, SelectArrowProps$1 as y };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { RadioGroupProps } from "@base-ui/react/radio-group";
|
|
2
|
+
import { RadioIndicatorProps, RadioRootProps } from "@base-ui/react/radio";
|
|
3
|
+
//#region src/radio/radio-group.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shared state for a series of radio buttons. Renders a `<div>` laid out as a
|
|
6
|
+
* vertical stack.
|
|
7
|
+
*
|
|
8
|
+
* Place `Radio.Root` items inside; the group owns the selected value, so form
|
|
9
|
+
* libraries only wire up the group — individual radios just declare their
|
|
10
|
+
* `value`:
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // react-hook-form
|
|
14
|
+
* <Controller
|
|
15
|
+
* control={control}
|
|
16
|
+
* name="plan"
|
|
17
|
+
* render={({ field }) => (
|
|
18
|
+
* <Radio.Group value={field.value} onValueChange={field.onChange} onBlur={field.onBlur}>
|
|
19
|
+
* <label><Radio.Root value="free" /> Free</label>
|
|
20
|
+
* <label><Radio.Root value="pro" /> Pro</label>
|
|
21
|
+
* </Radio.Group>
|
|
22
|
+
* )}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* TanStack Form works the same way via `form.Field` (`field.state.value`,
|
|
27
|
+
* `field.handleChange`). For Formisch / uncontrolled forms, pass `name` —
|
|
28
|
+
* the hidden input submits the selected radio's value natively.
|
|
29
|
+
*
|
|
30
|
+
* Label the group accessibly with `aria-labelledby` or by wrapping in Base
|
|
31
|
+
* UI's `Fieldset.Root`.
|
|
32
|
+
*/
|
|
33
|
+
interface RadioGroupProps$1<Value = unknown> extends RadioGroupProps<Value> {}
|
|
34
|
+
declare function RadioGroup$1<Value>({ className, ...props }: RadioGroupProps$1<Value>): import("react").JSX.Element;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/radio/radio-indicator.d.ts
|
|
37
|
+
/**
|
|
38
|
+
* The dot shown when the radio is selected. Renders a `<span>` whose `::before`
|
|
39
|
+
* draws a circle tinted with the root's foreground color — pass `children` or
|
|
40
|
+
* `render` to draw something else instead. Unmounts while unchecked unless
|
|
41
|
+
* `keepMounted` is set. Animates in/out via `data-starting-style` /
|
|
42
|
+
* `data-ending-style`.
|
|
43
|
+
*
|
|
44
|
+
* @default keepMounted = false
|
|
45
|
+
*/
|
|
46
|
+
interface RadioIndicatorProps$1 extends RadioIndicatorProps {}
|
|
47
|
+
declare function RadioIndicator({ className, ...props }: RadioIndicatorProps$1): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/radio/radio-root.d.ts
|
|
50
|
+
/**
|
|
51
|
+
* A single radio button — must sit inside a `Radio.Group`. Renders a `<span>`
|
|
52
|
+
* with a hidden `<input>` beside it, so it participates in native form
|
|
53
|
+
* submission and validation without extra wiring.
|
|
54
|
+
*
|
|
55
|
+
* Works directly with headless form libraries. Unlike checkboxes, radios are
|
|
56
|
+
* always string-valued and identified by their `value`, so libraries only
|
|
57
|
+
* need the group-level handlers:
|
|
58
|
+
*
|
|
59
|
+
* - **React Hook Form** — control the group (see `Radio.Group`) and give each
|
|
60
|
+
* option its `value`; no per-item registration is needed:
|
|
61
|
+
*
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <Controller
|
|
64
|
+
* control={control}
|
|
65
|
+
* name="plan"
|
|
66
|
+
* render={({ field }) => (
|
|
67
|
+
* <Radio.Group value={field.value} onValueChange={field.onChange} onBlur={field.onBlur}>
|
|
68
|
+
* <label><Radio.Root value="free" /> Free</label>
|
|
69
|
+
* <label><Radio.Root value="pro" /> Pro</label>
|
|
70
|
+
* </Radio.Group>
|
|
71
|
+
* )}
|
|
72
|
+
* />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* - **TanStack Form** — same shape via `form.Field` (`field.state.value`,
|
|
76
|
+
* `field.handleChange`). **Formisch** / uncontrolled forms — just set the
|
|
77
|
+
* group's `name`; the selected radio's hidden input submits natively.
|
|
78
|
+
*
|
|
79
|
+
* Validation styling (`data-invalid`, `data-valid`, ...) activates when the
|
|
80
|
+
* radio is wrapped in Base UI's `Field.Root`.
|
|
81
|
+
*/
|
|
82
|
+
interface RadioProps<Value = unknown> extends RadioRootProps<Value> {}
|
|
83
|
+
declare function RadioRoot<Value>({ className, children, ...props }: RadioProps<Value>): import("react").JSX.Element;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/radio/index.d.ts
|
|
86
|
+
/**
|
|
87
|
+
* Compound component for picking exactly one option from a set.
|
|
88
|
+
*
|
|
89
|
+
* Assemble the parts as properties of the object:
|
|
90
|
+
*
|
|
91
|
+
* ```tsx
|
|
92
|
+
* import { Radio } from '@vikram-hegde/skeletal'
|
|
93
|
+
*
|
|
94
|
+
* <Radio.Group defaultValue="free" name="plan">
|
|
95
|
+
* <label>
|
|
96
|
+
* <Radio.Root value="free">
|
|
97
|
+
* <Radio.Indicator />
|
|
98
|
+
* </Radio.Root>
|
|
99
|
+
* Free
|
|
100
|
+
* </label>
|
|
101
|
+
* <label>
|
|
102
|
+
* <Radio.Root value="pro">
|
|
103
|
+
* <Radio.Indicator />
|
|
104
|
+
* </Radio.Root>
|
|
105
|
+
* Pro
|
|
106
|
+
* </label>
|
|
107
|
+
* </Radio.Group>
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* The `Group` owns the value and renders the hidden form input — see its
|
|
111
|
+
* docs for react-hook-form / TanStack Form wiring. All parts are thin styled
|
|
112
|
+
* wrappers over Base UI's `Radio` / `RadioGroup`, so every Base UI prop,
|
|
113
|
+
* `render` override, and ref behaves the same. Part prop types are exported
|
|
114
|
+
* separately (`RadioProps`, `RadioGroupProps`, ...).
|
|
115
|
+
*/
|
|
116
|
+
declare const Radio$1: {
|
|
117
|
+
Root: typeof RadioRoot;
|
|
118
|
+
Group: typeof RadioGroup$1;
|
|
119
|
+
Indicator: typeof RadioIndicator;
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
export { RadioGroupProps$1 as i, RadioProps as n, RadioIndicatorProps$1 as r, Radio$1 as t };
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@layer skeletal {
|
|
2
|
+
*, :before, :after {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light dark;
|
|
8
|
+
--sk-background: light-dark(oklch(100% 0 0), oklch(14.5% 0 0));
|
|
9
|
+
--sk-foreground: light-dark(oklch(14.5% 0 0), oklch(98.5% 0 0));
|
|
10
|
+
--sk-card: light-dark(oklch(100% 0 0), oklch(20.5% 0 0));
|
|
11
|
+
--sk-card-foreground: light-dark(oklch(14.5% 0 0), oklch(98.5% 0 0));
|
|
12
|
+
--sk-popover: light-dark(oklch(100% 0 0), oklch(20.5% 0 0));
|
|
13
|
+
--sk-popover-foreground: light-dark(oklch(14.5% 0 0), oklch(98.5% 0 0));
|
|
14
|
+
--sk-primary: light-dark(oklch(14.5% 0 0), oklch(98.5% 0 0));
|
|
15
|
+
--sk-primary-foreground: light-dark(oklch(98.5% 0 0), oklch(14.5% 0 0));
|
|
16
|
+
--sk-secondary: light-dark(oklch(96.7% 0 0), oklch(27.4% 0 0));
|
|
17
|
+
--sk-secondary-foreground: light-dark(oklch(21% 0 0), oklch(98.5% 0 0));
|
|
18
|
+
--sk-muted: light-dark(oklch(97% 0 0), oklch(26.9% 0 0));
|
|
19
|
+
--sk-muted-foreground: light-dark(oklch(55.6% 0 0), oklch(70.8% 0 0));
|
|
20
|
+
--sk-accent: light-dark(oklch(97% 0 0), oklch(26.9% 0 0));
|
|
21
|
+
--sk-accent-foreground: light-dark(oklch(20.5% 0 0), oklch(98.5% 0 0));
|
|
22
|
+
--sk-destructive: light-dark(oklch(57.7% .245 27.325), oklch(70.4% .191 22.216));
|
|
23
|
+
--sk-destructive-foreground: light-dark(oklch(97% 0 0), oklch(12% .021 26.805));
|
|
24
|
+
--sk-success: light-dark(oklch(62.7% .194 149.214), oklch(69.6% .17 162.48));
|
|
25
|
+
--sk-success-foreground: oklch(98.5% 0 0);
|
|
26
|
+
--sk-warning: light-dark(oklch(79.5% .184 86.047), oklch(82.8% .189 84.429));
|
|
27
|
+
--sk-warning-foreground: oklch(27.9% .077 45.635);
|
|
28
|
+
--sk-border: light-dark(oklch(92.2% 0 0), oklch(100% 0 0 / .1));
|
|
29
|
+
--sk-input: light-dark(oklch(92.2% 0 0), oklch(100% 0 0 / .15));
|
|
30
|
+
--sk-ring: light-dark(oklch(70.8% 0 0), oklch(55.6% 0 0));
|
|
31
|
+
--sk-chart-1: light-dark(oklch(87% 0 0), oklch(72% 0 0));
|
|
32
|
+
--sk-chart-2: light-dark(oklch(55.6% 0 0), oklch(66% 0 0));
|
|
33
|
+
--sk-chart-3: light-dark(oklch(43.9% 0 0), oklch(55% 0 0));
|
|
34
|
+
--sk-chart-4: light-dark(oklch(37.1% 0 0), oklch(50% 0 0));
|
|
35
|
+
--sk-chart-5: light-dark(oklch(26.9% 0 0), oklch(45% 0 0));
|
|
36
|
+
--sk-radius: 0;
|
|
37
|
+
--sk-shadow-sm: light-dark(0 1px 2px oklch(0% 0 0 / .04), 0 1px 2px oklch(0% 0 0 / .2));
|
|
38
|
+
--sk-shadow-md: light-dark(0 16px 50px oklch(0% 0 0 / .18), 0 16px 50px oklch(0% 0 0 / .45));
|
|
39
|
+
--sk-shadow-lg: light-dark(0 24px 60px oklch(0% 0 0 / .22), 0 24px 60px oklch(0% 0 0 / .55));
|
|
40
|
+
--sk-sidebar: light-dark(oklch(98.5% 0 0), oklch(20.5% 0 0));
|
|
41
|
+
--sk-sidebar-foreground: light-dark(oklch(14.5% 0 0), oklch(98.5% 0 0));
|
|
42
|
+
--sk-sidebar-primary: light-dark(oklch(54.6% .245 262.881), oklch(62.3% .214 259.815));
|
|
43
|
+
--sk-sidebar-primary-foreground: oklch(97% .014 254.604);
|
|
44
|
+
--sk-sidebar-accent: light-dark(oklch(97% 0 0), oklch(26.9% 0 0));
|
|
45
|
+
--sk-sidebar-accent-foreground: light-dark(oklch(20.5% 0 0), oklch(98.5% 0 0));
|
|
46
|
+
--sk-sidebar-border: light-dark(oklch(92.2% 0 0), oklch(100% 0 0 / .1));
|
|
47
|
+
--sk-sidebar-ring: light-dark(oklch(70.8% 0 0), oklch(55.6% 0 0));
|
|
48
|
+
--sk-scrollbar-thumb: light-dark(oklch(84% 0 0), oklch(31% 0 0));
|
|
49
|
+
--sk-scrollbar-thumb-hover: light-dark(oklch(68% 0 0), oklch(45% 0 0));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
html.dark {
|
|
53
|
+
color-scheme: dark;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
html.light {
|
|
57
|
+
color-scheme: light;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
* {
|
|
61
|
+
scrollbar-width: thin;
|
|
62
|
+
scrollbar-color: var(--sk-scrollbar-thumb) transparent;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
::-webkit-scrollbar {
|
|
66
|
+
width: .625rem;
|
|
67
|
+
height: .625rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
::-webkit-scrollbar-track {
|
|
71
|
+
background: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
::-webkit-scrollbar-thumb {
|
|
75
|
+
background: var(--sk-scrollbar-thumb);
|
|
76
|
+
background-clip: content-box;
|
|
77
|
+
border: 2px solid #0000;
|
|
78
|
+
border-radius: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
::-webkit-scrollbar-thumb:hover {
|
|
82
|
+
background: var(--sk-scrollbar-thumb-hover);
|
|
83
|
+
background-clip: content-box;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
label:has([role="checkbox"]), label:has([role="radio"]), label:has([role="switch"]) {
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: .5rem;
|
|
89
|
+
min-block-size: 1rem;
|
|
90
|
+
line-height: 1.25;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
}
|
|
93
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { i as DialogBackdropProps, n as DialogViewportProps } from "./dialog-viewport-CaMWJrCJ.js";
|
|
2
|
+
import { i as ButtonVariant, n as ButtonProps, r as ButtonSize, t as Button } from "./button-Dvd4n2U4.js";
|
|
3
|
+
import { i as DialogDescriptionProps, n as DialogTitleProps, o as DialogCloseProps } from "./dialog-title-jyf86Q8C.js";
|
|
4
|
+
import { a as DialogContentSize, i as DialogContentProps, n as DialogFooterProps } from "./dialog-footer-bNVIVPbu.js";
|
|
5
|
+
import { n as DialogPortalProps } from "./dialog-portal-BF89FBeX.js";
|
|
6
|
+
import { n as AlertDialogTriggerProps, r as AlertDialogProps, t as AlertDialog } from "./index-CbMW32E9.js";
|
|
7
|
+
import { n as BadgeProps, r as BadgeVariant, t as Badge } from "./index-A2QmU5r9.js";
|
|
8
|
+
import "./button/index.js";
|
|
9
|
+
import { i as CheckboxGroupProps, n as CheckboxProps, r as CheckboxIndicatorProps, t as Checkbox } from "./index-CUy-9csi.js";
|
|
10
|
+
import { C as ComboboxChipRemoveProps, E as ComboboxArrowProps, S as ComboboxChipsProps, T as ComboboxBackdropProps, _ as ComboboxGroupLabelProps, a as ComboboxSeparatorProps, b as ComboboxCollectionProps, c as ComboboxPositionerProps, d as ComboboxListProps, f as ComboboxLabelProps, g as ComboboxInputProps, h as ComboboxInputGroupProps, i as ComboboxStatusProps, l as ComboboxPortalProps, m as ComboboxItemProps, n as ComboboxValueProps, o as ComboboxRowProps, p as ComboboxItemIndicatorProps, r as ComboboxTriggerProps, s as ComboboxProps, t as Combobox, u as ComboboxPopupProps, v as ComboboxGroupProps, w as ComboboxChipProps, x as ComboboxClearProps, y as ComboboxEmptyProps } from "./index-Br2NrBW_.js";
|
|
11
|
+
import { a as CommandPaletteItemProps, c as CommandPaletteGroupLabelProps, d as CommandPaletteEmptyProps, f as CommandPaletteContentProps, i as CommandPaletteListProps, l as CommandPaletteGroupProps, n as CommandPaletteOpenChangeDetails, o as CommandPaletteInputGroupProps, r as CommandPaletteRootProps, s as CommandPaletteInputProps, t as CommandPalette, u as CommandPaletteFooterProps } from "./index-BBOkTl3h.js";
|
|
12
|
+
import { n as DialogTriggerProps, r as DialogProps, t as Dialog } from "./index-CznsZ_1M.js";
|
|
13
|
+
import { a as DrawerProps, c as DrawerPopupSize, d as DrawerContentProps, f as DrawerBackdropProps, i as DrawerSwipeAreaProps, l as DrawerHeaderProps, n as DrawerViewportProps, o as DrawerSide, r as DrawerTriggerProps, s as DrawerPopupProps, t as Drawer, u as DrawerFooterProps } from "./index-B0uNLS7z.js";
|
|
14
|
+
import { n as IconProps, t as Icon } from "./index-kpw3_4q_.js";
|
|
15
|
+
import { a as FieldRootProps, c as InputSize, i as FieldLabelProps, n as FieldDescriptionProps, o as Input, r as FieldErrorProps, s as InputProps, t as Field } from "./index-BXPUT5u-.js";
|
|
16
|
+
import { C as Box, S as CenterProps, T as LayoutPrimitiveProps, _ as Container, a as Sidebar, b as ClusterProps, c as ReelProps, d as Grid, f as GridProps, g as CoverProps, h as Cover, i as StackProps, l as Imposter, m as FrameProps, n as SwitcherProps, o as SidebarProps, p as Frame, r as Stack, s as Reel, t as Switcher, u as ImposterProps, v as ContainerProps, w as BoxProps, x as Center, y as Cluster } from "./index-CyTcR6iv.js";
|
|
17
|
+
import { _ as MenuGroupProps, a as MenuSubmenuRootProps, b as MenuBackdropProps, c as MenuRadioItemIndicatorProps, d as MenuPositionerProps, f as MenuPortalProps, g as MenuGroupLabelProps, h as MenuItemProps, i as MenuSubmenuTriggerProps, l as MenuRadioItemProps, m as MenuLinkItemProps, n as MenuViewportProps, o as MenuSeparatorProps, p as MenuPopupProps, r as MenuTriggerProps, s as MenuProps, t as Menu, u as MenuRadioGroupProps, v as MenuCheckboxItemIndicatorProps, x as MenuArrowProps, y as MenuCheckboxItemProps } from "./index-D-6gOciw.js";
|
|
18
|
+
import { i as RadioGroupProps, n as RadioProps, r as RadioIndicatorProps, t as Radio } from "./index-rQ7sRkqg.js";
|
|
19
|
+
import { _ as SelectGroupProps, a as SelectScrollUpArrowProps, c as SelectPositionerProps, d as SelectListProps, f as SelectLabelProps, g as SelectGroupLabelProps, h as SelectItemProps, i as SelectSeparatorProps, l as SelectPortalProps, m as SelectItemIndicatorProps, n as SelectValueProps, o as SelectScrollDownArrowProps, p as SelectItemTextProps, r as SelectTriggerProps, s as SelectProps, t as Select, u as SelectPopupProps, v as SelectBackdropProps, y as SelectArrowProps } from "./index-rH7TJeJt.js";
|
|
20
|
+
import { a as ScrollAreaRootProps, i as ScrollAreaScrollbarProps, n as ScrollAreaViewportProps, o as ScrollAreaCornerProps, r as ScrollAreaThumbProps, s as ScrollAreaContentProps, t as ScrollArea } from "./index-GOGpFujX.js";
|
|
21
|
+
import { n as SkeletonProps, t as Skeleton } from "./index-BLFVnve3.js";
|
|
22
|
+
import { n as SpinnerProps, t as Spinner } from "./index-BngvATZx.js";
|
|
23
|
+
import { n as SwitchThumbProps, r as SwitchProps, t as Switch } from "./index-B63PSP58.js";
|
|
24
|
+
import { a as PopoverTitleProps, c as PopoverPositionerProps, d as PopoverCloseProps, f as PopoverBackdropProps, i as PopoverTriggerProps, l as PopoverPortalProps, n as PopoverHandle, o as PopoverProps, p as PopoverArrowProps, r as PopoverViewportProps, s as PopoverPopupProps, t as Popover, u as PopoverDescriptionProps } from "./index-W3ozKcis.js";
|
|
25
|
+
import { a as TooltipProps, c as TooltipPortalProps, i as TooltipTriggerProps, l as TooltipPopupProps, n as TooltipHandle, o as TooltipProviderProps, r as TooltipViewportProps, s as TooltipPositionerProps, t as Tooltip, u as TooltipArrowProps } from "./index-DdqDyczP.js";
|
|
26
|
+
export { AlertDialog, type AlertDialogProps, type AlertDialogTriggerProps, Badge, type BadgeProps, type BadgeVariant, Box, type BoxProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Center, type CenterProps, Checkbox, type CheckboxGroupProps, type CheckboxIndicatorProps, type CheckboxProps, Cluster, type ClusterProps, Combobox, type ComboboxArrowProps, type ComboboxBackdropProps, type ComboboxChipProps, type ComboboxChipRemoveProps, type ComboboxChipsProps, type ComboboxClearProps, type ComboboxCollectionProps, type ComboboxEmptyProps, type ComboboxGroupLabelProps, type ComboboxGroupProps, type ComboboxInputGroupProps, type ComboboxInputProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, type ComboboxLabelProps, type ComboboxListProps, type ComboboxPopupProps, type ComboboxPortalProps, type ComboboxPositionerProps, type ComboboxProps, type ComboboxRowProps, type ComboboxSeparatorProps, type ComboboxStatusProps, type ComboboxTriggerProps, type ComboboxValueProps, CommandPalette, type CommandPaletteContentProps, type CommandPaletteEmptyProps, type CommandPaletteFooterProps, type CommandPaletteGroupLabelProps, type CommandPaletteGroupProps, type CommandPaletteInputGroupProps, type CommandPaletteInputProps, type CommandPaletteItemProps, type CommandPaletteListProps, type CommandPaletteOpenChangeDetails, type CommandPaletteRootProps, Container, type ContainerProps, Cover, type CoverProps, Dialog, type DialogBackdropProps, type DialogCloseProps, type DialogContentProps, type DialogContentSize, type DialogDescriptionProps, type DialogFooterProps, type DialogPortalProps, type DialogProps, type DialogTitleProps, type DialogTriggerProps, type DialogViewportProps, Drawer, type DrawerBackdropProps, type DrawerContentProps, type DrawerFooterProps, type DrawerHeaderProps, type DrawerPopupProps, type DrawerPopupSize, type DrawerProps, type DrawerSide, type DrawerSwipeAreaProps, type DrawerTriggerProps, type DrawerViewportProps, Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldRootProps, Frame, type FrameProps, Grid, type GridProps, Icon, type IconProps, Imposter, type ImposterProps, Input, type InputProps, type InputSize, type LayoutPrimitiveProps, Menu, type MenuArrowProps, type MenuBackdropProps, type MenuCheckboxItemIndicatorProps, type MenuCheckboxItemProps, type MenuGroupLabelProps, type MenuGroupProps, type MenuItemProps, type MenuLinkItemProps, type MenuPopupProps, type MenuPortalProps, type MenuPositionerProps, type MenuProps, type MenuRadioGroupProps, type MenuRadioItemIndicatorProps, type MenuRadioItemProps, type MenuSeparatorProps, type MenuSubmenuRootProps, type MenuSubmenuTriggerProps, type MenuTriggerProps, type MenuViewportProps, Popover, type PopoverArrowProps, type PopoverBackdropProps, type PopoverCloseProps, type PopoverDescriptionProps, type PopoverHandle, type PopoverPopupProps, type PopoverPortalProps, type PopoverPositionerProps, type PopoverProps, type PopoverTitleProps, type PopoverTriggerProps, type PopoverViewportProps, Radio, type RadioGroupProps, type RadioIndicatorProps, type RadioProps, Reel, type ReelProps, ScrollArea, type ScrollAreaContentProps, type ScrollAreaCornerProps, type ScrollAreaRootProps, type ScrollAreaScrollbarProps, type ScrollAreaThumbProps, type ScrollAreaViewportProps, Select, type SelectArrowProps, type SelectBackdropProps, type SelectGroupLabelProps, type SelectGroupProps, type SelectItemIndicatorProps, type SelectItemProps, type SelectItemTextProps, type SelectLabelProps, type SelectListProps, type SelectPopupProps, type SelectPortalProps, type SelectPositionerProps, type SelectProps, type SelectScrollDownArrowProps, type SelectScrollUpArrowProps, type SelectSeparatorProps, type SelectTriggerProps, type SelectValueProps, Sidebar, type SidebarProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, type SwitchThumbProps, Switcher, type SwitcherProps, Tooltip, type TooltipArrowProps, type TooltipHandle, type TooltipPopupProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipProviderProps, type TooltipTriggerProps, type TooltipViewportProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { t as Button } from "./button-B48UNbaC.js";
|
|
3
|
+
import { t as Stack } from "./stack-BzFVrsmT.js";
|
|
4
|
+
import { t as AlertDialog } from "./alert-dialog-1hxVC_5N.js";
|
|
5
|
+
import { t as Badge } from "./badge-C3p1L0E7.js";
|
|
6
|
+
import "./button/index.js";
|
|
7
|
+
import { t as Checkbox } from "./checkbox-wh2BoiSj.js";
|
|
8
|
+
import { t as Combobox } from "./combobox-DWH7uSsx.js";
|
|
9
|
+
import { t as Icon } from "./icon-DBOdxNvH.js";
|
|
10
|
+
import { t as CommandPalette } from "./command-palette-DF4XJ8qz.js";
|
|
11
|
+
import { t as Cluster } from "./cluster-BJ4m5uGN.js";
|
|
12
|
+
import { t as Dialog } from "./dialog-C4yqxII_.js";
|
|
13
|
+
import { t as Drawer } from "./drawer-DQmz_uCP.js";
|
|
14
|
+
import "./icon/index.js";
|
|
15
|
+
import { n as Input, t as Field } from "./input-CQ_ean8e.js";
|
|
16
|
+
import { a as Grid, c as Container, i as Imposter, l as Center, n as Sidebar, o as Frame, r as Reel, s as Cover, t as Switcher, u as Box } from "./layout-qoyutnKU.js";
|
|
17
|
+
import { t as Menu } from "./menu-DRdGMI_-.js";
|
|
18
|
+
import { t as Radio } from "./radio-BJrvdkga.js";
|
|
19
|
+
import { t as Select } from "./select-BaqBHUac.js";
|
|
20
|
+
import { t as ScrollArea } from "./scroll-area-DkORxJE9.js";
|
|
21
|
+
import { t as Skeleton } from "./skeleton-W6fwO5pf.js";
|
|
22
|
+
import { t as Spinner } from "./spinner-DB6ap8Si.js";
|
|
23
|
+
import { t as Switch } from "./switch-DizP31iF.js";
|
|
24
|
+
import { t as Popover } from "./popover-CenynT0Z.js";
|
|
25
|
+
import { t as Tooltip } from "./tooltip-CQk2WjUS.js";
|
|
26
|
+
export { AlertDialog, Badge, Box, Button, Center, Checkbox, Cluster, Combobox, CommandPalette, Container, Cover, Dialog, Drawer, Field, Frame, Grid, Icon, Imposter, Input, Menu, Popover, Radio, Reel, ScrollArea, Select, Sidebar, Skeleton, Spinner, Stack, Switch, Switcher, Tooltip };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as FieldRootProps, c as InputSize, i as FieldLabelProps, n as FieldDescriptionProps, o as Input, r as FieldErrorProps, s as InputProps, t as Field } from "../index-BXPUT5u-.js";
|
|
2
|
+
export { Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldRootProps, Input, type InputProps, type InputSize };
|