@crystallize/design-system 1.24.9 → 1.24.10
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 +6 -0
- package/dist/{chunk-LVKSZBWB.mjs → chunk-WVH6ON3P.mjs} +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -2
- package/dist/{rich-text-editor-ANU6NSC2.mjs → rich-text-editor-CXM3OOQ5.mjs} +1 -1
- package/package.json +1 -1
- package/src/dropdown-menu/dropdown-menu-root.tsx +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -205,6 +205,7 @@ function DropdownMenuRoot({
|
|
|
205
205
|
onOpenChange,
|
|
206
206
|
container,
|
|
207
207
|
modal,
|
|
208
|
+
open,
|
|
208
209
|
...delegated
|
|
209
210
|
}) {
|
|
210
211
|
const contentProps = {
|
|
@@ -217,6 +218,7 @@ function DropdownMenuRoot({
|
|
|
217
218
|
return /* @__PURE__ */ jsxs3(DropdownMenuPrimitive3.Root, {
|
|
218
219
|
onOpenChange,
|
|
219
220
|
modal,
|
|
221
|
+
open,
|
|
220
222
|
children: [
|
|
221
223
|
/* @__PURE__ */ jsx5(DropdownMenuPrimitive3.Trigger, {
|
|
222
224
|
disabled,
|
package/dist/index.d.ts
CHANGED
|
@@ -37,14 +37,14 @@ type DropdownMenuLabelProps = {
|
|
|
37
37
|
declare function DropdownMenuLabel({ children }: DropdownMenuLabelProps): JSX.Element;
|
|
38
38
|
|
|
39
39
|
type Container = HTMLElement | null | undefined;
|
|
40
|
-
type DropdownMenuRootProps = DropdownMenuPrimitive.MenuContentProps & Pick<DropdownMenuPrimitive.DropdownMenuProps, 'onOpenChange' | 'modal'> & {
|
|
40
|
+
type DropdownMenuRootProps = DropdownMenuPrimitive.MenuContentProps & Pick<DropdownMenuPrimitive.DropdownMenuProps, 'onOpenChange' | 'modal' | 'open'> & {
|
|
41
41
|
children: ReactNode;
|
|
42
42
|
content: ReactNode;
|
|
43
43
|
alignContent?: 'start' | 'center' | 'end';
|
|
44
44
|
disabled?: boolean;
|
|
45
45
|
container?: Container;
|
|
46
46
|
};
|
|
47
|
-
declare function DropdownMenuRoot({ children, content, alignContent, disabled, onOpenChange, container, modal, ...delegated }: DropdownMenuRootProps): JSX.Element;
|
|
47
|
+
declare function DropdownMenuRoot({ children, content, alignContent, disabled, onOpenChange, container, modal, open, ...delegated }: DropdownMenuRootProps): JSX.Element;
|
|
48
48
|
|
|
49
49
|
declare const DropdownMenu: {
|
|
50
50
|
Root: typeof DropdownMenuRoot;
|
package/dist/index.js
CHANGED
|
@@ -284,6 +284,7 @@ function DropdownMenuRoot({
|
|
|
284
284
|
onOpenChange,
|
|
285
285
|
container,
|
|
286
286
|
modal,
|
|
287
|
+
open,
|
|
287
288
|
...delegated
|
|
288
289
|
}) {
|
|
289
290
|
const contentProps = {
|
|
@@ -296,6 +297,7 @@ function DropdownMenuRoot({
|
|
|
296
297
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DropdownMenuPrimitive3.Root, {
|
|
297
298
|
onOpenChange,
|
|
298
299
|
modal,
|
|
300
|
+
open,
|
|
299
301
|
children: [
|
|
300
302
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive3.Trigger, {
|
|
301
303
|
disabled,
|
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-WVH6ON3P.mjs";
|
|
21
21
|
import "./chunk-NIH5ZMPE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/card/card.tsx
|
|
@@ -416,7 +416,7 @@ function Tag({
|
|
|
416
416
|
// src/rich-text-editor/index.tsx
|
|
417
417
|
import { lazy, Suspense } from "react";
|
|
418
418
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
419
|
-
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-
|
|
419
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-CXM3OOQ5.mjs"));
|
|
420
420
|
var RichTextEditor = (props) => {
|
|
421
421
|
return /* @__PURE__ */ jsx13(Suspense, {
|
|
422
422
|
fallback: null,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
4
4
|
export type Container = HTMLElement | null | undefined;
|
|
5
5
|
|
|
6
6
|
export type DropdownMenuRootProps = DropdownMenuPrimitive.MenuContentProps &
|
|
7
|
-
Pick<DropdownMenuPrimitive.DropdownMenuProps, 'onOpenChange' | 'modal'> & {
|
|
7
|
+
Pick<DropdownMenuPrimitive.DropdownMenuProps, 'onOpenChange' | 'modal' | 'open'> & {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
content: ReactNode;
|
|
10
10
|
alignContent?: 'start' | 'center' | 'end';
|
|
@@ -20,6 +20,7 @@ export function DropdownMenuRoot({
|
|
|
20
20
|
onOpenChange,
|
|
21
21
|
container,
|
|
22
22
|
modal,
|
|
23
|
+
open,
|
|
23
24
|
...delegated
|
|
24
25
|
}: DropdownMenuRootProps) {
|
|
25
26
|
const contentProps = {
|
|
@@ -31,7 +32,7 @@ export function DropdownMenuRoot({
|
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
return (
|
|
34
|
-
<DropdownMenuPrimitive.Root onOpenChange={onOpenChange} modal={modal}>
|
|
35
|
+
<DropdownMenuPrimitive.Root onOpenChange={onOpenChange} modal={modal} open={open}>
|
|
35
36
|
<DropdownMenuPrimitive.Trigger disabled={disabled} asChild className="c-dropdown-menu-trigger">
|
|
36
37
|
{children}
|
|
37
38
|
</DropdownMenuPrimitive.Trigger>
|