@florid-kit/components 4.1.2 → 4.1.4
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.
- package/assets/icons/icons-occ.d.ts +15 -0
- package/assets/icons/occ-gen/occ-logout.d.ts +5 -0
- package/assets/icons/occ-gen/occ-notify-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-notify.d.ts +5 -0
- package/components/content-push.mjs +3 -2
- package/components/mediumtile.mjs +1 -1
- package/components/minitile.mjs +1 -1
- package/icons/occ-logout.mjs +20 -0
- package/icons/occ-notify-filled.mjs +17 -0
- package/icons/occ-notify.mjs +17 -0
- package/icons-registry.mjs +8 -5
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
|
@@ -159,6 +159,11 @@ export declare const occIconRegistry: {
|
|
|
159
159
|
readonly medium: string;
|
|
160
160
|
readonly large: string;
|
|
161
161
|
};
|
|
162
|
+
readonly "occ-logout": {
|
|
163
|
+
readonly small: string;
|
|
164
|
+
readonly medium: string;
|
|
165
|
+
readonly large: string;
|
|
166
|
+
};
|
|
162
167
|
readonly "occ-mail": {
|
|
163
168
|
readonly small: string;
|
|
164
169
|
readonly medium: string;
|
|
@@ -174,6 +179,16 @@ export declare const occIconRegistry: {
|
|
|
174
179
|
readonly medium: string;
|
|
175
180
|
readonly large: string;
|
|
176
181
|
};
|
|
182
|
+
readonly "occ-notify": {
|
|
183
|
+
readonly small: string;
|
|
184
|
+
readonly medium: string;
|
|
185
|
+
readonly large: string;
|
|
186
|
+
};
|
|
187
|
+
readonly "occ-notify-filled": {
|
|
188
|
+
readonly small: string;
|
|
189
|
+
readonly medium: string;
|
|
190
|
+
readonly large: string;
|
|
191
|
+
};
|
|
177
192
|
readonly "occ-order": {
|
|
178
193
|
readonly small: string;
|
|
179
194
|
readonly medium: string;
|
|
@@ -95,8 +95,8 @@ o.styles = x`
|
|
|
95
95
|
padding: var(--spacing-6-xl) var(--spacing-xl) var(--spacing-3-xl);
|
|
96
96
|
background: linear-gradient(
|
|
97
97
|
to bottom,
|
|
98
|
-
rgba(
|
|
99
|
-
rgba(
|
|
98
|
+
rgba(0, 0, 0, 0) 0%,
|
|
99
|
+
rgba(0, 0, 0, 0.54) 24%
|
|
100
100
|
);
|
|
101
101
|
color: var(--color-content-body-inverse);
|
|
102
102
|
word-break: break-word;
|
|
@@ -127,6 +127,7 @@ o.styles = x`
|
|
|
127
127
|
.cta {
|
|
128
128
|
color: inherit;
|
|
129
129
|
text-decoration: none;
|
|
130
|
+
line-height: var(--line-height-240);
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
/* Stretched link: the whole push is clickable, the CTA stays the only tab stop. */
|
|
@@ -43,7 +43,7 @@ let t = class extends f(d) {
|
|
|
43
43
|
return this.hideIcon ? "" : a`
|
|
44
44
|
<o-icon-button
|
|
45
45
|
@click=${this.onClickIcons}
|
|
46
|
-
icon=${this.type === "notifyme" ? "
|
|
46
|
+
icon=${this.type === "notifyme" ? "occ-notify" : "cart"}
|
|
47
47
|
size="small"
|
|
48
48
|
bgstyle="background-contrast"
|
|
49
49
|
type="button"
|
package/components/minitile.mjs
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const C = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M10.96 6.11489C10.44 5.56539 9.64 4.73614 9.33 4.1167L8.66 4.43641C8.96 5.01589 9.57 5.71525 10.09 6.26475H5.5V6.99409H10.12C9.52 7.63351 8.78 8.50272 8.64 8.84241L9.33 9.11216C9.45 8.82243 10.67 7.41371 11.22 6.92415L11.5 6.68437L10.96 6.11489Z" fill="#3F2B2E"/>
|
|
4
|
+
<path d="M7.22 9.86148V10.6308H1.28V2.62806C2.05 1.81879 3.13 1.34922 4.24 1.34922C5.35 1.34922 6.44 1.81879 7.21 2.62806V3.35739H7.99V2.27838L7.88 2.15848C6.95 1.09945 5.62 0.490002 4.24 0.490002C2.86 0.490002 1.54 1.09945 0.61 2.15848L0.5 2.27838V11.49H8V9.86148H7.22Z" fill="#3F2B2E"/>
|
|
5
|
+
</svg>
|
|
6
|
+
`,
|
|
7
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M15.1802 8.74C15.0903 8.64 14.9704 8.52 14.8504 8.38C14.2408 7.72 13.2515 6.32 12.8917 5.59L12.0523 6C12.3821 6.68 13.1416 7.9 13.7312 8.55H7.49534V9.49H13.7612C13.0716 10.25 12.1822 11.65 12.0223 12.05L12.8917 12.4C13.0217 12.08 14.4607 10.02 15.1502 9.4L15.5 9.09L15.1902 8.74H15.1802Z" fill="#3F2B2E"/>
|
|
9
|
+
<path d="M9.27415 12.61V13.71H1.71919V3.83C2.70853 2.85 4.06762 2.29 5.48668 2.29C6.90573 2.29 8.27482 2.85 9.26416 3.84V5.09H10.4833V3.31L10.3135 3.12C9.08428 1.77 7.32545 1 5.48668 1C3.6479 1 1.89907 1.77 0.669887 3.11L0.5 3.3V15H10.4933V12.61H9.27415Z" fill="#3F2B2E"/>
|
|
10
|
+
</svg>
|
|
11
|
+
`,
|
|
12
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<path d="M14.5323 19.66V21.38H2.48135V5.21C4.05278 3.56 6.22475 2.62 8.49682 2.62C10.7689 2.62 12.9609 3.57 14.5323 5.23V7.5H16.0136V4.57L15.8035 4.33C13.9418 2.21 11.2793 1 8.49682 1C5.71429 1 3.07188 2.21 1.21019 4.31L1 4.55V23H16.0136V19.66H14.5323Z" fill="#3F2B2E"/>
|
|
14
|
+
<path d="M22.5396 13.42C21.6988 12.59 19.677 10.07 18.9563 8.78L17.6651 9.35C18.2357 10.38 19.4568 11.99 20.4577 13.17H10.5587V14.45H20.4677C19.3066 15.79 17.8854 17.76 17.6351 18.31L18.9663 18.79C19.2266 18.21 21.5787 15.06 22.4695 14.34L23 13.91L22.5196 13.44L22.5396 13.42Z" fill="#3F2B2E"/>
|
|
15
|
+
</svg>
|
|
16
|
+
`
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
C as variants
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const C = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M11.2106 8.87239C10.4721 8.11308 9.78355 7.39373 9.78355 5.0159C9.78355 3.31744 8.66586 1.87875 7.11906 1.38919C7.08912 0.889646 6.61011 0.5 5.98141 0.5C5.35271 0.5 4.8737 0.889646 4.84376 1.38919C3.30694 1.86876 2.17927 3.31744 2.17927 5.0159C2.17927 7.39373 1.48071 8.11308 0.752221 8.87239C0.572592 9.07221 0.482778 9.32198 0.502737 9.58174C0.512716 9.84151 0.622489 10.0813 0.822077 10.2611C1.00171 10.421 1.23123 10.5209 1.48071 10.5209H4.8737C4.95353 11.0704 5.42257 11.5 6.00137 11.5C6.58017 11.5 7.0492 11.0704 7.12904 10.5209H10.522C11.0609 10.5209 11.5 10.0813 11.5 9.54178C11.5 9.302 11.4102 9.06222 11.2405 8.87239H11.2106Z" fill="#3F2B2E"/>
|
|
4
|
+
</svg>
|
|
5
|
+
`,
|
|
6
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M14.6696 11.6524C13.7284 10.6831 12.8473 9.77373 12.8473 6.7459C12.8473 4.58744 11.4154 2.74875 9.45293 2.12919C9.42289 1.48965 8.8021 1 8.00108 1C7.20006 1 6.57927 1.48965 6.54923 2.12919C4.58673 2.74875 3.1549 4.57744 3.1549 6.7459C3.1549 9.77373 2.26377 10.6831 1.33258 11.6524H1.32257C1.10229 11.9122 0.982135 12.222 1.00216 12.5617C1.02219 12.8915 1.16236 13.2013 1.40267 13.4211C1.63296 13.631 1.93335 13.7509 2.24374 13.7509H6.56925C6.66938 14.4604 7.27015 15 8.00108 15C8.73201 15 9.33278 14.4504 9.43291 13.7509H13.7584C14.4493 13.7509 15 13.1913 15 12.5118C15 12.202 14.8899 11.9022 14.6596 11.6624L14.6696 11.6524Z" fill="#3F2B2E"/>
|
|
8
|
+
</svg>
|
|
9
|
+
`,
|
|
10
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M22.4996 17.74C21.0283 16.22 19.6272 14.79 19.6272 10.03C19.6272 6.63 17.3753 3.74 14.2927 2.77C14.2426 1.77 13.2618 1 12.0108 1C10.7597 1 9.78889 1.77 9.72884 2.77C6.63624 3.74 4.39436 6.63 4.39436 10.03C4.39436 14.78 3.00319 16.22 1.53195 17.74L1.51193 17.76C1.16164 18.15 0.981488 18.64 1.00151 19.17C1.02152 19.69 1.25172 20.17 1.63204 20.52C1.99234 20.85 2.46273 21.03 2.95315 21.03H9.74886C9.90899 22.14 10.8498 23 12.0008 23C13.1517 23 14.1025 22.14 14.2526 21.03H21.0484C22.1293 21.03 23 20.15 23 19.08C23 18.59 22.8198 18.13 22.4696 17.75L22.4996 17.74Z" fill="#3F2B2E"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
C as variants
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const C = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M11.2106 8.87239C10.4721 8.11308 9.78355 7.39373 9.78355 5.01589C9.78355 3.31744 8.66586 1.87875 7.11906 1.38919C7.08912 0.889646 6.61011 0.5 5.98141 0.5C5.35271 0.5 4.8737 0.889646 4.84376 1.38919C3.30694 1.86876 2.17927 3.31744 2.17927 5.01589C2.17927 7.39373 1.48071 8.11308 0.752221 8.87239C0.572592 9.07221 0.482778 9.32198 0.502737 9.58174C0.512716 9.84151 0.622489 10.0813 0.822077 10.2611C1.00171 10.421 1.23123 10.5209 1.48071 10.5209H4.8737C4.95353 11.0704 5.42257 11.5 6.00137 11.5C6.58017 11.5 7.0492 11.0704 7.12904 10.5209H10.522C11.0609 10.5209 11.5 10.0813 11.5 9.54178C11.5 9.302 11.4102 9.06222 11.2405 8.87239H11.2106ZM5.71197 10.5309H6.25085C6.1311 10.7007 5.83172 10.7007 5.71197 10.5309ZM10.4921 9.69164H1.47074C1.47074 9.69164 1.40088 9.68165 1.37094 9.65168C1.33102 9.61172 1.32105 9.57175 1.32105 9.54178C1.32105 9.5218 1.32104 9.47184 1.36096 9.43188C2.13935 8.63261 3.01754 7.71344 3.01754 5.01589C3.01754 3.37738 4.35477 2.0386 5.99139 2.0386C7.62801 2.0386 8.96524 3.37738 8.96524 5.01589C8.96524 7.72343 9.84342 8.63261 10.6218 9.43188C10.6518 9.46185 10.6617 9.50182 10.6617 9.53179C10.6617 9.61172 10.5919 9.68165 10.512 9.68165L10.4921 9.69164Z" fill="#3F2B2E"/>
|
|
4
|
+
</svg>
|
|
5
|
+
`,
|
|
6
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M14.6696 11.6524C13.7284 10.6831 12.8473 9.77373 12.8473 6.7459C12.8473 4.58744 11.4154 2.74875 9.45293 2.12919C9.42289 1.48965 8.8021 1 8.00108 1C7.20006 1 6.57927 1.48965 6.54923 2.12919C4.58673 2.74875 3.1549 4.57744 3.1549 6.7459C3.1549 9.77373 2.26377 10.6831 1.33258 11.6524H1.32257C1.10229 11.9122 0.982135 12.222 1.00216 12.5617C1.02219 12.8915 1.16236 13.2013 1.40267 13.4211C1.63296 13.631 1.93335 13.7509 2.24374 13.7509H6.56925C6.66938 14.4604 7.27015 15 8.00108 15C8.73201 15 9.33278 14.4504 9.43291 13.7509H13.7584C14.4493 13.7509 15 13.1913 15 12.5118C15 12.202 14.8899 11.9022 14.6596 11.6624L14.6696 11.6524ZM7.66065 13.7609H8.34151C8.19132 13.9807 7.80082 13.9807 7.66065 13.7609ZM13.7684 12.6916H2.23373C2.23373 12.6916 2.1336 12.6717 2.10356 12.6417C2.0535 12.5917 2.04349 12.5318 2.04349 12.5018C2.04349 12.4718 2.04349 12.4118 2.09355 12.3619C3.08481 11.3426 4.20624 10.1734 4.20624 6.7359C4.20624 4.64739 5.90841 2.94861 8.00108 2.94861C10.0937 2.94861 11.7959 4.64739 11.7959 6.7359C11.7959 10.1834 12.9274 11.3426 13.9086 12.3519C13.9386 12.3919 13.9587 12.4318 13.9587 12.4818C13.9587 12.5917 13.8686 12.6817 13.7584 12.6817L13.7684 12.6916Z" fill="#3F2B2E"/>
|
|
8
|
+
</svg>
|
|
9
|
+
`,
|
|
10
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M22.4996 17.74C21.0283 16.22 19.6272 14.79 19.6272 10.03C19.6272 6.63 17.3753 3.74 14.2927 2.77C14.2426 1.77 13.2618 1 12.0108 1C10.7597 1 9.78889 1.77 9.72884 2.77C6.63624 3.74 4.39436 6.63 4.39436 10.03C4.39436 14.78 3.00319 16.22 1.53195 17.74L1.51193 17.76C1.16164 18.15 0.981488 18.64 1.00151 19.17C1.02152 19.69 1.25172 20.17 1.63204 20.52C1.99234 20.85 2.46273 21.03 2.95315 21.03H9.74886C9.90899 22.14 10.8498 23 12.0008 23C13.1517 23 14.1025 22.14 14.2526 21.03H21.0484C22.1293 21.03 23 20.15 23 19.08C23 18.59 22.8198 18.13 22.4696 17.75L22.4996 17.74ZM11.4803 21.07H12.5512C12.321 21.42 11.7105 21.42 11.4803 21.07ZM21.0784 19.39H2.96315C2.88309 19.39 2.81303 19.36 2.75298 19.31C2.67291 19.24 2.65289 19.14 2.65289 19.1C2.65289 19.05 2.65289 18.97 2.72295 18.89C4.28427 17.28 6.04575 15.45 6.04575 10.04C6.04575 6.75 8.71799 4.08 12.0108 4.08C15.3035 4.08 17.9758 6.75 17.9758 10.04C17.9758 15.47 19.7473 17.29 21.2886 18.88C21.3386 18.94 21.3686 19.01 21.3686 19.09C21.3686 19.26 21.2285 19.4 21.0584 19.4L21.0784 19.39Z" fill="#3F2B2E"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
C as variants
|
|
17
|
+
};
|
package/icons-registry.mjs
CHANGED
|
@@ -70,9 +70,12 @@ const p = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="ht
|
|
|
70
70
|
"occ-hand-shake": () => import("./icons/occ-hand-shake.mjs"),
|
|
71
71
|
"occ-info": () => import("./icons/occ-info.mjs"),
|
|
72
72
|
"occ-location": () => import("./icons/occ-location.mjs"),
|
|
73
|
+
"occ-logout": () => import("./icons/occ-logout.mjs"),
|
|
73
74
|
"occ-mail": () => import("./icons/occ-mail.mjs"),
|
|
74
75
|
"occ-message": () => import("./icons/occ-message.mjs"),
|
|
75
76
|
"occ-minus": () => import("./icons/occ-minus.mjs"),
|
|
77
|
+
"occ-notify": () => import("./icons/occ-notify.mjs"),
|
|
78
|
+
"occ-notify-filled": () => import("./icons/occ-notify-filled.mjs"),
|
|
76
79
|
"occ-order": () => import("./icons/occ-order.mjs"),
|
|
77
80
|
"occ-order-sent": () => import("./icons/occ-order-sent.mjs"),
|
|
78
81
|
"occ-padlock": () => import("./icons/occ-padlock.mjs"),
|
|
@@ -120,7 +123,7 @@ function B() {
|
|
|
120
123
|
for (const o of [...n]) o();
|
|
121
124
|
}
|
|
122
125
|
function Z(o, c) {
|
|
123
|
-
s[o] = c,
|
|
126
|
+
s[o] = c, H[o] = c.medium ?? c.small ?? c.large ?? "", B();
|
|
124
127
|
}
|
|
125
128
|
function b(o) {
|
|
126
129
|
if (s[o] || e.has(o)) return;
|
|
@@ -136,7 +139,7 @@ const I = (o) => o.startsWith("occ-"), V = {
|
|
|
136
139
|
small: 12,
|
|
137
140
|
medium: 16,
|
|
138
141
|
large: 24
|
|
139
|
-
}, k = (o) => o === "xsmall" ? "small" : o,
|
|
142
|
+
}, k = (o) => o === "xsmall" ? "small" : o, y = (o, c, i) => {
|
|
140
143
|
const t = s[o];
|
|
141
144
|
if (!t) return "";
|
|
142
145
|
if (i) {
|
|
@@ -146,8 +149,8 @@ const I = (o) => o.startsWith("occ-"), V = {
|
|
|
146
149
|
return t.large ?? t.medium ?? t.small ?? "";
|
|
147
150
|
}, S = (o, { size: c, bgstyle: i }) => {
|
|
148
151
|
const t = V[c], r = i === "none-light" || i === "none-contrast";
|
|
149
|
-
return I(o) ? (b(o), { svg:
|
|
150
|
-
},
|
|
152
|
+
return I(o) ? (b(o), { svg: y(o, c, r), pixelSize: t, shouldApplyLogicalSize: r }) : { svg: l[o] ?? "", pixelSize: t, shouldApplyLogicalSize: r };
|
|
153
|
+
}, H = { ...l }, A = {
|
|
151
154
|
strikeDiagonal: f
|
|
152
155
|
}, R = {
|
|
153
156
|
success: L,
|
|
@@ -155,7 +158,7 @@ const I = (o) => o.startsWith("occ-"), V = {
|
|
|
155
158
|
info: x
|
|
156
159
|
};
|
|
157
160
|
export {
|
|
158
|
-
|
|
161
|
+
H as a,
|
|
159
162
|
b as e,
|
|
160
163
|
A as i,
|
|
161
164
|
F as o,
|
package/index.mjs
CHANGED
package/loader.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import "./components/link.mjs";
|
|
|
4
4
|
import "./components/header-simplify.mjs";
|
|
5
5
|
import "./components/breadcrumb.mjs";
|
|
6
6
|
import "./components/breadcrumbs.mjs";
|
|
7
|
-
globalThis.__FLORID_KIT__ = "4.1.
|
|
7
|
+
globalThis.__FLORID_KIT__ = "4.1.4";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|