@swisspost/design-system-components 7.2.0 → 7.3.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.
- package/dist/cjs/_commonjsHelpers-8f2c79cd.js +31 -0
- package/dist/cjs/check-type-64af82a9.js +16 -0
- package/dist/cjs/{index-0fc0bf5f.js → index-1cc8e4e1.js} +522 -224
- package/dist/cjs/{index-a1440961.js → index-f32e5185.js} +2 -15
- package/dist/cjs/index.cjs.js +21 -17
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-b133ab48.js → package-04f2043d.js} +1 -1
- package/dist/cjs/{post-accordion-a079c21b.js → post-accordion-37fd4f78.js} +2 -2
- package/dist/cjs/{post-accordion-item-30c6ec06.js → post-accordion-item-1c83fc7c.js} +4 -4
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -4
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-alert-b5cfc4c6.js → post-alert-6fb69a85.js} +8 -7
- package/dist/cjs/post-alert.cjs.entry.js +5 -4
- package/dist/cjs/post-card-control-b4d765d4.js +315 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-9bcaf6f1.js → post-collapsible-d1afbfc7.js} +14 -10
- package/dist/cjs/post-collapsible-trigger-ed6c0795.js +188280 -0
- package/dist/cjs/post-collapsible-trigger.cjs.entry.js +14 -0
- package/dist/cjs/post-collapsible.cjs.entry.js +5 -4
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/{post-icon-87e7972e.js → post-icon-8bc01581.js} +6 -5
- package/dist/cjs/post-icon.cjs.entry.js +5 -4
- package/dist/cjs/{post-popover-0a73553e.js → post-popover-bdcc2f7d.js} +4 -4
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-a1df1705.js → post-popovercontainer-e63276d4.js} +44 -37
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-2337c023.js → post-rating-26fda1b8.js} +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-b367fb5e.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-307eacef.js → post-tab-panel-68c379af.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-92435b40.js → post-tabs-cb1407ec.js} +8 -10
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-0237216a.js → post-tag-8f03cbff.js} +3 -3
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-7fcd3f15.js → post-tooltip-75b6872c.js} +25 -12
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -3
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-alert/post-alert.css +2 -2
- package/dist/collection/components/post-alert/post-alert.js +1 -1
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +10 -11
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +153 -0
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +14 -17
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +8 -8
- package/dist/collection/components/post-tag/post-tag.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +37 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/debounce.js +8 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/collection/utils/timeout.js +3 -0
- package/dist/components/_commonjsHelpers.js +26 -0
- package/dist/components/check-type.js +14 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +2 -14
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-alert2.js +4 -3
- package/dist/components/post-card-control2.js +1 -1
- package/dist/components/post-collapsible-trigger.d.ts +11 -0
- package/dist/components/post-collapsible-trigger.js +6 -0
- package/dist/components/post-collapsible-trigger2.js +188297 -0
- package/dist/components/post-collapsible2.js +12 -9
- package/dist/components/post-icon2.js +3 -2
- package/dist/components/post-popover2.js +2 -2
- package/dist/components/post-popovercontainer2.js +43 -37
- package/dist/components/post-rating2.js +1 -1
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +6 -8
- package/dist/components/post-tag2.js +1 -1
- package/dist/components/post-tooltip2.js +22 -6
- package/dist/docs.json +120 -15
- package/dist/esm/_commonjsHelpers-24671825.js +26 -0
- package/dist/esm/check-type-8828dbe4.js +14 -0
- package/dist/esm/{index-d1eba94c.js → index-29d17d6d.js} +2 -14
- package/dist/esm/{index-d9331ff3.js → index-9ace3232.js} +522 -224
- package/dist/esm/index.js +20 -17
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-37b02bc3.js → package-4d20f60f.js} +1 -1
- package/dist/esm/{post-accordion-7eaa090e.js → post-accordion-62014c92.js} +2 -2
- package/dist/esm/{post-accordion-item-d5466ca0.js → post-accordion-item-cbac29b5.js} +4 -4
- package/dist/esm/post-accordion-item.entry.js +5 -4
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-alert-5bc0d11c.js → post-alert-c4debfa4.js} +6 -5
- package/dist/esm/post-alert.entry.js +5 -4
- package/dist/esm/post-card-control-00a5376b.js +313 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-0bb7ca9a.js → post-collapsible-8d4694d4.js} +14 -10
- package/dist/esm/post-collapsible-trigger-84e583ca.js +188278 -0
- package/dist/esm/post-collapsible-trigger.entry.js +6 -0
- package/dist/esm/post-collapsible.entry.js +5 -4
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/{post-icon-8d59faf7.js → post-icon-a7fc703c.js} +5 -4
- package/dist/esm/post-icon.entry.js +5 -4
- package/dist/esm/{post-popover-0ebc24f5.js → post-popover-e4e3c7e9.js} +4 -4
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-5c0ba050.js → post-popovercontainer-012763bb.js} +44 -37
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-40195437.js → post-rating-65f2a6f5.js} +3 -3
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-6c4e751f.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-d40b9704.js → post-tab-panel-0a00a0db.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-6ee5542b.js → post-tabs-ce296f51.js} +8 -10
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-e76f88e5.js → post-tag-08829103.js} +3 -3
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-990b8b2b.js → post-tooltip-f649a3f5.js} +21 -8
- package/dist/esm/post-tooltip.entry.js +8 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-3f2c54ad.js → p-0397588f.js} +1 -1
- package/dist/post-components/p-03bd02f3.entry.js +1 -0
- package/dist/post-components/p-07e54337.js +1 -0
- package/dist/post-components/p-0a7a9ff0.entry.js +1 -0
- package/dist/post-components/p-12ad573b.entry.js +1 -0
- package/dist/post-components/p-12c4e001.entry.js +1 -0
- package/dist/post-components/p-1c2d6fa3.entry.js +1 -0
- package/dist/post-components/p-1e103e24.entry.js +1 -0
- package/dist/post-components/{p-69bd634e.js → p-28a16293.js} +1 -1
- package/dist/post-components/{p-0637689e.js → p-2bb82301.js} +1 -1
- package/dist/post-components/p-3a4c029f.js +1 -0
- package/dist/post-components/p-489390f4.js +1 -0
- package/dist/post-components/p-4a3f67ab.js +1 -0
- package/dist/post-components/p-4ced5f5f.entry.js +1 -0
- package/dist/post-components/p-5a47caeb.js +1 -0
- package/dist/post-components/p-6712c712.entry.js +1 -0
- package/dist/post-components/p-6b2156ed.js +1 -0
- package/dist/post-components/p-73a63423.js +1 -0
- package/dist/post-components/{p-aef9ee8b.js → p-7751bd1f.js} +1 -1
- package/dist/post-components/p-7f35c77d.js +1 -0
- package/dist/post-components/p-80afd42d.entry.js +1 -0
- package/dist/post-components/p-8771fd61.js +1 -0
- package/dist/post-components/p-8c7f0075.js +2 -0
- package/dist/post-components/p-94c3e483.js +20 -0
- package/dist/post-components/p-94e75021.js +15 -0
- package/dist/post-components/p-aab2780d.entry.js +1 -0
- package/dist/post-components/p-aba21874.entry.js +1 -0
- package/dist/post-components/p-ac500761.js +1 -0
- package/dist/post-components/p-b0ac8313.entry.js +1 -0
- package/dist/post-components/{p-f86b2ea1.js → p-c3abf86d.js} +1 -1
- package/dist/post-components/p-cb13d0e2.entry.js +1 -0
- package/dist/post-components/p-d8534a90.entry.js +1 -0
- package/dist/post-components/p-da8cdd71.js +1 -0
- package/dist/post-components/p-f0fbe328.entry.js +1 -0
- package/dist/post-components/p-ff86b519.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +4 -3
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +47 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +2 -0
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +6 -0
- package/dist/types/components.d.ts +33 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/timeout.d.ts +1 -0
- package/loader/index.d.ts +3 -0
- package/package.json +10 -10
- package/dist/cjs/post-card-control-80ff0fbb.js +0 -315
- package/dist/cjs/post-tab-header-ac4137cb.js +0 -32
- package/dist/collection/index.spec.js +0 -27
- package/dist/esm/post-card-control-d64be740.js +0 -313
- package/dist/esm/post-tab-header-ff165ebb.js +0 -30
- package/dist/post-components/p-0ba99d76.entry.js +0 -1
- package/dist/post-components/p-0e97fb19.entry.js +0 -1
- package/dist/post-components/p-19ee1efc.entry.js +0 -1
- package/dist/post-components/p-23e7f6e3.entry.js +0 -1
- package/dist/post-components/p-287f66b9.js +0 -1
- package/dist/post-components/p-305ab60c.js +0 -1
- package/dist/post-components/p-3ce051c9.js +0 -1
- package/dist/post-components/p-62229794.entry.js +0 -1
- package/dist/post-components/p-7dc73c43.entry.js +0 -1
- package/dist/post-components/p-7e59cbd2.js +0 -1
- package/dist/post-components/p-8559d3c0.entry.js +0 -1
- package/dist/post-components/p-941e5ef0.js +0 -1
- package/dist/post-components/p-95003bde.entry.js +0 -1
- package/dist/post-components/p-a1da0539.js +0 -1
- package/dist/post-components/p-a5d9115f.entry.js +0 -1
- package/dist/post-components/p-a9aa57f0.entry.js +0 -1
- package/dist/post-components/p-c21da8cb.js +0 -1
- package/dist/post-components/p-c655db7c.entry.js +0 -1
- package/dist/post-components/p-ca2ff4bb.entry.js +0 -1
- package/dist/post-components/p-d2eafe06.entry.js +0 -1
- package/dist/post-components/p-d6e0e495.js +0 -1
- package/dist/post-components/p-d9eab6d9.js +0 -2
- package/dist/post-components/p-deb19ca0.js +0 -1
- package/dist/post-components/p-ee12644d.js +0 -15
- package/dist/post-components/p-f91c0e1b.js +0 -1
- package/dist/post-components/p-ff0b0a9a.entry.js +0 -1
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-07-18T15:14:45",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.19.1",
|
|
6
6
|
"typescriptVersion": "5.4.5"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -1019,6 +1019,77 @@
|
|
|
1019
1019
|
]
|
|
1020
1020
|
}
|
|
1021
1021
|
},
|
|
1022
|
+
{
|
|
1023
|
+
"filePath": "src/components/post-collapsible-trigger/post-collapsible-trigger.tsx",
|
|
1024
|
+
"encapsulation": "none",
|
|
1025
|
+
"tag": "post-collapsible-trigger",
|
|
1026
|
+
"readme": "# post-collapsible-trigger\n\n\n",
|
|
1027
|
+
"docs": "",
|
|
1028
|
+
"docsTags": [],
|
|
1029
|
+
"usage": {},
|
|
1030
|
+
"props": [
|
|
1031
|
+
{
|
|
1032
|
+
"name": "for",
|
|
1033
|
+
"type": "string",
|
|
1034
|
+
"complexType": {
|
|
1035
|
+
"original": "string",
|
|
1036
|
+
"resolved": "string",
|
|
1037
|
+
"references": {}
|
|
1038
|
+
},
|
|
1039
|
+
"mutable": false,
|
|
1040
|
+
"attr": "for",
|
|
1041
|
+
"reflectToAttr": false,
|
|
1042
|
+
"docs": "Link the trigger to a post-collapsible with this id",
|
|
1043
|
+
"docsTags": [],
|
|
1044
|
+
"values": [
|
|
1045
|
+
{
|
|
1046
|
+
"type": "string"
|
|
1047
|
+
}
|
|
1048
|
+
],
|
|
1049
|
+
"optional": false,
|
|
1050
|
+
"required": false
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"methods": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "update",
|
|
1056
|
+
"returns": {
|
|
1057
|
+
"type": "Promise<void>",
|
|
1058
|
+
"docs": ""
|
|
1059
|
+
},
|
|
1060
|
+
"complexType": {
|
|
1061
|
+
"signature": "() => Promise<void>",
|
|
1062
|
+
"parameters": [],
|
|
1063
|
+
"references": {
|
|
1064
|
+
"Promise": {
|
|
1065
|
+
"location": "global",
|
|
1066
|
+
"id": "global::Promise"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"return": "Promise<void>"
|
|
1070
|
+
},
|
|
1071
|
+
"signature": "update() => Promise<void>",
|
|
1072
|
+
"parameters": [],
|
|
1073
|
+
"docs": "Update the \"aria-controls\" and \"aria-expanded\" attributes on the trigger button",
|
|
1074
|
+
"docsTags": []
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"events": [],
|
|
1078
|
+
"listeners": [
|
|
1079
|
+
{
|
|
1080
|
+
"event": "postToggle",
|
|
1081
|
+
"target": "document",
|
|
1082
|
+
"capture": false,
|
|
1083
|
+
"passive": false
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
"styles": [],
|
|
1087
|
+
"slots": [],
|
|
1088
|
+
"parts": [],
|
|
1089
|
+
"dependents": [],
|
|
1090
|
+
"dependencies": [],
|
|
1091
|
+
"dependencyGraph": {}
|
|
1092
|
+
},
|
|
1022
1093
|
{
|
|
1023
1094
|
"filePath": "src/components/post-icon/post-icon.tsx",
|
|
1024
1095
|
"encapsulation": "shadow",
|
|
@@ -1303,7 +1374,7 @@
|
|
|
1303
1374
|
"Placement": {
|
|
1304
1375
|
"location": "import",
|
|
1305
1376
|
"path": "@floating-ui/dom",
|
|
1306
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
1377
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.7/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
1307
1378
|
}
|
|
1308
1379
|
}
|
|
1309
1380
|
},
|
|
@@ -1508,7 +1579,7 @@
|
|
|
1508
1579
|
},
|
|
1509
1580
|
{
|
|
1510
1581
|
"filePath": "src/components/post-popovercontainer/post-popovercontainer.tsx",
|
|
1511
|
-
"encapsulation": "
|
|
1582
|
+
"encapsulation": "none",
|
|
1512
1583
|
"tag": "post-popovercontainer",
|
|
1513
1584
|
"readme": "# post-popover\n\n\n",
|
|
1514
1585
|
"docs": "",
|
|
@@ -1552,7 +1623,7 @@
|
|
|
1552
1623
|
"Placement": {
|
|
1553
1624
|
"location": "import",
|
|
1554
1625
|
"path": "@floating-ui/dom",
|
|
1555
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
1626
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.7/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
1556
1627
|
}
|
|
1557
1628
|
}
|
|
1558
1629
|
},
|
|
@@ -1764,12 +1835,7 @@
|
|
|
1764
1835
|
"docs": "Default slot for placing content inside the popovercontainer."
|
|
1765
1836
|
}
|
|
1766
1837
|
],
|
|
1767
|
-
"parts": [
|
|
1768
|
-
{
|
|
1769
|
-
"name": "popover",
|
|
1770
|
-
"docs": ""
|
|
1771
|
-
}
|
|
1772
|
-
],
|
|
1838
|
+
"parts": [],
|
|
1773
1839
|
"dependents": [
|
|
1774
1840
|
"post-popover",
|
|
1775
1841
|
"post-tooltip"
|
|
@@ -2048,6 +2114,14 @@
|
|
|
2048
2114
|
{
|
|
2049
2115
|
"name": "slot",
|
|
2050
2116
|
"text": "default - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element."
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"name": "part",
|
|
2120
|
+
"text": "tabs - Add custom styles for the tab header container."
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "part",
|
|
2124
|
+
"text": "content - Add custom styles for the tab panel container."
|
|
2051
2125
|
}
|
|
2052
2126
|
],
|
|
2053
2127
|
"usage": {},
|
|
@@ -2152,7 +2226,16 @@
|
|
|
2152
2226
|
"docs": "Slot for placing tab headers. Each tab header should be a <post-tab-header> element."
|
|
2153
2227
|
}
|
|
2154
2228
|
],
|
|
2155
|
-
"parts": [
|
|
2229
|
+
"parts": [
|
|
2230
|
+
{
|
|
2231
|
+
"name": "content",
|
|
2232
|
+
"docs": "Add custom styles for the tab panel container."
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"name": "tabs",
|
|
2236
|
+
"docs": "Add custom styles for the tab header container."
|
|
2237
|
+
}
|
|
2238
|
+
],
|
|
2156
2239
|
"dependents": [],
|
|
2157
2240
|
"dependencies": [],
|
|
2158
2241
|
"dependencyGraph": {}
|
|
@@ -2311,6 +2394,28 @@
|
|
|
2311
2394
|
"optional": true,
|
|
2312
2395
|
"required": false
|
|
2313
2396
|
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "delayed",
|
|
2399
|
+
"type": "boolean",
|
|
2400
|
+
"complexType": {
|
|
2401
|
+
"original": "boolean",
|
|
2402
|
+
"resolved": "boolean",
|
|
2403
|
+
"references": {}
|
|
2404
|
+
},
|
|
2405
|
+
"mutable": false,
|
|
2406
|
+
"attr": "delayed",
|
|
2407
|
+
"reflectToAttr": false,
|
|
2408
|
+
"docs": "If `true`, the tooltip is displayed a few milliseconds after it is triggered",
|
|
2409
|
+
"docsTags": [],
|
|
2410
|
+
"default": "false",
|
|
2411
|
+
"values": [
|
|
2412
|
+
{
|
|
2413
|
+
"type": "boolean"
|
|
2414
|
+
}
|
|
2415
|
+
],
|
|
2416
|
+
"optional": false,
|
|
2417
|
+
"required": false
|
|
2418
|
+
},
|
|
2314
2419
|
{
|
|
2315
2420
|
"name": "placement",
|
|
2316
2421
|
"type": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
@@ -2321,7 +2426,7 @@
|
|
|
2321
2426
|
"Placement": {
|
|
2322
2427
|
"location": "import",
|
|
2323
2428
|
"path": "@floating-ui/dom",
|
|
2324
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
2429
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.7/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
2325
2430
|
}
|
|
2326
2431
|
}
|
|
2327
2432
|
},
|
|
@@ -2536,10 +2641,10 @@
|
|
|
2536
2641
|
"docstring": "",
|
|
2537
2642
|
"path": "src/components/post-alert/alert-types.ts"
|
|
2538
2643
|
},
|
|
2539
|
-
"../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
2644
|
+
"../../node_modules/.pnpm/@floating-ui+dom@1.6.7/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement": {
|
|
2540
2645
|
"declaration": "any",
|
|
2541
2646
|
"docstring": "",
|
|
2542
|
-
"path": "../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
2647
|
+
"path": "../../node_modules/.pnpm/@floating-ui+dom@1.6.7/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts"
|
|
2543
2648
|
}
|
|
2544
2649
|
}
|
|
2545
2650
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
+
|
|
3
|
+
function getDefaultExportFromCjs (x) {
|
|
4
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function getAugmentedNamespace(n) {
|
|
8
|
+
if (n.__esModule) return n;
|
|
9
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
10
|
+
Object.keys(n).forEach(function (k) {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
12
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return n[k];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return a;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function commonjsRequire (path) {
|
|
23
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { commonjsGlobal as a, getDefaultExportFromCjs as b, commonjsRequire as c, getAugmentedNamespace as g };
|
|
@@ -0,0 +1,14 @@
|
|
|
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { E as EMPTY_VALUES } from './constants-8d548297.js';
|
|
2
2
|
import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
|
|
3
|
+
import { c as checkType } from './check-type-8828dbe4.js';
|
|
3
4
|
|
|
4
5
|
function emptyOr(check) {
|
|
5
6
|
return (...args) => {
|
|
@@ -14,21 +15,8 @@ function checkPattern(value, pattern, errorMessage) {
|
|
|
14
15
|
throw new Error(errorMessage);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
function checkType(value, type, error) {
|
|
18
|
-
const typeIsArray = type === 'array';
|
|
19
|
-
const valueIsArray = Array.isArray(value);
|
|
20
|
-
if (typeIsArray || valueIsArray) {
|
|
21
|
-
if (valueIsArray !== typeIsArray)
|
|
22
|
-
throw new Error(error);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
if (typeof value !== type)
|
|
26
|
-
throw new Error(error);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
18
|
const checkEmptyOrOneOf = emptyOr(checkOneOf);
|
|
31
19
|
const checkEmptyOrPattern = emptyOr(checkPattern);
|
|
32
20
|
const checkEmptyOrType = emptyOr(checkType);
|
|
33
21
|
|
|
34
|
-
export {
|
|
22
|
+
export { checkEmptyOrPattern as a, checkEmptyOrType as b, checkEmptyOrOneOf as c };
|