@voxel51/voodo 0.2.0-dev-prerelease-publishing.0 → 0.2.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/dist/components/ActivityToast/ActivityToast.d.ts +2 -2
- package/dist/components/ActivityToast/ActivityToast.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/RichCard.d.ts +2 -2
- package/dist/components/Card/RichCard.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Datepicker/DatepickerIconButton.d.ts +2 -2
- package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +31 -3
- package/dist/components/Divider/Divider.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/FormField/FormField.d.ts +3 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormFieldGroup/FormFieldGroup.d.ts +2 -0
- package/dist/components/FormFieldGroup/FormFieldGroup.d.ts.map +1 -1
- package/dist/components/Icons/Icon.d.ts +60 -0
- package/dist/components/Icons/Icon.d.ts.map +1 -0
- package/dist/components/Icons/IconWrapper.d.ts +3 -3
- package/dist/components/Icons/IconWrapper.d.ts.map +1 -1
- package/dist/components/Icons/index.d.ts +1 -0
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +32 -8
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/InputIcon.d.ts +2 -2
- package/dist/components/Input/InputIcon.d.ts.map +1 -1
- package/dist/components/Input/styles.d.ts +11 -0
- package/dist/components/Input/styles.d.ts.map +1 -1
- package/dist/components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/components/Menu/styles.d.ts.map +1 -1
- package/dist/components/Pill/Pill.d.ts +5 -2
- package/dist/components/Pill/Pill.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/RichButton/RichButton.d.ts +2 -2
- package/dist/components/RichButton/RichButton.d.ts.map +1 -1
- package/dist/components/RichList/RichList.d.ts +18 -9
- package/dist/components/RichList/RichList.d.ts.map +1 -1
- package/dist/components/Select/Option.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +9 -5
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3061 -2712
- 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 +1 -0
- package/dist/theme/cssVar.d.ts.map +1 -1
- package/dist/theme/tokens/colors.d.ts +2 -0
- package/dist/theme/tokens/colors.d.ts.map +1 -1
- package/dist/theme/tokens/index.d.ts +2 -0
- package/dist/theme/tokens/index.d.ts.map +1 -1
- package/dist/types/color.d.ts +2 -1
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/icons.d.ts +114 -0
- package/dist/types/icons.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +3 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconInput } from '../Icons';
|
|
3
3
|
import { Anchor, Variant } from '../../types';
|
|
4
4
|
type ToastVariant = Exclude<Variant, Variant.Borderless>;
|
|
5
5
|
export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
6
6
|
action?: ReactNode;
|
|
7
7
|
anchor?: Anchor;
|
|
8
8
|
description?: ReactNode;
|
|
9
|
-
icon?:
|
|
9
|
+
icon?: IconInput;
|
|
10
|
+
onClose?: () => void;
|
|
10
11
|
open?: boolean;
|
|
11
12
|
title?: ReactNode;
|
|
12
13
|
variant?: ToastVariant;
|
|
@@ -28,21 +29,24 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
28
29
|
* description="You will be notified when the recipient opens your message"
|
|
29
30
|
* icon={CheckIcon}
|
|
30
31
|
* action={
|
|
31
|
-
* <Button onClick={() => setOpen(false)}>
|
|
32
|
-
*
|
|
32
|
+
* <Button variant={Variant.Secondary} onClick={() => setOpen(false)}>
|
|
33
|
+
* Undo
|
|
33
34
|
* </Button>
|
|
34
35
|
* }
|
|
36
|
+
* onClose={() => setOpen(false)}
|
|
35
37
|
* variant={Variant.Success}
|
|
36
38
|
* />
|
|
37
39
|
* );
|
|
38
40
|
* };
|
|
39
41
|
* ```
|
|
40
42
|
*
|
|
41
|
-
* @param action Optional content to display in the "action" slot; this is typically
|
|
43
|
+
* @param action Optional content to display in the "action" slot; this is typically a {@link Button}/CTA.
|
|
42
44
|
* @param anchor The location in the viewport to anchor the toast. See {@link Anchor}.
|
|
43
45
|
* @param className `class` overrides to apply to the component.
|
|
44
46
|
* @param description Optional content to display in the "description" slot; this should be considered secondary content.
|
|
45
47
|
* @param icon An optional icon component to display in the "icon" slot.
|
|
48
|
+
* @param onClose Optional handler invoked when the close/dismiss control is activated. If provided, a close
|
|
49
|
+
* control is rendered in the toast.
|
|
46
50
|
* @param open If `true`, the toast will be visible; otherwise it will be hidden.
|
|
47
51
|
* @param title Optional content to display in the "title" slot; this should be considered the primary content.
|
|
48
52
|
* @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;AAG3D,OAAO,EAAa,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAM5E,OAAO,EAEL,MAAM,EAYN,OAAO,EACR,MAAM,SAAS,CAAC;AAGjB,KAAK,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;AAEzD,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAqEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAML,IAAI,EAIL,MAAM,SAAS,CAAC;AAGjB,KAAK,mBAAmB,GAAG,IAAI,CAC7B,oBAAo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C,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAmFlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,EAKL,UAAU,EAEV,IAAI,EAIL,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;AAEh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