@crystallize/design-system 1.24.31 → 1.24.33

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-L37CEYE5.mjs";
20
+ } from "./chunk-ZLRCCIEB.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-FXEPVDMG.mjs"));
489
+ var LazyRichTextEditor = lazy(() => import("./rich-text-editor-LN7M5QFI.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-L37CEYE5.mjs";
9
+ } from "./chunk-ZLRCCIEB.mjs";
10
10
  import "./chunk-NIH5ZMPE.mjs";
11
11
 
12
12
  // src/rich-text-editor/rich-text-editor.tsx
@@ -1412,12 +1412,17 @@
1412
1412
  .c-dropdown-menu-content {
1413
1413
  animation-duration: 0.4s;
1414
1414
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
1415
+ max-height: var(--radix-dropdown-menu-content-available-height);
1416
+ scrollbar-width: thin;
1415
1417
  z-index: 100;
1418
+ overflow: auto;
1416
1419
  border-radius: 0.25rem;
1417
1420
  border-width: 1px;
1418
1421
  border-style: solid;
1419
1422
  --tw-border-opacity: 1;
1420
1423
  border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity));
1424
+ --tw-bg-opacity: 1;
1425
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1421
1426
  --tw-shadow: 0 2px 4px rgba(130,138,144,0.15);
1422
1427
  --tw-shadow-colored: 0 2px 4px var(--tw-shadow-color);
1423
1428
  box-shadow:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystallize/design-system",
3
- "version": "1.24.31",
3
+ "version": "1.24.33",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -18,13 +18,14 @@ const buttonStyles = cva('c-action-menu', {
18
18
  },
19
19
  });
20
20
 
21
- type ActionMenuProps = ButtonStylesProps & {
22
- children: ReactNode;
23
- container?: Container;
24
- tabIndex?: number;
25
- disabled?: boolean;
26
- onOpenChange?: (open: boolean) => void;
27
- };
21
+ type ActionMenuProps = Omit<React.ComponentProps<typeof DropdownMenu.Root>, 'content'> &
22
+ ButtonStylesProps & {
23
+ children: ReactNode;
24
+ container?: Container;
25
+ tabIndex?: number;
26
+ disabled?: boolean;
27
+ onOpenChange?: (open: boolean) => void;
28
+ };
28
29
 
29
30
  export function ActionMenu({ children, tabIndex, size, ...delegated }: ActionMenuProps) {
30
31
  return (
@@ -3,8 +3,8 @@ import { cx } from 'class-variance-authority';
3
3
  import * as CollapsiblePrimitives from '@radix-ui/react-collapsible';
4
4
  import type { CollapsibleTriggerProps } from '@radix-ui/react-collapsible';
5
5
 
6
- import './collapsible.css';
7
6
  import { Icon } from '../iconography';
7
+ import './collapsible.css';
8
8
 
9
9
  type CollapsibleContentProps = ComponentProps<typeof CollapsiblePrimitives.Content>;
10
10
 
@@ -1,7 +1,9 @@
1
1
  .c-dropdown-menu-content {
2
2
  animation-duration: 0.4s;
3
3
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
4
- @apply z-[100] rounded border border-solid border-purple-200-700 shadow;
4
+ max-height: var(--radix-dropdown-menu-content-available-height);
5
+ scrollbar-width: thin;
6
+ @apply z-[100] overflow-auto rounded border border-solid border-purple-200-700 bg-white shadow;
5
7
  }
6
8
 
7
9
  .c-dropdown-menu-content[data-side='top'] {
@@ -59,6 +59,7 @@ import { Items } from './items';
59
59
  import { Key } from './key';
60
60
  import { Language } from './language';
61
61
  import { Lifebouy } from './lifebouy';
62
+ import { Limitations } from './limitations';
62
63
  import { Location } from './location';
63
64
  import { LockClosed } from './lock-closed';
64
65
  import { LockOpen } from './lock-open';
@@ -168,6 +169,7 @@ export const Icon = {
168
169
  Key,
169
170
  Language,
170
171
  Lifebouy,
172
+ Limitations,
171
173
  LockClosed,
172
174
  LockOpen,
173
175
  Multilingual,
@@ -0,0 +1,29 @@
1
+ import { forwardRef, SVGProps } from 'react';
2
+
3
+ import { fill, stroke } from './variables';
4
+
5
+ type LimitationsProps = SVGProps<SVGSVGElement>;
6
+
7
+ type LimitationsRef = SVGSVGElement;
8
+
9
+ export const Limitations = forwardRef<LimitationsRef, LimitationsProps>((delegated, ref) => {
10
+ return (
11
+ <svg ref={ref} width="23" height="23" viewBox="0 0 23 23" fill="none" {...delegated}>
12
+ <path
13
+ d="M19.388 11.607a7.44 7.44 0 0 1-2.187 5.28 7.444 7.444 0 0 1-5.281 2.188 7.444 7.444 0 0 1-5.28-2.188 7.444 7.444 0 0 1-2.188-5.28 7.444 7.444 0 0 1 2.188-5.28 7.44 7.44 0 0 1 5.28-2.188 7.44 7.44 0 0 1 5.28 2.187 7.44 7.44 0 0 1 2.188 5.28Z"
14
+ fill={fill}
15
+ />
16
+ <path
17
+ d="M3.852 11.606c0-1.087.213-2.145.634-3.14l.161-.356c.394-.819.92-1.561 1.568-2.209a8.04 8.04 0 0 1 2.208-1.567l.356-.161a8.02 8.02 0 0 1 3.141-.634v.6A7.443 7.443 0 0 0 6.64 6.327a7.445 7.445 0 0 0-2.187 5.28l.008.376c.037.75.186 1.482.442 2.183l.137.348c.376.89.915 1.688 1.6 2.374a7.447 7.447 0 0 0 4.904 2.178l.377.01a7.427 7.427 0 0 0 5.28-2.188 7.444 7.444 0 0 0 2.18-4.905l.008-.377a7.423 7.423 0 0 0-.587-2.907l-.148-.329a7.425 7.425 0 0 0-1.202-1.782l-.25-.262a7.44 7.44 0 0 0-2.373-1.6l-.001-.001.234-.552A8.04 8.04 0 0 1 17.625 5.9a8.041 8.041 0 0 1 1.729 2.565l.148.376c.323.884.486 1.813.486 2.764 0 .952-.163 1.882-.486 2.766l-.148.376a8.04 8.04 0 0 1-1.729 2.563 8.049 8.049 0 0 1-2.209 1.569l-.355.161a8.023 8.023 0 0 1-3.14.634c-.952 0-1.881-.164-2.765-.486l-.377-.148a8.033 8.033 0 0 1-2.28-1.459l-.284-.27a8.043 8.043 0 0 1-1.568-2.209l-.161-.355a8.025 8.025 0 0 1-.634-3.142ZM11.92 3.54a8.02 8.02 0 0 1 3.141.634l-.234.552a7.405 7.405 0 0 0-2.53-.578l-.377-.008v-.6Z"
18
+ fill={stroke}
19
+ />
20
+ <path d="M15.094 10.412H8.746a1.195 1.195 0 1 0 0 2.39h6.348a1.195 1.195 0 1 0 0-2.39Z" fill="#fff" />
21
+ <path
22
+ d="M6.952 11.607c0-.991.803-1.794 1.795-1.794v.6c-.66 0-1.196.534-1.196 1.194l.006.123c.057.562.505 1.009 1.068 1.066l.122.006h6.347c.619 0 1.127-.47 1.189-1.072l.006-.123c0-.618-.47-1.128-1.073-1.189l-.122-.006v-.6a1.795 1.795 0 0 1 0 3.59H8.747a1.795 1.795 0 0 1-1.795-1.795Zm8.142-1.794v.6H8.747v-.6h6.347Z"
23
+ fill={stroke}
24
+ />
25
+ </svg>
26
+ );
27
+ });
28
+
29
+ Limitations.displayName = 'LimitationsIcon';
@@ -2,8 +2,8 @@ import type { ReactNode } from 'react';
2
2
  import { cx } from 'class-variance-authority';
3
3
  import * as PopoverPrimitive from '@radix-ui/react-popover';
4
4
 
5
- import './popover.css';
6
5
  import { PopoverClose } from './popover-close';
6
+ import './popover.css';
7
7
 
8
8
  type PopoverProps = Pick<PopoverPrimitive.PopoverProps, 'open' | 'onOpenChange'> &
9
9
  Pick<PopoverPrimitive.PortalProps, 'container'> &