@yahoo/uds 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +2 -8
- package/cli/bunfig.toml +3 -0
- package/cli/commands/expo/_setup.ts +1 -0
- package/cli/commands/expo/build.ts +1 -1
- package/cli/commands/expo/launch.ts +1 -1
- package/cli/commands/purge.ts +1 -1
- package/cli/commands/sync.ts +16 -4
- package/cli/commands/uds.ts +4 -1
- package/cli/commands/version.ts +1 -1
- package/cli/preload.ts +32 -0
- package/cli/utils/configWorker.ts +30 -11
- package/cli/utils/getCommandHelp.ts +22 -13
- package/cli/utils/purgeCSS.test.ts +99 -0
- package/cli/utils/purgeCSS.ts +5 -5
- package/cli/utils/setupConfigWorker.ts +8 -38
- package/cli/utils/types.ts +5 -2
- package/dist/{Image.native-tkOXN29I.d.ts → Image.native-C6kOWgnf.d.ts} +1 -1
- package/dist/{Image.native-jCNIrPZD.d.cts → Image.native-VeXt5aeI.d.cts} +1 -1
- package/dist/VStack-BSD9TbBd.d.cts +114 -0
- package/dist/VStack-Dk3-8IyU.d.ts +114 -0
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +5 -4
- package/dist/experimental/index.d.ts +5 -4
- package/dist/experimental/index.js +1 -1
- package/dist/experimental/index.native.cjs +1 -1
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/experimental/index.native.js +1 -1
- package/dist/fixtures/index.cjs +1 -1
- package/dist/fixtures/index.d.cts +15 -1
- package/dist/fixtures/index.d.ts +15 -1
- package/dist/fixtures/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +133 -184
- package/dist/index.d.ts +133 -184
- package/dist/index.js +1 -1
- package/dist/{index.native-xVHqKK0u.d.ts → index.native-CisPq4BI.d.ts} +1 -1
- package/dist/{index.native--Dm3KDDS.d.cts → index.native-DJlx-bfM.d.cts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +5 -5
- package/dist/index.native.d.ts +5 -5
- package/dist/index.native.js +1 -1
- package/dist/tailwindPlugin.cjs +1 -1
- package/dist/tailwindPlugin.d.cts +1 -1
- package/dist/tailwindPlugin.d.ts +1 -1
- package/dist/tailwindPlugin.js +1 -1
- package/dist/tailwindPurge.cjs +1 -1
- package/dist/tailwindPurge.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/index.native.cjs +1 -1
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/index.native.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/tokens/parseTokens.native.d.cts +1 -1
- package/dist/tokens/parseTokens.native.d.ts +1 -1
- package/dist/{types-7oEBWtMQ.d.cts → types-CzJpH_Oi.d.cts} +2 -2
- package/dist/{types-7oEBWtMQ.d.ts → types-CzJpH_Oi.d.ts} +2 -2
- package/package.json +4 -2
- package/dist/Pressable-2kgXQNVs.d.cts +0 -55
- package/dist/Pressable-LIDkIIAF.d.ts +0 -55
- /package/dist/{types-J4DLS6Xj.d.cts → types-FO65RM-W.d.cts} +0 -0
- /package/dist/{types-J4DLS6Xj.d.ts → types-FO65RM-W.d.ts} +0 -0
@@ -1,55 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { i as UniversalBoxProps, j as UniversalPressableProps } from './types-7oEBWtMQ.cjs';
|
3
|
-
|
4
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* A layout primitive that can be used to compose other components.
|
9
|
-
* @example
|
10
|
-
```tsx
|
11
|
-
import { Box } from "@yahoo/uds"
|
12
|
-
|
13
|
-
export function Demo() {
|
14
|
-
return (
|
15
|
-
<Box
|
16
|
-
bordered
|
17
|
-
backgroundColor="primary"
|
18
|
-
borderRadius="md"
|
19
|
-
spacing='6'
|
20
|
-
>
|
21
|
-
Any kind of content can go here!
|
22
|
-
</Box>
|
23
|
-
)
|
24
|
-
}
|
25
|
-
```
|
26
|
-
*/
|
27
|
-
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
28
|
-
|
29
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
30
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
31
|
-
}
|
32
|
-
/**
|
33
|
-
* Provides press interactions with accessibility support.
|
34
|
-
* @example
|
35
|
-
```tsx
|
36
|
-
import { Pressable, Text } from "@yahoo/uds"
|
37
|
-
|
38
|
-
export function Demo() {
|
39
|
-
return (
|
40
|
-
<Pressable
|
41
|
-
onClick={console.log}
|
42
|
-
backgroundColor="secondary"
|
43
|
-
bordered
|
44
|
-
borderColor="primary"
|
45
|
-
borderRadius="lg"
|
46
|
-
>
|
47
|
-
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
48
|
-
</Pressable>
|
49
|
-
)
|
50
|
-
}
|
51
|
-
```
|
52
|
-
*/
|
53
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
54
|
-
|
55
|
-
export { Box as B, type DivProps as D, Pressable as P, type BoxProps as a, type PressableProps as b };
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { i as UniversalBoxProps, j as UniversalPressableProps } from './types-7oEBWtMQ.js';
|
3
|
-
|
4
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* A layout primitive that can be used to compose other components.
|
9
|
-
* @example
|
10
|
-
```tsx
|
11
|
-
import { Box } from "@yahoo/uds"
|
12
|
-
|
13
|
-
export function Demo() {
|
14
|
-
return (
|
15
|
-
<Box
|
16
|
-
bordered
|
17
|
-
backgroundColor="primary"
|
18
|
-
borderRadius="md"
|
19
|
-
spacing='6'
|
20
|
-
>
|
21
|
-
Any kind of content can go here!
|
22
|
-
</Box>
|
23
|
-
)
|
24
|
-
}
|
25
|
-
```
|
26
|
-
*/
|
27
|
-
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
28
|
-
|
29
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
30
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
31
|
-
}
|
32
|
-
/**
|
33
|
-
* Provides press interactions with accessibility support.
|
34
|
-
* @example
|
35
|
-
```tsx
|
36
|
-
import { Pressable, Text } from "@yahoo/uds"
|
37
|
-
|
38
|
-
export function Demo() {
|
39
|
-
return (
|
40
|
-
<Pressable
|
41
|
-
onClick={console.log}
|
42
|
-
backgroundColor="secondary"
|
43
|
-
bordered
|
44
|
-
borderColor="primary"
|
45
|
-
borderRadius="lg"
|
46
|
-
>
|
47
|
-
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
48
|
-
</Pressable>
|
49
|
-
)
|
50
|
-
}
|
51
|
-
```
|
52
|
-
*/
|
53
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
54
|
-
|
55
|
-
export { Box as B, type DivProps as D, Pressable as P, type BoxProps as a, type PressableProps as b };
|
File without changes
|
File without changes
|