@storepass/components 0.6.1 → 0.8.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.
Files changed (178) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +21 -14
  3. package/dist/components/Accordion/index.js +1 -1
  4. package/dist/components/AlertDialog/index.js +1 -1
  5. package/dist/components/Avatar/index.js +1 -1
  6. package/dist/components/Badge/index.js +1 -1
  7. package/dist/components/Breadcrumbs/index.js +1 -1
  8. package/dist/components/Button/index.js +1 -1
  9. package/dist/components/ButtonGroup/index.js +1 -1
  10. package/dist/components/Card/index.js +1 -1
  11. package/dist/components/Carousel/index.js +1 -1
  12. package/dist/components/Checkbox/index.js +1 -1
  13. package/dist/components/Collapsible/index.js +1 -1
  14. package/dist/components/Combobox/index.js +1 -1
  15. package/dist/components/Command/index.js +1 -1
  16. package/dist/components/DataGrid/DataGrid.d.ts +92 -0
  17. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -0
  18. package/dist/components/DataGrid/cells.d.ts +26 -0
  19. package/dist/components/DataGrid/cells.d.ts.map +1 -0
  20. package/dist/components/DataGrid/columns.d.ts +273 -0
  21. package/dist/components/DataGrid/columns.d.ts.map +1 -0
  22. package/dist/components/DataGrid/fixtures.d.ts +29 -0
  23. package/dist/components/DataGrid/fixtures.d.ts.map +1 -0
  24. package/dist/components/DataGrid/index.d.ts +12 -0
  25. package/dist/components/DataGrid/index.d.ts.map +1 -0
  26. package/dist/components/DataGrid/index.js +1 -0
  27. package/dist/components/DataGrid/parts.d.ts +127 -0
  28. package/dist/components/DataGrid/parts.d.ts.map +1 -0
  29. package/dist/components/DataGrid/query.d.ts +320 -0
  30. package/dist/components/DataGrid/query.d.ts.map +1 -0
  31. package/dist/components/DataGrid/server.d.ts +52 -0
  32. package/dist/components/DataGrid/server.d.ts.map +1 -0
  33. package/dist/components/DatePicker/DatePicker.d.ts +10 -2
  34. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  35. package/dist/components/DatePicker/dateLogic.d.ts +10 -0
  36. package/dist/components/DatePicker/dateLogic.d.ts.map +1 -0
  37. package/dist/components/DatePicker/index.js +1 -1
  38. package/dist/components/Dialog/index.js +1 -1
  39. package/dist/components/Drawer/index.js +1 -1
  40. package/dist/components/DropdownMenu/index.js +1 -1
  41. package/dist/components/FeaturedIcon/FeaturedIcon.d.ts +2 -2
  42. package/dist/components/FeaturedIcon/index.js +1 -1
  43. package/dist/components/Field/index.js +1 -1
  44. package/dist/components/FileUpload/index.js +1 -1
  45. package/dist/components/Footer/index.js +1 -1
  46. package/dist/components/Form/index.js +1 -1
  47. package/dist/components/Gloss/Gloss.d.ts +6 -0
  48. package/dist/components/Gloss/Gloss.d.ts.map +1 -0
  49. package/dist/components/Gloss/datetime.d.ts +24 -0
  50. package/dist/components/Gloss/datetime.d.ts.map +1 -0
  51. package/dist/components/Gloss/disclosure.d.ts +35 -0
  52. package/dist/components/Gloss/disclosure.d.ts.map +1 -0
  53. package/dist/components/Gloss/index.d.ts +2 -0
  54. package/dist/components/Gloss/index.d.ts.map +1 -0
  55. package/dist/components/Gloss/index.js +1 -0
  56. package/dist/components/Gloss/money.d.ts +33 -0
  57. package/dist/components/Gloss/money.d.ts.map +1 -0
  58. package/dist/components/Gloss/read.d.ts +25 -0
  59. package/dist/components/Gloss/read.d.ts.map +1 -0
  60. package/dist/components/Icon/index.js +1 -1
  61. package/dist/components/ImperativeDialog/index.js +1 -1
  62. package/dist/components/InlineAlert/index.js +1 -1
  63. package/dist/components/Input/index.js +1 -1
  64. package/dist/components/InputGroup/InputGroup.d.ts +1 -1
  65. package/dist/components/InputGroup/index.js +1 -1
  66. package/dist/components/Item/index.js +1 -1
  67. package/dist/components/Kbd/index.js +1 -1
  68. package/dist/components/Label/index.js +1 -1
  69. package/dist/components/LoadingIndicator/index.js +1 -1
  70. package/dist/components/MoneyAmount/index.js +1 -1
  71. package/dist/components/Navbar/index.js +1 -1
  72. package/dist/components/NumberField/index.js +1 -1
  73. package/dist/components/PageHeading/index.js +1 -1
  74. package/dist/components/PageLayout/index.js +1 -1
  75. package/dist/components/Pagination/index.js +1 -1
  76. package/dist/components/Panel/index.js +1 -1
  77. package/dist/components/PinInput/index.js +1 -1
  78. package/dist/components/Progress/index.js +1 -1
  79. package/dist/components/RadioGroup/index.js +1 -1
  80. package/dist/components/Rating/index.js +1 -1
  81. package/dist/components/Select/index.js +1 -1
  82. package/dist/components/Settings/index.js +1 -1
  83. package/dist/components/Sidebar/index.js +1 -1
  84. package/dist/components/Slider/index.js +1 -1
  85. package/dist/components/Table/index.js +1 -1
  86. package/dist/components/Tabs/Tabs.d.ts +8 -0
  87. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  88. package/dist/components/Tabs/index.d.ts +2 -2
  89. package/dist/components/Tabs/index.d.ts.map +1 -1
  90. package/dist/components/Tabs/index.js +1 -1
  91. package/dist/components/Tags/index.js +1 -1
  92. package/dist/components/Text/index.js +1 -1
  93. package/dist/components/Textarea/index.js +1 -1
  94. package/dist/components/Toast/index.js +1 -1
  95. package/dist/components/Toggle/index.js +1 -1
  96. package/dist/components/Tooltip/index.js +1 -1
  97. package/dist/components/VideoDialog/index.js +1 -1
  98. package/dist/components/index.d.ts +3 -1
  99. package/dist/components/index.d.ts.map +1 -1
  100. package/dist/index-0k26fpsr.js +2 -0
  101. package/dist/index-0x3exa89.js +1 -0
  102. package/dist/index-12m8pd4x.js +1 -0
  103. package/dist/index-1n7ke68v.js +1 -0
  104. package/dist/index-207wxbj2.js +1 -0
  105. package/dist/index-2cbcq1ak.js +1 -0
  106. package/dist/index-39gyjttt.js +2 -0
  107. package/dist/index-3nj3vfyf.js +1 -0
  108. package/dist/index-3qz0mz4s.js +1 -0
  109. package/dist/index-3xevqp5j.js +1 -0
  110. package/dist/index-3y89rrea.js +1 -0
  111. package/dist/index-3yf2yecs.js +1 -0
  112. package/dist/index-4p3htnp4.js +1 -0
  113. package/dist/index-5k17f917.js +0 -0
  114. package/dist/index-626k16zr.js +0 -0
  115. package/dist/index-6bayqdg2.js +0 -0
  116. package/dist/index-6hjt8vvj.js +2 -0
  117. package/dist/index-6wj27sgg.js +1 -0
  118. package/dist/index-77e650nh.js +0 -0
  119. package/dist/index-79863hrw.js +1 -0
  120. package/dist/index-7nb0kh49.js +1 -0
  121. package/dist/index-80vgqvbb.js +1 -0
  122. package/dist/index-8bvab16j.js +1 -0
  123. package/dist/index-8e82vsma.js +1 -0
  124. package/dist/index-99dvdfty.js +122 -0
  125. package/dist/index-9w3q13x9.js +1 -0
  126. package/dist/index-a5xdyq4r.js +1 -0
  127. package/dist/index-awgxtt2c.js +2 -0
  128. package/dist/index-aym8f7kk.js +1 -0
  129. package/dist/index-bfj32kdy.js +1 -0
  130. package/dist/index-czhrx6qc.js +1 -0
  131. package/dist/index-dha7m2cb.js +2 -0
  132. package/dist/index-dyqfzdwm.js +1 -0
  133. package/dist/index-dzrvgand.js +1 -0
  134. package/dist/index-e3jk5qws.js +1 -0
  135. package/dist/index-e57a5m40.js +1 -0
  136. package/dist/index-f7d8em7k.js +1 -0
  137. package/dist/index-fse0pbfb.js +1 -0
  138. package/dist/index-gerw8wbs.js +1 -0
  139. package/dist/index-h0evkh77.js +2 -0
  140. package/dist/index-h0t7cb54.js +2 -0
  141. package/dist/index-heb6hak3.js +2 -0
  142. package/dist/index-hjxh9rqy.js +1 -0
  143. package/dist/index-jbzvn81j.js +1 -0
  144. package/dist/index-jk047paq.js +1 -0
  145. package/dist/index-m532p9sh.js +0 -0
  146. package/dist/index-mq3xffc2.js +0 -0
  147. package/dist/index-mtn2afhs.js +1 -0
  148. package/dist/index-n11bq2ez.js +1 -0
  149. package/dist/index-n7fq9hv6.js +1 -0
  150. package/dist/index-nbp2rcyj.js +1 -0
  151. package/dist/index-qkjr9w4c.js +1 -0
  152. package/dist/index-s3543vem.js +0 -0
  153. package/dist/index-s3888qb0.js +1 -0
  154. package/dist/index-s4wzrj6b.js +1 -0
  155. package/dist/index-s7qkq2f8.js +1 -0
  156. package/dist/index-s7ttw4jf.js +1 -0
  157. package/dist/index-sxaagzqf.js +1 -0
  158. package/dist/index-warqb7rs.js +2 -0
  159. package/dist/index-whmj1gae.js +1 -0
  160. package/dist/index-wv5wqvwb.js +1 -0
  161. package/dist/index-xqphyc4g.js +1 -0
  162. package/dist/index-yeehx7kc.js +2 -0
  163. package/dist/index-yzm4k2ye.js +1 -0
  164. package/dist/index-zke98cz9.js +1 -0
  165. package/dist/index-zxjkp0aj.js +1 -0
  166. package/dist/index.d.ts +1 -1
  167. package/dist/index.d.ts.map +1 -1
  168. package/dist/index.js +1 -1
  169. package/dist/lib/utils.js +1 -2
  170. package/package.json +7 -1
  171. package/dist/index-2nc1awt9.js +0 -2
  172. package/dist/index-9scn04dv.js +0 -2
  173. package/dist/index-aq782dhn.js +0 -2
  174. package/dist/index-dsdw1626.js +0 -2
  175. package/dist/index-mmas6ncx.js +0 -2
  176. package/dist/index-mq6f0tgx.js +0 -2
  177. package/dist/index-nr793zrn.js +0 -2
  178. package/dist/index-tnergzh9.js +0 -2
@@ -1,2 +0,0 @@
1
- import{bb as F,cb as R}from"./index-dsdw1626.js";import{ed as w,fd as C}from"./index-9scn04dv.js";import{xe as $}from"./index-aq782dhn.js";import{ye as A}from"./lib/utils.js";import{useRender as H}from"@base-ui/react/use-render";import{faChevronLeft as L}from"@fortawesome/pro-solid-svg-icons";import{cva as I}from"class-variance-authority";import{jsx as D,jsxs as M,Fragment as V}from"react/jsx-runtime";var T=I("@container/page-heading flex w-full min-w-0 flex-col",{variants:{size:{display:"gap-4",default:"gap-3",compact:"gap-2.5"}},defaultVariants:{size:"default"}}),P=I("min-w-0 font-semibold text-foreground [margin-block:calc((1lh-1cap)/-2)] [overflow-wrap:anywhere]",{variants:{size:{display:"text-display-md",default:"text-display-xs",compact:"text-display-2xs"}},defaultVariants:{size:"default"}});function x({title:G,size:q="default",icon:J,badge:U,description:O,breadcrumbs:E,back:W,navigation:Q,navigationPlacement:X="inline",actions:K,className:S,...Y}){return M("header",{"data-slot":"page-heading","data-size":q,className:A(T({size:q}),S),...Y,children:[W&&D("div",{"data-slot":"page-heading-back",className:A(E&&"@min-[40rem]/page-heading:hidden"),children:W}),E&&D("div",{"data-slot":"page-heading-breadcrumbs",className:A(W&&"hidden @min-[40rem]/page-heading:block"),children:E}),M("div",{className:A("flex flex-col @min-[48rem]/page-heading:flex-row @min-[48rem]/page-heading:items-center @min-[48rem]/page-heading:justify-between",q==="compact"?"gap-3":"gap-4"),children:[M("div",{className:A("flex min-w-0 flex-1 flex-col",q==="compact"&&"gap-1",q==="default"&&"gap-3",q==="display"&&"gap-2"),children:[M("div",{className:A("flex min-w-0 flex-wrap items-center",q==="compact"?"gap-x-4 gap-y-2":"gap-x-6 gap-y-3"),children:[M("div",{className:A("flex min-w-0 flex-wrap items-center gap-y-2",q==="compact"&&"gap-2",q==="default"&&"gap-2.5",q==="display"&&"gap-3"),children:[J&&D("span",{"data-slot":"page-heading-icon",className:A("flex shrink-0 items-center justify-center text-tertiary",q==="compact"&&"size-5 [&_[data-slot=icon]]:text-base",q==="default"&&"size-6 [&_[data-slot=icon]]:text-lg",q==="display"&&"size-8 [&_[data-slot=icon]]:text-2xl"),children:J}),D("h1",{className:P({size:q}),children:G}),U&&D("span",{"data-slot":"page-heading-badge",className:"flex shrink-0 items-center",children:U})]}),Q&&X==="inline"&&D("div",{"data-slot":"page-heading-navigation",className:A("order-last flex w-full min-w-0 items-center @min-[40rem]/page-heading:order-none @min-[40rem]/page-heading:w-auto @min-[40rem]/page-heading:border-l @min-[40rem]/page-heading:border-border",q==="compact"?"@min-[40rem]/page-heading:pl-4":"@min-[40rem]/page-heading:pl-6"),children:Q})]}),O&&D("p",{className:A("max-w-2xl text-tertiary",q==="display"?"text-md":"text-sm"),children:O})]}),K&&D("div",{"data-slot":"page-heading-actions",className:A("flex min-w-0 max-w-full shrink-0 flex-wrap items-center",q==="compact"?"gap-1":"gap-2"),children:K})]}),Q&&X==="below"&&D("div",{"data-slot":"page-heading-navigation",className:"min-w-0",children:Q})]})}function m({href:G,render:q,className:J,children:U,...O}){let{disabled:E=!1,focusableWhenDisabled:W,nativeButton:Q,ref:X,style:K,...S}=O,Y=M(V,{children:[D($,{icon:L}),U]}),Z=A(w({variant:"ghost",size:"sm"}),"-ml-2.5 w-fit text-secondary",J),_=G!==void 0||q!==void 0,B=H({enabled:_,defaultTagName:"a",render:q,ref:X,state:{disabled:E},props:{...S,href:E?void 0:G,"aria-disabled":E||void 0,"data-slot":"page-heading-back-link",tabIndex:E?-1:S.tabIndex,onClick:E?(y)=>y.preventDefault():S.onClick,className:Z,style:typeof K==="function"?K({disabled:E}):K,children:Y}});if(_)return B;return D(C,{variant:"ghost",size:"sm",className:Z,...O,children:Y})}function g({className:G,...q}){return D("nav",{"data-slot":"page-heading-nav",className:A(F({variant:"soft"}),"max-w-full overflow-x-auto",G),...q})}function p({current:G,className:q,...J}){return D("a",{"data-slot":"page-heading-nav-link","data-active":G?"":void 0,"aria-current":G?"page":void 0,className:A(R({variant:"soft"}),"shrink-0",q),...J})}
2
- export{T as Xa,P as Ya,x as Za,m as _a,g as $a,p as ab};
@@ -1,2 +0,0 @@
1
- import{ye as d}from"./lib/utils.js";import{jsx as k}from"react/jsx-runtime";function v({className:g,...h}){return k("label",{"data-slot":"label",className:d("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",g),...h})}
2
- export{v as za};
@@ -1,2 +0,0 @@
1
- import{ye as B}from"./lib/utils.js";import{cva as G}from"class-variance-authority";import{jsx as D}from"react/jsx-runtime";var K=G("bg-card text-foreground flex flex-col rounded-xl border border-border",{variants:{padding:{none:"",sm:"p-4",md:"p-5",lg:"p-6"},shadow:{none:"",sm:"shadow-xs",md:"shadow-md",lg:"shadow-lg"},gap:{none:"",sm:"gap-3",md:"gap-5",lg:"gap-7"}},defaultVariants:{padding:"none",shadow:"sm",gap:"md"}});function R({padding:k,shadow:q,gap:z,className:E,children:I,...J}){return D("div",{"data-slot":"card",className:B(K({padding:k,shadow:q,gap:z}),E),...J,children:I})}var L=G("-mt-4 -ml-4 flex flex-wrap items-center justify-between sm:flex-nowrap [.border-b]:pb-5",{variants:{padding:{none:"px-0 pt-0",sm:"px-4 pt-4",md:"px-5 pt-5",lg:"px-6 pt-6"}},defaultVariants:{padding:"md"}});function S({padding:k,className:q,children:z,...E}){return D("div",{"data-slot":"card-header",className:B(L({padding:k}),q),...E,children:z})}function T({className:k,children:q,...z}){return D("div",{"data-slot":"card-header-content",className:B("mt-4 ml-4",k),...z,children:q})}function U({className:k,children:q,...z}){return D("h3",{"data-slot":"card-title",className:B("text-base font-semibold text-foreground",k),...z,children:q})}function W({className:k,children:q,...z}){return D("p",{"data-slot":"card-description",className:B("mt-1 text-sm text-muted-foreground",k),...z,children:q})}function X({className:k,children:q,...z}){return D("div",{"data-slot":"card-action",className:B("mt-4 ml-4 shrink-0",k),...z,children:q})}var M=G("",{variants:{padding:{none:"",sm:"px-4 last:pb-4",md:"px-5 last:pb-5",lg:"px-6 last:pb-6"}},defaultVariants:{padding:"md"}});function Y({padding:k,className:q,children:z,...E}){return D("div",{"data-slot":"card-content",className:B(M({padding:k}),q),...E,children:z})}var O=G("flex items-center [.border-t]:pt-5",{variants:{padding:{none:"",sm:"px-4 pb-4",md:"px-5 pb-5",lg:"px-6 pb-6"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{padding:"md",justify:"start"}});function Z({padding:k,justify:q,className:z,children:E,...I}){return D("div",{"data-slot":"card-footer",className:B(O({padding:k,justify:q}),z),...I,children:E})}
2
- export{K as Nc,R as Oc,L as Pc,S as Qc,T as Rc,U as Sc,W as Tc,X as Uc,M as Vc,Y as Wc,O as Xc,Z as Yc};
@@ -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},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};