@crystallize/design-system 1.21.2 → 1.23.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.
- package/CHANGELOG.md +14 -0
- package/dist/{chunk-PB47BT3T.mjs → chunk-VYFBR7S4.mjs} +837 -782
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1354 -1291
- package/dist/index.mjs +3 -3
- package/dist/{rich-text-editor-BA5R66CS.mjs → rich-text-editor-PXZQZRPK.mjs} +2 -1
- package/package.json +1 -1
- package/src/iconography/flow.tsx +58 -0
- package/src/iconography/index.ts +2 -0
- package/src/rich-text-editor/rich-text-editor.tsx +1 -1
- package/src/toast/toast.tsx +1 -1
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-VYFBR7S4.mjs";
|
|
21
21
|
import "./chunk-NIH5ZMPE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/card/card.tsx
|
|
@@ -368,7 +368,7 @@ function Tag({ children, className, variant, size, prepend, onRemove, ...delegat
|
|
|
368
368
|
// src/rich-text-editor/index.tsx
|
|
369
369
|
import { lazy, Suspense } from "react";
|
|
370
370
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
371
|
-
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-
|
|
371
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-PXZQZRPK.mjs"));
|
|
372
372
|
var RichTextEditor = (props) => {
|
|
373
373
|
return /* @__PURE__ */ jsx12(Suspense, {
|
|
374
374
|
fallback: null,
|
|
@@ -410,7 +410,7 @@ var toast = ({ title, message, type = "success", timeout = 6e3 }) => {
|
|
|
410
410
|
const toastId = Date.now().toString();
|
|
411
411
|
sonnerToast.custom(
|
|
412
412
|
(id) => /* @__PURE__ */ jsxs7("div", {
|
|
413
|
-
"data-testid":
|
|
413
|
+
"data-testid": `toast-${type}`,
|
|
414
414
|
className: cx4(toastStyles({ type }), withMessage ? "c-toast-with-message" : "c-toast-title-only"),
|
|
415
415
|
children: [
|
|
416
416
|
/* @__PURE__ */ jsx13("div", {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Icon,
|
|
7
7
|
IconButton,
|
|
8
8
|
InputWithLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VYFBR7S4.mjs";
|
|
10
10
|
import "./chunk-NIH5ZMPE.mjs";
|
|
11
11
|
|
|
12
12
|
// src/rich-text-editor/rich-text-editor.tsx
|
|
@@ -3164,6 +3164,7 @@ function RichTextEditorWithoutContext({
|
|
|
3164
3164
|
slotPreContent,
|
|
3165
3165
|
/* @__PURE__ */ jsxs10("div", {
|
|
3166
3166
|
className: `c-rte-editor-container ${disabled ? "disabled" : ""}`,
|
|
3167
|
+
"data-testid": "rich-text-editor",
|
|
3167
3168
|
children: [
|
|
3168
3169
|
maxLength != null ? /* @__PURE__ */ jsx15(MaxLengthPlugin, {
|
|
3169
3170
|
maxLength
|
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type FlowProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
type FlowRef = SVGSVGElement;
|
|
6
|
+
|
|
7
|
+
export const Flow = forwardRef<FlowRef, FlowProps>((delegated, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<svg
|
|
10
|
+
ref={ref}
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width="23"
|
|
13
|
+
height="22"
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox="0 0 23 22"
|
|
16
|
+
{...delegated}
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
fill="#fff"
|
|
20
|
+
d="M9.892 13.114a1.04 1.04 0 01-1.041-1.04v-2.29c0-.576.466-1.042 1.04-1.042h2.29c.576 0 1.042.466 1.042 1.041v2.29a1.04 1.04 0 01-1.041 1.04h-2.29z"
|
|
21
|
+
></path>
|
|
22
|
+
<path
|
|
23
|
+
fill="#528693"
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
d="M8.226 12.073v-2.29c0-.92.746-1.665 1.666-1.665h2.29c.92 0 1.665.745 1.665 1.665v2.29c0 .92-.746 1.665-1.665 1.665h-2.29c-.92 0-1.666-.745-1.666-1.665zm.625 0c0 .575.466 1.04 1.04 1.04h2.29a1.04 1.04 0 001.042-1.04v-2.29a1.04 1.04 0 00-1.041-1.04h-2.29a1.04 1.04 0 00-1.041 1.04v2.29z"
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
></path>
|
|
28
|
+
<path
|
|
29
|
+
fill="#BFF6F8"
|
|
30
|
+
d="M15.79 13.114a1.04 1.04 0 01-1.041-1.04v-2.29c0-.576.465-1.042 1.04-1.042h2.29c.575 0 1.041.466 1.041 1.041v2.29a1.04 1.04 0 01-1.04 1.04h-2.29z"
|
|
31
|
+
></path>
|
|
32
|
+
<path
|
|
33
|
+
fill="#528693"
|
|
34
|
+
fillRule="evenodd"
|
|
35
|
+
d="M14.124 12.073v-2.29c0-.92.746-1.665 1.665-1.665h2.29c.92 0 1.665.745 1.665 1.665v2.29c0 .92-.745 1.665-1.665 1.665h-2.29c-.92 0-1.665-.745-1.665-1.665zm.624 0c0 .575.466 1.04 1.041 1.04h2.29a1.04 1.04 0 001.041-1.04v-2.29a1.04 1.04 0 00-1.04-1.04h-2.29a1.04 1.04 0 00-1.041 1.04v2.29z"
|
|
36
|
+
clipRule="evenodd"
|
|
37
|
+
></path>
|
|
38
|
+
<path
|
|
39
|
+
fill="#BFF6F8"
|
|
40
|
+
d="M3.994 13.114a1.04 1.04 0 01-1.04-1.04v-2.29c0-.576.465-1.042 1.04-1.042h2.29c.575 0 1.041.466 1.041 1.041v2.29a1.04 1.04 0 01-1.04 1.04h-2.29z"
|
|
41
|
+
></path>
|
|
42
|
+
<path
|
|
43
|
+
fill="#528693"
|
|
44
|
+
fillRule="evenodd"
|
|
45
|
+
d="M2.329 12.073v-2.29c0-.92.746-1.665 1.665-1.665h2.29c.92 0 1.665.745 1.665 1.665v2.29c0 .92-.745 1.665-1.665 1.665h-2.29c-.92 0-1.665-.745-1.665-1.665zm.624 0c0 .575.466 1.04 1.041 1.04h2.29a1.04 1.04 0 001.041-1.04v-2.29a1.04 1.04 0 00-1.04-1.04h-2.29a1.04 1.04 0 00-1.042 1.04v2.29zM5.14 17.778a.312.312 0 01-.313-.313v-2.558a.312.312 0 11.624 0v2.558c0 .173-.14.313-.312.313zM14.617 5.526l1.987-1.987a.312.312 0 01.442 0l1.987 1.987a.312.312 0 01-.441.441l-1.454-1.454V8.34a.312.312 0 01-.625 0V4.513l-1.454 1.454a.312.312 0 11-.442-.441z"
|
|
46
|
+
clipRule="evenodd"
|
|
47
|
+
></path>
|
|
48
|
+
<path
|
|
49
|
+
fill="#528693"
|
|
50
|
+
fillRule="evenodd"
|
|
51
|
+
d="M11.037 8.651c.172 0 .312-.14.312-.312V4.59c0-.747-.606-1.353-1.353-1.353h-3.97c-.748 0-1.354.606-1.354 1.353v3.75a.312.312 0 00.625 0V4.59c0-.402.326-.728.728-.728h3.97c.403 0 .73.326.73.728v3.75c0 .173.14.312.312.312zM11.037 13.479a.312.312 0 00-.313.312v3.75c0 .747.606 1.353 1.354 1.353h3.97c.748 0 1.353-.606 1.353-1.353v-3.75a.312.312 0 00-.624 0v3.75a.729.729 0 01-.729.728h-3.97a.729.729 0 01-.729-.728v-3.75a.312.312 0 00-.312-.312zM5.14 20.29a.312.312 0 01-.313-.311v-.91a.312.312 0 11.624 0v.91c0 .172-.14.312-.312.312z"
|
|
52
|
+
clipRule="evenodd"
|
|
53
|
+
></path>
|
|
54
|
+
</svg>
|
|
55
|
+
);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
Flow.displayName = 'FlowIcon';
|
package/src/iconography/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { EyeOpen } from './eye-open';
|
|
|
34
34
|
import { FileUpload } from './file-upload';
|
|
35
35
|
import { Filename } from './filename';
|
|
36
36
|
import { FixedPropertyTable } from './fixed-property-table';
|
|
37
|
+
import { Flow } from './flow';
|
|
37
38
|
import { Folder } from './folder';
|
|
38
39
|
import { FolderShortcut } from './folder-shortcut';
|
|
39
40
|
import { Frontends } from './frontends';
|
|
@@ -124,6 +125,7 @@ export const Icon = {
|
|
|
124
125
|
Edit,
|
|
125
126
|
EyeClosed,
|
|
126
127
|
EyeOpen,
|
|
128
|
+
Flow,
|
|
127
129
|
Folder,
|
|
128
130
|
FolderShortcut,
|
|
129
131
|
Frontends,
|
|
@@ -142,7 +142,7 @@ function RichTextEditorWithoutContext({
|
|
|
142
142
|
actionsMenuAppend={actionsMenuAppend}
|
|
143
143
|
/>
|
|
144
144
|
{slotPreContent}
|
|
145
|
-
<div className={`c-rte-editor-container ${disabled ? 'disabled' : ''}`}>
|
|
145
|
+
<div className={`c-rte-editor-container ${disabled ? 'disabled' : ''}`} data-testid="rich-text-editor">
|
|
146
146
|
{maxLength != null ? <MaxLengthPlugin maxLength={maxLength} /> : null}
|
|
147
147
|
{!autoFocus ? null : <AutoFocusPlugin />}
|
|
148
148
|
<ClearEditorPlugin />
|
package/src/toast/toast.tsx
CHANGED
|
@@ -44,7 +44,7 @@ export const toast = ({ title, message, type = 'success', timeout = 6000 }: Toas
|
|
|
44
44
|
sonnerToast.custom(
|
|
45
45
|
id => (
|
|
46
46
|
<div
|
|
47
|
-
data-testid=
|
|
47
|
+
data-testid={`toast-${type}`}
|
|
48
48
|
className={cx(toastStyles({ type }), withMessage ? 'c-toast-with-message' : 'c-toast-title-only')}
|
|
49
49
|
>
|
|
50
50
|
<div>{<ToastIcon width={26} height={26} />}</div>
|