@yahoo/uds 0.2.0 → 0.2.2

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.
Files changed (69) hide show
  1. package/cli/README.md +2 -8
  2. package/cli/bunfig.toml +3 -0
  3. package/cli/commands/expo/_setup.ts +1 -0
  4. package/cli/commands/expo/build.ts +1 -1
  5. package/cli/commands/expo/launch.ts +1 -1
  6. package/cli/commands/purge.ts +1 -1
  7. package/cli/commands/sync.ts +16 -4
  8. package/cli/commands/uds.ts +4 -1
  9. package/cli/commands/version.ts +1 -1
  10. package/cli/preload.ts +32 -0
  11. package/cli/utils/configWorker.ts +30 -11
  12. package/cli/utils/getCommandHelp.ts +22 -13
  13. package/cli/utils/purgeCSS.test.ts +99 -0
  14. package/cli/utils/purgeCSS.ts +5 -5
  15. package/cli/utils/setupConfigWorker.ts +8 -38
  16. package/cli/utils/types.ts +5 -2
  17. package/dist/{Image.native-tkOXN29I.d.ts → Image.native-C6kOWgnf.d.ts} +1 -1
  18. package/dist/{Image.native-jCNIrPZD.d.cts → Image.native-VeXt5aeI.d.cts} +1 -1
  19. package/dist/VStack-BSD9TbBd.d.cts +114 -0
  20. package/dist/VStack-Dk3-8IyU.d.ts +114 -0
  21. package/dist/experimental/index.cjs +1 -1
  22. package/dist/experimental/index.d.cts +5 -4
  23. package/dist/experimental/index.d.ts +5 -4
  24. package/dist/experimental/index.js +1 -1
  25. package/dist/experimental/index.native.cjs +1 -1
  26. package/dist/experimental/index.native.d.cts +3 -3
  27. package/dist/experimental/index.native.d.ts +3 -3
  28. package/dist/experimental/index.native.js +1 -1
  29. package/dist/fixtures/index.cjs +1 -1
  30. package/dist/fixtures/index.d.cts +15 -1
  31. package/dist/fixtures/index.d.ts +15 -1
  32. package/dist/fixtures/index.js +1 -1
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.cts +133 -184
  35. package/dist/index.d.ts +133 -184
  36. package/dist/index.js +1 -1
  37. package/dist/{index.native-xVHqKK0u.d.ts → index.native-CisPq4BI.d.ts} +1 -1
  38. package/dist/{index.native--Dm3KDDS.d.cts → index.native-DJlx-bfM.d.cts} +1 -1
  39. package/dist/index.native.cjs +1 -1
  40. package/dist/index.native.d.cts +5 -5
  41. package/dist/index.native.d.ts +5 -5
  42. package/dist/index.native.js +1 -1
  43. package/dist/tailwindPlugin.cjs +1 -1
  44. package/dist/tailwindPlugin.d.cts +1 -1
  45. package/dist/tailwindPlugin.d.ts +1 -1
  46. package/dist/tailwindPlugin.js +1 -1
  47. package/dist/tailwindPurge.cjs +1 -1
  48. package/dist/tailwindPurge.js +1 -1
  49. package/dist/tokens/index.cjs +1 -1
  50. package/dist/tokens/index.d.cts +2 -2
  51. package/dist/tokens/index.d.ts +2 -2
  52. package/dist/tokens/index.js +1 -1
  53. package/dist/tokens/index.native.cjs +1 -1
  54. package/dist/tokens/index.native.d.cts +2 -2
  55. package/dist/tokens/index.native.d.ts +2 -2
  56. package/dist/tokens/index.native.js +1 -1
  57. package/dist/tokens/parseTokens.cjs +1 -1
  58. package/dist/tokens/parseTokens.d.cts +1 -1
  59. package/dist/tokens/parseTokens.d.ts +1 -1
  60. package/dist/tokens/parseTokens.js +1 -1
  61. package/dist/tokens/parseTokens.native.d.cts +1 -1
  62. package/dist/tokens/parseTokens.native.d.ts +1 -1
  63. package/dist/{types-7oEBWtMQ.d.cts → types-CzJpH_Oi.d.cts} +2 -2
  64. package/dist/{types-7oEBWtMQ.d.ts → types-CzJpH_Oi.d.ts} +2 -2
  65. package/package.json +4 -2
  66. package/dist/Pressable-2kgXQNVs.d.cts +0 -55
  67. package/dist/Pressable-LIDkIIAF.d.ts +0 -55
  68. /package/dist/{types-J4DLS6Xj.d.cts → types-FO65RM-W.d.cts} +0 -0
  69. /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 };