@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,22 +1,21 @@
|
|
|
1
1
|
import { cn } from "../cn.js";
|
|
2
2
|
import { spacerStyles } from "./spacer.stylex.js";
|
|
3
|
-
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
//#region src/components/spacer/spacer.tsx
|
|
6
5
|
function Spacer(props) {
|
|
7
6
|
const { className = "", height, style: customStyle, width, ...rest } = props;
|
|
8
|
-
const
|
|
7
|
+
const combinedClassName = cn(spacerStyles.base, className);
|
|
9
8
|
const combinedStyle = {
|
|
10
9
|
...customStyle,
|
|
11
10
|
...width === void 0 ? {} : { width },
|
|
12
11
|
...height === void 0 ? {} : { height }
|
|
13
12
|
};
|
|
14
13
|
return /* @__PURE__ */ jsx("div", {
|
|
15
|
-
className:
|
|
16
|
-
"data-
|
|
14
|
+
className: combinedClassName,
|
|
15
|
+
"data-component": "spacer",
|
|
17
16
|
style: combinedStyle,
|
|
18
17
|
...rest
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
//#endregion
|
|
22
|
-
export { Spacer
|
|
21
|
+
export { Spacer };
|
|
@@ -171,6 +171,10 @@
|
|
|
171
171
|
padding-block: 8px;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
.xnjsko4 {
|
|
175
|
+
padding-inline: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
174
178
|
.x1awh872 {
|
|
175
179
|
padding-inline: 10px;
|
|
176
180
|
}
|
|
@@ -666,10 +670,6 @@
|
|
|
666
670
|
text-overflow: ellipsis;
|
|
667
671
|
}
|
|
668
672
|
|
|
669
|
-
.x19pm5ym {
|
|
670
|
-
text-shadow: none;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
673
|
.x1kol6zn {
|
|
674
674
|
transform-origin: 0;
|
|
675
675
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { switchStyles } from "./switch.stylex.js";
|
|
2
1
|
import { Switch } from "@base-ui/react";
|
|
3
2
|
import { ComponentProps, JSX } from "react";
|
|
4
3
|
//#region src/components/switch/switch.d.ts
|
|
@@ -8,4 +7,4 @@ interface SwitchProps extends Omit<ComponentProps<typeof Switch.Root>, "nativeBu
|
|
|
8
7
|
type SwitchSize = 18 | 24;
|
|
9
8
|
declare function Switch$1(props: SwitchProps): JSX.Element;
|
|
10
9
|
//#endregion
|
|
11
|
-
export { Switch$1 as Switch, SwitchProps, SwitchSize
|
|
10
|
+
export { Switch$1 as Switch, SwitchProps, SwitchSize };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
2
|
-
import { switchStyles } from "./switch.stylex.js";
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
|
+
import { switchStyles, switchStylesBy } from "./switch.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Switch } from "@base-ui/react";
|
|
5
5
|
//#region src/components/switch/switch.tsx
|
|
6
6
|
function Switch$1(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", size = 24, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(switchStyles.base, switchStylesBy.size[size], className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Switch.Root, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "switch",
|
|
11
12
|
...rest,
|
|
12
|
-
children: /* @__PURE__ */ jsx(Switch.Thumb, { className:
|
|
13
|
+
children: /* @__PURE__ */ jsx(Switch.Thumb, { className: cn(switchStyles.thumb) })
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { Switch$1 as Switch
|
|
17
|
+
export { Switch$1 as Switch };
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
//#region src/components/switch/switch.stylex.ts
|
|
2
2
|
const switchStyles = {
|
|
3
|
-
"18": {
|
|
4
|
-
"--translateX": "x16tb73e",
|
|
5
|
-
kZKoxP: "xmix8c7",
|
|
6
|
-
kzqmXN: "x1849jeq",
|
|
7
|
-
$$css: true
|
|
8
|
-
},
|
|
9
|
-
"24": {
|
|
10
|
-
"--translateX": "xksez7u",
|
|
11
|
-
kZKoxP: "xxk0z11",
|
|
12
|
-
kzqmXN: "x100vrsf",
|
|
13
|
-
$$css: true
|
|
14
|
-
},
|
|
15
3
|
base: {
|
|
16
4
|
kWkggS: "x1hhl9jx xfl8pkj",
|
|
17
5
|
kaIpWk: "x10hpsqq",
|
|
@@ -29,6 +17,18 @@ const switchStyles = {
|
|
|
29
17
|
k1ekBW: "x15406qy",
|
|
30
18
|
$$css: true
|
|
31
19
|
},
|
|
20
|
+
size_18: {
|
|
21
|
+
"--translateX": "x16tb73e",
|
|
22
|
+
kZKoxP: "xmix8c7",
|
|
23
|
+
kzqmXN: "x1849jeq",
|
|
24
|
+
$$css: true
|
|
25
|
+
},
|
|
26
|
+
size_24: {
|
|
27
|
+
"--translateX": "xksez7u",
|
|
28
|
+
kZKoxP: "xxk0z11",
|
|
29
|
+
kzqmXN: "x100vrsf",
|
|
30
|
+
$$css: true
|
|
31
|
+
},
|
|
32
32
|
thumb: {
|
|
33
33
|
kOBAk4: "x1y5e3q9",
|
|
34
34
|
kWkggS: "x12peec7",
|
|
@@ -40,5 +40,9 @@ const switchStyles = {
|
|
|
40
40
|
$$css: true
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
const switchStylesBy = { size: {
|
|
44
|
+
18: switchStyles.size_18,
|
|
45
|
+
24: switchStyles.size_24
|
|
46
|
+
} };
|
|
43
47
|
//#endregion
|
|
44
|
-
export { switchStyles };
|
|
48
|
+
export { switchStyles, switchStylesBy };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsPanelStyles } from "./tabs-panel.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs/tabs-panel.d.ts
|
|
5
4
|
interface TabsPanelProps extends Tabs.Panel.Props {}
|
|
6
5
|
declare function TabsPanel(props: TabsPanelProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsPanel, TabsPanelProps
|
|
7
|
+
export { TabsPanel, TabsPanelProps };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsPanelStyles } from "./tabs-panel.stylex.js";
|
|
3
|
-
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Tabs } from "@base-ui/react";
|
|
6
5
|
//#region src/components/tabs/tabs-panel.tsx
|
|
7
6
|
function TabsPanel(props) {
|
|
8
7
|
const { className = "", ...rest } = props;
|
|
9
|
-
const
|
|
8
|
+
const combinedClassName = cn(tabsPanelStyles.base, className);
|
|
10
9
|
return /* @__PURE__ */ jsx(Tabs.Panel, {
|
|
11
|
-
className:
|
|
12
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-panel",
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
15
|
//#endregion
|
|
17
|
-
export { TabsPanel
|
|
16
|
+
export { TabsPanel };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsStyles } from "./tabs.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs/tabs.d.ts
|
|
5
4
|
interface TabsProps extends Tabs.Root.Props {}
|
|
6
5
|
declare function Tabs$1(props: TabsProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { Tabs$1 as Tabs, TabsProps
|
|
7
|
+
export { Tabs$1 as Tabs, TabsProps };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsStyles } from "./tabs.stylex.js";
|
|
3
|
-
import * as stylex from "@stylexjs/stylex";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Tabs } from "@base-ui/react";
|
|
6
5
|
//#region src/components/tabs/tabs.tsx
|
|
7
6
|
function Tabs$1(props) {
|
|
8
7
|
const { className = "", ...rest } = props;
|
|
9
|
-
const
|
|
8
|
+
const combinedClassName = cn(tabsStyles.base, className);
|
|
10
9
|
return /* @__PURE__ */ jsx(Tabs.Root, {
|
|
11
|
-
className:
|
|
12
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs",
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
15
|
//#endregion
|
|
17
|
-
export { Tabs$1 as Tabs
|
|
16
|
+
export { Tabs$1 as Tabs };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsPillIndicatorStyles } from "./tabs-pill-indicator.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-pill/tabs-pill-indicator.tsx
|
|
6
6
|
function TabsPillIndicator(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsPillIndicatorStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-pill-indicator",
|
|
11
12
|
renderBeforeHydration: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsPillListStyles } from "./tabs-pill-list.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-pill/tabs-pill-list.d.ts
|
|
5
4
|
interface TabsPillListProps extends Tabs.List.Props {}
|
|
6
5
|
declare function TabsPillList(props: TabsPillListProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsPillList, TabsPillListProps
|
|
7
|
+
export { TabsPillList, TabsPillListProps };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { TabsPillIndicator } from "./tabs-pill-indicator.js";
|
|
3
3
|
import { tabsPillListStyles } from "./tabs-pill-list.stylex.js";
|
|
4
4
|
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
|
|
8
|
+
const { className = "", children = void 0, ...rest } = props;
|
|
9
|
+
const combinedClassName = cn(tabsPillListStyles.base, className);
|
|
9
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
10
|
-
className:
|
|
11
|
-
"data-
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-component": "tabs-pill-list",
|
|
12
13
|
...rest,
|
|
13
14
|
children: [children, /* @__PURE__ */ jsx(TabsPillIndicator, {})]
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
|
-
export { TabsPillList
|
|
18
|
+
export { TabsPillList };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsPillTabStyles } from "./tabs-pill-tab.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-pill/tabs-pill-tab.d.ts
|
|
5
4
|
interface TabsPillTabProps extends Tabs.Tab.Props {}
|
|
6
5
|
declare function TabsPillTab(props: TabsPillTabProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsPillTab, TabsPillTabProps
|
|
7
|
+
export { TabsPillTab, TabsPillTabProps };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsPillTabStyles } from "./tabs-pill-tab.stylex.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-pill/tabs-pill-tab.tsx
|
|
6
6
|
function TabsPillTab(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsPillTabStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsxs("div", {
|
|
9
|
-
className:
|
|
10
|
+
className: cn(tabsPillTabStyles.wrapper),
|
|
10
11
|
children: [/* @__PURE__ */ jsx(Tabs.Tab, {
|
|
11
|
-
className:
|
|
12
|
-
"data-
|
|
12
|
+
className: combinedClassName,
|
|
13
|
+
"data-component": "tabs-pill-tab",
|
|
13
14
|
nativeButton: true,
|
|
14
15
|
...rest
|
|
15
|
-
}), /* @__PURE__ */ jsx("div", { className:
|
|
16
|
+
}), /* @__PURE__ */ jsx("div", { className: cn(tabsPillTabStyles.background) })]
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
//#endregion
|
|
19
|
-
export { TabsPillTab
|
|
20
|
+
export { TabsPillTab };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsSegmentedIndicatorStyles } from "./tabs-segmented-indicator.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-segmented/tabs-segmented-indicator.tsx
|
|
6
6
|
function TabsSegmentedIndicator(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsSegmentedIndicatorStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-segmented-indicator",
|
|
11
12
|
renderBeforeHydration: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsSegmentedListStyles } from "./tabs-segmented-list.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-segmented/tabs-segmented-list.d.ts
|
|
5
4
|
interface TabsSegmentedListProps extends Tabs.List.Props {}
|
|
6
5
|
declare function TabsSegmentedList(props: TabsSegmentedListProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsSegmentedList, TabsSegmentedListProps
|
|
7
|
+
export { TabsSegmentedList, TabsSegmentedListProps };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { TabsSegmentedIndicator } from "./tabs-segmented-indicator.js";
|
|
3
3
|
import { tabsSegmentedListStyles } from "./tabs-segmented-list.stylex.js";
|
|
4
4
|
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
|
|
8
|
+
const { className = "", children = void 0, ...rest } = props;
|
|
9
|
+
const combinedClassName = cn(tabsSegmentedListStyles.base, className);
|
|
9
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
10
|
-
className:
|
|
11
|
-
"data-
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-component": "tabs-segmented-list",
|
|
12
13
|
...rest,
|
|
13
14
|
children: [children, /* @__PURE__ */ jsx(TabsSegmentedIndicator, {})]
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
|
-
export { TabsSegmentedList
|
|
18
|
+
export { TabsSegmentedList };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsSegmentedTabStyles } from "./tabs-segmented-tab.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-segmented/tabs-segmented-tab.d.ts
|
|
5
4
|
interface TabsSegmentedTabProps extends Tabs.Tab.Props {}
|
|
6
5
|
declare function TabsSegmentedTab(props: TabsSegmentedTabProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsSegmentedTab, TabsSegmentedTabProps
|
|
7
|
+
export { TabsSegmentedTab, TabsSegmentedTabProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsSegmentedTabStyles } from "./tabs-segmented-tab.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-segmented/tabs-segmented-tab.tsx
|
|
6
6
|
function TabsSegmentedTab(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsSegmentedTabStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-segmented-tab",
|
|
11
12
|
nativeButton: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { TabsSegmentedTab
|
|
17
|
+
export { TabsSegmentedTab };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsUnderlineIndicatorStyles } from "./tabs-underline-indicator.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-underline/tabs-underline-indicator.tsx
|
|
6
6
|
function TabsUnderlineIndicator(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsUnderlineIndicatorStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-underline-indicator",
|
|
11
12
|
renderBeforeHydration: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsUnderlineListStyles } from "./tabs-underline-list.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-underline/tabs-underline-list.d.ts
|
|
5
4
|
interface TabsUnderlineListProps extends Tabs.List.Props {}
|
|
6
5
|
declare function TabsUnderlineList(props: TabsUnderlineListProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsUnderlineList, TabsUnderlineListProps
|
|
7
|
+
export { TabsUnderlineList, TabsUnderlineListProps };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { TabsUnderlineIndicator } from "./tabs-underline-indicator.js";
|
|
3
3
|
import { tabsUnderlineListStyles } from "./tabs-underline-list.stylex.js";
|
|
4
4
|
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
|
|
8
|
+
const { className = "", children = void 0, ...rest } = props;
|
|
9
|
+
const combinedClassName = cn(tabsUnderlineListStyles.base, className);
|
|
9
10
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
10
|
-
className:
|
|
11
|
-
"data-
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-component": "tabs-underline-list",
|
|
12
13
|
...rest,
|
|
13
14
|
children: [children, /* @__PURE__ */ jsx(TabsUnderlineIndicator, {})]
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
|
-
export { TabsUnderlineList
|
|
18
|
+
export { TabsUnderlineList };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tabsUnderlineTabStyles } from "./tabs-underline-tab.stylex.js";
|
|
2
1
|
import { Tabs } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tabs-underline/tabs-underline-tab.d.ts
|
|
5
4
|
interface TabsUnderlineTabProps extends Tabs.Tab.Props {}
|
|
6
5
|
declare function TabsUnderlineTab(props: TabsUnderlineTabProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TabsUnderlineTab, TabsUnderlineTabProps
|
|
7
|
+
export { TabsUnderlineTab, TabsUnderlineTabProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tabsUnderlineTabStyles } from "./tabs-underline-tab.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Tabs } from "@base-ui/react";
|
|
5
5
|
//#region src/components/tabs-underline/tabs-underline-tab.tsx
|
|
6
6
|
function TabsUnderlineTab(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsUnderlineTabStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "tabs-underline-tab",
|
|
11
12
|
nativeButton: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { TabsUnderlineTab
|
|
17
|
+
export { TabsUnderlineTab };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { textareaStyles } from "./textarea.stylex.js";
|
|
2
1
|
import { ComponentProps, JSX } from "react";
|
|
3
2
|
//#region src/components/textarea/textarea.d.ts
|
|
4
3
|
interface TextareaProps extends Omit<ComponentProps<"textarea">, "aria-pressed"> {
|
|
@@ -9,4 +8,4 @@ interface TextareaProps extends Omit<ComponentProps<"textarea">, "aria-pressed">
|
|
|
9
8
|
}
|
|
10
9
|
declare function Textarea(props: TextareaProps): JSX.Element;
|
|
11
10
|
//#endregion
|
|
12
|
-
export { Textarea, TextareaProps
|
|
11
|
+
export { Textarea, TextareaProps };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { cn
|
|
2
|
-
import { inputStyles } from "../input/input.stylex.js";
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
|
+
import { inputStyles, inputStylesBy } from "../input/input.stylex.js";
|
|
3
3
|
import { textareaStyles } from "./textarea.stylex.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/textarea/textarea.tsx
|
|
6
6
|
function Textarea(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", active = false, invalid = void 0, rounded = false, valid = void 0, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(inputStyles.base, textareaStyles.base, inputStylesBy.rounded[rounded ? "full" : "base"], className);
|
|
8
9
|
return /* @__PURE__ */ jsx("textarea", {
|
|
9
|
-
className:
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "textarea",
|
|
10
12
|
"data-is-active": active,
|
|
11
13
|
"data-is-invalid": invalid,
|
|
12
14
|
"data-is-valid": valid,
|
|
13
|
-
"data-slot": "textarea",
|
|
14
15
|
rows: 2,
|
|
15
16
|
...rest
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
//#endregion
|
|
19
|
-
export { Textarea
|
|
20
|
+
export { Textarea };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { toggleGroupItemStyles } from "./toggle-group-item.stylex.js";
|
|
2
1
|
import { Toggle } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/toggle-group/toggle-group-item.d.ts
|
|
5
4
|
interface ToggleGroupItemProps extends Toggle.Props {}
|
|
6
5
|
declare function ToggleGroupItem(props: ToggleGroupItemProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { ToggleGroupItem, ToggleGroupItemProps
|
|
7
|
+
export { ToggleGroupItem, ToggleGroupItemProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { toggleGroupItemStyles } from "./toggle-group-item.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Toggle } from "@base-ui/react";
|
|
5
5
|
//#region src/components/toggle-group/toggle-group-item.tsx
|
|
6
6
|
function ToggleGroupItem(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(toggleGroupItemStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Toggle, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "toggle-group-item",
|
|
11
12
|
nativeButton: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { ToggleGroupItem
|
|
17
|
+
export { ToggleGroupItem };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { toggleGroupStyles } from "./toggle-group.stylex.js";
|
|
2
1
|
import { ToggleGroup } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/toggle-group/toggle-group.d.ts
|
|
5
4
|
interface ToggleGroupProps extends ToggleGroup.Props {}
|
|
6
5
|
declare function ToggleGroup$1(props: ToggleGroupProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps
|
|
7
|
+
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { toggleGroupStyles } from "./toggle-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { ToggleGroup } from "@base-ui/react";
|
|
5
5
|
//#region src/components/toggle-group/toggle-group.tsx
|
|
6
6
|
function ToggleGroup$1(props) {
|
|
7
|
-
const { className
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(toggleGroupStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(ToggleGroup, {
|
|
9
|
-
className:
|
|
10
|
-
"data-
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-component": "toggle-group",
|
|
11
12
|
loopFocus: true,
|
|
12
13
|
...rest
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
//#endregion
|
|
16
|
-
export { ToggleGroup$1 as ToggleGroup
|
|
17
|
+
export { ToggleGroup$1 as ToggleGroup };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { tooltipPopupStyles } from "./tooltip-popup.stylex.js";
|
|
2
1
|
import { Tooltip } from "@base-ui/react";
|
|
3
2
|
import { JSX } from "react";
|
|
4
3
|
//#region src/components/tooltip/tooltip-popup.d.ts
|
|
5
4
|
interface TooltipPopupProps extends Pick<Tooltip.Positioner.Props, "side" | "sideOffset">, Tooltip.Popup.Props {}
|
|
6
5
|
declare function TooltipPopup(props: TooltipPopupProps): JSX.Element;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TooltipPopup, TooltipPopupProps
|
|
7
|
+
export { TooltipPopup, TooltipPopupProps };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { cn
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
2
|
import { tooltipPopupStyles } from "./tooltip-popup.stylex.js";
|
|
3
3
|
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 = void 0, className
|
|
7
|
+
const { children = void 0, className = "", side = "top", sideOffset = 4, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tooltipPopupStyles.base, className);
|
|
8
9
|
return /* @__PURE__ */ jsx(Tooltip.Portal, {
|
|
9
|
-
className:
|
|
10
|
+
className: cn(tooltipPopupStyles.portal),
|
|
10
11
|
children: /* @__PURE__ */ jsxs(Tooltip.Positioner, {
|
|
11
|
-
className:
|
|
12
|
+
className: cn(tooltipPopupStyles.positioner),
|
|
12
13
|
side,
|
|
13
14
|
sideOffset,
|
|
14
15
|
children: [/* @__PURE__ */ jsx(Tooltip.Popup, {
|
|
15
|
-
className:
|
|
16
|
-
"data-
|
|
16
|
+
className: combinedClassName,
|
|
17
|
+
"data-component": "tooltip-popup",
|
|
17
18
|
...rest,
|
|
18
19
|
children
|
|
19
20
|
}), /* @__PURE__ */ jsx(Tooltip.Arrow, {})]
|
|
@@ -21,4 +22,4 @@ function TooltipPopup(props) {
|
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
24
|
//#endregion
|
|
24
|
-
export { TooltipPopup
|
|
25
|
+
export { TooltipPopup };
|