@crystallize/design-system 1.24.19 → 1.24.20

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/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  showError,
18
18
  showInfo,
19
19
  showWarning
20
- } from "./chunk-7ZEBQCV7.mjs";
20
+ } from "./chunk-W7U5TSTK.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("c-collapsible-trigger", arrowPosition === "right" ? "arrow-right" : "", className),
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-OKFI7OCV.mjs"));
489
+ var LazyRichTextEditor = lazy(() => import("./rich-text-editor-3QCILLYH.mjs"));
484
490
  var RichTextEditor = (props) => {
485
491
  return /* @__PURE__ */ jsx15(Suspense, {
486
492
  fallback: null,
@@ -6,7 +6,7 @@ import {
6
6
  Icon,
7
7
  IconButton,
8
8
  InputWithLabel
9
- } from "./chunk-7ZEBQCV7.mjs";
9
+ } from "./chunk-W7U5TSTK.mjs";
10
10
  import "./chunk-NIH5ZMPE.mjs";
11
11
 
12
12
  // src/rich-text-editor/rich-text-editor.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystallize/design-system",
3
- "version": "1.24.19",
3
+ "version": "1.24.20",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .c-collapsible-trigger {
6
- @apply flex gap-2 items-center;
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: 0.3s;
14
+ @apply transition duration-300;
15
+ }
16
+
17
+ .c-collapsible-tree .c-collapsible-arrow {
18
+ @apply -rotate-90 duration-200;
15
19
  }
16
20
 
17
21
  .c-collapsible-trigger[data-state='open'] .c-collapsible-arrow {
18
- transform: rotate(180deg);
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('c-collapsible-trigger', arrowPosition === 'right' ? 'arrow-right' : '', className)}
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} />}
@@ -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';
@@ -100,6 +101,7 @@ import { Topics } from './topics';
100
101
  import { Unpublish } from './unpublish';
101
102
  import { Usage } from './usage';
102
103
  import { UsageMeter } from './usage-meter';
104
+ import { User } from './user';
103
105
  import { UserCard } from './user-card';
104
106
  import { Users } from './users';
105
107
  import { Video } from './video';
@@ -155,6 +157,7 @@ export const Icon = {
155
157
  Mushroom,
156
158
  NailPolish,
157
159
  Order,
160
+ Organization,
158
161
  Paths,
159
162
  People,
160
163
  Percentage,
@@ -218,6 +221,7 @@ export const Icon = {
218
221
  Topics,
219
222
  UsageMeter,
220
223
  Unpublish,
224
+ User,
221
225
  Usage,
222
226
  UserCard,
223
227
  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,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';