@haiilo/catalyst 2.3.0 → 2.4.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 (77) 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/p-e5f9669a.entry.js +2 -0
  5. package/dist/catalyst/p-e5f9669a.entry.js.map +1 -0
  6. package/dist/catalyst/scss/core/_typography.scss +5 -4
  7. package/dist/cjs/{cat-alert_22.cjs.entry.js → cat-alert_23.cjs.entry.js} +71 -49
  8. package/dist/cjs/cat-alert_23.cjs.entry.js.map +1 -0
  9. package/dist/cjs/catalyst.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -0
  12. package/dist/collection/components/cat-alert/cat-alert.js +2 -3
  13. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  14. package/dist/collection/components/cat-badge/cat-badge.js +6 -31
  15. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  16. package/dist/collection/components/cat-checkbox/cat-checkbox.js +21 -1
  17. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  18. package/dist/collection/components/cat-input/cat-input.js +24 -9
  19. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  20. package/dist/collection/components/cat-label/cat-label.css +16 -0
  21. package/dist/collection/components/cat-label/cat-label.js +96 -0
  22. package/dist/collection/components/cat-label/cat-label.js.map +1 -0
  23. package/dist/collection/components/cat-radio/cat-radio.js +22 -2
  24. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  25. package/dist/collection/components/cat-select/cat-select.js +24 -9
  26. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  27. package/dist/collection/components/cat-textarea/cat-textarea.js +24 -9
  28. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  29. package/dist/collection/components/cat-toggle/cat-toggle.js +21 -1
  30. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  31. package/dist/collection/scss/core/_typography.scss +5 -4
  32. package/dist/collection/utils/setDefault.js +0 -6
  33. package/dist/collection/utils/setDefault.js.map +1 -1
  34. package/dist/components/cat-alert.js +7 -3
  35. package/dist/components/cat-alert.js.map +1 -1
  36. package/dist/components/cat-badge.js +5 -25
  37. package/dist/components/cat-badge.js.map +1 -1
  38. package/dist/components/cat-checkbox2.js +5 -1
  39. package/dist/components/cat-checkbox2.js.map +1 -1
  40. package/dist/components/cat-dropdown2.js.map +1 -1
  41. package/dist/components/cat-input.js +5 -5
  42. package/dist/components/cat-input.js.map +1 -1
  43. package/dist/components/cat-label.d.ts +11 -0
  44. package/dist/components/cat-label.js +71 -0
  45. package/dist/components/cat-label.js.map +1 -0
  46. package/dist/components/cat-radio.js +6 -2
  47. package/dist/components/cat-radio.js.map +1 -1
  48. package/dist/components/cat-select2.js +5 -5
  49. package/dist/components/cat-select2.js.map +1 -1
  50. package/dist/components/cat-textarea.js +5 -5
  51. package/dist/components/cat-textarea.js.map +1 -1
  52. package/dist/components/cat-toggle.js +5 -1
  53. package/dist/components/cat-toggle.js.map +1 -1
  54. package/dist/components/index.d.ts +1 -0
  55. package/dist/components/index.js +1 -0
  56. package/dist/components/index.js.map +1 -1
  57. package/dist/esm/{cat-alert_22.entry.js → cat-alert_23.entry.js} +71 -50
  58. package/dist/esm/cat-alert_23.entry.js.map +1 -0
  59. package/dist/esm/catalyst.js +1 -1
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/types/components/cat-badge/cat-badge.d.ts +0 -4
  62. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +6 -1
  63. package/dist/types/components/cat-input/cat-input.d.ts +7 -2
  64. package/dist/types/components/cat-label/cat-label.d.ts +17 -0
  65. package/dist/types/components/cat-radio/cat-radio.d.ts +6 -1
  66. package/dist/types/components/cat-select/cat-select.d.ts +7 -2
  67. package/dist/types/components/cat-textarea/cat-textarea.d.ts +7 -2
  68. package/dist/types/components/cat-toggle/cat-toggle.d.ts +6 -1
  69. package/dist/types/components.d.ts +80 -3
  70. package/dist/types/utils/setDefault.d.ts +0 -6
  71. package/package.json +2 -2
  72. package/dist/catalyst/p-757cf2e8.entry.js +0 -2
  73. package/dist/catalyst/p-757cf2e8.entry.js.map +0 -1
  74. package/dist/cjs/cat-alert_22.cjs.entry.js.map +0 -1
  75. package/dist/components/setDefault.js +0 -18
  76. package/dist/components/setDefault.js.map +0 -1
  77. package/dist/esm/cat-alert_22.entry.js.map +0 -1
@@ -13,7 +13,7 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["cat-alert_22",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[1],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-radio",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
16
+ return bootstrapLazy([["cat-alert_23",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-label",{"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
17
17
  });
18
18
 
19
19
  //# sourceMappingURL=catalyst.js.map
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["cat-alert_22",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[1],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-radio",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
13
+ return bootstrapLazy([["cat-alert_23",[[1,"cat-select-demo"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-label",{"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -24,9 +24,5 @@ export declare class CatBadge {
24
24
  * Draw attention to the badge with a subtle animation.
25
25
  */
26
26
  pulse: boolean;
27
- connectedCallback(): void;
28
27
  render(): any;
29
- onColorChanged(): void;
30
- onSizeChanged(): void;
31
- onVariantChanged(): void;
32
28
  }
@@ -9,7 +9,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
9
9
  * @part label - The label content.
10
10
  */
11
11
  export declare class CatCheckbox {
12
- private readonly id;
12
+ private readonly _id;
13
+ private get id();
13
14
  private input;
14
15
  hostElement: HTMLElement;
15
16
  hasSlottedLabel: boolean;
@@ -21,6 +22,10 @@ export declare class CatCheckbox {
21
22
  * Disabled state of the checkbox
22
23
  */
23
24
  disabled: boolean;
25
+ /**
26
+ * A unique identifier for the input.
27
+ */
28
+ identifier?: string;
24
29
  /**
25
30
  * Indeterminate state of the checkbox
26
31
  */
@@ -12,7 +12,8 @@ import { InputType } from './input-type';
12
12
  * @part suffix - The text suffix.
13
13
  */
14
14
  export declare class CatInput {
15
- private readonly id;
15
+ private readonly _id;
16
+ private get id();
16
17
  private input;
17
18
  hostElement: HTMLElement;
18
19
  hasSlottedLabel: boolean;
@@ -40,6 +41,10 @@ export declare class CatInput {
40
41
  * Display the icon on the right.
41
42
  */
42
43
  iconRight: boolean;
44
+ /**
45
+ * A unique identifier for the input.
46
+ */
47
+ identifier?: string;
43
48
  /**
44
49
  * The label for the input.
45
50
  */
@@ -67,7 +72,7 @@ export declare class CatInput {
67
72
  /**
68
73
  * The name of the form control. Submitted with the form as part of a name/value pair.
69
74
  */
70
- name: string;
75
+ name?: string;
71
76
  /**
72
77
  * The placeholder text to display within the input.
73
78
  */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Labels are used to provide a short description of an input or form element.
3
+ */
4
+ export declare class CatLabel {
5
+ private static readonly SHADOW_TARGETS;
6
+ /**
7
+ * The unique identifier for a referenced input.
8
+ */
9
+ for?: string;
10
+ /**
11
+ * A value is required or must be check for the form to be submittable.
12
+ */
13
+ required: boolean;
14
+ onClick(): void;
15
+ render(): any;
16
+ private findShadowTarget;
17
+ }
@@ -8,7 +8,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
8
8
  * @part label - The label content.
9
9
  */
10
10
  export declare class CatRadio {
11
- private readonly id;
11
+ private readonly _id;
12
+ private get id();
12
13
  private input;
13
14
  hostElement: HTMLElement;
14
15
  hasSlottedLabel: boolean;
@@ -20,6 +21,10 @@ export declare class CatRadio {
20
21
  * Whether this radio is disabled.
21
22
  */
22
23
  disabled: boolean;
24
+ /**
25
+ * A unique identifier for the input.
26
+ */
27
+ identifier?: string;
23
28
  /**
24
29
  * The label of the radio that is visible.
25
30
  */
@@ -66,7 +66,8 @@ export interface CatSelectTaggingValue {
66
66
  export declare class CatSelect {
67
67
  private static readonly SKELETON_COUNT;
68
68
  private static readonly DROPDOWN_OFFSET;
69
- private readonly id;
69
+ private readonly _id;
70
+ private get id();
70
71
  private dropdown?;
71
72
  private trigger?;
72
73
  private input?;
@@ -111,6 +112,10 @@ export declare class CatSelect {
111
112
  * Optional hint text(s) to be displayed with the select.
112
113
  */
113
114
  hint?: string | string[];
115
+ /**
116
+ * A unique identifier for the input.
117
+ */
118
+ identifier?: string;
114
119
  /**
115
120
  * The label for the select.
116
121
  */
@@ -118,7 +123,7 @@ export declare class CatSelect {
118
123
  /**
119
124
  * The name of the form control. Submitted with the form as part of a name/value pair.
120
125
  */
121
- name: string;
126
+ name?: string;
122
127
  /**
123
128
  * Visually hide the label, but still show it to assistive technologies like screen readers.
124
129
  */
@@ -9,7 +9,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
9
9
  * @part label - The label content.
10
10
  */
11
11
  export declare class CatTextarea {
12
- private readonly id;
12
+ private readonly _id;
13
+ private get id();
13
14
  private textarea;
14
15
  hostElement: HTMLElement;
15
16
  hasSlottedLabel: boolean;
@@ -21,6 +22,10 @@ export declare class CatTextarea {
21
22
  * Optional hint text(s) to be displayed with the textarea.
22
23
  */
23
24
  hint?: string | string[];
25
+ /**
26
+ * A unique identifier for the input.
27
+ */
28
+ identifier?: string;
24
29
  /**
25
30
  * The label for the textarea.
26
31
  */
@@ -40,7 +45,7 @@ export declare class CatTextarea {
40
45
  /**
41
46
  * The name of the form control. Submitted with the form as part of a name/value pair.
42
47
  */
43
- name: string;
48
+ name?: string;
44
49
  /**
45
50
  * The placeholder text to display within the input.
46
51
  */
@@ -9,7 +9,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
9
9
  * @part label - The label content.
10
10
  */
11
11
  export declare class CatToggle {
12
- private readonly id;
12
+ private readonly _id;
13
+ private get id();
13
14
  private input;
14
15
  hostElement: HTMLElement;
15
16
  hasSlottedLabel: boolean;
@@ -21,6 +22,10 @@ export declare class CatToggle {
21
22
  * Disabled state of the toggle.
22
23
  */
23
24
  disabled: boolean;
25
+ /**
26
+ * A unique identifier for the input.
27
+ */
28
+ identifier?: string;
24
29
  /**
25
30
  * The label of the toggle that is visible.
26
31
  */
@@ -200,6 +200,10 @@ export namespace Components {
200
200
  * Optional hint text(s) to be displayed with the checkbox.
201
201
  */
202
202
  "hint"?: string | string[];
203
+ /**
204
+ * A unique identifier for the input.
205
+ */
206
+ "identifier"?: string;
203
207
  /**
204
208
  * Indeterminate state of the checkbox
205
209
  */
@@ -303,6 +307,10 @@ export namespace Components {
303
307
  * Display the icon on the right.
304
308
  */
305
309
  "iconRight": boolean;
310
+ /**
311
+ * A unique identifier for the input.
312
+ */
313
+ "identifier"?: string;
306
314
  /**
307
315
  * The label for the input.
308
316
  */
@@ -330,7 +338,7 @@ export namespace Components {
330
338
  /**
331
339
  * The name of the form control. Submitted with the form as part of a name/value pair.
332
340
  */
333
- "name": string;
341
+ "name"?: string;
334
342
  /**
335
343
  * The placeholder text to display within the input.
336
344
  */
@@ -364,6 +372,16 @@ export namespace Components {
364
372
  */
365
373
  "value"?: string | number;
366
374
  }
375
+ interface CatLabel {
376
+ /**
377
+ * The unique identifier for a referenced input.
378
+ */
379
+ "for"?: string;
380
+ /**
381
+ * A value is required or must be check for the form to be submittable.
382
+ */
383
+ "required": boolean;
384
+ }
367
385
  interface CatModal {
368
386
  /**
369
387
  * Shows the modal.
@@ -442,6 +460,10 @@ export namespace Components {
442
460
  * Optional hint text(s) to be displayed with the radio.
443
461
  */
444
462
  "hint"?: string | string[];
463
+ /**
464
+ * A unique identifier for the input.
465
+ */
466
+ "identifier"?: string;
445
467
  /**
446
468
  * The label of the radio that is visible.
447
469
  */
@@ -541,6 +563,10 @@ export namespace Components {
541
563
  * Optional hint text(s) to be displayed with the select.
542
564
  */
543
565
  "hint"?: string | string[];
566
+ /**
567
+ * A unique identifier for the input.
568
+ */
569
+ "identifier"?: string;
544
570
  /**
545
571
  * The label for the select.
546
572
  */
@@ -556,7 +582,7 @@ export namespace Components {
556
582
  /**
557
583
  * The name of the form control. Submitted with the form as part of a name/value pair.
558
584
  */
559
- "name": string;
585
+ "name"?: string;
560
586
  /**
561
587
  * The placeholder text to display within the select.
562
588
  */
@@ -674,6 +700,10 @@ export namespace Components {
674
700
  * Optional hint text(s) to be displayed with the textarea.
675
701
  */
676
702
  "hint"?: string | string[];
703
+ /**
704
+ * A unique identifier for the input.
705
+ */
706
+ "identifier"?: string;
677
707
  /**
678
708
  * The label for the textarea.
679
709
  */
@@ -693,7 +723,7 @@ export namespace Components {
693
723
  /**
694
724
  * The name of the form control. Submitted with the form as part of a name/value pair.
695
725
  */
696
- "name": string;
726
+ "name"?: string;
697
727
  /**
698
728
  * The placeholder text to display within the input.
699
729
  */
@@ -741,6 +771,10 @@ export namespace Components {
741
771
  * Optional hint text(s) to be displayed with the toggle.
742
772
  */
743
773
  "hint"?: string | string[];
774
+ /**
775
+ * A unique identifier for the input.
776
+ */
777
+ "identifier"?: string;
744
778
  /**
745
779
  * The label of the toggle that is visible.
746
780
  */
@@ -900,6 +934,12 @@ declare global {
900
934
  prototype: HTMLCatInputElement;
901
935
  new (): HTMLCatInputElement;
902
936
  };
937
+ interface HTMLCatLabelElement extends Components.CatLabel, HTMLStencilElement {
938
+ }
939
+ var HTMLCatLabelElement: {
940
+ prototype: HTMLCatLabelElement;
941
+ new (): HTMLCatLabelElement;
942
+ };
903
943
  interface HTMLCatModalElement extends Components.CatModal, HTMLStencilElement {
904
944
  }
905
945
  var HTMLCatModalElement: {
@@ -994,6 +1034,7 @@ declare global {
994
1034
  "cat-dropdown": HTMLCatDropdownElement;
995
1035
  "cat-icon": HTMLCatIconElement;
996
1036
  "cat-input": HTMLCatInputElement;
1037
+ "cat-label": HTMLCatLabelElement;
997
1038
  "cat-modal": HTMLCatModalElement;
998
1039
  "cat-pagination": HTMLCatPaginationElement;
999
1040
  "cat-radio": HTMLCatRadioElement;
@@ -1186,6 +1227,10 @@ declare namespace LocalJSX {
1186
1227
  * Optional hint text(s) to be displayed with the checkbox.
1187
1228
  */
1188
1229
  "hint"?: string | string[];
1230
+ /**
1231
+ * A unique identifier for the input.
1232
+ */
1233
+ "identifier"?: string;
1189
1234
  /**
1190
1235
  * Indeterminate state of the checkbox
1191
1236
  */
@@ -1288,6 +1333,10 @@ declare namespace LocalJSX {
1288
1333
  * Display the icon on the right.
1289
1334
  */
1290
1335
  "iconRight"?: boolean;
1336
+ /**
1337
+ * A unique identifier for the input.
1338
+ */
1339
+ "identifier"?: string;
1291
1340
  /**
1292
1341
  * The label for the input.
1293
1342
  */
@@ -1361,6 +1410,16 @@ declare namespace LocalJSX {
1361
1410
  */
1362
1411
  "value"?: string | number;
1363
1412
  }
1413
+ interface CatLabel {
1414
+ /**
1415
+ * The unique identifier for a referenced input.
1416
+ */
1417
+ "for"?: string;
1418
+ /**
1419
+ * A value is required or must be check for the form to be submittable.
1420
+ */
1421
+ "required"?: boolean;
1422
+ }
1364
1423
  interface CatModal {
1365
1424
  /**
1366
1425
  * The size of the modal.
@@ -1422,6 +1481,10 @@ declare namespace LocalJSX {
1422
1481
  * Optional hint text(s) to be displayed with the radio.
1423
1482
  */
1424
1483
  "hint"?: string | string[];
1484
+ /**
1485
+ * A unique identifier for the input.
1486
+ */
1487
+ "identifier"?: string;
1425
1488
  /**
1426
1489
  * The label of the radio that is visible.
1427
1490
  */
@@ -1552,6 +1615,10 @@ declare namespace LocalJSX {
1552
1615
  * Optional hint text(s) to be displayed with the select.
1553
1616
  */
1554
1617
  "hint"?: string | string[];
1618
+ /**
1619
+ * A unique identifier for the input.
1620
+ */
1621
+ "identifier"?: string;
1555
1622
  /**
1556
1623
  * The label for the select.
1557
1624
  */
@@ -1692,6 +1759,10 @@ declare namespace LocalJSX {
1692
1759
  * Optional hint text(s) to be displayed with the textarea.
1693
1760
  */
1694
1761
  "hint"?: string | string[];
1762
+ /**
1763
+ * A unique identifier for the input.
1764
+ */
1765
+ "identifier"?: string;
1695
1766
  /**
1696
1767
  * The label for the textarea.
1697
1768
  */
@@ -1758,6 +1829,10 @@ declare namespace LocalJSX {
1758
1829
  * Optional hint text(s) to be displayed with the toggle.
1759
1830
  */
1760
1831
  "hint"?: string | string[];
1832
+ /**
1833
+ * A unique identifier for the input.
1834
+ */
1835
+ "identifier"?: string;
1761
1836
  /**
1762
1837
  * The label of the toggle that is visible.
1763
1838
  */
@@ -1839,6 +1914,7 @@ declare namespace LocalJSX {
1839
1914
  "cat-dropdown": CatDropdown;
1840
1915
  "cat-icon": CatIcon;
1841
1916
  "cat-input": CatInput;
1917
+ "cat-label": CatLabel;
1842
1918
  "cat-modal": CatModal;
1843
1919
  "cat-pagination": CatPagination;
1844
1920
  "cat-radio": CatRadio;
@@ -1868,6 +1944,7 @@ declare module "@stencil/core" {
1868
1944
  "cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
1869
1945
  "cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
1870
1946
  "cat-input": LocalJSX.CatInput & JSXBase.HTMLAttributes<HTMLCatInputElement>;
1947
+ "cat-label": LocalJSX.CatLabel & JSXBase.HTMLAttributes<HTMLCatLabelElement>;
1871
1948
  "cat-modal": LocalJSX.CatModal & JSXBase.HTMLAttributes<HTMLCatModalElement>;
1872
1949
  "cat-pagination": LocalJSX.CatPagination & JSXBase.HTMLAttributes<HTMLCatPaginationElement>;
1873
1950
  "cat-radio": LocalJSX.CatRadio & JSXBase.HTMLAttributes<HTMLCatRadioElement>;
@@ -1,12 +1,6 @@
1
1
  export declare function setAttributeDefault<T extends {
2
2
  hostElement: HTMLElement;
3
3
  }>(host: T, attr: string, value: unknown): void;
4
- export declare function setPropertyDefault<T extends {
5
- hostElement: HTMLElement;
6
- }>(host: T, prop: keyof T): void;
7
4
  export declare function setAttribute<T extends {
8
5
  hostElement: HTMLElement;
9
6
  }>(host: T, attr: string, value: unknown): void;
10
- export declare function setProperty<T extends {
11
- hostElement: HTMLElement;
12
- }>(host: T, prop: keyof T): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@floating-ui/dom": "1.0.3",
48
- "@haiilo/catalyst-tokens": "2.3.0",
48
+ "@haiilo/catalyst-tokens": "2.4.0",
49
49
  "@stencil/core": "2.17.4",
50
50
  "autosize": "5.0.1",
51
51
  "autosize-input": "1.0.2",