@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.
- package/NOTICE +37 -0
- package/README.md +24 -0
- 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 +3170 -2988
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -2
- 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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconProps } from '../Icons';
|
|
3
|
+
import { Anchor, Variant } from '../../types';
|
|
3
4
|
type ToastVariant = Exclude<Variant, Variant.Borderless>;
|
|
4
5
|
export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
6
|
action?: ReactNode;
|
|
6
7
|
anchor?: Anchor;
|
|
7
8
|
description?: ReactNode;
|
|
8
|
-
icon?: FC
|
|
9
|
+
icon?: FC<IconProps>;
|
|
9
10
|
open?: boolean;
|
|
10
11
|
title?: ReactNode;
|
|
11
12
|
variant?: ToastVariant;
|
|
@@ -25,7 +26,7 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
25
26
|
* open={open}
|
|
26
27
|
* title="Message sent"
|
|
27
28
|
* description="You will be notified when the recipient opens your message"
|
|
28
|
-
* icon={
|
|
29
|
+
* icon={CheckIcon}
|
|
29
30
|
* action={
|
|
30
31
|
* <Button onClick={() => setOpen(false)}>
|
|
31
32
|
* Close
|
|
@@ -41,7 +42,7 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
41
42
|
* @param anchor The location in the viewport to anchor the toast. See {@link Anchor}.
|
|
42
43
|
* @param className `class` overrides to apply to the component.
|
|
43
44
|
* @param description Optional content to display in the "description" slot; this should be considered secondary content.
|
|
44
|
-
* @param icon An optional
|
|
45
|
+
* @param icon An optional icon component to display in the "icon" slot.
|
|
45
46
|
* @param open If `true`, the toast will be visible; otherwise it will be hidden.
|
|
46
47
|
* @param title Optional content to display in the "title" slot; this should be considered the primary content.
|
|
47
48
|
* @param variant The variant of the toast; this controls icon styling. See {@link Variant}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAMjE,OAAO,EAEL,MAAM,EAUN,OAAO,EACR,MAAM,SAAS,CAAC;AAGjB,KAAK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ources":["../../../src/components/Tree/TreeItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA0BvC,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAqBD;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,iBAAiB,CA0K1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TreeSearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAgB9D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA6DpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TreeSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAiBjD,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AA2DD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsGxD,CAAC"}
|