@simpli-route/apollo-ds 0.0.22 → 0.1.0
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/dist/components/Accordion/Accordion.d.ts +9 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/types.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/IconButton/IconButton.d.ts +9 -0
- package/dist/components/Input/Label.d.ts +13 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/types.d.ts +24 -0
- package/dist/components/Loader/Loader.d.ts +9 -0
- package/dist/components/NumberField/CaptionNumberField.d.ts +9 -0
- package/dist/components/NumberField/NumberField.d.ts +12 -0
- package/dist/components/NumberField/NumberField.test.d.ts +1 -0
- package/dist/components/NumberField/StepperButton.d.ts +3 -0
- package/dist/components/NumberField/index.d.ts +2 -0
- package/dist/components/NumberField/types.d.ts +54 -0
- package/dist/components/NumberField/variants.d.ts +8 -0
- package/dist/components/Switch/Switch.d.ts +5 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/TooltipTrigger.d.ts +3 -0
- package/dist/components/Tooltip/context.d.ts +12 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts +30 -0
- package/dist/components/Tooltip/variants.d.ts +6 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -9
- package/dist/index.cjs23.js +1 -19
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -0
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -0
- package/dist/index.cjs31.js +1 -0
- package/dist/index.cjs32.js +1 -0
- package/dist/index.cjs33.js +1 -0
- package/dist/index.cjs34.js +1 -0
- package/dist/index.cjs35.js +1 -0
- package/dist/index.cjs36.js +9 -0
- package/dist/index.cjs37.js +19 -0
- package/dist/index.cjs38.js +1 -0
- package/dist/index.cjs39.js +1 -0
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -0
- package/dist/index.cjs41.js +1 -0
- package/dist/index.cjs42.js +1 -0
- package/dist/index.cjs43.js +1 -0
- package/dist/index.cjs44.js +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +22 -12
- package/dist/index.es10.js +33 -6
- package/dist/index.es11.js +23 -5
- package/dist/index.es12.js +26 -20
- package/dist/index.es13.js +8 -173
- package/dist/index.es14.js +8 -43
- package/dist/index.es15.js +6 -92
- package/dist/index.es16.js +6 -22
- package/dist/index.es17.js +21 -29
- package/dist/index.es18.js +131 -19
- package/dist/index.es19.js +170 -17
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +32 -120
- package/dist/index.es21.js +59 -2
- package/dist/index.es22.js +91 -29
- package/dist/index.es23.js +3 -599
- package/dist/index.es24.js +22 -5
- package/dist/index.es25.js +30 -2
- package/dist/index.es26.js +11 -2
- package/dist/index.es27.js +10 -21
- package/dist/index.es28.js +12 -21
- package/dist/index.es29.js +12 -0
- package/dist/index.es3.js +56 -49
- package/dist/index.es30.js +12 -0
- package/dist/index.es31.js +33 -0
- package/dist/index.es32.js +21 -0
- package/dist/index.es33.js +22 -0
- package/dist/index.es34.js +51 -0
- package/dist/index.es35.js +4 -0
- package/dist/index.es36.js +32 -0
- package/dist/index.es37.js +601 -0
- package/dist/index.es38.js +21 -0
- package/dist/index.es39.js +21 -0
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +23 -0
- package/dist/index.es41.js +23 -0
- package/dist/index.es42.js +21 -0
- package/dist/index.es43.js +4 -0
- package/dist/index.es44.js +4 -0
- package/dist/index.es5.js +3 -3
- package/dist/index.es6.js +30 -49
- package/dist/index.es7.js +48 -76
- package/dist/index.es8.js +90 -8
- package/dist/index.es9.js +78 -8
- package/dist/stories/Button.stories.d.ts +3 -16
- package/dist/stories/Checkbox.stories.d.ts +1 -1
- package/dist/stories/IconButton.stories.d.ts +1 -1
- package/dist/stories/Label.stories.d.ts +23 -0
- package/dist/stories/NumberField.stories.d.ts +27 -0
- package/dist/stories/Switch.stories.d.ts +1 -1
- package/dist/stories/Text.stories.d.ts +1 -1
- package/dist/stories/Title.stories.d.ts +1 -1
- package/dist/style.css +344 -0
- package/package.json +13 -13
package/dist/index.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),E=require("react-aria-components"),j=require("./index.cjs16.js");require("react");const N=require("./index.cjs19.js");require("./index.cjs20.js");require("./index.cjs5.js");require("./index.cjs6.js");const w=require("./index.cjs7.js");require("./index.cjs21.js");require("./index.cjs22.js");require("./index.cjs10.js");require("./index.cjs11.js");require("react-aria");require("react-stately");require("./index.cjs23.js");require("./index.cjs24.js");const p=({renderPosition:e,leftIcon:o,rightIcon:c,isLoading:t,loaderPosition:i,loaderProps:s})=>{const n=e==="left"?o:e==="right"?c:null;return n||t&&i===e?r.jsxRuntimeExports.jsx("span",{className:e==="left"?"mr-1":"ml-1",children:t&&i===e?r.jsxRuntimeExports.jsx(w.Loader,{size:"sm",...s}):n}):null},y=e=>{const{intent:o="primary",size:c="md",leftIcon:t,rightIcon:i,isDisabled:s,children:n,className:h,isLoading:l,loaderPosition:x="left",loaderProps:f,fullWidth:R=!1,unstyled:d=!1,focus:q=!0,isMobileFullWidth:b=!1,...g}=e,v=(m,u,a)=>j.cn(d?"":N.buttonVariants({intent:o,size:c,isHovered:u||(q||!d?a:!1),isActive:m,isDisabled:s,isFocused:q||!d?a:!1,fullWidth:R,isLoading:l}),h);return r.jsxRuntimeExports.jsxs(E.Button,{"data-disabled":s||void 0,"data-loading":l||void 0,isDisabled:s,className:({isPressed:m,isHovered:u,isFocusVisible:a})=>v(m,u,a),...g,children:[r.jsxRuntimeExports.jsx(p,{renderPosition:"left",loaderPosition:x,loaderProps:f,isLoading:l,leftIcon:t}),r.jsxRuntimeExports.jsx("span",{className:j.cn("flex h-full items-center overflow-hidden whitespace-nowrap",b?"w-full":""),children:n}),r.jsxRuntimeExports.jsx(p,{renderPosition:"right",loaderPosition:x,loaderProps:f,isLoading:l,rightIcon:i})]})};exports.Button=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs15.js"),l=require("react"),u=require("react-aria"),d=require("./index.cjs16.js"),b=r=>{var t;const{className:n,state:e,...c}=r,s=l.useRef(null),{tabPanelProps:a}=u.useTabPanel(c,e,s),o=d.cn("",n);return i.jsxRuntimeExports.jsx("div",{...a,ref:s,className:o,children:(t=e.selectedItem)==null?void 0:t.props.children})};exports.TabPanel=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),t=r.cva("flex h-full max-h-12",{variants:{orientation:{horizontal:"flex-col",vertical:"flex-row"}}}),e=r.cva("group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",{variants:{isActive:{true:"bg-primary-50 text-primary-600 ",false:"text-neutral-500 hover:text-primary-900"},orientation:{horizontal:"border-b-2 border-transparent",vertical:"border-r-2 border-transparent"}},compoundVariants:[{isActive:!0,orientation:"horizontal",class:"border-b-2 border-primary-500"},{isActive:!1,orientation:"horizontal",class:"border-b-2 border-primary-200"},{isActive:!1,orientation:"vertical",class:"border-r-2 border-primary-200"},{isActive:!0,orientation:"vertical",class:"border-r-2 border-primary-500"}]});exports.tabVariants=e;exports.tabsVariants=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),i=require("./index.cjs16.js"),m=({label:e,description:s,errorMessage:x,isDisabled:n,isInvalid:l,children:r,renderLabelIcon:u})=>!e&&!s&&!r?null:t.jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[e?t.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-x-1",children:[t.jsxRuntimeExports.jsx("p",{className:i.cn("text-sm font-semibold",n?"text-neutral-600":"text-neutral-900"),children:e}),u?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:u}):null]}):r,s&&!x&&t.jsxRuntimeExports.jsx("p",{className:i.cn("text-xs",n?"text-neutral-600":"text-neutral-800"),children:s}),l&&x&&t.jsxRuntimeExports.jsx("p",{className:"text-sm text-red-500",children:x})]});exports.ContentSwitch=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs15.js"),s=require("./index.cjs16.js"),a=require("./index.cjs22.js"),c=({isSelected:t,isDisabled:e,isHovered:n,size:i,dimensions:r})=>o.jsxRuntimeExports.jsx("div",{className:s.cn(a.indicatorVariants({isSelected:t,isDisabled:e,size:i,isHoveredWhenOff:n&&!t})),style:{left:t?`${r.onLeft}px`:`${r.offLeft}px`}});exports.SwitchIndicator=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("class-variance-authority"),t='after:content-[""] after:absolute after:border-8 after:border-x-transparent',l=`${t} after:left-4 after:top-[100%] after:border-b-transparent`,b=`${t} after:left-1/2 after:top-[100%] after:-translate-x-1/2 after:border-b-transparent`,f=`${t} after:right-4 after:top-[100%] after:border-b-transparent`,n=`${t} after:left-4 after:bottom-[100%] after:border-t-transparent`,s=`${t} after:left-1/2 after:bottom-[100%] after:-translate-x-1/2 after:border-t-transparent`,p=`${t} after:right-4 after:bottom-[100%] after:border-t-transparent`,o='before:content-[""] before:absolute before:top-1/2 before:-translate-y-1/2 before:border-8 before:border-y-transparent',r=`${o} before:right-[100%] before:border-l-transparent`,e=`${o} before:left-[100%] before:border-r-transparent`,d=a.cva("absolute z-20 w-max max-w-[250px] whitespace-normal break-words rounded-lg transition duration-150 ease-in-out shadow-[0px_2px_4px_-2px_#22242A0F,0px_4px_8px_-2px_#22242A1A]",{variants:{mode:{light:"bg-blue-50 text-neutral-900 after:border-t-blue-50 after:border-b-blue-50 before:border-r-blue-50 before:border-l-blue-50",dark:"bg-blue-900 text-blue-50 after:border-t-blue-900 after:border-b-blue-900 before:border-r-blue-900 before:border-l-blue-900"},hasSupportText:{true:"",false:""},placement:{none:"bottom-full left-1/2 mb-3 -translate-x-1/2","top-start":`bottom-full left-0 mb-3 ${l}`,top:`bottom-full left-1/2 mb-3 -translate-x-1/2 ${b}`,"top-end":`bottom-full right-0 mb-3 ${f}`,"right-start":`left-full top-0 ml-3 ${r}`,right:`left-full top-1/2 ml-3 -translate-y-1/2 ${r}`,"right-end":`bottom-0 left-full ml-3 ${r}`,"bottom-start":`left-0 top-full mt-3 ${n}`,bottom:`left-1/2 top-full mt-3 -translate-x-1/2 ${s}`,"bottom-end":`right-0 top-full mt-3 ${p}`,"left-start":`right-full top-0 mr-3 ${e}`,left:`right-full top-1/2 mr-3 -translate-y-1/2 ${e}`,"left-end":`bottom-0 right-full mr-3 ${e}`},size:{sm:"px-4 py-2",md:"px-4 py-3",lg:"p-4"}},compoundVariants:[{hasSupportText:!0,mode:"dark",class:"text-[16px] text-blue-50 font-semibold leading-5"},{hasSupportText:!0,mode:"light",class:"text-[16px] text-neutral-900 font-semibold leading-5"}]});exports.tooltipVariants=d;
|
|
@@ -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.cjs43.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.cjs44.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),e=a,l=({title:r,titleId:n,...o},t)=>e.createElement("svg",Object.assign({fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},o),r?e.createElement("title",{id:n},r):null,e.createElement("path",{d:"M22 7.838a.83.83 0 0 1-.242.592l-6.807 6.807a4.167 4.167 0 0 1-5.899 0L2.245 8.43a.837.837 0 0 1 1.183-1.184l6.807 6.808a2.5 2.5 0 0 0 3.533 0l6.807-6.808A.833.833 0 0 1 22 7.838"})),c=e.forwardRef(l);var i=c;exports.DownChevronIcon_1=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=o,l=({title:r,titleId:t,...a},n)=>e.createElement("svg",Object.assign({fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t},a),r?e.createElement("title",{id:t},r):null,e.createElement("path",{d:"M11.999 2C17.522 2 22 6.477 22 12s-4.478 10-10.001 10S2 17.523 2 12C1.999 6.478 6.476 2 11.999 2m0 1.5a8.501 8.501 0 1 0 0 17 8.501 8.501 0 0 0 0-17m-.004 6.999a.75.75 0 0 1 .744.648l.007.102.004 5.5a.75.75 0 0 1-1.494.103l-.006-.101-.004-5.501a.75.75 0 0 1 .75-.75zM12 7.002A1 1 0 1 1 12.063 9 1 1 0 0 1 12 7.002"})),c=e.forwardRef(l);var s=c;exports.InfoIcon_1=s;
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),l=require("react-aria-components"),x=require("./index.cjs16.js"),p=require("./index.cjs25.js"),b=require("./index.cjs20.js"),h=({isIndeterminate:c=!1,isDisabled:s=!1,className:u,children:r,onChange:i,isSelected:n,id:o,...m})=>{const j=(a,t)=>x.cn(b.checkboxVariants({isDisabled:s,isFocusVisible:a,isHovered:t,isSelected:n,label:!!r}));return e.jsxRuntimeExports.jsx(l.Checkbox,{className:x.cn("group flex items-center",u),isSelected:n,isDisabled:s,id:o,onChange:i,...m,children:({isFocusVisible:a,isHovered:t})=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:j(a,t),"aria-hidden":"true",children:e.jsxRuntimeExports.jsx(p.MarkIcon,{isIndeterminate:c,isHovered:t,isSelected:n,className:"size-3"})}),r&&e.jsxRuntimeExports.jsx("span",{className:x.cn("select-none text-base leading-6",s?"text-neutral-500":"text-primary-900"),id:o,children:r})]})})};exports.Checkbox=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),e=l,o=({title:r,titleId:n,...t},c)=>e.createElement("svg",Object.assign({fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:c,"aria-labelledby":n},t),r?e.createElement("title",{id:n},r):null,e.createElement("path",{fillRule:"evenodd",d:"M2 11.85c0-.47.35-.85.783-.85h18.434c.432 0 .783.38.783.85s-.35.85-.783.85H2.783c-.432 0-.783-.38-.783-.85",clipRule:"evenodd"})),a=e.forwardRef(o);var i=a;exports.MinusIcon_1=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),e=n,o=({title:r,titleId:l,...t},a)=>e.createElement("svg",Object.assign({fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":l},t),r?e.createElement("title",{id:l},r):null,e.createElement("path",{fillRule:"evenodd",d:"M11.885 2c.433 0 .783.35.783.783v8.434h8.549a.783.783 0 1 1 0 1.566h-8.549v8.434a.783.783 0 1 1-1.567 0v-8.434H2.783a.783.783 0 1 1 0-1.566h8.318V2.783c0-.432.351-.783.784-.783",clipRule:"evenodd"})),c=e.forwardRef(o);var s=c;exports.PlusIcon_1=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=o,l=({title:r,titleId:t,...a},n)=>e.createElement("svg",Object.assign({fill:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t},a),r?e.createElement("title",{id:t},r):null,e.createElement("path",{d:"M2 15.892a.83.83 0 0 1 .242-.591l6.807-6.807a4.166 4.166 0 0 1 5.899 0l6.807 6.806a.835.835 0 0 1-.912 1.365.8.8 0 0 1-.271-.181l-6.807-6.807a2.5 2.5 0 0 0-3.533 0l-6.807 6.806A.833.833 0 0 1 2 15.893Z"})),c=e.forwardRef(l);var i=c;exports.UpChevronIcon_1=i;
|
|
@@ -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;
|
package/dist/index.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),h=require("react"),n=require("react-aria-components"),q=require("./index.cjs16.js"),R=require("./index.cjs18.js");function g(i,c){const[a,u]=n.useContextProps(i,c,n.ButtonContext),{intent:l="secondary",size:d="lg",isDisabled:o=!1,isActive:x=!1,children:e,className:f,...m}=a,r="flex h-full items-center overflow-hidden whitespace-nowrap";return s.jsxRuntimeExports.jsx(n.Button,{ref:u,className:({isPressed:t,isHovered:p,isFocusVisible:j})=>q.cn(R.buttonVariants({intent:l,size:d,isDisabled:o,isActive:x||t,isHovered:p,isFocused:j}),f),isDisabled:o,...m,children:typeof e=="function"?t=>s.jsxRuntimeExports.jsx("span",{className:r+"p-2.",children:e(t)}):s.jsxRuntimeExports.jsx("span",{className:r,children:e})})}const v=h.forwardRef(g);exports.IconButton=v;
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),p=require("./index.cjs26.js"),j=require("react"),s=require("react-aria-components"),f=require("./index.cjs16.js"),g=require("./index.cjs11.js"),T=require("./index.cjs12.js");function b(r,i){const{labelClassName:o}=r,[a,c]=s.useContextProps(r,i,s.LabelContext),{children:n,tooltipText:l,tooltipSupportText:u,tooltipProps:e,isRequired:x=!1,...m}=a;if(!n)return null;const d=f.cn("flex select-none items-center text-sm leading-6 text-neutral-900",o);return t.jsxRuntimeExports.jsxs(s.Label,{className:d,...m,ref:c,children:[n,x?t.jsxRuntimeExports.jsx("span",{className:"ml-1 text-neutral-900",children:"*"}):null,l?t.jsxRuntimeExports.jsxs(T.TooltipTrigger,{delay:100,children:[t.jsxRuntimeExports.jsx(p.InfoIcon,{className:"ml-1 size-4 text-primary-600"}),t.jsxRuntimeExports.jsx(g.Tooltip,{placement:(e==null?void 0:e.placement)||"right",supportText:u,size:(e==null?void 0:e.size)||"sm",children:l})]}):null]})}const q=j.forwardRef(b);exports.Label=q;
|
package/dist/index.cjs7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),a=require("react-aria"),l=require("./index.cjs16.js"),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;
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),r=require("react-aria-components"),n=require("./index.cjs16.js"),S=require("./index.cjs6.js"),g=require("./index.cjs27.js"),y=require("./index.cjs28.js"),B=require("./index.cjs21.js"),I=({size:l="sm",label:a,description:o,errorMessage:x,isDisabled:e=!1,isReadOnly:s=!1,isRequired:c=!1,tooltipText:m,tooltipSupportText:p,tooltipProps:d,className:j,descriptionClasses:N,errorClasses:f,validationState:i="default",inputClassName:v,maxValue:b,minValue:q=0,autoFocus:E=!1,maxLength:R,...F})=>{const u=i==="invalid"&&!e;return t.jsxRuntimeExports.jsx("div",{className:n.cn("flex",j),children:t.jsxRuntimeExports.jsxs(r.NumberField,{autoFocus:E,className:e?"opacity-70":"",isDisabled:e,isReadOnly:s,maxValue:b,minValue:q,...F,children:[t.jsxRuntimeExports.jsx(S.Label,{labelClassName:n.cn("leading-[19.07px] text-left mb-0.5",{"text-neutral-700":e}),isRequired:c,tooltipText:m,tooltipSupportText:p,tooltipProps:d,children:a}),t.jsxRuntimeExports.jsxs(r.Group,{className:"relative mb-0.5 w-full rounded",children:[t.jsxRuntimeExports.jsx(r.Input,{disabled:e,maxLength:R,className:({isFocused:h,isHovered:C})=>n.cn(B.inputNumberVariant({size:l,isDisabled:e,isReadOnly:s,isHovered:C,isFocused:h,validationState:i==="valid"?"valid":u?"invalid":"default"}),v)}),t.jsxRuntimeExports.jsx(y.StepperButton,{isDisabled:e})]}),t.jsxRuntimeExports.jsx(g.CaptionNumberField,{description:o,descriptionClasses:N,errorMessage:x,errorClasses:f,isInvalidField:u})]})})};exports.NumberField=I;
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),p=require("react-aria-components"),c=require("./index.cjs16.js"),q=require("./index.cjs32.js"),R=require("./index.cjs33.js"),v=require("./index.cjs22.js"),E=({children:s,label:i,description:o,errorMessage:x,validationState:u,size:e="md",isDisabled:t=!1,isSelected:n=!1,onChange:f,renderLabelIcon:m=null,"aria-label":h,"aria-describedby":j})=>{const l=u==="invalid"&&!t,w=e==="sm"?{offLeft:3,onLeft:19}:{offLeft:4,onLeft:28};return r.jsxRuntimeExports.jsxs("label",{className:c.cn("group flex flex-row gap-2",(i||s)&&o?"items-start":"items-center"),children:[r.jsxRuntimeExports.jsx(p.Switch,{isDisabled:t,isSelected:n,"aria-checked":n,"aria-label":h,"aria-describedby":j,onChange:f,children:({isFocusVisible:d,isHovered:a})=>r.jsxRuntimeExports.jsx("div",{className:c.cn(v.switchVariants({isSelected:n,isDisabled:t,isFocusVisible:d,size:e,isHoveredWhenOff:a&&!n})),children:r.jsxRuntimeExports.jsx(R.SwitchIndicator,{isSelected:n,isDisabled:t,isHovered:a,size:e,dimensions:w})})}),r.jsxRuntimeExports.jsx(q.ContentSwitch,{label:i,description:o,errorMessage:x,isDisabled:t,isInvalid:l,renderLabelIcon:m,children:s})]})};exports.Switch=E;
|
package/dist/index.es.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { Accordion as t } from "./index.es2.js";
|
|
2
|
-
import { Button as
|
|
2
|
+
import { Button as p } from "./index.es3.js";
|
|
3
3
|
import { Checkbox as m } from "./index.es4.js";
|
|
4
|
-
import { IconButton as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { IconButton as i } from "./index.es5.js";
|
|
5
|
+
import { Label as c } from "./index.es6.js";
|
|
6
|
+
import { Loader as b } from "./index.es7.js";
|
|
7
|
+
import { NumberField as a } from "./index.es8.js";
|
|
8
|
+
import { Switch as u } from "./index.es9.js";
|
|
9
|
+
import { Tabs as h } from "./index.es10.js";
|
|
10
|
+
import { Tooltip as L } from "./index.es11.js";
|
|
11
|
+
import { TooltipTrigger as s } from "./index.es12.js";
|
|
12
|
+
import { Text as A } from "./index.es13.js";
|
|
13
|
+
import { Title as F } from "./index.es14.js";
|
|
9
14
|
export {
|
|
10
15
|
t as Accordion,
|
|
11
|
-
|
|
16
|
+
p as Button,
|
|
12
17
|
m as Checkbox,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
i as IconButton,
|
|
19
|
+
c as Label,
|
|
20
|
+
b as Loader,
|
|
21
|
+
a as NumberField,
|
|
22
|
+
u as Switch,
|
|
23
|
+
h as Tabs,
|
|
24
|
+
A as Text,
|
|
25
|
+
F as Title,
|
|
26
|
+
L as Tooltip,
|
|
27
|
+
s as TooltipTrigger
|
|
18
28
|
};
|
package/dist/index.es10.js
CHANGED
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as s } from "./index.es15.js";
|
|
2
|
+
import { useRef as x } from "react";
|
|
3
|
+
import { useTabList as b } from "react-aria";
|
|
4
|
+
import { useTabListState as d, Item as N } from "react-stately";
|
|
5
|
+
import { cn as e } from "./index.es16.js";
|
|
6
|
+
import { Tab as j } from "./index.es29.js";
|
|
7
|
+
import { TabPanel as u } from "./index.es30.js";
|
|
8
|
+
import { tabsVariants as h } from "./index.es31.js";
|
|
9
|
+
const T = (a) => {
|
|
10
|
+
var m;
|
|
11
|
+
const { rootClassName: i, tabClassName: n, tabPanelClassName: c, orientation: o = "horizontal", id: f = void 0 } = a, t = d(a), r = x(null), { tabListProps: p } = b(a, t, r);
|
|
12
|
+
return /* @__PURE__ */ s.jsxs("div", { className: e(h({ orientation: o }), i), children: [
|
|
13
|
+
/* @__PURE__ */ s.jsx(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
...p,
|
|
17
|
+
ref: r,
|
|
18
|
+
className: e("flex", o === "horizontal" ? "flex-row flex-wrap" : "flex-col"),
|
|
19
|
+
children: [...t.collection].map((l) => /* @__PURE__ */ s.jsx(j, { item: l, state: t, orientation: o, className: n, id: f }, l.key))
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ s.jsx(
|
|
23
|
+
u,
|
|
24
|
+
{
|
|
25
|
+
state: t,
|
|
26
|
+
className: e("p-2", o === "horizontal" ? "pl-2" : "pt-2", c)
|
|
27
|
+
},
|
|
28
|
+
(m = t.selectedItem) == null ? void 0 : m.key
|
|
29
|
+
)
|
|
30
|
+
] });
|
|
31
|
+
};
|
|
32
|
+
T.Item = N;
|
|
6
33
|
export {
|
|
7
|
-
|
|
34
|
+
T as Tabs
|
|
8
35
|
};
|
package/dist/index.es11.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as s } from "./index.es15.js";
|
|
2
|
+
import { forwardRef as u, useContext as T } from "react";
|
|
3
|
+
import { useTooltip as h, mergeProps as j } from "react-aria";
|
|
4
|
+
import { cn as e } from "./index.es16.js";
|
|
5
|
+
import { TooltipContext as P } from "./index.es23.js";
|
|
6
|
+
import { tooltipVariants as C } from "./index.es34.js";
|
|
7
|
+
function N(p, i) {
|
|
8
|
+
const { placement: l = "bottom", size: m = "md", className: n, mode: t = "dark", supportText: o, children: a, ...r } = p, { state: c, ...x } = T(P), { tooltipProps: d } = h(r, c), f = e(C({ placement: l, size: m, mode: t, hasSupportText: !!o }), n);
|
|
9
|
+
return /* @__PURE__ */ s.jsxs("span", { className: f, ...j(r, d, x), ref: i, children: [
|
|
10
|
+
a,
|
|
11
|
+
o ? /* @__PURE__ */ s.jsx(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: e(
|
|
15
|
+
"!text-sm !font-normal !leading-[19.07px]",
|
|
16
|
+
t === "dark" ? "!text-blue-50" : "!text-neutral-700"
|
|
17
|
+
),
|
|
18
|
+
children: o
|
|
19
|
+
}
|
|
20
|
+
) : null
|
|
21
|
+
] });
|
|
5
22
|
}
|
|
23
|
+
const z = u(N);
|
|
6
24
|
export {
|
|
7
|
-
|
|
25
|
+
z as Tooltip
|
|
8
26
|
};
|
package/dist/index.es12.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { j as i } from "./index.es15.js";
|
|
2
|
+
import { useRef as a, Children as f, cloneElement as u } from "react";
|
|
3
|
+
import { useTooltipTrigger as T } from "react-aria";
|
|
4
|
+
import { useTooltipTriggerState as h } from "react-stately";
|
|
5
|
+
import { cn as x } from "./index.es16.js";
|
|
6
|
+
import { TooltipContext as d } from "./index.es23.js";
|
|
7
|
+
const w = (e) => {
|
|
8
|
+
const { children: r, isDisabled: s, trigger: l, className: n } = e, t = h(e), o = a(null), { triggerProps: g, tooltipProps: m } = T({ isDisabled: s, trigger: l }, t, o), [c, p] = f.toArray(r);
|
|
9
|
+
if (!Array.isArray(r) || r.length > 2)
|
|
10
|
+
throw new Error("TooltipTrigger must have exactly 2 children");
|
|
11
|
+
return /* @__PURE__ */ i.jsxs("span", { className: x("relative inline-flex items-center", n), children: [
|
|
12
|
+
u(c, {
|
|
13
|
+
...g,
|
|
14
|
+
ref: o
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ i.jsx(
|
|
17
|
+
d.Provider,
|
|
18
|
+
{
|
|
19
|
+
value: {
|
|
20
|
+
state: t,
|
|
21
|
+
...m
|
|
22
|
+
},
|
|
23
|
+
children: t.isOpen ? p : null
|
|
24
|
+
}
|
|
25
|
+
)
|
|
20
26
|
] });
|
|
21
27
|
};
|
|
22
28
|
export {
|
|
23
|
-
|
|
29
|
+
w as TooltipTrigger
|
|
24
30
|
};
|
package/dist/index.es13.js
CHANGED
|
@@ -1,175 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 bg-success-500 text-success-50",
|
|
12
|
-
error: "border bg-error-500 text-error-50",
|
|
13
|
-
orangeWarning: "border bg-orange-warning-500 text-orange-warning-50",
|
|
14
|
-
yellowWarning: "border bg-yellow-warning-500 text-[#6F5711]",
|
|
15
|
-
//TODO: Este color yellow-warning-900 esta mal en @simpli-route/tailwind-preset, debe borrarse la 'h' al final del color
|
|
16
|
-
info: "border bg-blue-500 text-blue-50"
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
xs: "rounded px-3 py-1",
|
|
20
|
-
sm: "rounded px-3 py-2",
|
|
21
|
-
md: "rounded-lg px-4 py-3",
|
|
22
|
-
lg: "rounded-lg px-6 py-4"
|
|
23
|
-
},
|
|
24
|
-
isDisabled: {
|
|
25
|
-
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
26
|
-
},
|
|
27
|
-
isHovered: {
|
|
28
|
-
true: ""
|
|
29
|
-
},
|
|
30
|
-
isActive: {
|
|
31
|
-
true: ""
|
|
32
|
-
},
|
|
33
|
-
fullWidth: {
|
|
34
|
-
true: "w-full",
|
|
35
|
-
false: "w-fit"
|
|
36
|
-
},
|
|
37
|
-
isLoading: {
|
|
38
|
-
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
39
|
-
},
|
|
40
|
-
isFocused: {
|
|
41
|
-
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
42
|
-
false: ""
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
intent: "primary",
|
|
47
|
-
size: "md"
|
|
48
|
-
},
|
|
49
|
-
compoundVariants: [
|
|
50
|
-
/* Hover State */
|
|
51
|
-
{
|
|
52
|
-
intent: "primary",
|
|
53
|
-
isHovered: !0,
|
|
54
|
-
class: "bg-primary-700"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
intent: "secondary",
|
|
58
|
-
isHovered: !0,
|
|
59
|
-
class: "bg-primary-200"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
intent: "tertiary",
|
|
63
|
-
isHovered: !0,
|
|
64
|
-
class: "bg-primary-300 text-primary-800"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
intent: "outline",
|
|
68
|
-
isHovered: !0,
|
|
69
|
-
class: "bg-primary-500 text-primary-50"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
intent: "success",
|
|
73
|
-
isHovered: !0,
|
|
74
|
-
class: "bg-success-700 text-neutral-50"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
intent: "error",
|
|
78
|
-
isHovered: !0,
|
|
79
|
-
class: "bg-error-700 text-error-50"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
intent: "orangeWarning",
|
|
83
|
-
isHovered: !0,
|
|
84
|
-
class: "bg-orange-warning-700 text-orange-warning-50"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
intent: "yellowWarning",
|
|
88
|
-
isHovered: !0,
|
|
89
|
-
class: "bg-yellow-warning-700 text-neutral-50"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
intent: "info",
|
|
93
|
-
isHovered: !0,
|
|
94
|
-
class: "bg-blue-700 text-blue-50"
|
|
95
|
-
},
|
|
96
|
-
/* /Focus State */
|
|
97
|
-
{
|
|
98
|
-
intent: "success",
|
|
99
|
-
isFocused: !0,
|
|
100
|
-
class: "border-[1.5px] focus:ring-success-500"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
intent: "error",
|
|
104
|
-
isFocused: !0,
|
|
105
|
-
class: "border-[1.5px] focus:ring-error-500"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
intent: "orangeWarning",
|
|
109
|
-
isFocused: !0,
|
|
110
|
-
class: "border-[1.5px] focus:ring-orange-500"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
intent: "yellowWarning",
|
|
114
|
-
isFocused: !0,
|
|
115
|
-
class: "border-[1.5px] focus:ring-yellow-500"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
intent: "info",
|
|
119
|
-
isFocused: !0,
|
|
120
|
-
class: "border-[1.5px] focus:ring-blue-500"
|
|
121
|
-
},
|
|
122
|
-
/* Active State */
|
|
123
|
-
{
|
|
124
|
-
intent: "primary",
|
|
125
|
-
isActive: !0,
|
|
126
|
-
class: "bg-primary-900"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
intent: "secondary",
|
|
130
|
-
isActive: !0,
|
|
131
|
-
class: "bg-primary-300"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
intent: "tertiary",
|
|
135
|
-
isActive: !0,
|
|
136
|
-
class: "bg-primary-500 text-white"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
intent: "outline",
|
|
140
|
-
isActive: !0,
|
|
141
|
-
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
intent: "success",
|
|
145
|
-
isActive: !0,
|
|
146
|
-
class: "border border-transparent bg-success-300 text-success-900"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
intent: "error",
|
|
150
|
-
isActive: !0,
|
|
151
|
-
class: "border border-transparent bg-error-300 text-error-900"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
intent: "orangeWarning",
|
|
155
|
-
isActive: !0,
|
|
156
|
-
class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
intent: "yellowWarning",
|
|
160
|
-
isActive: !0,
|
|
161
|
-
class: "border border-transparent bg-yellow-warning-300 text-[#6F5711]"
|
|
162
|
-
//TODO: Este color yellow-warning-900 esta mal en @simpli-route/tailwind-preset, debe borrarse la 'h' al final del color
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
intent: "info",
|
|
166
|
-
isActive: !0,
|
|
167
|
-
class: "border border-transparent bg-blue-200 text-blue-900"
|
|
168
|
-
}
|
|
169
|
-
/* /Active State */
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
);
|
|
1
|
+
import { j as m } from "./index.es15.js";
|
|
2
|
+
import { cn as n } from "./index.es16.js";
|
|
3
|
+
import { textVariants as a } from "./index.es24.js";
|
|
4
|
+
function x(t) {
|
|
5
|
+
const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
|
|
6
|
+
return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
|
|
7
|
+
}
|
|
173
8
|
export {
|
|
174
|
-
|
|
9
|
+
x as Text
|
|
175
10
|
};
|
package/dist/index.es14.js
CHANGED
|
@@ -1,45 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
isSelected: {
|
|
10
|
-
true: "border-primary-500 bg-primary-500",
|
|
11
|
-
false: "bg-white"
|
|
12
|
-
},
|
|
13
|
-
isFocusVisible: {
|
|
14
|
-
true: "border-primary-500 group-active:border-primary-500"
|
|
15
|
-
},
|
|
16
|
-
isDisabled: {
|
|
17
|
-
true: "border-neutral-500 cursor-not-allowed"
|
|
18
|
-
},
|
|
19
|
-
label: {
|
|
20
|
-
true: "mr-2"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
compoundVariants: [
|
|
24
|
-
{
|
|
25
|
-
isHovered: !0,
|
|
26
|
-
isSelected: !0,
|
|
27
|
-
class: "border-none bg-primary-600 group-active:bg-primary-600"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
isHovered: !0,
|
|
31
|
-
isSelected: !1,
|
|
32
|
-
isDisabled: !1,
|
|
33
|
-
class: "border-primary-700 group-active:bg-primary-600"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
isDisabled: !0,
|
|
37
|
-
isSelected: !0,
|
|
38
|
-
class: "bg-neutral-500"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
1
|
+
import { j as m } from "./index.es15.js";
|
|
2
|
+
import { cn as c } from "./index.es16.js";
|
|
3
|
+
import { titleVariants as l } from "./index.es24.js";
|
|
4
|
+
function j(s) {
|
|
5
|
+
const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
|
|
6
|
+
return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
|
|
7
|
+
}
|
|
43
8
|
export {
|
|
44
|
-
|
|
9
|
+
j as Title
|
|
45
10
|
};
|