@catiarodrigues/goldfinch 1.0.0

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 (170) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +119 -0
  3. package/dist/alert-Iba34Kfr.js +72 -0
  4. package/dist/badge-dMKK_Gm2.js +147 -0
  5. package/dist/breadcrumbs-CHev-E0K.js +148 -0
  6. package/dist/button-DDhP5P56.js +40 -0
  7. package/dist/card-CVUWZOar.js +42 -0
  8. package/dist/checkbox-BubMDtGW.js +149 -0
  9. package/dist/collapsible-Bk5IP_KI.js +55 -0
  10. package/dist/components/alert.mjs +2 -0
  11. package/dist/components/badge.mjs +2 -0
  12. package/dist/components/breadcrumbs.mjs +2 -0
  13. package/dist/components/button.mjs +2 -0
  14. package/dist/components/card.mjs +2 -0
  15. package/dist/components/checkbox.mjs +2 -0
  16. package/dist/components/collapsible.mjs +2 -0
  17. package/dist/components/copy-to-clipboard.mjs +2 -0
  18. package/dist/components/dropdown.mjs +2 -0
  19. package/dist/components/empty-state.mjs +2 -0
  20. package/dist/components/field.mjs +2 -0
  21. package/dist/components/grid.mjs +2 -0
  22. package/dist/components/input-group.mjs +2 -0
  23. package/dist/components/input.mjs +4 -0
  24. package/dist/components/label.mjs +2 -0
  25. package/dist/components/link.mjs +58 -0
  26. package/dist/components/menubar.mjs +2 -0
  27. package/dist/components/modal.mjs +2 -0
  28. package/dist/components/page.mjs +2 -0
  29. package/dist/components/pagination.mjs +2 -0
  30. package/dist/components/popover.mjs +2 -0
  31. package/dist/components/progress.mjs +2 -0
  32. package/dist/components/radio.mjs +2 -0
  33. package/dist/components/select.mjs +2 -0
  34. package/dist/components/sensitive-input.mjs +2 -0
  35. package/dist/components/sidebar.mjs +2 -0
  36. package/dist/components/spinner.mjs +3 -0
  37. package/dist/components/table-of-contents.mjs +2 -0
  38. package/dist/components/table.mjs +2 -0
  39. package/dist/components/tabs.mjs +2 -0
  40. package/dist/components/text.mjs +2 -0
  41. package/dist/components/toast.mjs +2 -0
  42. package/dist/components/toggle.mjs +2 -0
  43. package/dist/components/toolbar.mjs +2 -0
  44. package/dist/components/tooltip.mjs +2 -0
  45. package/dist/components/top-navigation.mjs +2 -0
  46. package/dist/copy-to-clipboard-KXU8jo6k.js +139 -0
  47. package/dist/dropdown-A5hLlUjr.js +172 -0
  48. package/dist/empty-state-DuugAIN_.js +76 -0
  49. package/dist/field-CZb7PLTY.js +47 -0
  50. package/dist/grid-BFkQ5cmR.js +101 -0
  51. package/dist/index.mjs +47 -0
  52. package/dist/input-6C_-SelY.js +48 -0
  53. package/dist/input-Bo8XL6_f.js +43 -0
  54. package/dist/input-group-Dm4hKEhq.js +302 -0
  55. package/dist/input-variants-CZevxTd8.js +41 -0
  56. package/dist/label-7oCakbyx.js +43 -0
  57. package/dist/link-provider-H0J4aZPH.js +21 -0
  58. package/dist/menubar-DyXmaeKZ.js +59 -0
  59. package/dist/modal-BYQ8MRMy.js +132 -0
  60. package/dist/page-DOevDFqd.js +60 -0
  61. package/dist/pagination-C3f16UOC.js +239 -0
  62. package/dist/popover-3kcRy9HX.js +120 -0
  63. package/dist/portal-provider-CWX8j9O1.js +15 -0
  64. package/dist/progress-Ac96hU_C.js +26 -0
  65. package/dist/radio-C8rcmsbS.js +144 -0
  66. package/dist/resolve-variant-DWiDeQhX.js +7 -0
  67. package/dist/select-DaJRanrs.js +178 -0
  68. package/dist/sensitive-input-BEAOu1A6.js +181 -0
  69. package/dist/sidebar-CkZxFt33.js +703 -0
  70. package/dist/skeleton-line-Dh4TDbeq.js +32 -0
  71. package/dist/spinner-DKzSES7b.js +79 -0
  72. package/dist/src/components/alert/alert.d.ts +105 -0
  73. package/dist/src/components/alert/index.d.ts +1 -0
  74. package/dist/src/components/badge/badge.d.ts +204 -0
  75. package/dist/src/components/badge/index.d.ts +1 -0
  76. package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +94 -0
  77. package/dist/src/components/breadcrumbs/index.d.ts +1 -0
  78. package/dist/src/components/button/button.d.ts +37 -0
  79. package/dist/src/components/button/index.d.ts +2 -0
  80. package/dist/src/components/card/card.d.ts +31 -0
  81. package/dist/src/components/card/index.d.ts +1 -0
  82. package/dist/src/components/checkbox/checkbox.d.ts +196 -0
  83. package/dist/src/components/checkbox/index.d.ts +1 -0
  84. package/dist/src/components/collapsible/collapsible.d.ts +108 -0
  85. package/dist/src/components/collapsible/index.d.ts +1 -0
  86. package/dist/src/components/copy-to-clipboard/copy-to-clipboard.d.ts +86 -0
  87. package/dist/src/components/copy-to-clipboard/index.d.ts +1 -0
  88. package/dist/src/components/dropdown/dropdown.d.ts +115 -0
  89. package/dist/src/components/dropdown/index.d.ts +1 -0
  90. package/dist/src/components/empty-state/empty-state.d.ts +68 -0
  91. package/dist/src/components/empty-state/index.d.ts +1 -0
  92. package/dist/src/components/field/field.d.ts +88 -0
  93. package/dist/src/components/field/index.d.ts +1 -0
  94. package/dist/src/components/grid/grid.d.ts +134 -0
  95. package/dist/src/components/grid/index.d.ts +1 -0
  96. package/dist/src/components/input/index.d.ts +30 -0
  97. package/dist/src/components/input/input-area.d.ts +64 -0
  98. package/dist/src/components/input/input-variants.d.ts +58 -0
  99. package/dist/src/components/input/input.d.ts +67 -0
  100. package/dist/src/components/input-group/context.d.ts +95 -0
  101. package/dist/src/components/input-group/index.d.ts +1 -0
  102. package/dist/src/components/input-group/input-group-addon.d.ts +14 -0
  103. package/dist/src/components/input-group/input-group-button.d.ts +35 -0
  104. package/dist/src/components/input-group/input-group-input.d.ts +8 -0
  105. package/dist/src/components/input-group/input-group-suffix.d.ts +12 -0
  106. package/dist/src/components/input-group/input-group.d.ts +42 -0
  107. package/dist/src/components/label/index.d.ts +1 -0
  108. package/dist/src/components/label/label.d.ts +66 -0
  109. package/dist/src/components/link/index.d.ts +1 -0
  110. package/dist/src/components/link/link.d.ts +65 -0
  111. package/dist/src/components/menubar/index.d.ts +2 -0
  112. package/dist/src/components/menubar/menubar.d.ts +65 -0
  113. package/dist/src/components/menubar/use-menu-navigation.d.ts +7 -0
  114. package/dist/src/components/modal/index.d.ts +1 -0
  115. package/dist/src/components/modal/modal.d.ts +204 -0
  116. package/dist/src/components/page/index.d.ts +1 -0
  117. package/dist/src/components/page/page.d.ts +65 -0
  118. package/dist/src/components/pagination/index.d.ts +1 -0
  119. package/dist/src/components/pagination/pagination.d.ts +240 -0
  120. package/dist/src/components/popover/index.d.ts +2 -0
  121. package/dist/src/components/popover/popover.d.ts +177 -0
  122. package/dist/src/components/progress/index.d.ts +1 -0
  123. package/dist/src/components/progress/progress.d.ts +43 -0
  124. package/dist/src/components/radio/index.d.ts +1 -0
  125. package/dist/src/components/radio/radio.d.ts +276 -0
  126. package/dist/src/components/select/index.d.ts +1 -0
  127. package/dist/src/components/select/select.d.ts +283 -0
  128. package/dist/src/components/sensitive-input/index.d.ts +1 -0
  129. package/dist/src/components/sensitive-input/sensitive-input.d.ts +93 -0
  130. package/dist/src/components/sidebar/index.d.ts +1 -0
  131. package/dist/src/components/sidebar/sidebar.d.ts +579 -0
  132. package/dist/src/components/spinner/index.d.ts +2 -0
  133. package/dist/src/components/spinner/skeleton-line.d.ts +11 -0
  134. package/dist/src/components/spinner/spinner.d.ts +69 -0
  135. package/dist/src/components/table/index.d.ts +1 -0
  136. package/dist/src/components/table/table.d.ts +137 -0
  137. package/dist/src/components/table-of-contents/index.d.ts +1 -0
  138. package/dist/src/components/table-of-contents/table-of-contents.d.ts +71 -0
  139. package/dist/src/components/tabs/index.d.ts +2 -0
  140. package/dist/src/components/tabs/tabs.d.ts +115 -0
  141. package/dist/src/components/text/index.d.ts +1 -0
  142. package/dist/src/components/text/text.d.ts +213 -0
  143. package/dist/src/components/toast/index.d.ts +4 -0
  144. package/dist/src/components/toast/toast.d.ts +196 -0
  145. package/dist/src/components/toggle/index.d.ts +1 -0
  146. package/dist/src/components/toggle/toggle.d.ts +101 -0
  147. package/dist/src/components/toolbar/index.d.ts +1 -0
  148. package/dist/src/components/toolbar/toolbar.d.ts +49 -0
  149. package/dist/src/components/tooltip/index.d.ts +1 -0
  150. package/dist/src/components/tooltip/tooltip.d.ts +107 -0
  151. package/dist/src/components/top-navigation/index.d.ts +1 -0
  152. package/dist/src/components/top-navigation/top-navigation.d.ts +47 -0
  153. package/dist/src/index.d.ts +67 -0
  154. package/dist/src/utils/cn.d.ts +3 -0
  155. package/dist/src/utils/index.d.ts +4 -0
  156. package/dist/src/utils/link-provider.d.ts +11 -0
  157. package/dist/src/utils/portal-provider.d.ts +7 -0
  158. package/dist/src/utils/resolve-variant.d.ts +1 -0
  159. package/dist/styles/index.css +294 -0
  160. package/dist/table-CKmEd0O5.js +135 -0
  161. package/dist/table-of-contents-CuE1aDKE.js +91 -0
  162. package/dist/tabs-JX7xyFcA.js +101 -0
  163. package/dist/text-B0EvLge5.js +88 -0
  164. package/dist/toast-pSr7cFVU.js +274 -0
  165. package/dist/toggle-C72Skv4q.js +179 -0
  166. package/dist/toolbar-DtT4MUHB.js +109 -0
  167. package/dist/tooltip-QfSb4wnI.js +59 -0
  168. package/dist/top-navigation-DoTeFaXD.js +45 -0
  169. package/dist/utils.mjs +11 -0
  170. package/package.json +228 -0
@@ -0,0 +1,294 @@
1
+ @import "tailwindcss";
2
+
3
+ @theme {
4
+ /* Surface hierarchy */
5
+ --color-goldfinch-canvas: light-dark(#fafafa, #0d0d0d);
6
+ --color-goldfinch-elevated: light-dark(#f5f5f5, #1a1a1a);
7
+ --color-goldfinch-recessed: light-dark(#e5e5e5, #111111);
8
+ --color-goldfinch-base: light-dark(#ffffff, #1c1c1c);
9
+ --color-goldfinch-tint: light-dark(#f0f0f0, #2a2a2a);
10
+ --color-goldfinch-contrast: light-dark(#0a0a0a, #f5f5f5);
11
+ --color-goldfinch-overlay: light-dark(#fafafa, #2a2a2a);
12
+ --color-goldfinch-control: light-dark(#ffffff, #222222);
13
+ --color-goldfinch-interact: light-dark(#d4d4d4, #555555);
14
+ --color-goldfinch-fill: light-dark(#e5e5e5, #333333);
15
+ --color-goldfinch-fill-hover: light-dark(#d9d9d9, #444444);
16
+
17
+ /* Brand colors */
18
+ --color-goldfinch-brand: light-dark(#18181b, #f4f4f5);
19
+ --color-goldfinch-brand-hover: light-dark(#27272a, #ffffff);
20
+
21
+ /* Borders */
22
+ --color-goldfinch-line: light-dark(oklch(0% 0 0 / 0.1), oklch(100% 0 0 / 0.15));
23
+ --color-goldfinch-hairline: light-dark(#e5e5e5, #333333);
24
+
25
+ /* Shadows */
26
+ --color-goldfinch-shadow-edge: light-dark(oklch(0% 0 0 / 0.12), oklch(100% 0 0 / 0.1));
27
+ --color-goldfinch-shadow-drop: light-dark(oklch(0% 0 0 / 0.08), oklch(0% 0 0 / 0.3));
28
+ --color-goldfinch-tip-shadow: light-dark(#e5e5e5, transparent);
29
+ --color-goldfinch-tip-stroke: light-dark(transparent, #333333);
30
+
31
+ /* Focus ring */
32
+ --color-goldfinch-focus: light-dark(#000000, #ffffff);
33
+
34
+ /* Text colors */
35
+ --text-color-goldfinch-default: light-dark(#1a1a1a, #f0f0f0);
36
+ --text-color-goldfinch-inverse: light-dark(#ffffff, #1a1a1a);
37
+ --text-color-goldfinch-strong: light-dark(#000000, #ffffff);
38
+ --text-color-goldfinch-subtle: light-dark(#666666, #999999);
39
+ --text-color-goldfinch-inactive: light-dark(#bfbfbf, #555555);
40
+ --text-color-goldfinch-placeholder: light-dark(#999999, #666666);
41
+ --text-color-goldfinch-brand: light-dark(#18181b, #f4f4f5);
42
+ --text-color-goldfinch-link: light-dark(#1a1a1a, #cccccc);
43
+ --text-color-goldfinch-info: light-dark(#1e40af, #93c5fd);
44
+ --text-color-goldfinch-success: light-dark(#15803d, #86efac);
45
+ --text-color-goldfinch-warning: light-dark(#a16207, #fde68a);
46
+ --text-color-goldfinch-danger: light-dark(#b91c1c, #fca5a5);
47
+ --text-color-goldfinch-badge-inverted: light-dark(#ffffff, #000000);
48
+ --text-color-goldfinch-badge-neutral-subtle: light-dark(#333333, #cccccc);
49
+ --text-color-goldfinch-badge-teal-subtle: light-dark(#115e59, #ccfbf1);
50
+
51
+ /* Semantic feedback */
52
+ --color-goldfinch-info-tint: light-dark(#e0e0e0, #2a2a2a);
53
+ --color-goldfinch-info: light-dark(#555555, #aaaaaa);
54
+ --color-goldfinch-warning-tint: light-dark(#fef3cd, #5a4a00);
55
+ --color-goldfinch-warning: light-dark(#d4a017, #f0c040);
56
+ --color-goldfinch-danger-tint: light-dark(#fde8e8, #5c1a1a);
57
+ --color-goldfinch-danger: light-dark(#dc2626, #f87171);
58
+ --color-goldfinch-success-tint: light-dark(#d1fae5, #14532d);
59
+ --color-goldfinch-success: light-dark(#16a34a, #4ade80);
60
+
61
+ /* Banner colors */
62
+ --color-goldfinch-banner-info: light-dark(oklch(93% 0.01 260 / 0.7), oklch(30% 0.01 260 / 0.5));
63
+ --color-goldfinch-banner-warning: light-dark(#fef3cd, oklch(40% 0.05 85 / 0.5));
64
+
65
+ /* Badge colors */
66
+ --color-goldfinch-badge-red: light-dark(#dc2626, #ef4444);
67
+ --color-goldfinch-badge-green: light-dark(#16a34a, #22c55e);
68
+ --color-goldfinch-badge-orange: light-dark(#ea580c, #f97316);
69
+ --color-goldfinch-badge-purple: light-dark(#9333ea, #a855f7);
70
+ --color-goldfinch-badge-teal: light-dark(#0d9488, #14b8a6);
71
+ --color-goldfinch-badge-teal-subtle: light-dark(#ccfbf1, #134e4a);
72
+ --color-goldfinch-badge-blue: light-dark(#2563eb, #3b82f6);
73
+ --color-goldfinch-badge-neutral: light-dark(#6b7280, #9ca3af);
74
+ --color-goldfinch-badge-inverted: light-dark(#1a1a1a, #e5e5e5);
75
+
76
+ /* Disabled state */
77
+ --color-goldfinch-disabled: light-dark(#bfbfbf, #555555);
78
+ --color-goldfinch-binding: light-dark(#000000, #ffffff);
79
+ --color-goldfinch-component: light-dark(#000000, #ffffff);
80
+
81
+ /* Input placeholder - vanilla CSS */
82
+ --color-goldfinch-input-placeholder: light-dark(#999999, #666666);
83
+ }
84
+
85
+ @layer base {
86
+ :root {
87
+ --color-goldfinch-canvas: #fafafa;
88
+ --color-goldfinch-elevated: #f5f5f5;
89
+ --color-goldfinch-recessed: #e5e5e5;
90
+ --color-goldfinch-base: #ffffff;
91
+ --color-goldfinch-tint: #f0f0f0;
92
+ --color-goldfinch-contrast: #0a0a0a;
93
+ --color-goldfinch-overlay: #fafafa;
94
+ --color-goldfinch-control: #ffffff;
95
+ --color-goldfinch-interact: #d4d4d4;
96
+ --color-goldfinch-fill: #e5e5e5;
97
+ --color-goldfinch-fill-hover: #d9d9d9;
98
+ --color-goldfinch-brand: #18181b;
99
+ --color-goldfinch-brand-hover: #27272a;
100
+ --color-goldfinch-line: oklch(0% 0 0 / 0.1);
101
+ --color-goldfinch-hairline: #e5e5e5;
102
+ --color-goldfinch-shadow-edge: oklch(0% 0 0 / 0.12);
103
+ --color-goldfinch-shadow-drop: oklch(0% 0 0 / 0.08);
104
+ --color-goldfinch-tip-shadow: #e5e5e5;
105
+ --color-goldfinch-tip-stroke: transparent;
106
+ --color-goldfinch-focus: #000000;
107
+ --text-color-goldfinch-default: #1a1a1a;
108
+ --text-color-goldfinch-inverse: #ffffff;
109
+ --text-color-goldfinch-strong: #000000;
110
+ --text-color-goldfinch-subtle: #666666;
111
+ --text-color-goldfinch-inactive: #bfbfbf;
112
+ --text-color-goldfinch-placeholder: #999999;
113
+ --text-color-goldfinch-brand: #18181b;
114
+ --text-color-goldfinch-link: #1a1a1a;
115
+ --text-color-goldfinch-badge-inverted: #ffffff;
116
+ --text-color-goldfinch-badge-neutral-subtle: #333333;
117
+ --text-color-goldfinch-badge-teal-subtle: #115e59;
118
+ --text-color-goldfinch-info: #1e40af;
119
+ --text-color-goldfinch-success: #15803d;
120
+ --text-color-goldfinch-warning: #854d0e;
121
+ --text-color-goldfinch-danger: #b91c1c;
122
+ --color-goldfinch-badge-teal-subtle: #ccfbf1;
123
+ --color-goldfinch-info-tint: #e0e0e0;
124
+ --color-goldfinch-info: #555555;
125
+ --color-goldfinch-warning-tint: #fef3cd;
126
+ --color-goldfinch-warning: #d4a017;
127
+ --color-goldfinch-danger-tint: #fde8e8;
128
+ --color-goldfinch-danger: #dc2626;
129
+ --color-goldfinch-success-tint: #d1fae5;
130
+ --color-goldfinch-success: #16a34a;
131
+ --color-goldfinch-banner-info: oklch(93% 0.01 260 / 0.7);
132
+ --color-goldfinch-banner-warning: #fef3cd;
133
+ --color-goldfinch-badge-red: #dc2626;
134
+ --color-goldfinch-badge-green: #16a34a;
135
+ --color-goldfinch-badge-orange: #ea580c;
136
+ --color-goldfinch-badge-purple: #9333ea;
137
+ --color-goldfinch-badge-teal: #0d9488;
138
+ --color-goldfinch-badge-blue: #2563eb;
139
+ --color-goldfinch-badge-neutral: #6b7280;
140
+ --color-goldfinch-badge-inverted: #1a1a1a;
141
+ --color-goldfinch-disabled: #bfbfbf;
142
+ --color-goldfinch-binding: #000000;
143
+ --color-goldfinch-component: #000000;
144
+ --color-goldfinch-input-placeholder: #999999;
145
+ }
146
+
147
+ [data-mode="dark"] {
148
+ --color-goldfinch-canvas: #0d0d0d;
149
+ --color-goldfinch-elevated: #1a1a1a;
150
+ --color-goldfinch-recessed: #111111;
151
+ --color-goldfinch-base: #1c1c1c;
152
+ --color-goldfinch-tint: #2a2a2a;
153
+ --color-goldfinch-contrast: #f5f5f5;
154
+ --color-goldfinch-overlay: #2a2a2a;
155
+ --color-goldfinch-control: #222222;
156
+ --color-goldfinch-interact: #555555;
157
+ --color-goldfinch-fill: #333333;
158
+ --color-goldfinch-fill-hover: #444444;
159
+ --color-goldfinch-brand: #f4f4f5;
160
+ --color-goldfinch-brand-hover: #ffffff;
161
+ --color-goldfinch-line: oklch(100% 0 0 / 0.15);
162
+ --color-goldfinch-hairline: #333333;
163
+ --color-goldfinch-shadow-edge: oklch(100% 0 0 / 0.1);
164
+ --color-goldfinch-shadow-drop: oklch(0% 0 0 / 0.3);
165
+ --color-goldfinch-tip-shadow: transparent;
166
+ --color-goldfinch-tip-stroke: #333333;
167
+ --color-goldfinch-focus: #ffffff;
168
+ --text-color-goldfinch-default: #f0f0f0;
169
+ --text-color-goldfinch-inverse: #1a1a1a;
170
+ --text-color-goldfinch-strong: #ffffff;
171
+ --text-color-goldfinch-subtle: #999999;
172
+ --text-color-goldfinch-inactive: #555555;
173
+ --text-color-goldfinch-placeholder: #666666;
174
+ --text-color-goldfinch-brand: #f4f4f5;
175
+ --text-color-goldfinch-link: #cccccc;
176
+ --text-color-goldfinch-badge-inverted: #000000;
177
+ --text-color-goldfinch-badge-neutral-subtle: #cccccc;
178
+ --text-color-goldfinch-badge-teal-subtle: #ccfbf1;
179
+ --text-color-goldfinch-info: #93c5fd;
180
+ --text-color-goldfinch-success: #86efac;
181
+ --text-color-goldfinch-warning: #fde68a;
182
+ --text-color-goldfinch-danger: #fca5a5;
183
+ --color-goldfinch-badge-teal-subtle: #134e4a;
184
+ --color-goldfinch-info-tint: #2a2a2a;
185
+ --color-goldfinch-info: #aaaaaa;
186
+ --color-goldfinch-warning-tint: #5a4a00;
187
+ --color-goldfinch-warning: #f0c040;
188
+ --color-goldfinch-danger-tint: #5c1a1a;
189
+ --color-goldfinch-danger: #f87171;
190
+ --color-goldfinch-success-tint: #14532d;
191
+ --color-goldfinch-success: #4ade80;
192
+ --color-goldfinch-banner-info: oklch(30% 0.01 260 / 0.5);
193
+ --color-goldfinch-banner-warning: oklch(40% 0.05 85 / 0.5);
194
+ --color-goldfinch-badge-red: #ef4444;
195
+ --color-goldfinch-badge-green: #22c55e;
196
+ --color-goldfinch-badge-orange: #f97316;
197
+ --color-goldfinch-badge-purple: #a855f7;
198
+ --color-goldfinch-badge-teal: #14b8a6;
199
+ --color-goldfinch-badge-blue: #3b82f6;
200
+ --color-goldfinch-badge-neutral: #9ca3af;
201
+ --color-goldfinch-badge-inverted: #e5e5e5;
202
+ --color-goldfinch-disabled: #555555;
203
+ --color-goldfinch-binding: #ffffff;
204
+ --color-goldfinch-component: #ffffff;
205
+ --color-goldfinch-input-placeholder: #666666;
206
+ }
207
+ }
208
+
209
+ @layer utilities {
210
+ .goldfinch-input-placeholder::placeholder {
211
+ color: var(--color-goldfinch-input-placeholder);
212
+ }
213
+
214
+ .no-scrollbar::-webkit-scrollbar {
215
+ display: none;
216
+ }
217
+ .no-scrollbar {
218
+ -ms-overflow-style: none;
219
+ scrollbar-width: none;
220
+ }
221
+ .no-input-spinner {
222
+ appearance: textfield;
223
+ }
224
+ .no-input-spinner::-webkit-outer-spin-button,
225
+ .no-input-spinner::-webkit-inner-spin-button {
226
+ appearance: none;
227
+ }
228
+ }
229
+
230
+ /* Skeleton loading animation */
231
+ @keyframes skeleton {
232
+ 0% { background-position: 200% 0; }
233
+ 100% { background-position: -200% 0; }
234
+ }
235
+
236
+ .skeleton {
237
+ background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
238
+ background-size: 200% 100%;
239
+ animation: skeleton 1.5s ease-in-out infinite;
240
+ }
241
+
242
+ [data-mode="dark"] .skeleton {
243
+ background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
244
+ }
245
+
246
+ @keyframes shimmer {
247
+ 0% { transform: translateX(-100%); }
248
+ 100% { transform: translateX(100%); }
249
+ }
250
+
251
+ @layer base {
252
+ .skeleton-line {
253
+ position: relative;
254
+ overflow: hidden;
255
+ border-radius: 2px;
256
+ height: 0.5rem;
257
+ width: var(--skeleton-width, 100%);
258
+ background-color: #f3f4f6;
259
+ }
260
+ .skeleton-line::after {
261
+ position: absolute;
262
+ top: 0; right: 0; bottom: 0; left: 0;
263
+ animation: shimmer var(--shimmer-duration, 1.5s) var(--shimmer-delay, 0s) infinite ease-in-out;
264
+ content: "";
265
+ background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0) 100%);
266
+ }
267
+ [data-mode="dark"] .skeleton-line {
268
+ background-color: rgba(255,255,255,0.06);
269
+ }
270
+ [data-mode="dark"] .skeleton-line::after {
271
+ background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
272
+ }
273
+ }
274
+
275
+ /* Toast bump animation */
276
+ @keyframes toast-bump {
277
+ 0% { transform: scale(1); }
278
+ 20% { transform: scale(1.02); }
279
+ 100% { transform: scale(1); }
280
+ }
281
+
282
+ .animate-toast-bump {
283
+ animation: toast-bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
284
+ transform-origin: center;
285
+ }
286
+
287
+ @keyframes refresh {
288
+ from { transform: rotate(0deg); }
289
+ to { transform: rotate(360deg); }
290
+ }
291
+
292
+ .animate-refresh {
293
+ animation: refresh 1s linear infinite;
294
+ }
@@ -0,0 +1,135 @@
1
+ import { cn as e } from "./utils.mjs";
2
+ import { t } from "./resolve-variant-DWiDeQhX.js";
3
+ import { t as n } from "./checkbox-BubMDtGW.js";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { forwardRef as i } from "react";
6
+ //#region src/components/table/table.tsx
7
+ var a = {
8
+ layout: {
9
+ auto: {
10
+ classes: "",
11
+ description: "Auto table layout - columns resize based on content"
12
+ },
13
+ fixed: {
14
+ classes: "table-fixed",
15
+ description: "Fixed table layout - columns have equal width, controlled via colgroup"
16
+ }
17
+ },
18
+ variant: {
19
+ default: {
20
+ classes: "",
21
+ description: "Default row variant"
22
+ },
23
+ selected: {
24
+ classes: "bg-goldfinch-tint",
25
+ description: "Selected row variant"
26
+ }
27
+ },
28
+ sticky: {
29
+ left: {
30
+ classes: "sticky left-0",
31
+ description: "Pin column to the left edge of the scroll container"
32
+ },
33
+ right: {
34
+ classes: "sticky right-0",
35
+ description: "Pin column to the right edge of the scroll container"
36
+ }
37
+ }
38
+ }, o = (n, r) => {
39
+ let i = t(a.sticky, n, "left").classes, o = r === "head" ? "z-2" : "z-1", s = n === "right" ? "before:-left-6" : "before:-right-6", c = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
40
+ return r === "cell" ? e(i, o, "bg-goldfinch-base", c, s, n === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-goldfinch-base" : "before:bg-gradient-to-l before:from-transparent before:to-goldfinch-base") : e(i, o, "bg-goldfinch-base group-data-[compact]/header:bg-goldfinch-elevated", c, s, n === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-goldfinch-base group-data-[compact]/header:before:to-goldfinch-elevated" : "before:bg-gradient-to-l before:from-transparent before:to-goldfinch-base group-data-[compact]/header:before:to-goldfinch-elevated");
41
+ }, s = {
42
+ layout: "auto",
43
+ variant: "default"
44
+ }, c = i(({ layout: n = "auto", ...i }, o) => {
45
+ let c = e("isolate w-full", t(a.layout, n, s.layout).classes, "[&_td]:border-b [&_td]:border-goldfinch-fill [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-goldfinch-fill [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-goldfinch-base", "text-base text-left text-goldfinch-default", i.className);
46
+ return /* @__PURE__ */ r("table", {
47
+ ref: o,
48
+ ...i,
49
+ className: c
50
+ });
51
+ }), l = i(({ variant: t = "default", sticky: n, ...i }, a) => {
52
+ let o = t === "compact", s = e("group/header", o && "[&_th]:bg-goldfinch-elevated [&_th]:py-2 text-xs text-goldfinch-strong", n && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", i.className);
53
+ return /* @__PURE__ */ r("thead", {
54
+ ref: a,
55
+ ...i,
56
+ className: s,
57
+ ...o && { "data-compact": "" }
58
+ });
59
+ }), u = i(({ sticky: t, ...n }, i) => {
60
+ let a = e("group relative", t && o(t, "head"), n.className);
61
+ return /* @__PURE__ */ r("th", {
62
+ ref: i,
63
+ ...n,
64
+ className: a
65
+ });
66
+ }), d = i(({ variant: n = s.variant, ...i }, o) => {
67
+ let c = e(t(a.variant, n, s.variant).classes, i.className);
68
+ return /* @__PURE__ */ r("tr", {
69
+ ref: o,
70
+ ...i,
71
+ className: c
72
+ });
73
+ }), f = i((e, t) => /* @__PURE__ */ r("tbody", {
74
+ ref: t,
75
+ ...e
76
+ })), p = i(({ sticky: t, ...n }, i) => {
77
+ let a = e(t && o(t, "cell"), n.className);
78
+ return /* @__PURE__ */ r("td", {
79
+ ref: i,
80
+ ...n,
81
+ className: a
82
+ });
83
+ }), m = i((e, t) => /* @__PURE__ */ r("tfoot", {
84
+ ref: t,
85
+ ...e
86
+ })), h = i((t, n) => /* @__PURE__ */ r("button", {
87
+ ref: n,
88
+ ...t,
89
+ type: "button",
90
+ "aria-label": "Resize column",
91
+ className: e("invisible h-full group-hover:visible", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-goldfinch-base p-0", "focus-visible:ring-2 focus-visible:ring-goldfinch-brand"),
92
+ children: /* @__PURE__ */ r("span", { className: "h-5 w-[2px] rounded bg-goldfinch-hairline" })
93
+ })), g = i(({ checked: t, indeterminate: i, onCheckedChange: a, onValueChange: o, label: s, disabled: c, ...l }, u) => /* @__PURE__ */ r(p, {
94
+ ref: u,
95
+ ...l,
96
+ className: e("w-10 leading-none", l.className),
97
+ children: /* @__PURE__ */ r(n, {
98
+ checked: t,
99
+ indeterminate: i,
100
+ onCheckedChange: (e, t) => {
101
+ a?.(e, t), o?.(e);
102
+ },
103
+ "aria-label": s ?? "Select row",
104
+ disabled: c,
105
+ className: "relative before:absolute before:-inset-3 before:content-['']"
106
+ })
107
+ })), _ = i(({ checked: t, indeterminate: i, onCheckedChange: a, onValueChange: o, label: s, disabled: c, ...l }, d) => /* @__PURE__ */ r(u, {
108
+ ref: d,
109
+ ...l,
110
+ className: e("w-10 leading-none", l.className),
111
+ children: /* @__PURE__ */ r(n, {
112
+ checked: t,
113
+ indeterminate: i,
114
+ onCheckedChange: (e, t) => {
115
+ a?.(e, t), o?.(e);
116
+ },
117
+ "aria-label": s ?? "Select all rows",
118
+ disabled: c,
119
+ className: "relative before:absolute before:-inset-3 before:content-['']"
120
+ })
121
+ }));
122
+ c.displayName = "Table", f.displayName = "Table.Body", u.displayName = "Table.Head", d.displayName = "Table.Row", p.displayName = "Table.Cell", m.displayName = "Table.Footer", l.displayName = "Table.Header", h.displayName = "Table.ResizeHandle", g.displayName = "Table.CheckCell", _.displayName = "Table.CheckHead";
123
+ var v = Object.assign(c, {
124
+ Header: l,
125
+ Head: u,
126
+ Row: d,
127
+ Body: f,
128
+ Cell: p,
129
+ CheckCell: g,
130
+ CheckHead: _,
131
+ Footer: m,
132
+ ResizeHandle: h
133
+ });
134
+ //#endregion
135
+ export { a as n, v as r, s as t };
@@ -0,0 +1,91 @@
1
+ import { cn as e } from "./utils.mjs";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { cloneElement as r, forwardRef as i, isValidElement as a } from "react";
4
+ //#region src/components/table-of-contents/table-of-contents.tsx
5
+ var o = { state: {
6
+ default: {
7
+ classes: "text-goldfinch-subtle hover:border-goldfinch-line hover:text-goldfinch-default hover:font-medium",
8
+ description: "Inactive section link"
9
+ },
10
+ active: {
11
+ classes: "border-goldfinch-brand font-medium text-goldfinch-default",
12
+ description: "Currently visible / active section"
13
+ }
14
+ } }, s = { state: "default" }, c = "block w-full truncate border-l-2 border-transparent py-0.5 pl-4 text-sm text-left no-underline", l = i(({ className: e, "aria-label": n = "Table of contents", ...r }, i) => /* @__PURE__ */ t("nav", {
15
+ ref: i,
16
+ "aria-label": n,
17
+ className: e,
18
+ ...r
19
+ })), u = i(({ className: n, ...r }, i) => /* @__PURE__ */ t("p", {
20
+ ref: i,
21
+ className: e("mb-3 text-xs font-semibold tracking-wide text-goldfinch-subtle uppercase", n),
22
+ ...r
23
+ })), d = i(({ className: n, ...r }, i) => /* @__PURE__ */ t("ul", {
24
+ ref: i,
25
+ className: e("flex flex-col gap-2 border-l-2 border-goldfinch-hairline", n),
26
+ ...r
27
+ })), f = i(({ active: n = !1, className: i, children: s, render: l, ...u }, d) => {
28
+ let f = e(c, n ? o.state.active.classes : o.state.default.classes, i), p = {
29
+ ref: d,
30
+ "aria-current": n ? "true" : void 0,
31
+ "data-goldfinch-component": "TableOfContents",
32
+ "data-goldfinch-part": "item",
33
+ className: f,
34
+ children: /* @__PURE__ */ t("span", {
35
+ className: "block min-w-0 leading-5",
36
+ children: s
37
+ }),
38
+ ...u
39
+ };
40
+ return l && a(l) ? /* @__PURE__ */ t("li", {
41
+ className: "-ml-0.5",
42
+ children: r(l, p)
43
+ }) : /* @__PURE__ */ t("li", {
44
+ className: "-ml-0.5",
45
+ children: /* @__PURE__ */ t("a", { ...p })
46
+ });
47
+ }), p = "flex flex-col gap-2 border-l-2 border-goldfinch-hairline [&>li>a]:pl-7 [&>li>button]:pl-7", m = i(({ label: r, href: i, active: a = !1, className: s, children: l, ...u }, d) => {
48
+ if (i) {
49
+ let f = a ? o.state.active.classes : o.state.default.classes;
50
+ return /* @__PURE__ */ n("li", {
51
+ ref: d,
52
+ className: e("-ml-0.5 flex flex-col gap-2", s),
53
+ ...u,
54
+ children: [/* @__PURE__ */ t("a", {
55
+ href: i,
56
+ "aria-current": a ? "true" : void 0,
57
+ "data-goldfinch-component": "TableOfContents",
58
+ "data-goldfinch-part": "group-link",
59
+ className: e(c, f),
60
+ children: /* @__PURE__ */ t("span", {
61
+ className: "block min-w-0 leading-5",
62
+ children: r
63
+ })
64
+ }), /* @__PURE__ */ t("ul", {
65
+ className: e(p),
66
+ children: l
67
+ })]
68
+ });
69
+ }
70
+ return /* @__PURE__ */ n("li", {
71
+ ref: d,
72
+ className: e("-ml-0.5 flex flex-col gap-2", s),
73
+ ...u,
74
+ children: [/* @__PURE__ */ t("p", {
75
+ className: "py-0.5 pl-4 text-sm leading-5 font-medium text-goldfinch-subtle",
76
+ children: r
77
+ }), /* @__PURE__ */ t("ul", {
78
+ className: e(p),
79
+ children: l
80
+ })]
81
+ });
82
+ });
83
+ l.displayName = "TableOfContents", u.displayName = "TableOfContents.Title", d.displayName = "TableOfContents.List", f.displayName = "TableOfContents.Item", m.displayName = "TableOfContents.Group";
84
+ var h = Object.assign(l, {
85
+ Title: u,
86
+ List: d,
87
+ Item: f,
88
+ Group: m
89
+ });
90
+ //#endregion
91
+ export { o as n, h as r, s as t };
@@ -0,0 +1,101 @@
1
+ import { cn as e } from "./utils.mjs";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { useEffect as r, useRef as i, useState as a } from "react";
4
+ import { Tabs as o } from "@base-ui/react/tabs";
5
+ //#region src/components/tabs/tabs.tsx
6
+ var s = {
7
+ variant: "segmented",
8
+ size: "base"
9
+ };
10
+ function c({ tabs: r, value: i, selectedValue: a, onValueChange: c, activateOnFocus: d, className: f, listClassName: p, indicatorClassName: m, variant: h = s.variant, size: g = s.size }) {
11
+ let _ = r ?? [];
12
+ if (_.length === 0) return null;
13
+ let v = _[0]?.value, y = i !== void 0, b = {
14
+ value: y ? i : void 0,
15
+ defaultValue: y ? void 0 : a ?? v
16
+ }, x = h === "segmented", S = h === "underline", C = g === "sm", { ref: w, isOverflowing: T } = u(x), E = l(w, T);
17
+ return /* @__PURE__ */ n(o.Root, {
18
+ ...b,
19
+ className: e("relative isolate min-w-0 font-medium", x && (C ? "rounded-md" : "rounded-lg") + " ring ring-goldfinch-hairline/70", f),
20
+ onValueChange: (e) => {
21
+ c?.(String(e));
22
+ },
23
+ children: [x && /* @__PURE__ */ t("div", { className: e("absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-goldfinch-recessed", C ? "h-6.5" : "h-9") }), /* @__PURE__ */ n(o.List, {
24
+ ref: w,
25
+ activateOnFocus: d,
26
+ "data-overflowing": T ? "" : void 0,
27
+ ...E(),
28
+ className: e("relative flex min-w-0 shrink items-stretch", x && "goldfinch-tabs-list overflow-x-auto rounded-lg bg-goldfinch-recessed px-0.5 [--scroll-fade-width:3rem] scroll-px-(--scroll-fade-width)", x && (C ? "h-6.5 rounded-md" : "h-9"), T && "cursor-grab active:cursor-grabbing", S && "gap-4 border-b border-goldfinch-hairline pb-2", S && (C ? "h-6.5" : "h-7.5"), p),
29
+ children: [_.map((n) => /* @__PURE__ */ t(o.Tab, {
30
+ "data-goldfinch-component": "Tabs",
31
+ "data-goldfinch-part": "tab",
32
+ value: n.value,
33
+ render: n.render,
34
+ onClick: (e) => {
35
+ e.currentTarget.scrollIntoView({
36
+ behavior: "smooth",
37
+ block: "nearest",
38
+ inline: "nearest"
39
+ });
40
+ },
41
+ className: e("relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus:outline-none focus:ring-goldfinch-focus/50 focus-visible:ring-2 focus-visible:ring-goldfinch-brand", T ? "cursor-grab active:cursor-grabbing" : "cursor-pointer", C ? "text-xs" : "text-base", x && "my-0.5 text-goldfinch-subtle hover:text-goldfinch-default aria-selected:text-goldfinch-default focus-visible:ring-inset", x && (C ? "px-2 rounded-sm" : "px-2.5 rounded-md"), S && "text-goldfinch-subtle hover:bg-goldfinch-tint hover:text-goldfinch-default aria-selected:hover:bg-goldfinch-tint aria-selected:font-medium aria-selected:text-goldfinch-default", S && (C ? "px-1.5 py-2.5" : "px-2 py-3"), n.className),
42
+ children: n.label
43
+ }, n.value)), /* @__PURE__ */ t(o.Indicator, { render: (n) => /* @__PURE__ */ t("div", {
44
+ ...n,
45
+ className: e("absolute z-1 left-0", "w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200", "data-[rendered=false]:scale-90 data-[rendered=false]:opacity-0", x && e("top-(--active-tab-top) h-(--active-tab-height) bg-goldfinch-base shadow-sm ring ring-goldfinch-line", C ? "rounded" : "rounded-md"), S && "bottom-0 h-0.5 bg-goldfinch-brand", m)
46
+ }) })]
47
+ })]
48
+ });
49
+ }
50
+ function l(e, t) {
51
+ let n = i(null), r = i(!1);
52
+ return () => ({
53
+ onPointerDownCapture: (i) => {
54
+ let a = e.current;
55
+ !a || !t || i.pointerType !== "mouse" || i.button !== 0 || (n.current = {
56
+ pointerId: i.pointerId,
57
+ startX: i.clientX,
58
+ scrollLeft: a.scrollLeft,
59
+ dragging: !1
60
+ }, r.current = !1);
61
+ },
62
+ onPointerMoveCapture: (i) => {
63
+ let a = e.current, o = n.current;
64
+ if (!a || !t || !o || o.pointerId !== i.pointerId) return;
65
+ let s = i.clientX - o.startX;
66
+ if (!o.dragging) {
67
+ if (Math.abs(s) <= 3) return;
68
+ o.dragging = !0, r.current = !0, a.setPointerCapture(i.pointerId);
69
+ }
70
+ i.preventDefault(), a.scrollLeft = o.scrollLeft - s;
71
+ },
72
+ onPointerUpCapture: (t) => {
73
+ let i = e.current, a = n.current;
74
+ !i || !a || a.pointerId !== t.pointerId || (n.current = null, i.hasPointerCapture(t.pointerId) && i.releasePointerCapture(t.pointerId), r.current && window.setTimeout(() => {
75
+ r.current = !1;
76
+ }, 0));
77
+ },
78
+ onPointerCancelCapture: (t) => {
79
+ let r = e.current, i = n.current;
80
+ !r || !i || i.pointerId !== t.pointerId || (n.current = null, r.hasPointerCapture(t.pointerId) && r.releasePointerCapture(t.pointerId));
81
+ },
82
+ onClickCapture: (e) => {
83
+ r.current &&= (e.preventDefault(), e.stopPropagation(), !1);
84
+ }
85
+ });
86
+ }
87
+ function u(e) {
88
+ let t = i(null), [n, o] = a(!1);
89
+ return r(() => {
90
+ if (!e) return;
91
+ let n = t.current;
92
+ if (!n) return;
93
+ let r = () => o(n.scrollWidth > n.clientWidth), i = new ResizeObserver(r);
94
+ return i.observe(n), r(), () => i.disconnect();
95
+ }, [e]), {
96
+ ref: t,
97
+ isOverflowing: n
98
+ };
99
+ }
100
+ //#endregion
101
+ export { c as t };