@aurora-ds/components 0.17.16 → 0.18.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.
@@ -1,9 +1,10 @@
1
1
  import { CalendarIcon } from '@resources/icons/CalendarIcon.tsx';
2
2
  import { ChevronDownIcon } from '@resources/icons/ChevronDownIcon.tsx';
3
+ import { ChevronLeftIcon } from '@resources/icons/ChevronLeftIcon.tsx';
3
4
  import { ChevronRightIcon } from '@resources/icons/ChevronRightIcon.tsx';
4
5
  import { CloseIcon } from '@resources/icons/CloseIcon.tsx';
5
6
  import { EyeIcon } from '@resources/icons/EyeIcon.tsx';
6
7
  import { EyeOffIcon } from '@resources/icons/EyeOffIcon.tsx';
7
8
  import { InfoIcon } from '@resources/icons/InfoIcon.tsx';
8
9
  import { MoreHorizontalIcon } from '@resources/icons/MoreHorizontalIcon.tsx';
9
- export { CalendarIcon, ChevronDownIcon, ChevronRightIcon, InfoIcon, MoreHorizontalIcon, EyeIcon, EyeOffIcon, CloseIcon };
10
+ export { CalendarIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, InfoIcon, MoreHorizontalIcon, EyeIcon, EyeOffIcon, CloseIcon };
@@ -0,0 +1 @@
1
+ export declare const ChevronLeftIcon: () => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -558,10 +558,10 @@ declare const Card: FC<CardProps>;
558
558
  type GridProps = {
559
559
  /** Grid children elements */
560
560
  children: ReactNode;
561
- /** Number of columns (number or CSS grid-template-columns value). Acts as max columns when minChildWidth is set. */
562
- columns?: number | string;
563
- /** Number of rows (number or CSS grid-template-rows value). */
564
- rows?: number | string;
561
+ /** Number of columns. Acts as max columns when minChildWidth is set for responsive behavior. */
562
+ columns?: number;
563
+ /** Number of rows. */
564
+ rows?: number;
565
565
  /** Gap between columns (theme spacing key) */
566
566
  columnGap?: keyof Theme['spacing'];
567
567
  /** Gap between rows (theme spacing key) */
@@ -774,11 +774,7 @@ type ModalProps = {
774
774
  label: string;
775
775
  children: ReactNode;
776
776
  isForm?: boolean;
777
- action?: {
778
- label: string;
779
- onClick: () => void;
780
- disabled?: boolean;
781
- };
777
+ action?: ButtonProps;
782
778
  };
783
779
 
784
780
  declare const Modal: FC<ModalProps>;
@@ -937,6 +933,31 @@ type TabItemProps = {
937
933
  */
938
934
  declare const TabItem: FC<TabItemProps>;
939
935
 
936
+ /**
937
+ * Props for the Pagination component
938
+ */
939
+ type PaginationProps = {
940
+ /** Current page number (1-indexed) */
941
+ currentPage: number;
942
+ /** Total number of pages */
943
+ totalPages: number;
944
+ /** Callback when page changes */
945
+ onPageChange: (page: number) => void;
946
+ /** Callback when clicking the previous button */
947
+ onPrevious?: (page: number) => void;
948
+ /** Callback when clicking the next button */
949
+ onNext?: (page: number) => void;
950
+ /** Maximum number of page buttons to display */
951
+ maxVisiblePages?: number;
952
+ /** Accessibility label for the pagination */
953
+ ariaLabel?: string;
954
+ };
955
+
956
+ /**
957
+ * Pagination component for navigating between pages
958
+ */
959
+ declare const Pagination: FC<PaginationProps>;
960
+
940
961
  type UseAnchorPositionParams = {
941
962
  anchor: HTMLElement | null;
942
963
  menuRef: RefObject<HTMLDivElement | null>;
@@ -972,5 +993,5 @@ type UseTransitionRenderReturnType = {
972
993
  */
973
994
  declare const useTransitionRender: (isOpen: boolean, duration?: number) => UseTransitionRenderReturnType;
974
995
 
975
- export { Accordion, Avatar, AvatarGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Chip, _default as DatePicker, DrawerItem, _default$3 as Form, Grid, Icon, IconButton, _default$2 as Input, Menu, MenuGroup, MenuItem, Modal, Page, PageSection, Select, Separator, Skeleton, Stack, TabItem, Tabs, Text, _default$1 as TextArea, useAnchorPosition, useClickOutside, useTransitionRender };
976
- export type { AccordionProps, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DateFormat, DatePickerProps, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, ModalProps, PageProps, PageSectionProps, SelectProps, SeparatorProps, SkeletonProps, StackProps, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, UseTransitionRenderReturnType };
996
+ export { Accordion, Avatar, AvatarGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Chip, _default as DatePicker, DrawerItem, _default$3 as Form, Grid, Icon, IconButton, _default$2 as Input, Menu, MenuGroup, MenuItem, Modal, Page, PageSection, Pagination, Select, Separator, Skeleton, Stack, TabItem, Tabs, Text, _default$1 as TextArea, useAnchorPosition, useClickOutside, useTransitionRender };
997
+ export type { AccordionProps, AnchorOrigin, AnchorPosition, AvatarGroupProps, AvatarProps, BreadcrumbEllipsisProps, BreadcrumbLinkProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, ButtonProps, ButtonVariantStyle, ButtonVariants, CardProps, ChipColor, ChipProps, ChipSize, ChipVariant, DateFormat, DatePickerProps, DrawerItemProps, FormProps, GridProps, IconButtonProps, IconProps, InputProps, MenuGroupProps, MenuItemProps, MenuProps, ModalProps, PageProps, PageSectionProps, PaginationProps, SelectProps, SeparatorProps, SkeletonProps, StackProps, TabItemProps, TabsProps, TextAreaProps, TextProps, TextVariantStyle, TextVariants, UseTransitionRenderReturnType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "0.17.16",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "description": "Aurora DS - React Components Library",
6
6
  "main": "dist/cjs/index.js",
@@ -16,7 +16,8 @@
16
16
  "lint": "eslint src --ext .ts,.tsx",
17
17
  "test": "vitest run",
18
18
  "test:watch": "vitest",
19
- "prepublishOnly": "yarn build"
19
+ "prepublishOnly": "yarn build",
20
+ "publish": "npm publish --access public"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "@aurora-ds/theme": "^1.5.0",