@simpli-route/apollo-ds 0.1.54 → 0.1.56
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/InvisibleSelect/InvisibleSelect.d.ts +1 -6
- package/dist/components/InvisibleSelect/InvisibleSelectContent.d.ts +17 -0
- package/dist/components/InvisibleSelect/index.d.ts +2 -3
- package/dist/components/InvisibleSelect/types.d.ts +97 -36
- package/dist/components/InvisibleSelect/variants.d.ts +15 -13
- package/dist/components/index.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.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 -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.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/index.es10.js +3 -3
- package/dist/index.es104.js +57 -2
- package/dist/index.es105.js +4 -2
- package/dist/index.es106.js +27 -58
- package/dist/index.es107.js +2 -4
- package/dist/index.es108.js +10 -28
- package/dist/index.es109.js +340 -2
- package/dist/index.es11.js +3 -3
- package/dist/index.es110.js +166 -8
- package/dist/index.es111.js +2 -340
- package/dist/index.es112.js +2 -166
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +2 -2
- package/dist/index.es14.js +2 -2
- package/dist/index.es15.js +3 -3
- package/dist/index.es16.js +128 -115
- package/dist/index.es17.js +66 -31
- package/dist/index.es18.js +4 -4
- package/dist/index.es19.js +2 -2
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +4 -4
- package/dist/index.es24.js +4 -4
- package/dist/index.es25.js +18 -18
- package/dist/index.es26.js +3 -3
- package/dist/index.es27.js +5 -5
- package/dist/index.es28.js +2 -2
- package/dist/index.es29.js +1 -1
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +3 -3
- package/dist/index.es33.js +2 -2
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +2 -2
- package/dist/index.es37.js +2 -2
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +2 -2
- package/dist/index.es4.js +2 -2
- package/dist/index.es41.js +31 -6
- package/dist/index.es42.js +6 -31
- package/dist/index.es44.js +53 -140
- package/dist/index.es45.js +31 -40
- package/dist/index.es46.js +17 -33
- package/dist/index.es47.js +16 -79
- package/dist/index.es48.js +15 -129
- package/dist/index.es49.js +140 -53
- package/dist/index.es5.js +19 -19
- package/dist/index.es50.js +43 -3
- package/dist/index.es51.js +61 -9
- package/dist/index.es52.js +98 -118
- package/dist/index.es53.js +3 -136
- package/dist/index.es54.js +16 -103
- package/dist/index.es55.js +120 -84
- package/dist/index.es56.js +120 -24
- package/dist/index.es57.js +114 -7
- package/dist/index.es58.js +45 -48
- package/dist/index.es59.js +33 -39
- package/dist/index.es6.js +3 -3
- package/dist/index.es60.js +7 -159
- package/dist/index.es61.js +104 -79
- package/dist/index.es62.js +39 -21
- package/dist/index.es63.js +159 -29
- package/dist/index.es64.js +90 -16
- package/dist/index.es65.js +21 -16
- package/dist/index.es66.js +28 -14
- package/dist/index.es67.js +8 -7
- package/dist/index.es69.js +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es70.js +10 -13
- package/dist/index.es71.js +12 -10
- package/dist/index.es72.js +13 -12
- package/dist/index.es73.js +3 -3
- package/dist/index.es74.js +2 -2
- package/dist/index.es76.js +3 -3
- package/dist/index.es77.js +3 -3
- package/dist/index.es79.js +1 -1
- package/dist/index.es8.js +4 -4
- package/dist/index.es80.js +2 -2
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es9.js +4 -4
- package/dist/stories/InvisibleSelect.stories.d.ts +29 -80
- package/dist/stories/InvisibleTimeField.stories.d.ts +3 -1
- package/dist/style.css +11 -57
- package/package.json +1 -1
- package/dist/components/InvisibleSelect/InvisibleSelect.test.d.ts +0 -1
- package/dist/components/InvisibleSelect/InvisibleSelectItem.d.ts +0 -25
package/dist/index.cjs61.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("class-variance-authority"),e=r.cva("flex w-full rounded-md border border-neutral-500 bg-white px-4 text-base leading-6 focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 focus:border-primary-500 focus:ring-1 focus:ring-primary-500",{variants:{size:{xs:"py-1",sm:"py-2",md:"py-3",lg:"py-4"},isHovered:{true:""},isDisabled:{true:"cursor-not-allowed bg-neutral-200 text-neutral-600"},isReadOnly:{true:"cursor-not-allowed"},validationState:{invalid:"border-error-500 text-red-800 placeholder:text-red-800 focus-within:border-error-500 focus-within:ring-error-500 focus:border-error-500 focus:ring-error-500 pr-10",valid:"border-success-500 text-success-800 placeholder:text-success-800 focus-within:border-success-500 focus-within:ring-success-500 focus:border-success-500 focus:ring-success-500 pr-10"},hasIcon:{true:"pr-10"},isFocusVisible:{true:""}},compoundVariants:[{isHovered:!0,validationState:void 0,class:"border-neutral-900"},{isHovered:!0,validationState:"invalid",class:"border-error-600"},{isHovered:!0,validationState:"valid",class:"border-success-600"}]}),t=r.cva("w-full border outline-none transition-colors duration-200 rounded-sm text-blue-800",{variants:{size:{bodySm:"px-1.5 py-1 text-xs gap-2",bodyDefault:"px-1.5 py-1 text-sm gap-2",h5:"px-2 py-1 text-base gap-2",h3:"px-2 py-1 text-[22px] gap-2"},state:{default:"border-transparent bg-transparent",hover:"border-blue-100 bg-transparent",active:"!border-primary-500 bg-neutral-50 focus:!border-primary-500 focus:!bg-neutral-50",error:"!border-error-500 bg-neutral-50 focus:!border-error-500 focus:!bg-neutral-50",disabled:"border-transparent bg-transparent cursor-not-allowed"}},defaultVariants:{size:"bodyDefault",state:"default"}}),a=r.cva("font-normal text-neutral-800 ml-0.5",{variants:{size:{bodySm:"text-xs",bodyDefault:"text-sm",h5:"text-base",h3:"text-[22px]"}},defaultVariants:{size:"bodyDefault"}}),i=r.cva("text-xs font-normal",{variants:{state:{default:"text-neutral-600",error:"text-error-800"}},defaultVariants:{state:"default"}}),s=r.cva("flex w-full gap-1",{variants:{size:{bodySm:"gap-1",bodyDefault:"gap-1",h5:"gap-1",h3:"gap-1"},orientation:{vertical:"flex-col",horizontal:"flex-row items-center"}},defaultVariants:{size:"bodyDefault",orientation:"vertical"}});exports.inputVariants=e;exports.invisibleInputCaptionVariants=i;exports.invisibleInputContainerVariants=s;exports.invisibleInputLabelVariants=a;exports.invisibleInputVariants=t;
|
package/dist/index.cjs62.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("class-variance-authority"),r=e.cva("w-[--trigger-width] rounded-md bg-neutral-50 shadow-md ring-0",{variants:{}}),t=e.cva("group flex cursor-pointer items-center justify-between rounded-sm p-2 text-sm text-neutral-700 outline-none hover:bg-primary-100 hover:text-primary-500",{variants:{isFocused:{true:"bg-primary-100 text-primary-500"},isSelected:{true:"bg-primary-100 text-primary-500"},isDisabled:{true:""},isCheckValue:{true:"bg-primary-100 text-primary-500"},hideDisabledItems:{true:""}},compoundVariants:[{isDisabled:!0,isFocused:!1,isSelected:!1,class:"text-neutral-400 cursor-not-allowed"},{isSelected:!0,hideDisabledItems:!0,class:"bg-transparent"}]});exports.popoverVariants=r;exports.searchOptionVariants=t;
|
package/dist/index.cjs63.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("class-variance-authority"),s=e.cva("inline-flex items-center justify-center font-medium transition-colors duration-200 cursor-pointer outline-none border border-transparent rounded-full",{variants:{size:{sm:"h-5 px-2 py-1 text-xs gap-1"},variant:{success:"text-success-800",error:"text-error-800",warning:"text-yellow-warning-800",info:"text-blue-800"},isSelected:{true:"",false:""},isDisabled:{true:"cursor-not-allowed bg-neutral-200 border-neutral-400 text-neutral-400",false:""},isHovered:{true:"",false:""},isFocused:{true:"",false:""}},compoundVariants:[{variant:"success",isDisabled:!1,isHovered:!1,isFocused:!1,class:"bg-success-50"},{variant:"success",isDisabled:!1,isHovered:!0,isFocused:!1,class:"bg-success-100"},{variant:"success",isDisabled:!1,isHovered:!1,isFocused:!0,class:"bg-success-100 border border-success-400"},{variant:"success",isDisabled:!1,isHovered:!0,isFocused:!0,class:"bg-success-100 border border-success-400"},{variant:"error",isDisabled:!1,isHovered:!1,isFocused:!1,class:"bg-error-100"},{variant:"error",isDisabled:!1,isHovered:!0,isFocused:!1,class:"bg-error-200"},{variant:"error",isDisabled:!1,isHovered:!1,isFocused:!0,class:"bg-error-100 border border-error-400"},{variant:"error",isDisabled:!1,isHovered:!0,isFocused:!0,class:"bg-error-100 border border-error-400"},{variant:"warning",isDisabled:!1,isHovered:!1,isFocused:!1,class:"bg-yellow-warning-100"},{variant:"warning",isDisabled:!1,isHovered:!0,isFocused:!1,class:"bg-yellow-warning-200"},{variant:"warning",isDisabled:!1,isHovered:!1,isFocused:!0,class:"bg-yellow-warning-100 border border-yellow-warning-400"},{variant:"warning",isDisabled:!1,isHovered:!0,isFocused:!0,class:"bg-yellow-warning-100 border border-yellow-warning-400"},{variant:"info",isDisabled:!1,isHovered:!1,isFocused:!1,class:"bg-blue-100"},{variant:"info",isDisabled:!1,isHovered:!0,isFocused:!1,class:"bg-blue-200"},{variant:"info",isDisabled:!1,isHovered:!1,isFocused:!0,class:"bg-blue-100 border border-blue-400"},{variant:"info",isDisabled:!1,isHovered:!0,isFocused:!0,class:"bg-blue-100 border border-blue-400"}],defaultVariants:{size:"sm",variant:"success",isSelected:!1,isDisabled:!1,isHovered:!1,isFocused:!1}});exports.statusChipVariants=s;
|
package/dist/index.cjs64.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("relative rounded-full transition-colors duration-300",{variants:{isSelected:{true:"bg-primary-500",false:"bg-neutral-50 border border-primary-200"},isDisabled:{true:"cursor-not-allowed bg-neutral-400 border-none",false:"cursor-pointer"},isHoveredWhenOff:{true:"bg-neutral-200 border-primary-700",false:""},isFocusVisible:{true:"ring-2 ring-sky-400 ring-offset-2",false:""},size:{sm:"w-[42px] h-[24px]",md:"w-[56px] h-[32px]"}},defaultVariants:{size:"md",isSelected:!1,isDisabled:!1,isFocusVisible:!1,isHoveredWhenOff:!1},compoundVariants:[{isSelected:!1,isDisabled:!1,class:"hover:bg-neutral-200 hover:border-primary-700"},{isSelected:!0,isDisabled:!1,class:"hover:bg-primary-700"},{isSelected:!1,isDisabled:!0,class:"bg-neutral-400 border-none"},{isSelected:!0,isDisabled:!0,class:"bg-neutral-500"}]}),s=e.cva("absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 rounded-full",{variants:{isSelected:{true:"bg-primary-50",false:"bg-primary-200 border border-primary-200"},isDisabled:{true:"bg-neutral-600 border-none",false:""},isHoveredWhenOff:{true:"bg-primary-700 border-primary-700",false:""},size:{sm:"w-[20px] h-[20px]",md:"w-[24px] h-[24px]"}},defaultVariants:{size:"md",isSelected:!1,isDisabled:!1,isHoveredWhenOff:!1},compoundVariants:[{isSelected:!0,isDisabled:!0,class:"bg-neutral-400"}]});exports.indicatorVariants=s;exports.switchVariants=r;
|
package/dist/index.cjs65.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("class-variance-authority"),e=t.cva("scroll-m-12 text-neutral-900",{variants:{size:{h1:"text-[2rem] font-bold leading-10",h2:"text-[1.75rem] font-bold leading-9",h3:"text-2xl font-semibold",h4:"text-[1.375rem] font-semibold leading-7",h5:"text-xl font-semibold",h6:"text-lg font-semibold"}}}),a=t.cva("",{variants:{type:{body:"text-base text-neutral-900",caption:"text-xs text-neutral-700"}}});exports.textVariants=a;exports.titleVariants=e;
|
package/dist/index.cjs66.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 s=require("./index.cjs40.js"),l=require("./index.cjs42.js"),c=o=>{const{isIndeterminate:t,isSelected:e,className:n,isHovered:i}=o,r=i&&!e&&!t?"text-neutral-500":"",a=!!(r||e);return s.jsxRuntimeExports.jsx("svg",{className:l.cn("stroke-current",r,n),viewBox:"-1 1 17 17",children:t?s.jsxRuntimeExports.jsx("line",{x1:1,y1:10,x2:14,y2:10,fill:"none",strokeWidth:2,strokeDasharray:14,strokeDashoffset:e?28:42,style:{transition:"all 400ms"}}):s.jsxRuntimeExports.jsx("polyline",{points:"1 9 7 14 15 4",fill:"none",strokeWidth:2,strokeDasharray:22,strokeDashoffset:a?44:66,style:{transition:"all 400ms"}})})};exports.MarkIcon=c;
|
package/dist/index.cjs67.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),d=require("./index.cjs41.js"),r=require("react-aria-components"),o=require("./index.cjs42.js"),m=({enableSearch:i,contains:a,classNameSearchField:x,classNameSearchFieldInput:u,placeholderSearch:c,items:p})=>e.jsxRuntimeExports.jsxs(r.Autocomplete,{filter:a,disableAutoFocusFirst:!0,disableVirtualFocus:!0,children:[i?e.jsxRuntimeExports.jsxs(r.SearchField,{"aria-label":"Search",className:o.cn("group m-1 flex items-center rounded border border-neutral-500 bg-neutral-50",x),children:[e.jsxRuntimeExports.jsx(r.Input,{placeholder:c,className:o.cn("h-8 min-w-0 flex-1 rounded border-none p-1 text-sm font-normal text-neutral-800 outline-none outline-0 placeholder:text-neutral-700 focus:outline-none focus:ring-0 [&::-webkit-search-cancel-button]:hidden",u)}),e.jsxRuntimeExports.jsx(r.Button,{className:"pressed:bg-black/10 mr-1 flex w-6 items-center justify-center rounded-full border-0 bg-transparent p-1 text-center text-sm text-neutral-600 transition hover:bg-black/[5%] group-data-[empty]:invisible",children:e.jsxRuntimeExports.jsx(d.CrossCircleIcon,{"aria-hidden":!0,className:"size-4"})})]}):null,e.jsxRuntimeExports.jsx(r.ListBox,{className:"lg:custom-scrollbar max-h-[260px] overflow-auto outline-none",items:p,children:t=>e.jsxRuntimeExports.jsx(r.ListBoxItem,{id:t.value,textValue:t.label,isDisabled:t.isDisabled,className:({isSelected:n,isFocusVisible:l,isHovered:s})=>o.cn("flex cursor-pointer items-center justify-between px-3 py-2 text-xs font-normal outline-none",n?"bg-primary-100 text-primary-500":"text-primary-900",s&&"bg-primary-50 text-primary-500",(s||l)&&!n&&"bg-primary-50",(s||l)&&n&&"bg-primary-200",(t==null?void 0:t.isDisabled)&&"cursor-not-allowed opacity-50"),children:({isSelected:n})=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("span",{children:t.label}),e.jsxRuntimeExports.jsx("span",{className:"flex w-5 items-center",children:n&&e.jsxRuntimeExports.jsx("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2241 0.601824C13.4808 0.780773 13.5439 1.13398 13.365 1.39073L5.69829 12.3907C5.59653 12.5367 5.43209 12.6264 5.25425 12.633C5.07641 12.6395 4.90582 12.5622 4.79359 12.4241L0.460261 7.09072C0.26291 6.84783 0.299829 6.49094 0.542723 6.29358C0.785617 6.09623 1.14251 6.13315 1.33986 6.37605L5.19872 11.1254L12.4352 0.7427C12.6141 0.485948 12.9673 0.422875 13.2241 0.601824Z",fill:"#4C3BEF"})})})]})},t.value)})]});exports.PopoverContent=m;
|
package/dist/index.cjs69.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index.cjs40.js"),y=require("react"),m=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index.cjs40.js"),y=require("react"),m=require("./index.cjs42.js"),x=require("./index.cjs103.js"),q=(s,t)=>{const{zIndex:a=200,opacity:n="md",blur:i="sm",children:c,className:o,center:e=!0,fixed:l,...u}=s,d=m.cn(x.overlayVariants({opacity:n,fixed:l,center:e,blur:i}),`z-[${a}]`,o);return v.jsxRuntimeExports.jsx("div",{ref:t,className:d,"data-center":e||void 0,...u,children:c})},r=y.forwardRef(q);r.displayName="Overlay";exports.Overlay=r;
|
package/dist/index.cjs7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs40.js"),i=require("react-aria"),f=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs40.js"),i=require("react-aria"),f=require("./index.cjs42.js"),q=require("./index.cjs45.js"),R=o=>{const{style:n="square",size:c="sm",pressable:s=!0,isPressed:a=!1,isDisabled:e=!1,className:u,icon:t,text:l,onPress:d}=o,{pressProps:p,isPressed:P}=i.usePress({onPress:s?d:void 0,isPressed:s?a:!1,isDisabled:e}),{hoverProps:x,isHovered:m}=i.useHover({isDisabled:e}),{isFocusVisible:j,focusProps:v}=i.useFocusRing(),h=f.cn(q.assistChipVariants({style:n,size:c,pressable:s,isPressed:s&&P,isDisabled:e,isHovered:m,isFocused:j}),u),b=s?{...p,...v,...x}:{};return r.jsxRuntimeExports.jsxs("div",{role:s?"button":void 0,...b,className:h,children:[t?r.jsxRuntimeExports.jsx("span",{className:"mr-1",children:t}):null,r.jsxRuntimeExports.jsx("span",{children:l})]})};exports.AssistChip=R;
|
package/dist/index.cjs70.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.cjs40.js"),i=require("./index.cjs42.js"),x=({description:e,descriptionClasses:s,errorMessage:t,errorClasses:u,isInvalidField:n})=>e&&!n?r.jsxRuntimeExports.jsx("div",{slot:"description",className:i.cn("text-xs leading-3 text-neutral-700",s),children:e}):t&&n?r.jsxRuntimeExports.jsx("div",{className:i.cn("text-xs leading-3 text-error-500",u),children:t}):null;exports.CaptionNumberField=x;
|
package/dist/index.cjs71.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.cjs40.js"),s=require("./index.cjs41.js"),n=require("react-aria-components"),i=require("./index.cjs42.js"),o=({isDisabled:r})=>{const t=i.cn("flex items-center justify-center",r?"text-neutral-600":"text-primary-500");return e.jsxRuntimeExports.jsxs("div",{className:"absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2",children:[e.jsxRuntimeExports.jsx(n.Button,{slot:"increment",className:t,children:e.jsxRuntimeExports.jsx(s.UpChevronIcon,{className:"size-3.5"})}),e.jsxRuntimeExports.jsx(n.Button,{slot:"decrement",className:t,children:e.jsxRuntimeExports.jsx(s.DownChevronIcon,{className:"size-3.5"})})]})};exports.StepperButton=o;
|
package/dist/index.cjs72.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("react");function c(e,u=300){const[n,o]=t.useState(e);return t.useEffect(()=>{const r=setTimeout(()=>{o(e)},u);return()=>{clearTimeout(r)}},[e,u]),n}exports.useDebouncedValue=c;
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),g=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),g=require("./index.cjs41.js"),i=require("react-aria-components"),s=require("./index.cjs42.js"),m=require("./index.cjs51.js"),v=({ref:C,isOpen:o,setIsOpen:j,size:r,isDisabled:t,classNameButton:p,selectionMode:d,maxLengthTextOption:a,handleDeleteOptionSelected:h,placeholder:R})=>e.jsxRuntimeExports.jsxs(i.Button,{ref:C,className:({isFocusVisible:n,isHovered:x})=>s.cn(m.selectInputButtonVariants({size:r,isDisabled:t,isFocusVisible:n||o,isHovered:x}),p),onPress:()=>j(!o),children:[e.jsxRuntimeExports.jsx(i.SelectValue,{className:"flex flex-1 items-center gap-1 overflow-hidden",children:({selectedItems:n,selectedText:x,isPlaceholder:f})=>e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:d==="multiple"&&n&&n.length>0?e.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-1",children:n.filter(l=>l!=null).map(l=>{const c=l.label,E=c.length>a?`${c.slice(0,a)}...`:c,u=l.value;return e.jsxRuntimeExports.jsxs("div",{className:s.cn(m.selectInputBadgeVariants({size:r,isDisabled:t})),children:[e.jsxRuntimeExports.jsx("span",{children:E}),e.jsxRuntimeExports.jsx(i.Button,{className:s.cn("outline-none",t?"cursor-not-allowed":""),isDisabled:t,slot:null,onPress:()=>h(u),children:e.jsxRuntimeExports.jsx(g.CrossCircleIcon,{className:s.cn("text-primary-800",t?"text-neutral-600":"",r==="xs"||r==="sm"?"size-3":"size-4")})})]},u)})}):e.jsxRuntimeExports.jsx("span",{className:s.cn("flex-1 truncate text-left",f?"text-neutral-600":"",t?"text-neutral-700":""),children:x||R})})}),e.jsxRuntimeExports.jsx("svg",{className:`${o?"rotate-180":""} transition-transform duration-100`,width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsxRuntimeExports.jsx("path",{d:"M20 0.838022C20.0006 0.947676 19.9796 1.05638 19.9381 1.15789C19.8967 1.2594 19.8356 1.35173 19.7584 1.42959L12.9512 8.23676C12.5642 8.62472 12.1045 8.93252 11.5984 9.14254C11.0922 9.35256 10.5497 9.46066 10.0017 9.46066C9.45373 9.46066 8.91115 9.35256 8.40502 9.14254C7.8989 8.93252 7.43918 8.62472 7.0522 8.23676L0.245034 1.42959C0.167349 1.3519 0.105725 1.25968 0.0636824 1.15818C0.0216393 1.05667 5.62088e-09 0.947886 0 0.838023C-5.62081e-09 0.728159 0.0216393 0.619372 0.0636824 0.51787C0.105725 0.41637 0.167349 0.324143 0.245034 0.246458C0.32272 0.168773 0.414946 0.107149 0.516447 0.0651056C0.617948 0.0230624 0.726736 0.00142351 0.8366 0.00142351C0.946464 0.00142351 1.05525 0.0230624 1.15675 0.0651055C1.25825 0.107149 1.35048 0.168773 1.42817 0.246458L8.23533 7.05363C8.704 7.52171 9.33931 7.78463 10.0017 7.78463C10.6641 7.78463 11.2994 7.52171 11.7681 7.05363L18.5752 0.246457C18.6527 0.168363 18.7448 0.106378 18.8464 0.0640783C18.9479 0.0217776 19.0568 4.80781e-09 19.1668 0C19.2768 -4.80789e-09 19.3857 0.0217776 19.4872 0.0640782C19.5888 0.106378 19.6809 0.168363 19.7584 0.246457C19.8356 0.324311 19.8967 0.41664 19.9381 0.518154C19.9796 0.619668 20.0006 0.728369 20 0.838022Z",fill:"#73768C"})})]});exports.SelectContent=v;
|
package/dist/index.cjs74.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs40.js"),h=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs40.js"),h=require("./index.cjs42.js"),v=require("./index.cjs104.js"),P=({state:e,type:n,showTypeValue:c,suffix:t,classNameFilled:m,classNameUnfilled:a,modeTooltip:d,positionTooltip:b,classNameThumb:x,isHiddenValue:j,suffixRangeCustom:r})=>l.jsxRuntimeExports.jsxs("div",{className:"relative",children:[c==="default"&&!j?l.jsxRuntimeExports.jsxs("div",{className:"flex justify-between",children:[l.jsxRuntimeExports.jsxs("div",{className:"absolute top-4 text-sm text-neutral-900",style:{left:`${e.getThumbPercent(0)*100}%`,transform:"translateX(-50%)"},children:[e.values[0],n==="range"&&(r==null?void 0:r.left)||t]}),n==="range"&&l.jsxRuntimeExports.jsxs("div",{className:"absolute top-4 text-sm text-neutral-900",style:{left:`${e.getThumbPercent(1)*100}%`,transform:"translateX(-50%)"},children:[e.values[1],(r==null?void 0:r.right)||t]})]}):null,l.jsxRuntimeExports.jsx("div",{className:h.cn("absolute top-1/2 h-2 w-full -translate-y-1/2 rounded-full bg-primary-100",a)}),l.jsxRuntimeExports.jsx("div",{className:h.cn("absolute top-1/2 h-2 -translate-y-1/2 rounded-full bg-primary-500",m),style:{width:`${n==="range"?e.getThumbPercent(1)*100-e.getThumbPercent(0)*100:e.getThumbPercent(0)*100}%`,left:n==="range"?`${e.getThumbPercent(0)*100}%`:"0%"}}),n==="range"?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(v.SliderThumb,{index:0,valuePercent:e.getThumbPercent(0),value:e.values[0],suffix:(r==null?void 0:r.left)||t,modeTooltip:d,positionTooltip:b,showTypeValue:c,isHiddenValue:j,classNameThumb:x}),l.jsxRuntimeExports.jsx(v.SliderThumb,{index:1,valuePercent:e.getThumbPercent(1),value:e.values[1],suffix:(r==null?void 0:r.right)||t,modeTooltip:d,positionTooltip:b,showTypeValue:c,isHiddenValue:j,classNameThumb:x})]}):l.jsxRuntimeExports.jsx(v.SliderThumb,{index:0,valuePercent:e.getThumbPercent(0),value:e.values[0],suffix:t,modeTooltip:d,positionTooltip:b,showTypeValue:c,isHiddenValue:j,classNameThumb:x})]});exports.SliderContainerTrack=P;
|
package/dist/index.cjs76.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs105.js");require("./index.cjs106.js");const r=require("./index.cjs107.js");let e=r.__exports;var t=(e.__esModule?e:{default:e}).default;const l=o.getDefaultExportFromCjs(t);exports.default=l;
|
package/dist/index.cjs77.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs108.js"),t=require("@simpli-route/tailwind-preset"),s=require("./index.cjs109.js"),n=require("./index.cjs110.js"),{fontFamily:i}=e.default,o={presets:[t],mode:"jit",content:["./index.html","./node_modules/@simpli-route/**/*.{js,ts,jsx,tsx}","./src/**/*.{js,ts,jsx,tsx}"],theme:{extend:{fontFamily:{sans:["var(--font-open-sans)",...i.sans]}}},plugins:[s.default,n.default]};exports.default=o;
|
package/dist/index.cjs79.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs40.js"),i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs40.js"),i=require("./index.cjs42.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;
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),h=require("@react-stately/color"),n=require("react"),l=require("react-aria-components"),T=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),h=require("@react-stately/color"),n=require("react"),l=require("react-aria-components"),T=require("./index.cjs42.js"),z=require("./index.cjs46.js"),B=require("./index.cjs47.js"),H=require("./index.cjs48.js"),L=R=>{const{value:i,onChange:t,className:v,label:w,onBlur:x,onFocus:d,isDisabled:m=!1,isOpen:g,defaultOpen:q,onOpenChange:p,...F}=R,f=i?h.parseColor(i).toFormat("hsb"):h.parseColor("hsl(0, 100%, 50%)").toFormat("hsb"),[s,c]=n.useState(f),[O,C]=n.useState(f.getChannelValue("hue")),[V,a]=n.useState("#"+s.toString("hex").slice(1)),[j,b]=n.useState(!1),[y,I]=n.useState(q??!1),S=g!==void 0,E=S?g:y;n.useEffect(()=>{i&&!j&&a("#"+h.parseColor(i).toString("hex").slice(1))},[i,j]),n.useEffect(()=>{C(s.getChannelValue("hue"))},[s]);const A=e=>{S||I(e),p==null||p(e)},P=e=>{let r=e.target.value;r.startsWith("#")||(r="#"+r);const u=r.slice(1).replace(/[^0-9a-fA-F]/g,"").slice(0,6);if(a("#"+u),u.length===6)try{const $=h.parseColor("#"+u).toFormat("hsb");c($),t==null||t("#"+u)}catch{}},N=e=>{c(e.toFormat("hsb")),a("#"+e.toString("hex").slice(1)),t==null||t("#"+e.toString("hex").replace(/^#*/,""))},k=e=>{C(e.getChannelValue("hue"));const r=s.withChannelValue("hue",e.getChannelValue("hue"));c(r),a("#"+r.toString("hex").slice(1)),t==null||t("#"+r.toString("hex").replace(/^#*/,""))},D=e=>{const r=e.withChannelValue("hue",O);c(r),a("#"+r.toString("hex").slice(1)),t==null||t("#"+r.toString("hex").replace(/^#*/,""))};return o.jsxRuntimeExports.jsxs(l.ColorPicker,{value:s,onChange:N,...F,children:[o.jsxRuntimeExports.jsx(l.Label,{children:w}),o.jsxRuntimeExports.jsxs("div",{className:T.cn("flex w-80 items-center rounded border transition-colors",E?"border-primary-500 ring-1 ring-primary-500":"focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500",v),tabIndex:-1,children:[o.jsxRuntimeExports.jsxs(l.DialogTrigger,{isOpen:E,onOpenChange:A,children:[o.jsxRuntimeExports.jsx(l.Button,{isDisabled:m,className:"border-none bg-transparent p-0 shadow-none focus:outline-none","aria-label":"Abrir selector de color",children:o.jsxRuntimeExports.jsx(l.ColorSwatch,{color:s,className:"mx-3 size-5 rounded-full border border-neutral-400"})}),o.jsxRuntimeExports.jsx(l.Popover,{placement:"bottom start",children:o.jsxRuntimeExports.jsxs(l.Dialog,{className:"box-border flex min-w-48 flex-col gap-2 overflow-auto bg-white p-4 shadow-md outline-none",children:[o.jsxRuntimeExports.jsx(z.ColorArea,{color:s,onChange:D}),o.jsxRuntimeExports.jsx(H.ColorSlider,{color:s,onChange:k})]})})]}),o.jsxRuntimeExports.jsx(B.ColorField,{isDisabled:m,inputProps:{value:V,onChange:P,onFocus:e=>{b(!0),d==null||d(e)},onBlur:e=>{b(!1),x==null||x(e)}}})]})]})};exports.ColorPicker=L;
|
package/dist/index.cjs80.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),s=require("./index.cjs42.js"),a=require("./index.cjs64.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;
|
package/dist/index.cjs81.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs40.js"),q=require("react"),y=require("react-aria"),v=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs40.js"),q=require("react"),y=require("react-aria"),v=require("./index.cjs42.js"),x=require("./index.cjs83.js"),T=i=>{const{className:r,item:n,orientation:a,state:e,id:c=void 0}=i,{key:s,rendered:o}=n,u=e.selectedKey===s,d=e.disabledKeys.has(s)||(e==null?void 0:e.isDisabled),t=q.useRef(null),{tabProps:l}=y.useTab({key:String(s)},e,t),b=v.cn(x.tabVariants({isActive:u,orientation:a,isDisabledTab:d}),r);return m.jsxRuntimeExports.jsx("div",{...l,ref:t,className:b,id:c,children:o})};exports.Tab=T;
|
package/dist/index.cjs82.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs40.js"),l=require("react"),u=require("react-aria"),d=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs40.js"),l=require("react"),u=require("react-aria"),d=require("./index.cjs42.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;
|
package/dist/index.cjs86.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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.cjs111.js"),R=require("react");/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
package/dist/index.cjs87.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs112.js"),tr=require("react");/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),J=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),J=require("./index.cjs41.js"),S=require("react"),u=require("react-aria-components"),p=require("./index.cjs42.js"),K=require("./index.cjs21.js"),Q=require("./index.cjs67.js"),U=require("./index.cjs51.js"),B=require("./index.cjs52.js"),W=({renderPosition:t,leftIcon:x,rightIcon:s,isLoading:o,loaderPosition:a,loaderProps:l})=>{const c=t==="left"?x:t==="right"?s:null;return c||o&&a===t?e.jsxRuntimeExports.jsx("span",{className:t==="left"?"mr-1":"ml-1",children:o&&a===t?e.jsxRuntimeExports.jsx(K.Loader,{size:"sm",...l}):c}):null},X=({leftIcon:t,size:x="md",isDisabled:s,children:o,className:a,isLoading:l,loaderPosition:c="left",loaderProps:C,unstyled:y=!1,isMobileFullWidth:F=!1,hideBadgeFilterSelected:I=!1,items:n,value:h,onChange:v,enableSearch:N=!1,placeholderSearch:b="Search",classNameSearchField:O,classNameSearchFieldInput:P,classNamePopover:V,"aria-label":R="Filter",classNameBadge:A,placementPopover:$="bottom start",...w})=>{const{contains:z}=u.useFilter({sensitivity:"base"}),[m,f]=S.useState(!1),[M,H]=S.useState([]),q=h!==void 0,d=q?h:M,E=n&&d?d.length:0,j=E>0,T=r=>{const i=r instanceof Set?Array.from(r):r;q||H(i),v&&v(i),f(!1)},k=()=>{n&&f(!m)},g=e.jsxRuntimeExports.jsxs(u.Button,{"data-disabled":s||void 0,"data-loading":l||void 0,isDisabled:s,...n?{}:{"aria-label":R},className:({isHovered:r,isFocusVisible:i})=>p.cn(y?"":B.filterButtonVariants({size:x,isActive:j,isHovered:r,isFocused:i,isPressed:n?m:!1,isDisabled:s}),a),onPress:k,...w,children:[e.jsxRuntimeExports.jsx(W,{renderPosition:"left",loaderPosition:c,loaderProps:C,isLoading:l,leftIcon:t||e.jsxRuntimeExports.jsx(J.OptionsIcon,{className:"size-[18px]"})}),e.jsxRuntimeExports.jsx("span",{className:p.cn("flex h-full items-center overflow-hidden whitespace-nowrap",F?"w-full":""),children:o}),j&&!I&&e.jsxRuntimeExports.jsx("span",{className:p.cn(B.filterButtonBadgeVariants({isActive:j,isHovered:!1,isDisabled:s}),!s&&"group-hover:bg-primary-500 group-hover:text-primary-100",A),children:E})]});if(!n)return g;const G={selectionMode:"multiple",value:d,onChange:T,"aria-label":R};return e.jsxRuntimeExports.jsxs(u.Select,{...G,children:[g,e.jsxRuntimeExports.jsx(u.Popover,{className:p.cn(U.selectInputPopoverVariants(),"min-w-[200px]",V),isOpen:m,placement:$,onOpenChange:f,children:e.jsxRuntimeExports.jsx(Q.PopoverContent,{enableSearch:N,contains:z,classNameSearchField:O,classNameSearchFieldInput:P,placeholderSearch:b,items:n})})]})};exports.FilterButton=X;
|
package/dist/index.es.js
CHANGED
|
@@ -5,15 +5,15 @@ import { Button as f } from "./index.es5.js";
|
|
|
5
5
|
import { Checkbox as n } from "./index.es6.js";
|
|
6
6
|
import { AssistChip as a } from "./index.es7.js";
|
|
7
7
|
import { ColorPicker as b } from "./index.es8.js";
|
|
8
|
-
import { FilterButton as
|
|
9
|
-
import { FilterChip as
|
|
8
|
+
import { FilterButton as S } from "./index.es9.js";
|
|
9
|
+
import { FilterChip as I } from "./index.es10.js";
|
|
10
10
|
import { FilterTypeChip as g } from "./index.es11.js";
|
|
11
11
|
import { IconButton as C } from "./index.es12.js";
|
|
12
12
|
import { InvisibleInput as F } from "./index.es13.js";
|
|
13
13
|
import { Label as P } from "./index.es14.js";
|
|
14
14
|
import { InvisibleDatepicker as A } from "./index.es15.js";
|
|
15
15
|
import { InvisibleSelect as y } from "./index.es16.js";
|
|
16
|
-
import {
|
|
16
|
+
import { InvisibleSelectContent as M } from "./index.es17.js";
|
|
17
17
|
import { InvisibleTimeField as w } from "./index.es18.js";
|
|
18
18
|
import { TimePickerPopover as R } from "./index.es19.js";
|
|
19
19
|
import { TimeSegment as q } from "./index.es20.js";
|
|
@@ -32,8 +32,8 @@ import { StepperCompleted as fr } from "./index.es32.js";
|
|
|
32
32
|
import { StepperStep as nr } from "./index.es33.js";
|
|
33
33
|
import { Switch as ar } from "./index.es34.js";
|
|
34
34
|
import { Tabs as br } from "./index.es35.js";
|
|
35
|
-
import { Tooltip as
|
|
36
|
-
import { TooltipTrigger as
|
|
35
|
+
import { Tooltip as Sr } from "./index.es36.js";
|
|
36
|
+
import { TooltipTrigger as Ir } from "./index.es37.js";
|
|
37
37
|
import { Text as gr } from "./index.es38.js";
|
|
38
38
|
import { Title as Cr } from "./index.es39.js";
|
|
39
39
|
import { DialogTrigger as Fr, Menu as Br, MenuItem as Pr, Popover as kr } from "react-aria-components";
|
|
@@ -46,15 +46,15 @@ export {
|
|
|
46
46
|
n as Checkbox,
|
|
47
47
|
b as ColorPicker,
|
|
48
48
|
Fr as DialogTrigger,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
S as FilterButton,
|
|
50
|
+
I as FilterChip,
|
|
51
51
|
g as FilterTypeChip,
|
|
52
52
|
C as IconButton,
|
|
53
53
|
A as InvisibleDatepicker,
|
|
54
54
|
F as InvisibleInput,
|
|
55
55
|
K as InvisibleNumberField,
|
|
56
56
|
y as InvisibleSelect,
|
|
57
|
-
M as
|
|
57
|
+
M as InvisibleSelectContent,
|
|
58
58
|
w as InvisibleTimeField,
|
|
59
59
|
P as Label,
|
|
60
60
|
E as Loader,
|
|
@@ -78,6 +78,6 @@ export {
|
|
|
78
78
|
R as TimePickerPopover,
|
|
79
79
|
q as TimeSegment,
|
|
80
80
|
Cr as Title,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
Sr as Tooltip,
|
|
82
|
+
Ir as TooltipTrigger
|
|
83
83
|
};
|
package/dist/index.es10.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as c } from "./index.es40.js";
|
|
2
|
-
import { CheckIcon as h } from "./index.
|
|
2
|
+
import { CheckIcon as h } from "./index.es41.js";
|
|
3
3
|
import { useState as j } from "react";
|
|
4
4
|
import { Button as S } from "react-aria-components";
|
|
5
|
-
import { cn as n } from "./index.
|
|
6
|
-
import { filterChipVariants as k } from "./index.
|
|
5
|
+
import { cn as n } from "./index.es42.js";
|
|
6
|
+
import { filterChipVariants as k } from "./index.es44.js";
|
|
7
7
|
const C = ({
|
|
8
8
|
size: t = "md",
|
|
9
9
|
label: a,
|
package/dist/index.es104.js
CHANGED
|
@@ -1,4 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as r } from "./index.es40.js";
|
|
2
|
+
import { SliderThumb as m } from "react-aria-components";
|
|
3
|
+
import { cn as i } from "./index.es42.js";
|
|
4
|
+
import { Tooltip as c } from "./index.es36.js";
|
|
5
|
+
import { TooltipTrigger as d } from "./index.es37.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
index: o,
|
|
8
|
+
valuePercent: n,
|
|
9
|
+
value: a,
|
|
10
|
+
suffix: p,
|
|
11
|
+
modeTooltip: g,
|
|
12
|
+
positionTooltip: t,
|
|
13
|
+
showTypeValue: s,
|
|
14
|
+
classNameThumb: e,
|
|
15
|
+
isHiddenValue: l
|
|
16
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: i("absolute", s === "tooltip" && !l ? "top-[-6px]" : "top-1/2"),
|
|
20
|
+
style: { left: `${n * 100}%`, transform: "translate(-50%, -50%)" },
|
|
21
|
+
children: s === "tooltip" && !l ? /* @__PURE__ */ r.jsxs(d, { closeDelay: 100, delay: 100, children: [
|
|
22
|
+
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
|
|
23
|
+
m,
|
|
24
|
+
{
|
|
25
|
+
index: o,
|
|
26
|
+
className: i(
|
|
27
|
+
"dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
|
|
28
|
+
e
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
) }),
|
|
32
|
+
/* @__PURE__ */ r.jsxs(
|
|
33
|
+
c,
|
|
34
|
+
{
|
|
35
|
+
mode: g,
|
|
36
|
+
placement: t,
|
|
37
|
+
size: "sm",
|
|
38
|
+
className: i("!text-sm", t === "top" ? "!mb-6" : "!mt-6"),
|
|
39
|
+
children: [
|
|
40
|
+
a,
|
|
41
|
+
p
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }) : /* @__PURE__ */ r.jsx(
|
|
46
|
+
m,
|
|
47
|
+
{
|
|
48
|
+
index: o,
|
|
49
|
+
className: i(
|
|
50
|
+
"dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
|
|
51
|
+
e
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
);
|
|
2
57
|
export {
|
|
3
|
-
|
|
58
|
+
y as SliderThumb
|
|
4
59
|
};
|
package/dist/index.es105.js
CHANGED
package/dist/index.es106.js
CHANGED
|
@@ -1,59 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
style: { left: `${n * 100}%`, transform: "translate(-50%, -50%)" },
|
|
21
|
-
children: s === "tooltip" && !l ? /* @__PURE__ */ r.jsxs(d, { closeDelay: 100, delay: 100, children: [
|
|
22
|
-
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
|
|
23
|
-
m,
|
|
24
|
-
{
|
|
25
|
-
index: o,
|
|
26
|
-
className: i(
|
|
27
|
-
"dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
|
|
28
|
-
e
|
|
29
|
-
)
|
|
30
|
-
}
|
|
31
|
-
) }),
|
|
32
|
-
/* @__PURE__ */ r.jsxs(
|
|
33
|
-
c,
|
|
34
|
-
{
|
|
35
|
-
mode: g,
|
|
36
|
-
placement: t,
|
|
37
|
-
size: "sm",
|
|
38
|
-
className: i("!text-sm", t === "top" ? "!mb-6" : "!mt-6"),
|
|
39
|
-
children: [
|
|
40
|
-
a,
|
|
41
|
-
p
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
46
|
-
m,
|
|
47
|
-
{
|
|
48
|
-
index: o,
|
|
49
|
-
className: i(
|
|
50
|
-
"dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",
|
|
51
|
-
e
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
)
|
|
1
|
+
import { __exports as i } from "./index.es107.js";
|
|
2
|
+
import "./index.es113.js";
|
|
3
|
+
import "./index.es114.js";
|
|
4
|
+
import { __exports as l } from "./index.es115.js";
|
|
5
|
+
import { __exports as s } from "./index.es116.js";
|
|
6
|
+
(function(t) {
|
|
7
|
+
Object.defineProperty(t, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
}), Object.defineProperty(t, "default", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return f;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const o = /* @__PURE__ */ r(l), n = /* @__PURE__ */ r(s);
|
|
16
|
+
function r(e) {
|
|
17
|
+
return e && e.__esModule ? e : {
|
|
18
|
+
default: e
|
|
19
|
+
};
|
|
55
20
|
}
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
21
|
+
function f(...e) {
|
|
22
|
+
let [, ...u] = (0, n.default)(e[0]);
|
|
23
|
+
return (0, o.default)([
|
|
24
|
+
...e,
|
|
25
|
+
...u
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
})(i);
|
package/dist/index.es107.js
CHANGED
package/dist/index.es108.js
CHANGED
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index.
|
|
3
|
-
import "./index.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
get: function() {
|
|
12
|
-
return f;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const o = /* @__PURE__ */ r(l), n = /* @__PURE__ */ r(s);
|
|
16
|
-
function r(e) {
|
|
17
|
-
return e && e.__esModule ? e : {
|
|
18
|
-
default: e
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function f(...e) {
|
|
22
|
-
let [, ...u] = (0, n.default)(e[0]);
|
|
23
|
-
return (0, o.default)([
|
|
24
|
-
...e,
|
|
25
|
-
...u
|
|
26
|
-
]);
|
|
27
|
-
}
|
|
28
|
-
})(i);
|
|
1
|
+
import { getDefaultExportFromCjs as t } from "./index.es105.js";
|
|
2
|
+
import "./index.es117.js";
|
|
3
|
+
import { __exports as a } from "./index.es118.js";
|
|
4
|
+
let e = a;
|
|
5
|
+
var o = (e.__esModule ? e : { default: e }).default;
|
|
6
|
+
const r = /* @__PURE__ */ t(o);
|
|
7
|
+
export {
|
|
8
|
+
o as d,
|
|
9
|
+
r as default
|
|
10
|
+
};
|