@joniguerini/lume 0.0.0-stage → 1.9.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 (226) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +62 -2
  3. package/base.css +165 -0
  4. package/bin/lumeui.mjs +163 -0
  5. package/components/alert.css +156 -0
  6. package/components/banner.css +98 -0
  7. package/components/button.css +291 -0
  8. package/components/calendar.css +532 -0
  9. package/components/carousel.css +175 -0
  10. package/components/chart.css +813 -0
  11. package/components/chat.css +670 -0
  12. package/components/checkbox.css +212 -0
  13. package/components/chip.css +224 -0
  14. package/components/code.css +36 -0
  15. package/components/color-picker.css +192 -0
  16. package/components/command.css +148 -0
  17. package/components/content.css +211 -0
  18. package/components/editor.css +174 -0
  19. package/components/feedback.css +320 -0
  20. package/components/filters.css +103 -0
  21. package/components/form.css +455 -0
  22. package/components/image-viewer.css +237 -0
  23. package/components/layers.css +138 -0
  24. package/components/link.css +87 -0
  25. package/components/loading.css +260 -0
  26. package/components/menu.css +180 -0
  27. package/components/modal.css +209 -0
  28. package/components/navigation.css +507 -0
  29. package/components/notifications.css +186 -0
  30. package/components/number-field.css +52 -0
  31. package/components/otp.css +119 -0
  32. package/components/panel.css +208 -0
  33. package/components/picker.css +207 -0
  34. package/components/rating.css +143 -0
  35. package/components/resizable.css +173 -0
  36. package/components/scrollbar.css +110 -0
  37. package/components/select.css +477 -0
  38. package/components/shell.css +837 -0
  39. package/components/slider.css +189 -0
  40. package/components/sortable.css +287 -0
  41. package/components/surfaces.css +182 -0
  42. package/components/switch.css +115 -0
  43. package/components/table.css +228 -0
  44. package/components/tabs.css +190 -0
  45. package/components/tags.css +83 -0
  46. package/components/toast.css +164 -0
  47. package/components/toolbar.css +80 -0
  48. package/components/upload.css +181 -0
  49. package/ds.css +48 -0
  50. package/fonts/Geist-LICENSE.txt +92 -0
  51. package/fonts/Geist-Variable.woff2 +0 -0
  52. package/fonts/GeistSerif-Regular.woff2 +0 -0
  53. package/fonts/JetBrainsMono-LICENSE.txt +93 -0
  54. package/fonts/JetBrainsMono-Variable.woff2 +0 -0
  55. package/fonts.css +29 -0
  56. package/icons/icons.d.ts +5 -0
  57. package/icons/icons.js +266 -0
  58. package/js/back-to-top.d.ts +2 -0
  59. package/js/back-to-top.js +62 -0
  60. package/js/banner.js +87 -0
  61. package/js/calendar.d.ts +3 -0
  62. package/js/calendar.js +472 -0
  63. package/js/carousel.d.ts +2 -0
  64. package/js/carousel.js +258 -0
  65. package/js/charts/bar.js +361 -0
  66. package/js/charts/core.js +604 -0
  67. package/js/charts/donut.js +206 -0
  68. package/js/charts/figures.js +97 -0
  69. package/js/charts/heatmap.js +410 -0
  70. package/js/charts/line.js +268 -0
  71. package/js/charts/scatter.js +211 -0
  72. package/js/charts.d.ts +12 -0
  73. package/js/charts.js +27 -0
  74. package/js/code-block.d.ts +3 -0
  75. package/js/code-block.js +32 -0
  76. package/js/color-picker.d.ts +4 -0
  77. package/js/color-picker.js +448 -0
  78. package/js/command-palette.js +233 -0
  79. package/js/composer.js +573 -0
  80. package/js/context-menu.d.ts +2 -0
  81. package/js/context-menu.js +154 -0
  82. package/js/date-picker.d.ts +2 -0
  83. package/js/date-picker.js +430 -0
  84. package/js/drawer.js +48 -0
  85. package/js/editor.d.ts +5 -0
  86. package/js/editor.js +615 -0
  87. package/js/field-support.js +77 -0
  88. package/js/file-upload.d.ts +2 -0
  89. package/js/file-upload.js +230 -0
  90. package/js/filters.js +266 -0
  91. package/js/form.d.ts +2 -0
  92. package/js/form.js +409 -0
  93. package/js/i18n.d.ts +14 -0
  94. package/js/i18n.js +83 -0
  95. package/js/image-viewer.d.ts +4 -0
  96. package/js/image-viewer.js +275 -0
  97. package/js/menu.d.ts +4 -0
  98. package/js/menu.js +237 -0
  99. package/js/messages.js +908 -0
  100. package/js/modal.d.ts +7 -0
  101. package/js/modal.js +183 -0
  102. package/js/notifications.d.ts +4 -0
  103. package/js/notifications.js +204 -0
  104. package/js/number-field.d.ts +2 -0
  105. package/js/number-field.js +175 -0
  106. package/js/otp-field.d.ts +2 -0
  107. package/js/otp-field.js +107 -0
  108. package/js/pagination.d.ts +3 -0
  109. package/js/pagination.js +143 -0
  110. package/js/popover.d.ts +2 -0
  111. package/js/popover.js +155 -0
  112. package/js/progress-ring.js +48 -0
  113. package/js/rating.d.ts +3 -0
  114. package/js/rating.js +130 -0
  115. package/js/resizable.d.ts +2 -0
  116. package/js/resizable.js +311 -0
  117. package/js/scrollbar.d.ts +2 -0
  118. package/js/scrollbar.js +273 -0
  119. package/js/segmented.js +60 -0
  120. package/js/select.d.ts +3 -0
  121. package/js/select.js +784 -0
  122. package/js/shell.d.ts +6 -0
  123. package/js/shell.js +373 -0
  124. package/js/slider.d.ts +2 -0
  125. package/js/slider.js +89 -0
  126. package/js/sortable.d.ts +5 -0
  127. package/js/sortable.js +463 -0
  128. package/js/stepper.d.ts +2 -0
  129. package/js/stepper.js +72 -0
  130. package/js/tabs.js +99 -0
  131. package/js/tag-field.d.ts +2 -0
  132. package/js/tag-field.js +177 -0
  133. package/js/theme.d.ts +9 -0
  134. package/js/theme.js +114 -0
  135. package/js/time-picker.d.ts +2 -0
  136. package/js/time-picker.js +279 -0
  137. package/js/toast.d.ts +17 -0
  138. package/js/toast.js +171 -0
  139. package/js/toolbar.d.ts +2 -0
  140. package/js/toolbar.js +107 -0
  141. package/js/tooltip.d.ts +2 -0
  142. package/js/tooltip.js +208 -0
  143. package/js/tree.d.ts +2 -0
  144. package/js/tree.js +168 -0
  145. package/lume.css +11574 -0
  146. package/lume.d.ts +104 -0
  147. package/lume.js +67 -0
  148. package/package.json +66 -4
  149. package/react/Alert.d.ts +24 -0
  150. package/react/Alert.js +21 -0
  151. package/react/AppShell.d.ts +67 -0
  152. package/react/AppShell.js +94 -0
  153. package/react/Avatar.d.ts +39 -0
  154. package/react/Avatar.js +40 -0
  155. package/react/Badge.d.ts +17 -0
  156. package/react/Badge.js +10 -0
  157. package/react/Button.d.ts +32 -0
  158. package/react/Button.js +17 -0
  159. package/react/Calendar.d.ts +48 -0
  160. package/react/Calendar.js +67 -0
  161. package/react/Carousel.d.ts +30 -0
  162. package/react/Carousel.js +38 -0
  163. package/react/Charts.d.ts +186 -0
  164. package/react/Charts.js +58 -0
  165. package/react/Chip.d.ts +34 -0
  166. package/react/Chip.js +26 -0
  167. package/react/Choice.d.ts +72 -0
  168. package/react/Choice.js +51 -0
  169. package/react/ColorPicker.d.ts +43 -0
  170. package/react/ColorPicker.js +73 -0
  171. package/react/Content.d.ts +58 -0
  172. package/react/Content.js +42 -0
  173. package/react/Controls.d.ts +97 -0
  174. package/react/Controls.js +118 -0
  175. package/react/Editor.d.ts +28 -0
  176. package/react/Editor.js +57 -0
  177. package/react/Field.d.ts +90 -0
  178. package/react/Field.js +65 -0
  179. package/react/Form.d.ts +36 -0
  180. package/react/Form.js +45 -0
  181. package/react/Icon.d.ts +13 -0
  182. package/react/Icon.js +8 -0
  183. package/react/IconButton.d.ts +19 -0
  184. package/react/IconButton.js +12 -0
  185. package/react/ImageViewer.d.ts +20 -0
  186. package/react/ImageViewer.js +22 -0
  187. package/react/InlineAction.d.ts +15 -0
  188. package/react/InlineAction.js +12 -0
  189. package/react/Layers.d.ts +118 -0
  190. package/react/Layers.js +115 -0
  191. package/react/Link.d.ts +32 -0
  192. package/react/Link.js +26 -0
  193. package/react/Loading.d.ts +67 -0
  194. package/react/Loading.js +49 -0
  195. package/react/Navigation.d.ts +181 -0
  196. package/react/Navigation.js +197 -0
  197. package/react/Notices.d.ts +43 -0
  198. package/react/Notices.js +89 -0
  199. package/react/Panel.d.ts +57 -0
  200. package/react/Panel.js +33 -0
  201. package/react/Pickers.d.ts +83 -0
  202. package/react/Pickers.js +70 -0
  203. package/react/Rating.d.ts +39 -0
  204. package/react/Rating.js +41 -0
  205. package/react/Resizable.d.ts +44 -0
  206. package/react/Resizable.js +30 -0
  207. package/react/Select.d.ts +53 -0
  208. package/react/Select.js +79 -0
  209. package/react/Sortable.d.ts +52 -0
  210. package/react/Sortable.js +113 -0
  211. package/react/Table.d.ts +60 -0
  212. package/react/Table.js +34 -0
  213. package/react/Toolbar.d.ts +45 -0
  214. package/react/Toolbar.js +45 -0
  215. package/react/cx.d.ts +2 -0
  216. package/react/cx.js +5 -0
  217. package/react/icon-names.d.ts +1 -0
  218. package/react/icon-names.js +2 -0
  219. package/react/index.d.ts +42 -0
  220. package/react/index.js +52 -0
  221. package/react/useController.d.ts +8 -0
  222. package/react/useController.js +16 -0
  223. package/react/useLocale.d.ts +5 -0
  224. package/react/useLocale.js +15 -0
  225. package/tokens.css +739 -0
  226. package/tokens.js +4911 -0
@@ -0,0 +1,291 @@
1
+ /*
2
+ * Botões — planos, sem brilho.
3
+ * .ds-btn variantes: primary, secondary, ghost, subtle, danger · tamanhos: sm, lg · forma: pill, block
4
+ * .ds-icon-btn só ícone; sem fundo por padrão · variantes: outline, subtle, muted · tamanhos: sm, lg · forma: round
5
+ * .ds-inline-action ação mínima dentro do texto ("Na cena +")
6
+ */
7
+
8
+ .ds-btn {
9
+ --_h: var(--ds-size-control-md);
10
+ --_px: var(--ds-space-200);
11
+ --_radius: var(--ds-radius-md);
12
+ --_bg: transparent;
13
+ --_fg: var(--ds-color-fg-default);
14
+ --_border: transparent;
15
+
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ gap: var(--ds-space-100);
20
+ height: var(--_h);
21
+ padding-inline: var(--_px);
22
+ border: 1px solid var(--_border);
23
+ border-radius: var(--_radius);
24
+ background-color: var(--_bg);
25
+ color: var(--_fg);
26
+ font: var(--ds-text-label-md);
27
+ letter-spacing: var(--ds-text-label-md-tracking);
28
+ white-space: nowrap;
29
+ text-decoration: none;
30
+ user-select: none;
31
+ -webkit-tap-highlight-color: transparent;
32
+ transition:
33
+ background-color var(--ds-duration-fast) var(--ds-easing-standard),
34
+ border-color var(--ds-duration-fast) var(--ds-easing-standard),
35
+ color var(--ds-duration-fast) var(--ds-easing-standard);
36
+ }
37
+
38
+ .ds-btn:hover,
39
+ .ds-btn[data-state="hover"] {
40
+ color: var(--_fg);
41
+ }
42
+
43
+ .ds-btn:disabled,
44
+ .ds-btn[aria-disabled="true"] {
45
+ opacity: var(--ds-opacity-disabled);
46
+ pointer-events: none;
47
+ }
48
+
49
+ .ds-btn > .ds-icon {
50
+ margin-inline: -2px;
51
+ }
52
+
53
+ /* Estados forçados (documentação e testes visuais): data-state="hover|pressed|focus" */
54
+ .ds-btn[data-state="focus"],
55
+ .ds-icon-btn[data-state="focus"] {
56
+ outline: var(--ds-focus-ring-width) solid var(--ds-color-border-focus);
57
+ outline-offset: var(--ds-focus-ring-offset);
58
+ }
59
+
60
+ /* Variantes */
61
+ .ds-btn--primary {
62
+ --_bg: var(--ds-color-brand-solid);
63
+ --_fg: var(--ds-color-brand-on-solid);
64
+ }
65
+
66
+ .ds-btn--primary:hover,
67
+ .ds-btn--primary[data-state="hover"] {
68
+ --_bg: var(--ds-color-brand-solid-hover);
69
+ }
70
+
71
+ .ds-btn--primary:active,
72
+ .ds-btn--primary[data-state="pressed"] {
73
+ --_bg: var(--ds-color-brand-solid-pressed);
74
+ }
75
+
76
+ .ds-btn--secondary {
77
+ --_border: var(--ds-color-border-control);
78
+ }
79
+
80
+ .ds-btn--secondary:hover,
81
+ .ds-btn--secondary[data-state="hover"] {
82
+ --_bg: var(--ds-color-bg-hover);
83
+ --_border: var(--ds-color-border-strong);
84
+ }
85
+
86
+ .ds-btn--ghost:hover,
87
+ .ds-btn--ghost[data-state="hover"] {
88
+ --_bg: var(--ds-color-bg-hover);
89
+ }
90
+
91
+ .ds-btn--ghost:active,
92
+ .ds-btn--ghost[data-state="pressed"],
93
+ .ds-btn--secondary:active,
94
+ .ds-btn--secondary[data-state="pressed"] {
95
+ --_bg: var(--ds-color-bg-pressed);
96
+ }
97
+
98
+ .ds-btn--subtle {
99
+ --_bg: var(--ds-color-bg-muted);
100
+ }
101
+
102
+ .ds-btn--subtle:hover,
103
+ .ds-btn--subtle[data-state="hover"] {
104
+ --_bg: color-mix(in srgb, var(--ds-color-bg-muted), var(--ds-color-fg-default) 6%);
105
+ }
106
+
107
+ .ds-btn--danger {
108
+ --_bg: var(--ds-color-danger-solid);
109
+ --_fg: var(--ds-color-danger-on-solid);
110
+ }
111
+
112
+ .ds-btn--danger:hover,
113
+ .ds-btn--danger[data-state="hover"] {
114
+ --_bg: var(--ds-color-danger-solid-hover);
115
+ }
116
+
117
+ /* Tamanhos */
118
+ .ds-btn--sm {
119
+ --_h: var(--ds-size-control-sm);
120
+ --_px: var(--ds-space-150);
121
+ --_radius: var(--ds-radius-sm);
122
+ gap: var(--ds-space-075);
123
+ font: var(--ds-text-label-sm);
124
+ letter-spacing: var(--ds-text-label-sm-tracking);
125
+ }
126
+
127
+ .ds-btn--lg {
128
+ --_h: var(--ds-size-control-lg);
129
+ --_px: var(--ds-space-250);
130
+ font: var(--ds-text-label-lg);
131
+ letter-spacing: var(--ds-text-label-lg-tracking);
132
+ }
133
+
134
+ /* Formas */
135
+ .ds-btn--pill {
136
+ --_radius: var(--ds-radius-full);
137
+ }
138
+
139
+ .ds-btn--block {
140
+ width: 100%;
141
+ }
142
+
143
+ /* ───────── Botão de ícone ───────── */
144
+
145
+ .ds-icon-btn {
146
+ --_size: var(--ds-size-control-compact);
147
+ flex: none;
148
+ display: inline-grid;
149
+ place-items: center;
150
+ width: var(--_size);
151
+ height: var(--_size);
152
+ border: 1px solid transparent;
153
+ border-radius: var(--ds-radius-sm);
154
+ background-color: transparent;
155
+ color: var(--ds-color-fg-default);
156
+ -webkit-tap-highlight-color: transparent;
157
+ transition:
158
+ background-color var(--ds-duration-fast) var(--ds-easing-standard),
159
+ border-color var(--ds-duration-fast) var(--ds-easing-standard),
160
+ color var(--ds-duration-fast) var(--ds-easing-standard);
161
+ }
162
+
163
+ .ds-icon-btn:hover,
164
+ .ds-icon-btn[data-state="hover"] {
165
+ background-color: var(--ds-color-bg-hover);
166
+ color: var(--ds-color-fg-default);
167
+ }
168
+
169
+ .ds-icon-btn:active,
170
+ .ds-icon-btn[data-state="pressed"] {
171
+ background-color: var(--ds-color-bg-pressed);
172
+ }
173
+
174
+ .ds-icon-btn:disabled {
175
+ opacity: var(--ds-opacity-disabled);
176
+ pointer-events: none;
177
+ }
178
+
179
+ .ds-icon-btn--muted {
180
+ color: var(--ds-color-fg-muted);
181
+ }
182
+
183
+ .ds-icon-btn--outline {
184
+ border-color: var(--ds-color-border-control);
185
+ }
186
+
187
+ .ds-icon-btn--outline:hover,
188
+ .ds-icon-btn--outline[data-state="hover"] {
189
+ border-color: var(--ds-color-border-strong);
190
+ }
191
+
192
+ .ds-icon-btn--subtle {
193
+ background-color: var(--ds-color-bg-muted);
194
+ }
195
+
196
+ .ds-icon-btn--subtle:hover,
197
+ .ds-icon-btn--subtle[data-state="hover"] {
198
+ background-color: color-mix(in srgb, var(--ds-color-bg-muted), var(--ds-color-fg-default) 6%);
199
+ }
200
+
201
+ .ds-icon-btn--sm {
202
+ --_size: var(--ds-size-control-xs);
203
+ border-radius: var(--ds-radius-xs);
204
+ }
205
+
206
+ .ds-icon-btn--lg {
207
+ --_size: var(--ds-size-control-md);
208
+ border-radius: var(--ds-radius-md);
209
+ }
210
+
211
+ .ds-icon-btn--round {
212
+ border-radius: var(--ds-radius-full);
213
+ }
214
+
215
+ /* ───────── Ação inline ───────── */
216
+
217
+ .ds-inline-action {
218
+ display: inline-flex;
219
+ align-items: center;
220
+ gap: var(--ds-space-100);
221
+ min-height: var(--ds-size-control-xs);
222
+ margin-inline: -4px;
223
+ padding-inline: 4px;
224
+ border-radius: var(--ds-radius-xs);
225
+ color: var(--ds-color-fg-subtle);
226
+ font: var(--ds-text-label-sm);
227
+ font-weight: var(--ds-font-weight-regular);
228
+ letter-spacing: var(--ds-text-label-sm-tracking);
229
+ text-decoration: none;
230
+ cursor: pointer;
231
+ transition: color var(--ds-duration-fast) var(--ds-easing-standard);
232
+ }
233
+
234
+ .ds-inline-action:hover,
235
+ .ds-inline-action[data-state="hover"] {
236
+ color: var(--ds-color-fg-default);
237
+ }
238
+
239
+ .ds-inline-action:disabled,
240
+ .ds-inline-action[aria-disabled="true"] {
241
+ opacity: var(--ds-opacity-muted);
242
+ cursor: default;
243
+ pointer-events: none;
244
+ }
245
+
246
+ /* Forte: um pouco mais de presença (ex.: "Ver o que mudou →") */
247
+ .ds-inline-action--strong {
248
+ color: var(--ds-color-fg-default);
249
+ font-weight: var(--ds-font-weight-medium);
250
+ }
251
+
252
+ .ds-inline-action--strong:hover,
253
+ .ds-inline-action--strong[data-state="hover"] {
254
+ color: var(--ds-color-fg-brand);
255
+ }
256
+
257
+ .ds-inline-action__plus {
258
+ margin-inline-start: var(--ds-space-050);
259
+ transition: transform var(--ds-duration-base) var(--ds-easing-emphasized);
260
+ }
261
+
262
+ /* Seta de "ir para": anda um pouco no hover */
263
+ .ds-inline-action__arrow {
264
+ transition: translate var(--ds-duration-base) var(--ds-easing-emphasized);
265
+ }
266
+
267
+ .ds-inline-action:hover .ds-inline-action__arrow,
268
+ .ds-inline-action[data-state="hover"] .ds-inline-action__arrow {
269
+ translate: 2px 0;
270
+ }
271
+
272
+ /* Disclosure: <details class="ds-disclosure"><summary class="ds-inline-action">…</summary>…</details> */
273
+ .ds-disclosure > summary {
274
+ list-style: none;
275
+ }
276
+
277
+ .ds-disclosure > summary::-webkit-details-marker {
278
+ display: none;
279
+ }
280
+
281
+ .ds-disclosure[open] > summary {
282
+ color: var(--ds-color-fg-default);
283
+ }
284
+
285
+ .ds-disclosure[open] > summary .ds-inline-action__plus {
286
+ transform: rotate(45deg);
287
+ }
288
+
289
+ .ds-disclosure__content {
290
+ margin-top: var(--ds-space-200);
291
+ }