@voxel51/voodo 0.1.0 → 0.2.0-dev-prerelease-publishing.0
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/NOTICE +37 -0
- package/README.md +45 -1
- package/dist/components/ActivityToast/ActivityToast.d.ts +5 -4
- package/dist/components/ActivityToast/ActivityToast.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +6 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/RichCard.d.ts +4 -4
- package/dist/components/Card/RichCard.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Clickable/Clickable.d.ts +1 -1
- package/dist/components/Datepicker/DatepickerIconButton.d.ts +3 -3
- package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
- package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +2 -2
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/Icons/DragHandle.d.ts +1 -1
- package/dist/components/Icons/DragHandle.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +30 -0
- package/dist/components/Icons/IconBase.d.ts.map +1 -0
- package/dist/components/Icons/IconWrapper.d.ts +5 -5
- package/dist/components/Icons/IconWrapper.d.ts.map +1 -1
- package/dist/components/Icons/icons.d.ts +312 -0
- package/dist/components/Icons/icons.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +2 -1
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +4 -4
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/InputIcon.d.ts +4 -3
- package/dist/components/Input/InputIcon.d.ts.map +1 -1
- package/dist/components/ListItem/ListItem.d.ts +1 -1
- package/dist/components/Menu/MenuCheckItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuIconTextItem.d.ts +3 -4
- package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSectionTitle.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +3 -2
- package/dist/components/Pill/Pill.d.ts.map +1 -1
- package/dist/components/RichButton/RichButton.d.ts +3 -3
- package/dist/components/RichButton/RichButton.d.ts.map +1 -1
- package/dist/components/RichList/RichList.d.ts +3 -3
- package/dist/components/Select/Option.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -2
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +5 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Tree/TreeItem.d.ts.map +1 -1
- package/dist/components/Tree/TreeSearchInput.d.ts.map +1 -1
- package/dist/components/Tree/TreeSelectTrigger.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3847 -3198
- package/dist/index.js.map +1 -1
- package/dist/styles/color-classes.d.ts +1 -1
- package/dist/styles/color-classes.d.ts.map +1 -1
- package/dist/theme/cssVar.d.ts +223 -0
- package/dist/theme/cssVar.d.ts.map +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/mui.d.ts +78 -0
- package/dist/theme/mui.d.ts.map +1 -0
- package/dist/theme/tokens/colors.d.ts +348 -124
- package/dist/theme/tokens/colors.d.ts.map +1 -1
- package/dist/theme/tokens/index.d.ts +252 -125
- package/dist/theme/tokens/index.d.ts.map +1 -1
- package/dist/theme/tokens/typography.d.ts +1 -1
- package/dist/types/color.d.ts +67 -4
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +18 -3
- package/dist/components/Icons/Icon.d.ts +0 -37
- package/dist/components/Icons/Icon.d.ts.map +0 -1
- package/dist/types/icons.d.ts +0 -108
- package/dist/types/icons.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxel51/voodo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-dev-prerelease-publishing.0",
|
|
4
4
|
"description": "Voxel51's official design ontology (VOODO) system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Voxel Engineering <engineering@voxel51.com>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
+
"sideEffects": false,
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
11
|
"url": "https://github.com/voxel51/design-system.git"
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"./theme.css": "./dist/voodo.css"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
|
-
"dist"
|
|
28
|
+
"dist",
|
|
29
|
+
"NOTICE"
|
|
28
30
|
],
|
|
29
31
|
"scripts": {
|
|
30
32
|
"dev": "vite build --watch",
|
|
@@ -32,11 +34,16 @@
|
|
|
32
34
|
"build:lib": "npm run prepublish && mkdir -p build/lib && npm pack --pack-destination build/lib/",
|
|
33
35
|
"format": "prettier --write '**/*.{ts,tsx}'",
|
|
34
36
|
"format:check": "prettier --check '**/*.{ts,tsx}'",
|
|
35
|
-
"generate-
|
|
37
|
+
"generate-icons": "tsx utils/generate-icons.ts && prettier --write src/components/Icons/icons.tsx --log-level warn",
|
|
38
|
+
"generate-tailwind-theme": "tsx utils/generate-color-classes.ts && tsx utils/generate-tailwind-theme.ts && tsx utils/generate-css-vars.ts && prettier --write src/theme/cssVar.ts --log-level silent",
|
|
36
39
|
"lint": "eslint src --max-warnings 0",
|
|
37
40
|
"lint:fix": "eslint src --fix",
|
|
38
41
|
"prebuild": "npm run generate-tailwind-theme",
|
|
42
|
+
"prebuild-storybook": "npm run generate-tailwind-theme",
|
|
39
43
|
"prepublishOnly": "npm run build",
|
|
44
|
+
"prestorybook": "npm run generate-tailwind-theme",
|
|
45
|
+
"storybook": "storybook dev -p 6006",
|
|
46
|
+
"build-storybook": "storybook build",
|
|
40
47
|
"test": "jest",
|
|
41
48
|
"type-check": "tsc --noEmit",
|
|
42
49
|
"validate:all": "npm run lint && npm run format:check && npm run type-check && npm run build && npm run test"
|
|
@@ -49,11 +56,17 @@
|
|
|
49
56
|
"@headlessui/react": "^2.2.9",
|
|
50
57
|
"@tanstack/react-virtual": "^3.13.24",
|
|
51
58
|
"clsx": "^2.1.1",
|
|
59
|
+
"date-fns-tz": "^3.2.0",
|
|
52
60
|
"lodash.debounce": "^4.0.8",
|
|
53
61
|
"react-datepicker": "^9.1.0",
|
|
54
62
|
"tailwind-merge": "^3.4.0"
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
65
|
+
"@heroicons/react": "^2.2.0",
|
|
66
|
+
"@storybook/addon-a11y": "^10.2.15",
|
|
67
|
+
"@storybook/addon-docs": "^10.2.15",
|
|
68
|
+
"@storybook/addon-mcp": "^0.2.0",
|
|
69
|
+
"@storybook/react-vite": "^10.2.15",
|
|
57
70
|
"@tailwindcss/postcss": "^4.1.17",
|
|
58
71
|
"@testing-library/dom": "^10.4.0",
|
|
59
72
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -80,11 +93,13 @@
|
|
|
80
93
|
"identity-obj-proxy": "^3.0.0",
|
|
81
94
|
"jest": "^29.7.0",
|
|
82
95
|
"jest-environment-jsdom": "^30.2.0",
|
|
96
|
+
"lorem-ipsum": "^2.0.8",
|
|
83
97
|
"postcss": "^8.5.6",
|
|
84
98
|
"prettier": "^3.6.2",
|
|
85
99
|
"react": "^18.0.0",
|
|
86
100
|
"react-dom": "^18.0.0",
|
|
87
101
|
"react-is": "^18.0.0",
|
|
102
|
+
"storybook": "^10.2.15",
|
|
88
103
|
"tailwindcss": "^4.1.17",
|
|
89
104
|
"ts-jest": "^29.2.5",
|
|
90
105
|
"ts-node": "^10.9.2",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { default as React, FC } from 'react';
|
|
2
|
-
import { BrandColor, IconColor, TextColor } from '../../types';
|
|
3
|
-
import { IconName } from '../../types/icons';
|
|
4
|
-
import { Size } from '../../types/size';
|
|
5
|
-
type SvgComponent = React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6
|
-
/**
|
|
7
|
-
* To add a new icon:
|
|
8
|
-
* 1. add the SVG file to the image directory,
|
|
9
|
-
* 2. create a enum value for the icon name
|
|
10
|
-
* 3. import the SVG file and add it to this map
|
|
11
|
-
*/
|
|
12
|
-
export declare const iconMap: Record<Exclude<IconName, IconName.Spinner>, SvgComponent>;
|
|
13
|
-
export interface IconProps {
|
|
14
|
-
name: IconName;
|
|
15
|
-
size?: Size;
|
|
16
|
-
className?: string;
|
|
17
|
-
color?: TextColor | IconColor | BrandColor;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* An generic icon component which will take the form of the icon specified by `name`.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* <Icon name={IconName.Edit} size={Size.Md} />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param name Icon to display. See {@link IconName}.
|
|
29
|
-
* @param size The size of the icon. See {@link Size}.
|
|
30
|
-
* @param className `class` overrides to apply to the component.
|
|
31
|
-
* @param color Color of the icon. By default, the icon inherits the text color of its container.
|
|
32
|
-
* @param style `style` overrides to apply to the icon.
|
|
33
|
-
* @param props Additional HTML properties to apply to the component.
|
|
34
|
-
*/
|
|
35
|
-
export declare const Icon: FC<IconProps>;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA0GvC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAkB,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,KAAK,YAAY,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAC1B,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,EACnC,YAAY,CAyGb,CAAC;AAWF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC3C,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAuB9B,CAAC"}
|
package/dist/types/icons.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export declare enum IconName {
|
|
2
|
-
Activity = "Activity",
|
|
3
|
-
Add = "Add",
|
|
4
|
-
AI = "AI",
|
|
5
|
-
Annotate = "Annotate",
|
|
6
|
-
ArrowDown = "ArrowDown",
|
|
7
|
-
ArrowLeft = "ArrowLeft",
|
|
8
|
-
ArrowRight = "ArrowRight",
|
|
9
|
-
ArrowUp = "ArrowUp",
|
|
10
|
-
ArrowUpRight = "ArrowUpRight",
|
|
11
|
-
Blocks = "Blocks",
|
|
12
|
-
Boxes = "Boxes",
|
|
13
|
-
CalendarClock = "CalendarClock",
|
|
14
|
-
CaretDown = "CaretDown",
|
|
15
|
-
Check = "Check",
|
|
16
|
-
Checkbox = "Checkbox",
|
|
17
|
-
Checklist = "Checklist",
|
|
18
|
-
ChevronBottom = "ChevronBottom",
|
|
19
|
-
ChevronLeft = "ChevronLeft",
|
|
20
|
-
ChevronRight = "ChevronRight",
|
|
21
|
-
ChevronTop = "ChevronTop",
|
|
22
|
-
Circle = "Circle",
|
|
23
|
-
CircleUser = "CircleUser",
|
|
24
|
-
Close = "Close",
|
|
25
|
-
Cloud = "Cloud",
|
|
26
|
-
CloudCog = "CloudCog",
|
|
27
|
-
Code = "Code",
|
|
28
|
-
Cog = "Cog",
|
|
29
|
-
Contact = "Contact",
|
|
30
|
-
ContentCopy = "ContentCopy",
|
|
31
|
-
Database = "Database",
|
|
32
|
-
DateRange = "DateRange",
|
|
33
|
-
Draw = "Draw",
|
|
34
|
-
Delete = "Delete",
|
|
35
|
-
Detection = "Detection",
|
|
36
|
-
Download = "Download",
|
|
37
|
-
Drag = "Drag",
|
|
38
|
-
Edit = "Edit",
|
|
39
|
-
Embeddings = "Embeddings",
|
|
40
|
-
Enter = "Enter",
|
|
41
|
-
Error = "Error",
|
|
42
|
-
ExitWorkspace = "ExitWorkspace",
|
|
43
|
-
ExternalLink = "ExternalLink",
|
|
44
|
-
FileClock = "FileClock",
|
|
45
|
-
FineTune = "FineTune",
|
|
46
|
-
Fingerprint = "Fingerprint",
|
|
47
|
-
Fullscreen = "Fullscreen",
|
|
48
|
-
GridView = "GridView",
|
|
49
|
-
History = "History",
|
|
50
|
-
IdCard = "IdCard",
|
|
51
|
-
ImageSearch = "ImageSearch",
|
|
52
|
-
Info = "Info",
|
|
53
|
-
Insights = "Insights",
|
|
54
|
-
Inspect = "Inspect",
|
|
55
|
-
JSON = "JSON",
|
|
56
|
-
Key = "Key",
|
|
57
|
-
KeyRound = "KeyRound",
|
|
58
|
-
KeySquare = "KeySquare",
|
|
59
|
-
Label = "Label",
|
|
60
|
-
Lock = "Lock",
|
|
61
|
-
Logs = "Logs",
|
|
62
|
-
Menu = "Menu",
|
|
63
|
-
MoreHorizontal = "MoreHorizontal",
|
|
64
|
-
MoreVertical = "MoreVertical",
|
|
65
|
-
Move = "Move",
|
|
66
|
-
NotebookPen = "NotebookPen",
|
|
67
|
-
Notes = "Notes",
|
|
68
|
-
Orchestrator = "Orchestrator",
|
|
69
|
-
Pause = "Pause",
|
|
70
|
-
Pencil = "Pencil",
|
|
71
|
-
Pin = "Pin",
|
|
72
|
-
Play = "Play",
|
|
73
|
-
Polyline = "Polyline",
|
|
74
|
-
Puzzle = "Puzzle",
|
|
75
|
-
Radio = "Radio",
|
|
76
|
-
Redo = "Redo",
|
|
77
|
-
Refresh = "Refresh",
|
|
78
|
-
Remove = "Remove",
|
|
79
|
-
Review = "Review",
|
|
80
|
-
Search = "Search",
|
|
81
|
-
Server = "Server",
|
|
82
|
-
Settings = "Settings",
|
|
83
|
-
ShieldCheck = "ShieldCheck",
|
|
84
|
-
Slider = "Slider",
|
|
85
|
-
Sliders = "Sliders",
|
|
86
|
-
Spinner = "Spinner",
|
|
87
|
-
Tag = "Tag",
|
|
88
|
-
Text = "Text",
|
|
89
|
-
Toggle = "Toggle",
|
|
90
|
-
Undo = "Undo",
|
|
91
|
-
UnfoldMore = "UnfoldMore",
|
|
92
|
-
Unlock = "Unlock",
|
|
93
|
-
Unsupported = "Unsupported",
|
|
94
|
-
Upload = "Upload",
|
|
95
|
-
User = "User",
|
|
96
|
-
Users = "Users",
|
|
97
|
-
UsersRound = "UsersRound",
|
|
98
|
-
VAL = "VAL",
|
|
99
|
-
VolumeOff = "VolumeOff",
|
|
100
|
-
VolumeUp = "VolumeUp",
|
|
101
|
-
Warning = "Warning",
|
|
102
|
-
Waypoints = "Waypoints",
|
|
103
|
-
Workflow = "Workflow",
|
|
104
|
-
Workspaces = "Workspaces",
|
|
105
|
-
Zap = "Zap"
|
|
106
|
-
}
|
|
107
|
-
export default IconName;
|
|
108
|
-
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/types/icons.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,GAAG,QAAQ;CACZ;AAED,eAAe,QAAQ,CAAC"}
|