@nattstack/ui 0.0.106 → 0.1.0
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 +9 -5
- package/dist/components/button/button-spinner.js +18 -3
- package/dist/components/button/button-spinner.stylex.js +96 -0
- package/dist/components/button/button.d.ts +20 -17
- package/dist/components/button/button.js +28 -38
- package/dist/components/button/button.stylex.d.ts +121 -0
- package/dist/components/button/button.stylex.js +158 -0
- package/dist/components/button-link/button-link.d.ts +5 -6
- package/dist/components/button-link/button-link.js +5 -5
- package/dist/components/checkbox/checkbox-icon.js +4 -3
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +6 -8
- package/dist/components/checkbox/checkbox.stylex.d.ts +40 -0
- package/dist/components/checkbox/checkbox.stylex.js +43 -0
- package/dist/components/cn.d.ts +6 -0
- package/dist/components/cn.js +18 -0
- package/dist/components/column/column.d.ts +2 -2
- package/dist/components/column/column.js +17 -15
- package/dist/components/column/column.stylex.d.ts +10 -0
- 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 +5 -7
- package/dist/components/combobox/combobox-empty.d.ts +2 -2
- package/dist/components/combobox/combobox-empty.js +4 -6
- package/dist/components/combobox/combobox-empty.stylex.d.ts +13 -0
- 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 +4 -6
- package/dist/components/combobox/combobox-group.d.ts +1 -2
- package/dist/components/combobox/combobox-group.js +4 -6
- package/dist/components/combobox/combobox-input.d.ts +6 -10
- package/dist/components/combobox/combobox-input.js +10 -25
- package/dist/components/combobox/combobox-input.stylex.d.ts +93 -0
- package/dist/components/combobox/combobox-input.stylex.js +100 -0
- package/dist/components/combobox/combobox-item.d.ts +2 -4
- package/dist/components/combobox/combobox-item.js +7 -10
- package/dist/components/combobox/combobox-list.d.ts +1 -2
- package/dist/components/combobox/combobox-list.js +4 -6
- package/dist/components/combobox/combobox-search.d.ts +3 -4
- package/dist/components/combobox/combobox-search.js +7 -9
- package/dist/components/combobox/combobox-search.stylex.d.ts +45 -0
- 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 +4 -6
- package/dist/components/combobox/combobox-trigger.d.ts +4 -8
- package/dist/components/combobox/combobox-trigger.js +6 -21
- package/dist/components/combobox/combobox-value.d.ts +2 -2
- package/dist/components/combobox/combobox-value.js +4 -6
- package/dist/components/combobox/combobox-value.stylex.d.ts +14 -0
- package/dist/components/combobox/combobox-value.stylex.js +12 -0
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.stylex.js +14 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.js +4 -5
- package/dist/components/dialog-responsive/dialog-responsive-bar.stylex.js +13 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.d.ts +2 -2
- package/dist/components/dialog-responsive/dialog-responsive-popup.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.d.ts +32 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.js +30 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-portal.stylex.js +9 -0
- package/dist/components/dialog-responsive/dialog-responsive-viewport.js +4 -6
- 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 +1 -4
- package/dist/components/icon-button/icon-button.d.ts +3 -5
- package/dist/components/icon-button/icon-button.js +17 -22
- package/dist/components/icon-button/icon-button.stylex.d.ts +21 -0
- package/dist/components/icon-button/icon-button.stylex.js +25 -0
- package/dist/components/index.d.ts +90 -53
- package/dist/components/index.js +91 -53
- package/dist/components/input/input.d.ts +8 -16
- package/dist/components/input/input.js +9 -36
- package/dist/components/input/input.stylex.d.ts +66 -0
- package/dist/components/input/input.stylex.js +71 -0
- package/dist/components/label/label.d.ts +2 -2
- package/dist/components/label/label.js +7 -6
- package/dist/components/label/label.stylex.d.ts +12 -0
- 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 +7 -12
- package/dist/components/menu/menu-content.d.ts +2 -2
- package/dist/components/menu/menu-content.js +8 -10
- package/dist/components/menu/menu-content.stylex.d.ts +11 -0
- 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 +4 -6
- package/dist/components/menu/menu-group.d.ts +1 -2
- package/dist/components/menu/menu-group.js +4 -6
- package/dist/components/menu/menu-item.d.ts +3 -4
- package/dist/components/menu/menu-item.js +6 -9
- package/dist/components/menu/menu-item.stylex.d.ts +11 -0
- 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 +5 -7
- package/dist/components/menu/menu-radio-group.d.ts +2 -4
- package/dist/components/menu/menu-radio-group.js +5 -8
- package/dist/components/menu/menu-radio-item.d.ts +2 -4
- package/dist/components/menu/menu-radio-item.js +7 -10
- package/dist/components/menu/menu-separator.d.ts +1 -2
- package/dist/components/menu/menu-separator.js +4 -6
- package/dist/components/menu/menu-submenu-trigger.d.ts +3 -4
- package/dist/components/menu/menu-submenu-trigger.js +8 -15
- package/dist/components/menu/menu-submenu-trigger.stylex.d.ts +19 -0
- package/dist/components/menu/menu-submenu-trigger.stylex.js +20 -0
- package/dist/components/otp-field/otp-field-input.d.ts +2 -2
- package/dist/components/otp-field/otp-field-input.js +5 -6
- package/dist/components/otp-field/otp-field-input.stylex.d.ts +25 -0
- package/dist/components/otp-field/otp-field-input.stylex.js +23 -0
- package/dist/components/otp-field/otp-field.d.ts +4 -7
- package/dist/components/otp-field/otp-field.js +7 -18
- package/dist/components/otp-field/otp-field.stylex.d.ts +16 -0
- package/dist/components/otp-field/otp-field.stylex.js +17 -0
- package/dist/components/picker/picker-group.stylex.d.ts +18 -0
- package/dist/components/picker/picker-group.stylex.js +19 -0
- package/dist/components/picker/picker-item.stylex.d.ts +39 -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.d.ts +36 -0
- package/dist/components/picker/picker-popup.stylex.js +37 -0
- package/dist/components/picker/picker-separator.stylex.d.ts +13 -0
- package/dist/components/picker/picker-separator.stylex.js +11 -0
- package/dist/components/picker/picker-trigger.stylex.d.ts +60 -0
- package/dist/components/picker/picker-trigger.stylex.js +67 -0
- package/dist/components/row/row.d.ts +2 -2
- package/dist/components/row/row.js +17 -15
- package/dist/components/row/row.stylex.d.ts +10 -0
- package/dist/components/row/row.stylex.js +8 -0
- package/dist/components/select/select-content.d.ts +2 -2
- package/dist/components/select/select-content.js +7 -9
- package/dist/components/select/select-group-label.d.ts +1 -2
- package/dist/components/select/select-group-label.js +4 -6
- package/dist/components/select/select-group.d.ts +2 -2
- package/dist/components/select/select-group.js +4 -6
- package/dist/components/select/select-item.d.ts +3 -4
- package/dist/components/select/select-item.js +7 -10
- package/dist/components/select/select-separator.d.ts +2 -2
- package/dist/components/select/select-separator.js +4 -6
- package/dist/components/select/select-trigger.d.ts +5 -8
- package/dist/components/select/select-trigger.js +6 -21
- package/dist/components/select/select-value.d.ts +2 -2
- package/dist/components/select/select-value.js +4 -6
- package/dist/components/select/select-value.stylex.d.ts +14 -0
- package/dist/components/select/select-value.stylex.js +12 -0
- package/dist/components/spacer/spacer.d.ts +2 -2
- package/dist/components/spacer/spacer.js +13 -11
- package/dist/components/spacer/spacer.stylex.d.ts +9 -0
- package/dist/components/spacer/spacer.stylex.js +7 -0
- package/dist/components/stylex.css +1420 -0
- package/dist/components/switch/switch.d.ts +4 -12
- package/dist/components/switch/switch.js +6 -22
- package/dist/components/switch/switch.stylex.d.ts +41 -0
- package/dist/components/switch/switch.stylex.js +44 -0
- package/dist/components/tabs/tabs-panel.d.ts +2 -2
- package/dist/components/tabs/tabs-panel.js +7 -7
- package/dist/components/tabs/tabs-panel.stylex.d.ts +14 -0
- package/dist/components/tabs/tabs-panel.stylex.js +12 -0
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tabs/tabs.js +7 -7
- package/dist/components/tabs/tabs.stylex.d.ts +10 -0
- package/dist/components/tabs/tabs.stylex.js +8 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.js +4 -6
- package/dist/components/tabs-pill/tabs-pill-indicator.stylex.js +16 -0
- package/dist/components/tabs-pill/tabs-pill-list.d.ts +2 -2
- package/dist/components/tabs-pill/tabs-pill-list.js +4 -6
- package/dist/components/tabs-pill/tabs-pill-list.stylex.d.ts +13 -0
- package/dist/components/tabs-pill/tabs-pill-list.stylex.js +11 -0
- package/dist/components/tabs-pill/tabs-pill-tab.d.ts +3 -5
- package/dist/components/tabs-pill/tabs-pill-tab.js +8 -10
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.d.ts +44 -0
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.js +46 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.js +4 -6
- package/dist/components/tabs-segmented/tabs-segmented-indicator.stylex.js +16 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.d.ts +2 -2
- package/dist/components/tabs-segmented/tabs-segmented-list.js +4 -6
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.d.ts +17 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.js +15 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.d.ts +3 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.js +6 -8
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.d.ts +28 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.js +26 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.js +4 -6
- package/dist/components/tabs-underline/tabs-underline-indicator.stylex.js +14 -0
- package/dist/components/tabs-underline/tabs-underline-list.d.ts +2 -2
- package/dist/components/tabs-underline/tabs-underline-list.js +4 -6
- package/dist/components/tabs-underline/tabs-underline-list.stylex.d.ts +14 -0
- package/dist/components/tabs-underline/tabs-underline-list.stylex.js +12 -0
- package/dist/components/tabs-underline/tabs-underline-tab.d.ts +3 -5
- package/dist/components/tabs-underline/tabs-underline-tab.js +6 -8
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.d.ts +27 -0
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.js +25 -0
- package/dist/components/textarea/textarea.d.ts +7 -12
- package/dist/components/textarea/textarea.js +10 -23
- package/dist/components/textarea/textarea.stylex.d.ts +13 -0
- package/dist/components/textarea/textarea.stylex.js +11 -0
- package/dist/components/toggle-group/toggle-group-item.d.ts +3 -6
- package/dist/components/toggle-group/toggle-group-item.js +6 -8
- package/dist/components/toggle-group/toggle-group-item.stylex.d.ts +33 -0
- package/dist/components/toggle-group/toggle-group-item.stylex.js +34 -0
- package/dist/components/toggle-group/toggle-group.d.ts +3 -7
- package/dist/components/toggle-group/toggle-group.js +6 -9
- package/dist/components/toggle-group/toggle-group.stylex.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group.stylex.js +9 -0
- package/dist/components/tooltip/tooltip-popup.d.ts +2 -2
- package/dist/components/tooltip/tooltip-popup.js +6 -7
- package/dist/components/tooltip/tooltip-popup.stylex.d.ts +30 -0
- package/dist/components/tooltip/tooltip-popup.stylex.js +32 -0
- package/dist/components/tooltip/tooltip.d.ts +1 -4
- package/dist/components/tooltip/tooltip.js +2 -4
- package/dist/tailwind-colors/root.css +10 -0
- package/package.json +4 -3
- 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 -191
- 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
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import { tabsSegmentedTabStyles } from "./tabs-segmented-tab.stylex.js";
|
|
1
2
|
import { Tabs } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/tabs-segmented/tabs-segmented-tab.d.ts
|
|
4
|
-
interface TabsSegmentedTabProps extends
|
|
5
|
-
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
-
}
|
|
5
|
+
interface TabsSegmentedTabProps extends Tabs.Tab.Props {}
|
|
7
6
|
declare function TabsSegmentedTab(props: TabsSegmentedTabProps): JSX.Element;
|
|
8
|
-
declare const tabsSegmentedTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
7
|
//#endregion
|
|
10
|
-
export { TabsSegmentedTab, TabsSegmentedTabProps,
|
|
8
|
+
export { TabsSegmentedTab, TabsSegmentedTabProps, tabsSegmentedTabStyles };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
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: customClassName = "",
|
|
8
|
-
const combinedClassName = tabsSegmentedTabVariants({ className: customClassName });
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
9
8
|
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(tabsSegmentedTabStyles.base), customClassName),
|
|
11
10
|
"data-slot": "tabs-segmented-tab",
|
|
12
|
-
nativeButton:
|
|
11
|
+
nativeButton: true,
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const tabsSegmentedTabVariants = cva(tabs_segmented_tab_module_default.base);
|
|
17
15
|
//#endregion
|
|
18
|
-
export { TabsSegmentedTab,
|
|
16
|
+
export { TabsSegmentedTab, tabsSegmentedTabStyles };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/tabs-segmented/tabs-segmented-tab.stylex.d.ts
|
|
3
|
+
declare const tabsSegmentedTabStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 10>;
|
|
7
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-gray-12)" | "var(--color-gray-11)">;
|
|
8
|
+
readonly columnGap: stylex.StyleXClassNameFor<"columnGap", 8>;
|
|
9
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
10
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
11
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
12
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 14>;
|
|
13
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 450>;
|
|
14
|
+
readonly height: stylex.StyleXClassNameFor<"height", "100%">;
|
|
15
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
16
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "var(--color-primary-9)">;
|
|
17
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", -4>;
|
|
18
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
|
|
19
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0 | 2>;
|
|
20
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
21
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 14>;
|
|
22
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "150ms">;
|
|
23
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "color">;
|
|
24
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { tabsSegmentedTabStyles };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/components/tabs-segmented/tabs-segmented-tab.stylex.ts
|
|
2
|
+
const tabsSegmentedTabStyles = { base: {
|
|
3
|
+
kGNEyG: "x6s0dn4",
|
|
4
|
+
kaIpWk: "x1q4ynmn",
|
|
5
|
+
kMwMTN: "x1srrrpr x58zf59 x1dtbpl2",
|
|
6
|
+
k1C7PZ: "xfex06f",
|
|
7
|
+
kkrTdU: "x1ypdohk",
|
|
8
|
+
k1xSpc: "x78zum5",
|
|
9
|
+
kmuXW: "x2lah0s",
|
|
10
|
+
kGuDYH: "xif65rj",
|
|
11
|
+
k63SB2: "x10p5zqr",
|
|
12
|
+
kZKoxP: "x5yr21d",
|
|
13
|
+
kjj79g: "xl56j7k",
|
|
14
|
+
kjBf7l: "x1luwoo2",
|
|
15
|
+
kInvED: "xr2mjdv",
|
|
16
|
+
k3XXqK: "xaatb59",
|
|
17
|
+
kMeerF: "x784prv x1k57tk5",
|
|
18
|
+
k8WAf4: "xt970qd",
|
|
19
|
+
kg3NbH: "xqin4a2",
|
|
20
|
+
kIyJzY: "xx6bhzk",
|
|
21
|
+
k1ekBW: "xt3l3uh",
|
|
22
|
+
khDVqt: "xuxw1ft",
|
|
23
|
+
$$css: true
|
|
24
|
+
} };
|
|
25
|
+
//#endregion
|
|
26
|
+
export { tabsSegmentedTabStyles };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
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
7
|
const { className: customClassName = "", ...rest } = props;
|
|
8
|
-
const combinedClassName = tabsUnderlineIndicatorVariants({ className: customClassName });
|
|
9
8
|
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(tabsUnderlineIndicatorStyles.base), customClassName),
|
|
11
10
|
"data-slot": "tabs-underline-indicator",
|
|
12
11
|
renderBeforeHydration: true,
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const tabsUnderlineIndicatorVariants = cva(tabs_underline_indicator_module_default.base);
|
|
17
15
|
//#endregion
|
|
18
|
-
export { TabsUnderlineIndicator
|
|
16
|
+
export { TabsUnderlineIndicator };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/components/tabs-underline/tabs-underline-indicator.stylex.ts
|
|
2
|
+
const tabsUnderlineIndicatorStyles = { base: {
|
|
3
|
+
kWkggS: "xa4c8pb",
|
|
4
|
+
krVfgx: "x1ey2m1c",
|
|
5
|
+
kZKoxP: "x36qwtl",
|
|
6
|
+
kbCHJM: "xvbikie",
|
|
7
|
+
kVAEAm: "x10l6tqk",
|
|
8
|
+
kIyJzY: "xx6bhzk",
|
|
9
|
+
k1ekBW: "x1ym43eq",
|
|
10
|
+
kzqmXN: "xoffw1",
|
|
11
|
+
$$css: true
|
|
12
|
+
} };
|
|
13
|
+
//#endregion
|
|
14
|
+
export { tabsUnderlineIndicatorStyles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { tabsUnderlineListStyles } from "./tabs-underline-list.stylex.js";
|
|
1
2
|
import { Tabs } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/tabs-underline/tabs-underline-list.d.ts
|
|
4
5
|
interface TabsUnderlineListProps extends Tabs.List.Props {}
|
|
5
6
|
declare function TabsUnderlineList(props: TabsUnderlineListProps): JSX.Element;
|
|
6
|
-
declare const tabsUnderlineListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { TabsUnderlineList, TabsUnderlineListProps,
|
|
8
|
+
export { TabsUnderlineList, TabsUnderlineListProps, tabsUnderlineListStyles };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
1
2
|
import { TabsUnderlineIndicator } from "./tabs-underline-indicator.js";
|
|
2
|
-
import
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
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
8
|
const { className: customClassName = "", children = void 0, ...rest } = props;
|
|
9
|
-
const combinedClassName = tabsUnderlineListVariants({ className: customClassName });
|
|
10
9
|
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
|
-
className:
|
|
10
|
+
className: cn(sx(tabsUnderlineListStyles.base), customClassName),
|
|
12
11
|
"data-slot": "tabs-underline-list",
|
|
13
12
|
...rest,
|
|
14
13
|
children: [children, /* @__PURE__ */ jsx(TabsUnderlineIndicator, {})]
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
const tabsUnderlineListVariants = cva(tabs_underline_list_module_default.base);
|
|
18
16
|
//#endregion
|
|
19
|
-
export { TabsUnderlineList,
|
|
17
|
+
export { TabsUnderlineList, tabsUnderlineListStyles };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/tabs-underline/tabs-underline-list.stylex.d.ts
|
|
3
|
+
declare const tabsUnderlineListStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly borderBottomColor: stylex.StyleXClassNameFor<"borderBottomColor", "var(--color-gray-4)">;
|
|
6
|
+
readonly borderBottomStyle: stylex.StyleXClassNameFor<"borderBottomStyle", "solid">;
|
|
7
|
+
readonly borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", 1>;
|
|
8
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
9
|
+
readonly overflowX: stylex.StyleXClassNameFor<"overflowX", "auto">;
|
|
10
|
+
readonly position: stylex.StyleXClassNameFor<"position", "relative">;
|
|
11
|
+
}>;
|
|
12
|
+
}>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { tabsUnderlineListStyles };
|
|
@@ -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,8 @@
|
|
|
1
|
+
import { tabsUnderlineTabStyles } from "./tabs-underline-tab.stylex.js";
|
|
1
2
|
import { Tabs } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/tabs-underline/tabs-underline-tab.d.ts
|
|
4
|
-
interface TabsUnderlineTabProps extends
|
|
5
|
-
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
-
}
|
|
5
|
+
interface TabsUnderlineTabProps extends Tabs.Tab.Props {}
|
|
7
6
|
declare function TabsUnderlineTab(props: TabsUnderlineTabProps): JSX.Element;
|
|
8
|
-
declare const tabsUnderlineTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
7
|
//#endregion
|
|
10
|
-
export { TabsUnderlineTab, TabsUnderlineTabProps,
|
|
8
|
+
export { TabsUnderlineTab, TabsUnderlineTabProps, tabsUnderlineTabStyles };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } 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: customClassName = "",
|
|
8
|
-
const combinedClassName = tabsUnderlineTabVariants({ className: customClassName });
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
9
8
|
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(tabsUnderlineTabStyles.base), customClassName),
|
|
11
10
|
"data-slot": "tabs-underline-tab",
|
|
12
|
-
nativeButton:
|
|
11
|
+
nativeButton: true,
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const tabsUnderlineTabVariants = cva(tabs_underline_tab_module_default.base);
|
|
17
15
|
//#endregion
|
|
18
|
-
export { TabsUnderlineTab,
|
|
16
|
+
export { TabsUnderlineTab, tabsUnderlineTabStyles };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/tabs-underline/tabs-underline-tab.stylex.d.ts
|
|
3
|
+
declare const tabsUnderlineTabStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 8>;
|
|
7
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-gray-12)" | "var(--color-gray-11)">;
|
|
8
|
+
readonly columnGap: stylex.StyleXClassNameFor<"columnGap", 8>;
|
|
9
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
|
|
10
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
11
|
+
readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
|
|
12
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 14>;
|
|
13
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 450>;
|
|
14
|
+
readonly marginBottom: stylex.StyleXClassNameFor<"marginBottom", 6>;
|
|
15
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "var(--color-primary-9)">;
|
|
16
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", -2>;
|
|
17
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
|
|
18
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0 | 2>;
|
|
19
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 6>;
|
|
20
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 12>;
|
|
21
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "150ms">;
|
|
22
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "color">;
|
|
23
|
+
readonly whiteSpace: stylex.StyleXClassNameFor<"whiteSpace", "nowrap">;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { tabsUnderlineTabStyles };
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { textareaStyles } from "./textarea.stylex.js";
|
|
1
2
|
import { ComponentProps, JSX } from "react";
|
|
2
3
|
//#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;
|
|
4
|
+
interface TextareaProps extends Omit<ComponentProps<"textarea">, "aria-pressed"> {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
rounded?: boolean;
|
|
8
|
+
valid?: boolean;
|
|
11
9
|
}
|
|
12
10
|
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
11
|
//#endregion
|
|
17
|
-
export { Textarea, TextareaProps,
|
|
12
|
+
export { Textarea, TextareaProps, textareaStyles };
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { inputStyles } 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: customClassName = "",
|
|
7
|
+
const { className: customClassName = "", active = false, invalid = void 0, rounded = false, valid = void 0, ...rest } = props;
|
|
8
8
|
return /* @__PURE__ */ jsx("textarea", {
|
|
9
|
-
className:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"data-is-active": isActive,
|
|
14
|
-
"data-is-invalid": isInvalid,
|
|
15
|
-
"data-is-valid": isValid,
|
|
9
|
+
className: cn(sx(inputStyles.base, textareaStyles.base, rounded ? inputStyles.roundedFull : inputStyles.roundedBase), customClassName),
|
|
10
|
+
"data-is-active": active,
|
|
11
|
+
"data-is-invalid": invalid,
|
|
12
|
+
"data-is-valid": valid,
|
|
16
13
|
"data-slot": "textarea",
|
|
17
|
-
|
|
18
|
-
readOnly: isReadOnly,
|
|
19
|
-
required: isRequired,
|
|
20
|
-
rows,
|
|
14
|
+
rows: 2,
|
|
21
15
|
...rest
|
|
22
16
|
});
|
|
23
17
|
}
|
|
24
|
-
const textareaVariants = cva([input_module_default.base, textarea_module_default.base], {
|
|
25
|
-
defaultVariants: { isRounded: false },
|
|
26
|
-
variants: { isRounded: {
|
|
27
|
-
false: input_module_default.rounded_base,
|
|
28
|
-
true: input_module_default.rounded_full
|
|
29
|
-
} }
|
|
30
|
-
});
|
|
31
18
|
//#endregion
|
|
32
|
-
export { Textarea,
|
|
19
|
+
export { Textarea, textareaStyles };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/textarea/textarea.stylex.d.ts
|
|
3
|
+
declare const textareaStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly height: stylex.StyleXClassNameFor<"height", "auto">;
|
|
6
|
+
readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "none">;
|
|
7
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 66>;
|
|
8
|
+
readonly padding: stylex.StyleXClassNameFor<"padding", 12>;
|
|
9
|
+
readonly resize: stylex.StyleXClassNameFor<"resize", "vertical">;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { textareaStyles };
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import { toggleGroupItemStyles } from "./toggle-group-item.stylex.js";
|
|
1
2
|
import { Toggle } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#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
|
-
}
|
|
5
|
+
interface ToggleGroupItemProps extends Toggle.Props {}
|
|
8
6
|
declare function ToggleGroupItem(props: ToggleGroupItemProps): JSX.Element;
|
|
9
|
-
declare const toggleGroupItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
7
|
//#endregion
|
|
11
|
-
export { ToggleGroupItem, ToggleGroupItemProps,
|
|
8
|
+
export { ToggleGroupItem, ToggleGroupItemProps, toggleGroupItemStyles };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } 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: customClassName = "",
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
8
|
return /* @__PURE__ */ jsx(Toggle, {
|
|
9
|
-
className:
|
|
9
|
+
className: cn(sx(toggleGroupItemStyles.base), customClassName),
|
|
10
10
|
"data-slot": "toggle-group-item",
|
|
11
|
-
|
|
12
|
-
nativeButton: isNativeButton,
|
|
11
|
+
nativeButton: true,
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const toggleGroupItemVariants = cva(toggle_group_item_module_default.base);
|
|
17
15
|
//#endregion
|
|
18
|
-
export { ToggleGroupItem,
|
|
16
|
+
export { ToggleGroupItem, toggleGroupItemStyles };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/toggle-group/toggle-group-item.stylex.d.ts
|
|
3
|
+
declare const toggleGroupItemStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "transparent" | "var(--color-gray-4)" | "var(--color-gray-3)">;
|
|
7
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 10>;
|
|
8
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "none" | "inset 0 0 0 1px var(--color-primary)">;
|
|
9
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-text-primary)" | "var(--color-text-secondary)">;
|
|
10
|
+
readonly columnGap: stylex.StyleXClassNameFor<"columnGap", 8>;
|
|
11
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer" | "not-allowed">;
|
|
12
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
13
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 14>;
|
|
14
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 450>;
|
|
15
|
+
readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
|
|
16
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 1 | 0.5>;
|
|
17
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "var(--color-outline)">;
|
|
18
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", 2>;
|
|
19
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
|
|
20
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0 | 2>;
|
|
21
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 8>;
|
|
22
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 12>;
|
|
23
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "150ms">;
|
|
24
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "background-color, box-shadow, color">;
|
|
25
|
+
readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
|
|
26
|
+
}>;
|
|
27
|
+
readonly icon: Readonly<{
|
|
28
|
+
readonly height: stylex.StyleXClassNameFor<"height", 16>;
|
|
29
|
+
readonly width: stylex.StyleXClassNameFor<"width", 16>;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { toggleGroupItemStyles };
|
|
@@ -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,8 @@
|
|
|
1
|
+
import { toggleGroupStyles } from "./toggle-group.stylex.js";
|
|
1
2
|
import { ToggleGroup } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#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
|
-
}
|
|
5
|
+
interface ToggleGroupProps extends ToggleGroup.Props {}
|
|
9
6
|
declare function ToggleGroup$1(props: ToggleGroupProps): JSX.Element;
|
|
10
|
-
declare const toggleGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
11
7
|
//#endregion
|
|
12
|
-
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps,
|
|
8
|
+
export { ToggleGroup$1 as ToggleGroup, ToggleGroupProps, toggleGroupStyles };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } 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: customClassName = "",
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
8
|
return /* @__PURE__ */ jsx(ToggleGroup, {
|
|
9
|
-
className:
|
|
9
|
+
className: cn(sx(toggleGroupStyles.base), customClassName),
|
|
10
10
|
"data-slot": "toggle-group",
|
|
11
|
-
|
|
12
|
-
loopFocus: isLoopFocus,
|
|
13
|
-
multiple: isMultiple,
|
|
11
|
+
loopFocus: true,
|
|
14
12
|
...rest
|
|
15
13
|
});
|
|
16
14
|
}
|
|
17
|
-
const toggleGroupVariants = cva(toggle_group_module_default.base);
|
|
18
15
|
//#endregion
|
|
19
|
-
export { ToggleGroup$1 as ToggleGroup,
|
|
16
|
+
export { ToggleGroup$1 as ToggleGroup, toggleGroupStyles };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/toggle-group/toggle-group.stylex.d.ts
|
|
3
|
+
declare const toggleGroupStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
6
|
+
readonly flexWrap: stylex.StyleXClassNameFor<"flexWrap", "wrap">;
|
|
7
|
+
readonly gap: stylex.StyleXClassNameFor<"gap", 8>;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { toggleGroupStyles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { tooltipPopupStyles } from "./tooltip-popup.stylex.js";
|
|
1
2
|
import { Tooltip } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/tooltip/tooltip-popup.d.ts
|
|
4
5
|
interface TooltipPopupProps extends Pick<Tooltip.Positioner.Props, "side" | "sideOffset">, Tooltip.Popup.Props {}
|
|
5
6
|
declare function TooltipPopup(props: TooltipPopupProps): JSX.Element;
|
|
6
|
-
declare const tooltipPopupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { TooltipPopup, TooltipPopupProps,
|
|
8
|
+
export { TooltipPopup, TooltipPopupProps, tooltipPopupStyles };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } 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
7
|
const { children = void 0, className: customClassName = "", side = "top", sideOffset = 4, ...rest } = props;
|
|
8
|
-
const combinedClassName = tooltipPopupVariants({ className: customClassName });
|
|
9
8
|
return /* @__PURE__ */ jsx(Tooltip.Portal, {
|
|
10
|
-
className:
|
|
9
|
+
className: sx(tooltipPopupStyles.portal),
|
|
11
10
|
children: /* @__PURE__ */ jsxs(Tooltip.Positioner, {
|
|
11
|
+
className: sx(tooltipPopupStyles.positioner),
|
|
12
12
|
side,
|
|
13
13
|
sideOffset,
|
|
14
14
|
children: [/* @__PURE__ */ jsx(Tooltip.Popup, {
|
|
15
|
-
className:
|
|
15
|
+
className: cn(sx(tooltipPopupStyles.base), customClassName),
|
|
16
16
|
"data-slot": "tooltip-popup",
|
|
17
17
|
...rest,
|
|
18
18
|
children
|
|
@@ -20,6 +20,5 @@ function TooltipPopup(props) {
|
|
|
20
20
|
})
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const tooltipPopupVariants = cva(tooltip_popup_module_default.base);
|
|
24
23
|
//#endregion
|
|
25
|
-
export { TooltipPopup,
|
|
24
|
+
export { TooltipPopup, tooltipPopupStyles };
|