@nattstack/ui 0.1.0 → 0.1.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/dist/components/button/button-spinner.js +4 -4
- package/dist/components/button/button-spinner.stylex.js +1 -1
- package/dist/components/button/button.d.ts +2 -13
- package/dist/components/button/button.js +10 -32
- package/dist/components/button/button.stylex.js +78 -77
- package/dist/components/button-link/button-link.d.ts +1 -1
- package/dist/components/button-link/button-link.js +8 -12
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.d.ts +1 -2
- package/dist/components/checkbox/checkbox.js +8 -7
- package/dist/components/checkbox/checkbox.stylex.js +1 -1
- package/dist/components/cn.js +9 -7
- package/dist/components/column/column.d.ts +1 -2
- package/dist/components/column/column.js +4 -5
- package/dist/components/combobox/combobox-content.js +8 -7
- package/dist/components/combobox/combobox-empty.d.ts +1 -2
- package/dist/components/combobox/combobox-empty.js +6 -5
- package/dist/components/combobox/combobox-group-label.js +5 -4
- package/dist/components/combobox/combobox-group.js +5 -4
- package/dist/components/combobox/combobox-input.d.ts +1 -2
- package/dist/components/combobox/combobox-input.js +13 -12
- package/dist/components/combobox/combobox-input.stylex.js +37 -27
- package/dist/components/combobox/combobox-item.js +9 -8
- package/dist/components/combobox/combobox-list.js +5 -4
- package/dist/components/combobox/combobox-search.d.ts +1 -2
- package/dist/components/combobox/combobox-search.js +10 -9
- package/dist/components/combobox/combobox-separator.js +5 -4
- package/dist/components/combobox/combobox-trigger.js +8 -7
- package/dist/components/combobox/combobox-value.d.ts +1 -2
- package/dist/components/combobox/combobox-value.js +6 -5
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +5 -4
- package/dist/components/dialog-responsive/dialog-responsive-bar.js +5 -4
- package/dist/components/dialog-responsive/dialog-responsive-popup.d.ts +1 -2
- package/dist/components/dialog-responsive/dialog-responsive-popup.js +6 -5
- package/dist/components/dialog-responsive/dialog-responsive-portal.js +5 -4
- package/dist/components/dialog-responsive/dialog-responsive-trigger.js +1 -1
- package/dist/components/dialog-responsive/dialog-responsive-viewport.js +5 -4
- package/dist/components/dialog-responsive/dialog-responsive.js +3 -2
- package/dist/components/icon-button/icon-button.d.ts +1 -2
- package/dist/components/icon-button/icon-button.js +9 -20
- package/dist/components/icon-button/icon-button.stylex.js +17 -6
- package/dist/components/index.d.ts +4 -41
- package/dist/components/index.js +2 -39
- package/dist/components/input/input.d.ts +1 -2
- package/dist/components/input/input.js +7 -6
- package/dist/components/input/input.stylex.js +49 -36
- package/dist/components/label/label.d.ts +1 -2
- package/dist/components/label/label.js +4 -5
- package/dist/components/menu/menu-checkbox-item.js +9 -8
- package/dist/components/menu/menu-content.d.ts +1 -2
- package/dist/components/menu/menu-content.js +11 -10
- package/dist/components/menu/menu-group-label.js +5 -4
- package/dist/components/menu/menu-group.js +5 -4
- package/dist/components/menu/menu-item.d.ts +1 -2
- package/dist/components/menu/menu-item.js +6 -5
- package/dist/components/menu/menu-link-item.js +5 -4
- package/dist/components/menu/menu-radio-group.js +5 -4
- package/dist/components/menu/menu-radio-item.js +9 -8
- package/dist/components/menu/menu-separator.js +5 -4
- package/dist/components/menu/menu-submenu-trigger.d.ts +1 -2
- package/dist/components/menu/menu-submenu-trigger.js +8 -7
- package/dist/components/menu/menu-submenu.js +1 -1
- package/dist/components/menu/menu-trigger.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/otp-field/otp-field-input.d.ts +1 -2
- package/dist/components/otp-field/otp-field-input.js +6 -5
- package/dist/components/otp-field/otp-field.d.ts +1 -2
- package/dist/components/otp-field/otp-field.js +6 -5
- package/dist/components/otp-field/otp-field.stylex.js +1 -1
- package/dist/components/picker/picker-trigger.stylex.js +37 -27
- package/dist/components/row/row.d.ts +1 -2
- package/dist/components/row/row.js +4 -5
- package/dist/components/select/select-content.d.ts +1 -2
- package/dist/components/select/select-content.js +11 -10
- package/dist/components/select/select-group-label.js +5 -4
- package/dist/components/select/select-group.d.ts +1 -2
- package/dist/components/select/select-group.js +6 -5
- package/dist/components/select/select-item.d.ts +1 -2
- package/dist/components/select/select-item.js +10 -9
- package/dist/components/select/select-separator.d.ts +1 -2
- package/dist/components/select/select-separator.js +6 -5
- package/dist/components/select/select-trigger.d.ts +1 -2
- package/dist/components/select/select-trigger.js +9 -8
- package/dist/components/select/select-value.d.ts +1 -2
- package/dist/components/select/select-value.js +6 -5
- package/dist/components/select/select.js +1 -1
- package/dist/components/spacer/spacer.d.ts +1 -2
- package/dist/components/spacer/spacer.js +4 -5
- package/dist/components/stylex.css +4 -4
- package/dist/components/switch/switch.d.ts +1 -2
- package/dist/components/switch/switch.js +8 -7
- package/dist/components/switch/switch.stylex.js +17 -13
- package/dist/components/tabs/tabs-panel.d.ts +1 -2
- package/dist/components/tabs/tabs-panel.js +4 -5
- package/dist/components/tabs/tabs.d.ts +1 -2
- package/dist/components/tabs/tabs.js +4 -5
- package/dist/components/tabs-pill/tabs-pill-indicator.js +5 -4
- package/dist/components/tabs-pill/tabs-pill-list.d.ts +1 -2
- package/dist/components/tabs-pill/tabs-pill-list.js +6 -5
- package/dist/components/tabs-pill/tabs-pill-tab.d.ts +1 -2
- package/dist/components/tabs-pill/tabs-pill-tab.js +8 -7
- package/dist/components/tabs-segmented/tabs-segmented-indicator.js +5 -4
- package/dist/components/tabs-segmented/tabs-segmented-list.d.ts +1 -2
- package/dist/components/tabs-segmented/tabs-segmented-list.js +6 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.d.ts +1 -2
- package/dist/components/tabs-segmented/tabs-segmented-tab.js +6 -5
- package/dist/components/tabs-underline/tabs-underline-indicator.js +5 -4
- package/dist/components/tabs-underline/tabs-underline-list.d.ts +1 -2
- package/dist/components/tabs-underline/tabs-underline-list.js +6 -5
- package/dist/components/tabs-underline/tabs-underline-tab.d.ts +1 -2
- package/dist/components/tabs-underline/tabs-underline-tab.js +6 -5
- package/dist/components/textarea/textarea.d.ts +1 -2
- package/dist/components/textarea/textarea.js +7 -6
- package/dist/components/toggle-group/toggle-group-item.d.ts +1 -2
- package/dist/components/toggle-group/toggle-group-item.js +6 -5
- package/dist/components/toggle-group/toggle-group.d.ts +1 -2
- package/dist/components/toggle-group/toggle-group.js +6 -5
- package/dist/components/tooltip/tooltip-popup.d.ts +1 -2
- package/dist/components/tooltip/tooltip-popup.js +8 -7
- package/dist/components/tooltip/tooltip-provider.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip.js +3 -2
- package/package.json +3 -2
- package/dist/components/button/button.stylex.d.ts +0 -121
- package/dist/components/checkbox/checkbox.stylex.d.ts +0 -40
- package/dist/components/cn.d.ts +0 -6
- package/dist/components/column/column.stylex.d.ts +0 -10
- package/dist/components/combobox/combobox-empty.stylex.d.ts +0 -13
- package/dist/components/combobox/combobox-input.stylex.d.ts +0 -93
- package/dist/components/combobox/combobox-search.stylex.d.ts +0 -45
- package/dist/components/combobox/combobox-value.stylex.d.ts +0 -14
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.d.ts +0 -32
- package/dist/components/icon-button/icon-button.stylex.d.ts +0 -21
- package/dist/components/input/input.stylex.d.ts +0 -66
- package/dist/components/label/label.stylex.d.ts +0 -12
- package/dist/components/menu/menu-content.stylex.d.ts +0 -11
- package/dist/components/menu/menu-item.stylex.d.ts +0 -11
- package/dist/components/menu/menu-submenu-trigger.stylex.d.ts +0 -19
- package/dist/components/otp-field/otp-field-input.stylex.d.ts +0 -25
- package/dist/components/otp-field/otp-field.stylex.d.ts +0 -16
- package/dist/components/picker/picker-group.stylex.d.ts +0 -18
- package/dist/components/picker/picker-item.stylex.d.ts +0 -39
- package/dist/components/picker/picker-popup.stylex.d.ts +0 -36
- package/dist/components/picker/picker-separator.stylex.d.ts +0 -13
- package/dist/components/picker/picker-trigger.stylex.d.ts +0 -60
- package/dist/components/row/row.stylex.d.ts +0 -10
- package/dist/components/select/select-value.stylex.d.ts +0 -14
- package/dist/components/spacer/spacer.stylex.d.ts +0 -9
- package/dist/components/switch/switch.stylex.d.ts +0 -41
- package/dist/components/tabs/tabs-panel.stylex.d.ts +0 -14
- package/dist/components/tabs/tabs.stylex.d.ts +0 -10
- package/dist/components/tabs-pill/tabs-pill-list.stylex.d.ts +0 -13
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.d.ts +0 -44
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.d.ts +0 -17
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.d.ts +0 -28
- package/dist/components/tabs-underline/tabs-underline-list.stylex.d.ts +0 -14
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.d.ts +0 -27
- package/dist/components/textarea/textarea.stylex.d.ts +0 -13
- package/dist/components/toggle-group/toggle-group-item.stylex.d.ts +0 -33
- package/dist/components/toggle-group/toggle-group.stylex.d.ts +0 -11
- package/dist/components/tooltip/tooltip-popup.stylex.d.ts +0 -30
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-radio-item.tsx
|
|
6
6
|
function MenuRadioItem(props) {
|
|
7
|
-
const { children, className
|
|
7
|
+
const { children, className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerItemStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsxs(Menu.RadioItem, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "menu-radio-item",
|
|
11
12
|
...rest,
|
|
12
13
|
children: [/* @__PURE__ */ jsx("span", {
|
|
13
|
-
className:
|
|
14
|
-
"data-
|
|
14
|
+
className: cn(pickerItemStyles.label),
|
|
15
|
+
"data-component": "menu-radio-item-text",
|
|
15
16
|
children
|
|
16
17
|
}), /* @__PURE__ */ jsx(Menu.RadioItemIndicator, {
|
|
17
|
-
className:
|
|
18
|
-
"data-
|
|
18
|
+
className: cn(pickerItemStyles.indicator),
|
|
19
|
+
"data-component": "menu-radio-item-indicator",
|
|
19
20
|
children: /* @__PURE__ */ jsx("svg", {
|
|
20
21
|
height: "14px",
|
|
21
22
|
viewBox: "0 0 18 18",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerSeparatorStyles } from "../picker/picker-separator.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-separator.tsx
|
|
6
6
|
function MenuSeparator(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerSeparatorStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Menu.Separator, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "menu-separator",
|
|
11
12
|
...rest
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { menuSubmenuTriggerStyles } from "./menu-submenu-trigger.stylex.js";
|
|
2
1
|
import { Menu } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/menu/menu-submenu-trigger.d.ts
|
|
@@ -7,4 +6,4 @@ interface MenuSubmenuTriggerProps extends Omit<Menu.SubmenuTrigger.Props, "class
|
|
|
7
6
|
}
|
|
8
7
|
declare function MenuSubmenuTrigger(props: MenuSubmenuTriggerProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { MenuSubmenuTrigger, MenuSubmenuTriggerProps
|
|
9
|
+
export { MenuSubmenuTrigger, MenuSubmenuTriggerProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
3
|
import { menuItemStyles } from "./menu-item.stylex.js";
|
|
4
4
|
import { menuSubmenuTriggerStyles } from "./menu-submenu-trigger.stylex.js";
|
|
@@ -6,14 +6,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { Menu } from "@base-ui/react";
|
|
7
7
|
//#region src/components/menu/menu-submenu-trigger.tsx
|
|
8
8
|
function MenuSubmenuTrigger(props) {
|
|
9
|
-
const { children, className
|
|
9
|
+
const { children, className = "", ...rest } = props;
|
|
10
|
+
const combinedClassName = cn(pickerItemStyles.base, menuItemStyles.base, menuSubmenuTriggerStyles.base, className);
|
|
10
11
|
return /* @__PURE__ */ jsxs(Menu.SubmenuTrigger, {
|
|
11
|
-
className:
|
|
12
|
-
"data-
|
|
12
|
+
className: combinedClassName,
|
|
13
|
+
"data-component": "menu-submenu-trigger",
|
|
13
14
|
...rest,
|
|
14
15
|
children: [children, /* @__PURE__ */ jsx("span", {
|
|
15
|
-
className:
|
|
16
|
-
"data-
|
|
16
|
+
className: cn(menuSubmenuTriggerStyles.icon),
|
|
17
|
+
"data-component": "menu-submenu-trigger-icon",
|
|
17
18
|
children: /* @__PURE__ */ jsx("svg", {
|
|
18
19
|
height: "14px",
|
|
19
20
|
viewBox: "0 0 18 18",
|
|
@@ -34,4 +35,4 @@ function MenuSubmenuTrigger(props) {
|
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
//#endregion
|
|
37
|
-
export { MenuSubmenuTrigger
|
|
38
|
+
export { MenuSubmenuTrigger };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { otpFieldInputStyles } from "./otp-field-input.stylex.js";
|
|
2
1
|
import { OTPField } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/otp-field/otp-field-input.d.ts
|
|
5
4
|
interface OTPFieldInputProps extends OTPField.Input.Props {}
|
|
6
5
|
declare function OTPFieldInput(props: OTPFieldInputProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { OTPFieldInput,
|
|
7
|
+
export { OTPFieldInput, OTPFieldInputProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { otpFieldStyles } from "./otp-field.stylex.js";
|
|
3
3
|
import { otpFieldInputStyles } from "./otp-field-input.stylex.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { OTPField } from "@base-ui/react";
|
|
6
6
|
//#region src/components/otp-field/otp-field-input.tsx
|
|
7
7
|
function OTPFieldInput(props) {
|
|
8
|
-
const { className
|
|
8
|
+
const { className = "", ...rest } = props;
|
|
9
|
+
const combinedClassName = cn(otpFieldInputStyles.base, otpFieldStyles.masked_input, className);
|
|
9
10
|
return /* @__PURE__ */ jsx(OTPField.Input, {
|
|
10
|
-
className:
|
|
11
|
-
"data-
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-component": "otp-field-input",
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { OTPFieldInput
|
|
17
|
+
export { OTPFieldInput };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { otpFieldStyles } from "./otp-field.stylex.js";
|
|
2
1
|
import { OTPField } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/otp-field/otp-field.d.ts
|
|
@@ -7,4 +6,4 @@ interface OTPFieldProps extends Omit<OTPField.Root.Props, "mask"> {
|
|
|
7
6
|
}
|
|
8
7
|
declare function OTPField$1(props: OTPFieldProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { OTPField$1 as OTPField,
|
|
9
|
+
export { OTPField$1 as OTPField, OTPFieldProps };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { otpFieldStyles } from "./otp-field.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { OTPField } from "@base-ui/react";
|
|
5
5
|
//#region src/components/otp-field/otp-field.tsx
|
|
6
6
|
function OTPField$1(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", masked = false, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(otpFieldStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(OTPField.Root, {
|
|
9
|
-
className:
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "otp-field",
|
|
10
12
|
"data-is-masked": masked,
|
|
11
|
-
"data-slot": "otp-field",
|
|
12
13
|
mask: masked,
|
|
13
14
|
...rest
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
|
-
export { OTPField$1 as OTPField
|
|
18
|
+
export { OTPField$1 as OTPField };
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
//#region src/components/picker/picker-trigger.stylex.ts
|
|
2
2
|
const pickerTriggerStyles = {
|
|
3
|
-
"32": {
|
|
4
|
-
kaIpWk: "xur7f20",
|
|
5
|
-
kZKoxP: "x10w6t97",
|
|
6
|
-
$$css: true
|
|
7
|
-
},
|
|
8
|
-
"36": {
|
|
9
|
-
kaIpWk: "xhpnuu7",
|
|
10
|
-
kZKoxP: "xc9qbxq",
|
|
11
|
-
$$css: true
|
|
12
|
-
},
|
|
13
|
-
"40": {
|
|
14
|
-
kaIpWk: "x1q4ynmn",
|
|
15
|
-
kZKoxP: "x1vqgdyp",
|
|
16
|
-
$$css: true
|
|
17
|
-
},
|
|
18
|
-
"44": {
|
|
19
|
-
kaIpWk: "x1ctf4ec",
|
|
20
|
-
kZKoxP: "xn3w4p2",
|
|
21
|
-
$$css: true
|
|
22
|
-
},
|
|
23
|
-
"48": {
|
|
24
|
-
kaIpWk: "x4pepcl",
|
|
25
|
-
kZKoxP: "xsdox4t",
|
|
26
|
-
$$css: true
|
|
27
|
-
},
|
|
28
3
|
base: {
|
|
29
4
|
kGNEyG: "x6s0dn4",
|
|
30
5
|
kWkggS: "xfi2sx2 xm4hijy x1h73wb5",
|
|
@@ -58,10 +33,45 @@ const pickerTriggerStyles = {
|
|
|
58
33
|
kzqmXN: "x1kky2od",
|
|
59
34
|
$$css: true
|
|
60
35
|
},
|
|
61
|
-
|
|
36
|
+
rounded_full: {
|
|
62
37
|
kaIpWk: "x10hpsqq",
|
|
63
38
|
$$css: true
|
|
39
|
+
},
|
|
40
|
+
size_32: {
|
|
41
|
+
kaIpWk: "xur7f20",
|
|
42
|
+
kZKoxP: "x10w6t97",
|
|
43
|
+
$$css: true
|
|
44
|
+
},
|
|
45
|
+
size_36: {
|
|
46
|
+
kaIpWk: "xhpnuu7",
|
|
47
|
+
kZKoxP: "xc9qbxq",
|
|
48
|
+
$$css: true
|
|
49
|
+
},
|
|
50
|
+
size_40: {
|
|
51
|
+
kaIpWk: "x1q4ynmn",
|
|
52
|
+
kZKoxP: "x1vqgdyp",
|
|
53
|
+
$$css: true
|
|
54
|
+
},
|
|
55
|
+
size_44: {
|
|
56
|
+
kaIpWk: "x1ctf4ec",
|
|
57
|
+
kZKoxP: "xn3w4p2",
|
|
58
|
+
$$css: true
|
|
59
|
+
},
|
|
60
|
+
size_48: {
|
|
61
|
+
kaIpWk: "x4pepcl",
|
|
62
|
+
kZKoxP: "xsdox4t",
|
|
63
|
+
$$css: true
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const pickerTriggerStylesBy = {
|
|
67
|
+
rounded: { full: pickerTriggerStyles.rounded_full },
|
|
68
|
+
size: {
|
|
69
|
+
32: pickerTriggerStyles.size_32,
|
|
70
|
+
36: pickerTriggerStyles.size_36,
|
|
71
|
+
40: pickerTriggerStyles.size_40,
|
|
72
|
+
44: pickerTriggerStyles.size_44,
|
|
73
|
+
48: pickerTriggerStyles.size_48
|
|
64
74
|
}
|
|
65
75
|
};
|
|
66
76
|
//#endregion
|
|
67
|
-
export { pickerTriggerStyles };
|
|
77
|
+
export { pickerTriggerStyles, pickerTriggerStylesBy };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { rowStyles } from "./row.stylex.js";
|
|
2
1
|
import { CSSProperties, ComponentProps, ElementType, JSX } from "react";
|
|
3
2
|
//#region src/components/row/row.d.ts
|
|
4
3
|
type RowProps<ComponentType extends ElementType = "div"> = ComponentProps<ComponentType> & RowInternalProps;
|
|
@@ -13,4 +12,4 @@ interface RowInternalProps {
|
|
|
13
12
|
}
|
|
14
13
|
declare function Row(props: RowProps): JSX.Element;
|
|
15
14
|
//#endregion
|
|
16
|
-
export { Row, RowProps
|
|
15
|
+
export { Row, RowProps };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { cn } from "../cn.js";
|
|
2
2
|
import { rowStyles } from "./row.stylex.js";
|
|
3
|
-
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { createElement } from "react";
|
|
5
4
|
//#region src/components/row/row.tsx
|
|
6
5
|
function Row(props) {
|
|
7
6
|
const { alignItems = void 0, as = "div", className = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
|
|
8
|
-
const
|
|
7
|
+
const combinedClassName = cn(rowStyles.base, className);
|
|
9
8
|
const combinedStyle = {
|
|
10
9
|
...customStyle,
|
|
11
10
|
...gap === void 0 ? {} : { gap },
|
|
@@ -16,11 +15,11 @@ function Row(props) {
|
|
|
16
15
|
...justifyContent === void 0 ? {} : { justifyContent }
|
|
17
16
|
};
|
|
18
17
|
return createElement(as, {
|
|
19
|
-
className:
|
|
20
|
-
"data-
|
|
18
|
+
className: combinedClassName,
|
|
19
|
+
"data-component": "row",
|
|
21
20
|
style: combinedStyle,
|
|
22
21
|
...rest
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
24
|
//#endregion
|
|
26
|
-
export { Row
|
|
25
|
+
export { Row };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { pickerPopupStyles } from "../picker/picker-popup.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-content.d.ts
|
|
@@ -8,4 +7,4 @@ interface SelectContentProps extends Omit<Select.Popup.Props, "className">, Pick
|
|
|
8
7
|
}
|
|
9
8
|
declare function SelectContent(props: SelectContentProps): JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
|
-
export { SelectContent, SelectContentProps
|
|
10
|
+
export { SelectContent, SelectContentProps };
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerPopupStyles } from "../picker/picker-popup.stylex.js";
|
|
3
3
|
import { pickerListStyles } from "../picker/picker-list.stylex.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Select } from "@base-ui/react";
|
|
6
6
|
//#region src/components/select/select-content.tsx
|
|
7
7
|
function SelectContent(props) {
|
|
8
|
-
const { align = "start", alignItemWithTrigger = false, alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className
|
|
8
|
+
const { align = "start", alignItemWithTrigger = false, alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, positionMethod = void 0, side = "bottom", sideOffset = 6, sticky = void 0, ...rest } = props;
|
|
9
|
+
const combinedClassName = cn(pickerPopupStyles.base, className);
|
|
9
10
|
return /* @__PURE__ */ jsx(Select.Portal, {
|
|
10
11
|
container,
|
|
11
|
-
"data-
|
|
12
|
+
"data-component": "select-portal",
|
|
12
13
|
children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
13
14
|
align,
|
|
14
15
|
alignItemWithTrigger,
|
|
15
16
|
alignOffset,
|
|
16
17
|
anchor,
|
|
17
18
|
arrowPadding,
|
|
18
|
-
className:
|
|
19
|
+
className: cn(pickerPopupStyles.positioner),
|
|
19
20
|
collisionAvoidance,
|
|
20
21
|
collisionBoundary,
|
|
21
22
|
collisionPadding,
|
|
22
|
-
"data-
|
|
23
|
+
"data-component": "select-positioner",
|
|
23
24
|
disableAnchorTracking,
|
|
24
25
|
positionMethod,
|
|
25
26
|
side,
|
|
26
27
|
sideOffset,
|
|
27
28
|
sticky,
|
|
28
29
|
children: /* @__PURE__ */ jsx(Select.Popup, {
|
|
29
|
-
className:
|
|
30
|
-
"data-
|
|
30
|
+
className: combinedClassName,
|
|
31
|
+
"data-component": "select-content",
|
|
31
32
|
...rest,
|
|
32
33
|
children: /* @__PURE__ */ jsx(Select.List, {
|
|
33
|
-
className:
|
|
34
|
-
"data-
|
|
34
|
+
className: cn(pickerListStyles.base),
|
|
35
|
+
"data-component": "select-list",
|
|
35
36
|
children
|
|
36
37
|
})
|
|
37
38
|
})
|
|
@@ -39,4 +40,4 @@ function SelectContent(props) {
|
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
//#endregion
|
|
42
|
-
export { SelectContent
|
|
43
|
+
export { SelectContent };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-group-label.tsx
|
|
6
6
|
function SelectGroupLabel(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerGroupStyles.label, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Select.GroupLabel, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "select-group-label",
|
|
11
12
|
...rest
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-group.d.ts
|
|
@@ -7,4 +6,4 @@ interface SelectGroupProps extends Omit<Select.Group.Props, "className"> {
|
|
|
7
6
|
}
|
|
8
7
|
declare function SelectGroup(props: SelectGroupProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { SelectGroup, SelectGroupProps
|
|
9
|
+
export { SelectGroup, SelectGroupProps };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-group.tsx
|
|
6
6
|
function SelectGroup(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerGroupStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Select.Group, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "select-group",
|
|
11
12
|
...rest
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
15
|
-
export { SelectGroup
|
|
16
|
+
export { SelectGroup };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-item.d.ts
|
|
@@ -7,4 +6,4 @@ interface SelectItemProps extends Omit<Select.Item.Props, "className"> {
|
|
|
7
6
|
}
|
|
8
7
|
declare function SelectItem(props: SelectItemProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { SelectItem, SelectItemProps
|
|
9
|
+
export { SelectItem, SelectItemProps };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-item.tsx
|
|
6
6
|
function SelectItem(props) {
|
|
7
|
-
const { children, className
|
|
7
|
+
const { children, className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerItemStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsxs(Select.Item, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "select-item",
|
|
11
12
|
...rest,
|
|
12
13
|
children: [/* @__PURE__ */ jsx(Select.ItemText, {
|
|
13
|
-
className:
|
|
14
|
-
"data-
|
|
14
|
+
className: cn(pickerItemStyles.label),
|
|
15
|
+
"data-component": "select-item-text",
|
|
15
16
|
children
|
|
16
17
|
}), /* @__PURE__ */ jsx(Select.ItemIndicator, {
|
|
17
|
-
className:
|
|
18
|
-
"data-
|
|
18
|
+
className: cn(pickerItemStyles.indicator),
|
|
19
|
+
"data-component": "select-item-indicator",
|
|
19
20
|
children: /* @__PURE__ */ jsx("svg", {
|
|
20
21
|
height: "14px",
|
|
21
22
|
viewBox: "0 0 18 18",
|
|
@@ -36,4 +37,4 @@ function SelectItem(props) {
|
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
|
-
export { SelectItem
|
|
40
|
+
export { SelectItem };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { pickerSeparatorStyles } from "../picker/picker-separator.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-separator.d.ts
|
|
@@ -7,4 +6,4 @@ interface SelectSeparatorProps extends Omit<Select.Separator.Props, "className">
|
|
|
7
6
|
}
|
|
8
7
|
declare function SelectSeparator(props: SelectSeparatorProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { SelectSeparator, SelectSeparatorProps
|
|
9
|
+
export { SelectSeparator, SelectSeparatorProps };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { pickerSeparatorStyles } from "../picker/picker-separator.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-separator.tsx
|
|
6
6
|
function SelectSeparator(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerSeparatorStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Select.Separator, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "select-separator",
|
|
11
12
|
...rest
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
15
|
-
export { SelectSeparator
|
|
16
|
+
export { SelectSeparator };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { pickerTriggerStyles } from "../picker/picker-trigger.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-trigger.d.ts
|
|
@@ -9,4 +8,4 @@ interface SelectTriggerProps extends Select.Trigger.Props {
|
|
|
9
8
|
type SelectTriggerSize = 32 | 36 | 40 | 44 | 48;
|
|
10
9
|
declare function SelectTrigger(props: SelectTriggerProps): JSX.Element;
|
|
11
10
|
//#endregion
|
|
12
|
-
export { SelectTrigger, SelectTriggerProps, SelectTriggerSize
|
|
11
|
+
export { SelectTrigger, SelectTriggerProps, SelectTriggerSize };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { cn
|
|
2
|
-
import { pickerTriggerStyles } from "../picker/picker-trigger.stylex.js";
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
|
+
import { pickerTriggerStyles, pickerTriggerStylesBy } from "../picker/picker-trigger.stylex.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-trigger.tsx
|
|
6
6
|
function SelectTrigger(props) {
|
|
7
|
-
const { children = void 0, className
|
|
7
|
+
const { children = void 0, className = "", rounded = false, size = 40, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(pickerTriggerStyles.base, pickerTriggerStylesBy.size[size], rounded && pickerTriggerStylesBy.rounded.full, className);
|
|
8
9
|
return /* @__PURE__ */ jsxs(Select.Trigger, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "select-trigger",
|
|
11
12
|
...rest,
|
|
12
13
|
children: [children, /* @__PURE__ */ jsx(Select.Icon, {
|
|
13
|
-
className:
|
|
14
|
-
"data-
|
|
14
|
+
className: cn(pickerTriggerStyles.icon),
|
|
15
|
+
"data-component": "select-icon",
|
|
15
16
|
children: /* @__PURE__ */ jsx("svg", {
|
|
16
17
|
height: "14",
|
|
17
18
|
viewBox: "0 0 18 18",
|
|
@@ -30,4 +31,4 @@ function SelectTrigger(props) {
|
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
//#endregion
|
|
33
|
-
export { SelectTrigger
|
|
34
|
+
export { SelectTrigger };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { selectValueStyles } from "./select-value.stylex.js";
|
|
2
1
|
import { Select } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/select/select-value.d.ts
|
|
5
4
|
interface SelectValueProps extends Select.Value.Props {}
|
|
6
5
|
declare function SelectValue(props: SelectValueProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { SelectValue, SelectValueProps
|
|
7
|
+
export { SelectValue, SelectValueProps };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { selectValueStyles } from "./select-value.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Select } from "@base-ui/react";
|
|
5
5
|
//#region src/components/select/select-value.tsx
|
|
6
6
|
function SelectValue(props) {
|
|
7
|
-
const { children = void 0, className
|
|
7
|
+
const { children = void 0, className = "", placeholder = void 0, render = /* @__PURE__ */ jsx("div", {}), ...rest } = props;
|
|
8
8
|
const resolvedChildren = typeof children === "function" ? (selectedValue) => (selectedValue ?? void 0) === void 0 ? placeholder : children(selectedValue) : children;
|
|
9
|
+
const combinedClassName = cn(selectValueStyles.base, className);
|
|
9
10
|
return /* @__PURE__ */ jsx(Select.Value, {
|
|
10
|
-
className:
|
|
11
|
-
"data-
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-component": "select-value",
|
|
12
13
|
placeholder,
|
|
13
14
|
render,
|
|
14
15
|
...rest,
|
|
@@ -16,4 +17,4 @@ function SelectValue(props) {
|
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
//#endregion
|
|
19
|
-
export { SelectValue
|
|
20
|
+
export { SelectValue };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { spacerStyles } from "./spacer.stylex.js";
|
|
2
1
|
import { CSSProperties, ComponentProps, JSX } from "react";
|
|
3
2
|
//#region src/components/spacer/spacer.d.ts
|
|
4
3
|
interface SpacerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
@@ -7,4 +6,4 @@ interface SpacerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
|
7
6
|
}
|
|
8
7
|
declare function Spacer(props: SpacerProps): JSX.Element;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { Spacer, SpacerProps
|
|
9
|
+
export { Spacer, SpacerProps };
|