@simpli-route/apollo-ds 0.0.2
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/README.md +50 -0
- package/dist/components/Button/Button.d.ts +7 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/types.d.ts +62 -0
- package/dist/components/Button/variants.d.ts +10 -0
- package/dist/components/Loader/Loader.d.ts +6 -0
- package/dist/components/Loader/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs10.js +1 -0
- package/dist/index.cjs11.js +1 -0
- package/dist/index.cjs2.js +1 -0
- package/dist/index.cjs3.js +1 -0
- package/dist/index.cjs4.js +1 -0
- package/dist/index.cjs5.js +1 -0
- package/dist/index.cjs6.js +1 -0
- package/dist/index.cjs7.js +1 -0
- package/dist/index.cjs8.js +9 -0
- package/dist/index.cjs9.js +19 -0
- package/dist/index.css +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +8 -0
- package/dist/index.es10.js +4 -0
- package/dist/index.es11.js +4 -0
- package/dist/index.es2.js +81 -0
- package/dist/index.es3.js +8 -0
- package/dist/index.es4.js +8 -0
- package/dist/index.es5.js +147 -0
- package/dist/index.es6.js +52 -0
- package/dist/index.es7.js +4 -0
- package/dist/index.es8.js +32 -0
- package/dist/index.es9.js +601 -0
- package/dist/stories/Button.stories.d.ts +47 -0
- package/dist/style.css +1110 -0
- package/dist/testing/setupTests.d.ts +1 -0
- package/dist/testing/tests/checkAccessibility.d.ts +7 -0
- package/dist/testing/tests/index.d.ts +5 -0
- package/dist/testing/tests/itRendersChildren.d.ts +5 -0
- package/dist/testing/tests/itSupportsClassName.d.ts +5 -0
- package/dist/testing/tests/itSupportsFocusEvents.d.ts +6 -0
- package/dist/testing/tests/triggerPress.d.ts +4 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/vite.svg +1 -0
- package/package.json +84 -0
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Apollo-design-system
|
|
2
|
+
|
|
3
|
+
This project is to be able to integrate all the components to be used in different SimpliRoute apps.
|
|
4
|
+
|
|
5
|
+
## Tech Stack
|
|
6
|
+
|
|
7
|
+
- [pnpm](https://pnpm.io/es/)
|
|
8
|
+
- [React js with Vite](https://vitejs.dev/)
|
|
9
|
+
- [Tailwind CSS](https://tailwindcss.com/)
|
|
10
|
+
- [TypeScript](https://www.typescriptlang.org)
|
|
11
|
+
- [React Aria](https://react-spectrum.adobe.com/react-aria/)
|
|
12
|
+
- [CVA](https://cva.style/docs)
|
|
13
|
+
- [ESLint](https://eslint.org)
|
|
14
|
+
- [Prettier](https://prettier.io)
|
|
15
|
+
|
|
16
|
+
## VSCode extensions to install
|
|
17
|
+
|
|
18
|
+
Check the **.vscode/extensions.json** file for the extensions to install in VSCode.
|
|
19
|
+
|
|
20
|
+
## VSCode settings to use
|
|
21
|
+
|
|
22
|
+
Check the **.vscode/settings.json** file for the settings to use in VSCode.
|
|
23
|
+
|
|
24
|
+
## Run Locally
|
|
25
|
+
|
|
26
|
+
After following the steps to create your **env.local** file you can run these commands to run the project locally.
|
|
27
|
+
|
|
28
|
+
Install dependencies:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm i
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Run the project with the storybook:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pnpm storybook
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Running Tests
|
|
41
|
+
|
|
42
|
+
To run tests with watch mode (default):
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pnpm test
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Deployment
|
|
49
|
+
|
|
50
|
+
Coming soon~
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BtnProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Button component **version 0.1** https://www.figma.com/file/h6tZeqNdVEUvrgwOwK4vcY/Design-System---The-Bible?type=design&node-id=5803-1168&mode=design
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare const Button: (props: BtnProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { LoaderProps } from '..';
|
|
2
|
+
import { ButtonProps } from 'react-aria-components';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface BtnProps extends ButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* Optional click handler
|
|
8
|
+
*/
|
|
9
|
+
onPress?: () => void;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the styling type of the button
|
|
13
|
+
*/
|
|
14
|
+
intent?: "primary" | "secondary" | "tertiary" | "outline" | "success" | "error" | "orangeWarning" | "yellowWarning" | "info";
|
|
15
|
+
/**
|
|
16
|
+
* Defines the size of the button
|
|
17
|
+
*/
|
|
18
|
+
size?: "sm" | "md" | "lg";
|
|
19
|
+
/**
|
|
20
|
+
* Optional className to add the root of the button
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Add left icon to the button
|
|
25
|
+
*/
|
|
26
|
+
leftIcon?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Add right icon to the button
|
|
29
|
+
*/
|
|
30
|
+
rightIcon?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Defines if the button is disabled
|
|
33
|
+
*/
|
|
34
|
+
isDisabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates if the button is in the loading process
|
|
37
|
+
*/
|
|
38
|
+
isLoading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Optional props to pass to the loader component
|
|
41
|
+
*/
|
|
42
|
+
loaderPosition?: "left" | "right";
|
|
43
|
+
loaderProps?: LoaderProps;
|
|
44
|
+
/**
|
|
45
|
+
* Wether the button should be full width (take the whole width of the container)
|
|
46
|
+
*/
|
|
47
|
+
fullWidth?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Wether the button should apply styles or remove all styling
|
|
50
|
+
*/
|
|
51
|
+
unstyled?: boolean;
|
|
52
|
+
focus?: boolean;
|
|
53
|
+
id?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface RenderItemProps {
|
|
56
|
+
renderPosition: "left" | "right";
|
|
57
|
+
leftIcon?: ReactNode;
|
|
58
|
+
rightIcon?: ReactNode;
|
|
59
|
+
isLoading?: boolean;
|
|
60
|
+
loaderPosition?: "left" | "right";
|
|
61
|
+
loaderProps?: LoaderProps;
|
|
62
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
intent?: "primary" | "secondary" | "tertiary" | "outline" | "success" | "error" | "orangeWarning" | "yellowWarning" | "info" | null | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
isDisabled?: boolean | null | undefined;
|
|
5
|
+
isHovered?: boolean | null | undefined;
|
|
6
|
+
isActive?: boolean | null | undefined;
|
|
7
|
+
fullWidth?: boolean | null | undefined;
|
|
8
|
+
isLoading?: boolean | null | undefined;
|
|
9
|
+
isFocused?: boolean | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs3.js");require("react-aria");require("clsx");require("tailwind-merge");exports.Button=e.Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs3.js"),E=require("react-aria-components"),b=require("./index.cjs4.js"),q=require("./index.cjs5.js"),N=require("./index.cjs6.js"),j=({renderPosition:e,leftIcon:o,rightIcon:l,isLoading:n,loaderPosition:r,loaderProps:t})=>{const i=e==="left"?o:e==="right"?l:null;return i||n&&r===e?s.jsxRuntimeExports.jsx("span",{className:e==="left"?"mr-1":"ml-1",children:n&&r===e?s.jsxRuntimeExports.jsx(N.Loader,{size:"sm",...t}):i}):null},y=e=>{const{intent:o="primary",size:l="md",leftIcon:n,rightIcon:r,isDisabled:t,children:i,className:p,isLoading:a,loaderPosition:m="left",loaderProps:x,fullWidth:h=!1,unstyled:f=!1,focus:R=!0,...g}=e,v=(u,c,d)=>b.cn(f?"":q.buttonVariants({intent:o,size:l,isHovered:c,isActive:u,isDisabled:t,isFocused:R||!f?d:!1,fullWidth:h,isLoading:a}),p);return s.jsxRuntimeExports.jsxs(E.Button,{"data-disabled":t||void 0,"data-loading":a||void 0,isDisabled:t,className:({isPressed:u,isHovered:c,isFocused:d})=>v(u,c,d),...g,children:[s.jsxRuntimeExports.jsx(j,{renderPosition:"left",loaderPosition:m,loaderProps:x,isLoading:a,leftIcon:n}),s.jsxRuntimeExports.jsx("span",{className:"flex h-full items-center overflow-hidden whitespace-nowrap",children:i}),s.jsxRuntimeExports.jsx(j,{renderPosition:"right",loaderPosition:m,loaderProps:x,isLoading:a,rightIcon:r})]})};exports.Button=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs7.js"),r=require("./index.cjs8.js"),t=require("./index.cjs9.js");process.env.NODE_ENV==="production"?e.__module.exports=r.__require():e.__module.exports=t.__require();var o=e.__module.exports;exports.jsxRuntimeExports=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",{variants:{intent:{primary:"bg-primary-500 text-primary-50",secondary:"border border-primary-500 bg-primary-50 text-primary-500",tertiary:"text-primary-500",outline:"border border-primary-500 text-primary-500",success:"border border-success-800 text-success-800",error:"border border-error-800 text-error-800",orangeWarning:"border border-orange-warning-800 text-orange-warning-800",yellowWarning:"border border-yellow-warning-800 text-yellow-warning-800",info:"border border-primary-800 text-primary-800"},size:{sm:"rounded px-3 py-2",md:"rounded-lg px-4 py-3",lg:"rounded-lg px-6 py-4"},isDisabled:{true:"pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"},isHovered:{true:""},isActive:{true:""},fullWidth:{true:"w-full",false:"w-fit"},isLoading:{true:"pointer-events-none cursor-not-allowed opacity-70"},isFocused:{true:"focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-2",false:""}},defaultVariants:{intent:"primary",size:"md"},compoundVariants:[{intent:"primary",isHovered:!0,class:"bg-primary-700"},{intent:"secondary",isHovered:!0,class:"bg-primary-200"},{intent:"tertiary",isHovered:!0,class:"bg-primary-300 text-primary-800"},{intent:"outline",isHovered:!0,class:"bg-primary-500 text-primary-50"},{intent:"success",isHovered:!0,class:"bg-success-600 text-neutral-50"},{intent:"error",isHovered:!0,class:"bg-error-600 text-neutral-50"},{intent:"orangeWarning",isHovered:!0,class:"bg-orange-warning-600 text-neutral-50"},{intent:"yellowWarning",isHovered:!0,class:"bg-yellow-warning-600 text-neutral-50"},{intent:"info",isHovered:!0,class:"bg-primary-600 text-neutral-50"},{intent:"primary",isActive:!0,class:"bg-primary-900"},{intent:"secondary",isActive:!0,class:"bg-primary-300"},{intent:"tertiary",isActive:!0,class:"bg-primary-500 text-white"},{intent:"outline",isActive:!0,class:"border border-primary-500 bg-primary-300 text-primary-500"},{intent:"success",isActive:!0,class:"border border-transparent bg-success-300 text-success-600"},{intent:"error",isActive:!0,class:"border border-transparent bg-error-300 text-error-600"},{intent:"orangeWarning",isActive:!0,class:"border border-transparent bg-orange-warning-300 text-orange-warning-600"},{intent:"yellowWarning",isActive:!0,class:"border border-transparent bg-yellow-warning-300 text-yellow-warning-600"},{intent:"info",isActive:!0,class:"border border-transparent bg-primary-300 text-primary-600"}]});exports.buttonVariants=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs3.js"),a=require("react-aria"),l=require("./index.cjs4.js");function u({className:t,label:s,size:r="sm"}){const n=(()=>{switch(r){case"xs":return"h-4 w-4 ";case"sm":return"h-8 w-8";case"md":return"h-12 w-12";case"lg":return"h-16 w-16";default:return"h-8 w-8"}})(),{visuallyHiddenProps:i}=a.useVisuallyHidden();return e.jsxRuntimeExports.jsxs("div",{role:"status",className:"flex flex-col items-center justify-center gap-1",children:[e.jsxRuntimeExports.jsxs("svg",{"aria-hidden":"true",className:l.cn(n,"mr-2 animate-spin fill-primary-500 text-neutral-500",t),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxRuntimeExports.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e.jsxRuntimeExports.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),s&&e.jsxRuntimeExports.jsx("span",{className:"text-base leading-6 text-primary-900",children:s}),e.jsxRuntimeExports.jsx("span",{...i,children:"..."})]})}exports.Loader=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs10.js"),R=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var p;function a(){if(p)return t.__exports;p=1;var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function i(o,e,u){var r,n={},_=null,s=null;u!==void 0&&(_=""+u),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=i,t.__exports.jsxs=i,t.__exports}exports.__require=a;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs11.js"),tr=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var he;function nr(){return he||(he=1,process.env.NODE_ENV!=="production"&&function(){var Ee=tr,x=Symbol.for("react.element"),ye=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),B=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),G=Symbol.iterator,Re="@@iterator";function me(e){if(e===null||typeof e!="object")return null;var r=G&&e[G]||e[Re];return typeof r=="function"?r:null}var b=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Te("error",e,t)}}function Te(e,r,t){{var n=b.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ce=!1,Pe=!1,Se=!1,Oe=!1,we=!1,z;z=Symbol.for("react.module.reference");function je(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===N||we||e===U||e===k||e===D||Oe||e===_e||Ce||Pe||Se||typeof e=="object"&&e!==null&&(e.$$typeof===F||e.$$typeof===C||e.$$typeof===q||e.$$typeof===B||e.$$typeof===T||e.$$typeof===z||e.getModuleId!==void 0))}function xe(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function J(e){return e.displayName||"Context"}function d(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case ye:return"Portal";case N:return"Profiler";case U:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case B:var r=e;return J(r)+".Consumer";case q:var t=e;return J(t._context)+".Provider";case T:return xe(e,e.render,"ForwardRef");case C:var n=e.displayName||null;return n!==null?n:d(e.type)||"Memo";case F:{var o=e,u=o._payload,i=o._init;try{return d(i(u))}catch{return null}}}return null}var g=Object.assign,y=0,K,H,X,Z,Q,ee,re;function te(){}te.__reactDisabledLog=!0;function ke(){{if(y===0){K=console.log,H=console.info,X=console.warn,Z=console.error,Q=console.group,ee=console.groupCollapsed,re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}y++}}function De(){{if(y--,y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:K}),info:g({},e,{value:H}),warn:g({},e,{value:X}),error:g({},e,{value:Z}),group:g({},e,{value:Q}),groupCollapsed:g({},e,{value:ee}),groupEnd:g({},e,{value:re})})}y<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var A=b.ReactCurrentDispatcher,I;function P(e,r,t){{if(I===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||""}return`
|
|
10
|
+
`+I+e}}var W=!1,S;{var Fe=typeof WeakMap=="function"?WeakMap:Map;S=new Fe}function ne(e,r){if(!e||W)return"";{var t=S.get(e);if(t!==void 0)return t}var n;W=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=A.current,A.current=null,ke();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
|
|
11
|
+
`),c=n.stack.split(`
|
|
12
|
+
`),s=a.length-1,l=c.length-1;s>=1&&l>=0&&a[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==c[l]){var v=`
|
|
13
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),typeof e=="function"&&S.set(e,v),v}while(s>=1&&l>=0);break}}}finally{W=!1,A.current=u,De(),Error.prepareStackTrace=o}var E=e?e.displayName||e.name:"",be=E?P(E):"";return typeof e=="function"&&S.set(e,be),be}function Ae(e,r,t){return ne(e,!1)}function Ie(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function O(e,r,t){if(e==null)return"";if(typeof e=="function")return ne(e,Ie(e));if(typeof e=="string")return P(e);switch(e){case k:return P("Suspense");case D:return P("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case T:return Ae(e.render);case C:return O(e.type,r,t);case F:{var n=e,o=n._payload,u=n._init;try{return O(u(o),r,t)}catch{}}}return""}var w=Object.prototype.hasOwnProperty,ae={},ie=b.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);ie.setExtraStackFrame(t)}else ie.setExtraStackFrame(null)}function We(e,r,t,n,o){{var u=Function.call.bind(w);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(j(o),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),j(null)),a instanceof Error&&!(a.message in ae)&&(ae[a.message]=!0,j(o),f("Failed %s type: %s",t,a.message),j(null))}}}var $e=Array.isArray;function $(e){return $e(e)}function Ye(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Me(e){try{return oe(e),!1}catch{return!0}}function oe(e){return""+e}function ue(e){if(Me(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ye(e)),oe(e)}var _=b.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},se,le,Y;Y={};function Le(e){if(w.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ue(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ne(e,r){if(typeof e.ref=="string"&&_.current&&r&&_.current.stateNode!==r){var t=d(_.current.type);Y[t]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d(_.current.type),e.ref),Y[t]=!0)}}function qe(e,r){{var t=function(){se||(se=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Be(e,r){{var t=function(){le||(le=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ge=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ze(e,r,t,n,o){{var u,i={},a=null,c=null;t!==void 0&&(ue(t),a=""+t),Ue(r)&&(ue(r.key),a=""+r.key),Le(r)&&(c=r.ref,Ne(r,o));for(u in r)w.call(r,u)&&!Ve.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&qe(i,l),c&&Be(i,l)}return Ge(e,a,c,o,n,_.current,i)}}var M=b.ReactCurrentOwner,fe=b.ReactDebugCurrentFrame;function h(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}var V;V=!1;function L(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ce(){{if(M.current){var e=d(M.current.type);if(e)return`
|
|
14
|
+
|
|
15
|
+
Check the render method of \``+e+"`."}return""}}function Je(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
16
|
+
|
|
17
|
+
Check your code at `+r+":"+t+"."}return""}}var ve={};function Ke(e){{var r=ce();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
18
|
+
|
|
19
|
+
Check the top-level render call using <`+t+">.")}return r}}function de(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ke(r);if(ve[t])return;ve[t]=!0;var n="";e&&e._owner&&e._owner!==M.current&&(n=" It was passed a child from "+d(e._owner.type)+"."),h(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),h(null)}}function pe(e,r){{if(typeof e!="object")return;if($(e))for(var t=0;t<e.length;t++){var n=e[t];L(n)&&de(n,r)}else if(L(e))e._store&&(e._store.validated=!0);else if(e){var o=me(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)L(i.value)&&de(i.value,r)}}}function He(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===T||r.$$typeof===C))t=r.propTypes;else return;if(t){var n=d(r);We(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!V){V=!0;var o=d(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){h(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),h(null);break}}e.ref!==null&&(h(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),h(null))}}function ge(e,r,t,n,o,u){{var i=je(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=Je(o);c?a+=c:a+=ce();var s;e===null?s="null":$(e)?s="array":e!==void 0&&e.$$typeof===x?(s="<"+(d(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=ze(e,r,t,o,u);if(l==null)return l;if(i){var v=r.children;if(v!==void 0)if(n)if($(v)){for(var E=0;E<v.length;E++)pe(v[E],e);Object.freeze&&Object.freeze(v)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pe(v,e)}return e===m?Xe(l):He(l),l}}function Ze(e,r,t){return ge(e,r,t,!0)}function Qe(e,r,t){return ge(e,r,t,!1)}var er=Qe,rr=Ze;R.__exports.Fragment=m,R.__exports.jsx=er,R.__exports.jsxs=rr}()),R.__exports}exports.__require=nr;
|
package/dist/index.css
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button, type BtnProps } from './components';
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { j as t } from "./index.es3.js";
|
|
2
|
+
import { Button as I } from "react-aria-components";
|
|
3
|
+
import { cn as b } from "./index.es4.js";
|
|
4
|
+
import { buttonVariants as w } from "./index.es5.js";
|
|
5
|
+
import { Loader as B } from "./index.es6.js";
|
|
6
|
+
const h = ({
|
|
7
|
+
renderPosition: s,
|
|
8
|
+
leftIcon: o,
|
|
9
|
+
rightIcon: i,
|
|
10
|
+
isLoading: r,
|
|
11
|
+
loaderPosition: l,
|
|
12
|
+
loaderProps: e
|
|
13
|
+
}) => {
|
|
14
|
+
const a = s === "left" ? o : s === "right" ? i : null;
|
|
15
|
+
return a || r && l === s ? /* @__PURE__ */ t.jsx("span", { className: s === "left" ? "mr-1" : "ml-1", children: r && l === s ? /* @__PURE__ */ t.jsx(B, { size: "sm", ...e }) : a }) : null;
|
|
16
|
+
}, D = (s) => {
|
|
17
|
+
const {
|
|
18
|
+
intent: o = "primary",
|
|
19
|
+
size: i = "md",
|
|
20
|
+
leftIcon: r,
|
|
21
|
+
rightIcon: l,
|
|
22
|
+
isDisabled: e,
|
|
23
|
+
children: a,
|
|
24
|
+
className: x,
|
|
25
|
+
isLoading: n,
|
|
26
|
+
loaderPosition: f = "left",
|
|
27
|
+
loaderProps: u,
|
|
28
|
+
fullWidth: j = !1,
|
|
29
|
+
unstyled: p = !1,
|
|
30
|
+
focus: N = !0,
|
|
31
|
+
...g
|
|
32
|
+
} = s, v = (m, c, d) => b(
|
|
33
|
+
p ? "" : w({
|
|
34
|
+
intent: o,
|
|
35
|
+
size: i,
|
|
36
|
+
isHovered: c,
|
|
37
|
+
isActive: m,
|
|
38
|
+
isDisabled: e,
|
|
39
|
+
isFocused: N || !p ? d : !1,
|
|
40
|
+
fullWidth: j,
|
|
41
|
+
isLoading: n
|
|
42
|
+
}),
|
|
43
|
+
x
|
|
44
|
+
);
|
|
45
|
+
return /* @__PURE__ */ t.jsxs(
|
|
46
|
+
I,
|
|
47
|
+
{
|
|
48
|
+
"data-disabled": e || void 0,
|
|
49
|
+
"data-loading": n || void 0,
|
|
50
|
+
isDisabled: e,
|
|
51
|
+
className: ({ isPressed: m, isHovered: c, isFocused: d }) => v(m, c, d),
|
|
52
|
+
...g,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ t.jsx(
|
|
55
|
+
h,
|
|
56
|
+
{
|
|
57
|
+
renderPosition: "left",
|
|
58
|
+
loaderPosition: f,
|
|
59
|
+
loaderProps: u,
|
|
60
|
+
isLoading: n,
|
|
61
|
+
leftIcon: r
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex h-full items-center overflow-hidden whitespace-nowrap", children: a }),
|
|
65
|
+
/* @__PURE__ */ t.jsx(
|
|
66
|
+
h,
|
|
67
|
+
{
|
|
68
|
+
renderPosition: "right",
|
|
69
|
+
loaderPosition: f,
|
|
70
|
+
loaderProps: u,
|
|
71
|
+
isLoading: n,
|
|
72
|
+
rightIcon: l
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
D as Button
|
|
81
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __module as e } from "./index.es7.js";
|
|
2
|
+
import { __require as r } from "./index.es8.js";
|
|
3
|
+
import { __require as o } from "./index.es9.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
|
+
var m = e.exports;
|
|
6
|
+
export {
|
|
7
|
+
m as j
|
|
8
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const t = r(
|
|
3
|
+
"inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
intent: {
|
|
7
|
+
primary: "bg-primary-500 text-primary-50",
|
|
8
|
+
secondary: "border border-primary-500 bg-primary-50 text-primary-500",
|
|
9
|
+
tertiary: "text-primary-500",
|
|
10
|
+
outline: "border border-primary-500 text-primary-500",
|
|
11
|
+
success: "border border-success-800 text-success-800",
|
|
12
|
+
error: "border border-error-800 text-error-800",
|
|
13
|
+
orangeWarning: "border border-orange-warning-800 text-orange-warning-800",
|
|
14
|
+
yellowWarning: "border border-yellow-warning-800 text-yellow-warning-800",
|
|
15
|
+
info: "border border-primary-800 text-primary-800"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
sm: "rounded px-3 py-2",
|
|
19
|
+
md: "rounded-lg px-4 py-3",
|
|
20
|
+
lg: "rounded-lg px-6 py-4"
|
|
21
|
+
},
|
|
22
|
+
isDisabled: {
|
|
23
|
+
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
24
|
+
},
|
|
25
|
+
isHovered: {
|
|
26
|
+
true: ""
|
|
27
|
+
},
|
|
28
|
+
isActive: {
|
|
29
|
+
true: ""
|
|
30
|
+
},
|
|
31
|
+
fullWidth: {
|
|
32
|
+
true: "w-full",
|
|
33
|
+
false: "w-fit"
|
|
34
|
+
},
|
|
35
|
+
isLoading: {
|
|
36
|
+
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
37
|
+
},
|
|
38
|
+
isFocused: {
|
|
39
|
+
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-2",
|
|
40
|
+
false: ""
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
defaultVariants: {
|
|
44
|
+
intent: "primary",
|
|
45
|
+
size: "md"
|
|
46
|
+
},
|
|
47
|
+
compoundVariants: [
|
|
48
|
+
/* Hover State */
|
|
49
|
+
{
|
|
50
|
+
intent: "primary",
|
|
51
|
+
isHovered: !0,
|
|
52
|
+
class: "bg-primary-700"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
intent: "secondary",
|
|
56
|
+
isHovered: !0,
|
|
57
|
+
class: "bg-primary-200"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
intent: "tertiary",
|
|
61
|
+
isHovered: !0,
|
|
62
|
+
class: "bg-primary-300 text-primary-800"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
intent: "outline",
|
|
66
|
+
isHovered: !0,
|
|
67
|
+
class: "bg-primary-500 text-primary-50"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
intent: "success",
|
|
71
|
+
isHovered: !0,
|
|
72
|
+
class: "bg-success-600 text-neutral-50"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
intent: "error",
|
|
76
|
+
isHovered: !0,
|
|
77
|
+
class: "bg-error-600 text-neutral-50"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
intent: "orangeWarning",
|
|
81
|
+
isHovered: !0,
|
|
82
|
+
class: "bg-orange-warning-600 text-neutral-50"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
intent: "yellowWarning",
|
|
86
|
+
isHovered: !0,
|
|
87
|
+
class: "bg-yellow-warning-600 text-neutral-50"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
intent: "info",
|
|
91
|
+
isHovered: !0,
|
|
92
|
+
class: "bg-primary-600 text-neutral-50"
|
|
93
|
+
},
|
|
94
|
+
/* /Hover State */
|
|
95
|
+
/* Active State */
|
|
96
|
+
{
|
|
97
|
+
intent: "primary",
|
|
98
|
+
isActive: !0,
|
|
99
|
+
class: "bg-primary-900"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
intent: "secondary",
|
|
103
|
+
isActive: !0,
|
|
104
|
+
class: "bg-primary-300"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
intent: "tertiary",
|
|
108
|
+
isActive: !0,
|
|
109
|
+
class: "bg-primary-500 text-white"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
intent: "outline",
|
|
113
|
+
isActive: !0,
|
|
114
|
+
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
intent: "success",
|
|
118
|
+
isActive: !0,
|
|
119
|
+
class: "border border-transparent bg-success-300 text-success-600"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
intent: "error",
|
|
123
|
+
isActive: !0,
|
|
124
|
+
class: "border border-transparent bg-error-300 text-error-600"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
intent: "orangeWarning",
|
|
128
|
+
isActive: !0,
|
|
129
|
+
class: "border border-transparent bg-orange-warning-300 text-orange-warning-600"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
intent: "yellowWarning",
|
|
133
|
+
isActive: !0,
|
|
134
|
+
class: "border border-transparent bg-yellow-warning-300 text-yellow-warning-600"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
intent: "info",
|
|
138
|
+
isActive: !0,
|
|
139
|
+
class: "border border-transparent bg-primary-300 text-primary-600"
|
|
140
|
+
}
|
|
141
|
+
/* /Active State */
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
export {
|
|
146
|
+
t as buttonVariants
|
|
147
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { j as e } from "./index.es3.js";
|
|
2
|
+
import { useVisuallyHidden as a } from "react-aria";
|
|
3
|
+
import { cn as l } from "./index.es4.js";
|
|
4
|
+
function d({ className: s, label: r, size: t = "sm" }) {
|
|
5
|
+
const i = (() => {
|
|
6
|
+
switch (t) {
|
|
7
|
+
case "xs":
|
|
8
|
+
return "h-4 w-4 ";
|
|
9
|
+
case "sm":
|
|
10
|
+
return "h-8 w-8";
|
|
11
|
+
case "md":
|
|
12
|
+
return "h-12 w-12";
|
|
13
|
+
case "lg":
|
|
14
|
+
return "h-16 w-16";
|
|
15
|
+
default:
|
|
16
|
+
return "h-8 w-8";
|
|
17
|
+
}
|
|
18
|
+
})(), { visuallyHiddenProps: n } = a();
|
|
19
|
+
return /* @__PURE__ */ e.jsxs("div", { role: "status", className: "flex flex-col items-center justify-center gap-1", children: [
|
|
20
|
+
/* @__PURE__ */ e.jsxs(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
className: l(i, "mr-2 animate-spin fill-primary-500 text-neutral-500", s),
|
|
25
|
+
viewBox: "0 0 100 101",
|
|
26
|
+
fill: "none",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ e.jsx(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
33
|
+
fill: "currentColor"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ e.jsx(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
40
|
+
fill: "currentFill"
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
r && /* @__PURE__ */ e.jsx("span", { className: "text-base leading-6 text-primary-900", children: r }),
|
|
47
|
+
/* @__PURE__ */ e.jsx("span", { ...n, children: "..." })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
d as Loader
|
|
52
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __exports as t } from "./index.es10.js";
|
|
2
|
+
import R from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var p;
|
|
13
|
+
function v() {
|
|
14
|
+
if (p)
|
|
15
|
+
return t;
|
|
16
|
+
p = 1;
|
|
17
|
+
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function i(o, r, u) {
|
|
19
|
+
var e, n = {}, _ = null, f = null;
|
|
20
|
+
u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
+
for (e in r)
|
|
22
|
+
c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
+
if (o && o.defaultProps)
|
|
24
|
+
for (e in r = o.defaultProps, r)
|
|
25
|
+
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
+
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: d.current };
|
|
27
|
+
}
|
|
28
|
+
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
v as __require
|
|
32
|
+
};
|