@nattstack/ui 0.0.87 → 0.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/button.css +1 -1
- package/dist/components/button/button.js +1 -0
- package/dist/components/button-link/button-link.js +1 -0
- package/dist/components/checkbox/checkbox-icon.js +1 -0
- package/dist/components/checkbox/checkbox.js +1 -0
- package/dist/components/column/column.js +1 -0
- package/dist/components/icon-button/icon-button.js +1 -0
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +8 -1
- package/dist/components/input/input.js +1 -0
- package/dist/components/label/label.css +1 -1
- package/dist/components/label/label.js +2 -1
- package/dist/components/otp-field/otp-field-input.js +1 -0
- package/dist/components/otp-field/otp-field.js +1 -0
- package/dist/components/row/row.js +1 -0
- package/dist/components/select/select-content.css +59 -0
- package/dist/components/select/select-content.d.ts +11 -0
- package/dist/components/select/select-content.js +39 -0
- package/dist/components/select/select-content.module.js +8 -0
- package/dist/components/select/select-group-label.css +8 -0
- package/dist/components/select/select-group-label.d.ts +10 -0
- package/dist/components/select/select-group-label.js +17 -0
- package/dist/components/select/select-group-label.module.js +5 -0
- package/dist/components/select/select-group.css +6 -0
- package/dist/components/select/select-group.d.ts +10 -0
- package/dist/components/select/select-group.js +17 -0
- package/dist/components/select/select-group.module.js +5 -0
- package/dist/components/select/select-item.css +47 -0
- package/dist/components/select/select-item.d.ts +11 -0
- package/dist/components/select/select-item.js +42 -0
- package/dist/components/select/select-item.module.js +9 -0
- package/dist/components/select/select-separator.css +8 -0
- package/dist/components/select/select-separator.d.ts +10 -0
- package/dist/components/select/select-separator.js +17 -0
- package/dist/components/select/select-separator.module.js +5 -0
- package/dist/components/select/select-trigger.css +87 -0
- package/dist/components/select/select-trigger.d.ts +17 -0
- package/dist/components/select/select-trigger.js +53 -0
- package/dist/components/select/select-trigger.module.js +15 -0
- package/dist/components/select/select.d.ts +7 -0
- package/dist/components/select/select.js +12 -0
- package/dist/components/spacer/spacer.js +1 -0
- package/dist/components/switch/switch.js +1 -0
- package/dist/components/tabs-pill/tabs-pill-list.js +1 -1
- package/dist/components/tabs-segmented/tabs-segmented-list.js +1 -1
- package/dist/components/tabs-underline/tabs-underline-list.js +1 -1
- package/dist/components/textarea/textarea.js +1 -0
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/package.json +5 -5
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
|
|
168
168
|
.button-module_variant_secondary_4nLWdW {
|
|
169
169
|
--color-text: #000;
|
|
170
|
-
background-color: var(--color-bg-shell-
|
|
170
|
+
background-color: var(--color-bg-shell-inner);
|
|
171
171
|
box-shadow: inset 0 0 0 1px var(--color-border);
|
|
172
172
|
color: var(--color-text);
|
|
173
173
|
}
|
|
@@ -9,6 +9,7 @@ function Checkbox$1(props) {
|
|
|
9
9
|
const combinedClassName = checkboxVariants({ className: customClassName });
|
|
10
10
|
return /* @__PURE__ */ jsx(Checkbox.Root, {
|
|
11
11
|
className: combinedClassName,
|
|
12
|
+
"data-slot": "checkbox",
|
|
12
13
|
...rest,
|
|
13
14
|
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
14
15
|
className: checkbox_module_default.indicator,
|
|
@@ -6,6 +6,7 @@ function Column(props) {
|
|
|
6
6
|
const { alignItems = void 0, as = "div", className: customClassName = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
|
|
7
7
|
return createElement(as, {
|
|
8
8
|
className: columnVariants({ className: customClassName }),
|
|
9
|
+
"data-slot": "column",
|
|
9
10
|
style: {
|
|
10
11
|
...customStyle,
|
|
11
12
|
...gap === void 0 ? {} : { gap },
|
|
@@ -26,6 +26,13 @@ import { MenuViewport, MenuViewportProps } from "./menu/menu-viewport.js";
|
|
|
26
26
|
import { OTPField, otpFieldVariants } from "./otp-field/otp-field.js";
|
|
27
27
|
import { OTPFieldInput, otpFieldInputVariants } from "./otp-field/otp-field-input.js";
|
|
28
28
|
import { Row, RowProps, rowVariants } from "./row/row.js";
|
|
29
|
+
import { Select, SelectProps } from "./select/select.js";
|
|
30
|
+
import { SelectContent, SelectContentProps, selectContentVariants } from "./select/select-content.js";
|
|
31
|
+
import { SelectGroup, SelectGroupProps, selectGroupVariants } from "./select/select-group.js";
|
|
32
|
+
import { SelectGroupLabel, SelectGroupLabelProps, selectGroupLabelVariants } from "./select/select-group-label.js";
|
|
33
|
+
import { SelectItem, SelectItemProps, selectItemVariants } from "./select/select-item.js";
|
|
34
|
+
import { SelectSeparator, SelectSeparatorProps, selectSeparatorVariants } from "./select/select-separator.js";
|
|
35
|
+
import { SelectTrigger, SelectTriggerProps, selectTriggerVariants } from "./select/select-trigger.js";
|
|
29
36
|
import { Spacer, SpacerProps, spacerVariants } from "./spacer/spacer.js";
|
|
30
37
|
import { Switch, SwitchProps, switchVariants } from "./switch/switch.js";
|
|
31
38
|
import { TabsPillList, TabsPillListProps, tabsPillListVariants } from "./tabs-pill/tabs-pill-list.js";
|
|
@@ -43,4 +50,4 @@ import { Tooltip, TooltipProps } from "./tooltip/tooltip.js";
|
|
|
43
50
|
import { TooltipPopup, TooltipPopupProps, tooltipPopupVariants } from "./tooltip/tooltip-popup.js";
|
|
44
51
|
import { TooltipProvider, TooltipProviderProps } from "./tooltip/tooltip-provider.js";
|
|
45
52
|
import { TooltipTrigger, TooltipTriggerProps } from "./tooltip/tooltip-trigger.js";
|
|
46
|
-
export { Button, ButtonLink, ButtonLinkProps, ButtonProps, Checkbox, CheckboxProps, Column, ColumnProps, DialogResponsive, DialogResponsivePopup, DialogResponsivePopupProps, DialogResponsiveProps, DialogResponsiveTrigger, DialogResponsiveTriggerProps, IconButton, IconButtonProps, Input, InputProps, Label, LabelProps, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuGroupLabelProps, MenuGroupProps, MenuItem, MenuItemProps, MenuLinkItem, MenuLinkItemProps, MenuProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuSubmenu, MenuSubmenuProps, MenuSubmenuTrigger, MenuSubmenuTriggerProps, MenuTrigger, MenuTriggerProps, MenuViewport, MenuViewportProps, OTPField, OTPFieldInput, Row, RowProps, Spacer, SpacerProps, Switch, SwitchProps, Tabs, TabsPanel, TabsPanelProps, TabsPillList, TabsPillListProps, TabsPillTab, TabsPillTabProps, TabsProps, TabsSegmentedList, TabsSegmentedListProps, TabsSegmentedTab, TabsSegmentedTabProps, TabsUnderlineList, TabsUnderlineListProps, TabsUnderlineTab, TabsUnderlineTabProps, Textarea, TextareaProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, Tooltip, TooltipPopup, TooltipPopupProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
53
|
+
export { Button, ButtonLink, ButtonLinkProps, ButtonProps, Checkbox, CheckboxProps, Column, ColumnProps, DialogResponsive, DialogResponsivePopup, DialogResponsivePopupProps, DialogResponsiveProps, DialogResponsiveTrigger, DialogResponsiveTriggerProps, IconButton, IconButtonProps, Input, InputProps, Label, LabelProps, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuCheckboxItemProps, MenuContent, MenuContentProps, MenuGroup, MenuGroupLabel, MenuGroupLabelProps, MenuGroupProps, MenuItem, MenuItemProps, MenuLinkItem, MenuLinkItemProps, MenuProps, MenuRadioGroup, MenuRadioGroupProps, MenuRadioItem, MenuRadioItemProps, MenuSeparator, MenuSeparatorProps, MenuSubmenu, MenuSubmenuProps, MenuSubmenuTrigger, MenuSubmenuTriggerProps, MenuTrigger, MenuTriggerProps, MenuViewport, MenuViewportProps, OTPField, OTPFieldInput, Row, RowProps, Select, SelectContent, SelectContentProps, SelectGroup, SelectGroupLabel, SelectGroupLabelProps, SelectGroupProps, SelectItem, SelectItemProps, SelectProps, SelectSeparator, SelectSeparatorProps, SelectTrigger, SelectTriggerProps, Spacer, SpacerProps, Switch, SwitchProps, Tabs, TabsPanel, TabsPanelProps, TabsPillList, TabsPillListProps, TabsPillTab, TabsPillTabProps, TabsProps, TabsSegmentedList, TabsSegmentedListProps, TabsSegmentedTab, TabsSegmentedTabProps, TabsUnderlineList, TabsUnderlineListProps, TabsUnderlineTab, TabsUnderlineTabProps, Textarea, TextareaProps, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, Tooltip, TooltipPopup, TooltipPopupProps, TooltipProps, TooltipProvider, TooltipProviderProps, TooltipTrigger, TooltipTriggerProps, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
package/dist/components/index.js
CHANGED
|
@@ -26,6 +26,13 @@ import { MenuViewport } from "./menu/menu-viewport.js";
|
|
|
26
26
|
import { OTPField, otpFieldVariants } from "./otp-field/otp-field.js";
|
|
27
27
|
import { OTPFieldInput, otpFieldInputVariants } from "./otp-field/otp-field-input.js";
|
|
28
28
|
import { Row, rowVariants } from "./row/row.js";
|
|
29
|
+
import { Select } from "./select/select.js";
|
|
30
|
+
import { SelectContent, selectContentVariants } from "./select/select-content.js";
|
|
31
|
+
import { SelectGroup, selectGroupVariants } from "./select/select-group.js";
|
|
32
|
+
import { SelectGroupLabel, selectGroupLabelVariants } from "./select/select-group-label.js";
|
|
33
|
+
import { SelectItem, selectItemVariants } from "./select/select-item.js";
|
|
34
|
+
import { SelectSeparator, selectSeparatorVariants } from "./select/select-separator.js";
|
|
35
|
+
import { SelectTrigger, selectTriggerVariants } from "./select/select-trigger.js";
|
|
29
36
|
import { Spacer, spacerVariants } from "./spacer/spacer.js";
|
|
30
37
|
import { Switch, switchVariants } from "./switch/switch.js";
|
|
31
38
|
import { TabsPillList, tabsPillListVariants } from "./tabs-pill/tabs-pill-list.js";
|
|
@@ -43,4 +50,4 @@ import { Tooltip } from "./tooltip/tooltip.js";
|
|
|
43
50
|
import { TooltipPopup, tooltipPopupVariants } from "./tooltip/tooltip-popup.js";
|
|
44
51
|
import { TooltipProvider } from "./tooltip/tooltip-provider.js";
|
|
45
52
|
import { TooltipTrigger } from "./tooltip/tooltip-trigger.js";
|
|
46
|
-
export { Button, ButtonLink, Checkbox, Column, DialogResponsive, DialogResponsivePopup, DialogResponsiveTrigger, IconButton, Input, Label, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, MenuViewport, OTPField, OTPFieldInput, Row, Spacer, Switch, Tabs, TabsPanel, TabsPillList, TabsPillTab, TabsSegmentedList, TabsSegmentedTab, TabsUnderlineList, TabsUnderlineTab, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup, TooltipProvider, TooltipTrigger, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
53
|
+
export { Button, ButtonLink, Checkbox, Column, DialogResponsive, DialogResponsivePopup, DialogResponsiveTrigger, IconButton, Input, Label, MENU_CLASS_NAME, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuLinkItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, MenuViewport, OTPField, OTPFieldInput, Row, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectSeparator, SelectTrigger, Spacer, Switch, Tabs, TabsPanel, TabsPillList, TabsPillTab, TabsSegmentedList, TabsSegmentedTab, TabsUnderlineList, TabsUnderlineTab, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipPopup, TooltipProvider, TooltipTrigger, button, checkboxVariants, columnVariants, createMenuHandle, dialogResponsivePopupVariants, iconButton, inputVariants, labelVariants, otpFieldInputVariants, otpFieldVariants, rowVariants, selectContentVariants, selectGroupLabelVariants, selectGroupVariants, selectItemVariants, selectSeparatorVariants, selectTriggerVariants, spacerVariants, switchVariants, tabsPanelVariants, tabsPillListVariants, tabsPillTabVariants, tabsSegmentedListVariants, tabsSegmentedTabVariants, tabsUnderlineListVariants, tabsUnderlineTabVariants, tabsVariants, textareaVariants, toggleGroupItemVariants, toggleGroupVariants, tooltipPopupVariants };
|
|
@@ -3,9 +3,10 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/label/label.tsx
|
|
5
5
|
function Label(props) {
|
|
6
|
-
const { className: customClassName = "", htmlFor = void 0, children =
|
|
6
|
+
const { className: customClassName = "", htmlFor = void 0, children = void 0, ...rest } = props;
|
|
7
7
|
return /* @__PURE__ */ jsx("label", {
|
|
8
8
|
className: labelVariants({ className: customClassName }),
|
|
9
|
+
"data-slot": "label",
|
|
9
10
|
htmlFor,
|
|
10
11
|
...rest,
|
|
11
12
|
children
|
|
@@ -6,6 +6,7 @@ function Row(props) {
|
|
|
6
6
|
const { alignItems = void 0, as = "div", className: customClassName = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
|
|
7
7
|
return createElement(as, {
|
|
8
8
|
className: rowVariants({ className: customClassName }),
|
|
9
|
+
"data-slot": "row",
|
|
9
10
|
style: {
|
|
10
11
|
...customStyle,
|
|
11
12
|
...gap === void 0 ? {} : { gap },
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.select-content-module_select_content_positioner_T-MXlW {
|
|
3
|
+
isolation: isolate;
|
|
4
|
+
z-index: 50;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.select-content-module_select_content_T-MXlW {
|
|
8
|
+
background-color: var(--color-bg-shell-inner);
|
|
9
|
+
box-shadow: 0 0 0 1px var(--color-border) inset,
|
|
10
|
+
0 .5px 0 oklab(0% none none / .03),
|
|
11
|
+
0 36px 15px -4px oklab(0% none none / .01),
|
|
12
|
+
0 20px 12px -3px oklab(0% none none / .03),
|
|
13
|
+
0 9px 9px -2px oklab(0% none none / .04),
|
|
14
|
+
0 2px 5px -1px oklab(0% none none / .05);
|
|
15
|
+
color: var(--color-text-primary);
|
|
16
|
+
font-family: var(--font-body);
|
|
17
|
+
max-height: min(var(--available-height), 480px);
|
|
18
|
+
max-width: min(var(--available-width), 320px);
|
|
19
|
+
min-width: max(var(--anchor-width), 180px);
|
|
20
|
+
outline-color: var(--color-primary-9);
|
|
21
|
+
outline-offset: -2px;
|
|
22
|
+
transform-origin: var(--transform-origin);
|
|
23
|
+
will-change: opacity, transform;
|
|
24
|
+
border-radius: 12px;
|
|
25
|
+
outline-width: 0;
|
|
26
|
+
outline-style: solid;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
padding: 4px;
|
|
29
|
+
transition-property: opacity, transform;
|
|
30
|
+
transition-duration: .15s;
|
|
31
|
+
display: flex;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.select-content-module_select_content_T-MXlW:focus-visible {
|
|
36
|
+
outline-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.select-content-module_select_content_T-MXlW[data-ending-style], .select-content-module_select_content_T-MXlW[data-starting-style] {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
transform: scale(.975);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.select-content-module_select_content_T-MXlW[data-side="top"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="top"][data-starting-style] {
|
|
45
|
+
transform: scale(.975) translateY(4px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.select-content-module_select_content_T-MXlW[data-side="bottom"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="bottom"][data-starting-style] {
|
|
49
|
+
transform: scale(.975) translateY(-4px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.select-content-module_select_content_T-MXlW[data-side="left"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="left"][data-starting-style], .select-content-module_select_content_T-MXlW[data-side="inline-start"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="inline-start"][data-starting-style] {
|
|
53
|
+
transform: scale(.975) translateX(4px);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.select-content-module_select_content_T-MXlW[data-side="right"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="right"][data-starting-style], .select-content-module_select_content_T-MXlW[data-side="inline-end"][data-ending-style], .select-content-module_select_content_T-MXlW[data-side="inline-end"][data-starting-style] {
|
|
57
|
+
transform: scale(.975) translateX(-4px);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select-content.d.ts
|
|
4
|
+
interface SelectContentProps extends Omit<Select.Popup.Props, "className">, Pick<Select.Positioner.Props, "align" | "alignItemWithTrigger" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
container?: Select.Portal.Props["container"];
|
|
7
|
+
}
|
|
8
|
+
declare function SelectContent(props: SelectContentProps): JSX.Element;
|
|
9
|
+
declare const selectContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SelectContent, SelectContentProps, selectContentVariants };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import select_content_module_default from "./select-content.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-content.tsx
|
|
6
|
+
function SelectContent(props) {
|
|
7
|
+
const { align = "start", alignItemWithTrigger = false, alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, positionMethod = void 0, side = "bottom", sideOffset = 8, sticky = void 0, ...rest } = props;
|
|
8
|
+
const combinedClassName = selectContentVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Select.Portal, {
|
|
10
|
+
container,
|
|
11
|
+
"data-slot": "select-portal",
|
|
12
|
+
children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
13
|
+
align,
|
|
14
|
+
alignItemWithTrigger,
|
|
15
|
+
alignOffset,
|
|
16
|
+
anchor,
|
|
17
|
+
arrowPadding,
|
|
18
|
+
className: select_content_module_default.select_content_positioner,
|
|
19
|
+
collisionAvoidance,
|
|
20
|
+
collisionBoundary,
|
|
21
|
+
collisionPadding,
|
|
22
|
+
"data-slot": "select-positioner",
|
|
23
|
+
disableAnchorTracking,
|
|
24
|
+
positionMethod,
|
|
25
|
+
side,
|
|
26
|
+
sideOffset,
|
|
27
|
+
sticky,
|
|
28
|
+
children: /* @__PURE__ */ jsx(Select.Popup, {
|
|
29
|
+
className: combinedClassName,
|
|
30
|
+
"data-slot": "select-content",
|
|
31
|
+
...rest,
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const selectContentVariants = cva(select_content_module_default.select_content);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { SelectContent, selectContentVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './select-content.css';
|
|
2
|
+
//#region src/components/select/select-content.module.css
|
|
3
|
+
var select_content_module_default = {
|
|
4
|
+
"select_content": "select-content-module_select_content_T-MXlW",
|
|
5
|
+
"select_content_positioner": "select-content-module_select_content_positioner_T-MXlW"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { select_content_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select-group-label.d.ts
|
|
4
|
+
interface SelectGroupLabelProps extends Omit<Select.GroupLabel.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function SelectGroupLabel(props: SelectGroupLabelProps): JSX.Element;
|
|
8
|
+
declare const selectGroupLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SelectGroupLabel, SelectGroupLabelProps, selectGroupLabelVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import select_group_label_module_default from "./select-group-label.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-group-label.tsx
|
|
6
|
+
function SelectGroupLabel(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = selectGroupLabelVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Select.GroupLabel, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "select-group-label",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const selectGroupLabelVariants = cva(select_group_label_module_default.select_group_label);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SelectGroupLabel, selectGroupLabelVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './select-group-label.css';
|
|
2
|
+
//#region src/components/select/select-group-label.module.css
|
|
3
|
+
var select_group_label_module_default = { "select_group_label": "select-group-label-module_select_group_label_SHogxq" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { select_group_label_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select-group.d.ts
|
|
4
|
+
interface SelectGroupProps extends Omit<Select.Group.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function SelectGroup(props: SelectGroupProps): JSX.Element;
|
|
8
|
+
declare const selectGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SelectGroup, SelectGroupProps, selectGroupVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import select_group_module_default from "./select-group.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-group.tsx
|
|
6
|
+
function SelectGroup(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = selectGroupVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Select.Group, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "select-group",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const selectGroupVariants = cva(select_group_module_default.select_group);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SelectGroup, selectGroupVariants };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.select-item-module_select_item_YQBXPq {
|
|
3
|
+
color: var(--color-text-primary);
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
user-select: none;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
outline: none;
|
|
8
|
+
grid-template-columns: 16px 1fr;
|
|
9
|
+
align-items: safe center;
|
|
10
|
+
column-gap: 8px;
|
|
11
|
+
min-height: 36px;
|
|
12
|
+
padding: 0 8px;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
font-weight: 450;
|
|
15
|
+
line-height: 1.5;
|
|
16
|
+
display: grid;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.select-item-module_select_item_YQBXPq[data-highlighted] {
|
|
21
|
+
background-color: var(--color-gray-3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.select-item-module_select_item_YQBXPq[data-disabled] {
|
|
25
|
+
cursor: not-allowed;
|
|
26
|
+
opacity: .5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.select-item-module_select_item__indicator_YQBXPq {
|
|
30
|
+
color: var(--color-primary-9);
|
|
31
|
+
grid-column-start: 1;
|
|
32
|
+
justify-content: safe center;
|
|
33
|
+
align-items: safe center;
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.select-item-module_select_item__label_YQBXPq {
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
grid-column-start: 2;
|
|
41
|
+
align-items: center;
|
|
42
|
+
column-gap: 8px;
|
|
43
|
+
min-width: 0;
|
|
44
|
+
display: flex;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select-item.d.ts
|
|
4
|
+
interface SelectItemProps extends Omit<Select.Item.Props, "className" | "disabled"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
isDisabled?: Select.Item.Props["disabled"];
|
|
7
|
+
}
|
|
8
|
+
declare function SelectItem(props: SelectItemProps): JSX.Element;
|
|
9
|
+
declare const selectItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SelectItem, SelectItemProps, selectItemVariants };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import select_item_module_default from "./select-item.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-item.tsx
|
|
6
|
+
function SelectItem(props) {
|
|
7
|
+
const { children, className: customClassName = "", isDisabled = false, ...rest } = props;
|
|
8
|
+
const combinedClassName = selectItemVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsxs(Select.Item, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "select-item",
|
|
12
|
+
disabled: isDisabled,
|
|
13
|
+
...rest,
|
|
14
|
+
children: [/* @__PURE__ */ jsx(Select.ItemIndicator, {
|
|
15
|
+
className: select_item_module_default.select_item__indicator,
|
|
16
|
+
"data-slot": "select-item-indicator",
|
|
17
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
18
|
+
height: "14px",
|
|
19
|
+
viewBox: "0 0 18 18",
|
|
20
|
+
width: "14px",
|
|
21
|
+
x: "0px",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
y: "0px",
|
|
24
|
+
children: /* @__PURE__ */ jsx("polyline", {
|
|
25
|
+
fill: "none",
|
|
26
|
+
points: "2.75 9.25 6.75 14.25 15.25 3.75",
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
strokeLinecap: "round",
|
|
29
|
+
strokeLinejoin: "round",
|
|
30
|
+
strokeWidth: "1.5"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
}), /* @__PURE__ */ jsx(Select.ItemText, {
|
|
34
|
+
className: select_item_module_default.select_item__label,
|
|
35
|
+
"data-slot": "select-item-text",
|
|
36
|
+
children
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const selectItemVariants = cva(select_item_module_default.select_item);
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SelectItem, selectItemVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './select-item.css';
|
|
2
|
+
//#region src/components/select/select-item.module.css
|
|
3
|
+
var select_item_module_default = {
|
|
4
|
+
"select_item": "select-item-module_select_item_YQBXPq",
|
|
5
|
+
"select_item__indicator": "select-item-module_select_item__indicator_YQBXPq",
|
|
6
|
+
"select_item__label": "select-item-module_select_item__label_YQBXPq"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { select_item_module_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select-separator.d.ts
|
|
4
|
+
interface SelectSeparatorProps extends Omit<Select.Separator.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function SelectSeparator(props: SelectSeparatorProps): JSX.Element;
|
|
8
|
+
declare const selectSeparatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SelectSeparator, SelectSeparatorProps, selectSeparatorVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import select_separator_module_default from "./select-separator.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-separator.tsx
|
|
6
|
+
function SelectSeparator(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = selectSeparatorVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Select.Separator, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "select-separator",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const selectSeparatorVariants = cva(select_separator_module_default.select_separator);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SelectSeparator, selectSeparatorVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './select-separator.css';
|
|
2
|
+
//#region src/components/select/select-separator.module.css
|
|
3
|
+
var select_separator_module_default = { "select_separator": "select-separator-module_select_separator_6poQtG" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { select_separator_module_default as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.select-trigger-module_select_trigger_eqPLgq {
|
|
3
|
+
background-color: var(--color-bg-shell-inner);
|
|
4
|
+
box-shadow: 0 0 0 1px var(--color-border) inset;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
outline-offset: 2px;
|
|
7
|
+
outline: 2px solid #0000;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
align-items: center;
|
|
10
|
+
column-gap: 8px;
|
|
11
|
+
width: stretch;
|
|
12
|
+
padding: 0 16px;
|
|
13
|
+
transition-property: background-color;
|
|
14
|
+
transition-duration: .15s;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.select-trigger-module_select_trigger_eqPLgq:disabled {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
opacity: .5;
|
|
22
|
+
background-color: var(--color-gray-3);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.select-trigger-module_select_trigger_eqPLgq:focus-visible {
|
|
26
|
+
outline-color: var(--color-primary);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.select-trigger-module_select_trigger_eqPLgq:hover:not(:disabled), .select-trigger-module_select_trigger_eqPLgq[data-popup-open] {
|
|
30
|
+
background-color: var(--color-gray-3);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.select-trigger-module_size_32_eqPLgq {
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
height: 32px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.select-trigger-module_size_36_eqPLgq {
|
|
39
|
+
border-radius: 9px;
|
|
40
|
+
height: 36px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.select-trigger-module_size_40_eqPLgq {
|
|
44
|
+
border-radius: 10px;
|
|
45
|
+
height: 40px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.select-trigger-module_size_44_eqPLgq {
|
|
49
|
+
border-radius: 11px;
|
|
50
|
+
height: 44px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.select-trigger-module_size_48_eqPLgq {
|
|
54
|
+
border-radius: 12px;
|
|
55
|
+
height: 48px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.select-trigger-module_rounded_full_eqPLgq {
|
|
59
|
+
border-radius: 9999px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.select-trigger-module_select_trigger__value_eqPLgq {
|
|
63
|
+
color: var(--color-text-primary);
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
align-items: center;
|
|
67
|
+
column-gap: 8px;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
font-weight: 450;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
overflow-x: hidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.select-trigger-module_select_trigger__value_eqPLgq[data-placeholder] {
|
|
75
|
+
color: var(--color-gray-9);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.select-trigger-module_select_trigger__icon_eqPLgq {
|
|
79
|
+
margin-left: auto;
|
|
80
|
+
transition-property: rotate;
|
|
81
|
+
transition-duration: .15s;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.select-trigger-module_select_trigger_eqPLgq[data-popup-open] .select-trigger-module_select_trigger__icon_eqPLgq {
|
|
85
|
+
rotate: 180deg;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { Select } from "@base-ui/react";
|
|
3
|
+
import { JSX } from "react";
|
|
4
|
+
//#region src/components/select/select-trigger.d.ts
|
|
5
|
+
interface SelectTriggerProps extends Omit<Select.Trigger.Props, "children"> {
|
|
6
|
+
children?: Select.Value.Props["children"];
|
|
7
|
+
isRounded?: VariantProps<typeof selectTriggerVariants>["isRounded"];
|
|
8
|
+
placeholder?: Select.Value.Props["placeholder"];
|
|
9
|
+
size?: VariantProps<typeof selectTriggerVariants>["size"];
|
|
10
|
+
}
|
|
11
|
+
declare function SelectTrigger(props: SelectTriggerProps): JSX.Element;
|
|
12
|
+
declare const selectTriggerVariants: (props?: ({
|
|
13
|
+
isRounded?: boolean | null | undefined;
|
|
14
|
+
size?: 32 | 36 | 40 | 44 | 48 | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SelectTrigger, SelectTriggerProps, selectTriggerVariants };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import select_trigger_module_default from "./select-trigger.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react";
|
|
5
|
+
//#region src/components/select/select-trigger.tsx
|
|
6
|
+
function SelectTrigger(props) {
|
|
7
|
+
const { children = void 0, className: customClassName = "", isRounded = false, placeholder = "", size = 40, ...rest } = props;
|
|
8
|
+
const combinedClassName = selectTriggerVariants({
|
|
9
|
+
className: customClassName,
|
|
10
|
+
isRounded,
|
|
11
|
+
size
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ jsxs(Select.Trigger, {
|
|
14
|
+
className: combinedClassName,
|
|
15
|
+
"data-slot": "select-trigger",
|
|
16
|
+
...rest,
|
|
17
|
+
children: [/* @__PURE__ */ jsx(Select.Value, {
|
|
18
|
+
className: select_trigger_module_default.select_trigger__value,
|
|
19
|
+
"data-slot": "select-value",
|
|
20
|
+
placeholder,
|
|
21
|
+
children
|
|
22
|
+
}), /* @__PURE__ */ jsx(Select.Icon, {
|
|
23
|
+
className: select_trigger_module_default.select_trigger__icon,
|
|
24
|
+
"data-slot": "select-icon",
|
|
25
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
26
|
+
height: "14",
|
|
27
|
+
viewBox: "0 0 18 18",
|
|
28
|
+
width: "14",
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
children: /* @__PURE__ */ jsx("polyline", {
|
|
31
|
+
fill: "none",
|
|
32
|
+
points: "15.25 6.5 9 12.75 2.75 6.5",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeLinecap: "round",
|
|
35
|
+
strokeLinejoin: "round",
|
|
36
|
+
strokeWidth: "1.5"
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const selectTriggerVariants = cva(select_trigger_module_default.select_trigger, { variants: {
|
|
43
|
+
isRounded: { true: select_trigger_module_default.rounded_full },
|
|
44
|
+
size: {
|
|
45
|
+
32: select_trigger_module_default.size_32,
|
|
46
|
+
36: select_trigger_module_default.size_36,
|
|
47
|
+
40: select_trigger_module_default.size_40,
|
|
48
|
+
44: select_trigger_module_default.size_44,
|
|
49
|
+
48: select_trigger_module_default.size_48
|
|
50
|
+
}
|
|
51
|
+
} });
|
|
52
|
+
//#endregion
|
|
53
|
+
export { SelectTrigger, selectTriggerVariants };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './select-trigger.css';
|
|
2
|
+
//#region src/components/select/select-trigger.module.css
|
|
3
|
+
var select_trigger_module_default = {
|
|
4
|
+
"rounded_full": "select-trigger-module_rounded_full_eqPLgq",
|
|
5
|
+
"select_trigger": "select-trigger-module_select_trigger_eqPLgq",
|
|
6
|
+
"select_trigger__icon": "select-trigger-module_select_trigger__icon_eqPLgq",
|
|
7
|
+
"select_trigger__value": "select-trigger-module_select_trigger__value_eqPLgq",
|
|
8
|
+
"size_32": "select-trigger-module_size_32_eqPLgq",
|
|
9
|
+
"size_36": "select-trigger-module_size_36_eqPLgq",
|
|
10
|
+
"size_40": "select-trigger-module_size_40_eqPLgq",
|
|
11
|
+
"size_44": "select-trigger-module_size_44_eqPLgq",
|
|
12
|
+
"size_48": "select-trigger-module_size_48_eqPLgq"
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { select_trigger_module_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Select } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/select/select.d.ts
|
|
4
|
+
interface SelectProps extends Select.Root.Props<string, boolean> {}
|
|
5
|
+
declare function Select$1(props: SelectProps): JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Select$1 as Select, SelectProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Select } from "@base-ui/react";
|
|
3
|
+
//#region src/components/select/select.tsx
|
|
4
|
+
function Select$1(props) {
|
|
5
|
+
const { ...rest } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(Select.Root, {
|
|
7
|
+
"data-slot": "select",
|
|
8
|
+
...rest
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Select$1 as Select };
|
|
@@ -6,6 +6,7 @@ function Spacer(props) {
|
|
|
6
6
|
const { className: customClassName = "", height, style: customStyle, width, ...rest } = props;
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
8
8
|
className: spacerVariants({ className: customClassName }),
|
|
9
|
+
"data-slot": "spacer",
|
|
9
10
|
style: {
|
|
10
11
|
...customStyle,
|
|
11
12
|
...width === void 0 ? {} : { width },
|
|
@@ -5,7 +5,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { Tabs } from "@base-ui/react";
|
|
6
6
|
//#region src/components/tabs-pill/tabs-pill-list.tsx
|
|
7
7
|
function TabsPillList(props) {
|
|
8
|
-
const { className: customClassName = "", children =
|
|
8
|
+
const { className: customClassName = "", children = void 0, ...rest } = props;
|
|
9
9
|
const combinedClassName = tabsPillListVariants({ className: customClassName });
|
|
10
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
11
|
className: combinedClassName,
|
|
@@ -5,7 +5,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { Tabs } from "@base-ui/react";
|
|
6
6
|
//#region src/components/tabs-segmented/tabs-segmented-list.tsx
|
|
7
7
|
function TabsSegmentedList(props) {
|
|
8
|
-
const { className: customClassName = "", children =
|
|
8
|
+
const { className: customClassName = "", children = void 0, ...rest } = props;
|
|
9
9
|
const combinedClassName = tabsSegmentedListVariants({ className: customClassName });
|
|
10
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
11
|
className: combinedClassName,
|
|
@@ -5,7 +5,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { Tabs } from "@base-ui/react";
|
|
6
6
|
//#region src/components/tabs-underline/tabs-underline-list.tsx
|
|
7
7
|
function TabsUnderlineList(props) {
|
|
8
|
-
const { className: customClassName = "", children =
|
|
8
|
+
const { className: customClassName = "", children = void 0, ...rest } = props;
|
|
9
9
|
const combinedClassName = tabsUnderlineListVariants({ className: customClassName });
|
|
10
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
11
|
className: combinedClassName,
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { Tooltip } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tooltip/tooltip-popup.tsx
|
|
6
6
|
function TooltipPopup(props) {
|
|
7
|
-
const { children =
|
|
7
|
+
const { children = void 0, className: customClassName = "", side = "top", sideOffset = 4, ...rest } = props;
|
|
8
8
|
const combinedClassName = tooltipPopupVariants({ className: customClassName });
|
|
9
9
|
return /* @__PURE__ */ jsx(Tooltip.Portal, {
|
|
10
10
|
className: tooltip_popup_module_default.tooltip_popup_portal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattstack/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "A collection of reusable React components built with Base UI, TypeScript, and CSS Modules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base-ui",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"class-variance-authority": "0.7.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@tsdown/css": "0.22.
|
|
55
|
+
"@tsdown/css": "0.22.14",
|
|
56
56
|
"@types/bun": "1.3.14",
|
|
57
|
-
"tsdown": "0.22.
|
|
57
|
+
"tsdown": "0.22.14",
|
|
58
58
|
"typescript": "6.0.3"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@types/react": "^18 || ^19",
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-dom": "^
|
|
62
|
+
"react": "^19.2.8",
|
|
63
|
+
"react-dom": "^19.2.8"
|
|
64
64
|
}
|
|
65
65
|
}
|