@simpli-route/apollo-ds 0.1.20 → 0.1.22
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/Select/TooltipSelect.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Slider/SliderContainerTrack.d.ts +1 -1
- package/dist/components/Slider/types.d.ts +15 -0
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/Tooltip/variants.d.ts +0 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs15.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.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -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.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -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.cjs6.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.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es11.js +7 -7
- package/dist/index.es12.js +63 -46
- package/dist/index.es13.js +2 -2
- package/dist/index.es15.js +29 -24
- package/dist/index.es18.js +4 -4
- package/dist/index.es19.js +3 -3
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +3 -3
- package/dist/index.es21.js +10 -10
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es27.js +21 -29
- package/dist/index.es28.js +148 -20
- package/dist/index.es29.js +38 -132
- package/dist/index.es3.js +9 -9
- package/dist/index.es30.js +34 -27
- package/dist/index.es31.js +29 -141
- package/dist/index.es32.js +29 -29
- package/dist/index.es33.js +19 -27
- package/dist/index.es34.js +39 -33
- package/dist/index.es35.js +46 -42
- package/dist/index.es36.js +25 -25
- package/dist/index.es37.js +3 -55
- package/dist/index.es38.js +76 -29
- package/dist/index.es39.js +22 -3
- package/dist/index.es4.js +2 -2
- package/dist/index.es40.js +151 -80
- package/dist/index.es41.js +28 -20
- package/dist/index.es42.js +17 -10
- package/dist/index.es43.js +10 -10
- package/dist/index.es44.js +132 -40
- package/dist/index.es45.js +20 -17
- package/dist/index.es46.js +101 -7
- package/dist/index.es47.js +11 -16
- package/dist/index.es48.js +13 -149
- package/dist/index.es49.js +10 -100
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +11 -12
- package/dist/index.es51.js +7 -19
- package/dist/index.es52.js +17 -19
- package/dist/index.es53.js +149 -22
- package/dist/index.es54.js +10 -163
- package/dist/index.es55.js +10 -10
- package/dist/index.es56.js +45 -10
- package/dist/index.es57.js +18 -11
- package/dist/index.es58.js +20 -13
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es70.js +30 -4
- package/dist/index.es71.js +58 -27
- package/dist/index.es72.js +4 -2
- package/dist/index.es73.js +28 -10
- package/dist/index.es74.js +2 -340
- package/dist/index.es75.js +8 -166
- package/dist/index.es76.js +339 -56
- package/dist/index.es77.js +164 -28
- package/dist/index.es9.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs25.js"),i=require("react-aria"),f=require("./index.cjs26.js"),q=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs25.js"),i=require("react-aria"),f=require("./index.cjs26.js"),q=require("./index.cjs30.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.cjs50.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.cjs25.js"),s=require("./index.cjs42.js"),n=require("react-aria-components"),i=require("./index.cjs26.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.cjs51.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs72.js");require("./index.cjs73.js");const r=require("./index.cjs74.js");let e=r.__exports;var t=(e.__esModule?e:{default:e}).default;const l=o.getDefaultExportFromCjs(t);exports.default=l;
|
package/dist/index.cjs52.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs75.js"),t=require("@simpli-route/tailwind-preset"),s=require("./index.cjs76.js"),n=require("./index.cjs77.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.cjs53.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("class-variance-authority"),e=[{state:"pending",isHovered:!0,isDisabled:!1,isPressed:!1,class:"bg-neutral-600"},{state:"inProgress",isHovered:!0,isDisabled:!1,isPressed:!1,class:"bg-blue-600"},{state:"completed",isHovered:!0,isDisabled:!1,isPressed:!1,class:"bg-success-600"},{state:"error",isHovered:!0,isDisabled:!1,isPressed:!1,class:"bg-error-600"}],t=[{isDisabled:!0,isPressed:!1,class:"bg-neutral-600"},{isDisabled:!1,isPressed:!1,state:"pending",class:"bg-neutral-500"},{isDisabled:!1,isPressed:!1,state:"inProgress",class:"bg-blue-500"},{isDisabled:!1,isPressed:!1,state:"completed",class:"bg-success-500"},{isDisabled:!1,isPressed:!1,state:"error",class:"bg-error-500"}],a=[{isPressed:!0,isDisabled:!1,state:"pending",class:"bg-neutral-900"},{isPressed:!0,isDisabled:!1,state:"inProgress",class:"bg-blue-800"},{isPressed:!0,isDisabled:!1,state:"completed",class:"bg-success-800"},{isPressed:!0,isDisabled:!1,state:"error",class:"bg-error-800"}],r=s.cva("flex shrink-0 items-center justify-center rounded-full focus-visible:outline-0 focus:outline-0",{variants:{size:{xs:"size-8",md:"size-[50px]"},state:{pending:"",inProgress:"",completed:"",error:""},isDisabled:{true:"",false:""},isHovered:{true:"",false:""},isPressed:{true:"",false:""}},compoundVariants:[...e,...t,...a]}),i=s.cva("leading-5 tracking-wide font-normal text-black",{variants:{size:{xs:"text-sm",md:"text-md"}}}),l=s.cva("flex items-center justify-center",{variants:{size:{xs:"text-base size-4",md:"text-lg size-[18px]"},state:{pending:"text-neutral-50",inProgress:"text-neutral-50",completed:"text-neutral-50",error:"text-neutral-50"},isHovered:{true:"",false:""}},compoundVariants:[{state:"error",isHovered:!0,class:"text-error-600"}]});exports.iconVariants=l;exports.labelVariants=i;exports.stepVariants=r;
|
package/dist/index.cjs54.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 m=require("./index.cjs25.js"),q=require("react"),y=require("react-aria"),v=require("./index.cjs26.js"),x=require("./index.cjs56.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.cjs55.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 i=require("./index.cjs25.js"),l=require("react"),u=require("react-aria"),d=require("./index.cjs26.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.cjs56.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("flex h-full max-h-12",{variants:{orientation:{horizontal:"flex-col",vertical:"flex-row"}}}),t=r.cva("group inline-flex cursor-pointer items-center px-4 py-3 text-sm font-semibold focus-visible:outline-none",{variants:{isActive:{true:"bg-primary-50 text-primary-500 ",false:"text-primary-300 hover:text-primary-500 hover:border-primary-500"},isDisabledTab:{true:"",false:""},orientation:{horizontal:"border-b-2 border-transparent",vertical:"border-r-2 border-transparent"}},compoundVariants:[{isDisabledTab:!0,orientation:"horizontal",class:"border-b-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"},{isDisabledTab:!0,orientation:"vertical",class:"border-r-2 cursor-not-allowed !border-neutral-600 !text-neutral-600 bg-neutral-200"},{isActive:!0,orientation:"horizontal",class:"border-b-2 border-primary-500"},{isActive:!1,orientation:"horizontal",class:"border-b-2 border-primary-300"},{isActive:!1,orientation:"vertical",class:"border-r-2 border-primary-200"},{isActive:!0,orientation:"vertical",class:"border-r-2 border-primary-500"}]});exports.tabVariants=t;exports.tabsVariants=e;
|
package/dist/index.cjs57.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs25.js"),i=require("./index.cjs26.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.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 o=require("./index.cjs25.js"),s=require("./index.cjs26.js"),a=require("./index.cjs38.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.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs25.js"),q=require("react"),n=require("react-aria-components"),B=require("./index.cjs26.js"),R=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs25.js"),q=require("react"),n=require("react-aria-components"),B=require("./index.cjs26.js"),R=require("./index.cjs40.js");function g(c,a){const[u,l]=n.useContextProps(c,a,n.ButtonContext),{intent:d="secondary",size:m="lg",isDisabled:o=!1,isActive:p=!1,children:e,className:x,...f}=u,r="flex h-full items-center overflow-hidden whitespace-nowrap";return s.jsxRuntimeExports.jsx(n.Button,{ref:l,className:({isPressed:t,isHovered:j,isFocusVisible:h})=>B.cn(R.buttonVariants({intent:d,size:m,isDisabled:o,isActive:p||t,isHovered:j,isFocused:h}),x),isDisabled:o,...f,children:typeof e=="function"?t=>s.jsxRuntimeExports.jsx("span",{className:r+"p-2.",children:e(t)}):s.jsxRuntimeExports.jsx("span",{className:r,children:e})})}const i=q.forwardRef(g);i.displayName="IconButton";exports.IconButton=i;
|
package/dist/index.cjs7.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs25.js"),j=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs25.js"),j=require("./index.cjs42.js"),b=require("react"),s=require("react-aria-components"),f=require("./index.cjs26.js"),g=require("./index.cjs21.js"),T=require("./index.cjs22.js");function q(r,o){const{labelClassName:a}=r,[c,u]=s.useContextProps(r,o,s.LabelContext),{children:n,tooltipText:l,tooltipSupportText:x,tooltipProps:e,isRequired:m=!1,...d}=c;if(!n)return null;const p=f.cn("flex select-none items-center text-sm leading-6 text-neutral-900",a);return t.jsxRuntimeExports.jsxs(s.Label,{className:p,...d,ref:u,children:[n,m?t.jsxRuntimeExports.jsx("span",{className:"ml-1 text-neutral-900",children:"*"}):null,l?t.jsxRuntimeExports.jsxs(T.TooltipTrigger,{delay:100,children:[t.jsxRuntimeExports.jsx(j.InfoIcon,{className:"ml-1 size-4 text-primary-600"}),t.jsxRuntimeExports.jsx(g.Tooltip,{placement:(e==null?void 0:e.placement)||"right",supportText:x,size:(e==null?void 0:e.size)||"sm",children:l})]}):null]})}const i=b.forwardRef(q);i.displayName="Label";exports.Label=i;
|
package/dist/index.cjs70.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("absolute inset-0 z-[1000px] overflow-hidden",{variants:{opacity:{sm:"bg-neutral-50/10",md:"bg-neutral-50/20",lg:"bg-neutral-50/30",xl:"bg-neutral-50/50","2xl":"bg-neutral-50/60","3xl":"bg-neutral-50/75"},fixed:{true:"fixed",false:""},center:{true:"flex items-center justify-center",false:""},blur:{sm:"backdrop-blur-sm",md:"backdrop-blur-md",lg:"backdrop-blur-lg",xl:"backdrop-blur-xl","2xl":"backdrop-blur-2xl","3xl":"backdrop-blur-3xl"}}});exports.overlayVariants=e;
|
package/dist/index.cjs71.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs25.js"),l=require("react-aria-components"),r=require("./index.cjs26.js"),x=require("./index.cjs21.js"),d=require("./index.cjs22.js"),g=({index:i,valuePercent:c,value:m,suffix:u,modeTooltip:a,positionTooltip:t,showTypeValue:s,classNameThumb:n,isHiddenValue:o})=>e.jsxRuntimeExports.jsx("div",{className:r.cn("absolute",s==="tooltip"&&!o?"top-[-6px]":"top-1/2"),style:{left:`${c*100}%`,transform:"translate(-50%, -50%)"},children:s==="tooltip"&&!o?e.jsxRuntimeExports.jsxs(d.TooltipTrigger,{closeDelay:100,delay:100,children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(l.SliderThumb,{index:i,className:r.cn("dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",n)})}),e.jsxRuntimeExports.jsxs(x.Tooltip,{mode:a,placement:t,size:"sm",className:r.cn("!text-sm",t==="top"?"!mb-6":"!mt-6"),children:[m,u]})]}):e.jsxRuntimeExports.jsx(l.SliderThumb,{index:i,className:r.cn("dragging:bg-primary-100 size-5 rounded-full bg-primary-500 outline-none ring-black transition focus-visible:ring-2",n)})});exports.SliderThumb=g;
|
package/dist/index.cjs72.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const l=require("./index.cjs74.js");require("./index.cjs80.js");require("./index.cjs81.js");const f=require("./index.cjs82.js"),s=require("./index.cjs83.js");(function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});const n=t(f.__exports),u=t(s.__exports);function t(e){return e&&e.__esModule?e:{default:e}}function o(...e){let[,...i]=(0,u.default)(e[0]);return(0,n.default)([...e,...i])}})(l.__exports);
|
package/dist/index.cjs74.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index.cjs75.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs72.js");require("./index.cjs84.js");const l=require("./index.cjs85.js");let e=l.__exports;var t=(e.__esModule?e:{default:e}).default;const r=u.getDefaultExportFromCjs(t);exports.default=r;exports.defaultTheme_1=t;
|
package/dist/index.cjs76.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./index.cjs72.js"),k=require("./index.cjs86.js"),y=require("./index.cjs87.js"),v=require("./index.cjs75.js"),x=require("./index.cjs88.js"),n=k.miniSvgDataUri,z=y.plugin,b=v.defaultTheme_1,o=x.colors_1,[$,{lineHeight:j}]=b.fontSize.base,{spacing:e,borderWidth:f,borderRadius:p}=b;function r(a,c){return a.replace("<alpha-value>",`var(${c}, 1)`)}const C=z.withOptions(function(a={strategy:void 0}){return function({addBase:c,addComponents:w,theme:t}){function g(s,i){let d=t(s);return!d||d.includes("var(")?i:d.replace("<alpha-value>","1")}const l=a.strategy===void 0?["base","class"]:[a.strategy],m=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":r(t("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":f.DEFAULT,"border-radius":p.none,"padding-top":e[2],"padding-right":e[3],"padding-bottom":e[2],"padding-left":e[3],"font-size":$,"line-height":j,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":r(t("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)","border-color":r(t("colors.blue.600",o.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:r(t("colors.gray.500",o.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${n(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${g("colors.gray.500",o.gray[500])}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`)}")`,"background-position":`right ${e[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":e[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":e[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:e[4],width:e[4],color:r(t("colors.blue.600",o.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":r(t("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":f.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":p.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":r(t("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${n('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${n('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${n('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8h8"/></svg>')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],u=s=>m.map(i=>i[s]===null?null:{[i[s]]:i.styles}).filter(Boolean);l.includes("base")&&c(u("base")),l.includes("class")&&w(u("class"))}});var T=C;const B=h.getDefaultExportFromCjs(T);exports.default=B;
|
package/dist/index.cjs77.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs72.js"),o=require("./index.cjs87.js"),l=o.plugin;function i(a){return Object.fromEntries(Object.entries(a).filter(([e])=>e!=="DEFAULT"))}var s=l(({addUtilities:a,matchUtilities:e,theme:n})=>{a({"@keyframes enter":n("keyframes.enter"),"@keyframes exit":n("keyframes.exit"),".animate-in":{animationName:"enter",animationDuration:n("animationDuration.DEFAULT"),"--tw-enter-opacity":"initial","--tw-enter-scale":"initial","--tw-enter-rotate":"initial","--tw-enter-translate-x":"initial","--tw-enter-translate-y":"initial"},".animate-out":{animationName:"exit",animationDuration:n("animationDuration.DEFAULT"),"--tw-exit-opacity":"initial","--tw-exit-scale":"initial","--tw-exit-rotate":"initial","--tw-exit-translate-x":"initial","--tw-exit-translate-y":"initial"}}),e({"fade-in":t=>({"--tw-enter-opacity":t}),"fade-out":t=>({"--tw-exit-opacity":t})},{values:n("animationOpacity")}),e({"zoom-in":t=>({"--tw-enter-scale":t}),"zoom-out":t=>({"--tw-exit-scale":t})},{values:n("animationScale")}),e({"spin-in":t=>({"--tw-enter-rotate":t}),"spin-out":t=>({"--tw-exit-rotate":t})},{values:n("animationRotate")}),e({"slide-in-from-top":t=>({"--tw-enter-translate-y":`-${t}`}),"slide-in-from-bottom":t=>({"--tw-enter-translate-y":t}),"slide-in-from-left":t=>({"--tw-enter-translate-x":`-${t}`}),"slide-in-from-right":t=>({"--tw-enter-translate-x":t}),"slide-out-to-top":t=>({"--tw-exit-translate-y":`-${t}`}),"slide-out-to-bottom":t=>({"--tw-exit-translate-y":t}),"slide-out-to-left":t=>({"--tw-exit-translate-x":`-${t}`}),"slide-out-to-right":t=>({"--tw-exit-translate-x":t})},{values:n("animationTranslate")}),e({duration:t=>({animationDuration:t})},{values:i(n("animationDuration"))}),e({delay:t=>({animationDelay:t})},{values:n("animationDelay")}),e({ease:t=>({animationTimingFunction:t})},{values:i(n("animationTimingFunction"))}),a({".running":{animationPlayState:"running"},".paused":{animationPlayState:"paused"}}),e({"fill-mode":t=>({animationFillMode:t})},{values:n("animationFillMode")}),e({direction:t=>({animationDirection:t})},{values:n("animationDirection")}),e({repeat:t=>({animationIterationCount:t})},{values:n("animationRepeat")})},{theme:{extend:{animationDelay:({theme:a})=>({...a("transitionDelay")}),animationDuration:({theme:a})=>({0:"0ms",...a("transitionDuration")}),animationTimingFunction:({theme:a})=>({...a("transitionTimingFunction")}),animationFillMode:{none:"none",forwards:"forwards",backwards:"backwards",both:"both"},animationDirection:{normal:"normal",reverse:"reverse",alternate:"alternate","alternate-reverse":"alternate-reverse"},animationOpacity:({theme:a})=>({DEFAULT:0,...a("opacity")}),animationTranslate:({theme:a})=>({DEFAULT:"100%",...a("translate")}),animationScale:({theme:a})=>({DEFAULT:0,...a("scale")}),animationRotate:({theme:a})=>({DEFAULT:"30deg",...a("rotate")}),animationRepeat:{0:"0",1:"1",infinite:"infinite"},keyframes:{enter:{from:{opacity:"var(--tw-enter-opacity, 1)",transform:"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"}},exit:{to:{opacity:"var(--tw-exit-opacity, 1)",transform:"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"}}}}}});const u=r.getDefaultExportFromCjs(s);exports.default=u;
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs25.js"),p=require("react"),j=require("./index.cjs26.js"),m=require("./index.cjs8.js"),v=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs25.js"),p=require("react"),j=require("./index.cjs26.js"),m=require("./index.cjs8.js"),v=require("./index.cjs43.js"),b=(n,o)=>{const{className:i,visible:l,loaderProps:a={size:"lg"},overlayProps:d={opacity:"2xl"},zIndex:r=1e3,loader:s,keepMounted:u,blur:c=4,...x}=n,y=`calc(${r} + 1)`;return!u&&!l?null:e.jsxRuntimeExports.jsxs("div",{ref:o,className:j.cn("absolute inset-0 z-50 flex items-center justify-center rounded-sm",`backdrop-blur-[${c}px]`,"bg-white/50",i),style:{zIndex:r},...x,children:[e.jsxRuntimeExports.jsx("div",{style:{zIndex:y},children:s||e.jsxRuntimeExports.jsx(m.Loader,{...a})}),e.jsxRuntimeExports.jsx(v.Overlay,{zIndex:r,...d})]})},t=p.forwardRef(b);t.displayName="LoadingOverlay";exports.LoadingOverlay=t;
|
package/dist/index.es10.js
CHANGED
|
@@ -2,9 +2,9 @@ import { j as r } from "./index.es25.js";
|
|
|
2
2
|
import { NumberField as w, Group as B, Input as E } from "react-aria-components";
|
|
3
3
|
import { cn as l } from "./index.es26.js";
|
|
4
4
|
import { Label as G } from "./index.es7.js";
|
|
5
|
-
import { CaptionNumberField as S } from "./index.
|
|
6
|
-
import { StepperButton as V } from "./index.
|
|
7
|
-
import { inputNumberVariant as _ } from "./index.
|
|
5
|
+
import { CaptionNumberField as S } from "./index.es49.js";
|
|
6
|
+
import { StepperButton as V } from "./index.es50.js";
|
|
7
|
+
import { inputNumberVariant as _ } from "./index.es31.js";
|
|
8
8
|
const J = ({
|
|
9
9
|
size: o = "sm",
|
|
10
10
|
label: i,
|
package/dist/index.es11.js
CHANGED
|
@@ -3,28 +3,28 @@ import { motion as D } from "framer-motion";
|
|
|
3
3
|
import { ProgressBar as I } from "react-aria-components";
|
|
4
4
|
import "react";
|
|
5
5
|
import { cn as t } from "./index.es26.js";
|
|
6
|
-
import "./index.es31.js";
|
|
7
6
|
import "./index.es28.js";
|
|
7
|
+
import "./index.es29.js";
|
|
8
8
|
import "react-aria";
|
|
9
|
-
import "./index.
|
|
9
|
+
import "./index.es30.js";
|
|
10
10
|
import "./index.es6.js";
|
|
11
11
|
import { Label as M } from "./index.es7.js";
|
|
12
12
|
import "./index.es9.js";
|
|
13
|
+
import "./index.es31.js";
|
|
14
|
+
import { progressBarVariants as S, progressFillVariants as $ } from "./index.es32.js";
|
|
13
15
|
import "./index.es33.js";
|
|
14
|
-
import
|
|
16
|
+
import "./index.es34.js";
|
|
15
17
|
import "./index.es35.js";
|
|
16
18
|
import "./index.es36.js";
|
|
17
|
-
import "./index.es37.js";
|
|
18
|
-
import "./index.es38.js";
|
|
19
19
|
import { Tooltip as k } from "./index.es21.js";
|
|
20
20
|
import { TooltipTrigger as z } from "./index.es22.js";
|
|
21
21
|
import "./index.es16.js";
|
|
22
22
|
import "./index.es17.js";
|
|
23
23
|
import "./index.es18.js";
|
|
24
|
-
import "./index.
|
|
24
|
+
import "./index.es38.js";
|
|
25
25
|
import "./index.es20.js";
|
|
26
26
|
import { Text as d } from "./index.es23.js";
|
|
27
|
-
import "./index.
|
|
27
|
+
import "./index.es39.js";
|
|
28
28
|
const ns = (f) => {
|
|
29
29
|
const {
|
|
30
30
|
className: h,
|
package/dist/index.es12.js
CHANGED
|
@@ -1,60 +1,77 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { SearchIcon as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { ComboBox as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { useDebouncedValue as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
import { Label as
|
|
9
|
-
import { inputVariants as k } from "./index.
|
|
10
|
-
import { popoverVariants as q, searchOptionVariants as A } from "./index.
|
|
11
|
-
const
|
|
1
|
+
import { j as s } from "./index.es25.js";
|
|
2
|
+
import { SearchIcon as P, CrossIcon as y } from "./index.es42.js";
|
|
3
|
+
import { useMemo as z } from "react";
|
|
4
|
+
import { ComboBox as D, Input as H, Text as R, FieldError as E, Popover as O, ListBox as F, ListBoxItem as M } from "react-aria-components";
|
|
5
|
+
import { cn as S } from "./index.es26.js";
|
|
6
|
+
import { useDebouncedValue as _ } from "./index.es48.js";
|
|
7
|
+
import { IconButton as T } from "./index.es6.js";
|
|
8
|
+
import { Label as $ } from "./index.es7.js";
|
|
9
|
+
import { inputVariants as k } from "./index.es33.js";
|
|
10
|
+
import { popoverVariants as q, searchOptionVariants as A } from "./index.es34.js";
|
|
11
|
+
const se = (i) => {
|
|
12
12
|
const {
|
|
13
|
-
label:
|
|
14
|
-
onReset:
|
|
15
|
-
placeholder:
|
|
16
|
-
isDisabled:
|
|
17
|
-
delay:
|
|
18
|
-
searchIcon:
|
|
19
|
-
clearIcon:
|
|
20
|
-
size:
|
|
21
|
-
description:
|
|
22
|
-
inputValue:
|
|
23
|
-
isInvalid:
|
|
24
|
-
errorMessage:
|
|
25
|
-
items:
|
|
26
|
-
...
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
label: n,
|
|
14
|
+
onReset: c,
|
|
15
|
+
placeholder: f,
|
|
16
|
+
isDisabled: l,
|
|
17
|
+
delay: b = 300,
|
|
18
|
+
searchIcon: j,
|
|
19
|
+
clearIcon: I,
|
|
20
|
+
size: N = "md",
|
|
21
|
+
description: d,
|
|
22
|
+
inputValue: h,
|
|
23
|
+
isInvalid: m,
|
|
24
|
+
errorMessage: x,
|
|
25
|
+
items: r,
|
|
26
|
+
...L
|
|
27
|
+
} = i, w = j ?? /* @__PURE__ */ s.jsx(P, { className: "size-6 text-neutral-700", "data-testid": "search-icon" }), C = /* @__PURE__ */ s.jsx(T, { intent: "minimal", size: "md", className: "p-0", "data-testid": "clear-icon-button", onPress: c, children: I ?? /* @__PURE__ */ s.jsx(y, { className: "size-5 text-neutral-700", "data-testid": "clear-icon" }) }), a = _(h, b), u = a && c, V = u ? C : w, v = (e, t) => {
|
|
28
|
+
if (!t.trim())
|
|
29
|
+
return [{ text: e, highlight: !1 }];
|
|
30
|
+
const o = new RegExp(`(${t})`, "gi");
|
|
31
|
+
return e.split(o).filter(Boolean).map((g) => ({
|
|
32
|
+
text: g,
|
|
33
|
+
highlight: g.toLowerCase() === t.toLowerCase()
|
|
34
|
+
}));
|
|
35
|
+
}, B = z(
|
|
36
|
+
() => a ? r.filter((e) => e.label.toLowerCase().includes(a.toLowerCase())).map((e) => {
|
|
37
|
+
const t = a && e.label.toLowerCase().includes(a.toLowerCase()), o = v(e.label, a ?? "");
|
|
38
|
+
return { ...e, shouldHighlight: t, highlightedParts: o };
|
|
39
|
+
}) : r.map((e) => ({
|
|
40
|
+
...e,
|
|
41
|
+
shouldHighlight: !1,
|
|
42
|
+
highlightedParts: [{ text: e.label, highlight: !1 }]
|
|
43
|
+
})),
|
|
44
|
+
[a, r]
|
|
30
45
|
);
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
46
|
+
return /* @__PURE__ */ s.jsxs(D, { inputValue: h, isDisabled: l, ...L, children: [
|
|
47
|
+
n && /* @__PURE__ */ s.jsx($, { children: n }),
|
|
48
|
+
/* @__PURE__ */ s.jsxs("div", { className: "relative flex items-center", children: [
|
|
49
|
+
/* @__PURE__ */ s.jsx(
|
|
50
|
+
H,
|
|
36
51
|
{
|
|
37
|
-
placeholder:
|
|
38
|
-
className: k({ size:
|
|
39
|
-
disabled:
|
|
40
|
-
readOnly:
|
|
52
|
+
placeholder: f,
|
|
53
|
+
className: k({ size: N, isDisabled: l, hasIcon: !0 }),
|
|
54
|
+
disabled: l,
|
|
55
|
+
readOnly: i.isReadOnly
|
|
41
56
|
}
|
|
42
57
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ s.jsx("span", { className: S("absolute right-2 top-1/2 -translate-y-1/2", u && "top-[53%]"), children: V })
|
|
44
59
|
] }),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/* @__PURE__ */
|
|
60
|
+
d && !m && /* @__PURE__ */ s.jsx(R, { slot: "description", className: "text-xs leading-5 text-neutral-700", children: d }),
|
|
61
|
+
x && m && /* @__PURE__ */ s.jsx(E, { className: "text-sm leading-6 text-error-500", children: x }),
|
|
62
|
+
/* @__PURE__ */ s.jsx(O, { className: q(), children: /* @__PURE__ */ s.jsx(F, { items: B, className: "max-h-60 overflow-auto outline-none", children: (e) => /* @__PURE__ */ s.jsx(
|
|
48
63
|
M,
|
|
49
64
|
{
|
|
50
|
-
id:
|
|
51
|
-
textValue:
|
|
52
|
-
className: ({ isDisabled:
|
|
53
|
-
children: s.
|
|
65
|
+
id: e.id,
|
|
66
|
+
textValue: e.label,
|
|
67
|
+
className: ({ isDisabled: t, isSelected: o, isFocused: p }) => A({ isFocused: p, isSelected: o, isDisabled: t }),
|
|
68
|
+
children: e.shouldHighlight ? /* @__PURE__ */ s.jsx("span", { children: e.highlightedParts.map(
|
|
69
|
+
(t, o) => t.highlight ? /* @__PURE__ */ s.jsx("span", { className: "font-bold text-neutral-900", children: t.text }, o) : t.text
|
|
70
|
+
) }) : e.label
|
|
54
71
|
}
|
|
55
72
|
) }) })
|
|
56
73
|
] });
|
|
57
74
|
};
|
|
58
75
|
export {
|
|
59
|
-
|
|
76
|
+
se as SearchField
|
|
60
77
|
};
|
package/dist/index.es13.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useState as f, useRef as C, useEffect as I } from "react";
|
|
|
3
3
|
import { Select as S, Popover as tt, ListBox as st } from "react-aria-components";
|
|
4
4
|
import { cn as P } from "./index.es26.js";
|
|
5
5
|
import { Label as it } from "./index.es7.js";
|
|
6
|
-
import { SelectContent as rt } from "./index.
|
|
6
|
+
import { SelectContent as rt } from "./index.es44.js";
|
|
7
7
|
import { SelectItem as lt } from "./index.es14.js";
|
|
8
|
-
import { TooltipSelect as ot } from "./index.
|
|
8
|
+
import { TooltipSelect as ot } from "./index.es45.js";
|
|
9
9
|
const b = "all-select-option", wt = ({
|
|
10
10
|
mode: e = "single",
|
|
11
11
|
keyLabelName: V,
|
package/dist/index.es15.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as m } from "./index.es25.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Slider as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { SliderContainerTrack as
|
|
6
|
-
import { validateMinDistance as
|
|
7
|
-
const
|
|
2
|
+
import { useState as q, useEffect as x } from "react";
|
|
3
|
+
import { Slider as z, SliderTrack as B } from "react-aria-components";
|
|
4
|
+
import { cn as F } from "./index.es26.js";
|
|
5
|
+
import { SliderContainerTrack as G } from "./index.es46.js";
|
|
6
|
+
import { validateMinDistance as H } from "./index.es47.js";
|
|
7
|
+
const U = ({
|
|
8
8
|
type: r = "single",
|
|
9
9
|
showTypeValue: A = "default",
|
|
10
10
|
positionTooltip: S = "top",
|
|
@@ -19,47 +19,52 @@ const Q = ({
|
|
|
19
19
|
classNameUnfilled: N,
|
|
20
20
|
classNameThumb: E,
|
|
21
21
|
suffix: M = "%",
|
|
22
|
-
|
|
22
|
+
suffixRangeCustom: P = {
|
|
23
|
+
left: "",
|
|
24
|
+
right: ""
|
|
25
|
+
},
|
|
26
|
+
step: R = 1,
|
|
23
27
|
minDistance: d = 2,
|
|
24
|
-
|
|
28
|
+
...$
|
|
25
29
|
}) => {
|
|
26
|
-
const [l,
|
|
30
|
+
const [l, b] = q(r);
|
|
27
31
|
return x(() => {
|
|
28
32
|
if (r === "range" && Array.isArray(f)) {
|
|
29
|
-
const [s,
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
(
|
|
33
|
+
const [s, t] = f;
|
|
34
|
+
if (t - s < d) {
|
|
35
|
+
const c = [s, s + d];
|
|
36
|
+
(c[0] !== f[0] || c[1] !== f[1]) && (i == null || i(c));
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
}, [r, f, i, d]), x(() => {
|
|
36
|
-
l !== r && (
|
|
40
|
+
l !== r && (b(r), i == null || i(r === "range" ? [0, 5] : 0));
|
|
37
41
|
}, [r, i, l]), /* @__PURE__ */ m.jsx("div", { className: "flex w-full flex-col py-4", children: /* @__PURE__ */ m.jsx(
|
|
38
|
-
|
|
42
|
+
z,
|
|
39
43
|
{
|
|
40
44
|
value: f,
|
|
41
|
-
step:
|
|
45
|
+
step: R,
|
|
42
46
|
maxValue: T,
|
|
43
47
|
minValue: k,
|
|
44
|
-
className:
|
|
48
|
+
className: F("w-full", p),
|
|
45
49
|
onChange: (s) => {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
50
|
+
const t = s;
|
|
51
|
+
if (t !== void 0) {
|
|
52
|
+
const c = Array.isArray(t), o = r === "range" && c ? H(t, r, d) : t;
|
|
49
53
|
i == null || i(
|
|
50
54
|
r === "range" ? o : Array.isArray(o) ? o[0] || 0 : o
|
|
51
55
|
);
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
|
-
|
|
55
|
-
children: /* @__PURE__ */ m.jsx(
|
|
56
|
-
|
|
58
|
+
...$,
|
|
59
|
+
children: /* @__PURE__ */ m.jsx(B, { className: "relative h-3 w-full cursor-pointer", children: ({ state: s }) => /* @__PURE__ */ m.jsx(
|
|
60
|
+
G,
|
|
57
61
|
{
|
|
58
62
|
state: s,
|
|
59
63
|
type: r,
|
|
60
64
|
showTypeValue: A,
|
|
61
65
|
isHiddenValue: w,
|
|
62
66
|
suffix: M,
|
|
67
|
+
suffixRangeCustom: P,
|
|
63
68
|
classNameFilled: v,
|
|
64
69
|
classNameUnfilled: N,
|
|
65
70
|
modeTooltip: j,
|
|
@@ -71,5 +76,5 @@ const Q = ({
|
|
|
71
76
|
) });
|
|
72
77
|
};
|
|
73
78
|
export {
|
|
74
|
-
|
|
79
|
+
U as Slider
|
|
75
80
|
};
|
package/dist/index.es18.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as n } from "./index.es25.js";
|
|
2
|
-
import { CheckIcon as I } from "./index.
|
|
2
|
+
import { CheckIcon as I } from "./index.es42.js";
|
|
3
3
|
import { motion as f } from "framer-motion";
|
|
4
4
|
import { useRef as k } from "react";
|
|
5
5
|
import { useButton as D, useHover as V } from "react-aria";
|
|
6
|
-
import z from "./index.
|
|
7
|
-
import B from "./index.
|
|
6
|
+
import z from "./index.es51.js";
|
|
7
|
+
import B from "./index.es52.js";
|
|
8
8
|
import { cn as H } from "./index.es26.js";
|
|
9
|
-
import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.
|
|
9
|
+
import { stepVariants as R, iconVariants as $, labelVariants as E } from "./index.es53.js";
|
|
10
10
|
const c = z(B), x = (s, e) => typeof s == "function" ? /* @__PURE__ */ n.jsx(s, { step: e || 0 }) : s, C = (s) => {
|
|
11
11
|
var t, r, o, a, i;
|
|
12
12
|
const e = (t = c == null ? void 0 : c.theme) == null ? void 0 : t.colors;
|
package/dist/index.es19.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./index.es25.js";
|
|
2
2
|
import { Switch as u } from "react-aria-components";
|
|
3
3
|
import { cn as c } from "./index.es26.js";
|
|
4
|
-
import { ContentSwitch as L } from "./index.
|
|
5
|
-
import { SwitchIndicator as v } from "./index.
|
|
6
|
-
import { switchVariants as b } from "./index.
|
|
4
|
+
import { ContentSwitch as L } from "./index.es57.js";
|
|
5
|
+
import { SwitchIndicator as v } from "./index.es58.js";
|
|
6
|
+
import { switchVariants as b } from "./index.es38.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
children: f,
|
|
9
9
|
label: m,
|
package/dist/index.es2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as m } from "./index.es25.js";
|
|
2
2
|
import { useState as g } from "react";
|
|
3
3
|
import { cn as j } from "./index.es26.js";
|
|
4
|
-
import { AccordionItem as h } from "./index.
|
|
4
|
+
import { AccordionItem as h } from "./index.es27.js";
|
|
5
5
|
const C = ({
|
|
6
6
|
items: a,
|
|
7
7
|
accordionClassName: e,
|