@swisspost/design-system-components 1.3.10 → 1.5.0

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 (176) hide show
  1. package/dist/cjs/check-non-empty-35b4d0b5.js +14 -0
  2. package/dist/cjs/check-non-empty-35b4d0b5.js.map +1 -0
  3. package/dist/cjs/check-one-of-4c2e8b2e.js +10 -0
  4. package/dist/cjs/check-one-of-4c2e8b2e.js.map +1 -0
  5. package/dist/cjs/{package-f6bb523d.js → check-type-508a21a5.js} +1 -10
  6. package/dist/cjs/check-type-508a21a5.js.map +1 -0
  7. package/dist/cjs/fade-8c6d4fa7.js +12 -0
  8. package/dist/cjs/fade-8c6d4fa7.js.map +1 -0
  9. package/dist/cjs/{index-272283b3.js → index-12cc37c9.js} +121 -5
  10. package/dist/{post-components/p-0096c140.js.map → cjs/index-12cc37c9.js.map} +1 -1
  11. package/dist/cjs/index-f8f6f146.js +28 -0
  12. package/dist/cjs/index-f8f6f146.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/package-67091813.js +7 -0
  15. package/dist/cjs/package-67091813.js.map +1 -0
  16. package/dist/cjs/post-alert.cjs.entry.js +106 -0
  17. package/dist/cjs/post-alert.cjs.entry.js.map +1 -0
  18. package/dist/cjs/post-collapsible.cjs.entry.js +6 -4
  19. package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
  20. package/dist/cjs/post-components.cjs.js +2 -2
  21. package/dist/cjs/post-icon.cjs.entry.js +14 -29
  22. package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
  23. package/dist/cjs/post-tab-header.cjs.entry.js +35 -0
  24. package/dist/cjs/post-tab-header.cjs.entry.js.map +1 -0
  25. package/dist/cjs/post-tab-panel.cjs.entry.js +29 -0
  26. package/dist/cjs/post-tab-panel.cjs.entry.js.map +1 -0
  27. package/dist/cjs/post-tabs.cjs.entry.js +136 -0
  28. package/dist/cjs/post-tabs.cjs.entry.js.map +1 -0
  29. package/dist/cjs/post-tooltip.cjs.entry.js +5097 -0
  30. package/dist/cjs/post-tooltip.cjs.entry.js.map +1 -0
  31. package/dist/collection/animations/fade.js +6 -0
  32. package/dist/collection/animations/fade.js.map +1 -0
  33. package/dist/collection/animations/index.js +2 -0
  34. package/dist/collection/animations/index.js.map +1 -0
  35. package/dist/collection/collection-manifest.json +6 -1
  36. package/dist/collection/components/post-alert/alert-types.js +2 -0
  37. package/dist/collection/components/post-alert/alert-types.js.map +1 -0
  38. package/dist/collection/components/post-alert/post-alert.css +563 -0
  39. package/dist/collection/components/post-alert/post-alert.js +256 -0
  40. package/dist/collection/components/post-alert/post-alert.js.map +1 -0
  41. package/dist/collection/components/post-collapsible/post-collapsible.css +7 -0
  42. package/dist/collection/components/post-tab-header/post-tab-header.css +337 -0
  43. package/dist/collection/components/post-tab-header/post-tab-header.js +68 -0
  44. package/dist/collection/components/post-tab-header/post-tab-header.js.map +1 -0
  45. package/dist/collection/components/post-tab-panel/post-tab-panel.css +3 -0
  46. package/dist/collection/components/post-tab-panel/post-tab-panel.js +55 -0
  47. package/dist/collection/components/post-tab-panel/post-tab-panel.js.map +1 -0
  48. package/dist/collection/components/post-tabs/post-tabs.css +148 -0
  49. package/dist/collection/components/post-tabs/post-tabs.js +208 -0
  50. package/dist/collection/components/post-tabs/post-tabs.js.map +1 -0
  51. package/dist/collection/components/post-tooltip/post-tooltip.css +194 -0
  52. package/dist/collection/components/post-tooltip/post-tooltip.js +338 -0
  53. package/dist/collection/components/post-tooltip/post-tooltip.js.map +1 -0
  54. package/dist/collection/components/post-tooltip/types.js +2 -0
  55. package/dist/collection/components/post-tooltip/types.js.map +1 -0
  56. package/dist/collection/utils/property-checkers/check-one-of.js.map +1 -1
  57. package/dist/collection/utils/property-checkers/check-pattern.js +5 -0
  58. package/dist/collection/utils/property-checkers/check-pattern.js.map +1 -0
  59. package/dist/collection/utils/property-checkers/index.js +3 -0
  60. package/dist/collection/utils/property-checkers/index.js.map +1 -1
  61. package/dist/components/check-non-empty.js +11 -0
  62. package/dist/components/check-non-empty.js.map +1 -0
  63. package/dist/components/check-one-of.js +8 -0
  64. package/dist/components/check-one-of.js.map +1 -0
  65. package/dist/{esm/package-bcf00737.js → components/check-type.js} +2 -9
  66. package/dist/components/check-type.js.map +1 -0
  67. package/dist/components/fade.js +9 -0
  68. package/dist/components/fade.js.map +1 -0
  69. package/dist/components/package.js +2 -20
  70. package/dist/components/package.js.map +1 -1
  71. package/dist/components/post-alert.d.ts +11 -0
  72. package/dist/components/post-alert.js +136 -0
  73. package/dist/components/post-alert.js.map +1 -0
  74. package/dist/components/post-collapsible.js +3 -1
  75. package/dist/components/post-collapsible.js.map +1 -1
  76. package/dist/components/post-icon.js +1 -141
  77. package/dist/components/post-icon.js.map +1 -1
  78. package/dist/components/post-icon2.js +146 -0
  79. package/dist/components/post-icon2.js.map +1 -0
  80. package/dist/components/post-tab-header.d.ts +11 -0
  81. package/dist/components/post-tab-header.js +52 -0
  82. package/dist/components/post-tab-header.js.map +1 -0
  83. package/dist/components/post-tab-panel.d.ts +11 -0
  84. package/dist/components/post-tab-panel.js +46 -0
  85. package/dist/components/post-tab-panel.js.map +1 -0
  86. package/dist/components/post-tabs.d.ts +11 -0
  87. package/dist/components/post-tabs.js +153 -0
  88. package/dist/components/post-tabs.js.map +1 -0
  89. package/dist/components/post-tooltip.d.ts +11 -0
  90. package/dist/components/post-tooltip.js +5118 -0
  91. package/dist/components/post-tooltip.js.map +1 -0
  92. package/dist/docs.json +441 -1
  93. package/dist/esm/check-non-empty-554bdf88.js +11 -0
  94. package/dist/esm/check-non-empty-554bdf88.js.map +1 -0
  95. package/dist/esm/check-one-of-ded5e15e.js +8 -0
  96. package/dist/esm/check-one-of-ded5e15e.js.map +1 -0
  97. package/dist/esm/check-type-18ebb4e7.js +16 -0
  98. package/dist/esm/check-type-18ebb4e7.js.map +1 -0
  99. package/dist/esm/fade-671f1489.js +9 -0
  100. package/dist/esm/fade-671f1489.js.map +1 -0
  101. package/dist/esm/{index-60a84798.js → index-5611074b.js} +121 -6
  102. package/dist/esm/index-5611074b.js.map +1 -0
  103. package/dist/esm/index-7f723686.js +24 -0
  104. package/dist/esm/index-7f723686.js.map +1 -0
  105. package/dist/esm/loader.js +3 -3
  106. package/dist/esm/package-f5cb3167.js +5 -0
  107. package/dist/esm/package-f5cb3167.js.map +1 -0
  108. package/dist/esm/post-alert.entry.js +102 -0
  109. package/dist/esm/post-alert.entry.js.map +1 -0
  110. package/dist/esm/post-collapsible.entry.js +4 -2
  111. package/dist/esm/post-collapsible.entry.js.map +1 -1
  112. package/dist/esm/post-components.js +3 -3
  113. package/dist/esm/post-icon.entry.js +6 -21
  114. package/dist/esm/post-icon.entry.js.map +1 -1
  115. package/dist/esm/post-tab-header.entry.js +31 -0
  116. package/dist/esm/post-tab-header.entry.js.map +1 -0
  117. package/dist/esm/post-tab-panel.entry.js +25 -0
  118. package/dist/esm/post-tab-panel.entry.js.map +1 -0
  119. package/dist/esm/post-tabs.entry.js +132 -0
  120. package/dist/esm/post-tabs.entry.js.map +1 -0
  121. package/dist/esm/post-tooltip.entry.js +5093 -0
  122. package/dist/esm/post-tooltip.entry.js.map +1 -0
  123. package/dist/post-components/p-12046db8.entry.js +2 -0
  124. package/dist/post-components/{p-99ccf0cf.entry.js.map → p-12046db8.entry.js.map} +1 -1
  125. package/dist/post-components/p-15fc087f.js +2 -0
  126. package/dist/post-components/p-15fc087f.js.map +1 -0
  127. package/dist/post-components/p-24b07f64.js +2 -0
  128. package/dist/post-components/p-24b07f64.js.map +1 -0
  129. package/dist/post-components/p-29535fea.entry.js +2 -0
  130. package/dist/post-components/p-29535fea.entry.js.map +1 -0
  131. package/dist/post-components/p-296af738.entry.js +2 -0
  132. package/dist/post-components/p-296af738.entry.js.map +1 -0
  133. package/dist/post-components/p-2b6ab354.entry.js +9 -0
  134. package/dist/post-components/p-2b6ab354.entry.js.map +1 -0
  135. package/dist/post-components/p-75a7b352.js +2 -0
  136. package/dist/post-components/p-75a7b352.js.map +1 -0
  137. package/dist/post-components/p-a14ec7bb.entry.js +2 -0
  138. package/dist/post-components/p-a14ec7bb.entry.js.map +1 -0
  139. package/dist/post-components/p-bcc705f1.js +2 -0
  140. package/dist/post-components/p-bcc705f1.js.map +1 -0
  141. package/dist/post-components/p-c7497ecb.entry.js +2 -0
  142. package/dist/post-components/p-c7497ecb.entry.js.map +1 -0
  143. package/dist/post-components/p-c8efe0ae.js +2 -0
  144. package/dist/post-components/p-c8efe0ae.js.map +1 -0
  145. package/dist/post-components/p-cc6e4eb8.entry.js +2 -0
  146. package/dist/post-components/p-cc6e4eb8.entry.js.map +1 -0
  147. package/dist/post-components/p-d94db268.js +3 -0
  148. package/dist/post-components/p-d94db268.js.map +1 -0
  149. package/dist/post-components/p-e5306504.js +2 -0
  150. package/dist/post-components/p-e5306504.js.map +1 -0
  151. package/dist/post-components/post-components.esm.js +1 -1
  152. package/dist/post-components/post-components.esm.js.map +1 -1
  153. package/dist/types/animations/fade.d.ts +2 -0
  154. package/dist/types/animations/index.d.ts +1 -0
  155. package/dist/types/components/post-alert/alert-types.d.ts +2 -0
  156. package/dist/types/components/post-alert/post-alert.d.ts +49 -0
  157. package/dist/types/components/post-tab-header/post-tab-header.d.ts +11 -0
  158. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +10 -0
  159. package/dist/types/components/post-tabs/post-tabs.d.ts +34 -0
  160. package/dist/types/components/post-tooltip/post-tooltip.d.ts +66 -0
  161. package/dist/types/components/post-tooltip/types.d.ts +2 -0
  162. package/dist/types/components.d.ts +190 -0
  163. package/dist/types/utils/property-checkers/check-one-of.d.ts +1 -1
  164. package/dist/types/utils/property-checkers/check-pattern.d.ts +1 -0
  165. package/dist/types/utils/property-checkers/index.d.ts +3 -1
  166. package/package.json +13 -9
  167. package/dist/cjs/index-272283b3.js.map +0 -1
  168. package/dist/cjs/package-f6bb523d.js.map +0 -1
  169. package/dist/esm/index-60a84798.js.map +0 -1
  170. package/dist/esm/package-bcf00737.js.map +0 -1
  171. package/dist/post-components/p-0096c140.js +0 -3
  172. package/dist/post-components/p-4a3ff4c0.js +0 -2
  173. package/dist/post-components/p-4a3ff4c0.js.map +0 -1
  174. package/dist/post-components/p-99ccf0cf.entry.js +0 -2
  175. package/dist/post-components/p-cafa0281.entry.js +0 -2
  176. package/dist/post-components/p-cafa0281.entry.js.map +0 -1
package/dist/docs.json CHANGED
@@ -1,11 +1,163 @@
1
1
  {
2
- "timestamp": "2023-08-14T11:59:52",
2
+ "timestamp": "2023-10-04T09:51:38",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.4.2",
6
6
  "typescriptVersion": "5.0.4"
7
7
  },
8
8
  "components": [
9
+ {
10
+ "filePath": "./src/components/post-alert/post-alert.tsx",
11
+ "encapsulation": "shadow",
12
+ "tag": "post-alert",
13
+ "readme": "# post-alert\n\n\n",
14
+ "docs": "",
15
+ "docsTags": [],
16
+ "usage": {},
17
+ "props": [
18
+ {
19
+ "name": "dismissLabel",
20
+ "type": "string",
21
+ "mutable": false,
22
+ "attr": "dismiss-label",
23
+ "reflectToAttr": false,
24
+ "docs": "The label to use for the close button of a dismissible alert.",
25
+ "docsTags": [],
26
+ "values": [
27
+ {
28
+ "type": "string"
29
+ }
30
+ ],
31
+ "optional": false,
32
+ "required": false
33
+ },
34
+ {
35
+ "name": "dismissible",
36
+ "type": "boolean",
37
+ "mutable": false,
38
+ "attr": "dismissible",
39
+ "reflectToAttr": false,
40
+ "docs": "If `true`, a close button (×) is displayed and the alert can be dismissed by the user.",
41
+ "docsTags": [],
42
+ "default": "false",
43
+ "values": [
44
+ {
45
+ "type": "boolean"
46
+ }
47
+ ],
48
+ "optional": false,
49
+ "required": false
50
+ },
51
+ {
52
+ "name": "fixed",
53
+ "type": "boolean",
54
+ "mutable": false,
55
+ "attr": "fixed",
56
+ "reflectToAttr": false,
57
+ "docs": "If `true`, the alert is positioned at the bottom of the window, from edge to edge.",
58
+ "docsTags": [],
59
+ "default": "false",
60
+ "values": [
61
+ {
62
+ "type": "boolean"
63
+ }
64
+ ],
65
+ "optional": false,
66
+ "required": false
67
+ },
68
+ {
69
+ "name": "icon",
70
+ "type": "string",
71
+ "mutable": false,
72
+ "attr": "icon",
73
+ "reflectToAttr": false,
74
+ "docs": "The icon to display in the alert. By default, the icon depends on the alert type.\n\nIf `none`, no icon is displayed.",
75
+ "docsTags": [],
76
+ "values": [
77
+ {
78
+ "type": "string"
79
+ }
80
+ ],
81
+ "optional": false,
82
+ "required": false
83
+ },
84
+ {
85
+ "name": "type",
86
+ "type": "\"danger\" | \"gray\" | \"info\" | \"primary\" | \"success\" | \"warning\"",
87
+ "mutable": false,
88
+ "attr": "type",
89
+ "reflectToAttr": false,
90
+ "docs": "The type of the alert.",
91
+ "docsTags": [],
92
+ "default": "'primary'",
93
+ "values": [
94
+ {
95
+ "value": "danger",
96
+ "type": "string"
97
+ },
98
+ {
99
+ "value": "gray",
100
+ "type": "string"
101
+ },
102
+ {
103
+ "value": "info",
104
+ "type": "string"
105
+ },
106
+ {
107
+ "value": "primary",
108
+ "type": "string"
109
+ },
110
+ {
111
+ "value": "success",
112
+ "type": "string"
113
+ },
114
+ {
115
+ "value": "warning",
116
+ "type": "string"
117
+ }
118
+ ],
119
+ "optional": false,
120
+ "required": false
121
+ }
122
+ ],
123
+ "methods": [
124
+ {
125
+ "name": "dismiss",
126
+ "returns": {
127
+ "type": "Promise<void>",
128
+ "docs": ""
129
+ },
130
+ "signature": "dismiss() => Promise<void>",
131
+ "parameters": [],
132
+ "docs": "Triggers alert dismissal programmatically (same as clicking on the close button (×)).",
133
+ "docsTags": []
134
+ }
135
+ ],
136
+ "events": [
137
+ {
138
+ "event": "dismissed",
139
+ "detail": "void",
140
+ "bubbles": true,
141
+ "cancelable": true,
142
+ "composed": true,
143
+ "docs": "An event emitted when the alert element is dismissed, after the transition.\nIt has no payload and only relevant for dismissible alerts.",
144
+ "docsTags": []
145
+ }
146
+ ],
147
+ "listeners": [],
148
+ "styles": [],
149
+ "slots": [],
150
+ "parts": [],
151
+ "dependents": [],
152
+ "dependencies": [
153
+ "post-icon"
154
+ ],
155
+ "dependencyGraph": {
156
+ "post-alert": [
157
+ "post-icon"
158
+ ]
159
+ }
160
+ },
9
161
  {
10
162
  "filePath": "./src/components/post-collapsible/post-collapsible.tsx",
11
163
  "encapsulation": "shadow",
@@ -232,6 +384,294 @@
232
384
  "styles": [],
233
385
  "slots": [],
234
386
  "parts": [],
387
+ "dependents": [
388
+ "post-alert"
389
+ ],
390
+ "dependencies": [],
391
+ "dependencyGraph": {
392
+ "post-alert": [
393
+ "post-icon"
394
+ ]
395
+ }
396
+ },
397
+ {
398
+ "filePath": "./src/components/post-tab-header/post-tab-header.tsx",
399
+ "encapsulation": "shadow",
400
+ "tag": "post-tab-header",
401
+ "readme": "# post-tab-header\n\n\n",
402
+ "docs": "",
403
+ "docsTags": [],
404
+ "usage": {},
405
+ "props": [
406
+ {
407
+ "name": "panel",
408
+ "type": "string",
409
+ "mutable": false,
410
+ "attr": "panel",
411
+ "reflectToAttr": false,
412
+ "docs": "The name of the panel controlled by the tab header.",
413
+ "docsTags": [],
414
+ "values": [
415
+ {
416
+ "type": "string"
417
+ }
418
+ ],
419
+ "optional": false,
420
+ "required": false
421
+ }
422
+ ],
423
+ "methods": [],
424
+ "events": [],
425
+ "listeners": [],
426
+ "styles": [],
427
+ "slots": [],
428
+ "parts": [],
429
+ "dependents": [],
430
+ "dependencies": [],
431
+ "dependencyGraph": {}
432
+ },
433
+ {
434
+ "filePath": "./src/components/post-tab-panel/post-tab-panel.tsx",
435
+ "encapsulation": "shadow",
436
+ "tag": "post-tab-panel",
437
+ "readme": "# post-tab-panel\n\n\n",
438
+ "docs": "",
439
+ "docsTags": [],
440
+ "usage": {},
441
+ "props": [
442
+ {
443
+ "name": "name",
444
+ "type": "string",
445
+ "mutable": false,
446
+ "attr": "name",
447
+ "reflectToAttr": false,
448
+ "docs": "The name of the panel, used to associate it with a tab header.",
449
+ "docsTags": [],
450
+ "values": [
451
+ {
452
+ "type": "string"
453
+ }
454
+ ],
455
+ "optional": false,
456
+ "required": false
457
+ }
458
+ ],
459
+ "methods": [],
460
+ "events": [],
461
+ "listeners": [],
462
+ "styles": [],
463
+ "slots": [],
464
+ "parts": [],
465
+ "dependents": [],
466
+ "dependencies": [],
467
+ "dependencyGraph": {}
468
+ },
469
+ {
470
+ "filePath": "./src/components/post-tabs/post-tabs.tsx",
471
+ "encapsulation": "shadow",
472
+ "tag": "post-tabs",
473
+ "readme": "# post-tabs\n\n\n",
474
+ "docs": "",
475
+ "docsTags": [],
476
+ "usage": {},
477
+ "props": [
478
+ {
479
+ "name": "activePanel",
480
+ "type": "string",
481
+ "mutable": false,
482
+ "attr": "active-panel",
483
+ "reflectToAttr": false,
484
+ "docs": "The name of the panel that is initially shown.\nIf not specified, it defaults to the panel associated with the first tab.\n\n**Changing this value after initialization has no effect.**",
485
+ "docsTags": [],
486
+ "values": [
487
+ {
488
+ "type": "string"
489
+ }
490
+ ],
491
+ "optional": false,
492
+ "required": false
493
+ }
494
+ ],
495
+ "methods": [
496
+ {
497
+ "name": "show",
498
+ "returns": {
499
+ "type": "Promise<void>",
500
+ "docs": ""
501
+ },
502
+ "signature": "show(panelName: string) => Promise<void>",
503
+ "parameters": [],
504
+ "docs": "Shows the panel with the given name and selects its associated tab.\nAny other panel that was previously shown becomes hidden and its associated tab is unselected.",
505
+ "docsTags": []
506
+ }
507
+ ],
508
+ "events": [
509
+ {
510
+ "event": "tabChange",
511
+ "detail": "string",
512
+ "bubbles": true,
513
+ "cancelable": true,
514
+ "composed": true,
515
+ "docs": "An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.\nThe payload is the name of the newly shown panel.",
516
+ "docsTags": []
517
+ }
518
+ ],
519
+ "listeners": [],
520
+ "styles": [],
521
+ "slots": [],
522
+ "parts": [],
523
+ "dependents": [],
524
+ "dependencies": [],
525
+ "dependencyGraph": {}
526
+ },
527
+ {
528
+ "filePath": "./src/components/post-tooltip/post-tooltip.tsx",
529
+ "encapsulation": "shadow",
530
+ "tag": "post-tooltip",
531
+ "readme": "# post-tooltip\n\n\n",
532
+ "docs": "",
533
+ "docsTags": [],
534
+ "usage": {},
535
+ "props": [
536
+ {
537
+ "name": "backgroundColor",
538
+ "type": "\"primary\" | \"yellow\"",
539
+ "mutable": false,
540
+ "attr": "background-color",
541
+ "reflectToAttr": false,
542
+ "docs": "Defines the background color of the tooltip.\nChoose the one that provides the best contrast in your scenario.",
543
+ "docsTags": [],
544
+ "default": "'primary'",
545
+ "values": [
546
+ {
547
+ "value": "primary",
548
+ "type": "string"
549
+ },
550
+ {
551
+ "value": "yellow",
552
+ "type": "string"
553
+ }
554
+ ],
555
+ "optional": true,
556
+ "required": false
557
+ },
558
+ {
559
+ "name": "placement",
560
+ "type": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
561
+ "mutable": false,
562
+ "attr": "placement",
563
+ "reflectToAttr": false,
564
+ "docs": "Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.\nTooltips are automatically flipped to the opposite side if there is not enough available space and are shifted\ntowards the viewport if they would overlap edge boundaries.",
565
+ "docsTags": [],
566
+ "default": "'top'",
567
+ "values": [
568
+ {
569
+ "value": "bottom",
570
+ "type": "string"
571
+ },
572
+ {
573
+ "value": "bottom-end",
574
+ "type": "string"
575
+ },
576
+ {
577
+ "value": "bottom-start",
578
+ "type": "string"
579
+ },
580
+ {
581
+ "value": "left",
582
+ "type": "string"
583
+ },
584
+ {
585
+ "value": "left-end",
586
+ "type": "string"
587
+ },
588
+ {
589
+ "value": "left-start",
590
+ "type": "string"
591
+ },
592
+ {
593
+ "value": "right",
594
+ "type": "string"
595
+ },
596
+ {
597
+ "value": "right-end",
598
+ "type": "string"
599
+ },
600
+ {
601
+ "value": "right-start",
602
+ "type": "string"
603
+ },
604
+ {
605
+ "value": "top",
606
+ "type": "string"
607
+ },
608
+ {
609
+ "value": "top-end",
610
+ "type": "string"
611
+ },
612
+ {
613
+ "value": "top-start",
614
+ "type": "string"
615
+ }
616
+ ],
617
+ "optional": true,
618
+ "required": false
619
+ }
620
+ ],
621
+ "methods": [
622
+ {
623
+ "name": "hide",
624
+ "returns": {
625
+ "type": "Promise<void>",
626
+ "docs": ""
627
+ },
628
+ "signature": "hide() => Promise<void>",
629
+ "parameters": [],
630
+ "docs": "Programmatically hide this tooltip",
631
+ "docsTags": []
632
+ },
633
+ {
634
+ "name": "show",
635
+ "returns": {
636
+ "type": "Promise<void>",
637
+ "docs": ""
638
+ },
639
+ "signature": "show(target: HTMLElement) => Promise<void>",
640
+ "parameters": [],
641
+ "docs": "Programmatically display the tooltip",
642
+ "docsTags": [
643
+ {
644
+ "name": "param",
645
+ "text": "target An element with [data-tooltip-target=\"id\"] where the tooltip should be shown"
646
+ }
647
+ ]
648
+ },
649
+ {
650
+ "name": "toggle",
651
+ "returns": {
652
+ "type": "Promise<void>",
653
+ "docs": ""
654
+ },
655
+ "signature": "toggle(target: HTMLElement, force?: boolean) => Promise<void>",
656
+ "parameters": [],
657
+ "docs": "Toggle tooltip display",
658
+ "docsTags": [
659
+ {
660
+ "name": "param",
661
+ "text": "target An element with [data-tooltip-target=\"id\"] where the tooltip should be shown"
662
+ },
663
+ {
664
+ "name": "param",
665
+ "text": "force Pass true to always show or false to always hide"
666
+ }
667
+ ]
668
+ }
669
+ ],
670
+ "events": [],
671
+ "listeners": [],
672
+ "styles": [],
673
+ "slots": [],
674
+ "parts": [],
235
675
  "dependents": [],
236
676
  "dependencies": [],
237
677
  "dependencyGraph": {}
@@ -0,0 +1,11 @@
1
+ const EMPTY_VALUES = [undefined, null, ''];
2
+
3
+ function checkNonEmpty(value, error) {
4
+ if (EMPTY_VALUES.some(v => v === value)) {
5
+ throw new Error(error);
6
+ }
7
+ }
8
+
9
+ export { EMPTY_VALUES as E, checkNonEmpty as c };
10
+
11
+ //# sourceMappingURL=check-non-empty-554bdf88.js.map
@@ -0,0 +1 @@
1
+ {"file":"check-non-empty-554bdf88.js","mappings":"MAAa,YAAY,GAAG,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE;;SCEhC,aAAa,CAAC,KAAc,EAAE,KAAa;EACzD,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,EAAE;IACvC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;GACxB;AACH;;;;","names":[],"sources":["./src/utils/property-checkers/constants.ts","./src/utils/property-checkers/check-non-empty.ts"],"sourcesContent":["export const EMPTY_VALUES = [undefined, null, ''];\n","import { EMPTY_VALUES } from './constants';\n\nexport function checkNonEmpty(value: unknown, error: string) {\n if (EMPTY_VALUES.some(v => v === value)) {\n throw new Error(error);\n }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ function checkOneOf(value, possibleValues, error) {
2
+ if (!possibleValues.includes(value))
3
+ throw new Error(error);
4
+ }
5
+
6
+ export { checkOneOf as c };
7
+
8
+ //# sourceMappingURL=check-one-of-ded5e15e.js.map
@@ -0,0 +1 @@
1
+ {"file":"check-one-of-ded5e15e.js","mappings":"SAAgB,UAAU,CAAI,KAAQ,EAAE,cAA4B,EAAE,KAAa;EACjF,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;AAC9D;;;;","names":[],"sources":["./src/utils/property-checkers/check-one-of.ts"],"sourcesContent":["export function checkOneOf<T>(value: T, possibleValues: readonly T[], error: string) {\n if (!possibleValues.includes(value)) throw new Error(error);\n}\n"],"version":3}
@@ -0,0 +1,16 @@
1
+ function checkType(value, type, error) {
2
+ const typeIsArray = type === 'array';
3
+ const valueIsArray = Array.isArray(value);
4
+ if (typeIsArray || valueIsArray) {
5
+ if (valueIsArray !== typeIsArray)
6
+ throw new Error(error);
7
+ }
8
+ else {
9
+ if (typeof value !== type)
10
+ throw new Error(error);
11
+ }
12
+ }
13
+
14
+ export { checkType as c };
15
+
16
+ //# sourceMappingURL=check-type-18ebb4e7.js.map
@@ -0,0 +1 @@
1
+ {"file":"check-type-18ebb4e7.js","mappings":"SAQgB,SAAS,CAAC,KAAc,EAAE,IAAkB,EAAE,KAAa;EACzE,MAAM,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC;EACrC,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;EAE1C,IAAI,WAAW,IAAI,YAAY,EAAE;IAC/B,IAAI,YAAY,KAAK,WAAW;MAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;GAC1D;OAAM;IACL,IAAI,OAAO,KAAK,KAAK,IAAI;MAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;GACnD;AACH;;;;","names":[],"sources":["./src/utils/property-checkers/check-type.ts"],"sourcesContent":["export type PropertyType =\n | 'boolean'\n | 'number'\n | 'string'\n | 'array'\n | 'object'\n | 'function';\n\nexport function checkType(value: unknown, type: PropertyType, error: string) {\n const typeIsArray = type === 'array';\n const valueIsArray = Array.isArray(value);\n\n if (typeIsArray || valueIsArray) {\n if (valueIsArray !== typeIsArray) throw new Error(error);\n } else {\n if (typeof value !== type) throw new Error(error);\n }\n}\n"],"version":3}
@@ -0,0 +1,9 @@
1
+ const fadeDuration = 200;
2
+ const fadedOutKeyFrame = { opacity: '0' };
3
+ const fadedInKeyFrame = { opacity: '1' };
4
+ const fadeIn = (el) => el.animate([fadedOutKeyFrame, fadedInKeyFrame], { duration: fadeDuration });
5
+ const fadeOut = (el) => el.animate([fadedInKeyFrame, fadedOutKeyFrame], { duration: fadeDuration });
6
+
7
+ export { fadeIn as a, fadeOut as f };
8
+
9
+ //# sourceMappingURL=fade-671f1489.js.map
@@ -0,0 +1 @@
1
+ {"file":"fade-671f1489.js","mappings":"AAAA,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,gBAAgB,GAAG,EAAC,OAAO,EAAE,GAAG,EAAC,CAAC;AACxC,MAAM,eAAe,GAAG,EAAC,OAAO,EAAE,GAAG,EAAC,CAAC;MAE1B,MAAM,GAAG,CAAC,EAAW,KAAgB,EAAE,CAAC,OAAO,CAC1D,CAAE,gBAAgB,EAAE,eAAe,CAAE,EACrC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAC1B;MAEW,OAAO,GAAG,CAAC,EAAW,KAAgB,EAAE,CAAC,OAAO,CAC3D,CAAE,eAAe,EAAE,gBAAgB,CAAE,EACrC,EAAE,QAAQ,EAAE,YAAY,EAAE;;;;","names":[],"sources":["./src/animations/fade.ts"],"sourcesContent":["const fadeDuration = 200;\nconst fadedOutKeyFrame = {opacity: '0'};\nconst fadedInKeyFrame = {opacity: '1'};\n\nexport const fadeIn = (el: Element): Animation => el.animate(\n [ fadedOutKeyFrame, fadedInKeyFrame ],\n { duration: fadeDuration }\n);\n\nexport const fadeOut = (el: Element): Animation => el.animate(\n [ fadedInKeyFrame, fadedOutKeyFrame ],\n { duration: fadeDuration }\n);\n"],"version":3}