@fusion.dev/helix-headless 0.131.0 → 0.132.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.
@@ -26823,6 +26823,10 @@
26823
26823
  "description": "The glyph on the dismiss control, where none is slotted.",
26824
26824
  "name": "tag-dismiss-mark"
26825
26825
  },
26826
+ {
26827
+ "description": "The label, trimmed to its capitals and baseline.",
26828
+ "name": "tag-label"
26829
+ },
26826
26830
  {
26827
26831
  "description": "The category before the label.",
26828
26832
  "name": "tag-start"
@@ -33695,6 +33699,10 @@
33695
33699
  "description": "The icon on the remove button, shown when no icon is slotted.",
33696
33700
  "name": "date-dismiss-mark"
33697
33701
  },
33702
+ {
33703
+ "description": "The label, trimmed to its capitals and baseline.",
33704
+ "name": "date-label"
33705
+ },
33698
33706
  {
33699
33707
  "description": "The category before the label.",
33700
33708
  "name": "date-start"
@@ -43446,6 +43454,10 @@
43446
43454
  "description": "The glyph on the dismiss control, where none is slotted.",
43447
43455
  "name": "kind-dismiss-mark"
43448
43456
  },
43457
+ {
43458
+ "description": "The label, trimmed to its capitals and baseline.",
43459
+ "name": "kind-label"
43460
+ },
43449
43461
  {
43450
43462
  "description": "The category before the label.",
43451
43463
  "name": "kind-start"
@@ -43482,6 +43494,10 @@
43482
43494
  "description": "The glyph on the dismiss control, where none is slotted.",
43483
43495
  "name": "size-dismiss-mark"
43484
43496
  },
43497
+ {
43498
+ "description": "The label, trimmed to its capitals and baseline.",
43499
+ "name": "size-label"
43500
+ },
43485
43501
  {
43486
43502
  "description": "The category before the label.",
43487
43503
  "name": "size-start"
@@ -111028,6 +111044,10 @@
111028
111044
  "description": "The icon on the remove button.",
111029
111045
  "name": "dismiss-mark"
111030
111046
  },
111047
+ {
111048
+ "description": "The label, which the styled tag trims to its capitals and baseline so the letters sit at the middle in any font.",
111049
+ "name": "label"
111050
+ },
111031
111051
  {
111032
111052
  "description": "The category before the label.",
111033
111053
  "name": "start"
@@ -113321,6 +113341,10 @@
113321
113341
  "description": "The default icon on the remove button, shown when none is slotted.",
113322
113342
  "name": "time-dismiss-mark"
113323
113343
  },
113344
+ {
113345
+ "description": "The label, trimmed to its capitals and baseline.",
113346
+ "name": "time-label"
113347
+ },
113324
113348
  {
113325
113349
  "description": "The category before the label.",
113326
113350
  "name": "time-start"
@@ -72,6 +72,7 @@ declare const HelixHeadlessCombobox_base: (new (...args: any[]) => import("@fusi
72
72
  * @csspart tag - One chosen option.
73
73
  * @csspart tag-dismiss - The remove button, when `dismissible`.
74
74
  * @csspart tag-dismiss-mark - The glyph on the dismiss control, where none is slotted.
75
+ * @csspart tag-label - The label, trimmed to its capitals and baseline.
75
76
  * @csspart tag-start - The category before the label.
76
77
  * @csspart tags - The row of chosen options, when `multiple` is set.
77
78
  *
@@ -287,7 +287,7 @@ let HelixHeadlessCombobox = class HelixHeadlessCombobox extends MixinControllerO
287
287
  renderTag(option) {
288
288
  return html `<${this.tag('tag')}
289
289
  part="tag"
290
- exportparts="dismiss: tag-dismiss, dismiss-mark: tag-dismiss-mark, start: tag-start"
290
+ exportparts="dismiss: tag-dismiss, dismiss-mark: tag-dismiss-mark, label: tag-label, start: tag-start"
291
291
  data-value=${option.value}
292
292
  dismiss-label=${fillTemplate(this.removeLabel, { name: option.text })}
293
293
  ?dismissible=${!this.isDisabled}
@@ -36,6 +36,7 @@ declare const HelixHeadlessDateInput_base: (new (...args: any[]) => import("@fus
36
36
  * @csspart date - One held date, as a tag, in `multiple`.
37
37
  * @csspart date-dismiss - The remove button, when `dismissible`.
38
38
  * @csspart date-dismiss-mark - The icon on the remove button, shown when no icon is slotted.
39
+ * @csspart date-label - The label, trimmed to its capitals and baseline.
39
40
  * @csspart date-start - The category before the label.
40
41
  * @csspart feedback - The error message under the field.
41
42
  * @csspart field - The box that holds the text and the trigger.
@@ -201,7 +201,7 @@ let HelixHeadlessDateInput = class HelixHeadlessDateInput extends MixinPickerEdi
201
201
  renderTag(date) {
202
202
  return html `<${this.tag('tag')}
203
203
  part="date"
204
- exportparts="dismiss: date-dismiss, dismiss-mark: date-dismiss-mark, start: date-start"
204
+ exportparts="dismiss: date-dismiss, dismiss-mark: date-dismiss-mark, label: date-label, start: date-start"
205
205
  dismissible
206
206
  dismiss-label=${fillTemplate(this.removeLabel, { name: this.written(date) })}
207
207
  ?disabled=${this.isDisabled}
@@ -39,6 +39,7 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
39
39
  * @csspart kind - A file's type.
40
40
  * @csspart kind-dismiss - The remove button, when `dismissible`.
41
41
  * @csspart kind-dismiss-mark - The glyph on the dismiss control, where none is slotted.
42
+ * @csspart kind-label - The label, trimmed to its capitals and baseline.
42
43
  * @csspart kind-start - The category before the label.
43
44
  * @csspart label - The label above the field.
44
45
  * @csspart list - The chosen files.
@@ -48,6 +49,7 @@ declare const HelixHeadlessFileInput_base: (new (...args: any[]) => import("@fus
48
49
  * @csspart size - A file's size.
49
50
  * @csspart size-dismiss - The remove button, when `dismissible`.
50
51
  * @csspart size-dismiss-mark - The glyph on the dismiss control, where none is slotted.
52
+ * @csspart size-label - The label, trimmed to its capitals and baseline.
51
53
  * @csspart size-start - The category before the label.
52
54
  * @csspart trigger - The label that opens the picker.
53
55
  *
@@ -164,10 +164,10 @@ let HelixHeadlessFileInput = class HelixHeadlessFileInput extends MixinField(Hel
164
164
  }
165
165
  renderMeta(file) {
166
166
  return html `<${this.tag('tag')} part="size"
167
- exportparts="dismiss: size-dismiss, dismiss-mark: size-dismiss-mark, start: size-start">${size(file.size, this.locale)}</${this.tag('tag')}>
167
+ exportparts="dismiss: size-dismiss, dismiss-mark: size-dismiss-mark, label: size-label, start: size-start">${size(file.size, this.locale)}</${this.tag('tag')}>
168
168
  <${this.tag('tag')}
169
169
  part="kind"
170
- exportparts="dismiss: kind-dismiss, dismiss-mark: kind-dismiss-mark, start: kind-start">${kind(file)}</${this.tag('tag')}>`;
170
+ exportparts="dismiss: kind-dismiss, dismiss-mark: kind-dismiss-mark, label: kind-label, start: kind-start">${kind(file)}</${this.tag('tag')}>`;
171
171
  }
172
172
  render() {
173
173
  const files = this.files;
@@ -26,6 +26,7 @@ declare const HelixHeadlessTag_base: (new (...args: any[]) => import("@fusion.de
26
26
  *
27
27
  * @csspart dismiss - The button that removes the tag.
28
28
  * @csspart dismiss-mark - The icon on the remove button.
29
+ * @csspart label - The label, which the styled tag trims to its capitals and baseline so the letters sit at the middle in any font.
29
30
  * @csspart start - The category before the label.
30
31
  */
31
32
  export declare class HelixHeadlessTag extends HelixHeadlessTag_base {
@@ -15,7 +15,7 @@ let HelixHeadlessTag = class HelixHeadlessTag extends MixinDismissible(HelixElem
15
15
  }
16
16
  render() {
17
17
  return html `<slot name="start" part="start"></slot>
18
- <slot></slot>
18
+ <slot part="label"></slot>
19
19
  ${this.dismissible
20
20
  ? html `<button
21
21
  part="dismiss"
@@ -85,6 +85,7 @@ declare const HelixHeadlessTimeInput_base: (new (...args: any[]) => import("@fus
85
85
  * @csspart time - One held time, as a tag, in `multiple`.
86
86
  * @csspart time-dismiss - The remove button, when `dismissible`.
87
87
  * @csspart time-dismiss-mark - The default icon on the remove button, shown when none is slotted.
88
+ * @csspart time-label - The label, trimmed to its capitals and baseline.
88
89
  * @csspart time-start - The category before the label.
89
90
  * @csspart trigger - The control that opens the list.
90
91
  * @csspart trigger-icon - The icon on the button that opens the clock.
@@ -176,7 +176,7 @@ let HelixHeadlessTimeInput = class HelixHeadlessTimeInput extends MixinPickerEdi
176
176
  renderTag(at) {
177
177
  return html `<${this.tag('tag')}
178
178
  part="time"
179
- exportparts="dismiss: time-dismiss, dismiss-mark: time-dismiss-mark, start: time-start"
179
+ exportparts="dismiss: time-dismiss, dismiss-mark: time-dismiss-mark, label: time-label, start: time-start"
180
180
  dismissible
181
181
  dismiss-label=${fillTemplate(this.removeLabel, { name: this.written(at) })}
182
182
  ?disabled=${this.isDisabled}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-headless",
3
3
  "description": "Headless component tier. Structure, accessibility, state, and form participation. No styling.",
4
- "version": "0.131.0",
4
+ "version": "0.132.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "bugs": "https://github.com/project-fusion/fusion/issues",
48
48
  "dependencies": {
49
- "@fusion.dev/helix-core": "0.131.0",
50
- "@fusion.dev/helix-icons": "0.131.0",
49
+ "@fusion.dev/helix-core": "0.132.0",
50
+ "@fusion.dev/helix-icons": "0.132.0",
51
51
  "uqr": "^0.1.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@fusion.dev/helix-cem": "0.131.0",
55
- "@fusion.dev/helix-testing": "0.131.0",
54
+ "@fusion.dev/helix-cem": "0.132.0",
55
+ "@fusion.dev/helix-testing": "0.132.0",
56
56
  "@fusion.dev/scripts": "0.0.0-dev",
57
57
  "@happy-dom/global-registrator": "^20.0.0",
58
58
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -27893,6 +27893,7 @@ export type CustomElements = {
27893
27893
  * - `tag`: One chosen option.
27894
27894
  * - `tag-dismiss`: The remove button, when `dismissible`.
27895
27895
  * - `tag-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
27896
+ * - `tag-label`: The label, trimmed to its capitals and baseline.
27896
27897
  * - `tag-start`: The category before the label.
27897
27898
  * - `tags`: The row of chosen options, when `multiple` is set.
27898
27899
  *
@@ -28886,6 +28887,7 @@ export type CustomElements = {
28886
28887
  * - `date`: One held date, as a tag, in `multiple`.
28887
28888
  * - `date-dismiss`: The remove button, when `dismissible`.
28888
28889
  * - `date-dismiss-mark`: The icon on the remove button, shown when no icon is slotted.
28890
+ * - `date-label`: The label, trimmed to its capitals and baseline.
28889
28891
  * - `date-start`: The category before the label.
28890
28892
  * - `feedback`: The error message under the field.
28891
28893
  * - `field`: The box that holds the text and the trigger.
@@ -30356,6 +30358,7 @@ export type CustomElements = {
30356
30358
  * - `kind`: A file's type.
30357
30359
  * - `kind-dismiss`: The remove button, when `dismissible`.
30358
30360
  * - `kind-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
30361
+ * - `kind-label`: The label, trimmed to its capitals and baseline.
30359
30362
  * - `kind-start`: The category before the label.
30360
30363
  * - `label`: The label above the field.
30361
30364
  * - `list`: The chosen files.
@@ -30365,6 +30368,7 @@ export type CustomElements = {
30365
30368
  * - `size`: A file's size.
30366
30369
  * - `size-dismiss`: The remove button, when `dismissible`.
30367
30370
  * - `size-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
30371
+ * - `size-label`: The label, trimmed to its capitals and baseline.
30368
30372
  * - `size-start`: The category before the label.
30369
30373
  * - `trigger`: The label that opens the picker.
30370
30374
  *
@@ -40692,6 +40696,7 @@ export type CustomElements = {
40692
40696
  *
40693
40697
  * - `dismiss`: The button that removes the tag.
40694
40698
  * - `dismiss-mark`: The icon on the remove button.
40699
+ * - `label`: The label, which the styled tag trims to its capitals and baseline so the letters sit at the middle in any font.
40695
40700
  * - `start`: The category before the label.
40696
40701
  *
40697
40702
  * ## CSS States
@@ -41245,6 +41250,7 @@ export type CustomElements = {
41245
41250
  * - `time`: One held time, as a tag, in `multiple`.
41246
41251
  * - `time-dismiss`: The remove button, when `dismissible`.
41247
41252
  * - `time-dismiss-mark`: The default icon on the remove button, shown when none is slotted.
41253
+ * - `time-label`: The label, trimmed to its capitals and baseline.
41248
41254
  * - `time-start`: The category before the label.
41249
41255
  * - `trigger`: The control that opens the list.
41250
41256
  * - `trigger-icon`: The icon on the button that opens the clock.
@@ -48245,6 +48251,7 @@ export type CustomElementsSolidJs = {
48245
48251
  * - `tag`: One chosen option.
48246
48252
  * - `tag-dismiss`: The remove button, when `dismissible`.
48247
48253
  * - `tag-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
48254
+ * - `tag-label`: The label, trimmed to its capitals and baseline.
48248
48255
  * - `tag-start`: The category before the label.
48249
48256
  * - `tags`: The row of chosen options, when `multiple` is set.
48250
48257
  *
@@ -49248,6 +49255,7 @@ export type CustomElementsSolidJs = {
49248
49255
  * - `date`: One held date, as a tag, in `multiple`.
49249
49256
  * - `date-dismiss`: The remove button, when `dismissible`.
49250
49257
  * - `date-dismiss-mark`: The icon on the remove button, shown when no icon is slotted.
49258
+ * - `date-label`: The label, trimmed to its capitals and baseline.
49251
49259
  * - `date-start`: The category before the label.
49252
49260
  * - `feedback`: The error message under the field.
49253
49261
  * - `field`: The box that holds the text and the trigger.
@@ -50741,6 +50749,7 @@ export type CustomElementsSolidJs = {
50741
50749
  * - `kind`: A file's type.
50742
50750
  * - `kind-dismiss`: The remove button, when `dismissible`.
50743
50751
  * - `kind-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
50752
+ * - `kind-label`: The label, trimmed to its capitals and baseline.
50744
50753
  * - `kind-start`: The category before the label.
50745
50754
  * - `label`: The label above the field.
50746
50755
  * - `list`: The chosen files.
@@ -50750,6 +50759,7 @@ export type CustomElementsSolidJs = {
50750
50759
  * - `size`: A file's size.
50751
50760
  * - `size-dismiss`: The remove button, when `dismissible`.
50752
50761
  * - `size-dismiss-mark`: The glyph on the dismiss control, where none is slotted.
50762
+ * - `size-label`: The label, trimmed to its capitals and baseline.
50753
50763
  * - `size-start`: The category before the label.
50754
50764
  * - `trigger`: The label that opens the picker.
50755
50765
  *
@@ -61258,6 +61268,7 @@ export type CustomElementsSolidJs = {
61258
61268
  *
61259
61269
  * - `dismiss`: The button that removes the tag.
61260
61270
  * - `dismiss-mark`: The icon on the remove button.
61271
+ * - `label`: The label, which the styled tag trims to its capitals and baseline so the letters sit at the middle in any font.
61261
61272
  * - `start`: The category before the label.
61262
61273
  *
61263
61274
  * ## CSS States
@@ -61817,6 +61828,7 @@ export type CustomElementsSolidJs = {
61817
61828
  * - `time`: One held time, as a tag, in `multiple`.
61818
61829
  * - `time-dismiss`: The remove button, when `dismissible`.
61819
61830
  * - `time-dismiss-mark`: The default icon on the remove button, shown when none is slotted.
61831
+ * - `time-label`: The label, trimmed to its capitals and baseline.
61820
61832
  * - `time-start`: The category before the label.
61821
61833
  * - `trigger`: The control that opens the list.
61822
61834
  * - `trigger-icon`: The icon on the button that opens the clock.