@nattstack/ui 0.0.85 → 0.0.86
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.css +97 -0
- package/dist/components/button/button-spinner.js +14 -0
- package/dist/components/button/button-spinner.module.js +8 -0
- package/dist/components/button/button.css +191 -0
- package/dist/components/button/button.d.ts +25 -0
- package/dist/components/button/button.js +54 -0
- package/dist/components/button/button.module.js +21 -0
- package/dist/components/button-link/button-link.d.ts +18 -0
- package/dist/components/button-link/button-link.js +23 -0
- package/dist/components/checkbox/checkbox-icon.js +22 -0
- package/dist/components/checkbox/checkbox.css +55 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +21 -0
- package/dist/components/checkbox/checkbox.module.js +9 -0
- package/dist/components/column/column.css +6 -0
- package/dist/components/column/column.d.ts +16 -0
- package/dist/components/column/column.js +23 -0
- package/dist/components/column/column.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.css +28 -0
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +17 -0
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.css +16 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.js +15 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.css +56 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.d.ts +8 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.js +22 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.css +7 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.js +17 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive-trigger.d.ts +7 -0
- package/dist/components/dialog-responsive/dialog-responsive-trigger.js +12 -0
- package/dist/components/dialog-responsive/dialog-responsive-viewport.css +18 -0
- package/dist/components/dialog-responsive/dialog-responsive-viewport.js +17 -0
- package/dist/components/dialog-responsive/dialog-responsive-viewport.module.js +5 -0
- package/dist/components/dialog-responsive/dialog-responsive.d.ts +10 -0
- package/dist/components/dialog-responsive/dialog-responsive.js +15 -0
- package/dist/components/icon-button/icon-button.css +25 -0
- package/dist/components/icon-button/icon-button.d.ts +12 -0
- package/dist/components/icon-button/icon-button.js +34 -0
- package/dist/components/icon-button/icon-button.module.js +12 -0
- package/dist/components/index.d.ts +46 -359
- package/dist/components/index.js +46 -1034
- package/dist/components/input/input.css +84 -0
- package/dist/components/input/input.d.ts +22 -0
- package/dist/components/input/input.js +44 -0
- package/dist/components/input/input.module.js +14 -0
- package/dist/components/label/label.css +7 -0
- package/dist/components/label/label.d.ts +7 -0
- package/dist/components/label/label.js +16 -0
- package/dist/components/label/label.module.js +5 -0
- package/dist/components/menu/menu-checkbox-item.d.ts +14 -0
- package/dist/components/menu/menu-checkbox-item.js +44 -0
- package/dist/components/menu/menu-class-names.d.ts +23 -0
- package/dist/components/menu/menu-class-names.js +24 -0
- package/dist/components/menu/menu-content.d.ts +11 -0
- package/dist/components/menu/menu-content.js +38 -0
- package/dist/components/menu/menu-group-label.d.ts +9 -0
- package/dist/components/menu/menu-group-label.js +16 -0
- package/dist/components/menu/menu-group.d.ts +9 -0
- package/dist/components/menu/menu-group.js +16 -0
- package/dist/components/menu/menu-item.d.ts +10 -0
- package/dist/components/menu/menu-item.js +18 -0
- package/dist/components/menu/menu-link-item.d.ts +7 -0
- package/dist/components/menu/menu-link-item.js +13 -0
- package/dist/components/menu/menu-radio-group.d.ts +10 -0
- package/dist/components/menu/menu-radio-group.js +17 -0
- package/dist/components/menu/menu-radio-item.d.ts +12 -0
- package/dist/components/menu/menu-radio-item.js +43 -0
- package/dist/components/menu/menu-separator.d.ts +9 -0
- package/dist/components/menu/menu-separator.js +16 -0
- package/dist/components/menu/menu-submenu-trigger.d.ts +7 -0
- package/dist/components/menu/menu-submenu-trigger.js +13 -0
- package/dist/components/menu/menu-submenu.d.ts +11 -0
- package/dist/components/menu/menu-submenu.js +15 -0
- package/dist/components/menu/menu-trigger.d.ts +7 -0
- package/dist/components/menu/menu-trigger.js +12 -0
- package/dist/components/menu/menu-viewport.d.ts +9 -0
- package/dist/components/menu/menu-viewport.js +16 -0
- package/dist/components/menu/menu.css +209 -0
- package/dist/components/menu/menu.d.ts +12 -0
- package/dist/components/menu/menu.js +16 -0
- package/dist/components/menu/menu.module.js +24 -0
- package/dist/components/otp-field/otp-field-input.css +33 -0
- package/dist/components/otp-field/otp-field-input.d.ts +8 -0
- package/dist/components/otp-field/otp-field-input.js +16 -0
- package/dist/components/otp-field/otp-field-input.module.js +5 -0
- package/dist/components/otp-field/otp-field.css +13 -0
- package/dist/components/otp-field/otp-field.d.ts +13 -0
- package/dist/components/otp-field/otp-field.js +27 -0
- package/dist/components/otp-field/otp-field.module.js +8 -0
- package/dist/components/row/row.css +6 -0
- package/dist/components/row/row.d.ts +16 -0
- package/dist/components/row/row.js +23 -0
- package/dist/components/row/row.module.js +5 -0
- package/dist/components/spacer/spacer.css +5 -0
- package/dist/components/spacer/spacer.d.ts +10 -0
- package/dist/components/spacer/spacer.js +19 -0
- package/dist/components/spacer/spacer.module.js +5 -0
- package/dist/components/switch/switch.css +54 -0
- package/dist/components/switch/switch.d.ts +19 -0
- package/dist/components/switch/switch.js +31 -0
- package/dist/components/switch/switch.module.js +10 -0
- package/dist/components/tabs/tabs-panel.css +14 -0
- package/dist/components/tabs/tabs-panel.d.ts +8 -0
- package/dist/components/tabs/tabs-panel.js +17 -0
- package/dist/components/tabs/tabs-panel.module.js +5 -0
- package/dist/components/tabs/tabs.css +6 -0
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +17 -0
- package/dist/components/tabs/tabs.module.js +5 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.css +14 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.js +18 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.module.js +5 -0
- package/dist/components/tabs-pill/tabs-pill-list.css +9 -0
- package/dist/components/tabs-pill/tabs-pill-list.d.ts +8 -0
- package/dist/components/tabs-pill/tabs-pill-list.js +19 -0
- package/dist/components/tabs-pill/tabs-pill-list.module.js +5 -0
- package/dist/components/tabs-pill/tabs-pill-tab.css +66 -0
- package/dist/components/tabs-pill/tabs-pill-tab.d.ts +10 -0
- package/dist/components/tabs-pill/tabs-pill-tab.js +21 -0
- package/dist/components/tabs-pill/tabs-pill-tab.module.js +9 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.css +14 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.js +18 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.module.js +5 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.css +13 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.d.ts +8 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.js +19 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.module.js +5 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.css +37 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.d.ts +10 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.js +18 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.module.js +5 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.css +12 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.js +18 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.module.js +5 -0
- package/dist/components/tabs-underline/tabs-underline-list.css +10 -0
- package/dist/components/tabs-underline/tabs-underline-list.d.ts +8 -0
- package/dist/components/tabs-underline/tabs-underline-list.js +19 -0
- package/dist/components/tabs-underline/tabs-underline-list.module.js +5 -0
- package/dist/components/tabs-underline/tabs-underline-tab.css +36 -0
- package/dist/components/tabs-underline/tabs-underline-tab.d.ts +10 -0
- package/dist/components/tabs-underline/tabs-underline-tab.js +18 -0
- package/dist/components/tabs-underline/tabs-underline-tab.module.js +5 -0
- package/dist/components/textarea/textarea.css +9 -0
- package/dist/components/textarea/textarea.d.ts +17 -0
- package/dist/components/textarea/textarea.js +31 -0
- package/dist/components/textarea/textarea.module.js +5 -0
- package/dist/components/toggle-group/toggle-group-item.css +47 -0
- package/dist/components/toggle-group/toggle-group-item.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group-item.js +18 -0
- package/dist/components/toggle-group/toggle-group-item.module.js +5 -0
- package/dist/components/toggle-group/toggle-group.css +7 -0
- package/dist/components/toggle-group/toggle-group.d.ts +12 -0
- package/dist/components/toggle-group/toggle-group.js +19 -0
- package/dist/components/toggle-group/toggle-group.module.js +5 -0
- package/dist/components/tooltip/tooltip-popup.css +32 -0
- package/dist/components/tooltip/tooltip-popup.d.ts +8 -0
- package/dist/components/tooltip/tooltip-popup.js +25 -0
- package/dist/components/tooltip/tooltip-popup.module.js +8 -0
- package/dist/components/tooltip/tooltip-provider.d.ts +7 -0
- package/dist/components/tooltip/tooltip-provider.js +12 -0
- package/dist/components/tooltip/tooltip-trigger.d.ts +7 -0
- package/dist/components/tooltip/tooltip-trigger.js +12 -0
- package/dist/components/tooltip/tooltip.d.ts +10 -0
- package/dist/components/tooltip/tooltip.js +14 -0
- package/package.json +6 -3
- package/dist/components/style.css +0 -1182
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './switch.css';
|
|
2
|
+
//#region src/components/switch/switch.module.css
|
|
3
|
+
var switch_module_default = {
|
|
4
|
+
"switch": "switch-module_switch_K0d9Sa",
|
|
5
|
+
"switch__size_18": "switch-module_switch__size_18_K0d9Sa",
|
|
6
|
+
"switch__size_24": "switch-module_switch__size_24_K0d9Sa",
|
|
7
|
+
"switch__thumb": "switch-module_switch__thumb_K0d9Sa"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { switch_module_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-panel-module_tabs_panel_AXj2FW {
|
|
3
|
+
outline-color: var(--color-primary-9);
|
|
4
|
+
outline-offset: -2px;
|
|
5
|
+
outline-width: 0;
|
|
6
|
+
outline-style: solid;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.tabs-panel-module_tabs_panel_AXj2FW:focus-visible {
|
|
12
|
+
outline-width: 2px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs/tabs-panel.d.ts
|
|
4
|
+
interface TabsPanelProps extends Tabs.Panel.Props {}
|
|
5
|
+
declare function TabsPanel(props: TabsPanelProps): JSX.Element;
|
|
6
|
+
declare const tabsPanelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TabsPanel, TabsPanelProps, tabsPanelVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import tabs_panel_module_default from "./tabs-panel.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs/tabs-panel.tsx
|
|
6
|
+
function TabsPanel(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsPanelVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Panel, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-panel",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const tabsPanelVariants = cva(tabs_panel_module_default.tabs_panel);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { TabsPanel, tabsPanelVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs/tabs.d.ts
|
|
4
|
+
interface TabsProps extends Tabs.Root.Props {}
|
|
5
|
+
declare function Tabs$1(props: TabsProps): JSX.Element;
|
|
6
|
+
declare const tabsVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { Tabs$1 as Tabs, TabsProps, tabsVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import tabs_module_default from "./tabs.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs/tabs.tsx
|
|
6
|
+
function Tabs$1(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Root, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const tabsVariants = cva(tabs_module_default.tabs);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Tabs$1 as Tabs, tabsVariants };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-pill-indicator-module_tabs_pill_indicator_PiFilW {
|
|
3
|
+
background-color: var(--color-gray-12);
|
|
4
|
+
height: var(--active-tab-height);
|
|
5
|
+
left: var(--active-tab-left);
|
|
6
|
+
top: var(--active-tab-top);
|
|
7
|
+
width: var(--active-tab-width);
|
|
8
|
+
z-index: -1;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
transition-property: left, width;
|
|
11
|
+
transition-duration: .15s;
|
|
12
|
+
position: absolute;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import tabs_pill_indicator_module_default from "./tabs-pill-indicator.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-pill/tabs-pill-indicator.tsx
|
|
6
|
+
function TabsPillIndicator(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsPillIndicatorVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-pill-indicator",
|
|
12
|
+
renderBeforeHydration: true,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const tabsPillIndicatorVariants = cva(tabs_pill_indicator_module_default.tabs_pill_indicator);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabsPillIndicator, tabsPillIndicatorVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-pill-indicator.css';
|
|
2
|
+
//#region src/components/tabs-pill/tabs-pill-indicator.module.css
|
|
3
|
+
var tabs_pill_indicator_module_default = { "tabs_pill_indicator": "tabs-pill-indicator-module_tabs_pill_indicator_PiFilW" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_pill_indicator_module_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-pill/tabs-pill-list.d.ts
|
|
4
|
+
interface TabsPillListProps extends Tabs.List.Props {}
|
|
5
|
+
declare function TabsPillList(props: TabsPillListProps): JSX.Element;
|
|
6
|
+
declare const tabsPillListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TabsPillList, TabsPillListProps, tabsPillListVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TabsPillIndicator } from "./tabs-pill-indicator.js";
|
|
2
|
+
import tabs_pill_list_module_default from "./tabs-pill-list.module.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Tabs } from "@base-ui/react";
|
|
6
|
+
//#region src/components/tabs-pill/tabs-pill-list.tsx
|
|
7
|
+
function TabsPillList(props) {
|
|
8
|
+
const { className: customClassName = "", children = "", ...rest } = props;
|
|
9
|
+
const combinedClassName = tabsPillListVariants({ className: customClassName });
|
|
10
|
+
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-slot": "tabs-pill-list",
|
|
13
|
+
...rest,
|
|
14
|
+
children: [children, /* @__PURE__ */ jsx(TabsPillIndicator, {})]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const tabsPillListVariants = cva(tabs_pill_list_module_default.tabs_pill_list);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { TabsPillList, tabsPillListVariants };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-pill-tab-module_tabs_pill_tab_nxQ-sW {
|
|
3
|
+
border-radius: var(--border-radius);
|
|
4
|
+
color: #000;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
outline-color: var(--color-primary-9);
|
|
7
|
+
outline-offset: -4px;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
outline-width: 0;
|
|
10
|
+
outline-style: solid;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
column-gap: 8px;
|
|
15
|
+
height: 40px;
|
|
16
|
+
padding: 0 14px;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
transition-property: background-color, color;
|
|
20
|
+
transition-duration: .15s;
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tabs-pill-tab-module_tabs_pill_tab_nxQ-sW:focus-visible {
|
|
25
|
+
outline-width: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tabs-pill-tab-module_tabs_pill_tab_nxQ-sW:hover {
|
|
29
|
+
background-color: var(--color-gray-4);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tabs-pill-tab-module_tabs_pill_tab_nxQ-sW[data-active] {
|
|
33
|
+
color: #fff;
|
|
34
|
+
background-color: #0000;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dark .tabs-pill-tab-module_tabs_pill_tab_nxQ-sW {
|
|
38
|
+
color: #fff;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dark .tabs-pill-tab-module_tabs_pill_tab_nxQ-sW[data-active] {
|
|
42
|
+
color: #000;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tabs-pill-tab-module_tabs_pill_tab_nxQ-sW > svg {
|
|
46
|
+
--size-icon: 16px;
|
|
47
|
+
height: var(--size-icon);
|
|
48
|
+
width: var(--size-icon);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.tabs-pill-tab-module_tabs_pill_tab_wrapper_nxQ-sW {
|
|
52
|
+
--border-radius: 12px;
|
|
53
|
+
border-radius: var(--border-radius);
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
display: flex;
|
|
56
|
+
position: relative;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tabs-pill-tab-module_tabs_pill_tab_background_nxQ-sW {
|
|
61
|
+
background-color: var(--color-gray-3);
|
|
62
|
+
z-index: -2;
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-pill/tabs-pill-tab.d.ts
|
|
4
|
+
interface TabsPillTabProps extends Omit<Tabs.Tab.Props, "nativeButton"> {
|
|
5
|
+
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
+
}
|
|
7
|
+
declare function TabsPillTab(props: TabsPillTabProps): JSX.Element;
|
|
8
|
+
declare const tabsPillTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { TabsPillTab, TabsPillTabProps, tabsPillTabVariants };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import tabs_pill_tab_module_default from "./tabs-pill-tab.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-pill/tabs-pill-tab.tsx
|
|
6
|
+
function TabsPillTab(props) {
|
|
7
|
+
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsPillTabVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: tabs_pill_tab_module_default.tabs_pill_tab_wrapper,
|
|
11
|
+
children: [/* @__PURE__ */ jsx(Tabs.Tab, {
|
|
12
|
+
className: combinedClassName,
|
|
13
|
+
"data-slot": "tabs-pill-tab",
|
|
14
|
+
nativeButton: isNativeButton,
|
|
15
|
+
...rest
|
|
16
|
+
}), /* @__PURE__ */ jsx("div", { className: tabs_pill_tab_module_default.tabs_pill_tab_background })]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const tabsPillTabVariants = cva(tabs_pill_tab_module_default.tabs_pill_tab);
|
|
20
|
+
//#endregion
|
|
21
|
+
export { TabsPillTab, tabsPillTabVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './tabs-pill-tab.css';
|
|
2
|
+
//#region src/components/tabs-pill/tabs-pill-tab.module.css
|
|
3
|
+
var tabs_pill_tab_module_default = {
|
|
4
|
+
"tabs_pill_tab": "tabs-pill-tab-module_tabs_pill_tab_nxQ-sW",
|
|
5
|
+
"tabs_pill_tab_background": "tabs-pill-tab-module_tabs_pill_tab_background_nxQ-sW",
|
|
6
|
+
"tabs_pill_tab_wrapper": "tabs-pill-tab-module_tabs_pill_tab_wrapper_nxQ-sW"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { tabs_pill_tab_module_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-segmented-indicator-module_tabs_segmented_indicator_3DY8Ta {
|
|
3
|
+
background-color: var(--color-gray-1);
|
|
4
|
+
height: var(--active-tab-height);
|
|
5
|
+
left: var(--active-tab-left);
|
|
6
|
+
top: var(--active-tab-top);
|
|
7
|
+
width: var(--active-tab-width);
|
|
8
|
+
z-index: -1;
|
|
9
|
+
border-radius: 10px;
|
|
10
|
+
transition-property: left, width;
|
|
11
|
+
transition-duration: .15s;
|
|
12
|
+
position: absolute;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import tabs_segmented_indicator_module_default from "./tabs-segmented-indicator.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-segmented/tabs-segmented-indicator.tsx
|
|
6
|
+
function TabsSegmentedIndicator(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsSegmentedIndicatorVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-segmented-indicator",
|
|
12
|
+
renderBeforeHydration: true,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const tabsSegmentedIndicatorVariants = cva(tabs_segmented_indicator_module_default.tabs_segmented_indicator);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabsSegmentedIndicator, tabsSegmentedIndicatorVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-segmented-indicator.css';
|
|
2
|
+
//#region src/components/tabs-segmented/tabs-segmented-indicator.module.css
|
|
3
|
+
var tabs_segmented_indicator_module_default = { "tabs_segmented_indicator": "tabs-segmented-indicator-module_tabs_segmented_indicator_3DY8Ta" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_segmented_indicator_module_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-segmented-list-module_tabs_segmented_list_wG8CPq {
|
|
3
|
+
background-color: var(--color-gray-3);
|
|
4
|
+
isolation: isolate;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
height: 40px;
|
|
8
|
+
padding: 2px;
|
|
9
|
+
display: flex;
|
|
10
|
+
position: relative;
|
|
11
|
+
overflow-x: auto;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-segmented/tabs-segmented-list.d.ts
|
|
4
|
+
interface TabsSegmentedListProps extends Tabs.List.Props {}
|
|
5
|
+
declare function TabsSegmentedList(props: TabsSegmentedListProps): JSX.Element;
|
|
6
|
+
declare const tabsSegmentedListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TabsSegmentedList, TabsSegmentedListProps, tabsSegmentedListVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TabsSegmentedIndicator } from "./tabs-segmented-indicator.js";
|
|
2
|
+
import tabs_segmented_list_module_default from "./tabs-segmented-list.module.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Tabs } from "@base-ui/react";
|
|
6
|
+
//#region src/components/tabs-segmented/tabs-segmented-list.tsx
|
|
7
|
+
function TabsSegmentedList(props) {
|
|
8
|
+
const { className: customClassName = "", children = "", ...rest } = props;
|
|
9
|
+
const combinedClassName = tabsSegmentedListVariants({ className: customClassName });
|
|
10
|
+
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-slot": "tabs-segmented-list",
|
|
13
|
+
...rest,
|
|
14
|
+
children: [children, /* @__PURE__ */ jsx(TabsSegmentedIndicator, {})]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const tabsSegmentedListVariants = cva(tabs_segmented_list_module_default.tabs_segmented_list);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { TabsSegmentedList, tabsSegmentedListVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-segmented-list.css';
|
|
2
|
+
//#region src/components/tabs-segmented/tabs-segmented-list.module.css
|
|
3
|
+
var tabs_segmented_list_module_default = { "tabs_segmented_list": "tabs-segmented-list-module_tabs_segmented_list_wG8CPq" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_segmented_list_module_default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-segmented-tab-module_tabs_segmented_tab_du-IJG {
|
|
3
|
+
color: var(--color-gray-11);
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
outline-color: var(--color-primary-9);
|
|
6
|
+
outline-offset: -4px;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
border-radius: 10px;
|
|
9
|
+
outline-width: 0;
|
|
10
|
+
outline-style: solid;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
column-gap: 8px;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0 14px;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
transition-property: color;
|
|
20
|
+
transition-duration: .15s;
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tabs-segmented-tab-module_tabs_segmented_tab_du-IJG:focus-visible {
|
|
25
|
+
outline-width: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tabs-segmented-tab-module_tabs_segmented_tab_du-IJG:hover, .tabs-segmented-tab-module_tabs_segmented_tab_du-IJG[data-active] {
|
|
29
|
+
color: var(--color-gray-12);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tabs-segmented-tab-module_tabs_segmented_tab_du-IJG > svg {
|
|
33
|
+
--size-icon: 16px;
|
|
34
|
+
height: var(--size-icon);
|
|
35
|
+
width: var(--size-icon);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-segmented/tabs-segmented-tab.d.ts
|
|
4
|
+
interface TabsSegmentedTabProps extends Omit<Tabs.Tab.Props, "nativeButton"> {
|
|
5
|
+
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
+
}
|
|
7
|
+
declare function TabsSegmentedTab(props: TabsSegmentedTabProps): JSX.Element;
|
|
8
|
+
declare const tabsSegmentedTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { TabsSegmentedTab, TabsSegmentedTabProps, tabsSegmentedTabVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import tabs_segmented_tab_module_default from "./tabs-segmented-tab.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-segmented/tabs-segmented-tab.tsx
|
|
6
|
+
function TabsSegmentedTab(props) {
|
|
7
|
+
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsSegmentedTabVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-segmented-tab",
|
|
12
|
+
nativeButton: isNativeButton,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const tabsSegmentedTabVariants = cva(tabs_segmented_tab_module_default.tabs_segmented_tab);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabsSegmentedTab, tabsSegmentedTabVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-segmented-tab.css';
|
|
2
|
+
//#region src/components/tabs-segmented/tabs-segmented-tab.module.css
|
|
3
|
+
var tabs_segmented_tab_module_default = { "tabs_segmented_tab": "tabs-segmented-tab-module_tabs_segmented_tab_du-IJG" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_segmented_tab_module_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-underline-indicator-module_tabs_underline_indicator_Gl55Ba {
|
|
3
|
+
background-color: var(--color-primary-9);
|
|
4
|
+
height: 2px;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: var(--active-tab-left);
|
|
7
|
+
width: var(--active-tab-width);
|
|
8
|
+
transition-property: left, width;
|
|
9
|
+
transition-duration: .15s;
|
|
10
|
+
position: absolute;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import tabs_underline_indicator_module_default from "./tabs-underline-indicator.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-underline/tabs-underline-indicator.tsx
|
|
6
|
+
function TabsUnderlineIndicator(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsUnderlineIndicatorVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Indicator, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-underline-indicator",
|
|
12
|
+
renderBeforeHydration: true,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const tabsUnderlineIndicatorVariants = cva(tabs_underline_indicator_module_default.tabs_underline_indicator);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabsUnderlineIndicator, tabsUnderlineIndicatorVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-underline-indicator.css';
|
|
2
|
+
//#region src/components/tabs-underline/tabs-underline-indicator.module.css
|
|
3
|
+
var tabs_underline_indicator_module_default = { "tabs_underline_indicator": "tabs-underline-indicator-module_tabs_underline_indicator_Gl55Ba" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_underline_indicator_module_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-underline/tabs-underline-list.d.ts
|
|
4
|
+
interface TabsUnderlineListProps extends Tabs.List.Props {}
|
|
5
|
+
declare function TabsUnderlineList(props: TabsUnderlineListProps): JSX.Element;
|
|
6
|
+
declare const tabsUnderlineListVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TabsUnderlineList, TabsUnderlineListProps, tabsUnderlineListVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TabsUnderlineIndicator } from "./tabs-underline-indicator.js";
|
|
2
|
+
import tabs_underline_list_module_default from "./tabs-underline-list.module.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Tabs } from "@base-ui/react";
|
|
6
|
+
//#region src/components/tabs-underline/tabs-underline-list.tsx
|
|
7
|
+
function TabsUnderlineList(props) {
|
|
8
|
+
const { className: customClassName = "", children = "", ...rest } = props;
|
|
9
|
+
const combinedClassName = tabsUnderlineListVariants({ className: customClassName });
|
|
10
|
+
return /* @__PURE__ */ jsxs(Tabs.List, {
|
|
11
|
+
className: combinedClassName,
|
|
12
|
+
"data-slot": "tabs-underline-list",
|
|
13
|
+
...rest,
|
|
14
|
+
children: [children, /* @__PURE__ */ jsx(TabsUnderlineIndicator, {})]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const tabsUnderlineListVariants = cva(tabs_underline_list_module_default.tabs_underline_list);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { TabsUnderlineList, tabsUnderlineListVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-underline-list.css';
|
|
2
|
+
//#region src/components/tabs-underline/tabs-underline-list.module.css
|
|
3
|
+
var tabs_underline_list_module_default = { "tabs_underline_list": "tabs-underline-list-module_tabs_underline_list_3MpMpG" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_underline_list_module_default as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.tabs-underline-tab-module_tabs_underline_tab_lcqfQW {
|
|
3
|
+
color: var(--color-gray-11);
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
outline-color: var(--color-primary-9);
|
|
6
|
+
outline-offset: -2px;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
outline-width: 0;
|
|
10
|
+
outline-style: solid;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
align-items: center;
|
|
13
|
+
column-gap: 8px;
|
|
14
|
+
margin-bottom: 6px;
|
|
15
|
+
padding: 6px 12px;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
transition-property: color;
|
|
19
|
+
transition-duration: .15s;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tabs-underline-tab-module_tabs_underline_tab_lcqfQW:focus-visible {
|
|
24
|
+
outline-width: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tabs-underline-tab-module_tabs_underline_tab_lcqfQW:hover, .tabs-underline-tab-module_tabs_underline_tab_lcqfQW[data-active] {
|
|
28
|
+
color: var(--color-gray-12);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tabs-underline-tab-module_tabs_underline_tab_lcqfQW > svg {
|
|
32
|
+
--size-icon: 16px;
|
|
33
|
+
height: var(--size-icon);
|
|
34
|
+
width: var(--size-icon);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tabs } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/tabs-underline/tabs-underline-tab.d.ts
|
|
4
|
+
interface TabsUnderlineTabProps extends Omit<Tabs.Tab.Props, "nativeButton"> {
|
|
5
|
+
isNativeButton?: Tabs.Tab.Props["nativeButton"];
|
|
6
|
+
}
|
|
7
|
+
declare function TabsUnderlineTab(props: TabsUnderlineTabProps): JSX.Element;
|
|
8
|
+
declare const tabsUnderlineTabVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { TabsUnderlineTab, TabsUnderlineTabProps, tabsUnderlineTabVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import tabs_underline_tab_module_default from "./tabs-underline-tab.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Tabs } from "@base-ui/react";
|
|
5
|
+
//#region src/components/tabs-underline/tabs-underline-tab.tsx
|
|
6
|
+
function TabsUnderlineTab(props) {
|
|
7
|
+
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
8
|
+
const combinedClassName = tabsUnderlineTabVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(Tabs.Tab, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "tabs-underline-tab",
|
|
12
|
+
nativeButton: isNativeButton,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const tabsUnderlineTabVariants = cva(tabs_underline_tab_module_default.tabs_underline_tab);
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TabsUnderlineTab, tabsUnderlineTabVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './tabs-underline-tab.css';
|
|
2
|
+
//#region src/components/tabs-underline/tabs-underline-tab.module.css
|
|
3
|
+
var tabs_underline_tab_module_default = { "tabs_underline_tab": "tabs-underline-tab-module_tabs_underline_tab_lcqfQW" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tabs_underline_tab_module_default as default };
|