@simpli-route/apollo-ds 0.1.55 → 0.1.57
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/types.d.ts +17 -0
- package/dist/components/SelectInput/types.d.ts +4 -0
- 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.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.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.cjs30.js +1 -1
- package/dist/index.cjs34.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.cjs43.js +1 -1
- package/dist/index.cjs44.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.cjs68.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es16.js +62 -52
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es19.js +1 -1
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +1 -1
- package/dist/index.es25.js +17 -17
- package/dist/index.es26.js +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es34.js +1 -1
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es43.js +41 -30
- package/dist/index.es44.js +171 -30
- package/dist/index.es46.js +33 -17
- package/dist/index.es47.js +79 -16
- package/dist/index.es48.js +129 -15
- package/dist/index.es49.js +65 -26
- package/dist/index.es5.js +19 -19
- package/dist/index.es50.js +3 -171
- package/dist/index.es51.js +9 -61
- package/dist/index.es52.js +118 -98
- package/dist/index.es53.js +103 -57
- package/dist/index.es54.js +115 -3
- package/dist/index.es55.js +104 -18
- package/dist/index.es56.js +24 -140
- package/dist/index.es57.js +7 -129
- package/dist/index.es58.js +74 -72
- package/dist/index.es59.js +24 -98
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +158 -32
- package/dist/index.es61.js +91 -7
- package/dist/index.es62.js +14 -109
- package/dist/index.es63.js +18 -40
- package/dist/index.es64.js +16 -159
- package/dist/index.es65.js +14 -90
- package/dist/index.es66.js +161 -20
- package/dist/index.es67.js +38 -25
- package/dist/index.es68.js +30 -163
- package/dist/index.es7.js +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es8.js +3 -3
- package/dist/index.es83.js +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/stories/InvisibleTimeField.stories.d.ts +3 -1
- package/dist/stories/SelectInput.stories.d.ts +1 -0
- package/dist/style.css +3 -0
- package/package.json +1 -1
package/dist/index.cjs56.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"),a=r.cva("w-full overflow-hidden rounded-lg bg-primary-100 h-2",{variants:{variant:{primary:"bg-primary-100",success:"bg-success-100",error:"bg-error-100",yellow:"bg-yellow-100",yellowWarning:"bg-yellow-warning-100",orangeWarning:"bg-orange-warning-100",sky:"bg-sky-100"}},defaultVariants:{variant:"primary"}}),e=r.cva("size-full rounded-lg",{variants:{variant:{primary:"bg-primary-500",success:"bg-success-500",error:"bg-error-500",yellow:"bg-yellow-500",yellowWarning:"bg-yellow-warning-500",orangeWarning:"bg-orange-warning-500",sky:"bg-sky-500"}},defaultVariants:{variant:"primary"}});exports.progressBarVariants=a;exports.progressFillVariants=e;
|
package/dist/index.cjs57.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),a=e.cva("flex items-center justify-between pb-4"),n=e.cva("text-base font-medium text-neutral-900"),r=e.cva("flex h-8 w-8 items-center justify-center rounded-md text-primary-500 hover:bg-neutral-200 transition-colors outline-none focus-visible:ring-2 focus-visible:ring-blue-400 disabled:opacity-40 disabled:cursor-not-allowed"),t=e.cva("pb-2 text-xs font-normal text-neutral-900 uppercase w-10");exports.rangeCalendarButtonVariants=r;exports.rangeCalendarHeaderCellVariants=t;exports.rangeCalendarHeaderVariants=a;exports.rangeCalendarHeadingVariants=n;
|
package/dist/index.cjs58.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.cjs59.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.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),j=require("react-aria-components"),x=require("./index.cjs41.js"),p=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),j=require("react-aria-components"),x=require("./index.cjs41.js"),p=require("./index.cjs68.js"),b=require("./index.cjs45.js"),h=({isIndeterminate:c=!1,isDisabled:s=!1,className:u,children:r,onChange:i,isSelected:n=!1,id:o,...m})=>{const l=(a,t)=>x.cn(b.checkboxVariants({isDisabled:s,isFocusVisible:a,isHovered:t,isSelected:n,label:!!r}));return e.jsxRuntimeExports.jsx(j.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:l(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;
|
package/dist/index.cjs60.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.cjs61.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),
|
|
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.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 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.cjs63.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("./index.cjs40.js"),r=require("react-aria-components");function a({color:o,onChange:s,...t}){return e.jsxRuntimeExports.jsx(r.ColorArea,{colorSpace:"hsb",xChannel:"saturation",yChannel:"brightness",value:o,className:"mb-2 h-32 w-48 rounded border",onChange:s,...t,children:e.jsxRuntimeExports.jsx(r.ColorThumb,{className:"box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6"})})}exports.ColorArea=a;
|
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("./index.cjs40.js"),o=require("react-aria-components");function l(t){const{isDisabled:n,inputProps:r={},...s}=t;return e.jsxRuntimeExports.jsx(o.ColorField,{className:"relative flex h-8 w-32 items-center",isDisabled:n,...s,children:e.jsxRuntimeExports.jsx(o.Input,{className:"size-full border-none bg-transparent p-0 outline-none focus:outline-none focus:ring-0",maxLength:7,"aria-label":"Color hex",spellCheck:!1,autoComplete:"off",...r})})}exports.ColorField=l;
|
package/dist/index.cjs65.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("./index.cjs40.js"),r=require("react-aria-components");function i(o){const{color:s}=o;return e.jsxRuntimeExports.jsx(r.ColorSlider,{channel:"hue",value:s,className:"mb-2 h-4 w-48 rounded border bg-[linear-gradient(to_right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000)]",...o,children:e.jsxRuntimeExports.jsx(r.SliderTrack,{className:"size-full",children:e.jsxRuntimeExports.jsx(r.ColorThumb,{className:"box-border size-5 rounded-full border-2 border-white shadow-[0_0_0_1px_black,inset_0_0_0_1px_black] data-[focus-visible]:size-6"})})})}exports.ColorSlider=i;
|
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 e=require("class-variance-authority"),t=[{intent:"primary",isHovered:!0,isDisabled:!1,isActive:!1,class:"bg-primary-100"},{intent:"secondary",isHovered:!0,isDisabled:!1,isActive:!1,class:"bg-primary-500 text-primary-50"},{intent:"minimal",isHovered:!0,isDisabled:!1,isActive:!1,class:"bg-neutral-200 text-neutral-800"},{intent:"error",isHovered:!0,isDisabled:!1,isActive:!1,class:"bg-error-100"}],r=[{intent:"primary",isActive:!0,isDisabled:!1,class:"bg-primary-500 text-primary-50"},{intent:"primary",isActive:!0,isDisabled:!0,class:"bg-primary-300 text-primary-100"},{intent:"secondary",isActive:!0,isDisabled:!1,class:"bg-primary-500 text-primary-50"},{intent:"secondary",isActive:!0,isDisabled:!0,class:"bg-primary-100 text-primary-300"},{intent:"minimal",isActive:!0,isDisabled:!1,class:"text-primary-500"},{intent:"minimal",isActive:!0,isDisabled:!0,class:"text-neutral-700"},{intent:"error",isActive:!0,isDisabled:!1,class:"bg-error-700 text-error-50"},{intent:"error",isActive:!0,isDisabled:!0,class:"bg-error-300 text-error-100"}],i=[{intent:"primary",isDisabled:!0,isActive:!1,class:"text-neutral-600"},{intent:"primary",isDisabled:!0,isActive:!0,class:"bg-primary-300 text-primary-100"},{intent:"secondary",isDisabled:!0,isActive:!1,class:"bg-neutral-400 text-neutral-600"},{intent:"secondary",isDisabled:!0,isActive:!0,class:"bg-primary-100 text-primary-300"},{intent:"minimal",isDisabled:!0,isActive:!1,class:"text-neutral-600"},{intent:"minimal",isDisabled:!0,isActive:!0,class:"text-neutral-700"},{intent:"error",isDisabled:!0,isActive:!1,class:"text-neutral-600"},{intent:"error",isDisabled:!0,isActive:!0,class:"bg-error-300 text-primary-100"}],s=e.cva("inline-flex items-center justify-center rounded-lg border border-transparent transition duration-150 ease-in-out focus:outline-none",{variants:{intent:{primary:"bg-transparent text-primary-500",secondary:"bg-primary-200 text-primary-500",minimal:"bg-transparent text-neutral-700",error:"bg-transparent text-error-500"},size:{xxs:"p-1",xs:"p-2",sm:"p-2.5",md:"p-3",lg:"p-4"},isDisabled:{true:"pointer-events-none cursor-not-allowed"},isHovered:{true:""},isActive:{true:""},isFocused:{false:"",true:"focus:outline-none focus:ring-offset-2 outline-none ring-2 ring-sky-400"}},compoundVariants:[...t,...r,...i]});exports.buttonVariants=s;
|
package/dist/index.cjs67.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),d=require("./index.cjs42.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),d=require("./index.cjs42.js"),s=require("react-aria-components"),l=require("./index.cjs41.js"),m=({enableSearch:i,contains:a,classNameSearchField:x,classNameSearchFieldInput:u,placeholderSearch:c,items:p})=>e.jsxRuntimeExports.jsxs(s.Autocomplete,{filter:a,disableAutoFocusFirst:!0,disableVirtualFocus:!0,children:[i?e.jsxRuntimeExports.jsxs(s.SearchField,{"aria-label":"Search",className:l.cn("group m-1 flex items-center rounded border border-neutral-500 bg-neutral-50",x),children:[e.jsxRuntimeExports.jsx(s.Input,{placeholder:c,className:l.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(s.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(s.ListBox,{className:"lg:custom-scrollbar max-h-[260px] overflow-auto outline-none",items:p,children:t=>e.jsxRuntimeExports.jsx(s.ListBoxItem,{id:t.value,textValue:t.label,isDisabled:t.isDisabled,className:({isSelected:r,isFocusVisible:n,isHovered:o})=>l.cn("flex cursor-pointer flex-col px-3 py-2 text-xs font-normal outline-none",r?"bg-primary-100 text-primary-500":"text-primary-900",o&&"bg-primary-50 text-primary-500",(o||n)&&!r&&"bg-primary-50",(o||n)&&r&&"bg-primary-200",(t==null?void 0:t.isDisabled)&&"cursor-not-allowed opacity-50"),children:({isSelected:r,isHovered:n})=>e.jsxRuntimeExports.jsxs("div",{className:"flex w-full flex-col",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsxRuntimeExports.jsx("span",{children:t.label}),e.jsxRuntimeExports.jsx("span",{className:"flex w-5 items-center",children:r&&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.description?e.jsxRuntimeExports.jsx("span",{slot:"description",className:l.cn(r?"text-primary-400":"text-neutral-700",n&&"text-primary-400"),children:t.description}):null]})},t.value)})]});exports.PopoverContent=m;
|
package/dist/index.cjs68.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.cjs41.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.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.cjs41.js"),q=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.cjs41.js"),q=require("./index.cjs46.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.cjs73.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),g=require("./index.cjs42.js"),i=require("react-aria-components"),s=require("./index.cjs41.js"),m=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),g=require("./index.cjs42.js"),i=require("react-aria-components"),s=require("./index.cjs41.js"),m=require("./index.cjs47.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.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.cjs41.js"),z=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.cjs41.js"),z=require("./index.cjs63.js"),B=require("./index.cjs64.js"),H=require("./index.cjs65.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.cjs83.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),s=require("./index.cjs41.js"),a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs40.js"),s=require("./index.cjs41.js"),a=require("./index.cjs61.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.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),J=require("./index.cjs42.js"),S=require("react"),u=require("react-aria-components"),p=require("./index.cjs41.js"),K=require("./index.cjs21.js"),Q=require("./index.cjs67.js"),U=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs40.js"),J=require("./index.cjs42.js"),S=require("react"),u=require("react-aria-components"),p=require("./index.cjs41.js"),K=require("./index.cjs21.js"),Q=require("./index.cjs67.js"),U=require("./index.cjs47.js"),B=require("./index.cjs48.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.es10.js
CHANGED
|
@@ -3,7 +3,7 @@ import { CheckIcon as h } from "./index.es42.js";
|
|
|
3
3
|
import { useState as j } from "react";
|
|
4
4
|
import { Button as S } from "react-aria-components";
|
|
5
5
|
import { cn as n } from "./index.es41.js";
|
|
6
|
-
import { filterChipVariants as k } from "./index.
|
|
6
|
+
import { filterChipVariants as k } from "./index.es49.js";
|
|
7
7
|
const C = ({
|
|
8
8
|
size: t = "md",
|
|
9
9
|
label: a,
|
package/dist/index.es11.js
CHANGED
|
@@ -7,7 +7,7 @@ import "./index.es13.js";
|
|
|
7
7
|
import { Label as F } from "./index.es14.js";
|
|
8
8
|
import { Tooltip as V } from "./index.es36.js";
|
|
9
9
|
import { TooltipTrigger as W } from "./index.es37.js";
|
|
10
|
-
import { filterTypeChipVariants as A, filterTypeChipPopoverVariants as B } from "./index.
|
|
10
|
+
import { filterTypeChipVariants as A, filterTypeChipPopoverVariants as B } from "./index.es51.js";
|
|
11
11
|
const X = ({
|
|
12
12
|
isDisabled: t = !1,
|
|
13
13
|
classNameLabel: c = "",
|
package/dist/index.es12.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as o } from "./index.es40.js";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { useContextProps as B, ButtonContext as j, Button as N } from "react-aria-components";
|
|
4
4
|
import { cn as w } from "./index.es41.js";
|
|
5
|
-
import { buttonVariants as C } from "./index.
|
|
5
|
+
import { buttonVariants as C } from "./index.es66.js";
|
|
6
6
|
function I(r, i) {
|
|
7
7
|
const [a, c] = B(r, i, j), {
|
|
8
8
|
intent: m = "secondary",
|
package/dist/index.es13.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { TextField as j, Label as N, Input as V, FieldError as y } from "react-aria-components";
|
|
4
4
|
import { cn as i } from "./index.es41.js";
|
|
5
|
-
import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.
|
|
5
|
+
import { invisibleInputContainerVariants as w, invisibleInputLabelVariants as C, invisibleInputVariants as F, invisibleInputCaptionVariants as L } from "./index.es58.js";
|
|
6
6
|
const R = h(
|
|
7
7
|
({
|
|
8
8
|
size: l = "bodyDefault",
|
package/dist/index.es15.js
CHANGED
|
@@ -3,7 +3,7 @@ import { today as k, getLocalTimeZone as G } from "@internationalized/date";
|
|
|
3
3
|
import { CalendarIcon as I, LeftChevronIcon as H, RightChevronIcon as z } from "./index.es42.js";
|
|
4
4
|
import { DatePicker as L, Label as P, Group as B, DateInput as w, DateSegment as R, Button as c, FieldError as T, Popover as F, Dialog as Z, Calendar as q, Heading as A, CalendarGrid as J, CalendarGridHeader as K, CalendarHeaderCell as M, CalendarGridBody as O, CalendarCell as Q } from "react-aria-components";
|
|
5
5
|
import { cn as r } from "./index.es41.js";
|
|
6
|
-
import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.
|
|
6
|
+
import { datepickerLabelVariants as S, datepickerGroupVariants as U, datepickerInputVariants as W, datepickerSegmentVariants as X, datepickerButtonVariants as d, datepickerCaptionVariants as Y, popoverVariants as _, calendarVariants as $, calendarHeaderVariants as E, calendarHeadingVariants as ee, calendarGridVariants as ae, calendarHeaderCellVariants as se, calendarCellVariants as re } from "./index.es52.js";
|
|
7
7
|
const oe = ({
|
|
8
8
|
label: o,
|
|
9
9
|
size: l = "bodyDefault",
|
package/dist/index.es16.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { j as e } from "./index.es40.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useFilter as
|
|
2
|
+
import { forwardRef as W, useState as x } from "react";
|
|
3
|
+
import { useFilter as X, Select as Y, FieldError as Z, Popover as $ } from "react-aria-components";
|
|
4
4
|
import { cn as r } from "./index.es41.js";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import "./index.es13.js";
|
|
6
|
+
import { Label as ee } from "./index.es14.js";
|
|
7
|
+
import { PopoverContent as ae } from "./index.es67.js";
|
|
8
|
+
import { InvisibleSelectContent as le } from "./index.es17.js";
|
|
9
|
+
import { invisibleSelectContainerVariants as ie, invisibleSelectLabelVariants as se, invisibleSelectCaptionVariants as re, invisibleSelectPopoverVariants as te } from "./index.es53.js";
|
|
10
|
+
const ne = (C, N) => {
|
|
9
11
|
const {
|
|
10
|
-
size: c = "
|
|
12
|
+
size: c = "sm",
|
|
11
13
|
orientation: d = "vertical",
|
|
12
|
-
label:
|
|
14
|
+
label: f,
|
|
13
15
|
items: y,
|
|
14
16
|
selectionMode: i = "single",
|
|
15
17
|
value: b,
|
|
@@ -22,54 +24,62 @@ const ie = (C, N) => {
|
|
|
22
24
|
labelClassName: g,
|
|
23
25
|
captionErrorClassName: L,
|
|
24
26
|
popoverClassName: O,
|
|
25
|
-
classNameSearchField:
|
|
26
|
-
classNameSearchFieldInput:
|
|
27
|
+
classNameSearchField: P,
|
|
28
|
+
classNameSearchFieldInput: A,
|
|
27
29
|
isDisabled: h = !1,
|
|
28
30
|
onChange: n,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
tooltipText: E,
|
|
32
|
+
tooltipSupportText: F,
|
|
33
|
+
tooltipProps: z,
|
|
34
|
+
isRequired: D = !1,
|
|
35
|
+
maxLengthTextOption: R = 18,
|
|
36
|
+
placeholderSearch: T = "Search",
|
|
37
|
+
enableSearch: B = !1,
|
|
38
|
+
"aria-label": q,
|
|
39
|
+
"aria-labelledby": M,
|
|
40
|
+
"aria-describedby": _,
|
|
41
|
+
id: k,
|
|
42
|
+
name: w
|
|
43
|
+
} = C, { contains: G } = X({ sensitivity: "base" }), [u, m] = x(!1), [H, S] = x(() => v !== void 0 ? v : i === "multiple" ? [] : null), p = b !== void 0, o = p ? b : H, J = (l) => {
|
|
38
44
|
if (i === "multiple" && o && Array.isArray(o)) {
|
|
39
|
-
const a = o.filter((
|
|
40
|
-
|
|
45
|
+
const a = o.filter((U) => U !== l);
|
|
46
|
+
p || S(a), n && n(a);
|
|
41
47
|
}
|
|
42
|
-
},
|
|
48
|
+
}, K = (l) => {
|
|
43
49
|
let a;
|
|
44
|
-
i === "multiple" ? a = l instanceof Set ? Array.from(l) : l : (a = l, m(!1)),
|
|
45
|
-
},
|
|
46
|
-
className: r(
|
|
50
|
+
i === "multiple" ? a = l instanceof Set ? Array.from(l) : l : (a = l, m(!1)), p || S(a), n && n(a);
|
|
51
|
+
}, Q = {
|
|
52
|
+
className: r(ie({ size: c, orientation: d }), I),
|
|
47
53
|
selectionMode: i,
|
|
48
54
|
isDisabled: h,
|
|
49
55
|
isInvalid: s === "invalid",
|
|
50
56
|
value: o,
|
|
51
|
-
"aria-label":
|
|
52
|
-
"aria-labelledby":
|
|
53
|
-
"aria-describedby":
|
|
54
|
-
id:
|
|
55
|
-
name:
|
|
56
|
-
onChange:
|
|
57
|
+
"aria-label": q,
|
|
58
|
+
"aria-labelledby": M,
|
|
59
|
+
"aria-describedby": _,
|
|
60
|
+
id: k,
|
|
61
|
+
name: w,
|
|
62
|
+
onChange: K
|
|
57
63
|
};
|
|
58
|
-
return /* @__PURE__ */ e.jsxs(
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
return /* @__PURE__ */ e.jsxs(Y, { ...Q, children: [
|
|
65
|
+
f && /* @__PURE__ */ e.jsx(
|
|
66
|
+
ee,
|
|
61
67
|
{
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
labelClassName: r(
|
|
69
|
+
se({ size: c }),
|
|
64
70
|
g,
|
|
65
71
|
d === "horizontal" && s !== "invalid" ? "self-center" : "self-start"
|
|
66
72
|
),
|
|
67
|
-
|
|
73
|
+
isRequired: D,
|
|
74
|
+
tooltipText: E,
|
|
75
|
+
tooltipSupportText: F,
|
|
76
|
+
tooltipProps: z,
|
|
77
|
+
children: f
|
|
68
78
|
}
|
|
69
79
|
),
|
|
70
80
|
/* @__PURE__ */ e.jsxs("div", { className: r("flex flex-col", d === "horizontal" ? "flex-1" : "w-full"), children: [
|
|
71
81
|
/* @__PURE__ */ e.jsx(
|
|
72
|
-
|
|
82
|
+
le,
|
|
73
83
|
{
|
|
74
84
|
ref: N,
|
|
75
85
|
isOpen: u,
|
|
@@ -78,8 +88,8 @@ const ie = (C, N) => {
|
|
|
78
88
|
isDisabled: h,
|
|
79
89
|
buttonClassName: V,
|
|
80
90
|
selectionMode: i,
|
|
81
|
-
maxLengthTextOption:
|
|
82
|
-
handleDeleteOptionSelected:
|
|
91
|
+
maxLengthTextOption: R,
|
|
92
|
+
handleDeleteOptionSelected: J,
|
|
83
93
|
placeholder: j,
|
|
84
94
|
validationState: s
|
|
85
95
|
}
|
|
@@ -88,7 +98,7 @@ const ie = (C, N) => {
|
|
|
88
98
|
"div",
|
|
89
99
|
{
|
|
90
100
|
className: r(
|
|
91
|
-
|
|
101
|
+
re({
|
|
92
102
|
state: "error"
|
|
93
103
|
}),
|
|
94
104
|
L
|
|
@@ -97,28 +107,28 @@ const ie = (C, N) => {
|
|
|
97
107
|
}
|
|
98
108
|
)
|
|
99
109
|
] }),
|
|
100
|
-
s === "invalid" && t && /* @__PURE__ */ e.jsx(
|
|
110
|
+
s === "invalid" && t && /* @__PURE__ */ e.jsx(Z, { className: "sr-only", children: t }),
|
|
101
111
|
/* @__PURE__ */ e.jsx(
|
|
102
|
-
|
|
112
|
+
$,
|
|
103
113
|
{
|
|
104
|
-
className: r(
|
|
114
|
+
className: r(te(), O),
|
|
105
115
|
isOpen: u,
|
|
106
116
|
onOpenChange: m,
|
|
107
117
|
children: /* @__PURE__ */ e.jsx(
|
|
108
|
-
|
|
118
|
+
ae,
|
|
109
119
|
{
|
|
110
|
-
enableSearch:
|
|
111
|
-
contains:
|
|
112
|
-
classNameSearchField:
|
|
113
|
-
classNameSearchFieldInput:
|
|
114
|
-
placeholderSearch:
|
|
120
|
+
enableSearch: B,
|
|
121
|
+
contains: G,
|
|
122
|
+
classNameSearchField: P,
|
|
123
|
+
classNameSearchFieldInput: A,
|
|
124
|
+
placeholderSearch: T,
|
|
115
125
|
items: y
|
|
116
126
|
}
|
|
117
127
|
)
|
|
118
128
|
}
|
|
119
129
|
)
|
|
120
130
|
] });
|
|
121
|
-
},
|
|
131
|
+
}, ue = W(ne);
|
|
122
132
|
export {
|
|
123
|
-
|
|
133
|
+
ue as InvisibleSelect
|
|
124
134
|
};
|
package/dist/index.es17.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index.es40.js";
|
|
|
2
2
|
import { CrossCircleIcon as w, DownChevronIcon as B } from "./index.es42.js";
|
|
3
3
|
import { Button as u, SelectValue as C } from "react-aria-components";
|
|
4
4
|
import { cn as l } from "./index.es41.js";
|
|
5
|
-
import { invisibleSelectButtonVariants as V, invisibleSelectBadgeVariants as I } from "./index.
|
|
5
|
+
import { invisibleSelectButtonVariants as V, invisibleSelectBadgeVariants as I } from "./index.es53.js";
|
|
6
6
|
const F = ({
|
|
7
7
|
ref: x,
|
|
8
8
|
isOpen: o,
|
package/dist/index.es18.js
CHANGED
|
@@ -5,10 +5,10 @@ import { TimeField as S, Group as U, DateInput as W, Button as X, FieldError as
|
|
|
5
5
|
import { cn as s } from "./index.es41.js";
|
|
6
6
|
import "./index.es13.js";
|
|
7
7
|
import { Label as Z } from "./index.es14.js";
|
|
8
|
-
import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.
|
|
8
|
+
import { invisibleInputLabelVariants as $, invisibleInputCaptionVariants as q } from "./index.es58.js";
|
|
9
9
|
import { TimePickerPopover as z } from "./index.es19.js";
|
|
10
10
|
import { TimeSegment as ee } from "./index.es20.js";
|
|
11
|
-
import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.
|
|
11
|
+
import { invisibleTimeFieldContainerVariants as ie, invisibleTimeFieldGroupVariants as se, invisibleTimeFieldInputVariants as le, timeFieldButtonVariants as ne } from "./index.es54.js";
|
|
12
12
|
const re = K(
|
|
13
13
|
({
|
|
14
14
|
size: l = "bodyDefault",
|
package/dist/index.es19.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as M, useState as P, useCallback as d, useEffect as j } from "re
|
|
|
4
4
|
import { Popover as $, ListBox as k, ListBoxItem as N } from "react-aria-components";
|
|
5
5
|
import { cn as x } from "./index.es41.js";
|
|
6
6
|
import { Button as H } from "./index.es5.js";
|
|
7
|
-
import { timePickerListItemVariants as A } from "./index.
|
|
7
|
+
import { timePickerListItemVariants as A } from "./index.es54.js";
|
|
8
8
|
function U(C) {
|
|
9
9
|
const { isOpen: i, onOpenChange: a, value: r, onChange: h, hourCycle: l = 12, containerRef: K, confirmButtonLabel: R } = C, y = M(null), g = M(null), S = M(null), [s, b] = P((r == null ? void 0 : r.hour) ?? 0), [m, v] = P((r == null ? void 0 : r.minute) ?? 0), V = Array.from({ length: l === 12 ? 12 : 24 }, (e, t) => l === 12 ? t + 1 : t), E = Array.from({ length: 60 }, (e, t) => t), f = l === 12 ? s === 0 ? 12 : s > 12 ? s - 12 : s : s, T = s >= 12 ? "PM" : "AM", [u, L] = P(T), w = d(() => {
|
|
10
10
|
const e = new O(s, m, 0);
|
package/dist/index.es23.js
CHANGED
|
@@ -5,8 +5,8 @@ import { NumberField as _, Group as k, Input as A, Button as d, FieldError as H
|
|
|
5
5
|
import { cn as r } from "./index.es41.js";
|
|
6
6
|
import "./index.es13.js";
|
|
7
7
|
import { Label as J } from "./index.es14.js";
|
|
8
|
-
import { invisibleInputContainerVariants as K, invisibleInputLabelVariants as M, invisibleInputCaptionVariants as O } from "./index.
|
|
9
|
-
import { invisibleNumberFieldGroupVariants as P, invisibleNumberFieldVariants as Q, invisibleNumberFieldStepperVariants as t } from "./index.
|
|
8
|
+
import { invisibleInputContainerVariants as K, invisibleInputLabelVariants as M, invisibleInputCaptionVariants as O } from "./index.es58.js";
|
|
9
|
+
import { invisibleNumberFieldGroupVariants as P, invisibleNumberFieldVariants as Q, invisibleNumberFieldStepperVariants as t } from "./index.es55.js";
|
|
10
10
|
const T = U(
|
|
11
11
|
({
|
|
12
12
|
size: l = "bodyDefault",
|
package/dist/index.es24.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./index.es13.js";
|
|
|
5
5
|
import { Label as G } from "./index.es14.js";
|
|
6
6
|
import { CaptionNumberField as S } from "./index.es71.js";
|
|
7
7
|
import { StepperButton as V } from "./index.es72.js";
|
|
8
|
-
import { inputNumberVariant as _ } from "./index.
|
|
8
|
+
import { inputNumberVariant as _ } from "./index.es55.js";
|
|
9
9
|
const K = ({
|
|
10
10
|
size: o = "sm",
|
|
11
11
|
label: i,
|