@ztwoint/z-ui 0.1.18 → 0.1.20

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 (44) hide show
  1. package/dist/components/assets/icons/apartment-building.d.ts +8 -0
  2. package/dist/components/assets/icons/chevron-right.d.ts +8 -0
  3. package/dist/components/assets/icons/circle-check.d.ts +8 -0
  4. package/dist/components/assets/icons/circles-icon.d.ts +1 -1
  5. package/dist/components/assets/icons/circles-icon.js +10 -9
  6. package/dist/components/assets/icons/dots.d.ts +8 -0
  7. package/dist/components/assets/icons/info-icon.d.ts +6 -0
  8. package/dist/components/assets/icons/link.d.ts +8 -0
  9. package/dist/components/assets/icons/list-tree.d.ts +8 -0
  10. package/dist/components/assets/icons/magnifier-icon.d.ts +6 -0
  11. package/dist/components/assets/icons/pin.d.ts +8 -0
  12. package/dist/components/assets/icons/slider.d.ts +8 -0
  13. package/dist/components/assets/icons/vector.d.ts +8 -0
  14. package/dist/components/dropdown/helpers/hover-card.d.ts +6 -0
  15. package/dist/components/dropdown/z2-dropdown.d.ts +40 -0
  16. package/dist/components/dropdown-menu/z2-dropdown-menu.d.ts +25 -0
  17. package/dist/components/select/z2-select.d.ts +21 -0
  18. package/dist/components/select/z2-select.js +165 -0
  19. package/dist/css/config/colors/components/select.css +91 -0
  20. package/dist/css/config/colors/text.css +20 -0
  21. package/dist/css/config/config.css +1 -0
  22. package/dist/css/styles/tailwind.css +1 -1
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +61 -48
  25. package/dist/test/test-utils.d.ts +1 -1
  26. package/dist/types/components/assets/icons/apartment-building.d.ts +8 -0
  27. package/dist/types/components/assets/icons/chevron-right.d.ts +8 -0
  28. package/dist/types/components/assets/icons/circle-check.d.ts +8 -0
  29. package/dist/types/components/assets/icons/circles-icon.d.ts +1 -1
  30. package/dist/types/components/assets/icons/dots.d.ts +8 -0
  31. package/dist/types/components/assets/icons/info-icon.d.ts +6 -0
  32. package/dist/types/components/assets/icons/link.d.ts +8 -0
  33. package/dist/types/components/assets/icons/list-tree.d.ts +8 -0
  34. package/dist/types/components/assets/icons/magnifier-icon.d.ts +6 -0
  35. package/dist/types/components/assets/icons/pin.d.ts +8 -0
  36. package/dist/types/components/assets/icons/slider.d.ts +8 -0
  37. package/dist/types/components/assets/icons/vector.d.ts +8 -0
  38. package/dist/types/components/dropdown/helpers/hover-card.d.ts +6 -0
  39. package/dist/types/components/dropdown/z2-dropdown.d.ts +40 -0
  40. package/dist/types/components/dropdown-menu/z2-dropdown-menu.d.ts +25 -0
  41. package/dist/types/components/select/z2-select.d.ts +21 -0
  42. package/dist/types/index.d.ts +3 -3
  43. package/dist/types/test/test-utils.d.ts +1 -1
  44. package/package.json +8 -2
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function ApartmentBuildingIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default ApartmentBuildingIcon;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function ChevronRightIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default ChevronRightIcon;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function CircleCheck({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default CircleCheck;
@@ -4,5 +4,5 @@ type IconProps = SVGProps<SVGSVGElement> & {
4
4
  strokewidth?: number;
5
5
  title?: string;
6
6
  };
7
- declare function Circles5Copy({ fill, secondaryfill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function Circles5Copy({ fill, secondaryfill: _secondaryfill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
8
  export default Circles5Copy;
@@ -1,19 +1,20 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- function h({
3
- fill: r = "currentColor",
4
- secondaryfill: t,
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ function a({
3
+ fill: o = "currentColor",
4
+ secondaryfill: n,
5
5
  title: i = "badge 13",
6
- ...n
6
+ ...s
7
7
  }) {
8
- return t = t || r, /* @__PURE__ */ o("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...n, children: [
8
+ const t = n || o;
9
+ return /* @__PURE__ */ r("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...s, children: [
9
10
  /* @__PURE__ */ e("title", { children: i }),
10
- /* @__PURE__ */ o("g", { fill: r, strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "10", children: [
11
+ /* @__PURE__ */ r("g", { fill: o, strokeLinecap: "butt", strokeLinejoin: "miter", strokeMiterlimit: "10", children: [
11
12
  /* @__PURE__ */ e(
12
13
  "path",
13
14
  {
14
15
  d: "M7.04 11.44c2.43 0 4.4-1.97 4.4-4.4s-1.97-4.4-4.4-4.4-4.4 1.97-4.4 4.4 1.97 4.4 4.4 4.4z",
15
16
  fill: "none",
16
- stroke: r,
17
+ stroke: o,
17
18
  strokeLinecap: "square",
18
19
  strokeWidth: "1"
19
20
  }
@@ -54,5 +55,5 @@ function h({
54
55
  ] });
55
56
  }
56
57
  export {
57
- h as default
58
+ a as default
58
59
  };
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function DotsIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default DotsIcon;
@@ -0,0 +1,6 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ };
5
+ export declare const InfoIcon: ({ fill, title, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function LinkIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default LinkIcon;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function ListTreeIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default ListTreeIcon;
@@ -0,0 +1,6 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ title?: string;
4
+ };
5
+ export declare const MagnifierIcon: ({ fill, title, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function PinIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default PinIcon;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function SliderIcon({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default SliderIcon;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ strokewidth?: number;
5
+ title?: string;
6
+ };
7
+ declare function Vector({ fill, secondaryfill: _secondaryfill, strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default Vector;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
3
+ declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,40 @@
1
+ import { default as React } from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ interface DropdownContextType {
4
+ open: boolean;
5
+ setOpen: (open: boolean) => void;
6
+ searchValue: string;
7
+ setSearchValue: (value: string) => void;
8
+ value: string;
9
+ setSelectedValue: (value: string) => void;
10
+ onValueChange?: (value: string) => void;
11
+ }
12
+ export declare const DropdownContext: React.Context<DropdownContextType | undefined>;
13
+ declare function Z2Dropdown({ defaultOpen, value, onValueChange, ...props }: React.ComponentProps<typeof PopoverPrimitive.Root> & {
14
+ defaultOpen?: boolean;
15
+ value?: string;
16
+ onValueChange?: (value: string) => void;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function Z2DropdownInput({ onSearchChange, placeholder, className, selectedIcon, }: {
19
+ onSearchChange?: (value: string) => void;
20
+ placeholder?: string;
21
+ className?: string;
22
+ selectedIcon?: React.ReactNode;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function Z2DropdownContent({ className, align, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
25
+ export interface Z2DropdownItemProps extends React.HTMLAttributes<HTMLDivElement> {
26
+ icon?: React.ReactNode;
27
+ label?: string;
28
+ value: string;
29
+ disabled?: boolean;
30
+ disablePopoverClose?: boolean;
31
+ hoverComponent?: React.ReactNode;
32
+ }
33
+ declare function Z2DropdownItem({ icon, label, value, hoverComponent, disablePopoverClose, }: Z2DropdownItemProps): import("react/jsx-runtime").JSX.Element;
34
+ declare function Z2DropdownSub({ ...componentProps }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
35
+ declare function Z2DropdownSubTrigger({ value, label, icon, isSelected, }: Z2DropdownItemProps & {
36
+ isSelected?: boolean;
37
+ }): import("react/jsx-runtime").JSX.Element;
38
+ declare function Z2DropdownSubContent({ className, align, sideOffset, side, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
39
+ declare function Z2DropdownSubItem({ ...props }: Z2DropdownItemProps): import("react/jsx-runtime").JSX.Element;
40
+ export { Z2Dropdown, Z2DropdownInput, Z2DropdownContent, Z2DropdownItem, Z2DropdownSub, Z2DropdownSubTrigger, Z2DropdownSubContent, Z2DropdownSubItem, };
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: 'default' | 'destructive';
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu as Z2DropdownMenu, DropdownMenuPortal as Z2DropdownMenuPortal, DropdownMenuTrigger as Z2DropdownMenuTrigger, DropdownMenuContent as Z2DropdownMenuContent, DropdownMenuGroup as Z2DropdownMenuGroup, DropdownMenuLabel as Z2DropdownMenuLabel, DropdownMenuItem as Z2DropdownMenuItem, DropdownMenuCheckboxItem as Z2DropdownMenuCheckboxItem, DropdownMenuRadioGroup as Z2DropdownMenuRadioGroup, DropdownMenuRadioItem as Z2DropdownMenuRadioItem, DropdownMenuSeparator as Z2DropdownMenuSeparator, DropdownMenuShortcut as Z2DropdownMenuShortcut, DropdownMenuSub as Z2DropdownMenuSub, DropdownMenuSubTrigger as Z2DropdownMenuSubTrigger, DropdownMenuSubContent as Z2DropdownMenuSubContent, };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import * as Z2SelectPrimitive from '@radix-ui/react-select';
3
+ declare function Z2Select({ ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Z2SelectGroup({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function Z2SelectValue({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Value & {
6
+ rightIcon?: React.ReactNode;
7
+ }>): import("react/jsx-runtime").JSX.Element;
8
+ declare function Z2SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Trigger> & {
9
+ size?: 'sm' | 'default';
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ declare function Z2SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
12
+ declare function Z2SelectLabel({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
13
+ type Z2SelectItemProps = React.ComponentProps<typeof Z2SelectPrimitive.Item> & {
14
+ leftIcon?: React.ReactNode;
15
+ label?: string;
16
+ };
17
+ declare function Z2SelectItem({ className, children, leftIcon, label, ...props }: Z2SelectItemProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function Z2SelectSeparator({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function Z2SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
20
+ declare function Z2SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Z2SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
21
+ export { Z2Select, Z2SelectContent, Z2SelectGroup, Z2SelectItem, Z2SelectLabel, Z2SelectScrollDownButton, Z2SelectScrollUpButton, Z2SelectSeparator, Z2SelectTrigger, Z2SelectValue, };
@@ -0,0 +1,165 @@
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
+ import * as r from "@radix-ui/react-select";
3
+ import { ChevronDownIcon as n, ChevronUpIcon as d } from "lucide-react";
4
+ import { cn as c } from "../../lib/utils.js";
5
+ import u from "../assets/icons/circle-check-filled.js";
6
+ function N({ ...e }) {
7
+ return /* @__PURE__ */ t(r.Root, { "data-slot": "select", ...e });
8
+ }
9
+ function x({
10
+ className: e,
11
+ ...l
12
+ }) {
13
+ return /* @__PURE__ */ t(
14
+ r.Group,
15
+ {
16
+ "data-slot": "select-group",
17
+ className: c("z2-select-group", e),
18
+ ...l
19
+ }
20
+ );
21
+ }
22
+ function S({
23
+ className: e,
24
+ ...l
25
+ }) {
26
+ return /* @__PURE__ */ t(
27
+ r.Value,
28
+ {
29
+ "data-slot": "select-value",
30
+ className: c(e, "z2-select-value"),
31
+ ...l
32
+ }
33
+ );
34
+ }
35
+ function g({
36
+ className: e,
37
+ size: l = "default",
38
+ children: s,
39
+ ...a
40
+ }) {
41
+ return /* @__PURE__ */ o(
42
+ r.Trigger,
43
+ {
44
+ "data-slot": "select-trigger",
45
+ "data-size": l,
46
+ className: c("z2-select-trigger", e),
47
+ ...a,
48
+ children: [
49
+ s,
50
+ /* @__PURE__ */ t(r.Icon, { asChild: !0, children: /* @__PURE__ */ t(n, { className: "z2-trigger-icon" }) })
51
+ ]
52
+ }
53
+ );
54
+ }
55
+ function z({
56
+ className: e,
57
+ children: l,
58
+ position: s = "popper",
59
+ ...a
60
+ }) {
61
+ return /* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ t(
62
+ r.Content,
63
+ {
64
+ "data-slot": "select-content",
65
+ className: c("z2-select-content", e),
66
+ sideOffset: 10,
67
+ position: s,
68
+ ...a,
69
+ children: /* @__PURE__ */ t(r.Viewport, { className: "!w-full ", children: l })
70
+ }
71
+ ) });
72
+ }
73
+ function Z({
74
+ className: e,
75
+ ...l
76
+ }) {
77
+ return /* @__PURE__ */ t(
78
+ r.Label,
79
+ {
80
+ "data-slot": "select-label",
81
+ className: c("z2-select-label", e),
82
+ ...l
83
+ }
84
+ );
85
+ }
86
+ function b({ className: e, children: l, leftIcon: s, label: a, ...i }) {
87
+ return /* @__PURE__ */ o(
88
+ r.Item,
89
+ {
90
+ "data-slot": "select-item",
91
+ className: c("z2-select-item", e),
92
+ ...i,
93
+ children: [
94
+ /* @__PURE__ */ t(r.ItemText, { asChild: !0, children: /* @__PURE__ */ o("div", { className: "z2-select-item-text", children: [
95
+ s && /* @__PURE__ */ t("div", { className: "flex w-[14px] h-[14px] items-center justify-center", children: s }),
96
+ /* @__PURE__ */ t("div", { className: "flex-1 overflow-hidden text-ellipsis text-[14px] font-[450] leading-[100%] tracking-[-0.2px] ", children: l || a })
97
+ ] }) }),
98
+ /* @__PURE__ */ t(
99
+ r.ItemIndicator,
100
+ {
101
+ "data-slot": "select-item-indicator",
102
+ className: "z2-select-item-indicator",
103
+ children: /* @__PURE__ */ t(u, { className: "w-4 h-4" })
104
+ }
105
+ )
106
+ ]
107
+ }
108
+ );
109
+ }
110
+ function v({
111
+ className: e,
112
+ ...l
113
+ }) {
114
+ return /* @__PURE__ */ t(
115
+ r.Separator,
116
+ {
117
+ "data-slot": "select-separator",
118
+ className: c(
119
+ "border-t-[0.5px] border-solid border-[color(display-p3_0.9059_0.9059_0.9059)] my-0 -mx-1",
120
+ e
121
+ ),
122
+ ...l
123
+ }
124
+ );
125
+ }
126
+ function w({
127
+ className: e,
128
+ ...l
129
+ }) {
130
+ return /* @__PURE__ */ t(
131
+ r.ScrollUpButton,
132
+ {
133
+ "data-slot": "select-scroll-up-button",
134
+ className: c("flex cursor-default items-center justify-center py-1", e),
135
+ ...l,
136
+ children: /* @__PURE__ */ t(d, { className: "size-4" })
137
+ }
138
+ );
139
+ }
140
+ function C({
141
+ className: e,
142
+ ...l
143
+ }) {
144
+ return /* @__PURE__ */ t(
145
+ r.ScrollDownButton,
146
+ {
147
+ "data-slot": "select-scroll-down-button",
148
+ className: c("flex cursor-default items-center justify-center py-1", e),
149
+ ...l,
150
+ children: /* @__PURE__ */ t(n, { className: "size-4" })
151
+ }
152
+ );
153
+ }
154
+ export {
155
+ N as Z2Select,
156
+ z as Z2SelectContent,
157
+ x as Z2SelectGroup,
158
+ b as Z2SelectItem,
159
+ Z as Z2SelectLabel,
160
+ C as Z2SelectScrollDownButton,
161
+ w as Z2SelectScrollUpButton,
162
+ v as Z2SelectSeparator,
163
+ g as Z2SelectTrigger,
164
+ S as Z2SelectValue
165
+ };
@@ -0,0 +1,91 @@
1
+ @layer utilities {
2
+
3
+ .z2-select-trigger {
4
+ @apply flex items-center justify-center w-full text-sm gap-[6px] p-2 rounded-md self-stretch transition-all cursor-pointer;
5
+ @apply data-[size=sm]:gap-[4px] data-[size=sm]:p-[6px];
6
+ @apply focus:outline-none outline-none focus-visible:outline-none focus-visible:ring-0;
7
+ font-size: 14px;
8
+ line-height: 1;
9
+ background: var(--input-surface-default, color(display-p3 1 1 1));
10
+ box-shadow: 0px 1px 2px 0px var(--drop-shadow-5, color(display-p3 0 0 0 / 0.05)), 0px 0px 0px var(--stroke-default, 0.5px) var(--input-stroke-default, color(display-p3 0.8784 0.8784 0.8784));
11
+ }
12
+
13
+ .z2-select-trigger:hover {
14
+ background: var(--input-surface-hover, color(display-p3 0.9647 0.9647 0.9647));
15
+ box-shadow: 0px 1px 2px 0px var(--drop-shadow-5, color(display-p3 0 0 0 / 0.05)), 0px 0px 0px var(--stroke-default, 0.5px) var(--input-stroke-hover, color(display-p3 0.8196 0.8196 0.8196));
16
+ }
17
+
18
+ .z2-select-trigger:focus {
19
+ background: var(--input-surface-pressed, color(display-p3 0.9059 0.9059 0.9059));
20
+ box-shadow: 0px 1px 2px 0px transparent, 0px 0px 0px var(--stroke-default, 0.5px) transparent;
21
+ }
22
+
23
+ .z2-select-trigger[data-state="open"] {
24
+ background: var(--input-surface-open, color(display-p3 0.941 0.941 0.941));
25
+ box-shadow: 0px 2px 4px 0px var(--drop-shadow-10, color(display-p3 0 0 0 / 0.10)), 0px 0px 0px var(--stroke-default, 0.5px) var(--input-stroke-open, color(display-p3 0.6 0.6 0.6));
26
+ }
27
+
28
+ .z2-select-trigger[data-filled="true"] {
29
+ background: var(--input-surface-filled, color(display-p3 0.9804 0.9804 0.9804));
30
+ box-shadow: 0px 1px 2px 0px var(--drop-shadow-5, color(display-p3 0 0 0 / 0.05)), 0px 0px 0px var(--stroke-default, 0.5px) var(--input-stroke-filled, color(display-p3 0.7 0.7 0.7));
31
+ }
32
+
33
+ .z2-select-trigger[data-disabled] {
34
+ background-color: var(--color-neutral-50);
35
+ pointer-events: none;
36
+ cursor: not-allowed;
37
+ }
38
+
39
+ .z2-select-trigger[data-placeholder] {
40
+ color: var(--text-neutral-muted, color(display-p3 0.5333 0.5333 0.5333));
41
+ font-size: 14px;
42
+ font-weight: 450;
43
+ line-height: 1;
44
+ letter-spacing: -0.2px;
45
+ }
46
+
47
+ [data-slot="select-value"] {
48
+ @apply w-full self-center items-start text-left flex gap-1;
49
+ }
50
+
51
+ /* ITEM/CONTENT/GROUP/ICON -- unchanged */
52
+ .z2-select-item {
53
+ @apply border-none;
54
+ @apply w-full relative self-stretch flex items-center justify-between gap-2 cursor-pointer outline-none rounded-md;
55
+ @apply data-[disabled]:pointer-events-none;
56
+ padding: var(--spacing-2, 8px);
57
+ }
58
+
59
+ .z2-select-item[data-state="active"],
60
+ .z2-select-item:hover {
61
+ background-color: var(--surface-neutral-focused, color(display-p3 0.9412 0.9412 0.9412));
62
+ }
63
+
64
+ .z2-select-content {
65
+ @apply min-w-[var(--radix-select-trigger-width)] flex flex-col items-start relative z-50 p-1;
66
+ /* @apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2; */
67
+ border-radius: var(--border-radius-rounded-xl, 12px);
68
+ background: linear-gradient(0deg, var(--background-neutral-on-top, color(display-p3 1 1 1)) 0%, var(--background-neutral-on-top, color(display-p3 1 1 1)) 100%), var(--background-neutral-default, color(display-p3 1 1 1));
69
+ box-shadow: 0px 16px 32px 0px var(--drop-shadow-10, color(display-p3 0 0 0 / 0.10)), 0px 0px 0px var(--stroke-default, 0.5px) var(--stroke-solid-light, color(display-p3 0.9059 0.9059 0.9059));
70
+ }
71
+
72
+ .z2-select-group {
73
+ @apply flex w-full flex-col items-start gap-1 relative rounded-none;
74
+ }
75
+
76
+ .z2-trigger-icon {
77
+ @apply shrink-0;
78
+ width: 14px;
79
+ height: 14px;
80
+ aspect-ratio: 1 / 1;
81
+ color: var(--color-neutral-400);
82
+ }
83
+
84
+ .z2-select-item-text {
85
+ @apply flex items-center justify-center gap-2 flex-1 overflow-hidden text-ellipsis text-[14px] font-[450] leading-[100%] tracking-[-0.2px];
86
+ }
87
+
88
+ .z2-select-item-indicator {
89
+ @apply flex w-[14px] h-[14px] items-center justify-center;
90
+ }
91
+ }
@@ -138,3 +138,23 @@
138
138
  @utility text-default-muted {
139
139
  color: var(--color-neutral-400);
140
140
  }
141
+
142
+ @utility text-default-primary {
143
+ color: var(--color-neutral-950);
144
+ }
145
+
146
+ @utility text-default-secondary {
147
+ color: var(--color-neutral-600);
148
+ }
149
+
150
+ @utility text-default-warning {
151
+ color: var(--color-amber-600);
152
+ }
153
+
154
+ @utility text-default-brand {
155
+ color: var(--color-blue-600);
156
+ }
157
+
158
+ @utility text-default-success {
159
+ color: var(--color-emerald-600);
160
+ }
@@ -14,6 +14,7 @@
14
14
  @import './colors/components/button.css';
15
15
  @import './colors/components/tab.css';
16
16
  @import './colors/components/alert.css';
17
+ @import './colors/components/select.css';
17
18
 
18
19
  @theme {
19
20
  --font-family-sans: 'Inter Variable', sans-serif;