@nattstack/ui 0.0.106 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/baseline/index.css +9 -5
- package/dist/components/button/button-spinner.js +18 -3
- package/dist/components/button/button-spinner.stylex.js +96 -0
- package/dist/components/button/button.d.ts +20 -17
- package/dist/components/button/button.js +28 -38
- package/dist/components/button/button.stylex.d.ts +121 -0
- package/dist/components/button/button.stylex.js +158 -0
- package/dist/components/button-link/button-link.d.ts +5 -6
- package/dist/components/button-link/button-link.js +5 -5
- package/dist/components/checkbox/checkbox-icon.js +4 -3
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +6 -8
- package/dist/components/checkbox/checkbox.stylex.d.ts +40 -0
- package/dist/components/checkbox/checkbox.stylex.js +43 -0
- package/dist/components/cn.d.ts +6 -0
- package/dist/components/cn.js +18 -0
- package/dist/components/column/column.d.ts +2 -2
- package/dist/components/column/column.js +17 -15
- package/dist/components/column/column.stylex.d.ts +10 -0
- package/dist/components/column/column.stylex.js +8 -0
- package/dist/components/combobox/combobox-content.d.ts +1 -2
- package/dist/components/combobox/combobox-content.js +5 -7
- package/dist/components/combobox/combobox-empty.d.ts +2 -2
- package/dist/components/combobox/combobox-empty.js +4 -6
- package/dist/components/combobox/combobox-empty.stylex.d.ts +13 -0
- package/dist/components/combobox/combobox-empty.stylex.js +11 -0
- package/dist/components/combobox/combobox-group-label.d.ts +1 -2
- package/dist/components/combobox/combobox-group-label.js +4 -6
- package/dist/components/combobox/combobox-group.d.ts +1 -2
- package/dist/components/combobox/combobox-group.js +4 -6
- package/dist/components/combobox/combobox-input.d.ts +6 -10
- package/dist/components/combobox/combobox-input.js +10 -25
- package/dist/components/combobox/combobox-input.stylex.d.ts +93 -0
- package/dist/components/combobox/combobox-input.stylex.js +100 -0
- package/dist/components/combobox/combobox-item.d.ts +2 -4
- package/dist/components/combobox/combobox-item.js +7 -10
- package/dist/components/combobox/combobox-list.d.ts +1 -2
- package/dist/components/combobox/combobox-list.js +4 -6
- package/dist/components/combobox/combobox-search.d.ts +3 -4
- package/dist/components/combobox/combobox-search.js +7 -9
- package/dist/components/combobox/combobox-search.stylex.d.ts +45 -0
- package/dist/components/combobox/combobox-search.stylex.js +45 -0
- package/dist/components/combobox/combobox-separator.d.ts +1 -2
- package/dist/components/combobox/combobox-separator.js +4 -6
- package/dist/components/combobox/combobox-trigger.d.ts +4 -8
- package/dist/components/combobox/combobox-trigger.js +6 -21
- package/dist/components/combobox/combobox-value.d.ts +2 -2
- package/dist/components/combobox/combobox-value.js +4 -6
- package/dist/components/combobox/combobox-value.stylex.d.ts +14 -0
- package/dist/components/combobox/combobox-value.stylex.js +12 -0
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.stylex.js +14 -0
- package/dist/components/dialog-responsive/dialog-responsive-bar.js +4 -5
- package/dist/components/dialog-responsive/dialog-responsive-bar.stylex.js +13 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.d.ts +2 -2
- package/dist/components/dialog-responsive/dialog-responsive-popup.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.d.ts +32 -0
- package/dist/components/dialog-responsive/dialog-responsive-popup.stylex.js +30 -0
- package/dist/components/dialog-responsive/dialog-responsive-portal.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-portal.stylex.js +9 -0
- package/dist/components/dialog-responsive/dialog-responsive-viewport.js +4 -6
- package/dist/components/dialog-responsive/dialog-responsive-viewport.stylex.js +13 -0
- package/dist/components/dialog-responsive/dialog-responsive.d.ts +1 -4
- package/dist/components/dialog-responsive/dialog-responsive.js +1 -4
- package/dist/components/icon-button/icon-button.d.ts +3 -5
- package/dist/components/icon-button/icon-button.js +17 -22
- package/dist/components/icon-button/icon-button.stylex.d.ts +21 -0
- package/dist/components/icon-button/icon-button.stylex.js +25 -0
- package/dist/components/index.d.ts +90 -53
- package/dist/components/index.js +91 -53
- package/dist/components/input/input.d.ts +8 -16
- package/dist/components/input/input.js +9 -36
- package/dist/components/input/input.stylex.d.ts +66 -0
- package/dist/components/input/input.stylex.js +71 -0
- package/dist/components/label/label.d.ts +2 -2
- package/dist/components/label/label.js +7 -6
- package/dist/components/label/label.stylex.d.ts +12 -0
- package/dist/components/label/label.stylex.js +10 -0
- package/dist/components/menu/menu-checkbox-item.d.ts +2 -6
- package/dist/components/menu/menu-checkbox-item.js +7 -12
- package/dist/components/menu/menu-content.d.ts +2 -2
- package/dist/components/menu/menu-content.js +8 -10
- package/dist/components/menu/menu-content.stylex.d.ts +11 -0
- package/dist/components/menu/menu-content.stylex.js +9 -0
- package/dist/components/menu/menu-group-label.d.ts +1 -2
- package/dist/components/menu/menu-group-label.js +4 -6
- package/dist/components/menu/menu-group.d.ts +1 -2
- package/dist/components/menu/menu-group.js +4 -6
- package/dist/components/menu/menu-item.d.ts +3 -4
- package/dist/components/menu/menu-item.js +6 -9
- package/dist/components/menu/menu-item.stylex.d.ts +11 -0
- package/dist/components/menu/menu-item.stylex.js +9 -0
- package/dist/components/menu/menu-link-item.d.ts +1 -2
- package/dist/components/menu/menu-link-item.js +5 -7
- package/dist/components/menu/menu-radio-group.d.ts +2 -4
- package/dist/components/menu/menu-radio-group.js +5 -8
- package/dist/components/menu/menu-radio-item.d.ts +2 -4
- package/dist/components/menu/menu-radio-item.js +7 -10
- package/dist/components/menu/menu-separator.d.ts +1 -2
- package/dist/components/menu/menu-separator.js +4 -6
- package/dist/components/menu/menu-submenu-trigger.d.ts +3 -4
- package/dist/components/menu/menu-submenu-trigger.js +8 -15
- package/dist/components/menu/menu-submenu-trigger.stylex.d.ts +19 -0
- package/dist/components/menu/menu-submenu-trigger.stylex.js +20 -0
- package/dist/components/otp-field/otp-field-input.d.ts +2 -2
- package/dist/components/otp-field/otp-field-input.js +5 -6
- package/dist/components/otp-field/otp-field-input.stylex.d.ts +25 -0
- package/dist/components/otp-field/otp-field-input.stylex.js +23 -0
- package/dist/components/otp-field/otp-field.d.ts +4 -7
- package/dist/components/otp-field/otp-field.js +7 -18
- package/dist/components/otp-field/otp-field.stylex.d.ts +16 -0
- package/dist/components/otp-field/otp-field.stylex.js +17 -0
- package/dist/components/picker/picker-group.stylex.d.ts +18 -0
- package/dist/components/picker/picker-group.stylex.js +19 -0
- package/dist/components/picker/picker-item.stylex.d.ts +39 -0
- package/dist/components/picker/picker-item.stylex.js +41 -0
- package/dist/components/picker/picker-list.stylex.js +13 -0
- package/dist/components/picker/picker-popup.stylex.d.ts +36 -0
- package/dist/components/picker/picker-popup.stylex.js +37 -0
- package/dist/components/picker/picker-separator.stylex.d.ts +13 -0
- package/dist/components/picker/picker-separator.stylex.js +11 -0
- package/dist/components/picker/picker-trigger.stylex.d.ts +60 -0
- package/dist/components/picker/picker-trigger.stylex.js +67 -0
- package/dist/components/row/row.d.ts +2 -2
- package/dist/components/row/row.js +17 -15
- package/dist/components/row/row.stylex.d.ts +10 -0
- package/dist/components/row/row.stylex.js +8 -0
- package/dist/components/select/select-content.d.ts +2 -2
- package/dist/components/select/select-content.js +7 -9
- package/dist/components/select/select-group-label.d.ts +1 -2
- package/dist/components/select/select-group-label.js +4 -6
- package/dist/components/select/select-group.d.ts +2 -2
- package/dist/components/select/select-group.js +4 -6
- package/dist/components/select/select-item.d.ts +3 -4
- package/dist/components/select/select-item.js +7 -10
- package/dist/components/select/select-separator.d.ts +2 -2
- package/dist/components/select/select-separator.js +4 -6
- package/dist/components/select/select-trigger.d.ts +5 -8
- package/dist/components/select/select-trigger.js +6 -21
- package/dist/components/select/select-value.d.ts +2 -2
- package/dist/components/select/select-value.js +4 -6
- package/dist/components/select/select-value.stylex.d.ts +14 -0
- package/dist/components/select/select-value.stylex.js +12 -0
- package/dist/components/spacer/spacer.d.ts +2 -2
- package/dist/components/spacer/spacer.js +13 -11
- package/dist/components/spacer/spacer.stylex.d.ts +9 -0
- package/dist/components/spacer/spacer.stylex.js +7 -0
- package/dist/components/stylex.css +1420 -0
- package/dist/components/switch/switch.d.ts +4 -12
- package/dist/components/switch/switch.js +6 -22
- package/dist/components/switch/switch.stylex.d.ts +41 -0
- package/dist/components/switch/switch.stylex.js +44 -0
- package/dist/components/tabs/tabs-panel.d.ts +2 -2
- package/dist/components/tabs/tabs-panel.js +7 -7
- package/dist/components/tabs/tabs-panel.stylex.d.ts +14 -0
- package/dist/components/tabs/tabs-panel.stylex.js +12 -0
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tabs/tabs.js +7 -7
- package/dist/components/tabs/tabs.stylex.d.ts +10 -0
- package/dist/components/tabs/tabs.stylex.js +8 -0
- package/dist/components/tabs-pill/tabs-pill-indicator.js +4 -6
- package/dist/components/tabs-pill/tabs-pill-indicator.stylex.js +16 -0
- package/dist/components/tabs-pill/tabs-pill-list.d.ts +2 -2
- package/dist/components/tabs-pill/tabs-pill-list.js +4 -6
- package/dist/components/tabs-pill/tabs-pill-list.stylex.d.ts +13 -0
- package/dist/components/tabs-pill/tabs-pill-list.stylex.js +11 -0
- package/dist/components/tabs-pill/tabs-pill-tab.d.ts +3 -5
- package/dist/components/tabs-pill/tabs-pill-tab.js +8 -10
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.d.ts +44 -0
- package/dist/components/tabs-pill/tabs-pill-tab.stylex.js +46 -0
- package/dist/components/tabs-segmented/tabs-segmented-indicator.js +4 -6
- package/dist/components/tabs-segmented/tabs-segmented-indicator.stylex.js +16 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.d.ts +2 -2
- package/dist/components/tabs-segmented/tabs-segmented-list.js +4 -6
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.d.ts +17 -0
- package/dist/components/tabs-segmented/tabs-segmented-list.stylex.js +15 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.d.ts +3 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.js +6 -8
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.d.ts +28 -0
- package/dist/components/tabs-segmented/tabs-segmented-tab.stylex.js +26 -0
- package/dist/components/tabs-underline/tabs-underline-indicator.js +4 -6
- package/dist/components/tabs-underline/tabs-underline-indicator.stylex.js +14 -0
- package/dist/components/tabs-underline/tabs-underline-list.d.ts +2 -2
- package/dist/components/tabs-underline/tabs-underline-list.js +4 -6
- package/dist/components/tabs-underline/tabs-underline-list.stylex.d.ts +14 -0
- package/dist/components/tabs-underline/tabs-underline-list.stylex.js +12 -0
- package/dist/components/tabs-underline/tabs-underline-tab.d.ts +3 -5
- package/dist/components/tabs-underline/tabs-underline-tab.js +6 -8
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.d.ts +27 -0
- package/dist/components/tabs-underline/tabs-underline-tab.stylex.js +25 -0
- package/dist/components/textarea/textarea.d.ts +7 -12
- package/dist/components/textarea/textarea.js +10 -23
- package/dist/components/textarea/textarea.stylex.d.ts +13 -0
- package/dist/components/textarea/textarea.stylex.js +11 -0
- package/dist/components/toggle-group/toggle-group-item.d.ts +3 -6
- package/dist/components/toggle-group/toggle-group-item.js +6 -8
- package/dist/components/toggle-group/toggle-group-item.stylex.d.ts +33 -0
- package/dist/components/toggle-group/toggle-group-item.stylex.js +34 -0
- package/dist/components/toggle-group/toggle-group.d.ts +3 -7
- package/dist/components/toggle-group/toggle-group.js +6 -9
- package/dist/components/toggle-group/toggle-group.stylex.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group.stylex.js +9 -0
- package/dist/components/tooltip/tooltip-popup.d.ts +2 -2
- package/dist/components/tooltip/tooltip-popup.js +6 -7
- package/dist/components/tooltip/tooltip-popup.stylex.d.ts +30 -0
- package/dist/components/tooltip/tooltip-popup.stylex.js +32 -0
- package/dist/components/tooltip/tooltip.d.ts +1 -4
- package/dist/components/tooltip/tooltip.js +2 -4
- package/dist/tailwind-colors/root.css +10 -0
- package/package.json +4 -3
- package/dist/components/button/button-spinner.css +0 -97
- package/dist/components/button/button-spinner.module.js +0 -8
- package/dist/components/button/button.css +0 -191
- package/dist/components/button/button.module.js +0 -21
- package/dist/components/checkbox/checkbox.css +0 -55
- package/dist/components/checkbox/checkbox.module.js +0 -9
- package/dist/components/column/column.css +0 -6
- package/dist/components/column/column.module.js +0 -5
- package/dist/components/combobox/combobox-empty.css +0 -9
- package/dist/components/combobox/combobox-empty.module.js +0 -5
- package/dist/components/combobox/combobox-input.css +0 -121
- package/dist/components/combobox/combobox-input.module.js +0 -16
- package/dist/components/combobox/combobox-search.css +0 -44
- package/dist/components/combobox/combobox-search.module.js +0 -9
- package/dist/components/combobox/combobox-value.css +0 -14
- package/dist/components/combobox/combobox-value.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.css +0 -28
- package/dist/components/dialog-responsive/dialog-responsive-backdrop.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-bar.css +0 -16
- package/dist/components/dialog-responsive/dialog-responsive-bar.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-popup.css +0 -56
- package/dist/components/dialog-responsive/dialog-responsive-popup.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-portal.css +0 -7
- package/dist/components/dialog-responsive/dialog-responsive-portal.module.js +0 -5
- package/dist/components/dialog-responsive/dialog-responsive-viewport.css +0 -18
- package/dist/components/dialog-responsive/dialog-responsive-viewport.module.js +0 -5
- package/dist/components/icon-button/icon-button.css +0 -21
- package/dist/components/icon-button/icon-button.module.js +0 -11
- package/dist/components/input/input.css +0 -83
- package/dist/components/input/input.module.js +0 -14
- package/dist/components/label/label.css +0 -8
- package/dist/components/label/label.module.js +0 -5
- package/dist/components/menu/menu-content.css +0 -7
- package/dist/components/menu/menu-content.module.js +0 -5
- package/dist/components/menu/menu-item.css +0 -7
- package/dist/components/menu/menu-item.module.js +0 -5
- package/dist/components/menu/menu-submenu-trigger.css +0 -16
- package/dist/components/menu/menu-submenu-trigger.module.js +0 -8
- package/dist/components/otp-field/otp-field-input.css +0 -32
- package/dist/components/otp-field/otp-field-input.module.js +0 -5
- package/dist/components/otp-field/otp-field.css +0 -13
- package/dist/components/otp-field/otp-field.module.js +0 -8
- package/dist/components/picker/picker-group.css +0 -14
- package/dist/components/picker/picker-group.module.js +0 -8
- package/dist/components/picker/picker-item.css +0 -43
- package/dist/components/picker/picker-item.module.js +0 -9
- package/dist/components/picker/picker-list.css +0 -15
- package/dist/components/picker/picker-list.module.js +0 -5
- package/dist/components/picker/picker-popup.css +0 -56
- package/dist/components/picker/picker-popup.module.js +0 -8
- package/dist/components/picker/picker-separator.css +0 -8
- package/dist/components/picker/picker-separator.module.js +0 -5
- package/dist/components/picker/picker-trigger.css +0 -85
- package/dist/components/picker/picker-trigger.module.js +0 -14
- package/dist/components/row/row.css +0 -6
- package/dist/components/row/row.module.js +0 -5
- package/dist/components/select/select-value.css +0 -14
- package/dist/components/select/select-value.module.js +0 -5
- package/dist/components/spacer/spacer.css +0 -5
- package/dist/components/spacer/spacer.module.js +0 -5
- package/dist/components/switch/switch.css +0 -55
- package/dist/components/switch/switch.module.js +0 -10
- package/dist/components/tabs/tabs-panel.css +0 -14
- package/dist/components/tabs/tabs-panel.module.js +0 -5
- package/dist/components/tabs/tabs.css +0 -6
- package/dist/components/tabs/tabs.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-indicator.css +0 -14
- package/dist/components/tabs-pill/tabs-pill-indicator.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-list.css +0 -9
- package/dist/components/tabs-pill/tabs-pill-list.module.js +0 -5
- package/dist/components/tabs-pill/tabs-pill-tab.css +0 -66
- package/dist/components/tabs-pill/tabs-pill-tab.module.js +0 -9
- package/dist/components/tabs-segmented/tabs-segmented-indicator.css +0 -14
- package/dist/components/tabs-segmented/tabs-segmented-indicator.module.js +0 -5
- package/dist/components/tabs-segmented/tabs-segmented-list.css +0 -13
- package/dist/components/tabs-segmented/tabs-segmented-list.module.js +0 -5
- package/dist/components/tabs-segmented/tabs-segmented-tab.css +0 -37
- package/dist/components/tabs-segmented/tabs-segmented-tab.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-indicator.css +0 -12
- package/dist/components/tabs-underline/tabs-underline-indicator.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-list.css +0 -10
- package/dist/components/tabs-underline/tabs-underline-list.module.js +0 -5
- package/dist/components/tabs-underline/tabs-underline-tab.css +0 -36
- package/dist/components/tabs-underline/tabs-underline-tab.module.js +0 -5
- package/dist/components/textarea/textarea.css +0 -9
- package/dist/components/textarea/textarea.module.js +0 -5
- package/dist/components/toggle-group/toggle-group-item.css +0 -47
- package/dist/components/toggle-group/toggle-group-item.module.js +0 -5
- package/dist/components/toggle-group/toggle-group.css +0 -7
- package/dist/components/toggle-group/toggle-group.module.js +0 -5
- package/dist/components/tooltip/tooltip-popup.css +0 -32
- package/dist/components/tooltip/tooltip-popup.module.js +0 -8
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { inputStyles } from "./input.stylex.js";
|
|
2
2
|
import { ComponentProps, JSX } from "react";
|
|
3
3
|
//#region src/components/input/input.d.ts
|
|
4
|
-
interface InputProps extends Omit<ComponentProps<"input">, "aria-pressed"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isInvalid?: boolean;
|
|
9
|
-
isReadOnly?: boolean;
|
|
10
|
-
isRequired?: boolean;
|
|
11
|
-
isRounded?: boolean;
|
|
12
|
-
isValid?: boolean;
|
|
4
|
+
interface InputProps extends Omit<ComponentProps<"input">, "aria-pressed"> {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
rounded?: boolean;
|
|
13
8
|
size?: InputSize;
|
|
9
|
+
valid?: boolean;
|
|
14
10
|
}
|
|
15
|
-
type InputSize =
|
|
11
|
+
type InputSize = 32 | 36 | 40 | 44 | 48;
|
|
16
12
|
declare function Input(props: InputProps): JSX.Element;
|
|
17
|
-
declare const inputVariants: (props?: ({
|
|
18
|
-
isRounded?: boolean | null | undefined;
|
|
19
|
-
size?: 32 | 36 | 40 | 44 | 48 | null | undefined;
|
|
20
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
13
|
//#endregion
|
|
22
|
-
export { Input, InputProps,
|
|
14
|
+
export { Input, InputProps, InputSize, inputStyles };
|
|
@@ -1,45 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { inputStyles } from "./input.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/input/input.tsx
|
|
5
5
|
function Input(props) {
|
|
6
|
-
const { className: customClassName = "",
|
|
6
|
+
const { className: customClassName = "", active = false, invalid = void 0, rounded = false, valid = void 0, size = 48, ...rest } = props;
|
|
7
7
|
return /* @__PURE__ */ jsx("input", {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
size
|
|
13
|
-
}),
|
|
14
|
-
"data-is-active": isActive,
|
|
15
|
-
"data-is-invalid": isInvalid,
|
|
16
|
-
"data-is-valid": isValid,
|
|
8
|
+
className: cn(sx(inputStyles.base, inputStyles[size], rounded && inputStyles.roundedFull), customClassName),
|
|
9
|
+
"data-is-active": active,
|
|
10
|
+
"data-is-invalid": invalid,
|
|
11
|
+
"data-is-valid": valid,
|
|
17
12
|
"data-slot": "input",
|
|
18
|
-
|
|
19
|
-
readOnly: isReadOnly,
|
|
20
|
-
required: isRequired,
|
|
21
|
-
type,
|
|
13
|
+
type: "text",
|
|
22
14
|
...rest
|
|
23
15
|
});
|
|
24
16
|
}
|
|
25
|
-
const inputVariants = cva(input_module_default.base, {
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
isRounded: false,
|
|
28
|
-
size: 48
|
|
29
|
-
},
|
|
30
|
-
variants: {
|
|
31
|
-
isRounded: {
|
|
32
|
-
false: input_module_default.rounded_base,
|
|
33
|
-
true: input_module_default.rounded_full
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
32: input_module_default.size_32,
|
|
37
|
-
36: input_module_default.size_36,
|
|
38
|
-
40: input_module_default.size_40,
|
|
39
|
-
44: input_module_default.size_44,
|
|
40
|
-
48: input_module_default.size_48
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
17
|
//#endregion
|
|
45
|
-
export { Input,
|
|
18
|
+
export { Input, inputStyles };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/input/input.stylex.d.ts
|
|
3
|
+
declare const inputStyles: Readonly<{
|
|
4
|
+
readonly 32: Readonly<{
|
|
5
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 8>;
|
|
6
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 32>;
|
|
7
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
8
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 8>;
|
|
9
|
+
}>;
|
|
10
|
+
readonly 36: Readonly<{
|
|
11
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 9>;
|
|
12
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 36>;
|
|
13
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
14
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 10>;
|
|
15
|
+
}>;
|
|
16
|
+
readonly 40: Readonly<{
|
|
17
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 10>;
|
|
18
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 40>;
|
|
19
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
20
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 12>;
|
|
21
|
+
}>;
|
|
22
|
+
readonly 44: Readonly<{
|
|
23
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 11>;
|
|
24
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 44>;
|
|
25
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
26
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 14>;
|
|
27
|
+
}>;
|
|
28
|
+
readonly 48: Readonly<{
|
|
29
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 12>;
|
|
30
|
+
readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 48>;
|
|
31
|
+
readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
|
|
32
|
+
readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 16>;
|
|
33
|
+
}>;
|
|
34
|
+
readonly base: Readonly<{
|
|
35
|
+
readonly "::placeholder": stylex.StyleXClassNameFor<"::placeholder", {
|
|
36
|
+
readonly color: "var(--color-gray-9)";
|
|
37
|
+
readonly userSelect: "none";
|
|
38
|
+
}>;
|
|
39
|
+
readonly appearance: stylex.StyleXClassNameFor<"appearance", "none">;
|
|
40
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--color-bg-shell-inner)">;
|
|
41
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "none">;
|
|
42
|
+
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "inset 0 0 0 1px var(--color-border)" | "inset 0 0 0 1px var(--color-gray-6)">;
|
|
43
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-text-primary)">;
|
|
44
|
+
readonly cursor: stylex.StyleXClassNameFor<"cursor", "text" | "not-allowed">;
|
|
45
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 14>;
|
|
46
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 400>;
|
|
47
|
+
readonly lineHeight: stylex.StyleXClassNameFor<"lineHeight", 1.5>;
|
|
48
|
+
readonly opacity: stylex.StyleXClassNameFor<"opacity", 1 | 0.5>;
|
|
49
|
+
readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "var(--color-outline)" | "transparent" | "#e5484d" | "#30a46c">;
|
|
50
|
+
readonly outlineOffset: stylex.StyleXClassNameFor<"outlineOffset", -2>;
|
|
51
|
+
readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
|
|
52
|
+
readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 2>;
|
|
53
|
+
readonly textDecoration: stylex.StyleXClassNameFor<"textDecoration", "none">;
|
|
54
|
+
readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "150ms">;
|
|
55
|
+
readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "box-shadow, opacity">;
|
|
56
|
+
readonly width: stylex.StyleXClassNameFor<"width", "100%">;
|
|
57
|
+
}>;
|
|
58
|
+
readonly roundedBase: Readonly<{
|
|
59
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 12>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly roundedFull: Readonly<{
|
|
62
|
+
readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", 9999>;
|
|
63
|
+
}>;
|
|
64
|
+
}>;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { inputStyles };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/components/input/input.stylex.ts
|
|
2
|
+
const inputStyles = {
|
|
3
|
+
"32": {
|
|
4
|
+
kaIpWk: "xur7f20",
|
|
5
|
+
kAzted: "x21xpn4",
|
|
6
|
+
k8WAf4: "xt970qd",
|
|
7
|
+
kg3NbH: "xdqyycr",
|
|
8
|
+
$$css: true
|
|
9
|
+
},
|
|
10
|
+
"36": {
|
|
11
|
+
kaIpWk: "xhpnuu7",
|
|
12
|
+
kAzted: "xu0aao5",
|
|
13
|
+
k8WAf4: "xt970qd",
|
|
14
|
+
kg3NbH: "x1awh872",
|
|
15
|
+
$$css: true
|
|
16
|
+
},
|
|
17
|
+
"40": {
|
|
18
|
+
kaIpWk: "x1q4ynmn",
|
|
19
|
+
kAzted: "x1ba4aug",
|
|
20
|
+
k8WAf4: "xt970qd",
|
|
21
|
+
kg3NbH: "xaope02",
|
|
22
|
+
$$css: true
|
|
23
|
+
},
|
|
24
|
+
"44": {
|
|
25
|
+
kaIpWk: "x1ctf4ec",
|
|
26
|
+
kAzted: "x1gg8mnh",
|
|
27
|
+
k8WAf4: "xt970qd",
|
|
28
|
+
kg3NbH: "xqin4a2",
|
|
29
|
+
$$css: true
|
|
30
|
+
},
|
|
31
|
+
"48": {
|
|
32
|
+
kaIpWk: "x4pepcl",
|
|
33
|
+
kAzted: "x1wxaq2x",
|
|
34
|
+
k8WAf4: "xt970qd",
|
|
35
|
+
kg3NbH: "x1hr3lfm",
|
|
36
|
+
$$css: true
|
|
37
|
+
},
|
|
38
|
+
base: {
|
|
39
|
+
k8Qsv1: "x1ta7s2x",
|
|
40
|
+
kI5SfV: "xjp5s5a",
|
|
41
|
+
kysU6D: "xjyslct",
|
|
42
|
+
kWkggS: "x1h73wb5",
|
|
43
|
+
ksu8eU: "xng3xce",
|
|
44
|
+
kGVxlE: "xnn6d81 xho1339 x1rlgnxn xhxsgan x1er153n",
|
|
45
|
+
kMwMTN: "x1tgivj0",
|
|
46
|
+
kkrTdU: "x1s07b3s x1ed109x",
|
|
47
|
+
kGuDYH: "xif65rj",
|
|
48
|
+
k63SB2: "xo1l8bm",
|
|
49
|
+
kLWn49: "x1evy7pa",
|
|
50
|
+
kSiTet: "xijokvz x1hc1fzr",
|
|
51
|
+
kjBf7l: "xfcj4rt x43j12e x1mr6snm x1uczgqu",
|
|
52
|
+
kInvED: "x2ssjo2",
|
|
53
|
+
k3XXqK: "xaatb59",
|
|
54
|
+
kMeerF: "x1de99jn",
|
|
55
|
+
kybGjl: "x1hl2dhg",
|
|
56
|
+
kIyJzY: "xx6bhzk",
|
|
57
|
+
k1ekBW: "xe97l14",
|
|
58
|
+
kzqmXN: "xh8yej3",
|
|
59
|
+
$$css: true
|
|
60
|
+
},
|
|
61
|
+
roundedBase: {
|
|
62
|
+
kaIpWk: "x4pepcl",
|
|
63
|
+
$$css: true
|
|
64
|
+
},
|
|
65
|
+
roundedFull: {
|
|
66
|
+
kaIpWk: "x10hpsqq",
|
|
67
|
+
$$css: true
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { inputStyles };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { labelStyles } from "./label.stylex.js";
|
|
1
2
|
import { ComponentProps, JSX } from "react";
|
|
2
3
|
//#region src/components/label/label.d.ts
|
|
3
4
|
interface LabelProps extends ComponentProps<"label"> {}
|
|
4
5
|
declare function Label(props: LabelProps): JSX.Element;
|
|
5
|
-
declare const labelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Label, LabelProps,
|
|
7
|
+
export { Label, LabelProps, labelStyles };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../cn.js";
|
|
2
|
+
import { labelStyles } from "./label.stylex.js";
|
|
3
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/label/label.tsx
|
|
5
6
|
function Label(props) {
|
|
6
|
-
const { className
|
|
7
|
+
const { className = "", htmlFor = void 0, children = void 0, ...rest } = props;
|
|
8
|
+
const { className: stylexClassName } = stylex.props(labelStyles.base);
|
|
7
9
|
return /* @__PURE__ */ jsx("label", {
|
|
8
|
-
className:
|
|
10
|
+
className: cn(stylexClassName, className),
|
|
9
11
|
"data-slot": "label",
|
|
10
12
|
htmlFor,
|
|
11
13
|
...rest,
|
|
12
14
|
children
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
|
-
const labelVariants = cva(label_module_default.base);
|
|
16
17
|
//#endregion
|
|
17
|
-
export { Label,
|
|
18
|
+
export { Label, labelStyles };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/label/label.stylex.d.ts
|
|
3
|
+
declare const labelStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-text-secondary)">;
|
|
6
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 13>;
|
|
7
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 450>;
|
|
8
|
+
readonly width: stylex.StyleXClassNameFor<"width", "fit-content">;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { labelStyles };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Menu } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/menu/menu-checkbox-item.d.ts
|
|
4
|
-
interface MenuCheckboxItemProps extends Omit<Menu.CheckboxItem.Props, "
|
|
4
|
+
interface MenuCheckboxItemProps extends Omit<Menu.CheckboxItem.Props, "className"> {
|
|
5
5
|
className?: string;
|
|
6
|
-
isChecked?: Menu.CheckboxItem.Props["checked"];
|
|
7
|
-
isDefaultChecked?: Menu.CheckboxItem.Props["defaultChecked"];
|
|
8
|
-
isDisabled?: Menu.CheckboxItem.Props["disabled"];
|
|
9
6
|
}
|
|
10
7
|
declare function MenuCheckboxItem(props: MenuCheckboxItemProps): JSX.Element;
|
|
11
|
-
declare const menuCheckboxItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
12
8
|
//#endregion
|
|
13
|
-
export { MenuCheckboxItem, MenuCheckboxItemProps
|
|
9
|
+
export { MenuCheckboxItem, MenuCheckboxItemProps };
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-checkbox-item.tsx
|
|
6
6
|
function MenuCheckboxItem(props) {
|
|
7
|
-
const { children, className: customClassName = "",
|
|
8
|
-
const combinedClassName = menuCheckboxItemVariants({ className: customClassName });
|
|
7
|
+
const { children, className: customClassName = "", ...rest } = props;
|
|
9
8
|
return /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
|
|
10
|
-
|
|
11
|
-
className: combinedClassName,
|
|
9
|
+
className: cn(sx(pickerItemStyles.base), customClassName),
|
|
12
10
|
"data-slot": "menu-checkbox-item",
|
|
13
|
-
defaultChecked: isDefaultChecked,
|
|
14
|
-
disabled: isDisabled,
|
|
15
11
|
...rest,
|
|
16
12
|
children: [/* @__PURE__ */ jsx("span", {
|
|
17
|
-
className:
|
|
13
|
+
className: sx(pickerItemStyles.label),
|
|
18
14
|
"data-slot": "menu-checkbox-item-text",
|
|
19
15
|
children
|
|
20
16
|
}), /* @__PURE__ */ jsx(Menu.CheckboxItemIndicator, {
|
|
21
|
-
className:
|
|
17
|
+
className: sx(pickerItemStyles.indicator),
|
|
22
18
|
"data-slot": "menu-checkbox-item-indicator",
|
|
23
19
|
children: /* @__PURE__ */ jsx("svg", {
|
|
24
20
|
height: "14px",
|
|
@@ -39,6 +35,5 @@ function MenuCheckboxItem(props) {
|
|
|
39
35
|
})]
|
|
40
36
|
});
|
|
41
37
|
}
|
|
42
|
-
const menuCheckboxItemVariants = cva(picker_item_module_default.base);
|
|
43
38
|
//#endregion
|
|
44
|
-
export { MenuCheckboxItem
|
|
39
|
+
export { MenuCheckboxItem };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { menuContentStyles } from "./menu-content.stylex.js";
|
|
1
2
|
import { Menu } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/menu/menu-content.d.ts
|
|
@@ -6,6 +7,5 @@ interface MenuContentProps extends Omit<Menu.Popup.Props, "className">, Pick<Men
|
|
|
6
7
|
container?: Menu.Portal.Props["container"];
|
|
7
8
|
}
|
|
8
9
|
declare function MenuContent(props: MenuContentProps): JSX.Element;
|
|
9
|
-
declare const menuContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { MenuContent, MenuContentProps,
|
|
11
|
+
export { MenuContent, MenuContentProps, menuContentStyles };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerPopupStyles } from "../picker/picker-popup.stylex.js";
|
|
3
|
+
import { pickerListStyles } from "../picker/picker-list.stylex.js";
|
|
4
|
+
import { menuContentStyles } from "./menu-content.stylex.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Menu } from "@base-ui/react";
|
|
7
7
|
//#region src/components/menu/menu-content.tsx
|
|
8
8
|
function MenuContent(props) {
|
|
9
9
|
const { align = "start", alignOffset = getDefaultAlignOffset, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, positionMethod = void 0, side = void 0, sideOffset = getDefaultSideOffset, sticky = void 0, ...rest } = props;
|
|
10
|
-
const combinedClassName = menuContentVariants({ className: customClassName });
|
|
11
10
|
return /* @__PURE__ */ jsx(Menu.Portal, {
|
|
12
11
|
container,
|
|
13
12
|
"data-slot": "menu-portal",
|
|
@@ -16,7 +15,7 @@ function MenuContent(props) {
|
|
|
16
15
|
alignOffset,
|
|
17
16
|
anchor,
|
|
18
17
|
arrowPadding,
|
|
19
|
-
className:
|
|
18
|
+
className: sx(pickerPopupStyles.positioner),
|
|
20
19
|
collisionAvoidance,
|
|
21
20
|
collisionBoundary,
|
|
22
21
|
collisionPadding,
|
|
@@ -27,11 +26,11 @@ function MenuContent(props) {
|
|
|
27
26
|
sideOffset,
|
|
28
27
|
sticky,
|
|
29
28
|
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
30
|
-
className:
|
|
29
|
+
className: cn(sx(pickerPopupStyles.base, menuContentStyles.base), customClassName),
|
|
31
30
|
"data-slot": "menu-content",
|
|
32
31
|
...rest,
|
|
33
32
|
children: /* @__PURE__ */ jsx("div", {
|
|
34
|
-
className:
|
|
33
|
+
className: sx(pickerListStyles.base),
|
|
35
34
|
"data-slot": "menu-list",
|
|
36
35
|
children
|
|
37
36
|
})
|
|
@@ -45,6 +44,5 @@ function getDefaultAlignOffset(data) {
|
|
|
45
44
|
function getDefaultSideOffset(data) {
|
|
46
45
|
return data.side === "bottom" || data.side === "top" ? 6 : -4;
|
|
47
46
|
}
|
|
48
|
-
const menuContentVariants = cva([picker_popup_module_default.base, menu_content_module_default.base]);
|
|
49
47
|
//#endregion
|
|
50
|
-
export { MenuContent,
|
|
48
|
+
export { MenuContent, menuContentStyles };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/menu/menu-content.stylex.d.ts
|
|
3
|
+
declare const menuContentStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "min(var(--available-width), 320px)">;
|
|
6
|
+
readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 180>;
|
|
7
|
+
readonly width: stylex.StyleXClassNameFor<"width", "max-content">;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { menuContentStyles };
|
|
@@ -5,6 +5,5 @@ interface MenuGroupLabelProps extends Omit<Menu.GroupLabel.Props, "className"> {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare function MenuGroupLabel(props: MenuGroupLabelProps): JSX.Element;
|
|
8
|
-
declare const menuGroupLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { MenuGroupLabel, MenuGroupLabelProps
|
|
9
|
+
export { MenuGroupLabel, MenuGroupLabelProps };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-group-label.tsx
|
|
6
6
|
function MenuGroupLabel(props) {
|
|
7
7
|
const { className: customClassName = "", ...rest } = props;
|
|
8
|
-
const combinedClassName = menuGroupLabelVariants({ className: customClassName });
|
|
9
8
|
return /* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(pickerGroupStyles.label), customClassName),
|
|
11
10
|
"data-slot": "menu-group-label",
|
|
12
11
|
...rest
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
|
-
const menuGroupLabelVariants = cva(picker_group_module_default.label);
|
|
16
14
|
//#endregion
|
|
17
|
-
export { MenuGroupLabel
|
|
15
|
+
export { MenuGroupLabel };
|
|
@@ -5,6 +5,5 @@ interface MenuGroupProps extends Omit<Menu.Group.Props, "className"> {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare function MenuGroup(props: MenuGroupProps): JSX.Element;
|
|
8
|
-
declare const menuGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { MenuGroup, MenuGroupProps
|
|
9
|
+
export { MenuGroup, MenuGroupProps };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-group.tsx
|
|
6
6
|
function MenuGroup(props) {
|
|
7
7
|
const { className: customClassName = "", ...rest } = props;
|
|
8
|
-
const combinedClassName = menuGroupVariants({ className: customClassName });
|
|
9
8
|
return /* @__PURE__ */ jsx(Menu.Group, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(pickerGroupStyles.base), customClassName),
|
|
11
10
|
"data-slot": "menu-group",
|
|
12
11
|
...rest
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
|
-
const menuGroupVariants = cva(picker_group_module_default.base);
|
|
16
14
|
//#endregion
|
|
17
|
-
export { MenuGroup
|
|
15
|
+
export { MenuGroup };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { menuItemStyles } from "./menu-item.stylex.js";
|
|
1
2
|
import { Menu } from "@base-ui/react";
|
|
2
3
|
import { JSX } from "react";
|
|
3
4
|
//#region src/components/menu/menu-item.d.ts
|
|
4
|
-
interface MenuItemProps extends Omit<Menu.Item.Props, "className"
|
|
5
|
+
interface MenuItemProps extends Omit<Menu.Item.Props, "className"> {
|
|
5
6
|
className?: string;
|
|
6
|
-
isDisabled?: Menu.Item.Props["disabled"];
|
|
7
7
|
}
|
|
8
8
|
declare function MenuItem(props: MenuItemProps): JSX.Element;
|
|
9
|
-
declare const menuItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
9
|
//#endregion
|
|
11
|
-
export { MenuItem, MenuItemProps,
|
|
10
|
+
export { MenuItem, MenuItemProps, menuItemStyles };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
|
+
import { menuItemStyles } from "./menu-item.stylex.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Menu } from "@base-ui/react";
|
|
6
6
|
//#region src/components/menu/menu-item.tsx
|
|
7
7
|
function MenuItem(props) {
|
|
8
|
-
const { className: customClassName = "",
|
|
9
|
-
const combinedClassName = menuItemVariants({ className: customClassName });
|
|
8
|
+
const { className: customClassName = "", ...rest } = props;
|
|
10
9
|
return /* @__PURE__ */ jsx(Menu.Item, {
|
|
11
|
-
className:
|
|
10
|
+
className: cn(sx(pickerItemStyles.base, menuItemStyles.base), customClassName),
|
|
12
11
|
"data-slot": "menu-item",
|
|
13
|
-
disabled: isDisabled,
|
|
14
12
|
...rest
|
|
15
13
|
});
|
|
16
14
|
}
|
|
17
|
-
const menuItemVariants = cva([picker_item_module_default.base, menu_item_module_default.base]);
|
|
18
15
|
//#endregion
|
|
19
|
-
export { MenuItem,
|
|
16
|
+
export { MenuItem, menuItemStyles };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
//#region src/components/menu/menu-item.stylex.d.ts
|
|
3
|
+
declare const menuItemStyles: Readonly<{
|
|
4
|
+
readonly base: Readonly<{
|
|
5
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--color-text-primary)">;
|
|
6
|
+
readonly fontSize: stylex.StyleXClassNameFor<"fontSize", 14>;
|
|
7
|
+
readonly fontWeight: stylex.StyleXClassNameFor<"fontWeight", 450>;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { menuItemStyles };
|
|
@@ -5,6 +5,5 @@ interface MenuLinkItemProps extends Omit<Menu.LinkItem.Props, "className"> {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare function MenuLinkItem(props: MenuLinkItemProps): JSX.Element;
|
|
8
|
-
declare const menuLinkItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { MenuLinkItem, MenuLinkItemProps
|
|
9
|
+
export { MenuLinkItem, MenuLinkItemProps };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerItemStyles } from "../picker/picker-item.stylex.js";
|
|
3
|
+
import { menuItemStyles } from "./menu-item.stylex.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Menu } from "@base-ui/react";
|
|
6
6
|
//#region src/components/menu/menu-link-item.tsx
|
|
7
7
|
function MenuLinkItem(props) {
|
|
8
8
|
const { className: customClassName = "", ...rest } = props;
|
|
9
|
-
const combinedClassName = menuLinkItemVariants({ className: customClassName });
|
|
10
9
|
return /* @__PURE__ */ jsx(Menu.LinkItem, {
|
|
11
|
-
className:
|
|
10
|
+
className: cn(sx(pickerItemStyles.base, menuItemStyles.base), customClassName),
|
|
12
11
|
"data-slot": "menu-link-item",
|
|
13
12
|
...rest
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const menuLinkItemVariants = cva([picker_item_module_default.base, menu_item_module_default.base]);
|
|
17
15
|
//#endregion
|
|
18
|
-
export { MenuLinkItem
|
|
16
|
+
export { MenuLinkItem };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Menu } from "@base-ui/react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
//#region src/components/menu/menu-radio-group.d.ts
|
|
4
|
-
interface MenuRadioGroupProps extends Omit<Menu.RadioGroup.Props, "className"
|
|
4
|
+
interface MenuRadioGroupProps extends Omit<Menu.RadioGroup.Props, "className"> {
|
|
5
5
|
className?: string;
|
|
6
|
-
isDisabled?: Menu.RadioGroup.Props["disabled"];
|
|
7
6
|
}
|
|
8
7
|
declare function MenuRadioGroup(props: MenuRadioGroupProps): JSX.Element;
|
|
9
|
-
declare const menuRadioGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
8
|
//#endregion
|
|
11
|
-
export { MenuRadioGroup, MenuRadioGroupProps
|
|
9
|
+
export { MenuRadioGroup, MenuRadioGroupProps };
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { cn, sx } from "../cn.js";
|
|
2
|
+
import { pickerGroupStyles } from "../picker/picker-group.stylex.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Menu } from "@base-ui/react";
|
|
5
5
|
//#region src/components/menu/menu-radio-group.tsx
|
|
6
6
|
function MenuRadioGroup(props) {
|
|
7
|
-
const { className: customClassName = "",
|
|
8
|
-
const combinedClassName = menuRadioGroupVariants({ className: customClassName });
|
|
7
|
+
const { className: customClassName = "", ...rest } = props;
|
|
9
8
|
return /* @__PURE__ */ jsx(Menu.RadioGroup, {
|
|
10
|
-
className:
|
|
9
|
+
className: cn(sx(pickerGroupStyles.base), customClassName),
|
|
11
10
|
"data-slot": "menu-radio-group",
|
|
12
|
-
disabled: isDisabled,
|
|
13
11
|
...rest
|
|
14
12
|
});
|
|
15
13
|
}
|
|
16
|
-
const menuRadioGroupVariants = cva(picker_group_module_default.base);
|
|
17
14
|
//#endregion
|
|
18
|
-
export { MenuRadioGroup
|
|
15
|
+
export { MenuRadioGroup };
|