use-wc 1.0.0-pre.71 → 1.0.0-pre.73

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.
@@ -89,76 +89,6 @@
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
- },
162
92
  {
163
93
  "kind": "javascript-module",
164
94
  "path": "src/elements/use-badge/use-badge.ts",
@@ -302,6 +232,76 @@
302
232
  }
303
233
  ]
304
234
  },
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",
@@ -3097,6 +3097,241 @@
3097
3097
  }
3098
3098
  ]
3099
3099
  },
3100
+ {
3101
+ "kind": "javascript-module",
3102
+ "path": "src/elements/use-layout/use-layout.ts",
3103
+ "declarations": [
3104
+ {
3105
+ "kind": "class",
3106
+ "description": "`use-layout` is a configurable flex-container primitive, styled entirely by the design\nsystem's theme layer (`theme/layout.css`) rather than by any shadow DOM here — this element\nrenders its light-DOM children exactly as given and exists only to give its attributes real,\ntyped properties, so an author gets autocomplete and a type checker gets something to check\ninstead of a bag of untyped strings.\n\nDirection, alignment, justification, named gap/padding scales, wrapping, and inline vs. block\ndisplay are all driven by these properties, reflected onto the matching attribute for the\ntheme's CSS to read. Five variant classes (`page`, `entry`, `message`, `card`, `media`) and\ntheir modifiers (`.divided`, `.compact`, `.outlined`, `.flush`) stay plain classes rather than\nproperties here — the same as any other themed class in this system, like `use-avatar`'s\n`.circle`/`.square`.\n\n```html\n<use-layout direction=\"row\" gap=\"small\">\n <button type=\"button\">One</button>\n <button type=\"button\">Two</button>\n</use-layout>\n```\n\nWhen a direct child `use-layout` carries `fill`, that child grows to consume the remaining\nspace and its siblings are pinned so they can't shrink; with no such child, `use-layout` is a\nbare flex container that leaves its children alone.",
3107
+ "name": "UseLayout",
3108
+ "slots": [
3109
+ {
3110
+ "description": "The container's content. Untouched otherwise — `use-layout` renders no shadow DOM and arranges its children with CSS alone.",
3111
+ "name": ""
3112
+ }
3113
+ ],
3114
+ "members": [
3115
+ {
3116
+ "kind": "field",
3117
+ "name": "direction",
3118
+ "type": {
3119
+ "text": "Direction"
3120
+ },
3121
+ "default": "\"column\"",
3122
+ "attribute": "direction",
3123
+ "reflects": true
3124
+ },
3125
+ {
3126
+ "kind": "field",
3127
+ "name": "align",
3128
+ "type": {
3129
+ "text": "Align"
3130
+ },
3131
+ "default": "\"\"",
3132
+ "attribute": "align",
3133
+ "reflects": true
3134
+ },
3135
+ {
3136
+ "kind": "field",
3137
+ "name": "justify",
3138
+ "type": {
3139
+ "text": "Justify"
3140
+ },
3141
+ "default": "\"\"",
3142
+ "attribute": "justify",
3143
+ "reflects": true
3144
+ },
3145
+ {
3146
+ "kind": "field",
3147
+ "name": "gap",
3148
+ "type": {
3149
+ "text": "Gap"
3150
+ },
3151
+ "default": "\"\"",
3152
+ "attribute": "gap",
3153
+ "reflects": true
3154
+ },
3155
+ {
3156
+ "kind": "field",
3157
+ "name": "padding",
3158
+ "type": {
3159
+ "text": "Padding"
3160
+ },
3161
+ "default": "\"\"",
3162
+ "attribute": "padding",
3163
+ "reflects": true
3164
+ },
3165
+ {
3166
+ "kind": "field",
3167
+ "name": "paddingBlock",
3168
+ "type": {
3169
+ "text": "Padding"
3170
+ },
3171
+ "default": "\"\"",
3172
+ "attribute": "padding-block",
3173
+ "reflects": true
3174
+ },
3175
+ {
3176
+ "kind": "field",
3177
+ "name": "paddingInline",
3178
+ "type": {
3179
+ "text": "Padding"
3180
+ },
3181
+ "default": "\"\"",
3182
+ "attribute": "padding-inline",
3183
+ "reflects": true
3184
+ },
3185
+ {
3186
+ "kind": "field",
3187
+ "name": "wrap",
3188
+ "type": {
3189
+ "text": "boolean"
3190
+ },
3191
+ "default": "false",
3192
+ "attribute": "wrap",
3193
+ "reflects": true
3194
+ },
3195
+ {
3196
+ "kind": "field",
3197
+ "name": "inline",
3198
+ "type": {
3199
+ "text": "boolean"
3200
+ },
3201
+ "default": "false",
3202
+ "attribute": "inline",
3203
+ "reflects": true
3204
+ },
3205
+ {
3206
+ "kind": "field",
3207
+ "name": "fill",
3208
+ "type": {
3209
+ "text": "boolean"
3210
+ },
3211
+ "default": "false",
3212
+ "attribute": "fill",
3213
+ "reflects": true
3214
+ }
3215
+ ],
3216
+ "attributes": [
3217
+ {
3218
+ "description": "`column` (the default) or `row`.",
3219
+ "name": "direction",
3220
+ "type": {
3221
+ "text": "Direction"
3222
+ },
3223
+ "default": "\"column\"",
3224
+ "fieldName": "direction"
3225
+ },
3226
+ {
3227
+ "description": "Maps to `align-items`: `start`, `center`, `end`, or `stretch`. Left empty, no attribute is set and the browser's own default applies.",
3228
+ "name": "align",
3229
+ "type": {
3230
+ "text": "Align"
3231
+ },
3232
+ "default": "\"\"",
3233
+ "fieldName": "align"
3234
+ },
3235
+ {
3236
+ "description": "Maps to `justify-content`: `start`, `center`, `end`, `space-between`, or `space-around`. Left empty, no attribute is set.",
3237
+ "name": "justify",
3238
+ "type": {
3239
+ "text": "Justify"
3240
+ },
3241
+ "default": "\"\"",
3242
+ "fieldName": "justify"
3243
+ },
3244
+ {
3245
+ "description": "A named scale from `xsmall` to `super`. Left empty, no attribute is set and the container has no gap of its own.",
3246
+ "name": "gap",
3247
+ "type": {
3248
+ "text": "Gap"
3249
+ },
3250
+ "default": "\"\"",
3251
+ "fieldName": "gap"
3252
+ },
3253
+ {
3254
+ "description": "A named scale from `xsmall` to `super`, or `none` for an explicit zero, applied to all four sides. Left empty, no attribute is set. Set `padding-block`/`padding-inline` instead for different values per axis.",
3255
+ "name": "padding",
3256
+ "type": {
3257
+ "text": "Padding"
3258
+ },
3259
+ "default": "\"\"",
3260
+ "fieldName": "padding"
3261
+ },
3262
+ {
3263
+ "description": "A named scale from `xsmall` to `super`, or `none`, applied to the block axis only. Left empty, no attribute is set.",
3264
+ "name": "padding-block",
3265
+ "type": {
3266
+ "text": "Padding"
3267
+ },
3268
+ "default": "\"\"",
3269
+ "fieldName": "paddingBlock"
3270
+ },
3271
+ {
3272
+ "description": "A named scale from `xsmall` to `super`, or `none`, applied to the inline axis only. Left empty, no attribute is set.",
3273
+ "name": "padding-inline",
3274
+ "type": {
3275
+ "text": "Padding"
3276
+ },
3277
+ "default": "\"\"",
3278
+ "fieldName": "paddingInline"
3279
+ },
3280
+ {
3281
+ "description": "Maps to `flex-wrap: wrap`.",
3282
+ "name": "wrap",
3283
+ "type": {
3284
+ "text": "boolean"
3285
+ },
3286
+ "default": "false",
3287
+ "fieldName": "wrap"
3288
+ },
3289
+ {
3290
+ "description": "Renders as `inline-flex` rather than `flex`.",
3291
+ "name": "inline",
3292
+ "type": {
3293
+ "text": "boolean"
3294
+ },
3295
+ "default": "false",
3296
+ "fieldName": "inline"
3297
+ },
3298
+ {
3299
+ "description": "Read only on a direct child `use-layout`: that child grows to fill the remaining space and every other child is pinned so it can't shrink.",
3300
+ "name": "fill",
3301
+ "type": {
3302
+ "text": "boolean"
3303
+ },
3304
+ "default": "false",
3305
+ "fieldName": "fill"
3306
+ }
3307
+ ],
3308
+ "superclass": {
3309
+ "name": "LitElement",
3310
+ "package": "lit"
3311
+ },
3312
+ "tagName": "use-layout",
3313
+ "customElement": true
3314
+ }
3315
+ ],
3316
+ "exports": [
3317
+ {
3318
+ "kind": "js",
3319
+ "name": "UseLayout",
3320
+ "declaration": {
3321
+ "name": "UseLayout",
3322
+ "module": "src/elements/use-layout/use-layout.ts"
3323
+ }
3324
+ },
3325
+ {
3326
+ "kind": "custom-element-definition",
3327
+ "name": "use-layout",
3328
+ "declaration": {
3329
+ "name": "UseLayout",
3330
+ "module": "src/elements/use-layout/use-layout.ts"
3331
+ }
3332
+ }
3333
+ ]
3334
+ },
3100
3335
  {
3101
3336
  "kind": "javascript-module",
3102
3337
  "path": "src/elements/use-listbox-input/use-listbox-input.ts",