@simpli-route/apollo-ds 0.1.0 → 0.1.1
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/Tooltip/Tooltip.d.ts +1 -2
- package/dist/components/Tooltip/types.d.ts +11 -1
- package/dist/components/Tooltip/variants.d.ts +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.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.cjs4.js +1 -1
- package/dist/index.cjs5.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.es11.js +11 -11
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +154 -112
- package/dist/index.es19.js +20 -150
- package/dist/index.es20.js +36 -20
- package/dist/index.es21.js +78 -45
- package/dist/index.es22.js +3 -92
- package/dist/index.es23.js +22 -3
- package/dist/index.es24.js +28 -20
- package/dist/index.es25.js +131 -30
- package/dist/index.es26.js +10 -11
- package/dist/index.es27.js +12 -10
- package/dist/index.es28.js +18 -11
- package/dist/index.es29.js +20 -10
- package/dist/index.es3.js +4 -4
- package/dist/index.es30.js +8 -8
- package/dist/index.es31.js +10 -31
- package/dist/index.es32.js +31 -19
- package/dist/index.es33.js +11 -20
- package/dist/index.es34.js +10 -14
- package/dist/index.es4.js +2 -2
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +11 -11
- package/dist/index.es8.js +3 -3
- package/dist/index.es9.js +3 -3
- package/dist/style.css +0 -6
- package/package.json +1 -1
|
@@ -9,5 +9,4 @@ import { TooltipProps } from './types';
|
|
|
9
9
|
* import { Tooltip, TooltipTrigger } from "@simpli-route/apollo-ds";
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
declare const
|
|
13
|
-
export { _Tooltip as Tooltip };
|
|
12
|
+
export declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<unknown>>;
|
|
@@ -2,13 +2,23 @@ import { TooltipTriggerProps as BaseTooltipTriggerProps } from 'react-stately';
|
|
|
2
2
|
import { AriaTooltipProps } from 'react-aria';
|
|
3
3
|
import { ReactElement, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
export type Placement = "none" | "top-start" | "top" | "top-end" | "right
|
|
5
|
+
export type Placement = "none" | "top-start" | "top" | "top-end" | "right" | "bottom-start" | "bottom" | "bottom-end" | "left";
|
|
6
6
|
export interface TooltipProps extends AriaTooltipProps {
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Define one support text, additional to children
|
|
10
10
|
*/
|
|
11
11
|
supportText?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Define the delay (in ms) for the tooltip
|
|
14
|
+
* @default 100
|
|
15
|
+
*/
|
|
16
|
+
delay?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Define the closeDelay (in ms) for the tooltip
|
|
19
|
+
* @default 500
|
|
20
|
+
*/
|
|
21
|
+
closeDelay?: number;
|
|
12
22
|
placement?: Placement;
|
|
13
23
|
/**
|
|
14
24
|
* Define size of the tooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const tooltipVariants: (props?: ({
|
|
2
2
|
mode?: "light" | "dark" | null | undefined;
|
|
3
3
|
hasSupportText?: boolean | null | undefined;
|
|
4
|
-
placement?: "none" | "left" | "right" | "top-start" | "top" | "top-end" | "
|
|
4
|
+
placement?: "none" | "left" | "right" | "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => 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.cjs30.js"),f=require("./index.cjs31.js"),p=require("./index.cjs32.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.cjs11.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.cjs15.js"),r=require("react"),n=require("react-aria"),i=require("./index.cjs16.js"),P=require("./index.cjs22.js"),b=require("./index.cjs34.js"),a=r.forwardRef((l,c)=>{const{placement:p="bottom",size:u="md",className:x,mode:e="dark",supportText:t,children:d,...o}=l,{state:m,...T}=r.useContext(P.TooltipContext),{tooltipProps:q}=n.useTooltip(o,m),j=i.cn(b.tooltipVariants({placement:p,size:u,mode:e,hasSupportText:!!t}),x);return s.jsxRuntimeExports.jsxs("span",{className:j,...n.mergeProps(o,q,T),ref:c,children:[d,t?s.jsxRuntimeExports.jsx("div",{className:i.cn("!text-sm !font-normal !leading-[19.07px]",e==="dark"?"!text-blue-50":"!text-neutral-700"),children:t}):null]})});a.displayName="Tooltip";exports.Tooltip=a;
|
package/dist/index.cjs12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs15.js"),t=require("react"),x=require("react-aria"),T=require("react-stately"),d=require("./index.cjs16.js"),m=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs15.js"),t=require("react"),x=require("react-aria"),T=require("react-stately"),d=require("./index.cjs16.js"),m=require("./index.cjs22.js"),h=i=>{const{children:e,isDisabled:s,trigger:l,className:c}=i,r=T.useTooltipTriggerState(i),o=t.useRef(null),{triggerProps:g,tooltipProps:a}=x.useTooltipTrigger({isDisabled:s,trigger:l},r,o),[u,p]=t.Children.toArray(e);if(!Array.isArray(e)||e.length>2)throw new Error("TooltipTrigger must have exactly 2 children");return n.jsxRuntimeExports.jsxs("span",{className:d.cn("relative inline-flex items-center",c),children:[t.cloneElement(u,{...g,ref:o}),n.jsxRuntimeExports.jsx(m.TooltipContext.Provider,{value:{state:r,...a},children:r.isOpen?p:null})]})};exports.TooltipTrigger=h;
|
package/dist/index.cjs13.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs15.js"),c=require("./index.cjs16.js"),o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs15.js"),c=require("./index.cjs16.js"),o=require("./index.cjs23.js");function a(e){const{children:t,type:s="body",className:n}=e,r=c.cn(o.textVariants({type:s}),n);return i.jsxRuntimeExports.jsx("p",{className:r,children:t})}exports.Text=a;
|
package/dist/index.cjs14.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs15.js"),o=require("./index.cjs16.js"),u=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs15.js"),o=require("./index.cjs16.js"),u=require("./index.cjs23.js");function m(t){const{children:s,type:e="h1",size:i=e,className:n,...r}=t,c=e,a=o.cn(u.titleVariants({size:i}),n);return l.jsxRuntimeExports.jsx(c,{className:a,...r,children:s})}exports.Title=m;
|
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.cjs33.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.cjs18.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("inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",{variants:{intent:{primary:"bg-primary-500 text-primary-50",secondary:"border border-primary-500 bg-primary-50 text-primary-500",tertiary:"text-primary-500",outline:"border border-primary-500 text-primary-500",success:"border bg-success-500 text-success-50",error:"border bg-error-500 text-error-50",orangeWarning:"border bg-orange-warning-500 text-orange-warning-50",yellowWarning:"border bg-yellow-warning-500 text-[#6F5711]",info:"border bg-blue-500 text-blue-50"},size:{xs:"rounded px-3 py-1",sm:"rounded px-3 py-2",md:"rounded-lg px-4 py-3",lg:"rounded-lg px-6 py-4"},isDisabled:{true:"pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"},isHovered:{true:""},isActive:{true:""},fullWidth:{true:"w-full",false:"w-fit"},isLoading:{true:"pointer-events-none cursor-not-allowed opacity-70"},isFocused:{true:"focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",false:""}},defaultVariants:{intent:"primary",size:"md"},compoundVariants:[{intent:"primary",isHovered:!0,class:"bg-primary-700"},{intent:"secondary",isHovered:!0,class:"bg-primary-200"},{intent:"tertiary",isHovered:!0,class:"bg-primary-300 text-primary-800"},{intent:"outline",isHovered:!0,class:"bg-primary-500 text-primary-50"},{intent:"success",isHovered:!0,class:"bg-success-700 text-neutral-50"},{intent:"error",isHovered:!0,class:"bg-error-700 text-error-50"},{intent:"orangeWarning",isHovered:!0,class:"bg-orange-warning-700 text-orange-warning-50"},{intent:"yellowWarning",isHovered:!0,class:"bg-yellow-warning-700 text-neutral-50"},{intent:"info",isHovered:!0,class:"bg-blue-700 text-blue-50"},{intent:"success",isFocused:!0,class:"border-[1.5px] focus:ring-success-500"},{intent:"error",isFocused:!0,class:"border-[1.5px] focus:ring-error-500"},{intent:"orangeWarning",isFocused:!0,class:"border-[1.5px] focus:ring-orange-500"},{intent:"yellowWarning",isFocused:!0,class:"border-[1.5px] focus:ring-yellow-500"},{intent:"info",isFocused:!0,class:"border-[1.5px] focus:ring-blue-500"},{intent:"primary",isActive:!0,class:"bg-primary-900"},{intent:"secondary",isActive:!0,class:"bg-primary-300"},{intent:"tertiary",isActive:!0,class:"bg-primary-500 text-white"},{intent:"outline",isActive:!0,class:"border border-primary-500 bg-primary-300 text-primary-500"},{intent:"success",isActive:!0,class:"border border-transparent bg-success-300 text-success-900"},{intent:"error",isActive:!0,class:"border border-transparent bg-error-300 text-error-900"},{intent:"orangeWarning",isActive:!0,class:"border border-transparent bg-orange-warning-300 text-orange-warning-900"},{intent:"yellowWarning",isActive:!0,class:"border border-transparent bg-yellow-warning-300 text-[#6F5711]"},{intent:"info",isActive:!0,class:"border border-transparent bg-blue-200 text-blue-900"}]});exports.buttonVariants=r;
|
package/dist/index.cjs19.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",{variants:{isHovered:{true:""},isSelected:{true:"border-primary-500 bg-primary-500",false:"bg-white"},isFocusVisible:{true:"border-primary-500 group-active:border-primary-500"},isDisabled:{true:"border-neutral-500 cursor-not-allowed"},label:{true:"mr-2"}},compoundVariants:[{isHovered:!0,isSelected:!0,class:"border-none bg-primary-600 group-active:bg-primary-600"},{isHovered:!0,isSelected:!1,isDisabled:!1,class:"border-primary-700 group-active:bg-primary-600"},{isDisabled:!0,isSelected:!0,class:"bg-neutral-500"}]});exports.checkboxVariants=r;
|
package/dist/index.cjs20.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("box-border w-full rounded border border-neutral-500 px-3 placeholder:text-neutral-700 focus:outline-none",{variants:{size:{xs:"py-1",sm:"py-2",md:"py-3",lg:"py-4"},isHovered:{true:""},isFocused:{true:""},isDisabled:{true:"border border-neutral-200 bg-neutral-200 cursor-not-allowed text-neutral-700",false:"bg-neutral-50"},isReadOnly:{true:"cursor-not-allowed"},validationState:{default:"",valid:"border border-success-500",invalid:"border border-error-500"}},compoundVariants:[{isHovered:!0,isDisabled:!1,validationState:"default",class:"border border-neutral-900"},{isFocused:!0,isDisabled:!1,class:"border-2 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"},{validationState:"valid",isFocused:!0,class:"border-2 border-success-500 focus-within:ring-1 focus-within:ring-success-500 focus:border-success-500 focus:ring-1 focus:ring-success-500"},{validationState:"invalid",isFocused:!0,class:"border-2 border-error-500 focus-within:ring-1 focus-within:ring-error-500 focus:border-error-500 focus:ring-1 focus:ring-error-500"}]});exports.inputNumberVariant=e;
|
package/dist/index.cjs21.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("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.cjs22.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext({});exports.TooltipContext=e;
|
package/dist/index.cjs23.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
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.cjs24.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.cjs15.js"),l=require("./index.cjs16.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.cjs25.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"}],i=[{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"}],s=[{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"}],r=e.cva("inline-flex items-center justify-center 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"},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,...i,...s]});exports.buttonVariants=r;
|
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 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.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 e=require("./index.cjs15.js"),s=require("./index.cjs33.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.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 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.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 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.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),E=require("react-aria-components"),j=require("./index.cjs16.js");require("react");const N=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs15.js"),E=require("react-aria-components"),j=require("./index.cjs16.js");require("react");const N=require("./index.cjs18.js");require("./index.cjs19.js");require("./index.cjs5.js");require("./index.cjs6.js");const w=require("./index.cjs7.js");require("./index.cjs20.js");require("./index.cjs21.js");require("./index.cjs10.js");require("./index.cjs11.js");require("react-aria");require("react-stately");require("./index.cjs22.js");require("./index.cjs23.js");const p=({renderPosition:e,leftIcon:o,rightIcon:c,isLoading:t,loaderPosition:i,loaderProps:s})=>{const n=e==="left"?o:e==="right"?c:null;return n||t&&i===e?r.jsxRuntimeExports.jsx("span",{className:e==="left"?"mr-1":"ml-1",children:t&&i===e?r.jsxRuntimeExports.jsx(w.Loader,{size:"sm",...s}):n}):null},y=e=>{const{intent:o="primary",size:c="md",leftIcon:t,rightIcon:i,isDisabled:s,children:n,className:h,isLoading:l,loaderPosition:x="left",loaderProps:f,fullWidth:R=!1,unstyled:d=!1,focus:q=!0,isMobileFullWidth:b=!1,...g}=e,v=(m,u,a)=>j.cn(d?"":N.buttonVariants({intent:o,size:c,isHovered:u||(q||!d?a:!1),isActive:m,isDisabled:s,isFocused:q||!d?a:!1,fullWidth:R,isLoading:l}),h);return r.jsxRuntimeExports.jsxs(E.Button,{"data-disabled":s||void 0,"data-loading":l||void 0,isDisabled:s,className:({isPressed:m,isHovered:u,isFocusVisible:a})=>v(m,u,a),...g,children:[r.jsxRuntimeExports.jsx(p,{renderPosition:"left",loaderPosition:x,loaderProps:f,isLoading:l,leftIcon:t}),r.jsxRuntimeExports.jsx("span",{className:j.cn("flex h-full items-center overflow-hidden whitespace-nowrap",b?"w-full":""),children:n}),r.jsxRuntimeExports.jsx(p,{renderPosition:"right",loaderPosition:x,loaderProps:f,isLoading:l,rightIcon:i})]})};exports.Button=y;
|
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 b=require("./index.cjs15.js"),m=require("react"),q=require("react-aria"),v=require("./index.cjs16.js"),x=require("./index.cjs32.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.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 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.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 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.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 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.cjs34.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='after:content-[""] after:absolute after:border-8 after:border-x-transparent',o=`${t} after:left-4 after:top-[100%] after:border-b-transparent`,a=`${t} after:left-1/2 after:top-[100%] after:-translate-x-1/2 after:border-b-transparent`,l=`${t} after:right-4 after:top-[100%] after:border-b-transparent`,b=`${t} after:left-4 after:bottom-[100%] after:border-t-transparent`,n=`${t} after:left-1/2 after:bottom-[100%] after:-translate-x-1/2 after:border-t-transparent`,f=`${t} after:right-4 after:bottom-[100%] after:border-t-transparent`,r='before:content-[""] before:absolute before:top-1/2 before:-translate-y-1/2 before:border-8 before:border-y-transparent',s=`${r} before:right-[100%] before:border-l-transparent`,p=`${r} before:left-[100%] before:border-r-transparent`,d=e.cva("absolute z-20 w-max max-w-[250px] whitespace-normal break-words rounded-lg transition duration-150 ease-in-out shadow-[0px_2px_4px_-2px_#22242A0F,0px_4px_8px_-2px_#22242A1A]",{variants:{mode:{light:"bg-blue-50 text-neutral-900 after:border-t-blue-50 after:border-b-blue-50 before:border-r-blue-50 before:border-l-blue-50",dark:"bg-blue-900 text-blue-50 after:border-t-blue-900 after:border-b-blue-900 before:border-r-blue-900 before:border-l-blue-900"},hasSupportText:{true:"",false:""},placement:{none:"bottom-full left-1/2 mb-3 -translate-x-1/2","top-start":`bottom-full left-0 mb-3 ${o}`,top:`bottom-full left-1/2 mb-3 -translate-x-1/2 ${a}`,"top-end":`bottom-full right-0 mb-3 ${l}`,right:`left-full top-1/2 ml-3 -translate-y-1/2 ${s}`,"bottom-start":`left-0 top-full mt-3 ${b}`,bottom:`left-1/2 top-full mt-3 -translate-x-1/2 ${n}`,"bottom-end":`right-0 top-full mt-3 ${f}`,left:`right-full top-1/2 mr-3 -translate-y-1/2 ${p}`},size:{sm:"px-4 py-2",md:"px-4 py-3",lg:"p-4"}},compoundVariants:[{hasSupportText:!0,mode:"dark",class:"text-[16px] text-blue-50 font-semibold leading-5"},{hasSupportText:!0,mode:"light",class:"text-[16px] text-neutral-900 font-semibold leading-5"}]});exports.tooltipVariants=d;
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),l=require("react-aria-components"),x=require("./index.cjs16.js"),p=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs15.js"),l=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,id:o,...m})=>{const j=(a,t)=>x.cn(b.checkboxVariants({isDisabled:s,isFocusVisible:a,isHovered:t,isSelected:n,label:!!r}));return e.jsxRuntimeExports.jsx(l.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:j(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.cjs5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),h=require("react"),n=require("react-aria-components"),q=require("./index.cjs16.js"),R=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs15.js"),h=require("react"),n=require("react-aria-components"),q=require("./index.cjs16.js"),R=require("./index.cjs25.js");function g(i,c){const[a,u]=n.useContextProps(i,c,n.ButtonContext),{intent:l="secondary",size:d="lg",isDisabled:o=!1,isActive:x=!1,children:e,className:f,...m}=a,r="flex h-full items-center overflow-hidden whitespace-nowrap";return s.jsxRuntimeExports.jsx(n.Button,{ref:u,className:({isPressed:t,isHovered:p,isFocusVisible:j})=>q.cn(R.buttonVariants({intent:l,size:d,isDisabled:o,isActive:x||t,isHovered:p,isFocused:j}),f),isDisabled:o,...m,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 v=h.forwardRef(g);exports.IconButton=v;
|
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.cjs33.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.cjs26.js"),y=require("./index.cjs27.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.cjs28.js"),R=require("./index.cjs29.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.es30.js";
|
|
7
|
+
import { TabPanel as u } from "./index.es31.js";
|
|
8
|
+
import { tabsVariants as h } from "./index.es32.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.es11.js
CHANGED
|
@@ -2,25 +2,25 @@ import { j as s } from "./index.es15.js";
|
|
|
2
2
|
import { forwardRef as u, useContext as T } from "react";
|
|
3
3
|
import { useTooltip as h, mergeProps as j } from "react-aria";
|
|
4
4
|
import { cn as e } from "./index.es16.js";
|
|
5
|
-
import { TooltipContext as
|
|
6
|
-
import { tooltipVariants as
|
|
7
|
-
|
|
8
|
-
const { placement:
|
|
5
|
+
import { TooltipContext as N } from "./index.es22.js";
|
|
6
|
+
import { tooltipVariants as P } from "./index.es34.js";
|
|
7
|
+
const C = u((p, i) => {
|
|
8
|
+
const { placement: m = "bottom", size: l = "md", className: a, mode: o = "dark", supportText: t, children: n, ...r } = p, { state: c, ...x } = T(N), { tooltipProps: d } = h(r, c), f = e(P({ placement: m, size: l, mode: o, hasSupportText: !!t }), a);
|
|
9
9
|
return /* @__PURE__ */ s.jsxs("span", { className: f, ...j(r, d, x), ref: i, children: [
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
n,
|
|
11
|
+
t ? /* @__PURE__ */ s.jsx(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
className: e(
|
|
15
15
|
"!text-sm !font-normal !leading-[19.07px]",
|
|
16
|
-
|
|
16
|
+
o === "dark" ? "!text-blue-50" : "!text-neutral-700"
|
|
17
17
|
),
|
|
18
|
-
children:
|
|
18
|
+
children: t
|
|
19
19
|
}
|
|
20
20
|
) : null
|
|
21
21
|
] });
|
|
22
|
-
}
|
|
23
|
-
|
|
22
|
+
});
|
|
23
|
+
C.displayName = "Tooltip";
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
C as Tooltip
|
|
26
26
|
};
|
package/dist/index.es12.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useRef as a, Children as f, cloneElement as u } from "react";
|
|
|
3
3
|
import { useTooltipTrigger as T } from "react-aria";
|
|
4
4
|
import { useTooltipTriggerState as h } from "react-stately";
|
|
5
5
|
import { cn as x } from "./index.es16.js";
|
|
6
|
-
import { TooltipContext as d } from "./index.
|
|
6
|
+
import { TooltipContext as d } from "./index.es22.js";
|
|
7
7
|
const w = (e) => {
|
|
8
8
|
const { children: r, isDisabled: s, trigger: l, className: n } = e, t = h(e), o = a(null), { triggerProps: g, tooltipProps: m } = T({ isDisabled: s, trigger: l }, t, o), [c, p] = f.toArray(r);
|
|
9
9
|
if (!Array.isArray(r) || r.length > 2)
|
package/dist/index.es13.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as m } from "./index.es15.js";
|
|
2
2
|
import { cn as n } from "./index.es16.js";
|
|
3
|
-
import { textVariants as a } from "./index.
|
|
3
|
+
import { textVariants as a } from "./index.es23.js";
|
|
4
4
|
function x(t) {
|
|
5
5
|
const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
|
|
6
6
|
return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
|
package/dist/index.es14.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as m } from "./index.es15.js";
|
|
2
2
|
import { cn as c } from "./index.es16.js";
|
|
3
|
-
import { titleVariants as l } from "./index.
|
|
3
|
+
import { titleVariants as l } from "./index.es23.js";
|
|
4
4
|
function j(s) {
|
|
5
5
|
const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
|
|
6
6
|
return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
|
package/dist/index.es17.js
CHANGED