@fusion.dev/helix 0.146.0 → 0.147.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 (243) hide show
  1. package/custom-elements.json +5556 -539
  2. package/dist/accordion/item/accordion-item.css.js +4 -96
  3. package/dist/accordion/root/accordion-root.css.js +2 -28
  4. package/dist/announcement/root/announcement-root.css.js +10 -154
  5. package/dist/announcement/root/announcement-root.d.ts +3 -0
  6. package/dist/app-header/root/app-header-root.css.js +2 -118
  7. package/dist/area-chart/root/area-chart-root.css.js +4 -94
  8. package/dist/area-chart/root/area-chart-root.d.ts +1 -0
  9. package/dist/aura/root/aura-root.css.js +2 -57
  10. package/dist/avatar/group/avatar-group.css.js +5 -36
  11. package/dist/avatar/group/avatar-group.d.ts +3 -0
  12. package/dist/avatar/root/avatar-root.css.js +1 -53
  13. package/dist/avatar/root/avatar-root.d.ts +2 -0
  14. package/dist/badge/root/badge-root.css.js +12 -207
  15. package/dist/badge/root/badge-root.d.ts +2 -0
  16. package/dist/bar-chart/root/bar-chart-root.css.js +8 -292
  17. package/dist/blockquote/root/blockquote-root.css.js +1 -43
  18. package/dist/breadcrumbs/breadcrumb/breadcrumb.css.js +13 -98
  19. package/dist/breadcrumbs/root/breadcrumbs-root.css.js +5 -42
  20. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +17 -0
  21. package/dist/breadcrumbs/root/breadcrumbs-root.js +4 -0
  22. package/dist/button/root/button-root.css.js +16 -197
  23. package/dist/button/root/button-root.d.ts +1 -0
  24. package/dist/button-group/root/button-group-root.css.js +2 -52
  25. package/dist/callout/root/callout-root.css.js +5 -138
  26. package/dist/callout/root/callout-root.d.ts +4 -2
  27. package/dist/canvas/node/canvas-node.css.js +10 -367
  28. package/dist/canvas/root/canvas-root.css.js +7 -270
  29. package/dist/card/root/card-root.css.js +5 -134
  30. package/dist/carousel/root/carousel-root.css.js +20 -386
  31. package/dist/chat/composer/chat-composer.css.js +4 -105
  32. package/dist/chat/message/chat-message.css.js +5 -239
  33. package/dist/chat/message/chat-message.d.ts +5 -0
  34. package/dist/chat/root/chat-root.css.js +5 -162
  35. package/dist/chat/typing.css.js +9 -46
  36. package/dist/checkbox/root/checkbox-root.css.js +12 -177
  37. package/dist/checkbox-group/root/checkbox-group-root.css.js +1 -27
  38. package/dist/code/root/code-root.css.js +3 -25
  39. package/dist/code-block/root/code-block-root.css.js +9 -274
  40. package/dist/color-input/root/color-input-root.css.js +5 -114
  41. package/dist/color-picker/root/color-picker-root.css.js +39 -337
  42. package/dist/color-picker/root/color-picker-root.d.ts +2 -0
  43. package/dist/combobox/root/combobox-root.css.js +8 -147
  44. package/dist/command/root/command-root.css.js +3 -74
  45. package/dist/copy-button/root/copy-button-root.css.js +3 -43
  46. package/dist/data-table/root/data-table-root.css.js +21 -245
  47. package/dist/data-table/root/data-table-root.d.ts +7 -0
  48. package/dist/date-input/root/date-input-root.css.js +8 -103
  49. package/dist/date-picker/root/date-picker-root.css.js +16 -278
  50. package/dist/date-picker/root/date-picker-root.d.ts +1 -0
  51. package/dist/description-list/item/description-list-item.css.js +1 -41
  52. package/dist/description-list/item/description-list-item.d.ts +7 -0
  53. package/dist/description-list/root/description-list-root.css.js +1 -34
  54. package/dist/description-list/root/description-list-root.d.ts +1 -0
  55. package/dist/dialog/root/dialog-root.css.js +7 -221
  56. package/dist/dialog/root/dialog-root.d.ts +3 -0
  57. package/dist/divider/root/divider-root.css.js +6 -81
  58. package/dist/donut-chart/root/donut-chart-root.css.js +7 -193
  59. package/dist/drawer/root/drawer-root.css.js +11 -237
  60. package/dist/drilldown/item/drilldown-item.css.js +4 -51
  61. package/dist/drilldown/item/drilldown-item.d.ts +1 -0
  62. package/dist/drilldown/root/drilldown-root.css.js +6 -120
  63. package/dist/element-events.generated.js +4 -1
  64. package/dist/empty/root/empty-root.css.js +2 -42
  65. package/dist/file-input/root/file-input-root.css.js +7 -173
  66. package/dist/file-input/root/file-input-root.d.ts +4 -0
  67. package/dist/filter-input/chip/filter-chip.css.js +2 -84
  68. package/dist/filter-input/field/filter-field.css.js +1 -3
  69. package/dist/filter-input/menu/filter-menu.css.js +1 -3
  70. package/dist/filter-input/operator/filter-operator.css.js +1 -3
  71. package/dist/filter-input/root/filter-input-root.css.js +6 -113
  72. package/dist/flex/root/flex-root.css.js +4 -207
  73. package/dist/flex/root/flex-root.d.ts +2 -2
  74. package/dist/format-date/root/format-date-root.css.js +1 -13
  75. package/dist/graph/root/graph-root.css.js +9 -444
  76. package/dist/grid/root/grid-root.css.js +1 -171
  77. package/dist/heatmap/root/heatmap-root.css.js +8 -156
  78. package/dist/heatmap/root/heatmap-root.d.ts +2 -0
  79. package/dist/icon/index.d.ts +1 -1
  80. package/dist/icon/root/icon-root.css.js +1 -18
  81. package/dist/icon/root/index.d.ts +1 -1
  82. package/dist/icon-button/root/icon-button-root.css.js +25 -203
  83. package/dist/icon-button/root/icon-button-root.d.ts +1 -0
  84. package/dist/image/root/image-root.css.js +7 -65
  85. package/dist/image/root/image-root.d.ts +3 -0
  86. package/dist/input/root/input-root.css.js +6 -79
  87. package/dist/kbd/root/kbd-root.css.js +2 -71
  88. package/dist/kbd/root/kbd-root.d.ts +7 -0
  89. package/dist/legend/root/legend-root.css.js +9 -106
  90. package/dist/legend/root/legend-root.d.ts +2 -0
  91. package/dist/lightbox/item/lightbox-item.css.js +1 -37
  92. package/dist/lightbox/root/lightbox-root.css.js +38 -183
  93. package/dist/line-chart/root/line-chart-root.css.js +4 -170
  94. package/dist/line-chart/root/line-chart-root.d.ts +1 -0
  95. package/dist/list/item/list-item.css.js +2 -94
  96. package/dist/list/root/list-root.css.js +4 -88
  97. package/dist/listbox/root/listbox-root.css.js +4 -111
  98. package/dist/loader/root/loader-root.css.js +5 -171
  99. package/dist/map/area/map-area.css.js +1 -23
  100. package/dist/map/buildings/map-buildings.css.js +1 -26
  101. package/dist/map/contours/map-contours.css.js +2 -5
  102. package/dist/map/landcover/map-landcover.css.js +1 -4
  103. package/dist/map/marker/map-marker.css.js +14 -327
  104. package/dist/map/points/map-points.css.js +1 -86
  105. package/dist/map/position/map-position.css.js +8 -227
  106. package/dist/map/raster/map-raster.css.js +1 -3
  107. package/dist/map/root/map-root.css.js +10 -352
  108. package/dist/map/route/map-route.css.js +1 -24
  109. package/dist/map/terrain/map-terrain.css.js +3 -7
  110. package/dist/megamenu/root/megamenu-root.css.js +11 -162
  111. package/dist/megamenu/root/megamenu-root.d.ts +8 -0
  112. package/dist/menu/item/menu-item.css.js +7 -130
  113. package/dist/menu/root/menu-root.css.js +1 -110
  114. package/dist/menu/section/menu-section.css.js +1 -13
  115. package/dist/meter/root/meter-root.css.js +17 -207
  116. package/dist/meter/root/meter-root.d.ts +3 -0
  117. package/dist/navigation/root/navigation-root.css.js +2 -54
  118. package/dist/notifications/group/notification-group.css.js +1 -61
  119. package/dist/notifications/notification/notification.css.js +17 -264
  120. package/dist/notifications/root/notifications-root.css.js +7 -125
  121. package/dist/notifications/root/notifications-root.d.ts +3 -1
  122. package/dist/number-input/root/number-input-root.css.js +10 -103
  123. package/dist/object-inspector/root/object-inspector-root.css.js +11 -162
  124. package/dist/option/group/option-group.css.js +1 -22
  125. package/dist/option/index.d.ts +1 -0
  126. package/dist/option/index.js +1 -0
  127. package/dist/option/root/option-root.css.js +3 -85
  128. package/dist/option/separator/option-separator.css.d.ts +1 -0
  129. package/dist/option/separator/option-separator.css.js +3 -0
  130. package/dist/option/separator/option-separator.d.ts +26 -0
  131. package/dist/option/separator/option-separator.js +16 -0
  132. package/dist/orb/root/orb-root.css.js +1 -41
  133. package/dist/outline/root/outline-root.css.js +24 -122
  134. package/dist/outline/root/outline-root.d.ts +17 -4
  135. package/dist/pagination/root/pagination-root.css.js +9 -105
  136. package/dist/pagination/size/pagination-size.css.js +1 -22
  137. package/dist/pagination/summary/pagination-summary.css.js +1 -7
  138. package/dist/pin-input/root/pin-input-root.css.js +2 -73
  139. package/dist/pin-input/root/pin-input-root.d.ts +9 -3
  140. package/dist/popover/root/popover-root.css.js +6 -127
  141. package/dist/progress/root/progress-root.css.js +7 -230
  142. package/dist/progress/root/progress-root.d.ts +4 -0
  143. package/dist/qr-code/root/qr-code-root.css.js +1 -68
  144. package/dist/quote/root/quote-root.css.js +1 -20
  145. package/dist/radio/group/radio-group.css.js +1 -21
  146. package/dist/radio/root/radio-root.css.js +5 -208
  147. package/dist/rating/root/rating-root.css.js +4 -117
  148. package/dist/sandbox/frame.d.ts +2 -1
  149. package/dist/sandbox/frame.js +1 -1
  150. package/dist/sandbox/index.d.ts +1 -1
  151. package/dist/sandbox/preview/sandbox-preview.css.js +1 -12
  152. package/dist/sandbox/preview/sandbox-preview.d.ts +19 -3
  153. package/dist/sandbox/preview/sandbox-preview.js +17 -11
  154. package/dist/sandbox/root/sandbox-root.css.js +3 -70
  155. package/dist/sandbox/root/sandbox-root.d.ts +16 -4
  156. package/dist/sandbox/root/sandbox-root.js +29 -50
  157. package/dist/sandbox/source/sandbox-source.css.js +3 -95
  158. package/dist/sandbox/source/sandbox-source.d.ts +31 -25
  159. package/dist/sandbox/source/sandbox-source.js +12 -5
  160. package/dist/sandbox/status-bar/sandbox-status-bar.css.js +1 -21
  161. package/dist/sandbox/terminal/sandbox-terminal.css.js +5 -106
  162. package/dist/sandbox/terminal/sandbox-terminal.d.ts +4 -0
  163. package/dist/sandbox/terminal/sandbox-terminal.js +2 -1
  164. package/dist/sandbox/tokens.d.ts +2 -2
  165. package/dist/sandbox/toolbar/sandbox-toolbar.css.js +1 -36
  166. package/dist/scatter-chart/root/scatter-chart-root.css.js +11 -146
  167. package/dist/scatter-chart/root/scatter-chart-root.d.ts +1 -0
  168. package/dist/scroll-area/root/scroll-area-root.css.js +14 -181
  169. package/dist/select/root/select-root.css.js +4 -124
  170. package/dist/shared/chart/series.css.js +1 -36
  171. package/dist/shared/chart/terminus.css.js +1 -47
  172. package/dist/shared/chart/tooltip.css.js +1 -68
  173. package/dist/shared/collection/state.css.js +1 -9
  174. package/dist/shared/field/field-frame.css.js +3 -33
  175. package/dist/shared/field/field-inline.css.js +1 -4
  176. package/dist/shared/field/field-segments.css.js +1 -39
  177. package/dist/shared/field/field-stacked.css.js +1 -5
  178. package/dist/shared/field/field.css.js +3 -57
  179. package/dist/shared/floating/entrance.css.js +3 -34
  180. package/dist/shared/floating/panel.css.js +2 -17
  181. package/dist/shared/glyph/glyph.css.js +1 -5
  182. package/dist/shared/live/live.css.js +1 -8
  183. package/dist/shared/tags/tags.css.js +1 -39
  184. package/dist/shared/viewport/viewport.css.js +8 -135
  185. package/dist/skeleton/root/skeleton-root.css.js +12 -120
  186. package/dist/skip-link/root/skip-link-root.css.js +2 -47
  187. package/dist/slider/root/slider-root.css.js +19 -330
  188. package/dist/slider/root/slider-root.d.ts +2 -0
  189. package/dist/sparkline/root/sparkline-root.css.js +8 -143
  190. package/dist/sparkline/root/sparkline-root.d.ts +2 -0
  191. package/dist/speed-dial/item/speed-dial-item.css.js +4 -73
  192. package/dist/speed-dial/root/speed-dial-root.css.js +3 -149
  193. package/dist/splitter/root/splitter-root.css.js +11 -176
  194. package/dist/stat/group/stat-group.css.js +1 -36
  195. package/dist/stat/root/stat-root.css.js +3 -62
  196. package/dist/steps/root/steps-root.css.js +7 -92
  197. package/dist/steps/step/step.css.js +5 -156
  198. package/dist/switch/root/switch-root.css.js +2 -110
  199. package/dist/table/cell/table-cell.css.js +1 -33
  200. package/dist/table/column/table-column.css.js +7 -105
  201. package/dist/table/root/table-root.css.js +1 -43
  202. package/dist/table/row/table-row.css.js +6 -18
  203. package/dist/table/row/table-row.d.ts +2 -0
  204. package/dist/tabs/panel/tab-panel.css.js +2 -17
  205. package/dist/tabs/root/tabs-root.css.js +6 -177
  206. package/dist/tabs/tab/tab.css.js +6 -54
  207. package/dist/tag/group/tag-group.css.js +1 -11
  208. package/dist/tag/root/tag-root.css.js +1 -166
  209. package/dist/tag/root/tag-root.d.ts +2 -0
  210. package/dist/text/root/text-root.css.js +11 -200
  211. package/dist/textarea/root/textarea-root.css.js +3 -71
  212. package/dist/time-input/root/time-input-root.css.js +7 -118
  213. package/dist/time-picker/root/time-picker-root.css.js +10 -134
  214. package/dist/time-picker/root/time-picker-root.d.ts +1 -0
  215. package/dist/timeline/group/timeline-group.css.js +1 -31
  216. package/dist/timeline/item/timeline-item.css.js +3 -134
  217. package/dist/timeline/root/timeline-root.css.js +1 -66
  218. package/dist/toast/item/toast-item.css.js +8 -250
  219. package/dist/toast/root/toast-root.css.js +1 -85
  220. package/dist/toast/root/toast-root.js +2 -1
  221. package/dist/toggle/group/toggle-group.css.js +7 -126
  222. package/dist/toggle/root/toggle-root.css.js +1 -23
  223. package/dist/toolbar/root/toolbar-root.css.js +1 -36
  224. package/dist/toolbar/root/toolbar-root.d.ts +2 -0
  225. package/dist/tooltip/root/tooltip-root.css.js +5 -101
  226. package/dist/tooltip/root/tooltip-root.d.ts +2 -0
  227. package/dist/tour/root/tour-root.css.js +2 -28
  228. package/dist/tour/stop/tour-stop.css.js +2 -109
  229. package/dist/tree/item/tree-item.css.js +12 -238
  230. package/dist/tree/root/tree-root.css.js +1 -40
  231. package/dist/trend/root/trend-root.css.js +5 -53
  232. package/dist/video/root/video-root.css.js +16 -398
  233. package/dist/video-playlist/item/video-playlist-item.css.js +12 -86
  234. package/dist/video-playlist/item/video-playlist-item.d.ts +12 -0
  235. package/dist/video-playlist/menu/video-playlist-menu.css.js +1 -41
  236. package/dist/video-playlist/root/video-playlist-root.css.js +1 -19
  237. package/dist/video-playlist/root/video-playlist-root.d.ts +2 -0
  238. package/dist/virtual-list/root/virtual-list-root.css.js +3 -40
  239. package/lint.json +1 -1
  240. package/package.json +6 -6
  241. package/types/jsx.d.ts +2804 -619
  242. package/types/svelte.d.ts +1 -0
  243. package/types/vue.d.ts +810 -169
@@ -1,132 +1,11 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
-
4
- display: contents;
5
- }
6
-
7
- [part="popover"] {
8
- overflow: visible;
9
- background-color: var(--helix-color-surface-overlay);
10
-
11
- border: var(--popover-border-width, var(--helix-border-floating)) solid
12
- var(--popover-border-color, var(--helix-color-border));
13
-
14
- --_popover-edge: var(--popover-border-width, var(--helix-border-floating)) solid
15
- var(--popover-border-color, var(--helix-color-border));
16
-
17
- border-radius: var(--helix-radii-sm);
18
- box-shadow: var(--popover-shadow, var(--helix-shadow-floating));
19
- box-sizing: border-box;
20
- color: var(--helix-color-foreground);
21
-
22
- inset: auto;
23
- margin: var(--helix-space-none);
24
-
25
- max-inline-size: calc(100vw - var(--helix-space-lg));
26
-
27
- padding: var(--helix-space-none);
28
- inline-size: var(--popover-inline-size, max-content);
29
- }
30
-
31
- [part="popover"]:not(:popover-open) {
32
- display: none;
33
- }
34
-
35
- [part="popover"] {
36
- --_travel: calc(var(--helix-space-2xs) * -1);
37
-
38
- --_popover-from: 0.96;
39
- opacity: 0;
40
- transform: translateY(var(--_travel));
41
- scale: var(--_popover-from);
42
- transition:
2
+ export const styles = createSheet(`:host {display: contents;}[part="popover"] {overflow: visible;background-color: var(--helix-color-surface-overlay);border: var(--popover-border-width, var(--helix-border-floating)) solid
3
+ var(--popover-border-color, var(--helix-color-border));--_popover-edge: var(--popover-border-width, var(--helix-border-floating)) solid
4
+ var(--popover-border-color, var(--helix-color-border));border-radius: var(--helix-radii-sm);box-shadow: var(--popover-shadow, var(--helix-shadow-floating));box-sizing: border-box;color: var(--helix-color-foreground);inset: auto;margin: var(--helix-space-none);max-inline-size: calc(100vw - var(--helix-space-lg));padding: var(--helix-space-none);inline-size: var(--popover-inline-size, max-content);}[part="popover"]:not(:popover-open) {display: none;}[part="popover"] {--_travel: calc(var(--helix-space-2xs) * -1);--_popover-from: 0.96;opacity: 0;transform: translateY(var(--_travel));scale: var(--_popover-from);transition:
43
5
  opacity var(--helix-duration-fast) var(--helix-easing-standard),
44
6
  scale var(--helix-duration-fast) var(--helix-easing-emphasized),
45
7
  transform var(--helix-duration-fast) var(--helix-easing-emphasized),
46
8
  display var(--helix-duration-fast) allow-discrete,
47
- overlay var(--helix-duration-fast) allow-discrete;
48
- }
49
-
50
- [part="popover"][data-placement^="top"] {
51
- --_travel: var(--helix-space-2xs);
52
- }
53
-
54
- [part="popover"][data-placed] {
55
- opacity: 1;
56
- scale: 1;
57
- transform: none;
58
- }
59
-
60
- [part="popover"][data-placement^="top"] {
61
- transform-origin: var(--floating-arrow-x, 50%) 100%;
62
- }
63
-
64
- [part="popover"][data-placement^="bottom"] {
65
- transform-origin: var(--floating-arrow-x, 50%) 0;
66
- }
67
-
68
- [part="popover"][data-placement^="left"] {
69
- transform-origin: 100% var(--floating-arrow-y, 50%);
70
- }
71
-
72
- [part="popover"][data-placement^="right"] {
73
- transform-origin: 0 var(--floating-arrow-y, 50%);
74
- }
75
-
76
- @media (prefers-reduced-motion: reduce) {
77
- [part="popover"],
78
- [part="popover"][data-placed] {
79
- scale: 1;
80
- transform: none;
81
- transition: none;
82
- }
83
- }
84
-
85
- [part="content"] {
86
- max-block-size: var(--popover-max-block-size, var(--floating-available-block-size, none));
87
- overflow: auto;
88
- padding: var(--popover-padding, var(--helix-space-md));
89
- }
90
-
91
- :host([separation="plain"]) [part="content"] {
92
- padding: var(--popover-padding, var(--helix-space-none));
93
- }
94
-
95
- [part="popover"]:focus,
96
- [part="popover"]:focus-visible {
97
- outline: none;
98
- }
99
-
100
- [part~="arrow"] {
101
- background-color: var(--helix-color-surface-overlay);
102
- block-size: var(--popover-arrow-size, 0.5rem);
103
- inline-size: var(--popover-arrow-size, 0.5rem);
104
- position: absolute;
105
- rotate: 45deg;
106
- }
107
-
108
- [part="popover"][data-placement^="bottom"] [part~="arrow"] {
109
- border-left: var(--_popover-edge);
110
- border-top: var(--_popover-edge);
111
- }
112
-
113
- [part="popover"][data-placement^="top"] [part~="arrow"] {
114
- border-bottom: var(--_popover-edge);
115
- border-right: var(--_popover-edge);
116
- }
117
-
118
- [part="popover"][data-placement^="right"] [part~="arrow"] {
119
- border-bottom: var(--_popover-edge);
120
- border-left: var(--_popover-edge);
121
- }
122
-
123
- [part="popover"][data-placement^="left"] [part~="arrow"] {
124
- border-right: var(--_popover-edge);
125
- border-top: var(--_popover-edge);
126
- }
127
-
128
- @media print {
129
- :host {
130
- display: none;
131
- }
132
- }`);
9
+ overlay var(--helix-duration-fast) allow-discrete;}[part="popover"][data-placement^="top"] {--_travel: var(--helix-space-2xs);}[part="popover"][data-placed] {opacity: 1;scale: 1;transform: none;}[part="popover"][data-placement^="top"] {transform-origin: var(--floating-arrow-x, 50%) 100%;}[part="popover"][data-placement^="bottom"] {transform-origin: var(--floating-arrow-x, 50%) 0;}[part="popover"][data-placement^="left"] {transform-origin: 100% var(--floating-arrow-y, 50%);}[part="popover"][data-placement^="right"] {transform-origin: 0 var(--floating-arrow-y, 50%);}@media (prefers-reduced-motion: reduce) {[part="popover"],
10
+ [part="popover"][data-placed] {scale: 1;transform: none;transition: none;}}[part="content"] {max-block-size: var(--popover-max-block-size, var(--floating-available-block-size, none));overflow: auto;padding: var(--popover-padding, var(--helix-space-md));}:host([separation="plain"]) [part="content"] {padding: var(--popover-padding, var(--helix-space-none));}[part="popover"]:focus,
11
+ [part="popover"]:focus-visible {outline: none;}[part~="arrow"] {background-color: var(--helix-color-surface-overlay);block-size: var(--popover-arrow-size, 0.5rem);inline-size: var(--popover-arrow-size, 0.5rem);position: absolute;rotate: 45deg;}[part="popover"][data-placement^="bottom"] [part~="arrow"] {border-left: var(--_popover-edge);border-top: var(--_popover-edge);}[part="popover"][data-placement^="top"] [part~="arrow"] {border-bottom: var(--_popover-edge);border-right: var(--_popover-edge);}[part="popover"][data-placement^="right"] [part~="arrow"] {border-bottom: var(--_popover-edge);border-left: var(--_popover-edge);}[part="popover"][data-placement^="left"] [part~="arrow"] {border-right: var(--_popover-edge);border-top: var(--_popover-edge);}@media print {:host {display: none;}}`);
@@ -1,240 +1,17 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- display: block;
4
- }
5
-
6
- :host([show-value]) {
7
- align-items: center;
8
- column-gap: var(--helix-space-sm);
9
- display: grid;
10
- grid-template-columns: 1fr auto;
11
-
12
- row-gap: var(--progress-label-gap, var(--helix-space-2xs));
13
- }
14
-
15
- slot[name="label"]::slotted(*) {
16
- color: var(--progress-label-color, var(--helix-color-foreground));
17
- display: block;
18
- font-size: var(--progress-label-size, var(--helix-text-sm));
19
- grid-column: 1 / -1;
20
- margin-block-end: var(--progress-label-gap, var(--helix-space-2xs));
21
- }
22
-
23
- :host([show-value]) slot[name="label"]::slotted(*) {
24
- margin-block-end: 0;
25
- }
26
-
27
- :host([shape="ring"]) slot[name="label"]::slotted(*) {
28
-
29
- grid-column: 1;
30
- margin-block: 0;
31
- }
32
-
33
- [part="value"] {
34
- color: var(--helix-color-foreground-muted);
35
- font-family: var(--helix-font-sans);
36
- font-size: var(--helix-text-xs);
37
- font-variant-numeric: tabular-nums;
38
- min-inline-size: 3ch;
39
- text-align: end;
40
- }
41
-
42
- [part="track"] {
43
- background-color: var(--progress-track-color, var(--helix-color-surface-sunken));
44
- block-size: var(--progress-size, var(--helix-size-progress));
45
- border-radius: var(--helix-radii-full);
46
- inline-size: 100%;
47
-
48
- overflow: hidden;
49
- }
50
-
51
- [part="indicator"] {
52
- background-color: var(--progress-color, var(--helix-color-primary));
53
- block-size: 100%;
54
- border-radius: inherit;
55
- inline-size: 100%;
56
- scale: var(--progress-fraction, 0) 1;
57
- transform-origin: left center;
58
- transition: scale var(--progress-transition-duration, var(--helix-duration-normal))
59
- var(--helix-easing-decelerate);
60
- }
61
-
62
- :host(:dir(rtl)) [part="indicator"] {
63
- transform-origin: right center;
64
- }
65
-
66
- :host([indeterminate]) {
67
- --_progress-cycle: calc(var(--helix-duration-slow) * 5);
68
- }
69
-
70
- :host([indeterminate]) [part="indicator"] {
71
- animation: helix-progress-indeterminate var(--_progress-cycle) linear infinite;
72
-
73
- transition: none;
74
- }
75
-
76
- :host([indeterminate]) [part="indicator"] {
77
- --_progress-way: 1;
78
- }
79
-
80
- :host([indeterminate]:dir(rtl)) [part="indicator"] {
81
- --_progress-way: -1;
82
- }
83
-
84
- @keyframes helix-progress-indeterminate {
85
- 0% {
86
- scale: 0.18 1;
87
- translate: calc(-18% * var(--_progress-way, 1));
88
- }
89
-
90
- 35% {
91
- scale: 0.5 1;
92
- translate: calc(12% * var(--_progress-way, 1));
93
- }
94
-
95
- 65% {
96
- scale: 0.5 1;
97
- translate: calc(52% * var(--_progress-way, 1));
98
- }
99
-
100
- 100% {
101
- scale: 0.18 1;
102
- translate: calc(100% * var(--_progress-way, 1));
103
- }
104
- }
105
-
106
- @media (prefers-reduced-motion: reduce) {
107
- :host([indeterminate]) [part="indicator"] {
108
- animation: none;
109
- background-image: repeating-linear-gradient(
2
+ export const styles = createSheet(`:host {display: block;}:host([show-value]) {align-items: center;column-gap: var(--progress-value-gap, var(--helix-space-sm));display: grid;grid-template-columns: 1fr auto;row-gap: var(--progress-label-gap, var(--helix-space-2xs));}slot[name="label"]::slotted(*) {color: var(--progress-label-color, var(--helix-color-foreground));display: block;font-size: var(--progress-label-size, var(--helix-text-sm));grid-column: 1 / -1;margin-block-end: var(--progress-label-gap, var(--helix-space-2xs));}:host([show-value]) slot[name="label"]::slotted(*) {margin-block-end: 0;}:host([shape="ring"]) slot[name="label"]::slotted(*) {grid-column: 1;margin-block: 0;}[part="value"] {color: var(--progress-value-color, var(--helix-color-foreground-muted));font-family: var(--helix-font-sans);font-size: var(--progress-value-size, var(--helix-text-xs));font-variant-numeric: tabular-nums;min-inline-size: 3ch;text-align: end;}[part="live"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap;}[part="track"] {background-color: var(--progress-track-color, var(--helix-color-surface-sunken));block-size: var(--progress-size, var(--helix-size-progress));border-radius: var(--progress-radius, var(--helix-radii-full));inline-size: 100%;overflow: hidden;}[part="indicator"] {background-color: var(--progress-color, var(--helix-color-primary));block-size: 100%;border-radius: inherit;inline-size: 100%;scale: var(--progress-fraction, 0) 1;transform-origin: left center;transition: scale var(--progress-transition-duration, var(--helix-duration-normal))
3
+ var(--helix-easing-decelerate);}:host(:dir(rtl)) [part="indicator"] {transform-origin: right center;}:host([indeterminate]) {--_progress-cycle: calc(var(--helix-duration-slow) * 5);}:host([indeterminate]) [part="indicator"] {animation: helix-progress-indeterminate var(--_progress-cycle) linear infinite;transition: none;}:host([indeterminate]) [part="indicator"] {--_progress-way: 1;}:host([indeterminate]:dir(rtl)) [part="indicator"] {--_progress-way: -1;}@keyframes helix-progress-indeterminate {0% {scale: 0.18 1;translate: calc(-18% * var(--_progress-way, 1));}35% {scale: 0.5 1;translate: calc(12% * var(--_progress-way, 1));}65% {scale: 0.5 1;translate: calc(52% * var(--_progress-way, 1));}100% {scale: 0.18 1;translate: calc(100% * var(--_progress-way, 1));}}@media (prefers-reduced-motion: reduce) {:host([indeterminate]) [part="indicator"] {animation: none;background-image: repeating-linear-gradient(
110
4
  -45deg,
111
5
  var(--helix-color-background) 0 var(--helix-space-xs),
112
6
  transparent var(--helix-space-xs) calc(var(--helix-space-xs) * 2)
113
- );
114
- scale: 1 1;
115
- translate: 0;
116
- }
117
- }
118
-
119
- :host([shape="ring"]) {
120
- display: inline-grid;
121
- place-items: center;
122
- row-gap: var(--progress-label-gap, var(--helix-space-2xs));
123
- }
124
-
125
- :host([shape="ring"]) [part="track"] {
126
- --_ring-stroke: var(--progress-ring-width, var(--helix-size-progress));
127
-
128
- background-color: transparent;
129
- block-size: var(--progress-ring-size, 4rem);
130
- grid-area: 1 / 1;
131
- inline-size: var(--progress-ring-size, 4rem);
132
-
133
- rotate: -90deg;
134
- }
135
-
136
- :host([shape="ring"]) [part="groove"],
137
- :host([shape="ring"]) [part="indicator"] {
138
- cx: 50%;
139
- cy: 50%;
140
- fill: none;
141
- r: calc(50% - var(--_ring-stroke) / 2);
142
- stroke-width: var(--_ring-stroke);
143
- }
144
-
145
- :host([shape="ring"]) [part="groove"] {
146
- stroke: var(--progress-track-color, var(--helix-color-surface-sunken));
147
- }
148
-
149
- :host([shape="ring"]) [part="indicator"] {
150
- scale: none;
151
- stroke: var(--progress-color, var(--helix-color-primary));
152
- stroke-dasharray: calc(var(--progress-fraction) * 100) 100;
153
- stroke-linecap: round;
154
- transition: stroke-dasharray var(--progress-transition-duration, var(--helix-duration-normal))
155
- var(--helix-easing-decelerate);
156
- }
157
-
158
- :host([shape="ring"][show-value]) {
159
- gap: var(--helix-space-none);
160
- grid-template-columns: auto;
161
- }
162
-
163
- :host([shape="ring"]) [part="value"] {
164
- grid-area: 1 / 1;
165
- min-inline-size: 0;
166
- text-align: center;
167
- }
168
-
169
- :host([shape="ring"][indeterminate]) [part="track"] {
170
- animation: helix-progress-ring var(--_progress-cycle) linear infinite;
171
- }
172
-
173
- :host([shape="ring"][indeterminate]) [part="indicator"] {
174
- animation: helix-progress-ring-sweep calc(var(--_progress-cycle) * 0.7) ease-in-out infinite;
175
- transition: none;
176
- }
177
-
178
- @keyframes helix-progress-ring {
179
- from {
180
- rotate: -90deg;
181
- }
182
-
183
- to {
184
- rotate: 270deg;
185
- }
186
- }
187
-
188
- @keyframes helix-progress-ring-sweep {
189
- 0% {
190
- stroke-dasharray: 10 100;
191
- stroke-dashoffset: 0;
192
- }
193
-
194
- 50% {
195
- stroke-dasharray: 70 100;
196
- stroke-dashoffset: -25;
197
- }
198
-
199
- 100% {
200
- stroke-dasharray: 10 100;
201
- stroke-dashoffset: -100;
202
- }
203
- }
204
-
205
- @media (prefers-reduced-motion: reduce) {
206
- :host([shape="ring"]) [part="indicator"] {
207
- transition: none;
208
- }
209
-
210
- :host([shape="ring"][indeterminate]) [part="track"] {
211
- animation-duration: calc(var(--_progress-cycle) * 12);
212
- }
213
-
214
- :host([shape="ring"][indeterminate]) [part="indicator"] {
215
- animation: none;
216
- stroke-dasharray: 25 100;
217
- }
218
- }
219
-
220
- @media print {
221
- :host {
222
- print-color-adjust: exact;
223
- }
224
- }
225
-
226
- :host([emphasis="subtle"]) [part="indicator"] {
227
- background-color: color-mix(
7
+ );scale: 1 1;translate: 0;}}:host([shape="ring"]) {display: inline-grid;place-items: center;row-gap: var(--progress-label-gap, var(--helix-space-2xs));}:host([shape="ring"]) [part="track"] {--_ring-stroke: var(--progress-ring-width, var(--helix-size-progress));background-color: transparent;block-size: var(--progress-ring-size, 4rem);grid-area: 1 / 1;inline-size: var(--progress-ring-size, 4rem);rotate: -90deg;}:host([shape="ring"]) [part="groove"],
8
+ :host([shape="ring"]) [part="indicator"] {cx: 50%;cy: 50%;fill: none;r: calc(50% - var(--_ring-stroke) / 2);stroke-width: var(--_ring-stroke);}:host([shape="ring"]) [part="groove"] {stroke: var(--progress-track-color, var(--helix-color-surface-sunken));}:host([shape="ring"]) [part="indicator"] {scale: none;stroke: var(--progress-color, var(--helix-color-primary));stroke-dasharray: calc(var(--progress-fraction) * 100) 100;stroke-linecap: round;transition: stroke-dasharray var(--progress-transition-duration, var(--helix-duration-normal))
9
+ var(--helix-easing-decelerate);}:host([shape="ring"][show-value]) {gap: var(--helix-space-none);grid-template-columns: auto;}:host([shape="ring"]) [part="value"] {grid-area: 1 / 1;min-inline-size: 0;text-align: center;}:host([shape="ring"][indeterminate]) [part="track"] {animation: helix-progress-ring var(--_progress-cycle) linear infinite;}:host([shape="ring"][indeterminate]) [part="indicator"] {animation: helix-progress-ring-sweep calc(var(--_progress-cycle) * 0.7) ease-in-out infinite;transition: none;}@keyframes helix-progress-ring {from {rotate: -90deg;}to {rotate: 270deg;}}@keyframes helix-progress-ring-sweep {0% {stroke-dasharray: 10 100;stroke-dashoffset: 0;}50% {stroke-dasharray: 70 100;stroke-dashoffset: -25;}100% {stroke-dasharray: 10 100;stroke-dashoffset: -100;}}@media (prefers-reduced-motion: reduce) {:host([shape="ring"]) [part="indicator"] {transition: none;}:host([shape="ring"][indeterminate]) [part="track"] {animation-duration: calc(var(--_progress-cycle) * 12);}:host([shape="ring"][indeterminate]) [part="indicator"] {animation: none;stroke-dasharray: 25 100;}}@media print {:host {print-color-adjust: exact;}}:host([emphasis="subtle"]) [part="indicator"] {background-color: color-mix(
228
10
  in oklab,
229
11
  var(--progress-color, var(--helix-color-primary)) 30%,
230
12
  var(--progress-track-color, var(--helix-color-surface-sunken))
231
- );
232
- }
233
-
234
- :host([emphasis="subtle"][shape="ring"]) [part="indicator"] {
235
- stroke: color-mix(
13
+ );}:host([emphasis="subtle"][shape="ring"]) [part="indicator"] {stroke: color-mix(
236
14
  in oklab,
237
15
  var(--progress-color, var(--helix-color-primary)) 30%,
238
16
  var(--progress-track-color, var(--helix-color-surface-sunken))
239
- );
240
- }`);
17
+ );}`);
@@ -24,11 +24,15 @@ import type { CSSResultGroup } from 'lit';
24
24
  * @cssproperty --progress-label-color - Color of a slotted label.
25
25
  * @cssproperty --progress-label-gap - Space between a slotted label and the bar.
26
26
  * @cssproperty --progress-label-size - Type size of a slotted label.
27
+ * @cssproperty --progress-radius - How far the ends of the bar are rounded.
27
28
  * @cssproperty --progress-ring-size - Diameter of the ring.
28
29
  * @cssproperty --progress-ring-width - Thickness of the ring's stroke.
29
30
  * @cssproperty --progress-size - Thickness of the bar.
30
31
  * @cssproperty --progress-track-color - Fill of the part that is not done.
31
32
  * @cssproperty --progress-transition-duration - How long the fill takes to move to a new value. `0s` moves it at once.
33
+ * @cssproperty --progress-value-color - The color of the value shown under `show-value`.
34
+ * @cssproperty --progress-value-gap - The space between the bar and the value under `show-value`.
35
+ * @cssproperty --progress-value-size - The type size of the value shown under `show-value`.
32
36
  */
33
37
  export declare class HelixProgress extends HelixHeadlessProgress {
34
38
  /**
@@ -1,69 +1,2 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- --_qr-size: var(--qr-code-size, 12rem);
4
-
5
- background-color: var(--qr-code-background-color, var(--helix-color-foreground-media));
6
- block-size: var(--_qr-size);
7
- border-radius: var(--helix-radii-sm);
8
- color: var(--qr-code-color, var(--helix-color-surface-media));
9
- display: block;
10
- inline-size: var(--_qr-size);
11
- position: relative;
12
- }
13
-
14
- [part="code"] {
15
- block-size: 100%;
16
- display: block;
17
- inline-size: 100%;
18
- }
19
-
20
- [part="fallback"] {
21
- align-items: center;
22
- block-size: 100%;
23
- box-sizing: border-box;
24
- display: flex;
25
- justify-content: center;
26
- overflow-wrap: anywhere;
27
- padding: var(--helix-space-md);
28
- text-align: center;
29
- }
30
-
31
- [part="finders"] {
32
- fill: var(--qr-code-finder-color, currentColor);
33
- }
34
-
35
- [part="logo"] {
36
- align-items: center;
37
-
38
- background-color: var(--qr-code-background-color, var(--helix-color-foreground-media));
39
- border-radius: var(--helix-radii-sm);
40
-
41
- box-sizing: border-box;
42
- display: flex;
43
- inset-block-start: 50%;
44
- inset-inline-start: 50%;
45
- justify-content: center;
46
- max-block-size: var(--qr-code-logo-size, 27%);
47
- max-inline-size: var(--qr-code-logo-size, 27%);
48
- min-block-size: var(--qr-code-logo-size, 27%);
49
- min-inline-size: var(--qr-code-logo-size, 27%);
50
- padding: var(--qr-code-logo-padding, 6%);
51
- position: absolute;
52
- translate: -50% -50%;
53
- }
54
-
55
- [part="logo"] slot::slotted(*) {
56
- block-size: 100%;
57
- inline-size: 100%;
58
- object-fit: contain;
59
- }
60
-
61
- [part="logo"][hidden] {
62
- display: none;
63
- }
64
-
65
- @media print {
66
- :host {
67
- print-color-adjust: economy;
68
- }
69
- }`);
2
+ export const styles = createSheet(`:host {--_qr-size: var(--qr-code-size, 12rem);background-color: var(--qr-code-background-color, var(--helix-color-foreground-media));block-size: var(--_qr-size);border-radius: var(--helix-radii-sm);color: var(--qr-code-color, var(--helix-color-surface-media));display: block;inline-size: var(--_qr-size);position: relative;}[part="code"] {block-size: 100%;display: block;inline-size: 100%;}[part="fallback"] {align-items: center;block-size: 100%;box-sizing: border-box;display: flex;justify-content: center;overflow-wrap: anywhere;padding: var(--helix-space-md);text-align: center;}[part="finders"] {fill: var(--qr-code-finder-color, currentColor);}[part="logo"] {align-items: center;background-color: var(--qr-code-background-color, var(--helix-color-foreground-media));border-radius: var(--helix-radii-sm);box-sizing: border-box;display: flex;inset-block-start: 50%;inset-inline-start: 50%;justify-content: center;max-block-size: var(--qr-code-logo-size, 27%);max-inline-size: var(--qr-code-logo-size, 27%);min-block-size: var(--qr-code-logo-size, 27%);min-inline-size: var(--qr-code-logo-size, 27%);padding: var(--qr-code-logo-padding, 6%);position: absolute;translate: -50% -50%;}[part="logo"] slot::slotted(*) {block-size: 100%;inline-size: 100%;object-fit: contain;}[part="logo"][hidden] {display: none;}@media print {:host {print-color-adjust: economy;}}`);
@@ -1,21 +1,2 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- display: inline;
4
- font: inherit;
5
- }
6
-
7
- [part="quote"] {
8
-
9
- color: var(--quote-color, var(--helix-color-foreground-muted));
10
- font: inherit;
11
-
12
- font-family: var(--quote-font-family, inherit);
13
- font-style: var(--quote-font-style, italic);
14
- font-weight: var(--quote-font-weight, inherit);
15
- }
16
-
17
- @media print {
18
- :host {
19
- print-color-adjust: economy;
20
- }
21
- }`);
2
+ export const styles = createSheet(`:host {display: inline;font: inherit;}[part="quote"] {color: var(--quote-color, var(--helix-color-foreground-muted));font: inherit;font-family: var(--quote-font-family, inherit);font-style: var(--quote-font-style, italic);font-weight: var(--quote-font-weight, inherit);}@media print {:host {print-color-adjust: economy;}}`);
@@ -1,22 +1,2 @@
1
1
  import { createSheet } from '@fusion.dev/helix-core';
2
- export const styles = createSheet(`:host {
3
- display: flex;
4
- flex-direction: column;
5
- gap: var(--helix-space-2xs);
6
- }
7
-
8
- [part="items"] {
9
- display: flex;
10
- flex-direction: column;
11
- gap: var(--radio-group-gap, var(--helix-space-xs));
12
- }
13
-
14
- :host([orientation="horizontal"]) [part="items"] {
15
- column-gap: var(--radio-group-gap, var(--helix-space-md));
16
- flex-direction: row;
17
- flex-wrap: wrap;
18
- }
19
-
20
- :host(:state(invalid)) [part="items"] {
21
- --radio-border-color: var(--helix-color-danger);
22
- }`);
2
+ export const styles = createSheet(`:host {display: flex;flex-direction: column;gap: var(--helix-space-2xs);}[part="items"] {display: flex;flex-direction: column;gap: var(--radio-group-gap, var(--helix-space-xs));}:host([orientation="horizontal"]) [part="items"] {column-gap: var(--radio-group-gap, var(--helix-space-md));flex-direction: row;flex-wrap: wrap;}:host(:state(invalid)) [part="items"] {--radio-border-color: var(--helix-color-danger);}`);