@gears-frontx/ui-kit 0.3.0-alpha.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 (181) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +49 -0
  3. package/README.md +75 -0
  4. package/dist/badge.d.ts +1 -0
  5. package/dist/badge.js +42 -0
  6. package/dist/badge.js.map +1 -0
  7. package/dist/button.d.ts +1 -0
  8. package/dist/button.js +73 -0
  9. package/dist/button.js.map +1 -0
  10. package/dist/card.d.ts +1 -0
  11. package/dist/card.js +54 -0
  12. package/dist/card.js.map +1 -0
  13. package/dist/checkbox.d.ts +1 -0
  14. package/dist/checkbox.js +46 -0
  15. package/dist/checkbox.js.map +1 -0
  16. package/dist/chunks/badge.ej-3-Xs4.css +1 -0
  17. package/dist/chunks/button.CKfALaMe.css +1 -0
  18. package/dist/chunks/card.B0AcyAT1.css +1 -0
  19. package/dist/chunks/checkbox.Dd6YDr20.css +1 -0
  20. package/dist/chunks/dialog.D6LS2vnG.css +1 -0
  21. package/dist/chunks/dropdown-menu.DmDZc5gB.css +1 -0
  22. package/dist/chunks/field.BNZx8HfN.css +1 -0
  23. package/dist/chunks/input.CrRQ0OAn.css +1 -0
  24. package/dist/chunks/label.jrB9zD_G.css +1 -0
  25. package/dist/chunks/radio-group.1Y6B0lXt.css +1 -0
  26. package/dist/chunks/select.BmyP2S2q.css +1 -0
  27. package/dist/chunks/separator.DdRRkJW4.css +1 -0
  28. package/dist/chunks/skeleton.BhWSzPnI.css +1 -0
  29. package/dist/chunks/switch.B_ebMSxR.css +1 -0
  30. package/dist/chunks/table.r8ppNt1W.css +1 -0
  31. package/dist/chunks/tabs.DqJE9cX3.css +1 -0
  32. package/dist/chunks/textarea.BKWvs6fD.css +1 -0
  33. package/dist/chunks/toast.DMl31Mq4.css +1 -0
  34. package/dist/chunks/tooltip.apA3VWHJ.css +1 -0
  35. package/dist/components/badge/badge.d.ts +11 -0
  36. package/dist/components/badge/badge.d.ts.map +1 -0
  37. package/dist/components/badge/public.d.ts +2 -0
  38. package/dist/components/badge/public.d.ts.map +1 -0
  39. package/dist/components/button/button.d.ts +50 -0
  40. package/dist/components/button/button.d.ts.map +1 -0
  41. package/dist/components/button/public.d.ts +2 -0
  42. package/dist/components/button/public.d.ts.map +1 -0
  43. package/dist/components/card/card.d.ts +22 -0
  44. package/dist/components/card/card.d.ts.map +1 -0
  45. package/dist/components/card/public.d.ts +2 -0
  46. package/dist/components/card/public.d.ts.map +1 -0
  47. package/dist/components/checkbox/checkbox.d.ts +6 -0
  48. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  49. package/dist/components/checkbox/public.d.ts +2 -0
  50. package/dist/components/checkbox/public.d.ts.map +1 -0
  51. package/dist/components/dialog/dialog.d.ts +58 -0
  52. package/dist/components/dialog/dialog.d.ts.map +1 -0
  53. package/dist/components/dialog/public.d.ts +2 -0
  54. package/dist/components/dialog/public.d.ts.map +1 -0
  55. package/dist/components/dropdown-menu/dropdown-menu.d.ts +70 -0
  56. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
  57. package/dist/components/dropdown-menu/public.d.ts +2 -0
  58. package/dist/components/dropdown-menu/public.d.ts.map +1 -0
  59. package/dist/components/field/field.d.ts +18 -0
  60. package/dist/components/field/field.d.ts.map +1 -0
  61. package/dist/components/field/public.d.ts +2 -0
  62. package/dist/components/field/public.d.ts.map +1 -0
  63. package/dist/components/input/input.d.ts +6 -0
  64. package/dist/components/input/input.d.ts.map +1 -0
  65. package/dist/components/input/public.d.ts +2 -0
  66. package/dist/components/input/public.d.ts.map +1 -0
  67. package/dist/components/label/label.d.ts +4 -0
  68. package/dist/components/label/label.d.ts.map +1 -0
  69. package/dist/components/label/public.d.ts +2 -0
  70. package/dist/components/label/public.d.ts.map +1 -0
  71. package/dist/components/radio-group/public.d.ts +2 -0
  72. package/dist/components/radio-group/public.d.ts.map +1 -0
  73. package/dist/components/radio-group/radio-group.d.ts +11 -0
  74. package/dist/components/radio-group/radio-group.d.ts.map +1 -0
  75. package/dist/components/select/public.d.ts +2 -0
  76. package/dist/components/select/public.d.ts.map +1 -0
  77. package/dist/components/select/select.d.ts +61 -0
  78. package/dist/components/select/select.d.ts.map +1 -0
  79. package/dist/components/separator/public.d.ts +2 -0
  80. package/dist/components/separator/public.d.ts.map +1 -0
  81. package/dist/components/separator/separator.d.ts +6 -0
  82. package/dist/components/separator/separator.d.ts.map +1 -0
  83. package/dist/components/skeleton/public.d.ts +2 -0
  84. package/dist/components/skeleton/public.d.ts.map +1 -0
  85. package/dist/components/skeleton/skeleton.d.ts +4 -0
  86. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  87. package/dist/components/switch/public.d.ts +2 -0
  88. package/dist/components/switch/public.d.ts.map +1 -0
  89. package/dist/components/switch/switch.d.ts +11 -0
  90. package/dist/components/switch/switch.d.ts.map +1 -0
  91. package/dist/components/table/public.d.ts +2 -0
  92. package/dist/components/table/public.d.ts.map +1 -0
  93. package/dist/components/table/table.d.ts +38 -0
  94. package/dist/components/table/table.d.ts.map +1 -0
  95. package/dist/components/tabs/public.d.ts +2 -0
  96. package/dist/components/tabs/public.d.ts.map +1 -0
  97. package/dist/components/tabs/tabs.d.ts +23 -0
  98. package/dist/components/tabs/tabs.d.ts.map +1 -0
  99. package/dist/components/textarea/public.d.ts +2 -0
  100. package/dist/components/textarea/public.d.ts.map +1 -0
  101. package/dist/components/textarea/textarea.d.ts +4 -0
  102. package/dist/components/textarea/textarea.d.ts.map +1 -0
  103. package/dist/components/toast/public.d.ts +2 -0
  104. package/dist/components/toast/public.d.ts.map +1 -0
  105. package/dist/components/toast/toast.d.ts +85 -0
  106. package/dist/components/toast/toast.d.ts.map +1 -0
  107. package/dist/components/tooltip/public.d.ts +2 -0
  108. package/dist/components/tooltip/public.d.ts.map +1 -0
  109. package/dist/components/tooltip/tooltip.d.ts +41 -0
  110. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  111. package/dist/dialog.d.ts +1 -0
  112. package/dist/dialog.js +84 -0
  113. package/dist/dialog.js.map +1 -0
  114. package/dist/docs/badge.md +82 -0
  115. package/dist/docs/button.md +102 -0
  116. package/dist/docs/card.md +131 -0
  117. package/dist/docs/checkbox.md +55 -0
  118. package/dist/docs/dialog.md +124 -0
  119. package/dist/docs/dropdown-menu.md +140 -0
  120. package/dist/docs/field.md +68 -0
  121. package/dist/docs/input.md +65 -0
  122. package/dist/docs/label.md +50 -0
  123. package/dist/docs/radio-group.md +59 -0
  124. package/dist/docs/select.md +99 -0
  125. package/dist/docs/separator.md +119 -0
  126. package/dist/docs/skeleton.md +143 -0
  127. package/dist/docs/switch.md +51 -0
  128. package/dist/docs/table.md +276 -0
  129. package/dist/docs/tabs.md +124 -0
  130. package/dist/docs/textarea.md +52 -0
  131. package/dist/docs/toast.md +153 -0
  132. package/dist/docs/tooltip.md +134 -0
  133. package/dist/dropdown-menu.d.ts +1 -0
  134. package/dist/dropdown-menu.js +183 -0
  135. package/dist/dropdown-menu.js.map +1 -0
  136. package/dist/field.d.ts +1 -0
  137. package/dist/field.js +28 -0
  138. package/dist/field.js.map +1 -0
  139. package/dist/index.d.ts +48 -0
  140. package/dist/index.d.ts.map +1 -0
  141. package/dist/index.js +96 -0
  142. package/dist/index.js.map +1 -0
  143. package/dist/input.d.ts +1 -0
  144. package/dist/input.js +30 -0
  145. package/dist/input.js.map +1 -0
  146. package/dist/label.d.ts +1 -0
  147. package/dist/label.js +12 -0
  148. package/dist/label.js.map +1 -0
  149. package/dist/radio-group.d.ts +1 -0
  150. package/dist/radio-group.js +21 -0
  151. package/dist/radio-group.js.map +1 -0
  152. package/dist/select.d.ts +1 -0
  153. package/dist/select.js +175 -0
  154. package/dist/select.js.map +1 -0
  155. package/dist/separator.d.ts +1 -0
  156. package/dist/separator.js +13 -0
  157. package/dist/separator.js.map +1 -0
  158. package/dist/skeleton.d.ts +1 -0
  159. package/dist/skeleton.js +12 -0
  160. package/dist/skeleton.js.map +1 -0
  161. package/dist/switch.d.ts +1 -0
  162. package/dist/switch.js +26 -0
  163. package/dist/switch.js.map +1 -0
  164. package/dist/table.d.ts +1 -0
  165. package/dist/table.js +64 -0
  166. package/dist/table.js.map +1 -0
  167. package/dist/tabs.d.ts +1 -0
  168. package/dist/tabs.js +41 -0
  169. package/dist/tabs.js.map +1 -0
  170. package/dist/textarea.d.ts +1 -0
  171. package/dist/textarea.js +13 -0
  172. package/dist/textarea.js.map +1 -0
  173. package/dist/theme.css +485 -0
  174. package/dist/toast.d.ts +1 -0
  175. package/dist/toast.js +193 -0
  176. package/dist/toast.js.map +1 -0
  177. package/dist/tooltip.d.ts +1 -0
  178. package/dist/tooltip.js +49 -0
  179. package/dist/tooltip.js.map +1 -0
  180. package/llms.txt +148 -0
  181. package/package.json +85 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,49 @@
1
+ NOTICE
2
+
3
+ Copyright 2026 Constructor Fabric Foundation
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+
17
+ Third-party attributions:
18
+
19
+ - This package includes design tokens and component styles derived from
20
+ shadcn/ui (https://github.com/shadcn-ui/ui), licensed under the MIT License.
21
+ The MIT License requires the copyright and permission notice to travel with
22
+ copies and substantial portions of the work, so the upstream notice is
23
+ reproduced in full below.
24
+
25
+ --------------------------------------------------------------------------------
26
+ shadcn/ui — https://github.com/shadcn-ui/ui
27
+
28
+ MIT License
29
+
30
+ Copyright (c) 2023 shadcn
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in all
40
+ copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
+ SOFTWARE.
49
+ --------------------------------------------------------------------------------
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # @gears-frontx/ui-kit
2
+
3
+ Standard React component base for FrontX templates. Templates build their
4
+ screens from it and receive fixes and design updates via a dependency bump;
5
+ templates may mix in other components, and other companies can plug their own
6
+ kits into their own templates.
7
+
8
+ - **Stack:** React 19 + Base UI + CSS Modules + CVA
9
+ - **Self-contained styles:** the package ships compiled CSS — consumers need no
10
+ CSS framework, preprocessor, or build plugins
11
+ - **Customization:** basic branding via CSS-variable tokens; deep changes = fork
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ // once, in the consumer entry module
17
+ import '@gears-frontx/ui-kit/theme.css'; // design tokens (CSS variables)
18
+ ```
19
+
20
+ ```tsx
21
+ import { Button } from '@gears-frontx/ui-kit';
22
+
23
+ <Button variant="outline" size="sm">
24
+ Save
25
+ </Button>;
26
+ ```
27
+
28
+ Each component ships its own CSS chunk, pulled in automatically by importing
29
+ the component — there's no combined stylesheet to import separately. Import
30
+ from the package root (`@gears-frontx/ui-kit`) or from a component's own
31
+ subpath (`@gears-frontx/ui-kit/button`) — both tree-shake the *JS* of
32
+ components you don't import, on every bundler tested (Vite, webpack,
33
+ esbuild). For CSS, which one actually shakes is bundler-dependent: Vite and
34
+ webpack drop the CSS of unimported components either way; esbuild only does
35
+ that from a subpath import — bundling the root import through esbuild ships
36
+ every component's CSS regardless of what's used, because esbuild collects
37
+ CSS from the whole reachable module graph rather than pruning it alongside
38
+ unused JS bindings the way it prunes JS. If your build uses esbuild directly
39
+ (not through a framework that wraps it, like Vite does), prefer the subpath
40
+ import for CSS you actually want dropped.
41
+
42
+ The theme file paints the page (background, text, and UA-owned surfaces like
43
+ the scrollbar) as well as defining the tokens, so dark mode works out of the
44
+ box with no attribute at all: it follows `prefers-color-scheme` by default.
45
+ For explicit control instead, set `data-theme="dark"` or `data-theme="light"`
46
+ on `<html>` — or on any inner subtree, which then paints its own surface
47
+ independently of the page around it.
48
+
49
+ Text renders in `--font-sans` (Inter first, then system fallbacks), with
50
+ `--font-mono` (JetBrains Mono) reserved for code-like text; theme.css sets
51
+ the page font itself. The package ships no font files — load Inter/JetBrains
52
+ Mono in your app for the exact Studio look (the fallbacks stay legible
53
+ without them). Type sizes come from the Studio ramp tokens
54
+ (`--text-<role>-size|line-height|weight|tracking`, roles
55
+ `display|heading-1|heading-2|body|label|meta|mono`) — use them for your own
56
+ page text too.
57
+
58
+ To re-brand, override the CSS variables from `theme.css` in your own styles.
59
+
60
+ ## Development
61
+
62
+ ```bash
63
+ npm run build --workspace=@gears-frontx/ui-kit # vite: dist/index.js + dist/<component>.{js,d.ts} + theme.css, ESM only
64
+ npm run test:unit --workspace=@gears-frontx/ui-kit
65
+ ./packages/ui-kit/scripts/verify-consumer.sh # pack-install + tree-shaking acceptance check
66
+ npm run demo:ui-kit # browser sandbox: tokens + components pages (demo/)
67
+ ```
68
+
69
+ See [design-notes.md](design-notes.md) for the design and its history. The package
70
+ publishes on the `alpha` channel through the standard version-gated workflow while
71
+ it matures: the 19-component set is live, the remaining MVP components land under
72
+ the same pre-release line. A stable (`latest`) release stays gated on the full MVP
73
+ component set and on #495 approving the package's architecture ownership,
74
+ traceability, and version policy — the required CDSL artifacts must also replace
75
+ the temporary `artifacts.toml` ignore before a stable version may be cut.
@@ -0,0 +1 @@
1
+ export * from './components/badge/public.js'
package/dist/badge.js ADDED
@@ -0,0 +1,42 @@
1
+ import { mergeProps as i } from "@base-ui/react/merge-props";
2
+ import { useRender as o } from "@base-ui/react/use-render";
3
+ import { cva as v } from "class-variance-authority";
4
+ import './chunks/badge.ej-3-Xs4.css';const _ = "_badge_1qq28_8", c = "_variantSuccess_1qq28_120", p = "_variantWarning_1qq28_125", g = "_variantInfo_1qq28_130", d = "_variantDanger_1qq28_135", l = "_variantMuted_1qq28_17", q = "_shapePill_1qq28_156", u = "_shapeDot_1qq28_161", a = {
5
+ badge: _,
6
+ variantSuccess: c,
7
+ variantWarning: p,
8
+ variantInfo: g,
9
+ variantDanger: d,
10
+ variantMuted: l,
11
+ shapePill: q,
12
+ shapeDot: u
13
+ }, f = v(a.badge, {
14
+ variants: {
15
+ variant: {
16
+ success: a.variantSuccess,
17
+ warning: a.variantWarning,
18
+ info: a.variantInfo,
19
+ danger: a.variantDanger,
20
+ muted: a.variantMuted
21
+ },
22
+ shape: {
23
+ pill: a.shapePill,
24
+ dot: a.shapeDot
25
+ }
26
+ },
27
+ defaultVariants: {
28
+ variant: "muted",
29
+ shape: "pill"
30
+ }
31
+ });
32
+ function b({ className: n, variant: t, shape: r, render: e, ...s }) {
33
+ return o({
34
+ defaultTagName: "span",
35
+ render: e,
36
+ props: i({ className: f({ variant: t, shape: r, className: n }) }, s)
37
+ });
38
+ }
39
+ export {
40
+ b as Badge
41
+ };
42
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","sources":["../src/components/badge/badge.tsx"],"sourcesContent":["import { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport styles from './badge.module.css';\n\n/*\n * Badge has no Base UI primitive component, but it still gets `render`-prop\n * polymorphism — from `useRender`/`mergeProps`, the same utilities Base UI's\n * primitives are built on. A status badge is usually static, but rendered as\n * a link via `render` it stays focusable and gets the focus ring below.\n *\n * The variant model follows the F-mockups' Badge/Status (\"pill or dot;\n * semantic intent only\"), which retires the shadcn-inherited\n * default/secondary/destructive/outline/ghost/link list: a badge states\n * *what kind* of thing it marks, not how to paint it. That semantic-only\n * rule is real, but it lives in badge.md and in the VALUE names — the prop\n * itself keeps the kit-wide `variant` name rather than an axis name of its\n * own, so every component in the kit is driven the same way.\n *\n * `shape`, not `size`: the two values are pill vs. bare dot, and Badge has\n * no size axis at all (the pill is a fixed 24px). Not `form` either — that\n * is a real HTML attribute, so a styling prop by that name would shadow it\n * for anyone rendering a form-associated element via `render`. Both shapes\n * carry the colored dot; `pill` adds the fill behind it.\n */\nconst badgeVariants = cva(styles.badge, {\n variants: {\n variant: {\n success: styles.variantSuccess,\n warning: styles.variantWarning,\n info: styles.variantInfo,\n danger: styles.variantDanger,\n muted: styles.variantMuted,\n },\n shape: {\n pill: styles.shapePill,\n dot: styles.shapeDot,\n },\n },\n defaultVariants: {\n variant: 'muted',\n shape: 'pill',\n },\n});\n\nexport interface BadgeProps\n extends useRender.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {}\n\nexport function Badge({ className, variant, shape, render, ...props }: BadgeProps) {\n return useRender({\n defaultTagName: 'span',\n render,\n props: mergeProps<'span'>({ className: badgeVariants({ variant, shape, className }) }, props),\n });\n}\n"],"names":["badgeVariants","cva","styles","Badge","className","variant","shape","render","props","useRender","mergeProps"],"mappings":";;;;;;;;;;;;GA0BMA,IAAgBC,EAAIC,EAAO,OAAO;AAAA,EACtC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,MAChB,MAAMA,EAAO;AAAA,MACb,QAAQA,EAAO;AAAA,MACf,OAAOA,EAAO;AAAA,IAAA;AAAA,IAEhB,OAAO;AAAA,MACL,MAAMA,EAAO;AAAA,MACb,KAAKA,EAAO;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEX,CAAC;AAKM,SAASC,EAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,OAAAC,GAAO,QAAAC,GAAQ,GAAGC,KAAqB;AACjF,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA,IACA,OAAOG,EAAmB,EAAE,WAAWV,EAAc,EAAE,SAAAK,GAAS,OAAAC,GAAO,WAAAF,GAAW,EAAA,GAAKI,CAAK;AAAA,EAAA,CAC7F;AACH;"}
@@ -0,0 +1 @@
1
+ export * from './components/button/public.js'
package/dist/button.js ADDED
@@ -0,0 +1,73 @@
1
+ import { jsxs as f, jsx as s } from "react/jsx-runtime";
2
+ import { Button as m } from "@base-ui/react/button";
3
+ import { cva as b } from "class-variance-authority";
4
+ import { Children as z } from "react";
5
+ import './chunks/button.CKfALaMe.css';const q = "_button_1ts3q_6", D = "_variantDefault_1ts3q_119", p = "_variantDestructive_1ts3q_134", h = "_variantOutline_1ts3q_159", y = "_variantSecondary_1ts3q_170", L = "_variantGhost_1ts3q_186", S = "_variantLink_1ts3q_206", k = "_sizeDefault_1ts3q_256", O = "_sizeSm_1ts3q_261", G = "_sizeLg_1ts3q_267", N = "_icon_1ts3q_285", g = "_label_1ts3q_307", x = "_spinner_1ts3q_38", t = {
6
+ button: q,
7
+ variantDefault: D,
8
+ variantDestructive: p,
9
+ variantOutline: h,
10
+ variantSecondary: y,
11
+ variantGhost: L,
12
+ variantLink: S,
13
+ sizeDefault: k,
14
+ sizeSm: O,
15
+ sizeLg: G,
16
+ icon: N,
17
+ label: g,
18
+ spinner: x
19
+ }, B = b(t.button, {
20
+ variants: {
21
+ variant: {
22
+ default: t.variantDefault,
23
+ destructive: t.variantDestructive,
24
+ outline: t.variantOutline,
25
+ secondary: t.variantSecondary,
26
+ ghost: t.variantGhost,
27
+ link: t.variantLink
28
+ },
29
+ size: {
30
+ default: t.sizeDefault,
31
+ sm: t.sizeSm,
32
+ lg: t.sizeLg
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ variant: "default",
37
+ size: "default"
38
+ }
39
+ });
40
+ function W({
41
+ className: r,
42
+ variant: o,
43
+ size: l,
44
+ icon: n,
45
+ loading: a,
46
+ disabled: c,
47
+ focusableWhenDisabled: u,
48
+ children: i,
49
+ ..._
50
+ }) {
51
+ const e = z.toArray(i).some((d) => d !== ""), v = n != null && !e;
52
+ return /* @__PURE__ */ f(
53
+ m,
54
+ {
55
+ className: B({ variant: o, size: l, className: r }),
56
+ ..._,
57
+ focusableWhenDisabled: a || u,
58
+ disabled: c || a,
59
+ "data-icon-only": v || void 0,
60
+ "data-loading": a || void 0,
61
+ "aria-busy": a || void 0,
62
+ children: [
63
+ a && /* @__PURE__ */ s("span", { className: t.spinner, "aria-hidden": "true" }),
64
+ n != null && /* @__PURE__ */ s("span", { className: t.icon, "aria-hidden": "true", children: n }),
65
+ e && /* @__PURE__ */ s("span", { className: t.label, children: i })
66
+ ]
67
+ }
68
+ );
69
+ }
70
+ export {
71
+ W as Button
72
+ };
73
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sources":["../src/components/button/button.tsx"],"sourcesContent":["import { Button as ButtonPrimitive } from '@base-ui/react/button';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Children, type ReactNode } from 'react';\n\nimport styles from './button.module.css';\n\nconst buttonVariants = cva(styles.button, {\n variants: {\n variant: {\n default: styles.variantDefault,\n destructive: styles.variantDestructive,\n outline: styles.variantOutline,\n secondary: styles.variantSecondary,\n ghost: styles.variantGhost,\n link: styles.variantLink,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n});\n\nexport interface ButtonProps\n extends Omit<ButtonPrimitive.Props, 'className'>, VariantProps<typeof buttonVariants> {\n className?: string;\n /**\n * Leading icon slot — the one right way to put an icon in a Button (never\n * via children; the slot is what gets sized, spaced, hidden during\n * `loading`, and marked decorative). With no children the button turns\n * square icon-only — pass `aria-label` then, the icon carries no\n * accessible name. Same prop shape as react-kit's AcvButton; a trailing\n * slot, if ever needed, takes AcvButton's `end` name.\n */\n icon?: ReactNode;\n /**\n * Shows a centered spinner and reports `aria-busy`. Content is hidden\n * with opacity, not visibility: it keeps painting the button's size (no\n * width jump) and, unlike visibility, stays in the accessibility tree —\n * the button keeps its name while `aria-busy` reports the state, with no\n * hardcoded \"Loading\" label the kit would otherwise have to translate.\n * Clicks are suppressed the same way `disabled` suppresses them, but the\n * button does NOT become natively `disabled` — it forces\n * `focusableWhenDisabled` (see below) instead, so it stays in the tab\n * order and reports `aria-disabled` rather than blurring itself the\n * instant a native `disabled` attribute would land. Consumer code\n * checking the native `disabled` property or a `:disabled` CSS selector\n * will NOT see a `loading` button the way it sees a plain `disabled`\n * one — check `aria-disabled`/`aria-busy` instead.\n */\n loading?: boolean;\n /**\n * Keep the button in the tab order (and reporting `aria-disabled`\n * instead of the native `disabled` attribute) while disabled — inherited\n * from Base UI's Button, re-declared here because `loading` above forces\n * this to `true` regardless of what's passed: a native `disabled`\n * attribute blurs the button the instant it lands, which `loading` can't\n * afford (it needs `aria-busy` to still be announced to something). An\n * explicit `focusableWhenDisabled={false}` is silently overridden while\n * `loading` is `true`.\n * @default false\n */\n focusableWhenDisabled?: boolean;\n}\n\nexport function Button({\n className,\n variant,\n size,\n icon,\n loading,\n disabled,\n focusableWhenDisabled,\n children,\n ...props\n}: ButtonProps) {\n // One predicate for \"does this button have a visible label\", driving\n // BOTH the icon-only derivation below and the label-render guard at the\n // bottom: `children == null` only catches a missing prop, not a falsy\n // one — `<Button icon={x}>{cond && 'Save'}</Button>` with cond=false\n // passes `false` as children, which is neither null nor renderable, so\n // checking each spot with its own logic could (and did) disagree about\n // whether the button has a label.\n //\n // Children.toArray drops `false`/`null`/`undefined`/`[]` but KEEPS the\n // empty string (`toArray('')` has length 1), so the array being non-empty\n // is not on its own the same question as \"renders something visible\" —\n // hence the explicit `!== ''` filter. `<Button icon={x}>{label}</Button>`\n // with an empty `label` is the case it covers: without the filter that\n // button stays a wide pill wrapping an empty label span instead of going\n // icon-only. `0` is deliberately NOT filtered — React renders it.\n const hasLabel = Children.toArray(children).some((child) => child !== '');\n const iconOnly = icon != null && !hasLabel;\n return (\n <ButtonPrimitive\n className={buttonVariants({ variant, size, className })}\n {...props}\n /*\n * Derived attributes are spread AFTER `...props` so a caller's own\n * conflicting `aria-busy`/`data-loading`/`data-icon-only` can never\n * shadow the state this component just computed — the button IS\n * loading/icon-only/not, regardless of what a stray prop says.\n *\n * `focusableWhenDisabled` while `loading`: a native `disabled`\n * attribute blurs the element the instant it lands, which would\n * silently steal focus off a button the user just clicked and make\n * `aria-busy` announce to no one. Base UI's `focusableWhenDisabled`\n * keeps it in the tab order and reports the state via\n * `aria-disabled` instead (see useFocusableWhenDisabled) — clicks\n * still get suppressed via `disabled` below either way. A plain\n * `disabled` with no `loading` keeps its ordinary native behavior\n * unless the caller opts into `focusableWhenDisabled` itself.\n */\n focusableWhenDisabled={loading || focusableWhenDisabled}\n disabled={disabled || loading}\n data-icon-only={iconOnly || undefined}\n data-loading={loading || undefined}\n aria-busy={loading || undefined}\n >\n {loading && <span className={styles.spinner} aria-hidden=\"true\" />}\n {icon != null && (\n <span className={styles.icon} aria-hidden=\"true\">\n {icon}\n </span>\n )}\n {hasLabel && <span className={styles.label}>{children}</span>}\n </ButtonPrimitive>\n );\n}\n"],"names":["buttonVariants","cva","styles","Button","className","variant","size","icon","loading","disabled","focusableWhenDisabled","children","props","hasLabel","Children","child","iconOnly","jsxs","ButtonPrimitive","jsx"],"mappings":";;;;;;;;;;;;;;;;;;GAMMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,aAAaA,EAAO;AAAA,MACpB,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,IAAA;AAAA,IAEf,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EAAA;AAEV,CAAC;AA4CM,SAASC,EAAO;AAAA,EACrB,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AAgBd,QAAMC,IAAWC,EAAS,QAAQH,CAAQ,EAAE,KAAK,CAACI,MAAUA,MAAU,EAAE,GAClEC,IAAWT,KAAQ,QAAQ,CAACM;AAClC,SACE,gBAAAI;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWlB,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,GAAW;AAAA,MACrD,GAAGQ;AAAA,MAiBJ,uBAAuBJ,KAAWE;AAAA,MAClC,UAAUD,KAAYD;AAAA,MACtB,kBAAgBQ,KAAY;AAAA,MAC5B,gBAAcR,KAAW;AAAA,MACzB,aAAWA,KAAW;AAAA,MAErB,UAAA;AAAA,QAAAA,uBAAY,QAAA,EAAK,WAAWN,EAAO,SAAS,eAAY,QAAO;AAAA,QAC/DK,KAAQ,QACP,gBAAAY,EAAC,QAAA,EAAK,WAAWjB,EAAO,MAAM,eAAY,QACvC,UAAAK,EAAA,CACH;AAAA,QAEDM,KAAY,gBAAAM,EAAC,QAAA,EAAK,WAAWjB,EAAO,OAAQ,UAAAS,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG5D;"}
package/dist/card.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/card/public.js'
package/dist/card.js ADDED
@@ -0,0 +1,54 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { cx as e, cva as s } from "class-variance-authority";
3
+ import './chunks/card.B0AcyAT1.css';const n = "_card_fs5pd_6", i = "_sizeDefault_fs5pd_75", o = "_sizeSm_fs5pd_27", _ = "_cardHeader_fs5pd_85", f = "_cardAction_fs5pd_101", u = "_cardDescription_fs5pd_105", l = "_cardTitle_fs5pd_109", p = "_cardContent_fs5pd_134", m = "_cardFooter_fs5pd_138", t = {
4
+ card: n,
5
+ sizeDefault: i,
6
+ sizeSm: o,
7
+ cardHeader: _,
8
+ cardAction: f,
9
+ cardDescription: u,
10
+ cardTitle: l,
11
+ cardContent: p,
12
+ cardFooter: m
13
+ }, C = s(t.card, {
14
+ variants: {
15
+ size: {
16
+ default: t.sizeDefault,
17
+ sm: t.sizeSm
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ size: "default"
22
+ }
23
+ });
24
+ function D({ className: r, size: a, ...d }) {
25
+ return /* @__PURE__ */ c("div", { className: C({ size: a, className: r }), ...d });
26
+ }
27
+ function N({ className: r, ...a }) {
28
+ return /* @__PURE__ */ c("div", { className: e(t.cardHeader, r), ...a });
29
+ }
30
+ function A({ className: r, ...a }) {
31
+ return /* @__PURE__ */ c("div", { className: e(t.cardTitle, r), ...a });
32
+ }
33
+ function F({ className: r, ...a }) {
34
+ return /* @__PURE__ */ c("div", { className: e(t.cardDescription, r), ...a });
35
+ }
36
+ function H({ className: r, ...a }) {
37
+ return /* @__PURE__ */ c("div", { className: e(t.cardAction, r), ...a });
38
+ }
39
+ function T({ className: r, ...a }) {
40
+ return /* @__PURE__ */ c("div", { className: e(t.cardContent, r), ...a });
41
+ }
42
+ function S({ className: r, ...a }) {
43
+ return /* @__PURE__ */ c("div", { className: e(t.cardFooter, r), ...a });
44
+ }
45
+ export {
46
+ D as Card,
47
+ H as CardAction,
48
+ T as CardContent,
49
+ F as CardDescription,
50
+ S as CardFooter,
51
+ N as CardHeader,
52
+ A as CardTitle
53
+ };
54
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sources":["../src/components/card/card.tsx"],"sourcesContent":["import { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './card.module.css';\n\n/*\n * Card has no Base UI primitive (registry/base-vega ships plain `div`s with\n * data-slot markers) — this is a pure styling translation over native\n * elements, same shape as Dialog's Header/Footer/Title/Description.\n */\n\nconst cardVariants = cva(styles.card, {\n variants: {\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n },\n },\n defaultVariants: {\n size: 'default',\n },\n});\n\nexport type CardProps = ComponentProps<'div'> & VariantProps<typeof cardVariants>;\n\nexport function Card({ className, size, ...props }: CardProps) {\n return <div className={cardVariants({ size, className })} {...props} />;\n}\n\nexport type CardHeaderProps = ComponentProps<'div'>;\n\nexport function CardHeader({ className, ...props }: CardHeaderProps) {\n return <div className={cx(styles.cardHeader, className)} {...props} />;\n}\n\nexport type CardTitleProps = ComponentProps<'div'>;\n\nexport function CardTitle({ className, ...props }: CardTitleProps) {\n return <div className={cx(styles.cardTitle, className)} {...props} />;\n}\n\nexport type CardDescriptionProps = ComponentProps<'div'>;\n\nexport function CardDescription({ className, ...props }: CardDescriptionProps) {\n return <div className={cx(styles.cardDescription, className)} {...props} />;\n}\n\n/** Positions in the header's second column, spanning both its rows (see CSS). */\nexport type CardActionProps = ComponentProps<'div'>;\n\nexport function CardAction({ className, ...props }: CardActionProps) {\n return <div className={cx(styles.cardAction, className)} {...props} />;\n}\n\nexport type CardContentProps = ComponentProps<'div'>;\n\nexport function CardContent({ className, ...props }: CardContentProps) {\n return <div className={cx(styles.cardContent, className)} {...props} />;\n}\n\nexport type CardFooterProps = ComponentProps<'div'>;\n\nexport function CardFooter({ className, ...props }: CardFooterProps) {\n return <div className={cx(styles.cardFooter, className)} {...props} />;\n}\n"],"names":["cardVariants","cva","styles","Card","className","size","props","jsx","CardHeader","cx","CardTitle","CardDescription","CardAction","CardContent","CardFooter"],"mappings":";;;;;;;;;;;;GAWMA,IAAeC,EAAIC,EAAO,MAAM;AAAA,EACpC,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC;AAIM,SAASC,EAAK,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,KAAoB;AAC7D,SAAO,gBAAAC,EAAC,OAAA,EAAI,WAAWP,EAAa,EAAE,MAAAK,GAAM,WAAAD,EAAA,CAAW,GAAI,GAAGE,GAAO;AACvE;AAIO,SAASE,EAAW,EAAE,WAAAJ,GAAW,GAAGE,KAA0B;AACnE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,YAAYE,CAAS,GAAI,GAAGE,GAAO;AACtE;AAIO,SAASI,EAAU,EAAE,WAAAN,GAAW,GAAGE,KAAyB;AACjE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,WAAWE,CAAS,GAAI,GAAGE,GAAO;AACrE;AAIO,SAASK,EAAgB,EAAE,WAAAP,GAAW,GAAGE,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,iBAAiBE,CAAS,GAAI,GAAGE,GAAO;AAC3E;AAKO,SAASM,EAAW,EAAE,WAAAR,GAAW,GAAGE,KAA0B;AACnE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,YAAYE,CAAS,GAAI,GAAGE,GAAO;AACtE;AAIO,SAASO,EAAY,EAAE,WAAAT,GAAW,GAAGE,KAA2B;AACrE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,aAAaE,CAAS,GAAI,GAAGE,GAAO;AACvE;AAIO,SAASQ,EAAW,EAAE,WAAAV,GAAW,GAAGE,KAA0B;AACnE,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGP,EAAO,YAAYE,CAAS,GAAI,GAAGE,GAAO;AACtE;"}
@@ -0,0 +1 @@
1
+ export * from './components/checkbox/public.js'
@@ -0,0 +1,46 @@
1
+ import { jsx as c, jsxs as t } from "react/jsx-runtime";
2
+ import { Checkbox as e } from "@base-ui/react/checkbox";
3
+ import { cx as n } from "class-variance-authority";
4
+ import './chunks/checkbox.Dd6YDr20.css';const s = "_checkbox_1jxc8_6", a = "_indicator_1jxc8_84", d = "_icon_1jxc8_90", h = "_iconIndeterminate_1jxc8_97", k = "_iconCheck_1jxc8_101", o = {
5
+ checkbox: s,
6
+ indicator: a,
7
+ icon: d,
8
+ iconIndeterminate: h,
9
+ iconCheck: k
10
+ };
11
+ function m({ className: i, ...r }) {
12
+ return /* @__PURE__ */ c(e.Root, { className: n(o.checkbox, i), ...r, children: /* @__PURE__ */ t(e.Indicator, { className: o.indicator, children: [
13
+ /* @__PURE__ */ c(
14
+ "svg",
15
+ {
16
+ className: n(o.icon, o.iconCheck),
17
+ viewBox: "0 0 24 24",
18
+ fill: "none",
19
+ stroke: "currentColor",
20
+ strokeWidth: "2",
21
+ strokeLinecap: "round",
22
+ strokeLinejoin: "round",
23
+ "aria-hidden": "true",
24
+ children: /* @__PURE__ */ c("path", { d: "M20 6 9 17l-5-5" })
25
+ }
26
+ ),
27
+ /* @__PURE__ */ c(
28
+ "svg",
29
+ {
30
+ className: n(o.icon, o.iconIndeterminate),
31
+ viewBox: "0 0 24 24",
32
+ fill: "none",
33
+ stroke: "currentColor",
34
+ strokeWidth: "2",
35
+ strokeLinecap: "round",
36
+ strokeLinejoin: "round",
37
+ "aria-hidden": "true",
38
+ children: /* @__PURE__ */ c("path", { d: "M5 12h14" })
39
+ }
40
+ )
41
+ ] }) });
42
+ }
43
+ export {
44
+ m as Checkbox
45
+ };
46
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sources":["../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';\nimport { cx } from 'class-variance-authority';\n\nimport styles from './checkbox.module.css';\n\nexport interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, 'className'> {\n className?: string;\n}\n\nexport function Checkbox({ className, ...props }: CheckboxProps) {\n return (\n <CheckboxPrimitive.Root className={cx(styles.checkbox, className)} {...props}>\n <CheckboxPrimitive.Indicator className={styles.indicator}>\n {/* Inline check/minus marks (lucide paths, ISC) — the kit carries no\n * icon dependency. CSS swaps them on the indicator's\n * data-indeterminate state. */}\n <svg\n className={cx(styles.icon, styles.iconCheck)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n <svg\n className={cx(styles.icon, styles.iconIndeterminate)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M5 12h14\" />\n </svg>\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n );\n}\n"],"names":["Checkbox","className","props","CheckboxPrimitive","cx","styles","jsxs","jsx"],"mappings":";;;;;;;;;;AASO,SAASA,EAAS,EAAE,WAAAC,GAAW,GAAGC,KAAwB;AAC/D,2BACGC,EAAkB,MAAlB,EAAuB,WAAWC,EAAGC,EAAO,UAAUJ,CAAS,GAAI,GAAGC,GACrE,UAAA,gBAAAI,EAACH,EAAkB,WAAlB,EAA4B,WAAWE,EAAO,WAI7C,UAAA;AAAA,IAAA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWH,EAAGC,EAAO,MAAMA,EAAO,SAAS;AAAA,QAC3C,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,QAAO;AAAA,QACP,aAAY;AAAA,QACZ,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,eAAY;AAAA,QAEZ,UAAA,gBAAAE,EAAC,QAAA,EAAK,GAAE,kBAAA,CAAkB;AAAA,MAAA;AAAA,IAAA;AAAA,IAE5B,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWH,EAAGC,EAAO,MAAMA,EAAO,iBAAiB;AAAA,QACnD,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,QAAO;AAAA,QACP,aAAY;AAAA,QACZ,eAAc;AAAA,QACd,gBAAe;AAAA,QACf,eAAY;AAAA,QAEZ,UAAA,gBAAAE,EAAC,QAAA,EAAK,GAAE,WAAA,CAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EACrB,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -0,0 +1 @@
1
+ ._badge_1qq28_8{--badge-accent: var(--muted-foreground);--badge-text: color-mix(in oklab, var(--muted-foreground) 80%, var(--foreground) 20%);box-sizing:border-box;display:inline-flex;height:1.5rem;width:fit-content;flex-shrink:0;align-items:center;justify-content:center;gap:var(--space-2);overflow:hidden;border:var(--border-width) solid transparent;border-radius:9999px;font-family:inherit;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking);white-space:nowrap;color:var(--badge-text);transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._badge_1qq28_8:before{content:"";flex-shrink:0;width:.375rem;height:.375rem;border-radius:50%;background-color:var(--badge-accent)}._badge_1qq28_8:focus-visible{outline:none;border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._badge_1qq28_8:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._badge_1qq28_8[aria-invalid=true]{border-color:var(--destructive);box-shadow:inset 0 0 0 var(--ring-inset) var(--destructive)}._badge_1qq28_8>svg{pointer-events:none;width:.75rem;height:.75rem}._badge_1qq28_8._variantSuccess_1qq28_120{--badge-accent: var(--success);--badge-text: color-mix(in oklab, var(--success) 80%, var(--foreground) 20%)}._badge_1qq28_8._variantWarning_1qq28_125{--badge-accent: var(--warning);--badge-text: color-mix(in oklab, var(--warning) 70%, var(--foreground) 30%)}._badge_1qq28_8._variantInfo_1qq28_130{--badge-accent: var(--info);--badge-text: color-mix(in oklab, var(--info) 80%, var(--foreground) 20%)}._badge_1qq28_8._variantDanger_1qq28_135{--badge-accent: var(--danger);--badge-text: color-mix(in oklab, var(--danger) 80%, var(--foreground) 20%)}._badge_1qq28_8._shapePill_1qq28_156{background-color:color-mix(in oklab,var(--foreground) 5%,transparent);padding:0 var(--space-2)}._badge_1qq28_8._shapeDot_1qq28_161{background-color:transparent;padding:0}a._badge_1qq28_8._shapePill_1qq28_156:hover{background-color:color-mix(in oklab,var(--foreground) 9%,transparent)}a._badge_1qq28_8._shapeDot_1qq28_161:hover{text-decoration:underline;text-underline-offset:4px}
@@ -0,0 +1 @@
1
+ ._button_1ts3q_6{box-sizing:border-box;--button-focus-ring: var(--ring);--button-focus-ring-inner: var(--button-focus-ring);position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:nowrap;border:var(--border-width) solid transparent;border-radius:var(--radius-md);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-label-weight);letter-spacing:var(--text-label-tracking);cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._button_1ts3q_6:focus-visible{outline:none;border-color:var(--button-focus-ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--button-focus-ring-inner)}@media(forced-colors:active){._button_1ts3q_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._button_1ts3q_6:disabled{pointer-events:none;opacity:.42}._button_1ts3q_6[data-loading]{pointer-events:none;opacity:.42}._variantDefault_1ts3q_119{background-color:var(--primary);color:var(--primary-foreground)}._variantDefault_1ts3q_119:hover{background-color:var(--primary-hover)}._variantDestructive_1ts3q_134{background-color:var(--destructive);color:var(--destructive-foreground)}._variantDestructive_1ts3q_134:hover{background-color:color-mix(in oklab,var(--destructive) 90%,var(--foreground) 10%)}._variantOutline_1ts3q_159{border-color:var(--border-strong);background-color:var(--surface-elevated);color:var(--foreground)}._variantOutline_1ts3q_159:hover{background-color:var(--accent);color:var(--accent-foreground)}._variantSecondary_1ts3q_170{background-color:var(--secondary);color:var(--secondary-foreground)}._variantSecondary_1ts3q_170:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}._variantGhost_1ts3q_186{background-color:transparent;color:var(--muted-foreground)}._variantGhost_1ts3q_186:hover{background-color:var(--accent);color:var(--accent-foreground)}._variantLink_1ts3q_206{background-color:transparent;color:var(--link-foreground);text-underline-offset:4px}._variantLink_1ts3q_206:hover{text-decoration:underline}._variantDefault_1ts3q_119{--button-focus-ring: var(--info);--button-focus-ring-inner: var(--foreground)}._variantDestructive_1ts3q_134{--button-focus-ring: var(--primary-hover);--button-focus-ring-inner: var(--destructive-foreground)}._variantGhost_1ts3q_186,._variantLink_1ts3q_206,._variantSecondary_1ts3q_170{--button-focus-ring: var(--primary-hover)}._sizeDefault_1ts3q_256{height:var(--control-height-md);padding:0 var(--space-4)}._sizeSm_1ts3q_261{height:var(--control-height-sm);padding:0 var(--space-3);border-radius:var(--radius-sm)}._sizeLg_1ts3q_267{height:var(--control-height-lg);padding:0 var(--space-6)}._button_1ts3q_6[data-icon-only]{aspect-ratio:1;padding:0}._icon_1ts3q_285{display:inline-flex}._icon_1ts3q_285 svg{width:var(--icon-size-sm);height:var(--icon-size-sm)}._sizeLg_1ts3q_267 ._icon_1ts3q_285 svg{width:var(--icon-size-md);height:var(--icon-size-md)}._button_1ts3q_6[data-loading] ._icon_1ts3q_285,._button_1ts3q_6[data-loading] ._label_1ts3q_307{opacity:0}._spinner_1ts3q_38{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:var(--icon-size-sm);height:var(--icon-size-sm);border:2px solid color-mix(in oklab,currentColor 25%,transparent);border-top-color:currentColor;border-radius:50%;animation:_button-spin_1ts3q_1 .8s linear infinite}@keyframes _button-spin_1ts3q_1{to{rotate:360deg}}@media(prefers-reduced-motion:reduce){._spinner_1ts3q_38{animation-duration:2.4s}}
@@ -0,0 +1 @@
1
+ ._card_fs5pd_6{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--radius-xl);background-color:var(--card);color:var(--card-foreground);font-size:var(--text-body-size);line-height:var(--text-body-line-height);--card-spacing: var(--space-6);--card-title-font-size: var(--text-heading-2-size);--card-title-line-height: var(--text-heading-2-line-height);gap:var(--card-spacing);padding:var(--card-spacing) 0;box-shadow:0 1px 2px color-mix(in oklab,var(--foreground) 5%,transparent),0 0 0 1px var(--popover-border)}._card_fs5pd_6:has(>img:first-child){padding-top:0}._card_fs5pd_6>img:first-child{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}._card_fs5pd_6>img:last-child{border-bottom-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}._card_fs5pd_6._sizeSm_fs5pd_27{--card-spacing: var(--space-4);--card-title-font-size: var(--text-body-size);--card-title-line-height: var(--text-body-line-height)}._cardHeader_fs5pd_85{display:grid;grid-auto-rows:min-content;align-items:start;gap:var(--space-1);border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}._card_fs5pd_6 ._cardHeader_fs5pd_85{padding:0 var(--card-spacing)}._cardHeader_fs5pd_85:has(>._cardAction_fs5pd_101){grid-template-columns:1fr auto}._cardHeader_fs5pd_85:has(>._cardDescription_fs5pd_105){grid-template-rows:auto auto}._cardTitle_fs5pd_109{font-weight:var(--text-heading-2-weight);letter-spacing:var(--text-heading-2-tracking)}._card_fs5pd_6 ._cardTitle_fs5pd_109{font-size:var(--card-title-font-size);line-height:var(--card-title-line-height)}._cardDescription_fs5pd_105{color:var(--muted-foreground);font-size:var(--text-body-size);line-height:var(--text-body-line-height)}._cardAction_fs5pd_101{grid-column-start:2;grid-row:span 2 / span 2;grid-row-start:1;align-self:start;justify-self:end}._card_fs5pd_6 ._cardContent_fs5pd_134{padding:0 var(--card-spacing)}._cardFooter_fs5pd_138{display:flex;align-items:center;border-bottom-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}._card_fs5pd_6 ._cardFooter_fs5pd_138{padding:0 var(--card-spacing)}
@@ -0,0 +1 @@
1
+ ._checkbox_1jxc8_6{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;border:var(--border-width) solid var(--input);border-radius:var(--radius-sm);background-color:var(--surface-elevated);outline:none;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}._checkbox_1jxc8_6:after{content:"";position:absolute;inset:calc(-1 * var(--space-2)) calc(-1 * var(--space-3))}._checkbox_1jxc8_6[data-checked]{border-color:var(--primary);background-color:var(--primary);color:var(--primary-foreground)}._checkbox_1jxc8_6:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._checkbox_1jxc8_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._checkbox_1jxc8_6[data-disabled]{cursor:not-allowed;opacity:.42}._checkbox_1jxc8_6[aria-invalid=true]{border-color:var(--destructive)}._checkbox_1jxc8_6[aria-invalid=true][data-checked]{border-color:var(--primary)}._indicator_1jxc8_84{display:grid;place-content:center;color:currentcolor}._icon_1jxc8_90{width:.875rem;height:.875rem}._iconIndeterminate_1jxc8_97,._indicator_1jxc8_84[data-indeterminate] ._iconCheck_1jxc8_101{display:none}._indicator_1jxc8_84[data-indeterminate] ._iconIndeterminate_1jxc8_97{display:block}
@@ -0,0 +1 @@
1
+ ._backdrop_u306m_6{position:fixed;top:0;right:0;bottom:0;left:0;isolation:isolate;z-index:50;background-color:var(--overlay);transition:opacity .1s ease}._backdrop_u306m_6[data-starting-style],._backdrop_u306m_6[data-ending-style]{opacity:0}._popup_u306m_22{box-sizing:border-box;position:fixed;top:50%;left:50%;isolation:isolate;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:calc(100% - var(--space-8));max-height:calc(100% - var(--space-8));overflow-y:auto;gap:var(--space-6);padding:var(--space-6);border:var(--border-width) solid var(--popover-border);border-radius:var(--radius-xl);background-color:var(--popover);color:var(--popover-foreground);font-size:var(--text-body-size);line-height:var(--text-body-line-height);outline:none;transform:translate(-50%,-50%);box-shadow:var(--popover-shadow);transition:opacity .1s ease,transform .1s ease}@media(prefers-reduced-motion:reduce){._popup_u306m_22{transition:opacity .1s ease}}@media(min-width:640px){._popup_u306m_22{max-width:28rem}}._popup_u306m_22[data-starting-style],._popup_u306m_22[data-ending-style]{opacity:0;transform:translate(-50%,-50%) scale(.95)}._closeButton_u306m_120{position:absolute;top:var(--space-4);right:var(--space-4)}._header_u306m_126{display:flex;flex-direction:column;gap:var(--space-2)}._footer_u306m_132{display:flex;flex-direction:column-reverse;gap:var(--space-2)}@media(min-width:640px){._footer_u306m_132{flex-direction:row;justify-content:flex-end}}._title_u306m_146{margin:0;font-size:var(--text-heading-2-size);line-height:var(--text-heading-2-line-height);font-weight:var(--text-heading-2-weight);letter-spacing:var(--text-heading-2-tracking)}._description_u306m_154{color:var(--muted-foreground);font-size:var(--text-body-size);line-height:var(--text-body-line-height)}._svgIcon_u306m_161{width:var(--icon-size-sm);height:var(--icon-size-sm);flex-shrink:0;pointer-events:none}