@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.1
4
+
5
+ PR #17 is the only pull request merged since 0.8.0.
6
+
7
+ ### Improved
8
+
9
+ - DataGrid footer totals copy each header cell's width and sit under the scrollport. They stay aligned with their columns after horizontal scroll and after a column resize.
10
+ - Page scroll keeps the row drawer in the viewport. The drawer anchors to the row sheet below the toolbar.
11
+ - The focus ring is painted inside the cell. It stays under the sticky header and inside pinned columns.
12
+ - Pinned columns paint an opaque card past the hairline, so scrolled text does not show through the seam.
13
+ - A disabled row keeps full opacity and uses the disabled text and fill. That fill is separate from the hover fill.
14
+ - The search field can shrink, so Sort and View stay on the search row.
15
+
16
+ ### Compatibility notes
17
+
18
+ - `SELECT_COLUMN_WIDTH` changed from 40 to 48. Callers that offset pinned columns by `SELECT_COLUMN_WIDTH` need 48.
19
+
20
+ ## 0.8.0
21
+
22
+ ### Added
23
+
24
+ - DataGrid can take a server `result` — one page already filtered, sorted, and sliced — instead of every row. `toGridRequest(query)` is the request to send, and `resolveGridResult` applies that page. Grids that pass `rows` still filter, sort, and page locally.
25
+ - Server search waits briefly after the last keystroke before it changes the query. Clearing the field applies at once.
26
+ - Gloss: a short reading of a datetime or an amount, with the exact value on hover or focus. A live datetime updates when its compact label changes. Instant strings must end in `Z` or a UTC offset. Compact money truncates, and the precise time always names its zone.
27
+
28
+ ### Improved
29
+
30
+ - While a server page refreshes, the grid keeps the current rows and range on screen and ignores selection on those stale rows. An empty stale page recovers instead of sticking.
31
+ - The All tab uses the server total. With a facet selected, tab counts come from `facetCounts`.
32
+
33
+ ### Compatibility notes
34
+
35
+ - `GridModel` facet `count` is `number | null`. It is null when a server result leaves `facetCounts` out.
36
+
37
+ ## 0.7.0
38
+
39
+ ### Added
40
+
41
+ - DataGrid: a typed data grid built on `defineGrid` and `column` schemas, with search, filters and filter chips, sorting, pagination, row selection and row actions, density, pinned columns, column resize and drag-reorder, footer totals, and keyboard cell navigation.
42
+ - DataGrid query helpers (`applyGridQuery`, `transitionGridQuery`, `parseGridQuery`, `serializeGridQuery`) for keeping grid state in the URL or on the server.
43
+ - DataGrid cells for avatars, entities, money, status, tags, and sparklines.
44
+ - TabsCount: a quiet count chip beside a tab label that brightens with its tab.
45
+ - DatePicker: month and year jumps, and typed entry in YYYY-MM-DD.
46
+
47
+ ### Improved
48
+
49
+ - DatePicker opens on the selected day (or today) clamped to `min`/`max`, disables month navigation outside the bounds, and closes when disabled.
50
+
51
+ ### Compatibility notes
52
+
53
+ - DatePicker now renders a text input beside an icon-only calendar trigger, with helper text below. `className` applies to the new wrapper instead of the trigger, and the new `aria-label` prop (default "Date") names the input.
54
+ - `@tanstack/table-core` is a new runtime dependency.
55
+
3
56
  ## 0.6.1
4
57
 
5
58
  ### Added
package/README.md CHANGED
@@ -83,10 +83,12 @@ Tool versions are managed with mise. From this repository:
83
83
 
84
84
  ```sh
85
85
  mise install
86
- bun install
86
+ doppler run -- bun install
87
87
  bun run dev
88
88
  ```
89
89
 
90
+ `.npmrc` installs Font Awesome Pro from `npm.fontawesome.com` and reads the token from `FONTAWESOME_AUTH_TOKEN`. `doppler run` injects that variable. Do not commit the token.
91
+
90
92
  Storybook runs at http://localhost:6006. Stories live beside components in `src/components/<Name>/<Name>.stories.tsx`; theme and control-size showcases live in `src/styles/`.
91
93
 
92
94
  | Command | Purpose |
@@ -112,20 +114,25 @@ Color ramps are generated by `scripts/gen-scale.ts`. Change the generator, run `
112
114
 
113
115
  ## Release
114
116
 
115
- Update `package.json` and `CHANGELOG.md`, then validate and inspect the package:
117
+ A release is a pull request that bumps `version` in `package.json` and adds a `## <version>` section to [CHANGELOG.md](./CHANGELOG.md). Merging that pull request to `main` publishes `@storepass/components`, tags `v<version>`, and creates a GitHub Release whose notes are that changelog section.
116
118
 
117
- ```sh
118
- bun run check
119
- bun test
120
- bun run test
121
- bun run build
122
- bun publish --dry-run
123
- ```
119
+ Cloud agents cut a release by opening that pull request. Do not publish from a laptop, and do not push the tag.
124
120
 
125
- After committing and tagging the release, publish from a machine authenticated with npm:
121
+ Each release step is idempotent. Publish runs only when `npm view` shows that `@storepass/components@<version>` is not on npm yet. The tag and GitHub Release are created only when that release is missing. A version that is already published and released is a no-op, including after a partial failure. `0.7.0` is already on npm. There is not yet a GitHub Release for `v0.7.0`, so the first run on `main` creates that release from the changelog and does not publish again.
126
122
 
127
- ```sh
128
- bun publish --access public
129
- ```
123
+ [`.github/workflows/ci.yml`](./.github/workflows/ci.yml) runs on pull requests and on pushes to `main`, on Blacksmith (`blacksmith-4vcpu-ubuntu-2404`). It installs dependencies, checks, tests, builds, and runs `npm pack --dry-run`.
124
+
125
+ [`.github/workflows/release.yml`](./.github/workflows/release.yml) runs on pushes to `main` and from `workflow_dispatch`. When the version is not on npm yet, it installs, checks, tests, and builds, then runs `npm publish --access public` on Node 24. It then creates the tag and GitHub Release if that release is missing. A concurrency group keeps two releases from racing.
126
+
127
+ Publish uses npm trusted publishing (GitHub OIDC). There is no `NPM_TOKEN`. Trusted publishing only accepts tokens from GitHub-hosted runners, so the publish job stays on `ubuntu-latest` while CI uses Blacksmith. This repository is private, so the workflow does not pass `--provenance` and provenance is not attached.
128
+
129
+ The package ships `dist/`, package metadata, the README, and the changelog.
130
+
131
+ ### One-time setup
130
132
 
131
- The package ships the `dist/` entry points and theme, plus package metadata, the README, and changelog. Build before publishing.
133
+ 1. **npm trusted publisher** for `@storepass/components`: GitHub Actions, organization `Storepass`, repository `components`, workflow filename `release.yml`. Leave the environment name empty. Allow direct `npm publish` (a publisher created now defaults to staged publish only). The workflow file has to be on `main` before this is saved. A new publisher expires if its first successful publish does not happen within two days. Merging this setup does not publish, because `v0.7.0` already exists, so create the publisher when the next version bump is ready to merge.
134
+ 2. **Doppler → GitHub** already syncs `FONTAWESOME_AUTH_TOKEN` into this repository's Actions secrets. Workflows read `secrets.FONTAWESOME_AUTH_TOKEN`. Do not add a Doppler CLI step or `DOPPLER_TOKEN`.
135
+ 3. **Rotate the Font Awesome token** that used to live in `.npmrc`, then update the Doppler secret. Git history still has the old value until it is revoked.
136
+ 4. **Blacksmith:** install the Blacksmith GitHub app on `Storepass/components` if it is not already installed. CI cannot start on Blacksmith runners until then.
137
+ 5. **Railway:** set `FONTAWESOME_AUTH_TOKEN` on the `components` service (the same Doppler secret). Railway's Dockerfile builder cannot mount BuildKit secrets — it only accepts `ARG`, which ends up in image history, and a `Dockerfile` at the repo root forces that builder — so the service builds with Railpack. `railpack.json` names that variable as an install secret. Railpack mounts it with BuildKit (`id=FONTAWESOME_AUTH_TOKEN`) for `bun install` only and does not save secrets in the image. The build then deletes `.npmrc`, so the published image has neither the token nor `.npmrc`. A sealed variable is not copied into a pull-request environment, so the preview stays red until the variable exists there. `docker/Dockerfile` is the same secret mount for a BuildKit `docker build` outside Railway.
138
+ 6. **Optional:** protect `v*` tags, and allow GitHub Actions to create them so the release workflow can still tag.
@@ -1 +1 @@
1
- import{ye as k}from"../../lib/utils.js";import{Accordion as T}from"@base-ui/react/accordion";import{faChevronDown as J}from"@fortawesome/pro-solid-svg-icons";import{FontAwesomeIcon as K}from"@fortawesome/react-fontawesome";import{cva as z}from"class-variance-authority";import{forwardRef as E}from"react";import{jsx as P,jsxs as S}from"react/jsx-runtime";var G=z("border-b border-input"),H=z(["flex flex-1 items-center justify-between gap-4 py-4 text-left text-sm font-medium text-foreground transition-all outline-none","hover:underline","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground [&_svg]:transition-transform [&_svg]:duration-200","[&[data-panel-open]_svg]:rotate-180"]),I=z(["overflow-hidden text-sm text-muted-foreground","h-[var(--accordion-panel-height)]","transition-[height] duration-200 ease-out","data-[starting-style]:h-0","data-[ending-style]:h-0","[clip-path:inset(-4px_-10px_-4px_-10px)]"]);function L({className:q,...A}){return P(T.Root,{"data-slot":"accordion",className:k("w-full",q),...A})}var M=E(function({className:A,...g},C){return P(T.Item,{ref:C,"data-slot":"accordion-item",className:k(G(),A),...g})}),O=E(function({className:A,children:g,...C},y){return P(T.Header,{"data-slot":"accordion-header",className:"flex",children:S(T.Trigger,{ref:y,"data-slot":"accordion-trigger",className:k(H(),A),...C,children:[g,P(K,{icon:J})]})})}),Q=E(function({className:A,children:g,...C},y){return P(T.Panel,{ref:y,"data-slot":"accordion-content",className:k(I(),A),...C,children:P("div",{className:"pb-4",children:g})})});export{H as accordionTriggerVariants,I as accordionPanelVariants,G as accordionItemVariants,O as AccordionTrigger,M as AccordionItem,Q as AccordionContent,L as Accordion};export{G as de,H as ee,I as fe,L as ge,M as he,O as ie,Q as je};
1
+ import{bo,xo,ho,Ra,Sa,Ta,ka}from"../../index-gerw8wbs.js";import"../../index-6hjt8vvj.js";export{Ra as Accordion,ka as AccordionContent,Sa as AccordionItem,Ta as AccordionTrigger,bo as accordionItemVariants,ho as accordionPanelVariants,xo as accordionTriggerVariants};
@@ -1 +1 @@
1
- import{ye as T}from"../../lib/utils.js";import{AlertDialog as k}from"@base-ui/react/alert-dialog";import{cva as E}from"class-variance-authority";import{jsx as O}from"react/jsx-runtime";var F=E(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0","transition-opacity duration-150"]),G=E(["fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-md rounded-xl border border-border bg-background p-6 shadow-xl","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0","transition-all duration-150","focus:outline-none"],{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg rounded-2xl"}},defaultVariants:{size:"md"}}),H=E("text-lg font-semibold text-foreground"),I=E("mt-2 text-sm text-muted-foreground"),J=E("mt-6 flex justify-end gap-3");function K({children:f,...P}){return O(k.Root,{...P,children:f})}function L({className:f,children:P,asChild:D,...q}){return O(k.Trigger,{className:T(f),render:D?P:void 0,...q,children:D?void 0:P})}function M({children:f,...P}){return O(k.Portal,{...P,children:f})}function Q({className:f,...P}){return O(k.Backdrop,{className:T(F(),f),...P})}function R({size:f,className:P,children:D,...q}){return O(k.Popup,{"data-slot":"alert-dialog-popup",className:T(G({size:f}),P),...q,children:D})}function S({className:f,children:P,...D}){return O(k.Title,{"data-slot":"alert-dialog-title",className:T(H(),f),...D,children:P})}function U({className:f,children:P,...D}){return O(k.Description,{"data-slot":"alert-dialog-description",className:T(I(),f),...D,children:P})}function W({className:f,children:P,asChild:D,...q}){return O(k.Close,{className:T(f),render:D?P:void 0,...q,children:D?void 0:P})}function X({className:f,children:P,...D}){return O("div",{"data-slot":"alert-dialog-actions",className:T(J(),f),...D,children:P})}var Y={Root:K,Trigger:L,Portal:M,Backdrop:Q,Popup:R,Title:S,Description:U,Close:W,Actions:X};export{H as alertDialogTitleVariants,G as alertDialogPopupVariants,F as alertDialogOverlayVariants,I as alertDialogDescriptionVariants,J as alertDialogActionsVariants,Y as AlertDialog};export{Y as ke};
1
+ import{hn,yn,vn,Pn,Cn,u}from"../../index-zxjkp0aj.js";import"../../index-6hjt8vvj.js";export{u as AlertDialog,Cn as alertDialogActionsVariants,Pn as alertDialogDescriptionVariants,hn as alertDialogOverlayVariants,yn as alertDialogPopupVariants,vn as alertDialogTitleVariants};
@@ -1 +1 @@
1
- import{ye as M}from"../../lib/utils.js";import{Avatar as K}from"@base-ui/react/avatar";import{cva as $}from"class-variance-authority";import{jsx as L,jsxs as F}from"react/jsx-runtime";var R=$("relative flex shrink-0 overflow-hidden rounded-full border border-secondary_alt bg-muted text-muted-foreground select-none",{variants:{size:{xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-sm",lg:"size-12 text-base",xl:"size-16 text-lg"}},defaultVariants:{size:"md"}}),Q=["border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700","border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700","border-utility-success-200 bg-utility-success-50 text-utility-success-700","border-utility-warning-200 bg-utility-warning-50 text-utility-warning-700","border-utility-error-200 bg-utility-error-50 text-utility-error-700"];function q(G){let P=0;for(let E=0;E<G.length;E++)P=P*31+G.charCodeAt(E)|0;return Q[Math.abs(P)%Q.length]}function A({size:G,src:P,alt:E,fallback:J,colorHash:W,colored:X=!1,className:Y,...Z}){let O=W??(typeof J==="string"?J:void 0),_=X&&O?q(O):void 0;return F(K.Root,{"data-slot":"avatar",className:M(R({size:G}),_,Y),...Z,children:[L(K.Image,{"data-slot":"avatar-image",src:P,alt:E,className:"aspect-square size-full object-cover"}),L(K.Fallback,{"data-slot":"avatar-fallback",className:"flex size-full items-center justify-center font-medium",children:J})]})}function D({className:G,...P}){return L("div",{"data-slot":"avatar-group",className:M("flex items-center -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background",G),...P})}export{R as avatarVariants,D as AvatarGroup,A as Avatar};export{R as le,A as me,D as ne};
1
+ import{yo,L,Z}from"../../index-a5xdyq4r.js";import"../../index-6hjt8vvj.js";export{L as Avatar,Z as AvatarGroup,yo as avatarVariants};
@@ -1 +1 @@
1
- import{ye as B}from"../../lib/utils.js";import{cva as x}from"class-variance-authority";import{jsx as C}from"react/jsx-runtime";var f=x("inline-flex items-center justify-center gap-1 rounded-md font-medium ring-1 ring-inset transition-colors whitespace-nowrap [&_[data-slot=icon]]:pointer-events-none [&_[data-slot=icon]]:shrink-0",{variants:{variant:{primary:"bg-primary text-white ring-transparent",secondary:"bg-utility-gray-50 text-utility-gray-700 ring-utility-gray-200",success:"bg-utility-success-50 text-utility-success-700 ring-utility-success-200",destructive:"bg-destructive text-white ring-transparent",warning:"bg-utility-warning-50 text-utility-warning-700 ring-utility-warning-200",info:"bg-utility-blue-50 text-utility-blue-700 ring-utility-blue-200",outline:"bg-background text-foreground ring-input"},size:{sm:"h-5 px-1.5 text-xs [&_[data-slot=icon]]:size-3",md:"h-6 px-2 text-xs [&_[data-slot=icon]]:size-3.5",lg:"h-7 px-2.5 text-sm [&_[data-slot=icon]]:size-4"}},defaultVariants:{variant:"primary",size:"md"}});function y({variant:g,size:P,children:k,className:q,...w}){return C("span",{className:B(f({variant:g,size:P}),q),...w,children:k})}export{f as badgeVariants,y as Badge};export{f as oe,y as pe};
1
+ import{vo,f}from"../../index-aym8f7kk.js";import"../../index-6hjt8vvj.js";export{f as Badge,vo as badgeVariants};
@@ -1 +1 @@
1
- import"../Icon/index.js";import{xe as d}from"../../index-aq782dhn.js";import{ye as u}from"../../lib/utils.js";import{faChevronRight as t,faEllipsis as L}from"@fortawesome/pro-solid-svg-icons";import{jsx as b,jsxs as q}from"react/jsx-runtime";function e({className:r,...B}){return b("nav",{"aria-label":"Breadcrumb","data-slot":"breadcrumbs",className:u(r),...B})}function m({className:r,...B}){return b("ol",{"data-slot":"breadcrumb-list",className:u("flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground sm:gap-2.5",r),...B})}function k({className:r,...B}){return b("li",{"data-slot":"breadcrumb-item",className:u("inline-flex items-center gap-1.5",r),...B})}function S({className:r,...B}){return b("a",{"data-slot":"breadcrumb-link",className:u("rounded-sm transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50",r),...B})}function y({className:r,...B}){return b("span",{"data-slot":"breadcrumb-page","aria-current":"page",className:u("font-medium text-foreground",r),...B})}function E({className:r,children:B,...P}){return b("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:u("[&>svg]:size-3.5",r),...P,children:B??b(d,{icon:t,"data-slot":"icon"})})}function g({className:r,...B}){return q("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:u("flex size-9 items-center justify-center",r),...B,children:[b(d,{icon:L,"data-slot":"icon"}),b("span",{className:"sr-only",children:"More"})]})}export{e as Breadcrumbs,E as BreadcrumbSeparator,y as BreadcrumbPage,m as BreadcrumbList,S as BreadcrumbLink,k as BreadcrumbItem,g as BreadcrumbEllipsis};export{e as qe,m as re,k as se,S as te,y as ue,E as ve,g as we};
1
+ import{Ia,Da,Va,Fa,Oa,Ma,La}from"../../index-dyqfzdwm.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{La as BreadcrumbEllipsis,Va as BreadcrumbItem,Fa as BreadcrumbLink,Da as BreadcrumbList,Oa as BreadcrumbPage,Ma as BreadcrumbSeparator,Ia as Breadcrumbs};
@@ -1 +1 @@
1
- import{fd as t}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import"../../lib/utils.js";export{t as Button};
1
+ import"../../index-626k16zr.js";import{o}from"../../index-39gyjttt.js";import"../../index-6hjt8vvj.js";export{o as Button};
@@ -1 +1 @@
1
- import{ye as p}from"../../lib/utils.js";import{cva as S}from"class-variance-authority";import{jsx as f}from"react/jsx-runtime";var k={horizontal:["flex-row","[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none","[&>[data-slot=button-group]]:ml-0","[&>[data-slot=button-group]:not(:first-child)]:ml-2","[&>[data-slot=button-group]]:rounded-lg"].join(" "),vertical:["flex-col","[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none","[&>[data-slot=button-group]]:mt-0","[&>[data-slot=button-group]:not(:first-child)]:mt-2","[&>[data-slot=button-group]]:rounded-lg"].join(" ")},P=S(["isolate flex w-fit items-stretch border-0 p-0 m-0","[&>button]:shadow-none [&>button]:border [&>button]:border-input","[&>a]:shadow-none [&>a]:border [&>a]:border-input","[&>button.bg-primary]:border-primary [&>a.bg-primary]:border-primary","[&>button.bg-secondary]:border-input [&>a.bg-secondary]:border-input","[&>button.bg-destructive]:border-destructive [&>a.bg-destructive]:border-destructive","[&>button.bg-success]:border-success [&>a.bg-success]:border-success","[&>button.bg-warning]:border-warning [&>a.bg-warning]:border-warning","[&>button.bg-info]:border-info [&>a.bg-info]:border-info","[&>*]:focus-visible:relative [&>*]:focus-visible:z-10"].join(" "),{variants:{orientation:k},defaultVariants:{orientation:"horizontal"}});function q({className:G,orientation:B="horizontal",...u}){return f("fieldset",{"data-slot":"button-group","data-orientation":B,className:p(P({orientation:B}),G),...u})}function z({className:G,orientation:B="vertical",...u}){return f("hr",{"data-slot":"button-group-separator","data-orientation":B,"aria-orientation":B,className:p("bg-input shrink-0 border-0",B==="vertical"?"w-px self-stretch":"h-px w-full",G),...u})}export{P as buttonGroupVariants,z as ButtonGroupSeparator,q as ButtonGroup};export{q as Lc,z as Mc};
1
+ import{an,ma,ga}from"../../index-8e82vsma.js";import"../../index-6hjt8vvj.js";export{ma as ButtonGroup,ga as ButtonGroupSeparator,an as buttonGroupVariants};
@@ -1 +1 @@
1
- import{Nc as r,Oc as a,Pc as o,Qc as d,Rc as t,Sc as e,Tc as C,Uc as n,Vc as s,Wc as p,Xc as i,Yc as c}from"../../index-nr793zrn.js";import"../../lib/utils.js";export{r as cardVariants,o as cardHeaderVariants,i as cardFooterVariants,s as cardContentVariants,e as CardTitle,t as CardHeaderContent,d as CardHeader,c as CardFooter,C as CardDescription,p as CardContent,n as CardAction,a as Card};
1
+ import"../../index-mq3xffc2.js";import{wn,Re,Nn,nn,sn,ln,dn,pn,Rn,Se,Sn,un}from"../../index-h0t7cb54.js";import"../../index-6hjt8vvj.js";export{Re as Card,pn as CardAction,Se as CardContent,dn as CardDescription,un as CardFooter,nn as CardHeader,sn as CardHeaderContent,ln as CardTitle,Rn as cardContentVariants,Sn as cardFooterVariants,Nn as cardHeaderVariants,wn as cardVariants};
@@ -1 +1 @@
1
- import{fd as L}from"../../index-9scn04dv.js";import"../../index-2nc1awt9.js";import{xe as D}from"../../index-aq782dhn.js";import{ye as H}from"../../lib/utils.js";import{faChevronLeft as K,faChevronRight as B}from"@fortawesome/pro-solid-svg-icons";import*as k from"react";import{jsx as X}from"react/jsx-runtime";var T=k.createContext(null);function P(){let C=k.useContext(T);if(!C)throw Error("useCarousel must be used within a <Carousel>");return C}function R({orientation:C="horizontal",className:O,children:Q,onKeyDown:M,...Y}){let V=k.useRef(null),[Z,_]=k.useState(!1),[G,q]=k.useState(!1),U=k.useCallback(()=>{let E=V.current;if(!E)return;if(C==="horizontal"){let{scrollLeft:F,scrollWidth:$,clientWidth:A}=E;_(F>1),q(F<$-A-1)}else{let{scrollTop:F,scrollHeight:$,clientHeight:A}=E;_(F>1),q(F<$-A-1)}},[C]),J=k.useCallback((E)=>{let F=V.current;if(!F)return;let $=F.firstElementChild;if(C==="horizontal"){let A=$?.offsetWidth??F.clientWidth;F.scrollBy({left:A*E,behavior:"smooth"})}else{let A=$?.offsetHeight??F.clientHeight;F.scrollBy({top:A*E,behavior:"smooth"})}},[C]),W=k.useCallback(()=>J(-1),[J]),b=k.useCallback(()=>J(1),[J]);k.useEffect(()=>{let E=V.current;if(!E)return;U(),E.addEventListener("scroll",U,{passive:!0});let F=new ResizeObserver(U);return F.observe(E),()=>{E.removeEventListener("scroll",U),F.disconnect()}},[U]);let g=k.useCallback((E)=>{if(M?.(E),E.defaultPrevented)return;let F=C==="horizontal"?"ArrowLeft":"ArrowUp",$=C==="horizontal"?"ArrowRight":"ArrowDown";if(E.key===F)E.preventDefault(),W();else if(E.key===$)E.preventDefault(),b()},[M,C,W,b]),I=k.useMemo(()=>({viewportRef:V,orientation:C,canScrollPrev:Z,canScrollNext:G,scrollPrev:W,scrollNext:b}),[C,Z,G,W,b]);return X(T.Provider,{value:I,children:X("div",{"data-slot":"carousel",role:"region","aria-roledescription":"carousel",className:H("relative",O),onKeyDown:g,...Y,children:Q})})}function y({className:C,...O}){let{viewportRef:Q,orientation:M}=P();return X("div",{ref:Q,"data-slot":"carousel-content",className:H("flex scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",M==="horizontal"?"-ml-4 snap-x snap-mandatory overflow-x-auto":"-mt-4 flex-col snap-y snap-mandatory overflow-y-auto",C),...O})}function z({className:C,...O}){let{orientation:Q}=P();return X("div",{"data-slot":"carousel-item",role:"group","aria-roledescription":"slide",className:H("min-w-0 shrink-0 grow-0 basis-full snap-start",Q==="horizontal"?"pl-4":"pt-4",C),...O})}function j({className:C,variant:O="outline",size:Q="icon-sm",children:M,...Y}){let{orientation:V,canScrollPrev:Z,scrollPrev:_}=P();return X(L,{"data-slot":"carousel-previous",variant:O,size:Q,"aria-label":"Previous slide",disabled:!Z,onClick:_,className:H("absolute z-10 rounded-full",V==="horizontal"?"-left-4 top-1/2 -translate-y-1/2":"-top-4 left-1/2 -translate-x-1/2 rotate-90",C),...Y,children:M??X(D,{icon:K})})}function f({className:C,variant:O="outline",size:Q="icon-sm",children:M,...Y}){let{orientation:V,canScrollNext:Z,scrollNext:_}=P();return X(L,{"data-slot":"carousel-next",variant:O,size:Q,"aria-label":"Next slide",disabled:!Z,onClick:_,className:H("absolute z-10 rounded-full",V==="horizontal"?"-right-4 top-1/2 -translate-y-1/2":"-bottom-4 left-1/2 -translate-x-1/2 rotate-90",C),...Y,children:M??X(D,{icon:B})})}function u({count:C,className:O,...Q}){let{viewportRef:M,orientation:Y}=P(),[V,Z]=k.useState(0);k.useEffect(()=>{let G=M.current;if(!G)return;let q=()=>{let U=G.firstElementChild;if(Y==="horizontal"){let J=U?.offsetWidth??G.clientWidth;Z(J>0?Math.round(G.scrollLeft/J):0)}else{let J=U?.offsetHeight??G.clientHeight;Z(J>0?Math.round(G.scrollTop/J):0)}};return q(),G.addEventListener("scroll",q,{passive:!0}),()=>G.removeEventListener("scroll",q)},[M,Y]);let _=(G)=>{let q=M.current;if(!q)return;let U=q.firstElementChild;if(Y==="horizontal"){let J=U?.offsetWidth??q.clientWidth;q.scrollTo({left:J*G,behavior:"smooth"})}else{let J=U?.offsetHeight??q.clientHeight;q.scrollTo({top:J*G,behavior:"smooth"})}};return X("div",{"data-slot":"carousel-dots",className:H("flex items-center justify-center gap-2",O),...Q,children:Array.from({length:C},(G,q)=>X("button",{type:"button","aria-label":`Go to slide ${q+1}`,"data-active":q===V?"":void 0,onClick:()=>_(q),className:"size-2 rounded-full bg-muted transition-colors data-[active]:bg-primary"},q))})}export{P as useCarousel,j as CarouselPrevious,f as CarouselNext,z as CarouselItem,u as CarouselDots,y as CarouselContent,R as Carousel};export{P as Zc,R as _c,y as $c,z as ad,j as bd,f as cd,u as dd};
1
+ import{S,fa,ba,xa,ha,ya,va}from"../../index-s7ttw4jf.js";import"../../index-39gyjttt.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{fa as Carousel,ba as CarouselContent,va as CarouselDots,xa as CarouselItem,ya as CarouselNext,ha as CarouselPrevious,S as useCarousel};
@@ -1 +1 @@
1
- import{xe as k}from"../../index-aq782dhn.js";import{ye as b}from"../../lib/utils.js";import{Checkbox as y}from"@base-ui/react/checkbox";import{faCheck as G,faMinus as H}from"@fortawesome/pro-solid-svg-icons";import{cva as A}from"class-variance-authority";import{jsx as P,jsxs as K}from"react/jsx-runtime";var C=A(["inline-flex items-center justify-center shrink-0 rounded-md border border-input bg-background shadow-xs outline-none transition-shadow","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[checked]:bg-primary data-[checked]:border-primary data-[checked]:text-primary-foreground","data-[indeterminate]:bg-primary data-[indeterminate]:border-primary data-[indeterminate]:text-primary-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[invalid]:border-destructive data-[invalid]:ring-[3px] data-[invalid]:ring-destructive/20"],{variants:{size:{sm:"size-4",md:"size-5"}},defaultVariants:{size:"md"}}),D=A(["flex items-center justify-center text-current data-[unchecked]:invisible","[&>[data-slot=checkbox-minus-icon]]:hidden","data-[indeterminate]:[&>[data-slot=checkbox-check-icon]]:hidden","data-[indeterminate]:[&>[data-slot=checkbox-minus-icon]]:flex"],{variants:{size:{sm:"[&_[data-slot=icon]]:text-[0.625rem]",md:"[&_[data-slot=icon]]:text-xs"}},defaultVariants:{size:"md"}});function J({size:q,className:E,...F}){return P(y.Root,{"data-slot":"checkbox",className:b(C({size:q}),E),...F,children:K(y.Indicator,{"data-slot":"checkbox-indicator",keepMounted:!0,className:b(D({size:q})),children:[P("span",{"data-slot":"checkbox-check-icon",className:"flex items-center justify-center",children:P(k,{icon:G,className:"-translate-y-[0.03125em]"})}),P("span",{"data-slot":"checkbox-minus-icon",className:"flex items-center justify-center",children:P(k,{icon:H})})]})})}export{C as checkboxVariants,D as checkboxIndicatorVariants,J as Checkbox};export{C as gd,D as hd,J as id};
1
+ import{At,Bt,F}from"../../index-sxaagzqf.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{F as Checkbox,Bt as checkboxIndicatorVariants,At as checkboxVariants};
@@ -1 +1 @@
1
- import"../Icon/index.js";import{xe as D}from"../../index-aq782dhn.js";import{ye as b}from"../../lib/utils.js";import{Collapsible as A}from"@base-ui/react/collapsible";import{faChevronRight as Q}from"@fortawesome/pro-solid-svg-icons";import{cva as E}from"class-variance-authority";import{forwardRef as F}from"react";import{jsx as k}from"react/jsx-runtime";var G=E(["flex w-full items-center gap-2.5 rounded-lg px-2 py-2.5 text-left text-base/6 font-medium text-foreground transition-colors sm:py-2 sm:text-sm/5","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground","[&_[data-slot=icon]]:size-5 sm:[&_[data-slot=icon]]:size-[18px]","[&_[data-slot=icon]:last-child]:ml-auto [&_[data-slot=icon]:last-child]:h-[1em] [&_[data-slot=icon]:last-child]:w-auto [&_[data-slot=icon]:last-child]:text-[0.875em]","hover:[&_[data-slot=icon]]:text-foreground","hover:bg-accent active:bg-ink-pressed","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{variant:{default:"",subtle:"text-muted-foreground hover:text-foreground"}},defaultVariants:{variant:"default"}}),H=E(["flex flex-col","h-[var(--collapsible-panel-height)]","transition-[height] duration-200 ease-out","data-[starting-style]:h-0","data-[ending-style]:h-0","[clip-path:inset(-4px_-10px_-4px_-10px)]"],{variants:{indent:{true:"pl-4",false:""}},defaultVariants:{indent:!0}});function J({className:P,...C}){return k(A.Root,{className:b("flex flex-col",P),...C})}var K=F(function({className:C,variant:q,...y},z){return k(A.Trigger,{ref:z,className:b(G({variant:q}),C),...y})}),L=F(function({className:C,indent:q,...y},z){return k(A.Panel,{ref:z,className:b(H({indent:q}),C),...y})});function M({className:P,...C}){return k("div",{"data-slot":"collapsible-content",className:b("flex flex-col gap-[3px] pt-[3px]",P),...C})}function O({className:P,...C}){return k(D,{icon:Q,className:b("ml-auto transition-transform duration-200 [[data-panel-open]_&]:rotate-90",P),...C})}var S={Root:J,Trigger:K,Panel:L,Content:M,Chevron:O};export{G as collapsibleTriggerVariants,H as collapsiblePanelVariants,K as CollapsibleTrigger,J as CollapsibleRoot,L as CollapsiblePanel,M as CollapsibleContent,O as CollapsibleChevron,S as Collapsible};export{G as jd,H as kd,J as ld,K as md,L as nd,M as od,O as pd,S as qd};
1
+ import{zt,Gt,_t,Ht,Wt,$t,Ut,Pa}from"../../index-3qz0mz4s.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{Pa as Collapsible,Ut as CollapsibleChevron,$t as CollapsibleContent,Wt as CollapsiblePanel,_t as CollapsibleRoot,Ht as CollapsibleTrigger,Gt as collapsiblePanelVariants,zt as collapsibleTriggerVariants};
@@ -1 +1 @@
1
- import{Hd as y,Id as k,Kd as w}from"../../index-2nc1awt9.js";import"../Icon/index.js";import{xe as $}from"../../index-aq782dhn.js";import{ye as Q}from"../../lib/utils.js";import{Combobox as K}from"@base-ui/react/combobox";import{faCheck as B,faChevronDown as S,faXmark as U}from"@fortawesome/pro-solid-svg-icons";import{cva as W}from"class-variance-authority";import{createContext as z,useContext as M,useMemo as j,useState as d}from"react";import{jsx as J,jsxs as QP}from"react/jsx-runtime";var Z=z(null),D=z(null),A=W(["w-full min-w-0 rounded-lg border border-input bg-background text-foreground shadow-xs","placeholder:text-muted-foreground","transition-[color,box-shadow] outline-none","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],{variants:{size:w},defaultVariants:{size:"md"}}),G=W(["relative flex w-full items-center gap-0.5 rounded-lg border border-input bg-background py-0.5 pr-0.5 pl-1.5 shadow-xs","transition-[color,box-shadow]","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],{variants:{size:k},defaultVariants:{size:"md"}}),N=W([`h-full w-full min-w-0 flex-1 bg-transparent pl-1.5 ${y} text-foreground outline-none`,"placeholder:text-muted-foreground"]),h=W([`h-6 min-w-16 flex-1 bg-transparent px-1.5 ${y} text-foreground outline-none`,"placeholder:text-muted-foreground"]),H=W(["flex aspect-square h-full shrink-0 cursor-default items-center justify-center rounded-md bg-transparent text-muted-foreground/60","outline-none transition-colors","hover:bg-muted hover:text-muted-foreground","focus-visible:ring-2 focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"]),g=W(["bg-background text-foreground","z-50 w-[var(--anchor-width)] max-w-[var(--available-width)] max-h-[min(var(--available-height),23rem)]","overflow-y-auto overscroll-contain scroll-py-1.5","rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)] outline-none","transition-[transform,scale,opacity]","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]),L=W(["relative flex w-full cursor-default items-center gap-2 rounded-md py-1.5 pr-8 pl-2 text-sm outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]),R=W(["px-2 py-4 text-center text-sm text-muted-foreground empty:p-0"]),X=W(["px-2 py-1.5 text-xs text-muted-foreground empty:p-0"]),E=W(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),_=W(["flex min-h-9 w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-background px-1.5 py-1 shadow-xs","transition-[color,box-shadow]","focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"]),f=W(["flex h-6 cursor-default items-center gap-0.5 rounded-md bg-muted pr-0.5 pl-2 text-xs font-medium text-foreground outline-none","focus-within:bg-primary focus-within:text-primary-foreground"]),O=W(["flex size-5 shrink-0 cursor-default items-center justify-center rounded-sm text-inherit opacity-60","outline-none transition-opacity hover:opacity-100"]);function C(P){let[q,F]=d(null),Y=j(()=>({anchor:q,setAnchor:F}),[q]);return J(D.Provider,{value:Y,children:J(K.Root,{...P})})}function i({className:P,children:q,...F}){return J(K.Label,{"data-slot":"combobox-label",className:Q("text-sm font-medium text-foreground",P),...F,children:q})}function p({className:P,size:q,...F}){let Y=M(Z);if(Y==="group")return J(K.Input,{"data-slot":"combobox-input",className:Q(N(),P),...F});if(Y==="chips")return J(K.Input,{"data-slot":"combobox-input",className:Q(h(),P),...F});return J(K.Input,{"data-slot":"combobox-input",className:Q(A({size:q}),P),...F})}function t({className:P,children:q,size:F,...Y}){return J(Z.Provider,{value:"group",children:J(K.InputGroup,{"data-slot":"combobox-input-group",className:Q(G({size:F}),P),...Y,children:q})})}function l({className:P,children:q,...F}){return J(K.Trigger,{"data-slot":"combobox-trigger","aria-label":q?void 0:"Open popup",className:Q(q?void 0:H(),P),...F,children:q??J($,{icon:S,className:"size-3.5"})})}function m({className:P,children:q,...F}){return J(K.Clear,{"data-slot":"combobox-clear","aria-label":"Clear selection",className:Q(H(),P),...F,children:q??J($,{icon:U,className:"size-3.5"})})}function b(P){return J(K.Value,{"data-slot":"combobox-value",...P})}function x({className:P,children:q,...F}){return J(K.Icon,{"data-slot":"combobox-icon",className:Q("flex shrink-0 text-muted-foreground/60",P),...F,children:q??J($,{icon:S,className:"size-3.5"})})}function r({className:P,children:q,side:F="bottom",align:Y="start",sideOffset:T=4,alignOffset:V,anchor:v,...I}){let u=M(D);return J(K.Portal,{children:J(K.Positioner,{className:"z-50 outline-none",side:F,align:Y,sideOffset:T,alignOffset:V,anchor:v??u?.anchor??void 0,children:J(K.Popup,{"data-slot":"combobox-content",className:Q(g(),P),...I,children:q})})})}function n({className:P,...q}){return J(K.List,{"data-slot":"combobox-list",className:Q("outline-none",P),...q})}function c({className:P,children:q,...F}){return QP(K.Item,{"data-slot":"combobox-item",className:Q(L(),P),...F,children:[J("span",{"data-slot":"combobox-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:J(K.ItemIndicator,{children:J($,{icon:B,className:"size-4 text-primary"})})}),q]})}function e({className:P,children:q,...F}){return J(K.Empty,{"data-slot":"combobox-empty",className:Q(R(),P),...F,children:q})}function a({className:P,children:q,...F}){return J(K.Status,{"data-slot":"combobox-status",className:Q(X(),P),...F,children:q})}function s({className:P,children:q,...F}){return J(K.Group,{"data-slot":"combobox-group",className:Q(P),...F,children:q})}function o({className:P,children:q,...F}){return J(K.GroupLabel,{"data-slot":"combobox-group-label",className:Q(E(),P),...F,children:q})}function PP(P){return J(K.Collection,{...P})}function qP({className:P,children:q,...F}){let Y=M(D);return J(Z.Provider,{value:"chips",children:J(K.Chips,{ref:Y?.setAnchor,"data-slot":"combobox-chips",className:Q(_(),P),...F,children:q})})}function FP({className:P,children:q,...F}){return J(K.Chip,{"data-slot":"combobox-chip",className:Q(f(),P),...F,children:q})}function JP({className:P,children:q,...F}){return J(K.ChipRemove,{"data-slot":"combobox-chip-remove","aria-label":"Remove",className:Q(O(),P),...F,children:q??J($,{icon:U,className:"size-3"})})}var KP={Root:C,Label:i,Input:p,InputGroup:t,Trigger:l,Clear:m,Value:b,Icon:x,Content:r,List:n,Item:c,Empty:e,Status:a,Group:s,GroupLabel:o,Collection:PP,Chips:qP,Chip:FP,ChipRemove:JP};export{X as comboboxStatusVariants,L as comboboxItemVariants,A as comboboxInputVariants,G as comboboxInputGroupVariants,E as comboboxGroupLabelVariants,R as comboboxEmptyVariants,g as comboboxContentVariants,_ as comboboxChipsVariants,f as comboboxChipVariants,O as comboboxChipRemoveVariants,H as comboboxButtonVariants,KP as Combobox};export{A as rd,G as sd,H as td,g as ud,L as vd,R as wd,X as xd,E as yd,_ as zd,f as Ad,O as Bd,KP as Cd};
1
+ import{Kt,jt,Te,Xt,Yt,Qt,Zt,Jt,qt,eo,to,Ca}from"../../index-n11bq2ez.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{Ca as Combobox,Te as comboboxButtonVariants,to as comboboxChipRemoveVariants,eo as comboboxChipVariants,qt as comboboxChipsVariants,Xt as comboboxContentVariants,Qt as comboboxEmptyVariants,Jt as comboboxGroupLabelVariants,jt as comboboxInputGroupVariants,Kt as comboboxInputVariants,Yt as comboboxItemVariants,Zt as comboboxStatusVariants};
@@ -1 +1 @@
1
- import{ae as H}from"../Kbd/index.js";import{ce as _}from"../Dialog/index.js";import{ye as T}from"../../lib/utils.js";import{cva as X}from"class-variance-authority";import{Command as Z}from"cmdk";import{forwardRef as Y}from"react";import{jsx as Q,jsxs as $}from"react/jsx-runtime";var M=X(["flex min-h-0 w-full flex-col overflow-hidden rounded-xl bg-background text-foreground"]),W=X(["flex h-12 min-w-0 w-full bg-transparent text-base outline-none","placeholder:text-tertiary","disabled:cursor-not-allowed disabled:opacity-50"]),z=X(["min-h-0 max-h-[400px] flex-1 overflow-y-auto overflow-x-hidden overscroll-contain scroll-py-2 p-2"]),E=X(["py-6 text-center text-sm"]),G=X(["overflow-hidden text-foreground","[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-2","[&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium","[&_[cmdk-group-heading]]:text-tertiary"]),L=X(["mx-2 my-2 h-px bg-ink-well"]),O=X(["relative flex min-h-10 cursor-default gap-3 select-none items-center rounded-lg px-2 py-2 text-sm font-medium outline-none","hover:bg-ink-hover data-[selected=true]:bg-ink-pressed data-[selected=true]:text-foreground","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","[&_[data-slot=icon]]:pointer-events-none [&_[data-slot=icon]]:size-4 [&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-tertiary"]),b=X(["ml-auto shrink-0 text-xs text-tertiary"]),K=X(["flex shrink-0 items-center gap-3 mx-2 my-1 rounded-lg px-2","[&_[data-slot=icon]]:size-5 [&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-tertiary"]),A=Y(({className:P,children:q,...B},J)=>Q(Z,{ref:J,"data-slot":"command",className:T(M(),P),...B,children:q})),S=Y(({className:P,wrapperClassName:q,leading:B,...J},U)=>$("div",{"data-slot":"command-input-wrapper",className:T(K(),q),children:[B,Q(Z.Input,{ref:U,"data-slot":"command-input",className:T(W(),P),...J})]})),I=Y(({className:P,children:q,...B},J)=>Q(Z.List,{ref:J,"data-slot":"command-list",className:T(z(),P),...B,children:q})),k=Y(({className:P,children:q,...B},J)=>Q(Z.Empty,{ref:J,"data-slot":"command-empty",className:T(E(),P),...B,children:q})),V=Y(({className:P,children:q,...B},J)=>Q(Z.Group,{ref:J,"data-slot":"command-group",className:T(G(),P),...B,children:q})),D=Y(({className:P,...q},B)=>Q(Z.Separator,{ref:B,"data-slot":"command-separator",className:T(L(),P),...q})),u=Y(({className:P,children:q,...B},J)=>Q(Z.Item,{ref:J,"data-slot":"command-item",className:T(O(),P),...B,children:q})),y=Y(({className:P,children:q,...B},J)=>Q("span",{ref:J,"data-slot":"command-shortcut",className:T(b(),P),...B,children:q}));A.displayName="CommandRoot";S.displayName="CommandInput";I.displayName="CommandList";k.displayName="CommandEmpty";V.displayName="CommandGroup";D.displayName="CommandSeparator";u.displayName="CommandItem";y.displayName="CommandShortcut";function g({className:P,...q}){return Q("div",{"data-slot":"command-header",className:T("shrink-0 border-b border-hairline",P),...q})}function w({className:P,...q}){return Q("fieldset",{"data-slot":"command-scopes","aria-label":"Search scope",className:T("flex min-w-0 gap-1 overflow-x-auto px-4 pb-2",P),...q})}function C({active:P=!1,className:q,onKeyDown:B,...J}){return Q("button",{type:"button","data-slot":"command-scope","aria-pressed":P,className:T("inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-tertiary hover:bg-ink-hover hover:text-foreground aria-pressed:bg-ink-pressed aria-pressed:text-foreground outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-brand disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-3.5",q),onKeyDown:(U)=>{B?.(U),U.stopPropagation()},...J})}function h({className:P,...q}){return Q("span",{"data-slot":"command-description",className:T("min-w-0 truncate text-xs font-normal text-tertiary",P),...q})}function x({className:P,...q}){return Q("span",{"data-slot":"command-meta",className:T("ml-auto shrink-0 text-xs font-normal text-tertiary",P),...q})}function v({className:P,...q}){return Q("div",{"data-slot":"command-footer",className:T("flex min-h-11 shrink-0 flex-wrap items-center gap-x-5 gap-y-2 border-t border-hairline bg-ink-hover px-4 py-2",P),...q})}function j({keys:P,children:q,className:B,...J}){return $("span",{className:T("inline-flex items-center gap-2 whitespace-nowrap text-xs text-tertiary",B),...J,children:[Q("span",{className:"inline-flex gap-1",children:P.map((U)=>Q(H,{className:"bg-background shadow-xs",children:U},U))}),q]})}function f({open:P,onOpenChange:q,children:B,title:J="Search commands",size:U="lg",className:R,commandProps:F}){return Q(_.Root,{open:P,onOpenChange:q,children:$(_.Portal,{children:[Q(_.Backdrop,{}),$(_.Popup,{className:T("w-[calc(100vw-2rem)] overflow-hidden rounded-2xl border-hairline p-0",{sm:"max-w-md",md:"max-w-xl",lg:"max-w-3xl"}[U],R),children:[Q(_.Title,{className:"sr-only",children:J}),Q(A,{label:J,...F,className:T("max-h-[min(640px,calc(100dvh-4rem))] rounded-none",F?.className),children:B})]})]})})}var N={Root:A,Header:g,Scopes:w,Scope:C,Description:h,Meta:x,Footer:v,Hint:j,Input:S,List:I,Empty:k,Group:V,Separator:D,Item:u,Shortcut:y,Dialog:f};export{M as commandVariants,b as commandShortcutVariants,L as commandSeparatorVariants,z as commandListVariants,O as commandItemVariants,K as commandInputWrapperVariants,W as commandInputVariants,G as commandGroupVariants,E as commandEmptyVariants,N as Command};export{M as Sd,W as Td,z as Ud,E as Vd,G as Wd,L as Xd,O as Yd,b as Zd,K as _d,N as $d};
1
+ import{io,so,lo,co,po,uo,mo,go,fo,wa}from"../../index-2cbcq1ak.js";import"../../index-fse0pbfb.js";import"../../index-e3jk5qws.js";import"../../index-6hjt8vvj.js";export{wa as Command,co as commandEmptyVariants,po as commandGroupVariants,so as commandInputVariants,fo as commandInputWrapperVariants,mo as commandItemVariants,lo as commandListVariants,uo as commandSeparatorVariants,go as commandShortcutVariants,io as commandVariants};
@@ -0,0 +1,92 @@
1
+ import { type ReactNode, type RefObject } from "react";
2
+ import type { ControlSize } from "../../lib/controlSize";
3
+ import type { GridSchema } from "./columns";
4
+ import { type RowAction } from "./parts";
5
+ import { type Density, type GridQuery } from "./query";
6
+ import { type GridResult } from "./server";
7
+ export type { ControlSize } from "../../lib/controlSize";
8
+ export type { RowAction } from "./parts";
9
+ /**
10
+ * `loading` has no rows yet and shows skeletons. `refreshing` keeps the
11
+ * current rows on screen, dimmed, while a new server page loads.
12
+ */
13
+ export type GridStatus = "ready" | "loading" | "refreshing" | "error";
14
+ /**
15
+ * Where rows come from. `rows` hands the grid every row and it filters, sorts,
16
+ * and pages them itself. `result` hands it one page the server already
17
+ * filtered, sorted, and sliced for `toGridRequest(query)`.
18
+ */
19
+ export type GridData<TRow, S extends GridSchema<TRow>> = {
20
+ rows: readonly TRow[];
21
+ result?: never;
22
+ } | {
23
+ result: GridResult<TRow, S>;
24
+ rows?: never;
25
+ };
26
+ export type DataGridProps<TRow, S extends GridSchema<TRow>> = GridData<TRow, S> & {
27
+ schema: S;
28
+ query: GridQuery<S>;
29
+ onQueryChange: (query: GridQuery<S>) => void;
30
+ label: string;
31
+ density?: Density;
32
+ onDensityChange?: (density: Density) => void;
33
+ controlSize?: ControlSize;
34
+ status?: GridStatus;
35
+ error?: ReactNode;
36
+ onRetry?: () => void;
37
+ empty?: ReactNode;
38
+ /** Placeholder for the toolbar search field. */
39
+ searchPlaceholder?: string;
40
+ /**
41
+ * With a server `result`, how long the search field waits after the last
42
+ * keystroke before it changes the query, so typing sends one request.
43
+ * Clearing the search applies at once. Client rows always search at once.
44
+ */
45
+ searchDelay?: number;
46
+ inspector?: (row: TRow) => ReactNode;
47
+ /**
48
+ * Per-row menu, shown as a trailing "…" column pinned to the right edge and
49
+ * on right-click. Called lazily when a row's menu opens.
50
+ */
51
+ rowActions?: (row: TRow) => readonly RowAction[];
52
+ actions?: (selection: {
53
+ count: number;
54
+ ids: readonly string[];
55
+ allMatching: boolean;
56
+ pageChecked: boolean | "indeterminate";
57
+ }) => ReactNode;
58
+ /** Extra controls at the right end of the toolbar (export, primary action…). */
59
+ toolbar?: ReactNode;
60
+ footer?: ReactNode;
61
+ /** `page` lets the document scroll and sticks the header to that scroller. */
62
+ scroll?: "port" | "page";
63
+ /**
64
+ * `full` runs edge to edge in an app shell. `contained` is a bordered card
65
+ * for a column narrower than the panel.
66
+ */
67
+ frame?: "full" | "contained";
68
+ /**
69
+ * Panel the row drawer must stay inside. The drawer anchors to the row
70
+ * sheet below the toolbar, and this element keeps it from covering the shell.
71
+ */
72
+ drawerContainer?: RefObject<HTMLElement | null>;
73
+ /** `grid` adds a hairline between columns, like a spreadsheet. */
74
+ lines?: "rows" | "grid";
75
+ /** Column wash while the pointer is over a cell. Off unless a grid opts in. */
76
+ crosshair?: boolean;
77
+ /** Pins interaction chrome for a demo. Live hover, focus, and selection still apply. */
78
+ rowCue?: (row: TRow) => GridRowCue | undefined;
79
+ className?: string;
80
+ };
81
+ export type GridRowCue = {
82
+ hover?: boolean;
83
+ focused?: boolean;
84
+ disabled?: boolean;
85
+ editing?: boolean;
86
+ };
87
+ /**
88
+ * Inventory grid: a query-driven table with search, filters, multi-sort,
89
+ * pinned columns, row actions and keyboard navigation.
90
+ */
91
+ export declare function DataGrid<TRow, S extends GridSchema<TRow>>({ schema, rows, result, query, onQueryChange, label, density, onDensityChange, controlSize, status, error, onRetry, empty, searchPlaceholder, searchDelay, inspector, rowActions, actions, toolbar, footer, scroll, frame, drawerContainer, lines, crosshair, rowCue, className, }: DataGridProps<TRow, S>): import("react").JSX.Element;
92
+ //# sourceMappingURL=DataGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/DataGrid.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from "react";
2
+ import type { AnyColumn, AvatarStackValue, AvatarValue, BadgeVariant, EntityValue } from "./columns";
3
+ export declare function EntityCell({ title, subtitle, image }: EntityValue): import("react").JSX.Element;
4
+ export declare function AvatarCell({ name, src, status }: AvatarValue): import("react").JSX.Element;
5
+ export declare function AvatarGroupCell({ people }: {
6
+ people: AvatarStackValue;
7
+ }): import("react").JSX.Element;
8
+ /** Placeholder for a cell with no value, so blank cells read as intentional. */
9
+ export declare function EmptyCell(): import("react").JSX.Element;
10
+ export declare function TagsCell({ tags }: {
11
+ tags: readonly string[];
12
+ }): import("react").JSX.Element;
13
+ export declare function MoneyCell({ amount, currency, decimalPlaces, }: {
14
+ amount: number;
15
+ currency: string;
16
+ decimalPlaces: number;
17
+ }): import("react").JSX.Element;
18
+ export declare function SparklineCell({ values }: {
19
+ values: readonly number[];
20
+ }): import("react").JSX.Element;
21
+ export declare function StatusCell({ label, variant, }: {
22
+ label: string;
23
+ variant: BadgeVariant;
24
+ }): import("react").JSX.Element;
25
+ export declare function renderCell<TRow>(column: AnyColumn<TRow>, row: TRow): ReactNode;
26
+ //# sourceMappingURL=cells.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cells.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/cells.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EACX,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,MAAM,WAAW,CAAC;AAUnB,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,WAAW,+BA0BjE;AAQD,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,WAAW,+BAuB5D;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,+BAyBvE;AAED,gFAAgF;AAChF,wBAAgB,SAAS,gCAExB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,+BAgB7D;AAED,wBAAgB,SAAS,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,aAAa,GACb,EAAE;IACF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,+BAEA;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,+BAkDtE;AAED,wBAAgB,UAAU,CAAC,EAC1B,KAAK,EACL,OAAO,GACP,EAAE;IACF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,CAAC;CACtB,+BAMA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAC9B,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,EACvB,GAAG,EAAE,IAAI,GACP,SAAS,CA4DX"}