@simpli-route/apollo-ds 0.1.2 → 0.1.4
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/Slider/Slider.d.ts +12 -0
- package/dist/components/Slider/SliderContainerTrack.d.ts +3 -0
- package/dist/components/Slider/SliderThumb.d.ts +3 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/types.d.ts +68 -0
- package/dist/components/Slider/utils.d.ts +8 -0
- package/dist/components/Tooltip/variants.d.ts +1 -1
- package/dist/components/index.d.ts +1 -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.cjs23.js +1 -1
- 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 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -9
- package/dist/index.cjs37.js +1 -19
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +9 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +19 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -0
- package/dist/index.cjs46.js +1 -0
- package/dist/index.cjs47.js +1 -0
- package/dist/index.cjs48.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 +20 -18
- package/dist/index.es10.js +77 -32
- package/dist/index.es11.js +29 -20
- package/dist/index.es12.js +21 -25
- package/dist/index.es13.js +28 -8
- package/dist/index.es14.js +7 -7
- package/dist/index.es15.js +8 -6
- package/dist/index.es16.js +6 -6
- package/dist/index.es17.js +6 -22
- package/dist/index.es18.js +22 -173
- package/dist/index.es19.js +150 -20
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +20 -36
- package/dist/index.es21.js +45 -78
- package/dist/index.es23.js +87 -17
- package/dist/index.es24.js +20 -28
- package/dist/index.es25.js +30 -131
- package/dist/index.es26.js +5 -5
- package/dist/index.es27.js +2 -2
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +131 -19
- package/dist/index.es3.js +7 -7
- package/dist/index.es30.js +19 -20
- package/dist/index.es31.js +20 -10
- package/dist/index.es32.js +96 -10
- package/dist/index.es33.js +11 -29
- package/dist/index.es34.js +10 -45
- package/dist/index.es35.js +10 -2
- package/dist/index.es36.js +30 -29
- package/dist/index.es37.js +45 -599
- package/dist/index.es38.js +2 -19
- package/dist/index.es39.js +30 -19
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +599 -21
- package/dist/index.es41.js +9 -11
- package/dist/index.es42.js +6 -6
- package/dist/index.es43.js +21 -2
- package/dist/index.es44.js +21 -2
- package/dist/index.es45.js +21 -0
- package/dist/index.es46.js +58 -0
- package/dist/index.es47.js +4 -0
- package/dist/index.es48.js +4 -0
- package/dist/index.es5.js +19 -18
- package/dist/index.es6.js +16 -15
- package/dist/index.es7.js +2 -2
- package/dist/index.es8.js +3 -3
- package/dist/index.es9.js +67 -74
- package/dist/stories/Checkbox.stories.d.ts +5 -0
- package/dist/style.css +34 -0
- package/package.json +2 -2
package/dist/index.cjs41.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 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;
|
package/dist/index.cjs42.js
CHANGED
|
@@ -1 +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:"
|
|
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.cjs43.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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;
|
package/dist/index.cjs44.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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"});const e=require("./index.cjs16.js"),o=require("react-aria-components"),i=require("./index.cjs17.js"),m=require("./index.cjs12.js"),x=require("./index.cjs13.js"),d=({index:r,valuePercent:l,value:u,suffix:a,modeTooltip:c,positionTooltip:t,showTypeValue:s,classNameThumb:n})=>e.jsxRuntimeExports.jsx("div",{className:i.cn("absolute",s==="tooltip"?"top-[-6px]":"top-1/2"),style:{left:`${l*100}%`,transform:"translate(-50%, -50%)"},children:s==="tooltip"?e.jsxRuntimeExports.jsxs(x.TooltipTrigger,{closeDelay:100,delay:100,children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(o.SliderThumb,{index:r,className:i.cn("dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",n)})}),e.jsxRuntimeExports.jsxs(m.Tooltip,{mode:c,placement:t,size:"sm",className:i.cn("!text-sm",t==="top"?"!mb-6":"!mt-6"),children:[u,a]})]}):e.jsxRuntimeExports.jsx(o.SliderThumb,{index:r,className:i.cn("dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",n)})});exports.SliderThumb=d;
|
|
@@ -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.cjs16.js"),q=require("react"),n=require("react-aria-components"),B=require("./index.cjs17.js"),R=require("./index.cjs29.js");function g(c,a){const[u,l]=n.useContextProps(c,a,n.ButtonContext),{intent:d="secondary",size:m="lg",isDisabled:o=!1,isActive:p=!1,children:e,className:x,...f}=u,r="flex h-full items-center overflow-hidden whitespace-nowrap";return s.jsxRuntimeExports.jsx(n.Button,{ref:l,className:({isPressed:t,isHovered:j,isFocusVisible:h})=>B.cn(R.buttonVariants({intent:d,size:m,isDisabled:o,isActive:p||t,isHovered:j,isFocused:h}),x),isDisabled:o,...f,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 i=q.forwardRef(g);i.displayName="IconButton";exports.IconButton=i;
|
package/dist/index.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs16.js"),j=require("./index.cjs26.js"),b=require("react"),s=require("react-aria-components"),f=require("./index.cjs17.js"),g=require("./index.cjs12.js"),T=require("./index.cjs13.js");function q(r,o){const{labelClassName:a}=r,[c,u]=s.useContextProps(r,o,s.LabelContext),{children:n,tooltipText:l,tooltipSupportText:x,tooltipProps:e,isRequired:m=!1,...d}=c;if(!n)return null;const p=f.cn("flex select-none items-center text-sm leading-6 text-neutral-900",a);return t.jsxRuntimeExports.jsxs(s.Label,{className:p,...d,ref:u,children:[n,m?t.jsxRuntimeExports.jsx("span",{className:"ml-1 text-neutral-900",children:"*"}):null,l?t.jsxRuntimeExports.jsxs(T.TooltipTrigger,{delay:100,children:[t.jsxRuntimeExports.jsx(j.InfoIcon,{className:"ml-1 size-4 text-primary-600"}),t.jsxRuntimeExports.jsx(g.Tooltip,{placement:(e==null?void 0:e.placement)||"right",supportText:x,size:(e==null?void 0:e.size)||"sm",children:l})]}):null]})}const i=b.forwardRef(q);i.displayName="Label";exports.Label=i;
|
package/dist/index.cjs7.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.cjs16.js"),a=require("react-aria"),l=require("./index.cjs17.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 t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs16.js"),r=require("react-aria-components"),n=require("./index.cjs17.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 o=require("./index.cjs16.js"),x=require("react"),j=require("react-aria-components"),b=require("./index.cjs17.js"),M=require("./index.cjs32.js"),P=require("./index.cjs33.js"),$=({type:r="single",showTypeValue:u="default",positionTooltip:S="top",modeTooltip:A="dark",maxValue:m=100,minValue:q=0,value:t=r==="range"?[0,5]:0,onChangeValue:s,className:n,classNameFilled:E,classNameUnfilled:T,classNameThumb:R,suffix:k="%",step:v=1,minDistance:d=2,...w})=>{const[l,N]=x.useState(r);return x.useEffect(()=>{if(r==="range"&&Array.isArray(t)){const[i,c]=t;if(c-i<d){const e=[i,i+d];(e[0]!==t[0]||e[1]!==t[1])&&(s==null||s(e))}}},[r,t,s,d]),x.useEffect(()=>{l!==r&&(N(r),s==null||s(r==="range"?[0,5]:0))},[r,s,l]),o.jsxRuntimeExports.jsx("div",{className:"flex w-full flex-col py-4",children:o.jsxRuntimeExports.jsx(j.Slider,{value:t,step:v,maxValue:m,minValue:q,className:b.cn("w-full",n),onChange:i=>{const c=i;if(c!==void 0){const e=Array.isArray(c),f=r==="range"&&e?P.validateMinDistance(c,r,d):c;s==null||s(r==="range"?f:Array.isArray(f)?f[0]||0:f)}},...w,children:o.jsxRuntimeExports.jsx(j.SliderTrack,{className:"relative h-3 w-full cursor-pointer",children:({state:i})=>o.jsxRuntimeExports.jsx(M.SliderContainerTrack,{state:i,type:r,showTypeValue:u,suffix:k,classNameFilled:E,classNameUnfilled:T,modeTooltip:A,positionTooltip:S,classNameThumb:R})})})})};exports.Slider=$;
|
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { Accordion as
|
|
1
|
+
import { Accordion as e } from "./index.es2.js";
|
|
2
2
|
import { Button as p } from "./index.es3.js";
|
|
3
3
|
import { Checkbox as m } from "./index.es4.js";
|
|
4
4
|
import { IconButton as i } from "./index.es5.js";
|
|
5
|
-
import { Label as
|
|
5
|
+
import { Label as T } from "./index.es6.js";
|
|
6
6
|
import { Loader as b } from "./index.es7.js";
|
|
7
|
-
import { NumberField as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { NumberField as n } from "./index.es8.js";
|
|
8
|
+
import { Slider as u } from "./index.es9.js";
|
|
9
|
+
import { Switch as h } from "./index.es10.js";
|
|
10
|
+
import { Tabs as L } from "./index.es11.js";
|
|
11
|
+
import { Tooltip as k } from "./index.es12.js";
|
|
12
|
+
import { TooltipTrigger as w } from "./index.es13.js";
|
|
13
|
+
import { Text as C } from "./index.es14.js";
|
|
14
|
+
import { Title as I } from "./index.es15.js";
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
e as Accordion,
|
|
16
17
|
p as Button,
|
|
17
18
|
m as Checkbox,
|
|
18
19
|
i as IconButton,
|
|
19
|
-
|
|
20
|
+
T as Label,
|
|
20
21
|
b as Loader,
|
|
21
|
-
|
|
22
|
-
u as
|
|
23
|
-
h as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
n as NumberField,
|
|
23
|
+
u as Slider,
|
|
24
|
+
h as Switch,
|
|
25
|
+
L as Tabs,
|
|
26
|
+
C as Text,
|
|
27
|
+
I as Title,
|
|
28
|
+
k as Tooltip,
|
|
29
|
+
w as TooltipTrigger
|
|
28
30
|
};
|
package/dist/index.es10.js
CHANGED
|
@@ -1,35 +1,80 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { j as o } from "./index.es16.js";
|
|
2
|
+
import { Switch as u } from "react-aria-components";
|
|
3
|
+
import { cn as c } from "./index.es17.js";
|
|
4
|
+
import { ContentSwitch as L } from "./index.es30.js";
|
|
5
|
+
import { SwitchIndicator as v } from "./index.es31.js";
|
|
6
|
+
import { switchVariants as b } from "./index.es23.js";
|
|
7
|
+
const E = ({
|
|
8
|
+
children: f,
|
|
9
|
+
label: m,
|
|
10
|
+
description: n,
|
|
11
|
+
errorMessage: s,
|
|
12
|
+
validationState: e,
|
|
13
|
+
size: a = "md",
|
|
14
|
+
isDisabled: r = !1,
|
|
15
|
+
isSelected: t = !1,
|
|
16
|
+
onChange: h,
|
|
17
|
+
renderLabelIcon: x = null,
|
|
18
|
+
"aria-label": p,
|
|
19
|
+
"aria-describedby": l
|
|
20
|
+
}) => {
|
|
21
|
+
const j = e === "invalid" && !r, w = a === "sm" ? { offLeft: 3, onLeft: 19 } : { offLeft: 4, onLeft: 28 };
|
|
22
|
+
return /* @__PURE__ */ o.jsxs(
|
|
23
|
+
"label",
|
|
24
|
+
{
|
|
25
|
+
className: c("group flex flex-row gap-2", (m || f) && n ? "items-start" : "items-center"),
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ o.jsx(
|
|
28
|
+
u,
|
|
29
|
+
{
|
|
30
|
+
isDisabled: r,
|
|
31
|
+
isSelected: t,
|
|
32
|
+
"aria-checked": t,
|
|
33
|
+
"aria-label": p,
|
|
34
|
+
"aria-describedby": l,
|
|
35
|
+
onChange: h,
|
|
36
|
+
children: ({ isFocusVisible: d, isHovered: i }) => /* @__PURE__ */ o.jsx(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
className: c(
|
|
40
|
+
b({
|
|
41
|
+
isSelected: t,
|
|
42
|
+
isDisabled: r,
|
|
43
|
+
isFocusVisible: d,
|
|
44
|
+
size: a,
|
|
45
|
+
isHoveredWhenOff: i && !t
|
|
46
|
+
})
|
|
47
|
+
),
|
|
48
|
+
children: /* @__PURE__ */ o.jsx(
|
|
49
|
+
v,
|
|
50
|
+
{
|
|
51
|
+
isSelected: t,
|
|
52
|
+
isDisabled: r,
|
|
53
|
+
isHovered: i,
|
|
54
|
+
size: a,
|
|
55
|
+
dimensions: w
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ o.jsx(
|
|
63
|
+
L,
|
|
64
|
+
{
|
|
65
|
+
label: m,
|
|
66
|
+
description: n,
|
|
67
|
+
errorMessage: s,
|
|
68
|
+
isDisabled: r,
|
|
69
|
+
isInvalid: j,
|
|
70
|
+
renderLabelIcon: x,
|
|
71
|
+
children: f
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
);
|
|
31
77
|
};
|
|
32
|
-
T.Item = N;
|
|
33
78
|
export {
|
|
34
|
-
|
|
79
|
+
E as Switch
|
|
35
80
|
};
|
package/dist/index.es11.js
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
import { j as s } from "./index.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { j as s } from "./index.es16.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.es17.js";
|
|
6
|
+
import { Tab as j } from "./index.es34.js";
|
|
7
|
+
import { TabPanel as u } from "./index.es35.js";
|
|
8
|
+
import { tabsVariants as h } from "./index.es36.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(
|
|
12
14
|
"div",
|
|
13
15
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
),
|
|
18
|
-
children: t
|
|
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))
|
|
19
20
|
}
|
|
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
|
+
)
|
|
21
30
|
] });
|
|
22
|
-
}
|
|
23
|
-
|
|
31
|
+
};
|
|
32
|
+
T.Item = N;
|
|
24
33
|
export {
|
|
25
|
-
|
|
34
|
+
T as Tabs
|
|
26
35
|
};
|
package/dist/index.es12.js
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...g,
|
|
14
|
-
ref: o
|
|
15
|
-
}),
|
|
16
|
-
/* @__PURE__ */ i.jsx(
|
|
17
|
-
d.Provider,
|
|
1
|
+
import { j as s } from "./index.es16.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.es17.js";
|
|
5
|
+
import { TooltipContext as N } from "./index.es22.js";
|
|
6
|
+
import { tooltipVariants as P } from "./index.es37.js";
|
|
7
|
+
const C = u((p, i) => {
|
|
8
|
+
const { placement: m = "bottom", size: l = "md", className: a, mode: o = "dark", supportText: t, children: n, ...r } = p, { state: c, ...x } = T(N), { tooltipProps: d } = h(r, c), f = e(P({ placement: m, size: l, mode: o, hasSupportText: !!t }), a);
|
|
9
|
+
return /* @__PURE__ */ s.jsxs("span", { className: f, ...j(r, d, x), ref: i, children: [
|
|
10
|
+
n,
|
|
11
|
+
t ? /* @__PURE__ */ s.jsx(
|
|
12
|
+
"div",
|
|
18
13
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children: t
|
|
14
|
+
className: e(
|
|
15
|
+
"!text-sm !font-normal !leading-[19.07px]",
|
|
16
|
+
o === "dark" ? "!text-blue-50" : "!text-neutral-700"
|
|
17
|
+
),
|
|
18
|
+
children: t
|
|
24
19
|
}
|
|
25
|
-
)
|
|
20
|
+
) : null
|
|
26
21
|
] });
|
|
27
|
-
};
|
|
22
|
+
});
|
|
23
|
+
C.displayName = "Tooltip";
|
|
28
24
|
export {
|
|
29
|
-
|
|
25
|
+
C as Tooltip
|
|
30
26
|
};
|
package/dist/index.es13.js
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as i } from "./index.es16.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.es17.js";
|
|
6
|
+
import { TooltipContext as d } from "./index.es22.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
|
+
)
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
8
28
|
export {
|
|
9
|
-
|
|
29
|
+
w as TooltipTrigger
|
|
10
30
|
};
|
package/dist/index.es14.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as m } from "./index.
|
|
2
|
-
import { cn as
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
const { children:
|
|
6
|
-
return /* @__PURE__ */ m.jsx(
|
|
1
|
+
import { j as m } from "./index.es16.js";
|
|
2
|
+
import { cn as n } from "./index.es17.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
7
|
}
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
x as Text
|
|
10
10
|
};
|
package/dist/index.es15.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as m } from "./index.es16.js";
|
|
2
|
+
import { cn as c } from "./index.es17.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
|
+
}
|
|
6
8
|
export {
|
|
7
|
-
|
|
9
|
+
j as Title
|
|
8
10
|
};
|
package/dist/index.es16.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { __module as e } from "./index.es38.js";
|
|
2
|
+
import { __require as r } from "./index.es39.js";
|
|
3
|
+
import { __require as o } from "./index.es40.js";
|
|
4
|
+
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
|
+
var m = e.exports;
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as j
|
|
8
8
|
};
|
package/dist/index.es17.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
section: n,
|
|
7
|
-
active: r,
|
|
8
|
-
onToggle: l,
|
|
9
|
-
itemClassName: t,
|
|
10
|
-
sectionClassName: c,
|
|
11
|
-
hasIcon: i = !0
|
|
12
|
-
}) => {
|
|
13
|
-
const a = e("rounded-md border border-solid border-purple-200 bg-gray-100", t), d = e("px-4 pb-4", c), m = r ? p : u;
|
|
14
|
-
return /* @__PURE__ */ s.jsxs("div", { className: a, children: [
|
|
15
|
-
/* @__PURE__ */ s.jsxs("button", { className: "flex w-full cursor-pointer items-center gap-x-4 p-4", onClick: l, children: [
|
|
16
|
-
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: o }),
|
|
17
|
-
i ? /* @__PURE__ */ s.jsx("span", { className: `shrink-0 transition duration-300 ${r ? "-rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ s.jsx(m, { className: "size-6" }) }) : null
|
|
18
|
-
] }),
|
|
19
|
-
r ? /* @__PURE__ */ s.jsx("div", { className: d, children: n }) : null
|
|
20
|
-
] });
|
|
21
|
-
};
|
|
1
|
+
import { clsx as o } from "clsx";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
function n(...r) {
|
|
4
|
+
return t(o(r));
|
|
5
|
+
}
|
|
22
6
|
export {
|
|
23
|
-
|
|
7
|
+
n as cn
|
|
24
8
|
};
|