@yahoo/uds 0.5.11 → 1.0.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/cli/README.md +17 -11
  2. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  3. package/cli/bin/uds-darwin-x64 +0 -0
  4. package/cli/bin/uds-linux-arm64 +0 -0
  5. package/cli/bin/uds-linux-x64-baseline +0 -0
  6. package/cli/bin/uds-windows-x64-baseline.exe +0 -0
  7. package/cli/cli.ts +1 -0
  8. package/cli/consts.ts +1 -7
  9. package/cli/preload.ts +1 -1
  10. package/cli/uds-cli +1 -7
  11. package/cli/utils/configWorker.ts +58 -31
  12. package/cli/utils/purgeCSS.ts +1 -4
  13. package/cli/utils/setupConfigWorker.ts +13 -12
  14. package/dist/{Image.native-BxsXWBqp.d.ts → Image.native-BTcdQraV.d.ts} +2 -2
  15. package/dist/{Image.native-DBoB1LOc.d.cts → Image.native-D6qA03vT.d.ts} +2 -2
  16. package/dist/Image.native-D96MZTYD.d.cts +39 -0
  17. package/dist/Image.native-DX2YWGZD.d.ts +39 -0
  18. package/dist/Image.native-f8x4GPuV.d.cts +39 -0
  19. package/dist/Image.native-mHTDIRbL.d.cts +39 -0
  20. package/dist/chunk-2C7RDVXS.js +3 -0
  21. package/dist/chunk-2JQBQOM6.cjs +4 -0
  22. package/dist/chunk-47ZDV5TW.js +3 -0
  23. package/dist/chunk-4EJ6WK3H.cjs +2 -0
  24. package/dist/chunk-5DFU4PSC.cjs +2 -0
  25. package/dist/chunk-5LDKFAU4.cjs +2 -0
  26. package/dist/chunk-5MYSY56L.js +2 -0
  27. package/dist/chunk-5UHMAJB4.js +2 -0
  28. package/dist/chunk-6QLTGUJB.cjs +2 -0
  29. package/dist/chunk-77JE2H36.js +2 -0
  30. package/dist/chunk-7A7DDMD7.cjs +2 -0
  31. package/dist/chunk-7BKASJ4D.cjs +3 -0
  32. package/dist/chunk-7ICJCQTV.cjs +4 -0
  33. package/dist/chunk-7OODVPL6.cjs +2 -0
  34. package/dist/chunk-7SJRCGTP.js +3 -0
  35. package/dist/chunk-AKOUDLRN.cjs +2 -0
  36. package/dist/chunk-AV442FHA.js +3 -0
  37. package/dist/chunk-AY4XUL7M.cjs +3 -0
  38. package/dist/chunk-B7X77UTF.cjs +3 -0
  39. package/dist/chunk-BIYOCTWR.js +3 -0
  40. package/dist/chunk-BQB5NUKC.cjs +3 -0
  41. package/dist/chunk-CBSKS4K5.cjs +2 -0
  42. package/dist/chunk-CE5ROFEK.cjs +3 -0
  43. package/dist/chunk-CNY6ADXP.js +3 -0
  44. package/dist/chunk-D24YMS3F.cjs +2 -0
  45. package/dist/chunk-D3NVRUYG.cjs +4 -0
  46. package/dist/chunk-DIOVB5EV.js +3 -0
  47. package/dist/chunk-E53NU2VM.js +2 -0
  48. package/dist/chunk-E5X2STIU.js +2 -0
  49. package/dist/chunk-E6BTI63P.cjs +2 -0
  50. package/dist/chunk-EFYCREMN.js +3 -0
  51. package/dist/chunk-EMPQR5VI.js +3 -0
  52. package/dist/chunk-ET6WP7R7.js +2 -0
  53. package/dist/chunk-EXHCIY4P.cjs +2 -0
  54. package/dist/chunk-F56AWN2Z.js +3 -0
  55. package/dist/chunk-G7GQQIM5.js +3 -0
  56. package/dist/chunk-GVBZYWK6.js +4 -0
  57. package/dist/chunk-H2RSKIJ4.cjs +2 -0
  58. package/dist/chunk-HF5DHYIT.cjs +2 -0
  59. package/dist/chunk-HTDED6CG.js +3 -0
  60. package/dist/chunk-HUYXQPM5.cjs +3 -0
  61. package/dist/chunk-HY56NZEJ.js +3 -0
  62. package/dist/chunk-I2ENXXSN.js +2 -0
  63. package/dist/chunk-ITYNB2GX.js +3 -0
  64. package/dist/chunk-IVJD6N6G.cjs +2 -0
  65. package/dist/chunk-JVQ7PW3M.js +3 -0
  66. package/dist/chunk-KH3WJY4K.js +4 -0
  67. package/dist/chunk-KIDADDGN.js +4 -0
  68. package/dist/chunk-L7K4GFJK.cjs +3 -0
  69. package/dist/chunk-LRJNSHQA.cjs +2 -0
  70. package/dist/chunk-MIEZCJHO.cjs +2 -0
  71. package/dist/chunk-MPK4ZX4R.js +3 -0
  72. package/dist/chunk-MPP74SLP.js +2 -0
  73. package/dist/chunk-ND64MB7X.js +2 -0
  74. package/dist/chunk-NSPDKMNR.cjs +2 -0
  75. package/dist/chunk-O6FFTCHY.js +3 -0
  76. package/dist/chunk-OAYQHFZC.cjs +3 -0
  77. package/dist/chunk-OG5MIFO6.js +3 -0
  78. package/dist/chunk-OHOQVW2M.js +3 -0
  79. package/dist/chunk-PKL3JLWF.js +2 -0
  80. package/dist/chunk-PSZZ5NTF.cjs +2 -0
  81. package/dist/chunk-QAVZFB5J.cjs +3 -0
  82. package/dist/chunk-QENB6W4I.cjs +4 -0
  83. package/dist/chunk-QGADB35M.js +4 -0
  84. package/dist/chunk-RFY7RXSM.js +3 -0
  85. package/dist/chunk-RL274CM3.cjs +2 -0
  86. package/dist/chunk-S37OVJTV.js +2 -0
  87. package/dist/chunk-TKOGPWM4.cjs +2 -0
  88. package/dist/chunk-TM36S4YW.cjs +2 -0
  89. package/dist/chunk-UI4NLXDH.cjs +2 -0
  90. package/dist/chunk-UWZYIALE.js +3 -0
  91. package/dist/chunk-VCELYR7Q.cjs +3 -0
  92. package/dist/chunk-VEIAMHP4.js +2 -0
  93. package/dist/chunk-VF7WOINA.cjs +2 -0
  94. package/dist/chunk-VG5VAHYR.cjs +3 -0
  95. package/dist/chunk-WEJOZLMZ.js +2 -0
  96. package/dist/chunk-WJBYPKLH.cjs +3 -0
  97. package/dist/chunk-WKHVRU4K.js +3 -0
  98. package/dist/chunk-WR7BWGMO.cjs +2 -0
  99. package/dist/chunk-X5VBG5D7.js +3 -0
  100. package/dist/chunk-XELIMPNH.cjs +4 -0
  101. package/dist/chunk-YACR35TD.js +4 -0
  102. package/dist/chunk-YUYEO5DZ.cjs +2 -0
  103. package/dist/chunk-ZDKN5LRE.js +3 -0
  104. package/dist/chunk-ZFYJXGZM.cjs +2 -0
  105. package/dist/chunk-ZMPSBRKW.js +2 -0
  106. package/dist/client/index.cjs +4 -0
  107. package/dist/client/index.d.cts +94 -0
  108. package/dist/client/index.d.ts +94 -0
  109. package/dist/client/index.js +6 -0
  110. package/dist/experimental/index.cjs +3 -3
  111. package/dist/experimental/index.d.cts +296 -100
  112. package/dist/experimental/index.d.ts +296 -100
  113. package/dist/experimental/index.js +3 -3
  114. package/dist/experimental/index.native.cjs +3 -1
  115. package/dist/experimental/index.native.d.cts +6 -5
  116. package/dist/experimental/index.native.d.ts +6 -5
  117. package/dist/experimental/index.native.js +3 -1
  118. package/dist/fixtures.cjs +252 -35
  119. package/dist/fixtures.d.ts +31 -14
  120. package/dist/fixtures.js +230 -31
  121. package/dist/index.cjs +1 -2
  122. package/dist/index.d.cts +201 -27
  123. package/dist/index.d.ts +201 -27
  124. package/dist/index.js +2 -3
  125. package/dist/index.native.cjs +3 -1
  126. package/dist/index.native.d.cts +52 -147
  127. package/dist/index.native.d.ts +52 -147
  128. package/dist/index.native.js +2 -1
  129. package/dist/metafile-cjs.json +1 -1
  130. package/dist/metafile-esm.json +1 -1
  131. package/dist/motionFeatures-AEY3XSQX.js +1 -0
  132. package/dist/motionFeatures-GFOZDTZE.js +1 -0
  133. package/dist/motionFeatures-H5RRG7RP.js +1 -0
  134. package/dist/motionFeatures-NR4MMJ3L.cjs +1 -0
  135. package/dist/motionFeatures-WFC6MN64.cjs +1 -0
  136. package/dist/motionFeatures-WUDKXXR7.js +1 -0
  137. package/dist/motionFeatures-XXMSSBUB.cjs +1 -0
  138. package/dist/motionFeatures-ZAB6OWON.cjs +1 -0
  139. package/dist/styles/toast.css +3 -1
  140. package/dist/styles/toast.d.cts +2 -0
  141. package/dist/styles/toast.d.ts +2 -0
  142. package/dist/tailwind/plugin.cjs +3 -1
  143. package/dist/tailwind/plugin.d.cts +28 -5
  144. package/dist/tailwind/plugin.d.ts +28 -5
  145. package/dist/tailwind/plugin.js +3 -3
  146. package/dist/tailwind/purger.cjs +2 -2
  147. package/dist/tailwind/purger.js +3 -3
  148. package/dist/tailwind/tsMorph.cjs +3 -1
  149. package/dist/tailwind/tsMorph.d.cts +1 -4
  150. package/dist/tailwind/tsMorph.d.ts +1 -4
  151. package/dist/tailwind/tsMorph.js +2 -3
  152. package/dist/tailwind/utils.cjs +1 -0
  153. package/dist/tailwind/utils.d.cts +98 -0
  154. package/dist/tailwind/utils.d.ts +98 -0
  155. package/dist/tailwind/utils.js +1 -0
  156. package/dist/tokens/index.cjs +1 -2
  157. package/dist/tokens/index.d.cts +41 -362
  158. package/dist/tokens/index.d.ts +41 -362
  159. package/dist/tokens/index.js +1 -2
  160. package/dist/tokens/index.native.cjs +3 -1
  161. package/dist/tokens/index.native.d.cts +24 -2
  162. package/dist/tokens/index.native.d.ts +24 -2
  163. package/dist/tokens/index.native.js +3 -1
  164. package/dist/tokens/parseTokens.cjs +1 -2
  165. package/dist/tokens/parseTokens.d.cts +7 -20
  166. package/dist/tokens/parseTokens.d.ts +7 -20
  167. package/dist/tokens/parseTokens.js +1 -2
  168. package/dist/types-BVfWAIpr.d.cts +909 -0
  169. package/dist/types-BVfWAIpr.d.ts +909 -0
  170. package/dist/types-BkcFcA6N.d.cts +909 -0
  171. package/dist/types-BkcFcA6N.d.ts +909 -0
  172. package/dist/types-C7KJV1b1.d.cts +943 -0
  173. package/dist/types-C7KJV1b1.d.ts +943 -0
  174. package/dist/types-DVTR9ROz.d.cts +942 -0
  175. package/dist/types-DVTR9ROz.d.ts +942 -0
  176. package/dist/types-JTm5E7im.d.cts +943 -0
  177. package/dist/types-JTm5E7im.d.ts +943 -0
  178. package/dist/types-uSRlDJAd.d.cts +942 -0
  179. package/dist/types-uSRlDJAd.d.ts +942 -0
  180. package/package.json +13 -1
  181. package/dist/VStack-BFIFJUVx.d.cts +0 -177
  182. package/dist/VStack-zgq0Zq3N.d.ts +0 -177
  183. package/dist/index.native-Gbm66c6M.d.ts +0 -317
  184. package/dist/index.native-OW5d35eT.d.cts +0 -317
  185. package/dist/styles/globals.css +0 -1
  186. package/dist/types-BofdnBTe.d.cts +0 -436
  187. package/dist/types-BofdnBTe.d.ts +0 -436
  188. package/dist/types-CLPge83Y.d.cts +0 -436
  189. package/dist/types-CLPge83Y.d.ts +0 -436
@@ -1,23 +1,274 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { c as PressableProps, e as VStackProps, b as IconProps, a as BoxProps, d as TextProps } from '../VStack-BFIFJUVx.cjs';
3
- import { aX as UniversalAvatarProps, aZ as UniversalButtonProps, b2 as UniversalTextProps, av as Overflow, T as ButtonVariant, N as ButtonSize, a_ as UniversalIconButtonProps, a0 as Display, b1 as UniversalTextInputProps } from '../types-BofdnBTe.cjs';
4
- import * as react from 'react';
5
- import react__default, { PropsWithChildren, TableHTMLAttributes, TdHTMLAttributes } from 'react';
2
+ import * as React$1 from 'react';
3
+ import React__default, { PropsWithChildren, Ref, FC, TableHTMLAttributes, TdHTMLAttributes } from 'react';
6
4
  import * as _ariakit_react from '@ariakit/react';
7
- import { PopoverProviderProps, PopoverProps, DialogProps, useDialogStore, DialogStore, DialogDismiss, Popover as Popover$1, PopoverArrow as PopoverArrow$1, PopoverAnchor as PopoverAnchor$1, PopoverDescription as PopoverDescription$1, PopoverDismiss as PopoverDismiss$1, PopoverProvider as PopoverProvider$1, PopoverDisclosure as PopoverDisclosure$1, PopoverDisclosureArrow as PopoverDisclosureArrow$1, TabProviderProps, TabListProps, TabPanelProps } from '@ariakit/react';
5
+ import { PopoverProviderProps, PopoverProps as PopoverProps$1, DialogProps, useDialogStore, DialogStore, DialogDismiss, PopoverArrow as PopoverArrow$1, PopoverAnchor as PopoverAnchor$1, PopoverDescription as PopoverDescription$1, PopoverDismiss as PopoverDismiss$1, PopoverProvider as PopoverProvider$1, PopoverDisclosure as PopoverDisclosure$1, PopoverDisclosureArrow as PopoverDisclosureArrow$1, TabProviderProps, TabListProps, TabPanelProps } from '@ariakit/react';
8
6
  export { DialogStore as ModalStore, TabListProps, TabPanelProps, TabProviderProps as TabsProps, usePopoverStore } from '@ariakit/react';
7
+ import { ButtonProps } from '@yahoo/uds/client';
9
8
  import { ToastContainerProps } from 'react-toastify';
10
9
  export { toast } from 'react-toastify';
11
10
 
11
+ declare const alwaysPalette: {
12
+ white: string;
13
+ black: string;
14
+ transparent: string;
15
+ current: string;
16
+ };
17
+
18
+ type CorePaletteAlias = 'brand' | 'accent' | 'alert' | 'positive' | 'warning';
19
+ type BackgroundPaletteAlias = 'primary' | 'secondary';
20
+ type ForegroundPaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'on-color';
21
+ type LinePaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted';
22
+ type AlwaysPalette = typeof alwaysPalette;
23
+ type AlwaysPaletteAlias = keyof AlwaysPalette;
24
+ type ForegroundColor = CorePaletteAlias | ForegroundPaletteAlias | AlwaysPaletteAlias;
25
+ type LineColor = CorePaletteAlias | LinePaletteAlias | AlwaysPaletteAlias;
26
+ type BackgroundColor = CorePaletteAlias | BackgroundPaletteAlias | AlwaysPaletteAlias;
27
+ type TextVariant = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'caption1' | 'caption2' | 'legal1';
28
+ type FontAlias = 'sans' | 'sans-alt' | 'serif' | 'serif-alt' | 'mono';
29
+ type FontWeightDescriptive = 'thin' | 'extralight' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
30
+ type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
31
+ type TShirtSize = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
32
+ type TShirtSizeCommon = Extract<TShirtSize, 'sm' | 'md' | 'lg'>;
33
+ type AvatarSize = TShirtSizeCommon;
34
+ type IconSize = TShirtSizeCommon;
35
+ type SpacingAlias = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40' | '44' | '48' | '52' | '56' | '60' | '64' | '72' | '80' | '96';
36
+ type BorderRadius = TShirtSize;
37
+ type BorderWidth = 'none' | 'thin' | 'medium' | 'thick';
38
+ type Flex = '1' | 'auto' | 'initial' | 'none';
39
+ type FlexGrow = '0' | '1' | '2' | '3';
40
+ type FlexShrink = '0' | '1';
41
+ type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
42
+ type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
43
+ type FlexAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
44
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
45
+ type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
46
+ type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
47
+ type FlexBasis = 'min-content';
48
+ type Display = 'block' | 'inline-block' | 'inline' | 'flex' | 'inline-flex' | 'table' | 'inline-table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'table-row' | 'flow-root' | 'grid' | 'contents';
49
+ type Overflow = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
50
+ type Position = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
51
+ type ImageStyleProps = {
52
+ /**
53
+ * Determines how the image should be resized to fit its container.
54
+ */
55
+ contentFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
56
+ };
57
+ interface BorderStyleProps {
58
+ /** Add a border radius to all corners of the box. */
59
+ borderRadius?: BorderRadius;
60
+ /** Add a border radius to top left corner of the box. */
61
+ borderTopStartRadius?: BorderRadius;
62
+ /** Add a border radius to top right corner of the box. */
63
+ borderTopEndRadius?: BorderRadius;
64
+ /** Add a border radius to bottom left corner of the box. */
65
+ borderBottomStartRadius?: BorderRadius;
66
+ /** Add a border radius to bottom right corner of the box. */
67
+ borderBottomEndRadius?: BorderRadius;
68
+ /** Adds a custom border color from the palette */
69
+ borderColor?: LineColor;
70
+ /** Start border color */
71
+ borderStartColor?: LineColor;
72
+ /** End border color */
73
+ borderEndColor?: LineColor;
74
+ /** Top border color */
75
+ borderTopColor?: LineColor;
76
+ /** Bottom border color */
77
+ borderBottomColor?: LineColor;
78
+ /** Shorthand property to the width of an element's border. */
79
+ borderWidth?: BorderWidth;
80
+ /** Sets the width of the top and bottom border of an element. */
81
+ borderVerticalWidth?: BorderWidth;
82
+ /** Sets the width of the start (left) and end (right) border of an element. */
83
+ borderHorizontalWidth?: BorderWidth;
84
+ /** Sets the width of the start (left) border of an element. */
85
+ borderStartWidth?: BorderWidth;
86
+ /** Sets the width of the end (right) border of an element. */
87
+ borderEndWidth?: BorderWidth;
88
+ /** Sets the width of the top border of an element. */
89
+ borderTopWidth?: BorderWidth;
90
+ /** Sets the width of the bottom border of an element. */
91
+ borderBottomWidth?: BorderWidth;
92
+ }
93
+ interface LayoutStyleProps {
94
+ /** Sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
95
+ display?: Display;
96
+ /** Shorthand property which sets the desired behavior when content does not fit in the parent element box (overflows) in the horizontal and/or vertical direction. */
97
+ overflow?: Overflow;
98
+ /** Sets what shows when content overflows a block-level element's left and right edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
99
+ overflowX?: Overflow;
100
+ /** sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
101
+ overflowY?: Overflow;
102
+ /** Sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
103
+ position?: Position;
104
+ }
105
+ interface SpacingStyleProps {
106
+ /** Apply inner spacing on all sides. */
107
+ spacing?: SpacingAlias;
108
+ /** Apply inner spacing on the leading and trailing sides. */
109
+ spacingHorizontal?: SpacingAlias;
110
+ /** Apply inner spacing on the top and bottom sides. */
111
+ spacingVertical?: SpacingAlias;
112
+ /** Apply inner spacing on the bottom side. */
113
+ spacingBottom?: SpacingAlias;
114
+ /** Apply inner spacing on the trailing side. */
115
+ spacingEnd?: SpacingAlias;
116
+ /** Apply inner spacing on the leading side. */
117
+ spacingStart?: SpacingAlias;
118
+ /** Apply inner spacing on the top side. */
119
+ spacingTop?: SpacingAlias;
120
+ /** Apply negative outer spacing on all sides. */
121
+ offset?: SpacingAlias;
122
+ /** Apply negative outer spacing on the top and bottom sides. */
123
+ offsetVertical?: SpacingAlias;
124
+ /** Apply negative outer spacing on the leading and trailing sides. */
125
+ offsetHorizontal?: SpacingAlias;
126
+ /** Apply negative outer spacing on the bottom side. */
127
+ offsetBottom?: SpacingAlias;
128
+ /** Apply negative outer spacing on the trailing side. */
129
+ offsetEnd?: SpacingAlias;
130
+ /** Apply negative outer spacing on the leading side. */
131
+ offsetStart?: SpacingAlias;
132
+ /** Apply negative outer spacing on the top side. */
133
+ offsetTop?: SpacingAlias;
134
+ /** Control the horizontal gutters between grid and flexbox items. */
135
+ columnGap?: SpacingAlias;
136
+ /** Control the vertical gutters between grid and flexbox items. */
137
+ rowGap?: SpacingAlias;
138
+ }
139
+ interface FlexStyleProps {
140
+ /** Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
141
+ alignContent?: FlexAlignContent;
142
+ /** Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. */
143
+ alignItems?: FlexAlignItems;
144
+ /** Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis. */
145
+ alignSelf?: FlexAlignSelf;
146
+ /** Sets how a flex item will grow or shrink to fit the space available in its flex container. */
147
+ flex?: Flex;
148
+ /** Sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
149
+ flexDirection?: FlexDirection;
150
+ /** Sets the flex grow factor, which specifies how much of the flex container's remaining space should be assigned to the flex item's main size. */
151
+ flexGrow?: FlexGrow;
152
+ /** Sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
153
+ flexShrink?: FlexShrink;
154
+ /** Sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. */
155
+ flexWrap?: FlexWrap;
156
+ /** Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. */
157
+ justifyContent?: FlexJustifyContent;
158
+ /** Sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with box-sizing. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */
159
+ flexBasis?: FlexBasis;
160
+ }
161
+ interface TextStyleProps {
162
+ /** Color of a Text or Icon element */
163
+ color?: ForegroundColor;
164
+ /** Color of placeholder text */
165
+ placeholderColor?: ForegroundColor;
166
+ /** Font family for the text */
167
+ fontFamily?: TextVariant | FontAlias;
168
+ /** Font size of the text */
169
+ fontSize?: TextVariant;
170
+ /** Font weight of the text */
171
+ fontWeight?: TextVariant | FontWeightDescriptive;
172
+ /** Line height of the text */
173
+ lineHeight?: TextVariant;
174
+ /** Text alignment of the text */
175
+ textAlign?: 'center' | 'justify' | 'start' | 'end';
176
+ /** Sets the text transform for the text */
177
+ textTransform?: TextVariant | TextTransform;
178
+ }
179
+ interface BackgroundStyleProps {
180
+ /** Sets the background color. */
181
+ backgroundColor?: BackgroundColor;
182
+ }
183
+ interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, LayoutStyleProps, SpacingStyleProps {
184
+ /**
185
+ * When asChild is set to true, the component's child will be cloned and passed
186
+ * the props and behavior required to make it functional.
187
+ */
188
+ asChild?: boolean;
189
+ }
190
+ interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
191
+ gap?: SpacingAlias;
192
+ }
193
+ interface UniversalTextProps extends PropsWithChildren, TextStyleProps, UniversalBoxProps {
194
+ /** Style of text. */
195
+ variant?: TextVariant;
196
+ /** Color of the text. */
197
+ color?: ForegroundColor;
198
+ }
199
+ type SvgIcon = (props: Partial<UniversalIconProps>) => JSX.Element;
200
+ type IconVariant = 'fill' | 'outline';
201
+ interface UniversalIconProps {
202
+ /** Icon to render from the icons package. */
203
+ name: SvgIcon;
204
+ /** Size of the icon. */
205
+ size?: IconSize;
206
+ /** Variant for icon. Either fill or outline. */
207
+ variant?: IconVariant;
208
+ /** Color of the icon. */
209
+ color?: ForegroundColor;
210
+ }
211
+ interface UniversalPressableProps extends UniversalBoxProps {
212
+ onPress?: () => void;
213
+ }
214
+ interface UniversalImageProps extends Omit<UniversalBoxProps, 'width' | 'height'>, ImageStyleProps {
215
+ /** The source URL of the image. */
216
+ src: string;
217
+ /** Provides fallback (alternate) text to display when the image specified by the Image element is not loaded. */
218
+ alt?: string;
219
+ /** Width of the image in px. */
220
+ width?: number;
221
+ /** Height of the image in pixel. */
222
+ height?: number;
223
+ }
224
+ interface UniversalAvatarProps extends UniversalImageProps {
225
+ /** The size of the Avatar. */
226
+ size?: AvatarSize;
227
+ /** The shape of the Avatar. */
228
+ shape?: BorderRadius;
229
+ }
230
+ interface UniversalTextInputProps {
231
+ disabled?: boolean;
232
+ required?: boolean;
233
+ backgroundColor?: BackgroundColor;
234
+ borderColor?: LineColor;
235
+ borderWidth?: BorderWidth;
236
+ borderRadius?: BorderRadius;
237
+ color?: ForegroundColor;
238
+ fontSize?: TextVariant;
239
+ placeholderColor?: ForegroundColor;
240
+ spacingVertical?: SpacingAlias;
241
+ spacingHorizontal?: SpacingAlias;
242
+ }
243
+
244
+ type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
245
+ interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
246
+ }
247
+
248
+ type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li';
249
+ type TextProps = UniversalTextProps & {
250
+ /** Ref passed to the inner container. */
251
+ ref?: Ref<HTMLElement>;
252
+ /** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
253
+ as?: TextElementTagName;
254
+ } & Omit<JSX.IntrinsicElements[TextElementTagName], 'color'>;
255
+
256
+ type DivProps$1 = React.HTMLAttributes<HTMLDivElement>;
257
+ interface BoxProps extends UniversalBoxProps, DivProps$1 {
258
+ }
259
+
260
+ type VStackProps = UniversalStackProps & DivProps$1;
261
+
12
262
  interface AccordionProps extends PressableProps {
13
263
  label: string;
14
264
  open?: boolean;
15
265
  onClick?: () => void;
16
266
  _content?: VStackProps;
267
+ textProps?: TextProps;
17
268
  }
18
- declare function Accordion({ label, children, onClick, open, spacingHorizontal, _content, className, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
269
+ declare function Accordion({ label, children, onClick, open, spacingHorizontal, _content, className, textProps, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
19
270
 
20
- type NativeImageProps = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
271
+ type NativeImageProps = Omit<React__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
21
272
  interface AvatarProps extends NativeImageProps, UniversalAvatarProps {
22
273
  }
23
274
  /**
@@ -25,38 +276,16 @@ interface AvatarProps extends NativeImageProps, UniversalAvatarProps {
25
276
  */
26
277
  declare function Avatar({ size: avatarSize, shape: borderRadius, src, alt, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
27
278
 
28
- interface ButtonProps extends PressableProps, UniversalButtonProps {
279
+ interface CheckBoxProps {
280
+ label: string;
281
+ checked: boolean;
282
+ onChange: (checked: boolean) => void;
283
+ }
284
+ declare const CheckBox: FC<CheckBoxProps>;
285
+
286
+ type SVGElementProps = Omit<React.HTMLAttributes<SVGSVGElement>, 'color'>;
287
+ interface IconProps extends UniversalIconProps, SVGElementProps {
29
288
  }
30
- /**
31
- * **🖲️ A button element that can be used to trigger an action**
32
- *
33
- * @description
34
- * The Button component is a button that can be used to trigger an action. It can be used to submit a form, navigate to a new page, or trigger an action.
35
- * Consider an [IconButton](./icon-button) for buttons that only contain an icon.
36
- *
37
- * @see The {@link http://yo/uds/docs/components/button Button Docs} for more info
38
- *
39
- * @example
40
- * ```tsx
41
- * import { Button, HStack } from "@yahoo/uds"
42
- *
43
- * export function Demo() {
44
- * return (
45
- * <HStack gap="2">
46
- * <Button variant="accent" onClick={console.log}>Save</Button>
47
- * <Button variant="accent-outline" onClick={console.log}>Cancel</Button>
48
- * </HStack>
49
- * )
50
- * }
51
- * ```
52
- *
53
- * @usage
54
- * - If you need a button.
55
- * - If you have a form submit action
56
- *
57
- * @related [Icon](./Icon.tsx), [IconButton](./IconButton.tsx), and [Pressable](./Pressable.tsx)
58
- **/
59
- declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
60
289
 
61
290
  interface ChipProps {
62
291
  children?: string;
@@ -76,7 +305,7 @@ declare const Dropdown: typeof _ariakit_react.PopoverProvider;
76
305
  interface DropdownItemPressableProps extends Omit<PressableProps, 'onClick'> {
77
306
  onClick?: (close: () => void) => void;
78
307
  }
79
- declare const DropdownItemPressable: react.ForwardRefExoticComponent<DropdownItemPressableProps & react.RefAttributes<HTMLButtonElement>>;
308
+ declare const DropdownItemPressable: React$1.ForwardRefExoticComponent<DropdownItemPressableProps & React$1.RefAttributes<HTMLButtonElement>>;
80
309
 
81
310
  interface DropdownItemProps extends DropdownItemPressableProps {
82
311
  startIcon?: IconProps['name'];
@@ -88,48 +317,14 @@ interface DropdownItemProps extends DropdownItemPressableProps {
88
317
  }
89
318
  declare function DropdownItem({ title, description, _title, _description, startIcon, endIcon, ...props }: DropdownItemProps): react_jsx_runtime.JSX.Element;
90
319
 
91
- interface DropdownItemsProps extends React.PropsWithChildren, Omit<PopoverProps, 'children'> {
320
+ interface DropdownItemsProps extends React.PropsWithChildren, Omit<PopoverProps$1, 'children'> {
92
321
  overflow?: Overflow;
93
322
  }
94
- declare const DropdownItems: react.ForwardRefExoticComponent<Omit<DropdownItemsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
323
+ declare const DropdownItems: React$1.ForwardRefExoticComponent<Omit<DropdownItemsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
95
324
 
96
- interface DropdownTriggerProps extends PressableProps {
97
- children: React.ReactNode;
98
- variant?: ButtonVariant;
99
- size?: ButtonSize;
100
- }
101
- declare function DropdownTrigger({ children, variant, size, ...props }: DropdownTriggerProps): react_jsx_runtime.JSX.Element;
102
-
103
- interface IconButtonProps extends PressableProps, UniversalIconButtonProps {
325
+ interface DropdownTriggerProps extends ButtonProps {
104
326
  }
105
- /**
106
- * **⚙️️ An icon button element that can be used to trigger an action**
107
- *
108
- * @description
109
- * An icon button is essentially an interactive icon. They should be used to
110
- * display an icon which, when clicked, allows the user to trigger an action.
111
- * Icon buttons provide additional features such hover states, focus states, and
112
- * pressable functionality.
113
- *
114
- * @see
115
- * Check out the {@link http://yo/uds/docs/components/icon-button IconButton Docs} for more info
116
- *
117
- * @usage
118
- * - If you need a button that only contains an icon.
119
- * - If you need a button that is used to trigger a non-critical action.
120
- *
121
- * @example
122
- * ```tsx
123
- * import { IconButton } from "@yahoo/uds";
124
- * import { AddFolder } from "@yahoo/uds-icons";
125
- *
126
- * <IconButton name={AddFolder} color="primary" variant="accent" iconVariant="outline" />
127
- * ```
128
- *
129
- * @related [Icon](./Icon.tsx), [Button](./Button.tsx), and [Pressable](./Pressable.tsx)
130
- *
131
- **/
132
- declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
327
+ declare function DropdownTrigger({ children, ...props }: DropdownTriggerProps): react_jsx_runtime.JSX.Element;
133
328
 
134
329
  interface ModalProps extends DialogProps {
135
330
  }
@@ -142,11 +337,12 @@ declare function Modal({ className, ...props }: ModalProps): react_jsx_runtime.J
142
337
  declare const ModalDismiss: typeof DialogDismiss;
143
338
 
144
339
  interface PopoverHeadingProps extends PropsWithChildren {
145
- leading?: react__default.ReactNode;
146
- trailing?: react__default.ReactNode;
340
+ leading?: React__default.ReactNode;
341
+ trailing?: React__default.ReactNode;
147
342
  }
148
343
  declare function PopoverHeading({ children, leading, trailing }: PopoverHeadingProps): react_jsx_runtime.JSX.Element;
149
- declare const Popover: typeof Popover$1;
344
+ type PopoverProps = Omit<PopoverProps$1, 'key'>;
345
+ declare const Popover: (props: PopoverProps$1<"div">) => react_jsx_runtime.JSX.Element | null;
150
346
  declare const PopoverArrow: typeof PopoverArrow$1;
151
347
  declare const PopoverAnchor: typeof PopoverAnchor$1;
152
348
  declare const PopoverDescription: typeof PopoverDescription$1;
@@ -167,7 +363,7 @@ declare function Spinner({ className, ...props }: SpinnerProps): react_jsx_runti
167
363
  type TableColumn<T> = {
168
364
  title?: string;
169
365
  dataIndex: keyof T;
170
- render?: (value: T[keyof T], record: T, index: number) => react__default.ReactNode;
366
+ render?: (value: T[keyof T], record: T, index: number) => React__default.ReactNode;
171
367
  };
172
368
  type TableRootProps = TableHTMLAttributes<HTMLTableElement> & BoxProps & {
173
369
  /** Sets whether an element is treated as a block or inline box and the
@@ -207,27 +403,27 @@ type TableProps<T> = {
207
403
  */
208
404
  declare function Table<T>({ data, columns, ...props }: TableProps<T>): react_jsx_runtime.JSX.Element;
209
405
  declare namespace Table {
210
- var Root: react__default.ForwardRefExoticComponent<react__default.TableHTMLAttributes<HTMLTableElement> & BoxProps & {
406
+ var Root: React__default.ForwardRefExoticComponent<React__default.TableHTMLAttributes<HTMLTableElement> & BoxProps & {
211
407
  /** Sets whether an element is treated as a block or inline box and the
212
408
  * layout used for its children, such as flow layout, grid or flex.
213
409
  * @default "table"
214
410
  */
215
- display?: Display | undefined;
411
+ display?: BoxProps["display"];
216
412
  } & {
217
- children?: react__default.ReactNode;
218
- } & react__default.RefAttributes<HTMLTableElement>>;
219
- var Row: react__default.ForwardRefExoticComponent<react__default.HTMLAttributes<HTMLTableRowElement> & BoxProps & {
220
- children?: react__default.ReactNode;
221
- } & react__default.RefAttributes<HTMLTableRowElement>>;
222
- var Header: react__default.ForwardRefExoticComponent<react__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
223
- children?: react__default.ReactNode;
224
- } & react__default.RefAttributes<HTMLTableSectionElement>>;
225
- var Body: react__default.ForwardRefExoticComponent<react__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
226
- children?: react__default.ReactNode;
227
- } & react__default.RefAttributes<HTMLTableSectionElement>>;
228
- var Cell: react__default.ForwardRefExoticComponent<TableCellProps & {
229
- children?: react__default.ReactNode;
230
- } & react__default.RefAttributes<HTMLTableCellElement | HTMLTableHeaderCellElement>>;
413
+ children?: React__default.ReactNode | undefined;
414
+ } & React__default.RefAttributes<HTMLTableElement>>;
415
+ var Row: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableRowElement> & BoxProps & {
416
+ children?: React__default.ReactNode | undefined;
417
+ } & React__default.RefAttributes<HTMLTableRowElement>>;
418
+ var Header: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
419
+ children?: React__default.ReactNode | undefined;
420
+ } & React__default.RefAttributes<HTMLTableSectionElement>>;
421
+ var Body: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
422
+ children?: React__default.ReactNode | undefined;
423
+ } & React__default.RefAttributes<HTMLTableSectionElement>>;
424
+ var Cell: React__default.ForwardRefExoticComponent<TableCellProps & {
425
+ children?: React__default.ReactNode | undefined;
426
+ } & React__default.RefAttributes<HTMLTableCellElement | HTMLTableHeaderCellElement>>;
231
427
  }
232
428
 
233
429
  interface TabProps extends React.PropsWithChildren {
@@ -237,9 +433,9 @@ interface TabProps extends React.PropsWithChildren {
237
433
  startIcon?: IconProps['name'];
238
434
  }
239
435
  declare function Tabs(props: TabProviderProps): react_jsx_runtime.JSX.Element;
240
- declare const TabList: react.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
436
+ declare const TabList: React$1.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
241
437
  declare const Tab: ({ asChild, label, value, startIcon }: TabProps) => react_jsx_runtime.JSX.Element;
242
- declare const TabPanel: react.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
438
+ declare const TabPanel: React$1.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
243
439
 
244
440
  type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | 'color'>;
245
441
  interface TextInputProps extends NativeTextInputProps, UniversalTextInputProps {
@@ -260,4 +456,4 @@ interface ToastProps extends ToastContainerProps {
260
456
  }
261
457
  declare function ToastContainer(props: ToastProps): react_jsx_runtime.JSX.Element;
262
458
 
263
- export { Accordion, type AccordionProps, Avatar, type AvatarProps, Button, type ButtonProps, Chip, type ChipProps, Dropdown, DropdownItem, DropdownItemPressable, type DropdownItemPressableProps, type DropdownItemProps, DropdownItems, type DropdownItemsProps, type DropdownProps, DropdownTrigger, type DropdownTriggerProps, IconButton, type IconButtonProps, Modal, ModalDismiss, ModalHeader, type ModalProps, Popover, PopoverAnchor, PopoverArrow, PopoverDescription, PopoverDisclosure, PopoverDisclosureArrow, PopoverDismiss, PopoverHeading, type PopoverHeadingProps, PopoverProvider, Spinner, type SpinnerProps, Tab, TabList, TabPanel, type TabProps, Table, type TableProps, Tabs, TextInput, TextInputGroup, type TextInputGroupProps, TextInputLabel, type TextInputLabelProps, type TextInputProps, ToastContainer, type ToastProps, useModalStore };
459
+ export { Accordion, type AccordionProps, Avatar, type AvatarProps, CheckBox, Chip, type ChipProps, Dropdown, DropdownItem, DropdownItemPressable, type DropdownItemPressableProps, type DropdownItemProps, DropdownItems, type DropdownItemsProps, type DropdownProps, DropdownTrigger, type DropdownTriggerProps, Modal, ModalDismiss, ModalHeader, type ModalProps, Popover, PopoverAnchor, PopoverArrow, PopoverDescription, PopoverDisclosure, PopoverDisclosureArrow, PopoverDismiss, PopoverHeading, type PopoverHeadingProps, type PopoverProps, PopoverProvider, Spinner, type SpinnerProps, Tab, TabList, TabPanel, type TabProps, Table, type TableProps, Tabs, TextInput, TextInputGroup, type TextInputGroupProps, TextInputLabel, type TextInputLabelProps, type TextInputProps, ToastContainer, type ToastProps, useModalStore };