@px-ui/core 1.27.0 → 1.29.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.
Files changed (60) hide show
  1. package/dist/components/avatar-group.d.ts +2 -1
  2. package/dist/components/avatar-group.d.ts.map +1 -1
  3. package/dist/components/avatar-group.js +17 -10
  4. package/dist/components/avatar.d.ts +3 -2
  5. package/dist/components/avatar.d.ts.map +1 -1
  6. package/dist/components/button.d.ts +5 -5
  7. package/dist/components/button.d.ts.map +1 -1
  8. package/dist/components/button.js +15 -19
  9. package/dist/components/checkbox.d.ts +3 -1
  10. package/dist/components/checkbox.d.ts.map +1 -1
  11. package/dist/components/checkbox.js +1 -4
  12. package/dist/components/combobox.d.ts +12 -4
  13. package/dist/components/combobox.d.ts.map +1 -1
  14. package/dist/components/combobox.js +135 -128
  15. package/dist/components/dialog.d.ts +12 -11
  16. package/dist/components/dialog.d.ts.map +1 -1
  17. package/dist/components/dialog.js +118 -88
  18. package/dist/components/input-group.d.ts +4 -2
  19. package/dist/components/input-group.d.ts.map +1 -1
  20. package/dist/components/input.d.ts +3 -2
  21. package/dist/components/input.d.ts.map +1 -1
  22. package/dist/components/label.js +1 -1
  23. package/dist/components/menu.d.ts +1 -4
  24. package/dist/components/menu.d.ts.map +1 -1
  25. package/dist/components/menu.js +87 -108
  26. package/dist/components/popover.d.ts +17 -15
  27. package/dist/components/popover.d.ts.map +1 -1
  28. package/dist/components/popover.js +84 -63
  29. package/dist/components/radio-group.d.ts +3 -1
  30. package/dist/components/radio-group.d.ts.map +1 -1
  31. package/dist/components/select.d.ts +10 -2
  32. package/dist/components/select.d.ts.map +1 -1
  33. package/dist/components/select.js +66 -61
  34. package/dist/components/switch.js +3 -3
  35. package/dist/components/textarea.d.ts +3 -2
  36. package/dist/components/textarea.d.ts.map +1 -1
  37. package/dist/components/textarea.js +2 -1
  38. package/dist/core.css +1 -1
  39. package/dist/index.d.ts +0 -1
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +23 -25
  42. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/arrow/ComboboxArrow.js +39 -0
  43. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/backdrop/ComboboxBackdrop.js +37 -0
  44. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/collection/GroupCollectionContext.js +16 -3
  45. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/group/ComboboxGroup.js +34 -0
  46. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/group/ComboboxGroupContext.js +13 -0
  47. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
  48. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/icon/ComboboxIcon.js +20 -0
  49. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/index.parts.js +52 -0
  50. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/root/ComboboxRootInternal.js +15 -15
  51. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/root/utils/useFilter.js +24 -10
  52. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/combobox/row/ComboboxRow.js +24 -0
  53. package/dist/tw-styles/dropdown.d.ts.map +1 -1
  54. package/dist/tw-styles/dropdown.js +6 -6
  55. package/package.json +3 -2
  56. package/dist/components/text-input.d.ts +0 -12
  57. package/dist/components/text-input.d.ts.map +0 -1
  58. package/dist/components/text-input.js +0 -60
  59. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/field/control/FieldControl.js +0 -104
  60. package/dist/node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/input/Input.js +0 -13
@@ -1,19 +1,21 @@
1
1
  import { Popover as BasePopover } from '@base-ui-components/react/popover';
2
- declare function Root({ ...props }: React.ComponentProps<typeof BasePopover.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function Portal({ ...props }: React.ComponentProps<typeof BasePopover.Portal>): import("react/jsx-runtime").JSX.Element;
4
- declare function Trigger({ ...props }: React.ComponentProps<typeof BasePopover.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function Close({ ...props }: React.ComponentProps<typeof BasePopover.Close>): import("react/jsx-runtime").JSX.Element;
6
- declare function Arrow({ ...props }: React.ComponentProps<typeof BasePopover.Arrow>): import("react/jsx-runtime").JSX.Element;
7
- declare function Positioner({ ...props }: React.ComponentProps<typeof BasePopover.Positioner>): import("react/jsx-runtime").JSX.Element;
8
- declare function Header({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function Title({ className, ...props }: React.ComponentProps<typeof BasePopover.Title>): import("react/jsx-runtime").JSX.Element;
10
- declare function Description({ className, ...props }: React.ComponentProps<typeof BasePopover.Description>): import("react/jsx-runtime").JSX.Element;
11
- declare function Content({ children, className, align, sideOffset, arrow, side, ...props }: React.ComponentProps<typeof BasePopover.Popup> & {
12
- align?: BasePopover.Positioner.Props["align"];
13
- sideOffset?: BasePopover.Positioner.Props["sideOffset"];
2
+ export declare function Root(props: React.ComponentProps<typeof BasePopover.Root>): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Trigger(props: React.ComponentProps<typeof BasePopover.Trigger>): import("react/jsx-runtime").JSX.Element;
4
+ export declare function Close(props: React.ComponentProps<typeof BasePopover.Close>): import("react/jsx-runtime").JSX.Element;
5
+ declare function Positioner(props: React.ComponentProps<typeof BasePopover.Positioner>): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Header({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Title({ className, ...props }: React.ComponentProps<typeof BasePopover.Title>): import("react/jsx-runtime").JSX.Element;
8
+ export declare function Description({ className, ...props }: React.ComponentProps<typeof BasePopover.Description>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Content({ children, className, positionerProps, popupProps, arrow, }: {
10
+ popupProps?: React.ComponentProps<typeof BasePopover.Popup>;
11
+ } & {
12
+ positionerProps?: React.ComponentProps<typeof Positioner>;
13
+ } & {
14
+ children: React.ReactNode;
14
15
  arrow?: boolean;
15
- side?: BasePopover.Positioner.Props["side"];
16
+ className?: string;
16
17
  }): import("react/jsx-runtime").JSX.Element;
17
- declare function Footer({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
18
- export { Root, Trigger, Header, Title, Description, Content, Footer, Close, Arrow, Positioner, Portal, };
18
+ export declare function CloseIconButton({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
19
+ export declare function Footer({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
20
+ export {};
19
21
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAI3E,iBAAS,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,2CAExE;AAED,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,2CAE5E;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,2CAElD;AAED,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,2CAE1E;AAED,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,2CAE1E;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,2CAErD;AAED,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQnE;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,2CAQhD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,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AAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,UAAU,CAAC,2CAG3D;AAED,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ1E;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,2CAQhD;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,WAAW,CAAC,2CAQtD;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,eAAoB,EACpB,UAAe,EACf,KAAY,GACb,EAAE;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,CAAA;CAAE,GAAG;IACnE,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;CAC3D,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAsCrE;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,2CAoBhC;AAED,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW1E"}
@@ -1,99 +1,97 @@
1
1
  import { j as t } from "../_virtual/jsx-runtime.js";
2
- import { cn as e } from "../utils/classnames.js";
3
- import { PopoverRoot as l } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/root/PopoverRoot.js";
4
- import { PopoverTrigger as d } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/trigger/PopoverTrigger.js";
5
- import { PopoverTitle as m } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/title/PopoverTitle.js";
2
+ import { cn as r } from "../utils/classnames.js";
3
+ import p from "../icons/close-icon.js";
4
+ import { Button as l } from "./button.js";
5
+ import { PopoverRoot as d } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/root/PopoverRoot.js";
6
+ import { PopoverTrigger as m } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/trigger/PopoverTrigger.js";
7
+ import { PopoverClose as i } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/close/PopoverClose.js";
8
+ import { PopoverTitle as x } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/title/PopoverTitle.js";
6
9
  import { PopoverDescription as f } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/description/PopoverDescription.js";
7
10
  import { PopoverPopup as c } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/popup/PopoverPopup.js";
8
- import { PopoverClose as x } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/close/PopoverClose.js";
9
- import { PopoverArrow as u } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/arrow/PopoverArrow.js";
11
+ import { PopoverPortal as u } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/portal/PopoverPortal.js";
10
12
  import { PopoverPositioner as v } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/positioner/PopoverPositioner.js";
11
- import { PopoverPortal as g } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/portal/PopoverPortal.js";
12
- function k({ ...o }) {
13
- return /* @__PURE__ */ t.jsx(l, { "data-slot": "popover", ...o });
13
+ import { PopoverArrow as g } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/popover/arrow/PopoverArrow.js";
14
+ function k(o) {
15
+ return /* @__PURE__ */ t.jsx(d, { "data-slot": "popover", ...o });
14
16
  }
15
- function j({ ...o }) {
16
- return /* @__PURE__ */ t.jsx(g, { "data-slot": "popover-portal", ...o });
17
+ function j(o) {
18
+ return /* @__PURE__ */ t.jsx(u, { "data-slot": "popover-portal", ...o });
17
19
  }
18
- function A({
19
- ...o
20
- }) {
21
- return /* @__PURE__ */ t.jsx(d, { "data-slot": "popover-trigger", ...o });
20
+ function A(o) {
21
+ return /* @__PURE__ */ t.jsx(m, { "data-slot": "popover-trigger", ...o });
22
22
  }
23
- function D({ ...o }) {
24
- return /* @__PURE__ */ t.jsx(x, { "data-slot": "popover-close", ...o });
23
+ function D(o) {
24
+ return /* @__PURE__ */ t.jsx(i, { "data-slot": "popover-close", ...o });
25
25
  }
26
- function h({ ...o }) {
27
- return /* @__PURE__ */ t.jsx(u, { "data-slot": "popover-arrow", ...o });
26
+ function h(o) {
27
+ return /* @__PURE__ */ t.jsx(g, { "data-slot": "popover-arrow", ...o });
28
28
  }
29
- function P({
30
- ...o
31
- }) {
29
+ function C(o) {
32
30
  return /* @__PURE__ */ t.jsx(v, { "data-slot": "popover-positioner", ...o });
33
31
  }
34
- function Z({ className: o, ...r }) {
32
+ function I({ className: o, ...e }) {
35
33
  return /* @__PURE__ */ t.jsx(
36
34
  "div",
37
35
  {
38
36
  "data-slot": "popover-header",
39
- className: e("gap-y-1 relative flex flex-col", o),
40
- ...r
37
+ className: r("gap-y-1 relative flex flex-col", o),
38
+ ...e
41
39
  }
42
40
  );
43
41
  }
44
- function z({
42
+ function Z({
45
43
  className: o,
46
- ...r
44
+ ...e
47
45
  }) {
48
46
  return /* @__PURE__ */ t.jsx(
49
- m,
47
+ x,
50
48
  {
51
49
  "data-slot": "popover-title",
52
- className: e("text-sm font-semibold", o),
53
- ...r
50
+ className: r("font-sans-sb text-ppx-sm", o),
51
+ ...e
54
52
  }
55
53
  );
56
54
  }
57
- function B({
55
+ function E({
58
56
  className: o,
59
- ...r
57
+ ...e
60
58
  }) {
61
59
  return /* @__PURE__ */ t.jsx(
62
60
  f,
63
61
  {
64
62
  "data-slot": "popover-description",
65
- className: e("text-sm text-ppx-muted-foreground", o),
66
- ...r
63
+ className: r("text-ppx-sm text-ppx-muted-foreground", o),
64
+ ...e
67
65
  }
68
66
  );
69
67
  }
70
- function E({
68
+ function F({
71
69
  children: o,
72
- className: r,
73
- align: a = "center",
74
- sideOffset: s = 8,
75
- arrow: i = !0,
76
- side: p = "bottom",
77
- ...n
70
+ className: e,
71
+ positionerProps: s = {},
72
+ popupProps: a = {},
73
+ arrow: n = !0
78
74
  }) {
79
75
  return /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsx(
80
- P,
76
+ C,
81
77
  {
82
- sideOffset: s,
83
- align: a,
78
+ sideOffset: 8,
79
+ align: "center",
84
80
  positionMethod: "fixed",
85
- side: p,
81
+ side: "bottom",
82
+ ...s,
86
83
  children: /* @__PURE__ */ t.jsxs(
87
84
  c,
88
85
  {
89
86
  "data-slot": "popover-content",
90
- className: e(
91
- "w-72 rounded-md p-4 shadow-md z-50 origin-[var(--transform-origin)] bg-ppx-background text-ppx-foreground outline -outline-offset-1 outline-ppx-border transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
92
- r
87
+ ...a,
88
+ className: r(
89
+ "p-4 shadow-md z-50 min-w-input origin-[var(--transform-origin)] rounded-ppx-m bg-ppx-background text-ppx-foreground outline -outline-offset-1 outline-ppx-neutral-5 transition-[transform,scale,opacity] data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
90
+ a.className,
91
+ e
93
92
  ),
94
- ...n,
95
93
  children: [
96
- i && /* @__PURE__ */ t.jsx(h, { className: "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180", children: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", children: [
94
+ n && /* @__PURE__ */ t.jsx(h, { className: "data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180", children: /* @__PURE__ */ t.jsxs("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", children: [
97
95
  /* @__PURE__ */ t.jsx(
98
96
  "path",
99
97
  {
@@ -105,7 +103,7 @@ function E({
105
103
  "path",
106
104
  {
107
105
  d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
108
- className: "fill-ppx-border"
106
+ className: "fill-ppx-neutral-5"
109
107
  }
110
108
  )
111
109
  ] }) }),
@@ -116,29 +114,52 @@ function E({
116
114
  }
117
115
  ) });
118
116
  }
119
- function F({ className: o, ...r }) {
117
+ function O({
118
+ className: o,
119
+ ...e
120
+ }) {
121
+ return /* @__PURE__ */ t.jsx(
122
+ i,
123
+ {
124
+ render: (s) => /* @__PURE__ */ t.jsx(
125
+ l,
126
+ {
127
+ "aria-label": "Close",
128
+ variant: "ghost",
129
+ size: "icon-sm",
130
+ className: r(
131
+ "self-start text-ppx-muted-foreground transition-colors hover:text-ppx-foreground",
132
+ o
133
+ ),
134
+ ...s,
135
+ ...e,
136
+ children: /* @__PURE__ */ t.jsx(p, { className: "size-5" })
137
+ }
138
+ )
139
+ }
140
+ );
141
+ }
142
+ function q({ className: o, ...e }) {
120
143
  return /* @__PURE__ */ t.jsx(
121
144
  "div",
122
145
  {
123
146
  "data-slot": "popover-footer",
124
- className: e(
125
- "gap-2 sm:flex-row sm:justify-end flex flex-col-reverse",
147
+ className: r(
148
+ "gap-2 flex flex-col-reverse ppx-sm:flex-row ppx-sm:justify-end",
126
149
  o
127
150
  ),
128
- ...r
151
+ ...e
129
152
  }
130
153
  );
131
154
  }
132
155
  export {
133
- h as Arrow,
134
156
  D as Close,
135
- E as Content,
136
- B as Description,
137
- F as Footer,
138
- Z as Header,
139
- j as Portal,
140
- P as Positioner,
157
+ O as CloseIconButton,
158
+ F as Content,
159
+ E as Description,
160
+ q as Footer,
161
+ I as Header,
141
162
  k as Root,
142
- z as Title,
163
+ Z as Title,
143
164
  A as Trigger
144
165
  };
@@ -7,6 +7,8 @@ declare const radioVariants: (props?: ({
7
7
  variant?: "default" | null | undefined;
8
8
  size?: "default" | "sm" | "lg" | null | undefined;
9
9
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
10
- declare function RadioGroupItem({ className, variant, size, ...props }: React.ComponentProps<typeof Radio.Root> & VariantProps<typeof radioVariants>): import("react/jsx-runtime").JSX.Element;
10
+ export interface RadioGroupItemProps extends React.ComponentProps<typeof Radio.Root>, VariantProps<typeof radioVariants> {
11
+ }
12
+ declare function RadioGroupItem({ className, variant, size, ...props }: RadioGroupItemProps): import("react/jsx-runtime").JSX.Element;
11
13
  export { RadioGroup, RadioGroupItem };
12
14
  //# sourceMappingURL=radio-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAGrF,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAQ7C;AAED,QAAA,MAAM,aAAa;;;mFAkBlB,CAAC;AAEF,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,GACxC,YAAY,CAAC,OAAO,aAAa,CAAC,2CAiCnC;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAGrF,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAQ7C;AAED,QAAA,MAAM,aAAa;;;mFAkBlB,CAAC;AAEF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,EAC7C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,mBAAmB,2CAiCrB;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
@@ -14,12 +14,20 @@ export declare function Content({ portalProps, positionerProps, popupProps, chil
14
14
  export declare const List: React.ForwardRefExoticComponent<Select.List.Props & React.RefAttributes<HTMLDivElement>>;
15
15
  export declare function Item({ className, ...props }: React.ComponentProps<typeof Select.Item>): import("react/jsx-runtime").JSX.Element;
16
16
  export declare function MultiItem({ className, ...props }: React.ComponentProps<typeof Select.Item>): import("react/jsx-runtime").JSX.Element;
17
- export declare function Trigger({ size, widthVariant, ...props }: Select.Trigger.Props & VariantProps<typeof triggerVariants>): import("react/jsx-runtime").JSX.Element;
17
+ export interface TriggerProps extends Select.Trigger.Props, VariantProps<typeof triggerVariants> {
18
+ }
19
+ export declare function Trigger({ size, widthVariant, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
18
20
  export declare function MultiSelectedValue({ selectedValue, maxItems, }: {
19
21
  selectedValue: any;
20
22
  maxItems: number;
21
23
  }): import("react/jsx-runtime").JSX.Element | null;
22
- export declare function Value({ children, className, ...props }: Select.Value.Props): import("react/jsx-runtime").JSX.Element;
24
+ /**
25
+ * Renders the value, if `value` is a string or an object with `label` property in it,
26
+ * then renders that value else you should provide a render function to render your custom value
27
+ * **/
28
+ export declare function Value({ children, className, placeholder, ...props }: Select.Value.Props & {
29
+ placeholder?: string;
30
+ }): import("react/jsx-runtime").JSX.Element;
23
31
  export type SelectedValue<TValue> = TValue | null | undefined;
24
32
  export declare const BaseSelect: typeof Select;
25
33
  //# sourceMappingURL=select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D,OAAO,EAIL,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc7D,wBAAgB,IAAI,CAClB,KAAK,GAAG,GAAG,EACX,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAC5C,EACA,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GAAG;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAQA;AAED,wBAAgB,OAAO,CAAC,EACtB,WAAW,EACX,eAAe,EACf,UAAU,EACV,QAAQ,EACR,YAAwB,GACzB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO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CAAC,KAAK,EAC1B,YAAY,CAAC,OAAO,eAAe,CAAC;CAAG;AAE3C,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,YAAY,2CAed;AAED,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,QAAQ,GACT,EAAE;IACD,aAAa,EAAE,GAAG,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,kDAmBA;AAED;;;MAGM;AACN,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,WAAW,EACX,GAAG,KAAK,EACT,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,2CAoB/C;AAED,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,eAAO,MAAM,UAAU,eAAS,CAAC"}
@@ -1,60 +1,60 @@
1
- import { j as t } from "../_virtual/jsx-runtime.js";
2
- import * as l from "react";
3
- import { cn as c } from "../utils/classnames.js";
1
+ import { j as r } from "../_virtual/jsx-runtime.js";
2
+ import * as o from "react";
3
+ import { cn as s } from "../utils/classnames.js";
4
4
  import { DROPDOWN_POPUP_CN as x, DROPDOWN_POSITIONER_CN as d, triggerVariants as u, DROPDOWN_ITEM_CN as m } from "../tw-styles/dropdown.js";
5
- import h from "../icons/check-icon.js";
6
- import j from "../icons/chevron-down-icon.js";
5
+ import j from "../icons/check-icon.js";
6
+ import h from "../icons/chevron-down-icon.js";
7
7
  import { SelectList as N } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/list/SelectList.js";
8
8
  import * as g from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/index.parts.js";
9
9
  import { SelectRoot as S } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/root/SelectRoot.js";
10
10
  import { SelectPortal as I } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/portal/SelectPortal.js";
11
11
  import { SelectPositioner as O } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/positioner/SelectPositioner.js";
12
- import { SelectPopup as v } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/popup/SelectPopup.js";
13
- import { SelectItem as o } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/item/SelectItem.js";
12
+ import { SelectPopup as C } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/popup/SelectPopup.js";
13
+ import { SelectItem as l } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/item/SelectItem.js";
14
14
  import { SelectItemText as a } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/item-text/SelectItemText.js";
15
- import { SelectTrigger as C } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/trigger/SelectTrigger.js";
16
- import { SelectIcon as R } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/icon/SelectIcon.js";
17
- import { SelectValue as p } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/value/SelectValue.js";
18
- import { SelectItemIndicator as D } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/item-indicator/SelectItemIndicator.js";
19
- const f = l.createContext(
15
+ import { SelectTrigger as b } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/trigger/SelectTrigger.js";
16
+ import { SelectIcon as p } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/icon/SelectIcon.js";
17
+ import { SelectValue as y } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/value/SelectValue.js";
18
+ import { SelectItemIndicator as R } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/select/item-indicator/SelectItemIndicator.js";
19
+ const f = o.createContext(
20
20
  {}
21
21
  );
22
- function _() {
23
- return l.useContext(f);
22
+ function D() {
23
+ return o.useContext(f);
24
24
  }
25
25
  function G({
26
- children: r,
27
- invalid: e,
26
+ children: e,
27
+ invalid: t,
28
28
  ...n
29
29
  }) {
30
- const i = l.useMemo(() => ({ invalid: e }), [e]);
31
- return /* @__PURE__ */ t.jsx(f.Provider, { value: i, children: /* @__PURE__ */ t.jsx(S, { ...n, children: r }) });
30
+ const c = o.useMemo(() => ({ invalid: t }), [t]);
31
+ return /* @__PURE__ */ r.jsx(f.Provider, { value: c, children: /* @__PURE__ */ r.jsx(S, { ...n, children: e }) });
32
32
  }
33
33
  function H({
34
- portalProps: r,
35
- positionerProps: e,
34
+ portalProps: e,
35
+ positionerProps: t,
36
36
  popupProps: n,
37
- children: i,
38
- widthVariant: s = "trigger"
37
+ children: c,
38
+ widthVariant: i = "trigger"
39
39
  }) {
40
- return /* @__PURE__ */ t.jsx(I, { ...r, children: /* @__PURE__ */ t.jsx(
40
+ return /* @__PURE__ */ r.jsx(I, { ...e, children: /* @__PURE__ */ r.jsx(
41
41
  O,
42
42
  {
43
43
  sideOffset: 6,
44
- ...e,
45
- className: c(d, e == null ? void 0 : e.className),
44
+ ...t,
45
+ className: s(d, t == null ? void 0 : t.className),
46
46
  alignItemWithTrigger: !1,
47
- children: /* @__PURE__ */ t.jsx(
48
- v,
47
+ children: /* @__PURE__ */ r.jsx(
48
+ C,
49
49
  {
50
- className: c(
50
+ className: s(
51
51
  x,
52
52
  "py-1",
53
- s === "trigger" ? "w-[var(--anchor-width)]" : s === "fit" ? "w-fit" : s === "enforced" ? "w-[var(--min-width-input)]" : "",
53
+ i === "trigger" ? "w-[var(--anchor-width)]" : i === "fit" ? "w-fit" : i === "enforced" ? "w-[var(--min-width-input)]" : "",
54
54
  n == null ? void 0 : n.className
55
55
  ),
56
56
  ...n,
57
- children: i
57
+ children: c
58
58
  }
59
59
  )
60
60
  }
@@ -62,68 +62,73 @@ function H({
62
62
  }
63
63
  const J = N;
64
64
  function K({
65
- className: r,
66
- ...e
65
+ className: e,
66
+ ...t
67
67
  }) {
68
- return /* @__PURE__ */ t.jsx(o, { className: c(m, r), ...e, children: /* @__PURE__ */ t.jsx(a, { children: e.children }) });
68
+ return /* @__PURE__ */ r.jsx(l, { className: s(m, e), ...t, children: /* @__PURE__ */ r.jsx(a, { children: t.children }) });
69
69
  }
70
70
  function Q({
71
- className: r,
72
- ...e
71
+ className: e,
72
+ ...t
73
73
  }) {
74
- return /* @__PURE__ */ t.jsx(
75
- o,
74
+ return /* @__PURE__ */ r.jsx(
75
+ l,
76
76
  {
77
- ...e,
78
- render: (n, i) => /* @__PURE__ */ t.jsxs("div", { ...n, className: c(m, r), children: [
79
- /* @__PURE__ */ t.jsx(b, { selected: i.selected }),
80
- /* @__PURE__ */ t.jsx(a, { children: e.children })
77
+ ...t,
78
+ render: (n, c) => /* @__PURE__ */ r.jsxs("div", { ...n, className: s(m, e), children: [
79
+ /* @__PURE__ */ r.jsx(_, { selected: c.selected }),
80
+ /* @__PURE__ */ r.jsx(a, { children: t.children })
81
81
  ] })
82
82
  }
83
83
  );
84
84
  }
85
- function b(r) {
86
- return /* @__PURE__ */ t.jsx(
85
+ function _(e) {
86
+ return /* @__PURE__ */ r.jsx(
87
87
  "div",
88
88
  {
89
- className: c(
89
+ className: s(
90
90
  "peer rounded-sm bg-white size-4 flex shrink-0 items-center justify-center border border-ppx-neutral-10 transition-colors duration-150 outline-none",
91
- r.selected && "text-white border-ppx-primary-5 bg-ppx-primary-5"
91
+ e.selected && "text-white border-ppx-primary-5 bg-ppx-primary-5"
92
92
  ),
93
- children: /* @__PURE__ */ t.jsx(D, { children: /* @__PURE__ */ t.jsx(h, {}) })
93
+ children: /* @__PURE__ */ r.jsx(R, { children: /* @__PURE__ */ r.jsx(j, {}) })
94
94
  }
95
95
  );
96
96
  }
97
97
  function X({
98
- size: r,
99
- widthVariant: e,
98
+ size: e,
99
+ widthVariant: t,
100
100
  ...n
101
101
  }) {
102
- const { invalid: i } = _();
103
- return /* @__PURE__ */ t.jsxs(
104
- C,
102
+ const { invalid: c } = D();
103
+ return /* @__PURE__ */ r.jsxs(
104
+ b,
105
105
  {
106
106
  "aria-label": "Open popup",
107
- className: c(u({ size: r, widthVariant: e }), n.className),
108
- "aria-invalid": i ?? void 0,
107
+ className: s(u({ size: e, widthVariant: t }), n.className),
108
+ "aria-invalid": c ?? void 0,
109
109
  children: [
110
110
  n.children,
111
- /* @__PURE__ */ t.jsx(R, { className: "shrink-0", children: /* @__PURE__ */ t.jsx(j, {}) })
111
+ /* @__PURE__ */ r.jsx(p, { className: "shrink-0", children: /* @__PURE__ */ r.jsx(h, {}) })
112
112
  ]
113
113
  }
114
114
  );
115
115
  }
116
116
  function Y({
117
- selectedValue: r,
118
- maxItems: e
117
+ selectedValue: e,
118
+ maxItems: t
119
119
  }) {
120
- return !r || Array.isArray(r) && r.length === 0 ? null : /* @__PURE__ */ t.jsxs("div", { className: "gap-1 flex items-center", children: [
121
- /* @__PURE__ */ t.jsx("span", { className: "truncate", children: r.slice(0, e).join(", ") }),
122
- r.length > e && /* @__PURE__ */ t.jsx("span", { className: "truncate", children: `(+${r.length - e})` })
120
+ return !e || Array.isArray(e) && e.length === 0 ? null : /* @__PURE__ */ r.jsxs("div", { className: "gap-1 flex items-center", children: [
121
+ /* @__PURE__ */ r.jsx("span", { className: "truncate", children: e.slice(0, t).join(", ") }),
122
+ e.length > t && /* @__PURE__ */ r.jsx("span", { className: "truncate", children: `(+${e.length - t})` })
123
123
  ] });
124
124
  }
125
- function Z({ children: r, className: e, ...n }) {
126
- return /* @__PURE__ */ t.jsx(p, { className: c("truncate text-ppx-sm", e), ...n, children: r });
125
+ function Z({
126
+ children: e,
127
+ className: t,
128
+ placeholder: n,
129
+ ...c
130
+ }) {
131
+ return /* @__PURE__ */ r.jsx(y, { className: s("truncate text-ppx-sm", t), ...c, children: (i) => i == null && n ? n : e ? typeof e == "function" ? e(i) : e : i && typeof i == "object" && "label" in i ? i.label : i });
127
132
  }
128
133
  const V = g;
129
134
  export {
@@ -1,7 +1,7 @@
1
1
  import { j as a } from "../_virtual/jsx-runtime.js";
2
2
  import { cn as e } from "../utils/classnames.js";
3
3
  import { SwitchRoot as o } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/switch/root/SwitchRoot.js";
4
- import { SwitchThumb as i } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/switch/thumb/SwitchThumb.js";
4
+ import { SwitchThumb as c } from "../node_modules/.pnpm/@base-ui-components_react@1.0.0-beta.4_@types_react@19.2.0_react-dom@19.2.0_react@19.2.0/node_modules/@base-ui-components/react/esm/switch/thumb/SwitchThumb.js";
5
5
  function p({
6
6
  className: r,
7
7
  size: t,
@@ -12,7 +12,7 @@ function p({
12
12
  {
13
13
  "data-slot": "switch",
14
14
  className: e(
15
- "peer focus-visible:border-ring focus-visible:ring-ring/50 shadow-xs inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-checked:bg-ppx-primary-5 data-unchecked:bg-ppx-neutral-4",
15
+ "peer shadow-xs inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-3 focus-visible:ring-ppx-neutral-17/30 disabled:cursor-not-allowed disabled:opacity-50 data-checked:bg-ppx-primary-5 data-unchecked:bg-ppx-neutral-4",
16
16
  t === "sm" && "h-4 w-8",
17
17
  t === void 0 && "h-5 w-10",
18
18
  t === "lg" && "h-6 w-12",
@@ -20,7 +20,7 @@ function p({
20
20
  ),
21
21
  ...n,
22
22
  children: /* @__PURE__ */ a.jsx(
23
- i,
23
+ c,
24
24
  {
25
25
  "data-slot": "switch-thumb",
26
26
  className: e(
@@ -4,8 +4,9 @@ declare const textareaVariants: (props?: ({
4
4
  size?: "default" | "sm" | null | undefined;
5
5
  widthVariant?: "enforced" | "full" | null | undefined;
6
6
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
- declare function Textarea({ className, size, invalid, widthVariant, ...props }: React.ComponentProps<"textarea"> & VariantProps<typeof textareaVariants> & {
7
+ export interface TextareaProps extends React.ComponentProps<"textarea">, VariantProps<typeof textareaVariants> {
8
8
  invalid?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ declare function Textarea({ className, size, invalid, widthVariant, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
10
11
  export { Textarea };
11
12
  //# sourceMappingURL=textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,gBAAgB;;;mFAiBrB,CAAC;AAEF,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GACjC,YAAY,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAS9D;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,gBAAgB;;;mFAkBrB,CAAC;AAEF,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,EACtC,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,aAAa,2CASf;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -15,7 +15,8 @@ const p = l(
15
15
  }
16
16
  },
17
17
  defaultVariants: {
18
- size: "default"
18
+ size: "default",
19
+ widthVariant: "enforced"
19
20
  }
20
21
  }
21
22
  );
package/dist/core.css CHANGED
@@ -1 +1 @@
1
- @theme{ --font-sans-light: "Lato L", system-ui, sans-serif; --font-sans: "Lato R", system-ui, sans-serif; --font-sans-sb: "Lato SB", system-ui, sans-serif; --font-sans-b: "Lato B", system-ui, sans-serif; --color-ppx-green-1: #eaf8f1; --color-ppx-green-2: #a7e1c6; --color-ppx-green-3: #82d5ae; --color-ppx-green-4: #4dc28c; --color-ppx-green-5: #28b674; --color-ppx-green-6: #1c7f51; --color-ppx-green-7: #186f47; --color-ppx-red-1: #f8e6e6; --color-ppx-red-2: #e39696; --color-ppx-red-3: #d76b6b; --color-ppx-red-4: #c62b2b; --color-ppx-red-5: #ba0000; --color-ppx-red-6: #820000; --color-ppx-red-7: #710000; --color-ppx-yellow-1: #fff7e6; --color-ppx-yellow-2: #ffdd96; --color-ppx-yellow-3: #fecf6b; --color-ppx-yellow-4: #febb2b; --color-ppx-yellow-5: #fead00; --color-ppx-yellow-6: #b27900; --color-ppx-yellow-7: #9b6a00; --color-ppx-neutral-1: #fafbfb; --color-ppx-neutral-2: #f5f6f7; --color-ppx-neutral-3: #ebedf0; --color-ppx-neutral-4: #dfe2e6; --color-ppx-neutral-5: #c2c7d0; --color-ppx-neutral-6: #b3b9c4; --color-ppx-neutral-7: #a6aebb; --color-ppx-neutral-8: #98a1b0; --color-ppx-neutral-9: #8993a4; --color-ppx-neutral-10: #7a8699; --color-ppx-neutral-11: #6b788e; --color-ppx-neutral-12: #5d6b82; --color-ppx-neutral-13: #505f79; --color-ppx-neutral-14: #42526d; --color-ppx-neutral-15: #354764; --color-ppx-neutral-16: #243757; --color-ppx-neutral-17: #15294b; --color-ppx-neutral-18: #091e42; --color-ppx-primary-1: #eaf8f1; --color-ppx-primary-2: #a7e1c6; --color-ppx-primary-3: #82d5ae; --color-ppx-primary-4: #4dc28c; --color-ppx-primary-5: #28b674; --color-ppx-primary-6: #1c7f51; --color-ppx-primary-7: #186f47; --color-ppx-primary-b-1: #ecf4fe; --color-ppx-primary-b-2: #b1d1f9; --color-ppx-primary-b-3: #90bef6; --color-ppx-primary-b-4: #60a2f3; --color-ppx-primary-b-5: #408ff0; --color-ppx-primary-b-6: #2d64a8; --color-ppx-primary-b-7: #275792; --color-ppx-background: #fff; --color-ppx-foreground: var(--color-ppx-neutral-18); --color-ppx-muted-background: #dfe2e6; --color-ppx-muted-foreground: var(--color-ppx-neutral-13); --color-ppx-border: var(--color-ppx-neutral-3); --padding-input: .5rem; --height-input: 2.5rem; --height-input-s: 2rem; --min-width-input: 18rem; --radius-ppx-xs: .125rem; --radius-ppx-s: .5rem; --radius-ppx-m: .75rem; --radius-ppx-l: 1rem; --radius-ppx-xl: 1.25rem; --radius-input: var(--radius-ppx-s); --radius-input-s: var(--radius-ppx-s); }@utility text-ppx-h1{font-size: 2.441rem; line-height: 3rem;}@utility text-ppx-h2{font-size: 1.953rem; line-height: 2.5rem;}@utility text-ppx-h3{font-size: 1.562rem; line-height: 2rem;}@utility text-ppx-h4{font-size: 1.25rem; line-height: 1.5rem;}@utility text-ppx-base{font-size: 1rem; line-height: 1.25rem;}@utility text-ppx-sm{font-size: .875rem; line-height: 1rem;}@utility text-ppx-xs{font-size: .64rem; line-height: .75rem;}@utility h-stretch-available{height: -webkit-fill-available; height: -moz-available; height: stretch;}.no-arrow-spin{-moz-appearance:textfield}.no-arrow-spin::-webkit-outer-spin-button,.no-arrow-spin::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.root{isolation:isolate}@keyframes bounce-color{0%,to{transform:translateY(0);background-color:#d1d5db}50%{transform:translateY(-25%);background-color:#374151}}@source "./**/*.{js,jsx,ts,tsx}";
1
+ @theme{ --font-sans-light: "Lato L", system-ui, sans-serif; --font-sans: "Lato R", system-ui, sans-serif; --font-sans-sb: "Lato SB", system-ui, sans-serif; --font-sans-b: "Lato B", system-ui, sans-serif; --color-ppx-green-1: #eaf8f1; --color-ppx-green-2: #a7e1c6; --color-ppx-green-3: #82d5ae; --color-ppx-green-4: #4dc28c; --color-ppx-green-5: #28b674; --color-ppx-green-6: #1c7f51; --color-ppx-green-7: #186f47; --color-ppx-red-1: #f8e6e6; --color-ppx-red-2: #e39696; --color-ppx-red-3: #d76b6b; --color-ppx-red-4: #c62b2b; --color-ppx-red-5: #ba0000; --color-ppx-red-6: #820000; --color-ppx-red-7: #710000; --color-ppx-yellow-1: #fff7e6; --color-ppx-yellow-2: #ffdd96; --color-ppx-yellow-3: #fecf6b; --color-ppx-yellow-4: #febb2b; --color-ppx-yellow-5: #fead00; --color-ppx-yellow-6: #b27900; --color-ppx-yellow-7: #9b6a00; --color-ppx-neutral-1: #fafbfb; --color-ppx-neutral-2: #f5f6f7; --color-ppx-neutral-3: #ebedf0; --color-ppx-neutral-4: #dfe2e6; --color-ppx-neutral-5: #c2c7d0; --color-ppx-neutral-6: #b3b9c4; --color-ppx-neutral-7: #a6aebb; --color-ppx-neutral-8: #98a1b0; --color-ppx-neutral-9: #8993a4; --color-ppx-neutral-10: #7a8699; --color-ppx-neutral-11: #6b788e; --color-ppx-neutral-12: #5d6b82; --color-ppx-neutral-13: #505f79; --color-ppx-neutral-14: #42526d; --color-ppx-neutral-15: #354764; --color-ppx-neutral-16: #243757; --color-ppx-neutral-17: #15294b; --color-ppx-neutral-18: #091e42; --color-ppx-primary-1: #eaf8f1; --color-ppx-primary-2: #a7e1c6; --color-ppx-primary-3: #82d5ae; --color-ppx-primary-4: #4dc28c; --color-ppx-primary-5: #28b674; --color-ppx-primary-6: #1c7f51; --color-ppx-primary-7: #186f47; --color-ppx-primary-b-1: #ecf4fe; --color-ppx-primary-b-2: #b1d1f9; --color-ppx-primary-b-3: #90bef6; --color-ppx-primary-b-4: #60a2f3; --color-ppx-primary-b-5: #408ff0; --color-ppx-primary-b-6: #2d64a8; --color-ppx-primary-b-7: #275792; --color-ppx-background: #fff; --color-ppx-foreground: var(--color-ppx-neutral-18); --color-ppx-muted-background: #dfe2e6; --color-ppx-muted-foreground: var(--color-ppx-neutral-13); --color-ppx-border: var(--color-ppx-neutral-3); --breakpoint-ppx-sm: 40rem; --breakpoint-ppx-md: 48rem; --breakpoint-ppx-lg: 64rem; --breakpoint-ppx-xl: 80rem; --breakpoint-ppx-2xl: 96rem; --padding-input: .5rem; --height-input: 2.5rem; --height-input-s: 2rem; --min-width-input: 18rem; --radius-ppx-xs: .125rem; --radius-ppx-s: .5rem; --radius-ppx-m: .75rem; --radius-ppx-l: 1rem; --radius-ppx-xl: 1.25rem; --radius-input: var(--radius-ppx-s); --radius-input-s: var(--radius-ppx-s); }@utility text-ppx-h1{font-size: 2.441rem; line-height: 3rem;}@utility text-ppx-h2{font-size: 1.953rem; line-height: 2.5rem;}@utility text-ppx-h3{font-size: 1.562rem; line-height: 2rem;}@utility text-ppx-h4{font-size: 1.25rem; line-height: 1.5rem;}@utility text-ppx-base{font-size: 1rem; line-height: 1.25rem;}@utility text-ppx-sm{font-size: .875rem; line-height: 1rem;}@utility text-ppx-xs{font-size: .75rem; line-height: .75rem;}@utility text-ppx-xxs{font-size: .64rem; line-height: .75rem;}@utility h-stretch-available{height: -webkit-fill-available; height: -moz-available; height: stretch;}.no-arrow-spin{-moz-appearance:textfield}.no-arrow-spin::-webkit-outer-spin-button,.no-arrow-spin::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.root{isolation:isolate}@keyframes bounce-color{0%,to{transform:translateY(0);background-color:#d1d5db}50%{transform:translateY(-25%);background-color:#374151}}@source "./**/*.{js,jsx,ts,tsx}";
package/dist/index.d.ts CHANGED
@@ -13,7 +13,6 @@ export * as BlockRadioGroup from './components/block-radio-group';
13
13
  export * from './components/button';
14
14
  export * from './components/checkbox';
15
15
  export * from './components/label';
16
- export * from './components/text-input';
17
16
  export * from './components/input';
18
17
  export * from './components/textarea';
19
18
  export * from './components/avatar';