@nattstack/ui 0.0.84 → 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 -1181
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Menu } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/menu/menu-trigger.d.ts
|
|
4
|
+
interface MenuTriggerProps extends Menu.Trigger.Props {}
|
|
5
|
+
declare function MenuTrigger(props: MenuTriggerProps): JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { MenuTrigger, MenuTriggerProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Menu } from "@base-ui/react";
|
|
3
|
+
//#region src/components/menu/menu-trigger.tsx
|
|
4
|
+
function MenuTrigger(props) {
|
|
5
|
+
const { ...rest } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
7
|
+
"data-slot": "menu-trigger",
|
|
8
|
+
...rest
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MenuTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Menu } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/menu/menu-viewport.d.ts
|
|
4
|
+
interface MenuViewportProps extends Omit<Menu.Viewport.Props, "className"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function MenuViewport(props: MenuViewportProps): JSX.Element;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { MenuViewport, MenuViewportProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MENU_CLASS_NAME } from "./menu-class-names.js";
|
|
2
|
+
import { cx } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Menu } from "@base-ui/react";
|
|
5
|
+
//#region src/components/menu/menu-viewport.tsx
|
|
6
|
+
function MenuViewport(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = cx(MENU_CLASS_NAME.VIEWPORT, customClassName);
|
|
9
|
+
return /* @__PURE__ */ jsx(Menu.Viewport, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
"data-slot": "menu-viewport",
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { MenuViewport };
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.menu-module_menu_trigger_7pJHya {
|
|
3
|
+
background-color: var(--color-gray-2);
|
|
4
|
+
box-shadow: 0 0 0 1px var(--color-gray-4) inset;
|
|
5
|
+
color: var(--color-text-primary);
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-family: var(--font-body);
|
|
8
|
+
outline-color: var(--color-primary-9);
|
|
9
|
+
outline-offset: 2px;
|
|
10
|
+
user-select: none;
|
|
11
|
+
background-image: linear-gradient(oklab(0% none none / 0) 50%, oklab(0% none none / .0196078) 50%);
|
|
12
|
+
border-style: none;
|
|
13
|
+
border-radius: 10px;
|
|
14
|
+
outline-width: 0;
|
|
15
|
+
outline-style: solid;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
justify-content: safe center;
|
|
18
|
+
align-items: safe center;
|
|
19
|
+
column-gap: 8px;
|
|
20
|
+
width: max-content;
|
|
21
|
+
height: 40px;
|
|
22
|
+
padding: 0 14px;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
transition-property: background-color, opacity, translate;
|
|
27
|
+
transition-duration: .15s;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.menu-module_menu_trigger_7pJHya:hover:not(:disabled), .menu-module_menu_trigger_7pJHya[data-popup-open] {
|
|
33
|
+
background-color: var(--color-gray-3);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.menu-module_menu_trigger_7pJHya:active:not(:disabled), .menu-module_menu_trigger_7pJHya[data-pressed] {
|
|
37
|
+
translate: 0 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.menu-module_menu_trigger_7pJHya:disabled {
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
opacity: .5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.menu-module_menu_trigger_7pJHya:focus-visible {
|
|
46
|
+
outline-width: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.menu-module_menu_trigger_7pJHya > svg {
|
|
50
|
+
--size-icon: 16px;
|
|
51
|
+
height: var(--size-icon);
|
|
52
|
+
width: var(--size-icon);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dark .menu-module_menu_trigger_7pJHya {
|
|
56
|
+
background-image: linear-gradient(oklab(100% 0 5.96046e-8 / .00990099) 50%, oklab(0% 0 0 / 0) 50%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.menu-module_menu_content_positioner_7pJHya {
|
|
60
|
+
isolation: isolate;
|
|
61
|
+
z-index: 50;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.menu-module_menu_content_7pJHya {
|
|
65
|
+
background-color: var(--color-bg-shell-inner);
|
|
66
|
+
box-shadow: 0 0 0 1px var(--color-border) inset,
|
|
67
|
+
0 16px 32px oklab(0% none none / .16);
|
|
68
|
+
color: var(--color-text-primary);
|
|
69
|
+
font-family: var(--font-body);
|
|
70
|
+
max-height: min(var(--available-height), 480px);
|
|
71
|
+
max-width: min(var(--available-width), 320px);
|
|
72
|
+
outline-color: var(--color-primary-9);
|
|
73
|
+
outline-offset: -2px;
|
|
74
|
+
min-width: 180px;
|
|
75
|
+
transform-origin: var(--transform-origin);
|
|
76
|
+
will-change: opacity, transform;
|
|
77
|
+
border-radius: 12px;
|
|
78
|
+
outline-width: 0;
|
|
79
|
+
outline-style: solid;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
padding: 4px;
|
|
82
|
+
transition-property: opacity, transform;
|
|
83
|
+
transition-duration: .15s;
|
|
84
|
+
display: flex;
|
|
85
|
+
overflow: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.menu-module_menu_content_7pJHya:focus-visible {
|
|
89
|
+
outline-width: 2px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.menu-module_menu_content_7pJHya[data-ending-style], .menu-module_menu_content_7pJHya[data-starting-style] {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: scale(.975);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.menu-module_menu_content_7pJHya[data-side="top"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="top"][data-starting-style] {
|
|
98
|
+
transform: scale(.975) translateY(4px);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.menu-module_menu_content_7pJHya[data-side="bottom"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="bottom"][data-starting-style] {
|
|
102
|
+
transform: scale(.975) translateY(-4px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.menu-module_menu_content_7pJHya[data-side="left"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="left"][data-starting-style], .menu-module_menu_content_7pJHya[data-side="inline-start"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="inline-start"][data-starting-style] {
|
|
106
|
+
transform: scale(.975) translateX(4px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.menu-module_menu_content_7pJHya[data-side="right"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="right"][data-starting-style], .menu-module_menu_content_7pJHya[data-side="inline-end"][data-ending-style], .menu-module_menu_content_7pJHya[data-side="inline-end"][data-starting-style] {
|
|
110
|
+
transform: scale(.975) translateX(-4px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.menu-module_menu_content_arrow_7pJHya {
|
|
114
|
+
color: var(--color-bg-primary);
|
|
115
|
+
display: flex;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.menu-module_menu_content_arrow__icon_7pJHya {
|
|
119
|
+
fill: currentColor;
|
|
120
|
+
filter: drop-shadow(0 -1px 0 var(--color-border));
|
|
121
|
+
display: block;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.menu-module_menu_content_arrow_7pJHya[data-side="top"] {
|
|
125
|
+
rotate: 180deg;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.menu-module_menu_content_arrow_7pJHya[data-side="left"], .menu-module_menu_content_arrow_7pJHya[data-side="inline-start"] {
|
|
129
|
+
rotate: 90deg;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.menu-module_menu_content_arrow_7pJHya[data-side="right"], .menu-module_menu_content_arrow_7pJHya[data-side="inline-end"] {
|
|
133
|
+
rotate: -90deg;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.menu-module_menu_checkbox_item_7pJHya, .menu-module_menu_item_7pJHya, .menu-module_menu_link_item_7pJHya, .menu-module_menu_radio_item_7pJHya, .menu-module_menu_submenu_trigger_7pJHya {
|
|
137
|
+
color: var(--color-text-primary);
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
user-select: none;
|
|
140
|
+
border-radius: 8px;
|
|
141
|
+
outline: none;
|
|
142
|
+
align-items: safe center;
|
|
143
|
+
column-gap: 8px;
|
|
144
|
+
min-height: 32px;
|
|
145
|
+
padding: 0 8px;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
line-height: 1.5;
|
|
149
|
+
text-decoration: none;
|
|
150
|
+
display: flex;
|
|
151
|
+
position: relative;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.menu-module_menu_checkbox_item_7pJHya[data-highlighted], .menu-module_menu_item_7pJHya[data-highlighted], .menu-module_menu_link_item_7pJHya[data-highlighted], .menu-module_menu_radio_item_7pJHya[data-highlighted], .menu-module_menu_submenu_trigger_7pJHya[data-highlighted], .menu-module_menu_submenu_trigger_7pJHya[data-popup-open] {
|
|
155
|
+
background-color: var(--color-gray-3);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.menu-module_menu_checkbox_item_7pJHya[data-disabled], .menu-module_menu_item_7pJHya[data-disabled], .menu-module_menu_radio_item_7pJHya[data-disabled], .menu-module_menu_submenu_trigger_7pJHya[data-disabled] {
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
opacity: .5;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.menu-module_menu_item__icon_7pJHya, .menu-module_menu_item__indicator_7pJHya {
|
|
164
|
+
color: var(--color-text-secondary);
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
justify-content: safe center;
|
|
167
|
+
align-items: safe center;
|
|
168
|
+
width: 16px;
|
|
169
|
+
height: 16px;
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.menu-module_menu_item__indicator_7pJHya {
|
|
174
|
+
color: var(--color-primary-9);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.menu-module_menu_item__icon_7pJHya > svg, .menu-module_menu_item__indicator_7pJHya > svg {
|
|
178
|
+
width: 16px;
|
|
179
|
+
height: 16px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.menu-module_menu_item__label_7pJHya {
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
flex: auto;
|
|
186
|
+
min-width: 0;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.menu-module_menu_group_7pJHya, .menu-module_menu_radio_group_7pJHya, .menu-module_menu_viewport_7pJHya {
|
|
191
|
+
flex-direction: column;
|
|
192
|
+
display: flex;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.menu-module_menu_group_label_7pJHya {
|
|
196
|
+
color: var(--color-text-secondary);
|
|
197
|
+
padding: 6px 8px 4px;
|
|
198
|
+
font-size: 12px;
|
|
199
|
+
font-weight: 600;
|
|
200
|
+
line-height: 1.5;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.menu-module_menu_separator_7pJHya {
|
|
204
|
+
background-color: var(--color-border);
|
|
205
|
+
flex-shrink: 0;
|
|
206
|
+
height: 1px;
|
|
207
|
+
margin: 4px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Menu } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/menu/menu.d.ts
|
|
4
|
+
interface MenuProps extends Omit<Menu.Root.Props, "disabled" | "onOpenChange" | "open"> {
|
|
5
|
+
isDisabled?: Menu.Root.Props["disabled"];
|
|
6
|
+
isOpen?: Menu.Root.Props["open"];
|
|
7
|
+
onIsOpenChange?: Menu.Root.Props["onOpenChange"];
|
|
8
|
+
}
|
|
9
|
+
declare function Menu$1(props: MenuProps): JSX.Element;
|
|
10
|
+
declare const createMenuHandle: typeof Menu.createHandle;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Menu$1 as Menu, MenuProps, createMenuHandle };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Menu } from "@base-ui/react";
|
|
3
|
+
//#region src/components/menu/menu.tsx
|
|
4
|
+
function Menu$1(props) {
|
|
5
|
+
const { isDisabled = false, isOpen = void 0, onIsOpenChange = void 0, ...rest } = props;
|
|
6
|
+
return /* @__PURE__ */ jsx(Menu.Root, {
|
|
7
|
+
"data-slot": "menu",
|
|
8
|
+
disabled: isDisabled,
|
|
9
|
+
onOpenChange: onIsOpenChange,
|
|
10
|
+
open: isOpen,
|
|
11
|
+
...rest
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const createMenuHandle = Menu.createHandle;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Menu$1 as Menu, createMenuHandle };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './menu.css';
|
|
2
|
+
//#region src/components/menu/menu.module.css
|
|
3
|
+
var menu_module_default = {
|
|
4
|
+
"menu_checkbox_item": "menu-module_menu_checkbox_item_7pJHya",
|
|
5
|
+
"menu_content": "menu-module_menu_content_7pJHya",
|
|
6
|
+
"menu_content_arrow": "menu-module_menu_content_arrow_7pJHya",
|
|
7
|
+
"menu_content_arrow__icon": "menu-module_menu_content_arrow__icon_7pJHya",
|
|
8
|
+
"menu_content_positioner": "menu-module_menu_content_positioner_7pJHya",
|
|
9
|
+
"menu_group": "menu-module_menu_group_7pJHya",
|
|
10
|
+
"menu_group_label": "menu-module_menu_group_label_7pJHya",
|
|
11
|
+
"menu_item": "menu-module_menu_item_7pJHya",
|
|
12
|
+
"menu_item__icon": "menu-module_menu_item__icon_7pJHya",
|
|
13
|
+
"menu_item__indicator": "menu-module_menu_item__indicator_7pJHya",
|
|
14
|
+
"menu_item__label": "menu-module_menu_item__label_7pJHya",
|
|
15
|
+
"menu_link_item": "menu-module_menu_link_item_7pJHya",
|
|
16
|
+
"menu_radio_group": "menu-module_menu_radio_group_7pJHya",
|
|
17
|
+
"menu_radio_item": "menu-module_menu_radio_item_7pJHya",
|
|
18
|
+
"menu_separator": "menu-module_menu_separator_7pJHya",
|
|
19
|
+
"menu_submenu_trigger": "menu-module_menu_submenu_trigger_7pJHya",
|
|
20
|
+
"menu_trigger": "menu-module_menu_trigger_7pJHya",
|
|
21
|
+
"menu_viewport": "menu-module_menu_viewport_7pJHya"
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { menu_module_default as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.otp-field-input-module_otp_field_input_7VaNVa {
|
|
3
|
+
background-color: var(--color-gray-3);
|
|
4
|
+
box-shadow: 0 0 0 1px var(--color-border) inset;
|
|
5
|
+
color: var(--color-text-primary);
|
|
6
|
+
font-family: var(--font-body);
|
|
7
|
+
outline-color: var(--color-outline);
|
|
8
|
+
outline-offset: -2px;
|
|
9
|
+
text-align: center;
|
|
10
|
+
border-radius: 14px;
|
|
11
|
+
outline-width: 0;
|
|
12
|
+
outline-style: solid;
|
|
13
|
+
width: 40px;
|
|
14
|
+
height: 48px;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
transition-property: box-shadow;
|
|
18
|
+
transition-duration: .15s;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.otp-field-input-module_otp_field_input_7VaNVa:enabled:hover {
|
|
22
|
+
box-shadow: 0 0 0 1px var(--color-gray-6) inset;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.otp-field-input-module_otp_field_input_7VaNVa:disabled {
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
opacity: .5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.otp-field-input-module_otp_field_input_7VaNVa:focus-visible {
|
|
31
|
+
outline-width: 2px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OTPField } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/otp-field/otp-field-input.d.ts
|
|
4
|
+
interface OTPFieldInputProps extends OTPField.Input.Props {}
|
|
5
|
+
declare function OTPFieldInput(props: OTPFieldInputProps): JSX.Element;
|
|
6
|
+
declare const otpFieldInputVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { OTPFieldInput, otpFieldInputVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import otp_field_input_module_default from "./otp-field-input.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { OTPField } from "@base-ui/react";
|
|
5
|
+
//#region src/components/otp-field/otp-field-input.tsx
|
|
6
|
+
function OTPFieldInput(props) {
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
8
|
+
const combinedClassName = otpFieldInputVariants({ className: customClassName });
|
|
9
|
+
return /* @__PURE__ */ jsx(OTPField.Input, {
|
|
10
|
+
className: combinedClassName,
|
|
11
|
+
...rest
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const otpFieldInputVariants = cva(otp_field_input_module_default.otp_field_input);
|
|
15
|
+
//#endregion
|
|
16
|
+
export { OTPFieldInput, otpFieldInputVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './otp-field-input.css';
|
|
2
|
+
//#region src/components/otp-field/otp-field-input.module.css
|
|
3
|
+
var otp_field_input_module_default = { "otp_field_input": "otp-field-input-module_otp_field_input_7VaNVa" };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { otp_field_input_module_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.otp-field-module_otp_field_6ylpka {
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.otp-field-module_otp_field__masked_6ylpka > input {
|
|
11
|
+
font-family: var(--font-code);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OTPField } from "@base-ui/react";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
//#region src/components/otp-field/otp-field.d.ts
|
|
4
|
+
interface OTPFieldProps extends Omit<OTPField.Root.Props, "disabled"> {
|
|
5
|
+
isDisabled?: OTPField.Root.Props["disabled"];
|
|
6
|
+
isMasked?: OTPField.Root.Props["mask"];
|
|
7
|
+
}
|
|
8
|
+
declare function OTPField$1(props: OTPFieldProps): JSX.Element;
|
|
9
|
+
declare const otpFieldVariants: (props?: ({
|
|
10
|
+
isMasked?: boolean | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { OTPField$1 as OTPField, otpFieldVariants };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import otp_field_module_default from "./otp-field.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { OTPField } from "@base-ui/react";
|
|
5
|
+
//#region src/components/otp-field/otp-field.tsx
|
|
6
|
+
function OTPField$1(props) {
|
|
7
|
+
const { className: customClassName = "", isDisabled = false, isMasked = false, ...rest } = props;
|
|
8
|
+
const combinedClassName = otpFieldVariants({
|
|
9
|
+
className: customClassName,
|
|
10
|
+
isMasked
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ jsx(OTPField.Root, {
|
|
13
|
+
className: combinedClassName,
|
|
14
|
+
disabled: isDisabled,
|
|
15
|
+
mask: isMasked,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const otpFieldVariants = cva(otp_field_module_default.otp_field, {
|
|
20
|
+
defaultVariants: { isMasked: false },
|
|
21
|
+
variants: { isMasked: {
|
|
22
|
+
false: "",
|
|
23
|
+
true: otp_field_module_default.otp_field__masked
|
|
24
|
+
} }
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { OTPField$1 as OTPField, otpFieldVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './otp-field.css';
|
|
2
|
+
//#region src/components/otp-field/otp-field.module.css
|
|
3
|
+
var otp_field_module_default = {
|
|
4
|
+
"otp_field": "otp-field-module_otp_field_6ylpka",
|
|
5
|
+
"otp_field__masked": "otp-field-module_otp_field__masked_6ylpka"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { otp_field_module_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSProperties, ComponentProps, ElementType, JSX } from "react";
|
|
2
|
+
//#region src/components/row/row.d.ts
|
|
3
|
+
type RowProps<ComponentType extends ElementType = "div"> = ComponentProps<ComponentType> & RowInternalProps;
|
|
4
|
+
interface RowInternalProps {
|
|
5
|
+
alignItems?: CSSProperties["alignItems"];
|
|
6
|
+
as?: keyof JSX.IntrinsicElements;
|
|
7
|
+
flexWrap?: CSSProperties["flexWrap"];
|
|
8
|
+
gap?: CSSProperties["gap"];
|
|
9
|
+
gapX?: CSSProperties["columnGap"];
|
|
10
|
+
gapY?: CSSProperties["rowGap"];
|
|
11
|
+
justifyContent?: CSSProperties["justifyContent"];
|
|
12
|
+
}
|
|
13
|
+
declare function Row(props: RowProps): JSX.Element;
|
|
14
|
+
declare const rowVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Row, RowProps, rowVariants };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import row_module_default from "./row.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { createElement } from "react";
|
|
4
|
+
//#region src/components/row/row.tsx
|
|
5
|
+
function Row(props) {
|
|
6
|
+
const { alignItems = void 0, as = "div", className: customClassName = "", flexWrap = void 0, gap = void 0, gapX = void 0, gapY = void 0, justifyContent = void 0, style: customStyle, ...rest } = props;
|
|
7
|
+
return createElement(as, {
|
|
8
|
+
className: rowVariants({ className: customClassName }),
|
|
9
|
+
style: {
|
|
10
|
+
...customStyle,
|
|
11
|
+
...gap === void 0 ? {} : { gap },
|
|
12
|
+
...gapX === void 0 ? {} : { columnGap: gapX },
|
|
13
|
+
...gapY === void 0 ? {} : { rowGap: gapY },
|
|
14
|
+
...flexWrap === void 0 ? {} : { flexWrap },
|
|
15
|
+
...alignItems === void 0 ? {} : { alignItems },
|
|
16
|
+
...justifyContent === void 0 ? {} : { justifyContent }
|
|
17
|
+
},
|
|
18
|
+
...rest
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const rowVariants = cva(row_module_default.row);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Row, rowVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties, ComponentProps, JSX } from "react";
|
|
2
|
+
//#region src/components/spacer/spacer.d.ts
|
|
3
|
+
interface SpacerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
4
|
+
height?: CSSProperties["height"];
|
|
5
|
+
width?: CSSProperties["width"];
|
|
6
|
+
}
|
|
7
|
+
declare function Spacer(props: SpacerProps): JSX.Element;
|
|
8
|
+
declare const spacerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Spacer, SpacerProps, spacerVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import spacer_module_default from "./spacer.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/spacer/spacer.tsx
|
|
5
|
+
function Spacer(props) {
|
|
6
|
+
const { className: customClassName = "", height, style: customStyle, width, ...rest } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
className: spacerVariants({ className: customClassName }),
|
|
9
|
+
style: {
|
|
10
|
+
...customStyle,
|
|
11
|
+
...width === void 0 ? {} : { width },
|
|
12
|
+
...height === void 0 ? {} : { height }
|
|
13
|
+
},
|
|
14
|
+
...rest
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const spacerVariants = cva(spacer_module_default.spacer);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Spacer, spacerVariants };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.switch-module_switch_K0d9Sa {
|
|
3
|
+
background-color: var(--color-gray-6);
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
outline-color: var(--color-primary-9);
|
|
6
|
+
outline-offset: 2px;
|
|
7
|
+
border-radius: 9999px;
|
|
8
|
+
outline-width: 0;
|
|
9
|
+
outline-style: solid;
|
|
10
|
+
padding: 2px;
|
|
11
|
+
transition-property: background-color;
|
|
12
|
+
transition-duration: .15s;
|
|
13
|
+
display: flex;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.switch-module_switch_K0d9Sa:focus-visible {
|
|
18
|
+
outline-width: 2px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.switch-module_switch_K0d9Sa[data-checked] {
|
|
22
|
+
background-color: var(--color-primary-9);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.switch-module_switch_K0d9Sa[data-disabled] {
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
opacity: .5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.switch-module_switch__thumb_K0d9Sa {
|
|
31
|
+
aspect-ratio: 1;
|
|
32
|
+
background-color: #fff;
|
|
33
|
+
border-radius: 9999px;
|
|
34
|
+
height: 100%;
|
|
35
|
+
transition-property: transform;
|
|
36
|
+
transition-duration: .15s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.switch-module_switch__thumb_K0d9Sa[data-checked] {
|
|
40
|
+
transform: translateX(var(--translateX));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.switch-module_switch__size_18_K0d9Sa {
|
|
44
|
+
--translateX: 12px;
|
|
45
|
+
width: 30px;
|
|
46
|
+
height: 18px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.switch-module_switch__size_24_K0d9Sa {
|
|
50
|
+
--translateX: 16px;
|
|
51
|
+
width: 40px;
|
|
52
|
+
height: 24px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { Switch } from "@base-ui/react";
|
|
3
|
+
import { ComponentProps, JSX } from "react";
|
|
4
|
+
//#region src/components/switch/switch.d.ts
|
|
5
|
+
interface SwitchProps extends Omit<ComponentProps<typeof Switch.Root>, "checked" | "defaultChecked" | "disabled" | "nativeButton" | "readOnly" | "required"> {
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
isDefaultChecked?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isReadOnly?: boolean;
|
|
10
|
+
isRequired?: boolean;
|
|
11
|
+
size?: SwitchSize;
|
|
12
|
+
}
|
|
13
|
+
type SwitchSize = NonNullable<VariantProps<typeof switchVariants>["size"]>;
|
|
14
|
+
declare function Switch$1(props: SwitchProps): JSX.Element;
|
|
15
|
+
declare const switchVariants: (props?: ({
|
|
16
|
+
size?: 18 | 24 | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Switch$1 as Switch, SwitchProps, switchVariants };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import switch_module_default from "./switch.module.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Switch } from "@base-ui/react";
|
|
5
|
+
//#region src/components/switch/switch.tsx
|
|
6
|
+
function Switch$1(props) {
|
|
7
|
+
const { className: customClassName = "", isChecked = void 0, isDefaultChecked = false, isDisabled = false, isReadOnly = false, isRequired = false, size = 24, ...rest } = props;
|
|
8
|
+
const combinedClassName = switchVariants({
|
|
9
|
+
className: customClassName,
|
|
10
|
+
size
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ jsx(Switch.Root, {
|
|
13
|
+
checked: isChecked,
|
|
14
|
+
className: combinedClassName,
|
|
15
|
+
defaultChecked: isDefaultChecked,
|
|
16
|
+
disabled: isDisabled,
|
|
17
|
+
readOnly: isReadOnly,
|
|
18
|
+
required: isRequired,
|
|
19
|
+
...rest,
|
|
20
|
+
children: /* @__PURE__ */ jsx(Switch.Thumb, { className: switch_module_default.switch__thumb })
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const switchVariants = cva(switch_module_default.switch, {
|
|
24
|
+
defaultVariants: { size: 24 },
|
|
25
|
+
variants: { size: {
|
|
26
|
+
18: switch_module_default.switch__size_18,
|
|
27
|
+
24: switch_module_default.switch__size_24
|
|
28
|
+
} }
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { Switch$1 as Switch, switchVariants };
|