@aurora-ds/components 0.15.3 → 0.16.0

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 (53) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/components/data-display/skeleton/Skeleton.d.ts +4 -0
  3. package/dist/cjs/components/data-display/skeleton/Skeleton.props.d.ts +7 -0
  4. package/dist/cjs/components/data-display/skeleton/Skeleton.styles.d.ts +3 -0
  5. package/dist/cjs/components/data-display/skeleton/index.d.ts +2 -0
  6. package/dist/cjs/components/forms/select/Select.d.ts +7 -0
  7. package/dist/cjs/components/forms/select/Select.props.d.ts +31 -0
  8. package/dist/cjs/components/forms/select/Select.styles.d.ts +10 -0
  9. package/dist/cjs/components/forms/select/SelectItem/SelectItem.d.ts +7 -0
  10. package/dist/cjs/components/forms/select/SelectItem/SelectItem.props.d.ts +19 -0
  11. package/dist/cjs/components/forms/select/SelectItem/SelectItem.styles.d.ts +7 -0
  12. package/dist/cjs/components/forms/select/SelectItem/index.d.ts +2 -0
  13. package/dist/cjs/components/forms/select/index.d.ts +2 -0
  14. package/dist/cjs/components/index.d.ts +3 -0
  15. package/dist/cjs/components/overlay/menu/Menu.props.d.ts +2 -2
  16. package/dist/cjs/components/overlay/modal/Modal.d.ts +4 -0
  17. package/dist/cjs/components/overlay/modal/Modal.props.d.ts +13 -0
  18. package/dist/cjs/components/overlay/modal/Modal.styles.d.ts +4 -0
  19. package/dist/cjs/components/overlay/modal/index.d.ts +2 -0
  20. package/dist/cjs/constants/animations.d.ts +1 -0
  21. package/dist/cjs/index.js +380 -169
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/interfaces/index.d.ts +1 -0
  24. package/dist/cjs/interfaces/select.types.d.ts +5 -0
  25. package/dist/cjs/resources/Icons.d.ts +2 -1
  26. package/dist/cjs/resources/icons/CloseIcon.d.ts +2 -0
  27. package/dist/esm/components/data-display/skeleton/Skeleton.d.ts +4 -0
  28. package/dist/esm/components/data-display/skeleton/Skeleton.props.d.ts +7 -0
  29. package/dist/esm/components/data-display/skeleton/Skeleton.styles.d.ts +3 -0
  30. package/dist/esm/components/data-display/skeleton/index.d.ts +2 -0
  31. package/dist/esm/components/forms/select/Select.d.ts +7 -0
  32. package/dist/esm/components/forms/select/Select.props.d.ts +31 -0
  33. package/dist/esm/components/forms/select/Select.styles.d.ts +10 -0
  34. package/dist/esm/components/forms/select/SelectItem/SelectItem.d.ts +7 -0
  35. package/dist/esm/components/forms/select/SelectItem/SelectItem.props.d.ts +19 -0
  36. package/dist/esm/components/forms/select/SelectItem/SelectItem.styles.d.ts +7 -0
  37. package/dist/esm/components/forms/select/SelectItem/index.d.ts +2 -0
  38. package/dist/esm/components/forms/select/index.d.ts +2 -0
  39. package/dist/esm/components/index.d.ts +3 -0
  40. package/dist/esm/components/overlay/menu/Menu.props.d.ts +2 -2
  41. package/dist/esm/components/overlay/modal/Modal.d.ts +4 -0
  42. package/dist/esm/components/overlay/modal/Modal.props.d.ts +13 -0
  43. package/dist/esm/components/overlay/modal/Modal.styles.d.ts +4 -0
  44. package/dist/esm/components/overlay/modal/index.d.ts +2 -0
  45. package/dist/esm/constants/animations.d.ts +1 -0
  46. package/dist/esm/index.js +381 -173
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/interfaces/index.d.ts +1 -0
  49. package/dist/esm/interfaces/select.types.d.ts +5 -0
  50. package/dist/esm/resources/Icons.d.ts +2 -1
  51. package/dist/esm/resources/icons/CloseIcon.d.ts +2 -0
  52. package/dist/index.d.ts +65 -4
  53. 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) |
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonProps } from '@components/data-display/skeleton/Skeleton.props';
3
+ declare const Skeleton: FC<SkeletonProps>;
4
+ export default Skeleton;
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@aurora-ds/theme';
2
+ import { CSSProperties } from 'react';
3
+ export type SkeletonProps = {
4
+ width: CSSProperties['width'];
5
+ height: CSSProperties['height'];
6
+ borderRadius?: keyof Theme['radius'];
7
+ };
@@ -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,2 @@
1
+ export { default as Skeleton } from '@components/data-display/skeleton/Skeleton.tsx';
2
+ export type { SkeletonProps } from '@components/data-display/skeleton/Skeleton.props.ts';
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { SelectProps } from '@components/forms/select/Select.props';
3
+ /**
4
+ * Select component that uses Menu for dropdown
5
+ */
6
+ declare const Select: FC<SelectProps>;
7
+ export { Select };
@@ -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,7 @@
1
+ import { FC } from 'react';
2
+ import { SelectItemProps } from '@components/forms/select/SelectItem/SelectItem.props';
3
+ /**
4
+ * SelectItem component for use inside Select dropdown
5
+ */
6
+ declare const SelectItem: FC<SelectItemProps>;
7
+ export { SelectItem };
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export { SelectItem } from '@components/forms/select/SelectItem/SelectItem';
2
+ export type { SelectItemProps } from '@components/forms/select/SelectItem/SelectItem.props';
@@ -0,0 +1,2 @@
1
+ export { Select } from '@components/forms/select/Select';
2
+ export type { SelectProps } from '@components/forms/select/Select.props';
@@ -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';
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  import { AnchorOrigin } from '@hooks/useAnchorPosition.types';
3
3
  export type MenuProps = {
4
4
  anchor: HTMLElement | null;
5
5
  onClose: () => void;
6
6
  children: ReactNode;
7
7
  anchorOrigin?: AnchorOrigin;
8
- width?: string;
8
+ width?: CSSProperties['width'];
9
9
  };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ModalProps } from '@components/overlay/modal/Modal.props';
3
+ declare const Modal: FC<ModalProps>;
4
+ export default Modal;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export type ModalProps = {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ label: string;
6
+ children: ReactNode;
7
+ isForm?: boolean;
8
+ action?: {
9
+ label: string;
10
+ onClick: () => void;
11
+ disabled?: boolean;
12
+ };
13
+ };
@@ -0,0 +1,4 @@
1
+ export declare const MODAL_STYLES: {
2
+ background: (isFadingIn: boolean) => string;
3
+ content: (isFadingIn: boolean) => string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Modal } from '@components/overlay/modal/Modal.tsx';
2
+ export type { ModalProps } from '@components/overlay/modal/Modal.props.ts';
@@ -0,0 +1 @@
1
+ export declare const shimmerAnimation: string;