@fusion.dev/helix 0.104.1 → 0.106.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 (198) hide show
  1. package/custom-elements.json +13098 -4950
  2. package/dist/accordion/item/accordion-item.d.ts +9 -10
  3. package/dist/accordion/root/accordion-root.d.ts +8 -9
  4. package/dist/announcement/root/announcement-root.d.ts +7 -7
  5. package/dist/app-header/root/app-header-root.d.ts +14 -12
  6. package/dist/area-chart/root/area-chart-root.d.ts +23 -32
  7. package/dist/aura/root/aura-root.d.ts +32 -31
  8. package/dist/avatar/group/avatar-group.d.ts +8 -11
  9. package/dist/avatar/root/avatar-root.d.ts +4 -5
  10. package/dist/badge/root/badge-root.d.ts +7 -8
  11. package/dist/bar-chart/root/bar-chart-root.d.ts +17 -16
  12. package/dist/blockquote/root/blockquote-root.d.ts +4 -5
  13. package/dist/breadcrumbs/breadcrumb/breadcrumb.d.ts +7 -7
  14. package/dist/breadcrumbs/root/breadcrumbs-root.d.ts +2 -2
  15. package/dist/button/root/button-root.d.ts +16 -13
  16. package/dist/button-group/root/button-group-root.d.ts +6 -6
  17. package/dist/callout/root/callout-root.d.ts +8 -8
  18. package/dist/canvas/edge/canvas-edge.d.ts +3 -3
  19. package/dist/canvas/node/canvas-node.d.ts +17 -18
  20. package/dist/canvas/root/canvas-root.d.ts +18 -19
  21. package/dist/card/root/card-root.d.ts +14 -14
  22. package/dist/carousel/root/carousel-root.d.ts +11 -14
  23. package/dist/chat/composer/chat-composer.d.ts +10 -11
  24. package/dist/chat/message/chat-message.d.ts +18 -18
  25. package/dist/chat/root/chat-root.d.ts +15 -18
  26. package/dist/checkbox/root/checkbox-root.d.ts +17 -16
  27. package/dist/checkbox-group/root/checkbox-group-root.d.ts +6 -5
  28. package/dist/code/root/code-root.d.ts +9 -9
  29. package/dist/code-block/root/code-block-root.d.ts +14 -15
  30. package/dist/color-input/root/color-input-root.d.ts +13 -18
  31. package/dist/color-picker/root/color-picker-root.d.ts +26 -27
  32. package/dist/combobox/root/combobox-root.css.js +3 -2
  33. package/dist/combobox/root/combobox-root.d.ts +8 -8
  34. package/dist/command/root/command-root.d.ts +5 -6
  35. package/dist/copy-button/root/copy-button-root.d.ts +4 -5
  36. package/dist/data-table/root/data-table-root.d.ts +30 -37
  37. package/dist/date-input/root/date-input-root.d.ts +15 -17
  38. package/dist/date-picker/root/date-picker-root.d.ts +11 -12
  39. package/dist/description-list/item/description-list-item.d.ts +2 -2
  40. package/dist/description-list/root/description-list-root.d.ts +13 -14
  41. package/dist/dialog/root/dialog-root.d.ts +9 -10
  42. package/dist/divider/root/divider-root.d.ts +11 -12
  43. package/dist/donut-chart/root/donut-chart-root.d.ts +12 -15
  44. package/dist/drawer/root/drawer-root.d.ts +14 -13
  45. package/dist/drilldown/item/drilldown-item.d.ts +3 -4
  46. package/dist/drilldown/root/drilldown-root.d.ts +6 -9
  47. package/dist/element-events.generated.js +19 -1
  48. package/dist/empty/root/empty-root.d.ts +3 -4
  49. package/dist/file-input/root/file-input-root.d.ts +8 -12
  50. package/dist/filter-input/chip/filter-chip.d.ts +11 -10
  51. package/dist/filter-input/field/filter-field.d.ts +7 -8
  52. package/dist/filter-input/menu/filter-menu.d.ts +7 -8
  53. package/dist/filter-input/operator/filter-operator.d.ts +5 -5
  54. package/dist/filter-input/root/filter-input-root.d.ts +25 -27
  55. package/dist/flex/root/flex-root.d.ts +9 -14
  56. package/dist/format-date/root/format-date-root.d.ts +5 -8
  57. package/dist/grid/root/grid-root.d.ts +13 -11
  58. package/dist/heatmap/root/heatmap-root.d.ts +34 -31
  59. package/dist/icon/root/icon-root.d.ts +6 -6
  60. package/dist/icon-button/root/icon-button-root.d.ts +9 -10
  61. package/dist/image/root/image-root.d.ts +10 -10
  62. package/dist/input/root/input-root.d.ts +10 -13
  63. package/dist/kbd/root/kbd-root.d.ts +6 -7
  64. package/dist/legend/root/legend-root.d.ts +19 -20
  65. package/dist/lightbox/item/lightbox-item.d.ts +4 -5
  66. package/dist/lightbox/root/lightbox-root.d.ts +13 -16
  67. package/dist/line-chart/root/line-chart-root.d.ts +24 -25
  68. package/dist/list/item/list-item.d.ts +7 -8
  69. package/dist/list/root/list-root.d.ts +7 -9
  70. package/dist/listbox/root/listbox-root.d.ts +8 -9
  71. package/dist/loader/root/loader-root.d.ts +5 -7
  72. package/dist/map/area/map-area.css.d.ts +1 -0
  73. package/dist/map/area/map-area.css.js +24 -0
  74. package/dist/map/area/map-area.d.ts +27 -0
  75. package/dist/map/area/map-area.js +20 -0
  76. package/dist/map/buildings/map-buildings.css.d.ts +1 -0
  77. package/dist/map/buildings/map-buildings.css.js +27 -0
  78. package/dist/map/buildings/map-buildings.d.ts +28 -0
  79. package/dist/map/buildings/map-buildings.js +20 -0
  80. package/dist/map/contours/map-contours.css.d.ts +1 -0
  81. package/dist/map/contours/map-contours.css.js +8 -0
  82. package/dist/map/contours/map-contours.d.ts +25 -0
  83. package/dist/map/contours/map-contours.js +16 -0
  84. package/dist/map/index.d.ts +10 -0
  85. package/dist/map/index.js +10 -0
  86. package/dist/map/landcover/map-landcover.css.d.ts +1 -0
  87. package/dist/map/landcover/map-landcover.css.js +5 -0
  88. package/dist/map/landcover/map-landcover.d.ts +25 -0
  89. package/dist/map/landcover/map-landcover.js +16 -0
  90. package/dist/map/marker/map-marker.css.d.ts +1 -0
  91. package/dist/map/marker/map-marker.css.js +340 -0
  92. package/dist/map/marker/map-marker.d.ts +51 -0
  93. package/dist/map/marker/map-marker.js +29 -0
  94. package/dist/map/points/map-points.css.d.ts +1 -0
  95. package/dist/map/points/map-points.css.js +82 -0
  96. package/dist/map/points/map-points.d.ts +29 -0
  97. package/dist/map/points/map-points.js +20 -0
  98. package/dist/map/position/map-position.css.d.ts +1 -0
  99. package/dist/map/position/map-position.css.js +239 -0
  100. package/dist/map/position/map-position.d.ts +41 -0
  101. package/dist/map/position/map-position.js +26 -0
  102. package/dist/map/raster/map-raster.css.d.ts +1 -0
  103. package/dist/map/raster/map-raster.css.js +4 -0
  104. package/dist/map/raster/map-raster.d.ts +23 -0
  105. package/dist/map/raster/map-raster.js +16 -0
  106. package/dist/map/root/map-root.css.js +252 -1
  107. package/dist/map/root/map-root.d.ts +13 -12
  108. package/dist/map/root/map-root.js +4 -0
  109. package/dist/map/route/map-route.css.d.ts +1 -0
  110. package/dist/map/route/map-route.css.js +25 -0
  111. package/dist/map/route/map-route.d.ts +31 -0
  112. package/dist/map/route/map-route.js +23 -0
  113. package/dist/map/terrain/map-terrain.css.d.ts +1 -0
  114. package/dist/map/terrain/map-terrain.css.js +12 -0
  115. package/dist/map/terrain/map-terrain.d.ts +27 -0
  116. package/dist/map/terrain/map-terrain.js +16 -0
  117. package/dist/megamenu/root/megamenu-root.d.ts +14 -14
  118. package/dist/menu/item/menu-item.d.ts +8 -8
  119. package/dist/menu/root/menu-root.d.ts +9 -9
  120. package/dist/meter/root/meter-root.d.ts +29 -38
  121. package/dist/navigation/root/navigation-root.d.ts +4 -5
  122. package/dist/notifications/group/notification-group.d.ts +9 -13
  123. package/dist/notifications/notification/notification.d.ts +27 -33
  124. package/dist/notifications/root/notifications-root.d.ts +9 -11
  125. package/dist/number-input/root/number-input-root.d.ts +16 -18
  126. package/dist/object-inspector/root/object-inspector-root.d.ts +11 -12
  127. package/dist/option/group/option-group.d.ts +3 -4
  128. package/dist/option/root/option-root.d.ts +7 -8
  129. package/dist/orb/root/orb-root.d.ts +30 -36
  130. package/dist/outline/root/outline-root.d.ts +8 -10
  131. package/dist/pagination/root/pagination-root.d.ts +13 -23
  132. package/dist/pagination/size/pagination-size.d.ts +7 -7
  133. package/dist/pagination/summary/pagination-summary.d.ts +3 -4
  134. package/dist/pin-input/root/pin-input-root.d.ts +8 -11
  135. package/dist/popover/root/popover-root.d.ts +14 -16
  136. package/dist/progress/root/progress-root.d.ts +10 -13
  137. package/dist/qr-code/root/qr-code-root.d.ts +13 -14
  138. package/dist/quote/root/quote-root.d.ts +2 -2
  139. package/dist/radio/group/radio-group.d.ts +6 -6
  140. package/dist/radio/root/radio-root.d.ts +16 -19
  141. package/dist/rating/root/rating-root.d.ts +9 -9
  142. package/dist/sandbox/preview/sandbox-preview.d.ts +18 -19
  143. package/dist/sandbox/root/sandbox-root.d.ts +27 -27
  144. package/dist/sandbox/source/sandbox-source.d.ts +9 -12
  145. package/dist/sandbox/status-bar/sandbox-status-bar.d.ts +9 -11
  146. package/dist/sandbox/terminal/sandbox-terminal.d.ts +13 -15
  147. package/dist/sandbox/toolbar/sandbox-toolbar.d.ts +8 -9
  148. package/dist/scatter-chart/root/scatter-chart-root.d.ts +18 -29
  149. package/dist/scroll-area/root/scroll-area-root.d.ts +13 -13
  150. package/dist/select/root/select-root.d.ts +14 -14
  151. package/dist/shared/mixin-control-surface/mixin-control-surface.d.ts +8 -2
  152. package/dist/shared/viewport/viewport.css.js +7 -2
  153. package/dist/skeleton/root/skeleton-root.d.ts +6 -7
  154. package/dist/skip-link/root/skip-link-root.d.ts +16 -19
  155. package/dist/slider/root/slider-root.d.ts +16 -18
  156. package/dist/sparkline/root/sparkline-root.d.ts +16 -24
  157. package/dist/speed-dial/item/speed-dial-item.d.ts +5 -5
  158. package/dist/speed-dial/root/speed-dial-root.d.ts +3 -4
  159. package/dist/splitter/root/splitter-root.d.ts +23 -32
  160. package/dist/stat/group/stat-group.d.ts +4 -5
  161. package/dist/stat/root/stat-root.d.ts +4 -5
  162. package/dist/steps/root/steps-root.d.ts +12 -13
  163. package/dist/switch/root/switch-root.d.ts +13 -17
  164. package/dist/table/cell/table-cell.css.js +5 -0
  165. package/dist/table/cell/table-cell.d.ts +4 -4
  166. package/dist/table/column/table-column.d.ts +3 -4
  167. package/dist/table/root/table-root.d.ts +5 -6
  168. package/dist/table/row/table-row.d.ts +3 -3
  169. package/dist/tabs/panel/tab-panel.d.ts +2 -3
  170. package/dist/tabs/root/tabs-root.d.ts +12 -11
  171. package/dist/tabs/tab/tab.d.ts +4 -4
  172. package/dist/tag/root/tag-root.d.ts +10 -11
  173. package/dist/text/root/text-root.d.ts +22 -30
  174. package/dist/textarea/root/textarea-root.d.ts +4 -5
  175. package/dist/time-input/root/time-input-root.d.ts +12 -14
  176. package/dist/time-picker/root/time-picker-root.d.ts +8 -10
  177. package/dist/timeline/item/timeline-item.d.ts +2 -2
  178. package/dist/timeline/root/timeline-root.d.ts +3 -3
  179. package/dist/toast/item/toast-item.d.ts +7 -8
  180. package/dist/toast/root/toast-root.d.ts +10 -12
  181. package/dist/toggle/group/toggle-group.d.ts +10 -12
  182. package/dist/toggle/root/toggle-root.d.ts +2 -3
  183. package/dist/toolbar/root/toolbar-root.d.ts +3 -3
  184. package/dist/tooltip/root/tooltip-root.d.ts +10 -10
  185. package/dist/tour/root/tour-root.d.ts +5 -6
  186. package/dist/tour/stop/tour-stop.d.ts +14 -14
  187. package/dist/tree/item/tree-item.d.ts +6 -9
  188. package/dist/tree/root/tree-root.d.ts +7 -8
  189. package/dist/trend/root/trend-root.d.ts +12 -19
  190. package/dist/video/root/video-root.d.ts +15 -21
  191. package/dist/video-playlist/item/video-playlist-item.d.ts +4 -4
  192. package/dist/video-playlist/menu/video-playlist-menu.d.ts +14 -16
  193. package/dist/video-playlist/root/video-playlist-root.d.ts +5 -5
  194. package/dist/virtual-list/root/virtual-list-root.d.ts +6 -8
  195. package/package.json +6 -6
  196. package/types/jsx.d.ts +14221 -11621
  197. package/types/svelte.d.ts +10 -0
  198. package/types/vue.d.ts +2679 -1951
@@ -0,0 +1,340 @@
1
+ import { createSheet } from '@fusion.dev/helix-core';
2
+ export const styles = createSheet(`:host {
3
+ --_map-marker-color: var(--map-marker-color, var(--helix-color-primary));
4
+
5
+ --_map-marker-fill: var(--map-marker-color, var(--helix-color-primary-surface));
6
+ --_map-marker-ink: var(--map-marker-ink, var(--helix-color-foreground-on-accent));
7
+
8
+ --_map-marker-edge: var(--helix-color-surface);
9
+ --_map-marker-lift: 0px;
10
+ --_map-marker-shadow: var(--helix-shadow-sm);
11
+ --_map-marker-size: var(--map-marker-size, 0.875rem);
12
+
13
+ --_map-marker-leg: 0px;
14
+ --_map-marker-leg-angle: 0rad;
15
+ --_map-marker-x: 0px;
16
+ --_map-marker-y: 0px;
17
+ block-size: 0;
18
+ display: block;
19
+ inline-size: 0;
20
+ inset-block-start: var(--_map-marker-y);
21
+ left: var(--_map-marker-x);
22
+ position: absolute;
23
+ }
24
+
25
+ :host(:hover),
26
+ :host(:focus-within) {
27
+ z-index: calc(var(--helix-layer-raised) + 1);
28
+ }
29
+
30
+ :host(:not([style*="--_map-marker-x"])) {
31
+ visibility: hidden;
32
+ }
33
+
34
+ :host(:state(behind)) {
35
+ opacity: 0;
36
+ pointer-events: none;
37
+ }
38
+
39
+ [part="marker"] {
40
+ align-items: center;
41
+ cursor: pointer;
42
+ display: flex;
43
+ gap: var(--helix-space-xs);
44
+ left: 0;
45
+ outline: none;
46
+
47
+ pointer-events: none;
48
+ position: absolute;
49
+ top: 0;
50
+ transform: translate(calc(var(--_map-marker-size) / -2), calc(-50% - var(--_map-marker-lift)));
51
+ }
52
+
53
+ :host(:dir(rtl)) [part="marker"],
54
+ :host(:state(start)) [part="marker"] {
55
+ transform: translate(
56
+ calc(-100% + var(--_map-marker-size) / 2),
57
+ calc(-50% - var(--_map-marker-lift))
58
+ );
59
+ }
60
+
61
+ :host(:dir(rtl):state(start)) [part="marker"] {
62
+ transform: translate(calc(var(--_map-marker-size) / -2), calc(-50% - var(--_map-marker-lift)));
63
+ }
64
+
65
+ :host(:state(start)) [part="marker"] {
66
+ flex-direction: row-reverse;
67
+ }
68
+
69
+ [part="point"] {
70
+ align-items: center;
71
+ background: var(--_map-marker-color);
72
+ block-size: var(--_map-marker-size);
73
+ border: var(--helix-border-thick) solid var(--_map-marker-edge);
74
+ border-radius: var(--helix-radii-full);
75
+ box-shadow: var(--_map-marker-shadow);
76
+ box-sizing: border-box;
77
+ color: var(--_map-marker-ink);
78
+ display: grid;
79
+ flex: none;
80
+ font-family: var(--helix-font-sans);
81
+ font-size: calc(var(--_map-marker-size) * 0.5);
82
+ font-weight: var(--helix-weight-semibold);
83
+ inline-size: var(--_map-marker-size);
84
+ isolation: isolate;
85
+ justify-items: center;
86
+ line-height: 1;
87
+ pointer-events: auto;
88
+ position: relative;
89
+ transition: transform var(--helix-duration-fast) var(--helix-easing-standard);
90
+ }
91
+
92
+ :host(:state(icon)) {
93
+ --_map-marker-size: var(--map-marker-size, 1.375rem);
94
+ }
95
+
96
+ :host(:state(icon)) [part="point"] {
97
+ background: var(--_map-marker-fill);
98
+ }
99
+
100
+ :host([shape="rounded"]) [part="point"] {
101
+ border-radius: var(--helix-radii-md);
102
+ }
103
+
104
+ :host([shape="square"]) [part="point"] {
105
+ border-radius: var(--helix-radii-none);
106
+ }
107
+
108
+ :host([shape="diamond"]) [part="point"] {
109
+ border-radius: var(--helix-radii-none);
110
+ rotate: 45deg;
111
+ scale: 0.85;
112
+ }
113
+
114
+ :host([shape="diamond"]) ::slotted(*) {
115
+ rotate: -45deg;
116
+ }
117
+
118
+ :host([shape="ring"]) [part="point"] {
119
+ background: var(--helix-color-surface);
120
+ border-color: var(--_map-marker-color);
121
+ border-width: calc(var(--_map-marker-size) * 0.18);
122
+ color: var(--_map-marker-color);
123
+ }
124
+
125
+ :host([shape="pin"]) {
126
+ --_map-marker-lift: calc(var(--_map-marker-size) * 0.72);
127
+ --_map-marker-size: var(--map-marker-size, 1.625rem);
128
+ }
129
+
130
+ :host([shape="pin"]) [part="point"] {
131
+ background: var(--_map-marker-fill);
132
+ border: 0;
133
+ border-radius: var(--helix-radii-full);
134
+ box-shadow: none;
135
+ }
136
+
137
+ :host([shape="pin"]) [part="point"]::before {
138
+ background: var(--_map-marker-fill);
139
+ border: var(--helix-border-thick) solid var(--_map-marker-edge);
140
+ border-radius: var(--helix-radii-full) var(--helix-radii-full) var(--helix-radii-full)
141
+ var(--helix-radii-none);
142
+ box-shadow: var(--_map-marker-shadow);
143
+ box-sizing: border-box;
144
+ content: "";
145
+ inset: 0;
146
+ position: absolute;
147
+ rotate: -45deg;
148
+ z-index: var(--helix-layer-beneath);
149
+ }
150
+
151
+ :host([shape="pin"]) [part="point"]::after {
152
+ background: var(--_map-marker-fill);
153
+ block-size: calc(var(--_map-marker-size) * 0.26);
154
+ border: var(--helix-border-thin) solid var(--_map-marker-edge);
155
+ border-radius: var(--helix-radii-full);
156
+ box-sizing: border-box;
157
+ content: "";
158
+ inline-size: calc(var(--_map-marker-size) * 0.26);
159
+ left: 50%;
160
+ position: absolute;
161
+ top: calc(50% + var(--_map-marker-lift));
162
+ translate: -50% -50%;
163
+ z-index: calc(var(--helix-layer-beneath) - 1);
164
+ }
165
+
166
+ :host(:state(cluster)) {
167
+ --_map-marker-lift: 0px;
168
+ --_map-marker-size: var(--map-marker-cluster-size, 1.75rem);
169
+ }
170
+
171
+ :host(:state(cluster)) [part="point"] {
172
+ background: var(--map-marker-cluster-color, var(--helix-color-primary-surface));
173
+ border: var(--helix-border-thick) solid var(--_map-marker-edge);
174
+ border-radius: var(--helix-radii-full);
175
+ box-shadow:
176
+ 0 0 0 calc(var(--_map-marker-size) * 0.18)
177
+ color-mix(
178
+ in oklab,
179
+ var(--map-marker-cluster-color, var(--helix-color-primary-surface)) 28%,
180
+ transparent
181
+ ),
182
+ var(--_map-marker-shadow);
183
+ color: var(--helix-color-foreground-on-accent);
184
+ font-size: calc(var(--_map-marker-size) * 0.42);
185
+ font-variant-numeric: tabular-nums;
186
+ rotate: none;
187
+ scale: none;
188
+ }
189
+
190
+ :host(:state(cluster)) [part="point"]::before,
191
+ :host(:state(cluster)) [part="point"]::after {
192
+ content: none;
193
+ }
194
+
195
+ :host(:state(fanned))::before {
196
+ --_map-marker-leg-ink: color-mix(
197
+ in oklab,
198
+ var(--helix-color-foreground) 55%,
199
+ var(--helix-color-surface)
200
+ );
201
+ --_map-marker-leg-dot: calc(var(--helix-border-thick) * 1.75);
202
+
203
+ background:
204
+ radial-gradient(
205
+ circle at calc(100% - var(--_map-marker-leg-dot)) 50%,
206
+ var(--_map-marker-leg-ink) var(--_map-marker-leg-dot),
207
+ transparent calc(var(--_map-marker-leg-dot) + var(--helix-border-thin))
208
+ ),
209
+ linear-gradient(var(--_map-marker-leg-ink), var(--_map-marker-leg-ink)) 0 50% / 100%
210
+ var(--helix-border-thick) no-repeat;
211
+
212
+ block-size: calc((var(--_map-marker-leg-dot) + var(--helix-border-thin)) * 2);
213
+ content: "";
214
+ inline-size: calc(var(--_map-marker-leg) + var(--_map-marker-leg-dot));
215
+ left: 0;
216
+ position: absolute;
217
+ rotate: var(--_map-marker-leg-angle);
218
+ top: 0;
219
+ transform-origin: 0 50%;
220
+ translate: 0 -50%;
221
+ }
222
+
223
+ :host(:state(clustered)) {
224
+ display: none;
225
+ }
226
+
227
+ :host([separation="outlined"]) {
228
+ --_map-marker-shadow: none;
229
+ }
230
+
231
+ :host([separation="elevated"]) {
232
+ --_map-marker-shadow: var(--helix-shadow-md);
233
+ }
234
+
235
+ :host([separation="filled"]) {
236
+ --_map-marker-edge: transparent;
237
+ --_map-marker-shadow: 0 0 0 calc(var(--_map-marker-size) * 0.3)
238
+ color-mix(in oklab, var(--_map-marker-color) 22%, transparent);
239
+ }
240
+
241
+ :host([separation="plain"]) {
242
+ --_map-marker-edge: transparent;
243
+ --_map-marker-shadow: none;
244
+ }
245
+
246
+ [part="label"] {
247
+
248
+ background: var(--helix-color-surface-overlay);
249
+ border: var(--map-marker-label-border-width, var(--helix-border-floating)) solid
250
+ var(--helix-color-border);
251
+ border-radius: var(--helix-radii-sm);
252
+ box-shadow: var(--map-marker-label-shadow, var(--helix-shadow-floating));
253
+ color: var(--helix-color-foreground);
254
+ font-family: var(--helix-font-sans);
255
+ font-size: var(--helix-text-sm);
256
+ font-weight: var(--helix-weight-medium);
257
+ opacity: 0;
258
+ padding: var(--helix-space-2xs) var(--helix-space-xs);
259
+ pointer-events: none;
260
+ transition: opacity var(--helix-duration-fast) var(--helix-easing-standard);
261
+ white-space: nowrap;
262
+ }
263
+
264
+ :host(:state(cluster)) [part="label"] {
265
+
266
+ inline-size: max-content;
267
+ max-inline-size: 16rem;
268
+ white-space: normal;
269
+ }
270
+
271
+ :host([material="glass"]) [part="label"] {
272
+ backdrop-filter: var(--helix-material-backdrop);
273
+ background: var(--helix-material-translucent);
274
+ }
275
+
276
+ :host([material="frosted"]) [part="label"] {
277
+ backdrop-filter: blur(var(--helix-material-blur-lg));
278
+ background: var(--helix-material-translucent-strong);
279
+ }
280
+
281
+ :host([material="transparent"]) [part="label"] {
282
+ backdrop-filter: none;
283
+ background: transparent;
284
+ }
285
+
286
+ :host(:hover) [part="label"],
287
+ [part="marker"]:focus-visible [part="label"] {
288
+ opacity: 1;
289
+ }
290
+
291
+ :host(:hover) [part="point"],
292
+ [part="marker"]:focus-visible [part="point"] {
293
+ transform: scale(1.25);
294
+ }
295
+
296
+ [part="marker"]:focus-visible [part="point"] {
297
+ outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
298
+ outline-offset: var(--helix-size-focus-offset);
299
+ }
300
+
301
+ :host([tone="accent"]) {
302
+ --_map-marker-color: var(--helix-color-accent);
303
+ --_map-marker-fill: var(--helix-color-accent-surface);
304
+ }
305
+ :host([tone="danger"]) {
306
+ --_map-marker-color: var(--helix-color-danger);
307
+ --_map-marker-fill: var(--helix-color-danger-surface);
308
+ }
309
+ :host([tone="info"]) {
310
+ --_map-marker-color: var(--helix-color-info);
311
+ --_map-marker-fill: var(--helix-color-info-surface);
312
+ }
313
+
314
+ :host([tone="neutral"]) {
315
+ --_map-marker-color: var(--helix-color-foreground-muted);
316
+ --_map-marker-fill: var(--helix-color-foreground-muted);
317
+ --_map-marker-ink: var(--map-marker-ink, var(--helix-color-surface));
318
+ }
319
+ :host([tone="success"]) {
320
+ --_map-marker-color: var(--helix-color-success);
321
+ --_map-marker-fill: var(--helix-color-success-surface);
322
+ }
323
+ :host([tone="warning"]) {
324
+ --_map-marker-color: var(--helix-color-warning);
325
+ --_map-marker-fill: var(--helix-color-warning-surface);
326
+ }
327
+
328
+ :host(:state(passed)) {
329
+ --_map-marker-color: var(--helix-color-foreground-muted);
330
+ --_map-marker-fill: var(--helix-color-foreground-muted);
331
+ --_map-marker-ink: var(--helix-color-surface);
332
+ --_map-marker-shadow: none;
333
+ }
334
+
335
+ @media (prefers-reduced-motion: reduce) {
336
+ [part="label"],
337
+ [part="point"] {
338
+ transition: none;
339
+ }
340
+ }`);
@@ -0,0 +1,51 @@
1
+ import { HelixHeadlessMapMarker } from '@fusion.dev/helix-headless/map';
2
+ import type { CSSResultGroup } from 'lit';
3
+ /**
4
+ * @summary A named place on a map.
5
+ *
6
+ * @description
7
+ * A point in your theme's colors with the place's name beside it. Uses your
8
+ * primary color unless `tone` sets another.
9
+ *
10
+ * @since 0.105.0
11
+ * @status experimental
12
+ * @category media
13
+ * @aliases Map pin, Place, Point of interest
14
+ * @documentation https://fusion.dev/helix/components/map
15
+ *
16
+ * @cssproperty --map-marker-cluster-color - A cluster's fill color.
17
+ * @cssproperty --map-marker-cluster-size - A cluster's width.
18
+ * @cssproperty --map-marker-color - The point's color when no tone is set.
19
+ * @cssproperty --map-marker-ink - The color of a letter or icon in the point. Set it with `--map-marker-color` when white is hard to read on your color.
20
+ * @cssproperty --map-marker-label-border-width - The width of the name's border.
21
+ * @cssproperty --map-marker-label-shadow - The name's shadow.
22
+ * @cssproperty --map-marker-size - The point's width.
23
+ */
24
+ export declare class HelixMapMarker extends HelixHeadlessMapMarker {
25
+ /**
26
+ * The background of the name. Leave unset for solid. `glass` shows the map
27
+ * through a blur, `frosted` blurs more, and `transparent` has no background.
28
+ */
29
+ material?: 'frosted' | 'glass' | 'transparent';
30
+ /**
31
+ * How the point stands out from the map. Leave unset for a surface-colored
32
+ * edge and a small shadow. `outlined` has the edge only, `elevated` a larger
33
+ * shadow, `filled` a soft halo in the marker's color, and `plain` no edge or
34
+ * shadow.
35
+ */
36
+ separation?: 'elevated' | 'filled' | 'outlined' | 'plain';
37
+ /**
38
+ * The point's shape. A circle unless set. Use shapes with tones to tell
39
+ * kinds of places apart. `pin` places the tip of a pin on the location, for
40
+ * a destination.
41
+ */
42
+ shape?: 'diamond' | 'pin' | 'ring' | 'rounded' | 'square';
43
+ /** The point's color. Uses your primary color unless set. */
44
+ tone?: 'accent' | 'danger' | 'info' | 'neutral' | 'primary' | 'success' | 'warning';
45
+ static styles: CSSResultGroup;
46
+ }
47
+ declare global {
48
+ interface HTMLElementTagNameMap {
49
+ 'helix-map-marker': HelixMapMarker;
50
+ }
51
+ }
@@ -0,0 +1,29 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { customElement } from '@fusion.dev/helix-core';
8
+ import { HelixHeadlessMapMarker } from '@fusion.dev/helix-headless/map';
9
+ import { property } from 'lit/decorators.js';
10
+ import { styles } from './map-marker.css.js';
11
+ let HelixMapMarker = class HelixMapMarker extends HelixHeadlessMapMarker {
12
+ static { this.styles = styles; }
13
+ };
14
+ __decorate([
15
+ property({ reflect: true })
16
+ ], HelixMapMarker.prototype, "material", void 0);
17
+ __decorate([
18
+ property({ reflect: true })
19
+ ], HelixMapMarker.prototype, "separation", void 0);
20
+ __decorate([
21
+ property({ reflect: true })
22
+ ], HelixMapMarker.prototype, "shape", void 0);
23
+ __decorate([
24
+ property({ reflect: true })
25
+ ], HelixMapMarker.prototype, "tone", void 0);
26
+ HelixMapMarker = __decorate([
27
+ customElement('helix-map-marker')
28
+ ], HelixMapMarker);
29
+ export { HelixMapMarker };
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,82 @@
1
+ import { createSheet } from '@fusion.dev/helix-core';
2
+ export const styles = createSheet(`:host {
3
+ border-color: var(--map-points-casing-color, var(--helix-color-surface));
4
+ color: var(--map-points-color, var(--helix-color-primary-surface));
5
+
6
+ block-size: 0;
7
+ display: block;
8
+ inline-size: 0;
9
+ inset-block-start: 0;
10
+ left: 0;
11
+ outline-color: var(--map-points-ink, var(--helix-color-foreground-on-accent));
12
+ pointer-events: none;
13
+ position: absolute;
14
+ }
15
+
16
+ [part~="place"] {
17
+ block-size: var(--helix-size-control-sm);
18
+ border-radius: var(--helix-radii-full);
19
+ inline-size: var(--helix-size-control-sm);
20
+ left: var(--_map-place-x);
21
+ outline: none;
22
+ position: absolute;
23
+ top: var(--_map-place-y);
24
+ translate: -50% -50%;
25
+ }
26
+
27
+ [part~="count"] {
28
+ block-size: var(--helix-size-control-lg);
29
+ inline-size: var(--helix-size-control-lg);
30
+ }
31
+
32
+ [part~="place"]:focus-visible {
33
+ outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
34
+ outline-offset: var(--helix-size-focus-offset);
35
+ }
36
+
37
+ [part="label"] {
38
+ background: var(--helix-color-surface-overlay);
39
+ border: var(--helix-border-floating) solid var(--helix-color-border);
40
+ border-radius: var(--helix-radii-sm);
41
+ box-shadow: var(--helix-shadow-floating);
42
+ color: var(--helix-color-foreground);
43
+ font-family: var(--helix-font-sans);
44
+ font-size: var(--helix-text-sm);
45
+ font-weight: var(--helix-weight-medium);
46
+ inset-inline-start: calc(100% + var(--helix-space-sm));
47
+ opacity: 0;
48
+ padding: var(--helix-space-2xs) var(--helix-space-xs);
49
+ position: absolute;
50
+ top: 50%;
51
+ translate: 0 -50%;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ [part~="place"]:focus-visible [part="label"] {
56
+ opacity: 1;
57
+ }
58
+
59
+ :host([tone="accent"]) {
60
+ color: var(--helix-color-accent-surface);
61
+ }
62
+
63
+ :host([tone="danger"]) {
64
+ color: var(--helix-color-danger-surface);
65
+ }
66
+
67
+ :host([tone="info"]) {
68
+ color: var(--helix-color-info-surface);
69
+ }
70
+
71
+ :host([tone="neutral"]) {
72
+ color: var(--helix-color-foreground-muted);
73
+ outline-color: var(--map-points-ink, var(--helix-color-surface));
74
+ }
75
+
76
+ :host([tone="success"]) {
77
+ color: var(--helix-color-success-surface);
78
+ }
79
+
80
+ :host([tone="warning"]) {
81
+ color: var(--helix-color-warning-surface);
82
+ }`);
@@ -0,0 +1,29 @@
1
+ import { HelixHeadlessMapPoints } from '@fusion.dev/helix-headless/map';
2
+ import type { CSSResultGroup } from 'lit';
3
+ /**
4
+ * @summary Thousands of places on a map, loaded from data.
5
+ *
6
+ * @description
7
+ * Draws the points in your theme's colors, with counts in white on your
8
+ * primary color unless `tone` sets another.
9
+ *
10
+ * @since 0.105.0
11
+ * @status experimental
12
+ * @category media
13
+ * @aliases Data layer, GeoJSON layer, Point cloud, Point layer
14
+ * @documentation https://fusion.dev/helix/components/map
15
+ *
16
+ * @cssproperty --map-points-casing-color - The edge around each point and count.
17
+ * @cssproperty --map-points-color - The points' color when no tone is set.
18
+ * @cssproperty --map-points-ink - The color of the numbers in counts.
19
+ */
20
+ export declare class HelixMapPoints extends HelixHeadlessMapPoints {
21
+ /** The points' color. Uses your primary color unless set. */
22
+ tone?: 'accent' | 'danger' | 'info' | 'neutral' | 'primary' | 'success' | 'warning';
23
+ static styles: CSSResultGroup;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'helix-map-points': HelixMapPoints;
28
+ }
29
+ }
@@ -0,0 +1,20 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { customElement } from '@fusion.dev/helix-core';
8
+ import { HelixHeadlessMapPoints } from '@fusion.dev/helix-headless/map';
9
+ import { property } from 'lit/decorators.js';
10
+ import { styles } from './map-points.css.js';
11
+ let HelixMapPoints = class HelixMapPoints extends HelixHeadlessMapPoints {
12
+ static { this.styles = styles; }
13
+ };
14
+ __decorate([
15
+ property({ reflect: true })
16
+ ], HelixMapPoints.prototype, "tone", void 0);
17
+ HelixMapPoints = __decorate([
18
+ customElement('helix-map-points')
19
+ ], HelixMapPoints);
20
+ export { HelixMapPoints };
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;