@aurora-ds/components 0.15.4 → 0.16.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/README.md +1 -0
- package/dist/cjs/components/actions/button/Button.props.d.ts +9 -0
- package/dist/cjs/components/actions/icon-button/IconButton.props.d.ts +9 -0
- package/dist/cjs/components/data-display/skeleton/Skeleton.d.ts +4 -0
- package/dist/cjs/components/data-display/skeleton/Skeleton.props.d.ts +7 -0
- package/dist/cjs/components/data-display/skeleton/Skeleton.styles.d.ts +3 -0
- package/dist/cjs/components/data-display/skeleton/index.d.ts +2 -0
- package/dist/cjs/components/forms/select/Select.d.ts +7 -0
- package/dist/cjs/components/forms/select/Select.props.d.ts +31 -0
- package/dist/cjs/components/forms/select/Select.styles.d.ts +10 -0
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.d.ts +7 -0
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.props.d.ts +19 -0
- package/dist/cjs/components/forms/select/SelectItem/SelectItem.styles.d.ts +7 -0
- package/dist/cjs/components/forms/select/SelectItem/index.d.ts +2 -0
- package/dist/cjs/components/forms/select/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/components/overlay/modal/Modal.d.ts +4 -0
- package/dist/cjs/components/overlay/modal/Modal.props.d.ts +13 -0
- package/dist/cjs/components/overlay/modal/Modal.styles.d.ts +4 -0
- package/dist/cjs/components/overlay/modal/index.d.ts +2 -0
- package/dist/cjs/constants/animations.d.ts +1 -0
- package/dist/cjs/index.js +410 -179
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/select.types.d.ts +5 -0
- package/dist/cjs/resources/Icons.d.ts +2 -1
- package/dist/cjs/resources/icons/CloseIcon.d.ts +2 -0
- package/dist/esm/components/actions/button/Button.props.d.ts +9 -0
- package/dist/esm/components/actions/icon-button/IconButton.props.d.ts +9 -0
- package/dist/esm/components/data-display/skeleton/Skeleton.d.ts +4 -0
- package/dist/esm/components/data-display/skeleton/Skeleton.props.d.ts +7 -0
- package/dist/esm/components/data-display/skeleton/Skeleton.styles.d.ts +3 -0
- package/dist/esm/components/data-display/skeleton/index.d.ts +2 -0
- package/dist/esm/components/forms/select/Select.d.ts +7 -0
- package/dist/esm/components/forms/select/Select.props.d.ts +31 -0
- package/dist/esm/components/forms/select/Select.styles.d.ts +10 -0
- package/dist/esm/components/forms/select/SelectItem/SelectItem.d.ts +7 -0
- package/dist/esm/components/forms/select/SelectItem/SelectItem.props.d.ts +19 -0
- package/dist/esm/components/forms/select/SelectItem/SelectItem.styles.d.ts +7 -0
- package/dist/esm/components/forms/select/SelectItem/index.d.ts +2 -0
- package/dist/esm/components/forms/select/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/components/overlay/modal/Modal.d.ts +4 -0
- package/dist/esm/components/overlay/modal/Modal.props.d.ts +13 -0
- package/dist/esm/components/overlay/modal/Modal.styles.d.ts +4 -0
- package/dist/esm/components/overlay/modal/index.d.ts +2 -0
- package/dist/esm/constants/animations.d.ts +1 -0
- package/dist/esm/index.js +411 -183
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/index.d.ts +1 -0
- package/dist/esm/interfaces/select.types.d.ts +5 -0
- package/dist/esm/resources/Icons.d.ts +2 -1
- package/dist/esm/resources/icons/CloseIcon.d.ts +2 -0
- package/dist/index.d.ts +76 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ function App() {
|
|
|
63
63
|
| **Page** | Page layout component |
|
|
64
64
|
| **PageSection** | Section within a page |
|
|
65
65
|
| **Separator** | Visual separator component |
|
|
66
|
+
| **Select** | Dropdown select component for single item selection |
|
|
66
67
|
| **Stack** | Flexbox container for horizontal/vertical layouts |
|
|
67
68
|
| **Tabs** | Tab navigation component with multiple sections, used with `TabItem` |
|
|
68
69
|
| **Text** | Typography component with semantic HTML tags (h1-h6, p, span, label) |
|
|
@@ -20,6 +20,12 @@ export type ButtonProps = {
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
/** Custom text color (overrides variant color) */
|
|
22
22
|
textColor?: keyof Theme['colors'];
|
|
23
|
+
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
24
|
+
backgroundColor?: keyof Theme['colors'];
|
|
25
|
+
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
26
|
+
hoverBackgroundColor?: keyof Theme['colors'];
|
|
27
|
+
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
28
|
+
activeBackgroundColor?: keyof Theme['colors'];
|
|
23
29
|
/** Size of the button */
|
|
24
30
|
size?: IconButtonSizes;
|
|
25
31
|
/** Accessibility label for screen readers */
|
|
@@ -37,5 +43,8 @@ export type ButtonStyleParams = {
|
|
|
37
43
|
variant?: ButtonVariants;
|
|
38
44
|
active?: boolean;
|
|
39
45
|
textColor?: keyof Theme['colors'];
|
|
46
|
+
backgroundColor?: keyof Theme['colors'];
|
|
47
|
+
hoverBackgroundColor?: keyof Theme['colors'];
|
|
48
|
+
activeBackgroundColor?: keyof Theme['colors'];
|
|
40
49
|
size?: IconButtonSizes;
|
|
41
50
|
};
|
|
@@ -16,6 +16,12 @@ export type IconButtonProps = {
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
/** Custom text/icon color (overrides variant color) */
|
|
18
18
|
textColor?: keyof Theme['colors'];
|
|
19
|
+
/** Custom backgroundColor (overrides variant backgroundColor) */
|
|
20
|
+
backgroundColor?: keyof Theme['colors'];
|
|
21
|
+
/** Custom hover backgroundColor (overrides variant hover backgroundColor) */
|
|
22
|
+
hoverBackgroundColor?: keyof Theme['colors'];
|
|
23
|
+
/** Custom active backgroundColor (overrides variant active backgroundColor) */
|
|
24
|
+
activeBackgroundColor?: keyof Theme['colors'];
|
|
19
25
|
/** Size of the icon button */
|
|
20
26
|
size?: IconButtonSizes;
|
|
21
27
|
/** Accessibility label for screen readers */
|
|
@@ -34,4 +40,7 @@ export type IconButtonStyleParams = {
|
|
|
34
40
|
active?: boolean;
|
|
35
41
|
size?: IconButtonSizes;
|
|
36
42
|
textColor?: keyof Theme['colors'];
|
|
43
|
+
backgroundColor?: keyof Theme['colors'];
|
|
44
|
+
hoverBackgroundColor?: keyof Theme['colors'];
|
|
45
|
+
activeBackgroundColor?: keyof Theme['colors'];
|
|
37
46
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const SKELETON_STYLES: {
|
|
2
|
+
root: (width?: import("csstype").Property.Width<string | number> | undefined, height?: import("csstype").Property.Height<string | number> | undefined, borderRadius?: keyof import("@aurora-ds/theme").BaseRadius | undefined) => string;
|
|
3
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SelectOption } from '@interfaces/select.types';
|
|
2
|
+
export type SelectProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The options to display in the select dropdown
|
|
5
|
+
*/
|
|
6
|
+
options: SelectOption[];
|
|
7
|
+
/**
|
|
8
|
+
* The currently selected value
|
|
9
|
+
*/
|
|
10
|
+
value?: string | number;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when selection changes
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (value: string | number) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder text when no option is selected
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the select is disabled
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Width of the select
|
|
25
|
+
*/
|
|
26
|
+
width?: string | number;
|
|
27
|
+
};
|
|
28
|
+
export type SelectStyleParams = {
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
width?: string | number;
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectStyleParams } from '@components/forms/select/Select.props.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Select styles using createStyles from @aurora-ds/theme
|
|
4
|
+
*/
|
|
5
|
+
export declare const SELECT_STYLES: {
|
|
6
|
+
root: (args_0: SelectStyleParams) => string;
|
|
7
|
+
trigger: string;
|
|
8
|
+
value: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SelectOption } from '@interfaces/select.types';
|
|
2
|
+
export type SelectItemProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The option data
|
|
5
|
+
*/
|
|
6
|
+
option: SelectOption;
|
|
7
|
+
/**
|
|
8
|
+
* Whether this item is selected
|
|
9
|
+
*/
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when item is selected
|
|
13
|
+
*/
|
|
14
|
+
onSelect?: (value: string | number) => void;
|
|
15
|
+
};
|
|
16
|
+
export type SelectItemStyleParams = {
|
|
17
|
+
isSelected?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectItemStyleParams } from '@components/forms/select/SelectItem/SelectItem.props';
|
|
2
|
+
/**
|
|
3
|
+
* SelectItem styles using createStyles from @aurora-ds/theme
|
|
4
|
+
*/
|
|
5
|
+
export declare const SELECT_ITEM_STYLES: {
|
|
6
|
+
root: (args_0: SelectItemStyleParams) => string;
|
|
7
|
+
};
|
|
@@ -2,11 +2,13 @@ export * from '@components/foundation/icon';
|
|
|
2
2
|
export * from '@components/foundation/text';
|
|
3
3
|
export * from '@components/data-display/chip';
|
|
4
4
|
export * from '@components/data-display/avatar';
|
|
5
|
+
export * from '@components/data-display/skeleton';
|
|
5
6
|
export * from '@components/actions/button';
|
|
6
7
|
export * from '@components/actions/icon-button';
|
|
7
8
|
export * from '@components/forms/form';
|
|
8
9
|
export * from '@components/forms/input';
|
|
9
10
|
export * from '@components/forms/textarea';
|
|
11
|
+
export * from '@components/forms/select';
|
|
10
12
|
export * from '@components/layout/stack';
|
|
11
13
|
export * from '@components/layout/card';
|
|
12
14
|
export * from '@components/layout/grid';
|
|
@@ -15,6 +17,7 @@ export * from '@components/layout/page-construction/page-section';
|
|
|
15
17
|
export * from '@components/layout/page-construction/page';
|
|
16
18
|
export * from '@components/overlay/accordion';
|
|
17
19
|
export * from '@components/overlay/menu';
|
|
20
|
+
export * from '@components/overlay/modal';
|
|
18
21
|
export * from '@components/navigation/drawer-item';
|
|
19
22
|
export * from '@components/navigation/breadcrumb';
|
|
20
23
|
export * from '@components/navigation/tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shimmerAnimation: string;
|