@fusion.dev/helix 0.13.0 → 0.13.2
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/custom-elements.json +32 -0
- package/dist/combobox/root/combobox-root.css.js +0 -14
- package/dist/combobox/root/combobox-root.js +2 -1
- package/dist/element-events.generated.js +1 -0
- package/dist/filter-input/root/filter-input-root.css.js +0 -14
- package/dist/filter-input/root/filter-input-root.js +8 -1
- package/dist/shared/tags/tags.css.d.ts +1 -0
- package/dist/shared/tags/tags.css.js +14 -0
- package/package.json +6 -6
- package/types/jsx.d.ts +9 -0
- package/types/vue.d.ts +5 -0
package/custom-elements.json
CHANGED
|
@@ -20753,6 +20753,18 @@
|
|
|
20753
20753
|
"module": "src/combobox/root/combobox-root.ts"
|
|
20754
20754
|
}
|
|
20755
20755
|
},
|
|
20756
|
+
{
|
|
20757
|
+
"type": {
|
|
20758
|
+
"text": "HelixFilterEvent"
|
|
20759
|
+
},
|
|
20760
|
+
"description": "Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves.",
|
|
20761
|
+
"name": "helix-filter",
|
|
20762
|
+
"reactProp": "onhelix-filter",
|
|
20763
|
+
"inheritedFrom": {
|
|
20764
|
+
"name": "HelixHeadlessCombobox",
|
|
20765
|
+
"module": "src/combobox/root/combobox-root.ts"
|
|
20766
|
+
}
|
|
20767
|
+
},
|
|
20756
20768
|
{
|
|
20757
20769
|
"type": {
|
|
20758
20770
|
"text": "Event"
|
|
@@ -71752,6 +71764,26 @@
|
|
|
71752
71764
|
}
|
|
71753
71765
|
]
|
|
71754
71766
|
},
|
|
71767
|
+
{
|
|
71768
|
+
"kind": "javascript-module",
|
|
71769
|
+
"path": "src/shared/tags/tags.css.ts",
|
|
71770
|
+
"declarations": [
|
|
71771
|
+
{
|
|
71772
|
+
"kind": "variable",
|
|
71773
|
+
"name": "styles"
|
|
71774
|
+
}
|
|
71775
|
+
],
|
|
71776
|
+
"exports": [
|
|
71777
|
+
{
|
|
71778
|
+
"kind": "js",
|
|
71779
|
+
"name": "styles",
|
|
71780
|
+
"declaration": {
|
|
71781
|
+
"name": "styles",
|
|
71782
|
+
"module": "src/shared/tags/tags.css.ts"
|
|
71783
|
+
}
|
|
71784
|
+
}
|
|
71785
|
+
]
|
|
71786
|
+
},
|
|
71755
71787
|
{
|
|
71756
71788
|
"kind": "javascript-module",
|
|
71757
71789
|
"path": "src/skeleton/index.ts",
|
|
@@ -44,25 +44,11 @@ position: absolute;
|
|
|
44
44
|
translate: 0 -50%;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
[part="tags"] {
|
|
48
|
-
display: contents;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
47
|
[part="tag"] {
|
|
52
48
|
flex: 0 0 auto;
|
|
53
49
|
max-inline-size: 100%;
|
|
54
50
|
}
|
|
55
51
|
|
|
56
|
-
[part="rest"] {
|
|
57
|
-
align-self: center;
|
|
58
|
-
color: var(--helix-color-foreground-subtle);
|
|
59
|
-
flex: 0 0 auto;
|
|
60
|
-
font-family: var(--helix-font-sans);
|
|
61
|
-
font-size: var(--helix-text-xs);
|
|
62
|
-
font-weight: var(--helix-weight-medium);
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
52
|
[part="control"] {
|
|
67
53
|
all: unset;
|
|
68
54
|
box-sizing: border-box;
|
|
@@ -10,10 +10,11 @@ import '../../listbox/index.js';
|
|
|
10
10
|
import '../../tag/index.js';
|
|
11
11
|
import { styles as fieldStyles } from '../../shared/field/field.css.js';
|
|
12
12
|
import { styles as fieldStackedStyles } from '../../shared/field/field-stacked.css.js';
|
|
13
|
+
import { styles as tagRowStyles } from '../../shared/tags/tags.css.js';
|
|
13
14
|
import { styles } from './combobox-root.css.js';
|
|
14
15
|
let HelixCombobox = class HelixCombobox extends HelixHeadlessCombobox {
|
|
15
16
|
static { this.tier = 'helix-'; }
|
|
16
|
-
static { this.styles = [fieldStyles, fieldStackedStyles, styles]; }
|
|
17
|
+
static { this.styles = [fieldStyles, fieldStackedStyles, tagRowStyles, styles]; }
|
|
17
18
|
};
|
|
18
19
|
HelixCombobox = __decorate([
|
|
19
20
|
customElement('helix-combobox')
|
|
@@ -43,25 +43,11 @@ border-color: var(--helix-color-danger);
|
|
|
43
43
|
outline-color: var(--helix-color-danger);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
[part="tags"] {
|
|
47
|
-
display: contents;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
46
|
::slotted([slot="tags"]) {
|
|
51
47
|
flex: 0 0 auto;
|
|
52
48
|
max-inline-size: 100%;
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
[part="rest"] {
|
|
56
|
-
align-self: center;
|
|
57
|
-
color: var(--helix-color-foreground-subtle);
|
|
58
|
-
flex: 0 0 auto;
|
|
59
|
-
font-family: var(--helix-font-sans);
|
|
60
|
-
font-size: var(--helix-text-xs);
|
|
61
|
-
font-weight: var(--helix-weight-medium);
|
|
62
|
-
white-space: nowrap;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
51
|
[part="control"] {
|
|
66
52
|
all: unset;
|
|
67
53
|
box-sizing: border-box;
|
|
@@ -10,9 +10,16 @@ import '../../icon/index.js';
|
|
|
10
10
|
import { styles as glyphStyles } from '../../icon/glyph.css.js';
|
|
11
11
|
import { styles as fieldStyles } from '../../shared/field/field.css.js';
|
|
12
12
|
import { styles as fieldStackedStyles } from '../../shared/field/field-stacked.css.js';
|
|
13
|
+
import { styles as tagRowStyles } from '../../shared/tags/tags.css.js';
|
|
13
14
|
import { styles } from './filter-input-root.css.js';
|
|
14
15
|
let HelixFilterInput = class HelixFilterInput extends HelixHeadlessFilterInput {
|
|
15
|
-
static { this.styles = [
|
|
16
|
+
static { this.styles = [
|
|
17
|
+
glyphStyles,
|
|
18
|
+
fieldStyles,
|
|
19
|
+
fieldStackedStyles,
|
|
20
|
+
tagRowStyles,
|
|
21
|
+
styles,
|
|
22
|
+
]; }
|
|
16
23
|
};
|
|
17
24
|
HelixFilterInput = __decorate([
|
|
18
25
|
customElement('helix-filter-input')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
+
export const styles = createSheet(`[part="tags"] {
|
|
3
|
+
display: contents;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[part="rest"] {
|
|
7
|
+
align-self: center;
|
|
8
|
+
color: var(--helix-color-foreground-subtle);
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
font-family: var(--helix-font-sans);
|
|
11
|
+
font-size: var(--helix-text-xs);
|
|
12
|
+
font-weight: var(--helix-weight-medium);
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}`);
|
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.13.
|
|
4
|
+
"version": "0.13.2",
|
|
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.13.
|
|
50
|
-
"@fusion.dev/helix-headless": "0.13.
|
|
51
|
-
"@fusion.dev/helix-styles": "0.13.
|
|
49
|
+
"@fusion.dev/helix-core": "0.13.2",
|
|
50
|
+
"@fusion.dev/helix-headless": "0.13.2",
|
|
51
|
+
"@fusion.dev/helix-styles": "0.13.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
55
|
-
"@fusion.dev/helix-cem": "0.13.
|
|
56
|
-
"@fusion.dev/helix-testing": "0.13.
|
|
55
|
+
"@fusion.dev/helix-cem": "0.13.2",
|
|
56
|
+
"@fusion.dev/helix-testing": "0.13.2",
|
|
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
|
@@ -4046,6 +4046,9 @@ export type HelixComboboxHelixBeforeOpenElementEvent =
|
|
|
4046
4046
|
/** `helix-create` event type */
|
|
4047
4047
|
export type HelixComboboxHelixCreateElementEvent =
|
|
4048
4048
|
HelixComboboxElementEvent<HelixCreateEvent>;
|
|
4049
|
+
/** `helix-filter` event type */
|
|
4050
|
+
export type HelixComboboxHelixFilterElementEvent =
|
|
4051
|
+
HelixComboboxElementEvent<HelixFilterEvent>;
|
|
4049
4052
|
|
|
4050
4053
|
export type HelixComboboxProps = {
|
|
4051
4054
|
/** Whether the element is open.
|
|
@@ -4195,6 +4198,8 @@ differently: they are one chooser to a consumer. */
|
|
|
4195
4198
|
"onhelix-before-open"?: ((e: HelixComboboxHelixBeforeOpenElementEvent) => void) | undefined;
|
|
4196
4199
|
/** Fired when the reader asks for something the list does not hold, and cancelable. */
|
|
4197
4200
|
"onhelix-create"?: ((e: HelixComboboxHelixCreateElementEvent) => void) | undefined;
|
|
4201
|
+
/** Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves. */
|
|
4202
|
+
"onhelix-filter"?: ((e: HelixComboboxHelixFilterElementEvent) => void) | undefined;
|
|
4198
4203
|
/** Says the state moved, carrying `newState` and `oldState`. */
|
|
4199
4204
|
ontoggle?: ((e: HelixComboboxElementEvent) => void) | undefined;
|
|
4200
4205
|
};
|
|
@@ -4348,6 +4353,8 @@ differently: they are one chooser to a consumer. */
|
|
|
4348
4353
|
) => void) | undefined;
|
|
4349
4354
|
/** Fired when the reader asks for something the list does not hold, and cancelable. */
|
|
4350
4355
|
"on:helix-create"?: ((e: HelixComboboxHelixCreateElementEvent) => void) | undefined;
|
|
4356
|
+
/** Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves. */
|
|
4357
|
+
"on:helix-filter"?: ((e: HelixComboboxHelixFilterElementEvent) => void) | undefined;
|
|
4351
4358
|
/** Says the state moved, carrying `newState` and `oldState`. */
|
|
4352
4359
|
"on:toggle"?: ((e: HelixComboboxElementEvent) => void) | undefined;
|
|
4353
4360
|
|
|
@@ -21527,6 +21534,7 @@ export type CustomElements = {
|
|
|
21527
21534
|
* - `helix-before-close`: Fired before it closes. Cancelable: refusing it takes the decision and nothing moves.
|
|
21528
21535
|
* - `helix-before-open`: Fired before the panel opens. Cancelable: refusing it takes the decision and nothing moves.
|
|
21529
21536
|
* - `helix-create`: Fired when the reader asks for something the list does not hold, and cancelable.
|
|
21537
|
+
* - `helix-filter`: Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves.
|
|
21530
21538
|
* - `toggle`: Says the state moved, carrying `newState` and `oldState`.
|
|
21531
21539
|
*
|
|
21532
21540
|
* ## Slots
|
|
@@ -37479,6 +37487,7 @@ export type CustomElementsSolidJs = {
|
|
|
37479
37487
|
* - `helix-before-close`: Fired before it closes. Cancelable: refusing it takes the decision and nothing moves.
|
|
37480
37488
|
* - `helix-before-open`: Fired before the panel opens. Cancelable: refusing it takes the decision and nothing moves.
|
|
37481
37489
|
* - `helix-create`: Fired when the reader asks for something the list does not hold, and cancelable.
|
|
37490
|
+
* - `helix-filter`: Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves.
|
|
37482
37491
|
* - `toggle`: Says the state moved, carrying `newState` and `oldState`.
|
|
37483
37492
|
*
|
|
37484
37493
|
* ## Slots
|
package/types/vue.d.ts
CHANGED
|
@@ -2073,6 +2073,9 @@ export type HelixComboboxHelixBeforeOpenElementEvent =
|
|
|
2073
2073
|
/** `helix-create` event type */
|
|
2074
2074
|
export type HelixComboboxHelixCreateElementEvent =
|
|
2075
2075
|
HelixComboboxElementEvent<HelixCreateEvent>;
|
|
2076
|
+
/** `helix-filter` event type */
|
|
2077
|
+
export type HelixComboboxHelixFilterElementEvent =
|
|
2078
|
+
HelixComboboxElementEvent<HelixFilterEvent>;
|
|
2076
2079
|
|
|
2077
2080
|
export type HelixComboboxVueProps = {
|
|
2078
2081
|
/** Whether the element is open.
|
|
@@ -2220,6 +2223,8 @@ export type HelixComboboxVueEvents = {
|
|
|
2220
2223
|
"helix-before-open": HelixComboboxHelixBeforeOpenElementEvent;
|
|
2221
2224
|
/** Fired when the reader asks for something the list does not hold, and cancelable. */
|
|
2222
2225
|
"helix-create": HelixComboboxHelixCreateElementEvent;
|
|
2226
|
+
/** Fired as the reader types, carrying the text the list is being narrowed to. Cancelable: refusing it leaves the list whole, and is how a consumer takes the filtering for themselves. */
|
|
2227
|
+
"helix-filter": HelixComboboxHelixFilterElementEvent;
|
|
2223
2228
|
/** Says the state moved, carrying `newState` and `oldState`. */
|
|
2224
2229
|
toggle: HelixComboboxElementEvent;
|
|
2225
2230
|
};
|