@nattstack/ui 0.0.107 → 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/README.md +1 -1
- package/dist/baseline/index.css +5 -1
- package/dist/components/button/button-spinner.js +19 -4
- package/dist/components/button/button-spinner.stylex.js +96 -0
- package/dist/components/button/button.d.ts +10 -18
- package/dist/components/button/button.js +11 -43
- package/dist/components/button/button.stylex.js +159 -0
- package/dist/components/button-link/button-link.d.ts +6 -7
- package/dist/components/button-link/button-link.js +8 -12
- package/dist/components/checkbox/checkbox-icon.js +5 -4
- package/dist/components/checkbox/checkbox.d.ts +1 -2
- package/dist/components/checkbox/checkbox.js +8 -9
- package/dist/components/checkbox/checkbox.stylex.js +43 -0
- package/dist/components/cn.js +20 -0
- package/dist/components/column/column.d.ts +1 -2
- package/dist/components/column/column.js +7 -9
- package/dist/components/column/column.stylex.js +8 -0
- package/dist/components/combobox/combobox-content.d.ts +1 -2
- package/dist/components/combobox/combobox-content.js +9 -10
- package/dist/components/combobox/combobox-empty.d.ts +1 -2
- package/dist/components/combobox/combobox-empty.js +6 -7
- package/dist/components/combobox/combobox-empty.stylex.js +11 -0
- package/dist/components/combobox/combobox-group-label.d.ts +1 -2
- package/dist/components/combobox/combobox-group-label.js +6 -7
- package/dist/components/combobox/combobox-group.d.ts +1 -2
- package/dist/components/combobox/combobox-group.js +6 -7
- package/dist/components/combobox/combobox-input.d.ts +5 -10
- package/dist/components/combobox/combobox-input.js +14 -28
- package/dist/components/combobox/combobox-input.stylex.js +110 -0
- package/dist/components/combobox/combobox-item.d.ts +2 -4
- package/dist/components/combobox/combobox-item.js +10 -12
- package/dist/components/combobox/combobox-list.d.ts +1 -2
- package/dist/components/combobox/combobox-list.js +6 -7
- package/dist/components/combobox/combobox-search.d.ts +2 -4
- package/dist/components/combobox/combobox-search.js +10 -12
- package/dist/components/combobox/combobox-search.stylex.js +45 -0
- package/dist/components/combobox/combobox-separator.d.ts +1 -2
- package/dist/components/combobox/combobox-separator.js +6 -7
- package/dist/components/combobox/combobox-trigger.d.ts +4 -8
- package/dist/components/combobox/combobox-trigger.js +8 -22
- package/dist/components/combobox/combobox-value.d.ts +1 -2
- package/dist/components/combobox/combobox-value.js +6 -7
- package/dist/components/combobox/combobox-value.stylex.js +12 -0
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +6 -7
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.stylex.js +14 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.js +6 -7
- package/dist/components/dialog-responsive/dialog-responsive-bar.stylex.js +13 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.d.ts +1 -2
- package/dist/components/dialog-responsive/dialog-responsive-popup.js +6 -7
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.js +30 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.js +6 -7
- package/dist/components/dialog-responsive/dialog-responsive-portal.stylex.js +9 -0
- package/dist/components/dialog-responsive/dialog-responsive-trigger.js +1 -1
- package/dist/components/dialog-responsive/dialog-responsive-viewport.js +6 -7
- package/dist/components/dialog-responsive/dialog-responsive-viewport.stylex.js +13 -0
- package/dist/components/dialog-responsive/dialog-responsive.d.ts +1 -4
- package/dist/components/dialog-responsive/dialog-responsive.js +2 -4
- package/dist/components/icon-button/icon-button.d.ts +2 -5
- package/dist/components/icon-button/icon-button.js +10 -26
- package/dist/components/icon-button/icon-button.stylex.js +36 -0
- package/dist/components/index.d.ts +53 -53
- package/dist/components/index.js +54 -53
- package/dist/components/input/input.d.ts +7 -16
- package/dist/components/input/input.js +10 -37
- package/dist/components/input/input.stylex.js +84 -0
- package/dist/components/label/label.d.ts +1 -2
- package/dist/components/label/label.js +6 -7
- package/dist/components/label/label.stylex.js +10 -0
- package/dist/components/menu/menu-checkbox-item.d.ts +2 -6
- package/dist/components/menu/menu-checkbox-item.js +10 -14
- package/dist/components/menu/menu-content.d.ts +1 -2
- package/dist/components/menu/menu-content.js +13 -14
- package/dist/components/menu/menu-content.stylex.js +9 -0
- package/dist/components/menu/menu-group-label.d.ts +1 -2
- package/dist/components/menu/menu-group-label.js +6 -7
- package/dist/components/menu/menu-group.d.ts +1 -2
- package/dist/components/menu/menu-group.js +6 -7
- package/dist/components/menu/menu-item.d.ts +2 -4
- package/dist/components/menu/menu-item.js +7 -9
- package/dist/components/menu/menu-item.stylex.js +9 -0
- package/dist/components/menu/menu-link-item.d.ts +1 -2
- package/dist/components/menu/menu-link-item.js +7 -8
- package/dist/components/menu/menu-radio-group.d.ts +2 -4
- package/dist/components/menu/menu-radio-group.js +6 -8
- package/dist/components/menu/menu-radio-item.d.ts +2 -4
- package/dist/components/menu/menu-radio-item.js +10 -12
- package/dist/components/menu/menu-separator.d.ts +1 -2
- package/dist/components/menu/menu-separator.js +6 -7
- package/dist/components/menu/menu-submenu-trigger.d.ts +2 -4
- package/dist/components/menu/menu-submenu-trigger.js +10 -16
- package/dist/components/menu/menu-submenu-trigger.stylex.js +20 -0
- 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 +7 -7
- package/dist/components/otp-field/otp-field-input.stylex.js +23 -0
- package/dist/components/otp-field/otp-field.d.ts +3 -7
- package/dist/components/otp-field/otp-field.js +8 -18
- package/dist/components/otp-field/otp-field.stylex.js +17 -0
- package/dist/components/picker/picker-group.stylex.js +19 -0
- package/dist/components/picker/picker-item.stylex.js +41 -0
- package/dist/components/picker/picker-list.stylex.js +13 -0
- package/dist/components/picker/picker-popup.stylex.js +37 -0
- package/dist/components/picker/picker-separator.stylex.js +11 -0
- package/dist/components/picker/picker-trigger.stylex.js +77 -0
- package/dist/components/row/row.d.ts +1 -2
- package/dist/components/row/row.js +7 -9
- package/dist/components/row/row.stylex.js +8 -0
- package/dist/components/select/select-content.d.ts +1 -2
- package/dist/components/select/select-content.js +12 -13
- package/dist/components/select/select-group-label.d.ts +1 -2
- package/dist/components/select/select-group-label.js +6 -7
- package/dist/components/select/select-group.d.ts +1 -2
- package/dist/components/select/select-group.js +6 -7
- package/dist/components/select/select-item.d.ts +2 -4
- package/dist/components/select/select-item.js +10 -12
- package/dist/components/select/select-separator.d.ts +1 -2
- package/dist/components/select/select-separator.js +6 -7
- package/dist/components/select/select-trigger.d.ts +4 -8
- package/dist/components/select/select-trigger.js +8 -22
- package/dist/components/select/select-value.d.ts +1 -2
- package/dist/components/select/select-value.js +6 -7
- package/dist/components/select/select-value.stylex.js +12 -0
- package/dist/components/select/select.js +1 -1
- package/dist/components/spacer/spacer.d.ts +1 -2
- package/dist/components/spacer/spacer.js +6 -7
- package/dist/components/spacer/spacer.stylex.js +7 -0
- package/dist/components/stylex.css +1420 -0
- package/dist/components/switch/switch.d.ts +3 -12
- package/dist/components/switch/switch.js +7 -22
- package/dist/components/switch/switch.stylex.js +48 -0
- package/dist/components/tabs/tabs-panel.d.ts +1 -2
- package/dist/components/tabs/tabs-panel.js +6 -7
- package/dist/components/tabs/tabs-panel.stylex.js +12 -0
- package/dist/components/tabs/tabs.d.ts +1 -2
- package/dist/components/tabs/tabs.js +6 -7
- package/dist/components/tabs/tabs.stylex.js +8 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.js +6 -7
- package/dist/components/tabs-pill/tabs-pill-indicator.stylex.js +16 -0
- package/dist/components/tabs-pill/tabs-pill-list.d.ts +1 -2
- package/dist/components/tabs-pill/tabs-pill-list.js +6 -7
- package/dist/components/tabs-pill/tabs-pill-list.stylex.js +11 -0
- package/dist/components/tabs-pill/tabs-pill-tab.d.ts +2 -5
- package/dist/components/tabs-pill/tabs-pill-tab.js +9 -10
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.js +46 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.js +6 -7
- package/dist/components/tabs-segmented/tabs-segmented-indicator.stylex.js +16 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.d.ts +1 -2
- package/dist/components/tabs-segmented/tabs-segmented-list.js +6 -7
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.js +15 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.d.ts +2 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.js +7 -8
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.js +26 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.js +6 -7
- package/dist/components/tabs-underline/tabs-underline-indicator.stylex.js +14 -0
- package/dist/components/tabs-underline/tabs-underline-list.d.ts +1 -2
- package/dist/components/tabs-underline/tabs-underline-list.js +6 -7
- package/dist/components/tabs-underline/tabs-underline-list.stylex.js +12 -0
- package/dist/components/tabs-underline/tabs-underline-tab.d.ts +2 -5
- package/dist/components/tabs-underline/tabs-underline-tab.js +7 -8
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.js +25 -0
- package/dist/components/textarea/textarea.d.ts +6 -12
- package/dist/components/textarea/textarea.js +11 -24
- package/dist/components/textarea/textarea.stylex.js +11 -0
- package/dist/components/toggle-group/toggle-group-item.d.ts +2 -6
- package/dist/components/toggle-group/toggle-group-item.js +7 -9
- package/dist/components/toggle-group/toggle-group-item.stylex.js +34 -0
- package/dist/components/toggle-group/toggle-group.d.ts +2 -7
- package/dist/components/toggle-group/toggle-group.js +7 -10
- package/dist/components/toggle-group/toggle-group.stylex.js +9 -0
- package/dist/components/tooltip/tooltip-popup.d.ts +1 -2
- package/dist/components/tooltip/tooltip-popup.js +8 -8
- package/dist/components/tooltip/tooltip-popup.stylex.js +32 -0
- package/dist/components/tooltip/tooltip-provider.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -4
- package/dist/components/tooltip/tooltip.js +3 -4
- package/dist/tailwind-colors/root.css +10 -0
- package/package.json +6 -4
- package/dist/components/button/button-spinner.css +0 -97
- package/dist/components/button/button-spinner.module.js +0 -8
- package/dist/components/button/button.css +0 -157
- package/dist/components/button/button.module.js +0 -21
- package/dist/components/checkbox/checkbox.css +0 -55
- package/dist/components/checkbox/checkbox.module.js +0 -9
- package/dist/components/column/column.css +0 -6
- package/dist/components/column/column.module.js +0 -5
- package/dist/components/combobox/combobox-empty.css +0 -9
- package/dist/components/combobox/combobox-empty.module.js +0 -5
- package/dist/components/combobox/combobox-input.css +0 -121
- package/dist/components/combobox/combobox-input.module.js +0 -16
- package/dist/components/combobox/combobox-search.css +0 -44
- package/dist/components/combobox/combobox-search.module.js +0 -9
- package/dist/components/combobox/combobox-value.css +0 -14
- package/dist/components/combobox/combobox-value.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.css +0 -28
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-bar.css +0 -16
- package/dist/components/dialog-responsive/dialog-responsive-bar.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-popup.css +0 -56
- package/dist/components/dialog-responsive/dialog-responsive-popup.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-portal.css +0 -7
- package/dist/components/dialog-responsive/dialog-responsive-portal.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-viewport.css +0 -18
- package/dist/components/dialog-responsive/dialog-responsive-viewport.module.js +0 -5
- package/dist/components/icon-button/icon-button.css +0 -21
- package/dist/components/icon-button/icon-button.module.js +0 -11
- package/dist/components/input/input.css +0 -83
- package/dist/components/input/input.module.js +0 -14
- package/dist/components/label/label.css +0 -8
- package/dist/components/label/label.module.js +0 -5
- package/dist/components/menu/menu-content.css +0 -7
- package/dist/components/menu/menu-content.module.js +0 -5
- package/dist/components/menu/menu-item.css +0 -7
- package/dist/components/menu/menu-item.module.js +0 -5
- package/dist/components/menu/menu-submenu-trigger.css +0 -16
- package/dist/components/menu/menu-submenu-trigger.module.js +0 -8
- package/dist/components/otp-field/otp-field-input.css +0 -32
- package/dist/components/otp-field/otp-field-input.module.js +0 -5
- package/dist/components/otp-field/otp-field.css +0 -13
- package/dist/components/otp-field/otp-field.module.js +0 -8
- package/dist/components/picker/picker-group.css +0 -14
- package/dist/components/picker/picker-group.module.js +0 -8
- package/dist/components/picker/picker-item.css +0 -43
- package/dist/components/picker/picker-item.module.js +0 -9
- package/dist/components/picker/picker-list.css +0 -15
- package/dist/components/picker/picker-list.module.js +0 -5
- package/dist/components/picker/picker-popup.css +0 -56
- package/dist/components/picker/picker-popup.module.js +0 -8
- package/dist/components/picker/picker-separator.css +0 -8
- package/dist/components/picker/picker-separator.module.js +0 -5
- package/dist/components/picker/picker-trigger.css +0 -85
- package/dist/components/picker/picker-trigger.module.js +0 -14
- package/dist/components/row/row.css +0 -6
- package/dist/components/row/row.module.js +0 -5
- package/dist/components/select/select-value.css +0 -14
- package/dist/components/select/select-value.module.js +0 -5
- package/dist/components/spacer/spacer.css +0 -5
- package/dist/components/spacer/spacer.module.js +0 -5
- package/dist/components/switch/switch.css +0 -55
- package/dist/components/switch/switch.module.js +0 -10
- package/dist/components/tabs/tabs-panel.css +0 -14
- package/dist/components/tabs/tabs-panel.module.js +0 -5
- package/dist/components/tabs/tabs.css +0 -6
- package/dist/components/tabs/tabs.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-indicator.css +0 -14
- package/dist/components/tabs-pill/tabs-pill-indicator.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-list.css +0 -9
- package/dist/components/tabs-pill/tabs-pill-list.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-tab.css +0 -66
- package/dist/components/tabs-pill/tabs-pill-tab.module.js +0 -9
- package/dist/components/tabs-segmented/tabs-segmented-indicator.css +0 -14
- package/dist/components/tabs-segmented/tabs-segmented-indicator.module.js +0 -5
- package/dist/components/tabs-segmented/tabs-segmented-list.css +0 -13
- package/dist/components/tabs-segmented/tabs-segmented-list.module.js +0 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.css +0 -37
- package/dist/components/tabs-segmented/tabs-segmented-tab.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-indicator.css +0 -12
- package/dist/components/tabs-underline/tabs-underline-indicator.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-list.css +0 -10
- package/dist/components/tabs-underline/tabs-underline-list.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-tab.css +0 -36
- package/dist/components/tabs-underline/tabs-underline-tab.module.js +0 -5
- package/dist/components/textarea/textarea.css +0 -9
- package/dist/components/textarea/textarea.module.js +0 -5
- package/dist/components/toggle-group/toggle-group-item.css +0 -47
- package/dist/components/toggle-group/toggle-group-item.module.js +0 -5
- package/dist/components/toggle-group/toggle-group.css +0 -7
- package/dist/components/toggle-group/toggle-group.module.js +0 -5
- package/dist/components/tooltip/tooltip-popup.css +0 -32
- package/dist/components/tooltip/tooltip-popup.module.js +0 -8
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/tabs-underline/tabs-underline-list.stylex.ts
|
|
2
|
+
const tabsUnderlineListStyles = { base: {
|
|
3
|
+
kL6WhQ: "x1s77fqg",
|
|
4
|
+
kfdmCh: "x1q0q8m5",
|
|
5
|
+
kt9PQ7: "xso031l",
|
|
6
|
+
k1xSpc: "x78zum5",
|
|
7
|
+
kXHlph: "xw2csxc",
|
|
8
|
+
kVAEAm: "x1n2onr6",
|
|
9
|
+
$$css: true
|
|
10
|
+
} };
|
|
11
|
+
//#endregion
|
|
12
|
+
export { tabsUnderlineListStyles };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Tabs } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/tabs-underline/tabs-underline-tab.d.ts
|
|
4
|
-
interface TabsUnderlineTabProps extends
|
|
5
|
-
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
-
}
|
|
4
|
+
interface TabsUnderlineTabProps extends Tabs.Tab.Props {}
|
|
7
5
|
declare function TabsUnderlineTab(props: TabsUnderlineTabProps): JSX.Element;
|
|
8
|
-
declare const tabsUnderlineTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
6
|
//#endregion
|
|
10
|
-
export { TabsUnderlineTab, TabsUnderlineTabProps
|
|
7
|
+
export { TabsUnderlineTab, TabsUnderlineTabProps };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
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
|
|
8
|
-
const combinedClassName =
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tabsUnderlineTabStyles.base, className);
|
|
9
9
|
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
10
10
|
className: combinedClassName,
|
|
11
|
-
"data-
|
|
12
|
-
nativeButton:
|
|
11
|
+
"data-component": "tabs-underline-tab",
|
|
12
|
+
nativeButton: true,
|
|
13
13
|
...rest
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
const tabsUnderlineTabVariants = cva(tabs_underline_tab_module_default.base);
|
|
17
16
|
//#endregion
|
|
18
|
-
export { TabsUnderlineTab
|
|
17
|
+
export { TabsUnderlineTab };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/components/tabs-underline/tabs-underline-tab.stylex.ts
|
|
2
|
+
const tabsUnderlineTabStyles = { base: {
|
|
3
|
+
kGNEyG: "x6s0dn4",
|
|
4
|
+
kaIpWk: "xur7f20",
|
|
5
|
+
kMwMTN: "x1srrrpr x58zf59 x1dtbpl2",
|
|
6
|
+
k1C7PZ: "xfex06f",
|
|
7
|
+
kkrTdU: "x1ypdohk",
|
|
8
|
+
k1xSpc: "x78zum5",
|
|
9
|
+
kmuXW: "x2lah0s",
|
|
10
|
+
kGuDYH: "xif65rj",
|
|
11
|
+
k63SB2: "x10p5zqr",
|
|
12
|
+
k1K539: "xzueoph",
|
|
13
|
+
kjBf7l: "x1luwoo2",
|
|
14
|
+
kInvED: "x2ssjo2",
|
|
15
|
+
k3XXqK: "xaatb59",
|
|
16
|
+
kMeerF: "x784prv x1k57tk5",
|
|
17
|
+
k8WAf4: "x1t0vds8",
|
|
18
|
+
kg3NbH: "xaope02",
|
|
19
|
+
kIyJzY: "xx6bhzk",
|
|
20
|
+
k1ekBW: "xt3l3uh",
|
|
21
|
+
khDVqt: "xuxw1ft",
|
|
22
|
+
$$css: true
|
|
23
|
+
} };
|
|
24
|
+
//#endregion
|
|
25
|
+
export { tabsUnderlineTabStyles };
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "react";
|
|
2
2
|
//#region src/components/textarea/textarea.d.ts
|
|
3
|
-
interface TextareaProps extends Omit<ComponentProps<"textarea">, "aria-pressed"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isRequired?: boolean;
|
|
9
|
-
isRounded?: boolean;
|
|
10
|
-
isValid?: boolean;
|
|
3
|
+
interface TextareaProps extends Omit<ComponentProps<"textarea">, "aria-pressed"> {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
rounded?: boolean;
|
|
7
|
+
valid?: boolean;
|
|
11
8
|
}
|
|
12
9
|
declare function Textarea(props: TextareaProps): JSX.Element;
|
|
13
|
-
declare const textareaVariants: (props?: ({
|
|
14
|
-
isRounded?: boolean | null | undefined;
|
|
15
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
10
|
//#endregion
|
|
17
|
-
export { Textarea, TextareaProps
|
|
11
|
+
export { Textarea, TextareaProps };
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
|
+
import { inputStyles, inputStylesBy } from "../input/input.stylex.js";
|
|
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
|
|
8
|
-
const combinedClassName =
|
|
9
|
-
className: customClassName,
|
|
10
|
-
isRounded
|
|
11
|
-
});
|
|
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);
|
|
12
9
|
return /* @__PURE__ */ jsx("textarea", {
|
|
13
10
|
className: combinedClassName,
|
|
14
|
-
"data-
|
|
15
|
-
"data-is-
|
|
16
|
-
"data-is-
|
|
17
|
-
"data-
|
|
18
|
-
|
|
19
|
-
readOnly: isReadOnly,
|
|
20
|
-
required: isRequired,
|
|
21
|
-
rows,
|
|
11
|
+
"data-component": "textarea",
|
|
12
|
+
"data-is-active": active,
|
|
13
|
+
"data-is-invalid": invalid,
|
|
14
|
+
"data-is-valid": valid,
|
|
15
|
+
rows: 2,
|
|
22
16
|
...rest
|
|
23
17
|
});
|
|
24
18
|
}
|
|
25
|
-
const textareaVariants = cva([input_module_default.base, textarea_module_default.base], {
|
|
26
|
-
defaultVariants: { isRounded: false },
|
|
27
|
-
variants: { isRounded: {
|
|
28
|
-
false: input_module_default.rounded_base,
|
|
29
|
-
true: input_module_default.rounded_full
|
|
30
|
-
} }
|
|
31
|
-
});
|
|
32
19
|
//#endregion
|
|
33
|
-
export { Textarea
|
|
20
|
+
export { Textarea };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Toggle } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/toggle-group/toggle-group-item.d.ts
|
|
4
|
-
interface ToggleGroupItemProps extends
|
|
5
|
-
isDisabled?: Toggle.Props["disabled"];
|
|
6
|
-
isNativeButton?: Toggle.Props["nativeButton"];
|
|
7
|
-
}
|
|
4
|
+
interface ToggleGroupItemProps extends Toggle.Props {}
|
|
8
5
|
declare function ToggleGroupItem(props: ToggleGroupItemProps): JSX.Element;
|
|
9
|
-
declare const toggleGroupItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
6
|
//#endregion
|
|
11
|
-
export { ToggleGroupItem, ToggleGroupItemProps
|
|
7
|
+
export { ToggleGroupItem, ToggleGroupItemProps };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
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
|
|
8
|
-
const combinedClassName =
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(toggleGroupItemStyles.base, className);
|
|
9
9
|
return /* @__PURE__ */ jsx(Toggle, {
|
|
10
10
|
className: combinedClassName,
|
|
11
|
-
"data-
|
|
12
|
-
|
|
13
|
-
nativeButton: isNativeButton,
|
|
11
|
+
"data-component": "toggle-group-item",
|
|
12
|
+
nativeButton: true,
|
|
14
13
|
...rest
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
const toggleGroupItemVariants = cva(toggle_group_item_module_default.base);
|
|
18
16
|
//#endregion
|
|
19
|
-
export { ToggleGroupItem
|
|
17
|
+
export { ToggleGroupItem };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/components/toggle-group/toggle-group-item.stylex.ts
|
|
2
|
+
const toggleGroupItemStyles = {
|
|
3
|
+
base: {
|
|
4
|
+
kGNEyG: "x6s0dn4",
|
|
5
|
+
kWkggS: "x1pflddp xhsv7s5 xjbqb8w",
|
|
6
|
+
kaIpWk: "x1q4ynmn",
|
|
7
|
+
kGVxlE: "x11uh7ir x1gnnqk1",
|
|
8
|
+
kMwMTN: "xp9l56k xv1l7n4",
|
|
9
|
+
k1C7PZ: "xfex06f",
|
|
10
|
+
kkrTdU: "x1s07b3s x1ypdohk",
|
|
11
|
+
k1xSpc: "x78zum5",
|
|
12
|
+
kGuDYH: "xif65rj",
|
|
13
|
+
k63SB2: "x10p5zqr",
|
|
14
|
+
kjj79g: "xl56j7k",
|
|
15
|
+
kSiTet: "xijokvz x1hc1fzr",
|
|
16
|
+
kjBf7l: "x43yjvr",
|
|
17
|
+
kInvED: "x1hl8ikr",
|
|
18
|
+
k3XXqK: "xaatb59",
|
|
19
|
+
kMeerF: "x784prv x1k57tk5",
|
|
20
|
+
k8WAf4: "x1vvogim",
|
|
21
|
+
kg3NbH: "xaope02",
|
|
22
|
+
kIyJzY: "xx6bhzk",
|
|
23
|
+
k1ekBW: "x1koyr57",
|
|
24
|
+
kfSwDN: "x87ps6o",
|
|
25
|
+
$$css: true
|
|
26
|
+
},
|
|
27
|
+
icon: {
|
|
28
|
+
kZKoxP: "xlup9mm",
|
|
29
|
+
kzqmXN: "x1kky2od",
|
|
30
|
+
$$css: true
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { toggleGroupItemStyles };
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { ToggleGroup } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/toggle-group/toggle-group.d.ts
|
|
4
|
-
interface ToggleGroupProps extends
|
|
5
|
-
isDisabled?: ToggleGroup.Props["disabled"];
|
|
6
|
-
isLoopFocus?: ToggleGroup.Props["loopFocus"];
|
|
7
|
-
isMultiple?: ToggleGroup.Props["multiple"];
|
|
8
|
-
}
|
|
4
|
+
interface ToggleGroupProps extends ToggleGroup.Props {}
|
|
9
5
|
declare function ToggleGroup$1(props: ToggleGroupProps): JSX.Element;
|
|
10
|
-
declare const toggleGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
11
6
|
//#endregion
|
|
12
|
-
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps
|
|
7
|
+
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
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
|
|
8
|
-
const combinedClassName =
|
|
7
|
+
const { className = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(toggleGroupStyles.base, className);
|
|
9
9
|
return /* @__PURE__ */ jsx(ToggleGroup, {
|
|
10
10
|
className: combinedClassName,
|
|
11
|
-
"data-
|
|
12
|
-
|
|
13
|
-
loopFocus: isLoopFocus,
|
|
14
|
-
multiple: isMultiple,
|
|
11
|
+
"data-component": "toggle-group",
|
|
12
|
+
loopFocus: true,
|
|
15
13
|
...rest
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
const toggleGroupVariants = cva(toggle_group_module_default.base);
|
|
19
16
|
//#endregion
|
|
20
|
-
export { ToggleGroup$1 as ToggleGroup
|
|
17
|
+
export { ToggleGroup$1 as ToggleGroup };
|
|
@@ -3,6 +3,5 @@ import { JSX } from "react";
|
|
|
3
3
|
//#region src/components/tooltip/tooltip-popup.d.ts
|
|
4
4
|
interface TooltipPopupProps extends Pick<Tooltip.Positioner.Props, "side" | "sideOffset">, Tooltip.Popup.Props {}
|
|
5
5
|
declare function TooltipPopup(props: TooltipPopupProps): JSX.Element;
|
|
6
|
-
declare const tooltipPopupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
6
|
//#endregion
|
|
8
|
-
export { TooltipPopup, TooltipPopupProps
|
|
7
|
+
export { TooltipPopup, TooltipPopupProps };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
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
|
|
8
|
-
const combinedClassName =
|
|
7
|
+
const { children = void 0, className = "", side = "top", sideOffset = 4, ...rest } = props;
|
|
8
|
+
const combinedClassName = cn(tooltipPopupStyles.base, className);
|
|
9
9
|
return /* @__PURE__ */ jsx(Tooltip.Portal, {
|
|
10
|
-
className:
|
|
10
|
+
className: cn(tooltipPopupStyles.portal),
|
|
11
11
|
children: /* @__PURE__ */ jsxs(Tooltip.Positioner, {
|
|
12
|
+
className: cn(tooltipPopupStyles.positioner),
|
|
12
13
|
side,
|
|
13
14
|
sideOffset,
|
|
14
15
|
children: [/* @__PURE__ */ jsx(Tooltip.Popup, {
|
|
15
16
|
className: combinedClassName,
|
|
16
|
-
"data-
|
|
17
|
+
"data-component": "tooltip-popup",
|
|
17
18
|
...rest,
|
|
18
19
|
children
|
|
19
20
|
}), /* @__PURE__ */ jsx(Tooltip.Arrow, {})]
|
|
20
21
|
})
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
const tooltipPopupVariants = cva(tooltip_popup_module_default.base);
|
|
24
24
|
//#endregion
|
|
25
|
-
export { TooltipPopup
|
|
25
|
+
export { TooltipPopup };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/components/tooltip/tooltip-popup.stylex.ts
|
|
2
|
+
const tooltipPopupStyles = {
|
|
3
|
+
base: {
|
|
4
|
+
kWkggS: "x191mfzf",
|
|
5
|
+
kaIpWk: "xur7f20",
|
|
6
|
+
kGVxlE: "x1bbn379",
|
|
7
|
+
kMwMTN: "x1x01sck",
|
|
8
|
+
kGuDYH: "x4z9k3i",
|
|
9
|
+
k63SB2: "x10p5zqr",
|
|
10
|
+
kSiTet: "x1pimrze x1hc1fzr",
|
|
11
|
+
k8WAf4: "x12ulsxz",
|
|
12
|
+
kg3NbH: "xdqyycr",
|
|
13
|
+
km0Bbg: "xx6l7ed x1hsy5kr",
|
|
14
|
+
k3nNDw: "xctpfpq",
|
|
15
|
+
kIyJzY: "xuik8z1 xx6bhzk",
|
|
16
|
+
k1ekBW: "xfm2kp x1h615f9",
|
|
17
|
+
$$css: true
|
|
18
|
+
},
|
|
19
|
+
portal: {
|
|
20
|
+
kHBbk8: "xc8icb0",
|
|
21
|
+
kVAEAm: "x1n2onr6",
|
|
22
|
+
kY2c9j: "xa9119d",
|
|
23
|
+
$$css: true
|
|
24
|
+
},
|
|
25
|
+
positioner: {
|
|
26
|
+
kHBbk8: "xc8icb0",
|
|
27
|
+
kY2c9j: "xa9119d",
|
|
28
|
+
$$css: true
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { tooltipPopupStyles };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Tooltip } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/tooltip/tooltip.d.ts
|
|
4
|
-
interface TooltipProps extends
|
|
5
|
-
isDisabled?: Tooltip.Root.Props["disabled"];
|
|
6
|
-
isDisableHoverablePopup?: Tooltip.Root.Props["disableHoverablePopup"];
|
|
7
|
-
}
|
|
4
|
+
interface TooltipProps extends Tooltip.Root.Props {}
|
|
8
5
|
declare function Tooltip$1(props: TooltipProps): JSX.Element;
|
|
9
6
|
//#endregion
|
|
10
7
|
export { Tooltip$1 as Tooltip, TooltipProps };
|
|
@@ -2,11 +2,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Tooltip } from "@base-ui/react";
|
|
3
3
|
//#region src/components/tooltip/tooltip.tsx
|
|
4
4
|
function Tooltip$1(props) {
|
|
5
|
-
const {
|
|
5
|
+
const { ...rest } = props;
|
|
6
6
|
return /* @__PURE__ */ jsx(Tooltip.Root, {
|
|
7
|
-
"data-
|
|
8
|
-
|
|
9
|
-
disableHoverablePopup: isDisableHoverablePopup,
|
|
7
|
+
"data-component": "tooltip",
|
|
8
|
+
disableHoverablePopup: true,
|
|
10
9
|
...rest
|
|
11
10
|
});
|
|
12
11
|
}
|
|
@@ -16,9 +16,19 @@
|
|
|
16
16
|
--color-success: var(--color-primitive-green-9);
|
|
17
17
|
--color-warning: var(--color-primitive-yellow-9);
|
|
18
18
|
--color-error: var(--color-primitive-red-9);
|
|
19
|
+
|
|
20
|
+
--color-tooltip: var(--color-gray-dark-12);
|
|
21
|
+
--color-tooltip-bg: var(--color-gray-dark-1);
|
|
22
|
+
|
|
23
|
+
--opacity-dialog-backdrop: 0.25;
|
|
24
|
+
--opacity-picker-disabled: 0.5;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
.dark {
|
|
22
28
|
--color-bg-shell-outer: var(--color-gray-1);
|
|
23
29
|
--color-bg-shell-inner: var(--color-gray-2);
|
|
30
|
+
--color-tooltip: var(--color-gray-light-12);
|
|
31
|
+
--color-tooltip-bg: var(--color-gray-light-1);
|
|
32
|
+
--opacity-dialog-backdrop: 0.75;
|
|
33
|
+
--opacity-picker-disabled: 0.25;
|
|
24
34
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattstack/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A collection of reusable React components built with Base UI
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A collection of reusable React components built with Base UI and StyleX",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base-ui",
|
|
7
7
|
"components",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"type": "module",
|
|
26
26
|
"sideEffects": [
|
|
27
|
-
"**/*.css"
|
|
27
|
+
"**/*.css",
|
|
28
|
+
"./dist/components/index.js"
|
|
28
29
|
],
|
|
29
30
|
"exports": {
|
|
30
31
|
".": {
|
|
@@ -49,9 +50,10 @@
|
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@base-ui/react": "1.7.0",
|
|
52
|
-
"
|
|
53
|
+
"@stylexjs/stylex": "0.19.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
56
|
+
"@stylexjs/unplugin": "0.19.0",
|
|
55
57
|
"@tsdown/css": "0.22.14",
|
|
56
58
|
"@types/bun": "1.3.14",
|
|
57
59
|
"tsdown": "0.22.14",
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.button-spinner-module_base_UApLZa {
|
|
3
|
-
height: var(--size);
|
|
4
|
-
width: var(--size);
|
|
5
|
-
animation: 1s steps(12, end) infinite button-spinner-module_spinner_UApLZa;
|
|
6
|
-
position: absolute;
|
|
7
|
-
scale: -1 1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@keyframes button-spinner-module_spinner_UApLZa {
|
|
11
|
-
to {
|
|
12
|
-
rotate: 1turn;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.button-spinner-module_base_UApLZa > div {
|
|
17
|
-
height: calc(var(--size) / 12);
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
transform-origin: 0;
|
|
20
|
-
width: calc(var(--size) / 2);
|
|
21
|
-
transition: all .15s;
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 50%;
|
|
24
|
-
right: 0;
|
|
25
|
-
translate: 0 -50%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.button-spinner-module_base_UApLZa > div:after {
|
|
29
|
-
content: "";
|
|
30
|
-
background-color: currentColor;
|
|
31
|
-
border-radius: 9999px;
|
|
32
|
-
width: 50%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
position: absolute;
|
|
35
|
-
right: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.button-spinner-module_base_UApLZa > div:first-child {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
rotate: 0deg;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.button-spinner-module_base_UApLZa > div:nth-child(2) {
|
|
44
|
-
opacity: .925;
|
|
45
|
-
rotate: 30deg;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.button-spinner-module_base_UApLZa > div:nth-child(3) {
|
|
49
|
-
opacity: .85;
|
|
50
|
-
rotate: 60deg;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.button-spinner-module_base_UApLZa > div:nth-child(4) {
|
|
54
|
-
opacity: .775;
|
|
55
|
-
rotate: 90deg;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.button-spinner-module_base_UApLZa > div:nth-child(5) {
|
|
59
|
-
opacity: .7;
|
|
60
|
-
rotate: 120deg;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.button-spinner-module_base_UApLZa > div:nth-child(6) {
|
|
64
|
-
opacity: .625;
|
|
65
|
-
rotate: 150deg;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.button-spinner-module_base_UApLZa > div:nth-child(7) {
|
|
69
|
-
opacity: .55;
|
|
70
|
-
rotate: 180deg;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.button-spinner-module_base_UApLZa > div:nth-child(8) {
|
|
74
|
-
opacity: .475;
|
|
75
|
-
rotate: 210deg;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.button-spinner-module_base_UApLZa > div:nth-child(9) {
|
|
79
|
-
opacity: .4;
|
|
80
|
-
rotate: 240deg;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.button-spinner-module_base_UApLZa > div:nth-child(10) {
|
|
84
|
-
opacity: .325;
|
|
85
|
-
rotate: 270deg;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.button-spinner-module_base_UApLZa > div:nth-child(11) {
|
|
89
|
-
opacity: .25;
|
|
90
|
-
rotate: 300deg;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.button-spinner-module_base_UApLZa > div:nth-child(12) {
|
|
94
|
-
opacity: .15;
|
|
95
|
-
rotate: 330deg;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './button-spinner.css';
|
|
2
|
-
//#region src/components/button/button-spinner.module.css
|
|
3
|
-
var button_spinner_module_default = {
|
|
4
|
-
"base": "button-spinner-module_base_UApLZa",
|
|
5
|
-
"spinner": "button-spinner-module_spinner_UApLZa"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { button_spinner_module_default as default };
|