@florid-kit/components 2.6.10 → 2.6.12

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