@sula-tech/webcomponents 0.0.0-snapshot-feature-workbench-menu-57f51ec → 0.0.0-snapshot-update-release-workflow-eeeefa9

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 (164) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_32.cjs.entry.js +176 -99
  3. package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
  4. package/dist/cjs/sula-profile-menu.cjs.entry.js +1 -1
  5. package/dist/cjs/sula-profile-menu.cjs.entry.js.map +1 -1
  6. package/dist/cjs/sula-profile-menu.entry.cjs.js.map +1 -1
  7. package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
  8. package/dist/cjs/sula-toast.cjs.entry.js +2 -2
  9. package/dist/cjs/sula-workbench-menu.cjs.entry.js +124 -61
  10. package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
  11. package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
  12. package/dist/cjs/webcomponents.cjs.js +1 -1
  13. package/dist/collection/components/sula-button/sula-button.css +1 -1
  14. package/dist/collection/components/sula-calendar/sula-calendar.css +1 -1
  15. package/dist/collection/components/sula-calendar/sula-calendar.js +56 -17
  16. package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -1
  17. package/dist/collection/components/sula-calendar/sula-calendar.stories.js +16 -1
  18. package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -1
  19. package/dist/collection/components/sula-chip/sula-chip.css +1 -1
  20. package/dist/collection/components/sula-chip/sula-chip.js +30 -4
  21. package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
  22. package/dist/collection/components/sula-chip/sula-chip.stories.js +55 -0
  23. package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
  24. package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
  25. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  26. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  27. package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
  28. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  29. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  30. package/dist/collection/components/sula-menu/sula-menu.css +1 -1
  31. package/dist/collection/components/sula-menu/sula-menu.js +13 -13
  32. package/dist/collection/components/sula-menu/sula-menu.js.map +1 -1
  33. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
  34. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
  35. package/dist/collection/components/sula-modal/sula-modal.css +1 -1
  36. package/dist/collection/components/sula-modal/sula-modal.js +142 -11
  37. package/dist/collection/components/sula-modal/sula-modal.js.map +1 -1
  38. package/dist/collection/components/sula-modal/sula-modal.stories.js +48 -0
  39. package/dist/collection/components/sula-modal/sula-modal.stories.js.map +1 -1
  40. package/dist/collection/components/sula-profile-menu/sula-profile-menu.css +1 -1
  41. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
  42. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  43. package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
  44. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
  45. package/dist/collection/components/sula-switch/sula-switch.css +1 -1
  46. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  47. package/dist/collection/components/sula-table/sula-table.js +3 -3
  48. package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
  49. package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
  50. package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
  51. package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
  52. package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
  53. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  54. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  55. package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
  56. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  57. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  58. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  59. package/dist/collection/components/sula-toast/sula-toast.js +2 -2
  60. package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
  61. package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
  62. package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
  63. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.css +1 -1
  64. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +138 -74
  65. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
  66. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +218 -99
  67. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
  68. package/dist/components/{p-Wd3q-zRy.js → p-1SBJ2JjF.js} +6 -6
  69. package/dist/components/{p-Wd3q-zRy.js.map → p-1SBJ2JjF.js.map} +1 -1
  70. package/dist/components/{p-YsuXC_9x.js → p-BD4DLCMm.js} +5 -5
  71. package/dist/components/{p-YsuXC_9x.js.map → p-BD4DLCMm.js.map} +1 -1
  72. package/dist/components/{p-DkXdsyPr.js → p-Bdc73E-Z.js} +7 -7
  73. package/dist/components/{p-DkXdsyPr.js.map → p-Bdc73E-Z.js.map} +1 -1
  74. package/dist/components/{p-MPkJUrNl.js → p-BlRYoc3b.js} +4 -4
  75. package/dist/components/{p-MPkJUrNl.js.map → p-BlRYoc3b.js.map} +1 -1
  76. package/dist/components/{p-B5MmQ8zn.js → p-BrjLS4Oh.js} +5 -5
  77. package/dist/components/{p-B5MmQ8zn.js.map → p-BrjLS4Oh.js.map} +1 -1
  78. package/dist/components/{p-CZdy_Df-.js → p-Cktbp7SD.js} +5 -5
  79. package/dist/components/{p-CZdy_Df-.js.map → p-Cktbp7SD.js.map} +1 -1
  80. package/dist/components/{p-DpW2KDYm.js → p-DP9qGgPM.js} +4 -4
  81. package/dist/components/{p-DpW2KDYm.js.map → p-DP9qGgPM.js.map} +1 -1
  82. package/dist/components/{p-CvpbIDzE.js → p-DTZo84U5.js} +5 -5
  83. package/dist/components/{p-CvpbIDzE.js.map → p-DTZo84U5.js.map} +1 -1
  84. package/dist/components/{p-B8AsfKSM.js → p-KIC3LfH4.js} +7 -7
  85. package/dist/components/{p-B8AsfKSM.js.map → p-KIC3LfH4.js.map} +1 -1
  86. package/dist/components/{p-DCGHpgTv.js → p-boQwbNNO.js} +5 -5
  87. package/dist/components/{p-DCGHpgTv.js.map → p-boQwbNNO.js.map} +1 -1
  88. package/dist/components/sula-avatar.js +1 -1
  89. package/dist/components/sula-badge.js +1 -1
  90. package/dist/components/sula-breadcrumb.js +1 -1
  91. package/dist/components/sula-button.js +1 -1
  92. package/dist/components/sula-calendar.js +59 -20
  93. package/dist/components/sula-calendar.js.map +1 -1
  94. package/dist/components/sula-checkbox.js +1 -1
  95. package/dist/components/sula-chip.js +15 -7
  96. package/dist/components/sula-chip.js.map +1 -1
  97. package/dist/components/sula-dropdown.js +1 -1
  98. package/dist/components/sula-icon-picker.js +6 -6
  99. package/dist/components/sula-icon.js +1 -1
  100. package/dist/components/sula-loader.js +1 -1
  101. package/dist/components/sula-menu-select-list.js +1 -1
  102. package/dist/components/sula-menu.js +15 -15
  103. package/dist/components/sula-menu.js.map +1 -1
  104. package/dist/components/sula-modal.js +51 -15
  105. package/dist/components/sula-modal.js.map +1 -1
  106. package/dist/components/sula-profile-menu.js +1 -1
  107. package/dist/components/sula-progress-bar.js +3 -3
  108. package/dist/components/sula-radio-button.js +2 -2
  109. package/dist/components/sula-search-bar.js +1 -1
  110. package/dist/components/sula-segmented-control.js +2 -2
  111. package/dist/components/sula-switch.js +1 -1
  112. package/dist/components/sula-table-body.js +1 -1
  113. package/dist/components/sula-table-cell.js +2 -2
  114. package/dist/components/sula-table-head-cell.js +2 -2
  115. package/dist/components/sula-table-header.js +1 -1
  116. package/dist/components/sula-table-row.js +1 -1
  117. package/dist/components/sula-table.js +3 -3
  118. package/dist/components/sula-tag.js +4 -4
  119. package/dist/components/sula-textarea.js +6 -6
  120. package/dist/components/sula-textfield.js +1 -1
  121. package/dist/components/sula-tiles.js +2 -2
  122. package/dist/components/sula-timeline-list.js +2 -2
  123. package/dist/components/sula-toast-stack.js +6 -6
  124. package/dist/components/sula-toast.js +1 -1
  125. package/dist/components/sula-toggle.js +2 -2
  126. package/dist/components/sula-tooltip.js +2 -2
  127. package/dist/components/sula-workbench-menu.js +131 -66
  128. package/dist/components/sula-workbench-menu.js.map +1 -1
  129. package/dist/esm/loader.js +1 -1
  130. package/dist/esm/sula-avatar_32.entry.js +176 -99
  131. package/dist/esm/sula-avatar_32.entry.js.map +1 -1
  132. package/dist/esm/sula-profile-menu.entry.js +1 -1
  133. package/dist/esm/sula-profile-menu.entry.js.map +1 -1
  134. package/dist/esm/sula-toast-stack.entry.js +4 -4
  135. package/dist/esm/sula-toast.entry.js +2 -2
  136. package/dist/esm/sula-workbench-menu.entry.js +124 -61
  137. package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
  138. package/dist/esm/webcomponents.js +1 -1
  139. package/dist/types/components/sula-calendar/sula-calendar.d.ts +9 -3
  140. package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +1 -0
  141. package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
  142. package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -0
  143. package/dist/types/components/sula-modal/sula-modal.d.ts +21 -0
  144. package/dist/types/components/sula-modal/sula-modal.stories.d.ts +22 -0
  145. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.d.ts +18 -9
  146. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +26 -19
  147. package/dist/types/components.d.ts +79 -23
  148. package/dist/webcomponents/{p-df271629.entry.js → p-18c84807.entry.js} +6 -6
  149. package/dist/webcomponents/p-235dcb90.entry.js +880 -0
  150. package/dist/webcomponents/p-235dcb90.entry.js.map +1 -0
  151. package/dist/webcomponents/{p-60d2ad8f.entry.js → p-3344a9f9.entry.js} +406 -289
  152. package/dist/webcomponents/p-3344a9f9.entry.js.map +1 -0
  153. package/dist/webcomponents/{p-c552c435.entry.js → p-705e2424.entry.js} +16 -16
  154. package/dist/webcomponents/{p-4251c973.entry.js → p-7e31b463.entry.js} +2 -2
  155. package/dist/webcomponents/sula-profile-menu.entry.esm.js.map +1 -1
  156. package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
  157. package/dist/webcomponents/webcomponents.esm.js +15 -7
  158. package/package.json +1 -1
  159. package/dist/webcomponents/p-569d0bad.entry.js +0 -807
  160. package/dist/webcomponents/p-569d0bad.entry.js.map +0 -1
  161. package/dist/webcomponents/p-60d2ad8f.entry.js.map +0 -1
  162. /package/dist/webcomponents/{p-df271629.entry.js.map → p-18c84807.entry.js.map} +0 -0
  163. /package/dist/webcomponents/{p-c552c435.entry.js.map → p-705e2424.entry.js.map} +0 -0
  164. /package/dist/webcomponents/{p-4251c973.entry.js.map → p-7e31b463.entry.js.map} +0 -0
@@ -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}.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}.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}.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)}
@@ -71,8 +71,15 @@ export class SulaChip {
71
71
  return 'text-negative-negative-2';
72
72
  }
73
73
  }
74
+ getLeadingIconClass() {
75
+ if (this.disabled)
76
+ return 'text-text-disabled';
77
+ if (this.selected)
78
+ return 'text-negative-negative-1';
79
+ return this.appearance === SulaChipAppearance.Default ? 'text-text-primary' : 'text-negative-negative-2';
80
+ }
74
81
  render() {
75
- return (h(Host, { key: '27d1549b2f19f25bdc51d9f7e587091d7f654765', ref: node => (this.node = node) }, h("div", { key: '097fa38c5eb008ae79a9bdb565a5a3641ebbfca9', class: "w-fit relative" }, h("div", { key: 'd7685d701be4f8ac972d3fff4e28301552711bbb', class: {
82
+ return (h(Host, { key: '46deed1dcfe849ed448997022535124ea59a1671', ref: node => (this.node = node) }, h("div", { key: 'd7db32bc10406f6733f0adae522608907ffb5a83', class: "w-fit relative" }, h("div", { key: 'e285e29f0e7912ad42f7e0087401d8c530e50db7', class: {
76
83
  'flex justify-center items-center px-16 py-2 rounded-xxl min-h-40 w-fit outline-none': true,
77
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,
78
85
  'bg-brand-primary': this.selected && !this.disabled,
@@ -81,17 +88,17 @@ export class SulaChip {
81
88
  'cursor-pointer': !this.disabled,
82
89
  'border border-line-input chip-opened': !this.disabled && this.showItems,
83
90
  'chip-focus': this.isFocused,
84
- }, tabIndex: 0, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: 'e27968dffdb4f97abcc7c6c06fbc011051298a78', class: {
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: {
85
92
  'text-base font-bold leading-4': true,
86
93
  'text-text-primary': this.appearance === SulaChipAppearance.Default && !this.disabled && !this.selected,
87
94
  'text-negative-negative-2': this.appearance === SulaChipAppearance.Negative && !this.disabled && !this.selected,
88
95
  'text-negative-negative-1': this.selected && !this.disabled,
89
96
  'text-text-disabled': this.disabled,
90
- } }, this.text), this.items.length > 0 && (h("div", { key: '28555fe413f6819322975fdcec8f6867a15fd440', class: "flex items-center justify-center ml-8 leading-4" }, h("sula-icon", { key: '1c91ed1838bdb5ec36291ae2f6bbace032db63bd', icon: `ph-bold ph-caret-${this.showItems ? 'up' : 'down'}`, customClass: this.getIconClass() })))), this.showItems && (h("div", { key: 'b2d3e0525ce5c07d8998bafd3f8f1e8b8c48a1fd', class: {
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: {
91
98
  'absolute z-50 left-0': true,
92
99
  'top-40': this.itemsPlacement !== SulaChipItemsPlacement.Top,
93
100
  'bottom-40': this.itemsPlacement === SulaChipItemsPlacement.Top,
94
- } }, h("sula-menu-select-list", { key: '9f25649a9434e7d434cf666bae3fbb94d7fcef29', items: this.items, onItemSelected: this.handleItemSelected }))))));
101
+ } }, h("sula-menu-select-list", { key: 'db3a35b16ff28f8fb5e354f5f617088ea33c4615', items: this.items, onItemSelected: this.handleItemSelected }))))));
95
102
  }
96
103
  static get is() { return "sula-chip"; }
97
104
  static get encapsulation() { return "shadow"; }
@@ -173,6 +180,25 @@ export class SulaChip {
173
180
  "reflect": false,
174
181
  "defaultValue": "false"
175
182
  },
183
+ "icon": {
184
+ "type": "string",
185
+ "attribute": "icon",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "string",
189
+ "resolved": "string",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": true,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Icon class displayed before the text, e.g. `ph ph-download-simple`"
197
+ },
198
+ "getter": false,
199
+ "setter": false,
200
+ "reflect": false
201
+ },
176
202
  "items": {
177
203
  "type": "unknown",
178
204
  "attribute": "items",
@@ -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;QAE1B;;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,CAAC;QAgBlB,gBAAW,GAAG,GAAG,EAAE;YACjB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,CAAC,CAAC;QAEF,eAAU,GAAG,GAAG,EAAE;YAChB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACzB,CAAC,CAAC;QAEF,gBAAW,GAAG,G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D,kEAAW,IAAI,EAAE,oBAAoB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE,GAAc,CACjH,CACP,CACG;gBACL,IAAI,CAAC,SAAS,IAAI,CACjB,4DACE,KAAK,EAAE;wBACL,sBAAsB,EAAE,IAAI;wBAC5B,QAAQ,EAAE,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,GAAG;wBAC5D,WAAW,EAAE,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,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, 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 * 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 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 <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,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,aAA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SAAS,IAAI,CACjB,4DACE,KAAK,EAAE;wBACL,sBAAsB,EAAE,IAAI;wBAC5B,QAAQ,EAAE,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,GAAG;wBAC5D,WAAW,EAAE,IAAI,CAAC,cAAc,KAAK,sBAAsB,CAAC,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, 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"]}
@@ -36,6 +36,13 @@ export default {
36
36
  required: false,
37
37
  },
38
38
  },
39
+ icon: {
40
+ control: 'text',
41
+ description: 'Classe do ícone exibido antes do texto, ex.: `ph ph-download-simple`',
42
+ type: {
43
+ required: false,
44
+ },
45
+ },
39
46
  items: {
40
47
  control: 'object',
41
48
  defaultValue: [],
@@ -82,6 +89,8 @@ const Template = args => {
82
89
  el.setAttribute('disabled', args.disabled.toString());
83
90
  if (args.selected)
84
91
  el.setAttribute('selected', args.selected.toString());
92
+ if (args.icon)
93
+ el.setAttribute('icon', args.icon);
85
94
  if (args.itemsPlacement)
86
95
  el.setAttribute('items-placement', args.itemsPlacement);
87
96
  if (args.items && args.items.length > 0) {
@@ -157,4 +166,50 @@ DisabledChipWithItems.args = {
157
166
  { id: '2', title: 'Option 2' },
158
167
  ],
159
168
  };
169
+ export const WithIcon = Template.bind({});
170
+ WithIcon.args = {
171
+ text: 'Exportar',
172
+ icon: 'ph ph-download-simple',
173
+ appearance: SulaChipAppearance.Default,
174
+ disabled: false,
175
+ items: [],
176
+ };
177
+ export const WithIconAndDropdown = Template.bind({});
178
+ WithIconAndDropdown.args = {
179
+ text: 'Exportar',
180
+ icon: 'ph ph-download-simple',
181
+ appearance: SulaChipAppearance.Default,
182
+ disabled: false,
183
+ items: [
184
+ { id: '1', title: 'PDF para impressão' },
185
+ { id: '2', title: 'Arquivo CSV' },
186
+ { id: '3', title: 'Arquivo Excel' },
187
+ { id: '4', title: 'Arquivo TXT' },
188
+ ],
189
+ };
190
+ export const SelectedWithIcon = Template.bind({});
191
+ SelectedWithIcon.args = {
192
+ text: 'Exportar',
193
+ icon: 'ph ph-download-simple',
194
+ appearance: SulaChipAppearance.Default,
195
+ disabled: false,
196
+ selected: true,
197
+ items: [],
198
+ };
199
+ export const NegativeWithIcon = Template.bind({});
200
+ NegativeWithIcon.args = {
201
+ text: 'Remover',
202
+ icon: 'ph ph-trash',
203
+ appearance: SulaChipAppearance.Negative,
204
+ disabled: false,
205
+ items: [],
206
+ };
207
+ export const DisabledWithIcon = Template.bind({});
208
+ DisabledWithIcon.args = {
209
+ text: 'Exportar',
210
+ icon: 'ph ph-download-simple',
211
+ appearance: SulaChipAppearance.Default,
212
+ disabled: true,
213
+ items: [],
214
+ };
160
215
  //# sourceMappingURL=sula-chip.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sula-chip.stories.js","sourceRoot":"","sources":["../../../src/components/s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AK,EAAE,UAAU,EAAE;QAC9B,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE;KAC/B;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 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.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"]}
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,EAA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E,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"]}
@@ -135,13 +135,13 @@ export class SulaDropdown {
135
135
  }
136
136
  render() {
137
137
  var _a;
138
- return (h(Host, { key: 'e849abd7e311239168abc12a37a99c6179ce28ca', ref: node => (this.node = node) }, h("div", { key: 'f11b936209f179ab6c47afca2e2baf436a399b64', class: {
138
+ return (h(Host, { key: 'aaba996495a35ac72c3b17442c12fbe7b9d0311f', ref: node => (this.node = node) }, h("div", { key: '264c681fdc548574f2fb79b72e18280b4a4da0df', 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: 'fcb3b8fe054cd8705a45ec42c6e86fda9e5ca5d9', class: "flex flex-col w-full" }, h("label", { key: 'cd4ed2b14fc138b20fc532d4bb75fc980371468f', class: {
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: {
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: '4e75978e9456b72b00f380bd841185bd92f814c7', class: "flex items-center justify-center ml-8 leading-6 text-2xl" }, h("sula-icon", { key: '09cc5f0fa83abf1cc5bf735f0d319815d7c52b33', icon: `ph ph-caret-${this.showContent ? 'up' : 'down'}`, customClass: `${this.getIconClass()} text-2xl` })), this.showContent && (h("div", { key: '1b460ad5a9c81c264a3750880efd0a281cb61b4b', class: {
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: {
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,