sodtrack-web-ui 0.35.0 → 0.35.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/chunk-4L4MN7MH.mjs +11 -0
- package/dist/chunk-MRLKUPPI.mjs +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/list-item-arrow.mjs +2 -2
- package/dist/list-item-checkbox.mjs +2 -2
- package/dist/list-item.mjs +2 -2
- package/dist/popover.d.mts +3 -1
- package/dist/popover.d.ts +3 -1
- package/dist/popover.js +2 -2
- package/dist/popover.mjs +1 -1
- package/dist/tab.js +1 -1
- package/dist/tab.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4H6XFPH2.mjs +0 -8
- package/dist/chunk-HSLS67Y6.mjs +0 -11
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-UOTH67KT.mjs';
|
|
2
|
+
import { d } from './chunk-CYXKXVPJ.mjs';
|
|
3
|
+
import { a } from './chunk-P5UTQFFP.mjs';
|
|
4
|
+
import * as e from '@radix-ui/react-tabs';
|
|
5
|
+
import o from 'react';
|
|
6
|
+
import { cva } from 'cva';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var S=["ghost","fill","fillWithCloseButton"],k=["sm","md"],h=cva({base:"group relative px-4 leading-[130%] transition-all text-neutral-900 disabled:text-neutral-500",variants:{variant:{ghost:"[&:not(:disabled)]:hover:bg-primary-100 rounded font-semibold",fill:"border-1 !border-b-0 border-transparent [&:not(:disabled)]:aria-selected:elevation-10 [&:not(:disabled)]:hover:border-primary-300 !rounded-b-none aria-selected:font-semibold aria-selected:bg-neutral-50 rounded-lg [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500",fillWithCloseButton:"rounded-lg border-1 !border-b-0 [&:not(:disabled)]:aria-selected:elevation-10 border-transparent [&:not(:disabled)]:hover:aria-selected:border-transparent aria-selected:font-semibold [&:not(:disabled)]:hover:border-primary-300 bg-primary-100 [&:not(:disabled)]:hover:aria-selected:bg-neutral-50 [&:not(:disabled)]:hover:bg-primary-100 !rounded-b-none [&:not(:disabled)]:hover:text-primary-700 [&:not(:disabled)]:aria-selected:text-primary-500 [&:not(:disabled)]:[&:not(:hover)]:aria-selected:bg-neutral-50"},size:{sm:"h-10 text-sm",md:"h-12 text-base"}}}),x=cva({base:"mr-2 shrink-0 flex transition-all ease-linear [&:not(:disabled)]:group-aria-selected:text-neutral-900",variants:{size:{sm:"",md:""}}}),R=cva({base:"absolute bottom-0 h-0 w-full rounded transition-all group-disabled:bg-neutral-500 group-aria-selected:h-1 group-aria-selected:bg-primary-500 group-aria-selected:group-disabled:h-0",variants:{variant:{ghost:"flex",fill:"hidden",fillWithCloseButton:"hidden"}}}),C=cva({variants:{variant:{ghost:"",fill:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none",fillWithCloseButton:"elevation-10 rounded-lg bg-neutral-50 pt-6 before:absolute before:left-0 before:right-0 before:h-5 before:bg-neutral-50 before:content-[''] before:rounded-lg before:rounded-b-none"},size:{sm:"before:top-10",md:"before:top-12"}}}),p=o.createContext({}),G=o.forwardRef(({className:i,size:r="sm",variant:a$1="ghost",...s},n)=>jsx(p.Provider,{value:{size:r,variant:a$1},children:jsx(e.Root,{ref:n,...s,className:a(i,"relative")})})),P=o.forwardRef(({className:i,...r},a$1)=>{let{variant:s}=o.useContext(p);return jsx(e.List,{ref:a$1,...r,className:a(s!=="ghost"&&"mx-6 space-x-2",i)})});P.displayName=e.List.displayName;var N=o.forwardRef(({className:i,badgeNumber:r,disabled:a$2,variant:s,StartIcon:n,onClose:v,...c},T)=>{let{size:d$1,variant:y}=o.useContext(p),l=s??y;return jsx(e.Trigger,{ref:T,disabled:a$2,className:h({size:d$1,variant:l,className:i}),...c,children:jsxs("div",{className:"flex flex-col items-center justify-center",children:[jsxs("div",{className:"flex items-center justify-center",children:[n&&jsx(n,{className:x({size:d$1}),size:d$1==="sm"?12:14}),c.children,jsxs("div",{className:a("flex items-center gap-1 empty:hidden",l==="ghost"&&"ml-1",l==="fill"&&"ml-3",l==="fillWithCloseButton"&&"ml-3"),children:[!a$2&&r&&jsx(a$1,{variant:"alert",size:d$1==="sm"?"sm":"md",content:String(r)}),l==="fillWithCloseButton"&&jsx(d,{onClick:v,className:"transition-colors [&:not(:disabled)]:group-aria-selected:text-neutral-900",size:14})]})]}),jsx("div",{className:R({variant:l})})]})})});N.displayName=e.Trigger.displayName;var z=o.forwardRef(({className:i,...r},a)=>{let{variant:s,size:n}=o.useContext(p);return jsx(e.Content,{ref:a,className:C({variant:s,size:n,className:i}),...r})});z.displayName=e.Content.displayName;
|
|
10
|
+
|
|
11
|
+
export { S as a, k as b, G as c, P as d, N as e, z as f };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-P5UTQFFP.mjs';
|
|
2
|
+
import * as a from 'react';
|
|
3
|
+
import * as e from '@radix-ui/react-popover';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var l=e.Root,c=e.Trigger,v=a.forwardRef(({className:r,align:n="end",onOpenAutoFocus:d,preventAutoFocus:p=!0,sideOffset:s=4,...m},P)=>jsx(e.Portal,{children:jsx(e.Content,{ref:P,align:n,sideOffset:s,onOpenAutoFocus:o=>{p&&o.preventDefault(),d?.(o);},className:a$1("elevation-9 z-50 rounded bg-neutral-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...m})}));v.displayName=e.Content.displayName;
|
|
7
|
+
|
|
8
|
+
export { l as a, c as b, v as c };
|