use-wc 1.0.0-pre.27 → 1.0.0-pre.28

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.
@@ -441,71 +441,6 @@
441
441
  }
442
442
  ]
443
443
  },
444
- {
445
- "kind": "javascript-module",
446
- "path": "src/elements/use-calendarday/use-calendarday.ts",
447
- "declarations": [
448
- {
449
- "kind": "class",
450
- "description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
451
- "name": "UseCalendarday",
452
- "slots": [
453
- {
454
- "description": "slot for custom day content (replaces the day number)",
455
- "name": "default"
456
- }
457
- ],
458
- "members": [
459
- {
460
- "kind": "field",
461
- "name": "date",
462
- "type": {
463
- "text": "string"
464
- },
465
- "attribute": "date"
466
- },
467
- {
468
- "kind": "field",
469
- "name": "day",
470
- "readonly": true
471
- }
472
- ],
473
- "attributes": [
474
- {
475
- "name": "date",
476
- "type": {
477
- "text": "string"
478
- },
479
- "fieldName": "date"
480
- }
481
- ],
482
- "superclass": {
483
- "name": "LitElement",
484
- "package": "lit"
485
- },
486
- "tagName": "use-calendarday",
487
- "customElement": true
488
- }
489
- ],
490
- "exports": [
491
- {
492
- "kind": "js",
493
- "name": "UseCalendarday",
494
- "declaration": {
495
- "name": "UseCalendarday",
496
- "module": "src/elements/use-calendarday/use-calendarday.ts"
497
- }
498
- },
499
- {
500
- "kind": "custom-element-definition",
501
- "name": "use-calendarday",
502
- "declaration": {
503
- "name": "UseCalendarday",
504
- "module": "src/elements/use-calendarday/use-calendarday.ts"
505
- }
506
- }
507
- ]
508
- },
509
444
  {
510
445
  "kind": "javascript-module",
511
446
  "path": "src/elements/use-date/use-date.ts",
@@ -638,6 +573,71 @@
638
573
  }
639
574
  ]
640
575
  },
576
+ {
577
+ "kind": "javascript-module",
578
+ "path": "src/elements/use-calendarday/use-calendarday.ts",
579
+ "declarations": [
580
+ {
581
+ "kind": "class",
582
+ "description": "A helper component for customizing specific days within `use-calendar`.\nContent placed inside this element will replace the default day number display.",
583
+ "name": "UseCalendarday",
584
+ "slots": [
585
+ {
586
+ "description": "slot for custom day content (replaces the day number)",
587
+ "name": "default"
588
+ }
589
+ ],
590
+ "members": [
591
+ {
592
+ "kind": "field",
593
+ "name": "date",
594
+ "type": {
595
+ "text": "string"
596
+ },
597
+ "attribute": "date"
598
+ },
599
+ {
600
+ "kind": "field",
601
+ "name": "day",
602
+ "readonly": true
603
+ }
604
+ ],
605
+ "attributes": [
606
+ {
607
+ "name": "date",
608
+ "type": {
609
+ "text": "string"
610
+ },
611
+ "fieldName": "date"
612
+ }
613
+ ],
614
+ "superclass": {
615
+ "name": "LitElement",
616
+ "package": "lit"
617
+ },
618
+ "tagName": "use-calendarday",
619
+ "customElement": true
620
+ }
621
+ ],
622
+ "exports": [
623
+ {
624
+ "kind": "js",
625
+ "name": "UseCalendarday",
626
+ "declaration": {
627
+ "name": "UseCalendarday",
628
+ "module": "src/elements/use-calendarday/use-calendarday.ts"
629
+ }
630
+ },
631
+ {
632
+ "kind": "custom-element-definition",
633
+ "name": "use-calendarday",
634
+ "declaration": {
635
+ "name": "UseCalendarday",
636
+ "module": "src/elements/use-calendarday/use-calendarday.ts"
637
+ }
638
+ }
639
+ ]
640
+ },
641
641
  {
642
642
  "kind": "javascript-module",
643
643
  "path": "src/elements/use-datetime/use-datetime.ts",
@@ -2155,6 +2155,63 @@
2155
2155
  }
2156
2156
  ]
2157
2157
  },
2158
+ {
2159
+ "kind": "javascript-module",
2160
+ "path": "src/elements/use-scrollarea/index.ts",
2161
+ "declarations": [],
2162
+ "exports": [
2163
+ {
2164
+ "kind": "js",
2165
+ "name": "UseScrollarea",
2166
+ "declaration": {
2167
+ "name": "UseScrollarea",
2168
+ "module": "./use-scrollarea"
2169
+ }
2170
+ }
2171
+ ]
2172
+ },
2173
+ {
2174
+ "kind": "javascript-module",
2175
+ "path": "src/elements/use-scrollarea/use-scrollarea.ts",
2176
+ "declarations": [
2177
+ {
2178
+ "kind": "class",
2179
+ "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)",
2180
+ "name": "UseScrollarea",
2181
+ "slots": [
2182
+ {
2183
+ "description": "Scrollable content",
2184
+ "name": ""
2185
+ }
2186
+ ],
2187
+ "members": [],
2188
+ "superclass": {
2189
+ "name": "LitElement",
2190
+ "package": "lit"
2191
+ },
2192
+ "tagName": "use-scrollarea",
2193
+ "customElement": true
2194
+ }
2195
+ ],
2196
+ "exports": [
2197
+ {
2198
+ "kind": "js",
2199
+ "name": "UseScrollarea",
2200
+ "declaration": {
2201
+ "name": "UseScrollarea",
2202
+ "module": "src/elements/use-scrollarea/use-scrollarea.ts"
2203
+ }
2204
+ },
2205
+ {
2206
+ "kind": "custom-element-definition",
2207
+ "name": "use-scrollarea",
2208
+ "declaration": {
2209
+ "name": "UseScrollarea",
2210
+ "module": "src/elements/use-scrollarea/use-scrollarea.ts"
2211
+ }
2212
+ }
2213
+ ]
2214
+ },
2158
2215
  {
2159
2216
  "kind": "javascript-module",
2160
2217
  "path": "src/elements/use-select/use-select.ts",
@@ -0,0 +1 @@
1
+ export { UseScrollarea } from './use-scrollarea';
@@ -0,0 +1,28 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A scroll container that exposes custom states for scroll edge detection.
4
+ *
5
+ * ## Custom States
6
+ * The following CSS custom states are available for styling:
7
+ *
8
+ * - `:state(at-block-start)` — scrolled to the block-start edge (top in horizontal writing modes)
9
+ * - `:state(at-block-end)` — scrolled to the block-end edge (bottom in horizontal writing modes)
10
+ * - `:state(at-inline-start)` — scrolled to the inline-start edge (left in LTR)
11
+ * - `:state(at-inline-end)` — scrolled to the inline-end edge (right in LTR)
12
+ *
13
+ * @slot - Scrollable content
14
+ */
15
+ export declare class UseScrollarea extends LitElement {
16
+ #private;
17
+ constructor();
18
+ connectedCallback(): void;
19
+ disconnectedCallback(): void;
20
+ firstUpdated(): void;
21
+ render(): import('lit-html').TemplateResult<1>;
22
+ static styles: import('lit').CSSResult;
23
+ }
24
+ declare global {
25
+ interface HTMLElementTagNameMap {
26
+ 'use-scrollarea': UseScrollarea;
27
+ }
28
+ }
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components-vite';
2
+ import { UseScrollarea } from './use-scrollarea';
3
+ declare const meta: Meta<UseScrollarea>;
4
+ export default meta;
5
+ type Story = StoryObj<UseScrollarea>;
6
+ export declare const Vertical: Story;
7
+ export declare const Horizontal: Story;
8
+ export declare const Bidirectional: Story;
9
+ export declare const DynamicContent: Story;
package/dist/use-wc.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './elements/use-widget/use-widget';
12
12
  export * from './elements/use-menu/use-menu';
13
13
  export * from './elements/use-calendar/use-calendar';
14
14
  export * from './elements/use-datetime/use-datetime';
15
+ export * from './elements/use-scrollarea/use-scrollarea';