@simpli-route/apollo-ds 0.1.1 → 0.1.2
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/Checkbox/types.d.ts +0 -4
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.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.cjs4.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es10.js +3 -3
- package/dist/index.es17.js +1 -1
- package/dist/index.es26.js +11 -10
- package/dist/index.es27.js +10 -12
- package/dist/index.es28.js +11 -18
- package/dist/index.es29.js +19 -20
- package/dist/index.es30.js +20 -10
- package/dist/index.es31.js +8 -8
- package/dist/index.es32.js +10 -31
- package/dist/index.es33.js +31 -11
- package/dist/index.es4.js +8 -8
- package/dist/index.es6.js +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es9.js +2 -2
- package/package.json +1 -1
|
@@ -12,10 +12,6 @@ export interface CheckboxProps extends AriaCheckboxProps {
|
|
|
12
12
|
* Indicates if the checkbox is mode indeterminate
|
|
13
13
|
*/
|
|
14
14
|
isIndeterminate?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Indicates if the checkbox is selected
|
|
17
|
-
*/
|
|
18
|
-
isSelected: boolean;
|
|
19
15
|
}
|
|
20
16
|
export interface MarkIconProps {
|
|
21
17
|
className?: string;
|
package/dist/index.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),j=require("react"),q=require("react-aria"),c=require("react-stately"),r=require("./index.cjs16.js"),T=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),j=require("react"),q=require("react-aria"),c=require("react-stately"),r=require("./index.cjs16.js"),T=require("./index.cjs31.js"),f=require("./index.cjs32.js"),p=require("./index.cjs33.js"),l=a=>{var i;const{rootClassName:u,tabClassName:x,tabPanelClassName:m,orientation:t="horizontal",id:b=void 0}=a,e=c.useTabListState(a),n=j.useRef(null),{tabListProps:d}=q.useTabList(a,e,n);return s.jsxRuntimeExports.jsxs("div",{className:r.cn(p.tabsVariants({orientation:t}),u),children:[s.jsxRuntimeExports.jsx("div",{...d,ref:n,className:r.cn("flex",t==="horizontal"?"flex-row flex-wrap":"flex-col"),children:[...e.collection].map(o=>s.jsxRuntimeExports.jsx(T.Tab,{item:o,state:e,orientation:t,className:x,id:b},o.key))}),s.jsxRuntimeExports.jsx(f.TabPanel,{state:e,className:r.cn("p-2",t==="horizontal"?"pl-2":"pt-2",m)},(i=e.selectedItem)==null?void 0:i.key)]})};l.Item=c.Item;exports.Tabs=l;
|
package/dist/index.cjs17.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),n=require("./index.cjs26.js"),r=require("./index.cjs16.js"),m=({label:t,section:o,active:e,onToggle:i,itemClassName:c,sectionClassName:l,hasIcon:u=!0})=>{const x=r.cn("rounded-md border border-solid border-purple-200 bg-gray-100",c),d=r.cn("px-4 pb-4",l),a=e?n.MinusIcon:n.PlusIcon;return s.jsxRuntimeExports.jsxs("div",{className:x,children:[s.jsxRuntimeExports.jsxs("button",{className:"flex w-full cursor-pointer items-center gap-x-4 p-4",onClick:i,children:[s.jsxRuntimeExports.jsx("div",{className:"flex-1",children:t}),u?s.jsxRuntimeExports.jsx("span",{className:`shrink-0 transition duration-300 ${e?"-rotate-180":"rotate-0"}`,children:s.jsxRuntimeExports.jsx(a,{className:"size-6"})}):null]}),e?s.jsxRuntimeExports.jsx("div",{className:d,children:o}):null]})};exports.AccordionItem=m;
|
package/dist/index.cjs26.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 n=require("./index.cjs38.js"),o=require("./index.cjs39.js"),c=require("./index.cjs40.js"),r=require("./index.cjs41.js"),e=require("./index.cjs42.js");var I=n.DownChevronIcon_1,u=o.InfoIcon_1,s=c.MinusIcon_1,v=r.PlusIcon_1,i=e.UpChevronIcon_1;exports.DownChevronIcon=I;exports.InfoIcon=u;exports.MinusIcon=s;exports.PlusIcon=v;exports.UpChevronIcon=i;
|
package/dist/index.cjs27.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),i=require("./index.cjs16.js"),x=({description:e,descriptionClasses:s,errorMessage:t,errorClasses:u,isInvalidField:n})=>e&&!n?r.jsxRuntimeExports.jsx("div",{slot:"description",className:i.cn("text-xs leading-3 text-neutral-700",s),children:e}):t&&n?r.jsxRuntimeExports.jsx("div",{className:i.cn("text-xs leading-3 text-error-500",u),children:t}):null;exports.CaptionNumberField=x;
|
package/dist/index.cjs28.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),s=require("./index.cjs26.js"),n=require("react-aria-components"),i=require("./index.cjs16.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.cjs29.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),i=require("./index.cjs16.js"),m=({label:e,description:s,errorMessage:x,isDisabled:n,isInvalid:l,children:r,renderLabelIcon:u})=>!e&&!s&&!r?null:t.jsxRuntimeExports.jsxs("div",{className:"flex flex-col",children:[e?t.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-x-1",children:[t.jsxRuntimeExports.jsx("p",{className:i.cn("text-sm font-semibold",n?"text-neutral-600":"text-neutral-900"),children:e}),u?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:u}):null]}):r,s&&!x&&t.jsxRuntimeExports.jsx("p",{className:i.cn("text-xs",n?"text-neutral-600":"text-neutral-800"),children:s}),l&&x&&t.jsxRuntimeExports.jsx("p",{className:"text-sm text-red-500",children:x})]});exports.ContentSwitch=m;
|
package/dist/index.cjs30.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.cjs15.js"),s=require("./index.cjs16.js"),a=require("./index.cjs21.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.cjs31.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 b=require("./index.cjs15.js"),m=require("react"),q=require("react-aria"),v=require("./index.cjs16.js"),x=require("./index.cjs33.js"),y=r=>{const{className:n,item:i,orientation:c,state:e,id:o=void 0}=r,{key:t,rendered:a}=i,u=e.selectedKey===t,s=m.useRef(null),{tabProps:d}=q.useTab({key:String(t)},e,s),l=v.cn(x.tabVariants({isActive:u,orientation:c}),n);return b.jsxRuntimeExports.jsx("div",{...d,ref:s,className:l,id:o,children:a})};exports.Tab=y;
|
package/dist/index.cjs32.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.cjs15.js"),l=require("react"),u=require("react-aria"),d=require("./index.cjs16.js"),b=r=>{var t;const{className:n,state:e,...c}=r,s=l.useRef(null),{tabPanelProps:a}=u.useTabPanel(c,e,s),o=d.cn("",n);return i.jsxRuntimeExports.jsx("div",{...a,ref:s,className:o,children:(t=e.selectedItem)==null?void 0:t.props.children})};exports.TabPanel=b;
|
package/dist/index.cjs33.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"),t=r.cva("flex h-full max-h-12",{variants:{orientation:{horizontal:"flex-col",vertical:"flex-row"}}}),e=r.cva("group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",{variants:{isActive:{true:"bg-primary-50 text-primary-600 ",false:"text-neutral-500 hover:text-primary-900"},orientation:{horizontal:"border-b-2 border-transparent",vertical:"border-r-2 border-transparent"}},compoundVariants:[{isActive:!0,orientation:"horizontal",class:"border-b-2 border-primary-500"},{isActive:!1,orientation:"horizontal",class:"border-b-2 border-primary-200"},{isActive:!1,orientation:"vertical",class:"border-r-2 border-primary-200"},{isActive:!0,orientation:"vertical",class:"border-r-2 border-primary-500"}]});exports.tabVariants=e;exports.tabsVariants=t;
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),j=require("react-aria-components"),x=require("./index.cjs16.js"),p=require("./index.cjs24.js"),b=require("./index.cjs19.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.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),p=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),p=require("./index.cjs26.js"),j=require("react"),s=require("react-aria-components"),f=require("./index.cjs16.js"),g=require("./index.cjs11.js"),T=require("./index.cjs12.js");function b(r,i){const{labelClassName:o}=r,[a,c]=s.useContextProps(r,i,s.LabelContext),{children:n,tooltipText:l,tooltipSupportText:u,tooltipProps:e,isRequired:x=!1,...m}=a;if(!n)return null;const d=f.cn("flex select-none items-center text-sm leading-6 text-neutral-900",o);return t.jsxRuntimeExports.jsxs(s.Label,{className:d,...m,ref:c,children:[n,x?t.jsxRuntimeExports.jsx("span",{className:"ml-1 text-neutral-900",children:"*"}):null,l?t.jsxRuntimeExports.jsxs(T.TooltipTrigger,{delay:100,children:[t.jsxRuntimeExports.jsx(p.InfoIcon,{className:"ml-1 size-4 text-primary-600"}),t.jsxRuntimeExports.jsx(g.Tooltip,{placement:(e==null?void 0:e.placement)||"right",supportText:u,size:(e==null?void 0:e.size)||"sm",children:l})]}):null]})}const q=j.forwardRef(b);exports.Label=q;
|
package/dist/index.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),r=require("react-aria-components"),n=require("./index.cjs16.js"),S=require("./index.cjs6.js"),g=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs15.js"),r=require("react-aria-components"),n=require("./index.cjs16.js"),S=require("./index.cjs6.js"),g=require("./index.cjs27.js"),y=require("./index.cjs28.js"),B=require("./index.cjs20.js"),I=({size:l="sm",label:a,description:o,errorMessage:x,isDisabled:e=!1,isReadOnly:s=!1,isRequired:c=!1,tooltipText:m,tooltipSupportText:p,tooltipProps:d,className:j,descriptionClasses:N,errorClasses:f,validationState:i="default",inputClassName:v,maxValue:b,minValue:q=0,autoFocus:E=!1,maxLength:R,...F})=>{const u=i==="invalid"&&!e;return t.jsxRuntimeExports.jsx("div",{className:n.cn("flex",j),children:t.jsxRuntimeExports.jsxs(r.NumberField,{autoFocus:E,className:e?"opacity-70":"",isDisabled:e,isReadOnly:s,maxValue:b,minValue:q,...F,children:[t.jsxRuntimeExports.jsx(S.Label,{labelClassName:n.cn("leading-[19.07px] text-left mb-0.5",{"text-neutral-700":e}),isRequired:c,tooltipText:m,tooltipSupportText:p,tooltipProps:d,children:a}),t.jsxRuntimeExports.jsxs(r.Group,{className:"relative mb-0.5 w-full rounded",children:[t.jsxRuntimeExports.jsx(r.Input,{disabled:e,maxLength:R,className:({isFocused:h,isHovered:C})=>n.cn(B.inputNumberVariant({size:l,isDisabled:e,isReadOnly:s,isHovered:C,isFocused:h,validationState:i==="valid"?"valid":u?"invalid":"default"}),v)}),t.jsxRuntimeExports.jsx(y.StepperButton,{isDisabled:e})]}),t.jsxRuntimeExports.jsx(g.CaptionNumberField,{description:o,descriptionClasses:N,errorMessage:x,errorClasses:f,isInvalidField:u})]})})};exports.NumberField=I;
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),p=require("react-aria-components"),c=require("./index.cjs16.js"),q=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),p=require("react-aria-components"),c=require("./index.cjs16.js"),q=require("./index.cjs29.js"),R=require("./index.cjs30.js"),v=require("./index.cjs21.js"),E=({children:s,label:i,description:o,errorMessage:x,validationState:u,size:e="md",isDisabled:t=!1,isSelected:n=!1,onChange:f,renderLabelIcon:m=null,"aria-label":h,"aria-describedby":j})=>{const l=u==="invalid"&&!t,w=e==="sm"?{offLeft:3,onLeft:19}:{offLeft:4,onLeft:28};return r.jsxRuntimeExports.jsxs("label",{className:c.cn("group flex flex-row gap-2",(i||s)&&o?"items-start":"items-center"),children:[r.jsxRuntimeExports.jsx(p.Switch,{isDisabled:t,isSelected:n,"aria-checked":n,"aria-label":h,"aria-describedby":j,onChange:f,children:({isFocusVisible:d,isHovered:a})=>r.jsxRuntimeExports.jsx("div",{className:c.cn(v.switchVariants({isSelected:n,isDisabled:t,isFocusVisible:d,size:e,isHoveredWhenOff:a&&!n})),children:r.jsxRuntimeExports.jsx(R.SwitchIndicator,{isSelected:n,isDisabled:t,isHovered:a,size:e,dimensions:w})})}),r.jsxRuntimeExports.jsx(q.ContentSwitch,{label:i,description:o,errorMessage:x,isDisabled:t,isInvalid:l,renderLabelIcon:m,children:s})]})};exports.Switch=E;
|
package/dist/index.es10.js
CHANGED
|
@@ -3,9 +3,9 @@ import { useRef as x } from "react";
|
|
|
3
3
|
import { useTabList as b } from "react-aria";
|
|
4
4
|
import { useTabListState as d, Item as N } from "react-stately";
|
|
5
5
|
import { cn as e } from "./index.es16.js";
|
|
6
|
-
import { Tab as j } from "./index.
|
|
7
|
-
import { TabPanel as u } from "./index.
|
|
8
|
-
import { tabsVariants as h } from "./index.
|
|
6
|
+
import { Tab as j } from "./index.es31.js";
|
|
7
|
+
import { TabPanel as u } from "./index.es32.js";
|
|
8
|
+
import { tabsVariants as h } from "./index.es33.js";
|
|
9
9
|
const T = (a) => {
|
|
10
10
|
var m;
|
|
11
11
|
const { rootClassName: i, tabClassName: n, tabPanelClassName: c, orientation: o = "horizontal", id: f = void 0 } = a, t = d(a), r = x(null), { tabListProps: p } = b(a, t, r);
|
package/dist/index.es17.js
CHANGED
package/dist/index.es26.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
errorClasses: s,
|
|
8
|
-
isInvalidField: e
|
|
9
|
-
}) => t && !e ? /* @__PURE__ */ n.jsx("div", { slot: "description", className: x("text-xs leading-3 text-neutral-700", i), children: t }) : r && e ? /* @__PURE__ */ n.jsx("div", { className: x("text-xs leading-3 text-error-500", s), children: r }) : null;
|
|
1
|
+
import { D as o } from "./index.es38.js";
|
|
2
|
+
import { I as n } from "./index.es39.js";
|
|
3
|
+
import { M as r } from "./index.es40.js";
|
|
4
|
+
import { P as I } from "./index.es41.js";
|
|
5
|
+
import { U as a } from "./index.es42.js";
|
|
6
|
+
var f = o, i = n, t = r, e = I, _ = a;
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
f as DownChevronIcon,
|
|
9
|
+
i as InfoIcon,
|
|
10
|
+
t as MinusIcon,
|
|
11
|
+
e as PlusIcon,
|
|
12
|
+
_ as UpChevronIcon
|
|
12
13
|
};
|
package/dist/index.es27.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
] });
|
|
11
|
-
};
|
|
1
|
+
import { j as n } from "./index.es15.js";
|
|
2
|
+
import { cn as x } from "./index.es16.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
description: t,
|
|
5
|
+
descriptionClasses: i,
|
|
6
|
+
errorMessage: r,
|
|
7
|
+
errorClasses: s,
|
|
8
|
+
isInvalidField: e
|
|
9
|
+
}) => t && !e ? /* @__PURE__ */ n.jsx("div", { slot: "description", className: x("text-xs leading-3 text-neutral-700", i), children: t }) : r && e ? /* @__PURE__ */ n.jsx("div", { className: x("text-xs leading-3 text-error-500", s), children: r }) : null;
|
|
12
10
|
export {
|
|
13
|
-
|
|
11
|
+
m as CaptionNumberField
|
|
14
12
|
};
|
package/dist/index.es28.js
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "./index.es15.js";
|
|
2
|
+
import { UpChevronIcon as n, DownChevronIcon as o } from "./index.es26.js";
|
|
3
|
+
import { Button as s } from "react-aria-components";
|
|
2
4
|
import { cn as c } from "./index.es16.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
renderLabelIcon: m
|
|
11
|
-
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
-
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
-
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
-
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
-
] }) : n,
|
|
16
|
-
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
-
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
-
] });
|
|
5
|
+
const x = ({ isDisabled: r }) => {
|
|
6
|
+
const t = c("flex items-center justify-center", r ? "text-neutral-600" : "text-primary-500");
|
|
7
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 right-0 flex flex-col items-center justify-center space-y-0.5 pr-2", children: [
|
|
8
|
+
/* @__PURE__ */ e.jsx(s, { slot: "increment", className: t, children: /* @__PURE__ */ e.jsx(n, { className: "size-3.5" }) }),
|
|
9
|
+
/* @__PURE__ */ e.jsx(s, { slot: "decrement", className: t, children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" }) })
|
|
10
|
+
] });
|
|
11
|
+
};
|
|
19
12
|
export {
|
|
20
|
-
|
|
13
|
+
x as StepperButton
|
|
21
14
|
};
|
package/dist/index.es29.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
);
|
|
1
|
+
import { j as t } from "./index.es15.js";
|
|
2
|
+
import { cn as c } from "./index.es16.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
label: e,
|
|
5
|
+
description: x,
|
|
6
|
+
errorMessage: s,
|
|
7
|
+
isDisabled: l,
|
|
8
|
+
isInvalid: r,
|
|
9
|
+
children: n,
|
|
10
|
+
renderLabelIcon: m
|
|
11
|
+
}) => !e && !x && !n ? null : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
12
|
+
e ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
13
|
+
/* @__PURE__ */ t.jsx("p", { className: c("text-sm font-semibold", l ? "text-neutral-600" : "text-neutral-900"), children: e }),
|
|
14
|
+
m ? /* @__PURE__ */ t.jsx(t.Fragment, { children: m }) : null
|
|
15
|
+
] }) : n,
|
|
16
|
+
x && !s && /* @__PURE__ */ t.jsx("p", { className: c("text-xs", l ? "text-neutral-600" : "text-neutral-800"), children: x }),
|
|
17
|
+
r && s && /* @__PURE__ */ t.jsx("p", { className: "text-sm text-red-500", children: s })
|
|
18
|
+
] });
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
i as ContentSwitch
|
|
22
21
|
};
|
package/dist/index.es30.js
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { j as i } from "./index.es15.js";
|
|
2
|
+
import { cn as m } from "./index.es16.js";
|
|
3
|
+
import { indicatorVariants as n } from "./index.es21.js";
|
|
4
|
+
const c = ({ isSelected: r, isDisabled: o, isHovered: f, size: a, dimensions: t }) => /* @__PURE__ */ i.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
className: m(
|
|
8
|
+
n({
|
|
9
|
+
isSelected: r,
|
|
10
|
+
isDisabled: o,
|
|
11
|
+
size: a,
|
|
12
|
+
isHoveredWhenOff: f && !r
|
|
13
|
+
})
|
|
14
|
+
),
|
|
15
|
+
style: {
|
|
16
|
+
left: r ? `${t.onLeft}px` : `${t.offLeft}px`
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
);
|
|
10
20
|
export {
|
|
11
|
-
|
|
21
|
+
c as SwitchIndicator
|
|
12
22
|
};
|
package/dist/index.es31.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as f } from "./index.es15.js";
|
|
2
2
|
import { useRef as l } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { className:
|
|
8
|
-
return /* @__PURE__ */
|
|
3
|
+
import { useTab as u } from "react-aria";
|
|
4
|
+
import { cn as b } from "./index.es16.js";
|
|
5
|
+
import { tabVariants as x } from "./index.es33.js";
|
|
6
|
+
const R = (o) => {
|
|
7
|
+
const { className: r, item: i, orientation: n, state: t, id: a = void 0 } = o, { key: s, rendered: c } = i, m = t.selectedKey === s, e = l(null), { tabProps: p } = u({ key: String(s) }, t, e), d = b(x({ isActive: m, orientation: n }), r);
|
|
8
|
+
return /* @__PURE__ */ f.jsx("div", { ...p, ref: e, className: d, id: a, children: c });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
R as Tab
|
|
12
12
|
};
|
package/dist/index.es32.js
CHANGED
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
"group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",
|
|
11
|
-
{
|
|
12
|
-
variants: {
|
|
13
|
-
isActive: {
|
|
14
|
-
true: "bg-primary-50 text-primary-600 ",
|
|
15
|
-
false: "text-neutral-500 hover:text-primary-900"
|
|
16
|
-
},
|
|
17
|
-
orientation: {
|
|
18
|
-
horizontal: "border-b-2 border-transparent",
|
|
19
|
-
vertical: "border-r-2 border-transparent"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
compoundVariants: [
|
|
23
|
-
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
24
|
-
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-200" },
|
|
25
|
-
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
26
|
-
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
);
|
|
1
|
+
import { j as m } from "./index.es15.js";
|
|
2
|
+
import { useRef as l } from "react";
|
|
3
|
+
import { useTabPanel as p } from "react-aria";
|
|
4
|
+
import { cn as i } from "./index.es16.js";
|
|
5
|
+
const P = (r) => {
|
|
6
|
+
var t;
|
|
7
|
+
const { className: o, state: s, ...n } = r, e = l(null), { tabPanelProps: a } = p(n, s, e), c = i("", o);
|
|
8
|
+
return /* @__PURE__ */ m.jsx("div", { ...a, ref: e, className: c, children: (t = s.selectedItem) == null ? void 0 : t.props.children });
|
|
9
|
+
};
|
|
30
10
|
export {
|
|
31
|
-
|
|
32
|
-
e as tabsVariants
|
|
11
|
+
P as TabPanel
|
|
33
12
|
};
|
package/dist/index.es33.js
CHANGED
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
|
2
|
+
const e = r("flex h-full max-h-12", {
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: "flex-col",
|
|
6
|
+
vertical: "flex-row"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}), i = r(
|
|
10
|
+
"group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
isActive: {
|
|
14
|
+
true: "bg-primary-50 text-primary-600 ",
|
|
15
|
+
false: "text-neutral-500 hover:text-primary-900"
|
|
16
|
+
},
|
|
17
|
+
orientation: {
|
|
18
|
+
horizontal: "border-b-2 border-transparent",
|
|
19
|
+
vertical: "border-r-2 border-transparent"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
compoundVariants: [
|
|
23
|
+
{ isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
|
|
24
|
+
{ isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-200" },
|
|
25
|
+
{ isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
|
|
26
|
+
{ isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
7
30
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t as MinusIcon,
|
|
11
|
-
e as PlusIcon,
|
|
12
|
-
_ as UpChevronIcon
|
|
31
|
+
i as tabVariants,
|
|
32
|
+
e as tabsVariants
|
|
13
33
|
};
|
package/dist/index.es4.js
CHANGED
|
@@ -7,9 +7,9 @@ const g = ({
|
|
|
7
7
|
isIndeterminate: x = !1,
|
|
8
8
|
isDisabled: a = !1,
|
|
9
9
|
className: c,
|
|
10
|
-
children:
|
|
10
|
+
children: s,
|
|
11
11
|
onChange: l,
|
|
12
|
-
isSelected:
|
|
12
|
+
isSelected: t = !1,
|
|
13
13
|
id: n,
|
|
14
14
|
...p
|
|
15
15
|
}) => {
|
|
@@ -18,15 +18,15 @@ const g = ({
|
|
|
18
18
|
isDisabled: a,
|
|
19
19
|
isFocusVisible: o,
|
|
20
20
|
isHovered: r,
|
|
21
|
-
isSelected:
|
|
22
|
-
label: !!
|
|
21
|
+
isSelected: t,
|
|
22
|
+
label: !!s
|
|
23
23
|
})
|
|
24
24
|
);
|
|
25
25
|
return /* @__PURE__ */ e.jsx(
|
|
26
26
|
h,
|
|
27
27
|
{
|
|
28
28
|
className: m("group flex items-center", c),
|
|
29
|
-
isSelected:
|
|
29
|
+
isSelected: t,
|
|
30
30
|
isDisabled: a,
|
|
31
31
|
id: n,
|
|
32
32
|
onChange: l,
|
|
@@ -37,16 +37,16 @@ const g = ({
|
|
|
37
37
|
{
|
|
38
38
|
isIndeterminate: x,
|
|
39
39
|
isHovered: r,
|
|
40
|
-
isSelected:
|
|
40
|
+
isSelected: t,
|
|
41
41
|
className: "size-3"
|
|
42
42
|
}
|
|
43
43
|
) }),
|
|
44
|
-
|
|
44
|
+
s && /* @__PURE__ */ e.jsx(
|
|
45
45
|
"span",
|
|
46
46
|
{
|
|
47
47
|
className: m("select-none text-base leading-6", a ? "text-neutral-500" : "text-primary-900"),
|
|
48
48
|
id: n,
|
|
49
|
-
children:
|
|
49
|
+
children: s
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
] })
|
package/dist/index.es6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./index.es15.js";
|
|
2
|
-
import { InfoIcon as p } from "./index.
|
|
2
|
+
import { InfoIcon as p } from "./index.es26.js";
|
|
3
3
|
import { forwardRef as u } from "react";
|
|
4
4
|
import { useContextProps as d, LabelContext as b, Label as j } from "react-aria-components";
|
|
5
5
|
import { cn as g } from "./index.es16.js";
|
package/dist/index.es8.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as r } from "./index.es15.js";
|
|
|
2
2
|
import { NumberField as g, Group as w, Input as B } from "react-aria-components";
|
|
3
3
|
import { cn as l } from "./index.es16.js";
|
|
4
4
|
import { Label as E } from "./index.es6.js";
|
|
5
|
-
import { CaptionNumberField as G } from "./index.
|
|
6
|
-
import { StepperButton as S } from "./index.
|
|
5
|
+
import { CaptionNumberField as G } from "./index.es27.js";
|
|
6
|
+
import { StepperButton as S } from "./index.es28.js";
|
|
7
7
|
import { inputNumberVariant as V } from "./index.es20.js";
|
|
8
8
|
const H = ({
|
|
9
9
|
size: o = "sm",
|
package/dist/index.es9.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./index.es15.js";
|
|
2
2
|
import { Switch as u } from "react-aria-components";
|
|
3
3
|
import { cn as c } from "./index.es16.js";
|
|
4
|
-
import { ContentSwitch as L } from "./index.
|
|
5
|
-
import { SwitchIndicator as v } from "./index.
|
|
4
|
+
import { ContentSwitch as L } from "./index.es29.js";
|
|
5
|
+
import { SwitchIndicator as v } from "./index.es30.js";
|
|
6
6
|
import { switchVariants as b } from "./index.es21.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
children: f,
|