@crystallize/design-system 1.17.2 → 1.17.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/CHANGELOG.md +12 -0
- package/dist/index.css +5 -3
- package/dist/index.js +20 -14
- package/dist/index.mjs +20 -14
- package/package.json +1 -1
- package/src/dropdown-menu/dropdown-menu-root.tsx +15 -10
- package/src/iconography/key.tsx +2 -2
- package/src/iconography/video.tsx +6 -6
- package/src/input-with-label/input-with-label.tsx +3 -1
- package/src/rich-text-editor/plugins/ToolbarPlugin/index.css +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.17.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1e376d9: Since we added the `container` prop with a portal to the Dropdown and ActionMenu components all dropdowns are rendered in the `document.body` when container is not provided, a.k.a the container props is `undefined`. However sometimes we want to render the dropdown next to the trigger, which is possible if we provide a `ref` for a parent element. The problem is that sometimes the parent element ref is not set yet when the dropdown is rendered and thus the dropdown does not really show on the page. To fix this, the container prop now when set explicitly to `null` then we do not render the portal, which then render the dropdown next to the trigger (no need to custom ref to a parent element but render the dropdown in place).
|
|
8
|
+
|
|
9
|
+
## 1.17.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e50edfe: Extract a @container query outside a nested selector to remove warning on it.
|
|
14
|
+
|
|
3
15
|
## 1.17.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -2415,9 +2415,6 @@ button {
|
|
|
2415
2415
|
padding-right: var(--c-rte-toolbar-pr, 0.5rem);
|
|
2416
2416
|
container-type: inline-size;
|
|
2417
2417
|
container-name: rich-text-toolbar;
|
|
2418
|
-
@container rich-text-toolbar (max-width: 600px) {
|
|
2419
|
-
.c-rte-toolbar__icon-btn { display: none; };
|
|
2420
|
-
}
|
|
2421
2418
|
}
|
|
2422
2419
|
.c-rte-toolbar__inner {
|
|
2423
2420
|
display: flex;
|
|
@@ -2615,6 +2612,11 @@ button {
|
|
|
2615
2612
|
display: flex;
|
|
2616
2613
|
justify-content: flex-end;
|
|
2617
2614
|
}
|
|
2615
|
+
@container rich-text-toolbar (max-width: 600px) {
|
|
2616
|
+
.c-rte-toolbar .c-rte-toolbar__icon-btn {
|
|
2617
|
+
display: none;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2618
2620
|
|
|
2619
2621
|
/* src/rich-text-editor/rich-text-editor.css */
|
|
2620
2622
|
.c-rich-text-editor {
|
package/dist/index.js
CHANGED
|
@@ -29126,6 +29126,13 @@ function DropdownMenuRoot({
|
|
|
29126
29126
|
container,
|
|
29127
29127
|
...delegated
|
|
29128
29128
|
}) {
|
|
29129
|
+
const contentProps = {
|
|
29130
|
+
align: alignContent,
|
|
29131
|
+
sideOffset: 5,
|
|
29132
|
+
className: "c-dropdown-menu-content",
|
|
29133
|
+
children: content,
|
|
29134
|
+
...delegated
|
|
29135
|
+
};
|
|
29129
29136
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DropdownMenuPrimitive3.Root, {
|
|
29130
29137
|
onOpenChange,
|
|
29131
29138
|
children: [
|
|
@@ -29134,14 +29141,12 @@ function DropdownMenuRoot({
|
|
|
29134
29141
|
asChild: true,
|
|
29135
29142
|
children
|
|
29136
29143
|
}),
|
|
29137
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive3.
|
|
29144
|
+
container === null ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive3.Content, {
|
|
29145
|
+
...contentProps
|
|
29146
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive3.Portal, {
|
|
29138
29147
|
container,
|
|
29139
29148
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive3.Content, {
|
|
29140
|
-
|
|
29141
|
-
sideOffset: 5,
|
|
29142
|
-
className: "c-dropdown-menu-content",
|
|
29143
|
-
...delegated,
|
|
29144
|
-
children: content
|
|
29149
|
+
...contentProps
|
|
29145
29150
|
})
|
|
29146
29151
|
})
|
|
29147
29152
|
]
|
|
@@ -31400,8 +31405,8 @@ var Key = (0, import_react47.forwardRef)((delegated, ref) => {
|
|
|
31400
31405
|
fill: "#BFF6F8"
|
|
31401
31406
|
}),
|
|
31402
31407
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", {
|
|
31403
|
-
|
|
31404
|
-
|
|
31408
|
+
fillRule: "evenodd",
|
|
31409
|
+
clipRule: "evenodd",
|
|
31405
31410
|
d: "M14.2861 2.06126C15.0279 1.89233 15.5969 1.90313 16.2407 2.02139C16.8882 2.14034 17.5061 2.38935 18.0586 2.75375C19.168 3.48444 19.9256 4.59912 20.1884 5.89043C20.4159 7.00773 20.2975 8.13239 19.8345 9.13848C19.375 10.1371 18.7298 10.9082 17.607 11.4842C16.8141 11.891 16.1813 12.0232 15.3771 12.0232H15.3706C14.803 12.0461 14.2219 11.9333 13.6076 11.6916C12.8526 12.4665 12.1015 13.2514 11.3489 14.0378C9.77024 15.6873 8.18529 17.3435 6.54613 18.9277C6.17818 19.2889 5.68752 19.493 5.17496 19.4955L5.17167 19.4955C4.90609 19.4939 4.64362 19.4386 4.3993 19.3331C4.1553 19.2278 3.9344 19.0744 3.74899 18.8822C3.38162 18.5049 3.17408 17.9966 3.16855 17.4666C3.16301 16.9363 3.36003 16.4236 3.7196 16.0382C3.82475 15.9262 4.03922 15.706 4.03922 15.706C4.03922 15.706 3.32162 14.9716 3.11872 14.769C2.88007 14.5311 2.74527 14.2397 2.74527 13.9108C2.74527 13.6833 2.81488 13.3558 3.1158 13.0566C3.38648 12.787 3.63119 12.534 3.85634 12.2918C4.14888 11.9772 4.47429 11.8969 4.7078 11.8969H4.71274C5.04159 11.8969 5.33075 12.0407 5.56473 12.2869C5.74754 12.4792 6.02614 12.7657 6.25999 13.005C6.33588 13.0827 6.4069 13.1553 6.46821 13.2178L7.04848 12.6337C7.02239 12.6067 6.9947 12.5781 6.96596 12.5484C6.80638 12.3838 6.61651 12.1891 6.48996 12.0635C6.24557 11.8206 6.10766 11.5255 6.10766 11.1933C6.10815 10.9628 6.181 10.6329 6.48692 10.3331C6.75501 10.0693 7.01468 9.79536 7.21306 9.58374C7.4447 9.33431 7.73505 9.18807 8.06702 9.18807C8.29928 9.18807 8.62426 9.26401 8.91959 9.57685C9.10286 9.77043 9.28546 9.96275 9.46954 10.1527C9.68431 9.93175 9.83739 9.7722 10.0018 9.60089C10.1998 9.39453 10.4141 9.17111 10.7724 8.8027C10.5401 8.18952 10.4272 7.5352 10.4406 6.87665C10.4552 6.15474 10.5737 5.53909 10.9329 4.7827C11.3015 4.00641 11.6307 3.57251 12.3033 3.02885C12.9666 2.49276 13.4515 2.25131 14.2861 2.06126ZM7.68462 12.4291L7.88748 12.6404L6.4659 14.0716L6.25307 13.8552L6.12971 13.7296C6.05344 13.6519 5.94791 13.5442 5.83082 13.4243C5.59705 13.1851 5.31582 12.8959 5.12984 12.7003C4.98945 12.5525 4.85064 12.4969 4.71274 12.4969H4.7078C4.61699 12.4969 4.45943 12.5243 4.29579 12.7004C4.06482 12.9488 3.81465 13.2074 3.53899 13.482C3.37316 13.6468 3.34527 13.8094 3.34527 13.9108C3.34527 14.0616 3.40239 14.2047 3.54221 14.344C3.80349 14.6049 4.41991 15.2367 4.67344 15.497L4.87754 15.7065L4.6733 15.9158C4.63245 15.9577 4.59185 15.9991 4.55148 16.0404C4.41786 16.1768 4.28682 16.3106 4.15806 16.4478C3.90514 16.719 3.76457 17.0823 3.76851 17.4603C3.77246 17.8385 3.92067 18.1986 4.17922 18.464L4.18033 18.4652C4.31121 18.601 4.46652 18.7086 4.63716 18.7823C4.80725 18.8558 4.98946 18.8941 5.17354 18.8955L5.17203 18.8955L5.17532 18.8955L5.17354 18.8955C5.52759 18.8934 5.8688 18.7522 6.12651 18.4988L6.12836 18.497C7.75985 16.9203 9.33034 15.2792 10.904 13.6348C11.7056 12.7971 12.5081 11.9586 13.3198 11.1273L13.464 10.9797L13.6534 11.0615C14.2788 11.3316 14.8332 11.4453 15.3518 11.4234L15.3644 11.4229L15.3771 11.4232C16.0917 11.4232 16.6298 11.3112 17.3332 10.9504C18.3222 10.443 18.879 9.77955 19.2895 8.88764C19.6965 8.00315 19.8038 7.00887 19.6005 6.01012C19.3698 4.87684 18.7061 3.89862 17.7285 3.25473C17.2427 2.93437 16.7001 2.71582 16.1323 2.61151C15.5607 2.50651 15.0743 2.49712 14.4193 2.64628C13.677 2.81532 13.275 3.01499 12.6805 3.4955C12.082 3.97922 11.8073 4.33997 11.4749 5.04008C11.1556 5.71245 11.0536 6.24336 11.0405 6.88883C11.0274 7.53036 11.15 8.16698 11.3996 8.7549L11.4776 8.93858L11.3384 9.0815C10.9129 9.51811 10.6644 9.77704 10.4358 10.0151C10.2142 10.246 10.0114 10.4572 9.68443 10.7919L9.47093 11.0104L9.25634 10.7929C8.99434 10.5275 8.73781 10.2576 8.48371 9.98917C8.31939 9.81506 8.16187 9.78807 8.06702 9.78807C7.92755 9.78807 7.78942 9.84468 7.6524 9.99238L7.65133 9.99352C7.45148 10.2067 7.1848 10.4882 6.9075 10.761C6.73719 10.9278 6.70794 11.0923 6.70766 11.1936C6.70774 11.3447 6.76592 11.4918 6.91268 11.6377M14.6993 5.26848C14.5063 5.35343 14.3222 5.48871 14.1164 5.69732C13.9122 5.90435 13.7828 6.08986 13.7019 6.28448C13.6211 6.47884 13.5811 6.70037 13.5806 6.98968C13.5789 7.99854 14.3727 8.82602 15.3628 8.82652H15.3648C16.3635 8.82652 17.1473 8.01108 17.1592 7.00008C17.1626 6.70925 17.1266 6.48571 17.0492 6.28946C16.9719 6.09342 16.8461 5.90632 16.6446 5.69836C16.4445 5.49196 16.2651 5.35857 16.0764 5.27398C15.8889 5.18989 15.6744 5.146 15.3935 5.14381C15.109 5.14159 14.8908 5.18419 14.6993 5.26848ZM14.4576 4.71932C14.7424 4.59395 15.0479 4.5411 15.3981 4.54383C15.7422 4.54651 16.0423 4.60112 16.3219 4.7265C16.6004 4.85137 16.8405 5.03842 17.0754 5.28081C17.3164 5.5295 17.4939 5.78148 17.6074 6.06934C17.7208 6.35697 17.7632 6.66212 17.7591 7.00712C17.7437 8.32517 16.7132 9.42652 15.3648 9.42652H15.3627C14.0223 9.42584 12.9783 8.31027 12.9806 6.98862C12.9812 6.64284 13.0294 6.33921 13.1479 6.05413C13.2663 5.76932 13.4475 5.52112 13.6893 5.27599C13.9293 5.03266 14.1742 4.84405 14.4576 4.71932Z",
|
|
31406
31411
|
fill: "#528693"
|
|
31407
31412
|
})
|
|
@@ -33849,8 +33854,8 @@ var Video = (0, import_react93.forwardRef)((delegated, ref) => {
|
|
|
33849
33854
|
fill: "white"
|
|
33850
33855
|
}),
|
|
33851
33856
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", {
|
|
33852
|
-
|
|
33853
|
-
|
|
33857
|
+
fillRule: "evenodd",
|
|
33858
|
+
clipRule: "evenodd",
|
|
33854
33859
|
d: "M2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V17C20.6 17.8837 19.8836 18.6 19 18.6H2.99999C2.11634 18.6 1.39999 17.8837 1.39999 17V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V17C1.99999 17.5523 2.44771 18 2.99999 18H19C19.5523 18 20 17.5523 20 17V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z",
|
|
33855
33860
|
fill: "#528693"
|
|
33856
33861
|
}),
|
|
@@ -33860,8 +33865,8 @@ var Video = (0, import_react93.forwardRef)((delegated, ref) => {
|
|
|
33860
33865
|
className: "c-icon-fill"
|
|
33861
33866
|
}),
|
|
33862
33867
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", {
|
|
33863
|
-
|
|
33864
|
-
|
|
33868
|
+
fillRule: "evenodd",
|
|
33869
|
+
clipRule: "evenodd",
|
|
33865
33870
|
d: "M20.6 7.60002H1.39999V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V7.60002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V7.00002H20V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z",
|
|
33866
33871
|
fill: "#528693"
|
|
33867
33872
|
}),
|
|
@@ -33871,8 +33876,8 @@ var Video = (0, import_react93.forwardRef)((delegated, ref) => {
|
|
|
33871
33876
|
className: "c-icon-fill"
|
|
33872
33877
|
}),
|
|
33873
33878
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", {
|
|
33874
|
-
|
|
33875
|
-
|
|
33879
|
+
fillRule: "evenodd",
|
|
33880
|
+
clipRule: "evenodd",
|
|
33876
33881
|
d: "M13.3176 13.3513L9.71764 15.4297C9.11764 15.7761 8.36764 15.3431 8.36764 14.6503L8.36764 10.4934C8.36764 9.80056 9.11764 9.36755 9.71764 9.71396L13.3176 11.7924C13.9176 12.1388 13.9176 13.0049 13.3176 13.3513ZM13.0176 12.8317C13.2176 12.7162 13.2176 12.4275 13.0176 12.312L9.41764 10.2336C9.21764 10.1181 8.96764 10.2624 8.96764 10.4934L8.96764 14.6503C8.96764 14.8812 9.21764 15.0256 9.41764 14.9101L13.0176 12.8317Z",
|
|
33877
33882
|
fill: "#528693"
|
|
33878
33883
|
})
|
|
@@ -34581,6 +34586,7 @@ var InputWithLabel = (0, import_react100.forwardRef)(
|
|
|
34581
34586
|
!append && !errorMessage ? null : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Tooltip, {
|
|
34582
34587
|
content: errorMessage,
|
|
34583
34588
|
children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", {
|
|
34589
|
+
"data-testid": "input-with-label-error-message",
|
|
34584
34590
|
className: "c-input-with-label-append",
|
|
34585
34591
|
children: errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Triangle, {}) : append
|
|
34586
34592
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -238,6 +238,13 @@ function DropdownMenuRoot({
|
|
|
238
238
|
container,
|
|
239
239
|
...delegated
|
|
240
240
|
}) {
|
|
241
|
+
const contentProps = {
|
|
242
|
+
align: alignContent,
|
|
243
|
+
sideOffset: 5,
|
|
244
|
+
className: "c-dropdown-menu-content",
|
|
245
|
+
children: content,
|
|
246
|
+
...delegated
|
|
247
|
+
};
|
|
241
248
|
return /* @__PURE__ */ jsxs3(DropdownMenuPrimitive3.Root, {
|
|
242
249
|
onOpenChange,
|
|
243
250
|
children: [
|
|
@@ -246,14 +253,12 @@ function DropdownMenuRoot({
|
|
|
246
253
|
asChild: true,
|
|
247
254
|
children
|
|
248
255
|
}),
|
|
249
|
-
/* @__PURE__ */ jsx6(DropdownMenuPrimitive3.
|
|
256
|
+
container === null ? /* @__PURE__ */ jsx6(DropdownMenuPrimitive3.Content, {
|
|
257
|
+
...contentProps
|
|
258
|
+
}) : /* @__PURE__ */ jsx6(DropdownMenuPrimitive3.Portal, {
|
|
250
259
|
container,
|
|
251
260
|
children: /* @__PURE__ */ jsx6(DropdownMenuPrimitive3.Content, {
|
|
252
|
-
|
|
253
|
-
sideOffset: 5,
|
|
254
|
-
className: "c-dropdown-menu-content",
|
|
255
|
-
...delegated,
|
|
256
|
-
children: content
|
|
261
|
+
...contentProps
|
|
257
262
|
})
|
|
258
263
|
})
|
|
259
264
|
]
|
|
@@ -2512,8 +2517,8 @@ var Key = forwardRef47((delegated, ref) => {
|
|
|
2512
2517
|
fill: "#BFF6F8"
|
|
2513
2518
|
}),
|
|
2514
2519
|
/* @__PURE__ */ jsx54("path", {
|
|
2515
|
-
|
|
2516
|
-
|
|
2520
|
+
fillRule: "evenodd",
|
|
2521
|
+
clipRule: "evenodd",
|
|
2517
2522
|
d: "M14.2861 2.06126C15.0279 1.89233 15.5969 1.90313 16.2407 2.02139C16.8882 2.14034 17.5061 2.38935 18.0586 2.75375C19.168 3.48444 19.9256 4.59912 20.1884 5.89043C20.4159 7.00773 20.2975 8.13239 19.8345 9.13848C19.375 10.1371 18.7298 10.9082 17.607 11.4842C16.8141 11.891 16.1813 12.0232 15.3771 12.0232H15.3706C14.803 12.0461 14.2219 11.9333 13.6076 11.6916C12.8526 12.4665 12.1015 13.2514 11.3489 14.0378C9.77024 15.6873 8.18529 17.3435 6.54613 18.9277C6.17818 19.2889 5.68752 19.493 5.17496 19.4955L5.17167 19.4955C4.90609 19.4939 4.64362 19.4386 4.3993 19.3331C4.1553 19.2278 3.9344 19.0744 3.74899 18.8822C3.38162 18.5049 3.17408 17.9966 3.16855 17.4666C3.16301 16.9363 3.36003 16.4236 3.7196 16.0382C3.82475 15.9262 4.03922 15.706 4.03922 15.706C4.03922 15.706 3.32162 14.9716 3.11872 14.769C2.88007 14.5311 2.74527 14.2397 2.74527 13.9108C2.74527 13.6833 2.81488 13.3558 3.1158 13.0566C3.38648 12.787 3.63119 12.534 3.85634 12.2918C4.14888 11.9772 4.47429 11.8969 4.7078 11.8969H4.71274C5.04159 11.8969 5.33075 12.0407 5.56473 12.2869C5.74754 12.4792 6.02614 12.7657 6.25999 13.005C6.33588 13.0827 6.4069 13.1553 6.46821 13.2178L7.04848 12.6337C7.02239 12.6067 6.9947 12.5781 6.96596 12.5484C6.80638 12.3838 6.61651 12.1891 6.48996 12.0635C6.24557 11.8206 6.10766 11.5255 6.10766 11.1933C6.10815 10.9628 6.181 10.6329 6.48692 10.3331C6.75501 10.0693 7.01468 9.79536 7.21306 9.58374C7.4447 9.33431 7.73505 9.18807 8.06702 9.18807C8.29928 9.18807 8.62426 9.26401 8.91959 9.57685C9.10286 9.77043 9.28546 9.96275 9.46954 10.1527C9.68431 9.93175 9.83739 9.7722 10.0018 9.60089C10.1998 9.39453 10.4141 9.17111 10.7724 8.8027C10.5401 8.18952 10.4272 7.5352 10.4406 6.87665C10.4552 6.15474 10.5737 5.53909 10.9329 4.7827C11.3015 4.00641 11.6307 3.57251 12.3033 3.02885C12.9666 2.49276 13.4515 2.25131 14.2861 2.06126ZM7.68462 12.4291L7.88748 12.6404L6.4659 14.0716L6.25307 13.8552L6.12971 13.7296C6.05344 13.6519 5.94791 13.5442 5.83082 13.4243C5.59705 13.1851 5.31582 12.8959 5.12984 12.7003C4.98945 12.5525 4.85064 12.4969 4.71274 12.4969H4.7078C4.61699 12.4969 4.45943 12.5243 4.29579 12.7004C4.06482 12.9488 3.81465 13.2074 3.53899 13.482C3.37316 13.6468 3.34527 13.8094 3.34527 13.9108C3.34527 14.0616 3.40239 14.2047 3.54221 14.344C3.80349 14.6049 4.41991 15.2367 4.67344 15.497L4.87754 15.7065L4.6733 15.9158C4.63245 15.9577 4.59185 15.9991 4.55148 16.0404C4.41786 16.1768 4.28682 16.3106 4.15806 16.4478C3.90514 16.719 3.76457 17.0823 3.76851 17.4603C3.77246 17.8385 3.92067 18.1986 4.17922 18.464L4.18033 18.4652C4.31121 18.601 4.46652 18.7086 4.63716 18.7823C4.80725 18.8558 4.98946 18.8941 5.17354 18.8955L5.17203 18.8955L5.17532 18.8955L5.17354 18.8955C5.52759 18.8934 5.8688 18.7522 6.12651 18.4988L6.12836 18.497C7.75985 16.9203 9.33034 15.2792 10.904 13.6348C11.7056 12.7971 12.5081 11.9586 13.3198 11.1273L13.464 10.9797L13.6534 11.0615C14.2788 11.3316 14.8332 11.4453 15.3518 11.4234L15.3644 11.4229L15.3771 11.4232C16.0917 11.4232 16.6298 11.3112 17.3332 10.9504C18.3222 10.443 18.879 9.77955 19.2895 8.88764C19.6965 8.00315 19.8038 7.00887 19.6005 6.01012C19.3698 4.87684 18.7061 3.89862 17.7285 3.25473C17.2427 2.93437 16.7001 2.71582 16.1323 2.61151C15.5607 2.50651 15.0743 2.49712 14.4193 2.64628C13.677 2.81532 13.275 3.01499 12.6805 3.4955C12.082 3.97922 11.8073 4.33997 11.4749 5.04008C11.1556 5.71245 11.0536 6.24336 11.0405 6.88883C11.0274 7.53036 11.15 8.16698 11.3996 8.7549L11.4776 8.93858L11.3384 9.0815C10.9129 9.51811 10.6644 9.77704 10.4358 10.0151C10.2142 10.246 10.0114 10.4572 9.68443 10.7919L9.47093 11.0104L9.25634 10.7929C8.99434 10.5275 8.73781 10.2576 8.48371 9.98917C8.31939 9.81506 8.16187 9.78807 8.06702 9.78807C7.92755 9.78807 7.78942 9.84468 7.6524 9.99238L7.65133 9.99352C7.45148 10.2067 7.1848 10.4882 6.9075 10.761C6.73719 10.9278 6.70794 11.0923 6.70766 11.1936C6.70774 11.3447 6.76592 11.4918 6.91268 11.6377M14.6993 5.26848C14.5063 5.35343 14.3222 5.48871 14.1164 5.69732C13.9122 5.90435 13.7828 6.08986 13.7019 6.28448C13.6211 6.47884 13.5811 6.70037 13.5806 6.98968C13.5789 7.99854 14.3727 8.82602 15.3628 8.82652H15.3648C16.3635 8.82652 17.1473 8.01108 17.1592 7.00008C17.1626 6.70925 17.1266 6.48571 17.0492 6.28946C16.9719 6.09342 16.8461 5.90632 16.6446 5.69836C16.4445 5.49196 16.2651 5.35857 16.0764 5.27398C15.8889 5.18989 15.6744 5.146 15.3935 5.14381C15.109 5.14159 14.8908 5.18419 14.6993 5.26848ZM14.4576 4.71932C14.7424 4.59395 15.0479 4.5411 15.3981 4.54383C15.7422 4.54651 16.0423 4.60112 16.3219 4.7265C16.6004 4.85137 16.8405 5.03842 17.0754 5.28081C17.3164 5.5295 17.4939 5.78148 17.6074 6.06934C17.7208 6.35697 17.7632 6.66212 17.7591 7.00712C17.7437 8.32517 16.7132 9.42652 15.3648 9.42652H15.3627C14.0223 9.42584 12.9783 8.31027 12.9806 6.98862C12.9812 6.64284 13.0294 6.33921 13.1479 6.05413C13.2663 5.76932 13.4475 5.52112 13.6893 5.27599C13.9293 5.03266 14.1742 4.84405 14.4576 4.71932Z",
|
|
2518
2523
|
fill: "#528693"
|
|
2519
2524
|
})
|
|
@@ -4961,8 +4966,8 @@ var Video = forwardRef93((delegated, ref) => {
|
|
|
4961
4966
|
fill: "white"
|
|
4962
4967
|
}),
|
|
4963
4968
|
/* @__PURE__ */ jsx100("path", {
|
|
4964
|
-
|
|
4965
|
-
|
|
4969
|
+
fillRule: "evenodd",
|
|
4970
|
+
clipRule: "evenodd",
|
|
4966
4971
|
d: "M2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V17C20.6 17.8837 19.8836 18.6 19 18.6H2.99999C2.11634 18.6 1.39999 17.8837 1.39999 17V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V17C1.99999 17.5523 2.44771 18 2.99999 18H19C19.5523 18 20 17.5523 20 17V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z",
|
|
4967
4972
|
fill: "#528693"
|
|
4968
4973
|
}),
|
|
@@ -4972,8 +4977,8 @@ var Video = forwardRef93((delegated, ref) => {
|
|
|
4972
4977
|
className: "c-icon-fill"
|
|
4973
4978
|
}),
|
|
4974
4979
|
/* @__PURE__ */ jsx100("path", {
|
|
4975
|
-
|
|
4976
|
-
|
|
4980
|
+
fillRule: "evenodd",
|
|
4981
|
+
clipRule: "evenodd",
|
|
4977
4982
|
d: "M20.6 7.60002H1.39999V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V7.60002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V7.00002H20V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z",
|
|
4978
4983
|
fill: "#528693"
|
|
4979
4984
|
}),
|
|
@@ -4983,8 +4988,8 @@ var Video = forwardRef93((delegated, ref) => {
|
|
|
4983
4988
|
className: "c-icon-fill"
|
|
4984
4989
|
}),
|
|
4985
4990
|
/* @__PURE__ */ jsx100("path", {
|
|
4986
|
-
|
|
4987
|
-
|
|
4991
|
+
fillRule: "evenodd",
|
|
4992
|
+
clipRule: "evenodd",
|
|
4988
4993
|
d: "M13.3176 13.3513L9.71764 15.4297C9.11764 15.7761 8.36764 15.3431 8.36764 14.6503L8.36764 10.4934C8.36764 9.80056 9.11764 9.36755 9.71764 9.71396L13.3176 11.7924C13.9176 12.1388 13.9176 13.0049 13.3176 13.3513ZM13.0176 12.8317C13.2176 12.7162 13.2176 12.4275 13.0176 12.312L9.41764 10.2336C9.21764 10.1181 8.96764 10.2624 8.96764 10.4934L8.96764 14.6503C8.96764 14.8812 9.21764 15.0256 9.41764 14.9101L13.0176 12.8317Z",
|
|
4989
4994
|
fill: "#528693"
|
|
4990
4995
|
})
|
|
@@ -5693,6 +5698,7 @@ var InputWithLabel = forwardRef100(
|
|
|
5693
5698
|
!append && !errorMessage ? null : /* @__PURE__ */ jsx112(Tooltip, {
|
|
5694
5699
|
content: errorMessage,
|
|
5695
5700
|
children: /* @__PURE__ */ jsx112("div", {
|
|
5701
|
+
"data-testid": "input-with-label-error-message",
|
|
5696
5702
|
className: "c-input-with-label-append",
|
|
5697
5703
|
children: errorMessage ? /* @__PURE__ */ jsx112(Triangle, {}) : append
|
|
5698
5704
|
})
|
package/package.json
CHANGED
|
@@ -21,21 +21,26 @@ export function DropdownMenuRoot({
|
|
|
21
21
|
container,
|
|
22
22
|
...delegated
|
|
23
23
|
}: DropdownMenuRootProps) {
|
|
24
|
+
const contentProps = {
|
|
25
|
+
align: alignContent,
|
|
26
|
+
sideOffset: 5,
|
|
27
|
+
className: 'c-dropdown-menu-content',
|
|
28
|
+
children: content,
|
|
29
|
+
...delegated,
|
|
30
|
+
};
|
|
31
|
+
|
|
24
32
|
return (
|
|
25
33
|
<DropdownMenuPrimitive.Root onOpenChange={onOpenChange}>
|
|
26
34
|
<DropdownMenuPrimitive.Trigger disabled={disabled} asChild>
|
|
27
35
|
{children}
|
|
28
36
|
</DropdownMenuPrimitive.Trigger>
|
|
29
|
-
|
|
30
|
-
<DropdownMenuPrimitive.Content
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{content}
|
|
37
|
-
</DropdownMenuPrimitive.Content>
|
|
38
|
-
</DropdownMenuPrimitive.Portal>
|
|
37
|
+
{container === null ? (
|
|
38
|
+
<DropdownMenuPrimitive.Content {...contentProps} />
|
|
39
|
+
) : (
|
|
40
|
+
<DropdownMenuPrimitive.Portal container={container}>
|
|
41
|
+
<DropdownMenuPrimitive.Content {...contentProps} />
|
|
42
|
+
</DropdownMenuPrimitive.Portal>
|
|
43
|
+
)}
|
|
39
44
|
</DropdownMenuPrimitive.Root>
|
|
40
45
|
);
|
|
41
46
|
}
|
package/src/iconography/key.tsx
CHANGED
|
@@ -12,8 +12,8 @@ export const Key = forwardRef<KeyRef, KeyProps>((delegated, ref) => {
|
|
|
12
12
|
fill="#BFF6F8"
|
|
13
13
|
/>
|
|
14
14
|
<path
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
17
|
d="M14.2861 2.06126C15.0279 1.89233 15.5969 1.90313 16.2407 2.02139C16.8882 2.14034 17.5061 2.38935 18.0586 2.75375C19.168 3.48444 19.9256 4.59912 20.1884 5.89043C20.4159 7.00773 20.2975 8.13239 19.8345 9.13848C19.375 10.1371 18.7298 10.9082 17.607 11.4842C16.8141 11.891 16.1813 12.0232 15.3771 12.0232H15.3706C14.803 12.0461 14.2219 11.9333 13.6076 11.6916C12.8526 12.4665 12.1015 13.2514 11.3489 14.0378C9.77024 15.6873 8.18529 17.3435 6.54613 18.9277C6.17818 19.2889 5.68752 19.493 5.17496 19.4955L5.17167 19.4955C4.90609 19.4939 4.64362 19.4386 4.3993 19.3331C4.1553 19.2278 3.9344 19.0744 3.74899 18.8822C3.38162 18.5049 3.17408 17.9966 3.16855 17.4666C3.16301 16.9363 3.36003 16.4236 3.7196 16.0382C3.82475 15.9262 4.03922 15.706 4.03922 15.706C4.03922 15.706 3.32162 14.9716 3.11872 14.769C2.88007 14.5311 2.74527 14.2397 2.74527 13.9108C2.74527 13.6833 2.81488 13.3558 3.1158 13.0566C3.38648 12.787 3.63119 12.534 3.85634 12.2918C4.14888 11.9772 4.47429 11.8969 4.7078 11.8969H4.71274C5.04159 11.8969 5.33075 12.0407 5.56473 12.2869C5.74754 12.4792 6.02614 12.7657 6.25999 13.005C6.33588 13.0827 6.4069 13.1553 6.46821 13.2178L7.04848 12.6337C7.02239 12.6067 6.9947 12.5781 6.96596 12.5484C6.80638 12.3838 6.61651 12.1891 6.48996 12.0635C6.24557 11.8206 6.10766 11.5255 6.10766 11.1933C6.10815 10.9628 6.181 10.6329 6.48692 10.3331C6.75501 10.0693 7.01468 9.79536 7.21306 9.58374C7.4447 9.33431 7.73505 9.18807 8.06702 9.18807C8.29928 9.18807 8.62426 9.26401 8.91959 9.57685C9.10286 9.77043 9.28546 9.96275 9.46954 10.1527C9.68431 9.93175 9.83739 9.7722 10.0018 9.60089C10.1998 9.39453 10.4141 9.17111 10.7724 8.8027C10.5401 8.18952 10.4272 7.5352 10.4406 6.87665C10.4552 6.15474 10.5737 5.53909 10.9329 4.7827C11.3015 4.00641 11.6307 3.57251 12.3033 3.02885C12.9666 2.49276 13.4515 2.25131 14.2861 2.06126ZM7.68462 12.4291L7.88748 12.6404L6.4659 14.0716L6.25307 13.8552L6.12971 13.7296C6.05344 13.6519 5.94791 13.5442 5.83082 13.4243C5.59705 13.1851 5.31582 12.8959 5.12984 12.7003C4.98945 12.5525 4.85064 12.4969 4.71274 12.4969H4.7078C4.61699 12.4969 4.45943 12.5243 4.29579 12.7004C4.06482 12.9488 3.81465 13.2074 3.53899 13.482C3.37316 13.6468 3.34527 13.8094 3.34527 13.9108C3.34527 14.0616 3.40239 14.2047 3.54221 14.344C3.80349 14.6049 4.41991 15.2367 4.67344 15.497L4.87754 15.7065L4.6733 15.9158C4.63245 15.9577 4.59185 15.9991 4.55148 16.0404C4.41786 16.1768 4.28682 16.3106 4.15806 16.4478C3.90514 16.719 3.76457 17.0823 3.76851 17.4603C3.77246 17.8385 3.92067 18.1986 4.17922 18.464L4.18033 18.4652C4.31121 18.601 4.46652 18.7086 4.63716 18.7823C4.80725 18.8558 4.98946 18.8941 5.17354 18.8955L5.17203 18.8955L5.17532 18.8955L5.17354 18.8955C5.52759 18.8934 5.8688 18.7522 6.12651 18.4988L6.12836 18.497C7.75985 16.9203 9.33034 15.2792 10.904 13.6348C11.7056 12.7971 12.5081 11.9586 13.3198 11.1273L13.464 10.9797L13.6534 11.0615C14.2788 11.3316 14.8332 11.4453 15.3518 11.4234L15.3644 11.4229L15.3771 11.4232C16.0917 11.4232 16.6298 11.3112 17.3332 10.9504C18.3222 10.443 18.879 9.77955 19.2895 8.88764C19.6965 8.00315 19.8038 7.00887 19.6005 6.01012C19.3698 4.87684 18.7061 3.89862 17.7285 3.25473C17.2427 2.93437 16.7001 2.71582 16.1323 2.61151C15.5607 2.50651 15.0743 2.49712 14.4193 2.64628C13.677 2.81532 13.275 3.01499 12.6805 3.4955C12.082 3.97922 11.8073 4.33997 11.4749 5.04008C11.1556 5.71245 11.0536 6.24336 11.0405 6.88883C11.0274 7.53036 11.15 8.16698 11.3996 8.7549L11.4776 8.93858L11.3384 9.0815C10.9129 9.51811 10.6644 9.77704 10.4358 10.0151C10.2142 10.246 10.0114 10.4572 9.68443 10.7919L9.47093 11.0104L9.25634 10.7929C8.99434 10.5275 8.73781 10.2576 8.48371 9.98917C8.31939 9.81506 8.16187 9.78807 8.06702 9.78807C7.92755 9.78807 7.78942 9.84468 7.6524 9.99238L7.65133 9.99352C7.45148 10.2067 7.1848 10.4882 6.9075 10.761C6.73719 10.9278 6.70794 11.0923 6.70766 11.1936C6.70774 11.3447 6.76592 11.4918 6.91268 11.6377M14.6993 5.26848C14.5063 5.35343 14.3222 5.48871 14.1164 5.69732C13.9122 5.90435 13.7828 6.08986 13.7019 6.28448C13.6211 6.47884 13.5811 6.70037 13.5806 6.98968C13.5789 7.99854 14.3727 8.82602 15.3628 8.82652H15.3648C16.3635 8.82652 17.1473 8.01108 17.1592 7.00008C17.1626 6.70925 17.1266 6.48571 17.0492 6.28946C16.9719 6.09342 16.8461 5.90632 16.6446 5.69836C16.4445 5.49196 16.2651 5.35857 16.0764 5.27398C15.8889 5.18989 15.6744 5.146 15.3935 5.14381C15.109 5.14159 14.8908 5.18419 14.6993 5.26848ZM14.4576 4.71932C14.7424 4.59395 15.0479 4.5411 15.3981 4.54383C15.7422 4.54651 16.0423 4.60112 16.3219 4.7265C16.6004 4.85137 16.8405 5.03842 17.0754 5.28081C17.3164 5.5295 17.4939 5.78148 17.6074 6.06934C17.7208 6.35697 17.7632 6.66212 17.7591 7.00712C17.7437 8.32517 16.7132 9.42652 15.3648 9.42652H15.3627C14.0223 9.42584 12.9783 8.31027 12.9806 6.98862C12.9812 6.64284 13.0294 6.33921 13.1479 6.05413C13.2663 5.76932 13.4475 5.52112 13.6893 5.27599C13.9293 5.03266 14.1742 4.84405 14.4576 4.71932Z"
|
|
18
18
|
fill="#528693"
|
|
19
19
|
/>
|
|
@@ -12,8 +12,8 @@ export const Video = forwardRef<VideoRef, VideoProps>((delegated, ref) => {
|
|
|
12
12
|
fill="white"
|
|
13
13
|
/>
|
|
14
14
|
<path
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
17
|
d="M2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V17C20.6 17.8837 19.8836 18.6 19 18.6H2.99999C2.11634 18.6 1.39999 17.8837 1.39999 17V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V17C1.99999 17.5523 2.44771 18 2.99999 18H19C19.5523 18 20 17.5523 20 17V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z"
|
|
18
18
|
fill="#528693"
|
|
19
19
|
/>
|
|
@@ -23,8 +23,8 @@ export const Video = forwardRef<VideoRef, VideoProps>((delegated, ref) => {
|
|
|
23
23
|
className="c-icon-fill"
|
|
24
24
|
/>
|
|
25
25
|
<path
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
fillRule="evenodd"
|
|
27
|
+
clipRule="evenodd"
|
|
28
28
|
d="M20.6 7.60002H1.39999V5.00002C1.39999 4.11637 2.11634 3.40002 2.99999 3.40002H19C19.8836 3.40002 20.6 4.11637 20.6 5.00002V7.60002ZM2.99999 4.00002C2.44771 4.00002 1.99999 4.44774 1.99999 5.00002V7.00002H20V5.00002C20 4.44774 19.5523 4.00002 19 4.00002H2.99999Z"
|
|
29
29
|
fill="#528693"
|
|
30
30
|
/>
|
|
@@ -34,8 +34,8 @@ export const Video = forwardRef<VideoRef, VideoProps>((delegated, ref) => {
|
|
|
34
34
|
className="c-icon-fill"
|
|
35
35
|
/>
|
|
36
36
|
<path
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
fillRule="evenodd"
|
|
38
|
+
clipRule="evenodd"
|
|
39
39
|
d="M13.3176 13.3513L9.71764 15.4297C9.11764 15.7761 8.36764 15.3431 8.36764 14.6503L8.36764 10.4934C8.36764 9.80056 9.11764 9.36755 9.71764 9.71396L13.3176 11.7924C13.9176 12.1388 13.9176 13.0049 13.3176 13.3513ZM13.0176 12.8317C13.2176 12.7162 13.2176 12.4275 13.0176 12.312L9.41764 10.2336C9.21764 10.1181 8.96764 10.2624 8.96764 10.4934L8.96764 14.6503C8.96764 14.8812 9.21764 15.0256 9.41764 14.9101L13.0176 12.8317Z"
|
|
40
40
|
fill="#528693"
|
|
41
41
|
/>
|
|
@@ -47,7 +47,9 @@ export const InputWithLabel = forwardRef<InputWithLabelRef, InputWithLabelProps>
|
|
|
47
47
|
<Input className={cx('c-input-with-label-input', className)} ref={ref} id={id} {...delegated} />
|
|
48
48
|
{!append && !errorMessage ? null : (
|
|
49
49
|
<Tooltip content={errorMessage}>
|
|
50
|
-
<div className="c-input-with-label-append">
|
|
50
|
+
<div data-testid="input-with-label-error-message" className="c-input-with-label-append">
|
|
51
|
+
{errorMessage ? <Triangle /> : append}
|
|
52
|
+
</div>
|
|
51
53
|
</Tooltip>
|
|
52
54
|
)}
|
|
53
55
|
</span>
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
container-type: inline-size;
|
|
10
10
|
container-name: rich-text-toolbar;
|
|
11
11
|
|
|
12
|
-
@container rich-text-toolbar (max-width: 600px) {
|
|
13
|
-
.c-rte-toolbar__icon-btn {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
&__inner {
|
|
19
13
|
@apply flex;
|
|
20
14
|
}
|
|
@@ -127,3 +121,9 @@
|
|
|
127
121
|
@apply mt-3 flex justify-end;
|
|
128
122
|
}
|
|
129
123
|
}
|
|
124
|
+
|
|
125
|
+
@container rich-text-toolbar (max-width: 600px) {
|
|
126
|
+
.c-rte-toolbar .c-rte-toolbar__icon-btn {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
}
|