@voxel51/voodo 0.0.32 → 0.0.33
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/ToggleSwitch/ToggleSwitch.d.ts +3 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectTrigger.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6466 -6689
- package/dist/index.js.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import { Descriptor, Size } from '../../types';
|
|
|
3
3
|
export interface ToggleSwitchTab {
|
|
4
4
|
label: ReactNode;
|
|
5
5
|
content: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
tooltip?: ReactNode;
|
|
6
8
|
}
|
|
7
9
|
export declare enum ToggleSwitchVariant {
|
|
8
10
|
Default = "default",
|
|
@@ -48,6 +50,7 @@ export interface ToggleSwitchProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
48
50
|
* ```
|
|
49
51
|
*
|
|
50
52
|
* @param tabs List of component descriptors which will be used to create {@link ToggleSwitchTab} children.
|
|
53
|
+
* Each tab supports optional `disabled` and `tooltip` fields. See {@link ToggleSwitchTab}.
|
|
51
54
|
* @param variant Variant of the tabs.
|
|
52
55
|
* The variants have the following behaviors:
|
|
53
56
|
* - {@link ToggleSwitchVariant.Default} - tabs are bordered and have visible boundaries;
|
|
@@ -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;
|
|
1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face TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "cont
|
|
|
5
5
|
anchor?: TooltipAnchor;
|
|
6
6
|
content: ReactNode;
|
|
7
7
|
portal?: boolean;
|
|
8
|
-
/** Drop shadow. Use Shadow.Xs through Shadow.Xl. */
|
|
9
8
|
shadow?: Shadow;
|
|
9
|
+
wrapperClassName?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* A tooltip which appears when hovering over the wrapped content.
|
|
@@ -21,9 +21,10 @@ export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "cont
|
|
|
21
21
|
* @param anchor Position to anchor the tooltip relative to its content. See {@link Anchor}.
|
|
22
22
|
* @param content The content of the tooltip.
|
|
23
23
|
* @param children The content which this component wraps; this acts as the element anchor and the hover trigger.
|
|
24
|
-
* @param className `class` overrides to apply to the
|
|
25
|
-
* @param portal If `true`,
|
|
24
|
+
* @param className `class` overrides to apply to the tooltip panel.
|
|
25
|
+
* @param portal If `true`, renders the tooltip via a React portal so it escapes overflow-hidden ancestors.
|
|
26
26
|
* @param shadow The shadow to apply to the tooltip. See {@link Shadow}.
|
|
27
|
+
* @param wrapperClassName Additional classes to apply to the outer wrapper element.
|
|
27
28
|
* @param props Additional HTML properties to apply to the component.
|
|
28
29
|
*/
|
|
29
30
|
export declare const Tooltip: FC<TooltipProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,MAAM,EAMN,MAAM,EAKP,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,MAAM,EACN,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CACxD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,cAAc,CAAC,cAAc,CAAC,EAC9B,SAAS,CACV;IACC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA4ED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAiFpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/TreeSelect/TreeSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TreeSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/TreeSelect/TreeSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAkBjD,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;AA6DD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsGxD,CAAC"}
|