@sikka/hawa 0.11.16-next → 0.11.18-next

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/dist/index.d.mts CHANGED
@@ -466,6 +466,7 @@ type DataTableProps<DataProps = {}> = {
466
466
  direction?: "rtl" | "ltr";
467
467
  columns: ColumnDef<DataProps>[];
468
468
  data: DataProps[];
469
+ itemsPerPage?: any[];
469
470
  showCount?: boolean;
470
471
  condensed?: boolean;
471
472
  isLoading?: boolean;
@@ -541,6 +542,7 @@ type AccordionItem = {
541
542
  declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
542
543
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
543
544
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
545
+ declare const AccordionRoot: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
544
546
 
545
547
  type SeparatorProps = {
546
548
  className?: string;
@@ -1607,4 +1609,4 @@ declare function useTabs(initialTab?: string): {
1607
1609
  handleTabChange: (index: any) => void;
1608
1610
  };
1609
1611
 
1610
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
1612
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -466,6 +466,7 @@ type DataTableProps<DataProps = {}> = {
466
466
  direction?: "rtl" | "ltr";
467
467
  columns: ColumnDef<DataProps>[];
468
468
  data: DataProps[];
469
+ itemsPerPage?: any[];
469
470
  showCount?: boolean;
470
471
  condensed?: boolean;
471
472
  isLoading?: boolean;
@@ -541,6 +542,7 @@ type AccordionItem = {
541
542
  declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
542
543
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
543
544
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
545
+ declare const AccordionRoot: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
544
546
 
545
547
  type SeparatorProps = {
546
548
  className?: string;
@@ -1607,4 +1609,4 @@ declare function useTabs(initialTab?: string): {
1607
1609
  handleTabChange: (index: any) => void;
1608
1610
  };
1609
1611
 
1610
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
1612
+ export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
package/dist/index.js CHANGED
@@ -355,6 +355,9 @@ __export(components_exports, {
355
355
  AccordionItem: function() {
356
356
  return AccordionItem;
357
357
  },
358
+ AccordionRoot: function() {
359
+ return AccordionRoot;
360
+ },
358
361
  AccordionTrigger: function() {
359
362
  return AccordionTrigger;
360
363
  },
@@ -5083,7 +5086,7 @@ var DataTable = function(_param) {
5083
5086
  "columns",
5084
5087
  "data"
5085
5088
  ]);
5086
- var _props_texts, _table_getRowModel_rows, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8, _props_texts9, _props_texts10;
5089
+ var _props_texts, _props_itemsPerPage, _props_texts1, _table_getRowModel_rows, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
5087
5090
  var _React38_useState = _sliced_to_array(React38.useState([
5088
5091
  {
5089
5092
  id: props.defaultSort || "",
@@ -5118,12 +5121,19 @@ var DataTable = function(_param) {
5118
5121
  expanded: expanded
5119
5122
  }
5120
5123
  });
5124
+ var pageText = ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.page) || "page";
5125
+ var itemsPerPageOptions = (_props_itemsPerPage = props.itemsPerPage) === null || _props_itemsPerPage === void 0 ? void 0 : _props_itemsPerPage.map(function(item) {
5126
+ return {
5127
+ label: "".concat(item, " / ").concat(pageText),
5128
+ value: item
5129
+ };
5130
+ });
5121
5131
  return /* @__PURE__ */ React38.createElement("div", {
5122
5132
  className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
5123
5133
  }, /* @__PURE__ */ React38.createElement("div", {
5124
5134
  className: "hawa-flex hawa-items-center"
5125
5135
  }, /* @__PURE__ */ React38.createElement(Input, {
5126
- placeholder: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.searchPlaceholder,
5136
+ placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.searchPlaceholder,
5127
5137
  value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : "",
5128
5138
  onChange: function(event) {
5129
5139
  return setGlobalFilter(event.target.value);
@@ -5161,38 +5171,38 @@ var DataTable = function(_param) {
5161
5171
  }) : /* @__PURE__ */ React38.createElement(TableRow, null, /* @__PURE__ */ React38.createElement(TableCell, {
5162
5172
  colSpan: columns.length,
5163
5173
  className: "hawa-h-24 hawa-text-center"
5164
- }, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.noData))))), /* @__PURE__ */ React38.createElement("div", {
5174
+ }, (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.noData))))), /* @__PURE__ */ React38.createElement("div", {
5165
5175
  className: "hawa-flex hawa-items-center hawa-justify-between"
5166
5176
  }, !props.showCount && /* @__PURE__ */ React38.createElement("div", {
5167
5177
  className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground"
5168
5178
  }), props.showCount && /* @__PURE__ */ React38.createElement("div", {
5169
5179
  className: "text-sm text-muted-foreground",
5170
5180
  dir: props.direction
5171
- }, /* @__PURE__ */ React38.createElement("span", null, (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.total), " ", /* @__PURE__ */ React38.createElement("span", null, table.getFilteredRowModel().rows.length)), table.getPageCount() !== 0 && /* @__PURE__ */ React38.createElement("div", {
5181
+ }, /* @__PURE__ */ React38.createElement("span", null, (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.total), " ", /* @__PURE__ */ React38.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), table.getPageCount() !== 0 && /* @__PURE__ */ React38.createElement("div", {
5172
5182
  className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 "
5173
5183
  }, /* @__PURE__ */ React38.createElement(DropdownMenu, {
5174
5184
  size: "sm",
5175
- width: "parent",
5185
+ width: "sm",
5176
5186
  direction: props.direction,
5177
- items: [
5187
+ items: itemsPerPageOptions || [
5178
5188
  {
5179
- label: "10 / ".concat((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.page),
5189
+ label: "10 / ".concat(pageText),
5180
5190
  value: 10
5181
5191
  },
5182
5192
  {
5183
- label: "20 / ".concat((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.page),
5193
+ label: "20 / ".concat(pageText),
5184
5194
  value: 20
5185
5195
  },
5186
5196
  {
5187
- label: "30 / ".concat((_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.page),
5197
+ label: "30 / ".concat(pageText),
5188
5198
  value: 30
5189
5199
  },
5190
5200
  {
5191
- label: "40 / ".concat((_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.page),
5201
+ label: "40 / ".concat(pageText),
5192
5202
  value: 40
5193
5203
  },
5194
5204
  {
5195
- label: "50 / ".concat((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.page),
5205
+ label: "50 / ".concat(pageText),
5196
5206
  value: 50
5197
5207
  }
5198
5208
  ],
@@ -5200,7 +5210,7 @@ var DataTable = function(_param) {
5200
5210
  variant: "outline",
5201
5211
  size: "icon",
5202
5212
  className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
5203
- }, "".concat(table.getState().pagination.pageSize, " / ").concat((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.page)),
5213
+ }, "".concat(table.getState().pagination.pageSize, " / ").concat((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.page)),
5204
5214
  onItemSelect: function(e) {
5205
5215
  return table.setPageSize(Number(e));
5206
5216
  }
@@ -5208,13 +5218,14 @@ var DataTable = function(_param) {
5208
5218
  className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm "
5209
5219
  }, /* @__PURE__ */ React38.createElement("span", {
5210
5220
  className: "hawa-flex hawa-items-center hawa-gap-1"
5211
- }, /* @__PURE__ */ React38.createElement("div", null, (_props_texts9 = props.texts) === null || _props_texts9 === void 0 ? void 0 : _props_texts9.page), /* @__PURE__ */ React38.createElement("div", {
5221
+ }, /* @__PURE__ */ React38.createElement("div", null, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.page), /* @__PURE__ */ React38.createElement("div", {
5212
5222
  className: "hawa-flex hawa-flex-row hawa-gap-1"
5213
5223
  }, /* @__PURE__ */ React38.createElement("span", {
5214
5224
  className: "hawa-font-bold"
5215
- }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React38.createElement("span", null, (_props_texts10 = props.texts) === null || _props_texts10 === void 0 ? void 0 : _props_texts10.of), /* @__PURE__ */ React38.createElement("span", {
5225
+ }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React38.createElement("span", null, (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.of), /* @__PURE__ */ React38.createElement("span", {
5216
5226
  className: "hawa-font-bold"
5217
5227
  }, table.getPageCount())))), /* @__PURE__ */ React38.createElement(Button, {
5228
+ "aria-label": "Previous Table Page",
5218
5229
  variant: "outline",
5219
5230
  size: "smallIcon",
5220
5231
  onClick: function() {
@@ -5234,6 +5245,7 @@ var DataTable = function(_param) {
5234
5245
  fillRule: "evenodd",
5235
5246
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
5236
5247
  }))), /* @__PURE__ */ React38.createElement(Button, {
5248
+ "aria-label": "Next Table Page",
5237
5249
  variant: "outline",
5238
5250
  size: "smallIcon",
5239
5251
  onClick: function() {
@@ -5243,12 +5255,12 @@ var DataTable = function(_param) {
5243
5255
  className: cn(props.direction === "rtl" && "hawa-rotate-180")
5244
5256
  }, /* @__PURE__ */ React38.createElement("svg", {
5245
5257
  "aria-label": "Chevron Right Icon",
5246
- stroke: "currentColor",
5247
5258
  fill: "currentColor",
5248
- strokeWidth: "0",
5249
- viewBox: "0 0 16 16",
5259
+ stroke: "currentColor",
5260
+ width: "1em",
5250
5261
  height: "1em",
5251
- width: "1em"
5262
+ strokeWidth: "0",
5263
+ viewBox: "0 0 16 16"
5252
5264
  }, /* @__PURE__ */ React38.createElement("path", {
5253
5265
  fillRule: "evenodd",
5254
5266
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
@@ -5376,6 +5388,7 @@ var AccordionContent = React40.forwardRef(function(_param, ref) /* @__PURE__ */
5376
5388
  }, children));
5377
5389
  });
5378
5390
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
5391
+ var AccordionRoot = AccordionPrimitive.Root;
5379
5392
  // components/elements/Separator.tsx
5380
5393
  var React41 = __toESM(require("react"));
5381
5394
  var Separator2 = function(_param) /* @__PURE__ */ {
@@ -9018,6 +9031,7 @@ function useTabs() {
9018
9031
  Accordion: Accordion,
9019
9032
  AccordionContent: AccordionContent,
9020
9033
  AccordionItem: AccordionItem,
9034
+ AccordionRoot: AccordionRoot,
9021
9035
  AccordionTrigger: AccordionTrigger,
9022
9036
  ActionCard: ActionCard,
9023
9037
  AdCard: AdCard,
package/dist/index.mjs CHANGED
@@ -4783,6 +4783,11 @@ var DataTable = ({
4783
4783
  expanded
4784
4784
  }
4785
4785
  });
4786
+ const pageText = props.texts?.page || "page";
4787
+ const itemsPerPageOptions = props.itemsPerPage?.map((item) => ({
4788
+ label: `${item} / ${pageText}`,
4789
+ value: item
4790
+ }));
4786
4791
  return /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React38.createElement(
4787
4792
  Input,
4788
4793
  {
@@ -4840,19 +4845,19 @@ var DataTable = ({
4840
4845
  },
4841
4846
  /* @__PURE__ */ React38.createElement("span", null, props.texts?.total),
4842
4847
  " ",
4843
- /* @__PURE__ */ React38.createElement("span", null, table.getFilteredRowModel().rows.length)
4848
+ /* @__PURE__ */ React38.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
4844
4849
  ), table.getPageCount() !== 0 && /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, /* @__PURE__ */ React38.createElement(
4845
4850
  DropdownMenu,
4846
4851
  {
4847
4852
  size: "sm",
4848
- width: "parent",
4853
+ width: "sm",
4849
4854
  direction: props.direction,
4850
- items: [
4851
- { label: `10 / ${props.texts?.page}`, value: 10 },
4852
- { label: `20 / ${props.texts?.page}`, value: 20 },
4853
- { label: `30 / ${props.texts?.page}`, value: 30 },
4854
- { label: `40 / ${props.texts?.page}`, value: 40 },
4855
- { label: `50 / ${props.texts?.page}`, value: 50 }
4855
+ items: itemsPerPageOptions || [
4856
+ { label: `10 / ${pageText}`, value: 10 },
4857
+ { label: `20 / ${pageText}`, value: 20 },
4858
+ { label: `30 / ${pageText}`, value: 30 },
4859
+ { label: `40 / ${pageText}`, value: 40 },
4860
+ { label: `50 / ${pageText}`, value: 50 }
4856
4861
  ],
4857
4862
  trigger: /* @__PURE__ */ React38.createElement(
4858
4863
  Button,
@@ -4868,6 +4873,7 @@ var DataTable = ({
4868
4873
  ), /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React38.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React38.createElement("div", null, props.texts?.page), /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React38.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React38.createElement("span", null, props.texts?.of), /* @__PURE__ */ React38.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React38.createElement(
4869
4874
  Button,
4870
4875
  {
4876
+ "aria-label": "Previous Table Page",
4871
4877
  variant: "outline",
4872
4878
  size: "smallIcon",
4873
4879
  onClick: () => table.previousPage(),
@@ -4896,6 +4902,7 @@ var DataTable = ({
4896
4902
  ), /* @__PURE__ */ React38.createElement(
4897
4903
  Button,
4898
4904
  {
4905
+ "aria-label": "Next Table Page",
4899
4906
  variant: "outline",
4900
4907
  size: "smallIcon",
4901
4908
  onClick: () => table.nextPage(),
@@ -4906,12 +4913,12 @@ var DataTable = ({
4906
4913
  "svg",
4907
4914
  {
4908
4915
  "aria-label": "Chevron Right Icon",
4909
- stroke: "currentColor",
4910
4916
  fill: "currentColor",
4911
- strokeWidth: "0",
4912
- viewBox: "0 0 16 16",
4917
+ stroke: "currentColor",
4918
+ width: "1em",
4913
4919
  height: "1em",
4914
- width: "1em"
4920
+ strokeWidth: "0",
4921
+ viewBox: "0 0 16 16"
4915
4922
  },
4916
4923
  /* @__PURE__ */ React38.createElement(
4917
4924
  "path",
@@ -5049,6 +5056,7 @@ var AccordionContent = React40.forwardRef(({ className, children, ...props }, re
5049
5056
  /* @__PURE__ */ React40.createElement("div", { className: "hawa-bg-background hawa-border hawa-p-4" }, children)
5050
5057
  ));
5051
5058
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
5059
+ var AccordionRoot = AccordionPrimitive.Root;
5052
5060
 
5053
5061
  // components/elements/Separator.tsx
5054
5062
  import * as React41 from "react";
@@ -8915,6 +8923,7 @@ export {
8915
8923
  Accordion,
8916
8924
  AccordionContent,
8917
8925
  AccordionItem,
8926
+ AccordionRoot,
8918
8927
  AccordionTrigger,
8919
8928
  ActionCard,
8920
8929
  AdCard,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.11.16-next",
3
+ "version": "0.11.18-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {