@saas-ui/react 3.0.0-alpha.4 → 3.0.0-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/chunk-2EUACKRH.js +26 -0
  3. package/dist/chunk-3Z2C27LI.js +51 -0
  4. package/dist/chunk-4TR3AOMG.js +33 -0
  5. package/dist/chunk-6LOMIKR5.js +69 -0
  6. package/dist/chunk-6ZNR6N2K.js +45 -0
  7. package/dist/chunk-7C3IZBNJ.js +38 -0
  8. package/dist/chunk-BCNPBZZK.js +45 -0
  9. package/dist/{chunk-KHRLZUV4.js → chunk-BFA5FCA2.js} +16 -1
  10. package/dist/chunk-CTOVNZVS.js +1 -0
  11. package/dist/chunk-DPMEXCSG.js +137 -0
  12. package/dist/chunk-F3CVOMG5.js +160 -0
  13. package/dist/chunk-FJFNGSPL.js +23 -0
  14. package/dist/chunk-GEPWRHHH.js +65 -0
  15. package/dist/chunk-HELHPHIQ.js +35 -0
  16. package/dist/chunk-I2RXEKTB.js +38 -0
  17. package/dist/chunk-L356FPLY.js +20 -0
  18. package/dist/chunk-LIYUBUOP.js +119 -0
  19. package/dist/chunk-M7FOBCOV.js +184 -0
  20. package/dist/chunk-NSD5HRIP.js +46 -0
  21. package/dist/chunk-QMG6HP7Z.js +87 -0
  22. package/dist/chunk-QSNSWCTM.js +32 -0
  23. package/dist/chunk-S3CQW7GD.js +100 -0
  24. package/dist/chunk-SA3OGTOO.js +23 -0
  25. package/dist/chunk-UCQ3LZIE.js +43 -0
  26. package/dist/chunk-ULAJ3JEO.js +32 -0
  27. package/dist/chunk-VF3BV2BY.js +87 -0
  28. package/dist/chunk-WYLMBMAH.js +22 -0
  29. package/dist/chunk-YWJZWB6I.js +1892 -0
  30. package/dist/chunk-ZWSZQZ5G.js +73 -0
  31. package/dist/components/app-shell/index.js +3 -40
  32. package/dist/components/avatar/index.cjs +69 -0
  33. package/dist/components/avatar/index.d.cts +18 -0
  34. package/dist/components/avatar/index.d.ts +18 -0
  35. package/dist/components/avatar/index.js +10 -0
  36. package/dist/components/breadcrumbs/index.js +3 -32
  37. package/dist/components/button/index.js +3 -40
  38. package/dist/components/checkbox/index.js +3 -15
  39. package/dist/components/command/index.js +3 -28
  40. package/dist/components/dialog/index.js +5 -67
  41. package/dist/components/drawer/index.d.cts +2 -2
  42. package/dist/components/drawer/index.d.ts +2 -2
  43. package/dist/components/drawer/index.js +5 -59
  44. package/dist/components/empty-state/index.js +3 -18
  45. package/dist/components/grid-list/index.js +3 -40
  46. package/dist/components/icon-badge/index.js +3 -33
  47. package/dist/components/link/index.js +2 -14
  48. package/dist/components/loading-overlay/index.js +5 -1885
  49. package/dist/components/menu/index.cjs +263 -0
  50. package/dist/components/menu/index.d.cts +30 -0
  51. package/dist/components/menu/index.d.ts +30 -0
  52. package/dist/components/menu/index.js +9 -0
  53. package/dist/components/navbar/index.d.cts +4 -4
  54. package/dist/components/navbar/index.d.ts +4 -4
  55. package/dist/components/navbar/index.js +3 -45
  56. package/dist/components/number-input/index.js +3 -26
  57. package/dist/components/password-input/index.js +4 -225
  58. package/dist/components/persona/index.js +6 -178
  59. package/dist/components/pin-input/index.js +3 -21
  60. package/dist/components/radio/index.js +4 -16
  61. package/dist/components/search-input/index.js +4 -114
  62. package/dist/components/segmented-control/index.cjs +2 -0
  63. package/dist/components/segmented-control/index.d.cts +2 -0
  64. package/dist/components/segmented-control/index.d.ts +2 -0
  65. package/dist/components/segmented-control/index.js +2 -0
  66. package/dist/components/select/index.js +4 -94
  67. package/dist/components/sidebar/index.d.cts +11 -11
  68. package/dist/components/sidebar/index.d.ts +11 -11
  69. package/dist/components/sidebar/index.js +7 -129
  70. package/dist/components/steps/index.js +5 -64
  71. package/dist/components/switch/index.js +3 -18
  72. package/dist/components/toaster/index.cjs +54 -0
  73. package/dist/components/toaster/index.d.cts +10 -0
  74. package/dist/components/toaster/index.d.ts +10 -0
  75. package/dist/components/toaster/index.js +10 -0
  76. package/dist/components/tooltip/index.cjs +57 -0
  77. package/dist/components/tooltip/index.d.cts +14 -0
  78. package/dist/components/tooltip/index.d.ts +14 -0
  79. package/dist/components/tooltip/index.js +8 -0
  80. package/dist/index.cjs +3564 -8
  81. package/dist/index.d.cts +37 -2
  82. package/dist/index.d.ts +37 -2
  83. package/dist/index.js +142 -4
  84. package/package.json +1 -1
@@ -1,100 +1,10 @@
1
1
  'use client'
2
2
  import {
3
- CloseButton
4
- } from "../../chunk-FZW2DYK3.js";
3
+ namespace_exports
4
+ } from "../../chunk-S3CQW7GD.js";
5
+ import "../../chunk-FZW2DYK3.js";
5
6
  import "../../chunk-VDXTEASE.js";
6
- import {
7
- __export
8
- } from "../../chunk-RTMS5TJN.js";
9
-
10
- // src/components/select/namespace.ts
11
- var namespace_exports = {};
12
- __export(namespace_exports, {
13
- Content: () => SelectContent,
14
- Item: () => SelectItem,
15
- ItemGroup: () => SelectItemGroup,
16
- ItemText: () => SelectItemText,
17
- Label: () => SelectLabel,
18
- Root: () => SelectRoot,
19
- Trigger: () => SelectTrigger,
20
- ValueText: () => SelectValueText
21
- });
22
-
23
- // src/components/select/select.tsx
24
- import { forwardRef } from "react";
25
- import { Portal, Select as SelectPrimitive } from "@chakra-ui/react";
26
- import { jsx, jsxs } from "react/jsx-runtime";
27
- var SelectTrigger = forwardRef(
28
- function SelectTrigger2(props, ref) {
29
- const { children, clearable, ...rest } = props;
30
- return /* @__PURE__ */ jsxs(SelectPrimitive.Control, { ...rest, children: [
31
- /* @__PURE__ */ jsx(SelectPrimitive.Trigger, { ref, children }),
32
- /* @__PURE__ */ jsxs(SelectPrimitive.IndicatorGroup, { children: [
33
- clearable && /* @__PURE__ */ jsx(SelectClearTrigger, {}),
34
- /* @__PURE__ */ jsx(SelectPrimitive.Indicator, {})
35
- ] })
36
- ] });
37
- }
38
- );
39
- var SelectClearTrigger = forwardRef(function SelectClearTrigger2(props, ref) {
40
- return /* @__PURE__ */ jsx(SelectPrimitive.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ jsx(
41
- CloseButton,
42
- {
43
- size: "xs",
44
- variant: "plain",
45
- focusVisibleRing: "inside",
46
- focusRingWidth: "2px",
47
- pointerEvents: "auto"
48
- }
49
- ) });
50
- });
51
- var SelectContent = forwardRef(
52
- function SelectContent2(props, ref) {
53
- const { portalled = true, portalRef, ...rest } = props;
54
- return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(SelectPrimitive.Positioner, { children: /* @__PURE__ */ jsx(SelectPrimitive.Content, { ...rest, ref }) }) });
55
- }
56
- );
57
- var SelectItem = forwardRef(
58
- function SelectItem2(props, ref) {
59
- const { item, children, ...rest } = props;
60
- return /* @__PURE__ */ jsxs(SelectPrimitive.Item, { item, ...rest, ref, children: [
61
- children,
62
- /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, {})
63
- ] }, item.value);
64
- }
65
- );
66
- var SelectValueText = forwardRef(function SelectValueText2(props, ref) {
67
- const { children, ...rest } = props;
68
- return /* @__PURE__ */ jsx(SelectPrimitive.ValueText, { ...rest, ref, children: /* @__PURE__ */ jsx(SelectPrimitive.Context, { children: (select) => {
69
- const items = select.selectedItems;
70
- if (items.length === 0) return props.placeholder;
71
- if (children) return children(items);
72
- if (items.length === 1)
73
- return select.collection.stringifyItem(items[0]);
74
- return `${items.length} selected`;
75
- } }) });
76
- });
77
- var SelectRoot = forwardRef(function SelectRoot2(props, ref) {
78
- return /* @__PURE__ */ jsx(
79
- SelectPrimitive.Root,
80
- {
81
- ...props,
82
- ref,
83
- positioning: { sameWidth: true, ...props.positioning }
84
- }
85
- );
86
- });
87
- var SelectItemGroup = forwardRef(
88
- function SelectItemGroup2(props, ref) {
89
- const { children, label, ...rest } = props;
90
- return /* @__PURE__ */ jsxs(SelectPrimitive.ItemGroup, { ...rest, ref, children: [
91
- /* @__PURE__ */ jsx(SelectPrimitive.ItemGroupLabel, { children: label }),
92
- children
93
- ] });
94
- }
95
- );
96
- var SelectLabel = SelectPrimitive.Label;
97
- var SelectItemText = SelectPrimitive.ItemText;
7
+ import "../../chunk-RTMS5TJN.js";
98
8
  export {
99
9
  namespace_exports as Select
100
10
  };