use-wc 1.0.0-pre.67 → 1.0.0-pre.69
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 +192 -192
- package/dist/design-system.css +541 -198
- package/dist/tokens.css +88 -12
- package/package.json +1 -1
- package/vscode.html-custom-data.json +24 -24
package/custom-elements.json
CHANGED
|
@@ -89,6 +89,76 @@
|
|
|
89
89
|
}
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "javascript-module",
|
|
94
|
+
"path": "src/elements/use-avatar/use-avatar.ts",
|
|
95
|
+
"declarations": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "class",
|
|
98
|
+
"description": "`use-avatar` renders a small, fixed-size, clipped container for a person or entity's\nlikeness. Slot in an `<img>` (or `<picture>`) for a photo, an inline `<svg>` for a\ngenerated or stylized mark, or arbitrary markup (a `<div>` of initials, a calendar badge);\nwhatever is slotted is centered and clipped to the avatar's shape. With nothing slotted,\n`use-avatar` falls back to initials derived from the `name` attribute.\n\n```html\n<use-avatar><img src=\"ada.jpg\" alt=\"\" /></use-avatar>\n<use-avatar name=\"Riley Quinn\"></use-avatar>\n<use-avatar><svg viewBox=\"0 0 32 32\">…</svg></use-avatar>\n```\n\nSize it with plain CSS — `inline-size` for the size and `aspect-ratio` for the proportions —\nfrom a stylesheet, a style attribute, or the design system's theme layer. The element takes no\ncustom properties of its own: it is a query container, so the initials scale from whatever box\nit ends up with. A non-square `aspect-ratio` suits a wide thumbnail or poster.\n\nThe element clips its content but gives it no shape of its own — that is the theme's, through\nthe affordance classes it defines: `.circle` (the themed default), `.square`, `.squircle` in\n`theme/avatar.css`. A circle only reads right at a `1` ratio, so a wide avatar wants one of the\nothers.\n\nThe element takes no ARIA role of its own. A slotted `<img>` carries its own `alt`, and the\ninitials fallback is plain text in the accessibility tree — an avatar is decorative beside a\nname far more often than it is the name itself, so labelling it here would mean announcing\nthat name twice.",
|
|
99
|
+
"name": "UseAvatar",
|
|
100
|
+
"cssParts": [
|
|
101
|
+
{
|
|
102
|
+
"description": "The span that renders the `name` fallback.",
|
|
103
|
+
"name": "initials"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"slots": [
|
|
107
|
+
{
|
|
108
|
+
"description": "The avatar's content: an `<img>`/`<picture>`, an `<svg>`, or arbitrary markup. Left empty, the `name` attribute's initials are shown instead, as the slot's own fallback. A photo fills the frame and crops; anything else keeps its own size, capped at the frame. Give an `<svg>` a `width`/`height` — without one it defaults to filling the box, and a rounded shape will clip its corners.",
|
|
109
|
+
"name": ""
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"members": [
|
|
113
|
+
{
|
|
114
|
+
"kind": "field",
|
|
115
|
+
"name": "name",
|
|
116
|
+
"type": {
|
|
117
|
+
"text": "string"
|
|
118
|
+
},
|
|
119
|
+
"default": "\"\"",
|
|
120
|
+
"attribute": "name",
|
|
121
|
+
"reflects": true
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"attributes": [
|
|
125
|
+
{
|
|
126
|
+
"description": "The full name, used for the initials fallback (first + last whitespace-separated token, uppercased) when the slot is empty.",
|
|
127
|
+
"name": "name",
|
|
128
|
+
"type": {
|
|
129
|
+
"text": "string"
|
|
130
|
+
},
|
|
131
|
+
"default": "\"\"",
|
|
132
|
+
"fieldName": "name"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"superclass": {
|
|
136
|
+
"name": "LitElement",
|
|
137
|
+
"package": "lit"
|
|
138
|
+
},
|
|
139
|
+
"tagName": "use-avatar",
|
|
140
|
+
"customElement": true
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"exports": [
|
|
144
|
+
{
|
|
145
|
+
"kind": "js",
|
|
146
|
+
"name": "UseAvatar",
|
|
147
|
+
"declaration": {
|
|
148
|
+
"name": "UseAvatar",
|
|
149
|
+
"module": "src/elements/use-avatar/use-avatar.ts"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"kind": "custom-element-definition",
|
|
154
|
+
"name": "use-avatar",
|
|
155
|
+
"declaration": {
|
|
156
|
+
"name": "UseAvatar",
|
|
157
|
+
"module": "src/elements/use-avatar/use-avatar.ts"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
92
162
|
{
|
|
93
163
|
"kind": "javascript-module",
|
|
94
164
|
"path": "src/elements/use-badge/use-badge.ts",
|
|
@@ -232,76 +302,6 @@
|
|
|
232
302
|
}
|
|
233
303
|
]
|
|
234
304
|
},
|
|
235
|
-
{
|
|
236
|
-
"kind": "javascript-module",
|
|
237
|
-
"path": "src/elements/use-avatar/use-avatar.ts",
|
|
238
|
-
"declarations": [
|
|
239
|
-
{
|
|
240
|
-
"kind": "class",
|
|
241
|
-
"description": "`use-avatar` renders a small, fixed-size, clipped container for a person or entity's\nlikeness. Slot in an `<img>` (or `<picture>`) for a photo, an inline `<svg>` for a\ngenerated or stylized mark, or arbitrary markup (a `<div>` of initials, a calendar badge);\nwhatever is slotted is centered and clipped to the avatar's shape. With nothing slotted,\n`use-avatar` falls back to initials derived from the `name` attribute.\n\n```html\n<use-avatar><img src=\"ada.jpg\" alt=\"\" /></use-avatar>\n<use-avatar name=\"Riley Quinn\"></use-avatar>\n<use-avatar><svg viewBox=\"0 0 32 32\">…</svg></use-avatar>\n```\n\nSize it with plain CSS — `inline-size` for the size and `aspect-ratio` for the proportions —\nfrom a stylesheet, a style attribute, or the design system's theme layer. The element takes no\ncustom properties of its own: it is a query container, so the initials scale from whatever box\nit ends up with. A non-square `aspect-ratio` suits a wide thumbnail or poster.\n\nThe element clips its content but gives it no shape of its own — that is the theme's, through\nthe affordance classes it defines: `.circle` (the themed default), `.square`, `.squircle` in\n`theme/avatar.css`. A circle only reads right at a `1` ratio, so a wide avatar wants one of the\nothers.\n\nThe element takes no ARIA role of its own. A slotted `<img>` carries its own `alt`, and the\ninitials fallback is plain text in the accessibility tree — an avatar is decorative beside a\nname far more often than it is the name itself, so labelling it here would mean announcing\nthat name twice.",
|
|
242
|
-
"name": "UseAvatar",
|
|
243
|
-
"cssParts": [
|
|
244
|
-
{
|
|
245
|
-
"description": "The span that renders the `name` fallback.",
|
|
246
|
-
"name": "initials"
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"slots": [
|
|
250
|
-
{
|
|
251
|
-
"description": "The avatar's content: an `<img>`/`<picture>`, an `<svg>`, or arbitrary markup. Left empty, the `name` attribute's initials are shown instead, as the slot's own fallback. A photo fills the frame and crops; anything else keeps its own size, capped at the frame. Give an `<svg>` a `width`/`height` — without one it defaults to filling the box, and a rounded shape will clip its corners.",
|
|
252
|
-
"name": ""
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
"members": [
|
|
256
|
-
{
|
|
257
|
-
"kind": "field",
|
|
258
|
-
"name": "name",
|
|
259
|
-
"type": {
|
|
260
|
-
"text": "string"
|
|
261
|
-
},
|
|
262
|
-
"default": "\"\"",
|
|
263
|
-
"attribute": "name",
|
|
264
|
-
"reflects": true
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"attributes": [
|
|
268
|
-
{
|
|
269
|
-
"description": "The full name, used for the initials fallback (first + last whitespace-separated token, uppercased) when the slot is empty.",
|
|
270
|
-
"name": "name",
|
|
271
|
-
"type": {
|
|
272
|
-
"text": "string"
|
|
273
|
-
},
|
|
274
|
-
"default": "\"\"",
|
|
275
|
-
"fieldName": "name"
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
"superclass": {
|
|
279
|
-
"name": "LitElement",
|
|
280
|
-
"package": "lit"
|
|
281
|
-
},
|
|
282
|
-
"tagName": "use-avatar",
|
|
283
|
-
"customElement": true
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
"exports": [
|
|
287
|
-
{
|
|
288
|
-
"kind": "js",
|
|
289
|
-
"name": "UseAvatar",
|
|
290
|
-
"declaration": {
|
|
291
|
-
"name": "UseAvatar",
|
|
292
|
-
"module": "src/elements/use-avatar/use-avatar.ts"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"kind": "custom-element-definition",
|
|
297
|
-
"name": "use-avatar",
|
|
298
|
-
"declaration": {
|
|
299
|
-
"name": "UseAvatar",
|
|
300
|
-
"module": "src/elements/use-avatar/use-avatar.ts"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
305
|
{
|
|
306
306
|
"kind": "javascript-module",
|
|
307
307
|
"path": "src/elements/use-calendar-base/use-calendar-base.ts",
|
|
@@ -772,6 +772,71 @@
|
|
|
772
772
|
}
|
|
773
773
|
]
|
|
774
774
|
},
|
|
775
|
+
{
|
|
776
|
+
"kind": "javascript-module",
|
|
777
|
+
"path": "src/elements/use-caret/use-caret.ts",
|
|
778
|
+
"declarations": [
|
|
779
|
+
{
|
|
780
|
+
"kind": "class",
|
|
781
|
+
"description": "`use-caret` supplies the caret icon and label layout for a consumer who wants to own the\ninvoking button itself. It renders inside a plain `<button>`\nthat carries the native `popovertarget` attribute, pointing at a `use-menu`:\n\n```html\n<button id=\"thing\" popovertarget=\"thing-menu\">\n <use-caret>Menu</use-caret>\n</button>\n<use-menu id=\"thing-menu\" aria-label=\"Menu\">\n <button role=\"menuitem\">First thing</button>\n</use-menu>\n```\n\n`use-menu` finds this button on its own via `popovertarget` and anchors to it — no\n`anchortarget` needed here; that's only for a menu with more than one invoker. See `use-menu`'s\nown docs for that case.\n\nThe button is entirely the consumer's own element — their classes, their content, their event\nhandlers. `use-caret` contributes no interactivity of its own: no internal button, no focus\ntarget, no state. It only renders the label and caret glyph, so consumers get a consistent\nvisual trigger without giving up control of the button.\n\nThe caret direction is derived rather than configured: a trigger nested inside a `use-menu`\nis understood to open a submenu and renders pointing sideways; a top-level trigger renders\npointing down.\n\nSwapping in a different caret **per instance** is a slot: put your own element in the `icon`\nslot and it replaces `part(icon-default)` entirely for that trigger.\n\nSwapping the default caret **for every trigger in the app** doesn't need touching this\ncomponent's `render()` at all — style `::part(icon-default)` from an outside stylesheet, the\nsame way any shadow DOM part is themed:\n\n```css\nuse-caret::part(icon-default) {\n mask-image: url(\"/icons/my-caret.svg\");\n}\n```\n\n(When the design system's `theme.css` is loaded, this is already wired to a token —\n`--usewc-effect-dropdown-trigger-icon-mask-image` — so redefining that custom property has\nthe same effect without writing a `::part()` rule at all.)\n\n`::part()` only reaches CSS-expressible changes (a mask, a background, a transform). For\nanything else — different markup, an icon font, logic beyond a mask — set the static `icon`\nand `nestedIcon` hooks. Every `<use-caret>` in the page picks them up; consumers keep writing\nthe same tag, no new element to register or remember to use instead. `icon` supplies a\ntop-level trigger's glyph, `nestedIcon` a submenu trigger's — set whichever apply; an unset one\nkeeps the built-in ▼/▶ for that case. Set them once, as early as possible (an app's entry\npoint, before any triggers connect) — Lit calls `render()` fresh on every update, so an\nalready-connected instance only reflects the change once something causes it to re-render:\n\n```ts\n// A bare string or TemplateResult is used as-is, on every trigger of that kind:\nUseCaret.icon = \"▾\";\nUseCaret.nestedIcon = \"▸\";\n\n// A function is called on every render instead:\nUseCaret.nestedIcon = (html) => html`<my-icon name=\"chevron-right\"></my-icon>`;\n```\n\nThe function form is called with the component's own `html` tag as its (optional) first\nargument rather than requiring the caller to import one — a page can end up with more than one\ncopy of `lit-html` in its module graph, and a `TemplateResult` built from a *different* copy\nthan the one this component renders with can silently fail to render. Taking `html` in as a\nparameter sidesteps that: whatever's returned is guaranteed to come from the same `lit-html`\nthis component already uses. A bare string skips the concern entirely.\n\nOnly need to change the icon on **some** triggers, not every one in the app? Extend the\nclass, override `render()` normally, and register the subclass under a different tag name so\nit coexists with the built-in element instead of replacing it everywhere:\n\n```ts\nclass MyCaret extends UseCaret {\n override render() {\n return html`<slot></slot><slot name=\"icon\"><my-icon name=\"chevron\"></my-icon></slot>`;\n }\n}\ncustomElements.define(\"my-caret\", MyCaret);\n```",
|
|
782
|
+
"name": "UseCaret",
|
|
783
|
+
"slots": [
|
|
784
|
+
{
|
|
785
|
+
"description": "Trigger label content.",
|
|
786
|
+
"name": "default"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"description": "Replaces the default caret glyph.",
|
|
790
|
+
"name": "icon"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"members": [
|
|
794
|
+
{
|
|
795
|
+
"kind": "field",
|
|
796
|
+
"name": "icon",
|
|
797
|
+
"type": {
|
|
798
|
+
"text": "((html: HtmlTag) => TemplateResult | string) | TemplateResult | string | undefined"
|
|
799
|
+
},
|
|
800
|
+
"static": true,
|
|
801
|
+
"description": "Global override for a top-level trigger's caret. When set, every non-nested `<use-caret>` in\nthe page renders this inside `part(icon-default)` instead of the built-in ▼ character. A\nplain string or `TemplateResult` is used as-is; the function form is called with the\ncomponent's own `html` tag, so a returned template is guaranteed to come from the same\n`lit-html` instance this component renders with. Unset (the default) keeps the built-in ▼."
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"kind": "field",
|
|
805
|
+
"name": "nestedIcon",
|
|
806
|
+
"type": {
|
|
807
|
+
"text": "((html: HtmlTag) => TemplateResult | string) | TemplateResult | string | undefined"
|
|
808
|
+
},
|
|
809
|
+
"static": true,
|
|
810
|
+
"description": "Global override for a submenu trigger's caret — the counterpart to icon for a\n`<use-caret>` nested inside a `use-menu`. Unset (the default) keeps the built-in ▶."
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"superclass": {
|
|
814
|
+
"name": "LitElement",
|
|
815
|
+
"package": "lit"
|
|
816
|
+
},
|
|
817
|
+
"tagName": "use-caret",
|
|
818
|
+
"customElement": true
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
"exports": [
|
|
822
|
+
{
|
|
823
|
+
"kind": "js",
|
|
824
|
+
"name": "UseCaret",
|
|
825
|
+
"declaration": {
|
|
826
|
+
"name": "UseCaret",
|
|
827
|
+
"module": "src/elements/use-caret/use-caret.ts"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "custom-element-definition",
|
|
832
|
+
"name": "use-caret",
|
|
833
|
+
"declaration": {
|
|
834
|
+
"name": "UseCaret",
|
|
835
|
+
"module": "src/elements/use-caret/use-caret.ts"
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
]
|
|
839
|
+
},
|
|
775
840
|
{
|
|
776
841
|
"kind": "javascript-module",
|
|
777
842
|
"path": "src/elements/use-date-input/use-date-input.ts",
|
|
@@ -898,71 +963,6 @@
|
|
|
898
963
|
}
|
|
899
964
|
]
|
|
900
965
|
},
|
|
901
|
-
{
|
|
902
|
-
"kind": "javascript-module",
|
|
903
|
-
"path": "src/elements/use-caret/use-caret.ts",
|
|
904
|
-
"declarations": [
|
|
905
|
-
{
|
|
906
|
-
"kind": "class",
|
|
907
|
-
"description": "`use-caret` supplies the caret icon and label layout for a consumer who wants to own the\ninvoking button itself. It renders inside a plain `<button>`\nthat carries the native `popovertarget` attribute, pointing at a `use-menu`:\n\n```html\n<button id=\"thing\" popovertarget=\"thing-menu\">\n <use-caret>Menu</use-caret>\n</button>\n<use-menu id=\"thing-menu\" aria-label=\"Menu\">\n <button role=\"menuitem\">First thing</button>\n</use-menu>\n```\n\n`use-menu` finds this button on its own via `popovertarget` and anchors to it — no\n`anchortarget` needed here; that's only for a menu with more than one invoker. See `use-menu`'s\nown docs for that case.\n\nThe button is entirely the consumer's own element — their classes, their content, their event\nhandlers. `use-caret` contributes no interactivity of its own: no internal button, no focus\ntarget, no state. It only renders the label and caret glyph, so consumers get a consistent\nvisual trigger without giving up control of the button.\n\nThe caret direction is derived rather than configured: a trigger nested inside a `use-menu`\nis understood to open a submenu and renders pointing sideways; a top-level trigger renders\npointing down.\n\nSwapping in a different caret **per instance** is a slot: put your own element in the `icon`\nslot and it replaces `part(icon-default)` entirely for that trigger.\n\nSwapping the default caret **for every trigger in the app** doesn't need touching this\ncomponent's `render()` at all — style `::part(icon-default)` from an outside stylesheet, the\nsame way any shadow DOM part is themed:\n\n```css\nuse-caret::part(icon-default) {\n mask-image: url(\"/icons/my-caret.svg\");\n}\n```\n\n(When the design system's `theme.css` is loaded, this is already wired to a token —\n`--usewc-effect-dropdown-trigger-icon-mask-image` — so redefining that custom property has\nthe same effect without writing a `::part()` rule at all.)\n\n`::part()` only reaches CSS-expressible changes (a mask, a background, a transform). For\nanything else — different markup, an icon font, logic beyond a mask — set the static `icon`\nand `nestedIcon` hooks. Every `<use-caret>` in the page picks them up; consumers keep writing\nthe same tag, no new element to register or remember to use instead. `icon` supplies a\ntop-level trigger's glyph, `nestedIcon` a submenu trigger's — set whichever apply; an unset one\nkeeps the built-in ▼/▶ for that case. Set them once, as early as possible (an app's entry\npoint, before any triggers connect) — Lit calls `render()` fresh on every update, so an\nalready-connected instance only reflects the change once something causes it to re-render:\n\n```ts\n// A bare string or TemplateResult is used as-is, on every trigger of that kind:\nUseCaret.icon = \"▾\";\nUseCaret.nestedIcon = \"▸\";\n\n// A function is called on every render instead:\nUseCaret.nestedIcon = (html) => html`<my-icon name=\"chevron-right\"></my-icon>`;\n```\n\nThe function form is called with the component's own `html` tag as its (optional) first\nargument rather than requiring the caller to import one — a page can end up with more than one\ncopy of `lit-html` in its module graph, and a `TemplateResult` built from a *different* copy\nthan the one this component renders with can silently fail to render. Taking `html` in as a\nparameter sidesteps that: whatever's returned is guaranteed to come from the same `lit-html`\nthis component already uses. A bare string skips the concern entirely.\n\nOnly need to change the icon on **some** triggers, not every one in the app? Extend the\nclass, override `render()` normally, and register the subclass under a different tag name so\nit coexists with the built-in element instead of replacing it everywhere:\n\n```ts\nclass MyCaret extends UseCaret {\n override render() {\n return html`<slot></slot><slot name=\"icon\"><my-icon name=\"chevron\"></my-icon></slot>`;\n }\n}\ncustomElements.define(\"my-caret\", MyCaret);\n```",
|
|
908
|
-
"name": "UseCaret",
|
|
909
|
-
"slots": [
|
|
910
|
-
{
|
|
911
|
-
"description": "Trigger label content.",
|
|
912
|
-
"name": "default"
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"description": "Replaces the default caret glyph.",
|
|
916
|
-
"name": "icon"
|
|
917
|
-
}
|
|
918
|
-
],
|
|
919
|
-
"members": [
|
|
920
|
-
{
|
|
921
|
-
"kind": "field",
|
|
922
|
-
"name": "icon",
|
|
923
|
-
"type": {
|
|
924
|
-
"text": "((html: HtmlTag) => TemplateResult | string) | TemplateResult | string | undefined"
|
|
925
|
-
},
|
|
926
|
-
"static": true,
|
|
927
|
-
"description": "Global override for a top-level trigger's caret. When set, every non-nested `<use-caret>` in\nthe page renders this inside `part(icon-default)` instead of the built-in ▼ character. A\nplain string or `TemplateResult` is used as-is; the function form is called with the\ncomponent's own `html` tag, so a returned template is guaranteed to come from the same\n`lit-html` instance this component renders with. Unset (the default) keeps the built-in ▼."
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"kind": "field",
|
|
931
|
-
"name": "nestedIcon",
|
|
932
|
-
"type": {
|
|
933
|
-
"text": "((html: HtmlTag) => TemplateResult | string) | TemplateResult | string | undefined"
|
|
934
|
-
},
|
|
935
|
-
"static": true,
|
|
936
|
-
"description": "Global override for a submenu trigger's caret — the counterpart to icon for a\n`<use-caret>` nested inside a `use-menu`. Unset (the default) keeps the built-in ▶."
|
|
937
|
-
}
|
|
938
|
-
],
|
|
939
|
-
"superclass": {
|
|
940
|
-
"name": "LitElement",
|
|
941
|
-
"package": "lit"
|
|
942
|
-
},
|
|
943
|
-
"tagName": "use-caret",
|
|
944
|
-
"customElement": true
|
|
945
|
-
}
|
|
946
|
-
],
|
|
947
|
-
"exports": [
|
|
948
|
-
{
|
|
949
|
-
"kind": "js",
|
|
950
|
-
"name": "UseCaret",
|
|
951
|
-
"declaration": {
|
|
952
|
-
"name": "UseCaret",
|
|
953
|
-
"module": "src/elements/use-caret/use-caret.ts"
|
|
954
|
-
}
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"kind": "custom-element-definition",
|
|
958
|
-
"name": "use-caret",
|
|
959
|
-
"declaration": {
|
|
960
|
-
"name": "UseCaret",
|
|
961
|
-
"module": "src/elements/use-caret/use-caret.ts"
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
]
|
|
965
|
-
},
|
|
966
966
|
{
|
|
967
967
|
"kind": "javascript-module",
|
|
968
968
|
"path": "src/elements/use-date-picker/use-date-picker.ts",
|
|
@@ -3667,6 +3667,63 @@
|
|
|
3667
3667
|
}
|
|
3668
3668
|
]
|
|
3669
3669
|
},
|
|
3670
|
+
{
|
|
3671
|
+
"kind": "javascript-module",
|
|
3672
|
+
"path": "src/elements/use-scrollarea/index.ts",
|
|
3673
|
+
"declarations": [],
|
|
3674
|
+
"exports": [
|
|
3675
|
+
{
|
|
3676
|
+
"kind": "js",
|
|
3677
|
+
"name": "UseScrollarea",
|
|
3678
|
+
"declaration": {
|
|
3679
|
+
"name": "UseScrollarea",
|
|
3680
|
+
"module": "./use-scrollarea"
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
]
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
"kind": "javascript-module",
|
|
3687
|
+
"path": "src/elements/use-scrollarea/use-scrollarea.ts",
|
|
3688
|
+
"declarations": [
|
|
3689
|
+
{
|
|
3690
|
+
"kind": "class",
|
|
3691
|
+
"description": "A scroll container that exposes custom states for scroll edge detection.\n\n## Custom States\nThe following CSS custom states are available for styling:\n\n- `:state(at-block-start)` — scrolled to the block-start edge (top in horizontal writing modes)\n- `:state(at-block-end)` — scrolled to the block-end edge (bottom in horizontal writing modes)\n- `:state(at-inline-start)` — scrolled to the inline-start edge (left in LTR)\n- `:state(at-inline-end)` — scrolled to the inline-end edge (right in LTR)",
|
|
3692
|
+
"name": "UseScrollarea",
|
|
3693
|
+
"slots": [
|
|
3694
|
+
{
|
|
3695
|
+
"description": "Scrollable content",
|
|
3696
|
+
"name": ""
|
|
3697
|
+
}
|
|
3698
|
+
],
|
|
3699
|
+
"members": [],
|
|
3700
|
+
"superclass": {
|
|
3701
|
+
"name": "LitElement",
|
|
3702
|
+
"package": "lit"
|
|
3703
|
+
},
|
|
3704
|
+
"tagName": "use-scrollarea",
|
|
3705
|
+
"customElement": true
|
|
3706
|
+
}
|
|
3707
|
+
],
|
|
3708
|
+
"exports": [
|
|
3709
|
+
{
|
|
3710
|
+
"kind": "js",
|
|
3711
|
+
"name": "UseScrollarea",
|
|
3712
|
+
"declaration": {
|
|
3713
|
+
"name": "UseScrollarea",
|
|
3714
|
+
"module": "src/elements/use-scrollarea/use-scrollarea.ts"
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
{
|
|
3718
|
+
"kind": "custom-element-definition",
|
|
3719
|
+
"name": "use-scrollarea",
|
|
3720
|
+
"declaration": {
|
|
3721
|
+
"name": "UseScrollarea",
|
|
3722
|
+
"module": "src/elements/use-scrollarea/use-scrollarea.ts"
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
]
|
|
3726
|
+
},
|
|
3670
3727
|
{
|
|
3671
3728
|
"kind": "javascript-module",
|
|
3672
3729
|
"path": "src/elements/use-option/use-option.ts",
|
|
@@ -3781,63 +3838,6 @@
|
|
|
3781
3838
|
}
|
|
3782
3839
|
]
|
|
3783
3840
|
},
|
|
3784
|
-
{
|
|
3785
|
-
"kind": "javascript-module",
|
|
3786
|
-
"path": "src/elements/use-scrollarea/index.ts",
|
|
3787
|
-
"declarations": [],
|
|
3788
|
-
"exports": [
|
|
3789
|
-
{
|
|
3790
|
-
"kind": "js",
|
|
3791
|
-
"name": "UseScrollarea",
|
|
3792
|
-
"declaration": {
|
|
3793
|
-
"name": "UseScrollarea",
|
|
3794
|
-
"module": "./use-scrollarea"
|
|
3795
|
-
}
|
|
3796
|
-
}
|
|
3797
|
-
]
|
|
3798
|
-
},
|
|
3799
|
-
{
|
|
3800
|
-
"kind": "javascript-module",
|
|
3801
|
-
"path": "src/elements/use-scrollarea/use-scrollarea.ts",
|
|
3802
|
-
"declarations": [
|
|
3803
|
-
{
|
|
3804
|
-
"kind": "class",
|
|
3805
|
-
"description": "A scroll container that exposes custom states for scroll edge detection.\n\n## Custom States\nThe following CSS custom states are available for styling:\n\n- `:state(at-block-start)` — scrolled to the block-start edge (top in horizontal writing modes)\n- `:state(at-block-end)` — scrolled to the block-end edge (bottom in horizontal writing modes)\n- `:state(at-inline-start)` — scrolled to the inline-start edge (left in LTR)\n- `:state(at-inline-end)` — scrolled to the inline-end edge (right in LTR)",
|
|
3806
|
-
"name": "UseScrollarea",
|
|
3807
|
-
"slots": [
|
|
3808
|
-
{
|
|
3809
|
-
"description": "Scrollable content",
|
|
3810
|
-
"name": ""
|
|
3811
|
-
}
|
|
3812
|
-
],
|
|
3813
|
-
"members": [],
|
|
3814
|
-
"superclass": {
|
|
3815
|
-
"name": "LitElement",
|
|
3816
|
-
"package": "lit"
|
|
3817
|
-
},
|
|
3818
|
-
"tagName": "use-scrollarea",
|
|
3819
|
-
"customElement": true
|
|
3820
|
-
}
|
|
3821
|
-
],
|
|
3822
|
-
"exports": [
|
|
3823
|
-
{
|
|
3824
|
-
"kind": "js",
|
|
3825
|
-
"name": "UseScrollarea",
|
|
3826
|
-
"declaration": {
|
|
3827
|
-
"name": "UseScrollarea",
|
|
3828
|
-
"module": "src/elements/use-scrollarea/use-scrollarea.ts"
|
|
3829
|
-
}
|
|
3830
|
-
},
|
|
3831
|
-
{
|
|
3832
|
-
"kind": "custom-element-definition",
|
|
3833
|
-
"name": "use-scrollarea",
|
|
3834
|
-
"declaration": {
|
|
3835
|
-
"name": "UseScrollarea",
|
|
3836
|
-
"module": "src/elements/use-scrollarea/use-scrollarea.ts"
|
|
3837
|
-
}
|
|
3838
|
-
}
|
|
3839
|
-
]
|
|
3840
|
-
},
|
|
3841
3841
|
{
|
|
3842
3842
|
"kind": "javascript-module",
|
|
3843
3843
|
"path": "src/elements/use-time-input/use-time-input.ts",
|