@storepass/components 0.6.0 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Added
6
+
7
+ - Drawer: `size="full"` on bottom sheets for a near-full-height sheet with a black backdrop, larger top corners, and a peeking edge behind it.
8
+
9
+ ### Improved
10
+
11
+ - The selected Sidebar pill keeps its fill on hover and press, in both canvas and brand layouts; brand color now applies only to the moving sub-item marker.
12
+
3
13
  ## 0.6.0
4
14
 
5
15
  ### Added
@@ -1,14 +1,18 @@
1
1
  import { Drawer as BaseDrawer } from "@base-ui/react/drawer";
2
2
  import { type ComponentProps, type HTMLAttributes } from "react";
3
3
  export type DrawerSide = "bottom" | "right" | "left";
4
+ export type DrawerSize = "default" | "full";
4
5
  export interface DrawerRootProps extends Omit<BaseDrawer.Root.Props, "swipeDirection"> {
5
6
  /** Bottom sheets for quick tasks; side drawers for browsing and commerce. */
6
7
  side?: DrawerSide;
8
+ /** `full` stretches a bottom sheet to nearly the full viewport over a black backdrop. Ignored for side drawers. */
9
+ size?: DrawerSize;
7
10
  }
8
11
  /** A touch-friendly sheet with soft surfaces, swipe dismissal, and persistent actions. */
9
- declare function DrawerRoot({ side, ...props }: DrawerRootProps): import("react").JSX.Element;
12
+ declare function DrawerRoot({ side, size, ...props }: DrawerRootProps): import("react").JSX.Element;
10
13
  declare const popupVariants: (props?: ({
11
14
  side?: "left" | "right" | "bottom" | null | undefined;
15
+ size?: "default" | "full" | null | undefined;
12
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
17
  export type DrawerBackdropProps = Omit<ComponentProps<typeof BaseDrawer.Backdrop>, "className"> & {
14
18
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAA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AAE,EAAE,sBAAsB,+BAWzE;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CACjC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,EACzC,WAAW,CACX,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3B,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAY3D;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAC/D,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAW/D;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,EACvC,WAAW,CACX,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3B,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAexB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBlB,CAAC;AAEF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{ed as O}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import{xe as M}from"../../index-aq782dhn.js";import{ye as G}from"../../lib/utils.js";import{Drawer as E}from"@base-ui/react/drawer";import{faXmark as Q}from"@fortawesome/pro-solid-svg-icons";import{cva as U}from"class-variance-authority";import{createContext as W,useContext as L}from"react";import{jsx as A}from"react/jsx-runtime";var K=W("bottom");function Y({side:q="bottom",...z}){return A(K.Provider,{value:q,children:A(E.Root,{swipeDirection:q==="bottom"?"down":q,...z})})}var Z=U(["relative flex min-h-0 w-full flex-col border border-hairline bg-background text-foreground shadow-xl outline-none","transition-transform duration-[calc(420ms*var(--drawer-swipe-strength,1))] ease-[cubic-bezier(0.32,0.72,0,1)]","data-[swiping]:transition-none motion-reduce:transition-none"],{variants:{side:{bottom:"max-h-[calc(100dvh-env(safe-area-inset-top)-1rem-var(--drawer-keyboard-inset,0px))] max-w-lg rounded-t-2xl border-b-0 [transform:translateY(calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y,0px)))] data-[starting-style]:[transform:translateY(100%)] data-[ending-style]:[transform:translateY(100%)]",right:"h-full max-w-md rounded-l-2xl border-r-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(100%)] data-[ending-style]:[transform:translateX(100%)]",left:"h-full max-w-md rounded-r-2xl border-l-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(-100%)] data-[ending-style]:[transform:translateX(-100%)]"}},defaultVariants:{side:"bottom"}});function _({className:q,...z}){return A(E.Backdrop,{"data-slot":"drawer-backdrop",className:G("fixed inset-0 z-50 bg-overlay/35 opacity-[calc(1-var(--drawer-swipe-progress,0))] transition-opacity duration-300 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[swiping]:transition-none motion-reduce:transition-none",q),...z})}function $({className:q,...z}){let J=L(K);return A(E.Viewport,{"data-slot":"drawer-viewport",className:G("fixed inset-0 z-50 flex [bottom:var(--drawer-keyboard-inset,0px)]",J==="bottom"?"items-end justify-center":J==="right"?"justify-end":"justify-start",q),...z})}function f({className:q,...z}){let J=L(K);return A(E.Popup,{"data-slot":"drawer-popup","data-side":J,className:G(Z({side:J}),q),...z})}function g({className:q,...z}){if(L(K)!=="bottom")return null;return A("div",{...z,"aria-hidden":"true","data-slot":"drawer-handle",className:G("flex h-7 shrink-0 items-center justify-center",q),children:A("span",{className:"h-1 w-9 rounded-full bg-foreground/20"})})}function F({className:q,...z}){return A("div",{"data-slot":"drawer-header",className:G("relative shrink-0 px-6 pb-4 pt-6 [[data-side=bottom]_&]:pt-2",q),...z})}function P({className:q,...z}){return A(E.Title,{"data-slot":"drawer-title",className:G("pr-12 text-lg font-semibold text-foreground",q),...z})}function R({className:q,...z}){return A(E.Description,{"data-slot":"drawer-description",className:G("mt-2 text-sm leading-normal text-muted-foreground",q),...z})}function T({className:q,...z}){return A(E.Content,{"data-slot":"drawer-body",className:G("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pb-6","[background-image:linear-gradient(var(--color-background)_30%,transparent),linear-gradient(transparent,var(--color-background)_70%),linear-gradient(var(--color-ink-pressed),transparent),linear-gradient(transparent,var(--color-ink-pressed))] [background-size:100%_32px,100%_32px,100%_10px,100%_10px] [background-position:top,bottom,top,bottom] [background-repeat:no-repeat] [background-attachment:local,local,scroll,scroll]",q),...z})}function X({className:q,...z}){return A("div",{"data-slot":"drawer-footer",className:G("flex shrink-0 flex-col gap-3 border-t border-hairline px-6 pt-4 pb-[max(1.5rem,env(safe-area-inset-bottom))]",q),...z})}function b({className:q,children:z,...J}){return A(E.Close,{"aria-label":"Close drawer","data-slot":"drawer-close",className:G(O({variant:"ghost",size:"icon-xl"}),"absolute right-4 top-4 text-tertiary [[data-side=bottom]_&]:top-0",q),...J,children:z??A(M,{icon:Q})})}var V={Root:Y,Trigger:E.Trigger,Portal:E.Portal,Backdrop:_,Viewport:$,Popup:f,Handle:g,Header:F,Title:P,Description:R,Body:T,Footer:X,Close:E.Close,CloseButton:b,VirtualKeyboardProvider:E.VirtualKeyboardProvider};export{Z as drawerPopupVariants,V as Drawer};export{Z as cc,V as dc};
1
+ import{ed as W}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import{xe as U}from"../../index-aq782dhn.js";import{ye as K}from"../../lib/utils.js";import{Drawer as J}from"@base-ui/react/drawer";import{faXmark as Z}from"@fortawesome/pro-solid-svg-icons";import{cva as _}from"class-variance-authority";import{createContext as Y,useContext as L}from"react";import{jsx as E}from"react/jsx-runtime";var M=Y("bottom"),O=Y("default");function $({side:q="bottom",size:A="default",...G}){return E(M.Provider,{value:q,children:E(O.Provider,{value:q==="bottom"?A:"default",children:E(J.Root,{swipeDirection:q==="bottom"?"down":q,...G})})})}var f=_(["relative flex min-h-0 w-full flex-col border border-hairline bg-background text-foreground shadow-xl outline-none","transition-transform duration-[calc(420ms*var(--drawer-swipe-strength,1))] ease-[cubic-bezier(0.32,0.72,0,1)]","data-[swiping]:transition-none motion-reduce:transition-none"],{variants:{side:{bottom:"rounded-t-2xl border-b-0 [transform:translateY(calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y,0px)))] data-[starting-style]:[transform:translateY(100%)] data-[ending-style]:[transform:translateY(100%)]",right:"h-full max-w-md rounded-l-2xl border-r-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(100%)] data-[ending-style]:[transform:translateX(100%)]",left:"h-full max-w-md rounded-r-2xl border-l-0 [transform:translateX(var(--drawer-swipe-movement-x,0px))] data-[starting-style]:[transform:translateX(-100%)] data-[ending-style]:[transform:translateX(-100%)]"},size:{default:"",full:""}},compoundVariants:[{side:"bottom",size:"default",className:"max-h-[calc(100dvh-env(safe-area-inset-top)-1rem-var(--drawer-keyboard-inset,0px))] max-w-lg"},{side:"bottom",size:"full",className:"h-[calc(100dvh-env(safe-area-inset-top)-0.875rem-var(--drawer-keyboard-inset,0px))] rounded-t-3xl before:pointer-events-none before:absolute before:inset-x-4 before:-top-2.5 before:h-3 before:rounded-t-2xl before:bg-background/30 before:content-['']"}],defaultVariants:{side:"bottom",size:"default"}});function g({className:q,...A}){let G=L(O);return E(J.Backdrop,{"data-slot":"drawer-backdrop",className:K("fixed inset-0 z-50 opacity-[calc(1-var(--drawer-swipe-progress,0))] transition-opacity duration-300 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[swiping]:transition-none motion-reduce:transition-none",G==="full"?"bg-black":"bg-overlay/35",q),...A})}function F({className:q,...A}){let G=L(M);return E(J.Viewport,{"data-slot":"drawer-viewport",className:K("fixed inset-0 z-50 flex [bottom:var(--drawer-keyboard-inset,0px)]",G==="bottom"?"items-end justify-center":G==="right"?"justify-end":"justify-start",q),...A})}function P({className:q,...A}){let G=L(M),Q=L(O);return E(J.Popup,{"data-slot":"drawer-popup","data-side":G,"data-size":Q,className:K(f({side:G,size:Q}),q),...A})}function R({className:q,...A}){if(L(M)!=="bottom")return null;return E("div",{...A,"aria-hidden":"true","data-slot":"drawer-handle",className:K("flex h-7 shrink-0 items-center justify-center",q),children:E("span",{className:"h-1 w-9 rounded-full bg-foreground/20"})})}function T({className:q,...A}){return E("div",{"data-slot":"drawer-header",className:K("relative shrink-0 px-6 pb-4 pt-6 [[data-side=bottom]_&]:pt-2",q),...A})}function X({className:q,...A}){return E(J.Title,{"data-slot":"drawer-title",className:K("pr-12 text-lg font-semibold text-foreground",q),...A})}function b({className:q,...A}){return E(J.Description,{"data-slot":"drawer-description",className:K("mt-2 text-sm leading-normal text-muted-foreground",q),...A})}function k({className:q,...A}){return E(J.Content,{"data-slot":"drawer-body",className:K("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pb-6","[background-image:linear-gradient(var(--color-background)_30%,transparent),linear-gradient(transparent,var(--color-background)_70%),linear-gradient(var(--color-ink-pressed),transparent),linear-gradient(transparent,var(--color-ink-pressed))] [background-size:100%_32px,100%_32px,100%_10px,100%_10px] [background-position:top,bottom,top,bottom] [background-repeat:no-repeat] [background-attachment:local,local,scroll,scroll]",q),...A})}function y({className:q,...A}){return E("div",{"data-slot":"drawer-footer",className:K("flex shrink-0 flex-col gap-3 border-t border-hairline px-6 pt-4 pb-[max(1.5rem,env(safe-area-inset-bottom))]",q),...A})}function H({className:q,children:A,...G}){return E(J.Close,{"aria-label":"Close drawer","data-slot":"drawer-close",className:K(W({variant:"ghost",size:"icon-xl"}),"absolute right-4 top-4 text-tertiary [[data-side=bottom]_&]:top-0",q),...G,children:A??E(U,{icon:Z})})}var C={Root:$,Trigger:J.Trigger,Portal:J.Portal,Backdrop:g,Viewport:F,Popup:P,Handle:R,Header:T,Title:X,Description:b,Body:k,Footer:y,Close:J.Close,CloseButton:H,VirtualKeyboardProvider:J.VirtualKeyboardProvider};export{f as drawerPopupVariants,C as Drawer};export{f as cc,C as dc};
@@ -1 +1 @@
1
- import{sa as K,ua as M}from"../../index-env8xaka.js";import{za as D}from"../../index-mq6f0tgx.js";import{Za as E,_a as J}from"../../index-mmas6ncx.js";import"../../index-dsdw1626.js";import{Oc as z,Wc as A}from"../../index-nr793zrn.js";import"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import{ye as g}from"../../lib/utils.js";import{cva as U}from"class-variance-authority";import{jsx as P,jsxs as q}from"react/jsx-runtime";var Q=U("mx-auto flex w-full flex-col gap-5",{variants:{width:{settings:"max-w-3xl",wide:"max-w-7xl"}},defaultVariants:{width:"settings"}});function W({width:S,back:B,className:G,children:R,...v}){return q("div",{"data-slot":"settings-container",className:"flex flex-col gap-8",children:[P("div",{className:"h-8",children:B}),P("div",{className:g(Q({width:S}),G),...v,children:R})]})}function X(S){return P(J,{...S})}function Y({title:S,badge:B,actions:G,description:R}){return P(E,{"data-slot":"settings-header",size:"display",title:S,badge:B,description:R,actions:G})}function Z({title:S,description:B,action:G,className:R,children:v}){return q("section",{"data-slot":"settings-section",className:g("flex flex-col gap-3 [[data-slot=settings-section]+&]:mt-3",R),children:[q("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[P("h2",{className:"text-base leading-tight font-semibold text-foreground",children:S}),B&&P("p",{className:"text-sm text-tertiary",children:B})]}),G&&P("div",{className:"shrink-0",children:G})]}),P(z,{padding:"md",children:P(A,{padding:"none",className:"flex flex-col gap-4 text-sm text-secondary",children:v})})]})}function _({label:S,description:B,htmlFor:G,className:R,children:v,...T}){return q("div",{"data-slot":"settings-row",className:g("flex flex-wrap items-center justify-between gap-x-8 gap-y-2",R),...T,children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[G?P(D,{htmlFor:G,children:S}):P("span",{className:"text-sm leading-none font-medium text-foreground",children:S}),B&&P("p",{className:"max-w-md text-[13px] leading-normal text-tertiary",children:B})]}),v&&P("div",{className:"flex shrink-0 items-center gap-2",children:v})]})}function $({className:S,...B}){return P("hr",{"data-slot":"settings-separator",className:g("-mx-5 my-1 border-t border-border",S),...B})}function I({className:S,...B}){return P("nav",{"data-slot":"settings-nav",className:g("flex w-56 shrink-0 flex-col gap-6",S),...B})}function O({title:S,className:B,children:G,...R}){return q("div",{"data-slot":"settings-nav-group",className:g("flex flex-col",B),...R,children:[S&&P(K,{children:S}),P("div",{className:"flex flex-col gap-0.5",children:G})]})}function V({current:S,className:B,...G}){return P(M,{nested:!0,current:S,surface:"canvas",className:g(S?"font-medium":"text-secondary",B),...G})}export{Q as settingsContainerVariants,$ as SettingsSeparator,Z as SettingsSection,_ as SettingsRow,V as SettingsNavItem,O as SettingsNavGroup,I as SettingsNav,Y as SettingsHeader,W as SettingsContainer,X as SettingsBackButton};export{Q as aa,W as ba,X as ca,Y as da,Z as ea,_ as fa,$ as ga,I as ha,O as ia,V as ja};
1
+ import{sa as K,ua as M}from"../../index-tnergzh9.js";import{za as D}from"../../index-mq6f0tgx.js";import{Za as E,_a as J}from"../../index-mmas6ncx.js";import"../../index-dsdw1626.js";import{Oc as z,Wc as A}from"../../index-nr793zrn.js";import"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import{ye as g}from"../../lib/utils.js";import{cva as U}from"class-variance-authority";import{jsx as P,jsxs as q}from"react/jsx-runtime";var Q=U("mx-auto flex w-full flex-col gap-5",{variants:{width:{settings:"max-w-3xl",wide:"max-w-7xl"}},defaultVariants:{width:"settings"}});function W({width:S,back:B,className:G,children:R,...v}){return q("div",{"data-slot":"settings-container",className:"flex flex-col gap-8",children:[P("div",{className:"h-8",children:B}),P("div",{className:g(Q({width:S}),G),...v,children:R})]})}function X(S){return P(J,{...S})}function Y({title:S,badge:B,actions:G,description:R}){return P(E,{"data-slot":"settings-header",size:"display",title:S,badge:B,description:R,actions:G})}function Z({title:S,description:B,action:G,className:R,children:v}){return q("section",{"data-slot":"settings-section",className:g("flex flex-col gap-3 [[data-slot=settings-section]+&]:mt-3",R),children:[q("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[P("h2",{className:"text-base leading-tight font-semibold text-foreground",children:S}),B&&P("p",{className:"text-sm text-tertiary",children:B})]}),G&&P("div",{className:"shrink-0",children:G})]}),P(z,{padding:"md",children:P(A,{padding:"none",className:"flex flex-col gap-4 text-sm text-secondary",children:v})})]})}function _({label:S,description:B,htmlFor:G,className:R,children:v,...T}){return q("div",{"data-slot":"settings-row",className:g("flex flex-wrap items-center justify-between gap-x-8 gap-y-2",R),...T,children:[q("div",{className:"flex min-w-0 flex-col gap-1",children:[G?P(D,{htmlFor:G,children:S}):P("span",{className:"text-sm leading-none font-medium text-foreground",children:S}),B&&P("p",{className:"max-w-md text-[13px] leading-normal text-tertiary",children:B})]}),v&&P("div",{className:"flex shrink-0 items-center gap-2",children:v})]})}function $({className:S,...B}){return P("hr",{"data-slot":"settings-separator",className:g("-mx-5 my-1 border-t border-border",S),...B})}function I({className:S,...B}){return P("nav",{"data-slot":"settings-nav",className:g("flex w-56 shrink-0 flex-col gap-6",S),...B})}function O({title:S,className:B,children:G,...R}){return q("div",{"data-slot":"settings-nav-group",className:g("flex flex-col",B),...R,children:[S&&P(K,{children:S}),P("div",{className:"flex flex-col gap-0.5",children:G})]})}function V({current:S,className:B,...G}){return P(M,{nested:!0,current:S,surface:"canvas",className:g(S?"font-medium":"text-secondary",B),...G})}export{Q as settingsContainerVariants,$ as SettingsSeparator,Z as SettingsSection,_ as SettingsRow,V as SettingsNavItem,O as SettingsNavGroup,I as SettingsNav,Y as SettingsHeader,W as SettingsContainer,X as SettingsBackButton};export{Q as aa,W as ba,X as ca,Y as da,Z as ea,_ as fa,$ as ga,I as ha,O as ia,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AAqB,GAAG,wBAAwB,CACpD,OAAO,eAAe,CAAC,IAAI,CAC3B,CAAC;AAEF,MAAM,WAAW,iBAChB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,WAAW,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAOD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,SAAS,EACT,YAAY,EACZ,GAAG,KAAK,EACR,EAAE,iBAAiB,+BAgBnB;AAED,MAAM,WAAW,wBAChB,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EACxD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;yCACyC;AACzC,wBAAgB,mBAAmB,CAAC,EACnC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,wBAAwB,+BAoB1B;AAED,MAAM,WAAW,sBAChB,SAAQ,IAAI,CACX,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,EACtD,WAAW,CACX;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,EACjC,SAAS,EACT,QAAQ,EACR,eAAe,EACf,GAAG,KAAK,EACR,EAAE,sBAAsB,+BAwCxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;CAAG;AAE9E,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAQtE;AAED,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- import{ka as r,la as e,ma as a,na as i,oa as d,pa as S,qa as b,ra as o,sa as p,ta as s,ua as P,va as t,wa as n,xa as u,ya as g}from"../../index-env8xaka.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import"../../lib/utils.js";export{r as sidebarVariants,s as sidebarItemVariants,o as SidebarSpacer,S as SidebarSection,g as SidebarLabel,P as SidebarItem,p as SidebarHeading,a as SidebarHeader,n as SidebarGroupTrigger,u as SidebarGroupPanel,t as SidebarGroup,d as SidebarFooter,b as SidebarDivider,i as SidebarBody,e as Sidebar};
1
+ import{ka as r,la as e,ma as a,na as i,oa as d,pa as S,qa as b,ra as o,sa as p,ta as s,ua as P,va as t,wa as n,xa as u,ya as g}from"../../index-tnergzh9.js";import"../Icon/index.js";import"../../index-aq782dhn.js";import"../../lib/utils.js";export{r as sidebarVariants,s as sidebarItemVariants,o as SidebarSpacer,S as SidebarSection,g as SidebarLabel,P as SidebarItem,p as SidebarHeading,a as SidebarHeader,n as SidebarGroupTrigger,u as SidebarGroupPanel,t as SidebarGroup,d as SidebarFooter,b as SidebarDivider,i as SidebarBody,e as Sidebar};
@@ -0,0 +1,2 @@
1
+ import{xe as I}from"./index-aq782dhn.js";import{ye as K}from"./lib/utils.js";import{Collapsible as A}from"@base-ui/react/collapsible";import{mergeProps as f}from"@base-ui/react/merge-props";import{useRender as x}from"@base-ui/react/use-render";import{faChevronRight as m}from"@fortawesome/pro-solid-svg-icons";import{cva as D}from"class-variance-authority";import{createContext as w,createElement as u,useContext as X,useLayoutEffect as l,useRef as y,useState as d}from"react";import{jsx as F,jsxs as _}from"react/jsx-runtime";var p=D(["isolate flex h-full min-h-0 flex-col","[--sidebar-indent:38px] [--sidebar-rail:18px] sm:[--sidebar-indent:35.5px] sm:[--sidebar-rail:16.75px]"],{variants:{variant:{default:"",bordered:"border-r border-border"},surface:{default:"",canvas:""}},defaultVariants:{variant:"default",surface:"default"}}),T=w("default"),g=w(null),R=w(!1);function zq({className:q,variant:z,surface:M,...Q}){let H=M??"default",J=y(null);return F(T.Provider,{value:H,children:F(g.Provider,{value:J,children:F("nav",{...Q,"data-surface":H,className:K(p({variant:z,surface:H}),q)})})})}function Fq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-header",className:K("isolate flex flex-col border-b border-border px-2 pb-2 [&>[data-slot=section]+[data-slot=section]]:mt-2.5",q)})}function Hq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-body",className:K("isolate flex flex-1 flex-col overflow-y-auto px-2 py-3 [&>[data-slot=section]+[data-slot=section]]:mt-5",q)})}function Jq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-footer",className:K("isolate flex flex-col border-t border-border px-2 py-2.5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5",q)})}function Kq({className:q,...z}){return F("div",{...z,"data-slot":"section",className:K("flex flex-col gap-[3px]",q)})}function Mq({className:q,...z}){return F("hr",{...z,"data-slot":"sidebar-divider",className:K("-mx-2 my-3 border-t border-border",q)})}function Qq({className:q,...z}){return F("div",{"aria-hidden":"true",...z,"data-slot":"sidebar-spacer",className:K("mt-8 flex-1",q)})}function Uq({className:q,...z}){return F("h3",{...z,"data-slot":"sidebar-heading",className:K("mb-1 px-2 text-xs/6 font-medium text-muted-foreground",q)})}var G=D(["relative flex w-full items-center gap-2.5 rounded-lg px-2 text-left text-foreground transition-colors","hover:bg-accent active:bg-ink-pressed","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground","hover:[&_[data-slot=icon]]:text-foreground active:[&_[data-slot=icon]]:text-foreground","[&_[data-slot=icon]:not(:first-child):last-child]:ml-auto","[&_[data-slot=icon]:not(:first-child):last-child]:h-[1em] [&_[data-slot=icon]:not(:first-child):last-child]:w-auto [&_[data-slot=icon]:not(:first-child):last-child]:text-[0.875em]","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{nested:{true:["py-1.5 text-sm/5 text-muted-foreground","[&_[data-slot=icon]]:size-4","hover:text-foreground"],false:["py-2.5 text-base/6 sm:py-2 sm:text-sm/5","[&_[data-slot=icon]]:size-5 sm:[&_[data-slot=icon]]:size-[18px]"]},grouped:{true:"pl-[var(--sidebar-indent,38px)]",false:""},surface:{default:"",canvas:""},current:{true:"font-medium text-foreground [&_[data-slot=icon]]:text-foreground",false:"font-normal"}},defaultVariants:{nested:!1,grouped:!1,surface:"default",current:!1},compoundVariants:[{current:!0,surface:"canvas",className:"hover:bg-transparent hover:shadow-sm active:bg-ink-pressed active:shadow-none"}]}),i=D("pointer-events-none absolute inset-0 rounded-lg",{variants:{surface:{default:"bg-ink-pressed",canvas:"bg-background shadow-xs"}}}),h='[data-slot="sidebar-header"], [data-slot="sidebar-body"], [data-slot="sidebar-footer"]';function c(q,z,M,Q){if(!z.element.isConnected||z.element.closest(h)!==M.closest(h)||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let H=z.element.getBoundingClientRect(),J=M.getBoundingClientRect();if(H.height===0)return;let U={duration:260,easing:"cubic-bezier(0.32, 0.72, 0, 1)"};q.animate([{transform:`translate(${H.left-J.left}px, ${H.top-J.top}px)`,width:`${H.width}px`,height:`${H.height}px`,zIndex:-1},{transform:"translate(0, 0)",width:`${J.width}px`,height:`${J.height}px`,zIndex:-1}],U);let Y=q.firstElementChild;if(Y instanceof HTMLElement&&z.grouped!==Q)Y.animate([{opacity:z.grouped?1:0},{opacity:Q?1:0}],U)}function Wq({current:q,nested:z,grouped:M,surface:Q,action:H,className:J,children:U,render:Y,as:O,...S}){let j=X(T),C=X(R),Z=X(g),P=Q??j,W=M??C,B=Y??(O?u(O):void 0),k=y(null),V=y(null);l(()=>{let $=k.current,E=V.current;if(!q||!Z||!$||!E)return;let L=Z.current;if(Z.current={element:$,grouped:W},L&&L.element!==$)c(E,L,$,W)},[q,Z,W]);let N={className:K(G({current:q??!1,nested:z??!1,grouped:W,surface:P}),H&&"pr-10",!B&&"cursor-default",J),"aria-current":q?"page":void 0,"data-current":q?"true":void 0,"data-slot":"sidebar-item",children:U},v=x({defaultTagName:"button",render:B,props:f(N,S)});return _("span",{ref:k,"data-slot":"sidebar-item-container",className:"relative block min-w-0",children:[q&&F("span",{ref:V,"aria-hidden":"true","data-slot":"sidebar-item-indicator",className:i({surface:P}),children:F("span",{"data-slot":"sidebar-item-tick",className:K("absolute top-1/2 left-[calc(var(--sidebar-rail,18px)_-_1.5px)] h-4 w-[3px] -translate-y-1/2 rounded-full bg-primary",!W&&"opacity-0")})}),v,H&&F("span",{"data-slot":"sidebar-item-action",className:"absolute inset-y-0 right-1 z-10 flex items-center",children:H})]})}var b=w(null);function Xq({className:q,onOpenChange:z,...M}){let[Q,H]=d(!1);return F(b.Provider,{value:{settling:Q,setSettling:H},children:F(A.Root,{...M,"data-slot":"sidebar-group",className:K("flex flex-col",q),onOpenChange:(J,U)=>{H(!0),z?.(J,U)}})})}function Yq({className:q,children:z,...M}){let Q=X(T);return _(A.Trigger,{...M,"data-slot":"sidebar-group-trigger",className:K(G({surface:Q}),"group/sidebar-group-trigger cursor-default",q),children:[z,F(I,{icon:m,className:"transition-transform duration-200 group-data-[panel-open]/sidebar-group-trigger:rotate-90"})]})}function Zq({className:q,children:z,onTransitionEnd:M,...Q}){let H=X(b);return F(A.Panel,{...Q,"data-settling":H?.settling||void 0,onTransitionEnd:(J)=>{if(J.target===J.currentTarget&&J.propertyName==="height")H?.setSettling(!1);M?.(J)},className:K("h-[var(--collapsible-panel-height)] transition-[height] duration-200 ease-out","data-[ending-style]:h-0 data-[starting-style]:h-0","data-[settling]:[clip-path:inset(-4px_-10px)]",q),children:F(R.Provider,{value:!0,children:_("div",{"data-slot":"sidebar-group-panel",className:"relative flex flex-col gap-[3px] pt-[3px]",children:[F("span",{"aria-hidden":"true","data-slot":"sidebar-group-rail",className:"pointer-events-none absolute top-[calc(3px_+_0.5rem)] bottom-2 left-[calc(var(--sidebar-rail,18px)_-_0.5px)] border-l border-hairline"}),z]})})})}function $q({className:q,...z}){return F("span",{...z,"data-slot":"sidebar-label",className:K("truncate",q)})}
2
+ export{p as ka,zq as la,Fq as ma,Hq as na,Jq as oa,Kq as pa,Mq as qa,Qq as ra,Uq as sa,G as ta,Wq as ua,Xq as va,Yq as wa,Zq as xa,$q as ya};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as Yt,b as $t,c as op,d as ep}from"./components/Tooltip/index.js";import{e as rp}from"./components/VideoDialog/index.js";import{f as Dt,g as Ft}from"./components/Slider/index.js";import{h as Lt,i as Nt,j as ft,k as vt,l as Gt,m as At,n as Bt,o as Ht}from"./components/Table/index.js";import"./components/Tabs/index.js";import{p as Rt}from"./components/Tags/index.js";import{q as Ot,r as Mt,s as _t,t as kt,u as Et,v as wt,w as ht,x as zt}from"./components/Text/index.js";import{y as Zt,z as Ut}from"./components/Textarea/index.js";import{A as Xt,B as Kt,C as Wt,D as jt}from"./components/Toast/index.js";import{E as qt,F as Jt,G as Qt}from"./components/Toggle/index.js";import{H as Br,I as Hr,J as Rr,K as Or,L as Mr,M as _r,N as kr,O as Er}from"./components/Panel/index.js";import{P as wr,Q as hr}from"./components/PinInput/index.js";import{R as zr,S as Zr,T as Ur,U as Xr,V as Kr}from"./components/RadioGroup/index.js";import{W as Wr,X as jr}from"./components/Rating/index.js";import{$ as Yr,Y as qr,Z as Jr,_ as Qr}from"./components/Select/index.js";import{aa as bt,ba as ut,ca as gt,da as Ct,ea as ct,fa as It,ga as Tt,ha as xt,ia as St,ja as Vt}from"./components/Settings/index.js";import"./components/Sidebar/index.js";import{ka as $r,la as ot,ma as et,na as rt,oa as tt,pa as pt,qa as at,ra as it,sa as nt,ta as st,ua as Pt,va as yt,wa as dt,xa as lt,ya as mt}from"./index-env8xaka.js";import"./components/Label/index.js";import{za as _e}from"./index-mq6f0tgx.js";import{Aa as ke,Ba as Ee}from"./components/LoadingIndicator/index.js";import{Ca as we,Da as he,Ea as ze,Fa as Ze,Ga as Ue,Ha as Xe}from"./components/MoneyAmount/index.js";import{Ia as Ke,Ja as We,Ka as je,La as qe,Ma as Je,Na as Qe,Oa as Ye,Pa as $e,Qa as or,Ra as er,Sa as rr,Ta as tr}from"./components/Navbar/index.js";import{Ua as pr,Va as ar,Wa as ir}from"./components/NumberField/index.js";import"./components/PageHeading/index.js";import{$a as Cr,Xa as mr,Ya as br,Za as ur,_a as gr,ab as cr}from"./index-mmas6ncx.js";import{bb as nr,cb as sr,db as Pr,eb as yr,fb as dr,gb as lr}from"./index-dsdw1626.js";import{hb as Ir,ib as Tr}from"./components/PageLayout/index.js";import{jb as xr,kb as Sr,lb as Vr,mb as Dr,nb as Fr,ob as Lr,pb as Nr,qb as fr,rb as vr,sb as Gr,tb as Ar}from"./components/Pagination/index.js";import{ub as ae,vb as ie,wb as ne,xb as se,yb as Pe}from"./components/Form/index.js";import{Ab as de,Bb as le,Cb as me,zb as ye}from"./components/ImperativeDialog/index.js";import{Db as be,Eb as ue}from"./components/InlineAlert/index.js";import{Fb as ge}from"./components/Input/index.js";import{Gb as Ce,Hb as ce,Ib as Ie,Jb as Te,Kb as xe,Lb as Se,Mb as Ve,Nb as De}from"./components/InputGroup/index.js";import{Ob as Fe,Pb as Le,Qb as Ne,Rb as fe,Sb as ve,Tb as Ge,Ub as Ae,Vb as Be,Wb as He,Xb as Re,Yb as Oe,Zb as Me}from"./components/Item/index.js";import{$b as Vo,_b as So,ac as Do,bc as Fo}from"./components/DatePicker/index.js";import{cc as Va,dc as Da}from"./components/Drawer/index.js";import{ec as Lo,fc as No,gc as fo,hc as vo,ic as Go,jc as Ao,kc as Bo,lc as Ho}from"./components/DropdownMenu/index.js";import{mc as Mo,nc as _o,oc as ko,pc as Eo,qc as wo,rc as ho,sc as zo,tc as Zo,uc as Uo,vc as Xo,wc as Ko,xc as Wo,yc as jo}from"./components/Field/index.js";import{Ac as $o,zc as Yo}from"./components/FileUpload/index.js";import{Bc as qo,Cc as Jo,Dc as Qo}from"./components/Progress/index.js";import{Ec as Ro,Fc as Oo}from"./components/FeaturedIcon/index.js";import{Gc as oe,Hc as ee,Ic as re,Jc as te,Kc as pe}from"./components/Footer/index.js";import"./components/Button/index.js";import{Lc as S,Mc as V}from"./components/ButtonGroup/index.js";import"./components/Card/index.js";import{Oc as D,Qc as F,Rc as L,Sc as N,Tc as f,Uc as v,Wc as G,Yc as A}from"./index-nr793zrn.js";import{$c as R,Zc as B,_c as H,ad as O,bd as M,cd as _,dd as k}from"./components/Carousel/index.js";import{fd as x}from"./index-9scn04dv.js";import{gd as E,hd as w,id as h}from"./components/Checkbox/index.js";import{jd as z,kd as Z,ld as U,md as X,nd as K,od as W,pd as j,qd as q}from"./components/Collapsible/index.js";import{Ad as ao,Bd as io,Cd as no,rd as J,sd as Q,td as Y,ud as $,vd as oo,wd as eo,xd as ro,yd as to,zd as po}from"./components/Combobox/index.js";import{Dd as tp,Ed as pp,Fd as ap,Gd as ip,Hd as np,Id as sp,Jd as Pp,Kd as yp,Ld as dp,Md as lp,Nd as mp,Od as bp,Pd as up,Qd as gp,Rd as Cp}from"./index-2nc1awt9.js";import{$d as xo,Sd as lo,Td as mo,Ud as bo,Vd as uo,Wd as go,Xd as Co,Yd as co,Zd as Io,_d as To}from"./components/Command/index.js";import{ae as Po,be as yo}from"./components/Kbd/index.js";import{ce as so}from"./components/Dialog/index.js";import{de as o,ee as e,fe as r,ge as t,he as p,ie as a,je as i}from"./components/Accordion/index.js";import{ke as n}from"./components/AlertDialog/index.js";import{le as s,me as P,ne as y}from"./components/Avatar/index.js";import{oe as d,pe as l}from"./components/Badge/index.js";import{qe as b,re as u,se as g,te as C,ue as c,ve as I,we as T}from"./components/Breadcrumbs/index.js";import"./components/Icon/index.js";import{xe as m}from"./index-aq782dhn.js";import"./lib/utils.js";export{jt as useToast,Mo as useInFieldContainer,de as useImperativeDialog,me as useConfirm,B as useCarousel,le as useAlert,qt as toggleVariants,Jt as toggleThumbVariants,Xt as toastVariants,Zt as textareaVariants,Ot as textVariants,_t as textLinkVariants,sr as tabsTriggerVariants,nr as tabsListVariants,Et as strongVariants,Dt as sliderVariants,$r as sidebarVariants,st as sidebarItemVariants,bt as settingsContainerVariants,qr as selectTriggerVariants,Jr as selectPopupVariants,Qr as selectItemVariants,Wr as ratingVariants,Zr as radioItemVariants,Ur as radioIndicatorVariants,zr as radioGroupVariants,qo as progressTrackVariants,Jo as progressIndicatorVariants,wr as pinInputVariants,Br as panelVariants,Rr as panelHeaderVariants,kr as panelFooterVariants,Mr as panelBodyVariants,xr as paginationVariants,Vr as paginationLinkVariants,Dr as paginationEllipsisVariants,Sr as paginationContentVariants,mr as pageHeadingVariants,br as pageHeadingTitleVariants,pr as numberFieldInputVariants,ar as numberFieldButtonVariants,Ke as navbarVariants,er as navbarItemVariants,he as moneySign,ze as moneyCurrencyCode,Ue as moneyAmountVariants,ke as loadingIndicatorVariants,Ne as itemVariants,ve as itemMediaVariants,we as isMoneyLike,Te as inputGroupButtonVariants,ce as inputGroupAddonVariants,be as inlineAlertVariants,Ze as formatMoney,Yo as fileUploadVariants,ko as fieldVariants,Ro as featuredIconVariants,Ao as dropdownMenuSubTriggerVariants,Bo as dropdownMenuSubContentVariants,Go as dropdownMenuShortcutVariants,vo as dropdownMenuSeparatorVariants,fo as dropdownMenuLabelVariants,No as dropdownMenuItemVariants,Lo as dropdownMenuContentVariants,Va as drawerPopupVariants,So as datePickerTriggerVariants,Vo as datePickerPopupVariants,Do as datePickerDayVariants,lo as commandVariants,Io as commandShortcutVariants,Co as commandSeparatorVariants,bo as commandListVariants,co as commandItemVariants,To as commandInputWrapperVariants,mo as commandInputVariants,go as commandGroupVariants,uo as commandEmptyVariants,ro as comboboxStatusVariants,oo as comboboxItemVariants,J as comboboxInputVariants,Q as comboboxInputGroupVariants,to as comboboxGroupLabelVariants,eo as comboboxEmptyVariants,$ as comboboxContentVariants,po as comboboxChipsVariants,ao as comboboxChipVariants,io as comboboxChipRemoveVariants,Y as comboboxButtonVariants,z as collapsibleTriggerVariants,Z as collapsiblePanelVariants,ht as codeVariants,E as checkboxVariants,w as checkboxIndicatorVariants,d as badgeVariants,s as avatarVariants,e as accordionTriggerVariants,r as accordionPanelVariants,o as accordionItemVariants,rp as VideoDialog,op as TooltipTrigger,Yt as TooltipProvider,ep as TooltipContent,$t as Tooltip,Qt as Toggle,Wt as Toaster,Kt as ToastProvider,Ut as Textarea,kt as TextLink,Mt as Text,Rt as Tags,dr as TabsTrigger,yr as TabsList,lr as TabsContent,Pr as Tabs,Gt as TableRow,Nt as TableHeader,At as TableHead,vt as TableFooter,Bt as TableCell,Ht as TableCaption,ft as TableBody,Lt as Table,wt as Strong,Ft as Slider,it as SidebarSpacer,pt as SidebarSection,mt as SidebarLabel,Pt as SidebarItem,nt as SidebarHeading,et as SidebarHeader,dt as SidebarGroupTrigger,lt as SidebarGroupPanel,yt as SidebarGroup,tt as SidebarFooter,at as SidebarDivider,rt as SidebarBody,ot as Sidebar,Tt as SettingsSeparator,ct as SettingsSection,It as SettingsRow,Vt as SettingsNavItem,St as SettingsNavGroup,xt as SettingsNav,Ct as SettingsHeader,ut as SettingsContainer,gt as SettingsBackButton,Yr as Select,jr as Rating,Kr as RadioGroupItem,Xr as RadioGroup,Qo as Progress,hr as PinInput,Or as PanelHeader,Er as PanelFooter,_r as PanelBody,Hr as Panel,vr as PaginationPrevious,Gr as PaginationNext,fr as PaginationLink,Nr as PaginationItem,Ar as PaginationEllipsis,Lr as PaginationContent,Fr as Pagination,Tr as PageLayoutColumns,Ir as PageLayout,cr as PageHeadingNavLink,Cr as PageHeadingNav,gr as PageHeadingBackLink,ur as PageHeading,ir as NumberField,$e as NavbarSpacer,Qe as NavbarSection,tr as NavbarLabel,rr as NavbarItem,or as NavbarHeading,je as NavbarHeader,Je as NavbarFooter,Ye as NavbarDivider,qe as NavbarBody,We as Navbar,Xe as MoneyAmount,Ee as LoadingIndicator,_e as Label,yo as KbdGroup,Po as Kbd,Be as ItemTitle,Le as ItemSeparator,Ge as ItemMedia,Oe as ItemHeader,Fe as ItemGroup,Me as ItemFooter,He as ItemDescription,Ae as ItemContent,Re as ItemActions,fe as Item,De as InputGroupTextarea,Se as InputGroupText,Ve as InputGroupInput,xe as InputGroupButton,Ie as InputGroupAddon,Ce as InputGroup,ge as Input,ue as InlineAlert,ye as ImperativeDialogProvider,m as Icon,ne as FormSection,se as FormRow,ie as FormField,Pe as FormActions,ae as Form,ee as FooterRow,te as FooterNav,re as FooterMeta,pe as FooterLink,oe as Footer,$o as FileUpload,Xo as FieldTitle,wo as FieldSet,Wo as FieldSeparator,ho as FieldLegend,Uo as FieldLabel,zo as FieldGroup,jo as FieldError,Ko as FieldDescription,Zo as FieldContent,_o as FieldContainerProvider,Eo as Field,Oo as FeaturedIcon,Ho as DropdownMenu,Da as Drawer,so as Dialog,Fo as DatePicker,xo as Command,no as Combobox,X as CollapsibleTrigger,U as CollapsibleRoot,K as CollapsiblePanel,W as CollapsibleContent,j as CollapsibleChevron,q as Collapsible,zt as Code,h as Checkbox,M as CarouselPrevious,_ as CarouselNext,O as CarouselItem,k as CarouselDots,R as CarouselContent,H as Carousel,N as CardTitle,L as CardHeaderContent,F as CardHeader,A as CardFooter,f as CardDescription,G as CardContent,v as CardAction,D as Card,ip as CONTROL_TEXT,tp as CONTROL_SIZES,np as CONTROL_INPUT_TEXT,yp as CONTROL_INPUT_SIZE,mp as CONTROL_ICON_PAD,lp as CONTROL_ICON_EDGE,Cp as CONTROL_HEIGHT_TEXT_WITH_ICON,sp as CONTROL_HEIGHT_TEXT,pp as CONTROL_HEIGHT_PX,ap as CONTROL_HEIGHT_CLASS,bp as CONTROL_FIELD_SIZE_WITH_ICON,gp as CONTROL_FIELD_SIZE_TRAILING_ICON,up as CONTROL_FIELD_SIZE_LEADING_ICON,Pp as CONTROL_FIELD_SIZE,dp as CONTROL_FIELD_ICON,V as ButtonGroupSeparator,S as ButtonGroup,x as Button,b as Breadcrumbs,I as BreadcrumbSeparator,c as BreadcrumbPage,u as BreadcrumbList,C as BreadcrumbLink,g as BreadcrumbItem,T as BreadcrumbEllipsis,l as Badge,y as AvatarGroup,P as Avatar,n as AlertDialog,a as AccordionTrigger,p as AccordionItem,i as AccordionContent,t as Accordion};
1
+ import{a as Yt,b as $t,c as op,d as ep}from"./components/Tooltip/index.js";import{e as rp}from"./components/VideoDialog/index.js";import{f as Dt,g as Ft}from"./components/Slider/index.js";import{h as Lt,i as Nt,j as ft,k as vt,l as Gt,m as At,n as Bt,o as Ht}from"./components/Table/index.js";import"./components/Tabs/index.js";import{p as Rt}from"./components/Tags/index.js";import{q as Ot,r as Mt,s as _t,t as kt,u as Et,v as wt,w as ht,x as zt}from"./components/Text/index.js";import{y as Zt,z as Ut}from"./components/Textarea/index.js";import{A as Xt,B as Kt,C as Wt,D as jt}from"./components/Toast/index.js";import{E as qt,F as Jt,G as Qt}from"./components/Toggle/index.js";import{H as Br,I as Hr,J as Rr,K as Or,L as Mr,M as _r,N as kr,O as Er}from"./components/Panel/index.js";import{P as wr,Q as hr}from"./components/PinInput/index.js";import{R as zr,S as Zr,T as Ur,U as Xr,V as Kr}from"./components/RadioGroup/index.js";import{W as Wr,X as jr}from"./components/Rating/index.js";import{$ as Yr,Y as qr,Z as Jr,_ as Qr}from"./components/Select/index.js";import{aa as bt,ba as ut,ca as gt,da as Ct,ea as ct,fa as It,ga as Tt,ha as xt,ia as St,ja as Vt}from"./components/Settings/index.js";import"./components/Sidebar/index.js";import{ka as $r,la as ot,ma as et,na as rt,oa as tt,pa as pt,qa as at,ra as it,sa as nt,ta as st,ua as Pt,va as yt,wa as dt,xa as lt,ya as mt}from"./index-tnergzh9.js";import"./components/Label/index.js";import{za as _e}from"./index-mq6f0tgx.js";import{Aa as ke,Ba as Ee}from"./components/LoadingIndicator/index.js";import{Ca as we,Da as he,Ea as ze,Fa as Ze,Ga as Ue,Ha as Xe}from"./components/MoneyAmount/index.js";import{Ia as Ke,Ja as We,Ka as je,La as qe,Ma as Je,Na as Qe,Oa as Ye,Pa as $e,Qa as or,Ra as er,Sa as rr,Ta as tr}from"./components/Navbar/index.js";import{Ua as pr,Va as ar,Wa as ir}from"./components/NumberField/index.js";import"./components/PageHeading/index.js";import{$a as Cr,Xa as mr,Ya as br,Za as ur,_a as gr,ab as cr}from"./index-mmas6ncx.js";import{bb as nr,cb as sr,db as Pr,eb as yr,fb as dr,gb as lr}from"./index-dsdw1626.js";import{hb as Ir,ib as Tr}from"./components/PageLayout/index.js";import{jb as xr,kb as Sr,lb as Vr,mb as Dr,nb as Fr,ob as Lr,pb as Nr,qb as fr,rb as vr,sb as Gr,tb as Ar}from"./components/Pagination/index.js";import{ub as ae,vb as ie,wb as ne,xb as se,yb as Pe}from"./components/Form/index.js";import{Ab as de,Bb as le,Cb as me,zb as ye}from"./components/ImperativeDialog/index.js";import{Db as be,Eb as ue}from"./components/InlineAlert/index.js";import{Fb as ge}from"./components/Input/index.js";import{Gb as Ce,Hb as ce,Ib as Ie,Jb as Te,Kb as xe,Lb as Se,Mb as Ve,Nb as De}from"./components/InputGroup/index.js";import{Ob as Fe,Pb as Le,Qb as Ne,Rb as fe,Sb as ve,Tb as Ge,Ub as Ae,Vb as Be,Wb as He,Xb as Re,Yb as Oe,Zb as Me}from"./components/Item/index.js";import{$b as Vo,_b as So,ac as Do,bc as Fo}from"./components/DatePicker/index.js";import{cc as Va,dc as Da}from"./components/Drawer/index.js";import{ec as Lo,fc as No,gc as fo,hc as vo,ic as Go,jc as Ao,kc as Bo,lc as Ho}from"./components/DropdownMenu/index.js";import{mc as Mo,nc as _o,oc as ko,pc as Eo,qc as wo,rc as ho,sc as zo,tc as Zo,uc as Uo,vc as Xo,wc as Ko,xc as Wo,yc as jo}from"./components/Field/index.js";import{Ac as $o,zc as Yo}from"./components/FileUpload/index.js";import{Bc as qo,Cc as Jo,Dc as Qo}from"./components/Progress/index.js";import{Ec as Ro,Fc as Oo}from"./components/FeaturedIcon/index.js";import{Gc as oe,Hc as ee,Ic as re,Jc as te,Kc as pe}from"./components/Footer/index.js";import"./components/Button/index.js";import{Lc as S,Mc as V}from"./components/ButtonGroup/index.js";import"./components/Card/index.js";import{Oc as D,Qc as F,Rc as L,Sc as N,Tc as f,Uc as v,Wc as G,Yc as A}from"./index-nr793zrn.js";import{$c as R,Zc as B,_c as H,ad as O,bd as M,cd as _,dd as k}from"./components/Carousel/index.js";import{fd as x}from"./index-9scn04dv.js";import{gd as E,hd as w,id as h}from"./components/Checkbox/index.js";import{jd as z,kd as Z,ld as U,md as X,nd as K,od as W,pd as j,qd as q}from"./components/Collapsible/index.js";import{Ad as ao,Bd as io,Cd as no,rd as J,sd as Q,td as Y,ud as $,vd as oo,wd as eo,xd as ro,yd as to,zd as po}from"./components/Combobox/index.js";import{Dd as tp,Ed as pp,Fd as ap,Gd as ip,Hd as np,Id as sp,Jd as Pp,Kd as yp,Ld as dp,Md as lp,Nd as mp,Od as bp,Pd as up,Qd as gp,Rd as Cp}from"./index-2nc1awt9.js";import{$d as xo,Sd as lo,Td as mo,Ud as bo,Vd as uo,Wd as go,Xd as Co,Yd as co,Zd as Io,_d as To}from"./components/Command/index.js";import{ae as Po,be as yo}from"./components/Kbd/index.js";import{ce as so}from"./components/Dialog/index.js";import{de as o,ee as e,fe as r,ge as t,he as p,ie as a,je as i}from"./components/Accordion/index.js";import{ke as n}from"./components/AlertDialog/index.js";import{le as s,me as P,ne as y}from"./components/Avatar/index.js";import{oe as d,pe as l}from"./components/Badge/index.js";import{qe as b,re as u,se as g,te as C,ue as c,ve as I,we as T}from"./components/Breadcrumbs/index.js";import"./components/Icon/index.js";import{xe as m}from"./index-aq782dhn.js";import"./lib/utils.js";export{jt as useToast,Mo as useInFieldContainer,de as useImperativeDialog,me as useConfirm,B as useCarousel,le as useAlert,qt as toggleVariants,Jt as toggleThumbVariants,Xt as toastVariants,Zt as textareaVariants,Ot as textVariants,_t as textLinkVariants,sr as tabsTriggerVariants,nr as tabsListVariants,Et as strongVariants,Dt as sliderVariants,$r as sidebarVariants,st as sidebarItemVariants,bt as settingsContainerVariants,qr as selectTriggerVariants,Jr as selectPopupVariants,Qr as selectItemVariants,Wr as ratingVariants,Zr as radioItemVariants,Ur as radioIndicatorVariants,zr as radioGroupVariants,qo as progressTrackVariants,Jo as progressIndicatorVariants,wr as pinInputVariants,Br as panelVariants,Rr as panelHeaderVariants,kr as panelFooterVariants,Mr as panelBodyVariants,xr as paginationVariants,Vr as paginationLinkVariants,Dr as paginationEllipsisVariants,Sr as paginationContentVariants,mr as pageHeadingVariants,br as pageHeadingTitleVariants,pr as numberFieldInputVariants,ar as numberFieldButtonVariants,Ke as navbarVariants,er as navbarItemVariants,he as moneySign,ze as moneyCurrencyCode,Ue as moneyAmountVariants,ke as loadingIndicatorVariants,Ne as itemVariants,ve as itemMediaVariants,we as isMoneyLike,Te as inputGroupButtonVariants,ce as inputGroupAddonVariants,be as inlineAlertVariants,Ze as formatMoney,Yo as fileUploadVariants,ko as fieldVariants,Ro as featuredIconVariants,Ao as dropdownMenuSubTriggerVariants,Bo as dropdownMenuSubContentVariants,Go as dropdownMenuShortcutVariants,vo as dropdownMenuSeparatorVariants,fo as dropdownMenuLabelVariants,No as dropdownMenuItemVariants,Lo as dropdownMenuContentVariants,Va as drawerPopupVariants,So as datePickerTriggerVariants,Vo as datePickerPopupVariants,Do as datePickerDayVariants,lo as commandVariants,Io as commandShortcutVariants,Co as commandSeparatorVariants,bo as commandListVariants,co as commandItemVariants,To as commandInputWrapperVariants,mo as commandInputVariants,go as commandGroupVariants,uo as commandEmptyVariants,ro as comboboxStatusVariants,oo as comboboxItemVariants,J as comboboxInputVariants,Q as comboboxInputGroupVariants,to as comboboxGroupLabelVariants,eo as comboboxEmptyVariants,$ as comboboxContentVariants,po as comboboxChipsVariants,ao as comboboxChipVariants,io as comboboxChipRemoveVariants,Y as comboboxButtonVariants,z as collapsibleTriggerVariants,Z as collapsiblePanelVariants,ht as codeVariants,E as checkboxVariants,w as checkboxIndicatorVariants,d as badgeVariants,s as avatarVariants,e as accordionTriggerVariants,r as accordionPanelVariants,o as accordionItemVariants,rp as VideoDialog,op as TooltipTrigger,Yt as TooltipProvider,ep as TooltipContent,$t as Tooltip,Qt as Toggle,Wt as Toaster,Kt as ToastProvider,Ut as Textarea,kt as TextLink,Mt as Text,Rt as Tags,dr as TabsTrigger,yr as TabsList,lr as TabsContent,Pr as Tabs,Gt as TableRow,Nt as TableHeader,At as TableHead,vt as TableFooter,Bt as TableCell,Ht as TableCaption,ft as TableBody,Lt as Table,wt as Strong,Ft as Slider,it as SidebarSpacer,pt as SidebarSection,mt as SidebarLabel,Pt as SidebarItem,nt as SidebarHeading,et as SidebarHeader,dt as SidebarGroupTrigger,lt as SidebarGroupPanel,yt as SidebarGroup,tt as SidebarFooter,at as SidebarDivider,rt as SidebarBody,ot as Sidebar,Tt as SettingsSeparator,ct as SettingsSection,It as SettingsRow,Vt as SettingsNavItem,St as SettingsNavGroup,xt as SettingsNav,Ct as SettingsHeader,ut as SettingsContainer,gt as SettingsBackButton,Yr as Select,jr as Rating,Kr as RadioGroupItem,Xr as RadioGroup,Qo as Progress,hr as PinInput,Or as PanelHeader,Er as PanelFooter,_r as PanelBody,Hr as Panel,vr as PaginationPrevious,Gr as PaginationNext,fr as PaginationLink,Nr as PaginationItem,Ar as PaginationEllipsis,Lr as PaginationContent,Fr as Pagination,Tr as PageLayoutColumns,Ir as PageLayout,cr as PageHeadingNavLink,Cr as PageHeadingNav,gr as PageHeadingBackLink,ur as PageHeading,ir as NumberField,$e as NavbarSpacer,Qe as NavbarSection,tr as NavbarLabel,rr as NavbarItem,or as NavbarHeading,je as NavbarHeader,Je as NavbarFooter,Ye as NavbarDivider,qe as NavbarBody,We as Navbar,Xe as MoneyAmount,Ee as LoadingIndicator,_e as Label,yo as KbdGroup,Po as Kbd,Be as ItemTitle,Le as ItemSeparator,Ge as ItemMedia,Oe as ItemHeader,Fe as ItemGroup,Me as ItemFooter,He as ItemDescription,Ae as ItemContent,Re as ItemActions,fe as Item,De as InputGroupTextarea,Se as InputGroupText,Ve as InputGroupInput,xe as InputGroupButton,Ie as InputGroupAddon,Ce as InputGroup,ge as Input,ue as InlineAlert,ye as ImperativeDialogProvider,m as Icon,ne as FormSection,se as FormRow,ie as FormField,Pe as FormActions,ae as Form,ee as FooterRow,te as FooterNav,re as FooterMeta,pe as FooterLink,oe as Footer,$o as FileUpload,Xo as FieldTitle,wo as FieldSet,Wo as FieldSeparator,ho as FieldLegend,Uo as FieldLabel,zo as FieldGroup,jo as FieldError,Ko as FieldDescription,Zo as FieldContent,_o as FieldContainerProvider,Eo as Field,Oo as FeaturedIcon,Ho as DropdownMenu,Da as Drawer,so as Dialog,Fo as DatePicker,xo as Command,no as Combobox,X as CollapsibleTrigger,U as CollapsibleRoot,K as CollapsiblePanel,W as CollapsibleContent,j as CollapsibleChevron,q as Collapsible,zt as Code,h as Checkbox,M as CarouselPrevious,_ as CarouselNext,O as CarouselItem,k as CarouselDots,R as CarouselContent,H as Carousel,N as CardTitle,L as CardHeaderContent,F as CardHeader,A as CardFooter,f as CardDescription,G as CardContent,v as CardAction,D as Card,ip as CONTROL_TEXT,tp as CONTROL_SIZES,np as CONTROL_INPUT_TEXT,yp as CONTROL_INPUT_SIZE,mp as CONTROL_ICON_PAD,lp as CONTROL_ICON_EDGE,Cp as CONTROL_HEIGHT_TEXT_WITH_ICON,sp as CONTROL_HEIGHT_TEXT,pp as CONTROL_HEIGHT_PX,ap as CONTROL_HEIGHT_CLASS,bp as CONTROL_FIELD_SIZE_WITH_ICON,gp as CONTROL_FIELD_SIZE_TRAILING_ICON,up as CONTROL_FIELD_SIZE_LEADING_ICON,Pp as CONTROL_FIELD_SIZE,dp as CONTROL_FIELD_ICON,V as ButtonGroupSeparator,S as ButtonGroup,x as Button,b as Breadcrumbs,I as BreadcrumbSeparator,c as BreadcrumbPage,u as BreadcrumbList,C as BreadcrumbLink,g as BreadcrumbItem,T as BreadcrumbEllipsis,l as Badge,y as AvatarGroup,P as Avatar,n as AlertDialog,a as AccordionTrigger,p as AccordionItem,i as AccordionContent,t as Accordion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storepass/components",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -70,7 +70,6 @@
70
70
  "@types/react-dom": "^19.3.0",
71
71
  "@vitest/browser": "^4.1.11",
72
72
  "@vitest/browser-playwright": "^4.1.11",
73
- "cal-sans": "^2.1.0",
74
73
  "playwright": "^1.63.0",
75
74
  "react": "^19.3.0",
76
75
  "react-dom": "^19.3.0",
@@ -1,2 +0,0 @@
1
- import{xe as I}from"./index-aq782dhn.js";import{ye as K}from"./lib/utils.js";import{Collapsible as A}from"@base-ui/react/collapsible";import{mergeProps as f}from"@base-ui/react/merge-props";import{useRender as x}from"@base-ui/react/use-render";import{faChevronRight as m}from"@fortawesome/pro-solid-svg-icons";import{cva as D}from"class-variance-authority";import{createContext as w,createElement as u,useContext as X,useLayoutEffect as l,useRef as y,useState as d}from"react";import{jsx as F,jsxs as _}from"react/jsx-runtime";var p=D(["isolate flex h-full min-h-0 flex-col","[--sidebar-indent:38px] [--sidebar-rail:18px] sm:[--sidebar-indent:35.5px] sm:[--sidebar-rail:16.75px]"],{variants:{variant:{default:"",bordered:"border-r border-border"},surface:{default:"",canvas:""}},defaultVariants:{variant:"default",surface:"default"}}),T=w("default"),g=w(null),R=w(!1);function zq({className:q,variant:z,surface:M,...Q}){let H=M??"default",J=y(null);return F(T.Provider,{value:H,children:F(g.Provider,{value:J,children:F("nav",{...Q,"data-surface":H,className:K(p({variant:z,surface:H}),q)})})})}function Fq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-header",className:K("isolate flex flex-col border-b border-border px-2 pb-2 [&>[data-slot=section]+[data-slot=section]]:mt-2.5",q)})}function Hq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-body",className:K("isolate flex flex-1 flex-col overflow-y-auto px-2 py-3 [&>[data-slot=section]+[data-slot=section]]:mt-5",q)})}function Jq({className:q,...z}){return F("div",{...z,"data-slot":"sidebar-footer",className:K("isolate flex flex-col border-t border-border px-2 py-2.5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5",q)})}function Kq({className:q,...z}){return F("div",{...z,"data-slot":"section",className:K("flex flex-col gap-[3px]",q)})}function Mq({className:q,...z}){return F("hr",{...z,"data-slot":"sidebar-divider",className:K("-mx-2 my-3 border-t border-border",q)})}function Qq({className:q,...z}){return F("div",{"aria-hidden":"true",...z,"data-slot":"sidebar-spacer",className:K("mt-8 flex-1",q)})}function Uq({className:q,...z}){return F("h3",{...z,"data-slot":"sidebar-heading",className:K("mb-1 px-2 text-xs/6 font-medium text-muted-foreground",q)})}var G=D(["relative flex w-full items-center gap-2.5 rounded-lg px-2 text-left text-foreground transition-colors","hover:bg-accent active:bg-ink-pressed","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground","hover:[&_[data-slot=icon]]:text-foreground active:[&_[data-slot=icon]]:text-foreground","[&_[data-slot=icon]:not(:first-child):last-child]:ml-auto","[&_[data-slot=icon]:not(:first-child):last-child]:h-[1em] [&_[data-slot=icon]:not(:first-child):last-child]:w-auto [&_[data-slot=icon]:not(:first-child):last-child]:text-[0.875em]","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{nested:{true:["py-1.5 text-sm/5 text-muted-foreground","[&_[data-slot=icon]]:size-4","hover:text-foreground"],false:["py-2.5 text-base/6 sm:py-2 sm:text-sm/5","[&_[data-slot=icon]]:size-5 sm:[&_[data-slot=icon]]:size-[18px]"]},grouped:{true:"pl-[var(--sidebar-indent,38px)]",false:""},surface:{default:"",canvas:""},current:{true:"font-medium text-foreground [&_[data-slot=icon]]:text-foreground",false:"font-normal"}},defaultVariants:{nested:!1,grouped:!1,surface:"default",current:!1}}),i=D("pointer-events-none absolute inset-0 rounded-lg",{variants:{surface:{default:"bg-ink-pressed",canvas:"bg-background shadow-xs"}}}),h='[data-slot="sidebar-header"], [data-slot="sidebar-body"], [data-slot="sidebar-footer"]';function c(q,z,M,Q){if(!z.element.isConnected||z.element.closest(h)!==M.closest(h)||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let H=z.element.getBoundingClientRect(),J=M.getBoundingClientRect();if(H.height===0)return;let U={duration:260,easing:"cubic-bezier(0.32, 0.72, 0, 1)"};q.animate([{transform:`translate(${H.left-J.left}px, ${H.top-J.top}px)`,width:`${H.width}px`,height:`${H.height}px`,zIndex:-1},{transform:"translate(0, 0)",width:`${J.width}px`,height:`${J.height}px`,zIndex:-1}],U);let Y=q.firstElementChild;if(Y instanceof HTMLElement&&z.grouped!==Q)Y.animate([{opacity:z.grouped?1:0},{opacity:Q?1:0}],U)}function Wq({current:q,nested:z,grouped:M,surface:Q,action:H,className:J,children:U,render:Y,as:O,...S}){let j=X(T),C=X(R),Z=X(g),P=Q??j,W=M??C,B=Y??(O?u(O):void 0),k=y(null),V=y(null);l(()=>{let $=k.current,E=V.current;if(!q||!Z||!$||!E)return;let L=Z.current;if(Z.current={element:$,grouped:W},L&&L.element!==$)c(E,L,$,W)},[q,Z,W]);let N={className:K(G({current:q??!1,nested:z??!1,grouped:W,surface:P}),H&&"pr-10",!B&&"cursor-default",J),"aria-current":q?"page":void 0,"data-current":q?"true":void 0,"data-slot":"sidebar-item",children:U},v=x({defaultTagName:"button",render:B,props:f(N,S)});return _("span",{ref:k,"data-slot":"sidebar-item-container",className:"relative block min-w-0",children:[q&&F("span",{ref:V,"aria-hidden":"true","data-slot":"sidebar-item-indicator",className:i({surface:P}),children:F("span",{"data-slot":"sidebar-item-tick",className:K("absolute top-1/2 left-[calc(var(--sidebar-rail,18px)_-_1.5px)] h-4 w-[3px] -translate-y-1/2 rounded-full bg-fg-tertiary",!W&&"opacity-0")})}),v,H&&F("span",{"data-slot":"sidebar-item-action",className:"absolute inset-y-0 right-1 z-10 flex items-center",children:H})]})}var b=w(null);function Xq({className:q,onOpenChange:z,...M}){let[Q,H]=d(!1);return F(b.Provider,{value:{settling:Q,setSettling:H},children:F(A.Root,{...M,"data-slot":"sidebar-group",className:K("flex flex-col",q),onOpenChange:(J,U)=>{H(!0),z?.(J,U)}})})}function Yq({className:q,children:z,...M}){let Q=X(T);return _(A.Trigger,{...M,"data-slot":"sidebar-group-trigger",className:K(G({surface:Q}),"group/sidebar-group-trigger cursor-default",q),children:[z,F(I,{icon:m,className:"transition-transform duration-200 group-data-[panel-open]/sidebar-group-trigger:rotate-90"})]})}function Zq({className:q,children:z,onTransitionEnd:M,...Q}){let H=X(b);return F(A.Panel,{...Q,"data-settling":H?.settling||void 0,onTransitionEnd:(J)=>{if(J.target===J.currentTarget&&J.propertyName==="height")H?.setSettling(!1);M?.(J)},className:K("h-[var(--collapsible-panel-height)] transition-[height] duration-200 ease-out","data-[ending-style]:h-0 data-[starting-style]:h-0","data-[settling]:[clip-path:inset(-4px_-10px)]",q),children:F(R.Provider,{value:!0,children:_("div",{"data-slot":"sidebar-group-panel",className:"relative flex flex-col gap-[3px] pt-[3px]",children:[F("span",{"aria-hidden":"true","data-slot":"sidebar-group-rail",className:"pointer-events-none absolute top-[calc(3px_+_0.5rem)] bottom-2 left-[calc(var(--sidebar-rail,18px)_-_0.5px)] border-l border-hairline"}),z]})})})}function $q({className:q,...z}){return F("span",{...z,"data-slot":"sidebar-label",className:K("truncate",q)})}
2
- export{p as ka,zq as la,Fq as ma,Hq as na,Jq as oa,Kq as pa,Mq as qa,Qq as ra,Uq as sa,G as ta,Wq as ua,Xq as va,Yq as wa,Zq as xa,$q as ya};