@swisspost/design-system-components 1.3.5 → 1.3.6

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 (33) hide show
  1. package/dist/cjs/{package-5e7ba83a.js → package-79d607b8.js} +2 -2
  2. package/dist/cjs/{package-5e7ba83a.js.map → package-79d607b8.js.map} +1 -1
  3. package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
  4. package/dist/cjs/post-collapsible.cjs.entry.js.map +1 -1
  5. package/dist/cjs/post-icon.cjs.entry.js +12 -3
  6. package/dist/cjs/post-icon.cjs.entry.js.map +1 -1
  7. package/dist/collection/components/post-collapsible/post-collapsible.css +21 -0
  8. package/dist/collection/components/post-icon/post-icon.css +11 -3
  9. package/dist/collection/components/post-icon/post-icon.js +10 -1
  10. package/dist/collection/components/post-icon/post-icon.js.map +1 -1
  11. package/dist/components/package.js +1 -1
  12. package/dist/components/post-collapsible.js +1 -1
  13. package/dist/components/post-collapsible.js.map +1 -1
  14. package/dist/components/post-icon.js +11 -2
  15. package/dist/components/post-icon.js.map +1 -1
  16. package/dist/docs.json +1 -1
  17. package/dist/esm/{package-1c534bc2.js → package-ba1192d8.js} +2 -2
  18. package/dist/esm/{package-1c534bc2.js.map → package-ba1192d8.js.map} +1 -1
  19. package/dist/esm/post-collapsible.entry.js +2 -2
  20. package/dist/esm/post-collapsible.entry.js.map +1 -1
  21. package/dist/esm/post-icon.entry.js +12 -3
  22. package/dist/esm/post-icon.entry.js.map +1 -1
  23. package/dist/post-components/p-2f408d84.entry.js +2 -0
  24. package/dist/post-components/{p-50562794.entry.js.map → p-2f408d84.entry.js.map} +1 -1
  25. package/dist/post-components/p-75734ad5.entry.js +2 -0
  26. package/dist/post-components/p-75734ad5.entry.js.map +1 -0
  27. package/dist/post-components/{p-0049f179.js → p-a6796794.js} +2 -2
  28. package/dist/post-components/post-components.esm.js +1 -1
  29. package/package.json +2 -2
  30. package/dist/post-components/p-50562794.entry.js +0 -2
  31. package/dist/post-components/p-fd9201c2.entry.js +0 -2
  32. package/dist/post-components/p-fd9201c2.entry.js.map +0 -1
  33. /package/dist/post-components/{p-0049f179.js.map → p-a6796794.js.map} +0 -0
@@ -18,10 +18,10 @@ function checkType(value, type, error) {
18
18
  }
19
19
  }
20
20
 
21
- const version = "1.3.5";
21
+ const version = "1.3.6";
22
22
 
23
23
  exports.checkOneOf = checkOneOf;
24
24
  exports.checkType = checkType;
25
25
  exports.version = version;
26
26
 
27
- //# sourceMappingURL=package-5e7ba83a.js.map
27
+ //# sourceMappingURL=package-79d607b8.js.map
@@ -1 +1 @@
1
- {"file":"package-5e7ba83a.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}
1
+ {"file":"package-79d607b8.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}