@florid-kit/components 2.6.17 → 3.0.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 (70) hide show
  1. package/assets/icons/icons-occ.d.ts +315 -0
  2. package/assets/icons/icons.d.ts +12 -84
  3. package/assets/icons/svg-utils.d.ts +13 -0
  4. package/behaviors/performance-mixin.d.ts +0 -23
  5. package/behaviors/performance-reporter.d.ts +1 -0
  6. package/components/accordion-group.mjs +61 -0
  7. package/components/accordion.mjs +185 -0
  8. package/components/arch-image.mjs +135 -0
  9. package/components/badge.mjs +75 -0
  10. package/components/breadcrumb.mjs +83 -0
  11. package/components/breadcrumbs.mjs +35 -0
  12. package/components/button.d.ts +3 -0
  13. package/components/button.mjs +12 -0
  14. package/components/checkbox.mjs +188 -0
  15. package/components/chip.mjs +158 -0
  16. package/components/chipset.mjs +44 -0
  17. package/components/dots.mjs +60 -0
  18. package/components/dropdown-variant.d.ts +1 -0
  19. package/components/dropdown-variant.mjs +446 -0
  20. package/components/dropdown.d.ts +1 -0
  21. package/components/dropdown.mjs +303 -0
  22. package/components/feedback-message.mjs +136 -0
  23. package/components/filter-chip.mjs +215 -0
  24. package/components/footer-simplify.mjs +178 -0
  25. package/components/header-simplify.mjs +234 -0
  26. package/components/icon-button.d.ts +5 -0
  27. package/components/icon-button.mjs +340 -0
  28. package/components/input.mjs +298 -0
  29. package/components/link.mjs +172 -0
  30. package/components/mediumtile.mjs +307 -0
  31. package/components/minitile.mjs +234 -0
  32. package/components/option-tile-group.mjs +105 -0
  33. package/components/option-tile.mjs +413 -0
  34. package/components/popin.mjs +412 -0
  35. package/components/radio.mjs +165 -0
  36. package/components/rating.mjs +81 -0
  37. package/components/reassurance.mjs +163 -0
  38. package/components/search-input-dropdown.mjs +314 -0
  39. package/components/search-input.mjs +107 -0
  40. package/components/side-panel.mjs +1206 -0
  41. package/components/tab.mjs +140 -0
  42. package/components/tablist.mjs +44 -0
  43. package/components/tag.mjs +86 -0
  44. package/components/textarea.mjs +269 -0
  45. package/components/thumbnail-navigation.mjs +232 -0
  46. package/components/toast.mjs +191 -0
  47. package/components/tooltip.mjs +125 -0
  48. package/components/wishlist-button.mjs +132 -0
  49. package/css-C8WrrxT-.mjs +41 -0
  50. package/css.d.ts +1 -0
  51. package/directive-helpers-BHuwIghp.mjs +11 -0
  52. package/directive-oAbCiebi.mjs +27 -0
  53. package/element-internals-Dw7LndlH.mjs +19 -0
  54. package/icons-Pdn_6YtT.mjs +104 -0
  55. package/icons-occ.mjs +834 -0
  56. package/if-defined-j0wE2gL4.mjs +10 -0
  57. package/index.mjs +41 -9712
  58. package/live-C_TUoYRm.mjs +30 -0
  59. package/loader.d.ts +3 -0
  60. package/loader.mjs +78 -0
  61. package/logo-CEgaTL93.mjs +4 -0
  62. package/package.json +19 -1
  63. package/performance-mixin-D7YmSeqN.mjs +628 -0
  64. package/performance-reporter-B7ZOqnDk.mjs +89 -0
  65. package/property-S_Y9cb04.mjs +36 -0
  66. package/query-NJDNu0-P.mjs +25 -0
  67. package/state-DjMxXomO.mjs +12 -0
  68. package/svg-utils-CRDBD8ES.mjs +47 -0
  69. package/unsafe-svg-C3uTocNg.mjs +34 -0
  70. package/index.js +0 -5748
@@ -0,0 +1,340 @@
1
+ import { i as u, m as g, E as b, x as a, a as p, t as d } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as i } from "../property-S_Y9cb04.mjs";
3
+ import { o as v } from "../if-defined-j0wE2gL4.mjs";
4
+ import { b as y, o as f } from "../icons-Pdn_6YtT.mjs";
5
+ import { c as m } from "../svg-utils-CRDBD8ES.mjs";
6
+ import { f as x, i as w, s as k } from "../css-C8WrrxT-.mjs";
7
+ var $ = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (t, s, e, r) => {
8
+ for (var c = r > 1 ? void 0 : r ? O(s, e) : s, l = t.length - 1, h; l >= 0; l--)
9
+ (h = t[l]) && (c = (r ? h(s, e, c) : h(c)) || c);
10
+ return r && c && $(s, e, c), c;
11
+ };
12
+ const S = (t) => t.startsWith("occ-");
13
+ let o = class extends g(p) {
14
+ constructor() {
15
+ super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.showSrLabel = !1, this.srLabel = "";
16
+ }
17
+ _clearOccSubscription() {
18
+ var t;
19
+ (t = this._unsubOcc) == null || t.call(this), this._unsubOcc = void 0;
20
+ }
21
+ _syncOccSubscription() {
22
+ const t = this.icon;
23
+ if (!t || !S(t)) {
24
+ this._clearOccSubscription();
25
+ return;
26
+ }
27
+ const { svg: s } = y(t, { size: this.size, bgstyle: this.bgstyle });
28
+ if (s) {
29
+ this._clearOccSubscription();
30
+ return;
31
+ }
32
+ this._unsubOcc || (this._unsubOcc = f(() => {
33
+ this._clearOccSubscription(), this.requestUpdate();
34
+ }));
35
+ }
36
+ connectedCallback() {
37
+ super.connectedCallback(), this._syncOccSubscription();
38
+ }
39
+ disconnectedCallback() {
40
+ this._clearOccSubscription(), super.disconnectedCallback();
41
+ }
42
+ updated(t) {
43
+ super.updated(t), this.style.setProperty("--icon-stroke-width", this.strokewidth), t.has("icon") && this._syncOccSubscription();
44
+ }
45
+ render() {
46
+ if (!this.icon)
47
+ return b;
48
+ const t = m(this.icon, this.size, this.bgstyle);
49
+ if (!t) return b;
50
+ const s = `icon-${this.icon}`, e = this.showSrLabel ? a`<span class="sr-only">${this.srLabel}</span>` : null, r = this.showSrLabel ? "" : "icon";
51
+ return a`
52
+ ${this.type === "span" ? a`
53
+ <span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
54
+ ${t}
55
+ </span>
56
+ ` : a`
57
+ <button
58
+ type="button"
59
+ aria-label=${v(r)}
60
+ aria-describedby=${this.getAttribute("aria-describedby") || b}
61
+ part="icon-button"
62
+ class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}"
63
+ ?disabled="${this.disabled}"
64
+ >
65
+ ${t}
66
+ ${e}
67
+ </button>
68
+ `}
69
+ `;
70
+ }
71
+ };
72
+ o.styles = u`
73
+ :host {
74
+ display: inline-flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ outline: none !important;
78
+ }
79
+
80
+ .icon-button {
81
+ display: flex;
82
+ justify-content: center;
83
+ align-items: center;
84
+ width: 32px;
85
+ height: 32px;
86
+ border: transparent;
87
+ border-radius: var(--radius-full);
88
+ cursor: pointer;
89
+ position: relative;
90
+ }
91
+
92
+ .icon-button.icon-wishlist svg path {
93
+ stroke: var(--color-content-action-secondary);
94
+ stroke-width: var(--icon-stroke-width, 1);
95
+ }
96
+
97
+ .icon-button.filled svg {
98
+ fill: var(--color-content-action-secondary);
99
+ }
100
+
101
+ .icon-button.xsmall {
102
+ width: 20px;
103
+ height: 20px;
104
+ }
105
+
106
+ .icon-button.xsmall:not(.icon-wishlist) svg {
107
+ width: 8px;
108
+ height: 8px;
109
+ }
110
+
111
+ .icon-button.small {
112
+ width: 32px;
113
+ height: 32px;
114
+ }
115
+
116
+ .icon-button.small:not(.icon-wishlist) svg {
117
+ width: 16px;
118
+ height: 16px;
119
+ }
120
+
121
+ .icon-button.medium {
122
+ width: 40px;
123
+ height: 40px;
124
+ }
125
+
126
+ .icon-button.medium:not(.icon-wishlist) svg {
127
+ width: 16px;
128
+ height: 16px;
129
+ }
130
+
131
+ .icon-button.large {
132
+ width: 40px;
133
+ height: 40px;
134
+ }
135
+
136
+ .icon-button.large:not(.icon-wishlist) svg {
137
+ width: 24px;
138
+ height: 24px;
139
+ }
140
+
141
+ .icon-button.none-light, .icon-button.none-contrast {
142
+ background-color: transparent;
143
+ width: auto;
144
+ height: auto;
145
+ }
146
+
147
+ .icon-button.none-light.xsmall svg,
148
+ .icon-button.none-contrast.xsmall svg {
149
+ width: 8px;
150
+ height: 8px;
151
+ }
152
+
153
+ .icon-button.none-light.small svg,
154
+ .icon-button.none-contrast.small svg {
155
+ width: 12px;
156
+ height: 12px;
157
+ }
158
+
159
+ .icon-button.none-light.medium svg,
160
+ .icon-button.none-contrast.medium svg {
161
+ width: 16px;
162
+ height: 16px;
163
+ }
164
+
165
+ .icon-button.none-light.large svg,
166
+ .icon-button.none-contrast.large svg {
167
+ width: 24px;
168
+ height: 24px;
169
+ }
170
+
171
+ .icon-button.none-light:disabled,
172
+ .icon-button.none-contrast:disabled {
173
+ background-color: transparent;
174
+ }
175
+
176
+ .icon-button.none-light svg path {
177
+ stroke: none;
178
+ fill: var(--color-content-action-primary);
179
+ }
180
+
181
+ .icon-button.icon-wishlist.none-light svg path {
182
+ stroke: var(--color-content-action-primary);
183
+ }
184
+
185
+ .icon-button.none-light.icon-wishlist svg path {
186
+ fill: none;
187
+ }
188
+
189
+ :host([status="filled"]) .icon-button.none-light.icon-wishlist svg path {
190
+ fill: var(--color-content-action-primary);
191
+ }
192
+
193
+ .icon-button.background-light {
194
+ background-color: var(--color-alpha-light-strong);
195
+ }
196
+ .icon-button.background-light:hover:not(:disabled) {
197
+ background-color: var(--color-alpha-light-stronger);
198
+ }
199
+ .icon-button.background-light:active:not(:disabled) {
200
+ background-color: var(--color-alpha-light-strongest);
201
+ }
202
+
203
+ .icon-button.background-contrast {
204
+ background-color: var(--color-container-action-tertiary-default);
205
+ }
206
+ .icon-button.background-contrast:hover:not(:disabled) {
207
+ background-color: var(--color-container-action-tertiary-hover);
208
+ }
209
+ .icon-button.background-contrast:active:not(:disabled) {
210
+ background-color: var(--color-container-action-tertiary-pressed);
211
+ }
212
+
213
+ /* ghost-light */
214
+ .icon-button.ghost-light {
215
+ background-color: transparent;
216
+ }
217
+ .icon-button.ghost-light svg path {
218
+ stroke: var(--color-content-action-primary);
219
+ fill: var(--color-content-action-primary);
220
+ }
221
+ .icon-button.ghost-light:hover:not(:disabled) {
222
+ background-color: var(--color-alpha-light-lightest);
223
+ }
224
+ .icon-button.ghost-light:active:not(:disabled) {
225
+ background-color: var(--color-alpha-light-light);
226
+ }
227
+
228
+ .icon-button.icon-success,
229
+ .icon-button.icon-error,
230
+ .icon-button.icon-info {
231
+ background-color: transparent;
232
+ width: auto;
233
+ height: auto;
234
+ }
235
+
236
+ .icon-button.icon-success svg path,
237
+ .icon-button.icon-error svg path,
238
+ .icon-button.icon-info svg path {
239
+ stroke: var(--color-content-action-primary);
240
+ }
241
+
242
+ .icon-button.icon-success svg path {
243
+ fill: var(--color-content-success);
244
+ }
245
+
246
+ .icon-button.icon-error svg path {
247
+ fill: var(--color-content-error);
248
+ }
249
+
250
+ .icon-button.icon-info svg path {
251
+ fill: var(--color-content-info);
252
+ }
253
+
254
+ /* ghost-contrast */
255
+ .icon-button.ghost-contrast {
256
+ background-color: transparent;
257
+ }
258
+ .icon-button.ghost-contrast:hover:not(:disabled) {
259
+ background-color: var(--color-alpha-light-medium);
260
+ }
261
+ .icon-button.ghost-contrast:active:not(:disabled) {
262
+ background-color: var(--color-alpha-light-strongest);
263
+ }
264
+
265
+ /* disabled */
266
+ .icon-button:disabled {
267
+ background-color: var(--color-container-disabled);
268
+ cursor: default;
269
+ }
270
+ .icon-button:disabled svg {
271
+ fill: var(--color-content-disabled);
272
+ }
273
+ .icon-button:disabled svg path {
274
+ fill: var(--color-content-disabled);
275
+ }
276
+
277
+ .icon-button:focus-visible {
278
+ ${x}
279
+ }
280
+
281
+ :host(.go-to-top) .icon-button:focus-visible {
282
+ ${w}
283
+ }
284
+
285
+ .icon-button.highlight {
286
+ border: 1px solid rgba(0, 0, 0, 0.24) !important;
287
+ background: rgba(255, 255, 255, 0.56);
288
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
289
+ }
290
+
291
+ .icon-button.highlight:hover:not(:disabled) {
292
+ background: rgba(255, 255, 255, 0.68);
293
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
294
+ }
295
+
296
+ .icon-button.highlight:active:not(:disabled) {
297
+ background: rgba(255, 255, 255, 0.82);
298
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.32);
299
+ }
300
+
301
+ .sr-only {
302
+ ${k}
303
+ }
304
+ `;
305
+ n([
306
+ i({ type: String, reflect: !0 })
307
+ ], o.prototype, "bgstyle", 2);
308
+ n([
309
+ i({ type: String, reflect: !0 })
310
+ ], o.prototype, "size", 2);
311
+ n([
312
+ i({ type: String, reflect: !0 })
313
+ ], o.prototype, "status", 2);
314
+ n([
315
+ i({ type: String, reflect: !0 })
316
+ ], o.prototype, "type", 2);
317
+ n([
318
+ i({ type: String })
319
+ ], o.prototype, "strokewidth", 2);
320
+ n([
321
+ i({ type: String })
322
+ ], o.prototype, "icon", 2);
323
+ n([
324
+ i({ type: Boolean, reflect: !0 })
325
+ ], o.prototype, "disabled", 2);
326
+ n([
327
+ i({ type: Boolean, reflect: !0 })
328
+ ], o.prototype, "highlight", 2);
329
+ n([
330
+ i({ type: Boolean })
331
+ ], o.prototype, "showSrLabel", 2);
332
+ n([
333
+ i({ type: String })
334
+ ], o.prototype, "srLabel", 2);
335
+ o = n([
336
+ d("o-icon-button")
337
+ ], o);
338
+ export {
339
+ o as OccitaneIconButton
340
+ };
@@ -0,0 +1,298 @@
1
+ import { m as f, a as b, i as v, x as n, E as s, t as g } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as o } from "../property-S_Y9cb04.mjs";
3
+ import { e as m } from "../query-NJDNu0-P.mjs";
4
+ import { l as y } from "../live-C_TUoYRm.mjs";
5
+ import { o as h } from "../if-defined-j0wE2gL4.mjs";
6
+ import "./icon-button.mjs";
7
+ import { m as w, i as d } from "../element-internals-Dw7LndlH.mjs";
8
+ var x = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, e = (r, i, c, l) => {
9
+ for (var a = l > 1 ? void 0 : l ? $(i, c) : i, p = r.length - 1, u; p >= 0; p--)
10
+ (u = r[p]) && (a = (l ? u(i, c, a) : u(a)) || a);
11
+ return l && a && x(i, c, a), a;
12
+ };
13
+ const I = f(w(b));
14
+ let S = 0, t = class extends I {
15
+ constructor() {
16
+ super(), this.label = "", this.value = "", this.placeholder = "", this.helperText = "", this.state = "default", this.disabled = !1, this.leadingIcon = "", this.trailingIcon = "", this.name = "", this.required = !1, this.clearLabel = "Clear", this.inputId = "", this.inputId || (this.inputId = `o-input-${++S}`);
17
+ }
18
+ updated(r) {
19
+ (r.has("value") || r.has("name")) && this[d].setFormValue(this.value);
20
+ }
21
+ formResetCallback() {
22
+ this.value = "", this[d].setFormValue("");
23
+ }
24
+ handleInput(r) {
25
+ r.stopPropagation();
26
+ const i = r.target;
27
+ this.value = i.value, this.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 }));
28
+ }
29
+ handleChange(r) {
30
+ r.stopPropagation();
31
+ const i = r.target;
32
+ this.value = i.value, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
33
+ }
34
+ handleClear() {
35
+ this.value = "", this.inputEl && this.inputEl.focus(), this.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 })), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
36
+ }
37
+ renderHelperIcon() {
38
+ return this.state === "success" ? n`<o-icon-button type="span" icon="occ-check-filled" bgstyle="none-light" size="small"></o-icon-button>` : this.state === "error" ? n`<o-icon-button type="span" icon="occ-warning" bgstyle="none-light" size="small"></o-icon-button>` : s;
39
+ }
40
+ renderTrailingIcon() {
41
+ return this.trailingIcon ? this.trailingIcon === "occ-close-outlined" ? n`
42
+ <o-icon-button
43
+ type="button"
44
+ icon=${this.trailingIcon}
45
+ bgstyle="none-contrast"
46
+ size="medium"
47
+ ?showSrLabel=${!0}
48
+ srLabel=${this.clearLabel}
49
+ @click=${this.handleClear}
50
+ ></o-icon-button>
51
+ ` : n`
52
+ <o-icon-button
53
+ type="span"
54
+ icon=${this.trailingIcon}
55
+ bgstyle="none-contrast"
56
+ size="medium"
57
+ style="cursor: default;"
58
+ ></o-icon-button>
59
+ ` : s;
60
+ }
61
+ render() {
62
+ return n`
63
+ ${this.label ? n`<label class="label" for=${this.inputId}>${this.label}</label>` : s}
64
+
65
+ <div class="input-wrapper">
66
+ ${this.leadingIcon ? n`<o-icon-button type="span" icon=${this.leadingIcon} bgstyle="none-contrast" size="medium"></o-icon-button>` : s}
67
+
68
+ <input
69
+ id=${this.inputId}
70
+ type="text"
71
+ .value=${y(this.value)}
72
+ placeholder=${this.placeholder}
73
+ name=${this.name}
74
+ ?disabled=${this.disabled}
75
+ ?required=${this.required}
76
+ aria-label=${h(this.label ? void 0 : this.ariaLabel ?? void 0)}
77
+ aria-invalid=${h(this.state === "error" ? "true" : void 0)}
78
+ aria-describedby=${h(this.helperText ? `${this.inputId}-helper` : void 0)}
79
+ @input=${this.handleInput}
80
+ @change=${this.handleChange}
81
+ />
82
+
83
+ ${this.renderTrailingIcon()}
84
+ </div>
85
+
86
+ ${this.helperText ? n`
87
+ <div class="helper-text" id="${this.inputId}-helper">
88
+ ${this.renderHelperIcon()}
89
+ <p>${this.helperText}</p>
90
+ </div>
91
+ ` : s}
92
+ `;
93
+ }
94
+ };
95
+ t.formAssociated = !0;
96
+ t.shadowRootOptions = {
97
+ ...b.shadowRootOptions,
98
+ delegatesFocus: !0
99
+ };
100
+ t.styles = v`
101
+ :host {
102
+ display: flex;
103
+ flex-direction: column;
104
+ gap: var(--spacing-xs, 4px);
105
+ --o-input-icon-color: var(--color-content-body, #3f2b2e);
106
+ }
107
+
108
+ .label {
109
+ color: var(--color-content-body, #3f2b2e);
110
+ font-family: var(--font-family-loccitane-sans, LOccitaneSans);
111
+ font-size: var(--font-size-150, 14px);
112
+ font-style: normal;
113
+ font-weight: var(--font-weight-400, 400);
114
+ line-height: var(--line-height-200, 20px);
115
+ letter-spacing: var(--letter-spacing-000, 0);
116
+ }
117
+
118
+ .input-wrapper {
119
+ display: flex;
120
+ padding: var(--spacing-l, 12px);
121
+ align-items: center;
122
+ gap: var(--spacing-l, 12px);
123
+ align-self: stretch;
124
+ border-radius: var(--radius-m, 4px);
125
+ border: var(--border-m, 1px) solid var(--color-border-secondary, #7e7173);
126
+ background: var(--color-container-bg-default, #fbf9f6);
127
+ box-sizing: border-box;
128
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
129
+ }
130
+
131
+ .input-wrapper:hover {
132
+ border-color: var(--color-border-primary, #3f2b2e);
133
+ }
134
+
135
+ .input-wrapper:focus-within,
136
+ .input-wrapper:active,
137
+ :host(:focus) .input-wrapper {
138
+ border-color: var(--color-border-primary, #3f2b2e);
139
+ box-shadow: var(--o-input-focus-ring, 0 0 0 1px var(--color-border-primary, #3f2b2e));
140
+ }
141
+
142
+ :host([state="error"]) .input-wrapper {
143
+ border-color: var(--color-border-error, #bb0218);
144
+ box-shadow: none;
145
+ background: var(--color-container-bg-default, #fbf9f6);
146
+ }
147
+
148
+ :host([state="error"]) .input-wrapper:hover {
149
+ border-color: var(--color-border-error, #bb0218);
150
+ }
151
+
152
+ :host([state="error"]) .input-wrapper:focus-within,
153
+ :host([state="error"]) .input-wrapper:active,
154
+ :host([state="error"]:focus) .input-wrapper {
155
+ border-color: var(--color-border-error, #bb0218);
156
+ box-shadow: var(--o-input-focus-ring, 0 0 0 1px var(--color-border-error, #bb0218));
157
+ }
158
+
159
+ :host([state="success"]) .input-wrapper {
160
+ border-color: var(--color-border-success, #3b7902);
161
+ box-shadow: none;
162
+ background: var(--color-container-bg-default, #fbf9f6);
163
+ }
164
+
165
+ :host([state="success"]) .input-wrapper:hover {
166
+ border-color: var(--color-border-success, #3b7902);
167
+ }
168
+
169
+ :host([state="success"]) .input-wrapper:focus-within,
170
+ :host([state="success"]) .input-wrapper:active,
171
+ :host([state="success"]:focus) .input-wrapper {
172
+ border-color: var(--color-border-success, #3b7902);
173
+ box-shadow: var(--o-input-focus-ring, 0 0 0 1px var(--color-border-success, #3b7902));
174
+ }
175
+
176
+ :host([disabled]) .input-wrapper,
177
+ :host([disabled]) .input-wrapper:hover,
178
+ :host([disabled]) .input-wrapper:focus-within,
179
+ :host([disabled]) .input-wrapper:active,
180
+ :host([disabled]:focus) .input-wrapper {
181
+ border-color: var(--color-border-tertiary, #c3bdbe);
182
+ box-shadow: none;
183
+ background: var(--color-container-disabled, #eceaea);
184
+ cursor: not-allowed;
185
+ }
186
+
187
+ input {
188
+ flex: 1;
189
+ border: none;
190
+ outline: none;
191
+ background: transparent;
192
+ color: var(--color-content-body, #3f2b2e);
193
+ font-family: var(--font-family-loccitane-sans, LOccitaneSans);
194
+ font-size: var(--font-size-150, 14px);
195
+ font-style: normal;
196
+ font-weight: var(--font-weight-400, 400);
197
+ line-height: var(--line-height-200, 20px);
198
+ letter-spacing: var(--letter-spacing-000, 0);
199
+ padding: 0;
200
+ min-width: 0;
201
+ }
202
+
203
+ input::placeholder {
204
+ color: var(--color-content-disabled, #7e7173);
205
+ overflow: hidden;
206
+ text-overflow: ellipsis;
207
+ }
208
+
209
+ input:disabled {
210
+ cursor: not-allowed;
211
+ }
212
+
213
+ .helper-text {
214
+ display: flex;
215
+ align-items: center;
216
+ gap: var(--spacing-xs, 4px);
217
+ color: var(--color-content-description, #655558);
218
+ font-family: var(--font-family-loccitane-sans, LOccitaneSans);
219
+ font-size: var(--font-size-100, 12px);
220
+ font-style: normal;
221
+ font-weight: var(--font-weight-400, 400);
222
+ line-height: var(--line-height-160, 16px);
223
+ letter-spacing: var(--letter-spacing-000, 0);
224
+ }
225
+
226
+ .input-wrapper o-icon-button::part(icon-path) {
227
+ fill: var(--o-input-icon-color);
228
+ }
229
+
230
+ .helper-text p {
231
+ margin: 0;
232
+ }
233
+
234
+ .helper-text o-icon-button {
235
+ --color-content-action-primary: var(--color-content-description, #655558);
236
+ }
237
+
238
+ :host([state="error"]) .helper-text {
239
+ color: var(--color-content-error, #bb0218);
240
+ }
241
+
242
+ :host([state="error"]) .helper-text o-icon-button {
243
+ --color-content-action-primary: var(--color-content-error, #bb0218);
244
+ }
245
+
246
+ :host([state="success"]) .helper-text {
247
+ color: var(--color-content-success, #3b7902);
248
+ }
249
+
250
+ :host([state="success"]) .helper-text o-icon-button {
251
+ --color-content-action-primary: var(--color-content-success, #3b7902);
252
+ }
253
+ `;
254
+ e([
255
+ o({ type: String })
256
+ ], t.prototype, "label", 2);
257
+ e([
258
+ o({ type: String, reflect: !0 })
259
+ ], t.prototype, "value", 2);
260
+ e([
261
+ o({ type: String, reflect: !0 })
262
+ ], t.prototype, "placeholder", 2);
263
+ e([
264
+ o({ type: String, attribute: "helper-text" })
265
+ ], t.prototype, "helperText", 2);
266
+ e([
267
+ o({ type: String, reflect: !0 })
268
+ ], t.prototype, "state", 2);
269
+ e([
270
+ o({ type: Boolean, reflect: !0 })
271
+ ], t.prototype, "disabled", 2);
272
+ e([
273
+ o({ type: String, attribute: "leading-icon" })
274
+ ], t.prototype, "leadingIcon", 2);
275
+ e([
276
+ o({ type: String, attribute: "trailing-icon" })
277
+ ], t.prototype, "trailingIcon", 2);
278
+ e([
279
+ o({ type: String })
280
+ ], t.prototype, "name", 2);
281
+ e([
282
+ o({ type: Boolean })
283
+ ], t.prototype, "required", 2);
284
+ e([
285
+ o({ type: String, attribute: "clear-label" })
286
+ ], t.prototype, "clearLabel", 2);
287
+ e([
288
+ o({ type: String, reflect: !0, attribute: "input-id" })
289
+ ], t.prototype, "inputId", 2);
290
+ e([
291
+ m("input")
292
+ ], t.prototype, "inputEl", 2);
293
+ t = e([
294
+ g("o-input")
295
+ ], t);
296
+ export {
297
+ t as OccitaneInput
298
+ };