@visio-io/design-system 1.7.0 → 1.8.1
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/README.md +242 -0
- package/dist/index.cjs.js +77 -77
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8909 -8886
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/CameraCard/CameraCard.stories.d.ts +3 -0
- package/dist/types/components/VideoPlayer/components/ControlMenu.d.ts +4 -1
- package/dist/types/components/VideoPlayer/components/Timestamp.d.ts +3 -0
- package/dist/types/components/VideoPlayer/icons/Seek.d.ts +6 -0
- package/dist/types/components/VideoPlayer/icons/SeekForward.d.ts +6 -0
- package/package.json +84 -85
- package/src/styles/tokens/colors.scss +53 -53
- package/src/styles/tokens/colors.ts +53 -53
- package/src/styles/tokens/css-variables.scss +190 -190
- package/src/styles/tokens/index.ts +4 -4
- package/src/styles/tokens/radii.ts +7 -7
- package/src/styles/tokens/spacing.ts +10 -10
- package/src/styles/tokens/typography.ts +22 -22
package/package.json
CHANGED
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visio-io/design-system",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Visio Design System",
|
|
5
|
-
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/index.es.js",
|
|
7
|
-
"types": "dist/types/index.d.ts",
|
|
8
|
-
"style": "dist/style.css",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/types/index.d.ts",
|
|
12
|
-
"import": "./dist/index.es.js",
|
|
13
|
-
"require": "./dist/index.cjs.js",
|
|
14
|
-
"default": "./dist/index.es.js"
|
|
15
|
-
},
|
|
16
|
-
"./style.css": "./dist/style.css",
|
|
17
|
-
"./tokens": "./src/styles/tokens/index.ts"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist",
|
|
21
|
-
"src/styles/tokens"
|
|
22
|
-
],
|
|
23
|
-
"sideEffects": [
|
|
24
|
-
"**/*.scss",
|
|
25
|
-
"**/*.css"
|
|
26
|
-
],
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"react": "^
|
|
54
|
-
"react-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@mui/
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@visio-io/design-system",
|
|
3
|
+
"version": "1.8.1",
|
|
4
|
+
"description": "Visio Design System",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"style": "dist/style.css",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"import": "./dist/index.es.js",
|
|
13
|
+
"require": "./dist/index.cjs.js",
|
|
14
|
+
"default": "./dist/index.es.js"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./dist/style.css",
|
|
17
|
+
"./tokens": "./src/styles/tokens/index.ts"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"src/styles/tokens"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.scss",
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"registry": "https://registry.npmjs.org/",
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/visio-io/visio-design-system.git"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@emotion/react": "^11.0.0",
|
|
37
|
+
"@emotion/styled": "^11.0.0",
|
|
38
|
+
"@mui/x-date-pickers": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
39
|
+
"@mui/material": "^7.3.6",
|
|
40
|
+
"@vis.gl/react-google-maps": "^1.0.0",
|
|
41
|
+
"dayjs": "^1.11.0",
|
|
42
|
+
"jotai": "^2.16.2",
|
|
43
|
+
"react": "^19.0.0",
|
|
44
|
+
"react-dom": "^19.0.0",
|
|
45
|
+
"react-hook-form": "^7.54.0",
|
|
46
|
+
"zod": "^3.24.1"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@changesets/cli": "^2.27.1",
|
|
50
|
+
"@hookform/resolvers": "^3.9.1",
|
|
51
|
+
"@storybook/addon-a11y": "^8.6.15",
|
|
52
|
+
"@storybook/addon-essentials": "^8.6.15",
|
|
53
|
+
"@storybook/react": "^8.6.15",
|
|
54
|
+
"@storybook/react-vite": "^8.6.15",
|
|
55
|
+
"@types/google.maps": "^3.58.1",
|
|
56
|
+
"@types/node": "^25.0.9",
|
|
57
|
+
"@types/react": "^19.0.0",
|
|
58
|
+
"@types/react-dom": "^19.0.0",
|
|
59
|
+
"@types/supercluster": "^7.1.3",
|
|
60
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
61
|
+
"@mui/x-date-pickers": "^8.26.0",
|
|
62
|
+
"dayjs": "^1.11.19",
|
|
63
|
+
"jotai": "^2.16.2",
|
|
64
|
+
"sass": "^1.77.0",
|
|
65
|
+
"storybook": "^8.6.15",
|
|
66
|
+
"typescript": "^5.6.0",
|
|
67
|
+
"vite": "^5.4.0",
|
|
68
|
+
"vite-plugin-svgr": "^4.5.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@mui/icons-material": "^7.3.7",
|
|
72
|
+
"framer-motion": "^12.29.2",
|
|
73
|
+
"supercluster": "^8.0.1"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"dev": "storybook dev -p 6006",
|
|
77
|
+
"start": "storybook dev -p 6066 --host 0.0.0.0 --no-open",
|
|
78
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
79
|
+
"build-storybook": "storybook build",
|
|
80
|
+
"storybook": "storybook dev -p 6006",
|
|
81
|
+
"type-check": "tsc --noEmit",
|
|
82
|
+
"release": "pnpm build && changeset publish"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
$visio-light-colors: (
|
|
2
|
-
primary: #006399,
|
|
3
|
-
on-primary: #ffffff,
|
|
4
|
-
primary-container: #cfe5ff,
|
|
5
|
-
on-primary-container: #001d33,
|
|
6
|
-
secondary: #526070,
|
|
7
|
-
on-secondary: #ffffff,
|
|
8
|
-
secondary-container: #d5e4f7,
|
|
9
|
-
on-secondary-container: #0f1d2a,
|
|
10
|
-
tertiary: #68587a,
|
|
11
|
-
on-tertiary: #ffffff,
|
|
12
|
-
tertiary-container: #eedcff,
|
|
13
|
-
on-tertiary-container: #231533,
|
|
14
|
-
error: #ba1a1a,
|
|
15
|
-
on-error: #ffffff,
|
|
16
|
-
error-container: #ffdad6,
|
|
17
|
-
on-error-container: #410002,
|
|
18
|
-
surface: #fdfcff,
|
|
19
|
-
on-surface: #1a1c1e,
|
|
20
|
-
surface-variant: #dee3eb,
|
|
21
|
-
on-surface-variant: #42474e,
|
|
22
|
-
outline: #72787e,
|
|
23
|
-
inverse-surface: #2f3033,
|
|
24
|
-
inverse-on-surface: #f1f0f4,
|
|
25
|
-
inverse-primary: #98cbff,
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
$visio-dark-colors: (
|
|
29
|
-
primary: #98cbff,
|
|
30
|
-
on-primary: #003354,
|
|
31
|
-
primary-container: #004a78,
|
|
32
|
-
on-primary-container: #cfe5ff,
|
|
33
|
-
secondary: #b9c8da,
|
|
34
|
-
on-secondary: #233241,
|
|
35
|
-
secondary-container: #3a4a58,
|
|
36
|
-
on-secondary-container: #d5e4f7,
|
|
37
|
-
tertiary: #d3bee5,
|
|
38
|
-
on-tertiary: #382a4a,
|
|
39
|
-
tertiary-container: #4f4062,
|
|
40
|
-
on-tertiary-container: #eedcff,
|
|
41
|
-
error: #ffb4ab,
|
|
42
|
-
on-error: #690005,
|
|
43
|
-
error-container: #93000a,
|
|
44
|
-
on-error-container: #ffdad6,
|
|
45
|
-
surface: #1a1c1e,
|
|
46
|
-
on-surface: #e2e2e6,
|
|
47
|
-
surface-variant: #42474e,
|
|
48
|
-
on-surface-variant: #c2c7cf,
|
|
49
|
-
outline: #8c9198,
|
|
50
|
-
inverse-surface: #e2e2e6,
|
|
51
|
-
inverse-on-surface: #2f3033,
|
|
52
|
-
inverse-primary: #006399,
|
|
53
|
-
);
|
|
1
|
+
$visio-light-colors: (
|
|
2
|
+
primary: #006399,
|
|
3
|
+
on-primary: #ffffff,
|
|
4
|
+
primary-container: #cfe5ff,
|
|
5
|
+
on-primary-container: #001d33,
|
|
6
|
+
secondary: #526070,
|
|
7
|
+
on-secondary: #ffffff,
|
|
8
|
+
secondary-container: #d5e4f7,
|
|
9
|
+
on-secondary-container: #0f1d2a,
|
|
10
|
+
tertiary: #68587a,
|
|
11
|
+
on-tertiary: #ffffff,
|
|
12
|
+
tertiary-container: #eedcff,
|
|
13
|
+
on-tertiary-container: #231533,
|
|
14
|
+
error: #ba1a1a,
|
|
15
|
+
on-error: #ffffff,
|
|
16
|
+
error-container: #ffdad6,
|
|
17
|
+
on-error-container: #410002,
|
|
18
|
+
surface: #fdfcff,
|
|
19
|
+
on-surface: #1a1c1e,
|
|
20
|
+
surface-variant: #dee3eb,
|
|
21
|
+
on-surface-variant: #42474e,
|
|
22
|
+
outline: #72787e,
|
|
23
|
+
inverse-surface: #2f3033,
|
|
24
|
+
inverse-on-surface: #f1f0f4,
|
|
25
|
+
inverse-primary: #98cbff,
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$visio-dark-colors: (
|
|
29
|
+
primary: #98cbff,
|
|
30
|
+
on-primary: #003354,
|
|
31
|
+
primary-container: #004a78,
|
|
32
|
+
on-primary-container: #cfe5ff,
|
|
33
|
+
secondary: #b9c8da,
|
|
34
|
+
on-secondary: #233241,
|
|
35
|
+
secondary-container: #3a4a58,
|
|
36
|
+
on-secondary-container: #d5e4f7,
|
|
37
|
+
tertiary: #d3bee5,
|
|
38
|
+
on-tertiary: #382a4a,
|
|
39
|
+
tertiary-container: #4f4062,
|
|
40
|
+
on-tertiary-container: #eedcff,
|
|
41
|
+
error: #ffb4ab,
|
|
42
|
+
on-error: #690005,
|
|
43
|
+
error-container: #93000a,
|
|
44
|
+
on-error-container: #ffdad6,
|
|
45
|
+
surface: #1a1c1e,
|
|
46
|
+
on-surface: #e2e2e6,
|
|
47
|
+
surface-variant: #42474e,
|
|
48
|
+
on-surface-variant: #c2c7cf,
|
|
49
|
+
outline: #8c9198,
|
|
50
|
+
inverse-surface: #e2e2e6,
|
|
51
|
+
inverse-on-surface: #2f3033,
|
|
52
|
+
inverse-primary: #006399,
|
|
53
|
+
);
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export const lightColors = {
|
|
2
|
-
primary: "#006399",
|
|
3
|
-
onPrimary: "#ffffff",
|
|
4
|
-
primaryContainer: "#cfe5ff",
|
|
5
|
-
onPrimaryContainer: "#001d33",
|
|
6
|
-
secondary: "#526070",
|
|
7
|
-
onSecondary: "#ffffff",
|
|
8
|
-
secondaryContainer: "#d5e4f7",
|
|
9
|
-
onSecondaryContainer: "#0f1d2a",
|
|
10
|
-
tertiary: "#68587a",
|
|
11
|
-
onTertiary: "#ffffff",
|
|
12
|
-
tertiaryContainer: "#eedcff",
|
|
13
|
-
onTertiaryContainer: "#231533",
|
|
14
|
-
error: "#ba1a1a",
|
|
15
|
-
onError: "#ffffff",
|
|
16
|
-
errorContainer: "#ffdad6",
|
|
17
|
-
onErrorContainer: "#410002",
|
|
18
|
-
surface: "#fdfcff",
|
|
19
|
-
onSurface: "#1a1c1e",
|
|
20
|
-
surfaceVariant: "#dee3eb",
|
|
21
|
-
onSurfaceVariant: "#42474e",
|
|
22
|
-
outline: "#72787e",
|
|
23
|
-
inverseSurface: "#2f3033",
|
|
24
|
-
inverseOnSurface: "#f1f0f4",
|
|
25
|
-
inversePrimary: "#98cbff",
|
|
26
|
-
} as const;
|
|
27
|
-
|
|
28
|
-
export const darkColors = {
|
|
29
|
-
primary: "#98cbff",
|
|
30
|
-
onPrimary: "#003354",
|
|
31
|
-
primaryContainer: "#004a78",
|
|
32
|
-
onPrimaryContainer: "#cfe5ff",
|
|
33
|
-
secondary: "#b9c8da",
|
|
34
|
-
onSecondary: "#233241",
|
|
35
|
-
secondaryContainer: "#3a4a58",
|
|
36
|
-
onSecondaryContainer: "#d5e4f7",
|
|
37
|
-
tertiary: "#d3bee5",
|
|
38
|
-
onTertiary: "#382a4a",
|
|
39
|
-
tertiaryContainer: "#4f4062",
|
|
40
|
-
onTertiaryContainer: "#eedcff",
|
|
41
|
-
error: "#ffb4ab",
|
|
42
|
-
onError: "#690005",
|
|
43
|
-
errorContainer: "#93000a",
|
|
44
|
-
onErrorContainer: "#ffdad6",
|
|
45
|
-
surface: "#1a1c1e",
|
|
46
|
-
onSurface: "#e2e2e6",
|
|
47
|
-
surfaceVariant: "#42474e",
|
|
48
|
-
onSurfaceVariant: "#c2c7cf",
|
|
49
|
-
outline: "#8c9198",
|
|
50
|
-
inverseSurface: "#e2e2e6",
|
|
51
|
-
inverseOnSurface: "#2f3033",
|
|
52
|
-
inversePrimary: "#006399",
|
|
53
|
-
} as const;
|
|
1
|
+
export const lightColors = {
|
|
2
|
+
primary: "#006399",
|
|
3
|
+
onPrimary: "#ffffff",
|
|
4
|
+
primaryContainer: "#cfe5ff",
|
|
5
|
+
onPrimaryContainer: "#001d33",
|
|
6
|
+
secondary: "#526070",
|
|
7
|
+
onSecondary: "#ffffff",
|
|
8
|
+
secondaryContainer: "#d5e4f7",
|
|
9
|
+
onSecondaryContainer: "#0f1d2a",
|
|
10
|
+
tertiary: "#68587a",
|
|
11
|
+
onTertiary: "#ffffff",
|
|
12
|
+
tertiaryContainer: "#eedcff",
|
|
13
|
+
onTertiaryContainer: "#231533",
|
|
14
|
+
error: "#ba1a1a",
|
|
15
|
+
onError: "#ffffff",
|
|
16
|
+
errorContainer: "#ffdad6",
|
|
17
|
+
onErrorContainer: "#410002",
|
|
18
|
+
surface: "#fdfcff",
|
|
19
|
+
onSurface: "#1a1c1e",
|
|
20
|
+
surfaceVariant: "#dee3eb",
|
|
21
|
+
onSurfaceVariant: "#42474e",
|
|
22
|
+
outline: "#72787e",
|
|
23
|
+
inverseSurface: "#2f3033",
|
|
24
|
+
inverseOnSurface: "#f1f0f4",
|
|
25
|
+
inversePrimary: "#98cbff",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export const darkColors = {
|
|
29
|
+
primary: "#98cbff",
|
|
30
|
+
onPrimary: "#003354",
|
|
31
|
+
primaryContainer: "#004a78",
|
|
32
|
+
onPrimaryContainer: "#cfe5ff",
|
|
33
|
+
secondary: "#b9c8da",
|
|
34
|
+
onSecondary: "#233241",
|
|
35
|
+
secondaryContainer: "#3a4a58",
|
|
36
|
+
onSecondaryContainer: "#d5e4f7",
|
|
37
|
+
tertiary: "#d3bee5",
|
|
38
|
+
onTertiary: "#382a4a",
|
|
39
|
+
tertiaryContainer: "#4f4062",
|
|
40
|
+
onTertiaryContainer: "#eedcff",
|
|
41
|
+
error: "#ffb4ab",
|
|
42
|
+
onError: "#690005",
|
|
43
|
+
errorContainer: "#93000a",
|
|
44
|
+
onErrorContainer: "#ffdad6",
|
|
45
|
+
surface: "#1a1c1e",
|
|
46
|
+
onSurface: "#e2e2e6",
|
|
47
|
+
surfaceVariant: "#42474e",
|
|
48
|
+
onSurfaceVariant: "#c2c7cf",
|
|
49
|
+
outline: "#8c9198",
|
|
50
|
+
inverseSurface: "#e2e2e6",
|
|
51
|
+
inverseOnSurface: "#2f3033",
|
|
52
|
+
inversePrimary: "#006399",
|
|
53
|
+
} as const;
|