@crystallize/design-system 1.24.19 → 1.24.21
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/{chunk-7ZEBQCV7.mjs → chunk-5RNPHH5B.mjs} +734 -544
- package/dist/index.css +27 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1274 -1050
- package/dist/index.mjs +9 -3
- package/dist/{rich-text-editor-OKFI7OCV.mjs → rich-text-editor-PGTFVNXG.mjs} +1 -1
- package/package.json +1 -1
- package/src/collapsible/collapsible.css +11 -3
- package/src/collapsible/collapsible.tsx +8 -1
- package/src/iconography/index.ts +8 -0
- package/src/iconography/organization.tsx +31 -0
- package/src/iconography/topics-branch.tsx +47 -0
- package/src/iconography/topics-leaf.tsx +34 -0
- package/src/iconography/user.tsx +44 -0
- package/tailwind.config.cjs +2 -2
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-5RNPHH5B.mjs";
|
|
21
21
|
import "./chunk-NIH5ZMPE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/card/card.tsx
|
|
@@ -129,12 +129,18 @@ function CollapsibleTrigger({
|
|
|
129
129
|
children,
|
|
130
130
|
arrowPosition,
|
|
131
131
|
className,
|
|
132
|
+
mode,
|
|
132
133
|
...delegated
|
|
133
134
|
}) {
|
|
134
135
|
return /* @__PURE__ */ jsx4(CollapsiblePrimitives.Trigger, {
|
|
135
136
|
asChild: true,
|
|
136
137
|
...delegated,
|
|
137
|
-
className: cx(
|
|
138
|
+
className: cx(
|
|
139
|
+
"c-collapsible-trigger",
|
|
140
|
+
arrowPosition === "right" ? "arrow-right" : "",
|
|
141
|
+
mode === "tree" ? "c-collapsible-tree" : "",
|
|
142
|
+
className
|
|
143
|
+
),
|
|
138
144
|
children: /* @__PURE__ */ jsxs2("div", {
|
|
139
145
|
children: [
|
|
140
146
|
arrowPosition && /* @__PURE__ */ jsx4(Icon.Caret, {
|
|
@@ -480,7 +486,7 @@ function Tag({
|
|
|
480
486
|
// src/rich-text-editor/index.tsx
|
|
481
487
|
import { lazy, Suspense } from "react";
|
|
482
488
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
483
|
-
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-
|
|
489
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-PGTFVNXG.mjs"));
|
|
484
490
|
var RichTextEditor = (props) => {
|
|
485
491
|
return /* @__PURE__ */ jsx15(Suspense, {
|
|
486
492
|
fallback: null,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.c-collapsible-trigger {
|
|
6
|
-
@apply flex gap-2
|
|
6
|
+
@apply flex items-center gap-2;
|
|
7
7
|
|
|
8
8
|
&.arrow-right {
|
|
9
9
|
@apply flex-row-reverse;
|
|
@@ -11,9 +11,17 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.c-collapsible-arrow {
|
|
14
|
-
transition
|
|
14
|
+
@apply transition duration-150;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.c-collapsible-tree .c-collapsible-arrow {
|
|
18
|
+
@apply -rotate-90 duration-150;
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
.c-collapsible-trigger[data-state='open'] .c-collapsible-arrow {
|
|
18
|
-
|
|
22
|
+
@apply rotate-180;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.c-collapsible-tree[data-state='open'] .c-collapsible-arrow {
|
|
26
|
+
@apply rotate-0;
|
|
19
27
|
}
|
|
@@ -14,19 +14,26 @@ function Content({ className, ...delegated }: CollapsibleContentProps) {
|
|
|
14
14
|
|
|
15
15
|
type CollapsibleTriggerPropsExtendedProps = CollapsibleTriggerProps & {
|
|
16
16
|
arrowPosition?: 'left' | 'right';
|
|
17
|
+
mode?: 'tree';
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export function CollapsibleTrigger({
|
|
20
21
|
children,
|
|
21
22
|
arrowPosition,
|
|
22
23
|
className,
|
|
24
|
+
mode,
|
|
23
25
|
...delegated
|
|
24
26
|
}: CollapsibleTriggerPropsExtendedProps) {
|
|
25
27
|
return (
|
|
26
28
|
<CollapsiblePrimitives.Trigger
|
|
27
29
|
asChild
|
|
28
30
|
{...delegated}
|
|
29
|
-
className={cx(
|
|
31
|
+
className={cx(
|
|
32
|
+
'c-collapsible-trigger',
|
|
33
|
+
arrowPosition === 'right' ? 'arrow-right' : '',
|
|
34
|
+
mode === 'tree' ? 'c-collapsible-tree' : '',
|
|
35
|
+
className,
|
|
36
|
+
)}
|
|
30
37
|
>
|
|
31
38
|
<div>
|
|
32
39
|
{arrowPosition && <Icon.Caret className="c-collapsible-arrow" width={9} height={9} />}
|
package/src/iconography/index.ts
CHANGED
|
@@ -62,6 +62,7 @@ import { Mushroom } from './mushroom';
|
|
|
62
62
|
import { NailPolish } from './nail-polish';
|
|
63
63
|
import { Numeric } from './numeric';
|
|
64
64
|
import { Order } from './order';
|
|
65
|
+
import { Organization } from './organization';
|
|
65
66
|
import { ParagraphCollection } from './paragraph-collection';
|
|
66
67
|
import { Particle } from './particle';
|
|
67
68
|
import { Paths } from './paths';
|
|
@@ -97,9 +98,12 @@ import { SubscriptionPlans } from './subscription-plans';
|
|
|
97
98
|
import { Switch } from './switch';
|
|
98
99
|
import { Target } from './target';
|
|
99
100
|
import { Topics } from './topics';
|
|
101
|
+
import { TopicsBranch } from './topics-branch';
|
|
102
|
+
import { TopicsLeaf } from './topics-leaf';
|
|
100
103
|
import { Unpublish } from './unpublish';
|
|
101
104
|
import { Usage } from './usage';
|
|
102
105
|
import { UsageMeter } from './usage-meter';
|
|
106
|
+
import { User } from './user';
|
|
103
107
|
import { UserCard } from './user-card';
|
|
104
108
|
import { Users } from './users';
|
|
105
109
|
import { Video } from './video';
|
|
@@ -155,6 +159,7 @@ export const Icon = {
|
|
|
155
159
|
Mushroom,
|
|
156
160
|
NailPolish,
|
|
157
161
|
Order,
|
|
162
|
+
Organization,
|
|
158
163
|
Paths,
|
|
159
164
|
People,
|
|
160
165
|
Percentage,
|
|
@@ -216,8 +221,11 @@ export const Icon = {
|
|
|
216
221
|
Subscription,
|
|
217
222
|
Target,
|
|
218
223
|
Topics,
|
|
224
|
+
TopicsBranch,
|
|
225
|
+
TopicsLeaf,
|
|
219
226
|
UsageMeter,
|
|
220
227
|
Unpublish,
|
|
228
|
+
User,
|
|
221
229
|
Usage,
|
|
222
230
|
UserCard,
|
|
223
231
|
Users,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type OrganizationProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
type OrganizationRef = SVGSVGElement;
|
|
6
|
+
|
|
7
|
+
export const Organization = forwardRef<OrganizationRef, OrganizationProps>((delegated, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<svg ref={ref} width="22" height="22" fill="none" viewBox="0 0 22 22" {...delegated}>
|
|
10
|
+
<path d="M2.911 3.495h9.652V18.72H2.911V3.495Z" fill="#fff" />
|
|
11
|
+
<path
|
|
12
|
+
fillRule="evenodd"
|
|
13
|
+
clipRule="evenodd"
|
|
14
|
+
d="M3.394 3.568a.193.193 0 0 0-.193.193V18.24c0 .106.086.193.193.193h6.685a.29.29 0 0 1 0 .579H3.394a.772.772 0 0 1-.772-.772V3.76c0-.426.346-.772.772-.772h8.687c.426 0 .772.346.772.772v4.13a.29.29 0 1 1-.58 0V3.76a.193.193 0 0 0-.192-.193H3.394Z"
|
|
15
|
+
fill="#528693"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
d="m10.15 9.213 4.885-3.554 4.875 3.554v9.205c0 .267-.383.425-.65.425l-9.028-.113-.082-9.517Z"
|
|
19
|
+
fill="#BFF6F8"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
fillRule="evenodd"
|
|
23
|
+
clipRule="evenodd"
|
|
24
|
+
d="M14.916 5.457a.29.29 0 0 1 .331.003l4.532 3.23c.203.144.324.379.324.628v8.92a.772.772 0 0 1-.772.773H10.15a.29.29 0 0 1-.29-.29V9.324c0-.255.126-.493.336-.637l4.72-3.23Zm.16.592-4.553 3.116a.193.193 0 0 0-.084.16v9.107h8.892a.193.193 0 0 0 .193-.193v-8.92a.193.193 0 0 0-.081-.158L15.076 6.05Z"
|
|
25
|
+
fill="#528693"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
Organization.displayName = 'OrganizationIcon';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type TopicsBranchProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
type TopicsBranchRef = SVGSVGElement;
|
|
6
|
+
|
|
7
|
+
export const TopicsBranch = forwardRef<TopicsBranchRef, TopicsBranchProps>((delegated, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<svg ref={ref} width="22" height="22" fill="none" viewBox="0 0 22 22" {...delegated}>
|
|
10
|
+
<path d="M3.6 10.9a2.1 2.1 0 0 1 4.2 0 2.1 2.1 0 1 1-4.2 0Z" fill="#BFF6F8" />
|
|
11
|
+
<path
|
|
12
|
+
fillRule="evenodd"
|
|
13
|
+
clipRule="evenodd"
|
|
14
|
+
d="M5.7 13.6a2.7 2.7 0 1 1 0-5.4 2.7 2.7 0 0 1 0 5.4Zm0-4.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z"
|
|
15
|
+
fill="#528693"
|
|
16
|
+
/>
|
|
17
|
+
<path d="M13.2 16.3a2.1 2.1 0 0 1 4.2 0 2.1 2.1 0 1 1-4.2 0Z" fill="#BFF6F8" />
|
|
18
|
+
<path
|
|
19
|
+
fillRule="evenodd"
|
|
20
|
+
clipRule="evenodd"
|
|
21
|
+
d="M15.3 19a2.7 2.7 0 1 1 0-5.4 2.7 2.7 0 0 1 0 5.4Zm0-4.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z"
|
|
22
|
+
fill="#528693"
|
|
23
|
+
/>
|
|
24
|
+
<path d="M13.2 5.5a2.1 2.1 0 0 1 4.2 0 2.1 2.1 0 1 1-4.2 0Z" fill="#fff" />
|
|
25
|
+
<path
|
|
26
|
+
fillRule="evenodd"
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
d="M15.3 8.2a2.7 2.7 0 1 1 0-5.4 2.7 2.7 0 0 1 0 5.4Zm0-4.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z"
|
|
29
|
+
fill="#528693"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
fillRule="evenodd"
|
|
33
|
+
clipRule="evenodd"
|
|
34
|
+
d="M10.1 5.74a.3.3 0 0 1 .3-.3h2.4a.3.3 0 1 1 0 .6h-2.1v9.92h2.1a.3.3 0 1 1 0 .6h-2.4a.3.3 0 0 1-.3-.3V5.74Z"
|
|
35
|
+
fill="#528693"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
fillRule="evenodd"
|
|
39
|
+
clipRule="evenodd"
|
|
40
|
+
d="M8.1 11a.3.3 0 0 1 .3-.3h1.907a.3.3 0 1 1 0 .6H8.4a.3.3 0 0 1-.3-.3Z"
|
|
41
|
+
fill="#528693"
|
|
42
|
+
/>
|
|
43
|
+
</svg>
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
TopicsBranch.displayName = 'TopicsBranchIcon';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type TopicsLeafProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
type TopicsLeafRef = SVGSVGElement;
|
|
6
|
+
|
|
7
|
+
export const TopicsLeaf = forwardRef<TopicsLeafRef, TopicsLeafProps>((delegated, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<svg ref={ref} width="22" height="22" fill="none" viewBox="0 0 22 22" {...delegated}>
|
|
10
|
+
<path d="M3.6 10.9a2.1 2.1 0 0 1 4.2 0 2.1 2.1 0 1 1-4.2 0Z" fill="#BFF6F8" />
|
|
11
|
+
<path
|
|
12
|
+
fillRule="evenodd"
|
|
13
|
+
clipRule="evenodd"
|
|
14
|
+
d="M5.7 13.6a2.7 2.7 0 1 1 0-5.4 2.7 2.7 0 0 1 0 5.4Zm0-4.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z"
|
|
15
|
+
fill="#528693"
|
|
16
|
+
/>
|
|
17
|
+
<path d="M13.2 10.9a2.1 2.1 0 1 1 4.2 0 2.1 2.1 0 1 1-4.2 0Z" fill="#fff" />
|
|
18
|
+
<path
|
|
19
|
+
fillRule="evenodd"
|
|
20
|
+
clipRule="evenodd"
|
|
21
|
+
d="M15.3 13.6a2.7 2.7 0 1 1 0-5.4 2.7 2.7 0 0 1 0 5.4Zm0-4.8a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z"
|
|
22
|
+
fill="#528693"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
d="M8 11a.3.3 0 0 1 .3-.3h4.4a.3.3 0 0 1 0 .6H8.3A.3.3 0 0 1 8 11Z"
|
|
28
|
+
fill="#528693"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
TopicsLeaf.displayName = 'TopicsLeafIcon';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type UserProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
type UserRef = SVGSVGElement;
|
|
6
|
+
|
|
7
|
+
export const User = forwardRef<UserRef, UserProps>((delegated, ref) => {
|
|
8
|
+
return (
|
|
9
|
+
<svg ref={ref} width="23" height="22" viewBox="0 0 23 22" fill="none" {...delegated}>
|
|
10
|
+
<path
|
|
11
|
+
d="M19.0183 18.5C19.0183 19 15.4366 20 11.0183 20C6.60001 20 3.01829 19 3.01829 18.5C3.01829 15.4624 6.60001 13 11.0183 13C15.4366 13 19.0183 15.4624 19.0183 18.5Z"
|
|
12
|
+
fill="#BFF6F8"
|
|
13
|
+
/>
|
|
14
|
+
<path
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
d="M16.8017 20.024C15.312 20.3456 13.2695 20.6 11.0183 20.6C8.76706 20.6 6.72461 20.3456 5.23484 20.024C4.49262 19.8638 3.87028 19.6832 3.42161 19.5014C3.2008 19.4119 2.99558 19.3117 2.8349 19.1983C2.75497 19.1419 2.66392 19.0669 2.58765 18.9698C2.5131 18.8748 2.41829 18.7139 2.41829 18.5C2.41829 16.7268 3.46427 15.1871 5.02152 14.1165C6.58142 13.0441 8.70343 12.4 11.0183 12.4C13.3331 12.4 15.4552 13.0441 17.0151 14.1165C18.5723 15.1871 19.6183 16.7268 19.6183 18.5C19.6183 18.7139 19.5235 18.8748 19.4489 18.9698C19.3727 19.0669 19.2816 19.1419 19.2017 19.1983C19.041 19.3117 18.8358 19.4119 18.615 19.5014C18.1663 19.6832 17.544 19.8638 16.8017 20.024ZM11.0183 20C15.4366 20 19.0183 19 19.0183 18.5C19.0183 15.4625 15.4366 13 11.0183 13C6.60001 13 3.01829 15.4625 3.01829 18.5C3.01829 19 6.60001 20 11.0183 20Z"
|
|
18
|
+
fill="#528693"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M13.0183 12.5C13.0183 13.8807 12.1229 15 11.0183 15C9.91373 15 9.0183 13.8807 9.0183 12.5C9.0183 11.1193 9.91373 10 11.0183 10C12.1229 10 13.0183 11.1193 13.0183 12.5Z"
|
|
22
|
+
fill="white"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
d="M13.6183 12.5C13.6183 14.0802 12.5722 15.6 11.0183 15.6C9.46433 15.6 8.41829 14.0802 8.41829 12.5C8.41829 10.9198 9.46433 9.40002 11.0183 9.40002C12.5722 9.40002 13.6183 10.9198 13.6183 12.5ZM11.0183 15C12.1229 15 13.0183 13.8807 13.0183 12.5C13.0183 11.1193 12.1229 10 11.0183 10C9.91372 10 9.01829 11.1193 9.01829 12.5C9.01829 13.8807 9.91372 15 11.0183 15Z"
|
|
28
|
+
fill="#528693"
|
|
29
|
+
/>
|
|
30
|
+
<path
|
|
31
|
+
d="M15.1183 7.99999C15.1183 11.3137 11.98 12.8 11.0183 12.8C10.0566 12.8 6.91831 11.3137 6.91831 7.99999C6.91831 4.68628 7.91836 2.29999 11.0183 2.29999C14.1183 2.29999 15.1183 4.68628 15.1183 7.99999Z"
|
|
32
|
+
fill="white"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
fillRule="evenodd"
|
|
36
|
+
clipRule="evenodd"
|
|
37
|
+
d="M12.3086 13.0642C11.8438 13.2711 11.3786 13.4 11.0183 13.4C10.658 13.4 10.1929 13.2711 9.72804 13.0642C9.2481 12.8506 8.71451 12.5301 8.21426 12.0957C7.2092 11.2228 6.31831 9.86784 6.31831 8.00001C6.31831 6.30355 6.57045 4.74139 7.29834 3.58729C8.0574 2.38379 9.28518 1.70001 11.0183 1.70001C12.7515 1.70001 13.9793 2.38379 14.7383 3.5873C15.4662 4.74139 15.7183 6.30356 15.7183 8.00001C15.7183 9.86783 14.8274 11.2228 13.8224 12.0957C13.3221 12.5301 12.7886 12.8506 12.3086 13.0642ZM11.0183 12.8C11.98 12.8 15.1183 11.3137 15.1183 8.00001C15.1183 4.6863 14.1183 2.30001 11.0183 2.30001C7.91836 2.30001 6.91831 4.6863 6.91831 8.00001C6.91831 11.3137 10.0566 12.8 11.0183 12.8Z"
|
|
38
|
+
fill="#528693"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
User.displayName = 'UserIcon';
|
package/tailwind.config.cjs
CHANGED
|
@@ -64,8 +64,8 @@ module.exports = {
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
animation: {
|
|
67
|
-
'collapsible-open': 'collapsible-open
|
|
68
|
-
'collapsible-close': 'collapsible-close
|
|
67
|
+
'collapsible-open': 'collapsible-open 150ms ease-out',
|
|
68
|
+
'collapsible-close': 'collapsible-close 150ms ease-out',
|
|
69
69
|
spin: 'spin 2s linear infinite',
|
|
70
70
|
},
|
|
71
71
|
boxShadow: {
|