@wistia/vhs 2.58.1 → 2.58.2-beta.4d9ef137.47f2180
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/Stack/Stack.d.ts +19 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Text/Text.d.ts +51 -5
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/hooks/useClipboard/UseClipboardWithErrorExample.d.ts +2 -0
- package/dist/hooks/useClipboard/UseClipboardWithErrorExample.d.ts.map +1 -0
- package/dist/index.cjs +549 -539
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +502 -492
- package/dist/index.mjs.map +4 -4
- package/package.json +8 -7
- package/dist/hooks/useClipboard/UseClipboardExampleWithError.d.ts +0 -2
- package/dist/hooks/useClipboard/UseClipboardExampleWithError.d.ts.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Spacings } from '@wistia/vhs-design-tokens';
|
|
2
|
+
import type { ElementType, ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
3
|
+
export type StackProps<T extends ElementType> = ComponentPropsWithoutRef<T> & PropsWithChildren & {
|
|
4
|
+
/**
|
|
5
|
+
* The gap between each item in the stack. Should be one of the spacing values from the theme
|
|
6
|
+
*/
|
|
7
|
+
gap?: keyof Spacings;
|
|
8
|
+
/**
|
|
9
|
+
* Vertical is equivalent to `flex-direction: column;`, horizontal is equivalent to `flex-direction: row;`.
|
|
10
|
+
* The default behavior is `vertical`.
|
|
11
|
+
*/
|
|
12
|
+
direction?: 'horizontal' | 'vertical';
|
|
13
|
+
/**
|
|
14
|
+
* The element (e.g. div, span, p) or component to render as the root element.
|
|
15
|
+
*/
|
|
16
|
+
renderAs?: T | 'div';
|
|
17
|
+
};
|
|
18
|
+
export declare const Stack: import("react").ForwardRefExoticComponent<Omit<StackProps<ElementType>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAEV,WAAW,EACX,wBAAwB,EACxB,iBAAiB,EAElB,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,WAAW,IAAI,wBAAwB,CAAC,CAAC,CAAC,GACzE,iBAAiB,GAAG;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,QAAQ,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;CACtB,CAAC;AAiBJ,eAAO,MAAM,KAAK,iIAejB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, ReactNode
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
declare const alignMap: {
|
|
3
3
|
left: string;
|
|
4
4
|
right: string;
|
|
@@ -92,9 +92,55 @@ export type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
92
92
|
*/
|
|
93
93
|
variant?: keyof typeof variantStyleMap;
|
|
94
94
|
};
|
|
95
|
-
export declare const Text: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
export declare const Text: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
96
|
+
/**
|
|
97
|
+
* The horizontal alignment
|
|
98
|
+
* <br />
|
|
99
|
+
* _Note: this only affects block elements_
|
|
100
|
+
*/
|
|
101
|
+
align?: keyof typeof alignMap;
|
|
102
|
+
/**
|
|
103
|
+
* Displays text as bold type
|
|
104
|
+
*/
|
|
105
|
+
bold?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Pass an arbitrary child node
|
|
108
|
+
*/
|
|
109
|
+
children?: ReactNode | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Allows user to override default button colors
|
|
112
|
+
*/
|
|
113
|
+
colorOverride?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Used to indicate text is part of a "disabled" UI
|
|
116
|
+
*/
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Attempt to keep the text to a single line by truncating with an ellipsis
|
|
120
|
+
* <br />
|
|
121
|
+
* _Note: this only affects block elements_
|
|
122
|
+
*/
|
|
123
|
+
ellipsis?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Display the text as inline content
|
|
126
|
+
*/
|
|
127
|
+
inline?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Displays text as italic type
|
|
130
|
+
*/
|
|
131
|
+
italic?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Prevents text from being highlighted and copied
|
|
134
|
+
*/
|
|
135
|
+
preventUserSelect?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The type of html element to render as
|
|
138
|
+
*/
|
|
139
|
+
renderAs?: keyof typeof renderMap;
|
|
140
|
+
/**
|
|
141
|
+
* The text style to display
|
|
142
|
+
*/
|
|
143
|
+
variant?: keyof typeof variantStyleMap;
|
|
144
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
99
145
|
export {};
|
|
100
146
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAKpF,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;CAYd,CAAC;AAgEF,eAAO,MAAM,eAAe;;;;;;;;;;;CAW3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,EAAE,EAAE,MAAM,OAAO,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,OAAO,eAAe,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACxD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,eAAe,CAAC;CACxC,CAAC;AA4CF,eAAO,MAAM,IAAI;IA5Ff;;;;OAIG;YACK,MAAM,eAAe;IAC7B;;OAEG;WACI,OAAO;IACd;;OAEG;eACQ,SAAS,GAAG,SAAS;IAChC;;OAEG;oBACa,MAAM;IACtB;;OAEG;eACQ,OAAO;IAClB;;;;OAIG;eACQ,OAAO;IAClB;;OAEG;aACM,OAAO;IAChB;;OAEG;aACM,OAAO;IAChB;;OAEG;wBACiB,OAAO;IAC3B;;OAEG;eACQ,MAAM,gBAAgB;IACjC;;OAEG;cACO,MAAM,sBAAsB;+CAgFvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseClipboardWithErrorExample.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClipboard/UseClipboardWithErrorExample.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,4BAA4B,+CAkDxC,CAAC"}
|