@nattstack/ui 0.0.2 → 0.0.4
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.module-77AJOXGM.module.css → button.module-7VWY2WUV.module.css} +15 -8
- package/dist/components/{dialog-responsive-backdrop.module-UZSAJFQZ.module.css → dialog-responsive-backdrop.module-O336AARV.module.css} +0 -1
- package/dist/components/{dialog-responsive-popup.module-T3GCUCPZ.module.css → dialog-responsive-popup.module-BOEQIHJ7.module.css} +2 -1
- package/dist/components/index.d.ts +23 -23
- package/dist/components/index.js +136 -153
- package/dist/components/{label.module-HUBUIUFV.module.css → label.module-NYFSR6AT.module.css} +2 -2
- package/dist/components/{tabs-pill-tab.module-M5YIWTWX.module.css → tabs-pill-tab.module-2F7LOGXE.module.css} +7 -0
- package/dist/components/{tabs-segmented-indicator.module-MB5GZJGW.module.css → tabs-segmented-indicator.module-EG56DHS2.module.css} +1 -1
- package/dist/components/{tabs-segmented-tab.module-GFCOY63Z.module.css → tabs-segmented-tab.module-SVYVEM2O.module.css} +7 -0
- package/dist/components/{tabs-underline-tab.module-YGSM4IUK.module.css → tabs-underline-tab.module-OAE4JH7K.module.css} +7 -0
- package/dist/components/{textarea.module-6GUVSFC7.module.css → textarea.module-LK25MKCZ.module.css} +2 -1
- package/dist/components/tooltip-content.module-QGRFS5NN.module.css +18 -0
- package/package.json +1 -1
- package/dist/components/dialog-responsive-content.module-NBSLRMHN.module.css +0 -11
- package/dist/components/tooltip-content.module-5MWTMSBY.module.css +0 -13
package/dist/components/{button.module-77AJOXGM.module.css → button.module-7VWY2WUV.module.css}
RENAMED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: var(--font-sans, sans-serif);
|
|
12
12
|
font-size: 14px;
|
|
13
13
|
font-weight: 500;
|
|
14
|
-
height: var(--size);
|
|
14
|
+
height: var(--size-button);
|
|
15
15
|
justify-content: safe center;
|
|
16
16
|
line-height: 1.5;
|
|
17
17
|
outline-color: var(--color-primary-9);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
outline-width: 0px;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
transition-duration: 150ms;
|
|
23
|
-
transition-property: background-color,
|
|
23
|
+
transition-property: background-color, opacity, translate;
|
|
24
24
|
user-select: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -41,11 +41,18 @@
|
|
|
41
41
|
outline-width: 2px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/* Icon size */
|
|
45
|
+
.button > svg {
|
|
46
|
+
--size-icon: 18px;
|
|
47
|
+
height: var(--size-icon);
|
|
48
|
+
width: var(--size-icon);
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
/* ===================================================== */
|
|
45
52
|
/* Icon only */
|
|
46
53
|
/* ===================================================== */
|
|
47
54
|
.button__icon_only {
|
|
48
|
-
width: var(--size) !important;
|
|
55
|
+
width: var(--size-button) !important;
|
|
49
56
|
padding: 0 !important;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -64,31 +71,31 @@
|
|
|
64
71
|
/* Size */
|
|
65
72
|
/* ===================================================== */
|
|
66
73
|
.button__size_32 {
|
|
67
|
-
--size: 32px;
|
|
74
|
+
--size-button: 32px;
|
|
68
75
|
padding: 0 10px;
|
|
69
76
|
border-radius: 8px;
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
.button__size_36 {
|
|
73
|
-
--size: 36px;
|
|
80
|
+
--size-button: 36px;
|
|
74
81
|
padding: 0 12px;
|
|
75
82
|
border-radius: 10px;
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
.button__size_40 {
|
|
79
|
-
--size: 40px;
|
|
86
|
+
--size-button: 40px;
|
|
80
87
|
padding: 0 14px;
|
|
81
88
|
border-radius: 12px;
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
.button__size_44 {
|
|
85
|
-
--size: 44px;
|
|
92
|
+
--size-button: 44px;
|
|
86
93
|
padding: 0 16px;
|
|
87
94
|
border-radius: 14px;
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
.button__size_48 {
|
|
91
|
-
--size: 48px;
|
|
98
|
+
--size-button: 48px;
|
|
92
99
|
padding: 0 18px;
|
|
93
100
|
border-radius: 16px;
|
|
94
101
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
outline-offset: -4px;
|
|
10
10
|
outline-style: solid;
|
|
11
11
|
outline-width: 0;
|
|
12
|
+
padding: 16px;
|
|
12
13
|
transition-duration: 150ms;
|
|
13
14
|
transition-property: opacity, transform;
|
|
14
15
|
width: 100%;
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
@media (max-width: 640px) {
|
|
35
36
|
.dialog_responsive_popup {
|
|
36
37
|
--radius-mobile: 24px;
|
|
37
|
-
|
|
38
38
|
border-bottom-left-radius: 0;
|
|
39
39
|
border-bottom-right-radius: 0;
|
|
40
40
|
border-top-left-radius: var(--radius-mobile);
|
|
41
41
|
border-top-right-radius: var(--radius-mobile);
|
|
42
|
+
padding-top: 0;
|
|
42
43
|
transform: translateY(var(--drawer-swipe-movement-y));
|
|
43
44
|
transition-duration: 450ms;
|
|
44
45
|
transition-property: transform;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode, JSX, ElementType, CSSProperties } from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { Drawer, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from '@base-ui/react';
|
|
4
3
|
|
|
5
4
|
interface ButtonIconProps extends ButtonInternalProps {
|
|
@@ -9,7 +8,7 @@ interface ButtonIconProps extends ButtonInternalProps {
|
|
|
9
8
|
isIconOnly: true;
|
|
10
9
|
}
|
|
11
10
|
interface ButtonProps extends ButtonInternalProps {
|
|
12
|
-
children?: string | string[];
|
|
11
|
+
children?: number | number[] | string | string[];
|
|
13
12
|
isIconOnly?: false;
|
|
14
13
|
}
|
|
15
14
|
interface ButtonInternalProps extends Omit<ComponentProps<"button">, "aria-pressed" | "disabled"> {
|
|
@@ -77,18 +76,18 @@ interface DialogResponsiveProps extends Omit<Drawer.Root.Props, "onOpenChange" |
|
|
|
77
76
|
isOpen?: Drawer.Root.Props["open"];
|
|
78
77
|
onIsOpenChange?: Drawer.Root.Props["onOpenChange"];
|
|
79
78
|
}
|
|
80
|
-
declare function DialogResponsive(props: DialogResponsiveProps):
|
|
79
|
+
declare function DialogResponsive(props: DialogResponsiveProps): JSX.Element;
|
|
81
80
|
|
|
82
|
-
interface
|
|
81
|
+
interface DialogResponsivePopupProps extends Drawer.Popup.Props {
|
|
83
82
|
}
|
|
84
|
-
declare function
|
|
85
|
-
declare const
|
|
83
|
+
declare function DialogResponsivePopup(props: DialogResponsivePopupProps): JSX.Element;
|
|
84
|
+
declare const DIALOG_RESPONSIVE_POPUP_CLASS_NAME: {
|
|
86
85
|
readonly BASE: string;
|
|
87
86
|
};
|
|
88
87
|
|
|
89
88
|
interface DialogResponsiveTriggerProps extends Drawer.Trigger.Props {
|
|
90
89
|
}
|
|
91
|
-
declare function DialogResponsiveTrigger(props: DialogResponsiveTriggerProps):
|
|
90
|
+
declare function DialogResponsiveTrigger(props: DialogResponsiveTriggerProps): JSX.Element;
|
|
92
91
|
|
|
93
92
|
interface InputProps extends Omit<ComponentProps<"input">, "aria-pressed" | "disabled" | "readOnly" | "required"> {
|
|
94
93
|
isActive?: boolean;
|
|
@@ -143,7 +142,7 @@ interface SpacerProps extends Omit<ComponentProps<"div">, "children"> {
|
|
|
143
142
|
height?: CSSProperties["height"];
|
|
144
143
|
width?: CSSProperties["width"];
|
|
145
144
|
}
|
|
146
|
-
declare function Spacer(props: SpacerProps):
|
|
145
|
+
declare function Spacer(props: SpacerProps): JSX.Element;
|
|
147
146
|
declare const SPACER_CLASS_NAME: {
|
|
148
147
|
readonly BASE: string;
|
|
149
148
|
};
|
|
@@ -167,7 +166,7 @@ declare const SWITCH_CLASS_NAME: {
|
|
|
167
166
|
|
|
168
167
|
interface TabsPillListProps extends Tabs$1.List.Props {
|
|
169
168
|
}
|
|
170
|
-
declare function TabsPillList(props: TabsPillListProps):
|
|
169
|
+
declare function TabsPillList(props: TabsPillListProps): JSX.Element;
|
|
171
170
|
declare const TABS_PILL_LIST_CLASS_NAME: {
|
|
172
171
|
readonly BASE: string;
|
|
173
172
|
};
|
|
@@ -175,7 +174,7 @@ declare const TABS_PILL_LIST_CLASS_NAME: {
|
|
|
175
174
|
interface TabsPillTabProps extends Omit<Tabs$1.Tab.Props, "nativeButton"> {
|
|
176
175
|
isNativeButton?: Tabs$1.Tab.Props["nativeButton"];
|
|
177
176
|
}
|
|
178
|
-
declare function TabsPillTab(props: TabsPillTabProps):
|
|
177
|
+
declare function TabsPillTab(props: TabsPillTabProps): JSX.Element;
|
|
179
178
|
declare const TABS_PILL_TAB_CLASS_NAME: {
|
|
180
179
|
readonly BACKGROUND: string;
|
|
181
180
|
readonly BASE: string;
|
|
@@ -184,7 +183,7 @@ declare const TABS_PILL_TAB_CLASS_NAME: {
|
|
|
184
183
|
|
|
185
184
|
interface TabsSegmentedListProps extends Tabs$1.List.Props {
|
|
186
185
|
}
|
|
187
|
-
declare function TabsSegmentedList(props: TabsSegmentedListProps):
|
|
186
|
+
declare function TabsSegmentedList(props: TabsSegmentedListProps): JSX.Element;
|
|
188
187
|
declare const TABS_SEGMENTED_LIST_CLASS_NAME: {
|
|
189
188
|
readonly BASE: string;
|
|
190
189
|
};
|
|
@@ -192,14 +191,14 @@ declare const TABS_SEGMENTED_LIST_CLASS_NAME: {
|
|
|
192
191
|
interface TabsSegmentedTabProps extends Omit<Tabs$1.Tab.Props, "nativeButton"> {
|
|
193
192
|
isNativeButton?: Tabs$1.Tab.Props["nativeButton"];
|
|
194
193
|
}
|
|
195
|
-
declare function TabsSegmentedTab(props: TabsSegmentedTabProps):
|
|
194
|
+
declare function TabsSegmentedTab(props: TabsSegmentedTabProps): JSX.Element;
|
|
196
195
|
declare const TABS_SEGMENTED_TAB_CLASS_NAME: {
|
|
197
196
|
readonly BASE: string;
|
|
198
197
|
};
|
|
199
198
|
|
|
200
199
|
interface TabsUnderlineListProps extends Tabs$1.List.Props {
|
|
201
200
|
}
|
|
202
|
-
declare function TabsUnderlineList(props: TabsUnderlineListProps):
|
|
201
|
+
declare function TabsUnderlineList(props: TabsUnderlineListProps): JSX.Element;
|
|
203
202
|
declare const TABS_UNDERLINE_LIST_CLASS_NAME: {
|
|
204
203
|
readonly BASE: string;
|
|
205
204
|
};
|
|
@@ -207,21 +206,21 @@ declare const TABS_UNDERLINE_LIST_CLASS_NAME: {
|
|
|
207
206
|
interface TabsUnderlineTabProps extends Omit<Tabs$1.Tab.Props, "nativeButton"> {
|
|
208
207
|
isNativeButton?: Tabs$1.Tab.Props["nativeButton"];
|
|
209
208
|
}
|
|
210
|
-
declare function TabsUnderlineTab(props: TabsUnderlineTabProps):
|
|
209
|
+
declare function TabsUnderlineTab(props: TabsUnderlineTabProps): JSX.Element;
|
|
211
210
|
declare const TABS_UNDERLINE_TAB_CLASS_NAME: {
|
|
212
211
|
readonly BASE: string;
|
|
213
212
|
};
|
|
214
213
|
|
|
215
214
|
interface TabsProps extends Tabs$1.Root.Props {
|
|
216
215
|
}
|
|
217
|
-
declare function Tabs(props: TabsProps):
|
|
216
|
+
declare function Tabs(props: TabsProps): JSX.Element;
|
|
218
217
|
declare const TABS_CLASS_NAME: {
|
|
219
218
|
readonly BASE: string;
|
|
220
219
|
};
|
|
221
220
|
|
|
222
221
|
interface TabsPanelProps extends Tabs$1.Panel.Props {
|
|
223
222
|
}
|
|
224
|
-
declare function TabsPanel(props: TabsPanelProps):
|
|
223
|
+
declare function TabsPanel(props: TabsPanelProps): JSX.Element;
|
|
225
224
|
declare const TABS_PANEL_CLASS_NAME: {
|
|
226
225
|
readonly BASE: string;
|
|
227
226
|
};
|
|
@@ -245,23 +244,24 @@ declare const TEXTAREA_CLASS_NAME: {
|
|
|
245
244
|
};
|
|
246
245
|
};
|
|
247
246
|
|
|
248
|
-
interface TooltipProps extends Tooltip$1.Root.Props {
|
|
247
|
+
interface TooltipProps extends Omit<Tooltip$1.Root.Props, "disabled"> {
|
|
248
|
+
isDisabled?: Tooltip$1.Root.Props["disabled"];
|
|
249
249
|
}
|
|
250
|
-
declare function Tooltip(props: TooltipProps):
|
|
250
|
+
declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
251
251
|
|
|
252
|
-
interface TooltipContentProps extends Pick<Tooltip$1.Positioner.Props, "side">, Tooltip$1.Popup.Props {
|
|
252
|
+
interface TooltipContentProps extends Pick<Tooltip$1.Positioner.Props, "side" | "sideOffset">, Tooltip$1.Popup.Props {
|
|
253
253
|
}
|
|
254
|
-
declare function TooltipContent(props: TooltipContentProps):
|
|
254
|
+
declare function TooltipContent(props: TooltipContentProps): JSX.Element;
|
|
255
255
|
declare const TOOLTIP_CONTENT_CLASS_NAME: {
|
|
256
256
|
readonly BASE: string;
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
interface TooltipProviderProps extends Tooltip$1.Provider.Props {
|
|
260
260
|
}
|
|
261
|
-
declare function TooltipProvider(props: TooltipProviderProps):
|
|
261
|
+
declare function TooltipProvider(props: TooltipProviderProps): JSX.Element;
|
|
262
262
|
|
|
263
263
|
interface TooltipTriggerProps extends Tooltip$1.Trigger.Props {
|
|
264
264
|
}
|
|
265
|
-
declare function TooltipTrigger(props: TooltipTriggerProps):
|
|
265
|
+
declare function TooltipTrigger(props: TooltipTriggerProps): JSX.Element;
|
|
266
266
|
|
|
267
|
-
export { BUTTON_CLASS_NAME, Button, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, COLUMN_CLASS_NAME, Column, type ColumnProps,
|
|
267
|
+
export { BUTTON_CLASS_NAME, Button, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, COLUMN_CLASS_NAME, Column, type ColumnProps, DIALOG_RESPONSIVE_POPUP_CLASS_NAME, DialogResponsive, DialogResponsivePopup, type DialogResponsivePopupProps, type DialogResponsiveProps, DialogResponsiveTrigger, type DialogResponsiveTriggerProps, INPUT_CLASS_NAME, Input, type InputProps, LABEL_CLASS_NAME, Label, type LabelProps, ROW_CLASS_NAME, Row, type RowProps, SPACER_CLASS_NAME, SWITCH_CLASS_NAME, Spacer, type SpacerProps, Switch, type SwitchProps, TABS_CLASS_NAME, TABS_PANEL_CLASS_NAME, TABS_PILL_LIST_CLASS_NAME, TABS_PILL_TAB_CLASS_NAME, TABS_SEGMENTED_LIST_CLASS_NAME, TABS_SEGMENTED_TAB_CLASS_NAME, TABS_UNDERLINE_LIST_CLASS_NAME, TABS_UNDERLINE_TAB_CLASS_NAME, TEXTAREA_CLASS_NAME, TOOLTIP_CONTENT_CLASS_NAME, Tabs, TabsPanel, type TabsPanelProps, TabsPillList, type TabsPillListProps, TabsPillTab, type TabsPillTabProps, type TabsProps, TabsSegmentedList, type TabsSegmentedListProps, TabsSegmentedTab, type TabsSegmentedTabProps, TabsUnderlineList, type TabsUnderlineListProps, TabsUnderlineTab, type TabsUnderlineTabProps, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };
|
package/dist/components/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createElement } from "react";
|
|
|
5
5
|
import styles from "./button-spinner.module-T3OGVJS4.module.css";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ButtonSpinner(props) {
|
|
8
|
-
const { size =
|
|
8
|
+
const { size = 18 } = props;
|
|
9
9
|
return /* @__PURE__ */ jsx("div", { className: styles.button_spinner, style: { "--size": `${size}px` }, children: Array.from({ length: 12 }).map((_, index) => /* @__PURE__ */ jsx("div", {}, index)) });
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ function normalizeWhitespace(value) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// src/components/button/button.tsx
|
|
18
|
-
import styles2 from "./button.module-
|
|
18
|
+
import styles2 from "./button.module-7VWY2WUV.module.css";
|
|
19
19
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
20
20
|
function Button(props) {
|
|
21
21
|
const {
|
|
@@ -173,12 +173,12 @@ function DialogResponsive(props) {
|
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
// src/components/dialog-responsive/dialog-responsive-
|
|
177
|
-
import { Drawer as
|
|
176
|
+
// src/components/dialog-responsive/dialog-responsive-popup.tsx
|
|
177
|
+
import { Drawer as BaseDrawer5 } from "@base-ui/react";
|
|
178
178
|
|
|
179
179
|
// src/components/dialog-responsive/dialog-responsive-backdrop.tsx
|
|
180
180
|
import { Drawer as BaseDrawer2 } from "@base-ui/react";
|
|
181
|
-
import styles4 from "./dialog-responsive-backdrop.module-
|
|
181
|
+
import styles4 from "./dialog-responsive-backdrop.module-O336AARV.module.css";
|
|
182
182
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
183
183
|
function DialogResponsiveBackdrop(props) {
|
|
184
184
|
const { className: customClassName = "", ...rest } = props;
|
|
@@ -214,34 +214,18 @@ var DIALOG_RESPONSIVE_BAR_CLASS_NAME = {
|
|
|
214
214
|
BASE: styles5.dialog_responsive_bar
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
// src/components/dialog-responsive/dialog-responsive-
|
|
217
|
+
// src/components/dialog-responsive/dialog-responsive-portal.tsx
|
|
218
218
|
import { Drawer as BaseDrawer3 } from "@base-ui/react";
|
|
219
|
-
import styles6 from "./dialog-responsive-
|
|
219
|
+
import styles6 from "./dialog-responsive-portal.module-YFVKMKVT.module.css";
|
|
220
220
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
221
|
-
function DialogResponsivePopup(props) {
|
|
222
|
-
const { className: customClassName = "", ...rest } = props;
|
|
223
|
-
const combinedClassName = normalizeWhitespace(`
|
|
224
|
-
${DIALOG_RESPONSIVE_POPUP_CLASS_NAME.BASE}
|
|
225
|
-
${customClassName}
|
|
226
|
-
`);
|
|
227
|
-
return /* @__PURE__ */ jsx6(BaseDrawer3.Popup, { className: combinedClassName, "data-slot": "dialog-responsive-popup", ...rest });
|
|
228
|
-
}
|
|
229
|
-
var DIALOG_RESPONSIVE_POPUP_CLASS_NAME = {
|
|
230
|
-
BASE: styles6.dialog_responsive_popup
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
// src/components/dialog-responsive/dialog-responsive-portal.tsx
|
|
234
|
-
import { Drawer as BaseDrawer4 } from "@base-ui/react";
|
|
235
|
-
import styles7 from "./dialog-responsive-portal.module-YFVKMKVT.module.css";
|
|
236
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
237
221
|
function DialogResponsivePortal(props) {
|
|
238
222
|
const { className: customClassName = "", ...rest } = props;
|
|
239
223
|
const combinedClassName = normalizeWhitespace(`
|
|
240
224
|
${DIALOG_RESPONSIVE_PORTAL_CLASS_NAME.BASE}
|
|
241
225
|
${customClassName}
|
|
242
226
|
`);
|
|
243
|
-
return /* @__PURE__ */
|
|
244
|
-
|
|
227
|
+
return /* @__PURE__ */ jsx6(
|
|
228
|
+
BaseDrawer3.Portal,
|
|
245
229
|
{
|
|
246
230
|
className: combinedClassName,
|
|
247
231
|
"data-slot": "dialog-responsive-portal",
|
|
@@ -250,21 +234,21 @@ function DialogResponsivePortal(props) {
|
|
|
250
234
|
);
|
|
251
235
|
}
|
|
252
236
|
var DIALOG_RESPONSIVE_PORTAL_CLASS_NAME = {
|
|
253
|
-
BASE:
|
|
237
|
+
BASE: styles6.dialog_responsive_portal
|
|
254
238
|
};
|
|
255
239
|
|
|
256
240
|
// src/components/dialog-responsive/dialog-responsive-viewport.tsx
|
|
257
|
-
import { Drawer as
|
|
258
|
-
import
|
|
259
|
-
import { jsx as
|
|
241
|
+
import { Drawer as BaseDrawer4 } from "@base-ui/react";
|
|
242
|
+
import styles7 from "./dialog-responsive-viewport.module-LT7MZPLD.module.css";
|
|
243
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
260
244
|
function DialogResponsiveViewport(props) {
|
|
261
245
|
const { className: customClassName = "", ...rest } = props;
|
|
262
246
|
const combinedClassName = normalizeWhitespace(`
|
|
263
247
|
${DIALOG_RESPONSIVE_VIEWPORT_CLASS_NAME.BASE}
|
|
264
248
|
${customClassName}
|
|
265
249
|
`);
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
|
|
250
|
+
return /* @__PURE__ */ jsx7(
|
|
251
|
+
BaseDrawer4.Viewport,
|
|
268
252
|
{
|
|
269
253
|
className: combinedClassName,
|
|
270
254
|
"data-slot": "dialog-responsive-viewport",
|
|
@@ -273,49 +257,49 @@ function DialogResponsiveViewport(props) {
|
|
|
273
257
|
);
|
|
274
258
|
}
|
|
275
259
|
var DIALOG_RESPONSIVE_VIEWPORT_CLASS_NAME = {
|
|
276
|
-
BASE:
|
|
260
|
+
BASE: styles7.dialog_responsive_viewport
|
|
277
261
|
};
|
|
278
262
|
|
|
279
|
-
// src/components/dialog-responsive/dialog-responsive-
|
|
280
|
-
import
|
|
281
|
-
import { jsx as
|
|
282
|
-
function
|
|
263
|
+
// src/components/dialog-responsive/dialog-responsive-popup.tsx
|
|
264
|
+
import styles8 from "./dialog-responsive-popup.module-BOEQIHJ7.module.css";
|
|
265
|
+
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
266
|
+
function DialogResponsivePopup(props) {
|
|
283
267
|
const { children, className: customClassName = "", ...rest } = props;
|
|
284
268
|
const combinedClassName = normalizeWhitespace(`
|
|
285
|
-
${
|
|
269
|
+
${DIALOG_RESPONSIVE_POPUP_CLASS_NAME.BASE}
|
|
286
270
|
${customClassName}
|
|
287
271
|
`);
|
|
288
272
|
return /* @__PURE__ */ jsxs2(DialogResponsivePortal, { children: [
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
273
|
+
/* @__PURE__ */ jsx8(DialogResponsiveBackdrop, {}),
|
|
274
|
+
/* @__PURE__ */ jsx8(DialogResponsiveViewport, { children: /* @__PURE__ */ jsxs2(
|
|
275
|
+
BaseDrawer5.Popup,
|
|
276
|
+
{
|
|
277
|
+
className: combinedClassName,
|
|
278
|
+
"data-slot": "dialog-responsive-popup",
|
|
279
|
+
...rest,
|
|
280
|
+
children: [
|
|
281
|
+
/* @__PURE__ */ jsx8(DialogResponsiveBar, {}),
|
|
298
282
|
children
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
) })
|
|
302
286
|
] });
|
|
303
287
|
}
|
|
304
|
-
var
|
|
305
|
-
BASE:
|
|
288
|
+
var DIALOG_RESPONSIVE_POPUP_CLASS_NAME = {
|
|
289
|
+
BASE: styles8.dialog_responsive_popup
|
|
306
290
|
};
|
|
307
291
|
|
|
308
292
|
// src/components/dialog-responsive/dialog-responsive-trigger.tsx
|
|
309
|
-
import { Drawer as
|
|
310
|
-
import { jsx as
|
|
293
|
+
import { Drawer as BaseDrawer6 } from "@base-ui/react";
|
|
294
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
311
295
|
function DialogResponsiveTrigger(props) {
|
|
312
296
|
const { ...rest } = props;
|
|
313
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ jsx9(BaseDrawer6.Trigger, { "data-slot": "dialog-responsive-trigger", ...rest });
|
|
314
298
|
}
|
|
315
299
|
|
|
316
300
|
// src/components/input/input.tsx
|
|
317
|
-
import
|
|
318
|
-
import { jsx as
|
|
301
|
+
import styles9 from "./input.module-DOM3NIU5.module.css";
|
|
302
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
319
303
|
function Input(props) {
|
|
320
304
|
const {
|
|
321
305
|
className: customClassName = "",
|
|
@@ -338,7 +322,7 @@ function Input(props) {
|
|
|
338
322
|
${isRounded ? INPUT_CLASS_NAME.ROUNDED.FULL : INPUT_CLASS_NAME.ROUNDED.BASE}
|
|
339
323
|
${customClassName}
|
|
340
324
|
`);
|
|
341
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ jsx10(
|
|
342
326
|
"input",
|
|
343
327
|
{
|
|
344
328
|
className: combinedClassName,
|
|
@@ -354,41 +338,41 @@ function Input(props) {
|
|
|
354
338
|
);
|
|
355
339
|
}
|
|
356
340
|
var INPUT_CLASS_NAME = {
|
|
357
|
-
BASE:
|
|
358
|
-
PASSWORD:
|
|
341
|
+
BASE: styles9.input,
|
|
342
|
+
PASSWORD: styles9.input__password,
|
|
359
343
|
ROUNDED: {
|
|
360
|
-
BASE:
|
|
361
|
-
FULL:
|
|
344
|
+
BASE: styles9.input__rounded_base,
|
|
345
|
+
FULL: styles9.input__rounded_full
|
|
362
346
|
},
|
|
363
347
|
SIZE: {
|
|
364
|
-
32:
|
|
365
|
-
36:
|
|
366
|
-
40:
|
|
367
|
-
44:
|
|
368
|
-
48:
|
|
348
|
+
32: styles9.input__size_32,
|
|
349
|
+
36: styles9.input__size_36,
|
|
350
|
+
40: styles9.input__size_40,
|
|
351
|
+
44: styles9.input__size_44,
|
|
352
|
+
48: styles9.input__size_48
|
|
369
353
|
}
|
|
370
354
|
};
|
|
371
355
|
|
|
372
356
|
// src/components/label/label.tsx
|
|
373
|
-
import
|
|
374
|
-
import { jsx as
|
|
357
|
+
import styles10 from "./label.module-NYFSR6AT.module.css";
|
|
358
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
375
359
|
function Label(props) {
|
|
376
360
|
const { className: customClassName = "", htmlFor = void 0, children = "", ...rest } = props;
|
|
377
361
|
const combinedClassName = normalizeWhitespace(`
|
|
378
362
|
${LABEL_CLASS_NAME.BASE}
|
|
379
363
|
${customClassName}
|
|
380
364
|
`);
|
|
381
|
-
return /* @__PURE__ */
|
|
365
|
+
return /* @__PURE__ */ jsx11("label", { className: combinedClassName, htmlFor, ...rest, children });
|
|
382
366
|
}
|
|
383
367
|
var LABEL_CLASS_NAME = {
|
|
384
|
-
BASE:
|
|
368
|
+
BASE: styles10.label
|
|
385
369
|
};
|
|
386
370
|
|
|
387
371
|
// src/components/row/row.tsx
|
|
388
372
|
import {
|
|
389
373
|
createElement as createElement3
|
|
390
374
|
} from "react";
|
|
391
|
-
import
|
|
375
|
+
import styles11 from "./row.module-GYNANRAY.module.css";
|
|
392
376
|
function Row(props) {
|
|
393
377
|
const {
|
|
394
378
|
alignItems = void 0,
|
|
@@ -423,12 +407,12 @@ function Row(props) {
|
|
|
423
407
|
});
|
|
424
408
|
}
|
|
425
409
|
var ROW_CLASS_NAME = {
|
|
426
|
-
BASE:
|
|
410
|
+
BASE: styles11.row
|
|
427
411
|
};
|
|
428
412
|
|
|
429
413
|
// src/components/spacer/spacer.tsx
|
|
430
|
-
import
|
|
431
|
-
import { jsx as
|
|
414
|
+
import styles12 from "./spacer.module-ZYYYWYEB.module.css";
|
|
415
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
432
416
|
function Spacer(props) {
|
|
433
417
|
const { className: customClassName = "", height, style: customStyle, width, ...rest } = props;
|
|
434
418
|
const combinedClassName = normalizeWhitespace(`
|
|
@@ -440,16 +424,16 @@ function Spacer(props) {
|
|
|
440
424
|
...width === void 0 ? {} : { width },
|
|
441
425
|
...height === void 0 ? {} : { height }
|
|
442
426
|
};
|
|
443
|
-
return /* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ jsx12("div", { className: combinedClassName, style: combinedStyle, ...rest });
|
|
444
428
|
}
|
|
445
429
|
var SPACER_CLASS_NAME = {
|
|
446
|
-
BASE:
|
|
430
|
+
BASE: styles12.spacer
|
|
447
431
|
};
|
|
448
432
|
|
|
449
433
|
// src/components/switch/switch.tsx
|
|
450
434
|
import { Switch as BaseSwitch } from "@base-ui/react";
|
|
451
|
-
import
|
|
452
|
-
import { jsx as
|
|
435
|
+
import styles13 from "./switch.module-TLJBHCSA.module.css";
|
|
436
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
453
437
|
function Switch(props) {
|
|
454
438
|
const {
|
|
455
439
|
className: customClassName = "",
|
|
@@ -466,7 +450,7 @@ function Switch(props) {
|
|
|
466
450
|
${SWITCH_CLASS_NAME.SIZE[size]}
|
|
467
451
|
${customClassName}
|
|
468
452
|
`);
|
|
469
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ jsx13(
|
|
470
454
|
BaseSwitch.Root,
|
|
471
455
|
{
|
|
472
456
|
checked: isChecked,
|
|
@@ -476,15 +460,15 @@ function Switch(props) {
|
|
|
476
460
|
readOnly: isReadOnly,
|
|
477
461
|
required: isRequired,
|
|
478
462
|
...rest,
|
|
479
|
-
children: /* @__PURE__ */
|
|
463
|
+
children: /* @__PURE__ */ jsx13(BaseSwitch.Thumb, { className: styles13.switch__thumb })
|
|
480
464
|
}
|
|
481
465
|
);
|
|
482
466
|
}
|
|
483
467
|
var SWITCH_CLASS_NAME = {
|
|
484
|
-
BASE:
|
|
468
|
+
BASE: styles13.switch,
|
|
485
469
|
SIZE: {
|
|
486
|
-
18:
|
|
487
|
-
24:
|
|
470
|
+
18: styles13.switch__size_18,
|
|
471
|
+
24: styles13.switch__size_24
|
|
488
472
|
}
|
|
489
473
|
};
|
|
490
474
|
|
|
@@ -493,15 +477,15 @@ import { Tabs as BaseTabs2 } from "@base-ui/react";
|
|
|
493
477
|
|
|
494
478
|
// src/components/tabs-pill/tabs-pill-indicator.tsx
|
|
495
479
|
import { Tabs as BaseTabs } from "@base-ui/react";
|
|
496
|
-
import
|
|
497
|
-
import { jsx as
|
|
480
|
+
import styles14 from "./tabs-pill-indicator.module-533HMO7L.module.css";
|
|
481
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
498
482
|
function TabsPillIndicator(props) {
|
|
499
483
|
const { className: customClassName = "", ...rest } = props;
|
|
500
484
|
const combinedClassName = normalizeWhitespace(`
|
|
501
485
|
${TABS_PILL_INDICATOR_CLASS_NAME.BASE}
|
|
502
486
|
${customClassName}
|
|
503
487
|
`);
|
|
504
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ jsx14(
|
|
505
489
|
BaseTabs.Indicator,
|
|
506
490
|
{
|
|
507
491
|
className: combinedClassName,
|
|
@@ -512,12 +496,12 @@ function TabsPillIndicator(props) {
|
|
|
512
496
|
);
|
|
513
497
|
}
|
|
514
498
|
var TABS_PILL_INDICATOR_CLASS_NAME = {
|
|
515
|
-
BASE:
|
|
499
|
+
BASE: styles14.tabs_pill_indicator
|
|
516
500
|
};
|
|
517
501
|
|
|
518
502
|
// src/components/tabs-pill/tabs-pill-list.tsx
|
|
519
|
-
import
|
|
520
|
-
import { jsx as
|
|
503
|
+
import styles15 from "./tabs-pill-list.module-KQW67ZSW.module.css";
|
|
504
|
+
import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
521
505
|
function TabsPillList(props) {
|
|
522
506
|
const { className: customClassName = "", children = "", ...rest } = props;
|
|
523
507
|
const combinedClassName = normalizeWhitespace(`
|
|
@@ -526,17 +510,17 @@ function TabsPillList(props) {
|
|
|
526
510
|
`);
|
|
527
511
|
return /* @__PURE__ */ jsxs3(BaseTabs2.List, { className: combinedClassName, "data-slot": "tabs-pill-list", ...rest, children: [
|
|
528
512
|
children,
|
|
529
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ jsx15(TabsPillIndicator, {})
|
|
530
514
|
] });
|
|
531
515
|
}
|
|
532
516
|
var TABS_PILL_LIST_CLASS_NAME = {
|
|
533
|
-
BASE:
|
|
517
|
+
BASE: styles15.tabs_pill_list
|
|
534
518
|
};
|
|
535
519
|
|
|
536
520
|
// src/components/tabs-pill/tabs-pill-tab.tsx
|
|
537
521
|
import { Tabs as BaseTabs3 } from "@base-ui/react";
|
|
538
|
-
import
|
|
539
|
-
import { jsx as
|
|
522
|
+
import styles16 from "./tabs-pill-tab.module-2F7LOGXE.module.css";
|
|
523
|
+
import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
540
524
|
function TabsPillTab(props) {
|
|
541
525
|
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
542
526
|
const combinedClassName = normalizeWhitespace(`
|
|
@@ -544,7 +528,7 @@ function TabsPillTab(props) {
|
|
|
544
528
|
${customClassName}
|
|
545
529
|
`);
|
|
546
530
|
return /* @__PURE__ */ jsxs4("div", { className: TABS_PILL_TAB_CLASS_NAME.WRAPPER, children: [
|
|
547
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ jsx16(
|
|
548
532
|
BaseTabs3.Tab,
|
|
549
533
|
{
|
|
550
534
|
className: combinedClassName,
|
|
@@ -553,13 +537,13 @@ function TabsPillTab(props) {
|
|
|
553
537
|
...rest
|
|
554
538
|
}
|
|
555
539
|
),
|
|
556
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ jsx16("div", { className: TABS_PILL_TAB_CLASS_NAME.BACKGROUND })
|
|
557
541
|
] });
|
|
558
542
|
}
|
|
559
543
|
var TABS_PILL_TAB_CLASS_NAME = {
|
|
560
|
-
BACKGROUND:
|
|
561
|
-
BASE:
|
|
562
|
-
WRAPPER:
|
|
544
|
+
BACKGROUND: styles16.tabs_pill_tab_background,
|
|
545
|
+
BASE: styles16.tabs_pill_tab,
|
|
546
|
+
WRAPPER: styles16.tabs_pill_tab_wrapper
|
|
563
547
|
};
|
|
564
548
|
|
|
565
549
|
// src/components/tabs-segmented/tabs-segmented-list.tsx
|
|
@@ -567,15 +551,15 @@ import { Tabs as BaseTabs5 } from "@base-ui/react";
|
|
|
567
551
|
|
|
568
552
|
// src/components/tabs-segmented/tabs-segmented-indicator.tsx
|
|
569
553
|
import { Tabs as BaseTabs4 } from "@base-ui/react";
|
|
570
|
-
import
|
|
571
|
-
import { jsx as
|
|
554
|
+
import styles17 from "./tabs-segmented-indicator.module-EG56DHS2.module.css";
|
|
555
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
572
556
|
function TabsSegmentedIndicator(props) {
|
|
573
557
|
const { className: customClassName = "", ...rest } = props;
|
|
574
558
|
const combinedClassName = normalizeWhitespace(`
|
|
575
559
|
${TABS_SEGMENTED_INDICATOR_CLASS_NAME.BASE}
|
|
576
560
|
${customClassName}
|
|
577
561
|
`);
|
|
578
|
-
return /* @__PURE__ */
|
|
562
|
+
return /* @__PURE__ */ jsx17(
|
|
579
563
|
BaseTabs4.Indicator,
|
|
580
564
|
{
|
|
581
565
|
className: combinedClassName,
|
|
@@ -586,12 +570,12 @@ function TabsSegmentedIndicator(props) {
|
|
|
586
570
|
);
|
|
587
571
|
}
|
|
588
572
|
var TABS_SEGMENTED_INDICATOR_CLASS_NAME = {
|
|
589
|
-
BASE:
|
|
573
|
+
BASE: styles17.tabs_segmented_indicator
|
|
590
574
|
};
|
|
591
575
|
|
|
592
576
|
// src/components/tabs-segmented/tabs-segmented-list.tsx
|
|
593
|
-
import
|
|
594
|
-
import { jsx as
|
|
577
|
+
import styles18 from "./tabs-segmented-list.module-I3DSVFSP.module.css";
|
|
578
|
+
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
595
579
|
function TabsSegmentedList(props) {
|
|
596
580
|
const { className: customClassName = "", children = "", ...rest } = props;
|
|
597
581
|
const combinedClassName = normalizeWhitespace(`
|
|
@@ -600,24 +584,24 @@ function TabsSegmentedList(props) {
|
|
|
600
584
|
`);
|
|
601
585
|
return /* @__PURE__ */ jsxs5(BaseTabs5.List, { className: combinedClassName, "data-slot": "tabs-segmented-list", ...rest, children: [
|
|
602
586
|
children,
|
|
603
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ jsx18(TabsSegmentedIndicator, {})
|
|
604
588
|
] });
|
|
605
589
|
}
|
|
606
590
|
var TABS_SEGMENTED_LIST_CLASS_NAME = {
|
|
607
|
-
BASE:
|
|
591
|
+
BASE: styles18.tabs_segmented_list
|
|
608
592
|
};
|
|
609
593
|
|
|
610
594
|
// src/components/tabs-segmented/tabs-segmented-tab.tsx
|
|
611
595
|
import { Tabs as BaseTabs6 } from "@base-ui/react";
|
|
612
|
-
import
|
|
613
|
-
import { jsx as
|
|
596
|
+
import styles19 from "./tabs-segmented-tab.module-SVYVEM2O.module.css";
|
|
597
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
614
598
|
function TabsSegmentedTab(props) {
|
|
615
599
|
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
616
600
|
const combinedClassName = normalizeWhitespace(`
|
|
617
601
|
${TABS_SEGMENTED_TAB_CLASS_NAME.BASE}
|
|
618
602
|
${customClassName}
|
|
619
603
|
`);
|
|
620
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ jsx19(
|
|
621
605
|
BaseTabs6.Tab,
|
|
622
606
|
{
|
|
623
607
|
className: combinedClassName,
|
|
@@ -628,7 +612,7 @@ function TabsSegmentedTab(props) {
|
|
|
628
612
|
);
|
|
629
613
|
}
|
|
630
614
|
var TABS_SEGMENTED_TAB_CLASS_NAME = {
|
|
631
|
-
BASE:
|
|
615
|
+
BASE: styles19.tabs_segmented_tab
|
|
632
616
|
};
|
|
633
617
|
|
|
634
618
|
// src/components/tabs-underline/tabs-underline-list.tsx
|
|
@@ -636,15 +620,15 @@ import { Tabs as BaseTabs8 } from "@base-ui/react";
|
|
|
636
620
|
|
|
637
621
|
// src/components/tabs-underline/tabs-underline-indicator.tsx
|
|
638
622
|
import { Tabs as BaseTabs7 } from "@base-ui/react";
|
|
639
|
-
import
|
|
640
|
-
import { jsx as
|
|
623
|
+
import styles20 from "./tabs-underline-indicator.module-6SHQHUH5.module.css";
|
|
624
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
641
625
|
function TabsUnderlineIndicator(props) {
|
|
642
626
|
const { className: customClassName = "", ...rest } = props;
|
|
643
627
|
const combinedClassName = normalizeWhitespace(`
|
|
644
628
|
${TABS_UNDERLINE_INDICATOR_CLASS_NAME.BASE}
|
|
645
629
|
${customClassName}
|
|
646
630
|
`);
|
|
647
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ jsx20(
|
|
648
632
|
BaseTabs7.Indicator,
|
|
649
633
|
{
|
|
650
634
|
className: combinedClassName,
|
|
@@ -655,12 +639,12 @@ function TabsUnderlineIndicator(props) {
|
|
|
655
639
|
);
|
|
656
640
|
}
|
|
657
641
|
var TABS_UNDERLINE_INDICATOR_CLASS_NAME = {
|
|
658
|
-
BASE:
|
|
642
|
+
BASE: styles20.tabs_underline_indicator
|
|
659
643
|
};
|
|
660
644
|
|
|
661
645
|
// src/components/tabs-underline/tabs-underline-list.tsx
|
|
662
|
-
import
|
|
663
|
-
import { jsx as
|
|
646
|
+
import styles21 from "./tabs-underline-list.module-72ZCIEAS.module.css";
|
|
647
|
+
import { jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
664
648
|
function TabsUnderlineList(props) {
|
|
665
649
|
const { className: customClassName = "", children = "", ...rest } = props;
|
|
666
650
|
const combinedClassName = normalizeWhitespace(`
|
|
@@ -669,24 +653,24 @@ function TabsUnderlineList(props) {
|
|
|
669
653
|
`);
|
|
670
654
|
return /* @__PURE__ */ jsxs6(BaseTabs8.List, { className: combinedClassName, "data-slot": "tabs-underline-list", ...rest, children: [
|
|
671
655
|
children,
|
|
672
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ jsx21(TabsUnderlineIndicator, {})
|
|
673
657
|
] });
|
|
674
658
|
}
|
|
675
659
|
var TABS_UNDERLINE_LIST_CLASS_NAME = {
|
|
676
|
-
BASE:
|
|
660
|
+
BASE: styles21.tabs_underline_list
|
|
677
661
|
};
|
|
678
662
|
|
|
679
663
|
// src/components/tabs-underline/tabs-underline-tab.tsx
|
|
680
664
|
import { Tabs as BaseTabs9 } from "@base-ui/react";
|
|
681
|
-
import
|
|
682
|
-
import { jsx as
|
|
665
|
+
import styles22 from "./tabs-underline-tab.module-OAE4JH7K.module.css";
|
|
666
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
683
667
|
function TabsUnderlineTab(props) {
|
|
684
668
|
const { className: customClassName = "", isNativeButton = true, ...rest } = props;
|
|
685
669
|
const combinedClassName = normalizeWhitespace(`
|
|
686
670
|
${TABS_UNDERLINE_TAB_CLASS_NAME.BASE}
|
|
687
671
|
${customClassName}
|
|
688
672
|
`);
|
|
689
|
-
return /* @__PURE__ */
|
|
673
|
+
return /* @__PURE__ */ jsx22(
|
|
690
674
|
BaseTabs9.Tab,
|
|
691
675
|
{
|
|
692
676
|
className: combinedClassName,
|
|
@@ -697,45 +681,45 @@ function TabsUnderlineTab(props) {
|
|
|
697
681
|
);
|
|
698
682
|
}
|
|
699
683
|
var TABS_UNDERLINE_TAB_CLASS_NAME = {
|
|
700
|
-
BASE:
|
|
684
|
+
BASE: styles22.tabs_underline_tab
|
|
701
685
|
};
|
|
702
686
|
|
|
703
687
|
// src/components/tabs/tabs.tsx
|
|
704
688
|
import { Tabs as BaseTabs10 } from "@base-ui/react";
|
|
705
|
-
import
|
|
706
|
-
import { jsx as
|
|
689
|
+
import styles23 from "./tabs.module-3Z5DRPPX.module.css";
|
|
690
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
707
691
|
function Tabs(props) {
|
|
708
692
|
const { className: customClassName = "", ...rest } = props;
|
|
709
693
|
const combinedClassName = normalizeWhitespace(`
|
|
710
694
|
${TABS_CLASS_NAME.BASE}
|
|
711
695
|
${customClassName}
|
|
712
696
|
`);
|
|
713
|
-
return /* @__PURE__ */
|
|
697
|
+
return /* @__PURE__ */ jsx23(BaseTabs10.Root, { className: combinedClassName, "data-slot": "tabs", ...rest });
|
|
714
698
|
}
|
|
715
699
|
var TABS_CLASS_NAME = {
|
|
716
|
-
BASE:
|
|
700
|
+
BASE: styles23.tabs
|
|
717
701
|
};
|
|
718
702
|
|
|
719
703
|
// src/components/tabs/tabs-panel.tsx
|
|
720
704
|
import { Tabs as BaseTabs11 } from "@base-ui/react";
|
|
721
|
-
import
|
|
722
|
-
import { jsx as
|
|
705
|
+
import styles24 from "./tabs-panel.module-VGH3G3KV.module.css";
|
|
706
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
723
707
|
function TabsPanel(props) {
|
|
724
708
|
const { className: customClassName = "", ...rest } = props;
|
|
725
709
|
const combinedClassName = normalizeWhitespace(`
|
|
726
710
|
${TABS_PANEL_CLASS_NAME.BASE}
|
|
727
711
|
${customClassName}
|
|
728
712
|
`);
|
|
729
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ jsx24(BaseTabs11.Panel, { className: combinedClassName, "data-slot": "tabs-panel", ...rest });
|
|
730
714
|
}
|
|
731
715
|
var TABS_PANEL_CLASS_NAME = {
|
|
732
|
-
BASE:
|
|
716
|
+
BASE: styles24.tabs_panel
|
|
733
717
|
};
|
|
734
718
|
|
|
735
719
|
// src/components/textarea/textarea.tsx
|
|
736
720
|
import inputStyles from "./input.module-DOM3NIU5.module.css";
|
|
737
|
-
import
|
|
738
|
-
import { jsx as
|
|
721
|
+
import styles25 from "./textarea.module-LK25MKCZ.module.css";
|
|
722
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
739
723
|
function Textarea(props) {
|
|
740
724
|
const {
|
|
741
725
|
className: customClassName = "",
|
|
@@ -755,7 +739,7 @@ function Textarea(props) {
|
|
|
755
739
|
${isRounded ? TEXTAREA_CLASS_NAME.ROUNDED.FULL : TEXTAREA_CLASS_NAME.ROUNDED.BASE}
|
|
756
740
|
${customClassName}
|
|
757
741
|
`);
|
|
758
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx25(
|
|
759
743
|
"textarea",
|
|
760
744
|
{
|
|
761
745
|
className: combinedClassName,
|
|
@@ -771,7 +755,7 @@ function Textarea(props) {
|
|
|
771
755
|
);
|
|
772
756
|
}
|
|
773
757
|
var TEXTAREA_CLASS_NAME = {
|
|
774
|
-
BASE:
|
|
758
|
+
BASE: styles25.textarea,
|
|
775
759
|
INPUT: inputStyles.input,
|
|
776
760
|
ROUNDED: {
|
|
777
761
|
BASE: inputStyles.input__rounded_base,
|
|
@@ -781,54 +765,53 @@ var TEXTAREA_CLASS_NAME = {
|
|
|
781
765
|
|
|
782
766
|
// src/components/tooltip/tooltip.tsx
|
|
783
767
|
import { Tooltip as BaseTooltip } from "@base-ui/react";
|
|
784
|
-
import { jsx as
|
|
768
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
785
769
|
function Tooltip(props) {
|
|
786
|
-
const { ...rest } = props;
|
|
787
|
-
return /* @__PURE__ */
|
|
770
|
+
const { isDisabled = false, ...rest } = props;
|
|
771
|
+
return /* @__PURE__ */ jsx26(BaseTooltip.Root, { "data-slot": "tooltip", disabled: isDisabled, disableHoverablePopup: true, ...rest });
|
|
788
772
|
}
|
|
789
773
|
|
|
790
774
|
// src/components/tooltip/tooltip-content.tsx
|
|
791
775
|
import { Tooltip as BaseTooltip2 } from "@base-ui/react";
|
|
792
|
-
import
|
|
793
|
-
import { jsx as
|
|
776
|
+
import styles26 from "./tooltip-content.module-QGRFS5NN.module.css";
|
|
777
|
+
import { jsx as jsx27, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
794
778
|
function TooltipContent(props) {
|
|
795
|
-
const { children, className: customClassName = "", side = "top", ...rest } = props;
|
|
796
|
-
const SIDE_OFFSET = 4;
|
|
779
|
+
const { children, className: customClassName = "", side = "top", sideOffset = 4, ...rest } = props;
|
|
797
780
|
const combinedClassName = normalizeWhitespace(`
|
|
798
781
|
${TOOLTIP_CONTENT_CLASS_NAME.BASE}
|
|
799
782
|
${customClassName}
|
|
800
783
|
`);
|
|
801
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ jsx27(BaseTooltip2.Portal, { children: /* @__PURE__ */ jsxs7(
|
|
802
785
|
BaseTooltip2.Positioner,
|
|
803
786
|
{
|
|
804
|
-
className:
|
|
787
|
+
className: styles26.tooltip_content_positioner,
|
|
805
788
|
side,
|
|
806
|
-
sideOffset
|
|
789
|
+
sideOffset,
|
|
807
790
|
children: [
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ jsx27(BaseTooltip2.Popup, { className: combinedClassName, "data-slot": "tooltip-content", ...rest, children }),
|
|
792
|
+
/* @__PURE__ */ jsx27(BaseTooltip2.Arrow, {})
|
|
810
793
|
]
|
|
811
794
|
}
|
|
812
795
|
) });
|
|
813
796
|
}
|
|
814
797
|
var TOOLTIP_CONTENT_CLASS_NAME = {
|
|
815
|
-
BASE:
|
|
798
|
+
BASE: styles26.tooltip_content
|
|
816
799
|
};
|
|
817
800
|
|
|
818
801
|
// src/components/tooltip/tooltip-provider.tsx
|
|
819
802
|
import { Tooltip as BaseTooltip3 } from "@base-ui/react";
|
|
820
|
-
import { jsx as
|
|
803
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
821
804
|
function TooltipProvider(props) {
|
|
822
805
|
const { ...rest } = props;
|
|
823
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ jsx28(BaseTooltip3.Provider, { "data-slot": "tooltip-provider", ...rest });
|
|
824
807
|
}
|
|
825
808
|
|
|
826
809
|
// src/components/tooltip/tooltip-trigger.tsx
|
|
827
810
|
import { Tooltip as BaseTooltip4 } from "@base-ui/react";
|
|
828
|
-
import { jsx as
|
|
811
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
829
812
|
function TooltipTrigger(props) {
|
|
830
813
|
const { ...rest } = props;
|
|
831
|
-
return /* @__PURE__ */
|
|
814
|
+
return /* @__PURE__ */ jsx29(BaseTooltip4.Trigger, { "data-slot": "tooltip-trigger", ...rest });
|
|
832
815
|
}
|
|
833
816
|
export {
|
|
834
817
|
BUTTON_CLASS_NAME,
|
|
@@ -836,9 +819,9 @@ export {
|
|
|
836
819
|
ButtonLink,
|
|
837
820
|
COLUMN_CLASS_NAME,
|
|
838
821
|
Column,
|
|
839
|
-
|
|
822
|
+
DIALOG_RESPONSIVE_POPUP_CLASS_NAME,
|
|
840
823
|
DialogResponsive,
|
|
841
|
-
|
|
824
|
+
DialogResponsivePopup,
|
|
842
825
|
DialogResponsiveTrigger,
|
|
843
826
|
INPUT_CLASS_NAME,
|
|
844
827
|
Input,
|
|
@@ -40,6 +40,13 @@
|
|
|
40
40
|
color: var(--color-black);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/* Icon size */
|
|
44
|
+
.tabs_pill_tab > svg {
|
|
45
|
+
--size-icon: 16px;
|
|
46
|
+
height: var(--size-icon);
|
|
47
|
+
width: var(--size-icon);
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
.tabs_pill_tab_wrapper {
|
|
44
51
|
--border-radius: 12px;
|
|
45
52
|
border-radius: var(--border-radius);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.tooltip_content {
|
|
2
|
+
background-color: var(--color-gray-dark-1);
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
color: var(--color-gray-dark-12);
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
padding: 4px 8px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.tooltip_content_positioner {
|
|
11
|
+
isolation: isolate;
|
|
12
|
+
z-index: 50;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:global(.dark) .tooltip_content {
|
|
16
|
+
background-color: var(--color-gray-light-1);
|
|
17
|
+
color: var(--color-gray-light-12);
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
.tooltip_content {
|
|
2
|
-
background-color: var(--color-gray-1);
|
|
3
|
-
border-radius: 8px;
|
|
4
|
-
border: 1px solid var(--color-gray-4);
|
|
5
|
-
color: var(--color-gray-12);
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
padding: 4px 8px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tooltip_content_positioner {
|
|
11
|
-
isolation: isolate;
|
|
12
|
-
z-index: 50;
|
|
13
|
-
}
|