@crystallize/design-system 1.24.9 → 1.24.11
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 +12 -0
- package/dist/{chunk-LVKSZBWB.mjs → chunk-62NPPXVQ.mjs} +7 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -1
- package/dist/index.mjs +2 -2
- package/dist/{rich-text-editor-ANU6NSC2.mjs → rich-text-editor-VSCYKBXX.mjs} +1 -1
- package/package.json +2 -2
- package/src/dropdown-menu/dropdown-menu-root.tsx +3 -2
- package/src/tooltip/tooltip.tsx +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.24.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0b04fd3: Add price lists to the explorer. Currently, there is no way to fetch them from core next, so we do not show them initially. Added price lists picker component, which works similarly to the topics picker component. Adjust logic to check what is changed and apply changes on save.
|
|
8
|
+
|
|
9
|
+
## 1.24.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6d5ecee0: Extend the dropdown menu component to support the `open` prop.
|
|
14
|
+
|
|
3
15
|
## 1.24.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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,
|
|
@@ -6424,12 +6426,16 @@ function Tooltip({
|
|
|
6424
6426
|
side = "top",
|
|
6425
6427
|
align = "center",
|
|
6426
6428
|
defaultOpen = false,
|
|
6427
|
-
delayDuration = 800
|
|
6429
|
+
delayDuration = 800,
|
|
6430
|
+
onOpenChange,
|
|
6431
|
+
open
|
|
6428
6432
|
}) {
|
|
6429
6433
|
return /* @__PURE__ */ jsx120(RadixTooltip.Provider, {
|
|
6430
6434
|
delayDuration,
|
|
6431
6435
|
children: /* @__PURE__ */ jsxs107(RadixTooltip.Root, {
|
|
6432
6436
|
defaultOpen,
|
|
6437
|
+
onOpenChange,
|
|
6438
|
+
open,
|
|
6433
6439
|
children: [
|
|
6434
6440
|
/* @__PURE__ */ jsx120(RadixTooltip.Trigger, {
|
|
6435
6441
|
asChild: true,
|
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;
|
|
@@ -453,14 +453,14 @@ type TooltipStylesProps = VariantProps<typeof tooltipStyles>;
|
|
|
453
453
|
declare const tooltipStyles: (props?: ({
|
|
454
454
|
variant?: "info" | "error" | "warning" | "success" | null | undefined;
|
|
455
455
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
456
|
-
type TooltipProps = TooltipStylesProps & Partial<Pick<RadixTooltip.TooltipContentProps, 'side'>> & {
|
|
456
|
+
type TooltipProps = TooltipStylesProps & Partial<Pick<RadixTooltip.TooltipContentProps, 'side'>> & Pick<RadixTooltip.TooltipProps, 'open' | 'onOpenChange'> & {
|
|
457
457
|
children: ReactNode;
|
|
458
458
|
content: ReactNode;
|
|
459
459
|
delayDuration?: number;
|
|
460
460
|
align?: 'start' | 'center' | 'end';
|
|
461
461
|
defaultOpen?: boolean;
|
|
462
462
|
};
|
|
463
|
-
declare function Tooltip({ variant, children, content, side, align, defaultOpen, delayDuration, }: TooltipProps): JSX.Element;
|
|
463
|
+
declare function Tooltip({ variant, children, content, side, align, defaultOpen, delayDuration, onOpenChange, open, }: TooltipProps): JSX.Element;
|
|
464
464
|
|
|
465
465
|
type SwitchStylesProps = VariantProps<typeof switchStyles>;
|
|
466
466
|
declare const switchStyles: (props?: ({
|
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,
|
|
@@ -7400,12 +7402,16 @@ function Tooltip({
|
|
|
7400
7402
|
side = "top",
|
|
7401
7403
|
align = "center",
|
|
7402
7404
|
defaultOpen = false,
|
|
7403
|
-
delayDuration = 800
|
|
7405
|
+
delayDuration = 800,
|
|
7406
|
+
onOpenChange,
|
|
7407
|
+
open
|
|
7404
7408
|
}) {
|
|
7405
7409
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RadixTooltip.Provider, {
|
|
7406
7410
|
delayDuration,
|
|
7407
7411
|
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(RadixTooltip.Root, {
|
|
7408
7412
|
defaultOpen,
|
|
7413
|
+
onOpenChange,
|
|
7414
|
+
open,
|
|
7409
7415
|
children: [
|
|
7410
7416
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RadixTooltip.Trigger, {
|
|
7411
7417
|
asChild: true,
|
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-62NPPXVQ.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-VSCYKBXX.mjs"));
|
|
420
420
|
var RichTextEditor = (props) => {
|
|
421
421
|
return /* @__PURE__ */ jsx13(Suspense, {
|
|
422
422
|
fallback: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystallize/design-system",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.11",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@radix-ui/react-checkbox": "1.0.1",
|
|
41
41
|
"@radix-ui/react-collapsible": "1.0.0",
|
|
42
42
|
"@radix-ui/react-dialog": "1.0.2",
|
|
43
|
-
"@radix-ui/react-dropdown-menu": "2.0.
|
|
43
|
+
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
44
44
|
"@radix-ui/react-popover": "1.0.0",
|
|
45
45
|
"@radix-ui/react-progress": "^1.0.1",
|
|
46
46
|
"@radix-ui/react-radio-group": "1.1.0",
|
|
@@ -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>
|
package/src/tooltip/tooltip.tsx
CHANGED
|
@@ -21,7 +21,8 @@ const tooltipStyles = cva(
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
type TooltipProps = TooltipStylesProps &
|
|
24
|
-
Partial<Pick<RadixTooltip.TooltipContentProps, 'side'>> &
|
|
24
|
+
Partial<Pick<RadixTooltip.TooltipContentProps, 'side'>> &
|
|
25
|
+
Pick<RadixTooltip.TooltipProps, 'open' | 'onOpenChange'> & {
|
|
25
26
|
children: ReactNode;
|
|
26
27
|
content: ReactNode;
|
|
27
28
|
delayDuration?: number;
|
|
@@ -37,10 +38,12 @@ export function Tooltip({
|
|
|
37
38
|
align = 'center',
|
|
38
39
|
defaultOpen = false,
|
|
39
40
|
delayDuration = 800,
|
|
41
|
+
onOpenChange,
|
|
42
|
+
open,
|
|
40
43
|
}: TooltipProps) {
|
|
41
44
|
return (
|
|
42
45
|
<RadixTooltip.Provider delayDuration={delayDuration}>
|
|
43
|
-
<RadixTooltip.Root defaultOpen={defaultOpen}>
|
|
46
|
+
<RadixTooltip.Root defaultOpen={defaultOpen} onOpenChange={onOpenChange} open={open}>
|
|
44
47
|
<RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>
|
|
45
48
|
<RadixTooltip.Portal>
|
|
46
49
|
<RadixTooltip.Content align={align} sideOffset={5} side={side} className={tooltipStyles({ variant })}>
|