@crystallize/design-system 1.24.18 → 1.24.19
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 +6 -0
- package/dist/{chunk-GAFUHKHL.mjs → chunk-7ZEBQCV7.mjs} +6 -4
- package/dist/index.js +7 -4
- package/dist/index.mjs +3 -2
- package/dist/{rich-text-editor-REO7ES7Q.mjs → rich-text-editor-OKFI7OCV.mjs} +1 -1
- package/package.json +1 -1
- package/src/iconography/info.tsx +3 -9
- package/src/iconography/warning.tsx +1 -0
- package/src/toast/toast.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2726,7 +2726,6 @@ import { jsx as jsx58, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
|
2726
2726
|
var Info = forwardRef52((delegated, ref) => {
|
|
2727
2727
|
return /* @__PURE__ */ jsxs49("svg", {
|
|
2728
2728
|
ref,
|
|
2729
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2730
2729
|
width: "22",
|
|
2731
2730
|
height: "22",
|
|
2732
2731
|
fill: "none",
|
|
@@ -2735,7 +2734,8 @@ var Info = forwardRef52((delegated, ref) => {
|
|
|
2735
2734
|
children: [
|
|
2736
2735
|
/* @__PURE__ */ jsx58("path", {
|
|
2737
2736
|
d: "M17.593 3.85212C17.593 4.67937 16.9224 5.34999 16.0952 5.34999C15.2679 5.34999 14.5973 4.67937 14.5973 3.85212C14.5973 3.02487 15.2679 2.35425 16.0952 2.35425C16.9224 2.35425 17.593 3.02487 17.593 3.85212Z",
|
|
2738
|
-
fill: "#BFF6F8"
|
|
2737
|
+
fill: "#BFF6F8",
|
|
2738
|
+
className: "c-icon-fill"
|
|
2739
2739
|
}),
|
|
2740
2740
|
/* @__PURE__ */ jsx58("path", {
|
|
2741
2741
|
fillRule: "evenodd",
|
|
@@ -2745,7 +2745,8 @@ var Info = forwardRef52((delegated, ref) => {
|
|
|
2745
2745
|
}),
|
|
2746
2746
|
/* @__PURE__ */ jsx58("path", {
|
|
2747
2747
|
d: "M11.2267 19.6338C10.1339 19.5731 9.0685 19.2687 8.1091 18.743C6.45171 17.8422 5.90412 16.3181 6.67909 14.7659C7.26511 13.7065 7.9836 12.7256 8.81732 11.8468L8.91693 11.7313C9.29243 11.2963 9.68044 10.8467 10.0199 10.3976C10.4486 9.83253 10.8215 9.28929 10.6797 8.86312C10.5968 8.6196 10.3605 8.44373 9.9584 8.32457C9.83715 8.29874 9.71404 8.28256 9.59022 8.27617L9.50938 8.26941C9.26232 8.2834 9.01575 8.23452 8.79281 8.12735C8.54248 7.93066 8.64731 7.36817 8.77404 7.12204C8.87835 6.92966 9.02762 6.76522 9.2092 6.64266C9.39077 6.5201 9.59929 6.44304 9.81707 6.41802C10.0235 6.38077 10.2331 6.36335 10.4429 6.36598C11.4176 6.41652 12.3773 6.6275 13.2831 6.9904C14.9259 7.62106 15.7097 8.86885 15.3801 10.3284C15.1357 11.2718 14.6733 12.1451 14.0299 12.8781C13.8385 13.118 13.6419 13.3464 13.4458 13.5795L13.3415 13.7024C12.9232 14.1775 12.5323 14.6759 12.1707 15.1952L11.9564 15.5012C11.7156 15.8119 11.5223 16.1565 11.3827 16.5237C11.303 16.7335 11.308 16.966 11.3968 17.1721C11.4855 17.3783 11.651 17.5421 11.8583 17.6289C12.0086 17.6973 12.1701 17.7377 12.335 17.748C12.5957 17.7793 12.8648 17.8126 12.9712 18.0603C13.0139 18.1752 13.0313 18.298 13.0223 18.4203C13.0133 18.5425 12.9781 18.6615 12.9191 18.769C12.7552 19.0647 12.5066 19.305 12.2052 19.459C11.9037 19.6131 11.563 19.6739 11.2267 19.6338Z",
|
|
2748
|
-
fill: "#BFF6F8"
|
|
2748
|
+
fill: "#BFF6F8",
|
|
2749
|
+
className: "c-icon-fill"
|
|
2749
2750
|
}),
|
|
2750
2751
|
/* @__PURE__ */ jsx58("path", {
|
|
2751
2752
|
fillRule: "evenodd",
|
|
@@ -6019,7 +6020,8 @@ var Warning = forwardRef109((delegated, ref) => {
|
|
|
6019
6020
|
children: [
|
|
6020
6021
|
/* @__PURE__ */ jsx115("path", {
|
|
6021
6022
|
d: "M9.67541 3.72993C10.2804 2.68198 11.793 2.68198 12.398 3.72993L19.8853 16.6982C20.4903 17.7462 19.734 19.0561 18.524 19.0561H3.54948C2.33942 19.0561 1.58313 17.7462 2.18816 16.6982L9.67541 3.72993Z",
|
|
6022
|
-
fill: "#FFDE99"
|
|
6023
|
+
fill: "#FFDE99",
|
|
6024
|
+
className: "c-icon-fill"
|
|
6023
6025
|
}),
|
|
6024
6026
|
/* @__PURE__ */ jsx115("path", {
|
|
6025
6027
|
fillRule: "evenodd",
|
package/dist/index.js
CHANGED
|
@@ -3158,7 +3158,6 @@ var init_info = __esm({
|
|
|
3158
3158
|
Info = (0, import_react54.forwardRef)((delegated, ref) => {
|
|
3159
3159
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg", {
|
|
3160
3160
|
ref,
|
|
3161
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3162
3161
|
width: "22",
|
|
3163
3162
|
height: "22",
|
|
3164
3163
|
fill: "none",
|
|
@@ -3167,7 +3166,8 @@ var init_info = __esm({
|
|
|
3167
3166
|
children: [
|
|
3168
3167
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
3169
3168
|
d: "M17.593 3.85212C17.593 4.67937 16.9224 5.34999 16.0952 5.34999C15.2679 5.34999 14.5973 4.67937 14.5973 3.85212C14.5973 3.02487 15.2679 2.35425 16.0952 2.35425C16.9224 2.35425 17.593 3.02487 17.593 3.85212Z",
|
|
3170
|
-
fill: "#BFF6F8"
|
|
3169
|
+
fill: "#BFF6F8",
|
|
3170
|
+
className: "c-icon-fill"
|
|
3171
3171
|
}),
|
|
3172
3172
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
3173
3173
|
fillRule: "evenodd",
|
|
@@ -3177,7 +3177,8 @@ var init_info = __esm({
|
|
|
3177
3177
|
}),
|
|
3178
3178
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
3179
3179
|
d: "M11.2267 19.6338C10.1339 19.5731 9.0685 19.2687 8.1091 18.743C6.45171 17.8422 5.90412 16.3181 6.67909 14.7659C7.26511 13.7065 7.9836 12.7256 8.81732 11.8468L8.91693 11.7313C9.29243 11.2963 9.68044 10.8467 10.0199 10.3976C10.4486 9.83253 10.8215 9.28929 10.6797 8.86312C10.5968 8.6196 10.3605 8.44373 9.9584 8.32457C9.83715 8.29874 9.71404 8.28256 9.59022 8.27617L9.50938 8.26941C9.26232 8.2834 9.01575 8.23452 8.79281 8.12735C8.54248 7.93066 8.64731 7.36817 8.77404 7.12204C8.87835 6.92966 9.02762 6.76522 9.2092 6.64266C9.39077 6.5201 9.59929 6.44304 9.81707 6.41802C10.0235 6.38077 10.2331 6.36335 10.4429 6.36598C11.4176 6.41652 12.3773 6.6275 13.2831 6.9904C14.9259 7.62106 15.7097 8.86885 15.3801 10.3284C15.1357 11.2718 14.6733 12.1451 14.0299 12.8781C13.8385 13.118 13.6419 13.3464 13.4458 13.5795L13.3415 13.7024C12.9232 14.1775 12.5323 14.6759 12.1707 15.1952L11.9564 15.5012C11.7156 15.8119 11.5223 16.1565 11.3827 16.5237C11.303 16.7335 11.308 16.966 11.3968 17.1721C11.4855 17.3783 11.651 17.5421 11.8583 17.6289C12.0086 17.6973 12.1701 17.7377 12.335 17.748C12.5957 17.7793 12.8648 17.8126 12.9712 18.0603C13.0139 18.1752 13.0313 18.298 13.0223 18.4203C13.0133 18.5425 12.9781 18.6615 12.9191 18.769C12.7552 19.0647 12.5066 19.305 12.2052 19.459C11.9037 19.6131 11.563 19.6739 11.2267 19.6338Z",
|
|
3180
|
-
fill: "#BFF6F8"
|
|
3180
|
+
fill: "#BFF6F8",
|
|
3181
|
+
className: "c-icon-fill"
|
|
3181
3182
|
}),
|
|
3182
3183
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", {
|
|
3183
3184
|
fillRule: "evenodd",
|
|
@@ -6793,7 +6794,8 @@ var init_warning = __esm({
|
|
|
6793
6794
|
children: [
|
|
6794
6795
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("path", {
|
|
6795
6796
|
d: "M9.67541 3.72993C10.2804 2.68198 11.793 2.68198 12.398 3.72993L19.8853 16.6982C20.4903 17.7462 19.734 19.0561 18.524 19.0561H3.54948C2.33942 19.0561 1.58313 17.7462 2.18816 16.6982L9.67541 3.72993Z",
|
|
6796
|
-
fill: "#FFDE99"
|
|
6797
|
+
fill: "#FFDE99",
|
|
6798
|
+
className: "c-icon-fill"
|
|
6797
6799
|
}),
|
|
6798
6800
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("path", {
|
|
6799
6801
|
fillRule: "evenodd",
|
|
@@ -40528,6 +40530,7 @@ var toast = ({ title, message, id, type = "success", timeout = 6e3 }) => {
|
|
|
40528
40530
|
}),
|
|
40529
40531
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", {
|
|
40530
40532
|
className: "c-toast-close",
|
|
40533
|
+
"data-testid": "toast-close",
|
|
40531
40534
|
children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(IconButton, {
|
|
40532
40535
|
onClick: () => import_sonner.toast.dismiss(id2),
|
|
40533
40536
|
size: "xs",
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
showError,
|
|
18
18
|
showInfo,
|
|
19
19
|
showWarning
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7ZEBQCV7.mjs";
|
|
21
21
|
import "./chunk-NIH5ZMPE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/card/card.tsx
|
|
@@ -480,7 +480,7 @@ function Tag({
|
|
|
480
480
|
// src/rich-text-editor/index.tsx
|
|
481
481
|
import { lazy, Suspense } from "react";
|
|
482
482
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
483
|
-
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-
|
|
483
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-OKFI7OCV.mjs"));
|
|
484
484
|
var RichTextEditor = (props) => {
|
|
485
485
|
return /* @__PURE__ */ jsx15(Suspense, {
|
|
486
486
|
fallback: null,
|
|
@@ -545,6 +545,7 @@ var toast = ({ title, message, id, type = "success", timeout = 6e3 }) => {
|
|
|
545
545
|
}),
|
|
546
546
|
/* @__PURE__ */ jsx16("div", {
|
|
547
547
|
className: "c-toast-close",
|
|
548
|
+
"data-testid": "toast-close",
|
|
548
549
|
children: /* @__PURE__ */ jsx16(IconButton, {
|
|
549
550
|
onClick: () => sonnerToast.dismiss(id2),
|
|
550
551
|
size: "xs",
|
package/package.json
CHANGED
package/src/iconography/info.tsx
CHANGED
|
@@ -5,18 +5,11 @@ type InfoRef = SVGSVGElement;
|
|
|
5
5
|
|
|
6
6
|
export const Info = forwardRef<InfoRef, InfoProps>((delegated, ref) => {
|
|
7
7
|
return (
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
width="22"
|
|
12
|
-
height="22"
|
|
13
|
-
fill="none"
|
|
14
|
-
viewBox="0 0 22 22"
|
|
15
|
-
{...delegated}
|
|
16
|
-
>
|
|
8
|
+
<svg ref={ref} width="22" height="22" fill="none" viewBox="0 0 22 22" {...delegated}>
|
|
17
9
|
<path
|
|
18
10
|
d="M17.593 3.85212C17.593 4.67937 16.9224 5.34999 16.0952 5.34999C15.2679 5.34999 14.5973 4.67937 14.5973 3.85212C14.5973 3.02487 15.2679 2.35425 16.0952 2.35425C16.9224 2.35425 17.593 3.02487 17.593 3.85212Z"
|
|
19
11
|
fill="#BFF6F8"
|
|
12
|
+
className="c-icon-fill"
|
|
20
13
|
/>
|
|
21
14
|
<path
|
|
22
15
|
fillRule="evenodd"
|
|
@@ -27,6 +20,7 @@ export const Info = forwardRef<InfoRef, InfoProps>((delegated, ref) => {
|
|
|
27
20
|
<path
|
|
28
21
|
d="M11.2267 19.6338C10.1339 19.5731 9.0685 19.2687 8.1091 18.743C6.45171 17.8422 5.90412 16.3181 6.67909 14.7659C7.26511 13.7065 7.9836 12.7256 8.81732 11.8468L8.91693 11.7313C9.29243 11.2963 9.68044 10.8467 10.0199 10.3976C10.4486 9.83253 10.8215 9.28929 10.6797 8.86312C10.5968 8.6196 10.3605 8.44373 9.9584 8.32457C9.83715 8.29874 9.71404 8.28256 9.59022 8.27617L9.50938 8.26941C9.26232 8.2834 9.01575 8.23452 8.79281 8.12735C8.54248 7.93066 8.64731 7.36817 8.77404 7.12204C8.87835 6.92966 9.02762 6.76522 9.2092 6.64266C9.39077 6.5201 9.59929 6.44304 9.81707 6.41802C10.0235 6.38077 10.2331 6.36335 10.4429 6.36598C11.4176 6.41652 12.3773 6.6275 13.2831 6.9904C14.9259 7.62106 15.7097 8.86885 15.3801 10.3284C15.1357 11.2718 14.6733 12.1451 14.0299 12.8781C13.8385 13.118 13.6419 13.3464 13.4458 13.5795L13.3415 13.7024C12.9232 14.1775 12.5323 14.6759 12.1707 15.1952L11.9564 15.5012C11.7156 15.8119 11.5223 16.1565 11.3827 16.5237C11.303 16.7335 11.308 16.966 11.3968 17.1721C11.4855 17.3783 11.651 17.5421 11.8583 17.6289C12.0086 17.6973 12.1701 17.7377 12.335 17.748C12.5957 17.7793 12.8648 17.8126 12.9712 18.0603C13.0139 18.1752 13.0313 18.298 13.0223 18.4203C13.0133 18.5425 12.9781 18.6615 12.9191 18.769C12.7552 19.0647 12.5066 19.305 12.2052 19.459C11.9037 19.6131 11.563 19.6739 11.2267 19.6338Z"
|
|
29
22
|
fill="#BFF6F8"
|
|
23
|
+
className="c-icon-fill"
|
|
30
24
|
/>
|
|
31
25
|
<path
|
|
32
26
|
fillRule="evenodd"
|
|
@@ -9,6 +9,7 @@ export const Warning = forwardRef<WarningRef, WarningProps>((delegated, ref) =>
|
|
|
9
9
|
<path
|
|
10
10
|
d="M9.67541 3.72993C10.2804 2.68198 11.793 2.68198 12.398 3.72993L19.8853 16.6982C20.4903 17.7462 19.734 19.0561 18.524 19.0561H3.54948C2.33942 19.0561 1.58313 17.7462 2.18816 16.6982L9.67541 3.72993Z"
|
|
11
11
|
fill="#FFDE99"
|
|
12
|
+
className="c-icon-fill"
|
|
12
13
|
/>
|
|
13
14
|
<path
|
|
14
15
|
fillRule="evenodd"
|
package/src/toast/toast.tsx
CHANGED
|
@@ -53,7 +53,7 @@ export const toast = ({ title, message, id, type = 'success', timeout = 6000 }:
|
|
|
53
53
|
<div className="c-toast-title">{title}</div>
|
|
54
54
|
{!!message && <div className="c-toast-message">{message}</div>}
|
|
55
55
|
</div>
|
|
56
|
-
<div className="c-toast-close">
|
|
56
|
+
<div className="c-toast-close" data-testid="toast-close">
|
|
57
57
|
<IconButton onClick={() => sonnerToast.dismiss(id)} size="xs">
|
|
58
58
|
<Icon.Cancel width={12} height={12} />
|
|
59
59
|
</IconButton>
|