@rededor/cura 1.6.1-alpha.9 → 1.7.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 (160) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/assets/icons/iconset-default-tmp.svg +4 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/{app-globals-28c6f5c4.js → app-globals-6d5b51b6.js} +2 -2
  5. package/dist/cjs/{app-globals-28c6f5c4.js.map → app-globals-6d5b51b6.js.map} +1 -1
  6. package/dist/cjs/{cura-accordion_18.cjs.entry.js → cura-accordion_20.cjs.entry.js} +147 -7
  7. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -0
  8. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  9. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  10. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  11. package/dist/cjs/cura-modal.cjs.entry.js +3 -3
  12. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
  13. package/dist/cjs/cura-tabs-button.cjs.entry.js +106 -0
  14. package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +105 -0
  16. package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -0
  17. package/dist/cjs/cura-tabs.definitions-b8955ad4.js +12 -0
  18. package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +1 -0
  19. package/dist/cjs/{cura-theme-module-f1e4a309.js → cura-theme-module-09bb63a4.js} +32 -1
  20. package/dist/cjs/cura-theme-module-09bb63a4.js.map +1 -0
  21. package/dist/cjs/cura.cjs.js +3 -3
  22. package/dist/cjs/index.cjs.js +1 -1
  23. package/dist/cjs/loader.cjs.js +3 -3
  24. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js +32 -0
  25. package/dist/collection/api/theme-presets/theme-perinatal-temporary.js.map +1 -0
  26. package/dist/collection/api/theme-presets/theme-presets.js +2 -0
  27. package/dist/collection/api/theme-presets/theme-presets.js.map +1 -1
  28. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  29. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  30. package/dist/collection/assets/icons/iconset-default-tmp.svg +4 -0
  31. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  32. package/dist/collection/assets-raw/icons/default/vaccine.svg +3 -0
  33. package/dist/collection/collection-manifest.json +4 -0
  34. package/dist/collection/components/cura-modal/cura-modal.css +1 -1
  35. package/dist/collection/components/cura-modal/cura-modal.js +2 -2
  36. package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
  37. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +1 -1
  38. package/dist/collection/components/forms/cura-select/cura-select.css +1 -1
  39. package/dist/collection/components/forms/cura-select/cura-select.js +22 -3
  40. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  41. package/dist/collection/components/forms/cura-select/cura-select.stories.js +12 -0
  42. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
  43. package/dist/collection/components/tabs/cura-tabs/cura-tabs.css +170 -0
  44. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +263 -0
  45. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -0
  46. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js +89 -0
  47. package/dist/collection/components/tabs/cura-tabs/cura-tabs.stories.js.map +1 -0
  48. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.css +176 -0
  49. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +259 -0
  50. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -0
  51. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js +96 -0
  52. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.stories.js.map +1 -0
  53. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.css +25 -0
  54. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +133 -0
  55. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -0
  56. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js +65 -0
  57. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.stories.js.map +1 -0
  58. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.css +168 -0
  59. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +258 -0
  60. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -0
  61. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js +89 -0
  62. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.js.map +1 -0
  63. package/dist/collection/components/tabs/cura-tabs.definitions.js +7 -0
  64. package/dist/collection/components/tabs/cura-tabs.definitions.js.map +1 -0
  65. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  66. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  67. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  68. package/dist/components/cura-display.js +1 -1
  69. package/dist/components/cura-heading2.js +1 -1
  70. package/dist/components/cura-icons-view.js +1 -1
  71. package/dist/components/cura-icons-view.js.map +1 -1
  72. package/dist/components/cura-modal.js +3 -3
  73. package/dist/components/cura-modal.js.map +1 -1
  74. package/dist/components/cura-paragraph2.js +1 -1
  75. package/dist/components/cura-select2.js +6 -4
  76. package/dist/components/cura-select2.js.map +1 -1
  77. package/dist/components/cura-tabs-button.d.ts +11 -0
  78. package/dist/components/cura-tabs-button.js +150 -0
  79. package/dist/components/cura-tabs-button.js.map +1 -0
  80. package/dist/components/cura-tabs-group.d.ts +11 -0
  81. package/dist/components/cura-tabs-group.js +64 -0
  82. package/dist/components/cura-tabs-group.js.map +1 -0
  83. package/dist/components/cura-tabs-transparent.d.ts +11 -0
  84. package/dist/components/cura-tabs-transparent.js +143 -0
  85. package/dist/components/cura-tabs-transparent.js.map +1 -0
  86. package/dist/components/cura-tabs.d.ts +11 -0
  87. package/dist/components/cura-tabs.definitions.js +10 -0
  88. package/dist/components/cura-tabs.definitions.js.map +1 -0
  89. package/dist/components/cura-tabs.js +148 -0
  90. package/dist/components/cura-tabs.js.map +1 -0
  91. package/dist/components/index.js +39 -0
  92. package/dist/components/index.js.map +1 -1
  93. package/dist/cura/cura.esm.js +1 -1
  94. package/dist/cura/cura.esm.js.map +1 -1
  95. package/dist/cura/index.esm.js +1 -1
  96. package/dist/cura/p-1ef21ae9.entry.js +2 -0
  97. package/dist/cura/p-1ef21ae9.entry.js.map +1 -0
  98. package/dist/cura/p-53c18ed4.js +2 -0
  99. package/dist/cura/p-53c18ed4.js.map +1 -0
  100. package/dist/cura/p-5c6f9593.entry.js +2 -0
  101. package/dist/cura/p-5c6f9593.entry.js.map +1 -0
  102. package/dist/cura/{p-0c25333f.js → p-6cbd49dd.js} +2 -2
  103. package/dist/cura/{p-0c25333f.js.map → p-6cbd49dd.js.map} +1 -1
  104. package/dist/cura/p-7e2d1229.entry.js +2 -0
  105. package/dist/cura/p-7e2d1229.entry.js.map +1 -0
  106. package/dist/cura/{p-ac01bec2.entry.js → p-8aade007.entry.js} +2 -2
  107. package/dist/cura/p-9f460031.js +2 -0
  108. package/dist/cura/p-9f460031.js.map +1 -0
  109. package/dist/cura/p-b4ee956b.entry.js +2 -0
  110. package/dist/cura/p-b4ee956b.entry.js.map +1 -0
  111. package/dist/cura/p-b6ff8ac1.entry.js +2 -0
  112. package/dist/cura/p-b6ff8ac1.entry.js.map +1 -0
  113. package/dist/esm/{app-globals-ca1945d1.js → app-globals-c2abb41c.js} +2 -2
  114. package/dist/esm/{app-globals-ca1945d1.js.map → app-globals-c2abb41c.js.map} +1 -1
  115. package/dist/esm/{cura-accordion_18.entry.js → cura-accordion_20.entry.js} +146 -8
  116. package/dist/esm/cura-accordion_20.entry.js.map +1 -0
  117. package/dist/esm/cura-display.entry.js +1 -1
  118. package/dist/esm/cura-icons-view.entry.js +1 -1
  119. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  120. package/dist/esm/cura-modal.entry.js +3 -3
  121. package/dist/esm/cura-modal.entry.js.map +1 -1
  122. package/dist/esm/cura-tabs-button.entry.js +102 -0
  123. package/dist/esm/cura-tabs-button.entry.js.map +1 -0
  124. package/dist/esm/cura-tabs-transparent.entry.js +101 -0
  125. package/dist/esm/cura-tabs-transparent.entry.js.map +1 -0
  126. package/dist/esm/cura-tabs.definitions-a017126e.js +10 -0
  127. package/dist/esm/cura-tabs.definitions-a017126e.js.map +1 -0
  128. package/dist/esm/{cura-theme-module-0fa5ee0b.js → cura-theme-module-bf286f68.js} +32 -1
  129. package/dist/esm/cura-theme-module-bf286f68.js.map +1 -0
  130. package/dist/esm/cura.js +3 -3
  131. package/dist/esm/index.js +1 -1
  132. package/dist/esm/loader.js +3 -3
  133. package/dist/types/api/theme-presets/theme-perinatal-temporary.d.ts +43 -0
  134. package/dist/types/api/theme-presets/theme-presets.d.ts +43 -0
  135. package/dist/types/components/forms/cura-select/cura-select.d.ts +6 -0
  136. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +11 -0
  137. package/dist/types/components/tabs/cura-tabs/cura-tabs.d.ts +30 -0
  138. package/dist/types/components/tabs/cura-tabs/cura-tabs.stories.d.ts +99 -0
  139. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.d.ts +29 -0
  140. package/dist/types/components/tabs/cura-tabs-button/cura-tabs-button.stories.d.ts +99 -0
  141. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.d.ts +18 -0
  142. package/dist/types/components/tabs/cura-tabs-group/cura-tabs-group.stories.d.ts +57 -0
  143. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.d.ts +29 -0
  144. package/dist/types/components/tabs/cura-tabs-transparent/cura-tabs-transparent.stories.d.ts +99 -0
  145. package/dist/types/components/tabs/cura-tabs.definitions.d.ts +6 -0
  146. package/dist/types/components.d.ts +172 -0
  147. package/package.json +2 -2
  148. package/dist/cjs/cura-accordion_18.cjs.entry.js.map +0 -1
  149. package/dist/cjs/cura-theme-module-f1e4a309.js.map +0 -1
  150. package/dist/cura/p-07817634.entry.js +0 -2
  151. package/dist/cura/p-07817634.entry.js.map +0 -1
  152. package/dist/cura/p-9fce5ec5.entry.js +0 -2
  153. package/dist/cura/p-9fce5ec5.entry.js.map +0 -1
  154. package/dist/cura/p-b5d8a26b.entry.js +0 -2
  155. package/dist/cura/p-b5d8a26b.entry.js.map +0 -1
  156. package/dist/cura/p-bf8e2037.js +0 -2
  157. package/dist/cura/p-bf8e2037.js.map +0 -1
  158. package/dist/esm/cura-accordion_18.entry.js.map +0 -1
  159. package/dist/esm/cura-theme-module-0fa5ee0b.js.map +0 -1
  160. /package/dist/cura/{p-ac01bec2.entry.js.map → p-8aade007.entry.js.map} +0 -0
@@ -6,6 +6,7 @@ const index = require('./index-60783089.js');
6
6
  const curaButton_definitions = require('./cura-button.definitions-f036371c.js');
7
7
  const _static = require('./static-44199808.js');
8
8
  const curaIcon_definitions = require('./cura-icon.definitions-5223028b.js');
9
+ const curaTabs_definitions = require('./cura-tabs.definitions-b8955ad4.js');
9
10
 
10
11
  const curaAccordionCss = ":host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}";
11
12
  const CuraAccordionStyle0 = curaAccordionCss;
@@ -942,7 +943,7 @@ const CuraHeading = class {
942
943
  return tags[`${this.level}`] || tags['default'];
943
944
  }
944
945
  render() {
945
- return (index.h(index.Host, { key: '2dfeadb768cc139b6899a588bfd7dc69777bca22', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
946
+ return (index.h(index.Host, { key: 'd32c25d0110f82182f4559789f3d2db04e040afe', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
946
947
  }
947
948
  get host() { return index.getElement(this); }
948
949
  };
@@ -5130,13 +5131,13 @@ const CuraParagraph = class {
5130
5131
  return classes;
5131
5132
  }
5132
5133
  render() {
5133
- return (index.h(index.Host, { key: '7d8ec17290b3b8eaa731994ff75ac7dedf28fbb9', style: this.hostCSSProperties() }, index.h("p", { key: '72333398b57ca936d2d971db8ee6d7ba442cebec', style: this.styles, class: this.getClasses() }, index.h("slot", { key: 'ec65120173b5a1791d4018ca8a8583deb74efdc5' }))));
5134
+ return (index.h(index.Host, { key: 'c3789e60b50107cc39c51e4a3ec317e86c966689', style: this.hostCSSProperties() }, index.h("p", { key: 'f70ffc6277b6164dfc8d230123820efb3d5daa64', style: this.styles, class: this.getClasses() }, index.h("slot", { key: '66251e59d51637fc7820516b17af8947cc9168e8' }))));
5134
5135
  }
5135
5136
  get host() { return index.getElement(this); }
5136
5137
  };
5137
5138
  CuraParagraph.style = CuraParagraphStyle0;
5138
5139
 
5139
- const curaSelectCss = ":host{display:block;position:relative;font-family:var(--font-family)}.wrapper{width:100%;user-select:none;text-align:left !important}.wrapper cura-label{margin-bottom:8px}.wrapper .helper-text{margin-top:8px;color:var(--neutral-dark)}.wrapper .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper .cura-input-field .feedback-icon{padding-left:12px}.wrapper .cura-input-field .up-down-icon{order:3;padding-right:6px;cursor:pointer;pointer-events:all}.wrapper .cura-input-field .up-down-button{background-color:transparent;border:none}.wrapper .cura-input-field input{padding:0px 12px 0px 8px;cursor:pointer}.wrapper .cura-input-field.open{border-radius:4px 4px 0 0 !important}.wrapper.transparent{background-color:transparent;padding:0px;max-height:80px}.wrapper.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.wrapper.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.transparent .cura-input-field .feedback-icon{padding-left:12px}.wrapper.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.wrapper.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.wrapper.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.wrapper.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.wrapper.transparent .helper-text{margin-top:0px}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.wrapper:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.wrapper:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.wrapper.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success .cura-input-field .feedback-icon{padding-left:12px}.wrapper.success .cura-input-field input{color:var(--success-darker) !important}.wrapper.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.wrapper.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.wrapper.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field input{color:var(--error-darker) !important}.wrapper.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.wrapper.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.wrapper.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.small .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.wrapper.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.small.label .menu{top:53px}.wrapper.small .menu{top:33px}.wrapper.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.medium .cura-input-field .feedback-icon{padding-left:12px}.wrapper.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.wrapper.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.medium.label .menu{top:61px}.wrapper.medium .menu{top:40px}.wrapper.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.large .cura-input-field .feedback-icon{padding-left:12px}.wrapper.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.wrapper.large.label .menu{top:69px}.wrapper.large .menu{top:47px}.wrapper.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.wrapper.disabled .cura-input-field input{color:var(--neutral-medium)}.wrapper.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.required{color:red}.menu{position:absolute;left:0;right:-1px;background:#fff;border:2px solid var(--neutral-light);border-radius:4px;z-index:1000;max-height:285px;overflow:hidden;border-top:transparent;align-items:center;scrollbar-color:var(--neutral-medium) var(--neutral-black-20);overflow-y:auto;box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}.menu.open{border-radius:0 !important;padding:12px}";
5140
+ const curaSelectCss = ":host{display:block;position:relative;font-family:var(--font-family)}.wrapper{width:100%;user-select:none;text-align:left !important}.wrapper cura-label{margin-bottom:8px}.wrapper .helper-text{margin-top:8px;color:var(--neutral-dark)}.wrapper .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper .cura-input-field .feedback-icon{padding-left:12px}.wrapper .cura-input-field .up-down-icon{order:3;padding-right:6px;cursor:pointer;pointer-events:all}.wrapper .cura-input-field .up-down-button{background-color:transparent;border:none}.wrapper .cura-input-field input{padding:0px 12px 0px 8px;cursor:pointer}.wrapper .cura-input-field.open{border-radius:4px 4px 0 0 !important}.wrapper.transparent{background-color:transparent;padding:0px;max-height:80px}.wrapper.transparent .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;background-color:transparent !important;border:none !important;border-radius:0;height:27px}.wrapper.transparent .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.transparent .cura-input-field .feedback-icon{padding-left:12px}.wrapper.transparent .cura-input-field input{color:var(--neutral-black) !important;font-size:16px;font-weight:var(--font-weight-bold) !important;padding:0}.wrapper.transparent .cura-input-field input::placeholder{color:var(--neutral-black)}.wrapper.transparent .cura-input-field .feedback-icon{order:3;margin:0 20px 0 0}.wrapper.transparent:focus-within .cura-input-field{border:none !important;background-color:transparent !important}.wrapper.transparent:focus-within .cura-input-field input{border:none !important;outline:none}.wrapper.transparent .helper-text{margin-top:0px}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field{border-color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input{color:var(--neutral-dark)}.wrapper:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly):not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper:focus-within:not(.selection) .cura-input-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.wrapper:focus-within:not(.selection) .cura-input-field input{color:var(--neutral-black) !important}.wrapper:focus-within.selection .cura-input-field{border-radius:4px 4px 0px 0px}.wrapper.success .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.success .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success .cura-input-field .feedback-icon{padding-left:12px}.wrapper.success .cura-input-field input{color:var(--success-darker) !important}.wrapper.success .cura-input-field input::placeholder{color:var(--success-darker) !important}.wrapper.success:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.wrapper.success:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.success:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.success:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.error .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error .cura-input-field .feedback-icon{padding-left:12px}.wrapper.error .cura-input-field input{color:var(--error-darker) !important}.wrapper.error .cura-input-field input::placeholder{color:var(--error-darker) !important}.wrapper.error:not(.transparent) .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box;border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.wrapper.error:not(.transparent) .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.error:not(.transparent) .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.error:not(.transparent) .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.small .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:12px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.small .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.small .cura-input-field .feedback-icon{padding-left:12px}.wrapper.small .cura-input-field input{line-height:13px;letter-spacing:0.72px}.wrapper.small .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.small.label .menu{top:53px}.wrapper.small .menu{top:33px}.wrapper.medium .cura-input-field{width:100%;height:40px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.medium .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.medium .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.medium .cura-input-field .feedback-icon{padding-left:12px}.wrapper.medium .cura-input-field input{line-height:16px;letter-spacing:0.56px}.wrapper.medium .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-regular)}.wrapper.medium.label .menu{top:61px}.wrapper.medium .menu{top:40px}.wrapper.large .cura-input-field{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.wrapper.large .cura-input-field input{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:16px;box-sizing:border-box;padding:0px 12px 0px 8px}.wrapper.large .cura-input-field input::placeholder{color:var(--neutral-dark)}.wrapper.large .cura-input-field .feedback-icon{padding-left:12px}.wrapper.large .helper-text{margin-top:8px;color:var(--neutral-dark);font-weight:var(--font-weight-bold)}.wrapper.large.label .menu{top:69px}.wrapper.large .menu{top:47px}.wrapper.disabled .cura-input-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.wrapper.disabled .cura-input-field input{color:var(--neutral-medium)}.wrapper.disabled .cura-input-field input::placeholder{color:var(--neutral-medium)}.required{color:red}.menu{position:absolute;left:0;right:-1px;background:#fff;border:2px solid var(--neutral-light);border-radius:4px;z-index:1000;max-height:var(--max-height);overflow:hidden;border-top:transparent;align-items:center;scrollbar-color:var(--neutral-medium) var(--neutral-black-20);overflow-y:auto;box-shadow:0px 4px 8px 0px rgba(38, 38, 38, 0.16)}.menu.open{border-radius:0 !important;padding:12px}";
5140
5141
  const CuraSelectStyle0 = curaSelectCss;
5141
5142
 
5142
5143
  const CuraSelect = class {
@@ -5232,6 +5233,7 @@ const CuraSelect = class {
5232
5233
  this.required = false;
5233
5234
  this.searchBehavior = false;
5234
5235
  this.caseSensitive = true;
5236
+ this.maxHeight = '285px';
5235
5237
  this.isHovered = false;
5236
5238
  this.isFocused = false;
5237
5239
  this.isOpen = false;
@@ -5454,13 +5456,13 @@ const CuraSelect = class {
5454
5456
  document.removeEventListener('click', this.handleClickOutside);
5455
5457
  }
5456
5458
  render() {
5457
- return (index.h(index.Host, { key: '1757de6c21410c258aa495d9ed484fbf6d4e07fa', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, index.h("div", { key: 'beaa6e3ae5a41efe8055b271ab0505b83bb25e03', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: '249e2a4343abacdd445f6fd350008312fe5577fe', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: '910c7089a86b7f4a539e10a37aa771027aa035bd', class: "required" }, "* "))), index.h("div", { key: 'd352865d850a8bbbe186189538f370d38bce5062', class: {
5459
+ return (index.h(index.Host, { key: 'e9217707e382cf64c4a1d93ed0b07b06fe75cf5b', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, index.h("div", { key: 'cd4017145d95d80e0f2df6daaeb96d699d21028e', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: 'b004e05ae6b7998e01ce335323e434a0e4cc5b10', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: 'c8dc7ee9960208f7fd63803e3894d5c5ee225f84', class: "required" }, "* "))), index.h("div", { key: '6a4da3e7b43e297f58ccfaaa03dd8ae847bb40fe', class: {
5458
5460
  'cura-input-field': true,
5459
5461
  'open': this.isOpen,
5460
- } }, this.renderIcon(), index.h("input", { key: 'bf14408d2d134530198ec108a2c885fc7c0283f5', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), index.h("button", { key: '7ffaf78d35c784e4dddbe67a3a52bacd5a7c8525', class: "up-down-button" }, index.h("cura-icon", { key: '436612e326a50aa6b6d5fe27246b1e10b5b4c14c', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), index.h("cura-label", { key: '34f20c65e37fe40cc708bab29054cdb436fb233a', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: 'fd4ab76af19470d7c82b2bd7931a6b329f5db8ba' })), this.isOpen && (index.h("div", { key: '2a831c778efbbb4ad989bfb1ccc207741890285d', class: {
5462
+ } }, this.renderIcon(), index.h("input", { key: 'af593857db2f30b9cc58b4d3218a8f86d20b8431', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), index.h("button", { key: 'e87bafd632d2c91cb1ef5cc9380d8cd6040f39f4', class: "up-down-button" }, index.h("cura-icon", { key: 'fa20c2690f5b37d9d9ad636389b0f774b4fa24c7', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), index.h("cura-label", { key: '8755ec21f14adefa9e4cbc24a49057b6199b1ff8', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: '78e4f029a3d191450c7b3bd8f1a32565bae3ee23' })), this.isOpen && (index.h("div", { key: '2ba5af7297dd23d088a7fca7f166522769293301', class: {
5461
5463
  menu: true,
5462
5464
  open: this.isOpen,
5463
- } }, index.h("slot", { key: '4acd7b45bf96420a9cb9db294c67b8173245b452', name: "option" }))))));
5465
+ }, style: { '--max-height': this.maxHeight } }, index.h("slot", { key: '08e5cbbdd57b42e15d854e4c335f22833075d941', name: "option" }))))));
5464
5466
  }
5465
5467
  static get formAssociated() { return true; }
5466
5468
  get host() { return index.getElement(this); }
@@ -5519,6 +5521,142 @@ const CuraSelectOption = class {
5519
5521
  };
5520
5522
  CuraSelectOption.style = CuraSelectOptionStyle0;
5521
5523
 
5524
+ const curaTabsCss = ":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.light,:host a:not(.disabled,.selected):hover.light{border-bottom-color:var(--primary-dark)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-bottom-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border:2px solid var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}";
5525
+ const CuraTabsStyle0 = curaTabsCss;
5526
+
5527
+ const CuraTabs = class {
5528
+ constructor(hostRef) {
5529
+ index.registerInstance(this, hostRef);
5530
+ this.tabSelect = index.createEvent(this, "tabSelect", 7);
5531
+ this.name = undefined;
5532
+ this.iconName = undefined;
5533
+ this.selected = false;
5534
+ this.disabled = false;
5535
+ this.borderBottom = true;
5536
+ this.size = 'large';
5537
+ this.colorMode = 'light';
5538
+ this.hovered = false;
5539
+ this.styles = {};
5540
+ }
5541
+ setColors() {
5542
+ const colors = [
5543
+ { name: '--background-color-selected', theme: this.colorMode === 'light' ? 'primary-base' : 'primary-lighter' },
5544
+ { name: '--background-color-hover', theme: this.colorMode === 'light' ? 'primary-lighter' : null },
5545
+ {
5546
+ name: '--background-disabled-selected',
5547
+ theme: this.colorMode === 'light' ? 'neutral-pale' : 'neutral-black',
5548
+ },
5549
+ {
5550
+ name: '--border-bottom-color',
5551
+ theme: this.colorMode === 'light' ? 'neutral-base' : 'primary',
5552
+ },
5553
+ ];
5554
+ colors.forEach(c => {
5555
+ if (c.theme)
5556
+ this.styles[c.name] = window.CuraAPI.theme.colors.getColor(c.theme);
5557
+ });
5558
+ this.styles = Object.assign({}, this.styles);
5559
+ }
5560
+ computeContentColor() {
5561
+ if (this.disabled)
5562
+ return 'neutral-dark';
5563
+ if (this.colorMode === 'dark') {
5564
+ if (this.hovered && !this.selected) {
5565
+ return 'neutral-purewhite';
5566
+ }
5567
+ return this.selected ? 'neutral-black' : 'primary-lighter';
5568
+ }
5569
+ return this.selected ? 'neutral-purewhite' : 'primary-dark';
5570
+ }
5571
+ updateDynamicStyles() {
5572
+ if (this.colorMode === 'dark' && this.hovered && !this.selected) {
5573
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--border-bottom-color': window.CuraAPI.theme.colors.getColor('neutral-purewhite') });
5574
+ }
5575
+ }
5576
+ getIcon() {
5577
+ if (!this.iconName)
5578
+ return '';
5579
+ const iconSize = this.size === 'large' ? 20 : 16;
5580
+ const iconColor = this.computeContentColor();
5581
+ return index.h("cura-icon", { name: this.iconName, size: iconSize, color: iconColor });
5582
+ }
5583
+ getClasses() {
5584
+ return {
5585
+ [this.size]: true,
5586
+ [this.colorMode]: true,
5587
+ 'selected': this.selected,
5588
+ 'disabled': this.disabled,
5589
+ 'border-bottom': this.borderBottom,
5590
+ };
5591
+ }
5592
+ connectedCallback() {
5593
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--primary-dark': window.CuraAPI.theme.colors.getColor('primary-dark'), '--neutral-purewhite': window.CuraAPI.theme.colors.getColor('neutral-purewhite'), '--base-spacing': window.CuraAPI.theme.spacing.getSpacing() });
5594
+ this.setColors();
5595
+ }
5596
+ handleMouseEnter() {
5597
+ if (this.disabled)
5598
+ return;
5599
+ this.hovered = true;
5600
+ }
5601
+ handleMouseLeave() {
5602
+ this.hovered = false;
5603
+ }
5604
+ handleClick(e) {
5605
+ if (this.disabled) {
5606
+ e.preventDefault();
5607
+ return;
5608
+ }
5609
+ this.selected = !this.selected;
5610
+ this.tabSelect.emit({ name: this.name });
5611
+ }
5612
+ render() {
5613
+ const labelSize = curaTabs_definitions.labelSizes[this.size] || curaTabs_definitions.labelSizes['default'];
5614
+ const labelColor = this.computeContentColor();
5615
+ this.updateDynamicStyles();
5616
+ return (index.h(index.Host, { key: '3966968b73a9a51ec26f3206cdb09fbfcb3d3daf', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, index.h("button", { key: '00cc6382c635a05c52fd74b3e02e968c2d94cacb', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), index.h("cura-label", { key: 'e193500f156c10cf0442e6f504e19d552c19f849', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, index.h("slot", { key: '8a0ac7c4b2ff4990093d13b4110e370616cf39f4' })))));
5617
+ }
5618
+ static get watchers() { return {
5619
+ "colorMode": ["setColors"]
5620
+ }; }
5621
+ };
5622
+ CuraTabs.style = CuraTabsStyle0;
5623
+
5624
+ const curaTabsGroupCss = ":host{display:flex;gap:var(--gap)}:host(.border-bottom){position:relative}:host(.border-bottom)::after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:var(--border-color);z-index:0}::slotted(cura-tabs),::slotted(cura-tabs-transparent){position:relative;z-index:1}";
5625
+ const CuraTabsGroupStyle0 = curaTabsGroupCss;
5626
+
5627
+ const CuraTabsGroup = class {
5628
+ constructor(hostRef) {
5629
+ index.registerInstance(this, hostRef);
5630
+ this.tabChange = index.createEvent(this, "tabChange", 7);
5631
+ this.gap = 0;
5632
+ this.borderBottom = true;
5633
+ this.colorMode = 'light';
5634
+ this.styles = {};
5635
+ }
5636
+ handleTabSelect(ev) {
5637
+ this.updateSelectedTab(ev.detail.name);
5638
+ }
5639
+ updateSelectedTab(value) {
5640
+ const tabs = this.host.querySelectorAll('cura-tabs, cura-tabs-transparent, cura-tabs-button');
5641
+ tabs.forEach((tab) => {
5642
+ tab.selected = tab.name === value;
5643
+ });
5644
+ }
5645
+ getClasses() {
5646
+ return {
5647
+ 'border-bottom': this.borderBottom,
5648
+ };
5649
+ }
5650
+ connectedCallback() {
5651
+ this.styles = Object.assign(Object.assign({}, this.styles), { '--border-color': window.CuraAPI.theme.colors.getColor(this.colorMode === 'light' ? 'neutral-base' : 'primary-base'), '--gap': `${this.gap}px` });
5652
+ }
5653
+ render() {
5654
+ return (index.h(index.Host, { key: 'fb6a6ae52fd5bdfb8c3978a75f26be87479ccafa', role: "tablist", style: this.styles, class: this.getClasses() }, index.h("slot", { key: 'afca97b27c8359f8236331257e4db41f1332e071' })));
5655
+ }
5656
+ get host() { return index.getElement(this); }
5657
+ };
5658
+ CuraTabsGroup.style = CuraTabsGroupStyle0;
5659
+
5522
5660
  exports.cura_accordion = CuraAccordion;
5523
5661
  exports.cura_accordion_item = CuraAccordionItem;
5524
5662
  exports.cura_avatar = CuraAvatar;
@@ -5537,5 +5675,7 @@ exports.cura_page_template = CuraPageTemplate;
5537
5675
  exports.cura_paragraph = CuraParagraph;
5538
5676
  exports.cura_select = CuraSelect;
5539
5677
  exports.cura_select_option = CuraSelectOption;
5678
+ exports.cura_tabs = CuraTabs;
5679
+ exports.cura_tabs_group = CuraTabsGroup;
5540
5680
 
5541
- //# sourceMappingURL=cura-accordion_18.cjs.entry.js.map
5681
+ //# sourceMappingURL=cura-accordion_20.cjs.entry.js.map