@crystallize/design-system 1.24.28 → 1.24.30
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-OD4GHCZ2.mjs → chunk-ITM4FKGW.mjs} +2 -7
- package/dist/index.css +0 -12
- package/dist/index.js +2 -7
- package/dist/index.mjs +2 -2
- package/dist/{rich-text-editor-FMYEV5BL.mjs → rich-text-editor-KSDXVDF5.mjs} +1 -1
- package/dist/{rich-text-editor-RUYX7OQE.css → rich-text-editor-KXLB6GMR.css} +0 -12
- package/package.json +25 -22
- package/src/colors/Colors.stories.tsx +2 -2
- package/src/tooltip/tooltip.css +0 -16
- package/src/tooltip/tooltip.tsx +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.24.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 492385e: Add sorting by desc for images and logical operator AND. Fix issue in Safari with border on drop image card. Remove tooltip arrow
|
|
8
|
+
|
|
9
|
+
## 1.24.29
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b8c9016: Upgrade storybook and vite to latest verions
|
|
14
|
+
|
|
3
15
|
## 1.24.28
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -7000,17 +7000,12 @@ function Tooltip({
|
|
|
7000
7000
|
children
|
|
7001
7001
|
}),
|
|
7002
7002
|
/* @__PURE__ */ jsx129(RadixTooltip.Portal, {
|
|
7003
|
-
children: /* @__PURE__ */
|
|
7003
|
+
children: /* @__PURE__ */ jsx129(RadixTooltip.Content, {
|
|
7004
7004
|
align,
|
|
7005
7005
|
sideOffset: 5,
|
|
7006
7006
|
side,
|
|
7007
7007
|
className: tooltipStyles({ variant }),
|
|
7008
|
-
children:
|
|
7009
|
-
/* @__PURE__ */ jsx129(RadixTooltip.Arrow, {
|
|
7010
|
-
className: "c-tooltip-arrow"
|
|
7011
|
-
}),
|
|
7012
|
-
content
|
|
7013
|
-
]
|
|
7008
|
+
children: content
|
|
7014
7009
|
})
|
|
7015
7010
|
})
|
|
7016
7011
|
]
|
package/dist/index.css
CHANGED
|
@@ -1499,9 +1499,6 @@
|
|
|
1499
1499
|
--tw-text-opacity: 1;
|
|
1500
1500
|
color: rgb(var(--c-color-green-600-300) / var(--tw-text-opacity));
|
|
1501
1501
|
}
|
|
1502
|
-
.c-tooltip-success .c-tooltip-arrow {
|
|
1503
|
-
fill: rgb(var(--c-color-cyan-100-800) / 1);
|
|
1504
|
-
}
|
|
1505
1502
|
.c-tooltip-error {
|
|
1506
1503
|
border-width: 1px;
|
|
1507
1504
|
border-style: solid;
|
|
@@ -1512,9 +1509,6 @@
|
|
|
1512
1509
|
--tw-text-opacity: 1;
|
|
1513
1510
|
color: rgb(var(--c-color-pink-700-200) / var(--tw-text-opacity));
|
|
1514
1511
|
}
|
|
1515
|
-
.c-tooltip-error .c-tooltip-arrow {
|
|
1516
|
-
fill: rgb(var(--c-color-pink-100-800) / 1);
|
|
1517
|
-
}
|
|
1518
1512
|
.c-tooltip-warning {
|
|
1519
1513
|
border-width: 1px;
|
|
1520
1514
|
border-style: solid;
|
|
@@ -1525,9 +1519,6 @@
|
|
|
1525
1519
|
--tw-text-opacity: 1;
|
|
1526
1520
|
color: rgb(var(--c-color-green-600-300) / var(--tw-text-opacity));
|
|
1527
1521
|
}
|
|
1528
|
-
.c-tooltip-warning .c-tooltip-arrow {
|
|
1529
|
-
fill: rgb(var(--c-color-orange-100-800) / 1);
|
|
1530
|
-
}
|
|
1531
1522
|
.c-tooltip-info {
|
|
1532
1523
|
border-width: 1px;
|
|
1533
1524
|
border-style: solid;
|
|
@@ -1538,9 +1529,6 @@
|
|
|
1538
1529
|
--tw-text-opacity: 1;
|
|
1539
1530
|
color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
|
|
1540
1531
|
}
|
|
1541
|
-
.c-tooltip-info .c-tooltip-arrow {
|
|
1542
|
-
fill: #fff;
|
|
1543
|
-
}
|
|
1544
1532
|
|
|
1545
1533
|
/* src/popover/popover.css */
|
|
1546
1534
|
.c-popover-content {
|
package/dist/index.js
CHANGED
|
@@ -8039,17 +8039,12 @@ function Tooltip({
|
|
|
8039
8039
|
children
|
|
8040
8040
|
}),
|
|
8041
8041
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(RadixTooltip.Portal, {
|
|
8042
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime134.
|
|
8042
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(RadixTooltip.Content, {
|
|
8043
8043
|
align,
|
|
8044
8044
|
sideOffset: 5,
|
|
8045
8045
|
side,
|
|
8046
8046
|
className: tooltipStyles({ variant }),
|
|
8047
|
-
children:
|
|
8048
|
-
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(RadixTooltip.Arrow, {
|
|
8049
|
-
className: "c-tooltip-arrow"
|
|
8050
|
-
}),
|
|
8051
|
-
content
|
|
8052
|
-
]
|
|
8047
|
+
children: content
|
|
8053
8048
|
})
|
|
8054
8049
|
})
|
|
8055
8050
|
]
|
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-ITM4FKGW.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-
|
|
489
|
+
var LazyRichTextEditor = lazy(() => import("./rich-text-editor-KSDXVDF5.mjs"));
|
|
490
490
|
var RichTextEditor = (props) => {
|
|
491
491
|
return /* @__PURE__ */ jsx15(Suspense, {
|
|
492
492
|
fallback: null,
|
|
@@ -1235,9 +1235,6 @@
|
|
|
1235
1235
|
--tw-text-opacity: 1;
|
|
1236
1236
|
color: rgb(var(--c-color-green-600-300) / var(--tw-text-opacity));
|
|
1237
1237
|
}
|
|
1238
|
-
.c-tooltip-success .c-tooltip-arrow {
|
|
1239
|
-
fill: rgb(var(--c-color-cyan-100-800) / 1);
|
|
1240
|
-
}
|
|
1241
1238
|
.c-tooltip-error {
|
|
1242
1239
|
border-width: 1px;
|
|
1243
1240
|
border-style: solid;
|
|
@@ -1248,9 +1245,6 @@
|
|
|
1248
1245
|
--tw-text-opacity: 1;
|
|
1249
1246
|
color: rgb(var(--c-color-pink-700-200) / var(--tw-text-opacity));
|
|
1250
1247
|
}
|
|
1251
|
-
.c-tooltip-error .c-tooltip-arrow {
|
|
1252
|
-
fill: rgb(var(--c-color-pink-100-800) / 1);
|
|
1253
|
-
}
|
|
1254
1248
|
.c-tooltip-warning {
|
|
1255
1249
|
border-width: 1px;
|
|
1256
1250
|
border-style: solid;
|
|
@@ -1261,9 +1255,6 @@
|
|
|
1261
1255
|
--tw-text-opacity: 1;
|
|
1262
1256
|
color: rgb(var(--c-color-green-600-300) / var(--tw-text-opacity));
|
|
1263
1257
|
}
|
|
1264
|
-
.c-tooltip-warning .c-tooltip-arrow {
|
|
1265
|
-
fill: rgb(var(--c-color-orange-100-800) / 1);
|
|
1266
|
-
}
|
|
1267
1258
|
.c-tooltip-info {
|
|
1268
1259
|
border-width: 1px;
|
|
1269
1260
|
border-style: solid;
|
|
@@ -1274,9 +1265,6 @@
|
|
|
1274
1265
|
--tw-text-opacity: 1;
|
|
1275
1266
|
color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
|
|
1276
1267
|
}
|
|
1277
|
-
.c-tooltip-info .c-tooltip-arrow {
|
|
1278
|
-
fill: #fff;
|
|
1279
|
-
}
|
|
1280
1268
|
|
|
1281
1269
|
/* src/rich-text-editor/plugins/FloatingTextFormatToolbarPlugin/index.css */
|
|
1282
1270
|
.c-rte-floating-text-format-tb-plugin {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystallize/design-system",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.30",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"require": "./dist/index.js",
|
|
13
|
-
"import": "./dist/index.mjs"
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
14
|
+
"import": "./dist/index.mjs"
|
|
15
15
|
},
|
|
16
16
|
"./tailwind-config": "./tailwind.config.cjs",
|
|
17
17
|
"./styles.css": {
|
|
@@ -62,19 +62,23 @@
|
|
|
62
62
|
"@faker-js/faker": "7.6.0",
|
|
63
63
|
"@ianvs/prettier-plugin-sort-imports": "^3.7.1",
|
|
64
64
|
"@mdx-js/react": "^2.2.1",
|
|
65
|
-
"@storybook/addon-actions": "
|
|
66
|
-
"@storybook/addon-backgrounds": "
|
|
67
|
-
"@storybook/addon-
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/addon-
|
|
72
|
-
"@storybook/addon-
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
65
|
+
"@storybook/addon-actions": "8.6.11",
|
|
66
|
+
"@storybook/addon-backgrounds": "8.6.11",
|
|
67
|
+
"@storybook/addon-designs": "8.2.1",
|
|
68
|
+
"@storybook/addon-docs": "8.6.11",
|
|
69
|
+
"@storybook/addon-essentials": "8.6.11",
|
|
70
|
+
"@storybook/addon-highlight": "8.6.11",
|
|
71
|
+
"@storybook/addon-interactions": "8.6.11",
|
|
72
|
+
"@storybook/addon-links": "8.6.11",
|
|
73
|
+
"@storybook/addon-measure": "8.6.11",
|
|
74
|
+
"@storybook/addon-outline": "8.6.11",
|
|
75
|
+
"@storybook/client-logger": "8.6.11",
|
|
76
|
+
"@storybook/manager-api": "8.6.11",
|
|
77
|
+
"@storybook/preview-api": "8.6.11",
|
|
78
|
+
"@storybook/react": "8.6.11",
|
|
79
|
+
"@storybook/react-vite": "8.6.11",
|
|
80
|
+
"@storybook/theming": "8.6.11",
|
|
81
|
+
"@testing-library/dom": "10.4.0",
|
|
78
82
|
"@testing-library/jest-dom": "6.6.3",
|
|
79
83
|
"@testing-library/react": "16.1.0",
|
|
80
84
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -87,13 +91,12 @@
|
|
|
87
91
|
"postcss": "^8.4.21",
|
|
88
92
|
"postcss-import": "^15.1.0",
|
|
89
93
|
"prettier": "2.8.4",
|
|
90
|
-
"storybook": "
|
|
91
|
-
"storybook-
|
|
92
|
-
"storybook-dark-mode": "^2.0.5",
|
|
94
|
+
"storybook": "8.6.11",
|
|
95
|
+
"storybook-dark-mode": "4.0.2",
|
|
93
96
|
"tailwindcss": "^3.3.5",
|
|
94
97
|
"tsup": "^6.5.0",
|
|
95
98
|
"typescript": "4.9.4",
|
|
96
|
-
"vite": "
|
|
99
|
+
"vite": "6.2.4",
|
|
97
100
|
"vitest": "2.1.8",
|
|
98
101
|
"tsconfig": "0.0.0"
|
|
99
102
|
},
|
|
@@ -117,13 +120,13 @@
|
|
|
117
120
|
"tailwind.config.cjs"
|
|
118
121
|
],
|
|
119
122
|
"scripts": {
|
|
120
|
-
"build:storybook": "storybook build
|
|
123
|
+
"build:storybook": "storybook build public",
|
|
121
124
|
"build:tw": "tailwindcss -c ./tailwind.config.cjs -i src/index.css -o dist/index.css",
|
|
122
125
|
"build:tsup": "tsup src/index.ts --format esm,cjs --dts",
|
|
123
126
|
"build": "pnpm build:tw && pnpm build:tsup",
|
|
124
127
|
"dev:tw": "tailwindcss --content ./src/**/*.tsx,!./src/**/*.stories.tsx -c ./tailwind.config.cjs -i src/index.css -o dist/index.css --watch & tsup src/index.ts --format esm --dts --watch",
|
|
125
128
|
"dev:tsup": "tsup src/index.ts --format esm --dts --watch",
|
|
126
|
-
"dev:storybook": "storybook dev -p 6006 --no-open
|
|
129
|
+
"dev:storybook": "storybook dev -p 6006 --no-open public",
|
|
127
130
|
"dev": "concurrently \"npm:dev:*\"",
|
|
128
131
|
"test": "vitest run src/",
|
|
129
132
|
"test:watch": "vitest src/"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useDarkMode } from 'storybook-dark-mode';
|
|
2
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
|
|
3
|
+
import { useDarkMode } from '../../.storybook/use-dark-mode';
|
|
4
4
|
import colorDefaults from './color-defaults.json';
|
|
5
5
|
import colorPairing from './color-pairing.json';
|
|
6
6
|
import rawColors from './colors.json';
|
|
@@ -65,7 +65,7 @@ export default meta;
|
|
|
65
65
|
function ColorItem({ colorName, color }: { colorName: ColorName; color: Color }) {
|
|
66
66
|
const shades = Object.keys(color);
|
|
67
67
|
|
|
68
|
-
const isDark = useDarkMode();
|
|
68
|
+
const [isDark] = useDarkMode();
|
|
69
69
|
|
|
70
70
|
// @ts-expect-error
|
|
71
71
|
const applicationsForMode = !isDark ? applications : applications.map(a => ({ ...a, shade: colorPairing[a.shade] }));
|
package/src/tooltip/tooltip.css
CHANGED
|
@@ -5,32 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
.c-tooltip-success {
|
|
7
7
|
@apply border border-solid border-cyan-300-600 bg-cyan-100-800 text-green-600-300;
|
|
8
|
-
|
|
9
|
-
.c-tooltip-arrow {
|
|
10
|
-
@apply fill-cyan-100-800;
|
|
11
|
-
}
|
|
12
8
|
}
|
|
13
9
|
|
|
14
10
|
.c-tooltip-error {
|
|
15
11
|
@apply border border-solid border-pink-200-700 bg-pink-100-800 text-pink-700-200;
|
|
16
|
-
|
|
17
|
-
.c-tooltip-arrow {
|
|
18
|
-
@apply fill-pink-100-800;
|
|
19
|
-
}
|
|
20
12
|
}
|
|
21
13
|
|
|
22
14
|
.c-tooltip-warning {
|
|
23
15
|
@apply border border-solid border-orange-200-700 bg-orange-100-800 text-green-600-300;
|
|
24
|
-
|
|
25
|
-
.c-tooltip-arrow {
|
|
26
|
-
@apply fill-orange-100-800;
|
|
27
|
-
}
|
|
28
16
|
}
|
|
29
17
|
|
|
30
18
|
.c-tooltip-info {
|
|
31
19
|
@apply border border-solid border-purple-200-700 bg-white text-gray-500-400;
|
|
32
|
-
|
|
33
|
-
.c-tooltip-arrow {
|
|
34
|
-
@apply fill-white;
|
|
35
|
-
}
|
|
36
20
|
}
|
package/src/tooltip/tooltip.tsx
CHANGED
|
@@ -47,7 +47,6 @@ export function Tooltip({
|
|
|
47
47
|
<RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>
|
|
48
48
|
<RadixTooltip.Portal>
|
|
49
49
|
<RadixTooltip.Content align={align} sideOffset={5} side={side} className={tooltipStyles({ variant })}>
|
|
50
|
-
<RadixTooltip.Arrow className="c-tooltip-arrow" />
|
|
51
50
|
{content}
|
|
52
51
|
</RadixTooltip.Content>
|
|
53
52
|
</RadixTooltip.Portal>
|