@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/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  showError,
18
18
  showInfo,
19
19
  showWarning
20
- } from "./chunk-TMB3VHAI.mjs";
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-XIO7AL7L.mjs"));
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,
@@ -6,7 +6,7 @@ import {
6
6
  Icon,
7
7
  IconButton,
8
8
  InputWithLabel
9
- } from "./chunk-TMB3VHAI.mjs";
9
+ } from "./chunk-OD4GHCZ2.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.27",
3
+ "version": "1.24.28",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -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.MenuItemProps & {
5
+ export type DropdownMenuItemProps = DropdownMenuPrimitive.DropdownMenuItemProps & {
5
6
  children: React.ReactNode;
6
7
  isSelected?: boolean;
7
8
  };
8
9
 
9
- export function DropdownMenuItem({ children, className, isSelected, ...delegated }: DropdownMenuItemProps) {
10
- return (
11
- <DropdownMenuPrimitive.Item
12
- {...delegated}
13
- className={cx('c-dropdown-menu-item', isSelected ? 'selected' : '', className)}
14
- >
15
- {children}
16
- </DropdownMenuPrimitive.Item>
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';
@@ -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,