@saas-ui/react 3.0.0-alpha.4 → 3.0.0-alpha.6
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/dist/chunk-2EUACKRH.js +26 -0
- package/dist/chunk-3Z2C27LI.js +51 -0
- package/dist/chunk-4TR3AOMG.js +33 -0
- package/dist/chunk-6LOMIKR5.js +69 -0
- package/dist/chunk-6ZNR6N2K.js +45 -0
- package/dist/chunk-7C3IZBNJ.js +38 -0
- package/dist/chunk-BCNPBZZK.js +45 -0
- package/dist/{chunk-KHRLZUV4.js → chunk-BFA5FCA2.js} +16 -1
- package/dist/chunk-CTOVNZVS.js +1 -0
- package/dist/chunk-DPMEXCSG.js +137 -0
- package/dist/chunk-F3CVOMG5.js +160 -0
- package/dist/chunk-FJFNGSPL.js +23 -0
- package/dist/chunk-GEPWRHHH.js +65 -0
- package/dist/chunk-HELHPHIQ.js +35 -0
- package/dist/chunk-I2RXEKTB.js +38 -0
- package/dist/chunk-L356FPLY.js +20 -0
- package/dist/chunk-LIYUBUOP.js +119 -0
- package/dist/chunk-M7FOBCOV.js +184 -0
- package/dist/chunk-NSD5HRIP.js +46 -0
- package/dist/chunk-QMG6HP7Z.js +87 -0
- package/dist/chunk-QSNSWCTM.js +32 -0
- package/dist/chunk-S3CQW7GD.js +100 -0
- package/dist/chunk-SA3OGTOO.js +23 -0
- package/dist/chunk-UCQ3LZIE.js +43 -0
- package/dist/chunk-ULAJ3JEO.js +32 -0
- package/dist/chunk-VF3BV2BY.js +87 -0
- package/dist/chunk-WYLMBMAH.js +22 -0
- package/dist/chunk-YWJZWB6I.js +1892 -0
- package/dist/chunk-ZWSZQZ5G.js +73 -0
- package/dist/components/app-shell/index.js +3 -40
- package/dist/components/avatar/index.cjs +69 -0
- package/dist/components/avatar/index.d.cts +18 -0
- package/dist/components/avatar/index.d.ts +18 -0
- package/dist/components/avatar/index.js +10 -0
- package/dist/components/breadcrumbs/index.js +3 -32
- package/dist/components/button/index.js +3 -40
- package/dist/components/checkbox/index.js +3 -15
- package/dist/components/command/index.js +3 -28
- package/dist/components/dialog/index.js +5 -67
- package/dist/components/drawer/index.d.cts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/index.js +5 -59
- package/dist/components/empty-state/index.js +3 -18
- package/dist/components/grid-list/index.js +3 -40
- package/dist/components/icon-badge/index.js +3 -33
- package/dist/components/link/index.js +2 -14
- package/dist/components/loading-overlay/index.js +5 -1885
- package/dist/components/menu/index.cjs +263 -0
- package/dist/components/menu/index.d.cts +30 -0
- package/dist/components/menu/index.d.ts +30 -0
- package/dist/components/menu/index.js +9 -0
- package/dist/components/navbar/index.d.cts +4 -4
- package/dist/components/navbar/index.d.ts +4 -4
- package/dist/components/navbar/index.js +3 -45
- package/dist/components/number-input/index.js +3 -26
- package/dist/components/password-input/index.js +4 -225
- package/dist/components/persona/index.js +6 -178
- package/dist/components/pin-input/index.js +3 -21
- package/dist/components/radio/index.js +4 -16
- package/dist/components/search-input/index.js +4 -114
- package/dist/components/segmented-control/index.cjs +2 -0
- package/dist/components/segmented-control/index.d.cts +2 -0
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/index.js +2 -0
- package/dist/components/select/index.js +4 -94
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/components/sidebar/index.js +7 -129
- package/dist/components/steps/index.js +5 -64
- package/dist/components/switch/index.js +3 -18
- package/dist/components/toaster/index.cjs +54 -0
- package/dist/components/toaster/index.d.cts +10 -0
- package/dist/components/toaster/index.d.ts +10 -0
- package/dist/components/toaster/index.js +10 -0
- package/dist/components/tooltip/index.cjs +57 -0
- package/dist/components/tooltip/index.d.cts +14 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +8 -0
- package/dist/index.cjs +3707 -8
- package/dist/index.d.cts +37 -2
- package/dist/index.d.ts +37 -2
- package/dist/index.js +285 -4
- package/package.json +4 -4
@@ -1,100 +1,10 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../chunk-
|
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
|
};
|