reykit 1.0.107 → 1.0.109

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 (62) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +35813 -19410
  3. package/dist/src/components/Table.d.ts +58 -0
  4. package/dist/src/components/index.d.ts +4 -7
  5. package/dist/src/components/ui/accordion.d.ts +6 -0
  6. package/dist/src/components/ui/alert-dialog.d.ts +18 -0
  7. package/dist/src/components/ui/alert.d.ts +10 -0
  8. package/dist/src/components/ui/aspect-ratio.d.ts +4 -0
  9. package/dist/src/components/ui/avatar.d.ts +11 -0
  10. package/dist/src/components/ui/badge.d.ts +7 -0
  11. package/dist/src/components/ui/breadcrumb.d.ts +10 -0
  12. package/dist/src/components/ui/button-group.d.ts +10 -0
  13. package/dist/src/components/ui/button.d.ts +8 -0
  14. package/dist/src/components/ui/calendar.d.ts +10 -0
  15. package/dist/src/components/ui/card.d.ts +11 -0
  16. package/dist/src/components/ui/carousel.d.ts +28 -0
  17. package/dist/src/components/ui/chart.d.ts +40 -0
  18. package/dist/src/components/ui/checkbox.d.ts +3 -0
  19. package/dist/src/components/ui/collapsible.d.ts +5 -0
  20. package/dist/src/components/ui/combobox.d.ts +24 -0
  21. package/dist/src/components/ui/command.d.ts +19 -0
  22. package/dist/src/components/ui/context-menu.d.ts +29 -0
  23. package/dist/src/components/ui/dialog.d.ts +17 -0
  24. package/dist/src/components/ui/direction.d.ts +1 -0
  25. package/dist/src/components/ui/drawer.d.ts +13 -0
  26. package/dist/src/components/ui/dropdown-menu.d.ts +29 -0
  27. package/dist/src/components/ui/empty.d.ts +11 -0
  28. package/dist/src/components/ui/field.d.ts +24 -0
  29. package/dist/src/components/ui/hover-card.d.ts +5 -0
  30. package/dist/src/components/ui/index.d.ts +309 -0
  31. package/dist/src/components/ui/input-group.d.ts +18 -0
  32. package/dist/src/components/ui/input-otp.d.ts +11 -0
  33. package/dist/src/components/ui/input.d.ts +3 -0
  34. package/dist/src/components/ui/item.d.ts +22 -0
  35. package/dist/src/components/ui/kbd.d.ts +3 -0
  36. package/dist/src/components/ui/label.d.ts +3 -0
  37. package/dist/src/components/ui/menubar.d.ts +29 -0
  38. package/dist/src/components/ui/native-select.d.ts +8 -0
  39. package/dist/src/components/ui/navigation-menu.d.ts +11 -0
  40. package/dist/src/components/ui/pagination.d.ts +17 -0
  41. package/dist/src/components/ui/popover.d.ts +9 -0
  42. package/dist/src/components/ui/progress.d.ts +7 -0
  43. package/dist/src/components/ui/radio-group.d.ts +5 -0
  44. package/dist/src/components/ui/resizable.d.ts +7 -0
  45. package/dist/src/components/ui/scroll-area.d.ts +4 -0
  46. package/dist/src/components/ui/select.d.ts +15 -0
  47. package/dist/src/components/ui/separator.d.ts +3 -0
  48. package/dist/src/components/ui/sheet.d.ts +14 -0
  49. package/dist/src/components/ui/skeleton.d.ts +2 -0
  50. package/dist/src/components/ui/slider.d.ts +3 -0
  51. package/dist/src/components/ui/sonner.d.ts +3 -0
  52. package/dist/src/components/ui/spinner.d.ts +2 -0
  53. package/dist/src/components/ui/switch.d.ts +5 -0
  54. package/dist/src/components/ui/table.d.ts +10 -0
  55. package/dist/src/components/ui/tabs.d.ts +10 -0
  56. package/dist/src/components/ui/textarea.d.ts +3 -0
  57. package/dist/src/components/ui/toggle-group.d.ts +10 -0
  58. package/dist/src/components/ui/toggle.d.ts +8 -0
  59. package/dist/src/components/ui/tooltip.d.ts +6 -0
  60. package/dist/src/data.d.ts +25 -0
  61. package/dist/src/net.d.ts +1 -1
  62. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
2
+ declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
3
+ declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
6
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -16,3 +16,28 @@ export declare function rangeArr(start: number, stop: number, step?: number): nu
16
16
  * @returns Array of toggled element.
17
17
  */
18
18
  export declare function toggleArr<T>(arr: T[], value: T): T[];
19
+ /**
20
+ * Compare the sizes of two values.
21
+ *
22
+ * @param a - The first value.
23
+ * @param b - The second value.
24
+ * @param order - Sorting type.
25
+ * @returns Sorted result.
26
+ */
27
+ export declare function compare(a: any, b: any, order?: 'asc' | 'desc'): 1 | 0 | -1;
28
+ /**
29
+ * Sorting array.
30
+ *
31
+ * @param arr - Array.
32
+ * @param order - Sorting type.
33
+ * @param key - Element object index key.
34
+ * @returns Sorted array.
35
+ */
36
+ export declare function sort<T>(arr: T[], order?: 'asc' | 'desc', key?: keyof T): T[];
37
+ /**
38
+ * Count elements of array.
39
+ *
40
+ * @param arr - Array.
41
+ * @returns Count result.
42
+ */
43
+ export declare function countArr<T>(arr: T[]): Map<T, number>;
package/dist/src/net.d.ts CHANGED
@@ -18,7 +18,7 @@
18
18
  * - `Record<string, any> | string` : JSON data. Automatic set `Content-Type` to `application/json`.
19
19
  * @param option.headers - Request header data.
20
20
  * @param option.method - Request method.
21
- * - `undefined` : Automatic judge. When parameter `data` not has value, then is `get`, otherwise is `post`.
21
+ * - `undefined` : Automatic judge. When parameter `body` not has value, then is `get`, otherwise is `post`.
22
22
  * @param option.check - Whether to throw an error if the response is not in the 200–299 range.
23
23
  * Note: `Error.message` is response body string, `Error.cause` is `Response` instance.
24
24
  * - `undefined` : False.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [