@fusion.dev/helix 0.12.1 → 0.12.3

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.
@@ -19033,6 +19033,113 @@
19033
19033
  "text": "toggleOpen() => boolean"
19034
19034
  }
19035
19035
  },
19036
+ {
19037
+ "kind": "field",
19038
+ "name": "maxTags",
19039
+ "type": {
19040
+ "text": "number"
19041
+ },
19042
+ "default": "0",
19043
+ "description": "How many tokens to show before the rest become a count.",
19044
+ "attribute": "max-tags",
19045
+ "inheritedFrom": {
19046
+ "name": "MixinTokens",
19047
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
19048
+ }
19049
+ },
19050
+ {
19051
+ "kind": "method",
19052
+ "name": "renderTokenRow",
19053
+ "privacy": "protected",
19054
+ "return": {
19055
+ "type": {
19056
+ "text": "TemplateResult | typeof nothing"
19057
+ }
19058
+ },
19059
+ "parameters": [
19060
+ {
19061
+ "name": "content",
19062
+ "type": {
19063
+ "text": "unknown"
19064
+ }
19065
+ },
19066
+ {
19067
+ "name": "over",
19068
+ "type": {
19069
+ "text": "number"
19070
+ }
19071
+ }
19072
+ ],
19073
+ "inheritedFrom": {
19074
+ "name": "MixinTokens",
19075
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
19076
+ }
19077
+ },
19078
+ {
19079
+ "kind": "method",
19080
+ "name": "hideOverflow",
19081
+ "privacy": "protected",
19082
+ "return": {
19083
+ "type": {
19084
+ "text": "number"
19085
+ }
19086
+ },
19087
+ "parameters": [
19088
+ {
19089
+ "name": "slot",
19090
+ "type": {
19091
+ "text": "HTMLSlotElement | null | undefined"
19092
+ }
19093
+ }
19094
+ ],
19095
+ "inheritedFrom": {
19096
+ "name": "MixinTokens",
19097
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
19098
+ }
19099
+ },
19100
+ {
19101
+ "kind": "method",
19102
+ "name": "tokenKeydown",
19103
+ "privacy": "protected",
19104
+ "return": {
19105
+ "type": {
19106
+ "text": "boolean"
19107
+ }
19108
+ },
19109
+ "parameters": [
19110
+ {
19111
+ "name": "event",
19112
+ "type": {
19113
+ "text": "KeyboardEvent"
19114
+ }
19115
+ },
19116
+ {
19117
+ "name": "typed",
19118
+ "type": {
19119
+ "text": "string"
19120
+ }
19121
+ }
19122
+ ],
19123
+ "inheritedFrom": {
19124
+ "name": "MixinTokens",
19125
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
19126
+ }
19127
+ },
19128
+ {
19129
+ "kind": "method",
19130
+ "name": "removeLastToken",
19131
+ "privacy": "protected",
19132
+ "return": {
19133
+ "type": {
19134
+ "text": "void"
19135
+ }
19136
+ },
19137
+ "description": "The last chosen one goes, which is what Backspace on an empty field means.\n\n`MixinTokens` owns when this is asked for and this owns what it does: a\ntoken here is a chosen option, so it leaves by the same door a dismissed\ntag does.",
19138
+ "inheritedFrom": {
19139
+ "name": "MixinTokens",
19140
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
19141
+ }
19142
+ },
19036
19143
  {
19037
19144
  "kind": "field",
19038
19145
  "name": "defaultValue",
@@ -19505,20 +19612,6 @@
19505
19612
  "module": "src/combobox/root/combobox-root.ts"
19506
19613
  }
19507
19614
  },
19508
- {
19509
- "kind": "field",
19510
- "name": "maxTags",
19511
- "type": {
19512
- "text": "number"
19513
- },
19514
- "default": "0",
19515
- "description": "How many tags to draw before the rest become a count. `multiple` only.\n\n`0` is all of them, and is the default: a cap that guesses is worse than no\ncap, because the number that fits depends on the width of the field and the\nlength of what is in it, neither of which this element knows. What a cap is\ngenuinely for is a field in a row or a table cell, where a set of twelve\nchoices would push everything below it down a line at a time.\n\nThe remainder is counted rather than hidden. `+3` is a fact a reader can act\non, where a row that silently stops is a field that appears to have lost\nwhat was put in it. Date Input and Time Input carry the same property and\nthe same reasoning.",
19516
- "attribute": "max-tags",
19517
- "inheritedFrom": {
19518
- "name": "HelixHeadlessCombobox",
19519
- "module": "src/combobox/root/combobox-root.ts"
19520
- }
19521
- },
19522
19615
  {
19523
19616
  "kind": "field",
19524
19617
  "name": "multiple",
@@ -20327,6 +20420,19 @@
20327
20420
  "module": "src/mixins/mixin-controller-open/mixin-controller-open.ts"
20328
20421
  }
20329
20422
  },
20423
+ {
20424
+ "name": "max-tags",
20425
+ "type": {
20426
+ "text": "number"
20427
+ },
20428
+ "default": "0",
20429
+ "description": "How many tokens to show before the rest become a count.",
20430
+ "fieldName": "maxTags",
20431
+ "inheritedFrom": {
20432
+ "name": "MixinTokens",
20433
+ "module": "src/mixins/mixin-tokens/mixin-tokens.ts"
20434
+ }
20435
+ },
20330
20436
  {
20331
20437
  "name": "default-value",
20332
20438
  "type": {
@@ -20495,19 +20601,6 @@
20495
20601
  "module": "src/combobox/root/combobox-root.ts"
20496
20602
  }
20497
20603
  },
20498
- {
20499
- "name": "max-tags",
20500
- "type": {
20501
- "text": "number"
20502
- },
20503
- "default": "0",
20504
- "description": "How many tags to draw before the rest become a count. `multiple` only.\n\n`0` is all of them, and is the default: a cap that guesses is worse than no\ncap, because the number that fits depends on the width of the field and the\nlength of what is in it, neither of which this element knows. What a cap is\ngenuinely for is a field in a row or a table cell, where a set of twelve\nchoices would push everything below it down a line at a time.\n\nThe remainder is counted rather than hidden. `+3` is a fact a reader can act\non, where a row that silently stops is a field that appears to have lost\nwhat was put in it. Date Input and Time Input carry the same property and\nthe same reasoning.",
20505
- "fieldName": "maxTags",
20506
- "inheritedFrom": {
20507
- "name": "HelixHeadlessCombobox",
20508
- "module": "src/combobox/root/combobox-root.ts"
20509
- }
20510
- },
20511
20604
  {
20512
20605
  "name": "multiple",
20513
20606
  "type": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.12.1",
4
+ "version": "0.12.3",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -46,14 +46,14 @@
46
46
  },
47
47
  "bugs": "https://github.com/project-fusion/fusion/issues",
48
48
  "dependencies": {
49
- "@fusion.dev/helix-core": "0.12.1",
50
- "@fusion.dev/helix-headless": "0.12.1",
51
- "@fusion.dev/helix-styles": "0.12.1"
49
+ "@fusion.dev/helix-core": "0.12.3",
50
+ "@fusion.dev/helix-headless": "0.12.3",
51
+ "@fusion.dev/helix-styles": "0.12.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@custom-elements-manifest/analyzer": "^0.11.0",
55
- "@fusion.dev/helix-cem": "0.12.1",
56
- "@fusion.dev/helix-testing": "0.12.1",
55
+ "@fusion.dev/helix-cem": "0.12.3",
56
+ "@fusion.dev/helix-testing": "0.12.3",
57
57
  "@fusion.dev/scripts": "0.0.0-dev",
58
58
  "@happy-dom/global-registrator": "^20.0.0",
59
59
  "@lit-labs/ssr": "^3.3.0",
package/types/jsx.d.ts CHANGED
@@ -4064,6 +4064,10 @@ the resolved state for stylesheets, which is what the mirror is for. */
4064
4064
  "default-open"?: (HelixCombobox["defaultOpen"]) | undefined;
4065
4065
  /** Initial open state for uncontrolled use, where nothing declared one. */
4066
4066
  defaultOpen?: (HelixCombobox["defaultOpen"]) | undefined;
4067
+ /** How many tokens to show before the rest become a count. */
4068
+ "max-tags"?: (HelixCombobox["maxTags"]) | undefined;
4069
+ /** How many tokens to show before the rest become a count. */
4070
+ maxTags?: (HelixCombobox["maxTags"]) | undefined;
4067
4071
  /** The value the markup declared, which is where a reset returns to. */
4068
4072
  "default-value"?: (HelixCombobox["defaultValue"]) | undefined;
4069
4073
  /** The value the markup declared, which is where a reset returns to. */
@@ -4118,32 +4122,6 @@ message belongs. */
4118
4122
  "loading-text"?: (HelixCombobox["loadingText"]) | undefined;
4119
4123
  /** What the list says while they are on their way. */
4120
4124
  loadingText?: (HelixCombobox["loadingText"]) | undefined;
4121
- /** How many tags to draw before the rest become a count. `multiple` only.
4122
-
4123
- `0` is all of them, and is the default: a cap that guesses is worse than no
4124
- cap, because the number that fits depends on the width of the field and the
4125
- length of what is in it, neither of which this element knows. What a cap is
4126
- genuinely for is a field in a row or a table cell, where a set of twelve
4127
- choices would push everything below it down a line at a time.
4128
-
4129
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
4130
- on, where a row that silently stops is a field that appears to have lost
4131
- what was put in it. Date Input and Time Input carry the same property and
4132
- the same reasoning. */
4133
- "max-tags"?: (HelixCombobox["maxTags"]) | undefined;
4134
- /** How many tags to draw before the rest become a count. `multiple` only.
4135
-
4136
- `0` is all of them, and is the default: a cap that guesses is worse than no
4137
- cap, because the number that fits depends on the width of the field and the
4138
- length of what is in it, neither of which this element knows. What a cap is
4139
- genuinely for is a field in a row or a table cell, where a set of twelve
4140
- choices would push everything below it down a line at a time.
4141
-
4142
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
4143
- on, where a row that silently stops is a field that appears to have lost
4144
- what was put in it. Date Input and Time Input carry the same property and
4145
- the same reasoning. */
4146
- maxTags?: (HelixCombobox["maxTags"]) | undefined;
4147
4125
  /** Whether more than one option can be chosen.
4148
4126
 
4149
4127
  The list already does the work: `value` comes apart on commas, a press
@@ -4238,6 +4216,10 @@ the resolved state for stylesheets, which is what the mirror is for. */
4238
4216
  "bool:default-open"?: (HelixCombobox["defaultOpen"]) | undefined;
4239
4217
  /** Initial open state for uncontrolled use, where nothing declared one. */
4240
4218
  "prop:defaultOpen"?: (HelixCombobox["defaultOpen"]) | undefined;
4219
+ /** How many tokens to show before the rest become a count. */
4220
+ "attr:max-tags"?: (HelixCombobox["maxTags"]) | undefined;
4221
+ /** How many tokens to show before the rest become a count. */
4222
+ "prop:maxTags"?: (HelixCombobox["maxTags"]) | undefined;
4241
4223
  /** The value the markup declared, which is where a reset returns to. */
4242
4224
  "attr:default-value"?: (HelixCombobox["defaultValue"]) | undefined;
4243
4225
  /** The value the markup declared, which is where a reset returns to. */
@@ -4292,32 +4274,6 @@ message belongs. */
4292
4274
  "attr:loading-text"?: (HelixCombobox["loadingText"]) | undefined;
4293
4275
  /** What the list says while they are on their way. */
4294
4276
  "prop:loadingText"?: (HelixCombobox["loadingText"]) | undefined;
4295
- /** How many tags to draw before the rest become a count. `multiple` only.
4296
-
4297
- `0` is all of them, and is the default: a cap that guesses is worse than no
4298
- cap, because the number that fits depends on the width of the field and the
4299
- length of what is in it, neither of which this element knows. What a cap is
4300
- genuinely for is a field in a row or a table cell, where a set of twelve
4301
- choices would push everything below it down a line at a time.
4302
-
4303
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
4304
- on, where a row that silently stops is a field that appears to have lost
4305
- what was put in it. Date Input and Time Input carry the same property and
4306
- the same reasoning. */
4307
- "attr:max-tags"?: (HelixCombobox["maxTags"]) | undefined;
4308
- /** How many tags to draw before the rest become a count. `multiple` only.
4309
-
4310
- `0` is all of them, and is the default: a cap that guesses is worse than no
4311
- cap, because the number that fits depends on the width of the field and the
4312
- length of what is in it, neither of which this element knows. What a cap is
4313
- genuinely for is a field in a row or a table cell, where a set of twelve
4314
- choices would push everything below it down a line at a time.
4315
-
4316
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
4317
- on, where a row that silently stops is a field that appears to have lost
4318
- what was put in it. Date Input and Time Input carry the same property and
4319
- the same reasoning. */
4320
- "prop:maxTags"?: (HelixCombobox["maxTags"]) | undefined;
4321
4277
  /** Whether more than one option can be chosen.
4322
4278
 
4323
4279
  The list already does the work: `value` comes apart on commas, a press
@@ -21295,6 +21251,7 @@ export type CustomElements = {
21295
21251
  * last reader did rather than what the author wrote. `:state(open)` carries
21296
21252
  * the resolved state for stylesheets, which is what the mirror is for.
21297
21253
  * - `default-open`/`defaultOpen`: Initial open state for uncontrolled use, where nothing declared one.
21254
+ * - `max-tags`/`maxTags`: How many tokens to show before the rest become a count.
21298
21255
  * - `default-value`/`defaultValue`: The value the markup declared, which is where a reset returns to.
21299
21256
  * - `value`: What the control holds now, and what its form submits.
21300
21257
  *
@@ -21326,18 +21283,6 @@ export type CustomElements = {
21326
21283
  * Passed straight to the list, which is where the rows are and so where the
21327
21284
  * message belongs.
21328
21285
  * - `loading-text`/`loadingText`: What the list says while they are on their way.
21329
- * - `max-tags`/`maxTags`: How many tags to draw before the rest become a count. `multiple` only.
21330
- *
21331
- * `0` is all of them, and is the default: a cap that guesses is worse than no
21332
- * cap, because the number that fits depends on the width of the field and the
21333
- * length of what is in it, neither of which this element knows. What a cap is
21334
- * genuinely for is a field in a row or a table cell, where a set of twelve
21335
- * choices would push everything below it down a line at a time.
21336
- *
21337
- * The remainder is counted rather than hidden. `+3` is a fact a reader can act
21338
- * on, where a row that silently stops is a field that appears to have lost
21339
- * what was put in it. Date Input and Time Input carry the same property and
21340
- * the same reasoning.
21341
21286
  * - `multiple`: Whether more than one option can be chosen.
21342
21287
  *
21343
21288
  * The list already does the work: `value` comes apart on commas, a press
@@ -37077,6 +37022,7 @@ export type CustomElementsSolidJs = {
37077
37022
  * last reader did rather than what the author wrote. `:state(open)` carries
37078
37023
  * the resolved state for stylesheets, which is what the mirror is for.
37079
37024
  * - `default-open`/`defaultOpen`: Initial open state for uncontrolled use, where nothing declared one.
37025
+ * - `max-tags`/`maxTags`: How many tokens to show before the rest become a count.
37080
37026
  * - `default-value`/`defaultValue`: The value the markup declared, which is where a reset returns to.
37081
37027
  * - `value`: What the control holds now, and what its form submits.
37082
37028
  *
@@ -37108,18 +37054,6 @@ export type CustomElementsSolidJs = {
37108
37054
  * Passed straight to the list, which is where the rows are and so where the
37109
37055
  * message belongs.
37110
37056
  * - `loading-text`/`loadingText`: What the list says while they are on their way.
37111
- * - `max-tags`/`maxTags`: How many tags to draw before the rest become a count. `multiple` only.
37112
- *
37113
- * `0` is all of them, and is the default: a cap that guesses is worse than no
37114
- * cap, because the number that fits depends on the width of the field and the
37115
- * length of what is in it, neither of which this element knows. What a cap is
37116
- * genuinely for is a field in a row or a table cell, where a set of twelve
37117
- * choices would push everything below it down a line at a time.
37118
- *
37119
- * The remainder is counted rather than hidden. `+3` is a fact a reader can act
37120
- * on, where a row that silently stops is a field that appears to have lost
37121
- * what was put in it. Date Input and Time Input carry the same property and
37122
- * the same reasoning.
37123
37057
  * - `multiple`: Whether more than one option can be chosen.
37124
37058
  *
37125
37059
  * The list already does the work: `value` comes apart on commas, a press
package/types/vue.d.ts CHANGED
@@ -2091,6 +2091,10 @@ the resolved state for stylesheets, which is what the mirror is for. */
2091
2091
  "default-open"?: (HelixCombobox["defaultOpen"]) | undefined;
2092
2092
  /** Initial open state for uncontrolled use, where nothing declared one. */
2093
2093
  defaultOpen?: (HelixCombobox["defaultOpen"]) | undefined;
2094
+ /** How many tokens to show before the rest become a count. */
2095
+ "max-tags"?: (HelixCombobox["maxTags"]) | undefined;
2096
+ /** How many tokens to show before the rest become a count. */
2097
+ maxTags?: (HelixCombobox["maxTags"]) | undefined;
2094
2098
  /** The value the markup declared, which is where a reset returns to. */
2095
2099
  "default-value"?: (HelixCombobox["defaultValue"]) | undefined;
2096
2100
  /** The value the markup declared, which is where a reset returns to. */
@@ -2145,32 +2149,6 @@ message belongs. */
2145
2149
  "loading-text"?: (HelixCombobox["loadingText"]) | undefined;
2146
2150
  /** What the list says while they are on their way. */
2147
2151
  loadingText?: (HelixCombobox["loadingText"]) | undefined;
2148
- /** How many tags to draw before the rest become a count. `multiple` only.
2149
-
2150
- `0` is all of them, and is the default: a cap that guesses is worse than no
2151
- cap, because the number that fits depends on the width of the field and the
2152
- length of what is in it, neither of which this element knows. What a cap is
2153
- genuinely for is a field in a row or a table cell, where a set of twelve
2154
- choices would push everything below it down a line at a time.
2155
-
2156
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
2157
- on, where a row that silently stops is a field that appears to have lost
2158
- what was put in it. Date Input and Time Input carry the same property and
2159
- the same reasoning. */
2160
- "max-tags"?: (HelixCombobox["maxTags"]) | undefined;
2161
- /** How many tags to draw before the rest become a count. `multiple` only.
2162
-
2163
- `0` is all of them, and is the default: a cap that guesses is worse than no
2164
- cap, because the number that fits depends on the width of the field and the
2165
- length of what is in it, neither of which this element knows. What a cap is
2166
- genuinely for is a field in a row or a table cell, where a set of twelve
2167
- choices would push everything below it down a line at a time.
2168
-
2169
- The remainder is counted rather than hidden. `+3` is a fact a reader can act
2170
- on, where a row that silently stops is a field that appears to have lost
2171
- what was put in it. Date Input and Time Input carry the same property and
2172
- the same reasoning. */
2173
- maxTags?: (HelixCombobox["maxTags"]) | undefined;
2174
2152
  /** Whether more than one option can be chosen.
2175
2153
 
2176
2154
  The list already does the work: `value` comes apart on commas, a press