@alegendstale/holly-components 2.0.8 → 2.0.10

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.
Files changed (31) hide show
  1. package/custom-elements.json +1277 -262
  2. package/dist/components/absolute-container/absolute-container.d.ts +2 -0
  3. package/dist/components/absolute-container/absolute-container.d.ts.map +1 -1
  4. package/dist/components/bottom-sheet/bottom-sheet.d.ts +3 -0
  5. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +1 -1
  6. package/dist/components/responsive-svg/responsive-svg.d.ts +4 -4
  7. package/dist/components/responsive-svg/responsive-svg.d.ts.map +1 -1
  8. package/dist/components/responsive-svg/responsive-svg.js +68 -67
  9. package/dist/controllers/ResponsiveController.d.ts.map +1 -0
  10. package/dist/controllers/StyleController.d.ts +12 -0
  11. package/dist/controllers/StyleController.d.ts.map +1 -0
  12. package/dist/controllers/StyleController.js +20 -0
  13. package/dist/decorators/ExposeParts.d.ts +6 -0
  14. package/dist/decorators/ExposeParts.d.ts.map +1 -0
  15. package/dist/decorators/ExposeParts.js +39 -0
  16. package/dist/node_modules/style-observer/src/element-style-observer.js +214 -0
  17. package/dist/node_modules/style-observer/src/rendered-observer.js +46 -0
  18. package/dist/node_modules/style-observer/src/style-observer.js +98 -0
  19. package/dist/node_modules/style-observer/src/util/Bug.js +36 -0
  20. package/dist/node_modules/style-observer/src/util/MultiWeakMap.js +20 -0
  21. package/dist/node_modules/style-observer/src/util/adopt-css.js +15 -0
  22. package/dist/node_modules/style-observer/src/util/bugs/adopted-style-sheet.js +28 -0
  23. package/dist/node_modules/style-observer/src/util/bugs/transitionrun-loop.js +15 -0
  24. package/dist/node_modules/style-observer/src/util/bugs/unregistered-transition.js +14 -0
  25. package/dist/node_modules/style-observer/src/util/gentle-register-property.js +41 -0
  26. package/dist/node_modules/style-observer/src/util/is-registered-property.js +15 -0
  27. package/dist/node_modules/style-observer/src/util.js +61 -0
  28. package/package.json +15 -5
  29. package/dist/utils/ResponsiveController.d.ts.map +0 -1
  30. /package/dist/{utils → controllers}/ResponsiveController.d.ts +0 -0
  31. /package/dist/{utils → controllers}/ResponsiveController.js +0 -0
@@ -2,6 +2,107 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "dist/controllers/ResponsiveController.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "h",
13
+ "members": [
14
+ {
15
+ "kind": "method",
16
+ "name": "hostConnected"
17
+ },
18
+ {
19
+ "kind": "method",
20
+ "name": "hostDisconnected"
21
+ },
22
+ {
23
+ "kind": "field",
24
+ "name": "isMobile",
25
+ "type": {
26
+ "text": "boolean"
27
+ },
28
+ "default": "!1"
29
+ },
30
+ {
31
+ "kind": "field",
32
+ "name": "mediaQueryList"
33
+ },
34
+ {
35
+ "kind": "field",
36
+ "name": "handleMediaQueryChange"
37
+ }
38
+ ]
39
+ }
40
+ ],
41
+ "exports": [
42
+ {
43
+ "kind": "js",
44
+ "name": "ResponsiveController",
45
+ "declaration": {
46
+ "name": "h",
47
+ "module": "dist/controllers/ResponsiveController.js"
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "javascript-module",
54
+ "path": "dist/controllers/StyleController.js",
55
+ "declarations": [
56
+ {
57
+ "kind": "class",
58
+ "description": "",
59
+ "name": "l",
60
+ "members": [
61
+ {
62
+ "kind": "method",
63
+ "name": "hostConnected"
64
+ },
65
+ {
66
+ "kind": "method",
67
+ "name": "hostDisconnected"
68
+ },
69
+ {
70
+ "kind": "field",
71
+ "name": "host",
72
+ "default": "s"
73
+ },
74
+ {
75
+ "kind": "field",
76
+ "name": "property",
77
+ "default": "t"
78
+ },
79
+ {
80
+ "kind": "field",
81
+ "name": "callback",
82
+ "default": "e"
83
+ },
84
+ {
85
+ "kind": "field",
86
+ "name": "value",
87
+ "type": {
88
+ "text": "string"
89
+ },
90
+ "default": "\"\""
91
+ }
92
+ ]
93
+ }
94
+ ],
95
+ "exports": [
96
+ {
97
+ "kind": "js",
98
+ "name": "StyleController",
99
+ "declaration": {
100
+ "name": "l",
101
+ "module": "dist/controllers/StyleController.js"
102
+ }
103
+ }
104
+ ]
105
+ },
5
106
  {
6
107
  "kind": "javascript-module",
7
108
  "path": "dist/decorators/condCustomElement.js",
@@ -27,6 +128,31 @@
27
128
  }
28
129
  ]
29
130
  },
131
+ {
132
+ "kind": "javascript-module",
133
+ "path": "dist/decorators/ExposeParts.js",
134
+ "declarations": [
135
+ {
136
+ "kind": "function",
137
+ "name": "l",
138
+ "parameters": [
139
+ {
140
+ "name": "o"
141
+ }
142
+ ]
143
+ }
144
+ ],
145
+ "exports": [
146
+ {
147
+ "kind": "js",
148
+ "name": "exposeParts",
149
+ "declaration": {
150
+ "name": "l",
151
+ "module": "dist/decorators/ExposeParts.js"
152
+ }
153
+ }
154
+ ]
155
+ },
30
156
  {
31
157
  "kind": "javascript-module",
32
158
  "path": "dist/utils/basicUtils.js",
@@ -545,36 +671,121 @@
545
671
  },
546
672
  {
547
673
  "kind": "javascript-module",
548
- "path": "dist/utils/ResponsiveController.js",
674
+ "path": "src/decorators/condCustomElement.ts",
675
+ "declarations": [
676
+ {
677
+ "kind": "function",
678
+ "name": "condCustomElement",
679
+ "parameters": [
680
+ {
681
+ "name": "tagName",
682
+ "type": {
683
+ "text": "string"
684
+ },
685
+ "description": "The tag name of the custom element to define."
686
+ }
687
+ ],
688
+ "description": "Registers a new custom element if it doesn't already exist."
689
+ }
690
+ ],
691
+ "exports": [
692
+ {
693
+ "kind": "js",
694
+ "name": "condCustomElement",
695
+ "declaration": {
696
+ "name": "condCustomElement",
697
+ "module": "src/decorators/condCustomElement.ts"
698
+ }
699
+ }
700
+ ]
701
+ },
702
+ {
703
+ "kind": "javascript-module",
704
+ "path": "src/decorators/ExposeParts.ts",
705
+ "declarations": [
706
+ {
707
+ "kind": "function",
708
+ "name": "exposeParts",
709
+ "parameters": [
710
+ {
711
+ "name": "partMap",
712
+ "type": {
713
+ "text": "PartMap[]"
714
+ }
715
+ }
716
+ ],
717
+ "description": "Property decorator that exposes parts and updates them when the property changes."
718
+ }
719
+ ],
720
+ "exports": [
721
+ {
722
+ "kind": "js",
723
+ "name": "exposeParts",
724
+ "declaration": {
725
+ "name": "exposeParts",
726
+ "module": "src/decorators/ExposeParts.ts"
727
+ }
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "kind": "javascript-module",
733
+ "path": "src/controllers/ResponsiveController.ts",
549
734
  "declarations": [
550
735
  {
551
736
  "kind": "class",
552
737
  "description": "",
553
- "name": "h",
738
+ "name": "ResponsiveController",
554
739
  "members": [
555
740
  {
556
- "kind": "method",
557
- "name": "hostConnected"
741
+ "kind": "field",
742
+ "name": "isMobile",
743
+ "type": {
744
+ "text": "boolean"
745
+ },
746
+ "default": "false"
558
747
  },
559
748
  {
560
- "kind": "method",
561
- "name": "hostDisconnected"
749
+ "kind": "field",
750
+ "name": "host",
751
+ "type": {
752
+ "text": "ReactiveControllerHost"
753
+ },
754
+ "privacy": "private"
562
755
  },
563
756
  {
564
757
  "kind": "field",
565
- "name": "isMobile",
758
+ "name": "mediaQueryList",
566
759
  "type": {
567
- "text": "boolean"
760
+ "text": "MediaQueryList"
568
761
  },
569
- "default": "!1"
762
+ "privacy": "private"
570
763
  },
571
764
  {
572
765
  "kind": "field",
573
- "name": "mediaQueryList"
766
+ "name": "handleMediaQueryChange",
767
+ "type": {
768
+ "text": "(event: MediaQueryListEvent) => void"
769
+ },
770
+ "privacy": "private"
574
771
  },
575
772
  {
576
- "kind": "field",
577
- "name": "handleMediaQueryChange"
773
+ "kind": "method",
774
+ "name": "hostConnected",
775
+ "return": {
776
+ "type": {
777
+ "text": "void"
778
+ }
779
+ }
780
+ },
781
+ {
782
+ "kind": "method",
783
+ "name": "hostDisconnected",
784
+ "return": {
785
+ "type": {
786
+ "text": "void"
787
+ }
788
+ }
578
789
  }
579
790
  ]
580
791
  }
@@ -584,38 +795,56 @@
584
795
  "kind": "js",
585
796
  "name": "ResponsiveController",
586
797
  "declaration": {
587
- "name": "h",
588
- "module": "dist/utils/ResponsiveController.js"
798
+ "name": "ResponsiveController",
799
+ "module": "src/controllers/ResponsiveController.ts"
589
800
  }
590
801
  }
591
802
  ]
592
803
  },
593
804
  {
594
805
  "kind": "javascript-module",
595
- "path": "src/decorators/condCustomElement.ts",
806
+ "path": "src/controllers/StyleController.ts",
596
807
  "declarations": [
597
808
  {
598
- "kind": "function",
599
- "name": "condCustomElement",
600
- "parameters": [
809
+ "kind": "class",
810
+ "description": "",
811
+ "name": "StyleController",
812
+ "members": [
601
813
  {
602
- "name": "tagName",
814
+ "kind": "field",
815
+ "name": "observer",
816
+ "type": {
817
+ "text": "StyleObserver | undefined"
818
+ },
819
+ "privacy": "private"
820
+ },
821
+ {
822
+ "kind": "field",
823
+ "name": "value",
603
824
  "type": {
604
825
  "text": "string"
605
826
  },
606
- "description": "The tag name of the custom element to define."
827
+ "privacy": "public",
828
+ "default": "''"
829
+ },
830
+ {
831
+ "kind": "method",
832
+ "name": "hostConnected"
833
+ },
834
+ {
835
+ "kind": "method",
836
+ "name": "hostDisconnected"
607
837
  }
608
- ],
609
- "description": "Registers a new custom element if it doesn't already exist."
838
+ ]
610
839
  }
611
840
  ],
612
841
  "exports": [
613
842
  {
614
843
  "kind": "js",
615
- "name": "condCustomElement",
844
+ "name": "StyleController",
616
845
  "declaration": {
617
- "name": "condCustomElement",
618
- "module": "src/decorators/condCustomElement.ts"
846
+ "name": "StyleController",
847
+ "module": "src/controllers/StyleController.ts"
619
848
  }
620
849
  }
621
850
  ]
@@ -1294,80 +1523,7 @@
1294
1523
  },
1295
1524
  {
1296
1525
  "kind": "javascript-module",
1297
- "path": "src/utils/ResponsiveController.ts",
1298
- "declarations": [
1299
- {
1300
- "kind": "class",
1301
- "description": "",
1302
- "name": "ResponsiveController",
1303
- "members": [
1304
- {
1305
- "kind": "field",
1306
- "name": "isMobile",
1307
- "type": {
1308
- "text": "boolean"
1309
- },
1310
- "default": "false"
1311
- },
1312
- {
1313
- "kind": "field",
1314
- "name": "host",
1315
- "type": {
1316
- "text": "ReactiveControllerHost"
1317
- },
1318
- "privacy": "private"
1319
- },
1320
- {
1321
- "kind": "field",
1322
- "name": "mediaQueryList",
1323
- "type": {
1324
- "text": "MediaQueryList"
1325
- },
1326
- "privacy": "private"
1327
- },
1328
- {
1329
- "kind": "field",
1330
- "name": "handleMediaQueryChange",
1331
- "type": {
1332
- "text": "(event: MediaQueryListEvent) => void"
1333
- },
1334
- "privacy": "private"
1335
- },
1336
- {
1337
- "kind": "method",
1338
- "name": "hostConnected",
1339
- "return": {
1340
- "type": {
1341
- "text": "void"
1342
- }
1343
- }
1344
- },
1345
- {
1346
- "kind": "method",
1347
- "name": "hostDisconnected",
1348
- "return": {
1349
- "type": {
1350
- "text": "void"
1351
- }
1352
- }
1353
- }
1354
- ]
1355
- }
1356
- ],
1357
- "exports": [
1358
- {
1359
- "kind": "js",
1360
- "name": "ResponsiveController",
1361
- "declaration": {
1362
- "name": "ResponsiveController",
1363
- "module": "src/utils/ResponsiveController.ts"
1364
- }
1365
- }
1366
- ]
1367
- },
1368
- {
1369
- "kind": "javascript-module",
1370
- "path": "dist/components/absolute-container/absolute-container.js",
1526
+ "path": "dist/components/absolute-container/absolute-container.js",
1371
1527
  "declarations": [
1372
1528
  {
1373
1529
  "kind": "variable",
@@ -1407,48 +1563,6 @@
1407
1563
  }
1408
1564
  ]
1409
1565
  },
1410
- {
1411
- "kind": "javascript-module",
1412
- "path": "dist/components/bottom-sheet/bottom-sheet.js",
1413
- "declarations": [
1414
- {
1415
- "kind": "variable",
1416
- "name": "o",
1417
- "default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
1418
- }
1419
- ],
1420
- "exports": [
1421
- {
1422
- "kind": "js",
1423
- "name": "BottomSheet",
1424
- "declaration": {
1425
- "name": "o",
1426
- "module": "dist/components/bottom-sheet/bottom-sheet.js"
1427
- }
1428
- }
1429
- ]
1430
- },
1431
- {
1432
- "kind": "javascript-module",
1433
- "path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
1434
- "declarations": [
1435
- {
1436
- "kind": "variable",
1437
- "name": "e",
1438
- "default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
1439
- }
1440
- ],
1441
- "exports": [
1442
- {
1443
- "kind": "js",
1444
- "name": "default",
1445
- "declaration": {
1446
- "name": "e",
1447
- "module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
1448
- }
1449
- }
1450
- ]
1451
- },
1452
1566
  {
1453
1567
  "kind": "javascript-module",
1454
1568
  "path": "dist/components/canvas/canvas-base.js",
@@ -1533,48 +1647,6 @@
1533
1647
  }
1534
1648
  ]
1535
1649
  },
1536
- {
1537
- "kind": "javascript-module",
1538
- "path": "dist/components/carousel-scroller/carousel-scroller.js",
1539
- "declarations": [
1540
- {
1541
- "kind": "variable",
1542
- "name": "i",
1543
- "default": "class extends c { constructor() { super(), this.slotChildren = [], this.emitter = new m(), this._currentSlide = 0, this.debouncers = /* @__PURE__ */ new WeakMap(), this.emitter.on(\"slotsLoaded\", (e) => { this.slotChildren = e; }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return d` <div class=\"container\"> <button @click=${this.scrollToPrevSlide}><</button> <button @click=${this.scrollToNextSlide}>></button> <div> <slot @slotchange=${this.slotChange}></slot> </div> </div> `; } /** Gets the current slide. * @returns HTMLElement */ getCurrentSlide() { return this.slotChildren[this._currentSlide - 1]; } /** Scrolls to the slide before the current slide. */ scrollToPrevSlide() { this._currentSlide = this._currentSlide === 0 ? this._currentSlide = this.slotChildren.length - 1 : this._currentSlide - 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** Scrolls to the slide after the current slide. */ scrollToNextSlide() { this._currentSlide = this._currentSlide === this.slotChildren.length - 1 ? 0 : this._currentSlide + 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** @internal */ slotChange() { const e = Array.from( this.slotEl.assignedElements().map((r) => r) ); clearTimeout(this.debouncers.get(this.slotEl)); const s = setTimeout( () => this.emitter.emit(\"slotsLoaded\", e), 100 ); this.debouncers.set(this.slotEl, s); } }"
1544
- }
1545
- ],
1546
- "exports": [
1547
- {
1548
- "kind": "js",
1549
- "name": "CarouselScroller",
1550
- "declaration": {
1551
- "name": "i",
1552
- "module": "dist/components/carousel-scroller/carousel-scroller.js"
1553
- }
1554
- }
1555
- ]
1556
- },
1557
- {
1558
- "kind": "javascript-module",
1559
- "path": "dist/components/carousel-scroller/carousel-scroller.styles.js",
1560
- "declarations": [
1561
- {
1562
- "kind": "variable",
1563
- "name": "o",
1564
- "default": "r` :host { --padding: 40px; --margin: 80px; } .container { width: 600px; height: 400px; margin: 20px; border-radius: 20px; overflow: hidden; position: relative; & > button { position: absolute; width: var(--padding); height: calc(var(--padding) * 2); z-index: 1; background-color: #00000080; border: none; bottom: calc(50% - var(--padding)); font-size: 32px; &:hover { background-color: #6352b880; } &:nth-child(1) { left: 0; border-top-right-radius: 314px; border-bottom-right-radius: 314px; } &:nth-child(2) { right: 0; border-top-left-radius: 314px; border-bottom-left-radius: 314px; } } & > div { display: flex; overflow-x: scroll; position: relative; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--padding); } ::slotted(*) { display: flex; flex-direction: column; justify-content: center; min-height: calc(400px - var(--margin)); min-width: calc(600px - var(--margin)); max-height: calc(400px - var(--margin)); max-width: calc(600px - var(--margin)); background: white; scroll-snap-align: center; padding: calc(var(--margin) / 2); } } `"
1565
- }
1566
- ],
1567
- "exports": [
1568
- {
1569
- "kind": "js",
1570
- "name": "default",
1571
- "declaration": {
1572
- "name": "o",
1573
- "module": "dist/components/carousel-scroller/carousel-scroller.styles.js"
1574
- }
1575
- }
1576
- ]
1577
- },
1578
1650
  {
1579
1651
  "kind": "javascript-module",
1580
1652
  "path": "dist/components/color-palette/color-palette-utils.js",
@@ -1783,6 +1855,90 @@
1783
1855
  }
1784
1856
  ]
1785
1857
  },
1858
+ {
1859
+ "kind": "javascript-module",
1860
+ "path": "dist/components/bottom-sheet/bottom-sheet.js",
1861
+ "declarations": [
1862
+ {
1863
+ "kind": "variable",
1864
+ "name": "o",
1865
+ "default": "class extends c { constructor() { super(...arguments), this.open = !1, this.nonmodal = !1, this.dragging = !1, this.scrolling = !1, this.snapPoints = [], this.defaultSnap = NaN, this.emitter = new d(), this.startY = 0, this.startHeight = 0, this.previousTouch = null, this.lastScrollTop = 0; } set height(t) { const e = Math.min(Math.max(t, 0), 100); this.emitter.emit(\"snapped\", this.isSnapped(e), this.shadowRoot?.activeElement), isFinite(t) ? this.style.setProperty(\"--height\", `${Math.round(e)}dvh`) : this.style.setProperty(\"--height\", \"fit-content\"); } get height() { return parseInt(this.style.getPropertyValue(\"--height\")); } connectedCallback() { super.connectedCallback(); const t = this.snapPoints.length === 2 ? 0 : 1; this.defaultSnap = this.snapPoints.length > 0 ? isNaN(this.defaultSnap) ? this.snapPoints[Math.round(this.snapPoints.length / 2) - t] : this.defaultSnap : NaN, this.emitter.on(\"snapped\", this.onSnapped.bind(this)), requestAnimationFrame(() => { this.showSheet(this.open); }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return requestAnimationFrame(() => { this.setDialog(this.open); }), g` <dialog @click=${(t) => { t.stopPropagation(), this.toggleSheet(); }} > <button id=\"handle\" part=\"__handle\" @pointerdown=${this.pointerDown} @pointermove=${this.pointerMove} @pointerup=${this.pointerUp} @click=${(t) => { t.stopPropagation(); }} > ⸻ </button> <div id='content' part=\"__content\" tabindex='0' @touchstart=${this.touchDown} @touchend=${this.touchUp} @touchmove=${this.touchMove} @scroll=${this.contentScroll} @touchcancel=${(t) => { console.warn(\"User Agent touchcancelled the event.\", t.target); }} @dragstart=${(t) => { t.preventDefault(); }} @click=${(t) => { t.stopPropagation(); }} > <slot></slot> </div> </dialog> `; } /** * Find closest point index to target in array */ closestSnapPointIndex(t, e) { return t.reduce((i, n, s) => Math.abs(n - e) < Math.abs(t[i] - e) ? s : i, 0); } /** * Sets sheet height to the closest snap * @param height percentage */ setSnap(t) { if (this.snapPoints.length === 0) return; const e = this.snapPoints[this.closestSnapPointIndex(this.snapPoints, t)]; e === this.snapPoints[0] && this.showSheet(!1), this.height = e; } /** * @returns Whether sheet is snapped to a snap point */ isSnapped(t) { return this.snapPoints.some((e) => e === Math.round(t)); } /** * Sets the display state of the sheet */ showSheet(t) { this.open = t, this.height = isNaN(this.defaultSnap) ? 1 / 0 : this.defaultSnap, this.setOverscroll(t), this.setDialog(t); } /** * Toggles the display state of the sheet */ toggleSheet() { this.showSheet(!this.open); } /** * Remove overscroll to prevent mobile browsers from refreshing during drag */ setOverscroll(t) { const e = document.querySelector(\"html\"), i = document.querySelector(\"body\"), n = t ? \"none\" : \"unset\"; e && e.style.setProperty(\"overscroll-behavior-block\", n), i && i.style.setProperty(\"overscroll-behavior-block\", n); } setDialog(t) { t && !this.dialog.open ? this.nonmodal ? this.dialog.show() : this.dialog.showModal() : t && this.dialog.open ? this.nonmodal && this.modalDialog ? (this.dialog.close(), this.dialog.show()) : !this.nonmodal && this.nonModalDialog && (this.dialog.close(), this.dialog.showModal()) : this.dialog.close(); } touchDown(t) { t.target instanceof HTMLElement && (this.startY = t.touches[0].pageY, this.startHeight = this.height); } touchMove(t) { if (!(t.target instanceof HTMLElement)) return; const e = t.touches[0]; let i = NaN; this.previousTouch && (i = e.pageY - this.previousTouch.pageY), this.previousTouch = e; let n = this.startY - t.touches[0].pageY; const s = this.startHeight + n / window.innerHeight * 100; !this.scrolling && this.dragging ? this.height = s : this.scrolling && this.dragging || this.scrolling && !this.dragging ? t.target.focus({ preventScroll: !0 }) : !this.scrolling && !this.dragging && (i >= 0 ? this.height = Math.min(s, this.defaultSnap || this.snapPoints[this.snapPoints.length - 1]) : t.target.focus({ preventScroll: !0 })); } touchUp(t) { t.target instanceof HTMLElement && (this.previousTouch = null, this.setSnap(this.height)); } pointerDown(t) { t.target instanceof HTMLElement && (t.target.setPointerCapture(t.pointerId), this.startY = t.pageY, this.startHeight = this.height); } pointerMove(t) { if (!(t.target instanceof HTMLElement && t.target.hasPointerCapture(t.pointerId)) || !t.isPrimary) return; t.preventDefault(); let e = this.startY - t.pageY; const i = this.startHeight + e / window.innerHeight * 100; t.target.id === \"handle\" && (this.height = i); } pointerUp(t) { t.target instanceof HTMLElement && (t.target.releasePointerCapture(t.pointerId), this.setSnap(this.height)); } onSnapped(t, e) { this.dragging = !t; } contentScroll(t) { if (!(t.target instanceof HTMLElement && t.target.id === \"content\")) return; const e = t.target.scrollTop; this.scrolling = e !== this.lastScrollTop, this.lastScrollTop = e, e === 0 && (this.scrolling = !1); } }"
1866
+ }
1867
+ ],
1868
+ "exports": [
1869
+ {
1870
+ "kind": "js",
1871
+ "name": "BottomSheet",
1872
+ "declaration": {
1873
+ "name": "o",
1874
+ "module": "dist/components/bottom-sheet/bottom-sheet.js"
1875
+ }
1876
+ }
1877
+ ]
1878
+ },
1879
+ {
1880
+ "kind": "javascript-module",
1881
+ "path": "dist/components/bottom-sheet/bottom-sheet.styles.js",
1882
+ "declarations": [
1883
+ {
1884
+ "kind": "variable",
1885
+ "name": "e",
1886
+ "default": "o` :host { contain: content; overscroll-behavior-block: none; --height: fit-content; } :host([dragging]) dialog { #content { cursor: grabbing; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; } } :host(:not([dragging])) dialog { /* Only animate if not dragging */ transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; &::backdrop { transition-property: overlay opacity display; transition-duration: 0.25s; transition-behavior: allow-discrete; } #content { /* Allow scroll */ touch-action: pan-y; } } dialog { display: none; opacity: 0; translate: 0 var(--height); height: var(--height); min-height: 0; max-height: 100%; min-width: 100%; max-width: 100%; flex-direction: column; box-sizing: border-box; padding: 0; border: 0; background-color: light-dark(#d9d9d9, #1c1c1c); /* Important! Removes default browser styling, allowing bottom to work */ inset: unset; bottom: 0; left: 0; overflow-y: hidden; /* Important! Prevents mobile browsers from reclaiming PointerMove event on touch devices */ touch-action: none; /* Prevent weird scrollbar movement on mobile when dragging */ overflow-y: hidden; &[open] { display: flex; opacity: 1; translate: 0 0; &::backdrop { opacity: 0.8; } } &::backdrop { background: black; opacity: 0; } } @starting-style { dialog[open] { opacity: 0; translate: 0 var(--height); &::backdrop { opacity: 0; } } } #handle { display: block; position: sticky; top: 0; background: transparent; border: 0; cursor: grabbing; min-height: 35px; user-select: none; touch-action: none; } div { /* display: contents; */ overflow-y: auto; scrollbar-width: none; box-sizing: border-box; min-height: 100%; min-width: 100%; } ::slotted(*) { /* Prevent slotted items from taking pointer events */ /* pointer-events: none; */ } `"
1887
+ }
1888
+ ],
1889
+ "exports": [
1890
+ {
1891
+ "kind": "js",
1892
+ "name": "default",
1893
+ "declaration": {
1894
+ "name": "e",
1895
+ "module": "dist/components/bottom-sheet/bottom-sheet.styles.js"
1896
+ }
1897
+ }
1898
+ ]
1899
+ },
1900
+ {
1901
+ "kind": "javascript-module",
1902
+ "path": "dist/components/carousel-scroller/carousel-scroller.js",
1903
+ "declarations": [
1904
+ {
1905
+ "kind": "variable",
1906
+ "name": "i",
1907
+ "default": "class extends c { constructor() { super(), this.slotChildren = [], this.emitter = new m(), this._currentSlide = 0, this.debouncers = /* @__PURE__ */ new WeakMap(), this.emitter.on(\"slotsLoaded\", (e) => { this.slotChildren = e; }); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return d` <div class=\"container\"> <button @click=${this.scrollToPrevSlide}><</button> <button @click=${this.scrollToNextSlide}>></button> <div> <slot @slotchange=${this.slotChange}></slot> </div> </div> `; } /** Gets the current slide. * @returns HTMLElement */ getCurrentSlide() { return this.slotChildren[this._currentSlide - 1]; } /** Scrolls to the slide before the current slide. */ scrollToPrevSlide() { this._currentSlide = this._currentSlide === 0 ? this._currentSlide = this.slotChildren.length - 1 : this._currentSlide - 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** Scrolls to the slide after the current slide. */ scrollToNextSlide() { this._currentSlide = this._currentSlide === this.slotChildren.length - 1 ? 0 : this._currentSlide + 1, this.slotChildren.at(this._currentSlide)?.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } /** @internal */ slotChange() { const e = Array.from( this.slotEl.assignedElements().map((r) => r) ); clearTimeout(this.debouncers.get(this.slotEl)); const s = setTimeout( () => this.emitter.emit(\"slotsLoaded\", e), 100 ); this.debouncers.set(this.slotEl, s); } }"
1908
+ }
1909
+ ],
1910
+ "exports": [
1911
+ {
1912
+ "kind": "js",
1913
+ "name": "CarouselScroller",
1914
+ "declaration": {
1915
+ "name": "i",
1916
+ "module": "dist/components/carousel-scroller/carousel-scroller.js"
1917
+ }
1918
+ }
1919
+ ]
1920
+ },
1921
+ {
1922
+ "kind": "javascript-module",
1923
+ "path": "dist/components/carousel-scroller/carousel-scroller.styles.js",
1924
+ "declarations": [
1925
+ {
1926
+ "kind": "variable",
1927
+ "name": "o",
1928
+ "default": "r` :host { --padding: 40px; --margin: 80px; } .container { width: 600px; height: 400px; margin: 20px; border-radius: 20px; overflow: hidden; position: relative; & > button { position: absolute; width: var(--padding); height: calc(var(--padding) * 2); z-index: 1; background-color: #00000080; border: none; bottom: calc(50% - var(--padding)); font-size: 32px; &:hover { background-color: #6352b880; } &:nth-child(1) { left: 0; border-top-right-radius: 314px; border-bottom-right-radius: 314px; } &:nth-child(2) { right: 0; border-top-left-radius: 314px; border-bottom-left-radius: 314px; } } & > div { display: flex; overflow-x: scroll; position: relative; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--padding); } ::slotted(*) { display: flex; flex-direction: column; justify-content: center; min-height: calc(400px - var(--margin)); min-width: calc(600px - var(--margin)); max-height: calc(400px - var(--margin)); max-width: calc(600px - var(--margin)); background: white; scroll-snap-align: center; padding: calc(var(--margin) / 2); } } `"
1929
+ }
1930
+ ],
1931
+ "exports": [
1932
+ {
1933
+ "kind": "js",
1934
+ "name": "default",
1935
+ "declaration": {
1936
+ "name": "o",
1937
+ "module": "dist/components/carousel-scroller/carousel-scroller.styles.js"
1938
+ }
1939
+ }
1940
+ ]
1941
+ },
1786
1942
  {
1787
1943
  "kind": "javascript-module",
1788
1944
  "path": "dist/components/draw-svg/draw-svg.js",
@@ -1831,7 +1987,7 @@
1831
1987
  "declarations": [
1832
1988
  {
1833
1989
  "kind": "variable",
1834
- "name": "l",
1990
+ "name": "v",
1835
1991
  "type": {
1836
1992
  "text": "array"
1837
1993
  },
@@ -1839,7 +1995,7 @@
1839
1995
  },
1840
1996
  {
1841
1997
  "kind": "variable",
1842
- "name": "A",
1998
+ "name": "S",
1843
1999
  "type": {
1844
2000
  "text": "array"
1845
2001
  },
@@ -1847,16 +2003,16 @@
1847
2003
  },
1848
2004
  {
1849
2005
  "kind": "variable",
1850
- "name": "M",
2006
+ "name": "R",
1851
2007
  "type": {
1852
2008
  "text": "array"
1853
2009
  },
1854
- "default": "[ ...l, ...l.flatMap((t) => A.map((e) => `${t} ${e}`)) ]"
2010
+ "default": "[ ...v, ...v.flatMap((t) => S.map((e) => `${t} ${e}`)) ]"
1855
2011
  },
1856
2012
  {
1857
2013
  "kind": "variable",
1858
- "name": "p",
1859
- "default": "class extends g { constructor() { super(...arguments), this.autofit = !1, this.svgColors = !1, this.viewBox = { x: 0, y: 0, width: 0, height: 0 }; } set svg(t) { const e = t instanceof SVGElement || x(t) ? t : u(t); e instanceof Element && !(e instanceof SVGElement) || (this._svg = e); } get svg() { return this._svg ?? \"\"; } set preserveAspectRatio(t) { this._preserveAspectRatio = t; } get preserveAspectRatio() { if (this._preserveAspectRatio == null && this.svg instanceof SVGElement) { const t = this.svg.getAttribute(\"preserveAspectRatio\") || \"\"; if (R(t)) return t; } return this._preserveAspectRatio || \"xMidYMid meet\"; } // For classes inheriting from responsive-svg (e.g. draw-svg) svgClasses() { return {}; } willUpdate(t) { if (super.willUpdate(t), this.svg instanceof SVGElement) { const e = this.getViewBoxSize(this.svg), i = this.svg.getAttribute(\"width\"), o = this.svg.getAttribute(\"height\"); this.viewBox = e ?? { x: 0, y: 0, width: Number(i) || 0, height: Number(o) || 0 }; } else { const e = this.style.getPropertyValue(\"--svg-width\"), i = this.style.getPropertyValue(\"--svg-height\"); this.viewBox = { x: 0, y: 0, width: parseFloat(e) || 0, height: parseFloat(i) || 0 }; } } render() { const t = this.viewBox, e = this.preserveAspectRatio, i = this.svgClasses(); if (typeof this.svg == \"string\") return c`<p style=\"font-size: initial;\">⚠️ SVG Error</p>`; if (this.svg instanceof SVGElement) { const s = this.svg.cloneNode(!0); return this.applyPartToPaths(s, \"__path\"), o(Array.from(s.children), t); } else return o(this.svg, t); function o(s, r) { if (s) return c` <svg part=\"__svg\" class=${m(i)} style=${f({ \"--svg-width-fallback\": `${r.width}em`, \"--svg-height-fallback\": `${r.height}em` })} viewBox=\"${r.x} ${r.y} ${r.width} ${r.height}\" preserveAspectRatio=${e} xmlns=\"http://www.w3.org/2000/svg\" > ${s} </svg> `; } } /** Applies a part name to all paths in the given element. */ applyPartToPaths(t, e) { if (t instanceof Element) { t.tagName.toLowerCase() === \"path\" && t.setAttribute(\"part\", e); for (const i of Array.from(t.children)) this.applyPartToPaths(i, e); } } /** * Gets the viewBox dimensions from an SVG element. * @param svg The SVG to get the attribute from. * @returns The SVG viewBox x, y, width, and height */ getViewBoxSize(t) { const e = t.getAttribute(\"viewBox\")?.split(\" \"); return e ? { x: +e[0], y: +e[1], width: +e[2], height: +e[3] } : null; } }"
2014
+ "name": "n",
2015
+ "default": "class extends g { constructor() { super(...arguments), this.autofit = !1, this.svgColors = !1, this.viewBox = { x: 0, y: 0, width: 0, height: 0 }, this._widthController = new c(this, \"--svg-width\", (t) => { this.viewBox = { ...this.viewBox, width: parseFloat(t) || 0 }; }), this._heightController = new c(this, \"--svg-height\", (t) => { this.viewBox = { ...this.viewBox, height: parseFloat(t) || 0 }; }); } set svg(t) { const e = t instanceof SVGElement || w(t) ? t : x(t); e instanceof Element && !(e instanceof SVGElement) || (this._svg = e); } get svg() { return this._svg ?? \"\"; } set preserveAspectRatio(t) { this._preserveAspectRatio = t; } get preserveAspectRatio() { if (this._preserveAspectRatio == null && this.svg instanceof SVGElement) { const t = this.svg.getAttribute(\"preserveAspectRatio\") || \"\"; if (B(t)) return t; } return this._preserveAspectRatio || \"xMidYMid meet\"; } // For classes inheriting from responsive-svg (e.g. draw-svg) svgClasses() { return {}; } connectedCallback() { if (super.connectedCallback(), this.svg instanceof SVGElement) { const t = this.getViewBoxSize(this.svg), e = parseFloat(this.svg.getAttribute(\"width\") || \"0\"), r = parseFloat(this.svg.getAttribute(\"height\") || \"0\"); this.viewBox = { x: t?.x ?? 0, y: t?.y ?? 0, width: this.viewBox.width || (t?.width ?? e), height: this.viewBox.height || (t?.height ?? r) }; } } render() { const t = this.viewBox, e = this.preserveAspectRatio, r = this.svgClasses(); if (t.height === 0 || t.width === 0) return l`<p style=\"font-size: initial;\">⚠️ SVG ViewBox</p>`; if (typeof this.svg == \"string\") return l`<p style=\"font-size: initial;\">⚠️ SVG Error</p>`; if (this.svg instanceof SVGElement) { const s = this.svg.cloneNode(!0); return o(Array.from(s.children), t); } else return o(this.svg, t); function o(s, i) { if (s) return l` <svg class=${u(r)} style=${m({ \"--svg-width-fallback\": `${i.width}em`, \"--svg-height-fallback\": `${i.height}em` })} viewBox=\"${i.x} ${i.y} ${i.width} ${i.height}\" preserveAspectRatio=${e} xmlns=\"http://www.w3.org/2000/svg\" > ${s} </svg> `; } } /** * Gets the viewBox dimensions from an SVG element. * @param svg The SVG to get the attribute from. * @returns The SVG viewBox x, y, width, and height */ getViewBoxSize(t) { const e = t.getAttribute(\"viewBox\")?.split(\" \"); return e ? { x: +e[0], y: +e[1], width: +e[2], height: +e[3] } : null; } }"
1860
2016
  }
1861
2017
  ],
1862
2018
  "exports": [
@@ -1864,7 +2020,7 @@
1864
2020
  "kind": "js",
1865
2021
  "name": "ResponsiveSvg",
1866
2022
  "declaration": {
1867
- "name": "p",
2023
+ "name": "n",
1868
2024
  "module": "dist/components/responsive-svg/responsive-svg.js"
1869
2025
  }
1870
2026
  },
@@ -1872,7 +2028,7 @@
1872
2028
  "kind": "js",
1873
2029
  "name": "preserveAspectRatioAlignOptions",
1874
2030
  "declaration": {
1875
- "name": "l",
2031
+ "name": "v",
1876
2032
  "module": "dist/components/responsive-svg/responsive-svg.js"
1877
2033
  }
1878
2034
  },
@@ -1880,7 +2036,7 @@
1880
2036
  "kind": "js",
1881
2037
  "name": "preserveAspectRatioOptions",
1882
2038
  "declaration": {
1883
- "name": "M",
2039
+ "name": "R",
1884
2040
  "module": "dist/components/responsive-svg/responsive-svg.js"
1885
2041
  }
1886
2042
  },
@@ -1888,7 +2044,7 @@
1888
2044
  "kind": "js",
1889
2045
  "name": "preserveAspectRatioSpacingOptions",
1890
2046
  "declaration": {
1891
- "name": "A",
2047
+ "name": "S",
1892
2048
  "module": "dist/components/responsive-svg/responsive-svg.js"
1893
2049
  }
1894
2050
  }
@@ -1995,6 +2151,12 @@
1995
2151
  "kind": "class",
1996
2152
  "description": "A container component which can serve as a modal or popup wrapper.",
1997
2153
  "name": "AbsoluteContainer",
2154
+ "cssParts": [
2155
+ {
2156
+ "description": "Styles the dialog element.",
2157
+ "name": "__dialog"
2158
+ }
2159
+ ],
1998
2160
  "members": [
1999
2161
  {
2000
2162
  "kind": "field",
@@ -2148,6 +2310,16 @@
2148
2310
  "name": "--height"
2149
2311
  }
2150
2312
  ],
2313
+ "cssParts": [
2314
+ {
2315
+ "description": "Styles handle element..",
2316
+ "name": "__handle"
2317
+ },
2318
+ {
2319
+ "description": "Styles the content wrapper element.",
2320
+ "name": "__content"
2321
+ }
2322
+ ],
2151
2323
  "members": [
2152
2324
  {
2153
2325
  "kind": "field",
@@ -3989,24 +4161,20 @@
3989
4161
  }
3990
4162
  },
3991
4163
  {
3992
- "kind": "method",
3993
- "name": "applyPartToPaths",
4164
+ "kind": "field",
4165
+ "name": "_widthController",
3994
4166
  "privacy": "private",
3995
- "parameters": [
3996
- {
3997
- "name": "element",
3998
- "type": {
3999
- "text": "Element"
4000
- }
4001
- },
4002
- {
4003
- "name": "partValue",
4004
- "type": {
4005
- "text": "string"
4006
- }
4007
- }
4008
- ],
4009
- "description": "Applies a part name to all paths in the given element.",
4167
+ "default": "new StyleController(this, '--svg-width', (val) => { this.viewBox = { ...this.viewBox, width: parseFloat(val) || 0 } })",
4168
+ "inheritedFrom": {
4169
+ "name": "ResponsiveSvg",
4170
+ "module": "src/components/responsive-svg/responsive-svg.ts"
4171
+ }
4172
+ },
4173
+ {
4174
+ "kind": "field",
4175
+ "name": "_heightController",
4176
+ "privacy": "private",
4177
+ "default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height: parseFloat(val) || 0 } })",
4010
4178
  "inheritedFrom": {
4011
4179
  "name": "ResponsiveSvg",
4012
4180
  "module": "src/components/responsive-svg/responsive-svg.ts"
@@ -4353,24 +4521,16 @@
4353
4521
  "privacy": "protected"
4354
4522
  },
4355
4523
  {
4356
- "kind": "method",
4357
- "name": "applyPartToPaths",
4524
+ "kind": "field",
4525
+ "name": "_widthController",
4358
4526
  "privacy": "private",
4359
- "parameters": [
4360
- {
4361
- "name": "element",
4362
- "type": {
4363
- "text": "Element"
4364
- }
4365
- },
4366
- {
4367
- "name": "partValue",
4368
- "type": {
4369
- "text": "string"
4370
- }
4371
- }
4372
- ],
4373
- "description": "Applies a part name to all paths in the given element."
4527
+ "default": "new StyleController(this, '--svg-width', (val) => { this.viewBox = { ...this.viewBox, width: parseFloat(val) || 0 } })"
4528
+ },
4529
+ {
4530
+ "kind": "field",
4531
+ "name": "_heightController",
4532
+ "privacy": "private",
4533
+ "default": "new StyleController(this, '--svg-height', (val) => { this.viewBox = { ...this.viewBox, height: parseFloat(val) || 0 } })"
4374
4534
  },
4375
4535
  {
4376
4536
  "kind": "method",
@@ -4853,52 +5013,658 @@
4853
5013
  "exports": [
4854
5014
  {
4855
5015
  "kind": "js",
4856
- "name": "default",
5016
+ "name": "default",
5017
+ "declaration": {
5018
+ "name": "e",
5019
+ "module": "dist/components/color-palette/item/color-palette-item-edit.styles.js"
5020
+ }
5021
+ }
5022
+ ]
5023
+ },
5024
+ {
5025
+ "kind": "javascript-module",
5026
+ "path": "dist/components/color-palette/item/color-palette-item.js",
5027
+ "declarations": [
5028
+ {
5029
+ "kind": "variable",
5030
+ "name": "t",
5031
+ "default": "class extends y { constructor() { super(...arguments), this.color = \"\", this.alias = \"\", this.aliasMode = h.aliasMode, this.direction = h.direction, this.editMode = !1, this.height = h.height, this.preventHover = !1, this.hideText = !1, this.colorCount = 0, this.emitter = new g(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return this.style.setProperty(\"--palette-item-background-color\", this.color), this.style.setProperty(\"--palette-item-color\", v(this.color)), this.style.setProperty(\"--palette-item-font-size\", `${C(this.colorCount)}px`), p` <div id='container' @click=${(i) => this.emitter.emit(\"click\", i)} > ${this.content()} </div> `; } /** Renders the content */ content() { const i = this.aliasMode === f.Both || this.alias == null || this.alias.trim() === \"\"; return p` ${i ? p`<span id='text'>${this.color.trim().toUpperCase()}</span>` : m} ${this.alias !== \"\" ? p` <span id=\"alias\">${this.alias}</span> ` : m} `; } }"
5032
+ }
5033
+ ],
5034
+ "exports": [
5035
+ {
5036
+ "kind": "js",
5037
+ "name": "ColorPaletteItem",
5038
+ "declaration": {
5039
+ "name": "t",
5040
+ "module": "dist/components/color-palette/item/color-palette-item.js"
5041
+ }
5042
+ }
5043
+ ]
5044
+ },
5045
+ {
5046
+ "kind": "javascript-module",
5047
+ "path": "dist/components/color-palette/item/color-palette-item.styles.js",
5048
+ "declarations": [
5049
+ {
5050
+ "kind": "variable",
5051
+ "name": "o",
5052
+ "default": "e` :host { --palette-item-background-color: #000000; --palette-item-color: #ffffff; --palette-item-font-size: 16px; display: flex; flex: 1; transition: all 0.1s ease-in-out; background-color: var(--palette-item-background-color); color: var(--palette-item-color); } /* Animation Size */ :host(:not([preventHover]):hover) { flex-basis: var(--palette-column-flex-basis); } :host([direction='column']:not([preventHover]):hover) { flex-basis: 80px; } /* Hover States */ :host(:not([preventHover])) #container > span { display: none; } :host(:not([preventHover]):hover) #container > span { display: block; } :host([hideText]) #container > span { display: none; } :host([hideText]:hover) #container > span { display: none; } /* Container Directions */ :host([direction='column']) > #container { display: flex; flex-direction: column; justify-content: center; } :host([direction='row']) > #container { display: flex; justify-content: center; } :host([direction='row'][editMode]) > #container { display: grid; grid-template-columns: 1fr 1fr; } #container { flex: 1; gap: 3%; *:first-child { justify-self: flex-end; align-self: center; } *:last-child { justify-self: flex-start; align-self: center; } span { display: block; text-align: center; font-size: 100%; font-weight: bold; user-select: none; } } `"
5053
+ }
5054
+ ],
5055
+ "exports": [
5056
+ {
5057
+ "kind": "js",
5058
+ "name": "default",
5059
+ "declaration": {
5060
+ "name": "o",
5061
+ "module": "dist/components/color-palette/item/color-palette-item.styles.js"
5062
+ }
5063
+ }
5064
+ ]
5065
+ },
5066
+ {
5067
+ "kind": "javascript-module",
5068
+ "path": "dist/node_modules/style-observer/src/element-style-observer.js",
5069
+ "declarations": [
5070
+ {
5071
+ "kind": "class",
5072
+ "description": "",
5073
+ "name": "O",
5074
+ "members": [
5075
+ {
5076
+ "kind": "field",
5077
+ "name": "propertyNames",
5078
+ "description": "Get the names of all properties currently being observed.",
5079
+ "type": {
5080
+ "text": "string[]"
5081
+ },
5082
+ "readonly": true
5083
+ },
5084
+ {
5085
+ "kind": "field",
5086
+ "name": "target",
5087
+ "description": "The element being observed.",
5088
+ "type": {
5089
+ "text": "Element"
5090
+ },
5091
+ "default": "t"
5092
+ },
5093
+ {
5094
+ "kind": "field",
5095
+ "name": "callback",
5096
+ "description": "The callback to call when the element's style changes.",
5097
+ "type": {
5098
+ "text": "StyleObserverCallback"
5099
+ },
5100
+ "default": "r"
5101
+ },
5102
+ {
5103
+ "kind": "field",
5104
+ "name": "options",
5105
+ "description": "The observer options.",
5106
+ "type": {
5107
+ "text": "StyleObserverOptions"
5108
+ },
5109
+ "default": "{ properties: [], ...s }"
5110
+ },
5111
+ {
5112
+ "kind": "field",
5113
+ "name": "#t",
5114
+ "privacy": "private",
5115
+ "type": {
5116
+ "text": "boolean"
5117
+ },
5118
+ "default": "!1",
5119
+ "description": "Whether the observer has been initialized."
5120
+ },
5121
+ {
5122
+ "kind": "method",
5123
+ "name": "#s",
5124
+ "privacy": "private",
5125
+ "description": "Called the first time observe() is called to initialize the target."
5126
+ },
5127
+ {
5128
+ "kind": "method",
5129
+ "name": "resolveOptions",
5130
+ "parameters": [
5131
+ {
5132
+ "name": "t"
5133
+ }
5134
+ ]
5135
+ },
5136
+ {
5137
+ "kind": "method",
5138
+ "name": "handleEvent",
5139
+ "parameters": [
5140
+ {
5141
+ "name": "t"
5142
+ },
5143
+ {
5144
+ "name": "event",
5145
+ "optional": true,
5146
+ "type": {
5147
+ "text": "TransitionEvent"
5148
+ }
5149
+ }
5150
+ ],
5151
+ "description": "Handle a potential property change",
5152
+ "privacy": "private"
5153
+ },
5154
+ {
5155
+ "kind": "method",
5156
+ "name": "observe",
5157
+ "parameters": [
5158
+ {
5159
+ "name": "t"
5160
+ },
5161
+ {
5162
+ "name": "properties",
5163
+ "type": {
5164
+ "text": "string | string[]"
5165
+ }
5166
+ }
5167
+ ],
5168
+ "description": "Observe the target for changes to one or more CSS properties.",
5169
+ "return": {
5170
+ "type": {
5171
+ "text": "void"
5172
+ }
5173
+ }
5174
+ },
5175
+ {
5176
+ "kind": "method",
5177
+ "name": "updateTransitionProperties",
5178
+ "description": "Update the `--style-observer-transition` property to include all observed properties."
5179
+ },
5180
+ {
5181
+ "kind": "field",
5182
+ "name": "#e",
5183
+ "privacy": "private",
5184
+ "type": {
5185
+ "text": "string | undefined"
5186
+ }
5187
+ },
5188
+ {
5189
+ "kind": "method",
5190
+ "name": "updateTransition",
5191
+ "parameters": [
5192
+ {
5193
+ "name": "{ firstTime: t }",
5194
+ "default": "{}"
5195
+ },
5196
+ {
5197
+ "name": "options",
5198
+ "type": {
5199
+ "text": "@param {boolean} [options.firstTime] - Whether this is the first time the transition is being set.\n "
5200
+ }
5201
+ }
5202
+ ],
5203
+ "description": "Update the target's transition property or refresh it if it was overwritten."
5204
+ },
5205
+ {
5206
+ "kind": "field",
5207
+ "name": "_isHost",
5208
+ "description": "Whether the target has an open shadow root (and the modern adoptedStyleSheets API is supported).",
5209
+ "type": {
5210
+ "text": "boolean"
5211
+ },
5212
+ "privacy": "private",
5213
+ "readonly": true
5214
+ },
5215
+ {
5216
+ "kind": "field",
5217
+ "name": "_shadowSheet",
5218
+ "description": "Shadow style sheet. Only used if _isHost is true.",
5219
+ "type": {
5220
+ "text": "CSSStyleSheet | undefined"
5221
+ },
5222
+ "privacy": "private"
5223
+ },
5224
+ {
5225
+ "kind": "field",
5226
+ "name": "_styles",
5227
+ "type": {
5228
+ "text": "Record<string, string>"
5229
+ },
5230
+ "default": "{}",
5231
+ "description": "Any styles we've set on the target, for any reason.",
5232
+ "privacy": "private"
5233
+ },
5234
+ {
5235
+ "kind": "method",
5236
+ "name": "setProperty",
5237
+ "parameters": [
5238
+ {
5239
+ "name": "t"
5240
+ },
5241
+ {
5242
+ "name": "r"
5243
+ },
5244
+ {
5245
+ "name": "s"
5246
+ },
5247
+ {
5248
+ "name": "property",
5249
+ "type": {
5250
+ "text": "string"
5251
+ }
5252
+ },
5253
+ {
5254
+ "name": "value",
5255
+ "type": {
5256
+ "text": "string"
5257
+ }
5258
+ },
5259
+ {
5260
+ "name": "priority",
5261
+ "optional": true,
5262
+ "type": {
5263
+ "text": "string"
5264
+ }
5265
+ }
5266
+ ],
5267
+ "description": "Set a CSS property on the target.",
5268
+ "return": {
5269
+ "type": {
5270
+ "text": "void"
5271
+ }
5272
+ }
5273
+ },
5274
+ {
5275
+ "kind": "method",
5276
+ "name": "getProperty",
5277
+ "parameters": [
5278
+ {
5279
+ "name": "t"
5280
+ },
5281
+ {
5282
+ "name": "property",
5283
+ "type": {
5284
+ "text": "string"
5285
+ }
5286
+ }
5287
+ ],
5288
+ "description": "Get a CSS property from the target.",
5289
+ "return": {
5290
+ "type": {
5291
+ "text": "string"
5292
+ }
5293
+ }
5294
+ },
5295
+ {
5296
+ "kind": "method",
5297
+ "name": "unobserve",
5298
+ "parameters": [
5299
+ {
5300
+ "name": "t"
5301
+ },
5302
+ {
5303
+ "description": "Properties to stop observing. Defaults to all observed properties.",
5304
+ "name": "properties",
5305
+ "optional": true,
5306
+ "type": {
5307
+ "text": "string | string[]"
5308
+ }
5309
+ }
5310
+ ],
5311
+ "description": "Stop observing a target for changes to one or more CSS properties.",
5312
+ "return": {
5313
+ "type": {
5314
+ "text": "void"
5315
+ }
5316
+ }
5317
+ },
5318
+ {
5319
+ "kind": "field",
5320
+ "name": "all",
5321
+ "static": true,
5322
+ "default": "new d()",
5323
+ "description": "All instances ever observed by this class."
5324
+ },
5325
+ {
5326
+ "kind": "field",
5327
+ "name": "renderedObserver",
5328
+ "default": "new g((i) => { this.propertyNames.length > 0 && this.handleEvent(); })"
5329
+ },
5330
+ {
5331
+ "kind": "field"
5332
+ }
5333
+ ]
5334
+ },
5335
+ {
5336
+ "kind": "function",
5337
+ "name": "c",
5338
+ "parameters": [
5339
+ {
5340
+ "name": "o"
5341
+ }
5342
+ ]
5343
+ }
5344
+ ],
5345
+ "exports": [
5346
+ {
5347
+ "kind": "js",
5348
+ "name": "default",
5349
+ "declaration": {
5350
+ "name": "O",
5351
+ "module": "dist/node_modules/style-observer/src/element-style-observer.js"
5352
+ }
5353
+ },
5354
+ {
5355
+ "kind": "js",
5356
+ "name": "resolveOptions",
5357
+ "declaration": {
5358
+ "name": "c",
5359
+ "module": "dist/node_modules/style-observer/src/element-style-observer.js"
5360
+ }
5361
+ }
5362
+ ]
5363
+ },
5364
+ {
5365
+ "kind": "javascript-module",
5366
+ "path": "dist/node_modules/style-observer/src/rendered-observer.js",
5367
+ "declarations": [
5368
+ {
5369
+ "kind": "class",
5370
+ "description": "",
5371
+ "name": "c",
5372
+ "members": [
5373
+ {
5374
+ "kind": "field",
5375
+ "name": "#e",
5376
+ "privacy": "private",
5377
+ "default": "new Set()",
5378
+ "description": "All currently observed targets",
5379
+ "type": {
5380
+ "text": "WeakSet<Element>"
5381
+ }
5382
+ },
5383
+ {
5384
+ "kind": "field",
5385
+ "name": "#t",
5386
+ "privacy": "private",
5387
+ "default": "new WeakMap()",
5388
+ "description": "Documents to IntersectionObserver instances",
5389
+ "type": {
5390
+ "text": "WeakMap<Document, IntersectionObserver>"
5391
+ }
5392
+ },
5393
+ {
5394
+ "kind": "method",
5395
+ "name": "observe",
5396
+ "parameters": [
5397
+ {
5398
+ "name": "e"
5399
+ },
5400
+ {
5401
+ "description": "The element to observe.",
5402
+ "name": "element",
5403
+ "type": {
5404
+ "text": "Element"
5405
+ }
5406
+ }
5407
+ ],
5408
+ "description": "Begin observing the presence of an element."
5409
+ },
5410
+ {
5411
+ "kind": "method",
5412
+ "name": "unobserve",
5413
+ "parameters": [
5414
+ {
5415
+ "name": "e"
5416
+ },
5417
+ {
5418
+ "description": "The element to stop observing. If not provided, all targets will be unobserved.",
5419
+ "name": "element",
5420
+ "optional": true,
5421
+ "type": {
5422
+ "text": "Element"
5423
+ }
5424
+ }
5425
+ ],
5426
+ "description": "Stop observing the presence of an element."
5427
+ },
5428
+ {
5429
+ "kind": "field",
5430
+ "name": "callback",
5431
+ "default": "e"
5432
+ }
5433
+ ]
5434
+ }
5435
+ ],
5436
+ "exports": [
5437
+ {
5438
+ "kind": "js",
5439
+ "name": "default",
5440
+ "declaration": {
5441
+ "name": "c",
5442
+ "module": "dist/node_modules/style-observer/src/rendered-observer.js"
5443
+ }
5444
+ }
5445
+ ]
5446
+ },
5447
+ {
5448
+ "kind": "javascript-module",
5449
+ "path": "dist/node_modules/style-observer/src/style-observer.js",
5450
+ "declarations": [
5451
+ {
5452
+ "kind": "class",
5453
+ "description": "",
5454
+ "name": "p",
5455
+ "members": [
5456
+ {
5457
+ "kind": "field",
5458
+ "name": "elementObservers",
5459
+ "default": "new WeakMap()",
5460
+ "type": {
5461
+ "text": "WeakMap<Element, ElementStyleObserver>"
5462
+ }
5463
+ },
5464
+ {
5465
+ "kind": "method",
5466
+ "name": "changed",
5467
+ "parameters": [
5468
+ {
5469
+ "name": "t"
5470
+ }
5471
+ ],
5472
+ "type": {
5473
+ "text": "StyleObserverCallback"
5474
+ }
5475
+ },
5476
+ {
5477
+ "kind": "method",
5478
+ "name": "observe",
5479
+ "parameters": [
5480
+ {
5481
+ "name": "t"
5482
+ }
5483
+ ],
5484
+ "description": "Observe one or more targets for changes to one or more CSS properties."
5485
+ },
5486
+ {
5487
+ "kind": "method",
5488
+ "name": "unobserve",
5489
+ "parameters": [
5490
+ {
5491
+ "name": "t"
5492
+ }
5493
+ ],
5494
+ "description": "Stop observing one or more targets for changes to one or more CSS properties."
5495
+ },
5496
+ {
5497
+ "kind": "method",
5498
+ "name": "updateTransition",
5499
+ "parameters": [
5500
+ {
5501
+ "name": "t"
5502
+ },
5503
+ {
5504
+ "name": "targets",
5505
+ "type": {
5506
+ "text": "Element | Element[]"
5507
+ }
5508
+ }
5509
+ ],
5510
+ "description": "Update the transition for one or more targets.",
5511
+ "return": {
5512
+ "type": {
5513
+ "text": "void"
5514
+ }
5515
+ }
5516
+ },
5517
+ {
5518
+ "kind": "field",
5519
+ "name": "callback",
5520
+ "default": "t"
5521
+ },
5522
+ {
5523
+ "kind": "field"
5524
+ },
5525
+ {
5526
+ "kind": "field",
5527
+ "name": "targets",
5528
+ "type": {
5529
+ "text": "array"
5530
+ },
5531
+ "default": "[]"
5532
+ },
5533
+ {
5534
+ "kind": "field",
5535
+ "name": "target"
5536
+ },
5537
+ {
5538
+ "kind": "field",
5539
+ "name": "options",
5540
+ "default": "[...n(o), ...n(t)]",
5541
+ "type": {
5542
+ "text": "array"
5543
+ }
5544
+ }
5545
+ ]
5546
+ }
5547
+ ],
5548
+ "exports": [
5549
+ {
5550
+ "kind": "js",
5551
+ "name": "default",
5552
+ "declaration": {
5553
+ "name": "p",
5554
+ "module": "dist/node_modules/style-observer/src/style-observer.js"
5555
+ }
5556
+ }
5557
+ ]
5558
+ },
5559
+ {
5560
+ "kind": "javascript-module",
5561
+ "path": "dist/node_modules/style-observer/src/util.js",
5562
+ "declarations": [
5563
+ {
5564
+ "kind": "function",
5565
+ "name": "c",
5566
+ "parameters": [
5567
+ {
5568
+ "name": "e"
5569
+ }
5570
+ ]
5571
+ },
5572
+ {
5573
+ "kind": "function",
5574
+ "name": "h",
5575
+ "parameters": [
5576
+ {
5577
+ "name": "e"
5578
+ }
5579
+ ]
5580
+ },
5581
+ {
5582
+ "kind": "function",
5583
+ "name": "m",
5584
+ "parameters": [
5585
+ {
5586
+ "name": "e"
5587
+ }
5588
+ ]
5589
+ },
5590
+ {
5591
+ "kind": "function",
5592
+ "name": "u",
5593
+ "parameters": [
5594
+ {
5595
+ "name": "e"
5596
+ }
5597
+ ]
5598
+ },
5599
+ {
5600
+ "kind": "function",
5601
+ "name": "d",
5602
+ "parameters": [
5603
+ {
5604
+ "name": "e"
5605
+ },
5606
+ {
5607
+ "name": "t"
5608
+ }
5609
+ ]
5610
+ },
5611
+ {
5612
+ "kind": "function",
5613
+ "name": "a",
5614
+ "parameters": [
5615
+ {
5616
+ "name": "e"
5617
+ }
5618
+ ]
5619
+ }
5620
+ ],
5621
+ "exports": [
5622
+ {
5623
+ "kind": "js",
5624
+ "name": "getLonghands",
5625
+ "declaration": {
5626
+ "name": "m",
5627
+ "module": "dist/node_modules/style-observer/src/util.js"
5628
+ }
5629
+ },
5630
+ {
5631
+ "kind": "js",
5632
+ "name": "getTimesFor",
4857
5633
  "declaration": {
4858
- "name": "e",
4859
- "module": "dist/components/color-palette/item/color-palette-item-edit.styles.js"
5634
+ "name": "d",
5635
+ "module": "dist/node_modules/style-observer/src/util.js"
4860
5636
  }
4861
- }
4862
- ]
4863
- },
4864
- {
4865
- "kind": "javascript-module",
4866
- "path": "dist/components/color-palette/item/color-palette-item.js",
4867
- "declarations": [
5637
+ },
4868
5638
  {
4869
- "kind": "variable",
4870
- "name": "t",
4871
- "default": "class extends y { constructor() { super(...arguments), this.color = \"\", this.alias = \"\", this.aliasMode = h.aliasMode, this.direction = h.direction, this.editMode = !1, this.height = h.height, this.preventHover = !1, this.hideText = !1, this.colorCount = 0, this.emitter = new g(); } disconnectedCallback() { super.disconnectedCallback(), this.emitter.clear(); } render() { return this.style.setProperty(\"--palette-item-background-color\", this.color), this.style.setProperty(\"--palette-item-color\", v(this.color)), this.style.setProperty(\"--palette-item-font-size\", `${C(this.colorCount)}px`), p` <div id='container' @click=${(i) => this.emitter.emit(\"click\", i)} > ${this.content()} </div> `; } /** Renders the content */ content() { const i = this.aliasMode === f.Both || this.alias == null || this.alias.trim() === \"\"; return p` ${i ? p`<span id='text'>${this.color.trim().toUpperCase()}</span>` : m} ${this.alias !== \"\" ? p` <span id=\"alias\">${this.alias}</span> ` : m} `; } }"
4872
- }
4873
- ],
4874
- "exports": [
5639
+ "kind": "js",
5640
+ "name": "parseTimes",
5641
+ "declaration": {
5642
+ "name": "u",
5643
+ "module": "dist/node_modules/style-observer/src/util.js"
5644
+ }
5645
+ },
4875
5646
  {
4876
5647
  "kind": "js",
4877
- "name": "ColorPaletteItem",
5648
+ "name": "splitCommas",
4878
5649
  "declaration": {
4879
- "name": "t",
4880
- "module": "dist/components/color-palette/item/color-palette-item.js"
5650
+ "name": "a",
5651
+ "module": "dist/node_modules/style-observer/src/util.js"
4881
5652
  }
4882
- }
4883
- ]
4884
- },
4885
- {
4886
- "kind": "javascript-module",
4887
- "path": "dist/components/color-palette/item/color-palette-item.styles.js",
4888
- "declarations": [
5653
+ },
4889
5654
  {
4890
- "kind": "variable",
4891
- "name": "o",
4892
- "default": "e` :host { --palette-item-background-color: #000000; --palette-item-color: #ffffff; --palette-item-font-size: 16px; display: flex; flex: 1; transition: all 0.1s ease-in-out; background-color: var(--palette-item-background-color); color: var(--palette-item-color); } /* Animation Size */ :host(:not([preventHover]):hover) { flex-basis: var(--palette-column-flex-basis); } :host([direction='column']:not([preventHover]):hover) { flex-basis: 80px; } /* Hover States */ :host(:not([preventHover])) #container > span { display: none; } :host(:not([preventHover]):hover) #container > span { display: block; } :host([hideText]) #container > span { display: none; } :host([hideText]:hover) #container > span { display: none; } /* Container Directions */ :host([direction='column']) > #container { display: flex; flex-direction: column; justify-content: center; } :host([direction='row']) > #container { display: flex; justify-content: center; } :host([direction='row'][editMode]) > #container { display: grid; grid-template-columns: 1fr 1fr; } #container { flex: 1; gap: 3%; *:first-child { justify-self: flex-end; align-self: center; } *:last-child { justify-self: flex-start; align-self: center; } span { display: block; text-align: center; font-size: 100%; font-weight: bold; user-select: none; } } `"
4893
- }
4894
- ],
4895
- "exports": [
5655
+ "kind": "js",
5656
+ "name": "toArray",
5657
+ "declaration": {
5658
+ "name": "c",
5659
+ "module": "dist/node_modules/style-observer/src/util.js"
5660
+ }
5661
+ },
4896
5662
  {
4897
5663
  "kind": "js",
4898
- "name": "default",
5664
+ "name": "wait",
4899
5665
  "declaration": {
4900
- "name": "o",
4901
- "module": "dist/components/color-palette/item/color-palette-item.styles.js"
5666
+ "name": "h",
5667
+ "module": "dist/node_modules/style-observer/src/util.js"
4902
5668
  }
4903
5669
  }
4904
5670
  ]
@@ -6361,6 +7127,255 @@
6361
7127
  }
6362
7128
  }
6363
7129
  ]
7130
+ },
7131
+ {
7132
+ "kind": "javascript-module",
7133
+ "path": "dist/node_modules/style-observer/src/util/adopt-css.js",
7134
+ "declarations": [
7135
+ {
7136
+ "kind": "function",
7137
+ "name": "n",
7138
+ "parameters": [
7139
+ {
7140
+ "name": "l"
7141
+ },
7142
+ {
7143
+ "name": "e",
7144
+ "default": "globalThis.document"
7145
+ }
7146
+ ]
7147
+ }
7148
+ ],
7149
+ "exports": [
7150
+ {
7151
+ "kind": "js",
7152
+ "name": "default",
7153
+ "declaration": {
7154
+ "name": "n",
7155
+ "module": "dist/node_modules/style-observer/src/util/adopt-css.js"
7156
+ }
7157
+ }
7158
+ ]
7159
+ },
7160
+ {
7161
+ "kind": "javascript-module",
7162
+ "path": "dist/node_modules/style-observer/src/util/Bug.js",
7163
+ "declarations": [
7164
+ {
7165
+ "kind": "class",
7166
+ "description": "",
7167
+ "name": "t",
7168
+ "members": [
7169
+ {
7170
+ "kind": "field",
7171
+ "name": "#t",
7172
+ "privacy": "private"
7173
+ },
7174
+ {
7175
+ "kind": "field",
7176
+ "name": "#e",
7177
+ "privacy": "private"
7178
+ },
7179
+ {
7180
+ "kind": "field",
7181
+ "name": "valuePending",
7182
+ "description": "Get whether the bug is present or not, or a promise that will resolve to this value when detection is complete.",
7183
+ "readonly": true
7184
+ },
7185
+ {
7186
+ "kind": "field",
7187
+ "name": "value",
7188
+ "description": "Synchronously get either whether the bug is present (if already detected or detection is sync)\nor kick off detection and return the initial value if detection is async",
7189
+ "readonly": true
7190
+ },
7191
+ {
7192
+ "kind": "field",
7193
+ "name": "all",
7194
+ "type": {
7195
+ "text": "object"
7196
+ },
7197
+ "static": true,
7198
+ "default": "{}"
7199
+ },
7200
+ {
7201
+ "kind": "method",
7202
+ "name": "detectAll",
7203
+ "static": true
7204
+ },
7205
+ {
7206
+ "kind": "field",
7207
+ "name": "name",
7208
+ "default": "e"
7209
+ },
7210
+ {
7211
+ "kind": "field",
7212
+ "name": "initialValue"
7213
+ },
7214
+ {
7215
+ "kind": "field",
7216
+ "name": "detect",
7217
+ "default": "s"
7218
+ },
7219
+ {
7220
+ "kind": "field",
7221
+ "default": "this"
7222
+ }
7223
+ ]
7224
+ }
7225
+ ],
7226
+ "exports": [
7227
+ {
7228
+ "kind": "js",
7229
+ "name": "default",
7230
+ "declaration": {
7231
+ "name": "t",
7232
+ "module": "dist/node_modules/style-observer/src/util/Bug.js"
7233
+ }
7234
+ }
7235
+ ]
7236
+ },
7237
+ {
7238
+ "kind": "javascript-module",
7239
+ "path": "dist/node_modules/style-observer/src/util/gentle-register-property.js",
7240
+ "declarations": [
7241
+ {
7242
+ "kind": "function",
7243
+ "name": "f",
7244
+ "parameters": [
7245
+ {
7246
+ "name": "t"
7247
+ },
7248
+ {
7249
+ "name": "n",
7250
+ "default": "{}"
7251
+ },
7252
+ {
7253
+ "name": "r",
7254
+ "default": "globalThis.document"
7255
+ }
7256
+ ]
7257
+ }
7258
+ ],
7259
+ "exports": [
7260
+ {
7261
+ "kind": "js",
7262
+ "name": "default",
7263
+ "declaration": {
7264
+ "name": "f",
7265
+ "module": "dist/node_modules/style-observer/src/util/gentle-register-property.js"
7266
+ }
7267
+ }
7268
+ ]
7269
+ },
7270
+ {
7271
+ "kind": "javascript-module",
7272
+ "path": "dist/node_modules/style-observer/src/util/is-registered-property.js",
7273
+ "declarations": [
7274
+ {
7275
+ "kind": "function",
7276
+ "name": "n",
7277
+ "parameters": [
7278
+ {
7279
+ "name": "t"
7280
+ },
7281
+ {
7282
+ "name": "l",
7283
+ "default": "globalThis.document"
7284
+ }
7285
+ ]
7286
+ }
7287
+ ],
7288
+ "exports": [
7289
+ {
7290
+ "kind": "js",
7291
+ "name": "default",
7292
+ "declaration": {
7293
+ "name": "n",
7294
+ "module": "dist/node_modules/style-observer/src/util/is-registered-property.js"
7295
+ }
7296
+ }
7297
+ ]
7298
+ },
7299
+ {
7300
+ "kind": "javascript-module",
7301
+ "path": "dist/node_modules/style-observer/src/util/MultiWeakMap.js",
7302
+ "declarations": [
7303
+ {
7304
+ "kind": "class",
7305
+ "description": "",
7306
+ "name": "r",
7307
+ "members": [
7308
+ {
7309
+ "kind": "method",
7310
+ "name": "has",
7311
+ "parameters": [
7312
+ {
7313
+ "name": "e"
7314
+ },
7315
+ {
7316
+ "name": "s"
7317
+ }
7318
+ ]
7319
+ },
7320
+ {
7321
+ "kind": "method",
7322
+ "name": "add",
7323
+ "parameters": [
7324
+ {
7325
+ "name": "e"
7326
+ },
7327
+ {
7328
+ "name": "s"
7329
+ }
7330
+ ]
7331
+ },
7332
+ {
7333
+ "kind": "method",
7334
+ "name": "delete",
7335
+ "parameters": [
7336
+ {
7337
+ "name": "e"
7338
+ },
7339
+ {
7340
+ "name": "s"
7341
+ }
7342
+ ]
7343
+ }
7344
+ ],
7345
+ "superclass": {
7346
+ "name": "WeakMap",
7347
+ "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7348
+ }
7349
+ }
7350
+ ],
7351
+ "exports": [
7352
+ {
7353
+ "kind": "js",
7354
+ "name": "default",
7355
+ "declaration": {
7356
+ "name": "r",
7357
+ "module": "dist/node_modules/style-observer/src/util/MultiWeakMap.js"
7358
+ }
7359
+ }
7360
+ ]
7361
+ },
7362
+ {
7363
+ "kind": "javascript-module",
7364
+ "path": "dist/node_modules/style-observer/src/util/bugs/adopted-style-sheet.js",
7365
+ "declarations": [],
7366
+ "exports": []
7367
+ },
7368
+ {
7369
+ "kind": "javascript-module",
7370
+ "path": "dist/node_modules/style-observer/src/util/bugs/transitionrun-loop.js",
7371
+ "declarations": [],
7372
+ "exports": []
7373
+ },
7374
+ {
7375
+ "kind": "javascript-module",
7376
+ "path": "dist/node_modules/style-observer/src/util/bugs/unregistered-transition.js",
7377
+ "declarations": [],
7378
+ "exports": []
6364
7379
  }
6365
7380
  ]
6366
7381
  }