@crystallize/design-system 1.24.10 → 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 +6 -0
- package/dist/{chunk-WVH6ON3P.mjs → chunk-62NPPXVQ.mjs} +5 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -1
- package/dist/index.mjs +2 -2
- package/dist/{rich-text-editor-CXM3OOQ5.mjs → rich-text-editor-VSCYKBXX.mjs} +1 -1
- package/package.json +2 -2
- package/src/tooltip/tooltip.tsx +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 1.24.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -6426,12 +6426,16 @@ function Tooltip({
|
|
|
6426
6426
|
side = "top",
|
|
6427
6427
|
align = "center",
|
|
6428
6428
|
defaultOpen = false,
|
|
6429
|
-
delayDuration = 800
|
|
6429
|
+
delayDuration = 800,
|
|
6430
|
+
onOpenChange,
|
|
6431
|
+
open
|
|
6430
6432
|
}) {
|
|
6431
6433
|
return /* @__PURE__ */ jsx120(RadixTooltip.Provider, {
|
|
6432
6434
|
delayDuration,
|
|
6433
6435
|
children: /* @__PURE__ */ jsxs107(RadixTooltip.Root, {
|
|
6434
6436
|
defaultOpen,
|
|
6437
|
+
onOpenChange,
|
|
6438
|
+
open,
|
|
6435
6439
|
children: [
|
|
6436
6440
|
/* @__PURE__ */ jsx120(RadixTooltip.Trigger, {
|
|
6437
6441
|
asChild: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -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
|
@@ -7402,12 +7402,16 @@ function Tooltip({
|
|
|
7402
7402
|
side = "top",
|
|
7403
7403
|
align = "center",
|
|
7404
7404
|
defaultOpen = false,
|
|
7405
|
-
delayDuration = 800
|
|
7405
|
+
delayDuration = 800,
|
|
7406
|
+
onOpenChange,
|
|
7407
|
+
open
|
|
7406
7408
|
}) {
|
|
7407
7409
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RadixTooltip.Provider, {
|
|
7408
7410
|
delayDuration,
|
|
7409
7411
|
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(RadixTooltip.Root, {
|
|
7410
7412
|
defaultOpen,
|
|
7413
|
+
onOpenChange,
|
|
7414
|
+
open,
|
|
7411
7415
|
children: [
|
|
7412
7416
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(RadixTooltip.Trigger, {
|
|
7413
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",
|
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 })}>
|