@crystallize/design-system 1.24.27 → 1.24.28
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 +7 -0
- package/dist/{chunk-TMB3VHAI.mjs → chunk-OD4GHCZ2.mjs} +1191 -1166
- package/dist/index.d.ts +11 -13
- package/dist/index.js +1889 -1857
- package/dist/index.mjs +2 -2
- package/dist/{rich-text-editor-XIO7AL7L.mjs → rich-text-editor-FMYEV5BL.mjs} +1 -1
- package/package.json +1 -1
- package/src/dropdown-menu/dropdown-menu-item.tsx +17 -11
- package/src/iconography/chevron.tsx +16 -0
- package/src/iconography/index.ts +2 -0
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-OD4GHCZ2.mjs";
|
|
21
21
|
import "./chunk-NIH5ZMPE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/card/card.tsx
|
|
@@ -486,7 +486,7 @@ function Tag({
|
|
|
486
486
|
// src/rich-text-editor/index.tsx
|
|
487
487
|
import { lazy, Suspense } from "react";
|
|
488
488
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
489
|
-
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-
|
|
489
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-FMYEV5BL.mjs"));
|
|
490
490
|
var RichTextEditor = (props) => {
|
|
491
491
|
return /* @__PURE__ */ jsx15(Suspense, {
|
|
492
492
|
fallback: null,
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { cx } from 'class-variance-authority';
|
|
2
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
4
|
|
|
4
|
-
type DropdownMenuItemProps = DropdownMenuPrimitive.
|
|
5
|
+
export type DropdownMenuItemProps = DropdownMenuPrimitive.DropdownMenuItemProps & {
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
isSelected?: boolean;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
export const DropdownMenuItem = forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Item>, DropdownMenuItemProps>(
|
|
11
|
+
({ children, className, isSelected, ...delegated }, ref) => {
|
|
12
|
+
return (
|
|
13
|
+
<DropdownMenuPrimitive.Item
|
|
14
|
+
ref={ref}
|
|
15
|
+
{...delegated}
|
|
16
|
+
className={cx('c-dropdown-menu-item', isSelected ? 'selected' : '', className)}
|
|
17
|
+
>
|
|
18
|
+
{children}
|
|
19
|
+
</DropdownMenuPrimitive.Item>
|
|
20
|
+
);
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
DropdownMenuItem.displayName = 'DropdownMenuItem';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef, type SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
type ChevronIconProps = SVGProps<SVGSVGElement>;
|
|
4
|
+
|
|
5
|
+
export const Chevron = forwardRef<SVGSVGElement, ChevronIconProps>((delegated, ref) => (
|
|
6
|
+
<svg width="22" height="22" fill="none" viewBox="0 0 22 22" ref={ref} {...delegated}>
|
|
7
|
+
<path
|
|
8
|
+
fill={delegated.fill ?? '#528693'}
|
|
9
|
+
fillRule="evenodd"
|
|
10
|
+
d="m9.763 7.464 3.182 3.182a.5.5 0 0 1 0 .707l-3.182 3.183a.5.5 0 1 1-.708-.708l2.796-2.795v-.066L9.055 8.172a.5.5 0 0 1 .708-.708"
|
|
11
|
+
clipRule="evenodd"
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
));
|
|
15
|
+
|
|
16
|
+
Chevron.displayName = 'Chevron';
|
package/src/iconography/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { Cart } from './cart';
|
|
|
13
13
|
import { Catalogue } from './catalogue';
|
|
14
14
|
import { Check } from './check';
|
|
15
15
|
import { CheckWithCircle } from './check-with-circle';
|
|
16
|
+
import { Chevron } from './chevron';
|
|
16
17
|
import { Choice } from './choice';
|
|
17
18
|
import { Chunk } from './chunk';
|
|
18
19
|
import { Clock } from './clock';
|
|
@@ -125,6 +126,7 @@ export const Icon = {
|
|
|
125
126
|
Catalogue,
|
|
126
127
|
Check,
|
|
127
128
|
CheckWithCircle,
|
|
129
|
+
Chevron,
|
|
128
130
|
Cloud,
|
|
129
131
|
Clock,
|
|
130
132
|
CloudWithKeyHole,
|