@ayasofyazilim/ui 0.0.1 → 0.0.2

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 (129) hide show
  1. package/package.json +1 -1
  2. package/src/components/accordion.tsx +2 -2
  3. package/src/components/alert-dialog.tsx +5 -5
  4. package/src/components/alert.tsx +4 -4
  5. package/src/components/avatar.tsx +3 -3
  6. package/src/components/badge.tsx +2 -2
  7. package/src/components/breadcrumb.tsx +2 -2
  8. package/src/components/button-group.tsx +5 -5
  9. package/src/components/button.tsx +4 -3
  10. package/src/components/calendar.tsx +21 -24
  11. package/src/components/card.tsx +4 -4
  12. package/src/components/carousel.tsx +8 -8
  13. package/src/components/chart.tsx +11 -11
  14. package/src/components/checkbox.tsx +2 -2
  15. package/src/components/command.tsx +8 -8
  16. package/src/components/context-menu.tsx +9 -9
  17. package/src/components/dialog.tsx +4 -4
  18. package/src/components/drawer.tsx +4 -4
  19. package/src/components/dropdown-menu.tsx +9 -9
  20. package/src/components/field.tsx +13 -13
  21. package/src/components/form.tsx +4 -4
  22. package/src/components/hover-card.tsx +2 -2
  23. package/src/components/input-group.tsx +10 -10
  24. package/src/components/input-otp.tsx +3 -3
  25. package/src/components/input.tsx +2 -2
  26. package/src/components/item.tsx +9 -9
  27. package/src/components/kbd.tsx +2 -2
  28. package/src/components/label.tsx +2 -2
  29. package/src/components/menubar.tsx +11 -11
  30. package/src/components/navigation-menu.tsx +9 -9
  31. package/src/components/pagination.tsx +3 -6
  32. package/src/components/progress.tsx +2 -2
  33. package/src/components/radio-group.tsx +2 -2
  34. package/src/components/resizable.tsx +3 -3
  35. package/src/components/scroll-area.tsx +2 -2
  36. package/src/components/select.tsx +7 -7
  37. package/src/components/separator.tsx +2 -2
  38. package/src/components/sheet.tsx +3 -3
  39. package/src/components/skeleton.tsx +1 -1
  40. package/src/components/slider.tsx +5 -5
  41. package/src/components/spinner.tsx +1 -1
  42. package/src/components/stepper.tsx +10 -11
  43. package/src/components/switch.tsx +3 -3
  44. package/src/components/table.tsx +5 -5
  45. package/src/components/tabs.tsx +3 -3
  46. package/src/components/textarea.tsx +2 -2
  47. package/src/components/toggle-group.tsx +4 -4
  48. package/src/components/toggle.tsx +2 -2
  49. package/src/components/tooltip.tsx +2 -2
  50. package/src/custom/action-button.tsx +3 -6
  51. package/src/custom/async-select.tsx +12 -12
  52. package/src/custom/awesome-not-found.tsx +4 -4
  53. package/src/custom/charts/area-chart.tsx +2 -2
  54. package/src/custom/charts/bar-chart.tsx +2 -2
  55. package/src/custom/charts/chart-card.tsx +4 -4
  56. package/src/custom/charts/pie-chart.tsx +4 -4
  57. package/src/custom/charts/radar-chart.tsx +2 -2
  58. package/src/custom/combobox.tsx +18 -18
  59. package/src/custom/confirm-dialog.tsx +3 -3
  60. package/src/custom/country-selector.tsx +7 -7
  61. package/src/custom/date-picker/calendar-rac.tsx +5 -5
  62. package/src/custom/date-picker/datefield-rac.tsx +6 -6
  63. package/src/custom/date-picker/index.tsx +9 -9
  64. package/src/custom/date-picker-old.tsx +5 -5
  65. package/src/custom/date-tooltip.tsx +1 -1
  66. package/src/custom/document-scanner/corner-adjustment/action-buttons.tsx +2 -2
  67. package/src/custom/document-scanner/corner-adjustment/corner-handle.tsx +3 -3
  68. package/src/custom/document-scanner/index.tsx +8 -8
  69. package/src/custom/document-viewer/controllers.tsx +3 -3
  70. package/src/custom/document-viewer/index.tsx +1 -1
  71. package/src/custom/document-viewer/renderers/pdf.tsx +3 -3
  72. package/src/custom/email-input/email.tsx +16 -14
  73. package/src/custom/file-uploader.tsx +6 -6
  74. package/src/custom/filter-component/fields/async-select.tsx +1 -1
  75. package/src/custom/filter-component/fields/date.tsx +3 -3
  76. package/src/custom/filter-component/fields/multi-select.tsx +1 -1
  77. package/src/custom/filter-component/index.tsx +9 -9
  78. package/src/custom/image-canvas.tsx +5 -5
  79. package/src/custom/master-data-grid/components/filters/client-filter.tsx +6 -5
  80. package/src/custom/master-data-grid/components/filters/multi-filter-dialog.tsx +5 -4
  81. package/src/custom/master-data-grid/components/filters/server-filter.tsx +12 -11
  82. package/src/custom/master-data-grid/components/table/cell-renderer.tsx +26 -26
  83. package/src/custom/master-data-grid/hooks/use-columns.tsx +3 -3
  84. package/src/custom/master-data-grid/types.ts +5 -4
  85. package/src/custom/multi-select.tsx +21 -19
  86. package/src/custom/password-input.tsx +11 -11
  87. package/src/custom/phone-input.tsx +3 -3
  88. package/src/custom/schema-form/custom/label.tsx +3 -3
  89. package/src/custom/schema-form/fields/base-input-field.tsx +4 -4
  90. package/src/custom/schema-form/fields/field.tsx +4 -4
  91. package/src/custom/schema-form/fields/table-array/array-field-item.tsx +5 -5
  92. package/src/custom/schema-form/fields/table-array/array-field-template.tsx +6 -6
  93. package/src/custom/schema-form/index.tsx +13 -13
  94. package/src/custom/schema-form/templates/description.tsx +1 -1
  95. package/src/custom/schema-form/templates/submit.tsx +2 -2
  96. package/src/custom/schema-form/utils/schemas.ts +9 -9
  97. package/src/custom/schema-form/widgets/boolean.tsx +5 -5
  98. package/src/custom/schema-form/widgets/combobox.tsx +13 -13
  99. package/src/custom/schema-form/widgets/date.tsx +1 -1
  100. package/src/custom/schema-form/widgets/email.tsx +2 -2
  101. package/src/custom/schema-form/widgets/password.tsx +1 -1
  102. package/src/custom/schema-form/widgets/phone.tsx +3 -3
  103. package/src/custom/schema-form/widgets/select.tsx +5 -5
  104. package/src/custom/schema-form/widgets/selectable.tsx +2 -2
  105. package/src/custom/schema-form/widgets/string-array.tsx +16 -16
  106. package/src/custom/schema-form/widgets/url.tsx +2 -2
  107. package/src/custom/section-layout-v2.tsx +8 -8
  108. package/src/custom/select-tabs.tsx +2 -2
  109. package/src/custom/stepper.tsx +4 -4
  110. package/src/custom/tab-layout.tsx +6 -6
  111. package/src/custom/tanstack-table/fields/tanstack-table-column-header.tsx +7 -5
  112. package/src/custom/tanstack-table/fields/tanstack-table-filter-date.tsx +7 -7
  113. package/src/custom/tanstack-table/fields/tanstack-table-filter-faceted.tsx +9 -9
  114. package/src/custom/tanstack-table/fields/tanstack-table-filter-text.tsx +5 -8
  115. package/src/custom/tanstack-table/fields/tanstack-table-pagination.tsx +4 -4
  116. package/src/custom/tanstack-table/fields/tanstack-table-plain-table.tsx +8 -8
  117. package/src/custom/tanstack-table/fields/tanstack-table-row-actions-confirmation.tsx +2 -2
  118. package/src/custom/tanstack-table/fields/tanstack-table-row-actions-custom-dialog.tsx +2 -2
  119. package/src/custom/tanstack-table/fields/tanstack-table-row-actions.tsx +6 -6
  120. package/src/custom/tanstack-table/fields/tanstack-table-table-actions-custom-dialog.tsx +3 -3
  121. package/src/custom/tanstack-table/fields/tanstack-table-table-actions-schemaform-dialog.tsx +4 -4
  122. package/src/custom/tanstack-table/fields/tanstack-table-toolbar.tsx +2 -2
  123. package/src/custom/tanstack-table/fields/tanstack-table-view-options.tsx +5 -5
  124. package/src/custom/tanstack-table/types/index.ts +2 -2
  125. package/src/custom/tanstack-table/utils/columns-by-row-data.tsx +10 -10
  126. package/src/custom/tanstack-table/utils/editable-columns-by-row-data.tsx +8 -8
  127. package/src/custom/timeline.tsx +8 -8
  128. package/src/custom/tree.tsx +11 -9
  129. package/src/custom/webcam.tsx +14 -14
@@ -4,8 +4,8 @@ import { cva, VariantProps } from "class-variance-authority";
4
4
  import Link from "next/link";
5
5
  import { usePathname, useSearchParams } from "next/navigation";
6
6
  import { ComponentType, ReactNode, Suspense } from "react";
7
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
8
- import { Skeleton } from "@repo/ayasofyazilim-ui/components/skeleton";
7
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
8
+ import { Skeleton } from "@ayasofyazilim/ui/components/skeleton";
9
9
 
10
10
  type DeepPartial<T> = T extends object
11
11
  ? {
@@ -83,7 +83,7 @@ const tabTriggerVariants = cva(
83
83
  orientation: "horizontal",
84
84
  variant: "default",
85
85
  },
86
- }
86
+ },
87
87
  );
88
88
 
89
89
  const tabContentVariants = cva("", {
@@ -122,7 +122,7 @@ function findActiveTab(tabList: { href: string }[], path: string) {
122
122
  return tabList.find((i) => i.href === path)?.href;
123
123
  }
124
124
  return tabList.find(
125
- (i) => i.href === path.split("/").slice(0, -indexOfActiveTab).join("/")
125
+ (i) => i.href === path.split("/").slice(0, -indexOfActiveTab).join("/"),
126
126
  )?.href;
127
127
  }
128
128
 
@@ -178,7 +178,7 @@ export function TabLayout({
178
178
  className={cn(
179
179
  tabTriggerClassNames,
180
180
  classNames?.[orientation]?.tabTrigger,
181
- tab.disabled && "text-muted-foreground cursor-not-allowed"
181
+ tab.disabled && "text-muted-foreground cursor-not-allowed",
182
182
  )}
183
183
  >
184
184
  {tab.disabled ? (
@@ -201,7 +201,7 @@ export function TabLayout({
201
201
  <div
202
202
  className={cn(
203
203
  tabContentClassNames,
204
- classNames?.[orientation]?.tabContent
204
+ classNames?.[orientation]?.tabContent,
205
205
  )}
206
206
  >
207
207
  <Suspense fallback={<Skeleton className="flex-1 size-full" />}>
@@ -2,17 +2,19 @@ import { ArrowDownIcon, ArrowUpIcon, ChevronsUpDownIcon } from "lucide-react";
2
2
  import { Column } from "@tanstack/react-table";
3
3
 
4
4
  import { HTMLAttributes } from "react";
5
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
5
+ import { Button } from "@ayasofyazilim/ui/components/button";
6
6
  import {
7
7
  DropdownMenu,
8
8
  DropdownMenuContent,
9
9
  DropdownMenuItem,
10
10
  DropdownMenuTrigger,
11
- } from "@repo/ayasofyazilim-ui/components/dropdown-menu";
12
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
11
+ } from "@ayasofyazilim/ui/components/dropdown-menu";
12
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
13
13
 
14
- interface TanstackTableColumnHeaderProps<TData, TValue>
15
- extends HTMLAttributes<HTMLDivElement> {
14
+ interface TanstackTableColumnHeaderProps<
15
+ TData,
16
+ TValue,
17
+ > extends HTMLAttributes<HTMLDivElement> {
16
18
  column: Column<TData, TValue>;
17
19
  title: string;
18
20
  }
@@ -2,19 +2,19 @@ import { CirclePlusIcon } from "lucide-react";
2
2
  import { Column } from "@tanstack/react-table";
3
3
 
4
4
  import { useEffect, useState } from "react";
5
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
5
+ import { Button } from "@ayasofyazilim/ui/components/button";
6
6
  import {
7
7
  Popover,
8
8
  PopoverContent,
9
9
  PopoverTrigger,
10
- } from "@repo/ayasofyazilim-ui/components/popover";
11
- import { Separator } from "@repo/ayasofyazilim-ui/components/separator";
10
+ } from "@ayasofyazilim/ui/components/popover";
11
+ import { Separator } from "@ayasofyazilim/ui/components/separator";
12
12
  import { TanstackTableDateFilterType } from "../types";
13
13
  import {
14
14
  DatePicker,
15
15
  DateRangePicker,
16
- } from "@repo/ayasofyazilim-ui/custom/date-picker";
17
- import { DateRange } from "@repo/ayasofyazilim-ui/custom/date-picker/types";
16
+ } from "@ayasofyazilim/ui/custom/date-picker";
17
+ import { DateRange } from "@ayasofyazilim/ui/custom/date-picker/types";
18
18
 
19
19
  interface TanstackTableDateFilterProps<TData, TValue> {
20
20
  accessorKey: string;
@@ -25,7 +25,7 @@ interface TanstackTableDateFilterProps<TData, TValue> {
25
25
  filter: {
26
26
  accessorKey: string;
27
27
  selectedValues: string;
28
- }[]
28
+ }[],
29
29
  ) => void;
30
30
  params: URLSearchParams;
31
31
  }
@@ -53,7 +53,7 @@ export function TanstackTableDateFilter<TData, TValue>({
53
53
  }
54
54
  : params?.get(dateItem.startAccessorKey)
55
55
  ? new Date(params?.get(dateItem.startAccessorKey) as string)
56
- : undefined
56
+ : undefined,
57
57
  );
58
58
 
59
59
  useEffect(() => {
@@ -2,8 +2,8 @@ import { CheckIcon, CirclePlusIcon } from "lucide-react";
2
2
  import { Column } from "@tanstack/react-table";
3
3
 
4
4
  import { useEffect, useState } from "react";
5
- import { Badge } from "@repo/ayasofyazilim-ui/components/badge";
6
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
5
+ import { Badge } from "@ayasofyazilim/ui/components/badge";
6
+ import { Button } from "@ayasofyazilim/ui/components/button";
7
7
  import {
8
8
  Command,
9
9
  CommandEmpty,
@@ -12,14 +12,14 @@ import {
12
12
  CommandItem,
13
13
  CommandList,
14
14
  CommandSeparator,
15
- } from "@repo/ayasofyazilim-ui/components/command";
15
+ } from "@ayasofyazilim/ui/components/command";
16
16
  import {
17
17
  Popover,
18
18
  PopoverContent,
19
19
  PopoverTrigger,
20
- } from "@repo/ayasofyazilim-ui/components/popover";
21
- import { Separator } from "@repo/ayasofyazilim-ui/components/separator";
22
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
20
+ } from "@ayasofyazilim/ui/components/popover";
21
+ import { Separator } from "@ayasofyazilim/ui/components/separator";
22
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
23
23
  import { TanstackTableFacetedFilterType } from "../types";
24
24
 
25
25
  interface DataTableFacetedFilterProps<TData, TValue> {
@@ -41,7 +41,7 @@ export function TanstackTableFacetedFilter<TData, TValue>({
41
41
  }: DataTableFacetedFilterProps<TData, TValue>) {
42
42
  const facets = column?.getFacetedUniqueValues();
43
43
  const [selectedValues, setSelectedValues] = useState(
44
- new Set(params?.get(accessorKey)?.split(",") || [])
44
+ new Set(params?.get(accessorKey)?.split(",") || []),
45
45
  );
46
46
  useEffect(() => {
47
47
  setSelectedValues(new Set(params?.get(accessorKey)?.split(",") || []));
@@ -104,7 +104,7 @@ export function TanstackTableFacetedFilter<TData, TValue>({
104
104
  if (isSelected) {
105
105
  current.splice(
106
106
  current.findIndex((i) => i === option.value),
107
- 1
107
+ 1,
108
108
  );
109
109
  } else {
110
110
  current.push(option.value);
@@ -119,7 +119,7 @@ export function TanstackTableFacetedFilter<TData, TValue>({
119
119
  "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",
120
120
  isSelected
121
121
  ? "bg-primary text-primary-foreground"
122
- : "opacity-50 [&_svg]:invisible"
122
+ : "opacity-50 [&_svg]:invisible",
123
123
  )}
124
124
  >
125
125
  <CheckIcon className={cn("h-4 w-4")} />
@@ -2,18 +2,15 @@ import { CirclePlusIcon } from "lucide-react";
2
2
  import { Column } from "@tanstack/react-table";
3
3
 
4
4
  import { useEffect, useState } from "react";
5
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
6
- import {
7
- Command,
8
- CommandInput,
9
- } from "@repo/ayasofyazilim-ui/components/command";
5
+ import { Button } from "@ayasofyazilim/ui/components/button";
6
+ import { Command, CommandInput } from "@ayasofyazilim/ui/components/command";
10
7
  import {
11
8
  Popover,
12
9
  PopoverContent,
13
10
  PopoverTrigger,
14
- } from "@repo/ayasofyazilim-ui/components/popover";
15
- import { Separator } from "@repo/ayasofyazilim-ui/components/separator";
16
- import { useDebounce } from "@repo/ayasofyazilim-ui/hooks/use-debounce";
11
+ } from "@ayasofyazilim/ui/components/popover";
12
+ import { Separator } from "@ayasofyazilim/ui/components/separator";
13
+ import { useDebounce } from "@ayasofyazilim/ui/hooks/use-debounce";
17
14
 
18
15
  interface TanstackTableTextFilterProps<TData, TValue> {
19
16
  accessorKey: string;
@@ -9,14 +9,14 @@ import { Table } from "@tanstack/react-table";
9
9
 
10
10
  import { usePathname, useRouter, useSearchParams } from "next/navigation";
11
11
  import { useEffect } from "react";
12
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
12
+ import { Button } from "@ayasofyazilim/ui/components/button";
13
13
  import {
14
14
  Select,
15
15
  SelectContent,
16
16
  SelectItem,
17
17
  SelectTrigger,
18
18
  SelectValue,
19
- } from "@repo/ayasofyazilim-ui/components/select";
19
+ } from "@ayasofyazilim/ui/components/select";
20
20
 
21
21
  interface TanstackTablePaginationProps<TData> {
22
22
  pagination: {
@@ -27,7 +27,7 @@ interface TanstackTablePaginationProps<TData> {
27
27
  }
28
28
 
29
29
  export function TanstackTablePagination<TData>(
30
- props: TanstackTablePaginationProps<TData>
30
+ props: TanstackTablePaginationProps<TData>,
31
31
  ) {
32
32
  const { table, pagination } = props;
33
33
  const { replace } = useRouter();
@@ -46,7 +46,7 @@ export function TanstackTablePagination<TData>(
46
46
  ) {
47
47
  params.set(
48
48
  "skipCount",
49
- (pagination.pageIndex * pagination.pageSize).toString()
49
+ (pagination.pageIndex * pagination.pageSize).toString(),
50
50
  );
51
51
  }
52
52
  if (Number(params?.get("maxResultCount")) === 10) {
@@ -5,7 +5,7 @@ import {
5
5
  Table as TableType,
6
6
  } from "@tanstack/react-table";
7
7
  import { Fragment, JSX } from "react";
8
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
8
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
9
9
  import {
10
10
  Table,
11
11
  TableBody,
@@ -13,7 +13,7 @@ import {
13
13
  TableHead,
14
14
  TableHeader,
15
15
  TableRow,
16
- } from "@repo/ayasofyazilim-ui/components/table";
16
+ } from "@ayasofyazilim/ui/components/table";
17
17
  import { getCommonPinningStyles } from "../utils";
18
18
 
19
19
  export function TanstackTablePlainTable<TData, TValue>({
@@ -29,7 +29,7 @@ export function TanstackTablePlainTable<TData, TValue>({
29
29
  editable?: boolean;
30
30
  expandedRowComponent?: (
31
31
  row: TData,
32
- toggleExpanded: () => void
32
+ toggleExpanded: () => void,
33
33
  ) => JSX.Element;
34
34
  table: TableType<TData>;
35
35
  resizeable?: boolean;
@@ -48,7 +48,7 @@ export function TanstackTablePlainTable<TData, TValue>({
48
48
  className={cn(
49
49
  " relative group/th border-r border-gray-200",
50
50
  header.column.getIsResizing() &&
51
- "border-dashed border-black border-r"
51
+ "border-dashed border-black border-r",
52
52
  )}
53
53
  style={{
54
54
  ...getCommonPinningStyles({
@@ -62,14 +62,14 @@ export function TanstackTablePlainTable<TData, TValue>({
62
62
  <div
63
63
  className={cn(
64
64
  header.column.getIsResizing() && "resizing",
65
- "group-has-[.resizing]:pointer-events-none group-has-[.resizing]:select-none"
65
+ "group-has-[.resizing]:pointer-events-none group-has-[.resizing]:select-none",
66
66
  )}
67
67
  >
68
68
  {header.isPlaceholder
69
69
  ? null
70
70
  : flexRender(
71
71
  header.column.columnDef.header,
72
- header.getContext()
72
+ header.getContext(),
73
73
  )}
74
74
  </div>
75
75
  {resizeable && (
@@ -102,7 +102,7 @@ export function TanstackTablePlainTable<TData, TValue>({
102
102
  key={cell.id}
103
103
  className={cn(
104
104
  (editable || cell.column.id === "actions") &&
105
- "p-0 border border-b-0 border-r-0"
105
+ "p-0 border border-b-0 border-r-0",
106
106
  )}
107
107
  style={{
108
108
  ...getCommonPinningStyles({
@@ -122,7 +122,7 @@ export function TanstackTablePlainTable<TData, TValue>({
122
122
  <TableCell colSpan={row.getAllCells().length}>
123
123
  {expandedRowComponent(
124
124
  row.original,
125
- row.getToggleExpandedHandler()
125
+ row.getToggleExpandedHandler(),
126
126
  )}
127
127
  </TableCell>
128
128
  </TableRow>
@@ -3,7 +3,7 @@
3
3
  import { Loader } from "lucide-react";
4
4
  import * as React from "react";
5
5
 
6
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
6
+ import { Button } from "@ayasofyazilim/ui/components/button";
7
7
  import {
8
8
  Dialog,
9
9
  DialogClose,
@@ -12,7 +12,7 @@ import {
12
12
  DialogFooter,
13
13
  DialogHeader,
14
14
  DialogTitle,
15
- } from "@repo/ayasofyazilim-ui/components/dialog";
15
+ } from "@ayasofyazilim/ui/components/dialog";
16
16
  import { TanstackTableRowActionsConfirmationDialog } from "../types";
17
17
 
18
18
  type TanstackTableConfirmationDialogProps<TData> = {
@@ -3,7 +3,7 @@
3
3
  import { Loader } from "lucide-react";
4
4
  import * as React from "react";
5
5
 
6
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
6
+ import { Button } from "@ayasofyazilim/ui/components/button";
7
7
  import {
8
8
  Dialog,
9
9
  DialogClose,
@@ -11,7 +11,7 @@ import {
11
11
  DialogFooter,
12
12
  DialogHeader,
13
13
  DialogTitle,
14
- } from "@repo/ayasofyazilim-ui/components/dialog";
14
+ } from "@ayasofyazilim/ui/components/dialog";
15
15
  import { TanstackTableRowActionsCustomDialog } from "../types";
16
16
 
17
17
  type TanstackTableCustomDialogProps<TData> = {
@@ -2,21 +2,21 @@
2
2
 
3
3
  import { ArrowDown, ArrowUp, Copy, Trash2 } from "lucide-react";
4
4
  import { Row, Table } from "@tanstack/react-table";
5
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
5
+ import { Button } from "@ayasofyazilim/ui/components/button";
6
6
  import {
7
7
  DropdownMenu,
8
8
  DropdownMenuContent,
9
9
  DropdownMenuItem,
10
10
  DropdownMenuTrigger,
11
- } from "@repo/ayasofyazilim-ui/components/dropdown-menu";
12
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
11
+ } from "@ayasofyazilim/ui/components/dropdown-menu";
12
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
13
13
  import { TanstackTableRowActionsType } from "../types";
14
14
 
15
15
  interface TanstackTableRowActionsProps<TData> {
16
16
  actions: TanstackTableRowActionsType<TData>[];
17
17
  row: Row<TData>;
18
18
  setRowAction: (
19
- actions: TanstackTableRowActionsType<TData> & { row: TData }
19
+ actions: TanstackTableRowActionsType<TData> & { row: TData },
20
20
  ) => void;
21
21
  table: Table<TData>;
22
22
  }
@@ -28,7 +28,7 @@ export const TanstackTableRowActions = <TData,>({
28
28
  table,
29
29
  }: TanstackTableRowActionsProps<TData>) => {
30
30
  const availableActions = actions.filter(
31
- (i) => !i.condition || (i.condition && i.condition?.(row.original))
31
+ (i) => !i.condition || (i.condition && i.condition?.(row.original)),
32
32
  );
33
33
  if (availableActions.length === 0) return null;
34
34
 
@@ -92,7 +92,7 @@ function ActionButton<TData>({
92
92
  className?: string;
93
93
  row: Row<TData>;
94
94
  setRowAction: (
95
- actions: TanstackTableRowActionsType<TData> & { row: TData }
95
+ actions: TanstackTableRowActionsType<TData> & { row: TData },
96
96
  ) => void;
97
97
  table: Table<TData>;
98
98
  }) {
@@ -3,7 +3,7 @@
3
3
  import { Loader } from "lucide-react";
4
4
  import * as React from "react";
5
5
 
6
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
6
+ import { Button } from "@ayasofyazilim/ui/components/button";
7
7
  import {
8
8
  Dialog,
9
9
  DialogClose,
@@ -11,9 +11,9 @@ import {
11
11
  DialogFooter,
12
12
  DialogHeader,
13
13
  DialogTitle,
14
- } from "@repo/ayasofyazilim-ui/components/dialog";
14
+ } from "@ayasofyazilim/ui/components/dialog";
15
15
  import { TanstackTableActionsCustomDialog } from "../types";
16
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
16
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
17
17
 
18
18
  type TanstackTableCustomDialogProps = {
19
19
  setDialogOpen: () => void;
@@ -5,8 +5,8 @@ import {
5
5
  DialogContent,
6
6
  DialogHeader,
7
7
  DialogTitle,
8
- } from "@repo/ayasofyazilim-ui/components/dialog";
9
- import { SchemaForm } from "@repo/ayasofyazilim-ui/custom/schema-form";
8
+ } from "@ayasofyazilim/ui/components/dialog";
9
+ import { SchemaForm } from "@ayasofyazilim/ui/custom/schema-form";
10
10
  import { TanstackTableActionsSchemaFormDialog } from "../types";
11
11
  import { useCallback, useState } from "react";
12
12
 
@@ -14,7 +14,7 @@ type TanstackTableSchemaFormDialogProps<TData> = {
14
14
  setDialogOpen: () => void;
15
15
  } & TanstackTableActionsSchemaFormDialog<TData>;
16
16
  export function TanstackTableTableSchemaFormDialog<TData>(
17
- props: TanstackTableSchemaFormDialogProps<TData>
17
+ props: TanstackTableSchemaFormDialogProps<TData>,
18
18
  ) {
19
19
  const { title, setDialogOpen, onSubmit } = props;
20
20
  const [formData, setFormData] = useState<TData>(props.formData as TData);
@@ -24,7 +24,7 @@ export function TanstackTableTableSchemaFormDialog<TData>(
24
24
  setFormData(editedFormData);
25
25
  }
26
26
  },
27
- []
27
+ [],
28
28
  );
29
29
  return (
30
30
  <Dialog open onOpenChange={setDialogOpen}>
@@ -11,7 +11,7 @@ import { TanstackTableDateFilter } from "./tanstack-table-filter-date";
11
11
  import { TanstackTableFacetedFilter } from "./tanstack-table-filter-faceted";
12
12
  import { TanstackTableTextFilter } from "./tanstack-table-filter-text";
13
13
  import { TanstackTableViewOptions } from "./tanstack-table-view-options";
14
- import { Label } from "@repo/ayasofyazilim-ui/components/label";
14
+ import { Label } from "@ayasofyazilim/ui/components/label";
15
15
 
16
16
  interface TanstackTableToolbarProps<TData> {
17
17
  title?: string;
@@ -51,7 +51,7 @@ export const TanstackTableToolbar = <TData,>({
51
51
  }
52
52
  }
53
53
  function onFilterMultiple(
54
- filter: { accessorKey: string; selectedValues: string }[]
54
+ filter: { accessorKey: string; selectedValues: string }[],
55
55
  ) {
56
56
  const newParams = new URLSearchParams(searchParams.toString());
57
57
  filter.forEach(({ accessorKey, selectedValues }) => {
@@ -4,12 +4,12 @@ import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
4
4
  import { Table } from "@tanstack/react-table";
5
5
 
6
6
  import { ChevronDownIcon } from "lucide-react";
7
- import { Button } from "@repo/ayasofyazilim-ui/components/button";
7
+ import { Button } from "@ayasofyazilim/ui/components/button";
8
8
  import {
9
9
  DropdownMenu,
10
10
  DropdownMenuContent,
11
11
  DropdownMenuItem,
12
- } from "@repo/ayasofyazilim-ui/components/dropdown-menu";
12
+ } from "@ayasofyazilim/ui/components/dropdown-menu";
13
13
  import {
14
14
  TanstackTableSelectedRowActionType,
15
15
  TanstackTableTableActionsType,
@@ -48,7 +48,7 @@ function TablePrimaryActionButton<TData>({
48
48
  function handleActionOnClick<TData>(
49
49
  table: Table<TData>,
50
50
  action: TanstackTableTableActionsType<TData>,
51
- setRowAction: (actions: TanstackTableTableActionsType<TData>) => void
51
+ setRowAction: (actions: TanstackTableTableActionsType<TData>) => void,
52
52
  ) {
53
53
  if (action.type === "simple") {
54
54
  action.onClick();
@@ -63,7 +63,7 @@ function handleActionOnClick<TData>(
63
63
  }
64
64
 
65
65
  export function TanstackTableViewOptions<TData>(
66
- props: TanstackTableViewOptionsProps<TData>
66
+ props: TanstackTableViewOptionsProps<TData>,
67
67
  ) {
68
68
  const {
69
69
  table,
@@ -77,7 +77,7 @@ export function TanstackTableViewOptions<TData>(
77
77
  // Filter actions based on condition, keeping backward compatibility
78
78
  const filteredActions =
79
79
  tableActions?.filter(
80
- (action) => !action.condition || action.condition(tableData)
80
+ (action) => !action.condition || action.condition(tableData),
81
81
  ) ?? [];
82
82
 
83
83
  const primaryAction = filteredActions[0];
@@ -1,4 +1,4 @@
1
- import { SchemaFormProps } from "@repo/ayasofyazilim-ui/custom/schema-form";
1
+ import { SchemaFormProps } from "@ayasofyazilim/ui/custom/schema-form";
2
2
  import {
3
3
  ColumnDef,
4
4
  ColumnFiltersState,
@@ -42,7 +42,7 @@ export type TanstackBaseProps<TData, TValue> = {
42
42
  showPagination?: boolean;
43
43
  expandedRowComponent?: (
44
44
  row: TData,
45
- toggleExpanded: () => void
45
+ toggleExpanded: () => void,
46
46
  ) => JSX.Element;
47
47
  fillerColumn?: keyof TData;
48
48
  editable: boolean;
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { ColumnDef, Row } from "@tanstack/react-table";
4
4
  import Link from "next/link";
5
- import { Badge } from "@repo/ayasofyazilim-ui/components/badge";
6
- import { Checkbox } from "@repo/ayasofyazilim-ui/components/checkbox";
7
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
5
+ import { Badge } from "@ayasofyazilim/ui/components/badge";
6
+ import { Checkbox } from "@ayasofyazilim/ui/components/checkbox";
7
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
8
8
  import { tanstackTableCreateTitleWithLanguageData, testConditions } from ".";
9
9
  import DateTooltip, { Localization } from "../../date-tooltip";
10
10
  import { TanstackTableColumnHeader } from "../fields";
@@ -95,7 +95,7 @@ export function createCell<T>(props: {
95
95
  key={item.label}
96
96
  >
97
97
  {item.label}
98
- </Badge>
98
+ </Badge>,
99
99
  );
100
100
  }
101
101
  return null;
@@ -113,7 +113,7 @@ export function createCell<T>(props: {
113
113
  const facetedItem = faceted.find(
114
114
  (item) =>
115
115
  item.when?.(row.getValue(accessorKey.toString())) ||
116
- row.getValue(accessorKey.toString()) === item.value
116
+ row.getValue(accessorKey.toString()) === item.value,
117
117
  );
118
118
  if (facetedItem) {
119
119
  content = (
@@ -122,7 +122,7 @@ export function createCell<T>(props: {
122
122
  <facetedItem.icon
123
123
  className={cn(
124
124
  "text-muted-foreground mr-2 h-4 w-4",
125
- facetedItem.iconClassName
125
+ facetedItem.iconClassName,
126
126
  )}
127
127
  />
128
128
  )}
@@ -150,7 +150,7 @@ export function createCell<T>(props: {
150
150
  data-testid={`expand-row-${accessorKey.toString()}`}
151
151
  className={cn(
152
152
  "font-medium text-blue-700 flex items-center gap-2 cursor-pointer",
153
- containerClassName
153
+ containerClassName,
154
154
  )}
155
155
  >
156
156
  {content}
@@ -175,7 +175,7 @@ export function createCell<T>(props: {
175
175
  href={url}
176
176
  className={cn(
177
177
  "font-medium text-blue-700 flex items-center gap-2",
178
- containerClassName
178
+ containerClassName,
179
179
  )}
180
180
  >
181
181
  {content}
@@ -183,7 +183,7 @@ export function createCell<T>(props: {
183
183
  );
184
184
  }
185
185
  export function tanstackTableCreateColumnsByRowData<T>(
186
- params: TanstackTableCreateColumnsByRowId<T>
186
+ params: TanstackTableCreateColumnsByRowId<T>,
187
187
  ) {
188
188
  const { rows, config } = params;
189
189
 
@@ -218,7 +218,7 @@ export function tanstackTableCreateColumnsByRowData<T>(
218
218
  .rows.some(
219
219
  (row) =>
220
220
  !params.disabledRowIds?.includes(row.id) &&
221
- row.getIsSelected()
221
+ row.getIsSelected(),
222
222
  )
223
223
  }
224
224
  onCheckedChange={(value) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { ColumnDef } from "@tanstack/react-table";
4
4
  import { useEffect, useState } from "react";
5
- import { Input } from "@repo/ayasofyazilim-ui/components/input";
5
+ import { Input } from "@ayasofyazilim/ui/components/input";
6
6
  import {
7
7
  Select,
8
8
  SelectContent,
@@ -10,20 +10,20 @@ import {
10
10
  SelectItem,
11
11
  SelectTrigger,
12
12
  SelectValue,
13
- } from "@repo/ayasofyazilim-ui/components/select";
14
- import { Switch } from "@repo/ayasofyazilim-ui/components/switch";
15
- import { cn } from "@repo/ayasofyazilim-ui/lib/utils";
13
+ } from "@ayasofyazilim/ui/components/select";
14
+ import { Switch } from "@ayasofyazilim/ui/components/switch";
15
+ import { cn } from "@ayasofyazilim/ui/lib/utils";
16
16
  import { createCell, tanstackTableCreateTitleWithLanguageData } from ".";
17
17
  import { TanstackTableColumnHeader } from "../fields";
18
18
  import {
19
19
  TanstackTableCreateColumnsByRowId,
20
20
  TanstacktableEditableColumnsByRowId,
21
21
  } from "../types";
22
- import { DatePicker } from "@repo/ayasofyazilim-ui/custom/date-picker";
22
+ import { DatePicker } from "@ayasofyazilim/ui/custom/date-picker";
23
23
 
24
24
  export function tanstackTableEditableColumnsByRowData<T>(
25
25
  params: TanstacktableEditableColumnsByRowId<T> &
26
- Omit<TanstackTableCreateColumnsByRowId<T>, "rows" | "selectableRows">
26
+ Omit<TanstackTableCreateColumnsByRowId<T>, "rows" | "selectableRows">,
27
27
  ) {
28
28
  const {
29
29
  rows,
@@ -134,7 +134,7 @@ export function tanstackTableEditableColumnsByRowData<T>(
134
134
  className={cn(
135
135
  "w-[180px] min-w-max border-none rounded-none focus-visible:border-none focus-within:border-none ring-0 focus-visible:ring-0 focus-within:ring-0 ring-transparent shadow-none",
136
136
  isRowSelected ? "font-medium italic" : "",
137
- !value && "text-muted-foreground"
137
+ !value && "text-muted-foreground",
138
138
  )}
139
139
  >
140
140
  <SelectValue
@@ -202,7 +202,7 @@ export function tanstackTableEditableColumnsByRowData<T>(
202
202
  value={value as string}
203
203
  className={cn(
204
204
  "w-full border-none rounded-none focus-visible:border-none focus-within:border-none ring-0 focus-visible:ring-0 focus-within:ring-0 ring-transparent shadow-none",
205
- isRowSelected ? "font-medium italic" : ""
205
+ isRowSelected ? "font-medium italic" : "",
206
206
  )}
207
207
  placeholder={accessorKey}
208
208
  onChange={(e) => {