@nattstack/ui 0.0.88 → 0.0.90

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.
Files changed (124) hide show
  1. package/dist/components/button/button.js +1 -0
  2. package/dist/components/button-link/button-link.js +1 -0
  3. package/dist/components/checkbox/checkbox-icon.js +1 -0
  4. package/dist/components/checkbox/checkbox.css +4 -4
  5. package/dist/components/checkbox/checkbox.js +2 -1
  6. package/dist/components/checkbox/checkbox.module.js +1 -1
  7. package/dist/components/column/column.css +1 -1
  8. package/dist/components/column/column.js +2 -1
  9. package/dist/components/column/column.module.js +1 -1
  10. package/dist/components/dialog-responsive/dialog-responsive-backdrop.css +5 -5
  11. package/dist/components/dialog-responsive/dialog-responsive-backdrop.js +1 -1
  12. package/dist/components/dialog-responsive/dialog-responsive-backdrop.module.js +1 -1
  13. package/dist/components/dialog-responsive/dialog-responsive-bar.css +2 -2
  14. package/dist/components/dialog-responsive/dialog-responsive-bar.js +1 -1
  15. package/dist/components/dialog-responsive/dialog-responsive-bar.module.js +1 -1
  16. package/dist/components/dialog-responsive/dialog-responsive-popup.css +7 -7
  17. package/dist/components/dialog-responsive/dialog-responsive-popup.js +1 -1
  18. package/dist/components/dialog-responsive/dialog-responsive-popup.module.js +1 -1
  19. package/dist/components/dialog-responsive/dialog-responsive-portal.css +1 -1
  20. package/dist/components/dialog-responsive/dialog-responsive-portal.js +1 -1
  21. package/dist/components/dialog-responsive/dialog-responsive-portal.module.js +1 -1
  22. package/dist/components/dialog-responsive/dialog-responsive-viewport.css +2 -2
  23. package/dist/components/dialog-responsive/dialog-responsive-viewport.js +1 -1
  24. package/dist/components/dialog-responsive/dialog-responsive-viewport.module.js +1 -1
  25. package/dist/components/icon-button/icon-button.js +1 -0
  26. package/dist/components/index.d.ts +9 -1
  27. package/dist/components/index.js +9 -1
  28. package/dist/components/input/input.css +14 -14
  29. package/dist/components/input/input.js +9 -8
  30. package/dist/components/input/input.module.js +8 -8
  31. package/dist/components/label/label.css +2 -2
  32. package/dist/components/label/label.js +3 -2
  33. package/dist/components/label/label.module.js +1 -1
  34. package/dist/components/otp-field/otp-field-input.css +4 -4
  35. package/dist/components/otp-field/otp-field-input.js +2 -1
  36. package/dist/components/otp-field/otp-field-input.module.js +1 -1
  37. package/dist/components/otp-field/otp-field.css +2 -2
  38. package/dist/components/otp-field/otp-field.js +3 -2
  39. package/dist/components/otp-field/otp-field.module.js +2 -2
  40. package/dist/components/row/row.css +1 -1
  41. package/dist/components/row/row.js +2 -1
  42. package/dist/components/row/row.module.js +1 -1
  43. package/dist/components/select/select-content.css +59 -0
  44. package/dist/components/select/select-content.d.ts +11 -0
  45. package/dist/components/select/select-content.js +39 -0
  46. package/dist/components/select/select-content.module.js +8 -0
  47. package/dist/components/select/select-group-label.css +8 -0
  48. package/dist/components/select/select-group-label.d.ts +10 -0
  49. package/dist/components/select/select-group-label.js +17 -0
  50. package/dist/components/select/select-group-label.module.js +5 -0
  51. package/dist/components/select/select-group.css +6 -0
  52. package/dist/components/select/select-group.d.ts +10 -0
  53. package/dist/components/select/select-group.js +17 -0
  54. package/dist/components/select/select-group.module.js +5 -0
  55. package/dist/components/select/select-item.css +43 -0
  56. package/dist/components/select/select-item.d.ts +11 -0
  57. package/dist/components/select/select-item.js +42 -0
  58. package/dist/components/select/select-item.module.js +9 -0
  59. package/dist/components/select/select-separator.css +8 -0
  60. package/dist/components/select/select-separator.d.ts +10 -0
  61. package/dist/components/select/select-separator.js +17 -0
  62. package/dist/components/select/select-separator.module.js +5 -0
  63. package/dist/components/select/select-trigger.css +76 -0
  64. package/dist/components/select/select-trigger.d.ts +15 -0
  65. package/dist/components/select/select-trigger.js +48 -0
  66. package/dist/components/select/select-trigger.module.js +14 -0
  67. package/dist/components/select/select-value.css +14 -0
  68. package/dist/components/select/select-value.d.ts +8 -0
  69. package/dist/components/select/select-value.js +18 -0
  70. package/dist/components/select/select-value.module.js +5 -0
  71. package/dist/components/select/select.d.ts +7 -0
  72. package/dist/components/select/select.js +12 -0
  73. package/dist/components/spacer/spacer.css +1 -1
  74. package/dist/components/spacer/spacer.js +2 -1
  75. package/dist/components/spacer/spacer.module.js +1 -1
  76. package/dist/components/switch/switch.css +8 -8
  77. package/dist/components/switch/switch.js +5 -4
  78. package/dist/components/switch/switch.module.js +4 -4
  79. package/dist/components/tabs/tabs-panel.css +2 -2
  80. package/dist/components/tabs/tabs-panel.js +1 -1
  81. package/dist/components/tabs/tabs-panel.module.js +1 -1
  82. package/dist/components/tabs/tabs.css +1 -1
  83. package/dist/components/tabs/tabs.js +1 -1
  84. package/dist/components/tabs/tabs.module.js +1 -1
  85. package/dist/components/tabs-pill/tabs-pill-indicator.css +1 -1
  86. package/dist/components/tabs-pill/tabs-pill-indicator.js +1 -1
  87. package/dist/components/tabs-pill/tabs-pill-indicator.module.js +1 -1
  88. package/dist/components/tabs-pill/tabs-pill-list.css +1 -1
  89. package/dist/components/tabs-pill/tabs-pill-list.js +2 -2
  90. package/dist/components/tabs-pill/tabs-pill-list.module.js +1 -1
  91. package/dist/components/tabs-pill/tabs-pill-tab.css +9 -9
  92. package/dist/components/tabs-pill/tabs-pill-tab.js +3 -3
  93. package/dist/components/tabs-pill/tabs-pill-tab.module.js +3 -3
  94. package/dist/components/tabs-segmented/tabs-segmented-indicator.css +1 -1
  95. package/dist/components/tabs-segmented/tabs-segmented-indicator.js +1 -1
  96. package/dist/components/tabs-segmented/tabs-segmented-indicator.module.js +1 -1
  97. package/dist/components/tabs-segmented/tabs-segmented-list.css +1 -1
  98. package/dist/components/tabs-segmented/tabs-segmented-list.js +2 -2
  99. package/dist/components/tabs-segmented/tabs-segmented-list.module.js +1 -1
  100. package/dist/components/tabs-segmented/tabs-segmented-tab.css +4 -4
  101. package/dist/components/tabs-segmented/tabs-segmented-tab.js +1 -1
  102. package/dist/components/tabs-segmented/tabs-segmented-tab.module.js +1 -1
  103. package/dist/components/tabs-underline/tabs-underline-indicator.css +1 -1
  104. package/dist/components/tabs-underline/tabs-underline-indicator.js +1 -1
  105. package/dist/components/tabs-underline/tabs-underline-indicator.module.js +1 -1
  106. package/dist/components/tabs-underline/tabs-underline-list.css +1 -1
  107. package/dist/components/tabs-underline/tabs-underline-list.js +2 -2
  108. package/dist/components/tabs-underline/tabs-underline-list.module.js +1 -1
  109. package/dist/components/tabs-underline/tabs-underline-tab.css +4 -4
  110. package/dist/components/tabs-underline/tabs-underline-tab.js +1 -1
  111. package/dist/components/tabs-underline/tabs-underline-tab.module.js +1 -1
  112. package/dist/components/textarea/textarea.css +1 -1
  113. package/dist/components/textarea/textarea.js +4 -3
  114. package/dist/components/textarea/textarea.module.js +1 -1
  115. package/dist/components/toggle-group/toggle-group-item.css +6 -6
  116. package/dist/components/toggle-group/toggle-group-item.js +1 -1
  117. package/dist/components/toggle-group/toggle-group-item.module.js +1 -1
  118. package/dist/components/toggle-group/toggle-group.css +1 -1
  119. package/dist/components/toggle-group/toggle-group.js +1 -1
  120. package/dist/components/toggle-group/toggle-group.module.js +1 -1
  121. package/dist/components/tooltip/tooltip-popup.css +5 -5
  122. package/dist/components/tooltip/tooltip-popup.js +3 -3
  123. package/dist/components/tooltip/tooltip-popup.module.js +2 -2
  124. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- .otp-field-module_otp_field_6ylpka {
2
+ .otp-field-module_base_6ylpka {
3
3
  flex-wrap: wrap;
4
4
  justify-content: center;
5
5
  gap: 8px;
@@ -7,7 +7,7 @@
7
7
  display: flex;
8
8
  }
9
9
 
10
- .otp-field-module_otp_field__masked_6ylpka > input {
10
+ .otp-field-module_masked_6ylpka > input {
11
11
  font-family: var(--font-code);
12
12
  }
13
13
  }
@@ -11,16 +11,17 @@ function OTPField$1(props) {
11
11
  });
12
12
  return /* @__PURE__ */ jsx(OTPField.Root, {
13
13
  className: combinedClassName,
14
+ "data-slot": "otp-field",
14
15
  disabled: isDisabled,
15
16
  mask: isMasked,
16
17
  ...rest
17
18
  });
18
19
  }
19
- const otpFieldVariants = cva(otp_field_module_default.otp_field, {
20
+ const otpFieldVariants = cva(otp_field_module_default.base, {
20
21
  defaultVariants: { isMasked: false },
21
22
  variants: { isMasked: {
22
23
  false: "",
23
- true: otp_field_module_default.otp_field__masked
24
+ true: otp_field_module_default.masked
24
25
  } }
25
26
  });
26
27
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import './otp-field.css';
2
2
  //#region src/components/otp-field/otp-field.module.css
3
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"
4
+ "base": "otp-field-module_base_6ylpka",
5
+ "masked": "otp-field-module_masked_6ylpka"
6
6
  };
7
7
  //#endregion
8
8
  export { otp_field_module_default as default };
@@ -1,5 +1,5 @@
1
1
  @layer components {
2
- .row-module_row_FQp50q {
2
+ .row-module_base_FQp50q {
3
3
  flex-direction: row;
4
4
  display: flex;
5
5
  }
@@ -6,6 +6,7 @@ function Row(props) {
6
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
7
  return createElement(as, {
8
8
  className: rowVariants({ className: customClassName }),
9
+ "data-slot": "row",
9
10
  style: {
10
11
  ...customStyle,
11
12
  ...gap === void 0 ? {} : { gap },
@@ -18,6 +19,6 @@ function Row(props) {
18
19
  ...rest
19
20
  });
20
21
  }
21
- const rowVariants = cva(row_module_default.row);
22
+ const rowVariants = cva(row_module_default.base);
22
23
  //#endregion
23
24
  export { Row, rowVariants };
@@ -1,5 +1,5 @@
1
1
  import './row.css';
2
2
  //#region src/components/row/row.module.css
3
- var row_module_default = { "row": "row-module_row_FQp50q" };
3
+ var row_module_default = { "base": "row-module_base_FQp50q" };
4
4
  //#endregion
5
5
  export { row_module_default as default };
@@ -0,0 +1,59 @@
1
+ @layer components {
2
+ .select-content-module_positioner_T-MXlW {
3
+ isolation: isolate;
4
+ z-index: 50;
5
+ }
6
+
7
+ .select-content-module_base_T-MXlW {
8
+ background-color: var(--color-bg-shell-inner);
9
+ box-shadow: 0 0 0 1px var(--color-border) inset,
10
+ 0 .5px 0 oklab(0% none none / .03),
11
+ 0 36px 15px -4px oklab(0% none none / .01),
12
+ 0 20px 12px -3px oklab(0% none none / .03),
13
+ 0 9px 9px -2px oklab(0% none none / .04),
14
+ 0 2px 5px -1px oklab(0% none none / .05);
15
+ color: var(--color-text-primary);
16
+ font-family: var(--font-body);
17
+ max-height: min(var(--available-height), 480px);
18
+ max-width: min(var(--available-width), 320px);
19
+ min-width: max(var(--anchor-width), 180px);
20
+ outline-color: var(--color-primary-9);
21
+ outline-offset: -2px;
22
+ transform-origin: var(--transform-origin);
23
+ will-change: opacity, transform;
24
+ border-radius: 12px;
25
+ outline-width: 0;
26
+ outline-style: solid;
27
+ flex-direction: column;
28
+ padding: 4px;
29
+ transition-property: opacity, transform;
30
+ transition-duration: .15s;
31
+ display: flex;
32
+ overflow: auto;
33
+ }
34
+
35
+ .select-content-module_base_T-MXlW:focus-visible {
36
+ outline-width: 2px;
37
+ }
38
+
39
+ .select-content-module_base_T-MXlW[data-ending-style], .select-content-module_base_T-MXlW[data-starting-style] {
40
+ opacity: 0;
41
+ transform: scale(.975);
42
+ }
43
+
44
+ .select-content-module_base_T-MXlW[data-side="top"][data-ending-style], .select-content-module_base_T-MXlW[data-side="top"][data-starting-style] {
45
+ transform: scale(.975) translateY(4px);
46
+ }
47
+
48
+ .select-content-module_base_T-MXlW[data-side="bottom"][data-ending-style], .select-content-module_base_T-MXlW[data-side="bottom"][data-starting-style] {
49
+ transform: scale(.975) translateY(-4px);
50
+ }
51
+
52
+ .select-content-module_base_T-MXlW[data-side="left"][data-ending-style], .select-content-module_base_T-MXlW[data-side="left"][data-starting-style], .select-content-module_base_T-MXlW[data-side="inline-start"][data-ending-style], .select-content-module_base_T-MXlW[data-side="inline-start"][data-starting-style] {
53
+ transform: scale(.975) translateX(4px);
54
+ }
55
+
56
+ .select-content-module_base_T-MXlW[data-side="right"][data-ending-style], .select-content-module_base_T-MXlW[data-side="right"][data-starting-style], .select-content-module_base_T-MXlW[data-side="inline-end"][data-ending-style], .select-content-module_base_T-MXlW[data-side="inline-end"][data-starting-style] {
57
+ transform: scale(.975) translateX(-4px);
58
+ }
59
+ }
@@ -0,0 +1,11 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-content.d.ts
4
+ interface SelectContentProps extends Omit<Select.Popup.Props, "className">, Pick<Select.Positioner.Props, "align" | "alignItemWithTrigger" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> {
5
+ className?: string;
6
+ container?: Select.Portal.Props["container"];
7
+ }
8
+ declare function SelectContent(props: SelectContentProps): JSX.Element;
9
+ declare const selectContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
+ //#endregion
11
+ export { SelectContent, SelectContentProps, selectContentVariants };
@@ -0,0 +1,39 @@
1
+ import select_content_module_default from "./select-content.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-content.tsx
6
+ function SelectContent(props) {
7
+ const { align = "start", alignItemWithTrigger = false, alignOffset = void 0, 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 = "bottom", sideOffset = 6, sticky = void 0, ...rest } = props;
8
+ const combinedClassName = selectContentVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsx(Select.Portal, {
10
+ container,
11
+ "data-slot": "select-portal",
12
+ children: /* @__PURE__ */ jsx(Select.Positioner, {
13
+ align,
14
+ alignItemWithTrigger,
15
+ alignOffset,
16
+ anchor,
17
+ arrowPadding,
18
+ className: select_content_module_default.positioner,
19
+ collisionAvoidance,
20
+ collisionBoundary,
21
+ collisionPadding,
22
+ "data-slot": "select-positioner",
23
+ disableAnchorTracking,
24
+ positionMethod,
25
+ side,
26
+ sideOffset,
27
+ sticky,
28
+ children: /* @__PURE__ */ jsx(Select.Popup, {
29
+ className: combinedClassName,
30
+ "data-slot": "select-content",
31
+ ...rest,
32
+ children
33
+ })
34
+ })
35
+ });
36
+ }
37
+ const selectContentVariants = cva(select_content_module_default.base);
38
+ //#endregion
39
+ export { SelectContent, selectContentVariants };
@@ -0,0 +1,8 @@
1
+ import './select-content.css';
2
+ //#region src/components/select/select-content.module.css
3
+ var select_content_module_default = {
4
+ "base": "select-content-module_base_T-MXlW",
5
+ "positioner": "select-content-module_positioner_T-MXlW"
6
+ };
7
+ //#endregion
8
+ export { select_content_module_default as default };
@@ -0,0 +1,8 @@
1
+ @layer components {
2
+ .select-group-label-module_base_SHogxq {
3
+ color: var(--color-text-secondary);
4
+ padding: 6px 12px 4px;
5
+ font-size: 12px;
6
+ font-weight: 450;
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-group-label.d.ts
4
+ interface SelectGroupLabelProps extends Omit<Select.GroupLabel.Props, "className"> {
5
+ className?: string;
6
+ }
7
+ declare function SelectGroupLabel(props: SelectGroupLabelProps): JSX.Element;
8
+ declare const selectGroupLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ //#endregion
10
+ export { SelectGroupLabel, SelectGroupLabelProps, selectGroupLabelVariants };
@@ -0,0 +1,17 @@
1
+ import select_group_label_module_default from "./select-group-label.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-group-label.tsx
6
+ function SelectGroupLabel(props) {
7
+ const { className: customClassName = "", ...rest } = props;
8
+ const combinedClassName = selectGroupLabelVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsx(Select.GroupLabel, {
10
+ className: combinedClassName,
11
+ "data-slot": "select-group-label",
12
+ ...rest
13
+ });
14
+ }
15
+ const selectGroupLabelVariants = cva(select_group_label_module_default.base);
16
+ //#endregion
17
+ export { SelectGroupLabel, selectGroupLabelVariants };
@@ -0,0 +1,5 @@
1
+ import './select-group-label.css';
2
+ //#region src/components/select/select-group-label.module.css
3
+ var select_group_label_module_default = { "base": "select-group-label-module_base_SHogxq" };
4
+ //#endregion
5
+ export { select_group_label_module_default as default };
@@ -0,0 +1,6 @@
1
+ @layer components {
2
+ .select-group-module_base_1Igl6W {
3
+ flex-direction: column;
4
+ display: flex;
5
+ }
6
+ }
@@ -0,0 +1,10 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-group.d.ts
4
+ interface SelectGroupProps extends Omit<Select.Group.Props, "className"> {
5
+ className?: string;
6
+ }
7
+ declare function SelectGroup(props: SelectGroupProps): JSX.Element;
8
+ declare const selectGroupVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ //#endregion
10
+ export { SelectGroup, SelectGroupProps, selectGroupVariants };
@@ -0,0 +1,17 @@
1
+ import select_group_module_default from "./select-group.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-group.tsx
6
+ function SelectGroup(props) {
7
+ const { className: customClassName = "", ...rest } = props;
8
+ const combinedClassName = selectGroupVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsx(Select.Group, {
10
+ className: combinedClassName,
11
+ "data-slot": "select-group",
12
+ ...rest
13
+ });
14
+ }
15
+ const selectGroupVariants = cva(select_group_module_default.base);
16
+ //#endregion
17
+ export { SelectGroup, selectGroupVariants };
@@ -0,0 +1,5 @@
1
+ import './select-group.css';
2
+ //#region src/components/select/select-group.module.css
3
+ var select_group_module_default = { "base": "select-group-module_base_1Igl6W" };
4
+ //#endregion
5
+ export { select_group_module_default as default };
@@ -0,0 +1,43 @@
1
+ @layer components {
2
+ .select-item-module_base_YQBXPq {
3
+ cursor: pointer;
4
+ user-select: none;
5
+ border-radius: 8px;
6
+ outline: none;
7
+ flex-shrink: 0;
8
+ align-items: center;
9
+ column-gap: 8px;
10
+ height: 36px;
11
+ padding: 0 12px;
12
+ display: flex;
13
+ }
14
+
15
+ .select-item-module_base_YQBXPq[data-disabled] {
16
+ cursor: not-allowed;
17
+ opacity: .5;
18
+ }
19
+
20
+ .select-item-module_base_YQBXPq[data-highlighted] {
21
+ background-color: var(--color-gray-3);
22
+ }
23
+
24
+ .select-item-module_label_YQBXPq {
25
+ color: var(--color-text-primary);
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ font-size: 14px;
29
+ font-weight: 450;
30
+ overflow-x: hidden;
31
+ }
32
+
33
+ .select-item-module_indicator_YQBXPq {
34
+ color: var(--color-primary-9);
35
+ flex-shrink: 0;
36
+ justify-content: center;
37
+ align-items: center;
38
+ width: 16px;
39
+ height: 16px;
40
+ margin-left: auto;
41
+ display: flex;
42
+ }
43
+ }
@@ -0,0 +1,11 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-item.d.ts
4
+ interface SelectItemProps extends Omit<Select.Item.Props, "className" | "disabled"> {
5
+ className?: string;
6
+ isDisabled?: Select.Item.Props["disabled"];
7
+ }
8
+ declare function SelectItem(props: SelectItemProps): JSX.Element;
9
+ declare const selectItemVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
+ //#endregion
11
+ export { SelectItem, SelectItemProps, selectItemVariants };
@@ -0,0 +1,42 @@
1
+ import select_item_module_default from "./select-item.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-item.tsx
6
+ function SelectItem(props) {
7
+ const { children, className: customClassName = "", isDisabled = false, ...rest } = props;
8
+ const combinedClassName = selectItemVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsxs(Select.Item, {
10
+ className: combinedClassName,
11
+ "data-slot": "select-item",
12
+ disabled: isDisabled,
13
+ ...rest,
14
+ children: [/* @__PURE__ */ jsx(Select.ItemText, {
15
+ className: select_item_module_default.label,
16
+ "data-slot": "select-item-text",
17
+ children
18
+ }), /* @__PURE__ */ jsx(Select.ItemIndicator, {
19
+ className: select_item_module_default.indicator,
20
+ "data-slot": "select-item-indicator",
21
+ children: /* @__PURE__ */ jsx("svg", {
22
+ height: "14px",
23
+ viewBox: "0 0 18 18",
24
+ width: "14px",
25
+ x: "0px",
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ y: "0px",
28
+ children: /* @__PURE__ */ jsx("polyline", {
29
+ fill: "none",
30
+ points: "2.75 9.25 6.75 14.25 15.25 3.75",
31
+ stroke: "currentColor",
32
+ strokeLinecap: "round",
33
+ strokeLinejoin: "round",
34
+ strokeWidth: "1.5"
35
+ })
36
+ })
37
+ })]
38
+ });
39
+ }
40
+ const selectItemVariants = cva(select_item_module_default.base);
41
+ //#endregion
42
+ export { SelectItem, selectItemVariants };
@@ -0,0 +1,9 @@
1
+ import './select-item.css';
2
+ //#region src/components/select/select-item.module.css
3
+ var select_item_module_default = {
4
+ "base": "select-item-module_base_YQBXPq",
5
+ "indicator": "select-item-module_indicator_YQBXPq",
6
+ "label": "select-item-module_label_YQBXPq"
7
+ };
8
+ //#endregion
9
+ export { select_item_module_default as default };
@@ -0,0 +1,8 @@
1
+ @layer components {
2
+ .select-separator-module_base_6poQtG {
3
+ background-color: var(--color-border);
4
+ flex-shrink: 0;
5
+ height: 1px;
6
+ margin: 4px 8px;
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-separator.d.ts
4
+ interface SelectSeparatorProps extends Omit<Select.Separator.Props, "className"> {
5
+ className?: string;
6
+ }
7
+ declare function SelectSeparator(props: SelectSeparatorProps): JSX.Element;
8
+ declare const selectSeparatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ //#endregion
10
+ export { SelectSeparator, SelectSeparatorProps, selectSeparatorVariants };
@@ -0,0 +1,17 @@
1
+ import select_separator_module_default from "./select-separator.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-separator.tsx
6
+ function SelectSeparator(props) {
7
+ const { className: customClassName = "", ...rest } = props;
8
+ const combinedClassName = selectSeparatorVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsx(Select.Separator, {
10
+ className: combinedClassName,
11
+ "data-slot": "select-separator",
12
+ ...rest
13
+ });
14
+ }
15
+ const selectSeparatorVariants = cva(select_separator_module_default.base);
16
+ //#endregion
17
+ export { SelectSeparator, selectSeparatorVariants };
@@ -0,0 +1,5 @@
1
+ import './select-separator.css';
2
+ //#region src/components/select/select-separator.module.css
3
+ var select_separator_module_default = { "base": "select-separator-module_base_6poQtG" };
4
+ //#endregion
5
+ export { select_separator_module_default as default };
@@ -0,0 +1,76 @@
1
+ @layer components {
2
+ .select-trigger-module_base_eqPLgq {
3
+ background-color: var(--color-bg-shell-inner);
4
+ box-shadow: 0 0 0 1px var(--color-border) inset;
5
+ cursor: pointer;
6
+ outline-offset: 2px;
7
+ outline: 2px solid #0000;
8
+ flex-shrink: 0;
9
+ align-items: center;
10
+ column-gap: 8px;
11
+ width: stretch;
12
+ padding: 0 16px;
13
+ transition-property: background-color;
14
+ transition-duration: .15s;
15
+ display: inline-flex;
16
+ overflow: hidden;
17
+ }
18
+
19
+ .select-trigger-module_base_eqPLgq:disabled {
20
+ cursor: not-allowed;
21
+ opacity: .5;
22
+ background-color: var(--color-gray-3);
23
+ }
24
+
25
+ .select-trigger-module_base_eqPLgq:focus-visible {
26
+ outline-color: var(--color-primary);
27
+ }
28
+
29
+ .select-trigger-module_base_eqPLgq:hover:not(:disabled), .select-trigger-module_base_eqPLgq[data-popup-open] {
30
+ background-color: var(--color-gray-3);
31
+ }
32
+
33
+ .select-trigger-module_size_32_eqPLgq {
34
+ border-radius: 8px;
35
+ height: 32px;
36
+ }
37
+
38
+ .select-trigger-module_size_36_eqPLgq {
39
+ border-radius: 9px;
40
+ height: 36px;
41
+ }
42
+
43
+ .select-trigger-module_size_40_eqPLgq {
44
+ border-radius: 10px;
45
+ height: 40px;
46
+ }
47
+
48
+ .select-trigger-module_size_44_eqPLgq {
49
+ border-radius: 11px;
50
+ height: 44px;
51
+ }
52
+
53
+ .select-trigger-module_size_48_eqPLgq {
54
+ border-radius: 12px;
55
+ height: 48px;
56
+ }
57
+
58
+ .select-trigger-module_rounded_full_eqPLgq {
59
+ border-radius: 9999px;
60
+ }
61
+
62
+ .select-trigger-module_icon_eqPLgq {
63
+ justify-content: center;
64
+ align-items: center;
65
+ width: 16px;
66
+ height: 16px;
67
+ margin-left: auto;
68
+ transition-property: rotate;
69
+ transition-duration: .15s;
70
+ display: flex;
71
+ }
72
+
73
+ .select-trigger-module_base_eqPLgq[data-popup-open] .select-trigger-module_icon_eqPLgq {
74
+ rotate: 180deg;
75
+ }
76
+ }
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import { Select } from "@base-ui/react";
3
+ import { JSX } from "react";
4
+ //#region src/components/select/select-trigger.d.ts
5
+ interface SelectTriggerProps extends Select.Trigger.Props {
6
+ isRounded?: VariantProps<typeof selectTriggerVariants>["isRounded"];
7
+ size?: VariantProps<typeof selectTriggerVariants>["size"];
8
+ }
9
+ declare function SelectTrigger(props: SelectTriggerProps): JSX.Element;
10
+ declare const selectTriggerVariants: (props?: ({
11
+ isRounded?: boolean | null | undefined;
12
+ size?: 32 | 36 | 40 | 44 | 48 | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ //#endregion
15
+ export { SelectTrigger, SelectTriggerProps, selectTriggerVariants };
@@ -0,0 +1,48 @@
1
+ import select_trigger_module_default from "./select-trigger.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-trigger.tsx
6
+ function SelectTrigger(props) {
7
+ const { children = void 0, className: customClassName = "", isRounded = false, size = 40, ...rest } = props;
8
+ const combinedClassName = selectTriggerVariants({
9
+ className: customClassName,
10
+ isRounded,
11
+ size
12
+ });
13
+ return /* @__PURE__ */ jsxs(Select.Trigger, {
14
+ className: combinedClassName,
15
+ "data-slot": "select-trigger",
16
+ ...rest,
17
+ children: [children, /* @__PURE__ */ jsx(Select.Icon, {
18
+ className: select_trigger_module_default.icon,
19
+ "data-slot": "select-icon",
20
+ children: /* @__PURE__ */ jsx("svg", {
21
+ height: "14",
22
+ viewBox: "0 0 18 18",
23
+ width: "14",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ children: /* @__PURE__ */ jsx("polyline", {
26
+ fill: "none",
27
+ points: "15.25 6.5 9 12.75 2.75 6.5",
28
+ stroke: "currentColor",
29
+ strokeLinecap: "round",
30
+ strokeLinejoin: "round",
31
+ strokeWidth: "1.5"
32
+ })
33
+ })
34
+ })]
35
+ });
36
+ }
37
+ const selectTriggerVariants = cva(select_trigger_module_default.base, { variants: {
38
+ isRounded: { true: select_trigger_module_default.rounded_full },
39
+ size: {
40
+ 32: select_trigger_module_default.size_32,
41
+ 36: select_trigger_module_default.size_36,
42
+ 40: select_trigger_module_default.size_40,
43
+ 44: select_trigger_module_default.size_44,
44
+ 48: select_trigger_module_default.size_48
45
+ }
46
+ } });
47
+ //#endregion
48
+ export { SelectTrigger, selectTriggerVariants };
@@ -0,0 +1,14 @@
1
+ import './select-trigger.css';
2
+ //#region src/components/select/select-trigger.module.css
3
+ var select_trigger_module_default = {
4
+ "base": "select-trigger-module_base_eqPLgq",
5
+ "icon": "select-trigger-module_icon_eqPLgq",
6
+ "rounded_full": "select-trigger-module_rounded_full_eqPLgq",
7
+ "size_32": "select-trigger-module_size_32_eqPLgq",
8
+ "size_36": "select-trigger-module_size_36_eqPLgq",
9
+ "size_40": "select-trigger-module_size_40_eqPLgq",
10
+ "size_44": "select-trigger-module_size_44_eqPLgq",
11
+ "size_48": "select-trigger-module_size_48_eqPLgq"
12
+ };
13
+ //#endregion
14
+ export { select_trigger_module_default as default };
@@ -0,0 +1,14 @@
1
+ @layer components {
2
+ .select-value-module_base_j4ZBgq {
3
+ color: var(--color-text-primary);
4
+ text-overflow: ellipsis;
5
+ white-space: nowrap;
6
+ font-size: 14px;
7
+ font-weight: 450;
8
+ overflow-x: hidden;
9
+ }
10
+
11
+ .select-value-module_base_j4ZBgq[data-placeholder] {
12
+ color: var(--color-gray-9);
13
+ }
14
+ }
@@ -0,0 +1,8 @@
1
+ import { Select } from "@base-ui/react";
2
+ import { JSX } from "react";
3
+ //#region src/components/select/select-value.d.ts
4
+ interface SelectValueProps extends Select.Value.Props {}
5
+ declare function SelectValue(props: SelectValueProps): JSX.Element;
6
+ declare const selectValueVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
7
+ //#endregion
8
+ export { SelectValue, SelectValueProps, selectValueVariants };
@@ -0,0 +1,18 @@
1
+ import select_value_module_default from "./select-value.module.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Select } from "@base-ui/react";
5
+ //#region src/components/select/select-value.tsx
6
+ function SelectValue(props) {
7
+ const { className: customClassName = "", render = /* @__PURE__ */ jsx("div", {}), ...rest } = props;
8
+ const combinedClassName = selectValueVariants({ className: customClassName });
9
+ return /* @__PURE__ */ jsx(Select.Value, {
10
+ className: combinedClassName,
11
+ "data-slot": "select-value",
12
+ render,
13
+ ...rest
14
+ });
15
+ }
16
+ const selectValueVariants = cva(select_value_module_default.base);
17
+ //#endregion
18
+ export { SelectValue, selectValueVariants };