@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.
- package/README.md +1 -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/menu/Menu.props.d.ts +2 -2
- 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 +380 -169
- 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/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/menu/Menu.props.d.ts +2 -2
- 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 +381 -173
- 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 +65 -4
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ChevronDownIcon } from '@resources/icons/ChevronDownIcon.tsx';
|
|
2
2
|
import { ChevronRightIcon } from '@resources/icons/ChevronRightIcon.tsx';
|
|
3
|
+
import { CloseIcon } from '@resources/icons/CloseIcon.tsx';
|
|
3
4
|
import { EyeIcon } from '@resources/icons/EyeIcon.tsx';
|
|
4
5
|
import { EyeOffIcon } from '@resources/icons/EyeOffIcon.tsx';
|
|
5
6
|
import { InfoIcon } from '@resources/icons/InfoIcon.tsx';
|
|
6
7
|
import { MoreHorizontalIcon } from '@resources/icons/MoreHorizontalIcon.tsx';
|
|
7
|
-
export { ChevronDownIcon, ChevronRightIcon, InfoIcon, MoreHorizontalIcon, EyeIcon, EyeOffIcon, };
|
|
8
|
+
export { ChevronDownIcon, ChevronRightIcon, InfoIcon, MoreHorizontalIcon, EyeIcon, EyeOffIcon, CloseIcon };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { PropsWithChildren, FC, ReactNode, MouseEvent,
|
|
2
|
+
import { PropsWithChildren, FC, ReactNode, MouseEvent, CSSProperties, FormEvent, ComponentPropsWithoutRef, RefObject } from 'react';
|
|
3
3
|
import { Theme } from '@aurora-ds/theme';
|
|
4
4
|
|
|
5
5
|
type IconProps = PropsWithChildren<{
|
|
@@ -232,6 +232,12 @@ type ButtonVariantStyle = {
|
|
|
232
232
|
textColor: keyof Theme['colors'];
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
+
type SelectOption = {
|
|
236
|
+
label: string;
|
|
237
|
+
value: string | number;
|
|
238
|
+
disabled?: boolean;
|
|
239
|
+
};
|
|
240
|
+
|
|
235
241
|
type AvatarGroupProps = {
|
|
236
242
|
/** Avatar children */
|
|
237
243
|
children: ReactNode;
|
|
@@ -241,6 +247,14 @@ type AvatarGroupProps = {
|
|
|
241
247
|
size?: AvatarSize;
|
|
242
248
|
};
|
|
243
249
|
|
|
250
|
+
type SkeletonProps = {
|
|
251
|
+
width: CSSProperties['width'];
|
|
252
|
+
height: CSSProperties['height'];
|
|
253
|
+
borderRadius?: keyof Theme['radius'];
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
declare const Skeleton: FC<SkeletonProps>;
|
|
257
|
+
|
|
244
258
|
type ButtonProps = {
|
|
245
259
|
/** Button text label */
|
|
246
260
|
label: string;
|
|
@@ -378,6 +392,38 @@ type TextAreaProps = {
|
|
|
378
392
|
|
|
379
393
|
declare const _default: react.MemoExoticComponent<react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>>;
|
|
380
394
|
|
|
395
|
+
type SelectProps = {
|
|
396
|
+
/**
|
|
397
|
+
* The options to display in the select dropdown
|
|
398
|
+
*/
|
|
399
|
+
options: SelectOption[];
|
|
400
|
+
/**
|
|
401
|
+
* The currently selected value
|
|
402
|
+
*/
|
|
403
|
+
value?: string | number;
|
|
404
|
+
/**
|
|
405
|
+
* Callback when selection changes
|
|
406
|
+
*/
|
|
407
|
+
onChange?: (value: string | number) => void;
|
|
408
|
+
/**
|
|
409
|
+
* Placeholder text when no option is selected
|
|
410
|
+
*/
|
|
411
|
+
placeholder?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Whether the select is disabled
|
|
414
|
+
*/
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Width of the select
|
|
418
|
+
*/
|
|
419
|
+
width?: string | number;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Select component that uses Menu for dropdown
|
|
424
|
+
*/
|
|
425
|
+
declare const Select: FC<SelectProps>;
|
|
426
|
+
|
|
381
427
|
type StackProps = {
|
|
382
428
|
/** Stack children elements */
|
|
383
429
|
children: ReactNode;
|
|
@@ -660,7 +706,7 @@ type MenuProps = {
|
|
|
660
706
|
onClose: () => void;
|
|
661
707
|
children: ReactNode;
|
|
662
708
|
anchorOrigin?: AnchorOrigin;
|
|
663
|
-
width?:
|
|
709
|
+
width?: CSSProperties['width'];
|
|
664
710
|
};
|
|
665
711
|
|
|
666
712
|
declare const Menu: FC<MenuProps>;
|
|
@@ -681,6 +727,21 @@ type MenuItemProps = {
|
|
|
681
727
|
|
|
682
728
|
declare const MenuItem: FC<MenuItemProps>;
|
|
683
729
|
|
|
730
|
+
type ModalProps = {
|
|
731
|
+
isOpen: boolean;
|
|
732
|
+
onClose: () => void;
|
|
733
|
+
label: string;
|
|
734
|
+
children: ReactNode;
|
|
735
|
+
isForm?: boolean;
|
|
736
|
+
action?: {
|
|
737
|
+
label: string;
|
|
738
|
+
onClick: () => void;
|
|
739
|
+
disabled?: boolean;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
declare const Modal: FC<ModalProps>;
|
|
744
|
+
|
|
684
745
|
type DrawerItemProps = {
|
|
685
746
|
/** DrawerItem text label */
|
|
686
747
|
label: string;
|
|
@@ -866,5 +927,5 @@ type UseTransitionRenderReturnType = {
|
|
|
866
927
|
*/
|
|
867
928
|
declare const useTransitionRender: (isOpen: boolean, duration?: number) => UseTransitionRenderReturnType;
|
|
868
929
|
|
|
869
|
-
export { Accordion, Avatar, AvatarGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Chip, DrawerItem, _default$2 as Form, Grid, Icon, IconButton, _default$1 as Input, Menu, MenuGroup, MenuItem, Page, PageSection, Separator, Stack, TabItem, Tabs, Text, _default as TextArea, useAnchorPosition, useClickOutside, useTransitionRender };
|
|
870
|
-
export type { AccordionProps, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, PageProps, PageSectionProps, SeparatorProps, StackProps, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, UseTransitionRenderReturnType };
|
|
930
|
+
export { Accordion, Avatar, AvatarGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Chip, DrawerItem, _default$2 as Form, Grid, Icon, IconButton, _default$1 as Input, Menu, MenuGroup, MenuItem, Modal, Page, PageSection, Select, Separator, Skeleton, Stack, TabItem, Tabs, Text, _default as TextArea, useAnchorPosition, useClickOutside, useTransitionRender };
|
|
931
|
+
export type { AccordionProps, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, ModalProps, PageProps, PageSectionProps, SelectProps, SeparatorProps, SkeletonProps, StackProps, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, UseTransitionRenderReturnType };
|