@florid-kit/components 2.6.18 → 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 (69) 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/directive-helpers-BHuwIghp.mjs +11 -0
  51. package/directive-oAbCiebi.mjs +27 -0
  52. package/element-internals-Dw7LndlH.mjs +19 -0
  53. package/icons-Pdn_6YtT.mjs +104 -0
  54. package/icons-occ.mjs +834 -0
  55. package/if-defined-j0wE2gL4.mjs +10 -0
  56. package/index.mjs +41 -9719
  57. package/live-C_TUoYRm.mjs +30 -0
  58. package/loader.d.ts +3 -0
  59. package/loader.mjs +78 -0
  60. package/logo-CEgaTL93.mjs +4 -0
  61. package/package.json +19 -1
  62. package/performance-mixin-D7YmSeqN.mjs +628 -0
  63. package/performance-reporter-B7ZOqnDk.mjs +89 -0
  64. package/property-S_Y9cb04.mjs +36 -0
  65. package/query-NJDNu0-P.mjs +25 -0
  66. package/state-DjMxXomO.mjs +12 -0
  67. package/svg-utils-CRDBD8ES.mjs +47 -0
  68. package/unsafe-svg-C3uTocNg.mjs +34 -0
  69. package/index.js +0 -5755
@@ -0,0 +1,185 @@
1
+ import { i as c, m as p, a as h, x as f, t as m } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as d } from "../property-S_Y9cb04.mjs";
3
+ import { f as g } from "../css-C8WrrxT-.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
+ };
@@ -0,0 +1,135 @@
1
+ import { i as n, m as p, a as v, x as l, t as g } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as i } from "../property-S_Y9cb04.mjs";
3
+ var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, t = (d, a, h, o) => {
4
+ for (var r = o > 1 ? void 0 : o ? y(a, h) : a, s = d.length - 1, c; s >= 0; s--)
5
+ (c = d[s]) && (r = (o ? c(a, h, r) : c(r)) || r);
6
+ return o && r && m(a, h, r), r;
7
+ };
8
+ let e = class extends p(v) {
9
+ constructor() {
10
+ super(...arguments), this.imageUrl = "", this.imageAlt = "", this.hoverUrl = "", this.hoverAlt = "", this.dimmed = !1, this.showHover = !1;
11
+ }
12
+ render() {
13
+ return l`<div class="card">
14
+ <svg aria-hidden="true">
15
+ <defs>
16
+ <clipPath id="arch-gift-finder" clipPathUnits="objectBoundingBox">
17
+ <path d="M 0.0022883 0.1515313 A 0.6791312 0.4712110 0 0 1 0.9931350 0.1531985 L 0.9931350 0.9969136 L 0.0022883 0.9969136 Z" />
18
+ </clipPath>
19
+ </defs>
20
+ </svg>
21
+ <img src="${this.imageUrl}" alt="${this.imageAlt}" class="card-img base" loading="lazy" />
22
+ ${this.hoverUrl ? l`<img src="${this.hoverUrl}" alt="${this.hoverAlt || this.imageAlt}" class="card-img hover" loading="lazy" />` : ""}
23
+ <div class="overlay" part="overlay"></div>
24
+ </div>`;
25
+ }
26
+ };
27
+ e.styles = n`
28
+ :host {
29
+ --card-width : 175px;
30
+ --card-height : 260px;
31
+ --card-width-mobile: 100px;
32
+ --card-height-mobile: 153px;
33
+ --overlay-bg: rgba(0,0,0,0.56);
34
+ --overlay-opacity: 1;
35
+ --card-filter: none;
36
+ display: block;
37
+ }
38
+
39
+ .card {
40
+ position: relative;
41
+ width: var(--card-width);
42
+ height: var(--card-height);
43
+ overflow: hidden;
44
+ background-color: var(--colors-noir-des-terres-500);
45
+ clip-path: url(#arch-gift-finder);
46
+ -webkit-clip-path: url(#arch-gift-finder);
47
+ filter: var(--card-filter, none);
48
+ -webkit-tap-highlight-color: transparent;
49
+ }
50
+
51
+ @media (max-width: 1024px) {
52
+ .card {
53
+ width: var(--card-width-mobile);
54
+ height: var(--card-height-mobile);
55
+ }
56
+ }
57
+
58
+ .card-img {
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ object-fit: cover;
65
+ transition: opacity 0.3s ease-in-out;
66
+ background: linear-gradient(180deg, #f9f4ed 0%, #f3f0eb 81.41%, #edeae5 100%);
67
+ }
68
+
69
+ .card-img.hover {
70
+ opacity: 0;
71
+ z-index: 2;
72
+ }
73
+
74
+ .card-img.base {
75
+ z-index: 1;
76
+ }
77
+
78
+ :host([showhover]) .card-img.hover {
79
+ opacity: 1;
80
+ }
81
+
82
+ :host([showhover]) .card-img.base {
83
+ opacity: 0;
84
+ }
85
+
86
+ @media (hover: hover) and (pointer: fine) {
87
+ .card:hover .card-img.hover {
88
+ opacity: 1;
89
+ }
90
+ }
91
+
92
+ @media (hover: none) and (pointer: coarse) {
93
+ .card:active .card-img.hover {
94
+ opacity: 1;
95
+ }
96
+ }
97
+
98
+ .overlay {
99
+ position: absolute; inset: 0;
100
+ background: var(--overlay-bg);
101
+ opacity: 0;
102
+ transition: opacity .2s ease;
103
+ pointer-events: none;
104
+ z-index: 3;
105
+ }
106
+
107
+
108
+ :host([dimmed]) .overlay {
109
+ opacity: var(--overlay-opacity, 1);
110
+ }
111
+ `;
112
+ t([
113
+ i({ type: String })
114
+ ], e.prototype, "imageUrl", 2);
115
+ t([
116
+ i({ type: String })
117
+ ], e.prototype, "imageAlt", 2);
118
+ t([
119
+ i({ type: String })
120
+ ], e.prototype, "hoverUrl", 2);
121
+ t([
122
+ i({ type: String })
123
+ ], e.prototype, "hoverAlt", 2);
124
+ t([
125
+ i({ type: Boolean, reflect: !0 })
126
+ ], e.prototype, "dimmed", 2);
127
+ t([
128
+ i({ type: Boolean, reflect: !0, attribute: "showhover" })
129
+ ], e.prototype, "showHover", 2);
130
+ e = t([
131
+ g("o-arch-image")
132
+ ], e);
133
+ export {
134
+ e as OccitaneArchImage
135
+ };
@@ -0,0 +1,75 @@
1
+ import { i as f, m as d, a as b, x as s, t as v } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as c } from "../property-S_Y9cb04.mjs";
3
+ import { s as g } from "../css-C8WrrxT-.mjs";
4
+ var h = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (p, e, n, o) => {
5
+ for (var r = o > 1 ? void 0 : o ? x(e, n) : e, i = p.length - 1, l; i >= 0; i--)
6
+ (l = p[i]) && (r = (o ? l(e, n, r) : l(r)) || r);
7
+ return o && r && h(e, n, r), r;
8
+ };
9
+ const w = ["cart", "filter"];
10
+ let t = class extends d(b) {
11
+ constructor() {
12
+ super(...arguments), this.variant = "cart", this.text = 0, this.srlabel = "";
13
+ }
14
+ render() {
15
+ return s`
16
+ <span class="badge">
17
+ ${this.text ? s`${this.text} <span class="sr-only">${this.srlabel}</span>` : s`<slot></slot>`}
18
+ </span>
19
+ `;
20
+ }
21
+ };
22
+ t.styles = f`
23
+ :host([variant]) {
24
+ --badge-width: 19px;
25
+ display: inline-block;
26
+ --background-color: var(--color-container-brand-accent, #ffc700);
27
+ --border-color: var(--color-border-primary, #3f2b2e);
28
+ --text-color: var(--color-content-body, #3f2b2e);
29
+ }
30
+
31
+ :host([variant="filter"]) {
32
+ --background-color: var(--color-container-filter-default, #7F4E61);
33
+ --border-color: var(--color-container-filter-default, #7F4E61);
34
+ --text-color: var(--color-content-filter, #f6f0e7);
35
+ }
36
+
37
+ .badge {
38
+ display: block;
39
+ padding: 1px var(--spacing-4-xs, 0) var(--spacing-4-xs, 0) 1px;
40
+ box-sizing: content-box;
41
+ font-family: var(--font-family-loccitane-sans, LOccitaneSans);
42
+ font-weight: var(--font-weight-400, 400);
43
+ height: var(--line-height-160, 16px);
44
+ width: var(--line-height-160, 16px);
45
+ text-align: center;
46
+ overflow: hidden;
47
+ background: var(--background-color);
48
+ border: var(--border-s, 0.5px) solid var(--border-color);
49
+ border-radius: 100%;
50
+ font-size: var(--font-size-100, 12px);
51
+ letter-spacing: var(--letter-spacing-400, 0.04em);
52
+ line-height: var(--line-height-160, 16px);
53
+ color: var(--text-color);
54
+ }
55
+
56
+ .sr-only {
57
+ ${g}
58
+ }
59
+ `;
60
+ a([
61
+ c({ type: String, reflect: !0 })
62
+ ], t.prototype, "variant", 2);
63
+ a([
64
+ c({ type: Number })
65
+ ], t.prototype, "text", 2);
66
+ a([
67
+ c({ type: String })
68
+ ], t.prototype, "srlabel", 2);
69
+ t = a([
70
+ v("o-badge")
71
+ ], t);
72
+ export {
73
+ t as OccitaneBadge,
74
+ w as badgeVariantValues
75
+ };
@@ -0,0 +1,83 @@
1
+ import { i as p, m as h, a as v, x as c, t as m } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as f } from "../property-S_Y9cb04.mjs";
3
+ import { f as u } from "../css-C8WrrxT-.mjs";
4
+ var d = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (r, o, n, i) => {
5
+ for (var e = i > 1 ? void 0 : i ? g(o, n) : o, a = r.length - 1, s; a >= 0; a--)
6
+ (s = r[a]) && (e = (i ? s(o, n, e) : s(e)) || e);
7
+ return i && e && d(o, n, e), e;
8
+ };
9
+ let t = class extends h(v) {
10
+ constructor() {
11
+ super(...arguments), this.href = "", this.active = !1;
12
+ }
13
+ _handleClick(r) {
14
+ (!this.href || this.href === "#") && r.preventDefault();
15
+ }
16
+ render() {
17
+ return this.active ? c`<p aria-current="page"><slot></slot></p>` : c`
18
+ <li>
19
+ <a
20
+ href="${this.href}"
21
+ @click="${this._handleClick}"
22
+ @keydown="${this._handleClick}"
23
+ >
24
+ <slot></slot>
25
+ </a>
26
+ </li>
27
+ `;
28
+ }
29
+ };
30
+ t.styles = p`
31
+ :host(:not([active]))::after {
32
+ content: "/";
33
+ margin: 0 0.5rem;
34
+ color: var(--color-content-description);
35
+ }
36
+
37
+ :host([active]) {
38
+ p {
39
+ color: var(--color-content-body);
40
+ margin: var(--spacing-4-xs);
41
+ display: inline-block;
42
+ }
43
+ }
44
+
45
+ li {
46
+ display: inline-block;
47
+ }
48
+
49
+ a, p {
50
+ color: var(--color-content-description);
51
+ font-family: var(--font-family-loccitane-sans);
52
+ font-size: var(--font-size-100);
53
+ font-weight: var(--font-weight-400);
54
+ line-height: var(--line-height-160);
55
+ letter-spacing: var(--letter-spacing-400);
56
+ text-decoration: none;
57
+ }
58
+
59
+ a:hover {
60
+ text-decoration: underline;
61
+ text-underline-offset: var(--spacing-2-xs);
62
+ }
63
+
64
+ a:focus-visible {
65
+ ${u};
66
+ }
67
+
68
+ :host(.a--tabfocus) {
69
+ outline: none !important;
70
+ }
71
+ `;
72
+ l([
73
+ f({ type: String })
74
+ ], t.prototype, "href", 2);
75
+ l([
76
+ f({ type: Boolean, reflect: !0 })
77
+ ], t.prototype, "active", 2);
78
+ t = l([
79
+ m("o-breadcrumb")
80
+ ], t);
81
+ export {
82
+ t as OBreadcrumb
83
+ };
@@ -0,0 +1,35 @@
1
+ import { i as m, m as o, a as u, x as v, t as c } from "../performance-mixin-D7YmSeqN.mjs";
2
+ var d = Object.getOwnPropertyDescriptor, p = (s, n, l, t) => {
3
+ for (var r = t > 1 ? void 0 : t ? d(n, l) : n, a = s.length - 1, i; a >= 0; a--)
4
+ (i = s[a]) && (r = i(r) || r);
5
+ return r;
6
+ };
7
+ let e = class extends o(u) {
8
+ render() {
9
+ return v`
10
+ <nav aria-label="Breadcrumbs">
11
+ <ul>
12
+ <slot></slot>
13
+ </ul>
14
+ </nav>
15
+ `;
16
+ }
17
+ };
18
+ e.styles = m`
19
+ nav {
20
+ max-width: 144rem;
21
+ margin: auto;
22
+ padding: 0;
23
+ }
24
+
25
+ ul {
26
+ margin: var(--spacing-4-xs);
27
+ padding: var(--spacing-4-xs);
28
+ }
29
+ `;
30
+ e = p([
31
+ c("o-breadcrumbs")
32
+ ], e);
33
+ export {
34
+ e as OBreadcrumbs
35
+ };
@@ -31,6 +31,9 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
31
31
  ariaExpanded: string | null;
32
32
  private handleClick;
33
33
  protected render(): import('lit').TemplateResult<1>;
34
+ private _unsubOcc?;
35
+ connectedCallback(): void;
36
+ disconnectedCallback(): void;
34
37
  private renderIcon;
35
38
  private renderButton;
36
39
  private renderLink;
@@ -0,0 +1,12 @@
1
+ import "../performance-mixin-D7YmSeqN.mjs";
2
+ import "../property-S_Y9cb04.mjs";
3
+ import "../css-C8WrrxT-.mjs";
4
+ import "../element-internals-Dw7LndlH.mjs";
5
+ import { O as c, v as e } from "./side-panel.mjs";
6
+ import "../icons-Pdn_6YtT.mjs";
7
+ import "../svg-utils-CRDBD8ES.mjs";
8
+ import "../unsafe-svg-C3uTocNg.mjs";
9
+ export {
10
+ c as OccitaneButton,
11
+ e as variants
12
+ };