@haiilo/catalyst 1.0.2 → 1.1.1

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 (65) 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-a4d0b054.entry.js +10 -0
  5. package/dist/catalyst/p-a4d0b054.entry.js.map +1 -0
  6. package/dist/catalyst/scss/utils/_sizing.mixins.scss +1 -1
  7. package/dist/cjs/cat-alert_23.cjs.entry.js +320 -129
  8. package/dist/cjs/cat-alert_23.cjs.entry.js.map +1 -1
  9. package/dist/cjs/catalyst.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/cat-alert/cat-alert.css +13 -19
  12. package/dist/collection/components/cat-alert/cat-alert.js +19 -20
  13. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  14. package/dist/collection/components/cat-avatar/cat-avatar.css +8 -8
  15. package/dist/collection/components/cat-badge/cat-badge.css +20 -26
  16. package/dist/collection/components/cat-badge/cat-badge.js +9 -12
  17. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  18. package/dist/collection/components/cat-card/cat-card.js +2 -3
  19. package/dist/collection/components/cat-card/cat-card.js.map +1 -1
  20. package/dist/collection/components/cat-checkbox/cat-checkbox.css +1 -1
  21. package/dist/collection/components/cat-select/cat-select.css +6 -1
  22. package/dist/collection/components/cat-select/cat-select.js +290 -89
  23. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  24. package/dist/collection/components/cat-select-demo/cat-select-demo.js +43 -30
  25. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  26. package/dist/collection/components/cat-tooltip/cat-tooltip.css +26 -2
  27. package/dist/collection/components/cat-tooltip/cat-tooltip.js +51 -3
  28. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  29. package/dist/collection/index.js.map +1 -1
  30. package/dist/collection/scss/utils/_sizing.mixins.scss +1 -1
  31. package/dist/collection/utils/setDefault.js +9 -0
  32. package/dist/collection/utils/setDefault.js.map +1 -0
  33. package/dist/components/cat-alert.js +16 -14
  34. package/dist/components/cat-alert.js.map +1 -1
  35. package/dist/components/cat-avatar2.js +1 -1
  36. package/dist/components/cat-avatar2.js.map +1 -1
  37. package/dist/components/cat-badge.js +9 -9
  38. package/dist/components/cat-badge.js.map +1 -1
  39. package/dist/components/cat-card.js +2 -2
  40. package/dist/components/cat-card.js.map +1 -1
  41. package/dist/components/cat-checkbox2.js +1 -1
  42. package/dist/components/cat-checkbox2.js.map +1 -1
  43. package/dist/components/cat-select-demo.js +33 -22
  44. package/dist/components/cat-select-demo.js.map +1 -1
  45. package/dist/components/cat-select2.js +238 -77
  46. package/dist/components/cat-select2.js.map +1 -1
  47. package/dist/components/cat-tooltip.js +17 -3
  48. package/dist/components/cat-tooltip.js.map +1 -1
  49. package/dist/components/setDefault.js +12 -0
  50. package/dist/components/setDefault.js.map +1 -0
  51. package/dist/esm/cat-alert_23.entry.js +321 -130
  52. package/dist/esm/cat-alert_23.entry.js.map +1 -1
  53. package/dist/esm/catalyst.js +1 -1
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/types/components/cat-alert/cat-alert.d.ts +3 -3
  56. package/dist/types/components/cat-badge/cat-badge.d.ts +2 -2
  57. package/dist/types/components/cat-select/cat-select.d.ts +34 -1
  58. package/dist/types/components/cat-select-demo/cat-select-demo.d.ts +3 -0
  59. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +8 -0
  60. package/dist/types/components.d.ts +37 -5
  61. package/dist/types/index.d.ts +1 -1
  62. package/dist/types/utils/setDefault.d.ts +6 -0
  63. package/package.json +2 -2
  64. package/dist/catalyst/p-a2ddc7fa.entry.js +0 -10
  65. package/dist/catalyst/p-a2ddc7fa.entry.js.map +0 -1
@@ -15,7 +15,7 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["cat-alert_23.cjs",[[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],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[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-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[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],"setFocus":[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],"setFocus":[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],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[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],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[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],"setFocus":[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"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
18
+ return index.bootstrapLazy([["cat-alert_23.cjs",[[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],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[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-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[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],"setFocus":[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],"setFocus":[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],"setFocus":[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-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],"setFocus":[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"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
19
19
  });
20
20
 
21
21
  //# sourceMappingURL=catalyst.cjs.js.map
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["cat-alert_23.cjs",[[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],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[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-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[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],"setFocus":[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],"setFocus":[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],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[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],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[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],"setFocus":[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"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
17
+ return index.bootstrapLazy([["cat-alert_23.cjs",[[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],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[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-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[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],"setFocus":[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],"setFocus":[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],"setFocus":[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-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],"setFocus":[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"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -4,7 +4,9 @@
4
4
  /* stylelint-disable value-keyword-case */
5
5
  /* stylelint-enable value-keyword-case */
6
6
  :host {
7
- display: block;
7
+ display: flex;
8
+ gap: 0.5rem;
9
+ padding: 1.25rem;
8
10
  border-radius: 0.5rem;
9
11
  margin-bottom: 1rem;
10
12
  }
@@ -18,14 +20,6 @@
18
20
  outline-offset: 1px;
19
21
  }
20
22
 
21
- .alert {
22
- font: inherit;
23
- display: flex;
24
- gap: 0.5rem;
25
- padding: 1.25rem;
26
- border-radius: 0.5rem;
27
- }
28
-
29
23
  .content {
30
24
  align-self: center;
31
25
  }
@@ -34,37 +28,37 @@
34
28
  margin-bottom: 0 !important;
35
29
  }
36
30
 
37
- .alert-primary {
31
+ :host([color=primary]) {
38
32
  background-color: rgba(var(--cat-primary-bg, 32, 127, 138), 0.1);
39
33
  }
40
- .alert-primary cat-icon {
34
+ :host([color=primary]) cat-icon {
41
35
  color: #207f8a;
42
36
  }
43
37
 
44
- .alert-secondary {
38
+ :host([color=secondary]) {
45
39
  background-color: rgba(105, 118, 135, 0.1);
46
40
  }
47
- .alert-secondary cat-icon {
41
+ :host([color=secondary]) cat-icon {
48
42
  color: #697687;
49
43
  }
50
44
 
51
- .alert-success {
45
+ :host([color=success]) {
52
46
  background-color: rgba(0, 132, 88, 0.1);
53
47
  }
54
- .alert-success cat-icon {
48
+ :host([color=success]) cat-icon {
55
49
  color: #008458;
56
50
  }
57
51
 
58
- .alert-warning {
52
+ :host([color=warning]) {
59
53
  background-color: rgba(255, 206, 128, 0.1);
60
54
  }
61
- .alert-warning cat-icon {
55
+ :host([color=warning]) cat-icon {
62
56
  color: #ebb663;
63
57
  }
64
58
 
65
- .alert-danger {
59
+ :host([color=danger]) {
66
60
  background-color: rgba(217, 52, 13, 0.1);
67
61
  }
68
- .alert-danger cat-icon {
62
+ :host([color=danger]) cat-icon {
69
63
  color: #d9340d;
70
64
  }
@@ -1,9 +1,8 @@
1
- import { Component, h, Host, Prop } from '@stencil/core';
1
+ import { Component, Element, h, Host, Prop } from '@stencil/core';
2
+ import { setAttributeDefault, setPropertyDefault } from '../../utils/setDefault';
2
3
  /**
3
4
  * Informs user about important changes or conditions in the interface. Use this
4
5
  * component if you need to capture user’s attention in a prominent way.
5
- *
6
- * @part alert - The alert element.
7
6
  */
8
7
  export class CatAlert {
9
8
  constructor() {
@@ -14,6 +13,13 @@ export class CatAlert {
14
13
  ['warning', 'danger-filled'],
15
14
  ['danger', 'cross-circle-filled']
16
15
  ]);
16
+ this.mapRole = new Map([
17
+ ['primary', 'status'],
18
+ ['secondary', 'status'],
19
+ ['success', 'status'],
20
+ ['warning', 'alert'],
21
+ ['danger', 'alert']
22
+ ]);
17
23
  /**
18
24
  * The color palette of the alert.
19
25
  */
@@ -23,24 +29,16 @@ export class CatAlert {
23
29
  */
24
30
  this.noIcon = false;
25
31
  }
26
- render() {
27
- return (h(Host, { tabindex: "0", role: this.role },
28
- h("div", { part: "alert", class: {
29
- alert: true,
30
- [`alert-${this.color}`]: Boolean(this.color)
31
- } },
32
- !this.noIcon && h("cat-icon", { size: "l", icon: this.icon ? this.icon : this.mapIcon.get(this.color) }),
33
- h("div", { class: "content" },
34
- h("slot", null)))));
32
+ connectedCallback() {
33
+ setAttributeDefault(this, 'tabindex', 0);
34
+ setAttributeDefault(this, 'role', this.mapRole.get(this.color));
35
+ setPropertyDefault(this, 'color');
35
36
  }
36
- get role() {
37
- switch (this.color) {
38
- case 'danger':
39
- case 'warning':
40
- return 'alert';
41
- default:
42
- return 'status';
43
- }
37
+ render() {
38
+ return (h(Host, null,
39
+ !this.noIcon && h("cat-icon", { size: "l", icon: this.icon ? this.icon : this.mapIcon.get(this.color) }),
40
+ h("div", { class: "content" },
41
+ h("slot", null))));
44
42
  }
45
43
  static get is() { return "cat-alert"; }
46
44
  static get encapsulation() { return "shadow"; }
@@ -105,5 +103,6 @@ export class CatAlert {
105
103
  "defaultValue": "false"
106
104
  }
107
105
  }; }
106
+ static get elementRef() { return "hostElement"; }
108
107
  }
109
108
  //# sourceMappingURL=cat-alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cat-alert.js","sourceRoot":"","sources":["../../../src/components/cat-alert/cat-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzD;;;;;GAKG;AAMH,MAAM,OAAO,QAAQ;EALrB;IAMmB,YAAO,GAAwB,IAAI,GAAG,CAAC;MACtD,CAAC,SAAS,EAAE,oBAAoB,CAAC;MACjC,CAAC,WAAW,EAAE,cAAc,CAAC;MAC7B,CAAC,SAAS,EAAE,qBAAqB,CAAC;MAClC,CAAC,SAAS,EAAE,eAAe,CAAC;MAC5B,CAAC,QAAQ,EAAE,qBAAqB,CAAC;KAClC,CAAC,CAAC;IAEH;;OAEG;IACK,UAAK,GAA+D,SAAS,CAAC;IAOtF;;OAEG;IACK,WAAM,GAAG,KAAK,CAAC;GA8BxB;EA5BC,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI;MAChC,WACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE;UACL,KAAK,EAAE,IAAI;UACX,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;SAC7C;QAEA,CAAC,IAAI,CAAC,MAAM,IAAI,gBAAU,IAAI,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAa;QAC3G,WAAK,KAAK,EAAC,SAAS;UAClB,eAAa,CACT,CACF,CACD,CACR,CAAC;EACJ,CAAC;EAED,IAAY,IAAI;IACd,QAAQ,IAAI,CAAC,KAAK,EAAE;MAClB,KAAK,QAAQ,CAAC;MACd,KAAK,SAAS;QACZ,OAAO,OAAO,CAAC;MACjB;QACE,OAAO,QAAQ,CAAC;KACnB;EACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * Informs user about important changes or conditions in the interface. Use this\n * component if you need to capture user’s attention in a prominent way.\n *\n * @part alert - The alert element.\n */\n@Component({\n tag: 'cat-alert',\n styleUrl: 'cat-alert.scss',\n shadow: true\n})\nexport class CatAlert {\n private readonly mapIcon: Map<string, string> = new Map([\n ['primary', 'star-circle-filled'],\n ['secondary', 'clock-filled'],\n ['success', 'check-circle-filled'],\n ['warning', 'danger-filled'],\n ['danger', 'cross-circle-filled']\n ]);\n\n /**\n * The color palette of the alert.\n */\n @Prop() color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' = 'primary';\n\n /**\n * The name of an icon to be displayed in the alert.\n */\n @Prop() icon?: string;\n\n /**\n * Whether the icon of the alert is deactivated.\n */\n @Prop() noIcon = false;\n\n render() {\n return (\n <Host tabindex=\"0\" role={this.role}>\n <div\n part=\"alert\"\n class={{\n alert: true,\n [`alert-${this.color}`]: Boolean(this.color)\n }}\n >\n {!this.noIcon && <cat-icon size=\"l\" icon={this.icon ? this.icon : this.mapIcon.get(this.color)}></cat-icon>}\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n\n private get role() {\n switch (this.color) {\n case 'danger':\n case 'warning':\n return 'alert';\n default:\n return 'status';\n }\n }\n}\n"]}
1
+ {"version":3,"file":"cat-alert.js","sourceRoot":"","sources":["../../../src/components/cat-alert/cat-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjF;;;GAGG;AAMH,MAAM,OAAO,QAAQ;EALrB;IAMmB,YAAO,GAAwB,IAAI,GAAG,CAAC;MACtD,CAAC,SAAS,EAAE,oBAAoB,CAAC;MACjC,CAAC,WAAW,EAAE,cAAc,CAAC;MAC7B,CAAC,SAAS,EAAE,qBAAqB,CAAC;MAClC,CAAC,SAAS,EAAE,eAAe,CAAC;MAC5B,CAAC,QAAQ,EAAE,qBAAqB,CAAC;KAClC,CAAC,CAAC;IACc,YAAO,GAAwB,IAAI,GAAG,CAAC;MACtD,CAAC,SAAS,EAAE,QAAQ,CAAC;MACrB,CAAC,WAAW,EAAE,QAAQ,CAAC;MACvB,CAAC,SAAS,EAAE,QAAQ,CAAC;MACrB,CAAC,SAAS,EAAE,OAAO,CAAC;MACpB,CAAC,QAAQ,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;IAIH;;OAEG;IACK,UAAK,GAA+D,SAAS,CAAC;IAOtF;;OAEG;IACK,WAAM,GAAG,KAAK,CAAC;GAkBxB;EAhBC,iBAAiB;IACf,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;IACzC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAChE,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;EACpC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACF,CAAC,IAAI,CAAC,MAAM,IAAI,gBAAU,IAAI,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAa;MAC3G,WAAK,KAAK,EAAC,SAAS;QAClB,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core';\nimport { setAttributeDefault, setPropertyDefault } from '../../utils/setDefault';\n\n/**\n * Informs user about important changes or conditions in the interface. Use this\n * component if you need to capture user’s attention in a prominent way.\n */\n@Component({\n tag: 'cat-alert',\n styleUrl: 'cat-alert.scss',\n shadow: true\n})\nexport class CatAlert {\n private readonly mapIcon: Map<string, string> = new Map([\n ['primary', 'star-circle-filled'],\n ['secondary', 'clock-filled'],\n ['success', 'check-circle-filled'],\n ['warning', 'danger-filled'],\n ['danger', 'cross-circle-filled']\n ]);\n private readonly mapRole: Map<string, string> = new Map([\n ['primary', 'status'],\n ['secondary', 'status'],\n ['success', 'status'],\n ['warning', 'alert'],\n ['danger', 'alert']\n ]);\n\n @Element() hostElement!: HTMLElement;\n\n /**\n * The color palette of the alert.\n */\n @Prop() color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' = 'primary';\n\n /**\n * The name of an icon to be displayed in the alert.\n */\n @Prop() icon?: string;\n\n /**\n * Whether the icon of the alert is deactivated.\n */\n @Prop() noIcon = false;\n\n connectedCallback() {\n setAttributeDefault(this, 'tabindex', 0);\n setAttributeDefault(this, 'role', this.mapRole.get(this.color));\n setPropertyDefault(this, 'color');\n }\n\n render() {\n return (\n <Host>\n {!this.noIcon && <cat-icon size=\"l\" icon={this.icon ? this.icon : this.mapIcon.get(this.color)}></cat-icon>}\n <div class=\"content\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -10,13 +10,7 @@
10
10
  * @prop --cat-avatar-size: The size of the avatar.
11
11
  * @prop --cat-avatar-font-size: The font size of the avatar.
12
12
  */
13
- display: inline-block;
14
- vertical-align: middle;
15
- /* stylelint-disable property-no-vendor-prefix */
16
- -webkit-user-select: none;
17
- -ms-user-select: none;
18
- user-select: none;
19
- /* stylelint-enable property-no-vendor-prefix */
13
+ display: contents;
20
14
  }
21
15
 
22
16
  :host([hidden]) {
@@ -24,7 +18,7 @@
24
18
  }
25
19
 
26
20
  .avatar {
27
- display: flex;
21
+ display: inline-flex;
28
22
  align-items: center;
29
23
  justify-content: center;
30
24
  border-radius: 0.25rem;
@@ -35,6 +29,12 @@
35
29
  background-position: center;
36
30
  white-space: nowrap;
37
31
  overflow: hidden;
32
+ vertical-align: middle;
33
+ /* stylelint-disable property-no-vendor-prefix */
34
+ -webkit-user-select: none;
35
+ -ms-user-select: none;
36
+ user-select: none;
37
+ /* stylelint-enable property-no-vendor-prefix */
38
38
  }
39
39
  .avatar:focus-visible {
40
40
  outline: 2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));
@@ -3,28 +3,21 @@
3
3
  */
4
4
  /* stylelint-disable value-keyword-case */
5
5
  /* stylelint-enable value-keyword-case */
6
- :host {
7
- display: inline-block;
8
- max-width: 100%;
9
- vertical-align: baseline;
10
- }
11
-
12
6
  :host([hidden]) {
13
7
  display: none;
14
8
  }
15
9
 
16
- .badge {
17
- font: inherit;
10
+ :host {
18
11
  display: inline-flex;
12
+ max-width: 100%;
13
+ vertical-align: baseline;
19
14
  align-items: center;
20
15
  justify-content: center;
21
16
  border-radius: 0.125rem;
22
17
  text-decoration: none;
23
- box-sizing: border-box;
24
- width: 100%;
25
18
  line-height: 1;
26
19
  }
27
- .badge slot {
20
+ :host slot {
28
21
  display: inline-block;
29
22
  /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
30
23
  overflow: hidden;
@@ -33,11 +26,11 @@
33
26
  /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
34
27
  }
35
28
 
36
- .badge-round {
29
+ :host([round]) {
37
30
  border-radius: 10rem;
38
31
  }
39
32
 
40
- .badge-filled {
33
+ :host([variant=filled]) {
41
34
  background-color: rgb(var(--bg));
42
35
  color: rgb(var(--fill));
43
36
  font-weight: 600;
@@ -45,86 +38,87 @@
45
38
  -moz-osx-font-smoothing: greyscale;
46
39
  }
47
40
 
48
- .badge-outlined {
41
+ :host([variant=outlined]) {
49
42
  background-color: white;
50
43
  box-shadow: inset 0 0 0 1px rgba(var(--border), 0.2);
51
44
  color: rgb(var(--text));
52
45
  }
53
46
 
54
- .badge-primary {
47
+ :host([color=primary]) {
55
48
  --bg: var(--cat-primary-bg, 32, 127, 138);
56
49
  --fill: var(--cat-primary-fill, 255, 255, 255);
57
50
  --text: var(--cat-primary-text, 32, 127, 138);
58
51
  --border: var(--cat-primary-text, 32, 127, 138);
59
52
  }
60
53
 
61
- .badge-secondary {
54
+ :host([color=secondary]) {
62
55
  --bg: 105, 118, 135;
63
56
  --fill: 255, 255, 255;
64
57
  --text: 0, 0, 0;
65
58
  --border: 105, 118, 135;
66
59
  }
67
60
 
68
- .badge-success {
61
+ :host([color=success]) {
69
62
  --bg: 0, 132, 88;
70
63
  --fill: 255, 255, 255;
71
64
  --text: 0, 132, 88;
72
65
  --border: 0, 132, 88;
73
66
  }
74
67
 
75
- .badge-warning {
68
+ :host([color=warning]) {
76
69
  --bg: 255, 206, 128;
77
70
  --fill: 0, 0, 0;
78
71
  --text: 159, 97, 0;
79
72
  --border: 159, 97, 0;
80
73
  }
81
74
 
82
- .badge-danger {
75
+ :host([color=danger]) {
83
76
  --bg: 217, 52, 13;
84
77
  --fill: 255, 255, 255;
85
78
  --text: 217, 52, 13;
86
79
  --border: 217, 52, 13;
87
80
  }
88
81
 
89
- .badge-xs {
82
+ :host([size=xs]) {
90
83
  height: 1rem;
91
84
  min-width: 1rem;
92
85
  font-size: 0.75rem;
93
86
  padding: 0 0.25rem;
94
87
  }
95
88
 
96
- .badge-s {
89
+ :host([size=s]) {
97
90
  height: 1.5rem;
98
91
  min-width: 1.5rem;
99
92
  font-size: 0.75rem;
100
93
  padding: 0 0.5rem;
101
94
  }
102
95
 
103
- .badge-m {
96
+ :host([size=m]) {
104
97
  height: 2rem;
105
98
  min-width: 2rem;
106
99
  font-size: 0.875rem;
107
100
  padding: 0 0.75rem;
108
101
  }
109
102
 
110
- .badge-l {
103
+ :host([size=l]) {
111
104
  height: 2.5rem;
112
105
  min-width: 2.5rem;
113
106
  font-size: 0.9375rem;
114
107
  padding: 0 1rem;
115
108
  }
116
109
 
117
- .badge-xl {
110
+ :host([size=xl]) {
118
111
  height: 3rem;
119
112
  min-width: 3rem;
120
113
  font-size: 1.125rem;
121
114
  padding: 0 1rem;
122
115
  }
123
116
 
124
- .badge-pulse.badge-filled {
117
+ :host([pulse][variant=filled]) {
125
118
  animation: 1.5s ease 0s infinite normal none running pulse;
126
119
  }
127
- .badge-pulse.badge-outlined {
120
+
121
+ :host([pulse][variant=outlined]) {
128
122
  animation: 1.5s ease 0s infinite normal none running pulse-outlined;
129
123
  }
130
124
 
@@ -1,9 +1,8 @@
1
- import { Component, h, Prop } from '@stencil/core';
1
+ import { Component, Element, h, Prop } from '@stencil/core';
2
+ import { setPropertyDefault } from '../../utils/setDefault';
2
3
  /**
3
4
  * Badges are used to inform users of the status of an object or of an action
4
5
  * that’s been taken.
5
- *
6
- * @part badge - The badge element.
7
6
  */
8
7
  export class CatBadge {
9
8
  constructor() {
@@ -28,16 +27,13 @@ export class CatBadge {
28
27
  */
29
28
  this.pulse = false;
30
29
  }
30
+ connectedCallback() {
31
+ setPropertyDefault(this, 'variant');
32
+ setPropertyDefault(this, 'color');
33
+ setPropertyDefault(this, 'size');
34
+ }
31
35
  render() {
32
- return (h("span", { part: "badge", class: {
33
- badge: true,
34
- 'badge-round': this.round,
35
- 'badge-pulse': this.pulse,
36
- [`badge-${this.variant}`]: Boolean(this.variant),
37
- [`badge-${this.color}`]: Boolean(this.color),
38
- [`badge-${this.size}`]: Boolean(this.size)
39
- } },
40
- h("slot", null)));
36
+ return h("slot", null);
41
37
  }
42
38
  static get is() { return "cat-badge"; }
43
39
  static get encapsulation() { return "shadow"; }
@@ -139,5 +135,6 @@ export class CatBadge {
139
135
  "defaultValue": "false"
140
136
  }
141
137
  }; }
138
+ static get elementRef() { return "hostElement"; }
142
139
  }
143
140
  //# sourceMappingURL=cat-badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cat-badge.js","sourceRoot":"","sources":["../../../src/components/cat-badge/cat-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;GAKG;AAMH,MAAM,OAAO,QAAQ;EALrB;IAME;;OAEG;IACK,YAAO,GAA0B,QAAQ,CAAC;IAElD;;OAEG;IACK,UAAK,GAA+D,SAAS,CAAC;IAEtF;;OAEG;IACK,SAAI,GAAkC,GAAG,CAAC;IAElD;;OAEG;IACK,UAAK,GAAG,KAAK,CAAC;IAEtB;;OAEG;IACK,UAAK,GAAG,KAAK,CAAC;GAmBvB;EAjBC,MAAM;IACJ,OAAO,CACL,YACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE;QACL,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,IAAI,CAAC,KAAK;QACzB,aAAa,EAAE,IAAI,CAAC,KAAK;QACzB,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;QAChD,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC5C,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;OAC3C;MAED,eAAa,CACR,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n/**\n * Badges are used to inform users of the status of an object or of an action\n * that’s been taken.\n *\n * @part badge - The badge element.\n */\n@Component({\n tag: 'cat-badge',\n styleUrl: 'cat-badge.scss',\n shadow: true\n})\nexport class CatBadge {\n /**\n * The rendering style of the badge.\n */\n @Prop() variant: 'filled' | 'outlined' = 'filled';\n\n /**\n * The color palette of the badge.\n */\n @Prop() color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' = 'primary';\n\n /**\n * The size of the badge.\n */\n @Prop() size: 'xs' | 's' | 'm' | 'l' | 'xl' = 'm';\n\n /**\n * Use round badge edges.\n */\n @Prop() round = false;\n\n /**\n * Draw attention to the badge with a subtle animation.\n */\n @Prop() pulse = false;\n\n render() {\n return (\n <span\n part=\"badge\"\n class={{\n badge: true,\n 'badge-round': this.round,\n 'badge-pulse': this.pulse,\n [`badge-${this.variant}`]: Boolean(this.variant),\n [`badge-${this.color}`]: Boolean(this.color),\n [`badge-${this.size}`]: Boolean(this.size)\n }}\n >\n <slot></slot>\n </span>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cat-badge.js","sourceRoot":"","sources":["../../../src/components/cat-badge/cat-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;GAGG;AAMH,MAAM,OAAO,QAAQ;EALrB;IAQE;;OAEG;IACK,YAAO,GAA0B,QAAQ,CAAC;IAElD;;OAEG;IACK,UAAK,GAA+D,SAAS,CAAC;IAEtF;;OAEG;IACK,SAAI,GAAkC,GAAG,CAAC;IAElD;;OAEG;IACK,UAAK,GAAG,KAAK,CAAC;IAEtB;;OAEG;IACK,UAAK,GAAG,KAAK,CAAC;GAWvB;EATC,iBAAiB;IACf,kBAAkB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACpC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;EACnC,CAAC;EAED,MAAM;IACJ,OAAO,eAAa,CAAC;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop } from '@stencil/core';\nimport { setPropertyDefault } from '../../utils/setDefault';\n\n/**\n * Badges are used to inform users of the status of an object or of an action\n * that’s been taken.\n */\n@Component({\n tag: 'cat-badge',\n styleUrl: 'cat-badge.scss',\n shadow: true\n})\nexport class CatBadge {\n @Element() hostElement!: HTMLElement;\n\n /**\n * The rendering style of the badge.\n */\n @Prop() variant: 'filled' | 'outlined' = 'filled';\n\n /**\n * The color palette of the badge.\n */\n @Prop() color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' = 'primary';\n\n /**\n * The size of the badge.\n */\n @Prop() size: 'xs' | 's' | 'm' | 'l' | 'xl' = 'm';\n\n /**\n * Use round badge edges.\n */\n @Prop() round = false;\n\n /**\n * Draw attention to the badge with a subtle animation.\n */\n @Prop() pulse = false;\n\n connectedCallback() {\n setPropertyDefault(this, 'variant');\n setPropertyDefault(this, 'color');\n setPropertyDefault(this, 'size');\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"]}
@@ -1,12 +1,11 @@
1
- import { Component, Host, h } from '@stencil/core';
1
+ import { Component, h } from '@stencil/core';
2
2
  /**
3
3
  * Cards are surfaces that display content and actions on a single topic. They
4
4
  * should be easy to scan for relevant and actionable information.
5
5
  */
6
6
  export class CatCard {
7
7
  render() {
8
- return (h(Host, null,
9
- h("slot", null)));
8
+ return h("slot", null);
10
9
  }
11
10
  static get is() { return "cat-card"; }
12
11
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"cat-card.js","sourceRoot":"","sources":["../../../src/components/cat-card/cat-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;;GAGG;AAMH,MAAM,OAAO,OAAO;EAClB,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,eAAa,CACR,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n/**\n * Cards are surfaces that display content and actions on a single topic. They\n * should be easy to scan for relevant and actionable information.\n */\n@Component({\n tag: 'cat-card',\n styleUrl: 'cat-card.scss',\n shadow: true\n})\nexport class CatCard {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cat-card.js","sourceRoot":"","sources":["../../../src/components/cat-card/cat-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE7C;;;GAGG;AAMH,MAAM,OAAO,OAAO;EAClB,MAAM;IACJ,OAAO,eAAa,CAAC;EACvB,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h } from '@stencil/core';\n\n/**\n * Cards are surfaces that display content and actions on a single topic. They\n * should be easy to scan for relevant and actionable information.\n */\n@Component({\n tag: 'cat-card',\n styleUrl: 'cat-card.scss',\n shadow: true\n})\nexport class CatCard {\n render() {\n return <slot></slot>;\n }\n}\n"]}
@@ -86,7 +86,7 @@ input {
86
86
  stroke-dasharray: 16px;
87
87
  stroke-dashoffset: 16px;
88
88
  transition: all 0.13s ease;
89
- width: 70%;
89
+ width: 50%;
90
90
  position: absolute;
91
91
  top: 50%;
92
92
  left: 50%;
@@ -126,7 +126,7 @@ label.hidden {
126
126
  align-items: center;
127
127
  gap: 0.5rem;
128
128
  padding: 0.25rem 0.5rem;
129
- background: #ebecf0;
129
+ background: #f2f4f7;
130
130
  border-radius: 0.125rem;
131
131
  white-space: nowrap;
132
132
  min-width: 0;
@@ -134,6 +134,7 @@ label.hidden {
134
134
  .pill > span {
135
135
  overflow: hidden;
136
136
  text-overflow: ellipsis;
137
+ flex: 1 1 0%;
137
138
  }
138
139
  .pill > cat-button {
139
140
  margin-right: -0.25rem;
@@ -193,6 +194,10 @@ cat-spinner {
193
194
  --cat-avatar-size: 1.25rem;
194
195
  }
195
196
 
197
+ .select-option-text {
198
+ flex: 1 1 0%;
199
+ }
200
+
196
201
  .select-option-single {
197
202
  cursor: pointer;
198
203
  }