@fusion.dev/helix 0.138.0 → 0.140.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.
package/types/svelte.d.ts CHANGED
@@ -4,167 +4,187 @@
4
4
  // types already describe, so this augments `SvelteHTMLElements` with them
5
5
  // rather than emitting a second copy that could disagree.
6
6
  import type { CustomElements } from '@fusion.dev/helix/jsx'
7
+ import type { HTMLAttributes } from 'svelte/elements'
8
+
9
+ // React's spellings, which Svelte reads another way or not at all.
10
+ type ReactOnly = 'className' | 'htmlFor' | 'key' | 'ref' | 'suppressHydrationWarning'
11
+
12
+ // The element a tag makes, where the DOM lib knows it.
13
+ type ElementOf<Tag extends string> = Tag extends keyof HTMLElementTagNameMap
14
+ ? HTMLElementTagNameMap[Tag]
15
+ : HTMLElement
16
+
17
+ // Svelte's attributes and lowercase events, then the Helix props and
18
+ // `onhelix-*` handlers Svelte's do not name. `onClick` and the other
19
+ // camel-case handlers are React's, and Svelte would read each as an event
20
+ // with a capital letter.
21
+ type Helix<Tag extends keyof CustomElements> = HTMLAttributes<ElementOf<Tag>> & {
22
+ [Key in keyof CustomElements[Tag] as Key extends
23
+ | keyof HTMLAttributes<ElementOf<Tag>>
24
+ | ReactOnly
25
+ | `on${Uppercase<string>}${string}`
26
+ ? never
27
+ : Key]: CustomElements[Tag][Key]
28
+ }
7
29
 
8
30
  declare module 'svelte/elements' {
9
31
  interface SvelteHTMLElements {
10
- 'helix-accordion-item': CustomElements['helix-accordion-item']
11
- 'helix-accordion': CustomElements['helix-accordion']
12
- 'helix-announcement': CustomElements['helix-announcement']
13
- 'helix-app-header': CustomElements['helix-app-header']
14
- 'helix-area-chart': CustomElements['helix-area-chart']
15
- 'helix-aura': CustomElements['helix-aura']
16
- 'helix-avatar-group': CustomElements['helix-avatar-group']
17
- 'helix-avatar': CustomElements['helix-avatar']
18
- 'helix-badge': CustomElements['helix-badge']
19
- 'helix-bar-chart': CustomElements['helix-bar-chart']
20
- 'helix-blockquote': CustomElements['helix-blockquote']
21
- 'helix-breadcrumb': CustomElements['helix-breadcrumb']
22
- 'helix-breadcrumbs': CustomElements['helix-breadcrumbs']
23
- 'helix-button-group': CustomElements['helix-button-group']
24
- 'helix-button': CustomElements['helix-button']
25
- 'helix-callout': CustomElements['helix-callout']
26
- 'helix-canvas-edge': CustomElements['helix-canvas-edge']
27
- 'helix-canvas-node': CustomElements['helix-canvas-node']
28
- 'danger': CustomElements['danger']
29
- 'success': CustomElements['success']
30
- 'helix-canvas': CustomElements['helix-canvas']
31
- 'helix-card': CustomElements['helix-card']
32
- 'helix-carousel': CustomElements['helix-carousel']
33
- 'helix-chat-composer': CustomElements['helix-chat-composer']
34
- 'helix-chat-message': CustomElements['helix-chat-message']
35
- 'helix-chat': CustomElements['helix-chat']
36
- 'helix-checkbox-group': CustomElements['helix-checkbox-group']
37
- 'helix-checkbox': CustomElements['helix-checkbox']
38
- 'helix-code-block': CustomElements['helix-code-block']
39
- 'helix-code': CustomElements['helix-code']
40
- 'helix-color-input': CustomElements['helix-color-input']
41
- 'helix-color-picker': CustomElements['helix-color-picker']
42
- 'helix-combobox': CustomElements['helix-combobox']
43
- 'helix-command': CustomElements['helix-command']
44
- 'helix-copy-button': CustomElements['helix-copy-button']
45
- 'helix-data-table': CustomElements['helix-data-table']
46
- 'helix-date-input': CustomElements['helix-date-input']
47
- 'helix-date-picker': CustomElements['helix-date-picker']
48
- 'helix-description-list-item': CustomElements['helix-description-list-item']
49
- 'helix-description-list': CustomElements['helix-description-list']
50
- 'helix-dialog': CustomElements['helix-dialog']
51
- 'helix-divider': CustomElements['helix-divider']
52
- 'helix-donut-chart': CustomElements['helix-donut-chart']
53
- 'helix-drawer': CustomElements['helix-drawer']
54
- 'helix-drilldown-item': CustomElements['helix-drilldown-item']
55
- 'helix-drilldown': CustomElements['helix-drilldown']
56
- 'helix-empty': CustomElements['helix-empty']
57
- 'helix-file-input': CustomElements['helix-file-input']
58
- 'helix-filter-chip': CustomElements['helix-filter-chip']
59
- 'helix-filter-field': CustomElements['helix-filter-field']
60
- 'helix-filter-menu': CustomElements['helix-filter-menu']
61
- 'helix-filter-operator': CustomElements['helix-filter-operator']
62
- 'helix-filter-input': CustomElements['helix-filter-input']
63
- 'helix-flex': CustomElements['helix-flex']
64
- 'helix-format-date': CustomElements['helix-format-date']
65
- 'helix-graph': CustomElements['helix-graph']
66
- 'helix-grid': CustomElements['helix-grid']
67
- 'helix-heatmap': CustomElements['helix-heatmap']
68
- 'helix-icon-button': CustomElements['helix-icon-button']
69
- 'helix-icon': CustomElements['helix-icon']
70
- 'helix-image': CustomElements['helix-image']
71
- 'helix-input': CustomElements['helix-input']
72
- 'helix-kbd': CustomElements['helix-kbd']
73
- 'helix-legend': CustomElements['helix-legend']
74
- 'helix-lightbox-item': CustomElements['helix-lightbox-item']
75
- 'helix-lightbox': CustomElements['helix-lightbox']
76
- 'helix-line-chart': CustomElements['helix-line-chart']
77
- 'helix-list-item': CustomElements['helix-list-item']
78
- 'helix-list': CustomElements['helix-list']
79
- 'helix-listbox': CustomElements['helix-listbox']
80
- 'helix-loader': CustomElements['helix-loader']
81
- 'helix-map-area': CustomElements['helix-map-area']
82
- 'helix-map-buildings': CustomElements['helix-map-buildings']
83
- 'helix-map-contours': CustomElements['helix-map-contours']
84
- 'helix-map-landcover': CustomElements['helix-map-landcover']
85
- 'helix-map-marker': CustomElements['helix-map-marker']
86
- 'helix-map-points': CustomElements['helix-map-points']
87
- 'helix-map-position': CustomElements['helix-map-position']
88
- 'helix-map-raster': CustomElements['helix-map-raster']
89
- 'helix-map': CustomElements['helix-map']
90
- 'helix-map-route': CustomElements['helix-map-route']
91
- 'helix-map-terrain': CustomElements['helix-map-terrain']
92
- 'helix-megamenu': CustomElements['helix-megamenu']
93
- 'helix-menu-item': CustomElements['helix-menu-item']
94
- 'helix-menu': CustomElements['helix-menu']
95
- 'helix-meter': CustomElements['helix-meter']
96
- 'helix-navigation': CustomElements['helix-navigation']
97
- 'helix-notification-group': CustomElements['helix-notification-group']
98
- 'helix-notification': CustomElements['helix-notification']
99
- 'helix-notifications': CustomElements['helix-notifications']
100
- 'helix-number-input': CustomElements['helix-number-input']
101
- 'helix-object-inspector': CustomElements['helix-object-inspector']
102
- 'helix-option-group': CustomElements['helix-option-group']
103
- 'helix-option': CustomElements['helix-option']
104
- 'helix-orb': CustomElements['helix-orb']
105
- 'helix-outline': CustomElements['helix-outline']
106
- 'helix-pagination': CustomElements['helix-pagination']
107
- 'helix-pagination-size': CustomElements['helix-pagination-size']
108
- 'helix-pagination-summary': CustomElements['helix-pagination-summary']
109
- 'helix-pin-input': CustomElements['helix-pin-input']
110
- 'helix-popover': CustomElements['helix-popover']
111
- 'helix-progress': CustomElements['helix-progress']
112
- 'helix-qr-code': CustomElements['helix-qr-code']
113
- 'helix-quote': CustomElements['helix-quote']
114
- 'helix-radio-group': CustomElements['helix-radio-group']
115
- 'helix-radio': CustomElements['helix-radio']
116
- 'helix-rating': CustomElements['helix-rating']
117
- 'helix-sandbox-preview': CustomElements['helix-sandbox-preview']
118
- 'helix-sandbox': CustomElements['helix-sandbox']
119
- 'helix-sandbox-source': CustomElements['helix-sandbox-source']
120
- 'helix-sandbox-status-bar': CustomElements['helix-sandbox-status-bar']
121
- 'helix-sandbox-terminal': CustomElements['helix-sandbox-terminal']
122
- 'helix-sandbox-toolbar': CustomElements['helix-sandbox-toolbar']
123
- 'helix-scatter-chart': CustomElements['helix-scatter-chart']
124
- 'helix-scroll-area': CustomElements['helix-scroll-area']
125
- 'helix-select': CustomElements['helix-select']
126
- 'helix-skeleton': CustomElements['helix-skeleton']
127
- 'helix-skip-link': CustomElements['helix-skip-link']
128
- 'helix-slider': CustomElements['helix-slider']
129
- 'helix-sparkline': CustomElements['helix-sparkline']
130
- 'helix-speed-dial-item': CustomElements['helix-speed-dial-item']
131
- 'helix-speed-dial': CustomElements['helix-speed-dial']
132
- 'helix-splitter': CustomElements['helix-splitter']
133
- 'helix-stat-group': CustomElements['helix-stat-group']
134
- 'helix-stat': CustomElements['helix-stat']
135
- 'helix-steps': CustomElements['helix-steps']
136
- 'helix-step': CustomElements['helix-step']
137
- 'helix-switch': CustomElements['helix-switch']
138
- 'helix-table-cell': CustomElements['helix-table-cell']
139
- 'helix-table-column': CustomElements['helix-table-column']
140
- 'helix-table': CustomElements['helix-table']
141
- 'helix-table-row': CustomElements['helix-table-row']
142
- 'helix-tab-panel': CustomElements['helix-tab-panel']
143
- 'helix-tabs': CustomElements['helix-tabs']
144
- 'helix-tab': CustomElements['helix-tab']
145
- 'helix-tag': CustomElements['helix-tag']
146
- 'helix-text': CustomElements['helix-text']
147
- 'helix-textarea': CustomElements['helix-textarea']
148
- 'helix-time-input': CustomElements['helix-time-input']
149
- 'helix-time-picker': CustomElements['helix-time-picker']
150
- 'helix-timeline-item': CustomElements['helix-timeline-item']
151
- 'helix-timeline': CustomElements['helix-timeline']
152
- 'helix-toast-item': CustomElements['helix-toast-item']
153
- 'helix-toast': CustomElements['helix-toast']
154
- 'helix-toggle-group': CustomElements['helix-toggle-group']
155
- 'helix-toggle': CustomElements['helix-toggle']
156
- 'helix-toolbar': CustomElements['helix-toolbar']
157
- 'helix-tooltip': CustomElements['helix-tooltip']
158
- 'helix-tour': CustomElements['helix-tour']
159
- 'helix-tour-stop': CustomElements['helix-tour-stop']
160
- 'helix-tree-item': CustomElements['helix-tree-item']
161
- 'helix-tree': CustomElements['helix-tree']
162
- 'helix-trend': CustomElements['helix-trend']
163
- 'helix-video-playlist-item': CustomElements['helix-video-playlist-item']
164
- 'helix-video-playlist-menu': CustomElements['helix-video-playlist-menu']
165
- 'helix-video-playlist': CustomElements['helix-video-playlist']
166
- 'helix-video': CustomElements['helix-video']
167
- 'helix-virtual-list': CustomElements['helix-virtual-list']
32
+ 'helix-accordion-item': Helix<'helix-accordion-item'>
33
+ 'helix-accordion': Helix<'helix-accordion'>
34
+ 'helix-announcement': Helix<'helix-announcement'>
35
+ 'helix-app-header': Helix<'helix-app-header'>
36
+ 'helix-area-chart': Helix<'helix-area-chart'>
37
+ 'helix-aura': Helix<'helix-aura'>
38
+ 'helix-avatar-group': Helix<'helix-avatar-group'>
39
+ 'helix-avatar': Helix<'helix-avatar'>
40
+ 'helix-badge': Helix<'helix-badge'>
41
+ 'helix-bar-chart': Helix<'helix-bar-chart'>
42
+ 'helix-blockquote': Helix<'helix-blockquote'>
43
+ 'helix-breadcrumb': Helix<'helix-breadcrumb'>
44
+ 'helix-breadcrumbs': Helix<'helix-breadcrumbs'>
45
+ 'helix-button-group': Helix<'helix-button-group'>
46
+ 'helix-button': Helix<'helix-button'>
47
+ 'helix-callout': Helix<'helix-callout'>
48
+ 'helix-canvas-edge': Helix<'helix-canvas-edge'>
49
+ 'helix-canvas-node': Helix<'helix-canvas-node'>
50
+ 'helix-canvas': Helix<'helix-canvas'>
51
+ 'helix-card': Helix<'helix-card'>
52
+ 'helix-carousel': Helix<'helix-carousel'>
53
+ 'helix-chat-composer': Helix<'helix-chat-composer'>
54
+ 'helix-chat-message': Helix<'helix-chat-message'>
55
+ 'helix-chat': Helix<'helix-chat'>
56
+ 'helix-checkbox-group': Helix<'helix-checkbox-group'>
57
+ 'helix-checkbox': Helix<'helix-checkbox'>
58
+ 'helix-code-block': Helix<'helix-code-block'>
59
+ 'helix-code': Helix<'helix-code'>
60
+ 'helix-color-input': Helix<'helix-color-input'>
61
+ 'helix-color-picker': Helix<'helix-color-picker'>
62
+ 'helix-combobox': Helix<'helix-combobox'>
63
+ 'helix-command': Helix<'helix-command'>
64
+ 'helix-copy-button': Helix<'helix-copy-button'>
65
+ 'helix-data-table': Helix<'helix-data-table'>
66
+ 'helix-date-input': Helix<'helix-date-input'>
67
+ 'helix-date-picker': Helix<'helix-date-picker'>
68
+ 'helix-description-list-item': Helix<'helix-description-list-item'>
69
+ 'helix-description-list': Helix<'helix-description-list'>
70
+ 'helix-dialog': Helix<'helix-dialog'>
71
+ 'helix-divider': Helix<'helix-divider'>
72
+ 'helix-donut-chart': Helix<'helix-donut-chart'>
73
+ 'helix-drawer': Helix<'helix-drawer'>
74
+ 'helix-drilldown-item': Helix<'helix-drilldown-item'>
75
+ 'helix-drilldown': Helix<'helix-drilldown'>
76
+ 'helix-empty': Helix<'helix-empty'>
77
+ 'helix-file-input': Helix<'helix-file-input'>
78
+ 'helix-filter-chip': Helix<'helix-filter-chip'>
79
+ 'helix-filter-field': Helix<'helix-filter-field'>
80
+ 'helix-filter-menu': Helix<'helix-filter-menu'>
81
+ 'helix-filter-operator': Helix<'helix-filter-operator'>
82
+ 'helix-filter-input': Helix<'helix-filter-input'>
83
+ 'helix-flex': Helix<'helix-flex'>
84
+ 'helix-format-date': Helix<'helix-format-date'>
85
+ 'helix-graph': Helix<'helix-graph'>
86
+ 'helix-grid': Helix<'helix-grid'>
87
+ 'helix-heatmap': Helix<'helix-heatmap'>
88
+ 'helix-icon-button': Helix<'helix-icon-button'>
89
+ 'helix-icon': Helix<'helix-icon'>
90
+ 'helix-image': Helix<'helix-image'>
91
+ 'helix-input': Helix<'helix-input'>
92
+ 'helix-kbd': Helix<'helix-kbd'>
93
+ 'helix-legend': Helix<'helix-legend'>
94
+ 'helix-lightbox-item': Helix<'helix-lightbox-item'>
95
+ 'helix-lightbox': Helix<'helix-lightbox'>
96
+ 'helix-line-chart': Helix<'helix-line-chart'>
97
+ 'helix-list-item': Helix<'helix-list-item'>
98
+ 'helix-list': Helix<'helix-list'>
99
+ 'helix-listbox': Helix<'helix-listbox'>
100
+ 'helix-loader': Helix<'helix-loader'>
101
+ 'helix-map-area': Helix<'helix-map-area'>
102
+ 'helix-map-buildings': Helix<'helix-map-buildings'>
103
+ 'helix-map-contours': Helix<'helix-map-contours'>
104
+ 'helix-map-landcover': Helix<'helix-map-landcover'>
105
+ 'helix-map-marker': Helix<'helix-map-marker'>
106
+ 'helix-map-points': Helix<'helix-map-points'>
107
+ 'helix-map-position': Helix<'helix-map-position'>
108
+ 'helix-map-raster': Helix<'helix-map-raster'>
109
+ 'helix-map': Helix<'helix-map'>
110
+ 'helix-map-route': Helix<'helix-map-route'>
111
+ 'helix-map-terrain': Helix<'helix-map-terrain'>
112
+ 'helix-megamenu': Helix<'helix-megamenu'>
113
+ 'helix-menu-item': Helix<'helix-menu-item'>
114
+ 'helix-menu': Helix<'helix-menu'>
115
+ 'helix-meter': Helix<'helix-meter'>
116
+ 'helix-navigation': Helix<'helix-navigation'>
117
+ 'helix-notification-group': Helix<'helix-notification-group'>
118
+ 'helix-notification': Helix<'helix-notification'>
119
+ 'helix-notifications': Helix<'helix-notifications'>
120
+ 'helix-number-input': Helix<'helix-number-input'>
121
+ 'helix-object-inspector': Helix<'helix-object-inspector'>
122
+ 'helix-option-group': Helix<'helix-option-group'>
123
+ 'helix-option': Helix<'helix-option'>
124
+ 'helix-orb': Helix<'helix-orb'>
125
+ 'helix-outline': Helix<'helix-outline'>
126
+ 'helix-pagination': Helix<'helix-pagination'>
127
+ 'helix-pagination-size': Helix<'helix-pagination-size'>
128
+ 'helix-pagination-summary': Helix<'helix-pagination-summary'>
129
+ 'helix-pin-input': Helix<'helix-pin-input'>
130
+ 'helix-popover': Helix<'helix-popover'>
131
+ 'helix-progress': Helix<'helix-progress'>
132
+ 'helix-qr-code': Helix<'helix-qr-code'>
133
+ 'helix-quote': Helix<'helix-quote'>
134
+ 'helix-radio-group': Helix<'helix-radio-group'>
135
+ 'helix-radio': Helix<'helix-radio'>
136
+ 'helix-rating': Helix<'helix-rating'>
137
+ 'helix-sandbox-preview': Helix<'helix-sandbox-preview'>
138
+ 'helix-sandbox': Helix<'helix-sandbox'>
139
+ 'helix-sandbox-source': Helix<'helix-sandbox-source'>
140
+ 'helix-sandbox-status-bar': Helix<'helix-sandbox-status-bar'>
141
+ 'helix-sandbox-terminal': Helix<'helix-sandbox-terminal'>
142
+ 'helix-sandbox-toolbar': Helix<'helix-sandbox-toolbar'>
143
+ 'helix-scatter-chart': Helix<'helix-scatter-chart'>
144
+ 'helix-scroll-area': Helix<'helix-scroll-area'>
145
+ 'helix-select': Helix<'helix-select'>
146
+ 'helix-skeleton': Helix<'helix-skeleton'>
147
+ 'helix-skip-link': Helix<'helix-skip-link'>
148
+ 'helix-slider': Helix<'helix-slider'>
149
+ 'helix-sparkline': Helix<'helix-sparkline'>
150
+ 'helix-speed-dial-item': Helix<'helix-speed-dial-item'>
151
+ 'helix-speed-dial': Helix<'helix-speed-dial'>
152
+ 'helix-splitter': Helix<'helix-splitter'>
153
+ 'helix-stat-group': Helix<'helix-stat-group'>
154
+ 'helix-stat': Helix<'helix-stat'>
155
+ 'helix-steps': Helix<'helix-steps'>
156
+ 'helix-step': Helix<'helix-step'>
157
+ 'helix-switch': Helix<'helix-switch'>
158
+ 'helix-table-cell': Helix<'helix-table-cell'>
159
+ 'helix-table-column': Helix<'helix-table-column'>
160
+ 'helix-table': Helix<'helix-table'>
161
+ 'helix-table-row': Helix<'helix-table-row'>
162
+ 'helix-tab-panel': Helix<'helix-tab-panel'>
163
+ 'helix-tabs': Helix<'helix-tabs'>
164
+ 'helix-tab': Helix<'helix-tab'>
165
+ 'helix-tag': Helix<'helix-tag'>
166
+ 'helix-text': Helix<'helix-text'>
167
+ 'helix-textarea': Helix<'helix-textarea'>
168
+ 'helix-time-input': Helix<'helix-time-input'>
169
+ 'helix-time-picker': Helix<'helix-time-picker'>
170
+ 'helix-timeline-item': Helix<'helix-timeline-item'>
171
+ 'helix-timeline': Helix<'helix-timeline'>
172
+ 'helix-toast-item': Helix<'helix-toast-item'>
173
+ 'helix-toast': Helix<'helix-toast'>
174
+ 'helix-toggle-group': Helix<'helix-toggle-group'>
175
+ 'helix-toggle': Helix<'helix-toggle'>
176
+ 'helix-toolbar': Helix<'helix-toolbar'>
177
+ 'helix-tooltip': Helix<'helix-tooltip'>
178
+ 'helix-tour': Helix<'helix-tour'>
179
+ 'helix-tour-stop': Helix<'helix-tour-stop'>
180
+ 'helix-tree-item': Helix<'helix-tree-item'>
181
+ 'helix-tree': Helix<'helix-tree'>
182
+ 'helix-trend': Helix<'helix-trend'>
183
+ 'helix-video-playlist-item': Helix<'helix-video-playlist-item'>
184
+ 'helix-video-playlist-menu': Helix<'helix-video-playlist-menu'>
185
+ 'helix-video-playlist': Helix<'helix-video-playlist'>
186
+ 'helix-video': Helix<'helix-video'>
187
+ 'helix-virtual-list': Helix<'helix-virtual-list'>
168
188
  }
169
189
  }
170
190