@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.
- package/CHANGELOG.md +7 -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 +3564 -8
- package/dist/index.d.cts +37 -2
- package/dist/index.d.ts +37 -2
- package/dist/index.js +142 -4
- package/package.json +1 -1
@@ -1,38 +1,8 @@
|
|
1
1
|
'use client'
|
2
|
-
import "../../chunk-RTMS5TJN.js";
|
3
|
-
|
4
|
-
// src/components/icon-badge/icon-badge.tsx
|
5
|
-
import * as React from "react";
|
6
|
-
import { cloneElement, isValidElement } from "react";
|
7
2
|
import {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
import { cx } from "@saas-ui/core/utils";
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
13
|
-
var IconBadge = React.forwardRef(
|
14
|
-
(props, ref) => {
|
15
|
-
const { icon, children, ...rest } = props;
|
16
|
-
const recipe = useRecipe({ key: "suiIconBadge", recipe: props.recipe });
|
17
|
-
const [variantProps, localProps] = recipe.splitVariantProps(rest);
|
18
|
-
const styles = recipe(variantProps);
|
19
|
-
const element = icon || children;
|
20
|
-
const _children = isValidElement(element) ? cloneElement(element, {
|
21
|
-
"aria-hidden": true,
|
22
|
-
focusable: false
|
23
|
-
}) : null;
|
24
|
-
return /* @__PURE__ */ jsx(
|
25
|
-
chakra.div,
|
26
|
-
{
|
27
|
-
ref,
|
28
|
-
...localProps,
|
29
|
-
css: [styles, props.css],
|
30
|
-
className: cx(recipe.className, props.className),
|
31
|
-
children: _children
|
32
|
-
}
|
33
|
-
);
|
34
|
-
}
|
35
|
-
);
|
3
|
+
IconBadge
|
4
|
+
} from "../../chunk-I2RXEKTB.js";
|
5
|
+
import "../../chunk-RTMS5TJN.js";
|
36
6
|
export {
|
37
7
|
IconBadge
|
38
8
|
};
|
@@ -1,20 +1,8 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
-
|
4
|
-
} from "../../chunk-
|
3
|
+
Link
|
4
|
+
} from "../../chunk-BFA5FCA2.js";
|
5
5
|
import "../../chunk-RTMS5TJN.js";
|
6
|
-
|
7
|
-
// src/components/link/link.tsx
|
8
|
-
import React from "react";
|
9
|
-
import { Link as ChakraLink } from "@chakra-ui/react";
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
11
|
-
var Link = React.forwardRef(
|
12
|
-
(props, ref) => {
|
13
|
-
const LinkComponent = useLink();
|
14
|
-
return /* @__PURE__ */ jsx(ChakraLink, { asChild: true, children: /* @__PURE__ */ jsx(LinkComponent, { ref, ...props }) });
|
15
|
-
}
|
16
|
-
);
|
17
|
-
Link.displayName = "Link";
|
18
6
|
export {
|
19
7
|
Link
|
20
8
|
};
|