@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.
Files changed (28) hide show
  1. package/dist/cjs/components/index.d.ts +0 -2
  2. package/dist/cjs/components/inputs/button/Button.props.d.ts +3 -0
  3. package/dist/cjs/components/inputs/icon-button/IconButton.props.d.ts +3 -0
  4. package/dist/cjs/components/layout/card/Card.props.d.ts +6 -8
  5. package/dist/cjs/components/layout/grid/Grid.d.ts +14 -0
  6. package/dist/cjs/components/layout/grid/Grid.props.d.ts +47 -0
  7. package/dist/cjs/components/layout/grid/Grid.styles.d.ts +7 -0
  8. package/dist/cjs/components/layout/grid/index.d.ts +2 -0
  9. package/dist/cjs/components/layout/stack/Stack.props.d.ts +8 -9
  10. package/dist/cjs/index.js +4 -4
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/interfaces/card.types.d.ts +3 -3
  13. package/dist/cjs/interfaces/index.d.ts +1 -2
  14. package/dist/esm/components/index.d.ts +0 -2
  15. package/dist/esm/components/inputs/button/Button.props.d.ts +3 -0
  16. package/dist/esm/components/inputs/icon-button/IconButton.props.d.ts +3 -0
  17. package/dist/esm/components/layout/card/Card.props.d.ts +6 -8
  18. package/dist/esm/components/layout/grid/Grid.d.ts +14 -0
  19. package/dist/esm/components/layout/grid/Grid.props.d.ts +47 -0
  20. package/dist/esm/components/layout/grid/Grid.styles.d.ts +7 -0
  21. package/dist/esm/components/layout/grid/index.d.ts +2 -0
  22. package/dist/esm/components/layout/stack/Stack.props.d.ts +8 -9
  23. package/dist/esm/index.js +4 -4
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/interfaces/card.types.d.ts +3 -3
  26. package/dist/esm/interfaces/index.d.ts +1 -2
  27. package/dist/index.d.ts +12 -19
  28. 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?: StackDirection;
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?: StackAlign;
215
+ align?: CSSProperties['alignItems'];
223
216
  /** Justification of items on the main axis */
224
- justify?: StackJustify;
217
+ justify?: CSSProperties['justifyContent'];
225
218
  /** Whether items should wrap */
226
- wrap?: StackWrap;
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?: CardDirection;
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?: StackAlign;
253
+ align?: CSSProperties['alignItems'];
261
254
  /** Justification of items on the main axis */
262
- justify?: StackJustify;
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, CardDirection, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DrawerItemProps, IconButtonProps, IconProps, StackAlign, StackDirection, StackJustify, StackProps, StackWrap, TextProps, TextVariantStyle, TextVariants };
329
+ export type { AccordionProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DrawerItemProps, IconButtonProps, IconProps, StackProps, TextProps, TextVariantStyle, TextVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "0.5.2",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "Aurora Design System - React Components Library",
6
6
  "main": "dist/cjs/index.js",