@saas-ui/react 3.0.0-alpha.20 → 3.0.0-alpha.22
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.
- package/CHANGELOG.md +24 -0
 - package/dist/{chunk-72LEGXHY.js → chunk-EQ7Q6HRE.js} +5 -13
 - package/dist/{chunk-4VH4IGVF.js → chunk-GWC5GCMW.js} +10 -18
 - package/dist/chunk-IEWHAXXU.js +28 -0
 - package/dist/chunk-INV6RT5B.js +8 -0
 - package/dist/{chunk-C7B3ELC4.js → chunk-KFXNVUEZ.js} +3 -3
 - package/dist/chunk-MS2ELLDY.js +26 -0
 - package/dist/chunk-NGSHWY7E.js +27 -0
 - package/dist/{chunk-D2Q7IR5F.js → chunk-NSD5HRIP.js} +1 -4
 - package/dist/chunk-Q6IC3BTH.js +20 -0
 - package/dist/{chunk-WS5XGFSL.js → chunk-VJ4NCA6R.js} +6 -13
 - package/dist/chunk-YHQ5JGCC.js +1 -0
 - package/dist/components/avatar/index.js +2 -1
 - package/dist/components/badge/index.cjs +31 -0
 - package/dist/components/badge/index.d.cts +1 -0
 - package/dist/components/badge/index.d.ts +1 -0
 - package/dist/components/badge/index.js +8 -0
 - package/dist/components/button/index.cjs +8 -26
 - package/dist/components/button/index.js +1 -1
 - package/dist/components/dialog/index.cjs +5 -13
 - package/dist/components/dialog/index.d.cts +2 -1
 - package/dist/components/dialog/index.d.ts +2 -1
 - package/dist/components/dialog/index.js +1 -1
 - package/dist/components/drawer/index.cjs +6 -13
 - package/dist/components/drawer/index.d.cts +2 -1
 - package/dist/components/drawer/index.d.ts +2 -1
 - package/dist/components/drawer/index.js +1 -1
 - package/dist/components/grid-list/index.cjs +1 -4
 - package/dist/components/grid-list/index.d.cts +1 -1
 - package/dist/components/grid-list/index.d.ts +1 -1
 - package/dist/components/grid-list/index.js +1 -1
 - package/dist/components/icon-button/index.cjs +38 -2
 - package/dist/components/icon-button/index.d.cts +9 -1
 - package/dist/components/icon-button/index.d.ts +9 -1
 - package/dist/components/icon-button/index.js +2 -1
 - package/dist/components/menu/index.cjs +8 -26
 - package/dist/components/menu/index.js +2 -2
 - package/dist/components/persona/index.cjs +61 -34
 - package/dist/components/persona/index.d.cts +4 -3
 - package/dist/components/persona/index.d.ts +4 -3
 - package/dist/components/persona/index.js +2 -1
 - package/dist/components/status/index.cjs +45 -0
 - package/dist/components/status/index.d.cts +17 -0
 - package/dist/components/status/index.d.ts +17 -0
 - package/dist/components/status/index.js +8 -0
 - package/dist/components/tag/index.cjs +53 -0
 - package/dist/components/tag/index.d.cts +12 -0
 - package/dist/components/tag/index.d.ts +12 -0
 - package/dist/components/tag/index.js +8 -0
 - package/dist/index.cjs +2622 -2574
 - package/dist/index.d.cts +4 -1
 - package/dist/index.d.ts +4 -1
 - package/dist/index.js +2172 -2127
 - package/package.json +2 -2
 - package/dist/chunk-BCNPBZZK.js +0 -45
 - package/dist/chunk-QVFJV6HJ.js +0 -8
 - /package/dist/{chunk-UCQ3LZIE.js → chunk-JO4WJVYO.js} +0 -0
 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@saas-ui/react",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "3.0.0-alpha. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "3.0.0-alpha.22",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "Saas UI - The React component library for startups.",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "type": "module",
         
     | 
| 
       6 
6 
     | 
    
         
             
              "exports": {
         
     | 
| 
         @@ -70,7 +70,7 @@ 
     | 
|
| 
       70 
70 
     | 
    
         
             
              },
         
     | 
| 
       71 
71 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       72 
72 
     | 
    
         
             
                "@ark-ui/react": "^4.4.4",
         
     | 
| 
       73 
     | 
    
         
            -
                "@saas-ui/core": "3.0.0-alpha. 
     | 
| 
      
 73 
     | 
    
         
            +
                "@saas-ui/core": "3.0.0-alpha.7",
         
     | 
| 
       74 
74 
     | 
    
         
             
                "@saas-ui/hooks": "3.0.0-alpha.4"
         
     | 
| 
       75 
75 
     | 
    
         
             
              },
         
     | 
| 
       76 
76 
     | 
    
         
             
              "peerDependencies": {
         
     | 
    
        package/dist/chunk-BCNPBZZK.js
    DELETED
    
    | 
         @@ -1,45 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            'use client'
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            // src/components/button/button.tsx
         
     | 
| 
       4 
     | 
    
         
            -
            import { forwardRef } from "react";
         
     | 
| 
       5 
     | 
    
         
            -
            import {
         
     | 
| 
       6 
     | 
    
         
            -
              AbsoluteCenter,
         
     | 
| 
       7 
     | 
    
         
            -
              Button as ButtonPrimitive,
         
     | 
| 
       8 
     | 
    
         
            -
              Span,
         
     | 
| 
       9 
     | 
    
         
            -
              Spinner
         
     | 
| 
       10 
     | 
    
         
            -
            } from "@chakra-ui/react";
         
     | 
| 
       11 
     | 
    
         
            -
            import { Fragment, jsx, jsxs } from "react/jsx-runtime";
         
     | 
| 
       12 
     | 
    
         
            -
            var Button = forwardRef(
         
     | 
| 
       13 
     | 
    
         
            -
              function Button2(props, ref) {
         
     | 
| 
       14 
     | 
    
         
            -
                const {
         
     | 
| 
       15 
     | 
    
         
            -
                  loading,
         
     | 
| 
       16 
     | 
    
         
            -
                  disabled,
         
     | 
| 
       17 
     | 
    
         
            -
                  loadingText,
         
     | 
| 
       18 
     | 
    
         
            -
                  children,
         
     | 
| 
       19 
     | 
    
         
            -
                  variant = "glass",
         
     | 
| 
       20 
     | 
    
         
            -
                  colorPalette = variant === "glass" ? "accent" : "gray",
         
     | 
| 
       21 
     | 
    
         
            -
                  ...rest
         
     | 
| 
       22 
     | 
    
         
            -
                } = props;
         
     | 
| 
       23 
     | 
    
         
            -
                return /* @__PURE__ */ jsx(
         
     | 
| 
       24 
     | 
    
         
            -
                  ButtonPrimitive,
         
     | 
| 
       25 
     | 
    
         
            -
                  {
         
     | 
| 
       26 
     | 
    
         
            -
                    colorPalette,
         
     | 
| 
       27 
     | 
    
         
            -
                    disabled: loading || disabled,
         
     | 
| 
       28 
     | 
    
         
            -
                    variant,
         
     | 
| 
       29 
     | 
    
         
            -
                    ref,
         
     | 
| 
       30 
     | 
    
         
            -
                    ...rest,
         
     | 
| 
       31 
     | 
    
         
            -
                    children: loading && !loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
         
     | 
| 
       32 
     | 
    
         
            -
                      /* @__PURE__ */ jsx(AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }) }),
         
     | 
| 
       33 
     | 
    
         
            -
                      /* @__PURE__ */ jsx(Span, { opacity: 0, children })
         
     | 
| 
       34 
     | 
    
         
            -
                    ] }) : loading && loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
         
     | 
| 
       35 
     | 
    
         
            -
                      /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }),
         
     | 
| 
       36 
     | 
    
         
            -
                      loadingText
         
     | 
| 
       37 
     | 
    
         
            -
                    ] }) : children
         
     | 
| 
       38 
     | 
    
         
            -
                  }
         
     | 
| 
       39 
     | 
    
         
            -
                );
         
     | 
| 
       40 
     | 
    
         
            -
              }
         
     | 
| 
       41 
     | 
    
         
            -
            );
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
            export {
         
     | 
| 
       44 
     | 
    
         
            -
              Button
         
     | 
| 
       45 
     | 
    
         
            -
            };
         
     | 
    
        package/dist/chunk-QVFJV6HJ.js
    DELETED
    
    
| 
         
            File without changes
         
     |