@voxel51/voodo 0.0.39 → 0.0.40

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.
Files changed (61) hide show
  1. package/NOTICE +37 -0
  2. package/README.md +24 -0
  3. package/dist/components/ActivityToast/ActivityToast.d.ts +5 -4
  4. package/dist/components/ActivityToast/ActivityToast.d.ts.map +1 -1
  5. package/dist/components/Button/Button.d.ts +6 -5
  6. package/dist/components/Button/Button.d.ts.map +1 -1
  7. package/dist/components/Card/RichCard.d.ts +4 -4
  8. package/dist/components/Card/RichCard.d.ts.map +1 -1
  9. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  10. package/dist/components/Clickable/Clickable.d.ts +1 -1
  11. package/dist/components/Datepicker/DatepickerIconButton.d.ts +3 -3
  12. package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
  13. package/dist/components/Datepicker/DatepickerInput.d.ts.map +1 -1
  14. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  15. package/dist/components/Dropdown/DropdownTrigger.d.ts.map +1 -1
  16. package/dist/components/EmptyState/EmptyState.d.ts +2 -2
  17. package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
  18. package/dist/components/Icons/DragHandle.d.ts +1 -1
  19. package/dist/components/Icons/DragHandle.d.ts.map +1 -1
  20. package/dist/components/Icons/IconBase.d.ts +30 -0
  21. package/dist/components/Icons/IconBase.d.ts.map +1 -0
  22. package/dist/components/Icons/IconWrapper.d.ts +5 -5
  23. package/dist/components/Icons/IconWrapper.d.ts.map +1 -1
  24. package/dist/components/Icons/icons.d.ts +312 -0
  25. package/dist/components/Icons/icons.d.ts.map +1 -0
  26. package/dist/components/Icons/index.d.ts +2 -1
  27. package/dist/components/Icons/index.d.ts.map +1 -1
  28. package/dist/components/Input/Input.d.ts +4 -4
  29. package/dist/components/Input/Input.d.ts.map +1 -1
  30. package/dist/components/Input/InputIcon.d.ts +4 -3
  31. package/dist/components/Input/InputIcon.d.ts.map +1 -1
  32. package/dist/components/ListItem/ListItem.d.ts +1 -1
  33. package/dist/components/Menu/MenuCheckItem.d.ts.map +1 -1
  34. package/dist/components/Menu/MenuIconTextItem.d.ts +3 -4
  35. package/dist/components/Menu/MenuIconTextItem.d.ts.map +1 -1
  36. package/dist/components/Menu/MenuSectionTitle.d.ts +1 -1
  37. package/dist/components/Pill/Pill.d.ts +3 -2
  38. package/dist/components/Pill/Pill.d.ts.map +1 -1
  39. package/dist/components/RichButton/RichButton.d.ts +3 -3
  40. package/dist/components/RichButton/RichButton.d.ts.map +1 -1
  41. package/dist/components/RichList/RichList.d.ts +3 -3
  42. package/dist/components/Select/Option.d.ts.map +1 -1
  43. package/dist/components/Select/Select.d.ts.map +1 -1
  44. package/dist/components/Spinner/Spinner.d.ts +0 -2
  45. package/dist/components/Spinner/Spinner.d.ts.map +1 -1
  46. package/dist/components/Toast/Toast.d.ts +5 -4
  47. package/dist/components/Toast/Toast.d.ts.map +1 -1
  48. package/dist/components/Tree/TreeItem.d.ts.map +1 -1
  49. package/dist/components/Tree/TreeSearchInput.d.ts.map +1 -1
  50. package/dist/components/Tree/TreeSelectTrigger.d.ts.map +1 -1
  51. package/dist/index.cjs +1 -1
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.js +3170 -2988
  54. package/dist/index.js.map +1 -1
  55. package/dist/types/index.d.ts +0 -1
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/package.json +5 -2
  58. package/dist/components/Icons/Icon.d.ts +0 -37
  59. package/dist/components/Icons/Icon.d.ts.map +0 -1
  60. package/dist/types/icons.d.ts +0 -108
  61. package/dist/types/icons.d.ts.map +0 -1
@@ -5,7 +5,6 @@ export * from './zIndex';
5
5
  export * from './descriptor';
6
6
  export * from './element';
7
7
  export * from './heading';
8
- export * from './icons';
9
8
  export * from './justify';
10
9
  export * from './orientation';
11
10
  export * from './radius';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@voxel51/voodo",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
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,6 +34,7 @@
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}'",
37
+ "generate-icons": "tsx utils/generate-icons.ts && prettier --write src/components/Icons/icons.tsx --log-level warn",
35
38
  "generate-tailwind-theme": "tsx utils/generate-color-classes.ts && tsx utils/generate-tailwind-theme.ts",
36
39
  "lint": "eslint src --max-warnings 0",
37
40
  "lint:fix": "eslint src --fix",
@@ -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"}
@@ -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,aA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