@sula-tech/webcomponents 0.26.0 → 0.27.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 (121) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_32.cjs.entry.js +83 -67
  3. package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
  4. package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
  5. package/dist/cjs/sula-toast.cjs.entry.js +2 -2
  6. package/dist/cjs/sula-workbench-menu.cjs.entry.js +4 -4
  7. package/dist/cjs/webcomponents.cjs.js +1 -1
  8. package/dist/collection/components/sula-chip/sula-chip.css +1 -1
  9. package/dist/collection/components/sula-chip/sula-chip.js +50 -10
  10. package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
  11. package/dist/collection/components/sula-chip/sula-chip.stories.js +39 -0
  12. package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
  13. package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
  14. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  15. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  16. package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
  17. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  18. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  19. package/dist/collection/components/sula-menu/sula-menu.js +8 -8
  20. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
  21. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
  22. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
  23. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  24. package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
  25. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
  26. package/dist/collection/components/sula-switch/sula-switch.css +1 -1
  27. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  28. package/dist/collection/components/sula-table/sula-table.js +3 -3
  29. package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
  30. package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
  31. package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
  32. package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
  33. package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
  34. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  35. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  36. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  37. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  38. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  39. package/dist/collection/components/sula-toast/sula-toast.js +2 -2
  40. package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
  41. package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
  42. package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
  43. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +4 -4
  44. package/dist/components/{p-Cwj-T_a3.js → p-BNxL-ZjI.js} +5 -5
  45. package/dist/components/{p-Cwj-T_a3.js.map → p-BNxL-ZjI.js.map} +1 -1
  46. package/dist/components/{p-BlRYoc3b.js → p-ByuiM_SX.js} +4 -4
  47. package/dist/components/{p-BlRYoc3b.js.map → p-ByuiM_SX.js.map} +1 -1
  48. package/dist/components/{p-CRJeD_Ch.js → p-CQQX0ZEo.js} +5 -5
  49. package/dist/components/{p-CRJeD_Ch.js.map → p-CQQX0ZEo.js.map} +1 -1
  50. package/dist/components/{p-KIC3LfH4.js → p-CTY6E4Qo.js} +7 -7
  51. package/dist/components/{p-KIC3LfH4.js.map → p-CTY6E4Qo.js.map} +1 -1
  52. package/dist/components/{p-0Fu7X8Ko.js → p-CiJSp-1r.js} +5 -5
  53. package/dist/components/{p-0Fu7X8Ko.js.map → p-CiJSp-1r.js.map} +1 -1
  54. package/dist/components/{p-Dj-BkOJM.js → p-DImZWpEm.js} +4 -4
  55. package/dist/components/{p-Dj-BkOJM.js.map → p-DImZWpEm.js.map} +1 -1
  56. package/dist/components/{p-6BsVErKp.js → p-DQYdk1Hu.js} +4 -4
  57. package/dist/components/{p-6BsVErKp.js.map → p-DQYdk1Hu.js.map} +1 -1
  58. package/dist/components/{p-DPBeKst1.js → p-DcFem7BV.js} +7 -7
  59. package/dist/components/{p-DPBeKst1.js.map → p-DcFem7BV.js.map} +1 -1
  60. package/dist/components/{p-CvCiJEK7.js → p-DotZeO3E.js} +4 -4
  61. package/dist/components/{p-CvCiJEK7.js.map → p-DotZeO3E.js.map} +1 -1
  62. package/dist/components/{p-C0jaJr-I.js → p-L_u-y6EK.js} +5 -5
  63. package/dist/components/{p-C0jaJr-I.js.map → p-L_u-y6EK.js.map} +1 -1
  64. package/dist/components/sula-avatar.js +1 -1
  65. package/dist/components/sula-badge.js +1 -1
  66. package/dist/components/sula-breadcrumb.js +1 -1
  67. package/dist/components/sula-button.js +1 -1
  68. package/dist/components/sula-calendar.js +2 -2
  69. package/dist/components/sula-checkbox.js +1 -1
  70. package/dist/components/sula-chip.js +40 -15
  71. package/dist/components/sula-chip.js.map +1 -1
  72. package/dist/components/sula-dropdown.js +1 -1
  73. package/dist/components/sula-icon-picker.js +6 -6
  74. package/dist/components/sula-icon.js +1 -1
  75. package/dist/components/sula-loader.js +1 -1
  76. package/dist/components/sula-menu-select-list.js +1 -1
  77. package/dist/components/sula-menu.js +9 -9
  78. package/dist/components/sula-modal.js +3 -3
  79. package/dist/components/sula-profile-menu.js +1 -1
  80. package/dist/components/sula-progress-bar.js +3 -3
  81. package/dist/components/sula-radio-button.js +2 -2
  82. package/dist/components/sula-search-bar.js +1 -1
  83. package/dist/components/sula-segmented-control.js +2 -2
  84. package/dist/components/sula-switch.js +1 -1
  85. package/dist/components/sula-table-body.js +1 -1
  86. package/dist/components/sula-table-cell.js +2 -2
  87. package/dist/components/sula-table-head-cell.js +2 -2
  88. package/dist/components/sula-table-header.js +1 -1
  89. package/dist/components/sula-table-row.js +1 -1
  90. package/dist/components/sula-table.js +3 -3
  91. package/dist/components/sula-tag.js +4 -4
  92. package/dist/components/sula-textarea.js +6 -6
  93. package/dist/components/sula-textfield.js +1 -1
  94. package/dist/components/sula-tiles.js +2 -2
  95. package/dist/components/sula-timeline-list.js +2 -2
  96. package/dist/components/sula-toast-stack.js +6 -6
  97. package/dist/components/sula-toast.js +1 -1
  98. package/dist/components/sula-toggle.js +2 -2
  99. package/dist/components/sula-tooltip.js +2 -2
  100. package/dist/components/sula-workbench-menu.js +7 -7
  101. package/dist/esm/loader.js +1 -1
  102. package/dist/esm/sula-avatar_32.entry.js +83 -67
  103. package/dist/esm/sula-avatar_32.entry.js.map +1 -1
  104. package/dist/esm/sula-toast-stack.entry.js +4 -4
  105. package/dist/esm/sula-toast.entry.js +2 -2
  106. package/dist/esm/sula-workbench-menu.entry.js +4 -4
  107. package/dist/esm/webcomponents.js +1 -1
  108. package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
  109. package/dist/types/components/sula-chip/sula-chip.stories.d.ts +11 -0
  110. package/dist/types/components.d.ts +10 -0
  111. package/dist/webcomponents/{p-18c84807.entry.js → p-4fa0213d.entry.js} +6 -6
  112. package/dist/webcomponents/{p-705e2424.entry.js → p-76884b75.entry.js} +16 -16
  113. package/dist/webcomponents/{p-235dcb90.entry.js → p-86448fcf.entry.js} +6 -6
  114. package/dist/webcomponents/{p-40f33932.entry.js → p-d8d9b8e6.entry.js} +168 -143
  115. package/dist/webcomponents/p-d8d9b8e6.entry.js.map +1 -0
  116. package/dist/webcomponents/webcomponents.esm.js +21 -18
  117. package/package.json +1 -1
  118. package/dist/webcomponents/p-40f33932.entry.js.map +0 -1
  119. /package/dist/webcomponents/{p-18c84807.entry.js.map → p-4fa0213d.entry.js.map} +0 -0
  120. /package/dist/webcomponents/{p-705e2424.entry.js.map → p-76884b75.entry.js.map} +0 -0
  121. /package/dist/webcomponents/{p-235dcb90.entry.js.map → p-86448fcf.entry.js.map} +0 -0
@@ -272,7 +272,7 @@ const SulaToastStack = class {
272
272
  render() {
273
273
  const expanded = this.expanded;
274
274
  const visibleItems = this.visibleItems;
275
- return (index.h(index.Host, { key: 'c02d5830981122b0267e560f911ee98cdd726bd7' }, index.h("section", { key: 'cbfa6dcdd964fc1d42546a43e5980dc49e84b30f', ref: el => (this.region = el), role: "region", "aria-label": "Notifica\u00E7\u00F5es", tabIndex: 0, class: "toast-region w-full rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-feedback-informational focus-visible:outline-offset-2", onMouseEnter: () => {
275
+ return (index.h(index.Host, { key: 'c910dcb00ae26a820f57aba0b4229c46a7780929' }, index.h("section", { key: '1080f87d27f25a2c7b14534c837ea9952860d8e9', ref: el => (this.region = el), role: "region", "aria-label": "Notifica\u00E7\u00F5es", tabIndex: 0, class: "toast-region w-full rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-feedback-informational focus-visible:outline-offset-2", onMouseEnter: () => {
276
276
  if (!this.noHover)
277
277
  this.hovering = true;
278
278
  }, onMouseLeave: () => (this.hovering = false), onPointerDown: () => {
@@ -281,7 +281,7 @@ const SulaToastStack = class {
281
281
  }, onKeyDown: () => {
282
282
  this.keyboardInteraction = true;
283
283
  this.stopRetainingPointerExpansion();
284
- }, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, index.h("div", { key: 'ee70118013b6e5e3313db30c27571bf3cc3009af', ref: el => (this.list = el), class: { 'toast-list relative flex flex-col gap-12': true, 'toast-list--collapsed': !expanded }, style: {
284
+ }, onFocusin: () => (this.focused = true), onFocusout: this.handleFocusOut }, index.h("div", { key: '7facdd6e569ea7e493eae900c2fd78f384ec0a50', ref: el => (this.list = el), class: { 'toast-list relative flex flex-col gap-12': true, 'toast-list--collapsed': !expanded }, style: {
285
285
  '--toast-layer-offset': `${Math.max(0, visibleItems.length - 1) * LAYER_OFFSET}px`,
286
286
  } }, visibleItems.map((item, index$1) => {
287
287
  var _a, _b, _c, _d;
@@ -295,9 +295,9 @@ const SulaToastStack = class {
295
295
  '--toast-depth': String(depth),
296
296
  '--toast-width': `${100 - Math.min(depth, MAX_VISIBLE_LAYERS - 1) * LAYER_WIDTH_STEP}%`,
297
297
  } }, index.h("sula-toast", { toastTitle: item.title, message: (_a = item.message) !== null && _a !== void 0 ? _a : '', type: item.type, icon: item.icon, actionText: (_b = item.actionText) !== null && _b !== void 0 ? _b : '', closable: (_c = item.closable) !== null && _c !== void 0 ? _c : true, duration: item.duration, closeLabel: (_d = item.closeLabel) !== null && _d !== void 0 ? _d : 'Fechar notificação', paused: covered || this.hovering || this.focused || this.retainingPointerExpansion, announcement: "off", animated: depth === 0, onToastDismissRequested: event => this.dismiss(event, item.id), onToastAction: event => this.action(event, item.id) })));
298
- }))), index.h("div", { key: '37091de2d263942ad15dbdc52cd229b98a8f7c1c', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
298
+ }))), index.h("div", { key: '66a51ac8e595e6ec658bc2e8a9eb60e78e543b58', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
299
299
  .filter(record => record.priority === 'polite')
300
- .map(record => (index.h("p", { key: record.version }, record.text)))), index.h("div", { key: 'a5bc35d0759a6a71cb9b7d9ad76cfd3ce9fee9b6', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
300
+ .map(record => (index.h("p", { key: record.version }, record.text)))), index.h("div", { key: 'e6c9ed51d72fcc8804a272c31485b49dee57a26f', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "false", "aria-relevant": "additions text" }, this.announcements
301
301
  .filter(record => record.priority === 'assertive')
302
302
  .map(record => (index.h("p", { key: record.version }, record.text))))));
303
303
  }
@@ -172,10 +172,10 @@ const SulaToast = class {
172
172
  }
173
173
  render() {
174
174
  const intent = this.intent;
175
- return (index.h(index.Host, { key: '50370f6063bd87ddcbfefc45987c04eb602ab9ea', onMouseEnter: () => this.setHover(true), onMouseLeave: () => this.setHover(false), onFocusin: () => {
175
+ return (index.h(index.Host, { key: '495a5bdd71e9ba52fb870d8f681ab476bead7df1', onMouseEnter: () => this.setHover(true), onMouseLeave: () => this.setHover(false), onFocusin: () => {
176
176
  this.focused = true;
177
177
  this.updateTimeout();
178
- }, onFocusout: this.handleFocusOut }, index.h("div", { key: '4334d01b1188afc4663ebadc48a84dcb4d393c99', part: "container", class: `toast-surface relative isolate box-border flex items-center w-full p-16 gap-12 rounded-sm border bg-opacity-toast ${intent.border} ${this.animated ? 'toast-surface--animated' : ''}`, style: { '--toast-border-color': intent.borderColor } }, this.icon && (index.h("div", { key: 'b87bf80bd8932414ae5d709e2be0d5feaefd3a8e', part: "icon", "aria-hidden": "true", class: `flex shrink-0 items-center justify-center w-44 h-44 rounded-xxl ${intent.background}` }, index.h("sula-icon", { key: 'b6f18a65ceab18e373f1fda59142b0eab3c575cf', icon: this.icon, customClass: `text-2xl ${intent.color}`, class: "flex leading-none" }))), index.h("div", { key: 'bff56cc0964d97824221c48d91e876ac6110df47', part: "content", class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? 'pr-48' : ''}` }, index.h("div", { key: 'c6d1d46a7f255cfda53e4883c6164370bee8a534', class: "flex flex-col gap-4" }, this.toastTitle && (index.h("p", { key: '110d11cb987cca1f426adb43b411ad20ba95a21d', class: "toast-copy toast-title text-label-medium-bold text-text-primary", title: this.toastTitle }, this.toastTitle)), this.message && (index.h("p", { key: 'afd5df30339ed228d417cbee8b3795077d5c9b69', class: "toast-copy toast-message text-label-medium-regular text-text-secondary", title: this.message }, this.message))), this.actionText && (index.h("button", { key: '4a332f3df90a682960f7569e42d4be89d897b429', type: "button", class: `toast-copy toast-action self-start text-left text-label-medium-bold text-text-link underline rounded ${FOCUS_RING_CLASSES}`, title: this.actionText, onClick: () => this.toastAction.emit() }, this.actionText))), this.closable && (index.h("button", { key: '927e70871fc1c94404dddfb33095e7713870d18a', part: "close-button", type: "button", "aria-label": this.closeLabel, class: `absolute top-16 right-16 flex items-center justify-center w-24 h-24 rounded ${intent.color} ${FOCUS_RING_CLASSES}`, onClick: () => this.toastDismissRequested.emit({ reason: 'close' }) }, index.h("sula-icon", { key: '4e0a9b4ad00ab928eb470b09dec7dc0793706a81', "aria-hidden": "true", icon: "ph ph-x", customClass: "text-2xl", class: "flex leading-none" }))), index.h("svg", { key: '328c4ab25330dd17918b1cad64eb05ab1feb8546', class: "toast-border", "aria-hidden": "true", focusable: "false" }, index.h("rect", { key: '6896a2bb9f74b96faef4d0e12c01d537f61fc36c', class: "toast-border__path", pathLength: "1" }))), index.h("div", { key: '13b17899ac49ffae21d73155b691a13e3b5e2f5f', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.announcement === 'polite' ? this.announcedText : ''), index.h("div", { key: '589a7c8956b6952b55cc5383a74cf339db86ad19', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement === 'assertive' ? this.announcedText : '')));
178
+ }, onFocusout: this.handleFocusOut }, index.h("div", { key: 'e172289ed292879944f31dcabf2beefb4dad20e2', part: "container", class: `toast-surface relative isolate box-border flex items-center w-full p-16 gap-12 rounded-sm border bg-opacity-toast ${intent.border} ${this.animated ? 'toast-surface--animated' : ''}`, style: { '--toast-border-color': intent.borderColor } }, this.icon && (index.h("div", { key: 'b91f0034901539145f03c1781774ad40b510cd6a', part: "icon", "aria-hidden": "true", class: `flex shrink-0 items-center justify-center w-44 h-44 rounded-xxl ${intent.background}` }, index.h("sula-icon", { key: '02a17a9944c72d24ba1662179730226b9be0765b', icon: this.icon, customClass: `text-2xl ${intent.color}`, class: "flex leading-none" }))), index.h("div", { key: '994367c722d5fe27501b1a47f0ba7cefd4606a02', part: "content", class: `flex min-w-0 flex-1 flex-col gap-8 ${this.closable ? 'pr-48' : ''}` }, index.h("div", { key: 'f32ff5d0ecc87275bd2718a71c2a96f1fe0ac6b7', class: "flex flex-col gap-4" }, this.toastTitle && (index.h("p", { key: 'dc2f65ec3fcd086b02773418bf2924ea6f01e701', class: "toast-copy toast-title text-label-medium-bold text-text-primary", title: this.toastTitle }, this.toastTitle)), this.message && (index.h("p", { key: '104a85f067244457539909e8036796e3570cdfdf', class: "toast-copy toast-message text-label-medium-regular text-text-secondary", title: this.message }, this.message))), this.actionText && (index.h("button", { key: '639b1c14313399f0056e70fb879f72ae5014205b', type: "button", class: `toast-copy toast-action self-start text-left text-label-medium-bold text-text-link underline rounded ${FOCUS_RING_CLASSES}`, title: this.actionText, onClick: () => this.toastAction.emit() }, this.actionText))), this.closable && (index.h("button", { key: '2b63982164c3e35690dc921e7f0f0878cef818a5', part: "close-button", type: "button", "aria-label": this.closeLabel, class: `absolute top-16 right-16 flex items-center justify-center w-24 h-24 rounded ${intent.color} ${FOCUS_RING_CLASSES}`, onClick: () => this.toastDismissRequested.emit({ reason: 'close' }) }, index.h("sula-icon", { key: 'a7666e98a44dd1e4501f232b3bb3d70473722ae7', "aria-hidden": "true", icon: "ph ph-x", customClass: "text-2xl", class: "flex leading-none" }))), index.h("svg", { key: '22ad2843114e6aa52f476c41f81837b512ab034d', class: "toast-border", "aria-hidden": "true", focusable: "false" }, index.h("rect", { key: '3922928d198857759a5e8a9f6c4a6e87cd1212a7', class: "toast-border__path", pathLength: "1" }))), index.h("div", { key: '2d9c03bafa378912efbcfbf6d9b8584147698bcb', class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.announcement === 'polite' ? this.announcedText : ''), index.h("div", { key: 'af1e0251f71990bde120281f167de0e24d498b65', class: "sr-only", role: "alert", "aria-live": "assertive", "aria-atomic": "true" }, this.announcement === 'assertive' ? this.announcedText : '')));
179
179
  }
180
180
  get hostElement() { return index.getElement(this); }
181
181
  static get watchers() { return {
@@ -611,21 +611,21 @@ const SulaWorkbenchMenu = class {
611
611
  const expandedView = !this.collapsed || this.previewExpanded;
612
612
  const drilled = expandedView && this.isDrilled();
613
613
  const activeParent = this.stack[this.stack.length - 1];
614
- return (index.h(index.Host, { key: 'bcfe0dcba1c108dd509ddbc03587a48187634886', class: {
614
+ return (index.h(index.Host, { key: 'ab2f6194a30ca48695e5861b4fd34c1c8f926bec', class: {
615
615
  'menu-host--collapsed': this.collapsed,
616
616
  'menu-host--preview': this.collapsed && this.previewExpanded,
617
617
  'menu-host--density-compact': this.density === sulaMenu_model.SulaMenuDensity.Compact,
618
618
  'menu-host--density-comfortable': this.density === sulaMenu_model.SulaMenuDensity.Comfortable,
619
- }, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, index.h("aside", { key: '1fd3ab998fff6a0bac168956b7e60efd37cb1889', part: "shell", ref: el => (this.shellEl = el), class: {
619
+ }, style: this.hostStyleVariables, onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave() }, index.h("aside", { key: '8019d8e64ab613cd56a5f7a43c7524515738bd47', part: "shell", ref: el => (this.shellEl = el), class: {
620
620
  'menu-shell flex h-full flex-col bg-surface-body shadow-md z-50': true,
621
621
  'menu-shell--collapsed': this.collapsed && !this.previewExpanded,
622
622
  'menu-shell--expanded': expandedView,
623
623
  'menu-shell--preview': this.collapsed && this.previewExpanded,
624
624
  'menu-shell--drilled': drilled,
625
- } }, drilled && this.renderDrillLayers(), drilled ? this.renderDrillHeader(activeParent) : this.renderRootHeader(expandedView), index.h("nav", { key: '40063d935bf797fde0378a37da3594ebeca1d3ff', class: {
625
+ } }, drilled && this.renderDrillLayers(), drilled ? this.renderDrillHeader(activeParent) : this.renderRootHeader(expandedView), index.h("nav", { key: 'c49e5bbbcad96f97a78c937cc9881c04bd1a614a', class: {
626
626
  'menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden': true,
627
627
  'px-12': !expandedView,
628
- } }, drilled ? (this.renderDrillPanel()) : (index.h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (index.h("div", { key: 'ce167e4897f3b43ee167fcec275e81abdc20b697', class: "menu-footer pt-12" }, this.renderUserInfo(expandedView)))), this.user && index.h("span", { key: 'fa2b56c1c22499896404466de15ad32aa7915f93', class: "profile-origin", "aria-hidden": "true", ref: el => (this.profileOriginEl = el) }), this.user && this.renderProfilePopover(expandedView)));
628
+ } }, drilled ? (this.renderDrillPanel()) : (index.h("ul", { class: "flex flex-col" }, this.renderInlineList(this.items, 1, expandedView)))), this.user && (index.h("div", { key: '9ac5a2f21cdacd18dc8f127905293b54bb3ef592', class: "menu-footer pt-12" }, this.renderUserInfo(expandedView)))), this.user && index.h("span", { key: '58b2452d40614cd366bcefb186fbafc7930a2ebe', class: "profile-origin", "aria-hidden": "true", ref: el => (this.profileOriginEl = el) }), this.user && this.renderProfilePopover(expandedView)));
629
629
  }
630
630
  get el() { return index.getElement(this); }
631
631
  static get watchers() { return {
@@ -18,7 +18,7 @@ var patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(async (options) => {
20
20
  await index.globalScripts();
21
- return index.bootstrapLazy([["sula-avatar_32.cjs",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"modalWidth":[1,"modal-width"],"slotMaxHeight":[1,"slot-max-height"],"slotAutoHeight":[4,"slot-auto-height"],"primaryButtonDisabled":[4,"primary-button-disabled"],"secondaryButtonDisabled":[4,"secondary-button-disabled"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-profile-menu.cjs",[[1,"sula-profile-menu",{"user":[16],"items":[1040]}]]],["sula-workbench-menu.cjs",[[1,"sula-workbench-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"drillPath":[16,"drill-path"],"items":[1040],"user":[16],"defaultIcon":[1,"default-icon"],"profileItems":[1040,"profile-items"],"collapsed":[32],"previewExpanded":[32],"drillMode":[32],"stack":[32],"direction":[32],"selectedPath":[32],"crumbMenu":[32],"profileOpen":[32]},[[4,"click","onDocumentClick"],[4,"keydown","onDocumentKeydown"],[9,"resize","onWindowResize"]],{"items":["syncWithItems"],"drillPath":["syncDrillPath"]}]]],["sula-toast.cjs",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack.cjs",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
21
+ return index.bootstrapLazy([["sula-avatar_32.cjs",[[1,"sula-icon-picker",{"label":[1025],"required":[1028],"disabled":[1028],"error":[1025],"value":[1025],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"icons":[1040],"maxVisibleIcons":[2,"max-visible-icons"],"menuMaxHeight":[2,"menu-max-height"],"selectedIcon":[32],"searchTerm":[32]},null,{"value":["handleValueChange"],"icons":["handleIconsChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"icon":[1],"items":[1040],"itemsPlacement":[1025,"items-placement"],"selected":[1028],"loading":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]],{"loading":["handleLoadingChange"]}],[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"modalWidth":[1,"modal-width"],"slotMaxHeight":[1,"slot-max-height"],"slotAutoHeight":[4,"slot-auto-height"],"primaryButtonDisabled":[4,"primary-button-disabled"],"secondaryButtonDisabled":[4,"secondary-button-disabled"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-calendar",{"label":[1],"value":[1025],"placeholder":[1],"disabled":[4],"helpText":[1,"help-text"],"status":[1],"locale":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"range":[4],"allowTyping":[4,"allow-typing"],"inline":[4],"compact":[4],"firstDayOfWeek":[2,"first-day-of-week"],"closeOnSelect":[4,"close-on-select"],"showCalendar":[32],"openUpward":[32],"viewMonth":[32],"viewYear":[32],"hoverDate":[32]},[[4,"click","handleDocumentClick"],[4,"keydown","handleDocumentKeydown"]],{"value":["handleValueChange"]}],[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-badge",{"status":[1025],"size":[1025],"type":[1025],"text":[1025],"icon":[1025],"hasSlotContent":[32]}],[1,"sula-breadcrumb",{"items":[1040]}],[1,"sula-checkbox",{"type":[1025],"label":[1025],"subTitle":[1025,"sub-title"],"disabled":[1028],"checked":[1028],"isFocus":[32]}],[1,"sula-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"items":[1040],"collapsed":[32],"previewExpanded":[32],"selectedItem":[32]},null,{"items":["syncSelectedItemFromItems"]}],[1,"sula-progress-bar",{"appearance":[1025],"state":[1025],"topLabel":[1025,"top-label"],"bottomLabel":[1025,"bottom-label"],"progress":[1026],"showProgress":[1028,"show-progress"]},null,{"progress":["validateProgress"]}],[1,"sula-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[1,"sula-tag",{"label":[1025],"icon":[1025],"iconStatus":[1025,"icon-status"],"size":[1025],"appearance":[1025],"fontWeight":[1025,"font-weight"]}],[1,"sula-tiles",{"type":[1],"size":[1],"ellipsis":[4],"icon":[1],"text":[1],"subText":[1,"sub-text"],"disabled":[4]}],[1,"sula-timeline-list",{"sulaTimelineList":[1040,"sula-timeline-list"]}],[1,"sula-toggle",{"selected":[1028],"buttonDisabled":[1028,"button-disabled"],"icon":[1]}],[1,"sula-tooltip",{"text":[1],"position":[1],"icon":[1],"iconClass":[1,"icon-class"],"focused":[4],"trigger":[1],"appendToBody":[4,"append-to-body"],"isVisible":[32]},null,{"text":["handleTextChange"]}],[1,"sula-radio-button",{"checked":[1028],"label":[1025],"disabled":[1028],"radioIsFocus":[32]}],[4,"sula-table",{"density":[1],"equalWidth":[4,"equal-width"],"fullWidth":[4,"full-width"]}],[4,"sula-table-body"],[4,"sula-table-cell"],[4,"sula-table-head-cell"],[4,"sula-table-header"],[4,"sula-table-row"],[1,"sula-textarea",{"value":[1025],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"rows":[2],"isActive":[32],"textValue":[32],"textareaIsFocused":[32],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[1,"sula-button",{"text":[1025],"icon":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"],"fullWidth":[1028,"full-width"]}],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"hasError":[1540,"has-error"],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[1,"sula-search-bar",{"value":[1025],"searchBarStyle":[1025,"search-bar-style"],"placeholder":[1025],"leftIcon":[1025,"left-icon"],"rightIcon":[1025,"right-icon"],"isFocused":[32],"textValue":[32]}],[1,"sula-textfield",{"value":[1025],"type":[1],"status":[1025],"label":[1],"placeholder":[1],"disabled":[1028],"readOnly":[4,"read-only"],"helpText":[1,"help-text"],"maxLength":[2,"max-length"],"icon":[1],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[1,"sula-switch",{"type":[1025],"active":[1028],"disabled":[1028],"label":[1025],"subTitle":[1025,"sub-title"],"responsive":[4],"isFocus":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[1,"sula-loader",{"size":[1],"animationInstance":[32]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]],["sula-profile-menu.cjs",[[1,"sula-profile-menu",{"user":[16],"items":[1040]}]]],["sula-workbench-menu.cjs",[[1,"sula-workbench-menu",{"menuTitle":[1,"menu-title"],"image":[1],"width":[1],"density":[1],"labelOverflow":[1,"label-overflow"],"drillPath":[16,"drill-path"],"items":[1040],"user":[16],"defaultIcon":[1,"default-icon"],"profileItems":[1040,"profile-items"],"collapsed":[32],"previewExpanded":[32],"drillMode":[32],"stack":[32],"direction":[32],"selectedPath":[32],"crumbMenu":[32],"profileOpen":[32]},[[4,"click","onDocumentClick"],[4,"keydown","onDocumentKeydown"],[9,"resize","onWindowResize"]],{"items":["syncWithItems"],"drillPath":["syncDrillPath"]}]]],["sula-toast.cjs",[[1,"sula-toast",{"toastTitle":[1,"toast-title"],"message":[1],"type":[1],"icon":[1],"actionText":[1,"action-text"],"closable":[4],"duration":[2],"paused":[4],"animated":[4],"announcement":[1],"closeLabel":[1,"close-label"],"announcedText":[32]},[[4,"visibilitychange","updateTimeout"]],{"toastTitle":["handleContentChange"],"message":["handleContentChange"],"actionText":["handleContentChange"],"duration":["handleContentChange"],"announcement":["updateAnnouncement"],"paused":["updateTimeout"]}]]],["sula-toast-stack.cjs",[[1,"sula-toast-stack",{"items":[16],"hovering":[32],"focused":[32],"noHover":[32],"retainingPointerExpansion":[32],"announcements":[32]},null,{"items":["handleItemsChange"]}]]]], options);
22
22
  });
23
23
 
24
24
  exports.setNonce = index.setNonce;
@@ -1 +1 @@
1
- *,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.outline{outline-style:solid}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{display:block}.chip-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.chip-opened{box-shadow:0 0 0 2px hsla(0,0%,8%,.102)}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-40{bottom:2.5rem}.left-0{left:0}.top-40{top:2.5rem}.z-50{z-index:50}.ml-8{margin-left:.5rem}.mr-8{margin-right:.5rem}.flex{display:flex}.min-h-40{min-height:2.5rem}.w-fit{width:fit-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-input{border-color:var(--color-line-input)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-states-negative-pressed{background-color:var(--color-states-negative-pressed)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.px-16{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.125rem;padding-top:.125rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.hover\:bg-states-negative-hover:hover{background-color:var(--color-states-negative-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}.active\:bg-states-negative-pressed:active{background-color:var(--color-states-negative-pressed)}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format("truetype")}.w-full{width:100%}.gap-8{gap:.5rem}.overflow-auto{overflow:auto}.rounded-sm{border-radius:.75rem}.border-line-general{border-color:var(--color-line-general)}.bg-surface-body{background-color:var(--color-surface-body)}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.py-16{padding-bottom:1rem;padding-top:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-text-brand{color:var(--color-text-brand)}
1
+ *,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.outline{outline-style:solid}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{display:block}.chip-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.chip-opened{box-shadow:0 0 0 2px hsla(0,0%,8%,.102)}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-40{bottom:2.5rem}.left-0{left:0}.top-40{top:2.5rem}.z-50{z-index:50}.ml-8{margin-left:.5rem}.mr-8{margin-right:.5rem}.flex{display:flex}.min-h-40{min-height:2.5rem}.w-fit{width:fit-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-line-input{border-color:var(--color-line-input)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-negative-negative-1{background-color:var(--color-negative-negative-1)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-states-empty-bg-pressed{background-color:var(--color-states-empty-bg-pressed)}.bg-states-negative-pressed{background-color:var(--color-states-negative-pressed)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.px-16{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.125rem;padding-top:.125rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.leading-4{line-height:1rem}.text-negative-negative-1{color:var(--color-negative-negative-1)}.text-negative-negative-2{color:var(--color-negative-negative-2)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.hover\:bg-states-negative-hover:hover{background-color:var(--color-states-negative-hover)}.active\:bg-states-empty-bg-pressed:active{background-color:var(--color-states-empty-bg-pressed)}.active\:bg-states-negative-pressed:active{background-color:var(--color-states-negative-pressed)}.container{width:100%}@media (min-width:22.5rem){.container{max-width:22.5rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format("truetype")}.w-full{width:100%}.gap-8{gap:.5rem}.overflow-auto{overflow:auto}.rounded-sm{border-radius:.75rem}.border-line-general{border-color:var(--color-line-general)}.bg-surface-body{background-color:var(--color-surface-body)}.px-24{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-bottom:.75rem;padding-top:.75rem}.py-16{padding-bottom:1rem;padding-top:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-text-brand{color:var(--color-text-brand)}
@@ -1,4 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { SulaLoaderSize } from "../sula-loader/model/sula-loader.model";
2
3
  import { SulaChipAppearance, SulaChipItemsPlacement } from "./model/sula-chip.model";
3
4
  export class SulaChip {
4
5
  constructor() {
@@ -26,20 +27,24 @@ export class SulaChip {
26
27
  * Chip is selected
27
28
  */
28
29
  this.selected = false;
30
+ /**
31
+ * Chip is loading: keeps the content and shows a loader on the right
32
+ */
33
+ this.loading = false;
29
34
  this.isFocused = false;
30
35
  this.showItems = false;
31
36
  this.handleFocus = () => {
32
- if (this.disabled)
37
+ if (this.disabled || this.loading)
33
38
  return;
34
39
  this.isFocused = true;
35
40
  };
36
41
  this.handleBlur = () => {
37
- if (this.disabled)
42
+ if (this.disabled || this.loading)
38
43
  return;
39
44
  this.isFocused = false;
40
45
  };
41
46
  this.handleClick = () => {
42
- if (this.disabled)
47
+ if (this.disabled || this.loading)
43
48
  return;
44
49
  this.itemClicked.emit();
45
50
  if (this.items.length > 0) {
@@ -52,6 +57,12 @@ export class SulaChip {
52
57
  this.showItems = false;
53
58
  };
54
59
  }
60
+ handleLoadingChange(isLoading) {
61
+ if (isLoading) {
62
+ this.showItems = false;
63
+ this.isFocused = false;
64
+ }
65
+ }
55
66
  handleDocumentClick(event) {
56
67
  if (!this.node)
57
68
  return;
@@ -79,26 +90,29 @@ export class SulaChip {
79
90
  return this.appearance === SulaChipAppearance.Default ? 'text-text-primary' : 'text-negative-negative-2';
80
91
  }
81
92
  render() {
82
- return (h(Host, { key: '46deed1dcfe849ed448997022535124ea59a1671', ref: node => (this.node = node) }, h("div", { key: 'd7db32bc10406f6733f0adae522608907ffb5a83', class: "w-fit relative" }, h("div", { key: 'e285e29f0e7912ad42f7e0087401d8c530e50db7', class: {
93
+ return (h(Host, { key: '1ee5c15f249770d172e9046bc2ec802bf55c6457', ref: node => (this.node = node) }, h("div", { key: '90329eefa223a940ec26006af0824bb6c19591d2', class: "w-fit relative" }, h("div", { key: 'afec6165548e53a53a18fb6a82f20fce42ef5a8d', class: {
83
94
  'flex justify-center items-center px-16 py-2 rounded-xxl min-h-40 w-fit outline-none': true,
84
- 'bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
95
+ 'bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected && !this.loading,
96
+ 'bg-surface-on-body': this.loading && this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
85
97
  'bg-brand-primary': this.selected && !this.disabled,
86
- 'bg-negative-negative-1 hover:bg-states-negative-hover active:bg-states-negative-pressed': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,
98
+ 'bg-negative-negative-1 hover:bg-states-negative-hover active:bg-states-negative-pressed': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected && !this.loading,
99
+ 'bg-negative-negative-1': this.loading && this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,
87
100
  'bg-states-bg-disabled cursor-not-allowed': this.disabled,
88
- 'cursor-pointer': !this.disabled,
101
+ 'cursor-wait': this.loading && !this.disabled,
102
+ 'cursor-pointer': !this.disabled && !this.loading,
89
103
  'border border-line-input chip-opened': !this.disabled && this.showItems,
90
104
  'chip-focus': this.isFocused,
91
- }, tabIndex: 0, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.icon && (h("div", { key: '9722b8641dd2e323e3723cc49d1f5050f890556c', class: { 'flex items-center justify-center leading-4': true, 'mr-8': !!this.text }, "data-chip-icon": true }, h("sula-icon", { key: 'f09dc0503dcab867d47394b2b5cb65bef60cb3f1', icon: this.icon, customClass: `text-xl ${this.getLeadingIconClass()}` }))), h("span", { key: '8f493ac8721f562842f58814963fa46c5dab8a47', class: {
105
+ }, tabIndex: this.loading ? -1 : 0, "aria-busy": this.loading ? 'true' : 'false', onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.icon && (h("div", { key: '88bb8e09bfcf654d10709c6d8ec18cee9438e43c', class: { 'flex items-center justify-center leading-4': true, 'mr-8': !!this.text }, "data-chip-icon": true }, h("sula-icon", { key: '85840a55abbf7eb57f898fc7143671ebff3eec2e', icon: this.icon, customClass: `text-xl ${this.getLeadingIconClass()}` }))), h("span", { key: '1e38867880a1d7cda2dc8a3dce156c9d78499b70', class: {
92
106
  'text-base font-bold leading-4': true,
93
107
  'text-text-primary': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
94
108
  'text-negative-negative-2': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,
95
109
  'text-negative-negative-1': this.selected && !this.disabled,
96
110
  'text-text-disabled': this.disabled,
97
- } }, this.text), this.items.length > 0 && (h("div", { key: '792a4ccf0f7d727d6d3531aef3789039ecc1a032', class: "flex items-center justify-center ml-8 leading-4" }, h("sula-icon", { key: '7b35318065463466fadd073f5ccefbec2f70fc28', icon: `ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`, customClass: this.getIconClass() })))), this.showItems && (h("div", { key: 'c2e7a4383966ed6f57b4c614aecfd9569a7d3342', class: {
111
+ } }, this.text), this.loading && (h("div", { key: '1cd667f32c9d6f1035c9fa544d7dc1fee58cf4a4', class: "flex items-center justify-center ml-8", "data-chip-loader": true }, h("sula-loader", { key: '75da1baccdabcaf44209ad5a93851d86b6900d62', size: SulaLoaderSize.Small }))), !this.loading && this.items.length > 0 && (h("div", { key: '24003296fb59a106607f2638ec35e75d4708e562', class: "flex items-center justify-center ml-8 leading-4" }, h("sula-icon", { key: '39e538feb2ec245032dc008f7472a7e2bdf6c950', icon: `ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`, customClass: this.getIconClass() })))), this.showItems && (h("div", { key: '8a7ed63f8c78b3ae3eac6e5ff8bf63971ef6f177', class: {
98
112
  'absolute z-50 left-0': true,
99
113
  'top-40': this.itemsPlacement !== SulaChipItemsPlacement.Top,
100
114
  'bottom-40': this.itemsPlacement === SulaChipItemsPlacement.Top,
101
- } }, h("sula-menu-select-list", { key: 'db3a35b16ff28f8fb5e354f5f617088ea33c4615', items: this.items, onItemSelected: this.handleItemSelected }))))));
115
+ } }, h("sula-menu-select-list", { key: 'd599f80a6c67fabbaa4041ef9ca5651735023ad2', items: this.items, onItemSelected: this.handleItemSelected }))))));
102
116
  }
103
117
  static get is() { return "sula-chip"; }
104
118
  static get encapsulation() { return "shadow"; }
@@ -269,6 +283,26 @@ export class SulaChip {
269
283
  "setter": false,
270
284
  "reflect": false,
271
285
  "defaultValue": "false"
286
+ },
287
+ "loading": {
288
+ "type": "boolean",
289
+ "attribute": "loading",
290
+ "mutable": true,
291
+ "complexType": {
292
+ "original": "boolean",
293
+ "resolved": "boolean",
294
+ "references": {}
295
+ },
296
+ "required": false,
297
+ "optional": false,
298
+ "docs": {
299
+ "tags": [],
300
+ "text": "Chip is loading: keeps the content and shows a loader on the right"
301
+ },
302
+ "getter": false,
303
+ "setter": false,
304
+ "reflect": false,
305
+ "defaultValue": "false"
272
306
  }
273
307
  };
274
308
  }
@@ -317,6 +351,12 @@ export class SulaChip {
317
351
  }
318
352
  }];
319
353
  }
354
+ static get watchers() {
355
+ return [{
356
+ "propName": "loading",
357
+ "methodName": "handleLoadingChange"
358
+ }];
359
+ }
320
360
  static get listeners() {
321
361
  return [{
322
362
  "name": "click",
@@ -1 +1 @@
1
- {"version":3,"file":"sula-chip.js","sourceRoot":"","sources":["../../../src/components/sula-chip/sula-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAQrF,MAAM,OAAO,QAAQ;IALrB;QAME;;WAEG;QAEH,SAAI,GAAW,EAAE,CAAC;QAElB;;WAEG;QAEH,eAAU,GAAuB,kBAAkB,CAAC,OAAO,CAAC;QAE5D;;WAEG;QAEH,aAAQ,GAAY,KAAK,CAAC;QAQ1B;;WAEG;QAEH,UAAK,GAAuB,EAAE,CAAC;QAE/B;;WAEG;QAEH,mBAAc,GAA2B,sBAAsB,CAAC,MAAM,CAAC;QAEvE;;WAEG;QAEH,aAAQ,GAAY,KAAK,CAAC;QAe1B,cAAS,GAAG,KAAK,CAAC;QAGlB,cAAS,GAAG,KAAK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I,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,kBAAkB,GAA0B,CACvG,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Listen, Prop, State, h } from '@stencil/core';\nimport { SulaMenuListItem } from '../sula-menu-select-list/model/sula-menu-select-list.model';\nimport { SulaChipAppearance, SulaChipItemsPlacement } from './model/sula-chip.model';\nimport { SulaMenuSelectListCustomEvent } from '../../components';\n\n@Component({\n tag: 'sula-chip',\n styleUrl: 'sula-chip.scss',\n shadow: true,\n})\nexport class SulaChip {\n /**\n * Chip text\n */\n @Prop({ mutable: true })\n text: string = '';\n\n /**\n * Chip appearance\n */\n @Prop({ mutable: true })\n appearance: SulaChipAppearance = SulaChipAppearance.Default;\n\n /**\n * Chip is disabled\n */\n @Prop({ mutable: true })\n disabled: boolean = false;\n\n /**\n * Icon class displayed before the text, e.g. `ph ph-download-simple`\n */\n @Prop()\n icon?: string;\n\n /**\n * Items for list\n */\n @Prop({ mutable: true })\n items: SulaMenuListItem[] = [];\n\n /**\n * Where the items list opens relative to the chip\n */\n @Prop({ mutable: true })\n itemsPlacement: SulaChipItemsPlacement = SulaChipItemsPlacement.Bottom;\n\n /**\n * Chip is selected\n */\n @Prop({ mutable: true })\n selected: boolean = false;\n\n /**\n * Event emitted when chip is clicked\n */\n @Event()\n itemClicked: EventEmitter<void>;\n\n /**\n * Event emitted when item is selected\n */\n @Event()\n menuItemSelected: EventEmitter<SulaMenuListItem>;\n\n @State()\n isFocused = false;\n\n @State()\n showItems = false;\n\n node?: HTMLElement;\n\n @Listen('click', { target: 'document' })\n handleDocumentClick(event: Event) {\n if (!this.node) return;\n\n // event.target is retargeted to the outer host when the chip lives inside another shadow root\n const clickInside = event.composedPath().includes(this.node);\n\n if (!clickInside) {\n this.showItems = false;\n }\n }\n\n handleFocus = () => {\n if (this.disabled) return;\n this.isFocused = true;\n };\n\n handleBlur = () => {\n if (this.disabled) return;\n this.isFocused = false;\n };\n\n handleClick = () => {\n if (this.disabled) return;\n\n this.itemClicked.emit();\n\n if (this.items.length > 0) {\n this.showItems = !this.showItems;\n this.isFocused = false;\n }\n };\n\n handleItemSelected = (item: SulaMenuSelectListCustomEvent<SulaMenuListItem>) => {\n this.menuItemSelected.emit(item.detail);\n this.showItems = false;\n };\n\n getIconClass() {\n if (this.disabled) return 'text-text-disabled';\n\n if (this.appearance === SulaChipAppearance.Default) {\n return 'text-text-primary';\n } else {\n return 'text-negative-negative-2';\n }\n }\n\n getLeadingIconClass() {\n if (this.disabled) return 'text-text-disabled';\n if (this.selected) return 'text-negative-negative-1';\n\n return this.appearance === SulaChipAppearance.Default ? 'text-text-primary' : 'text-negative-negative-2';\n }\n\n render() {\n return (\n <Host ref={node => (this.node = node)}>\n <div class=\"w-fit relative\">\n <div\n class={{\n 'flex justify-center items-center px-16 py-2 rounded-xxl min-h-40 w-fit outline-none': true,\n 'bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed':\n this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,\n 'bg-brand-primary': this.selected && !this.disabled,\n 'bg-negative-negative-1 hover:bg-states-negative-hover active:bg-states-negative-pressed':\n this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,\n 'bg-states-bg-disabled cursor-not-allowed': this.disabled,\n 'cursor-pointer': !this.disabled,\n 'border border-line-input chip-opened': !this.disabled && this.showItems,\n 'chip-focus': this.isFocused,\n }}\n tabIndex={0}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n >\n {this.icon && (\n <div class={{ 'flex items-center justify-center leading-4': true, 'mr-8': !!this.text }} data-chip-icon>\n <sula-icon icon={this.icon} customClass={`text-xl ${this.getLeadingIconClass()}`}></sula-icon>\n </div>\n )}\n <span\n class={{\n 'text-base font-bold leading-4': true,\n 'text-text-primary': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,\n 'text-negative-negative-2': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,\n 'text-negative-negative-1': this.selected && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.text}\n </span>\n\n {this.items.length > 0 && (\n <div class=\"flex items-center justify-center ml-8 leading-4\">\n <sula-icon icon={`ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`} customClass={this.getIconClass()}></sula-icon>\n </div>\n )}\n </div>\n {this.showItems && (\n <div\n class={{\n 'absolute z-50 left-0': true,\n 'top-40': this.itemsPlacement !== SulaChipItemsPlacement.Top,\n 'bottom-40': this.itemsPlacement === SulaChipItemsPlacement.Top,\n }}\n >\n <sula-menu-select-list items={this.items} onItemSelected={this.handleItemSelected}></sula-menu-select-list>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"sula-chip.js","sourceRoot":"","sources":["../../../src/components/sula-chip/sula-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAQrF,MAAM,OAAO,QAAQ;IALrB;QAME;;WAEG;QAEH,SAAI,GAAW,EAAE,CAAC;QAElB;;WAEG;QAEH,eAAU,GAAuB,kBAAkB,CAAC,OAAO,CAAC;QAE5D;;WAEG;QAEH,aA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GAAG;qBAChE;oBAED,8EAAuB,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,kBAAkB,GAA0B,CACvG,CACP,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Listen, Prop, State, Watch, h } from '@stencil/core';\nimport { SulaLoaderSize } from '../sula-loader/model/sula-loader.model';\nimport { SulaMenuListItem } from '../sula-menu-select-list/model/sula-menu-select-list.model';\nimport { SulaChipAppearance, SulaChipItemsPlacement } from './model/sula-chip.model';\nimport { SulaMenuSelectListCustomEvent } from '../../components';\n\n@Component({\n tag: 'sula-chip',\n styleUrl: 'sula-chip.scss',\n shadow: true,\n})\nexport class SulaChip {\n /**\n * Chip text\n */\n @Prop({ mutable: true })\n text: string = '';\n\n /**\n * Chip appearance\n */\n @Prop({ mutable: true })\n appearance: SulaChipAppearance = SulaChipAppearance.Default;\n\n /**\n * Chip is disabled\n */\n @Prop({ mutable: true })\n disabled: boolean = false;\n\n /**\n * Icon class displayed before the text, e.g. `ph ph-download-simple`\n */\n @Prop()\n icon?: string;\n\n /**\n * Items for list\n */\n @Prop({ mutable: true })\n items: SulaMenuListItem[] = [];\n\n /**\n * Where the items list opens relative to the chip\n */\n @Prop({ mutable: true })\n itemsPlacement: SulaChipItemsPlacement = SulaChipItemsPlacement.Bottom;\n\n /**\n * Chip is selected\n */\n @Prop({ mutable: true })\n selected: boolean = false;\n\n /**\n * Chip is loading: keeps the content and shows a loader on the right\n */\n @Prop({ mutable: true })\n loading: boolean = false;\n\n /**\n * Event emitted when chip is clicked\n */\n @Event()\n itemClicked: EventEmitter<void>;\n\n /**\n * Event emitted when item is selected\n */\n @Event()\n menuItemSelected: EventEmitter<SulaMenuListItem>;\n\n @State()\n isFocused = false;\n\n @State()\n showItems = false;\n\n node?: HTMLElement;\n\n @Watch('loading')\n handleLoadingChange(isLoading: boolean) {\n if (isLoading) {\n this.showItems = false;\n this.isFocused = false;\n }\n }\n\n @Listen('click', { target: 'document' })\n handleDocumentClick(event: Event) {\n if (!this.node) return;\n\n // event.target is retargeted to the outer host when the chip lives inside another shadow root\n const clickInside = event.composedPath().includes(this.node);\n\n if (!clickInside) {\n this.showItems = false;\n }\n }\n\n handleFocus = () => {\n if (this.disabled || this.loading) return;\n this.isFocused = true;\n };\n\n handleBlur = () => {\n if (this.disabled || this.loading) return;\n this.isFocused = false;\n };\n\n handleClick = () => {\n if (this.disabled || this.loading) return;\n\n this.itemClicked.emit();\n\n if (this.items.length > 0) {\n this.showItems = !this.showItems;\n this.isFocused = false;\n }\n };\n\n handleItemSelected = (item: SulaMenuSelectListCustomEvent<SulaMenuListItem>) => {\n this.menuItemSelected.emit(item.detail);\n this.showItems = false;\n };\n\n getIconClass() {\n if (this.disabled) return 'text-text-disabled';\n\n if (this.appearance === SulaChipAppearance.Default) {\n return 'text-text-primary';\n } else {\n return 'text-negative-negative-2';\n }\n }\n\n getLeadingIconClass() {\n if (this.disabled) return 'text-text-disabled';\n if (this.selected) return 'text-negative-negative-1';\n\n return this.appearance === SulaChipAppearance.Default ? 'text-text-primary' : 'text-negative-negative-2';\n }\n\n render() {\n return (\n <Host ref={node => (this.node = node)}>\n <div class=\"w-fit relative\">\n <div\n class={{\n 'flex justify-center items-center px-16 py-2 rounded-xxl min-h-40 w-fit outline-none': true,\n 'bg-surface-on-body hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed':\n this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected && !this.loading,\n 'bg-surface-on-body': this.loading && this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,\n 'bg-brand-primary': this.selected && !this.disabled,\n 'bg-negative-negative-1 hover:bg-states-negative-hover active:bg-states-negative-pressed':\n this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected && !this.loading,\n 'bg-negative-negative-1': this.loading && this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,\n 'bg-states-bg-disabled cursor-not-allowed': this.disabled,\n 'cursor-wait': this.loading && !this.disabled,\n 'cursor-pointer': !this.disabled && !this.loading,\n 'border border-line-input chip-opened': !this.disabled && this.showItems,\n 'chip-focus': this.isFocused,\n }}\n tabIndex={this.loading ? -1 : 0}\n aria-busy={this.loading ? 'true' : 'false'}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n >\n {this.icon && (\n <div class={{ 'flex items-center justify-center leading-4': true, 'mr-8': !!this.text }} data-chip-icon>\n <sula-icon icon={this.icon} customClass={`text-xl ${this.getLeadingIconClass()}`}></sula-icon>\n </div>\n )}\n <span\n class={{\n 'text-base font-bold leading-4': true,\n 'text-text-primary': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,\n 'text-negative-negative-2': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,\n 'text-negative-negative-1': this.selected && !this.disabled,\n 'text-text-disabled': this.disabled,\n }}\n >\n {this.text}\n </span>\n\n {this.loading && (\n <div class=\"flex items-center justify-center ml-8\" data-chip-loader>\n <sula-loader size={SulaLoaderSize.Small}></sula-loader>\n </div>\n )}\n\n {!this.loading && this.items.length > 0 && (\n <div class=\"flex items-center justify-center ml-8 leading-4\">\n <sula-icon icon={`ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`} customClass={this.getIconClass()}></sula-icon>\n </div>\n )}\n </div>\n {this.showItems && (\n <div\n class={{\n 'absolute z-50 left-0': true,\n 'top-40': this.itemsPlacement !== SulaChipItemsPlacement.Top,\n 'bottom-40': this.itemsPlacement === SulaChipItemsPlacement.Top,\n }}\n >\n <sula-menu-select-list items={this.items} onItemSelected={this.handleItemSelected}></sula-menu-select-list>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -36,6 +36,14 @@ export default {
36
36
  required: false,
37
37
  },
38
38
  },
39
+ loading: {
40
+ control: 'boolean',
41
+ defaultValue: false,
42
+ description: 'Mantém o conteúdo e exibe um loader à direita, bloqueando a interação',
43
+ type: {
44
+ required: false,
45
+ },
46
+ },
39
47
  icon: {
40
48
  control: 'text',
41
49
  description: 'Classe do ícone exibido antes do texto, ex.: `ph ph-download-simple`',
@@ -89,6 +97,8 @@ const Template = args => {
89
97
  el.setAttribute('disabled', args.disabled.toString());
90
98
  if (args.selected)
91
99
  el.setAttribute('selected', args.selected.toString());
100
+ if (args.loading)
101
+ el.setAttribute('loading', args.loading.toString());
92
102
  if (args.icon)
93
103
  el.setAttribute('icon', args.icon);
94
104
  if (args.itemsPlacement)
@@ -212,4 +222,33 @@ DisabledWithIcon.args = {
212
222
  disabled: true,
213
223
  items: [],
214
224
  };
225
+ export const Loading = Template.bind({});
226
+ Loading.args = {
227
+ text: 'Carregando',
228
+ appearance: SulaChipAppearance.Default,
229
+ disabled: false,
230
+ loading: true,
231
+ items: [],
232
+ };
233
+ export const LoadingWithIcon = Template.bind({});
234
+ LoadingWithIcon.args = {
235
+ text: 'Exportar',
236
+ icon: 'ph ph-download-simple',
237
+ appearance: SulaChipAppearance.Default,
238
+ disabled: false,
239
+ loading: true,
240
+ items: [],
241
+ };
242
+ export const LoadingWithItems = Template.bind({});
243
+ LoadingWithItems.args = {
244
+ text: 'Exportar',
245
+ icon: 'ph ph-download-simple',
246
+ appearance: SulaChipAppearance.Default,
247
+ disabled: false,
248
+ loading: true,
249
+ items: [
250
+ { id: '1', title: 'PDF para impressão' },
251
+ { id: '2', title: 'Arquivo CSV' },
252
+ ],
253
+ };
215
254
  //# sourceMappingURL=sula-chip.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"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IAAI,GAAG;IACtB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,kBAAkB,CAAC,OAAO;IACtC,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE,kBAAkB,CAAC,QAAQ;IACvC,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,kBAAkB,CAAC,OAAO;IACtC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,EAAE;CACV,CAAC","sourcesContent":["import { SulaChipAppearance, SulaChipItemsPlacement } from './model/sula-chip.model';\n\nexport default {\n title: 'Components/sula-chip',\n tags: ['autodocs'],\n argTypes: {\n text: {\n control: 'text',\n defaultValue: 'Chip Text',\n description: 'Chip text',\n type: {\n required: false,\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaChipAppearance),\n defaultValue: SulaChipAppearance.Default,\n description: 'Chip appearance',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is chip disabled',\n type: {\n required: false,\n },\n },\n selected: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is chip selected',\n type: {\n required: false,\n },\n },\n icon: {\n control: 'text',\n description: 'Classe do ícone exibido antes do texto, ex.: `ph ph-download-simple`',\n type: {\n required: false,\n },\n },\n items: {\n control: 'object',\n defaultValue: [],\n description: 'Items for dropdown list',\n type: {\n required: false,\n },\n },\n itemsPlacement: {\n control: { type: 'select' },\n options: Object.values(SulaChipItemsPlacement),\n defaultValue: SulaChipItemsPlacement.Bottom,\n description: 'Define se a lista de itens abre abaixo (bottom) ou acima (top) do chip',\n type: {\n required: false,\n },\n },\n itemClicked: {\n action: 'itemClicked',\n description: 'Evento emitido quando o chip é clicado',\n },\n itemSelected: {\n action: 'itemSelected',\n description: 'Evento emitido quando um item é selecionado',\n },\n },\n parameters: {\n docs: {\n description: {\n component: 'O componente Chip Sula Design System é utilizado como filtro, substituí botões pequenos e deve ser usado dentro de componentes de lista. ',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n if (args.itemsPlacement === SulaChipItemsPlacement.Top) container.style.marginTop = '160px';\n\n const el = document.createElement('sula-chip');\n\n if (args.text) el.setAttribute('text', args.text);\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('disabled', args.disabled.toString());\n if (args.selected) el.setAttribute('selected', args.selected.toString());\n if (args.icon) el.setAttribute('icon', args.icon);\n if (args.itemsPlacement) el.setAttribute('items-placement', args.itemsPlacement);\n\n if (args.items && args.items.length > 0) {\n el.items = args.items;\n }\n\n el.addEventListener('itemClicked', args.itemClicked);\n el.addEventListener('itemSelected', args.itemSelected);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n text: 'Default Chip',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [],\n};\n\nexport const NegativeAppearance = Template.bind({});\nNegativeAppearance.args = {\n text: 'Negative Chip',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n items: [],\n};\n\nexport const DisabledChip = Template.bind({});\nDisabledChip.args = {\n text: 'Disabled Chip',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n selected: false,\n items: [],\n};\n\nexport const SelectedChip = Template.bind({});\nSelectedChip.args = {\n text: 'Selected Chip',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: true,\n items: [],\n};\n\nexport const ChipWithDropdown = Template.bind({});\nChipWithDropdown.args = {\n text: 'Chip with Options',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: false,\n items: [\n { id: '1', title: 'Option 1' },\n { id: '2', title: 'Option 2' },\n { id: '3', title: 'Option 3' },\n ],\n};\n\nexport const NegativeChipWithDropdown = Template.bind({});\nNegativeChipWithDropdown.args = {\n text: 'Negative with Options',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n selected: false,\n items: [\n { id: '1', title: 'Remove Item 1' },\n { id: '2', title: 'Remove Item 2' },\n { id: '3', title: 'Remove Item 3' },\n ],\n};\n\nexport const DisabledChipWithItems = Template.bind({});\nDisabledChipWithItems.args = {\n text: 'Disabled with Items',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n selected: false,\n items: [\n { id: '1', title: 'Option 1' },\n { id: '2', title: 'Option 2' },\n ],\n};\n\nexport const WithIcon = Template.bind({});\nWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [],\n};\n\nexport const WithIconAndDropdown = Template.bind({});\nWithIconAndDropdown.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [\n { id: '1', title: 'PDF para impressão' },\n { id: '2', title: 'Arquivo CSV' },\n { id: '3', title: 'Arquivo Excel' },\n { id: '4', title: 'Arquivo TXT' },\n ],\n};\n\nexport const SelectedWithIcon = Template.bind({});\nSelectedWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: true,\n items: [],\n};\n\nexport const NegativeWithIcon = Template.bind({});\nNegativeWithIcon.args = {\n text: 'Remover',\n icon: 'ph ph-trash',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n items: [],\n};\n\nexport const DisabledWithIcon = Template.bind({});\nDisabledWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n items: [],\n};\n"]}
1
+ {"version":3,"file":"sula-chip.stories.js","sourceRoot":"","sources":["../../../src/components/sula-chip/sula-chip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAErF,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;YAC1C,YAAY,EAAE,kBAAkB,CAAC,OAAO;YACxC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,KAAK;YACnB,WAAW,EAAE,uEAAuE;YACpF,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,sEAAsE;YACn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AAC,OAAO;IACtC,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,kBAAkB,CAAC,OAAO;IACtC,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,kBAAkB,CAAC,OAAO;IACtC,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,oBAAoB,EAAE;QACxC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE;KAClC;CACF,CAAC","sourcesContent":["import { SulaChipAppearance, SulaChipItemsPlacement } from './model/sula-chip.model';\n\nexport default {\n title: 'Components/sula-chip',\n tags: ['autodocs'],\n argTypes: {\n text: {\n control: 'text',\n defaultValue: 'Chip Text',\n description: 'Chip text',\n type: {\n required: false,\n },\n },\n appearance: {\n control: { type: 'select' },\n options: Object.values(SulaChipAppearance),\n defaultValue: SulaChipAppearance.Default,\n description: 'Chip appearance',\n type: {\n required: false,\n },\n },\n disabled: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is chip disabled',\n type: {\n required: false,\n },\n },\n selected: {\n control: 'boolean',\n defaultValue: false,\n description: 'Is chip selected',\n type: {\n required: false,\n },\n },\n loading: {\n control: 'boolean',\n defaultValue: false,\n description: 'Mantém o conteúdo e exibe um loader à direita, bloqueando a interação',\n type: {\n required: false,\n },\n },\n icon: {\n control: 'text',\n description: 'Classe do ícone exibido antes do texto, ex.: `ph ph-download-simple`',\n type: {\n required: false,\n },\n },\n items: {\n control: 'object',\n defaultValue: [],\n description: 'Items for dropdown list',\n type: {\n required: false,\n },\n },\n itemsPlacement: {\n control: { type: 'select' },\n options: Object.values(SulaChipItemsPlacement),\n defaultValue: SulaChipItemsPlacement.Bottom,\n description: 'Define se a lista de itens abre abaixo (bottom) ou acima (top) do chip',\n type: {\n required: false,\n },\n },\n itemClicked: {\n action: 'itemClicked',\n description: 'Evento emitido quando o chip é clicado',\n },\n itemSelected: {\n action: 'itemSelected',\n description: 'Evento emitido quando um item é selecionado',\n },\n },\n parameters: {\n docs: {\n description: {\n component: 'O componente Chip Sula Design System é utilizado como filtro, substituí botões pequenos e deve ser usado dentro de componentes de lista. ',\n },\n },\n },\n};\n\nconst Template = args => {\n const container = document.createElement('div');\n container.style.margin = '20px';\n if (args.itemsPlacement === SulaChipItemsPlacement.Top) container.style.marginTop = '160px';\n\n const el = document.createElement('sula-chip');\n\n if (args.text) el.setAttribute('text', args.text);\n el.setAttribute('appearance', args.appearance);\n el.setAttribute('disabled', args.disabled.toString());\n if (args.selected) el.setAttribute('selected', args.selected.toString());\n if (args.loading) el.setAttribute('loading', args.loading.toString());\n if (args.icon) el.setAttribute('icon', args.icon);\n if (args.itemsPlacement) el.setAttribute('items-placement', args.itemsPlacement);\n\n if (args.items && args.items.length > 0) {\n el.items = args.items;\n }\n\n el.addEventListener('itemClicked', args.itemClicked);\n el.addEventListener('itemSelected', args.itemSelected);\n\n container.appendChild(el);\n\n return container;\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n text: 'Default Chip',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [],\n};\n\nexport const NegativeAppearance = Template.bind({});\nNegativeAppearance.args = {\n text: 'Negative Chip',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n items: [],\n};\n\nexport const DisabledChip = Template.bind({});\nDisabledChip.args = {\n text: 'Disabled Chip',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n selected: false,\n items: [],\n};\n\nexport const SelectedChip = Template.bind({});\nSelectedChip.args = {\n text: 'Selected Chip',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: true,\n items: [],\n};\n\nexport const ChipWithDropdown = Template.bind({});\nChipWithDropdown.args = {\n text: 'Chip with Options',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: false,\n items: [\n { id: '1', title: 'Option 1' },\n { id: '2', title: 'Option 2' },\n { id: '3', title: 'Option 3' },\n ],\n};\n\nexport const NegativeChipWithDropdown = Template.bind({});\nNegativeChipWithDropdown.args = {\n text: 'Negative with Options',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n selected: false,\n items: [\n { id: '1', title: 'Remove Item 1' },\n { id: '2', title: 'Remove Item 2' },\n { id: '3', title: 'Remove Item 3' },\n ],\n};\n\nexport const DisabledChipWithItems = Template.bind({});\nDisabledChipWithItems.args = {\n text: 'Disabled with Items',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n selected: false,\n items: [\n { id: '1', title: 'Option 1' },\n { id: '2', title: 'Option 2' },\n ],\n};\n\nexport const WithIcon = Template.bind({});\nWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [],\n};\n\nexport const WithIconAndDropdown = Template.bind({});\nWithIconAndDropdown.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n items: [\n { id: '1', title: 'PDF para impressão' },\n { id: '2', title: 'Arquivo CSV' },\n { id: '3', title: 'Arquivo Excel' },\n { id: '4', title: 'Arquivo TXT' },\n ],\n};\n\nexport const SelectedWithIcon = Template.bind({});\nSelectedWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n selected: true,\n items: [],\n};\n\nexport const NegativeWithIcon = Template.bind({});\nNegativeWithIcon.args = {\n text: 'Remover',\n icon: 'ph ph-trash',\n appearance: SulaChipAppearance.Negative,\n disabled: false,\n items: [],\n};\n\nexport const DisabledWithIcon = Template.bind({});\nDisabledWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: true,\n items: [],\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n text: 'Carregando',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n loading: true,\n items: [],\n};\n\nexport const LoadingWithIcon = Template.bind({});\nLoadingWithIcon.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n loading: true,\n items: [],\n};\n\nexport const LoadingWithItems = Template.bind({});\nLoadingWithItems.args = {\n text: 'Exportar',\n icon: 'ph ph-download-simple',\n appearance: SulaChipAppearance.Default,\n disabled: false,\n loading: true,\n items: [\n { id: '1', title: 'PDF para impressão' },\n { id: '2', title: 'Arquivo CSV' },\n ],\n};\n"]}
@@ -135,13 +135,13 @@ export class SulaDropdown {
135
135
  }
136
136
  render() {
137
137
  var _a;
138
- return (h(Host, { key: 'aaba996495a35ac72c3b17442c12fbe7b9d0311f', ref: node => (this.node = node) }, h("div", { key: '264c681fdc548574f2fb79b72e18280b4a4da0df', class: {
138
+ return (h(Host, { key: '35d04ed97bd10fbf98b7fd10731b690b46491df7', ref: node => (this.node = node) }, h("div", { key: '47148569db5354f54346091c4e3f352d557f80ca', class: {
139
139
  'flex justify-between items-center border border-line-input h-[72px] px-16 rounded-xl relative': true,
140
140
  'bg-surface-body cursor-pointer': !this.disabled,
141
141
  'bg-states-bg-disabled': this.disabled,
142
142
  'dropdown-focus': this.isFocused && !this.hasError,
143
143
  'dropdown-error': this.hasError && !this.disabled,
144
- }, onClick: this.handleClick, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '47c7d9bfb445f92ba9bbe36e86712fed8469c982', class: "flex flex-col w-full" }, h("label", { key: 'bfca241063d7d70f911291e9b77e29e3288e5d54', class: {
144
+ }, onClick: this.handleClick, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '5cd9ccadbc69704b1bb9bbdccefccb7dcfe7d611', class: "flex flex-col w-full" }, h("label", { key: '78ef32145f4a192b8b0b2a25d2447be71d9158e1', class: {
145
145
  'text-base leading-4': !this.selectedItem && !(this.searchable && this.showContent),
146
146
  'text-sm leading-4 font-bold': !!this.selectedItem || (this.searchable && this.showContent),
147
147
  'text-text-primary': !this.disabled,
@@ -150,7 +150,7 @@ export class SulaDropdown {
150
150
  'flex items-center gap-8 text-base leading-4 pt-4': true,
151
151
  'text-text-primary': !this.disabled,
152
152
  'text-text-disabled': this.disabled,
153
- } }, this.selectedItem.icon && h("sula-icon", { icon: this.selectedItem.icon, customClass: "text-lg" }), this.selectedItem.title)))), h("div", { key: '52280122f1dd9c71a5e1077da4bd985c5f04d662', class: "flex items-center justify-center ml-8 leading-6 text-2xl" }, h("sula-icon", { key: '91444ab6b3016d464c00c9e72ec9462e3ca48155', icon: `ph ph-caret-${this.showContent ? 'up' : 'down'}`, customClass: `${this.getIconClass()} text-2xl` })), this.showContent && (h("div", { key: '9883f291e725293066e165c59c2f4925bf99ccbc', class: {
153
+ } }, this.selectedItem.icon && h("sula-icon", { icon: this.selectedItem.icon, customClass: "text-lg" }), this.selectedItem.title)))), h("div", { key: '24569902c5e91e90790ba97338051f59f84f2214', class: "flex items-center justify-center ml-8 leading-6 text-2xl" }, h("sula-icon", { key: '69953fcb60872c647258aadaa401eca89b7bc366', icon: `ph ph-caret-${this.showContent ? 'up' : 'down'}`, customClass: `${this.getIconClass()} text-2xl` })), this.showContent && (h("div", { key: 'd0ee81a83052982007c125a80cc46d369b179b02', class: {
154
154
  'absolute z-50 left-0 w-full transition-all duration-200 ease-in-out': true,
155
155
  'bottom-[72px]': this.openUpward,
156
156
  'top-[72px]': !this.openUpward,