@aurora-ds/components 0.5.2 → 0.6.1
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/cjs/components/index.d.ts +0 -2
- package/dist/cjs/components/inputs/button/Button.props.d.ts +3 -0
- package/dist/cjs/components/inputs/icon-button/IconButton.props.d.ts +3 -0
- package/dist/cjs/components/layout/card/Card.props.d.ts +6 -8
- package/dist/cjs/components/layout/grid/Grid.d.ts +14 -0
- package/dist/cjs/components/layout/grid/Grid.props.d.ts +47 -0
- package/dist/cjs/components/layout/grid/Grid.styles.d.ts +7 -0
- package/dist/cjs/components/layout/grid/index.d.ts +2 -0
- package/dist/cjs/components/layout/stack/Stack.props.d.ts +8 -9
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/card.types.d.ts +3 -3
- package/dist/cjs/interfaces/index.d.ts +1 -2
- package/dist/esm/components/index.d.ts +0 -2
- package/dist/esm/components/inputs/button/Button.props.d.ts +3 -0
- package/dist/esm/components/inputs/icon-button/IconButton.props.d.ts +3 -0
- package/dist/esm/components/layout/card/Card.props.d.ts +6 -8
- package/dist/esm/components/layout/grid/Grid.d.ts +14 -0
- package/dist/esm/components/layout/grid/Grid.props.d.ts +47 -0
- package/dist/esm/components/layout/grid/Grid.styles.d.ts +7 -0
- package/dist/esm/components/layout/grid/index.d.ts +2 -0
- package/dist/esm/components/layout/stack/Stack.props.d.ts +8 -9
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/card.types.d.ts +3 -3
- package/dist/esm/interfaces/index.d.ts +1 -2
- package/dist/index.d.ts +12 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -167,6 +167,8 @@ type ButtonProps = {
|
|
|
167
167
|
active?: boolean;
|
|
168
168
|
/** Disabled state */
|
|
169
169
|
disabled?: boolean;
|
|
170
|
+
/** Custom text color (overrides variant color) */
|
|
171
|
+
textColor?: keyof Theme['colors'];
|
|
170
172
|
};
|
|
171
173
|
|
|
172
174
|
/**
|
|
@@ -179,17 +181,6 @@ type ButtonProps = {
|
|
|
179
181
|
*/
|
|
180
182
|
declare const Button: FC<ButtonProps>;
|
|
181
183
|
|
|
182
|
-
/** Stack wrap options */
|
|
183
|
-
type StackWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
184
|
-
/** Stack justify options */
|
|
185
|
-
type StackJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
186
|
-
/** Stack alignment options */
|
|
187
|
-
type StackAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
188
|
-
type StackDirection = 'row' | 'column';
|
|
189
|
-
|
|
190
|
-
/** Card direction - reuses StackDirection */
|
|
191
|
-
type CardDirection = StackDirection;
|
|
192
|
-
|
|
193
184
|
type IconButtonProps = {
|
|
194
185
|
/** IconButton icon */
|
|
195
186
|
icon?: ReactNode;
|
|
@@ -203,6 +194,8 @@ type IconButtonProps = {
|
|
|
203
194
|
active?: boolean;
|
|
204
195
|
/** Disabled state */
|
|
205
196
|
disabled?: boolean;
|
|
197
|
+
/** Custom text/icon color (overrides variant color) */
|
|
198
|
+
textColor?: keyof Theme['colors'];
|
|
206
199
|
};
|
|
207
200
|
|
|
208
201
|
declare const IconButton: FC<IconButtonProps>;
|
|
@@ -211,7 +204,7 @@ type StackProps = {
|
|
|
211
204
|
/** Stack children elements */
|
|
212
205
|
children: ReactNode;
|
|
213
206
|
/** Flex direction of the stack */
|
|
214
|
-
direction?:
|
|
207
|
+
direction?: CSSProperties['flexDirection'];
|
|
215
208
|
/** Gap between children (theme spacing or CSS value) */
|
|
216
209
|
gap?: keyof Theme['spacing'];
|
|
217
210
|
/** Width of the stack container */
|
|
@@ -219,11 +212,11 @@ type StackProps = {
|
|
|
219
212
|
/** Height of the stack container */
|
|
220
213
|
height?: CSSProperties['height'];
|
|
221
214
|
/** Alignment of items on the cross axis */
|
|
222
|
-
align?:
|
|
215
|
+
align?: CSSProperties['alignItems'];
|
|
223
216
|
/** Justification of items on the main axis */
|
|
224
|
-
justify?:
|
|
217
|
+
justify?: CSSProperties['justifyContent'];
|
|
225
218
|
/** Whether items should wrap */
|
|
226
|
-
wrap?:
|
|
219
|
+
wrap?: CSSProperties['flexWrap'];
|
|
227
220
|
/** Padding inside the stack */
|
|
228
221
|
padding?: keyof Theme['spacing'];
|
|
229
222
|
};
|
|
@@ -243,7 +236,7 @@ type CardProps = {
|
|
|
243
236
|
/** Card children elements */
|
|
244
237
|
children: ReactNode;
|
|
245
238
|
/** Flex direction of the card content */
|
|
246
|
-
direction?:
|
|
239
|
+
direction?: CSSProperties['flexDirection'];
|
|
247
240
|
/** Padding inside the card (theme spacing key) */
|
|
248
241
|
padding?: keyof Theme['spacing'];
|
|
249
242
|
/** Width of the card */
|
|
@@ -257,9 +250,9 @@ type CardProps = {
|
|
|
257
250
|
/** Shadow depth of the card */
|
|
258
251
|
shadow?: keyof Theme['shadows'];
|
|
259
252
|
/** Alignment of items on the cross axis */
|
|
260
|
-
align?:
|
|
253
|
+
align?: CSSProperties['alignItems'];
|
|
261
254
|
/** Justification of items on the main axis */
|
|
262
|
-
justify?:
|
|
255
|
+
justify?: CSSProperties['justifyContent'];
|
|
263
256
|
/** Background color of the card */
|
|
264
257
|
backgroundColor?: keyof Theme['colors'];
|
|
265
258
|
/** Border color of the card */
|
|
@@ -333,4 +326,4 @@ type DrawerItemProps = {
|
|
|
333
326
|
declare const DrawerItem: FC<DrawerItemProps>;
|
|
334
327
|
|
|
335
328
|
export { Accordion, Button, Card, Chip, DrawerItem, Icon, IconButton, Stack, Text };
|
|
336
|
-
export type { AccordionProps, ButtonProps, ButtonVariantStyle, ButtonVariants,
|
|
329
|
+
export type { AccordionProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DrawerItemProps, IconButtonProps, IconProps, StackProps, TextProps, TextVariantStyle, TextVariants };
|