@adam-milo/ui 1.0.142 → 1.0.144
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/index35.cjs +1 -1
- package/dist/index35.js +4 -4
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/src/components/feedback/toast/Toast.styles.d.ts +5 -3
- package/dist/src/components/feedback/toast/Toast.styles.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.component.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts +8 -0
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.types.d.ts +12 -3
- package/dist/src/components/navigation/tabs/Tabs.types.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index35.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-tabs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-tabs"),s=require("./index67.cjs"),r=require("./index91.cjs");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const a in e)if("default"!==a){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}return t.default=e,Object.freeze(t)}const i=n(a),l={default:r.listStyles,nav:r.listNavStyles,table:r.listTableStyles,mobile:r.listMobileStyles},o={default:r.triggerStyles,nav:r.triggerNavStyles,table:r.triggerTableStyles,mobile:r.triggerMobileStyles},c=new Set(["default","nav"]),d=i.Root,u=t.forwardRef(({className:a,fullWidth:n=!1,variant:o="default","data-cy":d,"data-testid":u,...b},f)=>{const g=d||"tabs-list",v=u||"tabs-list",y=t.useRef(null),[m,p]=t.useState({left:0,width:0}),[S,w]=t.useState(!1),h=t.useCallback(()=>{const e=y.current;if(!e)return;const t=e.querySelector('[data-state="active"]');if(!t)return void w(!1);const a=e.getBoundingClientRect(),s=t.getBoundingClientRect();p({left:s.left-a.left+e.scrollLeft,width:s.width}),w(!0)},[]);t.useEffect(()=>{const e=y.current;if(!e)return;const t="undefined"!=typeof ResizeObserver?new ResizeObserver(h):null,a=()=>{t&&(t.disconnect(),t.observe(e),e.querySelectorAll('[role="tab"]').forEach(e=>{t.observe(e)}))};h(),a();const s=new MutationObserver(e=>{e.some(e=>"childList"===e.type)&&a(),h()});return s.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-state"]}),e.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h),()=>{s.disconnect(),t?.disconnect(),e.removeEventListener("scroll",h),window.removeEventListener("resize",h)}},[h]);const x=c.has(o)&&S;return e.jsxs(i.List,{ref:e=>{y.current=e,"function"==typeof f?f(e):f&&(f.current=e)},className:s.cn("relative",l[o],n&&r.listFullWidthStyles,a),"data-cy":g,"data-testid":v,"data-full-width":n,"data-variant":o,...b,children:[b.children,x&&e.jsx("span",{className:"absolute bottom-0 h-[4px] bg-[var(--color-clickable)] rounded-t-sm transition-all duration-300 ease-in-out pointer-events-none",style:{left:m.left,width:m.width},"aria-hidden":"true"})]})});u.displayName=i.List.displayName;const b=t.forwardRef(({className:t,value:a,variant:r="default","data-cy":n,"data-testid":l,...c},d)=>{const u=n||(a?`tabs-trigger-${a}`:"tabs-trigger"),b=l||(a?`tabs-trigger-${a}`:"tabs-trigger");return e.jsx(i.Trigger,{ref:d,className:s.cn(o[r],t),value:a,"data-cy":u,"data-testid":b,...c,"data-variant":r})});b.displayName=i.Trigger.displayName;const f=t.forwardRef(({className:t,value:a,"data-cy":n,"data-testid":l,...o},c)=>{const d=n||(a?`tabs-content-${a}`:"tabs-content"),u=l||(a?`tabs-content-${a}`:"tabs-content");return e.jsx(i.Content,{ref:c,tabIndex:-1,className:s.cn(r.contentStyles,t),value:a,"data-cy":d,"data-testid":u,...o})});f.displayName=i.Content.displayName,exports.Tabs=d,exports.TabsContent=f,exports.TabsList=u,exports.TabsTrigger=b;
|
package/dist/index35.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{forwardRef as a,useRef as r,useState as s,useCallback as
|
|
2
|
-
return e(o.List,{ref:t=>{
|
|
3
|
-
return t(o.Trigger,{ref:
|
|
4
|
-
return t(o.Content,{ref:
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{forwardRef as a,useRef as r,useState as s,useCallback as n,useEffect as i}from"react";import*as o from"@radix-ui/react-tabs";import{cn as d}from"./index67.js";import{listFullWidthStyles as l,listMobileStyles as c,listTableStyles as u,listNavStyles as m,listStyles as b,triggerMobileStyles as f,triggerTableStyles as v,triggerNavStyles as p,triggerStyles as y,contentStyles as g}from"./index91.js";const h={default:b,nav:m,table:u,mobile:c},w={default:y,nav:p,table:v,mobile:f},N=/* @__PURE__ */new Set(["default","nav"]),L=o.Root,x=a(({className:a,fullWidth:c=!1,variant:u="default","data-cy":m,"data-testid":b,...f},v)=>{const p=m||"tabs-list",y=b||"tabs-list",g=r(null),[w,L]=s({left:0,width:0}),[x,E]=s(!1),R=n(()=>{const t=g.current;if(!t)return;const e=t.querySelector('[data-state="active"]');if(!e)return void E(!1);const a=t.getBoundingClientRect(),r=e.getBoundingClientRect();L({left:r.left-a.left+t.scrollLeft,width:r.width}),E(!0)},[]);i(()=>{const t=g.current;if(!t)return;const e="undefined"!=typeof ResizeObserver?new ResizeObserver(R):null,a=()=>{e&&(e.disconnect(),e.observe(t),t.querySelectorAll('[role="tab"]').forEach(t=>{e.observe(t)}))};R(),a();const r=new MutationObserver(t=>{t.some(t=>"childList"===t.type)&&a(),R()});return r.observe(t,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["data-state"]}),t.addEventListener("scroll",R,{passive:!0}),window.addEventListener("resize",R),()=>{r.disconnect(),e?.disconnect(),t.removeEventListener("scroll",R),window.removeEventListener("resize",R)}},[R]);const z=N.has(u)&&x;/* @__PURE__ */
|
|
2
|
+
return e(o.List,{ref:t=>{g.current=t,"function"==typeof v?v(t):v&&(v.current=t)},className:d("relative",h[u],c&&l,a),"data-cy":p,"data-testid":y,"data-full-width":c,"data-variant":u,...f,children:[f.children,z&&/* @__PURE__ */t("span",{className:"absolute bottom-0 h-[4px] bg-[var(--color-clickable)] rounded-t-sm transition-all duration-300 ease-in-out pointer-events-none",style:{left:w.left,width:w.width},"aria-hidden":"true"})]})});x.displayName=o.List.displayName;const E=a(({className:e,value:a,variant:r="default","data-cy":s,"data-testid":n,...i},l)=>{const c=s||(a?`tabs-trigger-${a}`:"tabs-trigger"),u=n||(a?`tabs-trigger-${a}`:"tabs-trigger");/* @__PURE__ */
|
|
3
|
+
return t(o.Trigger,{ref:l,className:d(w[r],e),value:a,"data-cy":c,"data-testid":u,...i,"data-variant":r})});E.displayName=o.Trigger.displayName;const R=a(({className:e,value:a,"data-cy":r,"data-testid":s,...n},i)=>{const l=r||(a?`tabs-content-${a}`:"tabs-content"),c=s||(a?`tabs-content-${a}`:"tabs-content");/* @__PURE__ */
|
|
4
|
+
return t(o.Content,{ref:i,tabIndex:-1,className:d(g,e),value:a,"data-cy":l,"data-testid":c,...n})});R.displayName=o.Content.displayName;export{L as Tabs,R as TabsContent,x as TabsList,E as TabsTrigger};
|
package/dist/index91.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[var(--color-overlay-white-43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-12 bg-[var(--color-bg-secondary)] border border-[var(--color-paper-blue)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["flex items-center gap-[var(--spacing-8)] border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),r=["inline-flex items-center p-0 gap-0 rounded-lg bg-[var(--color-overlay-white-43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-12 bg-[var(--color-bg-secondary)] border border-[var(--color-paper-blue)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),a=["border-2 border-solid border-transparent","tabs-secondary-hover-border"].join(" "),s=["flex items-center justify-center whitespace-nowrap h-[5.3125rem] py-3 px-4 gap-2.5 min-[1320px]:w-[14.79rem]","text-22 font-bold tracking-[0.0825rem] text-[var(--color-system-text)]","border-0 bg-transparent cursor-pointer select-none -mb-px","[border-bottom-width:4px] [border-bottom-style:solid] [border-bottom-color:transparent]","transition-[color,transform,box-shadow] duration-300 ease-in-out","focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:text-[var(--color-clickable)] data-[state=active]:[border-bottom-color:transparent]","hover:text-[var(--color-clickable)] focus-visible:text-[var(--color-clickable)]"].join(" "),i=[s,"tabs-trigger-focus-default"].join(" "),l=[s,"relative px-[var(--spacing-8)] tabs-trigger-focus tabs-nav-hover-border"].join(" "),n=["inline-flex items-center justify-center whitespace-nowrap w-[9.78rem] h-[3.375rem] rounded-lg text-20 font-semibold","bg-transparent text-[var(--color-clickable)] cursor-pointer select-none",a,"transition-[background-color,color,box-shadow,transform,border-color] duration-500 ease-in-out","tabs-trigger-focus focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-[var(--color-overlay-white-85)] data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_color-mix(in_srgb,var(--color-black)_5%,transparent)]","hover:bg-[var(--color-overlay-white-50)] focus-visible:data-[state=inactive]:bg-[var(--color-overlay-white-50)]","[&:hover]:data-[state=active]:bg-[var(--color-overlay-white-85)]","[&:focus-visible]:data-[state=active]:bg-[var(--color-overlay-white-85)]"].join(" "),c=["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-8 py-2 px-3 text-14 leading-20 font-semibold","bg-transparent text-[var(--color-clickable)] cursor-pointer select-none",a,"transition-[background-color,color,box-shadow,transform,border-color] duration-300 ease-in-out","tabs-trigger-focus focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-white data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_color-mix(in_srgb,var(--color-black)_5%,transparent)]","hover:bg-[color-mix(in_srgb,var(--color-white)_70%,transparent)] focus-visible:data-[state=inactive]:bg-[color-mix(in_srgb,var(--color-white)_70%,transparent)]","[&:hover]:data-[state=active]:bg-white","[&:focus-visible]:data-[state=active]:bg-white"].join(" ");exports.contentStyles="mt-2",exports.listFullWidthStyles="w-full [&>button]:flex-1 [&>button]:min-w-0 [&>button]:basis-0",exports.listMobileStyles=o,exports.listNavStyles=t,exports.listStyles=e,exports.listTableStyles=r,exports.secondaryTriggerStrokeStyles=a,exports.triggerMobileStyles=c,exports.triggerNavStyles=l,exports.triggerStyles=i,exports.triggerTableStyles=n;
|
package/dist/index91.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[var(--color-overlay-white-43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-12 bg-[var(--color-bg-secondary)] border border-[var(--color-paper-blue)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),
|
|
1
|
+
const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),r=["flex items-center gap-[var(--spacing-8)] border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[var(--color-overlay-white-43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-12 bg-[var(--color-bg-secondary)] border border-[var(--color-paper-blue)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),a="w-full [&>button]:flex-1 [&>button]:min-w-0 [&>button]:basis-0",i=["border-2 border-solid border-transparent","tabs-secondary-hover-border"].join(" "),s=["flex items-center justify-center whitespace-nowrap h-[5.3125rem] py-3 px-4 gap-2.5 min-[1320px]:w-[14.79rem]","text-22 font-bold tracking-[0.0825rem] text-[var(--color-system-text)]","border-0 bg-transparent cursor-pointer select-none -mb-px","[border-bottom-width:4px] [border-bottom-style:solid] [border-bottom-color:transparent]","transition-[color,transform,box-shadow] duration-300 ease-in-out","focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:text-[var(--color-clickable)] data-[state=active]:[border-bottom-color:transparent]","hover:text-[var(--color-clickable)] focus-visible:text-[var(--color-clickable)]"].join(" "),l=[s,"tabs-trigger-focus-default"].join(" "),n=[s,"relative px-[var(--spacing-8)] tabs-trigger-focus tabs-nav-hover-border"].join(" "),c=["inline-flex items-center justify-center whitespace-nowrap w-[9.78rem] h-[3.375rem] rounded-lg text-20 font-semibold","bg-transparent text-[var(--color-clickable)] cursor-pointer select-none",i,"transition-[background-color,color,box-shadow,transform,border-color] duration-500 ease-in-out","tabs-trigger-focus focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-[var(--color-overlay-white-85)] data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_color-mix(in_srgb,var(--color-black)_5%,transparent)]","hover:bg-[var(--color-overlay-white-50)] focus-visible:data-[state=inactive]:bg-[var(--color-overlay-white-50)]","[&:hover]:data-[state=active]:bg-[var(--color-overlay-white-85)]","[&:focus-visible]:data-[state=active]:bg-[var(--color-overlay-white-85)]"].join(" "),b=["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-8 py-2 px-3 text-14 leading-20 font-semibold","bg-transparent text-[var(--color-clickable)] cursor-pointer select-none",i,"transition-[background-color,color,box-shadow,transform,border-color] duration-300 ease-in-out","tabs-trigger-focus focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-white data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_color-mix(in_srgb,var(--color-black)_5%,transparent)]","hover:bg-[color-mix(in_srgb,var(--color-white)_70%,transparent)] focus-visible:data-[state=inactive]:bg-[color-mix(in_srgb,var(--color-white)_70%,transparent)]","[&:hover]:data-[state=active]:bg-white","[&:focus-visible]:data-[state=active]:bg-white"].join(" "),d="mt-2";export{d as contentStyles,a as listFullWidthStyles,o as listMobileStyles,r as listNavStyles,e as listStyles,t as listTableStyles,i as secondaryTriggerStrokeStyles,b as triggerMobileStyles,n as triggerNavStyles,l as triggerStyles,c as triggerTableStyles};
|
package/dist/index95.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["toast-animate group relative flex w-full items-start gap-3 rounded-12 border border-[var(--color-border)]","pointer-events-auto bg-[var(--color-card)] p-4 shadow-[0_0.25rem_1rem_color-mix(in_srgb,var(--color-black)_10%,transparent)]"].join(" "),o=["inline-flex shrink-0 items-center justify-center rounded-[var(--radius-default)]","text-[var(--color-system-text)] transition-colors hover:text-[var(--color-text)] toast-close-focus"].join(" "),r=["fixed z-[100] flex max-h-[100dvh] w-full max-w-[25rem] flex-col gap-3 overflow-hidden p-4","pointer-events-none outline-none [--viewport-padding:1rem]"].join(" ");exports.toastActionStyles="shrink-0 self-end",exports.toastCloseStyles=o,exports.toastContentStyles="flex-1 min-w-0",exports.toastDescriptionStyles="text-20 font-normal leading-normal text-[var(--color-system-text)] ps-[2.25rem]",exports.toastRootStyles=t,exports.toastTitleStyles="toast-title text-24 font-bold leading-normal text-[var(--color-text)]",exports.toastVariantStyles={default:"border-[var(--color-border)]",success:"border-[var(--color-positive)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-positive)]",error:"border-[var(--color-error)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-error)]",warning:"border-[var(--color-warning)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-warning)]"},exports.toastViewportPositionStyles={"top-right":"top-0 end-0","top-center":"top-0 start-1/2 -translate-x-1/2","top-left":"top-0 start-0","bottom-right":"bottom-0 end-0","bottom-center":"bottom-0 start-1/2 -translate-x-1/2","bottom-left":"bottom-0 start-0"},exports.toastViewportStyles=r;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["toast-animate group relative flex w-full items-start gap-3 rounded-12 border border-[var(--color-border)]","!pointer-events-auto bg-[var(--color-card)] p-4 shadow-[0_0.25rem_1rem_color-mix(in_srgb,var(--color-black)_10%,transparent)]"].join(" "),o=["inline-flex shrink-0 items-center justify-center rounded-[var(--radius-default)]","text-[var(--color-system-text)] transition-colors hover:text-[var(--color-text)] toast-close-focus"].join(" "),r=["fixed z-[100] flex max-h-[100dvh] w-full max-w-[25rem] flex-col gap-3 overflow-hidden p-4","pointer-events-none outline-none [--viewport-padding:1rem]"].join(" ");exports.toastActionStyles="shrink-0 self-end",exports.toastCloseStyles=o,exports.toastContentStyles="flex-1 min-w-0",exports.toastDescriptionStyles="text-20 font-normal leading-normal text-[var(--color-system-text)] ps-[2.25rem]",exports.toastRootStyles=t,exports.toastTitleStyles="toast-title text-24 font-bold leading-normal text-[var(--color-text)]",exports.toastVariantStyles={default:"border-[var(--color-border)]",success:"border-[var(--color-positive)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-positive)]",error:"border-[var(--color-error)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-error)]",warning:"border-[var(--color-warning)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-warning)]"},exports.toastViewportPositionStyles={"top-right":"top-0 end-0","top-center":"top-0 start-1/2 -translate-x-1/2","top-left":"top-0 start-0","bottom-right":"bottom-0 end-0","bottom-center":"bottom-0 start-1/2 -translate-x-1/2","bottom-left":"bottom-0 start-0"},exports.toastViewportStyles=r;
|
package/dist/index95.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=["toast-animate group relative flex w-full items-start gap-3 rounded-12 border border-[var(--color-border)]","pointer-events-auto bg-[var(--color-card)] p-4 shadow-[0_0.25rem_1rem_color-mix(in_srgb,var(--color-black)_10%,transparent)]"].join(" "),r={default:"border-[var(--color-border)]",success:"border-[var(--color-positive)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-positive)]",error:"border-[var(--color-error)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-error)]",warning:"border-[var(--color-warning)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-warning)]"},o="toast-title text-24 font-bold leading-normal text-[var(--color-text)]",e="text-20 font-normal leading-normal text-[var(--color-system-text)] ps-[2.25rem]",a="flex-1 min-w-0",l=["inline-flex shrink-0 items-center justify-center rounded-[var(--radius-default)]","text-[var(--color-system-text)] transition-colors hover:text-[var(--color-text)] toast-close-focus"].join(" "),n="shrink-0 self-end",i={"top-right":"top-0 end-0","top-center":"top-0 start-1/2 -translate-x-1/2","top-left":"top-0 start-0","bottom-right":"bottom-0 end-0","bottom-center":"bottom-0 start-1/2 -translate-x-1/2","bottom-left":"bottom-0 start-0"},s=["fixed z-[100] flex max-h-[100dvh] w-full max-w-[25rem] flex-col gap-3 overflow-hidden p-4","pointer-events-none outline-none [--viewport-padding:1rem]"].join(" ");export{n as toastActionStyles,l as toastCloseStyles,a as toastContentStyles,e as toastDescriptionStyles,t as toastRootStyles,o as toastTitleStyles,r as toastVariantStyles,i as toastViewportPositionStyles,s as toastViewportStyles};
|
|
1
|
+
const t=["toast-animate group relative flex w-full items-start gap-3 rounded-12 border border-[var(--color-border)]","!pointer-events-auto bg-[var(--color-card)] p-4 shadow-[0_0.25rem_1rem_color-mix(in_srgb,var(--color-black)_10%,transparent)]"].join(" "),r={default:"border-[var(--color-border)]",success:"border-[var(--color-positive)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-positive)]",error:"border-[var(--color-error)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-error)]",warning:"border-[var(--color-warning)] bg-[var(--color-card)] [&_.toast-title]:text-[var(--color-warning)]"},o="toast-title text-24 font-bold leading-normal text-[var(--color-text)]",e="text-20 font-normal leading-normal text-[var(--color-system-text)] ps-[2.25rem]",a="flex-1 min-w-0",l=["inline-flex shrink-0 items-center justify-center rounded-[var(--radius-default)]","text-[var(--color-system-text)] transition-colors hover:text-[var(--color-text)] toast-close-focus"].join(" "),n="shrink-0 self-end",i={"top-right":"top-0 end-0","top-center":"top-0 start-1/2 -translate-x-1/2","top-left":"top-0 start-0","bottom-right":"bottom-0 end-0","bottom-center":"bottom-0 start-1/2 -translate-x-1/2","bottom-left":"bottom-0 start-0"},s=["fixed z-[100] flex max-h-[100dvh] w-full max-w-[25rem] flex-col gap-3 overflow-hidden p-4","pointer-events-none outline-none [--viewport-padding:1rem]"].join(" ");export{n as toastActionStyles,l as toastCloseStyles,a as toastContentStyles,e as toastDescriptionStyles,t as toastRootStyles,o as toastTitleStyles,r as toastVariantStyles,i as toastViewportPositionStyles,s as toastViewportStyles};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ToastVariant } from './Toast.types';
|
|
2
2
|
|
|
3
3
|
/** Root toast container – card style with shadow and radius.
|
|
4
|
-
* pointer-events-auto:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* !pointer-events-auto: beats Radix’s inline `pointer-events: none` when a modal
|
|
5
|
+
* opens after the toast is already mounted. Plain `pointer-events-auto` loses
|
|
6
|
+
* that cascade, so clicks miss the toast, hit the overlay, and Dialog/Drawer
|
|
7
|
+
* never see an `isInsideToast` target. The viewport stays pointer-events-none
|
|
8
|
+
* so empty padding does not steal overlay clicks. */
|
|
7
9
|
export declare const toastRootStyles: string;
|
|
8
10
|
export declare const toastVariantStyles: Record<ToastVariant, string>;
|
|
9
11
|
export declare const toastTitleStyles = "toast-title text-24 font-bold leading-normal text-[var(--color-text)]";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD;;;;;sDAKsD;AACtD,eAAO,MAAM,eAAe,QAGjB,CAAC;AAEZ,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAQ3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,0EAC4C,CAAC;AAC1E,eAAO,MAAM,sBAAsB,oFACgD,CAAC;AAEpF,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,gBAAgB,QAGlB,CAAC;AACZ,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,6CAA6C;AAC7C,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,WAAW,CAAC,OAAO,eAAe,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC,EACnE,MAAM,CAQP,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAGrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAe,MAAM,cAAc,CAAC;AA8BnG,eAAO,MAAM,IAAI,oHAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ,0GAgHpB,CAAC;AAGF,eAAO,MAAM,WAAW,gHA2BvB,CAAC;AAGF,eAAO,MAAM,WAAW,6GAiBvB,CAAC;AAGF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export declare const listStyles: string;
|
|
2
|
+
export declare const listNavStyles: string;
|
|
2
3
|
export declare const listTableStyles: string;
|
|
3
4
|
export declare const listMobileStyles: string;
|
|
4
5
|
export declare const listFullWidthStyles = "w-full [&>button]:flex-1 [&>button]:min-w-0 [&>button]:basis-0";
|
|
6
|
+
/**
|
|
7
|
+
* Hover + :focus-visible share the same stroke. The 2px transparent border
|
|
8
|
+
* reserves space so hover does not jump. The painted stroke lives on
|
|
9
|
+
* `.tabs-secondary-hover-border` so it also applies to the selected tab.
|
|
10
|
+
*/
|
|
11
|
+
export declare const secondaryTriggerStrokeStyles: string;
|
|
5
12
|
export declare const triggerStyles: string;
|
|
13
|
+
export declare const triggerNavStyles: string;
|
|
6
14
|
export declare const triggerTableStyles: string;
|
|
7
15
|
export declare const triggerMobileStyles: string;
|
|
8
16
|
export declare const contentStyles = "mt-2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAGZ,CAAC;AAEZ,eAAO,MAAM,eAAe,QAGjB,CAAC;AAEZ,eAAO,MAAM,gBAAgB,QAGlB,CAAC;AAEZ,eAAO,MAAM,mBAAmB,mEAAmE,CAAC;AAEpG,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAGZ,CAAC;AAEZ,eAAO,MAAM,aAAa,QAGf,CAAC;AAEZ,eAAO,MAAM,eAAe,QAGjB,CAAC;AAEZ,eAAO,MAAM,gBAAgB,QAGlB,CAAC;AAEZ,eAAO,MAAM,mBAAmB,mEAAmE,CAAC;AAEpG;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,QAG9B,CAAC;AAcZ,eAAO,MAAM,aAAa,QAA6D,CAAC;AAExF,eAAO,MAAM,gBAAgB,QAGlB,CAAC;AAEZ,eAAO,MAAM,kBAAkB,QAWpB,CAAC;AAEZ,eAAO,MAAM,mBAAmB,QAWrB,CAAC;AAEZ,eAAO,MAAM,aAAa,SAAS,CAAC"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
export type TabsVariant = 'default' | 'table' | 'mobile';
|
|
3
|
+
export type TabsVariant = 'default' | 'table' | 'mobile' | 'nav';
|
|
4
4
|
export interface TabsListProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
fullWidth?: boolean;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Visual variant:
|
|
8
|
+
* - `default` — detail / report card tabs (4px selected indicator, no nav underline)
|
|
9
|
+
* - `table` — secondary segmented tabs (Examined / Live / Settings)
|
|
10
|
+
* - `mobile` — compact secondary tabs
|
|
11
|
+
* - `nav` — header main nav (Dashboard / Positions / Candidates)
|
|
12
|
+
*/
|
|
7
13
|
variant?: TabsVariant;
|
|
8
14
|
'data-cy'?: string;
|
|
9
15
|
'data-testid'?: string;
|
|
10
16
|
}
|
|
11
17
|
export interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
18
|
value: string;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Visual variant — must match the parent list.
|
|
21
|
+
* `nav` is header-only; do not use on detail or report card tabs.
|
|
22
|
+
*/
|
|
14
23
|
variant?: TabsVariant;
|
|
15
24
|
'data-cy'?: string;
|
|
16
25
|
'data-testid'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tabs/Tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEjE,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|