@swisspost/design-system-components 1.3.6 → 1.3.8
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/README.md +1 -1
- package/dist/cjs/{index-f95ab17b.js → index-0e16bf18.js} +18 -10
- package/dist/cjs/index-0e16bf18.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -10
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{package-79d607b8.js → package-e69a4462.js} +2 -2
- package/dist/cjs/package-e69a4462.js.map +1 -0
- package/dist/cjs/post-collapsible.cjs.entry.js +3 -3
- package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
- package/dist/cjs/post-components.cjs.js +2 -5
- package/dist/cjs/post-components.cjs.js.map +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/post-collapsible/post-collapsible.css +5 -0
- package/dist/collection/components/post-collapsible/post-collapsible.js +5 -4
- package/dist/collection/components/post-collapsible/post-collapsible.js.map +1 -1
- package/dist/collection/components/post-icon/post-icon.js +5 -4
- package/dist/collection/components/post-icon/post-icon.js.map +1 -1
- package/dist/collection/utils/on-transition-end.js +1 -1
- package/dist/collection/utils/property-checkers/check-non-empty.js +1 -1
- package/dist/collection/utils/property-checkers/empty-or.js +1 -1
- package/dist/collection/utils/property-checkers/index.js +3 -3
- package/dist/collection/utils/property-checkers/tests/check-non-empty.spec.js +2 -2
- package/dist/collection/utils/property-checkers/tests/check-one-of.spec.js +1 -1
- package/dist/collection/utils/property-checkers/tests/check-type.spec.js +1 -1
- package/dist/collection/utils/property-checkers/tests/empty-or.spec.js +1 -1
- package/dist/collection/utils/tests/should-reduce-motion.spec.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/package.js.map +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-collapsible.js.map +1 -1
- package/dist/components/post-icon.js.map +1 -1
- package/dist/docs.d.ts +192 -1
- package/dist/docs.json +72 -5
- package/dist/esm/{index-0cfe0348.js → index-fc5f363d.js} +18 -10
- package/dist/esm/index-fc5f363d.js.map +1 -0
- package/dist/esm/loader.js +2 -11
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{package-ba1192d8.js → package-e41b18ed.js} +2 -2
- package/dist/esm/package-e41b18ed.js.map +1 -0
- package/dist/esm/post-collapsible.entry.js +3 -3
- package/dist/esm/post-collapsible.entry.js.map +1 -1
- package/dist/esm/post-components.js +3 -6
- package/dist/esm/post-components.js.map +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/post-icon.entry.js.map +1 -1
- package/dist/post-components/{p-a6796794.js → p-0484ba12.js} +2 -2
- package/dist/post-components/p-0484ba12.js.map +1 -0
- package/dist/post-components/p-23b39cf3.entry.js +2 -0
- package/dist/post-components/p-23b39cf3.entry.js.map +1 -0
- package/dist/post-components/{p-75734ad5.entry.js → p-32e2283f.entry.js} +2 -2
- package/dist/post-components/p-32e2283f.entry.js.map +1 -0
- package/dist/post-components/p-96ca500c.js +3 -0
- package/dist/post-components/p-96ca500c.js.map +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/post-components/post-components.esm.js.map +1 -1
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/package.json +10 -10
- package/dist/cjs/index-f95ab17b.js.map +0 -1
- package/dist/cjs/package-79d607b8.js.map +0 -1
- package/dist/esm/index-0cfe0348.js.map +0 -1
- package/dist/esm/package-ba1192d8.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/post-components/p-2f408d84.entry.js +0 -2
- package/dist/post-components/p-2f408d84.entry.js.map +0 -1
- package/dist/post-components/p-75734ad5.entry.js.map +0 -1
- package/dist/post-components/p-8f4d1bc9.js +0 -3
- package/dist/post-components/p-8f4d1bc9.js.map +0 -1
- package/dist/post-components/p-a6796794.js.map +0 -1
|
@@ -18,10 +18,10 @@ function checkType(value, type, error) {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
const version = "1.3.
|
|
21
|
+
const version = "1.3.8";
|
|
22
22
|
|
|
23
23
|
exports.checkOneOf = checkOneOf;
|
|
24
24
|
exports.checkType = checkType;
|
|
25
25
|
exports.version = version;
|
|
26
26
|
|
|
27
|
-
//# sourceMappingURL=package-
|
|
27
|
+
//# sourceMappingURL=package-e69a4462.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"package-e69a4462.js","mappings":";;SAAgB,UAAU,CAAI,KAAQ,EAAE,cAAmB,EAAE,KAAa;EACxE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;AAC9D;;SCMgB,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-one-of.ts","src/utils/property-checkers/check-type.ts"],"sourcesContent":["export function checkOneOf<T>(value: T, possibleValues: T[], error: string) {\n if (!possibleValues.includes(value)) throw new Error(error);\n}\n","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}
|