@florid-kit/components 2.6.9 → 2.6.11

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 (63) hide show
  1. package/assets/icons/icons.d.ts +66 -7
  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 +5742 -0
  8. package/index.mjs +9629 -68
  9. package/package.json +2 -19
  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.mjs +0 -413
  34. package/components/popin.mjs +0 -412
  35. package/components/radio.mjs +0 -165
  36. package/components/rating.mjs +0 -84
  37. package/components/reassurance.mjs +0 -163
  38. package/components/search-input-dropdown.mjs +0 -314
  39. package/components/search-input.mjs +0 -107
  40. package/components/side-panel.mjs +0 -1197
  41. package/components/tab.mjs +0 -140
  42. package/components/tablist.mjs +0 -44
  43. package/components/tag.mjs +0 -86
  44. package/components/textarea.mjs +0 -269
  45. package/components/thumbnail-navigation.mjs +0 -232
  46. package/components/toast.mjs +0 -190
  47. package/components/tooltip.mjs +0 -125
  48. package/components/wishlist-button.mjs +0 -137
  49. package/css-r3TDS8Ma.mjs +0 -37
  50. package/directive-helpers-CjGdYF2i.mjs +0 -11
  51. package/directive-oAbCiebi.mjs +0 -27
  52. package/element-internals-Dw7LndlH.mjs +0 -19
  53. package/icons-occ-DW--7nRr.mjs +0 -834
  54. package/if-defined-BaFqfNKT.mjs +0 -10
  55. package/live-BPnRJXAq.mjs +0 -30
  56. package/loader.d.ts +0 -3
  57. package/loader.mjs +0 -81
  58. package/logo-CEgaTL93.mjs +0 -4
  59. package/performance-mixin-vBVz5Iib.mjs +0 -774
  60. package/property-8EkRXcYy.mjs +0 -36
  61. package/query-NJDNu0-P.mjs +0 -25
  62. package/state-BvkYxy1c.mjs +0 -12
  63. package/unsafe-svg-CRYN20gz.mjs +0 -210
package/package.json CHANGED
@@ -1,27 +1,10 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "2.6.9",
4
- "main": "index.mjs",
3
+ "version": "2.6.11",
4
+ "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",
7
7
  "description": "This library was generated with [Nx](https://nx.dev).",
8
- "exports": {
9
- ".": {
10
- "import": "./index.mjs",
11
- "default": "./index.mjs",
12
- "types": "./index.d.ts"
13
- },
14
- "./loader": {
15
- "import": "./loader.mjs",
16
- "default": "./loader.mjs",
17
- "types": "./loader.d.ts"
18
- },
19
- "./components/*": {
20
- "import": "./components/*.mjs",
21
- "default": "./components/*.mjs",
22
- "types": "./components/*.d.ts"
23
- }
24
- },
25
8
  "dependencies": {
26
9
  "@florid-kit/tokens": "^0.1.17"
27
10
  },
@@ -1,315 +0,0 @@
1
- export declare const occIconRegistry: {
2
- readonly "occ-address": {
3
- readonly small: string;
4
- readonly medium: string;
5
- readonly large: string;
6
- };
7
- readonly "occ-autorep": {
8
- readonly small: string;
9
- readonly medium: string;
10
- readonly large: string;
11
- };
12
- readonly "occ-back": {
13
- readonly small: string;
14
- readonly medium: string;
15
- readonly large: string;
16
- };
17
- readonly "occ-bag-filled": {
18
- readonly small: string;
19
- readonly medium: string;
20
- readonly large: string;
21
- };
22
- readonly "occ-bag-outlined": {
23
- readonly small: string;
24
- readonly medium: string;
25
- readonly large: string;
26
- };
27
- readonly "occ-bag-strike": {
28
- readonly small: string;
29
- readonly medium: string;
30
- readonly large: string;
31
- };
32
- readonly "occ-bottle": {
33
- readonly small: string;
34
- readonly medium: string;
35
- readonly large: string;
36
- };
37
- readonly "occ-briefcase": {
38
- readonly small: string;
39
- readonly medium: string;
40
- readonly large: string;
41
- };
42
- readonly "occ-burger": {
43
- readonly small: string;
44
- readonly medium: string;
45
- readonly large: string;
46
- };
47
- readonly "occ-card": {
48
- readonly small: string;
49
- readonly medium: string;
50
- readonly large: string;
51
- };
52
- readonly "occ-career": {
53
- readonly small: string;
54
- readonly medium: string;
55
- readonly large: string;
56
- };
57
- readonly "occ-check-filled": {
58
- readonly small: string;
59
- readonly medium: string;
60
- readonly large: string;
61
- };
62
- readonly "occ-check-outlined": {
63
- readonly small: string;
64
- readonly medium: string;
65
- readonly large: string;
66
- };
67
- readonly "occ-chevron-bottom": {
68
- readonly small: string;
69
- readonly medium: string;
70
- readonly large: string;
71
- };
72
- readonly "occ-chevron-double": {
73
- readonly small: string;
74
- readonly medium: string;
75
- readonly large: string;
76
- };
77
- readonly "occ-chevron-left": {
78
- readonly small: string;
79
- readonly medium: string;
80
- readonly large: string;
81
- };
82
- readonly "occ-chevron-right": {
83
- readonly small: string;
84
- readonly medium: string;
85
- readonly large: string;
86
- };
87
- readonly "occ-chevron-top": {
88
- readonly small: string;
89
- readonly medium: string;
90
- readonly large: string;
91
- };
92
- readonly "occ-close-filled": {
93
- readonly small: string;
94
- readonly medium: string;
95
- readonly large: string;
96
- };
97
- readonly "occ-close-outlined": {
98
- readonly small: string;
99
- readonly medium: string;
100
- readonly large: string;
101
- };
102
- readonly "occ-cream": {
103
- readonly small: string;
104
- readonly medium: string;
105
- readonly large: string;
106
- };
107
- readonly "occ-cream-tube": {
108
- readonly small: string;
109
- readonly medium: string;
110
- readonly large: string;
111
- };
112
- readonly "occ-eye-hide": {
113
- readonly small: string;
114
- readonly medium: string;
115
- readonly large: string;
116
- };
117
- readonly "occ-eye-show": {
118
- readonly small: string;
119
- readonly medium: string;
120
- readonly large: string;
121
- };
122
- readonly "occ-gear": {
123
- readonly small: string;
124
- readonly medium: string;
125
- readonly large: string;
126
- };
127
- readonly "occ-gear-outline": {
128
- readonly small: string;
129
- readonly medium: string;
130
- readonly large: string;
131
- };
132
- readonly "occ-geoloc": {
133
- readonly small: string;
134
- readonly medium: string;
135
- readonly large: string;
136
- };
137
- readonly "occ-gift": {
138
- readonly small: string;
139
- readonly medium: string;
140
- readonly large: string;
141
- };
142
- readonly "occ-group": {
143
- readonly small: string;
144
- readonly medium: string;
145
- readonly large: string;
146
- };
147
- readonly "occ-hand-shake": {
148
- readonly small: string;
149
- readonly medium: string;
150
- readonly large: string;
151
- };
152
- readonly "occ-info": {
153
- readonly small: string;
154
- readonly medium: string;
155
- readonly large: string;
156
- };
157
- readonly "occ-location": {
158
- readonly small: string;
159
- readonly medium: string;
160
- readonly large: string;
161
- };
162
- readonly "occ-mail": {
163
- readonly small: string;
164
- readonly medium: string;
165
- readonly large: string;
166
- };
167
- readonly "occ-message": {
168
- readonly small: string;
169
- readonly medium: string;
170
- readonly large: string;
171
- };
172
- readonly "occ-minus": {
173
- readonly small: string;
174
- readonly medium: string;
175
- readonly large: string;
176
- };
177
- readonly "occ-order": {
178
- readonly small: string;
179
- readonly medium: string;
180
- readonly large: string;
181
- };
182
- readonly "occ-order-sent": {
183
- readonly small: string;
184
- readonly medium: string;
185
- readonly large: string;
186
- };
187
- readonly "occ-padlock": {
188
- readonly small: string;
189
- readonly medium: string;
190
- readonly large: string;
191
- };
192
- readonly "occ-pause": {
193
- readonly small: string;
194
- readonly medium: string;
195
- readonly large: string;
196
- };
197
- readonly "occ-play": {
198
- readonly small: string;
199
- readonly medium: string;
200
- readonly large: string;
201
- };
202
- readonly "occ-plus": {
203
- readonly small: string;
204
- readonly medium: string;
205
- readonly large: string;
206
- };
207
- readonly "occ-product": {
208
- readonly small: string;
209
- readonly medium: string;
210
- readonly large: string;
211
- };
212
- readonly "occ-profil-filled": {
213
- readonly small: string;
214
- readonly medium: string;
215
- readonly large: string;
216
- };
217
- readonly "occ-profil-outlined": {
218
- readonly small: string;
219
- readonly medium: string;
220
- readonly large: string;
221
- };
222
- readonly "occ-refill": {
223
- readonly small: string;
224
- readonly medium: string;
225
- readonly large: string;
226
- };
227
- readonly "occ-refine": {
228
- readonly small: string;
229
- readonly medium: string;
230
- readonly large: string;
231
- };
232
- readonly "occ-reward-card": {
233
- readonly small: string;
234
- readonly medium: string;
235
- readonly large: string;
236
- };
237
- readonly "occ-samples": {
238
- readonly small: string;
239
- readonly medium: string;
240
- readonly large: string;
241
- };
242
- readonly "occ-search": {
243
- readonly small: string;
244
- readonly medium: string;
245
- readonly large: string;
246
- };
247
- readonly "occ-star-0": {
248
- readonly small: string;
249
- readonly medium: string;
250
- readonly large: string;
251
- };
252
- readonly "occ-star-100": {
253
- readonly small: string;
254
- readonly medium: string;
255
- readonly large: string;
256
- };
257
- readonly "occ-star-25": {
258
- readonly small: string;
259
- readonly medium: string;
260
- readonly large: string;
261
- };
262
- readonly "occ-star-50": {
263
- readonly small: string;
264
- readonly medium: string;
265
- readonly large: string;
266
- };
267
- readonly "occ-star-75": {
268
- readonly small: string;
269
- readonly medium: string;
270
- readonly large: string;
271
- };
272
- readonly "occ-store": {
273
- readonly small: string;
274
- readonly medium: string;
275
- readonly large: string;
276
- };
277
- readonly "occ-warning": {
278
- readonly small: string;
279
- readonly medium: string;
280
- readonly large: string;
281
- };
282
- readonly "occ-warning-stroke": {
283
- readonly small: string;
284
- readonly medium: string;
285
- readonly large: string;
286
- };
287
- readonly "occ-wishlist-filled": {
288
- readonly small: string;
289
- readonly medium: string;
290
- readonly large: string;
291
- };
292
- readonly "occ-wishlist-outlined": {
293
- readonly small: string;
294
- readonly medium: string;
295
- readonly large: string;
296
- };
297
- readonly "occ-trash": {
298
- readonly small: string;
299
- readonly medium: string;
300
- readonly large: string;
301
- };
302
- readonly "occ-triangle-up": {
303
- readonly small: string;
304
- readonly medium: string;
305
- readonly large: string;
306
- };
307
- readonly "occ-triangle-down": {
308
- readonly small: string;
309
- readonly medium: string;
310
- readonly large: string;
311
- };
312
- };
313
- export type OccIconName = keyof typeof occIconRegistry;
314
- export type OccIconSize = "small" | "medium" | "large";
315
- export type OccIconVariants = Partial<Record<OccIconSize, string>>;
@@ -1,61 +0,0 @@
1
- import { i as c, m as f, a as d, x as p, t as h } from "../performance-mixin-vBVz5Iib.mjs";
2
- import { n as g } from "../property-8EkRXcYy.mjs";
3
- import { e as u } from "../query-NJDNu0-P.mjs";
4
- import "./accordion.mjs";
5
- var m = Object.defineProperty, O = Object.getOwnPropertyDescriptor, a = (e, t, o, r) => {
6
- for (var n = r > 1 ? void 0 : r ? O(t, o) : t, i = e.length - 1, l; i >= 0; i--)
7
- (l = e[i]) && (n = (r ? l(t, o, n) : l(n)) || n);
8
- return r && n && m(t, o, n), n;
9
- };
10
- let s = class extends f(d) {
11
- constructor() {
12
- super(), this.single = !1, this.handleAccordionChange = (e) => {
13
- var o;
14
- if (!this.single) return;
15
- const t = e.target;
16
- !t || ((o = t.tagName) == null ? void 0 : o.toLowerCase()) !== "o-accordion" || t.expanded && this.getAccordions().forEach((r) => {
17
- r !== t && (r.expanded = !1);
18
- });
19
- }, this.enforceSingleOpen = () => {
20
- if (!this.single) return;
21
- let e = !1;
22
- this.getAccordions().forEach((t) => {
23
- t.expanded && (e ? t.expanded = !1 : e = !0);
24
- });
25
- }, this.addEventListener("change", this.handleAccordionChange);
26
- }
27
- firstUpdated() {
28
- var e;
29
- this.enforceSingleOpen(), (e = this.defaultSlot) == null || e.addEventListener("slotchange", this.enforceSingleOpen);
30
- }
31
- disconnectedCallback() {
32
- var e;
33
- (e = this.defaultSlot) == null || e.removeEventListener("slotchange", this.enforceSingleOpen), super.disconnectedCallback();
34
- }
35
- updated(e) {
36
- e.has("single") && this.single && this.enforceSingleOpen();
37
- }
38
- getAccordions() {
39
- return Array.from(this.querySelectorAll("o-accordion"));
40
- }
41
- render() {
42
- return p`<slot></slot>`;
43
- }
44
- };
45
- s.styles = c`
46
- :host {
47
- display: block;
48
- }
49
- `;
50
- a([
51
- g({ type: Boolean, reflect: !0 })
52
- ], s.prototype, "single", 2);
53
- a([
54
- u("slot")
55
- ], s.prototype, "defaultSlot", 2);
56
- s = a([
57
- h("o-accordion-group")
58
- ], s);
59
- export {
60
- s as OccitaneAccordionGroup
61
- };
@@ -1,185 +0,0 @@
1
- import { i as c, m as p, a as h, x as f, t as m } from "../performance-mixin-vBVz5Iib.mjs";
2
- import { n as d } from "../property-8EkRXcYy.mjs";
3
- import { f as g } from "../css-r3TDS8Ma.mjs";
4
- import "./icon-button.mjs";
5
- var u = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (a, o, s, n) => {
6
- for (var e = n > 1 ? void 0 : n ? b(o, s) : o, r = a.length - 1, l; r >= 0; r--)
7
- (l = a[r]) && (e = (n ? l(o, s, e) : l(e)) || e);
8
- return n && e && u(o, s, e), e;
9
- };
10
- let y = 0, t = class extends p(h) {
11
- constructor() {
12
- super(), this.label = "", this.expanded = !1, this.disabled = !1;
13
- const a = ++y;
14
- this.headerId = `o-accordion-header-${a}`, this.panelId = `o-accordion-panel-${a}`;
15
- }
16
- toggle() {
17
- this.disabled || (this.expanded = !this.expanded, this.dispatchEvent(new CustomEvent("change", {
18
- detail: { expanded: this.expanded },
19
- bubbles: !0,
20
- composed: !0
21
- })));
22
- }
23
- render() {
24
- return f`
25
- <button
26
- id=${this.headerId}
27
- class="header"
28
- part="header"
29
- aria-expanded="${this.expanded ? "true" : "false"}"
30
- aria-controls=${this.panelId}
31
- ?disabled=${this.disabled}
32
- @click=${this.toggle}
33
- >
34
- <span class="label">
35
- <slot name="header">${this.label}</slot>
36
- </span>
37
- <span class="icon" aria-hidden="true">
38
- <span class="icon-swap">
39
- <o-icon-button class="icon-plus" icon="occ-plus" size="medium" bgstyle="none-contrast" type="span"></o-icon-button>
40
- <o-icon-button class="icon-minus" icon="occ-minus" size="medium" bgstyle="none-contrast" type="span"></o-icon-button>
41
- </span>
42
- </span>
43
- </button>
44
- <div
45
- id=${this.panelId}
46
- class="panel"
47
- role="region"
48
- aria-labelledby=${this.headerId}
49
- aria-hidden="${this.expanded ? "false" : "true"}"
50
- >
51
- <div class="panel-inner" part="panel-inner">
52
- <slot></slot>
53
- </div>
54
- </div>
55
- `;
56
- }
57
- };
58
- t.styles = c`
59
- :host {
60
- display: block;
61
- border-bottom: var(--color-border-tertiary) solid 1px;
62
- }
63
-
64
- :host([disabled]) {
65
- opacity: 0.5;
66
- }
67
-
68
- .header {
69
- width: 100%;
70
- display: flex;
71
- align-items: center;
72
- justify-content: space-between;
73
- gap: var(--spacing-m);
74
- padding: var(--spacing-l) 0;
75
- background: none;
76
- border: 0;
77
- cursor: pointer;
78
- text-align: left;
79
- }
80
-
81
- .header:focus-visible {
82
- ${g};
83
- }
84
-
85
- :host([disabled]) .header {
86
- cursor: not-allowed;
87
- }
88
-
89
- .label {
90
- font-family: var(--font-family-loccitane-sans);
91
- font-size: var(--font-size-100);
92
- font-weight: var(--font-weight-500);
93
- line-height: var(--line-height-160);
94
- letter-spacing: var(--letter-spacing-400);
95
- text-transform: uppercase;
96
- color: var(--color-content-body);
97
- flex: 1 1 auto;
98
- }
99
-
100
- .icon {
101
- display: inline-flex;
102
- align-items: center;
103
- justify-content: center;
104
- flex: 0 0 auto;
105
- }
106
-
107
- .icon-swap {
108
- position: relative;
109
- width: 40px;
110
- }
111
-
112
- .icon-swap o-icon-button {
113
- position: absolute;
114
- inset: 0;
115
- transition: transform 180ms ease, opacity 180ms ease;
116
- transform-origin: 50% 50%;
117
- }
118
-
119
- .icon-plus {
120
- opacity: 1;
121
- transform: rotate(0deg) scale(1);
122
- }
123
-
124
- .icon-minus {
125
- opacity: 0;
126
- transform: rotate(-90deg) scale(0.6);
127
- }
128
-
129
- :host([expanded]) .icon-plus {
130
- opacity: 0;
131
- transform: rotate(90deg) scale(0.6);
132
- }
133
-
134
- :host([expanded]) .icon-minus {
135
- opacity: 1;
136
- transform: rotate(0deg) scale(1);
137
- }
138
-
139
- .panel {
140
- display: grid;
141
- grid-template-rows: 0fr;
142
- transition: grid-template-rows 220ms ease, opacity 220ms ease;
143
- opacity: 0;
144
- }
145
-
146
- :host([expanded]) .panel {
147
- grid-template-rows: 1fr;
148
- opacity: 1;
149
- }
150
-
151
- .panel-inner {
152
- overflow: hidden;
153
- min-height: 0;
154
- padding-bottom: 0;
155
- }
156
-
157
- .panel-inner ::slotted(div) {
158
- color: var(--color-content-body, #3F2B2E);
159
- font-family: var(--font-family-loccitane-sans);
160
- font-size: var(--font-size-150, 14px);
161
- font-style: normal;
162
- font-weight: var(--font-weight-400, 400);
163
- line-height: var(--line-height-200, 20px);
164
- letter-spacing: var(--letter-spacing-000, 0);
165
- }
166
-
167
- :host([expanded]) .panel-inner {
168
- padding-bottom: var(--spacing-3-xl);
169
- }
170
- `;
171
- i([
172
- d({ type: String })
173
- ], t.prototype, "label", 2);
174
- i([
175
- d({ type: Boolean, reflect: !0 })
176
- ], t.prototype, "expanded", 2);
177
- i([
178
- d({ type: Boolean, reflect: !0 })
179
- ], t.prototype, "disabled", 2);
180
- t = i([
181
- m("o-accordion")
182
- ], t);
183
- export {
184
- t as OccitaneAccordion
185
- };