@aurora-ds/components 0.5.1 → 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 (76) 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 +50 -1405
  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 +30 -1385
  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
  29. package/dist/cjs/components/button/Button.d.ts +0 -12
  30. package/dist/cjs/components/button/Button.props.d.ts +0 -24
  31. package/dist/cjs/components/button/Button.styles.d.ts +0 -18
  32. package/dist/cjs/components/button/index.d.ts +0 -2
  33. package/dist/cjs/components/card/Card.d.ts +0 -14
  34. package/dist/cjs/components/card/Card.props.d.ts +0 -37
  35. package/dist/cjs/components/card/Card.styles.d.ts +0 -7
  36. package/dist/cjs/components/card/index.d.ts +0 -2
  37. package/dist/cjs/components/icon/Icon.d.ts +0 -35
  38. package/dist/cjs/components/icon/Icon.props.d.ts +0 -14
  39. package/dist/cjs/components/icon/Icon.styles.d.ts +0 -3
  40. package/dist/cjs/components/icon/index.d.ts +0 -2
  41. package/dist/cjs/components/icon-button/IconButton.d.ts +0 -4
  42. package/dist/cjs/components/icon-button/IconButton.props.d.ts +0 -20
  43. package/dist/cjs/components/icon-button/IconButton.styles.d.ts +0 -4
  44. package/dist/cjs/components/icon-button/index.d.ts +0 -2
  45. package/dist/cjs/components/stack/Stack.d.ts +0 -13
  46. package/dist/cjs/components/stack/Stack.props.d.ts +0 -33
  47. package/dist/cjs/components/stack/Stack.styles.d.ts +0 -7
  48. package/dist/cjs/components/stack/index.d.ts +0 -2
  49. package/dist/cjs/components/text/Text.d.ts +0 -19
  50. package/dist/cjs/components/text/Text.props.d.ts +0 -19
  51. package/dist/cjs/components/text/Text.styles.d.ts +0 -4
  52. package/dist/cjs/components/text/index.d.ts +0 -2
  53. package/dist/esm/components/button/Button.d.ts +0 -12
  54. package/dist/esm/components/button/Button.props.d.ts +0 -24
  55. package/dist/esm/components/button/Button.styles.d.ts +0 -18
  56. package/dist/esm/components/button/index.d.ts +0 -2
  57. package/dist/esm/components/card/Card.d.ts +0 -14
  58. package/dist/esm/components/card/Card.props.d.ts +0 -37
  59. package/dist/esm/components/card/Card.styles.d.ts +0 -7
  60. package/dist/esm/components/card/index.d.ts +0 -2
  61. package/dist/esm/components/icon/Icon.d.ts +0 -35
  62. package/dist/esm/components/icon/Icon.props.d.ts +0 -14
  63. package/dist/esm/components/icon/Icon.styles.d.ts +0 -3
  64. package/dist/esm/components/icon/index.d.ts +0 -2
  65. package/dist/esm/components/icon-button/IconButton.d.ts +0 -4
  66. package/dist/esm/components/icon-button/IconButton.props.d.ts +0 -20
  67. package/dist/esm/components/icon-button/IconButton.styles.d.ts +0 -4
  68. package/dist/esm/components/icon-button/index.d.ts +0 -2
  69. package/dist/esm/components/stack/Stack.d.ts +0 -13
  70. package/dist/esm/components/stack/Stack.props.d.ts +0 -33
  71. package/dist/esm/components/stack/Stack.styles.d.ts +0 -7
  72. package/dist/esm/components/stack/index.d.ts +0 -2
  73. package/dist/esm/components/text/Text.d.ts +0 -19
  74. package/dist/esm/components/text/Text.props.d.ts +0 -19
  75. package/dist/esm/components/text/Text.styles.d.ts +0 -4
  76. package/dist/esm/components/text/index.d.ts +0 -2
@@ -1,3 +1,3 @@
1
- import { StackDirection } from '@interfaces/stack.types';
2
- /** Card direction - reuses StackDirection */
3
- export type CardDirection = StackDirection;
1
+ import { CSSProperties } from 'react';
2
+ /** Card direction */
3
+ export type CardDirection = CSSProperties['flexDirection'];
@@ -1,4 +1,3 @@
1
1
  export * from '@interfaces/button.types';
2
2
  export * from '@interfaces/text.types';
3
- export * from '@interfaces/stack.types';
4
- export * from '@interfaces/card.types';
3
+ export * from '@interfaces/chip.types';
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.1",
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",
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { ButtonProps } from '@components/button/Button.props.ts';
3
- /**
4
- * Button component
5
- *
6
- * **Variants:**
7
- * - `contained`: Solid background button (default)
8
- * - `outlined`: Border only button
9
- * - `text`: Text only button without background
10
- */
11
- declare const Button: FC<ButtonProps>;
12
- export default Button;
@@ -1,24 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ButtonVariants } from '@interfaces/button.types';
3
- export type ButtonProps = {
4
- /** Button text label */
5
- label: string;
6
- /** Optional icon to display before label */
7
- startIcon?: ReactNode;
8
- /** Optional icon to display after label */
9
- endIcon?: ReactNode;
10
- /** Click handler */
11
- onClick?: () => void;
12
- /** Visual variant of the button */
13
- variant?: ButtonVariants;
14
- /** Button type attribute */
15
- type?: 'button' | 'submit';
16
- /** Active/pressed state */
17
- active?: boolean;
18
- /** Disabled state */
19
- disabled?: boolean;
20
- };
21
- export type ButtonStyleParams = {
22
- variant?: ButtonVariants;
23
- active?: boolean;
24
- };
@@ -1,18 +0,0 @@
1
- import { ButtonStyleParams } from '@components/button/Button.props.ts';
2
- /**
3
- * Button styles using createStyles from @aurora-ds/theme
4
- *
5
- * Override via className with createStyles:
6
- * ```tsx
7
- * const myStyles = createStyles((theme) => ({
8
- * custom: {
9
- * backgroundColor: theme.colors.accent,
10
- * ':hover': { backgroundColor: theme.colors.accentHover }
11
- * }
12
- * }))
13
- * <Button className={myStyles.custom} label="Custom" />
14
- * ```
15
- */
16
- export declare const BUTTON_STYLES: {
17
- root: (args_0: ButtonStyleParams) => string;
18
- };
@@ -1,2 +0,0 @@
1
- export { default as Button } from '@components/button/Button';
2
- export type { ButtonProps } from '@components/button/Button.props';
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import { CardProps } from '@components/card/Card.props';
3
- /**
4
- * Card component
5
- *
6
- * A container component with a background, border radius, and optional shadow.
7
- * Uses a Stack layout internally for organizing children.
8
- *
9
- * **Direction:**
10
- * - `column`: Vertical layout (default)
11
- * - `row`: Horizontal layout
12
- */
13
- declare const Card: FC<CardProps>;
14
- export default Card;
@@ -1,37 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { CardDirection } from '@interfaces/card.types';
4
- import { StackAlign, StackJustify } from '@interfaces/stack.types';
5
- export type CardProps = {
6
- /** Card children elements */
7
- children: ReactNode;
8
- /** Flex direction of the card content */
9
- direction?: CardDirection;
10
- /** Padding inside the card (theme spacing key) */
11
- padding?: keyof Theme['spacing'];
12
- /** Width of the card */
13
- width?: CSSProperties['width'];
14
- /** Height of the card */
15
- height?: CSSProperties['height'];
16
- /** Gap between children (theme spacing key) */
17
- gap?: keyof Theme['spacing'];
18
- /** Border radius of the card */
19
- radius?: keyof Theme['radius'];
20
- /** Shadow depth of the card */
21
- shadow?: keyof Theme['shadows'];
22
- /** Alignment of items on the cross axis */
23
- align?: StackAlign;
24
- /** Justification of items on the main axis */
25
- justify?: StackJustify;
26
- };
27
- export type CardStyleParams = {
28
- direction: CardDirection;
29
- padding?: keyof Theme['spacing'];
30
- width?: CSSProperties['width'];
31
- height?: CSSProperties['height'];
32
- gap?: keyof Theme['spacing'];
33
- radius: keyof Theme['radius'];
34
- shadow: keyof Theme['shadows'];
35
- align?: StackAlign;
36
- justify?: StackJustify;
37
- };
@@ -1,7 +0,0 @@
1
- import { CardStyleParams } from '@components/card/Card.props';
2
- /**
3
- * Card styles using createStyles from @aurora-ds/theme
4
- */
5
- export declare const CARD_STYLES: {
6
- root: (args_0: CardStyleParams) => string;
7
- };
@@ -1,2 +0,0 @@
1
- export { default as Card } from '@components/card/Card';
2
- export type { CardProps } from '@components/card/Card.props';
@@ -1,35 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconProps } from '@components/icon/Icon.props';
3
- /**
4
- * Icon component - Wrapper for SVG icons with theme-aware styling
5
- *
6
- * **Features:**
7
- * - Theme-aware sizing via font sizes
8
- * - Color and fill support from theme
9
- * - Optional background with padding and border radius
10
- * - Transition animation on color changes
11
- *
12
- * **Usage:**
13
- * ```tsx
14
- * import { SomeIcon } from 'some-icon-library'
15
- *
16
- * <Icon size="md" color="primary">
17
- * <SomeIcon />
18
- * </Icon>
19
- * ```
20
- *
21
- * **With background:**
22
- * ```tsx
23
- * <Icon
24
- * size="lg"
25
- * color="onPrimary"
26
- * backgroundColor="primary"
27
- * padding="sm"
28
- * borderRadius="full"
29
- * >
30
- * <SomeIcon />
31
- * </Icon>
32
- * ```
33
- */
34
- declare const Icon: FC<IconProps>;
35
- export default Icon;
@@ -1,14 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { PropsWithChildren } from 'react';
3
- export type IconProps = PropsWithChildren<{
4
- /** Icon size based on theme font sizes */
5
- size?: keyof Theme['fontSize'];
6
- /** Icon stroke/line color from theme */
7
- color?: keyof Theme['colors'];
8
- /** Background color from theme */
9
- backgroundColor?: keyof Theme['colors'];
10
- /** Padding from theme spacing */
11
- padding?: keyof Theme['spacing'];
12
- /** Border radius from theme */
13
- borderRadius?: keyof Theme['radius'];
14
- }>;
@@ -1,3 +0,0 @@
1
- export declare const ICON_STYLES: {
2
- root: (size?: keyof import("@aurora-ds/theme").BaseFontSize | undefined, color?: keyof import("@aurora-ds/theme").BaseColors | undefined, backgroundColor?: keyof import("@aurora-ds/theme").BaseColors | undefined, padding?: keyof import("@aurora-ds/theme").BaseSpacing | undefined, borderRadius?: keyof import("@aurora-ds/theme").BaseRadius | undefined) => string;
3
- };
@@ -1,2 +0,0 @@
1
- export { default as Icon } from '@components/icon/Icon';
2
- export type { IconProps } from '@components/icon/Icon.props';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconButtonProps } from '@components/icon-button/IconButton.props.ts';
3
- declare const IconButton: FC<IconButtonProps>;
4
- export default IconButton;
@@ -1,20 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ButtonVariants } from '@/interfaces';
3
- export type IconButtonProps = {
4
- /** IconButton icon */
5
- icon?: ReactNode;
6
- /** Click handler */
7
- onClick?: () => void;
8
- /** Visual variant of the button */
9
- variant?: ButtonVariants;
10
- /** Button type attribute */
11
- type?: 'button' | 'submit';
12
- /** Active/pressed state */
13
- active?: boolean;
14
- /** Disabled state */
15
- disabled?: boolean;
16
- };
17
- export type IconButtonStyleParams = {
18
- variant?: ButtonVariants;
19
- active?: boolean;
20
- };
@@ -1,4 +0,0 @@
1
- import { IconButtonStyleParams } from '@components/icon-button/IconButton.props.ts';
2
- export declare const ICON_BUTTON_STYLES: {
3
- root: (args_0: IconButtonStyleParams) => string;
4
- };
@@ -1,2 +0,0 @@
1
- export { default as IconButton } from '@components/icon-button/IconButton';
2
- export type { IconButtonProps } from '@components/icon-button/IconButton.props';
@@ -1,13 +0,0 @@
1
- import { FC } from 'react';
2
- import { StackProps } from '@components/stack/Stack.props';
3
- /**
4
- * Stack component
5
- *
6
- * A flexbox container for laying out children in a row or column.
7
- *
8
- * **Direction:**
9
- * - `row`: Horizontal layout (default)
10
- * - `column`: Vertical layout
11
- */
12
- declare const Stack: FC<StackProps>;
13
- export default Stack;
@@ -1,33 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { StackAlign, StackDirection, StackJustify, StackWrap } from '@interfaces/stack.types';
4
- export type StackProps = {
5
- /** Stack children elements */
6
- children: ReactNode;
7
- /** Flex direction of the stack */
8
- direction?: StackDirection;
9
- /** Gap between children (theme spacing or CSS value) */
10
- gap?: keyof Theme['spacing'];
11
- /** Width of the stack container */
12
- width?: CSSProperties['width'];
13
- /** Height of the stack container */
14
- height?: CSSProperties['height'];
15
- /** Alignment of items on the cross axis */
16
- align?: StackAlign;
17
- /** Justification of items on the main axis */
18
- justify?: StackJustify;
19
- /** Whether items should wrap */
20
- wrap?: StackWrap;
21
- /** Padding inside the stack */
22
- padding?: keyof Theme['spacing'];
23
- };
24
- export type StackStyleParams = {
25
- direction: StackDirection;
26
- gap?: keyof Theme['spacing'];
27
- width?: CSSProperties['width'];
28
- height?: CSSProperties['height'];
29
- align?: StackAlign;
30
- justify?: StackJustify;
31
- wrap?: StackWrap;
32
- padding?: keyof Theme['spacing'];
33
- };
@@ -1,7 +0,0 @@
1
- import { StackStyleParams } from '@components/stack/Stack.props';
2
- /**
3
- * Stack styles using createStyles from @aurora-ds/theme
4
- */
5
- export declare const STACK_STYLES: {
6
- root: (args_0: StackStyleParams) => string;
7
- };
@@ -1,2 +0,0 @@
1
- export { default as Stack } from '@components/stack/Stack';
2
- export type { StackProps } from '@components/stack/Stack.props';
@@ -1,19 +0,0 @@
1
- import { FC } from 'react';
2
- import { TextProps } from '@components/text/Text.props';
3
- /**
4
- * Text component - Renders semantic HTML elements based on variant
5
- *
6
- * **Variants:**
7
- * - `h1-h6`: Heading elements with appropriate styling
8
- * - `p`: Paragraph element with relaxed line height
9
- * - `span`: Inline text element (default)
10
- * - `label`: Label element with medium font weight
11
- *
12
- * **Features:**
13
- * - Automatic HTML tag selection based on variant
14
- * - Theme-aware colors
15
- * - Text truncation with `maxLines`
16
- * - Underline support
17
- */
18
- declare const Text: FC<TextProps>;
19
- export default Text;
@@ -1,19 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { PropsWithChildren } from 'react';
3
- import { TextVariants } from '@interfaces/text.types';
4
- export type TextProps = PropsWithChildren<{
5
- /** Text variant that determines the HTML tag and default styling */
6
- variant?: TextVariants;
7
- /** Text color from theme */
8
- color?: keyof Theme['colors'];
9
- /** Maximum number of lines before truncation with ellipsis */
10
- maxLines?: number;
11
- /** Add underline text decoration */
12
- underline?: boolean;
13
- }>;
14
- export type TextStyleParams = {
15
- variant?: TextVariants;
16
- color?: keyof Theme['colors'];
17
- maxLines?: number;
18
- underline?: boolean;
19
- };
@@ -1,4 +0,0 @@
1
- import { TextStyleParams } from '@components/text/Text.props';
2
- export declare const TEXT_STYLES: {
3
- root: (args_0: TextStyleParams) => string;
4
- };
@@ -1,2 +0,0 @@
1
- export { default as Text } from '@components/text/Text';
2
- export type { TextProps } from '@components/text/Text.props';
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { ButtonProps } from '@components/button/Button.props.ts';
3
- /**
4
- * Button component
5
- *
6
- * **Variants:**
7
- * - `contained`: Solid background button (default)
8
- * - `outlined`: Border only button
9
- * - `text`: Text only button without background
10
- */
11
- declare const Button: FC<ButtonProps>;
12
- export default Button;
@@ -1,24 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ButtonVariants } from '@interfaces/button.types';
3
- export type ButtonProps = {
4
- /** Button text label */
5
- label: string;
6
- /** Optional icon to display before label */
7
- startIcon?: ReactNode;
8
- /** Optional icon to display after label */
9
- endIcon?: ReactNode;
10
- /** Click handler */
11
- onClick?: () => void;
12
- /** Visual variant of the button */
13
- variant?: ButtonVariants;
14
- /** Button type attribute */
15
- type?: 'button' | 'submit';
16
- /** Active/pressed state */
17
- active?: boolean;
18
- /** Disabled state */
19
- disabled?: boolean;
20
- };
21
- export type ButtonStyleParams = {
22
- variant?: ButtonVariants;
23
- active?: boolean;
24
- };
@@ -1,18 +0,0 @@
1
- import { ButtonStyleParams } from '@components/button/Button.props.ts';
2
- /**
3
- * Button styles using createStyles from @aurora-ds/theme
4
- *
5
- * Override via className with createStyles:
6
- * ```tsx
7
- * const myStyles = createStyles((theme) => ({
8
- * custom: {
9
- * backgroundColor: theme.colors.accent,
10
- * ':hover': { backgroundColor: theme.colors.accentHover }
11
- * }
12
- * }))
13
- * <Button className={myStyles.custom} label="Custom" />
14
- * ```
15
- */
16
- export declare const BUTTON_STYLES: {
17
- root: (args_0: ButtonStyleParams) => string;
18
- };
@@ -1,2 +0,0 @@
1
- export { default as Button } from '@components/button/Button';
2
- export type { ButtonProps } from '@components/button/Button.props';
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import { CardProps } from '@components/card/Card.props';
3
- /**
4
- * Card component
5
- *
6
- * A container component with a background, border radius, and optional shadow.
7
- * Uses a Stack layout internally for organizing children.
8
- *
9
- * **Direction:**
10
- * - `column`: Vertical layout (default)
11
- * - `row`: Horizontal layout
12
- */
13
- declare const Card: FC<CardProps>;
14
- export default Card;
@@ -1,37 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { CardDirection } from '@interfaces/card.types';
4
- import { StackAlign, StackJustify } from '@interfaces/stack.types';
5
- export type CardProps = {
6
- /** Card children elements */
7
- children: ReactNode;
8
- /** Flex direction of the card content */
9
- direction?: CardDirection;
10
- /** Padding inside the card (theme spacing key) */
11
- padding?: keyof Theme['spacing'];
12
- /** Width of the card */
13
- width?: CSSProperties['width'];
14
- /** Height of the card */
15
- height?: CSSProperties['height'];
16
- /** Gap between children (theme spacing key) */
17
- gap?: keyof Theme['spacing'];
18
- /** Border radius of the card */
19
- radius?: keyof Theme['radius'];
20
- /** Shadow depth of the card */
21
- shadow?: keyof Theme['shadows'];
22
- /** Alignment of items on the cross axis */
23
- align?: StackAlign;
24
- /** Justification of items on the main axis */
25
- justify?: StackJustify;
26
- };
27
- export type CardStyleParams = {
28
- direction: CardDirection;
29
- padding?: keyof Theme['spacing'];
30
- width?: CSSProperties['width'];
31
- height?: CSSProperties['height'];
32
- gap?: keyof Theme['spacing'];
33
- radius: keyof Theme['radius'];
34
- shadow: keyof Theme['shadows'];
35
- align?: StackAlign;
36
- justify?: StackJustify;
37
- };
@@ -1,7 +0,0 @@
1
- import { CardStyleParams } from '@components/card/Card.props';
2
- /**
3
- * Card styles using createStyles from @aurora-ds/theme
4
- */
5
- export declare const CARD_STYLES: {
6
- root: (args_0: CardStyleParams) => string;
7
- };
@@ -1,2 +0,0 @@
1
- export { default as Card } from '@components/card/Card';
2
- export type { CardProps } from '@components/card/Card.props';
@@ -1,35 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconProps } from '@components/icon/Icon.props';
3
- /**
4
- * Icon component - Wrapper for SVG icons with theme-aware styling
5
- *
6
- * **Features:**
7
- * - Theme-aware sizing via font sizes
8
- * - Color and fill support from theme
9
- * - Optional background with padding and border radius
10
- * - Transition animation on color changes
11
- *
12
- * **Usage:**
13
- * ```tsx
14
- * import { SomeIcon } from 'some-icon-library'
15
- *
16
- * <Icon size="md" color="primary">
17
- * <SomeIcon />
18
- * </Icon>
19
- * ```
20
- *
21
- * **With background:**
22
- * ```tsx
23
- * <Icon
24
- * size="lg"
25
- * color="onPrimary"
26
- * backgroundColor="primary"
27
- * padding="sm"
28
- * borderRadius="full"
29
- * >
30
- * <SomeIcon />
31
- * </Icon>
32
- * ```
33
- */
34
- declare const Icon: FC<IconProps>;
35
- export default Icon;
@@ -1,14 +0,0 @@
1
- import { Theme } from '@aurora-ds/theme';
2
- import { PropsWithChildren } from 'react';
3
- export type IconProps = PropsWithChildren<{
4
- /** Icon size based on theme font sizes */
5
- size?: keyof Theme['fontSize'];
6
- /** Icon stroke/line color from theme */
7
- color?: keyof Theme['colors'];
8
- /** Background color from theme */
9
- backgroundColor?: keyof Theme['colors'];
10
- /** Padding from theme spacing */
11
- padding?: keyof Theme['spacing'];
12
- /** Border radius from theme */
13
- borderRadius?: keyof Theme['radius'];
14
- }>;
@@ -1,3 +0,0 @@
1
- export declare const ICON_STYLES: {
2
- root: (size?: keyof import("@aurora-ds/theme").BaseFontSize | undefined, color?: keyof import("@aurora-ds/theme").BaseColors | undefined, backgroundColor?: keyof import("@aurora-ds/theme").BaseColors | undefined, padding?: keyof import("@aurora-ds/theme").BaseSpacing | undefined, borderRadius?: keyof import("@aurora-ds/theme").BaseRadius | undefined) => string;
3
- };
@@ -1,2 +0,0 @@
1
- export { default as Icon } from '@components/icon/Icon';
2
- export type { IconProps } from '@components/icon/Icon.props';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconButtonProps } from '@components/icon-button/IconButton.props.ts';
3
- declare const IconButton: FC<IconButtonProps>;
4
- export default IconButton;