@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.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{index-f95ab17b.js → index-0e16bf18.js} +18 -10
  3. package/dist/cjs/index-0e16bf18.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +1 -10
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/{package-79d607b8.js → package-e69a4462.js} +2 -2
  7. package/dist/cjs/package-e69a4462.js.map +1 -0
  8. package/dist/cjs/post-collapsible.cjs.entry.js +3 -3
  9. package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
  10. package/dist/cjs/post-components.cjs.js +2 -5
  11. package/dist/cjs/post-components.cjs.js.map +1 -1
  12. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  13. package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
  14. package/dist/collection/collection-manifest.json +3 -3
  15. package/dist/collection/components/post-collapsible/post-collapsible.css +5 -0
  16. package/dist/collection/components/post-collapsible/post-collapsible.js +5 -4
  17. package/dist/collection/components/post-collapsible/post-collapsible.js.map +1 -1
  18. package/dist/collection/components/post-icon/post-icon.js +5 -4
  19. package/dist/collection/components/post-icon/post-icon.js.map +1 -1
  20. package/dist/collection/utils/on-transition-end.js +1 -1
  21. package/dist/collection/utils/property-checkers/check-non-empty.js +1 -1
  22. package/dist/collection/utils/property-checkers/empty-or.js +1 -1
  23. package/dist/collection/utils/property-checkers/index.js +3 -3
  24. package/dist/collection/utils/property-checkers/tests/check-non-empty.spec.js +2 -2
  25. package/dist/collection/utils/property-checkers/tests/check-one-of.spec.js +1 -1
  26. package/dist/collection/utils/property-checkers/tests/check-type.spec.js +1 -1
  27. package/dist/collection/utils/property-checkers/tests/empty-or.spec.js +1 -1
  28. package/dist/collection/utils/tests/should-reduce-motion.spec.js +1 -1
  29. package/dist/components/package.js +1 -1
  30. package/dist/components/package.js.map +1 -1
  31. package/dist/components/post-collapsible.js +1 -1
  32. package/dist/components/post-collapsible.js.map +1 -1
  33. package/dist/components/post-icon.js.map +1 -1
  34. package/dist/docs.d.ts +192 -1
  35. package/dist/docs.json +72 -5
  36. package/dist/esm/{index-0cfe0348.js → index-fc5f363d.js} +18 -10
  37. package/dist/esm/index-fc5f363d.js.map +1 -0
  38. package/dist/esm/loader.js +2 -11
  39. package/dist/esm/loader.js.map +1 -1
  40. package/dist/esm/{package-ba1192d8.js → package-e41b18ed.js} +2 -2
  41. package/dist/esm/package-e41b18ed.js.map +1 -0
  42. package/dist/esm/post-collapsible.entry.js +3 -3
  43. package/dist/esm/post-collapsible.entry.js.map +1 -1
  44. package/dist/esm/post-components.js +3 -6
  45. package/dist/esm/post-components.js.map +1 -1
  46. package/dist/esm/post-icon.entry.js +2 -2
  47. package/dist/esm/post-icon.entry.js.map +1 -1
  48. package/dist/post-components/{p-a6796794.js → p-0484ba12.js} +2 -2
  49. package/dist/post-components/p-0484ba12.js.map +1 -0
  50. package/dist/post-components/p-23b39cf3.entry.js +2 -0
  51. package/dist/post-components/p-23b39cf3.entry.js.map +1 -0
  52. package/dist/post-components/{p-75734ad5.entry.js → p-32e2283f.entry.js} +2 -2
  53. package/dist/post-components/p-32e2283f.entry.js.map +1 -0
  54. package/dist/post-components/p-96ca500c.js +3 -0
  55. package/dist/post-components/p-96ca500c.js.map +1 -0
  56. package/dist/post-components/post-components.esm.js +1 -1
  57. package/dist/post-components/post-components.esm.js.map +1 -1
  58. package/dist/types/stencil-public-runtime.d.ts +2 -0
  59. package/package.json +10 -10
  60. package/dist/cjs/index-f95ab17b.js.map +0 -1
  61. package/dist/cjs/package-79d607b8.js.map +0 -1
  62. package/dist/esm/index-0cfe0348.js.map +0 -1
  63. package/dist/esm/package-ba1192d8.js.map +0 -1
  64. package/dist/esm/polyfills/css-shim.js +0 -1
  65. package/dist/post-components/p-2f408d84.entry.js +0 -2
  66. package/dist/post-components/p-2f408d84.entry.js.map +0 -1
  67. package/dist/post-components/p-75734ad5.entry.js.map +0 -1
  68. package/dist/post-components/p-8f4d1bc9.js +0 -3
  69. package/dist/post-components/p-8f4d1bc9.js.map +0 -1
  70. 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.6";
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-79d607b8.js.map
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}