@haiilo/catalyst 0.9.0 → 0.10.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 (67) hide show
  1. package/dist/catalyst/catalyst.css +1 -1
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +1 -1
  5. package/dist/catalyst/{p-6a8a4dc0.js → p-8121572a.js} +3 -3
  6. package/dist/catalyst/p-8121572a.js.map +1 -0
  7. package/dist/catalyst/{p-0c1a611f.entry.js → p-a21823c9.entry.js} +5 -5
  8. package/dist/catalyst/p-a21823c9.entry.js.map +1 -0
  9. package/dist/catalyst/scss/core/_typography.scss +7 -7
  10. package/dist/catalyst/scss/index.scss +1 -5
  11. package/dist/cjs/cat-alert_20.cjs.entry.js +10 -10
  12. package/dist/cjs/cat-alert_20.cjs.entry.js.map +1 -1
  13. package/dist/cjs/{cat-notification-fe237312.js → cat-notification-c2859ed7.js} +121 -1
  14. package/dist/cjs/cat-notification-c2859ed7.js.map +1 -0
  15. package/dist/cjs/catalyst.cjs.js +0 -4
  16. package/dist/cjs/catalyst.cjs.js.map +1 -1
  17. package/dist/cjs/index.cjs.js +3 -4
  18. package/dist/cjs/index.cjs.js.map +1 -1
  19. package/dist/cjs/loader.cjs.js +0 -4
  20. package/dist/cjs/loader.cjs.js.map +1 -1
  21. package/dist/collection/collection-manifest.json +1 -2
  22. package/dist/collection/components/cat-card/cat-card.css +34 -0
  23. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +3 -2
  24. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  25. package/dist/collection/components/cat-select/cat-select.js +5 -4
  26. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  27. package/dist/collection/scss/core/_typography.scss +7 -7
  28. package/dist/collection/scss/index.scss +1 -5
  29. package/dist/components/cat-card.js +1 -1
  30. package/dist/components/cat-card.js.map +1 -1
  31. package/dist/components/cat-i18n-registry.js +3 -2
  32. package/dist/components/cat-i18n-registry.js.map +1 -1
  33. package/dist/components/cat-select.js +5 -4
  34. package/dist/components/cat-select.js.map +1 -1
  35. package/dist/components/index.js +0 -253
  36. package/dist/components/index.js.map +1 -1
  37. package/dist/esm/cat-alert_20.entry.js +7 -7
  38. package/dist/esm/cat-alert_20.entry.js.map +1 -1
  39. package/dist/esm/{cat-notification-a9655c00.js → cat-notification-3da6ddb1.js} +121 -3
  40. package/dist/esm/cat-notification-3da6ddb1.js.map +1 -0
  41. package/dist/esm/catalyst.js +0 -4
  42. package/dist/esm/catalyst.js.map +1 -1
  43. package/dist/esm/index.js +1 -2
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/loader.js +0 -4
  46. package/dist/esm/loader.js.map +1 -1
  47. package/dist/types/components/cat-select/cat-select.d.ts +1 -1
  48. package/package.json +2 -2
  49. package/dist/catalyst/p-0c1a611f.entry.js.map +0 -1
  50. package/dist/catalyst/p-6a8a4dc0.js.map +0 -1
  51. package/dist/catalyst/p-decdc6f1.js +0 -2
  52. package/dist/catalyst/p-decdc6f1.js.map +0 -1
  53. package/dist/catalyst/p-f45bcfd6.js +0 -2
  54. package/dist/catalyst/p-f45bcfd6.js.map +0 -1
  55. package/dist/cjs/app-globals-79765026.js +0 -256
  56. package/dist/cjs/app-globals-79765026.js.map +0 -1
  57. package/dist/cjs/cat-icon-registry-b015a65f.js +0 -125
  58. package/dist/cjs/cat-icon-registry-b015a65f.js.map +0 -1
  59. package/dist/cjs/cat-notification-fe237312.js.map +0 -1
  60. package/dist/collection/init.js +0 -17
  61. package/dist/collection/init.js.map +0 -1
  62. package/dist/esm/app-globals-7d163b94.js +0 -254
  63. package/dist/esm/app-globals-7d163b94.js.map +0 -1
  64. package/dist/esm/cat-icon-registry-dc1ef79a.js +0 -122
  65. package/dist/esm/cat-icon-registry-dc1ef79a.js.map +0 -1
  66. package/dist/esm/cat-notification-a9655c00.js.map +0 -1
  67. package/dist/types/init.d.ts +0 -1
@@ -132,13 +132,13 @@ dl {
132
132
  }
133
133
  }
134
134
 
135
- nav {
136
- ol,
137
- ul {
138
- list-style-type: none;
139
- margin: 0;
140
- padding: 0;
141
- }
135
+ nav ol,
136
+ nav ul,
137
+ ol.cat-plain,
138
+ ul.cat-plain {
139
+ list-style: none;
140
+ margin: 0;
141
+ padding: 0;
142
142
  }
143
143
 
144
144
  dt {
@@ -1,26 +1,21 @@
1
1
  // -- Reset
2
-
3
2
  @import '~sanitize.css/sanitize.css';
4
3
  @import '~sanitize.css/assets.css';
5
4
  @import '~sanitize.css/reduce-motion.css';
6
5
 
7
6
  // -- Vendor
8
-
9
7
  @import '~toastify-js/src/toastify.css';
10
8
 
11
9
  // -- Fonts
12
-
13
10
  @import 'fonts/fonts-mixins';
14
11
 
15
12
  // -- Core
16
-
17
13
  @import 'core/base';
18
14
  @import 'core/nav';
19
15
  @import 'core/toast';
20
16
  @import 'core/typography';
21
17
 
22
18
  // -- Utils
23
-
24
19
  @import 'utils/color';
25
20
  @import 'utils/display';
26
21
  @import 'utils/elevation';
@@ -31,5 +26,6 @@
31
26
  @import 'utils/visibility';
32
27
  @import 'utils/ratio';
33
28
 
29
+ // -- Includes
34
30
  $cat-font-path: 'assets/fonts' !default;
35
31
  @include cat-fonts($cat-font-path);
@@ -5,8 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-936b777e.js');
6
6
  const loglevel = require('./loglevel-b5d158ad.js');
7
7
  const catFormHint = require('./cat-form-hint-25fdfed5.js');
8
- const catIconRegistry = require('./cat-icon-registry-b015a65f.js');
9
- const catNotification = require('./cat-notification-fe237312.js');
8
+ const catNotification = require('./cat-notification-c2859ed7.js');
10
9
 
11
10
  const catAlertCss = ":host{display:block;margin-bottom:1rem}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host([hidden]){display:none}.alert{font:inherit;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem}::slotted(:last-child){margin-bottom:0 !important}.alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";
12
11
 
@@ -452,7 +451,7 @@ const CatButton = class {
452
451
  };
453
452
  CatButton.style = catButtonCss;
454
453
 
455
- const catCardCss = ":host{display:block;margin-bottom:1rem;border-radius:0.5rem;background-color:white;padding:1.5rem}:host([hidden]){display:none}::slotted(nav){margin:-1rem -1.5rem !important}::slotted(:last-child){margin-bottom:0}";
454
+ const catCardCss = ":host{display:block;margin-bottom:1rem;border-radius:0.5rem;background-color:white;padding:1.5rem}:host([hidden]){display:none}::slotted(nav){margin:-1rem -1.5rem !important}::slotted(:last-child){margin-bottom:0}::slotted(.cat-card-pull){margin:-1.5rem !important;width:calc(100% + 3rem) !important;height:calc(100% + 3rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.5rem !important;margin-right:-1.5rem !important;width:calc(100% + 3rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.5rem !important;margin-bottom:-1.5rem !important;height:calc(100% + 3rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.5rem !important}::slotted(.cat-card-pull-l){margin-left:-1.5rem !important}::slotted(.cat-card-pull-r){margin-right:-1.5rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.5rem !important}";
456
455
 
457
456
  const CatCard = class {
458
457
  constructor(hostRef) {
@@ -546,7 +545,7 @@ const catIconCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user
546
545
  const CatIcon = class {
547
546
  constructor(hostRef) {
548
547
  index.registerInstance(this, hostRef);
549
- this.iconRegistry = catIconRegistry.CatIconRegistry.getInstance();
548
+ this.iconRegistry = catNotification.CatIconRegistry.getInstance();
550
549
  /**
551
550
  * The name of the icon.
552
551
  */
@@ -574,7 +573,7 @@ const CatInput = class {
574
573
  this.catChange = index.createEvent(this, "catChange", 7);
575
574
  this.catFocus = index.createEvent(this, "catFocus", 7);
576
575
  this.catBlur = index.createEvent(this, "catBlur", 7);
577
- this.i18n = catIconRegistry.CatI18nRegistry.getInstance();
576
+ this.i18n = catNotification.CatI18nRegistry.getInstance();
578
577
  this.id = `cat-input-${nextUniqueId$6++}`;
579
578
  this.hasSlottedLabel = false;
580
579
  /**
@@ -11967,7 +11966,7 @@ const CatSelect = class {
11967
11966
  index.registerInstance(this, hostRef);
11968
11967
  this.catChange = index.createEvent(this, "catChange", 7);
11969
11968
  this.catSearch = index.createEvent(this, "catSearch", 7);
11970
- this.i18n = catIconRegistry.CatI18nRegistry.getInstance();
11969
+ this.i18n = catNotification.CatI18nRegistry.getInstance();
11971
11970
  this.id = `cat-select-${nextUniqueId$3++}`;
11972
11971
  this.hasSlottedLabel = false;
11973
11972
  /**
@@ -12014,9 +12013,10 @@ const CatSelect = class {
12014
12013
  return;
12015
12014
  this.setChoices(choices, 'value', 'label', true);
12016
12015
  }
12017
- setValueHandles(value) {
12018
- var _a;
12019
- (_a = this.choice) === null || _a === void 0 ? void 0 : _a.setValue(value || []);
12016
+ setValueHandler(value) {
12017
+ if (this.multiple)
12018
+ return;
12019
+ this.setValue(value || []);
12020
12020
  }
12021
12021
  componentWillRender() {
12022
12022
  this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
@@ -12232,7 +12232,7 @@ const CatSelect = class {
12232
12232
  get hostElement() { return index.getElement(this); }
12233
12233
  static get watchers() { return {
12234
12234
  "choices": ["setChoicesHandler"],
12235
- "value": ["setValueHandles"]
12235
+ "value": ["setValueHandler"]
12236
12236
  }; }
12237
12237
  };
12238
12238
  CatSelect.style = catSelectCss;