@sula-tech/webcomponents 0.4.1 → 0.6.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 (129) hide show
  1. package/dist/cjs/{index-BtkenDV1.js → index-Bbryl0vg.js} +30 -4
  2. package/dist/cjs/index-Bbryl0vg.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{sula-avatar_14.cjs.entry.js → sula-avatar_18.cjs.entry.js} +386 -48
  5. package/dist/cjs/sula-avatar_18.cjs.entry.js.map +1 -0
  6. package/dist/cjs/webcomponents.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +5 -1
  8. package/dist/collection/components/sula-button/sula-button.css +1 -1
  9. package/dist/collection/components/sula-button/sula-button.js +66 -6
  10. package/dist/collection/components/sula-button/sula-button.js.map +1 -1
  11. package/dist/collection/components/sula-button/sula-button.stories.js +260 -97
  12. package/dist/collection/components/sula-button/sula-button.stories.js.map +1 -1
  13. package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
  14. package/dist/collection/components/sula-chip/sula-chip.css +1 -1
  15. package/dist/collection/components/sula-chip/sula-chip.js +3 -3
  16. package/dist/collection/components/sula-dropdown/sula-dropdown.css +1 -0
  17. package/dist/collection/components/sula-dropdown/sula-dropdown.js +275 -0
  18. package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -0
  19. package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js +155 -0
  20. package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js.map +1 -0
  21. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  22. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  23. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  24. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  25. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
  26. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +29 -1
  27. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js.map +1 -1
  28. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js +15 -0
  29. package/dist/collection/components/sula-progress-bar/model/sula-progress-bar.model.js.map +1 -0
  30. package/dist/collection/components/sula-progress-bar/sula-progress-bar.css +1 -0
  31. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +213 -0
  32. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js.map +1 -0
  33. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js +172 -0
  34. package/dist/collection/components/sula-progress-bar/sula-progress.stories.js.map +1 -0
  35. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  36. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js +6 -0
  37. package/dist/collection/components/sula-search-bar/model/sula-search.bar-model.js.map +1 -0
  38. package/dist/collection/components/sula-search-bar/sula-search-bar.css +1 -0
  39. package/dist/collection/components/sula-search-bar/sula-search-bar.js +240 -0
  40. package/dist/collection/components/sula-search-bar/sula-search-bar.js.map +1 -0
  41. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js +119 -0
  42. package/dist/collection/components/sula-search-bar/sula-search-bar.stories.js.map +1 -0
  43. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  44. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  45. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  46. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  47. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  48. package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js +7 -0
  49. package/dist/collection/components/sula-timeline-list/model/sula-timeline-list.model.js.map +1 -0
  50. package/dist/collection/components/sula-timeline-list/sula-timeline-list.css +1 -0
  51. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +123 -0
  52. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js.map +1 -0
  53. package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js +217 -0
  54. package/dist/collection/components/sula-timeline-list/sula-timeline-list.stories.js.map +1 -0
  55. package/dist/components/index.js +20 -2
  56. package/dist/components/index.js.map +1 -1
  57. package/dist/components/{p-DJGFqp8r.js → p-BNtk_d_S.js} +14 -5
  58. package/dist/components/p-BNtk_d_S.js.map +1 -0
  59. package/dist/components/p-CYBZuKr6.js +27129 -0
  60. package/dist/components/p-CYBZuKr6.js.map +1 -0
  61. package/dist/components/{p-CEU3PNQs.js → p-DULnDBOY.js} +4 -4
  62. package/dist/components/{p-CEU3PNQs.js.map → p-DULnDBOY.js.map} +1 -1
  63. package/dist/components/sula-avatar.js +1 -1
  64. package/dist/components/sula-badge.js +1 -1
  65. package/dist/components/sula-button.js +38 -9
  66. package/dist/components/sula-button.js.map +1 -1
  67. package/dist/components/sula-checkbox.js +4 -4
  68. package/dist/components/sula-chip.js +6 -6
  69. package/dist/components/sula-chip.js.map +1 -1
  70. package/dist/components/sula-dropdown.d.ts +11 -0
  71. package/dist/components/sula-dropdown.js +137 -0
  72. package/dist/components/sula-dropdown.js.map +1 -0
  73. package/dist/components/sula-icon.js +1 -1
  74. package/dist/components/sula-loader.js +1 -27124
  75. package/dist/components/sula-loader.js.map +1 -1
  76. package/dist/components/sula-menu-select-list.js +1 -1
  77. package/dist/components/sula-progress-bar.d.ts +11 -0
  78. package/dist/components/sula-progress-bar.js +122 -0
  79. package/dist/components/sula-progress-bar.js.map +1 -0
  80. package/dist/components/sula-radio-button.js +2 -2
  81. package/dist/components/sula-search-bar.d.ts +11 -0
  82. package/dist/components/sula-search-bar.js +104 -0
  83. package/dist/components/sula-search-bar.js.map +1 -0
  84. package/dist/components/sula-switch.js +4 -4
  85. package/dist/components/sula-tag.js +4 -4
  86. package/dist/components/sula-textarea.js +6 -6
  87. package/dist/components/sula-textfield.js +3 -3
  88. package/dist/components/sula-tiles.js +2 -2
  89. package/dist/components/sula-timeline-list.d.ts +11 -0
  90. package/dist/components/sula-timeline-list.js +101 -0
  91. package/dist/components/sula-timeline-list.js.map +1 -0
  92. package/dist/esm/{index-Yyeke16a.js → index-or7qTZgT.js} +30 -4
  93. package/dist/esm/index-or7qTZgT.js.map +1 -0
  94. package/dist/esm/loader.js +3 -3
  95. package/dist/esm/{sula-avatar_14.entry.js → sula-avatar_18.entry.js} +383 -49
  96. package/dist/esm/sula-avatar_18.entry.js.map +1 -0
  97. package/dist/esm/webcomponents.js +3 -3
  98. package/dist/types/components/sula-button/sula-button.d.ts +11 -1
  99. package/dist/types/components/sula-button/sula-button.stories.d.ts +124 -33
  100. package/dist/types/components/sula-dropdown/sula-dropdown.d.ts +49 -0
  101. package/dist/types/components/sula-dropdown/sula-dropdown.stories.d.ts +68 -0
  102. package/dist/types/components/sula-menu-select-list/sula-menu-select-list.d.ts +4 -0
  103. package/dist/types/components/sula-progress-bar/model/sula-progress-bar.model.d.ts +12 -0
  104. package/dist/types/components/sula-progress-bar/sula-progress-bar.d.ts +33 -0
  105. package/dist/types/components/sula-progress-bar/sula-progress.stories.d.ts +84 -0
  106. package/dist/types/components/sula-search-bar/model/sula-search.bar-model.d.ts +4 -0
  107. package/dist/types/components/sula-search-bar/sula-search-bar.d.ts +50 -0
  108. package/dist/types/components/sula-search-bar/sula-search-bar.stories.d.ts +84 -0
  109. package/dist/types/components/sula-timeline-list/model/sula-timeline-list.model.d.ts +16 -0
  110. package/dist/types/components/sula-timeline-list/sula-timeline-list.d.ts +17 -0
  111. package/dist/types/components/sula-timeline-list/sula-timeline-list.stories.d.ts +47 -0
  112. package/dist/types/components.d.ts +315 -0
  113. package/dist/webcomponents/{p-5ba79323.entry.js → p-2a133394.entry.js} +3656 -3167
  114. package/dist/webcomponents/p-2a133394.entry.js.map +1 -0
  115. package/dist/webcomponents/{p-Yyeke16a.js → p-or7qTZgT.js} +229 -204
  116. package/dist/webcomponents/p-or7qTZgT.js.map +1 -0
  117. package/dist/webcomponents/webcomponents.esm.js +50 -18
  118. package/package.json +1 -1
  119. package/readme.md +79 -19
  120. package/dist/cjs/index-BtkenDV1.js.map +0 -1
  121. package/dist/cjs/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.cjs.js.map +0 -1
  122. package/dist/cjs/sula-avatar_14.cjs.entry.js.map +0 -1
  123. package/dist/components/p-DJGFqp8r.js.map +0 -1
  124. package/dist/esm/index-Yyeke16a.js.map +0 -1
  125. package/dist/esm/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.js.map +0 -1
  126. package/dist/esm/sula-avatar_14.entry.js.map +0 -1
  127. package/dist/webcomponents/p-5ba79323.entry.js.map +0 -1
  128. package/dist/webcomponents/p-Yyeke16a.js.map +0 -1
  129. package/dist/webcomponents/sula-avatar.sula-badge.sula-button.sula-checkbox.sula-chip.sula-icon.sula-loader.sula-menu-select-list.sula-radio-button.sula-switch.sula-tag.sula-textarea.sula-textfield.sula-tiles.entry.esm.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { S as SulaMenuSelectList$1, d as defineCustomElement$1 } from './p-DJGFqp8r.js';
1
+ import { S as SulaMenuSelectList$1, d as defineCustomElement$1 } from './p-BNtk_d_S.js';
2
2
 
3
3
  const SulaMenuSelectList = SulaMenuSelectList$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SulaProgressBar extends Components.SulaProgressBar, HTMLElement {}
4
+ export const SulaProgressBar: {
5
+ prototype: SulaProgressBar;
6
+ new (): SulaProgressBar;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,122 @@
1
+ import { p as proxyCustomElement, H, h, a as Host } from './index.js';
2
+ import { d as defineCustomElement$2 } from './p-DULnDBOY.js';
3
+
4
+ var SulaProgressBarAppearance;
5
+ (function (SulaProgressBarAppearance) {
6
+ SulaProgressBarAppearance["Primary"] = "primary";
7
+ SulaProgressBarAppearance["Secondary"] = "secondary";
8
+ SulaProgressBarAppearance["OnPrimary"] = "on-primary";
9
+ SulaProgressBarAppearance["Success"] = "success";
10
+ SulaProgressBarAppearance["Error"] = "error";
11
+ })(SulaProgressBarAppearance || (SulaProgressBarAppearance = {}));
12
+ var SulaProgressBarState;
13
+ (function (SulaProgressBarState) {
14
+ SulaProgressBarState["Default"] = "default";
15
+ SulaProgressBarState["Success"] = "success";
16
+ SulaProgressBarState["Error"] = "error";
17
+ })(SulaProgressBarState || (SulaProgressBarState = {}));
18
+
19
+ const sulaProgressBarCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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{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}:host{display:block}: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:#02361a;--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:#500202;--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:#683f08;--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:#691e07;--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:#6a3b01;--color-gray-50:#fff;--color-gray-100:#f4f4f4;--color-gray-200:#e6e6e6;--color-gray-300:#c3c3c3;--color-gray-400:#b9b9b9;--color-gray-500:#949494;--color-gray-600:#737373;--color-gray-700:#5c5c5c;--color-gray-800:#323232;--color-gray-900:#292929;--color-gray-950:#141414;--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:#0a2e61;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:#14141405;--color-black-opacity-100:#1414141a;--color-black-opacity-200:#14141426;--color-black-opacity-300:#14141445;--color-black-opacity-400:#1414145c;--color-black-opacity-500:#14141480;--color-black-opacity-600:#1414148c;--color-black-opacity-700:#141414a3;--color-black-opacity-800:#141414ba;--color-black-opacity-900:#141414cc;--color-black-opacity-950:#141414e8;--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:#f4f4f4;--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:#323232;--color-text-secondary:#5c5c5c;--color-text-disabled:#949494;--color-text-link:#1355b4;--color-states-empty-bg-hover:#1414141a;--color-states-empty-bg-pressed:#14141426;--color-states-bg-disabled:#14141405;--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:#e6e6e6;--color-states-negative-pressed:#c3c3c3;--color-icon-primary:#5c5c5c;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#b9b9b9;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f4f4f4;--color-neutral-neutral-3:#b9b9b9;--color-neutral-neutral-4:#949494;--color-neutral-neutral-5:#737373;--color-neutral-neutral-6:#5c5c5c;--color-neutral-neutral-7:#323232;--color-neutral-neutral-8:#292929;--color-negative-negative-1:#fff;--color-negative-negative-2:#323232;--color-opacity-body:#fffc;--color-opacity-on-body:#14141405;--color-opacity-overlay:#1414148c;--color-opacity-on-overlay:#ffffff1a;--color-line-input:#949494;--color-line-general-strong:#c3c3c3;--color-line-general:#e6e6e6}.static{position:static}.flex{display:flex}.h-12{height:.75rem}.h-24{height:1.5rem}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rounded-xxl{border-radius:18.75rem}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-feedback-error{background-color:var(--color-feedback-error)}.bg-feedback-success{background-color:var(--color-feedback-success)}.bg-neutral-300{--tw-bg-opacity:1;background-color:rgb(212 212 212/var(--tw-bg-opacity,1))}.bg-opacity-on-body{background-color:var(--color-opacity-on-body)}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.leading-6{line-height:1.5rem}.leading-\\[14px\\]{line-height:14px}.text-feedback-error{color:var(--color-feedback-error)}.text-feedback-success{color:var(--color-feedback-success)}.text-text-secondary{color:var(--color-text-secondary)}.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)}";
20
+
21
+ const SulaProgressBar$1 = /*@__PURE__*/ proxyCustomElement(class SulaProgressBar extends H {
22
+ constructor() {
23
+ super();
24
+ this.__registerHost();
25
+ this.__attachShadow();
26
+ /**
27
+ * The style of the progress bar.
28
+ */
29
+ this.appearance = SulaProgressBarAppearance.Primary;
30
+ /**
31
+ * The state of the progress bar.
32
+ */
33
+ this.state = SulaProgressBarState.Default;
34
+ /**
35
+ * Show progress
36
+ */
37
+ this.showProgress = true;
38
+ }
39
+ validateProgress(newValue) {
40
+ this.handleProgress(newValue);
41
+ }
42
+ componentWillLoad() {
43
+ this.handleProgress(this.progress);
44
+ }
45
+ handleProgress(value) {
46
+ if (value < 0) {
47
+ this.progress = 0;
48
+ console.warn('sula-progress-bar: progress cannot be less than 0. Value adjusted to 0.');
49
+ }
50
+ else if (value > 100) {
51
+ this.progress = 100;
52
+ console.warn('sula-progress-bar: progress cannot be greater than 100. Value adjusted to 100.');
53
+ }
54
+ }
55
+ getProgressBarStyle() {
56
+ const styles = {
57
+ [SulaProgressBarAppearance.Primary]: 'bg-brand-primary',
58
+ [SulaProgressBarAppearance.Secondary]: 'bg-neutral-300',
59
+ [SulaProgressBarAppearance.OnPrimary]: 'bg-opacity-on-body',
60
+ [SulaProgressBarAppearance.Success]: 'bg-feedback-success',
61
+ [SulaProgressBarAppearance.Error]: 'bg-feedback-error',
62
+ };
63
+ return styles[this.appearance];
64
+ }
65
+ getProgressBarStateElement() {
66
+ if (this.state === SulaProgressBarState.Default) {
67
+ return this.showProgress && h("span", { class: "text-sm text-text-secondary font-bold leading-[14px]" }, this.progress, "%");
68
+ }
69
+ else if (this.state === SulaProgressBarState.Success) {
70
+ return (h("div", { class: "flex justify-center items-center leading-6 h-24" }, h("sula-icon", { icon: "ph ph-check-circle", customClass: "text-2xl text-feedback-success" })));
71
+ }
72
+ else {
73
+ return (h("div", { class: "flex justify-center items-center leading-6 h-24" }, h("sula-icon", { icon: "ph ph-x-circle", customClass: "text-2xl text-feedback-error" })));
74
+ }
75
+ }
76
+ render() {
77
+ return (h(Host, { key: '1ad9ff8449cb58eee5064aa925668761a0ff39b1' }, h("div", { key: '00d3cd84503e4692d31e6a1831957bf7442972aa', class: "flex flex-col w-full space-y-8" }, h("div", { key: '3b98e59266848cef57ed6e81e8ee4dd0671826c6', class: "flex justify-between items-center" }, h("label", { key: '1c008e6734f01f6390a591e36ed8f84c1d10f9e2', class: "text-sm text-text-secondary leading-[14px]" }, this.topLabel), this.getProgressBarStateElement()), h("div", { key: '12c79bd68d673c6a7dfeb8fc9136529d8937d137', style: { width: `${this.progress}%` }, class: {
78
+ 'h-12 rounded-xxl': true,
79
+ [this.getProgressBarStyle()]: true,
80
+ } }), h("label", { key: 'cbb3870b08995c13f202413ab06c4e3d54f3bd6c', class: "text-sm text-text-secondary leading-[14px]" }, this.bottomLabel))));
81
+ }
82
+ static get watchers() { return {
83
+ "progress": ["validateProgress"]
84
+ }; }
85
+ static get style() { return sulaProgressBarCss; }
86
+ }, [1, "sula-progress-bar", {
87
+ "appearance": [1025],
88
+ "state": [1025],
89
+ "topLabel": [1025, "top-label"],
90
+ "bottomLabel": [1025, "bottom-label"],
91
+ "progress": [1026],
92
+ "showProgress": [1028, "show-progress"]
93
+ }, undefined, {
94
+ "progress": ["validateProgress"]
95
+ }]);
96
+ function defineCustomElement$1() {
97
+ if (typeof customElements === "undefined") {
98
+ return;
99
+ }
100
+ const components = ["sula-progress-bar", "sula-icon"];
101
+ components.forEach(tagName => { switch (tagName) {
102
+ case "sula-progress-bar":
103
+ if (!customElements.get(tagName)) {
104
+ customElements.define(tagName, SulaProgressBar$1);
105
+ }
106
+ break;
107
+ case "sula-icon":
108
+ if (!customElements.get(tagName)) {
109
+ defineCustomElement$2();
110
+ }
111
+ break;
112
+ } });
113
+ }
114
+ defineCustomElement$1();
115
+
116
+ const SulaProgressBar = SulaProgressBar$1;
117
+ const defineCustomElement = defineCustomElement$1;
118
+
119
+ export { SulaProgressBar, defineCustomElement };
120
+ //# sourceMappingURL=sula-progress-bar.js.map
121
+
122
+ //# sourceMappingURL=sula-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"file":"sula-progress-bar.js","mappings":";;;AAAA,IAAY,yBAMX;AAND,CAAA,UAAY,yBAAyB,EAAA;AACnC,IAAA,yBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,yBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,yBAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,yBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,yBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EANW,yBAAyB,KAAzB,yBAAyB,GAMpC,EAAA,CAAA,CAAA;AAED,IAAY,oBAIX;AAJD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,GAI/B,EAAA,CAAA,CAAA;;ACZD,MAAM,kBAAkB,GAAG,67SAA67S;;MCQ38SA,iBAAe,iBAAAC,kBAAA,CAAA,MAAA,eAAA,SAAAC,CAAA,CAAA;AAL5B,IAAA,WAAA,GAAA;;;;AAME;;AAEG;AAEH,QAAA,I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CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["SulaProgressBar","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sula-progress-bar/model/sula-progress-bar.model.ts","src/components/sula-progress-bar/sula-progress-bar.scss?tag=sula-progress-bar&encapsulation=shadow","src/components/sula-progress-bar/sula-progress-bar.tsx"],"sourcesContent":["export enum SulaProgressBarAppearance {\n Primary = 'primary',\n Secondary = 'secondary',\n OnPrimary = 'on-primary',\n Success = 'success',\n Error = 'error',\n}\n\nexport enum SulaProgressBarState {\n Default = 'default',\n Success = 'success',\n Error = 'error',\n}\n",":host {\n display: block;\n}\n","import { Component, Host, Prop, Watch, h } from '@stencil/core';\nimport { SulaProgressBarAppearance, SulaProgressBarState } from './model/sula-progress-bar.model';\n\n@Component({\n tag: 'sula-progress-bar',\n styleUrl: 'sula-progress-bar.scss',\n shadow: true,\n})\nexport class SulaProgressBar {\n /**\n * The style of the progress bar.\n */\n @Prop({ mutable: true })\n appearance: SulaProgressBarAppearance = SulaProgressBarAppearance.Primary;\n\n /**\n * The state of the progress bar.\n */\n @Prop({ mutable: true })\n state: SulaProgressBarState = SulaProgressBarState.Default;\n\n /**\n * The label displayed at the top of the progress bar.\n */\n @Prop({ mutable: true })\n topLabel: string;\n\n /**\n * The label displayed at the bottom of the progress bar.\n */\n @Prop({ mutable: true })\n bottomLabel: string;\n\n /**\n * The progress value of the progress bar.\n */\n @Prop({ mutable: true })\n progress: number;\n\n /**\n * Show progress\n */\n @Prop({ mutable: true })\n showProgress: boolean = true;\n\n @Watch('progress')\n validateProgress(newValue: number) {\n this.handleProgress(newValue);\n }\n\n componentWillLoad() {\n this.handleProgress(this.progress);\n }\n\n handleProgress(value: number) {\n if (value < 0) {\n this.progress = 0;\n console.warn('sula-progress-bar: progress cannot be less than 0. Value adjusted to 0.');\n } else if (value > 100) {\n this.progress = 100;\n console.warn('sula-progress-bar: progress cannot be greater than 100. Value adjusted to 100.');\n }\n }\n\n getProgressBarStyle() {\n const styles = {\n [SulaProgressBarAppearance.Primary]: 'bg-brand-primary',\n [SulaProgressBarAppearance.Secondary]: 'bg-neutral-300',\n [SulaProgressBarAppearance.OnPrimary]: 'bg-opacity-on-body',\n [SulaProgressBarAppearance.Success]: 'bg-feedback-success',\n [SulaProgressBarAppearance.Error]: 'bg-feedback-error',\n };\n\n return styles[this.appearance];\n }\n\n getProgressBarStateElement() {\n if (this.state === SulaProgressBarState.Default) {\n return this.showProgress && <span class=\"text-sm text-text-secondary font-bold leading-[14px]\">{this.progress}%</span>;\n } else if (this.state === SulaProgressBarState.Success) {\n return (\n <div class=\"flex justify-center items-center leading-6 h-24\">\n <sula-icon icon=\"ph ph-check-circle\" customClass=\"text-2xl text-feedback-success\"></sula-icon>\n </div>\n );\n } else {\n return (\n <div class=\"flex justify-center items-center leading-6 h-24\">\n <sula-icon icon=\"ph ph-x-circle\" customClass=\"text-2xl text-feedback-error\"></sula-icon>\n </div>\n );\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"flex flex-col w-full space-y-8\">\n <div class=\"flex justify-between items-center\">\n <label class=\"text-sm text-text-secondary leading-[14px]\">{this.topLabel}</label>\n {this.getProgressBarStateElement()}\n </div>\n <div\n style={{ width: `${this.progress}%` }}\n class={{\n 'h-12 rounded-xxl': true,\n [this.getProgressBarStyle()]: true,\n }}\n ></div>\n <label class=\"text-sm text-text-secondary leading-[14px]\">{this.bottomLabel}</label>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -43,14 +43,14 @@ const SulaRadioButton$1 = /*@__PURE__*/ proxyCustomElement(class SulaRadioButton
43
43
  };
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '5e6d32905685f79fb6a56bb22fbe457eec04874e' }, h("div", { key: '7f3dcb3f71edcedbc54565dcaf60c90a2ea9e1a2', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: '1e1679902289efaacab3123b17518fcc47102b0f', class: {
46
+ return (h(Host, { key: 'd2899b9a6aeb8d81ecb0eb28c4d415b42ad75af5' }, h("div", { key: 'db1003e3d7923491bad2bd7c2cf2871dd87874f0', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: 'f1cff2e9d20cfd0e369cfdcd490bc265a8de2fa9', class: {
47
47
  'w-[30px] h-[30px] rounded-full flex justify-center items-center outline-none': true,
48
48
  'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,
49
49
  'bg-brand-primary': this.checked,
50
50
  'border border-line-input': !this.checked,
51
51
  'container-focus': this.radioIsFocus,
52
52
  'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,
53
- }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '432be610a630997a939e3695a053a5fade13e109', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: '193035c8d746f073ab4ebfec2cca7fab87fe5dac', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
53
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: 'd5353979e7fd4481fc6c6964360b2a5cc682dff8', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: 'fdadebd9a83092780405798b1fb1797325b08b82', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
54
54
  }
55
55
  static get style() { return sulaRadioButtonCss; }
56
56
  }, [1, "sula-radio-button", {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SulaSearchBar extends Components.SulaSearchBar, HTMLElement {}
4
+ export const SulaSearchBar: {
5
+ prototype: SulaSearchBar;
6
+ new (): SulaSearchBar;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,104 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
2
+ import { d as defineCustomElement$2 } from './p-DULnDBOY.js';
3
+
4
+ var SulaSearchBarStyle;
5
+ (function (SulaSearchBarStyle) {
6
+ SulaSearchBarStyle["Default"] = "default";
7
+ SulaSearchBarStyle["Highlight"] = "highlight";
8
+ })(SulaSearchBarStyle || (SulaSearchBarStyle = {}));
9
+
10
+ const sulaSearchBarCss = "*,: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-scroll-snap-strictness:proximity;--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;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-scroll-snap-strictness:proximity;--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;}/*! 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{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{display:block}.search-bar-shadow{box-shadow:0 4px 19.7px 0 rgba(0,0,0,.059)}.search-bar-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}: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:#02361a;--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:#500202;--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:#683f08;--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:#691e07;--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:#6a3b01;--color-gray-50:#fff;--color-gray-100:#f4f4f4;--color-gray-200:#e6e6e6;--color-gray-300:#c3c3c3;--color-gray-400:#b9b9b9;--color-gray-500:#949494;--color-gray-600:#737373;--color-gray-700:#5c5c5c;--color-gray-800:#323232;--color-gray-900:#292929;--color-gray-950:#141414;--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:#0a2e61;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:#14141405;--color-black-opacity-100:#1414141a;--color-black-opacity-200:#14141426;--color-black-opacity-300:#14141445;--color-black-opacity-400:#1414145c;--color-black-opacity-500:#14141480;--color-black-opacity-600:#1414148c;--color-black-opacity-700:#141414a3;--color-black-opacity-800:#141414ba;--color-black-opacity-900:#141414cc;--color-black-opacity-950:#141414e8;--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:#f4f4f4;--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:#323232;--color-text-secondary:#5c5c5c;--color-text-disabled:#949494;--color-text-link:#1355b4;--color-states-empty-bg-hover:#1414141a;--color-states-empty-bg-pressed:#14141426;--color-states-bg-disabled:#14141405;--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:#e6e6e6;--color-states-negative-pressed:#c3c3c3;--color-icon-primary:#5c5c5c;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#b9b9b9;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f4f4f4;--color-neutral-neutral-3:#b9b9b9;--color-neutral-neutral-4:#949494;--color-neutral-neutral-5:#737373;--color-neutral-neutral-6:#5c5c5c;--color-neutral-neutral-7:#323232;--color-neutral-neutral-8:#292929;--color-negative-negative-1:#fff;--color-negative-negative-2:#323232;--color-opacity-body:#fffc;--color-opacity-on-body:#14141405;--color-opacity-overlay:#1414148c;--color-opacity-on-overlay:#ffffff1a;--color-line-input:#949494;--color-line-general-strong:#c3c3c3;--color-line-general:#e6e6e6}.static{position:static}.flex{display:flex}.h-44{height:2.75rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-none{border-style:none}.border-surface-on-body{border-color:var(--color-surface-on-body)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-surface-on-body{background-color:var(--color-surface-on-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.leading-6{line-height:1.5rem}.text-icon-primary{color:var(--color-icon-primary)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-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}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.group:hover .group-hover\\:text-brand-primary{color:var(--color-brand-primary)}";
11
+
12
+ const SulaSearchBar$1 = /*@__PURE__*/ proxyCustomElement(class SulaSearchBar extends H {
13
+ constructor() {
14
+ super();
15
+ this.__registerHost();
16
+ this.__attachShadow();
17
+ this.valueChanged = createEvent(this, "valueChanged");
18
+ this.focusedOn = createEvent(this, "focusedOn");
19
+ this.focusedOut = createEvent(this, "focusedOut");
20
+ this.rightIconClicked = createEvent(this, "rightIconClicked");
21
+ /**
22
+ * Search bar style
23
+ */
24
+ this.searchBarStyle = SulaSearchBarStyle.Default;
25
+ this.isFocused = false;
26
+ this.textValue = '';
27
+ this.handleInputFocus = () => {
28
+ this.isFocused = true;
29
+ this.inputElement.focus();
30
+ this.focusedOn.emit();
31
+ };
32
+ this.handleInputBlur = () => {
33
+ this.isFocused = false;
34
+ this.inputElement.blur();
35
+ this.focusedOut.emit();
36
+ };
37
+ this.handleRightIconClick = (event) => {
38
+ this.rightIconClicked.emit();
39
+ event.stopPropagation();
40
+ event.preventDefault();
41
+ };
42
+ this.handleValueChanges = (event) => {
43
+ const newValue = event.target.value;
44
+ this.textValue = newValue;
45
+ this.value = newValue;
46
+ this.valueChanged.emit(newValue);
47
+ };
48
+ }
49
+ componentWillLoad() {
50
+ if (this.value && this.value.trim().length > 0) {
51
+ this.textValue = this.value;
52
+ }
53
+ }
54
+ getStyleClass() {
55
+ const style = {
56
+ [SulaSearchBarStyle.Default]: 'bg-surface-on-body hover:bg-states-empty-bg-hover',
57
+ [SulaSearchBarStyle.Highlight]: 'bg-surface-body search-bar-shadow border border-surface-on-body',
58
+ };
59
+ return style[this.searchBarStyle];
60
+ }
61
+ render() {
62
+ return (h(Host, { key: 'd4d90e7c772577043a926f5c4da9940cb5540fb9' }, h("div", { key: '9d99122174667fca977c37e3cd707571f2fb5d54', class: {
63
+ 'flex flex-row items-center space-x-12 px-16 rounded-xxl h-44 caret-brand-primary outline-none group': true,
64
+ [this.getStyleClass()]: true,
65
+ 'search-bar-focus': this.isFocused,
66
+ }, tabIndex: 0, onFocus: this.handleInputFocus, onClick: this.handleInputFocus }, !this.isFocused && this.leftIcon && (h("div", { key: 'c95b9cdde31fcae4c990a9b1fd31e26354925903', class: "flex justify-center items-center leading-6" }, h("sula-icon", { key: '7c8087041097973cbef0a2b694c80e17545b1667', icon: this.leftIcon, customClass: "text-2xl text-icon-primary group-hover:text-brand-primary" }))), h("input", { key: 'a637dbc3e075bd9262140adf932ec828b5c2c4eb', ref: node => (this.inputElement = node), type: "text", class: "outline-none border-none w-full bg-transparent text-text-primary", placeholder: this.placeholder, onBlur: this.handleInputBlur, value: this.textValue, onInput: this.handleValueChanges }), this.rightIcon && (h("div", { key: '76c21444a58564a0fdcb741f38623005d2c445b5', class: "flex justify-center items-center leading-6 cursor-pointer", onClick: this.handleRightIconClick, onMouseDown: e => e.preventDefault() }, h("sula-icon", { key: '9e10c4ead0b0563277e0ddf0e0cf6e9ee79171f8', icon: this.rightIcon, customClass: "text-2xl text-icon-primary" }))))));
67
+ }
68
+ static get style() { return sulaSearchBarCss; }
69
+ }, [1, "sula-search-bar", {
70
+ "value": [1025],
71
+ "searchBarStyle": [1025, "search-bar-style"],
72
+ "placeholder": [1025],
73
+ "leftIcon": [1025, "left-icon"],
74
+ "rightIcon": [1025, "right-icon"],
75
+ "isFocused": [32],
76
+ "textValue": [32]
77
+ }]);
78
+ function defineCustomElement$1() {
79
+ if (typeof customElements === "undefined") {
80
+ return;
81
+ }
82
+ const components = ["sula-search-bar", "sula-icon"];
83
+ components.forEach(tagName => { switch (tagName) {
84
+ case "sula-search-bar":
85
+ if (!customElements.get(tagName)) {
86
+ customElements.define(tagName, SulaSearchBar$1);
87
+ }
88
+ break;
89
+ case "sula-icon":
90
+ if (!customElements.get(tagName)) {
91
+ defineCustomElement$2();
92
+ }
93
+ break;
94
+ } });
95
+ }
96
+ defineCustomElement$1();
97
+
98
+ const SulaSearchBar = SulaSearchBar$1;
99
+ const defineCustomElement = defineCustomElement$1;
100
+
101
+ export { SulaSearchBar, defineCustomElement };
102
+ //# sourceMappingURL=sula-search-bar.js.map
103
+
104
+ //# sourceMappingURL=sula-search-bar.js.map
@@ -0,0 +1 @@
1
+ {"file":"sula-search-bar.js","mappings":";;;AAAA,IAAY,kBAGX;AAHD,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,kBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACzB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,GAG7B,EAAA,CAAA,CAAA;;ACHD,MAAM,gBAAgB,GAAG,s5TAAs5T;;MCQl6TA,eAAa,iBAAAC,kBAAA,CAAA,MAAA,aAAA,SAAAC,CAAA,CAAA;AAL1B,IAAA,WAAA,GAAA;;;;;;;;AAYE;;AAEG;AAEH,QAAA,IAAA,CAAA,cAAc,GAAuB,kBAAkB,CAAC,OAAO;AA6C/D,QAAA,IAAS,CAAA,SAAA,GAAG,KAAK;AAGjB,QAAA,IAAS,CAAA,SAAA,GAAW,EAAE;AAmBtB,QAAA,IAAgB,CAAA,gBAAA,GAAG,MAAK;AACtB,YAAA,IAAI,CAAC,SAAS,GAAG,IAAI;AACrB,YAAA,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE;AACzB,YAAA,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;AACvB,S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;;;;;;;;;","names":["SulaSearchBar","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sula-search-bar/model/sula-search.bar-model.ts","src/components/sula-search-bar/sula-search-bar.scss?tag=sula-search-bar&encapsulation=shadow","src/components/sula-search-bar/sula-search-bar.tsx"],"sourcesContent":["export enum SulaSearchBarStyle {\n Default = 'default',\n Highlight = 'highlight',\n}\n",":host {\n display: block;\n}\n\n.search-bar-shadow {\n box-shadow: 0px 4px 19.7px 0px #0000000f;\n}\n\n.search-bar-focus {\n outline: 2px solid var(--color-feedback-informational) !important;\n outline-offset: 2px !important;\n}\n","import { Component, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\nimport { SulaSearchBarStyle } from './model/sula-search.bar-model';\n\n@Component({\n tag: 'sula-search-bar',\n styleUrl: 'sula-search-bar.scss',\n shadow: true,\n})\nexport class SulaSearchBar {\n /**\n * Value for the search bar.\n */\n @Prop({ mutable: true })\n value?: string;\n\n /**\n * Search bar style\n */\n @Prop({ mutable: true })\n searchBarStyle: SulaSearchBarStyle = SulaSearchBarStyle.Default;\n\n /**\n * Search bar placeholder\n */\n @Prop({ mutable: true })\n placeholder: string;\n\n /**\n * Search bar left icon\n */\n @Prop({ mutable: true })\n leftIcon: string;\n\n /**\n * Search bar right icon\n */\n @Prop({ mutable: true })\n rightIcon: string;\n\n /**\n * Event emitted when search bar value changes.\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n /**\n * Event emitted when search bar is focused.\n */\n @Event()\n focusedOn: EventEmitter<void>;\n\n /**\n * Event emitted when search bar is focused out.\n */\n @Event()\n focusedOut: EventEmitter<void>;\n\n /**\n * Event emitted when right icon is clicked\n */\n @Event()\n rightIconClicked: EventEmitter<void>;\n\n @State()\n isFocused = false;\n\n @State()\n textValue: string = '';\n\n inputElement: HTMLInputElement;\n\n componentWillLoad() {\n if (this.value && this.value.trim().length > 0) {\n this.textValue = this.value;\n }\n }\n\n getStyleClass() {\n const style = {\n [SulaSearchBarStyle.Default]: 'bg-surface-on-body hover:bg-states-empty-bg-hover',\n [SulaSearchBarStyle.Highlight]: 'bg-surface-body search-bar-shadow border border-surface-on-body',\n };\n\n return style[this.searchBarStyle];\n }\n\n handleInputFocus = () => {\n this.isFocused = true;\n this.inputElement.focus();\n this.focusedOn.emit();\n };\n\n handleInputBlur = () => {\n this.isFocused = false;\n this.inputElement.blur();\n this.focusedOut.emit();\n };\n\n handleRightIconClick = (event: MouseEvent) => {\n this.rightIconClicked.emit();\n\n event.stopPropagation();\n event.preventDefault();\n };\n\n handleValueChanges = (event: InputEvent) => {\n const newValue = (event.target as HTMLTextAreaElement).value;\n this.textValue = newValue;\n this.value = newValue;\n\n this.valueChanged.emit(newValue);\n };\n\n render() {\n return (\n <Host>\n <div\n class={{\n 'flex flex-row items-center space-x-12 px-16 rounded-xxl h-44 caret-brand-primary outline-none group': true,\n [this.getStyleClass()]: true,\n 'search-bar-focus': this.isFocused,\n }}\n tabIndex={0}\n onFocus={this.handleInputFocus}\n onClick={this.handleInputFocus}\n >\n {!this.isFocused && this.leftIcon && (\n <div class=\"flex justify-center items-center leading-6\">\n <sula-icon icon={this.leftIcon} customClass=\"text-2xl text-icon-primary group-hover:text-brand-primary\"></sula-icon>\n </div>\n )}\n\n <input\n ref={node => (this.inputElement = node)}\n type=\"text\"\n class=\"outline-none border-none w-full bg-transparent text-text-primary\"\n placeholder={this.placeholder}\n onBlur={this.handleInputBlur}\n value={this.textValue}\n onInput={this.handleValueChanges}\n />\n\n {this.rightIcon && (\n <div class=\"flex justify-center items-center leading-6 cursor-pointer\" onClick={this.handleRightIconClick} onMouseDown={e => e.preventDefault()}>\n <sula-icon icon={this.rightIcon} customClass=\"text-2xl text-icon-primary\"></sula-icon>\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -49,23 +49,23 @@ const SulaSwitch$1 = /*@__PURE__*/ proxyCustomElement(class SulaSwitch extends H
49
49
  };
50
50
  }
51
51
  render() {
52
- return (h(Host, { key: '8c4e5a433806b881586f923d9c2a504bdce6746d' }, h("div", { key: '22d49911604bac2bf3da72635365dbf2a6f37dd6', class: {
52
+ return (h(Host, { key: 'e920dbb868a5bdde5e34ac4d015529aef08a8e3d' }, h("div", { key: '7552191cc1632d04c0c496f382fdbbb166547236', class: {
53
53
  'outline-none': true,
54
54
  'flex items-center space-x-12': !!this.label && this.type === SulaSwitchType.Default,
55
55
  'flex items-center justify-between bg-surface-on-body rounded-md w-[280px] min-h-[85px] px-24 py-16': this.type === SulaSwitchType.List,
56
56
  'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaSwitchType.List && !this.disabled,
57
57
  'container-focus': this.isFocus && this.type === SulaSwitchType.List,
58
- }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '7076e6b15b0c48d1f1a9e7a27eaeacc2504eaaf2', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: 'c669a1d88a26e897a1b8bcbdb96f6060d02e9fcb', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: 'c428df447fd46a4639512065672923b0ef52c5a2', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: '01aab6ae10a1ebc05dcfd973045777ab31395c84', class: {
58
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '322c268b6e010f49cb1b61509398d9f7a1b9b8a1', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '0da8b536c781a7d0fdfc1539b115c11171328455', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '8ff30bb13d52d759c6b2a2892ec608d14e9ece86', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: 'cec3a0d3f3620af6e25c2ae1e6ac771eb7acaef2', class: {
59
59
  'switch-container w-56 h-32 flex items-center rounded-xxl p-2 outline-none': true,
60
60
  'switch-on bg-brand-primary justify-end': this.active,
61
61
  'switch-off bg-neutral-neutral-3 justify-start': !this.active,
62
62
  'cursor-not-allowed bg-states-bg-disabled': this.disabled,
63
63
  'switch-focus': this.isFocus && this.type === SulaSwitchType.Default,
64
- }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '4c7e11b5e66699eef10cdfc1790133da5fe2512f', class: {
64
+ }, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'ae01eb32010e93fbc3fb652c0fdd653df57b7835', class: {
65
65
  'switch-thumb w-[28px] h-[28px] rounded-full flex justify-center items-center': true,
66
66
  'bg-negative-negative-1': !this.disabled,
67
67
  'bg-states-bg-disabled shadow-md': this.disabled,
68
- } }, h("div", { key: 'dc4b278d4bae9c541d132ac0637155200c32e5b0', class: {
68
+ } }, h("div", { key: 'f965f1fa8af298f87383c8549a82990a9daeafee', class: {
69
69
  'switch-indicator rounded-full': true,
70
70
  'switch-indicator-on w-12 h-12 bg-brand-primary': this.active,
71
71
  'switch-indicator-off w-[10px] h-4 bg-neutral-neutral-4': !this.active,
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, h, a as Host } from './index.js';
2
- import { d as defineCustomElement$2 } from './p-CEU3PNQs.js';
2
+ import { d as defineCustomElement$2 } from './p-DULnDBOY.js';
3
3
 
4
4
  var SulaTagSize;
5
5
  (function (SulaTagSize) {
@@ -106,14 +106,14 @@ const SulaTag$1 = /*@__PURE__*/ proxyCustomElement(class SulaTag extends H {
106
106
  return iconStatusStyles[this.iconStatus];
107
107
  }
108
108
  render() {
109
- return (h(Host, { key: '436412de610889b17970a85abf5ec197a8e47436' }, h("div", { key: '604f05fe84b218eb4b7470e9be5bdc9de3aa8357', class: {
109
+ return (h(Host, { key: 'ea42eeb4ee80620a790938eb08c6322fa4dee214' }, h("div", { key: '29745dd127c152c8e2e74534f8fa53cc8d305534', class: {
110
110
  'flex items-center rounded-xxl w-fit': true,
111
111
  [this.getSizeClass()]: true,
112
112
  [this.getAppearanceClass()]: true,
113
- } }, this.icon && (h("div", { key: 'c156b45c46625a17f99ca988da012aff3f486b82', class: {
113
+ } }, this.icon && (h("div", { key: '2eb1b3d506d98a12b5513c947237289fcacfe035', class: {
114
114
  'flex justify-center items-center mr-8 rounded-full leading-4 px-2 py-1': true,
115
115
  [this.getIconStatusClass()]: true,
116
- } }, h("sula-icon", { key: '0d128f0f6936aa0f5f4f021993002c31c4642fb7', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: 'f9c361d1fce206a071a8e629067d82bd253bd106', class: {
116
+ } }, h("sula-icon", { key: 'b3daed5248632ce22ee43f9d64987939a3682242', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: 'd436740cbce0feab73152447b7694818fe87f90e', class: {
117
117
  'text-base leading-4': true,
118
118
  [this.getTextColorClass()]: true,
119
119
  [this.getTextWeightClass()]: true,
@@ -108,34 +108,34 @@ const SulaTextarea$1 = /*@__PURE__*/ proxyCustomElement(class SulaTextarea exten
108
108
  }
109
109
  render() {
110
110
  const containerHeight = this.rows * 24 + 48;
111
- return (h(Host, { key: '112ab9367061b2cd3372a1513c0e0c3004508d62', ref: node => (this.node = node) }, h("div", { key: '429946804da278e0bb055cc44cd171d3fc932d00' }, h("div", { key: '75b2f1ba71fabd3ca88b6a64f24e9c806e62b6cd', id: "textarea-container", class: {
111
+ return (h(Host, { key: 'ed754651792554736de45340f7a2eca30303517e', ref: node => (this.node = node) }, h("div", { key: '7c8422829a17136e4f98792da018fa4a4c531de4' }, h("div", { key: '16f16305b5b1a059e8d1e0b956eb78d2443bd9e0', id: "textarea-container", class: {
112
112
  'relative border rounded-sm px-16 py-12 outline-none caret-brand-primary': true,
113
113
  'textarea-focus': this.textareaIsFocused && !this.disabled && this.status === SulaTextareaStatus.Default,
114
114
  'textarea-error': this.status === SulaTextareaStatus.Error && !this.disabled,
115
115
  'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,
116
116
  'bg-surface-body border-line-input cursor-text': !this.disabled,
117
- }, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: '86cfcf89f55bd92d3b10ab75d38c6c982cae353c', class: {
117
+ }, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: 'ca41cf5b404b52684d6597a6976b86a596bb613f', class: {
118
118
  'text-base top-16 left-12 absolute transition-all duration-200 ease-in-out pointer-events-none z-10 w-[85%]': true,
119
119
  'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),
120
120
  'text-text-disabled': this.disabled,
121
121
  'bg-surface-body': !this.disabled && this.isActive,
122
- }, ref: node => (this.labelElement = node) }, this.label), h("label", { key: '0c4bdde355694f1c04a7e6d32bd392fb088a4578', class: {
122
+ }, ref: node => (this.labelElement = node) }, this.label), h("label", { key: 'cfcb85fadb260a530be91f347c55e6f98ae3168b', class: {
123
123
  'absolute font-bold transition-all duration-200 ease-in-out pointer-events-none z-10 active-label hidden from-down': true,
124
124
  'text-sm top-12 left-16': this.isActive,
125
125
  'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),
126
126
  'text-text-disabled': this.disabled,
127
127
  'bg-surface-body': !this.disabled && this.isActive,
128
- }, ref: node => (this.activeLabelElement = node) }, this.label), h("textarea", { key: 'd64e5297376361329f46eb5d6e502324d3629a47', ref: node => (this.textareaElement = node), placeholder: this.isActive ? this.placeholder : '', rows: this.rows, maxLength: this.maxLength, disabled: this.disabled, class: {
128
+ }, ref: node => (this.activeLabelElement = node) }, this.label), h("textarea", { key: 'b020d47c6e676defc7af5703142bf28b27235b68', ref: node => (this.textareaElement = node), placeholder: this.isActive ? this.placeholder : '', rows: this.rows, maxLength: this.maxLength, disabled: this.disabled, class: {
129
129
  'w-full h-full outline-none text-base bg-transparent border-none resize-none': true,
130
130
  'pt-6': this.isActive,
131
131
  'pt-0': !this.isActive,
132
132
  'text-text-primary': !this.disabled,
133
133
  'text-text-disabled cursor-not-allowed overflow-hidden': this.disabled,
134
- }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: '972de397157809afb5e3f423ad6cc020e0681a63', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'c395df80ecdc9ff30a4a3fc641e90427891d4b3d', id: "textarea-help-text", class: {
134
+ }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: '5772c4879f4a2e680423a025ddf371b0682fdbfc', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'f85f4b9195cf845d110a8f3a9b4a34e8cd522783', id: "textarea-help-text", class: {
135
135
  'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
136
136
  'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
137
137
  'text-text-disabled': this.disabled,
138
- } }, this.helpText)), this.maxLength && (h("div", { key: '92e87522fdab71f57b34d65472697e851c97de7c', id: "max-length-container", class: {
138
+ } }, this.helpText)), this.maxLength && (h("div", { key: 'dffd4ae72ce81a460589f6cbb58f7615529547ea', id: "max-length-container", class: {
139
139
  'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
140
140
  'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
141
141
  'text-text-disabled': this.disabled,
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
2
- import { d as defineCustomElement$2 } from './p-CEU3PNQs.js';
2
+ import { d as defineCustomElement$2 } from './p-DULnDBOY.js';
3
3
 
4
4
  var SulaTextfieldType;
5
5
  (function (SulaTextfieldType) {
@@ -117,14 +117,14 @@ const SulaTextfield$1 = /*@__PURE__*/ proxyCustomElement(class SulaTextfield ext
117
117
  return this.icon;
118
118
  }
119
119
  render() {
120
- return (h(Host, { key: '3e9bdde79b2e015d887acf681db7b7de4c6d10f9', ref: node => (this.node = node) }, h("div", { key: '58ea96ff28b4ccb218a6c255cd325526801b0bbe' }, h("div", { key: 'f7dafc576f9090557f72b78cc2225b0256c9935a', id: "button-container", class: {
120
+ return (h(Host, { key: '3805ff5fefc6ccc3b903384ac54bcf01ebd9527a', ref: node => (this.node = node) }, h("div", { key: 'e90a85b46e51d9c0c989bc4e0ff53b5996cc6c49' }, h("div", { key: '258fa53c0386cc3cc231a53d5d0e8da483cc51ce', id: "button-container", class: {
121
121
  'flex items-center border rounded-sm px-16 outline-none h-[72px] caret-brand-primary': true,
122
122
  'flex-row justify-between': !!this.icon || this.type === SulaTextfieldType.Password,
123
123
  'button-focus': this.inputIsFocused && !this.disabled && this.status === SulaTextfieldStatus.Default,
124
124
  'button-error': this.status === SulaTextfieldStatus.Error && !this.disabled,
125
125
  'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,
126
126
  'bg-surface-body border-line-input cursor-pointer': !this.disabled,
127
- }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleInputClick }, !this.disabled && (h("div", { key: '257c1ad5d7a3d5efd1d27127ac02594a47575fd8', class: { 'hidden flex-col w-full': true, 'pr-12': !!this.icon }, ref: node => (this.inputContainer = node) }, h("label", { key: 'efaf4fb0c7e118b1f177dbb32e810eb6a936d022', class: "font-bold text-sm text-text-primary from-down" }, this.label), h("input", { key: '17ebbebb92aa6ad6b66168b23e9e117f6f455bcd', type: this.type, ref: node => (this.inputElement = node), placeholder: this.placeholder, class: "outline-none text-base text-text-primary bg-transparent", onInput: this.handleInputChanges, onFocus: this.handleInputFocus, value: this.value }))), h("div", { key: '31dbb7b11e7affbb22dfc5e630a715ae8edb5a51', id: "textfield-label", class: { 'text-base flex items-center': true, 'text-text-primary': !this.disabled, 'text-text-disabled': this.disabled }, ref: node => (this.labelElement = node) }, this.label), (!!this.icon || this.type === SulaTextfieldType.Password) && (h("div", { key: 'b9e2f8eae982d0e39b92309042d2f166cf26d8b1', class: "flex items-center justify-center", onClick: this.handleIconClick }, h("sula-icon", { key: 'c379ae831debcabdc846ff925b56fc65f47365a5', icon: this.getInputIcon(), customClass: `text-2xl ${this.disabled ? 'text-icon-disabled' : 'text-icon-primary'}` })))), (this.helpText || this.maxLength) && !this.disabled && (h("div", { key: '40f3d2a9ff28fec7681e065362367b283632e210', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: '96bc7dffbd4ee747816bae7b5aaca1cba6f69782', id: "textfield-help-text", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.helpText)), this.maxLength && (h("div", { key: '066f76c181d7f858f16460fab9c5e9bcf301f5a4', id: "max-length-container", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.textValue ? this.textValue.length : 0, "/", this.maxLength)))))));
127
+ }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleInputClick }, !this.disabled && (h("div", { key: '0e16b2a5f2bd115b65a6d8e572bde900606fb97c', class: { 'hidden flex-col w-full': true, 'pr-12': !!this.icon }, ref: node => (this.inputContainer = node) }, h("label", { key: '1a487915bfd317c1f1b3c04917096f402e7cb7ba', class: "font-bold text-sm text-text-primary from-down" }, this.label), h("input", { key: 'b2cd0285ef6cdaa4956ac1e7dc7a9d2fb850ffed', type: this.type, ref: node => (this.inputElement = node), placeholder: this.placeholder, class: "outline-none text-base text-text-primary bg-transparent", onInput: this.handleInputChanges, onFocus: this.handleInputFocus, value: this.value }))), h("div", { key: 'c26f72728243abca768732d758f7a9992c32d146', id: "textfield-label", class: { 'text-base flex items-center': true, 'text-text-primary': !this.disabled, 'text-text-disabled': this.disabled }, ref: node => (this.labelElement = node) }, this.label), (!!this.icon || this.type === SulaTextfieldType.Password) && (h("div", { key: 'b1f375f8291a67455ae0e252321e4a0fa577bb64', class: "flex items-center justify-center", onClick: this.handleIconClick }, h("sula-icon", { key: 'a780572571be2d1b4e754ccb149b768bb9195800', icon: this.getInputIcon(), customClass: `text-2xl ${this.disabled ? 'text-icon-disabled' : 'text-icon-primary'}` })))), (this.helpText || this.maxLength) && !this.disabled && (h("div", { key: '6ac0ac18b014923a1b6a432e181beaea2f557dca', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'f8aa196b22755380105da258fa8e218ceb3894c0', id: "textfield-help-text", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.helpText)), this.maxLength && (h("div", { key: '9a9359a270f5f84175829e2e8347e992c89a2639', id: "max-length-container", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.textValue ? this.textValue.length : 0, "/", this.maxLength)))))));
128
128
  }
129
129
  static get style() { return sulaTextfieldCss; }
130
130
  }, [1, "sula-textfield", {
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
2
- import { d as defineCustomElement$2 } from './p-CEU3PNQs.js';
2
+ import { d as defineCustomElement$2 } from './p-DULnDBOY.js';
3
3
 
4
4
  var SulaTilesType;
5
5
  (function (SulaTilesType) {
@@ -139,7 +139,7 @@ const SulaTiles$1 = /*@__PURE__*/ proxyCustomElement(class SulaTiles extends H {
139
139
  return (h("div", { class: this.getTextContainerClasses() }, h("span", { class: this.getTextClasses(true), title: this.ellipsis ? this.text : undefined }, this.text), this.hasSubText && (h("span", { class: this.getTextClasses(false), title: this.ellipsis ? this.subText : undefined }, this.subText))));
140
140
  }
141
141
  render() {
142
- return (h(Host, { key: '4ad25c005432166588fd14cc596db7f67455519d' }, h("div", { key: 'f1ed2bad68c99002ff7eda09fefa467981237918', class: this.getContainerClasses(), tabIndex: this.getTabIndex(this.isSquare), onClick: this.handleClick }, this.renderIcon(), this.renderText())));
142
+ return (h(Host, { key: 'bd93893ff89e978258ceb3621a260b305de320f5' }, h("div", { key: '661f7050d9a816aa3437e2d1c0de179cfb9d605d', class: this.getContainerClasses(), tabIndex: this.getTabIndex(this.isSquare), onClick: this.handleClick }, this.renderIcon(), this.renderText())));
143
143
  }
144
144
  static get style() { return sulaTilesCss; }
145
145
  }, [1, "sula-tiles", {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SulaTimelineList extends Components.SulaTimelineList, HTMLElement {}
4
+ export const SulaTimelineList: {
5
+ prototype: SulaTimelineList;
6
+ new (): SulaTimelineList;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;