@sellmate/design-system 1.0.22 → 1.0.25

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 (190) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/design-system.cjs.js +4 -3
  3. package/dist/cjs/{index-D-PnW6jc.js → index-Qvv0fGgj.js} +9 -117
  4. package/dist/cjs/loader.cjs.js +4 -3
  5. package/dist/cjs/sd-badge.cjs.entry.js +2 -2
  6. package/dist/cjs/sd-button-v2.cjs.entry.js +3 -3
  7. package/dist/cjs/sd-button_21.cjs.entry.js +26 -26
  8. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  9. package/dist/cjs/sd-date-picker.cjs.entry.js +2 -2
  10. package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -6
  11. package/dist/cjs/sd-file-picker.cjs.entry.js +4 -4
  12. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-guide.cjs.entry.js +3 -3
  14. package/dist/cjs/sd-popover.cjs.entry.js +4 -4
  15. package/dist/cjs/sd-progress.cjs.entry.js +3 -3
  16. package/dist/cjs/sd-radio-button-group.cjs.entry.js +1 -1
  17. package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
  18. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
  19. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
  21. package/dist/cjs/sd-tabs.cjs.entry.js +7 -9
  22. package/dist/cjs/sd-tag.cjs.entry.js +96 -38
  23. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  24. package/dist/cjs/sd-toggle-button.cjs.entry.js +2 -2
  25. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  26. package/dist/cjs/{tooltipArrow-CMyNLSC-.js → tooltipArrow-Mb2Dhc7T.js} +1 -1
  27. package/dist/collection/collection-manifest.json +1 -1
  28. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  29. package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
  30. package/dist/collection/components/sd-card/sd-card.js +1 -1
  31. package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
  32. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
  33. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +2 -1
  34. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +5 -4
  35. package/dist/collection/components/sd-field/sd-field.js +3 -3
  36. package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
  37. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  38. package/dist/collection/components/sd-guide/sd-guide.js +2 -2
  39. package/dist/collection/components/sd-icon/sd-icon.js +1 -1
  40. package/dist/collection/components/sd-input/sd-input.js +1 -1
  41. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
  42. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  43. package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
  44. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  45. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  46. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  47. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
  48. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  49. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  50. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
  51. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  52. package/dist/collection/components/sd-tabs/sd-tabs.js +6 -8
  53. package/dist/collection/components/sd-tag/sd-tag.config.js +70 -0
  54. package/dist/collection/components/sd-tag/sd-tag.css +26 -56
  55. package/dist/collection/components/sd-tag/sd-tag.js +51 -104
  56. package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
  57. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  58. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  59. package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/{p-DB52ADSW.js → p-2FdkYfts.js} +1 -1
  62. package/dist/components/{p-DZqrfwuw.js → p-B1o7vc2v.js} +1 -1
  63. package/dist/components/p-B1vJXa29.js +1 -0
  64. package/dist/components/p-BFO8hHjW.js +1 -0
  65. package/dist/components/{p-CAJmL8nc.js → p-BKTfQGcR.js} +1 -1
  66. package/dist/components/{p-B4p2JGMI.js → p-BNuWMSR_.js} +1 -1
  67. package/dist/components/{p-B-UC5tW2.js → p-BxXKe48B.js} +1 -1
  68. package/dist/components/{p-Hvt2oWRk.js → p-CAZeEBeS.js} +1 -1
  69. package/dist/components/{p-DFgtwoFG.js → p-CDzGasXW.js} +1 -1
  70. package/dist/components/{p-DF2wExtn.js → p-CVvYLd5J.js} +1 -1
  71. package/dist/components/{p-DyeU47vV.js → p-CdCMe4bN.js} +1 -1
  72. package/dist/components/{p-BsQEKShq.js → p-CwM24aVj.js} +1 -1
  73. package/dist/components/{p-DYsHXden.js → p-CzHa12Ax.js} +1 -1
  74. package/dist/components/{p-JyVgfdnC.js → p-Czq-8oT7.js} +1 -1
  75. package/dist/components/{p-DdNQILvd.js → p-D-ian_bu.js} +1 -1
  76. package/dist/components/{p-D4kmO3k7.js → p-D9mJxIjm.js} +1 -1
  77. package/dist/components/{p-DExqkuUY.js → p-DYoNy5I7.js} +1 -1
  78. package/dist/components/{p-CWlCxabU.js → p-Dun2lZmi.js} +1 -1
  79. package/dist/components/{p-CysnHGj4.js → p-G4t0nGLP.js} +1 -1
  80. package/dist/components/p-NAapFxTw.js +1 -0
  81. package/dist/components/{p-C0yQ73oI.js → p-hfbNb5UF.js} +1 -1
  82. package/dist/components/sd-badge.js +1 -1
  83. package/dist/components/sd-button-v2.js +1 -1
  84. package/dist/components/sd-button.js +1 -1
  85. package/dist/components/sd-card.js +1 -1
  86. package/dist/components/sd-checkbox.js +1 -1
  87. package/dist/components/sd-date-box.js +1 -1
  88. package/dist/components/sd-date-picker.js +1 -1
  89. package/dist/components/sd-date-range-picker.js +1 -1
  90. package/dist/components/sd-dropdown-button.js +1 -1
  91. package/dist/components/sd-field.js +1 -1
  92. package/dist/components/sd-file-picker.js +1 -1
  93. package/dist/components/sd-floating-portal.js +1 -1
  94. package/dist/components/sd-form.js +1 -1
  95. package/dist/components/sd-guide.js +1 -1
  96. package/dist/components/sd-icon.js +1 -1
  97. package/dist/components/sd-input.js +1 -1
  98. package/dist/components/sd-loading-spinner.js +1 -1
  99. package/dist/components/sd-modal-card.js +1 -1
  100. package/dist/components/sd-number-input.js +1 -1
  101. package/dist/components/sd-pagination.js +1 -1
  102. package/dist/components/sd-popover.js +1 -1
  103. package/dist/components/sd-portal.js +1 -1
  104. package/dist/components/sd-progress.js +1 -1
  105. package/dist/components/sd-radio-button-group.js +1 -1
  106. package/dist/components/sd-radio-group.js +1 -1
  107. package/dist/components/sd-radio.js +1 -1
  108. package/dist/components/sd-select-dropdown.js +1 -1
  109. package/dist/components/sd-select-multiple-group.js +1 -1
  110. package/dist/components/sd-select-multiple.js +1 -1
  111. package/dist/components/sd-select-option-group.js +1 -1
  112. package/dist/components/sd-select-option.js +1 -1
  113. package/dist/components/sd-select-search-input.js +1 -1
  114. package/dist/components/sd-select.js +1 -1
  115. package/dist/components/sd-table.js +1 -1
  116. package/dist/components/sd-tabs.js +1 -1
  117. package/dist/components/sd-tag.js +1 -1
  118. package/dist/components/sd-textarea.js +1 -1
  119. package/dist/components/sd-toast.js +1 -1
  120. package/dist/components/sd-toggle-button.js +1 -1
  121. package/dist/components/sd-toggle.js +1 -1
  122. package/dist/components/sd-tooltip.js +1 -1
  123. package/dist/design-system/design-system.esm.js +1 -1
  124. package/dist/design-system/{p-938940a7.entry.js → p-02c5ab69.entry.js} +1 -1
  125. package/dist/design-system/{p-6c34df5b.entry.js → p-1b80635f.entry.js} +1 -1
  126. package/dist/design-system/{p-2ca338f9.entry.js → p-285cc646.entry.js} +1 -1
  127. package/dist/design-system/{p-8fde8570.entry.js → p-3565f871.entry.js} +1 -1
  128. package/dist/design-system/{p-0406b7f9.entry.js → p-5032c700.entry.js} +1 -1
  129. package/dist/design-system/{p-40da6e22.entry.js → p-5094848f.entry.js} +1 -1
  130. package/dist/design-system/p-59a52297.entry.js +1 -0
  131. package/dist/design-system/p-712c1ef1.entry.js +1 -0
  132. package/dist/design-system/{p-b2ab1c50.entry.js → p-83f320e6.entry.js} +1 -1
  133. package/dist/design-system/{p-32c27eca.entry.js → p-8b013328.entry.js} +1 -1
  134. package/dist/design-system/{p-d021a375.entry.js → p-9563ffe1.entry.js} +1 -1
  135. package/dist/design-system/p-B8tGP77V.js +2 -0
  136. package/dist/design-system/p-BeCHKP_I.js +1 -0
  137. package/dist/design-system/p-DQuL1Twl.js +1 -0
  138. package/dist/design-system/p-b1e45f3f.entry.js +1 -0
  139. package/dist/design-system/{p-a547f366.entry.js → p-c0655cd1.entry.js} +1 -1
  140. package/dist/design-system/p-d8a141e7.entry.js +1 -0
  141. package/dist/design-system/{p-322dbf53.entry.js → p-df3d3a2a.entry.js} +1 -1
  142. package/dist/design-system/{p-9ad83ffb.entry.js → p-e6d84ecf.entry.js} +1 -1
  143. package/dist/design-system/{p-7d35c7a7.entry.js → p-e7d7ceb4.entry.js} +1 -1
  144. package/dist/design-system/{p-646ed990.entry.js → p-ea26b8e9.entry.js} +1 -1
  145. package/dist/design-system/p-efd52bd3.entry.js +1 -0
  146. package/dist/design-system/{p-d38f59b3.entry.js → p-f1b31194.entry.js} +1 -1
  147. package/dist/design-system/{p-3885ca10.entry.js → p-f81d3798.entry.js} +1 -1
  148. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  149. package/dist/esm/design-system.js +4 -3
  150. package/dist/esm/{index-C_an1PQ3.js → index-B8tGP77V.js} +10 -117
  151. package/dist/esm/loader.js +4 -3
  152. package/dist/esm/sd-badge.entry.js +2 -2
  153. package/dist/esm/sd-button-v2.entry.js +3 -3
  154. package/dist/esm/sd-button_21.entry.js +26 -26
  155. package/dist/esm/sd-card.entry.js +2 -2
  156. package/dist/esm/sd-date-picker.entry.js +2 -2
  157. package/dist/esm/sd-dropdown-button.entry.js +7 -6
  158. package/dist/esm/sd-file-picker.entry.js +4 -4
  159. package/dist/esm/sd-form.entry.js +1 -1
  160. package/dist/esm/sd-guide.entry.js +3 -3
  161. package/dist/esm/sd-popover.entry.js +4 -4
  162. package/dist/esm/sd-progress.entry.js +3 -3
  163. package/dist/esm/sd-radio-button-group.entry.js +1 -1
  164. package/dist/esm/sd-radio-group.entry.js +1 -1
  165. package/dist/esm/sd-select-multiple-group.entry.js +1 -1
  166. package/dist/esm/sd-select-multiple.entry.js +2 -2
  167. package/dist/esm/sd-select-option-group.entry.js +4 -4
  168. package/dist/esm/sd-tabs.entry.js +7 -9
  169. package/dist/esm/sd-tag.entry.js +96 -38
  170. package/dist/esm/sd-toast.entry.js +3 -3
  171. package/dist/esm/sd-toggle-button.entry.js +2 -2
  172. package/dist/esm/sd-toggle.entry.js +2 -2
  173. package/dist/esm/{tooltipArrow-BTp0AVR2.js → tooltipArrow-Pdc3NIc9.js} +1 -1
  174. package/dist/types/components/sd-tabs/sd-tabs.d.ts +1 -1
  175. package/dist/types/components/sd-tag/sd-tag.config.d.ts +23 -0
  176. package/dist/types/components/sd-tag/sd-tag.d.ts +6 -10
  177. package/dist/types/components.d.ts +15 -27
  178. package/hydrate/index.js +166 -584
  179. package/hydrate/index.mjs +166 -584
  180. package/package.json +2 -2
  181. package/dist/components/p-Bd9o9P1x.js +0 -1
  182. package/dist/components/p-CDehvEQ5.js +0 -1
  183. package/dist/components/p-CaEyReID.js +0 -1
  184. package/dist/design-system/p-3edd59b5.entry.js +0 -1
  185. package/dist/design-system/p-47d37199.entry.js +0 -1
  186. package/dist/design-system/p-9650c304.entry.js +0 -1
  187. package/dist/design-system/p-Bak0zfmv.js +0 -1
  188. package/dist/design-system/p-C_an1PQ3.js +0 -2
  189. package/dist/design-system/p-ab3b6f63.entry.js +0 -1
  190. package/dist/design-system/p-e5c3927f.entry.js +0 -1
@@ -240,17 +240,17 @@ export class SdNumberInput {
240
240
  const inputStyles = {
241
241
  textAlign: this.useButton ? 'center' : 'right',
242
242
  };
243
- return (h("sd-field", { key: '837e3b5c34396eb83adcf52f3242d24ad122be0a', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: '57000cb104bb65b1827e2cdb059bad004c236b2a', class: {
243
+ return (h("sd-field", { key: 'e72a01e264aa4d680aa740f5098e3be9bb7ac8ac', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: '3006df4eaf22ecf7e9ad330270623ba7cbbf9c9a', class: {
244
244
  'sd-number-input': true,
245
245
  [this.getInputStatus()]: true,
246
246
  'sd-number-input--with-buttons': this.useButton,
247
- }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: 'da7fe761d7e2528dd299d6ee5867bc7a5e0983ee', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: '3a58c1b9da818dbe0d4d29b79816bbc81288be49', class: "sd-number-input__buttons" }, h("button", { key: '507b418d1aea67247d10fcba514b51cc966b3ce9', type: "button", class: {
247
+ }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: 'e52177d9c7266a1630d9287fdc155f12a5dc7cca', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: '18f45963c22ee6a1cdd52e45b41191c3726328ce', class: "sd-number-input__buttons" }, h("button", { key: '73658fecb2300094b1880cae4595975b777b802a', type: "button", class: {
248
248
  'sd-number-input__button': true,
249
249
  'sd-number-input__button--decrement': true,
250
- }, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'e0b28e6cf9a5c9d578688e45f7db227516f6373f', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: '813bf64d160888e610da067fef9dea11375dd51b', type: "button", class: {
250
+ }, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'd2b4d8eb6b7f5dd30ba704c7d7b35051a5b0df7b', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: 'ddcd2255b7870657afbb6549cdc185a804aa3dbf', type: "button", class: {
251
251
  'sd-number-input__button': true,
252
252
  'sd-number-input__button--increment': true,
253
- }, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '6677d8b46b123e5534bfa8b2fcb45276d9b70782', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
253
+ }, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '971098976698154e8e644a93265dc746177c2ce0', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
254
254
  }
255
255
  static get is() { return "sd-number-input"; }
256
256
  static get originalStyleUrls() {
@@ -68,12 +68,12 @@ export class SdPagination {
68
68
  }
69
69
  }
70
70
  render() {
71
- return (h("div", { key: '1adbe18d363ff7946e900929d0dfaec1a1807d45', class: this.paginationClasses }, h("div", { key: '104eb4ac5fa9e8564c8730f34aefca4e0ac31cc6', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
71
+ return (h("div", { key: '8ab0a0f2dfb17154eaba138aa0688606500be296', class: this.paginationClasses }, h("div", { key: '04b985f2d3e06ef35b18d6d375021499f36952f1', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
72
72
  'pagination-btn': true,
73
73
  'pagination-btn--selected': this.currentPage === n,
74
74
  }, disabled: this.currentPage === n, style: {
75
75
  '--pagination-btn-width': `${this.buttonWidth}px`,
76
- }, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'e596b6a182e22ae4a8e95d5babb548d3bfba373d', class: "append-btns" }, this.renderNextButtons())));
76
+ }, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'c2ef87605487622bed06cac8d13d180f4af23e76', class: "append-btns" }, this.renderNextButtons())));
77
77
  }
78
78
  static get is() { return "sd-pagination"; }
79
79
  static get originalStyleUrls() {
@@ -30,11 +30,11 @@ export class SdPopover {
30
30
  this.showPopover = false;
31
31
  };
32
32
  render() {
33
- return (h(Fragment, { key: '4c256f17bc8601f889d18e2b8ee9ce5b4436b75e' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: 'd1a8ef964dc6b9458b47d2d2e0d1eb25662e1537', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: '1aef778cbd469b16fe145957ea05c0ccbc2af8e7', class: {
33
+ return (h(Fragment, { key: 'fae8880113285544053957bb096c6618dfddc7ec' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '45323134dcbce4014492dde03c1416deda339ee1', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'c662820224d2c90bb806d2ac010cc95a53308b3a', class: {
34
34
  'sd-floating-menu': true,
35
35
  [`sd-floating-menu--${this.placement}`]: true,
36
36
  [this.menuClass]: !!this.menuClass,
37
- } }, h("i", { key: 'ff8f07f418d3bdcaf15b7e058158b91bd1cd2185', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '9b1fb0577a5dcdf54ec1cc60935a9c3c1aa8319c' })), h("div", { key: '0bfd33f6dde24fcdca635cbee04d2bc618f15185', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'de381d79af2f5d976e5cbccf5ed2b60aae9e6f26', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '316f3398861cc9e54f5c16bd08c7b45422857ae1', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '2466d39c9105310821a509cc8d493d34b27bbb7d', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: 'd9cf295dfe0a20e9f79f371292520d9c757df55d', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '3ecc02bbfc890b1f66c57160041882c27153e44b', name: "close", size: "12", color: "gery_55" }))))))));
37
+ } }, h("i", { key: '55bc21085df77a027d252d5c3ef6d665207c71f6', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: 'a9bb570b87481c0fe897e65ada655537dd4b8724' })), h("div", { key: '5f28d241157a9f5481fc7fa4e48fd00fac1def5a', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'cc1dcbe2703dca70004159aa9fe8b18b122d8dbc', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: 'f7b72df569c2dce9e6c85bcd9509e38ac9cbbb80', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: 'd01d2bc92e79454d747b2fd976bfeb431d4d90fe', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: '9cf8cbd72d5bec64636b778ea0642d56c3229590', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '6df940385a9472e73b408cc51c647c98c95a9af7', name: "close", size: "12", color: "gery_55" }))))))));
38
38
  }
39
39
  static get is() { return "sd-popover"; }
40
40
  static get originalStyleUrls() {
@@ -177,7 +177,7 @@ export class SdPortal {
177
177
  this.close.emit();
178
178
  }
179
179
  render() {
180
- return h("slot", { key: 'be76727404b0172e1049ae572acf4eacd4ea4a25' });
180
+ return h("slot", { key: 'ceaa6bed28e3b1bd1a539091434fd7acee6a0e4b' });
181
181
  }
182
182
  static get is() { return "sd-portal"; }
183
183
  static get properties() {
@@ -33,10 +33,10 @@ export class SdProgress {
33
33
  return this.statusColor[this.progressStatus];
34
34
  }
35
35
  render() {
36
- return (h("div", { key: 'a11cc2a22ad1628d63882ca1e5f7f1e3715ba719', style: {
36
+ return (h("div", { key: 'a9b7c4a0bb44f7455ea21f632d3ec8edbcc97522', style: {
37
37
  '--progress-color': this.progressColor,
38
38
  '--progress-percentage': `${this.progressPercentage}%`,
39
- } }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: 'dbc62a8fa4039127356f8b734482e1d0eb26c22b', class: "sd-progress__label" }, this.label)));
39
+ } }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: 'ff0dfde8b43315883d2e4f17aa5e426fb6bf54ee', class: "sd-progress__label" }, this.label)));
40
40
  }
41
41
  renderBarProgress() {
42
42
  return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
@@ -144,10 +144,10 @@ export class SdSelectDropdown {
144
144
  this.isScrolled = scrollTop > 0;
145
145
  };
146
146
  render() {
147
- return (h("div", { key: 'd69eabae6b1769212fb4755413de8e54ede8a213', class: {
147
+ return (h("div", { key: '5e56cf091a3c3d510bf932933c33a8c3d85e23ef', class: {
148
148
  'sd-select-dropdown': true,
149
149
  'sd-select-dropdown--ready': this.isDropdownReady,
150
- }, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '7e9937e5b38a038b4b7bb0cd09ef4a69a336c673', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
150
+ }, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: 'd965a2a5f31507fb6dca30968edf6334d42b4160', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
151
151
  }
152
152
  static get is() { return "sd-select-dropdown"; }
153
153
  static get originalStyleUrls() {
@@ -24,7 +24,7 @@ export class SdSelectOption {
24
24
  }
25
25
  };
26
26
  render() {
27
- return (h("div", { key: 'b9844296973b6e85d3c3e3652671e89f470ec7a9', class: {
27
+ return (h("div", { key: '2f88e7ffe5bce12bc3f352d47d0ebed51a1c69ac', class: {
28
28
  'sd-select__option': true,
29
29
  'sd-select__option--selected': this.isSelected,
30
30
  'sd-select__option--disabled': !!this.option.disabled,
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
16
16
  input?.focus({ preventScroll: true });
17
17
  }
18
18
  render() {
19
- return (h("div", { key: '2d211645dc4041411e187f248a260a23b7c544f6', class: {
19
+ return (h("div", { key: 'da5faa18fac3c974dcfef4050efe580edcb1bb42', class: {
20
20
  'sd-select-search-input': true,
21
21
  'sd-select-search-input--scrolled': !!this.isScrolled,
22
- }, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'c609af0ab36359c8ccaea5827821dbc509d13eac', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
22
+ }, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'c469ef89d7600626b19ecd94416849825736ff9f', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
23
23
  this.searchInput.emit(String(event?.detail));
24
24
  }, onSdFocus: () => {
25
25
  this.searchFocus.emit();
26
26
  }, onKeyDown: event => {
27
27
  if (event.code === 'Enter')
28
28
  event.stopPropagation();
29
- } }, h("sd-icon", { key: '96a511b1f8625c883ec50d5e2985ff396d7b57c7', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
29
+ } }, h("sd-icon", { key: '478a6adda3b53aabf614028bd57a8f987f93cdb6', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
30
30
  }
31
31
  static get is() { return "sd-select-search-input"; }
32
32
  static get originalStyleUrls() {
@@ -145,7 +145,7 @@ export class SdSelectMultiple extends BaseDropdownEvent {
145
145
  this.handleOptionSelection(option);
146
146
  };
147
147
  render() {
148
- return (h("sd-field", { key: '9f78c7a47f580ba6d64fbc4a69e2f1f72f30e66f', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: 'fab43f26f83788991067096f8574421ddeb0a829', class: {
148
+ return (h("sd-field", { key: '9395a273b4205854e6fd7e96f26f93c201e6e959', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '451758e8c90b79e7ddb3b35226d28ee4a43a3832', class: {
149
149
  'sd-select-multiple': true,
150
150
  'sd-select-multiple--open': this.isOpen,
151
151
  'sd-select-multiple--disabled': this.disabled,
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
39
39
  }
40
40
  };
41
41
  render() {
42
- return (h("div", { key: '70ab9a558faf068cfc4eb0a5f6a29453ceedc6ec', class: {
42
+ return (h("div", { key: '7581caff61d1257d653b6f58b8d76c21225b3cc5', class: {
43
43
  'sd-select__option-group': true,
44
44
  'sd-select__option-group--selected': !!this.isSelected,
45
45
  'sd-select__option-group--disabled': !!this.option.disabled,
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
48
48
  'sd-select__option-group--group': this.option.type === 'group',
49
49
  'sd-select__option-group--subgroup': this.option.type === 'subgroup',
50
50
  'sd-select__option-group--item': this.option.type === 'item',
51
- }, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'ca5dc0033231ab204a8688f98453742cdbde7d26', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'bba6cb9fe649f6eda82ba287f73d0142e02c53c2', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
51
+ }, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'ddb33f6afaa6bc6d6dd3dc494f6ec74b9c023a42', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '14f2c7fc347718d2909e5006bf2500a9a51b0a66', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
52
52
  e.preventDefault();
53
53
  this.handleClick(this.option, this.isSelected, e);
54
- } })), h("span", { key: '7d03c080b7f5b92881389bfec787015a6ac55fa1', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: '7066453f92eac7549569db6854e3dc32515d80b9', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
54
+ } })), h("span", { key: '99415ed662cc2f8f29d31e3811eb4496f8fcac47', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'a3c7dc6455a94ecd4587f8b13b4d1f10e3b58819', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
55
55
  }
56
56
  static get is() { return "sd-select-option-group"; }
57
57
  static get originalStyleUrls() {
@@ -35,16 +35,14 @@ export class SdTabs {
35
35
  }
36
36
  return classes.join(' ');
37
37
  }
38
- getBadgeColors(tab) {
39
- if (this.isTabSelected(tab)) {
40
- return { bgColor: '#E6F1FF', textColor: '#0075FF' };
41
- }
42
- return { bgColor: '#E5E5E5', textColor: '#737373' };
38
+ getBadgeName(tab) {
39
+ const color = this.isTabSelected(tab) ? 'blue' : 'grey';
40
+ return `square_${this.size}_${color}`;
43
41
  }
44
42
  render() {
45
- return (h("div", { key: '1b63c97e7b40d35ceadcc07da1087ee54d3c5f8f', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
46
- const badgeColors = this.getBadgeColors(tab);
47
- return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && (h("sd-tag", { size: this.size, label: tab.badge.toString(), bgColor: badgeColors.bgColor, textColor: badgeColors.textColor, rounded: false }))));
43
+ return (h("div", { key: 'bc86d4c1775bed6c2d323c9446e2c50631afed7c', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
44
+ const badgeName = this.getBadgeName(tab);
45
+ return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && (h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
48
46
  })));
49
47
  }
50
48
  static get is() { return "sd-tabs"; }
@@ -0,0 +1,70 @@
1
+ export const TAG_SHAPES = ['square', 'pill'];
2
+ export const TAG_SIZES = ['sm', 'md', 'lg'];
3
+ export const TAG_COLORS = [
4
+ 'grey',
5
+ 'red',
6
+ 'orange',
7
+ 'yellow',
8
+ 'green',
9
+ 'blue',
10
+ 'darkblue',
11
+ 'indigo',
12
+ ];
13
+ const TAG_COLOR_CONFIG = {
14
+ grey: { background: '#EEEEEE', content: '#737373', icon: '#737373' },
15
+ red: { background: '#FCEFEF', content: '#FB4444', icon: '#FB4444' },
16
+ orange: { background: '#FEF1EA', content: '#FF6B00', icon: '#FF6B00' },
17
+ yellow: { background: '#FFF7DD', content: '#916C0D', icon: '#CA9611' },
18
+ green: { background: '#E8F9EF', content: '#00973C', icon: '#12B553' },
19
+ blue: { background: '#E6F1FF', content: '#0075FF', icon: '#0075FF' },
20
+ darkblue: { background: '#EAF5FE', content: '#006AC1', icon: '#006AC1' },
21
+ indigo: { background: '#EFF6FF', content: '#004290', icon: '#004290' },
22
+ };
23
+ const SQUARE_SIZE_CONFIG = {
24
+ sm: {
25
+ height: '20px',
26
+ paddingX: '6px',
27
+ gap: '4px',
28
+ fontSize: '11px',
29
+ fontWeight: '500',
30
+ iconSize: 12,
31
+ radius: '4px',
32
+ },
33
+ md: {
34
+ height: '24px',
35
+ paddingX: '8px',
36
+ gap: '4px',
37
+ fontSize: '12px',
38
+ fontWeight: '700',
39
+ iconSize: 16,
40
+ radius: '4px',
41
+ },
42
+ lg: {
43
+ height: '28px',
44
+ paddingX: '10px',
45
+ gap: '4px',
46
+ fontSize: '14px',
47
+ fontWeight: '700',
48
+ iconSize: 16,
49
+ radius: '5px',
50
+ },
51
+ };
52
+ const PILL_SIZE_CONFIG = {
53
+ sm: { ...SQUARE_SIZE_CONFIG.sm, radius: '999px' },
54
+ md: { ...SQUARE_SIZE_CONFIG.md, radius: '999px' },
55
+ lg: { ...SQUARE_SIZE_CONFIG.lg, radius: '999px' },
56
+ };
57
+ export const TAG_CONFIG = Object.fromEntries(TAG_SHAPES.flatMap(shape => TAG_SIZES.flatMap(size => TAG_COLORS.map(color => {
58
+ const sizeConfig = shape === 'square' ? SQUARE_SIZE_CONFIG[size] : PILL_SIZE_CONFIG[size];
59
+ return [
60
+ `${shape}_${size}_${color}`,
61
+ {
62
+ shape,
63
+ size,
64
+ color,
65
+ ...sizeConfig,
66
+ ...TAG_COLOR_CONFIG[color],
67
+ },
68
+ ];
69
+ }))));
70
+ export const isTagName = (value) => Object.prototype.hasOwnProperty.call(TAG_CONFIG, value);
@@ -1,68 +1,38 @@
1
- :host {
2
- display: inline-block;
3
- }
4
-
5
- :host([full-width]) {
6
- display: block;
1
+ sd-tag {
2
+ display: inline-flex;
3
+ width: fit-content;
4
+ height: fit-content;
7
5
  }
8
6
 
9
7
  .sd-tag {
10
8
  display: inline-flex;
11
- width: 100%;
12
9
  align-items: center;
13
10
  justify-content: center;
14
- gap: 8px;
15
- text-decoration: none;
16
- border: 1px solid transparent;
17
- border-radius: 4px;
18
- transition: all 0.2s ease-in-out;
19
- position: relative;
20
- overflow: hidden;
11
+ gap: var(--sd-tag-gap, 5px);
12
+ min-height: var(--sd-tag-height, 24px);
13
+ padding: 0 var(--sd-tag-padding-x, 8px);
14
+ border-radius: var(--sd-tag-radius, 4px);
15
+ background: var(--sd-tag-background, #f3f3f3);
16
+ color: var(--sd-tag-content, #7a7a7a);
17
+ box-sizing: border-box;
21
18
  white-space: nowrap;
22
19
  -webkit-user-select: none;
23
20
  user-select: none;
24
- box-sizing: border-box;
25
- }
26
- .sd-tag__content {
27
- display: inline-block;
28
- width: 100%;
29
- overflow: hidden;
30
- white-space: nowrap;
31
- text-overflow: ellipsis;
32
- }
33
- .sd-tag--custom-color {
34
- background: var(--tag-bg-color);
35
- color: var(--tag-text-color);
36
- }
37
- .sd-tag--sm {
38
- padding: 0 6px;
39
- font-size: 11px;
40
- line-height: 18px;
41
- height: 20px;
42
- border-radius: 4px;
43
- }
44
- .sd-tag--md {
45
- padding: 0 8px;
46
- font-size: 12px;
47
- font-weight: 700;
48
- line-height: 20px;
49
- height: 24px;
50
- border-radius: 4px;
51
21
  }
52
- .sd-tag--lg {
53
- padding: 0 10px;
54
- font-size: 14px;
55
- font-weight: 700;
56
- line-height: 24px;
57
- min-height: 28px;
58
- border-radius: 5px;
59
- }
60
- .sd-tag--rounded.sd-tag--sm {
61
- border-radius: 20px;
62
- }
63
- .sd-tag--rounded.sd-tag--md {
64
- border-radius: 20px;
22
+
23
+ .sd-tag__icon {
24
+ display: inline-flex;
25
+ flex: 0 0 auto;
26
+ align-items: center;
27
+ justify-content: center;
65
28
  }
66
- .sd-tag--rounded.sd-tag--lg {
67
- border-radius: 15px;
29
+
30
+ .sd-tag__label {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ min-width: 0;
35
+ font-size: var(--sd-tag-font-size, 12px);
36
+ font-weight: var(--sd-tag-font-weight, 700);
37
+ line-height: 1;
68
38
  }
@@ -1,49 +1,36 @@
1
1
  import { h } from "@stencil/core";
2
- const TAG_COLORS = {
3
- grey: 'bg-grey_20 text-grey_70',
4
- red: 'bg-red_15 text-red_70',
5
- orange: 'bg-orange_10 text-orange_65',
6
- yellow: 'bg-yellow_10 text-yellow_70',
7
- green: 'bg-green_15 text-green_75',
8
- blue: 'bg-brilliantblue_20 text-brilliantblue_75',
9
- darkblue: 'bg-oceanblue_15 text-oceanblue_70',
10
- indigo: 'bg-brilliantblue_10 text-brilliantblue_85',
11
- };
2
+ import { TAG_CONFIG, isTagName } from "./sd-tag.config";
12
3
  export class SdTag {
13
- el;
14
- size = 'md';
15
- color = 'grey';
16
- rounded = false;
4
+ name = 'square_md_grey';
17
5
  label = '';
18
- bgColor;
19
- textColor;
20
- getTagClasses() {
21
- const classes = ['sd-tag', `sd-tag--${this.size}`];
22
- if (this.rounded) {
23
- classes.push('sd-tag--rounded');
6
+ icon;
7
+ isLeft = true;
8
+ get resolvedConfig() {
9
+ if (!isTagName(this.name)) {
10
+ throw new Error(`Invalid sd-tag name: ${this.name}`);
24
11
  }
25
- if (this.color && !this.bgColor && !this.textColor) {
26
- classes.push(TAG_COLORS[this.color]);
27
- }
28
- if (this.bgColor || this.textColor) {
29
- classes.push('sd-tag--custom-color');
30
- }
31
- return classes.join(' ');
12
+ return TAG_CONFIG[this.name];
32
13
  }
33
- renderContent() {
34
- return [
35
- h("span", { class: "sd-tag__content" }, h("slot", null, this.label)),
36
- ];
14
+ renderIcon(color, size) {
15
+ if (!this.icon)
16
+ return null;
17
+ return h("sd-icon", { class: "sd-tag__icon", name: this.icon, size: size, color: color });
37
18
  }
38
19
  render() {
39
- const tagClasses = this.getTagClasses();
40
- return (h("span", { key: '9745415753fe657bf5e7e5ca9eb6e02f8c953bfd', class: tagClasses, style: {
41
- '--tag-bg-color': this.bgColor,
42
- '--tag-text-color': this.textColor,
43
- }, "aria-label": this.label || 'tag' }, this.renderContent()));
20
+ const config = this.resolvedConfig;
21
+ const iconNode = this.renderIcon(config.icon, config.iconSize);
22
+ return (h("span", { key: '5f9ee005b146997dd13bb3e6a06680ff8574bd14', class: "sd-tag", style: {
23
+ '--sd-tag-background': config.background,
24
+ '--sd-tag-content': config.content,
25
+ '--sd-tag-height': config.height,
26
+ '--sd-tag-padding-x': config.paddingX,
27
+ '--sd-tag-gap': config.gap,
28
+ '--sd-tag-font-size': config.fontSize,
29
+ '--sd-tag-font-weight': config.fontWeight,
30
+ '--sd-tag-radius': config.radius,
31
+ }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: 'b123ab6ac015db640e4dc3edc5e2cf90ec5e0ecf', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
44
32
  }
45
33
  static get is() { return "sd-tag"; }
46
- static get encapsulation() { return "shadow"; }
47
34
  static get originalStyleUrls() {
48
35
  return {
49
36
  "$": ["sd-tag.scss"]
@@ -56,43 +43,18 @@ export class SdTag {
56
43
  }
57
44
  static get properties() {
58
45
  return {
59
- "size": {
60
- "type": "string",
61
- "mutable": false,
62
- "complexType": {
63
- "original": "TagSize",
64
- "resolved": "\"lg\" | \"md\" | \"sm\"",
65
- "references": {
66
- "TagSize": {
67
- "location": "local",
68
- "path": "/Users/meijing/Documents/sellmate/frontend/design-system/packages/stencil/src/components/sd-tag/sd-tag.tsx",
69
- "id": "src/components/sd-tag/sd-tag.tsx::TagSize"
70
- }
71
- }
72
- },
73
- "required": false,
74
- "optional": false,
75
- "docs": {
76
- "tags": [],
77
- "text": ""
78
- },
79
- "getter": false,
80
- "setter": false,
81
- "reflect": false,
82
- "attribute": "size",
83
- "defaultValue": "'md'"
84
- },
85
- "color": {
46
+ "name": {
86
47
  "type": "string",
87
48
  "mutable": false,
88
49
  "complexType": {
89
- "original": "TagColor",
90
- "resolved": "\"blue\" | \"darkblue\" | \"green\" | \"grey\" | \"indigo\" | \"orange\" | \"red\" | \"yellow\"",
50
+ "original": "TagName",
51
+ "resolved": "\"pill_lg_blue\" | \"pill_lg_darkblue\" | \"pill_lg_green\" | \"pill_lg_grey\" | \"pill_lg_indigo\" | \"pill_lg_orange\" | \"pill_lg_red\" | \"pill_lg_yellow\" | \"pill_md_blue\" | \"pill_md_darkblue\" | \"pill_md_green\" | \"pill_md_grey\" | \"pill_md_indigo\" | \"pill_md_orange\" | \"pill_md_red\" | \"pill_md_yellow\" | \"pill_sm_blue\" | \"pill_sm_darkblue\" | \"pill_sm_green\" | \"pill_sm_grey\" | \"pill_sm_indigo\" | \"pill_sm_orange\" | \"pill_sm_red\" | \"pill_sm_yellow\" | \"square_lg_blue\" | \"square_lg_darkblue\" | \"square_lg_green\" | \"square_lg_grey\" | \"square_lg_indigo\" | \"square_lg_orange\" | \"square_lg_red\" | \"square_lg_yellow\" | \"square_md_blue\" | \"square_md_darkblue\" | \"square_md_green\" | \"square_md_grey\" | \"square_md_indigo\" | \"square_md_orange\" | \"square_md_red\" | \"square_md_yellow\" | \"square_sm_blue\" | \"square_sm_darkblue\" | \"square_sm_green\" | \"square_sm_grey\" | \"square_sm_indigo\" | \"square_sm_orange\" | \"square_sm_red\" | \"square_sm_yellow\"",
91
52
  "references": {
92
- "TagColor": {
93
- "location": "local",
94
- "path": "/Users/meijing/Documents/sellmate/frontend/design-system/packages/stencil/src/components/sd-tag/sd-tag.tsx",
95
- "id": "src/components/sd-tag/sd-tag.tsx::TagColor"
53
+ "TagName": {
54
+ "location": "import",
55
+ "path": "./sd-tag.config",
56
+ "id": "src/components/sd-tag/sd-tag.config.ts::TagName",
57
+ "referenceLocation": "TagName"
96
58
  }
97
59
  }
98
60
  },
@@ -105,28 +67,8 @@ export class SdTag {
105
67
  "getter": false,
106
68
  "setter": false,
107
69
  "reflect": false,
108
- "attribute": "color",
109
- "defaultValue": "'grey'"
110
- },
111
- "rounded": {
112
- "type": "boolean",
113
- "mutable": false,
114
- "complexType": {
115
- "original": "boolean",
116
- "resolved": "boolean",
117
- "references": {}
118
- },
119
- "required": false,
120
- "optional": false,
121
- "docs": {
122
- "tags": [],
123
- "text": ""
124
- },
125
- "getter": false,
126
- "setter": false,
127
- "reflect": false,
128
- "attribute": "rounded",
129
- "defaultValue": "false"
70
+ "attribute": "name",
71
+ "defaultValue": "'square_md_grey'"
130
72
  },
131
73
  "label": {
132
74
  "type": "string",
@@ -148,13 +90,18 @@ export class SdTag {
148
90
  "attribute": "label",
149
91
  "defaultValue": "''"
150
92
  },
151
- "bgColor": {
93
+ "icon": {
152
94
  "type": "string",
153
95
  "mutable": false,
154
96
  "complexType": {
155
- "original": "string",
156
- "resolved": "string | undefined",
157
- "references": {}
97
+ "original": "IconName",
98
+ "resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrow2Down\" | \"arrow2Left\" | \"arrow2Right\" | \"arrow2Up\" | \"arrow2UpDown\" | \"arrowDown\" | \"arrowLeft\" | \"arrowLeftEnd\" | \"arrowRight\" | \"arrowRightEnd\" | \"arrowUp\" | \"attachFile\" | \"badgeNew\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"cancelFilled\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFilled\" | \"checkOutline\" | \"clockFilled\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"etc\" | \"event\" | \"global\" | \"helpFilled\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageLine\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"notificationFilled\" | \"notificationOutline\" | \"notion\" | \"outLine\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseLine\" | \"warehouseSolid\" | \"warningFilled\" | \"warningOutline\" | \"youtube\" | undefined",
99
+ "references": {
100
+ "IconName": {
101
+ "location": "global",
102
+ "id": "global::IconName"
103
+ }
104
+ }
158
105
  },
159
106
  "required": false,
160
107
  "optional": true,
@@ -165,18 +112,18 @@ export class SdTag {
165
112
  "getter": false,
166
113
  "setter": false,
167
114
  "reflect": false,
168
- "attribute": "bg-color"
115
+ "attribute": "icon"
169
116
  },
170
- "textColor": {
171
- "type": "string",
117
+ "isLeft": {
118
+ "type": "boolean",
172
119
  "mutable": false,
173
120
  "complexType": {
174
- "original": "string",
175
- "resolved": "string | undefined",
121
+ "original": "boolean",
122
+ "resolved": "boolean",
176
123
  "references": {}
177
124
  },
178
125
  "required": false,
179
- "optional": true,
126
+ "optional": false,
180
127
  "docs": {
181
128
  "tags": [],
182
129
  "text": ""
@@ -184,9 +131,9 @@ export class SdTag {
184
131
  "getter": false,
185
132
  "setter": false,
186
133
  "reflect": false,
187
- "attribute": "text-color"
134
+ "attribute": "is-left",
135
+ "defaultValue": "true"
188
136
  }
189
137
  };
190
138
  }
191
- static get elementRef() { return "el"; }
192
139
  }
@@ -75,10 +75,10 @@ export class SdTextarea {
75
75
  }
76
76
  render() {
77
77
  const maxLengthCounter = this.getMaxLengthCounter();
78
- return (h("div", { key: 'd538d3ab99c174f1fedc92c547fcba61d1097608', class: {
78
+ return (h("div", { key: '5f087de7fd28e3f5fa3315c37b8974e7f5878149', class: {
79
79
  'sd-textarea': true,
80
80
  [this.getTextareaStatus()]: true,
81
- }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '1f4b6059d56e673568e4662f423bf6c76b781ad7', class: "sd-textarea__content" }, h("textarea", { key: '812814fdfc3044ba796830be47d5e5f93a423734', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: '2ea2c482ea874607411d1f4ecaabb99d095122ad', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: 'b14afd0acf981bbbd3cef6bd7490f3a3fe9b443a', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '2aa68acd081a61d22010c799621b06fa49e7b8a6', class: "sd-textarea__counter" }, maxLengthCounter)))));
81
+ }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: 'fb9e5c4e98cadbf1a694bce4f9fed498bdc8e7cd', class: "sd-textarea__content" }, h("textarea", { key: 'b0414813c34a127becd94ec6fc2e516c375d8eea', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: 'fe3f278f3a7d438f8fce8ca4043e00ec0220efd6', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: '16d15de3ff1e49de16b67088d52f7f2848f2e283', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '84b4adbd09b7af30dbc68b5f3e6473e97fe4c76e', class: "sd-textarea__counter" }, maxLengthCounter)))));
82
82
  }
83
83
  static get is() { return "sd-textarea"; }
84
84
  static get originalStyleUrls() {