@vlrc-fe/components 2.7.0 → 2.8.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/CHANGELOG.md +25 -0
- package/dist/ConfirmModal.d.ts +2 -3
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown/types.d.ts +1 -1
- package/dist/Dropdown/types.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/types.d.ts +5 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +2 -2
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/Form/FormSelect/types.d.ts +1 -1
- package/dist/Form/FormSelect/types.d.ts.map +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +3 -31
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts +1 -0
- package/dist/MultiSelect/type.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/Select/type.d.ts +1 -1
- package/dist/Select/type.d.ts.map +1 -1
- package/dist/Typography/Code.d.ts.map +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/types.d.ts +37 -1
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/Typography/utils.d.ts +3 -2
- package/dist/Typography/utils.d.ts.map +1 -1
- package/dist/assets/stylex.css +36 -24
- package/dist/index.cjs +1 -1
- package/dist/index.js +108 -108
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +18 -55
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +89 -89
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +29 -29
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +128 -124
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +16 -16
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +2 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +114 -117
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +95 -92
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +41 -41
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +36 -164
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +128 -120
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +151 -151
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +96 -91
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +18 -18
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +2 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +15 -15
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +147 -103
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +10 -10
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +31 -31
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +3 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +53 -49
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +35 -38
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +114 -107
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +8 -8
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +53 -53
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +130 -102
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +134 -130
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +7 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +95 -95
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +2 -2
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +113 -99
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +8 -8
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +16 -16
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +20 -20
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +154 -80
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +24 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +2 -2
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +15 -15
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +3 -3
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +2 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +88 -88
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +64 -64
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +116 -63
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +9 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +41 -41
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +73 -73
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +34 -34
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +30 -30
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +21 -21
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +60 -91
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +59 -59
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +2 -2
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +50 -50
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +11 -11
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +33 -33
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +11 -11
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +2 -2
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +7 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +74 -65
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +122 -15
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +9 -9
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +7 -7
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +12 -12
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +15 -15
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +2 -2
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +140 -115
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +4 -4
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +47 -47
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +15 -268
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +36 -25
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +4 -4
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +5 -8
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +5 -15
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +5 -20
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +5 -16
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +8 -5
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +11 -281
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +7 -4
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +12 -6
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +6 -5
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -5
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -7
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +10 -68
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +9 -10
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -201
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +7 -123
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +7 -31
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +26 -11
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +66 -17
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +8 -68
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +13 -13
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +6 -6
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +15 -278
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +171 -126
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +21 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +16 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +123 -13
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +19 -7
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +29 -26
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +9 -9
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +13 -8
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -4
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +9 -6
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +4 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +42 -9
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +386 -8
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +37 -14
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +22 -10
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +367 -59
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +57 -9
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +39 -4
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +116 -35
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +85 -387
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +87 -35
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +116 -18
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +97 -55
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +154 -37
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +76 -121
- package/dist/index229.cjs +9 -1
- package/dist/index229.js +588 -77
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +212 -29
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +64 -68
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +42 -115
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +65 -98
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +48 -149
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +98 -68
- package/dist/index235.cjs +1 -9
- package/dist/index235.js +214 -580
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +29 -66
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +23 -40
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +55 -59
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +419 -46
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +200 -312
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +30 -97
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +205 -196
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +228 -124
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +161 -86
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +89 -143
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +140 -76
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +92 -84
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +84 -26
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +26 -35
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -86
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +84 -231
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +234 -44
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +39 -26
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +30 -14
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +14 -13
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +13 -3
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +4 -87
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +83 -174
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +66 -142
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +217 -62
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +135 -47
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +47 -260
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +273 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +7 -4
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -503
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +472 -177
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +205 -23
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +21 -1008
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1014 -21
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +22 -207
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +181 -130
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +132 -99
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +123 -19
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +17 -79
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +75 -90
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +91 -9
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +12 -91
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +62 -5
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +92 -31
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +29 -208
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +123 -99
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +17 -17
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +28 -28
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +30 -30
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +11 -11
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +22 -28
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +20 -20
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +7 -7
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +28 -28
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +28 -61
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +60 -15
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/calendar.d.ts +1 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/command.d.ts +1 -1
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/pagination.d.ts +3 -1
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +1 -1
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/useBreakpoint.d.ts +0 -4
- package/dist/ui/useBreakpoint.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index242.cjs +0 -1
- package/dist/index242.js +0 -25
- package/dist/index243.cjs +0 -1
- package/dist/index243.js +0 -26
- package/dist/index244.cjs +0 -1
- package/dist/index244.js +0 -63
- package/dist/index245.cjs +0 -1
- package/dist/index245.js +0 -422
- package/dist/index246.cjs +0 -1
- package/dist/index246.js +0 -25
- package/dist/index247.cjs +0 -1
- package/dist/index247.js +0 -209
package/dist/index169.js
CHANGED
|
@@ -1,92 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Text as e } from "./index14.js";
|
|
2
|
+
import { Button as t } from "./index22.js";
|
|
3
|
+
import { DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a } from "./index107.js";
|
|
3
4
|
import "@stylexjs/stylex";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { c
|
|
6
|
-
import { map as
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { map as l } from "lodash-es";
|
|
7
8
|
// src/DataTable/components/DataTablePagination.tsx
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var u = { pageNumber: {
|
|
10
|
+
kGuDYH: "xkpwil5",
|
|
11
|
+
k63SB2: "xk50ysn",
|
|
12
|
+
kg3NbH: "x97vtpp",
|
|
13
|
+
kMwMTN: "x84br7x",
|
|
14
|
+
$$css: !0
|
|
15
|
+
} }, d = (d) => {
|
|
16
|
+
let f = c(45), { table: p, tableState: m, pageSizeOptions: h, apiConfig: g } = d, _ = m.pagination.pageIndex, v = m.pagination.pageSize, y;
|
|
17
|
+
f[0] !== g.mode || f[1] !== g.totalRows || f[2] !== p ? (y = g.mode === "server" ? g.totalRows : p.getFilteredRowModel().rows.length, f[0] = g.mode, f[1] = g.totalRows, f[2] = p, f[3] = y) : y = f[3];
|
|
18
|
+
let b = y, x = v > 0 ? Math.ceil(b / v) : 0, S;
|
|
19
|
+
f[4] === p ? S = f[5] : (S = p.getFilteredSelectedRowModel(), f[4] = p, f[5] = S);
|
|
20
|
+
let C;
|
|
21
|
+
f[6] !== S.rows.length || f[7] !== b ? (C = /* @__PURE__ */ s("div", {
|
|
15
22
|
className: "xw3nh4a x845mor xkpwil5",
|
|
16
23
|
children: [
|
|
17
|
-
|
|
24
|
+
S.rows.length,
|
|
18
25
|
" of ",
|
|
19
|
-
|
|
26
|
+
b,
|
|
20
27
|
" row(s) selected."
|
|
21
28
|
]
|
|
22
|
-
}),
|
|
23
|
-
let
|
|
24
|
-
|
|
29
|
+
}), f[6] = S.rows.length, f[7] = b, f[8] = C) : C = f[8];
|
|
30
|
+
let w;
|
|
31
|
+
f[9] === v ? w = f[10] : (w = /* @__PURE__ */ o(a, {
|
|
25
32
|
asChild: !0,
|
|
26
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ s(t, {
|
|
27
34
|
variant: "outline",
|
|
28
35
|
size: "sm",
|
|
29
|
-
children: ["Rows: ",
|
|
36
|
+
children: ["Rows: ", v]
|
|
30
37
|
})
|
|
31
|
-
}),
|
|
32
|
-
let C;
|
|
33
|
-
u[11] !== g || u[12] !== d ? (C = (e) => /* @__PURE__ */ a(r, {
|
|
34
|
-
onClick: () => d.setPageSize(e),
|
|
35
|
-
disabled: e === g,
|
|
36
|
-
children: e
|
|
37
|
-
}, String(e)), u[11] = g, u[12] = d, u[13] = C) : C = u[13];
|
|
38
|
-
let w;
|
|
39
|
-
u[14] !== p || u[15] !== C ? (w = c(p, C), u[14] = p, u[15] = C, u[16] = w) : w = u[16];
|
|
38
|
+
}), f[9] = v, f[10] = w);
|
|
40
39
|
let T;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
f[11] !== v || f[12] !== p ? (T = (e) => /* @__PURE__ */ o(i, {
|
|
41
|
+
onClick: () => p.setPageSize(e),
|
|
42
|
+
disabled: e === v,
|
|
43
|
+
children: e
|
|
44
|
+
}, String(e)), f[11] = v, f[12] = p, f[13] = T) : T = f[13];
|
|
45
45
|
let E;
|
|
46
|
-
|
|
47
|
-
let D
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
f[14] !== h || f[15] !== T ? (E = l(h, T), f[14] = h, f[15] = T, f[16] = E) : E = f[16];
|
|
47
|
+
let D;
|
|
48
|
+
f[17] === E ? D = f[18] : (D = /* @__PURE__ */ o(r, {
|
|
49
|
+
align: "end",
|
|
50
|
+
children: E
|
|
51
|
+
}), f[17] = E, f[18] = D);
|
|
52
|
+
let O;
|
|
53
|
+
f[19] !== w || f[20] !== D ? (O = /* @__PURE__ */ s(n, { children: [w, D] }), f[19] = w, f[20] = D, f[21] = O) : O = f[21];
|
|
54
|
+
let k, A;
|
|
55
|
+
f[22] === p ? (k = f[23], A = f[24]) : (A = () => p.previousPage(), k = p.getCanPreviousPage(), f[22] = p, f[23] = k, f[24] = A);
|
|
56
|
+
let j = !k, M;
|
|
57
|
+
f[25] !== j || f[26] !== A ? (M = /* @__PURE__ */ o(t, {
|
|
51
58
|
variant: "outline",
|
|
52
59
|
size: "sm",
|
|
53
|
-
onClick:
|
|
54
|
-
disabled:
|
|
60
|
+
onClick: A,
|
|
61
|
+
disabled: j,
|
|
55
62
|
children: "Previous"
|
|
56
|
-
}),
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
}), f[25] = j, f[26] = A, f[27] = M) : M = f[27];
|
|
64
|
+
let N = _ + 1, P = Math.max(1, x), F;
|
|
65
|
+
f[28] !== N || f[29] !== P ? (F = /* @__PURE__ */ s(e, {
|
|
66
|
+
as: "span",
|
|
67
|
+
size: "sm",
|
|
68
|
+
sx: u.pageNumber,
|
|
60
69
|
children: [
|
|
61
|
-
|
|
70
|
+
N,
|
|
62
71
|
" / ",
|
|
63
|
-
|
|
72
|
+
P
|
|
64
73
|
]
|
|
65
|
-
}),
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
let
|
|
69
|
-
|
|
74
|
+
}), f[28] = N, f[29] = P, f[30] = F) : F = f[30];
|
|
75
|
+
let I, L;
|
|
76
|
+
f[31] === p ? (I = f[32], L = f[33]) : (I = () => p.nextPage(), L = p.getCanNextPage(), f[31] = p, f[32] = I, f[33] = L);
|
|
77
|
+
let R = !L, z;
|
|
78
|
+
f[34] !== I || f[35] !== R ? (z = /* @__PURE__ */ o(t, {
|
|
70
79
|
variant: "outline",
|
|
71
80
|
size: "sm",
|
|
72
|
-
onClick:
|
|
73
|
-
disabled:
|
|
81
|
+
onClick: I,
|
|
82
|
+
disabled: R,
|
|
74
83
|
children: "Next"
|
|
75
|
-
}),
|
|
76
|
-
let
|
|
77
|
-
|
|
84
|
+
}), f[34] = I, f[35] = R, f[36] = z) : z = f[36];
|
|
85
|
+
let B;
|
|
86
|
+
f[37] !== M || f[38] !== F || f[39] !== z || f[40] !== O ? (B = /* @__PURE__ */ s("div", {
|
|
78
87
|
className: "x78zum5 x6s0dn4 x13z6uf9",
|
|
79
88
|
children: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
O,
|
|
90
|
+
M,
|
|
91
|
+
F,
|
|
92
|
+
z
|
|
84
93
|
]
|
|
85
|
-
}),
|
|
86
|
-
let
|
|
87
|
-
return
|
|
94
|
+
}), f[37] = M, f[38] = F, f[39] = z, f[40] = O, f[41] = B) : B = f[41];
|
|
95
|
+
let V;
|
|
96
|
+
return f[42] !== B || f[43] !== C ? (V = /* @__PURE__ */ s("div", {
|
|
88
97
|
className: "x78zum5 x6s0dn4 x1qughib x8fetqu xgepmj6",
|
|
89
|
-
children: [
|
|
90
|
-
}),
|
|
98
|
+
children: [C, B]
|
|
99
|
+
}), f[42] = B, f[43] = C, f[44] = V) : V = f[44], V;
|
|
91
100
|
};
|
|
92
|
-
export {
|
|
101
|
+
export { d as DataTablePagination };
|
package/dist/index17.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index7.cjs"),r=require("./index11.cjs"),i=require("./index14.cjs");let a=require("@stylexjs/stylex");a=e.__toESM(a,1);let o=require("react/jsx-runtime"),s=require("react");var c={inline:{kMv6JI:`x17yh6e0`,kGuDYH:`xkpwil5`,kaIpWk:`x1q0v2j7`,kWkggS:`x1qry0bl`,kMwMTN:`x84br7x`,kg3NbH:`x18a9hih`,k8WAf4:`x1dus959`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,$$css:!0},pre:{kogj98:`x1ghz6dp`,kmVPX3:`x1uz70x1`,kXHlph:`xw2csxc`,kaIpWk:`xsda711`,kWkggS:`x1qry0bl`,kMwMTN:`x84br7x`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kMv6JI:`x17yh6e0`,kGuDYH:`xkpwil5`,kLWn49:`x1dbl2gt`,$$css:!0},badge:{kVAEAm:`x10l6tqk`,krVfgx:`x1of4z1n`,kCIrl2:`x1d83s0a`,kGuDYH:`x12lo8hy`,k63SB2:`x1s688f`,kP9fke:`xtvhhri`,kMwMTN:`xw3nh4a`,kSiTet:`x197sbye`,kfSwDN:`x87ps6o`,kfzvcC:`x47corl`,$$css:!0}};function l({block:e=!1,language:l,copyable:u=!1,weight:d,customSize:f,lines:p,rows:m,lineHeight:h,ellipsis:g,textDecoration:_,textDecorationLine:v,textDecorationStyle:y,textDecorationColor:b,textDecorationThickness:x,textUnderlineOffset:S,as:C,className:w,children:T,sx:E,...D}){let[O,k]=(0,s.useState)(!1),A=n.resolveCustomTypographyStyle({customSize:f,lines:p,rows:m,lineHeight:h,ellipsis:g,textDecoration:_,textDecorationLine:v,textDecorationStyle:y,textDecorationColor:b,textDecorationThickness:x,textUnderlineOffset:S}),j=async()=>{if(typeof T==`string`)try{await navigator.clipboard.writeText(T),k(!0),setTimeout(()=>k(!1),2e3)}catch{}};if(e){let e=C||`pre`,n=a.props(c.pre,d&&r.typographyWeightStyles[d],E);return(0,o.jsxs)(`div`,{className:`x1n2onr6 x1ghz6dp xh8yej3`,"data-slot":`typography-code-block`,children:[(0,o.jsx)(e,{"data-weight":d,...n,style:{...n.style,...A},className:w?`${n.className||``} ${w}`.trim():n.className,...D,children:(0,o.jsx)(`code`,{className:`xjb2p0i x1qlqyl8 xjbqb8w x1717udv xc342km x1heor9g`,"data-language":l,children:T})}),l&&(0,o.jsx)(i.Text,{as:`span`,size:`xxs`,type:`secondary`,sx:c.badge,children:l}),u&&(0,o.jsx)(`button`,{type:`button`,onClick:j,className:`x10l6tqk x1nh8u4m x1d83s0a xjyslct xmkeg23 x1y0btm7 xb30jbz x1mlyrtw xw3nh4a x1ypdohk xd7ozn7 x1q0v2j7 x3nfvp2 x6s0dn4 xl56j7k x1a2a7pz x1gbuem2 xx6bhzk x8aud5w x9p52ec`,"aria-label":O?`Copied`:`Copy code`,children:O?(0,o.jsx)(t.Icons.Check,{className:`x1xvt488 xf08kfj`}):(0,o.jsx)(t.Icons.Copy,{className:`x1xvt488 xf08kfj`})})]})}let M=C||`code`,N=a.props(c.inline,d&&r.typographyWeightStyles[d],E);return(0,o.jsx)(M,{"data-slot":`typography-code`,"data-language":l,"data-weight":d,...N,style:{...N.style,...A},className:w?`${N.className||``} ${w}`.trim():N.className,...D,children:T})}exports.Code=l;
|
package/dist/index17.js
CHANGED
|
@@ -1,16 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { Icons as e } from "./index4.js";
|
|
2
|
+
import { resolveCustomTypographyStyle as t } from "./index7.js";
|
|
3
|
+
import { typographyWeightStyles as n } from "./index11.js";
|
|
4
|
+
import { Text as r } from "./index14.js";
|
|
5
|
+
import * as i from "@stylexjs/stylex";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import { useState as s } from "react";
|
|
8
|
+
// src/Typography/Code.tsx
|
|
9
|
+
var c = {
|
|
10
|
+
inline: {
|
|
11
|
+
kMv6JI: "x17yh6e0",
|
|
12
|
+
kGuDYH: "xkpwil5",
|
|
13
|
+
kaIpWk: "x1q0v2j7",
|
|
14
|
+
kWkggS: "x1qry0bl",
|
|
15
|
+
kMwMTN: "x84br7x",
|
|
16
|
+
kg3NbH: "x18a9hih",
|
|
17
|
+
k8WAf4: "x1dus959",
|
|
18
|
+
kMzoRj: "xmkeg23",
|
|
19
|
+
ksu8eU: "x1y0btm7",
|
|
20
|
+
kVAM5u: "xb30jbz",
|
|
21
|
+
$$css: !0
|
|
22
|
+
},
|
|
23
|
+
pre: {
|
|
24
|
+
kogj98: "x1ghz6dp",
|
|
25
|
+
kmVPX3: "x1uz70x1",
|
|
26
|
+
kXHlph: "xw2csxc",
|
|
27
|
+
kaIpWk: "xsda711",
|
|
28
|
+
kWkggS: "x1qry0bl",
|
|
29
|
+
kMwMTN: "x84br7x",
|
|
30
|
+
kMzoRj: "xmkeg23",
|
|
31
|
+
ksu8eU: "x1y0btm7",
|
|
32
|
+
kVAM5u: "xb30jbz",
|
|
33
|
+
kMv6JI: "x17yh6e0",
|
|
34
|
+
kGuDYH: "xkpwil5",
|
|
35
|
+
kLWn49: "x1dbl2gt",
|
|
36
|
+
$$css: !0
|
|
37
|
+
},
|
|
38
|
+
badge: {
|
|
39
|
+
kVAEAm: "x10l6tqk",
|
|
40
|
+
krVfgx: "x1of4z1n",
|
|
41
|
+
kCIrl2: "x1d83s0a",
|
|
42
|
+
kGuDYH: "x12lo8hy",
|
|
43
|
+
k63SB2: "x1s688f",
|
|
44
|
+
kP9fke: "xtvhhri",
|
|
45
|
+
kMwMTN: "xw3nh4a",
|
|
46
|
+
kSiTet: "x197sbye",
|
|
47
|
+
kfSwDN: "x87ps6o",
|
|
48
|
+
kfzvcC: "x47corl",
|
|
49
|
+
$$css: !0
|
|
50
|
+
}
|
|
15
51
|
};
|
|
16
|
-
|
|
52
|
+
function l({ block: l = !1, language: u, copyable: d = !1, weight: f, customSize: p, lines: m, rows: h, lineHeight: g, ellipsis: _, textDecoration: v, textDecorationLine: y, textDecorationStyle: b, textDecorationColor: x, textDecorationThickness: S, textUnderlineOffset: C, as: w, className: T, children: E, sx: D, ...O }) {
|
|
53
|
+
let [k, A] = s(!1), j = t({
|
|
54
|
+
customSize: p,
|
|
55
|
+
lines: m,
|
|
56
|
+
rows: h,
|
|
57
|
+
lineHeight: g,
|
|
58
|
+
ellipsis: _,
|
|
59
|
+
textDecoration: v,
|
|
60
|
+
textDecorationLine: y,
|
|
61
|
+
textDecorationStyle: b,
|
|
62
|
+
textDecorationColor: x,
|
|
63
|
+
textDecorationThickness: S,
|
|
64
|
+
textUnderlineOffset: C
|
|
65
|
+
}), M = async () => {
|
|
66
|
+
if (typeof E == "string") try {
|
|
67
|
+
await navigator.clipboard.writeText(E), A(!0), setTimeout(() => A(!1), 2e3);
|
|
68
|
+
} catch {}
|
|
69
|
+
};
|
|
70
|
+
if (l) {
|
|
71
|
+
let t = w || "pre", s = i.props(c.pre, f && n[f], D);
|
|
72
|
+
return /* @__PURE__ */ o("div", {
|
|
73
|
+
className: "x1n2onr6 x1ghz6dp xh8yej3",
|
|
74
|
+
"data-slot": "typography-code-block",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ a(t, {
|
|
77
|
+
"data-weight": f,
|
|
78
|
+
...s,
|
|
79
|
+
style: {
|
|
80
|
+
...s.style,
|
|
81
|
+
...j
|
|
82
|
+
},
|
|
83
|
+
className: T ? `${s.className || ""} ${T}`.trim() : s.className,
|
|
84
|
+
...O,
|
|
85
|
+
children: /* @__PURE__ */ a("code", {
|
|
86
|
+
className: "xjb2p0i x1qlqyl8 xjbqb8w x1717udv xc342km x1heor9g",
|
|
87
|
+
"data-language": u,
|
|
88
|
+
children: E
|
|
89
|
+
})
|
|
90
|
+
}),
|
|
91
|
+
u && /* @__PURE__ */ a(r, {
|
|
92
|
+
as: "span",
|
|
93
|
+
size: "xxs",
|
|
94
|
+
type: "secondary",
|
|
95
|
+
sx: c.badge,
|
|
96
|
+
children: u
|
|
97
|
+
}),
|
|
98
|
+
d && /* @__PURE__ */ a("button", {
|
|
99
|
+
type: "button",
|
|
100
|
+
onClick: M,
|
|
101
|
+
className: "x10l6tqk x1nh8u4m x1d83s0a xjyslct xmkeg23 x1y0btm7 xb30jbz x1mlyrtw xw3nh4a x1ypdohk xd7ozn7 x1q0v2j7 x3nfvp2 x6s0dn4 xl56j7k x1a2a7pz x1gbuem2 xx6bhzk x8aud5w x9p52ec",
|
|
102
|
+
"aria-label": k ? "Copied" : "Copy code",
|
|
103
|
+
children: a(k ? e.Check : e.Copy, { className: "x1xvt488 xf08kfj" })
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
let N = w || "code", P = i.props(c.inline, f && n[f], D);
|
|
109
|
+
return /* @__PURE__ */ a(N, {
|
|
110
|
+
"data-slot": "typography-code",
|
|
111
|
+
"data-language": u,
|
|
112
|
+
"data-weight": f,
|
|
113
|
+
...P,
|
|
114
|
+
style: {
|
|
115
|
+
...P.style,
|
|
116
|
+
...j
|
|
117
|
+
},
|
|
118
|
+
className: T ? `${P.className || ""} ${T}`.trim() : P.className,
|
|
119
|
+
...O,
|
|
120
|
+
children: E
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export { l as Code };
|
package/dist/index170.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index157.cjs");let n=require("
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index157.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react"),a=require("react/compiler-runtime"),o=require("lodash-es"),s=require("@tanstack/react-table");var c={emptyCell:{kZKoxP:`x17frcva`,k9WMMc:`x2b8uid`,$$css:!0},expandCell:{kmVPX3:`x1717udv`,$$css:!0}},l=e=>{let n=(0,a.c)(21),{table:l,columnVisibility:d,expandConfig:f,empty:p,columnsCount:m}=e,h,g,_,v;if(n[0]!==d||n[1]!==m||n[2]!==p||n[3]!==f||n[4]!==l){let e=l.getRowModel().rows,a;n[9]!==d||n[10]!==l?(a=()=>(0,r.jsx)(t.TableHeader,{children:(0,o.map)(l.getHeaderGroups(),e=>(0,r.jsx)(t.TableRow,{children:(0,o.map)(e.headers,e=>e.isPlaceholder||d[e.column.id]===!1||e.column.columnDef.header===void 0?null:(0,r.jsx)(t.TableHead,{children:(0,s.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),n[9]=d,n[10]=l,n[11]=a):a=n[11];let y=a;g=t.Table,n[12]===y?v=n[13]:(v=y(),n[12]=y,n[13]=v),h=t.TableBody,_=(0,o.isEmpty)(e)?(0,r.jsx)(t.TableRow,{children:(0,r.jsx)(t.TableCell,{colSpan:m,sx:c.emptyCell,children:p.render()})}):(0,o.map)(e,e=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(t.TableRow,{"data-state":e.getIsSelected()?`selected`:void 0,children:(0,o.map)(e.getVisibleCells(),u)}),f.enabled&&e.getIsExpanded()?(0,r.jsx)(t.TableRow,{children:(0,r.jsx)(t.TableCell,{colSpan:m,sx:c.expandCell,children:f.renderSubComponent(e)})}):null]},e.id)),n[0]=d,n[1]=m,n[2]=p,n[3]=f,n[4]=l,n[5]=h,n[6]=g,n[7]=_,n[8]=v}else h=n[5],g=n[6],_=n[7],v=n[8];let y;n[14]!==h||n[15]!==_?(y=(0,r.jsx)(h,{children:_}),n[14]=h,n[15]=_,n[16]=y):y=n[16];let b;return n[17]!==g||n[18]!==v||n[19]!==y?(b=(0,r.jsxs)(g,{children:[v,y]}),n[17]=g,n[18]=v,n[19]=y,n[20]=b):b=n[20],b};function u(e){return(0,r.jsx)(t.TableCell,{children:(0,s.flexRender)(e.column.columnDef.cell,e.getContext())},e.id)}exports.DataTableTable=l;
|
package/dist/index170.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Table as e, TableBody as t, TableCell as n, TableHead as r, TableHeader as i, TableRow as a } from "./index157.js";
|
|
2
|
-
import { Fragment as o } from "react";
|
|
3
2
|
import "@stylexjs/stylex";
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as c } from "react";
|
|
5
5
|
import { c as l } from "react/compiler-runtime";
|
|
6
6
|
import { isEmpty as u, map as d } from "lodash-es";
|
|
7
7
|
import { flexRender as f } from "@tanstack/react-table";
|
|
@@ -20,27 +20,27 @@ var p = {
|
|
|
20
20
|
let g = l(21), { table: _, columnVisibility: v, expandConfig: y, empty: b, columnsCount: x } = m, S, C, w, T;
|
|
21
21
|
if (g[0] !== v || g[1] !== x || g[2] !== b || g[3] !== y || g[4] !== _) {
|
|
22
22
|
let l = _.getRowModel().rows, m;
|
|
23
|
-
g[9] !== v || g[10] !== _ ? (m = () => /* @__PURE__ */
|
|
23
|
+
g[9] !== v || g[10] !== _ ? (m = () => /* @__PURE__ */ o(i, { children: d(_.getHeaderGroups(), (e) => /* @__PURE__ */ o(a, { children: d(e.headers, (e) => e.isPlaceholder || v[e.column.id] === !1 || e.column.columnDef.header === void 0 ? null : /* @__PURE__ */ o(r, { children: f(e.column.columnDef.header, e.getContext()) }, e.id)) }, e.id)) }), g[9] = v, g[10] = _, g[11] = m) : m = g[11];
|
|
24
24
|
let E = m;
|
|
25
|
-
C = e, g[12] === E ? T = g[13] : (T = E(), g[12] = E, g[13] = T), S = t, w = u(l) ? /* @__PURE__ */
|
|
25
|
+
C = e, g[12] === E ? T = g[13] : (T = E(), g[12] = E, g[13] = T), S = t, w = u(l) ? /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(n, {
|
|
26
26
|
colSpan: x,
|
|
27
27
|
sx: p.emptyCell,
|
|
28
28
|
children: b.render()
|
|
29
|
-
}) }) : d(l, (e) => /* @__PURE__ */ c
|
|
29
|
+
}) }) : d(l, (e) => /* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o(a, {
|
|
30
30
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
31
31
|
children: d(e.getVisibleCells(), h)
|
|
32
|
-
}), y.enabled && e.getIsExpanded() ? /* @__PURE__ */
|
|
32
|
+
}), y.enabled && e.getIsExpanded() ? /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(n, {
|
|
33
33
|
colSpan: x,
|
|
34
34
|
sx: p.expandCell,
|
|
35
35
|
children: y.renderSubComponent(e)
|
|
36
36
|
}) }) : null] }, e.id)), g[0] = v, g[1] = x, g[2] = b, g[3] = y, g[4] = _, g[5] = S, g[6] = C, g[7] = w, g[8] = T;
|
|
37
37
|
} else S = g[5], C = g[6], w = g[7], T = g[8];
|
|
38
38
|
let E;
|
|
39
|
-
g[14] !== S || g[15] !== w ? (E = /* @__PURE__ */
|
|
39
|
+
g[14] !== S || g[15] !== w ? (E = /* @__PURE__ */ o(S, { children: w }), g[14] = S, g[15] = w, g[16] = E) : E = g[16];
|
|
40
40
|
let D;
|
|
41
|
-
return g[17] !== C || g[18] !== T || g[19] !== E ? (D = /* @__PURE__ */
|
|
41
|
+
return g[17] !== C || g[18] !== T || g[19] !== E ? (D = /* @__PURE__ */ s(C, { children: [T, E] }), g[17] = C, g[18] = T, g[19] = E, g[20] = D) : D = g[20], D;
|
|
42
42
|
};
|
|
43
43
|
function h(e) {
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ o(n, { children: f(e.column.columnDef.cell, e.getContext()) }, e.id);
|
|
45
45
|
}
|
|
46
46
|
export { m as DataTableTable };
|
package/dist/index171.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index123.cjs");let n=require("
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index123.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react"),a=require("react/compiler-runtime"),o=require("lodash-es");var s={searchInput:{ks0D6T:`xowlazn`,$$css:!0}},c=e=>{let n=(0,a.c)(20),{table:c,placeholder:l,debounceMs:u,right:d}=e,f;n[0]===c?f=n[1]:(f=c.getState(),n[0]=c,n[1]=f);let p=f.globalFilter,m=typeof p==`string`?p:``,h;n[2]===c?h=n[3]:(h=e=>{c.setGlobalFilter(e)},n[2]=c,n[3]=h);let g;n[4]!==u||n[5]!==h?(g=(0,o.debounce)(h,u),n[4]=u,n[5]=h,n[6]=g):g=n[6];let _=(0,i.useRef)(g),v,y;n[7]!==u||n[8]!==c?(v=()=>(_.current=(0,o.debounce)(e=>{c.setGlobalFilter(e)},u),()=>{_.current.cancel()}),y=[c,u],n[7]=u,n[8]=c,n[9]=v,n[10]=y):(v=n[9],y=n[10]),(0,i.useEffect)(v,y);let b,x;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>()=>{_.current.cancel()},x=[],n[11]=b,n[12]=x):(b=n[11],x=n[12]),(0,i.useEffect)(b,x);let S;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{let t=e.target.value;(0,o.isEmpty)(t)?_.current(``):_.current(t)},n[13]=S):S=n[13];let C;n[14]!==m||n[15]!==l?(C=(0,r.jsx)(t.Input,{placeholder:l,defaultValue:m,onChange:S,sx:s.searchInput}),n[14]=m,n[15]=l,n[16]=C):C=n[16];let w;return n[17]!==d||n[18]!==C?(w=(0,r.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x13z6uf9 xgepmj6`,children:[C,d]}),n[17]=d,n[18]=C,n[19]=w):w=n[19],w};exports.DataTableToolbar=c;
|
package/dist/index171.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Input as e } from "./index123.js";
|
|
2
|
-
import { useEffect as t, useRef as n } from "react";
|
|
3
2
|
import "@stylexjs/stylex";
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { useEffect as r, useRef as i } from "react";
|
|
5
5
|
import { c as a } from "react/compiler-runtime";
|
|
6
6
|
import { debounce as o, isEmpty as s } from "lodash-es";
|
|
7
7
|
// src/DataTable/components/DataTableToolbar.tsx
|
|
@@ -17,30 +17,30 @@ var c = { searchInput: {
|
|
|
17
17
|
}, u[2] = d, u[3] = v);
|
|
18
18
|
let y;
|
|
19
19
|
u[4] !== p || u[5] !== v ? (y = o(v, p), u[4] = p, u[5] = v, u[6] = y) : y = u[6];
|
|
20
|
-
let b =
|
|
20
|
+
let b = i(y), x, S;
|
|
21
21
|
u[7] !== p || u[8] !== d ? (x = () => (b.current = o((e) => {
|
|
22
22
|
d.setGlobalFilter(e);
|
|
23
23
|
}, p), () => {
|
|
24
24
|
b.current.cancel();
|
|
25
|
-
}), S = [d, p], u[7] = p, u[8] = d, u[9] = x, u[10] = S) : (x = u[9], S = u[10]),
|
|
25
|
+
}), S = [d, p], u[7] = p, u[8] = d, u[9] = x, u[10] = S) : (x = u[9], S = u[10]), r(x, S);
|
|
26
26
|
let C, w;
|
|
27
27
|
u[11] === Symbol.for("react.memo_cache_sentinel") ? (C = () => () => {
|
|
28
28
|
b.current.cancel();
|
|
29
|
-
}, w = [], u[11] = C, u[12] = w) : (C = u[11], w = u[12]),
|
|
29
|
+
}, w = [], u[11] = C, u[12] = w) : (C = u[11], w = u[12]), r(C, w);
|
|
30
30
|
let T;
|
|
31
31
|
u[13] === Symbol.for("react.memo_cache_sentinel") ? (T = (e) => {
|
|
32
32
|
let t = e.target.value;
|
|
33
33
|
s(t) ? b.current("") : b.current(t);
|
|
34
34
|
}, u[13] = T) : T = u[13];
|
|
35
35
|
let E;
|
|
36
|
-
u[14] !== _ || u[15] !== f ? (E = /* @__PURE__ */
|
|
36
|
+
u[14] !== _ || u[15] !== f ? (E = /* @__PURE__ */ t(e, {
|
|
37
37
|
placeholder: f,
|
|
38
38
|
defaultValue: _,
|
|
39
39
|
onChange: T,
|
|
40
40
|
sx: c.searchInput
|
|
41
41
|
}), u[14] = _, u[15] = f, u[16] = E) : E = u[16];
|
|
42
42
|
let D;
|
|
43
|
-
return u[17] !== m || u[18] !== E ? (D = /* @__PURE__ */
|
|
43
|
+
return u[17] !== m || u[18] !== E ? (D = /* @__PURE__ */ n("div", {
|
|
44
44
|
className: "x78zum5 x6s0dn4 x13z6uf9 xgepmj6",
|
|
45
45
|
children: [E, m]
|
|
46
46
|
}), u[17] = m, u[18] = E, u[19] = D) : D = u[19], D;
|
package/dist/index172.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index22.cjs"),n=require("./index107.cjs");let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("lucide-react"),a=require("react/jsx-runtime"),o=require("react"),s=require("react/compiler-runtime"),c=require("lodash-es");var l={triggerOpen:{kWkggS:`x1jgryid`,kMwMTN:`xzeqxs3`,$$css:!0}},u=e=>{let r=(0,s.c)(25),{table:u,columnVisibility:f}=e,[p,m]=(0,o.useState)(!1),h,g,_,v,y,b,x;if(r[0]!==f||r[1]!==p||r[2]!==u){let e=u.getAllColumns().filter(d);g=n.DropdownMenu,y=p,b=m;let o=p?l.triggerOpen:void 0,s;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,a.jsx)(i.ChevronDown,{className:`x1kky2od xlup9mm x1iog12x`}),r[10]=s):s=r[10],r[11]===o?x=r[12]:(x=(0,a.jsx)(n.DropdownMenuTrigger,{asChild:!0,children:(0,a.jsxs)(t.Button,{variant:`outline`,sx:o,children:[`Columns `,s]})}),r[11]=o,r[12]=x),h=n.DropdownMenuContent,_=`end`;let S;r[13]===f?S=r[14]:(S=e=>(0,a.jsx)(n.DropdownMenuCheckboxItem,{checked:f[e.id]!==!1,onCheckedChange:()=>e.toggleVisibility(f[e.id]===!1),children:e.id},e.id),r[13]=f,r[14]=S),v=(0,c.map)(e,S),r[0]=f,r[1]=p,r[2]=u,r[3]=h,r[4]=g,r[5]=_,r[6]=v,r[7]=y,r[8]=b,r[9]=x}else h=r[3],g=r[4],_=r[5],v=r[6],y=r[7],b=r[8],x=r[9];let S;r[15]!==h||r[16]!==_||r[17]!==v?(S=(0,a.jsx)(h,{align:_,children:v}),r[15]=h,r[16]=_,r[17]=v,r[18]=S):S=r[18];let C;return r[19]!==g||r[20]!==y||r[21]!==b||r[22]!==x||r[23]!==S?(C=(0,a.jsxs)(g,{open:y,onOpenChange:b,children:[x,S]}),r[19]=g,r[20]=y,r[21]=b,r[22]=x,r[23]=S,r[24]=C):C=r[24],C};function d(e){return e.getCanHide()}exports.DataTableViewOptions=u;
|
package/dist/index172.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button as e } from "./
|
|
1
|
+
import { Button as e } from "./index22.js";
|
|
2
2
|
import { DropdownMenu as t, DropdownMenuCheckboxItem as n, DropdownMenuContent as r, DropdownMenuTrigger as i } from "./index107.js";
|
|
3
|
-
import { useState as a } from "react";
|
|
4
3
|
import "@stylexjs/stylex";
|
|
5
|
-
import { ChevronDown as
|
|
6
|
-
import { jsx as
|
|
4
|
+
import { ChevronDown as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { useState as c } from "react";
|
|
7
7
|
import { c as l } from "react/compiler-runtime";
|
|
8
8
|
import { map as u } from "lodash-es";
|
|
9
9
|
// src/DataTable/components/DataTableViewOptions.tsx
|
|
@@ -12,33 +12,33 @@ var d = { triggerOpen: {
|
|
|
12
12
|
kMwMTN: "xzeqxs3",
|
|
13
13
|
$$css: !0
|
|
14
14
|
} }, f = (f) => {
|
|
15
|
-
let m = l(25), { table: h, columnVisibility: g } = f, [_, v] =
|
|
15
|
+
let m = l(25), { table: h, columnVisibility: g } = f, [_, v] = c(!1), y, b, x, S, C, w, T;
|
|
16
16
|
if (m[0] !== g || m[1] !== _ || m[2] !== h) {
|
|
17
|
-
let
|
|
17
|
+
let c = h.getAllColumns().filter(p);
|
|
18
18
|
b = t, C = _, w = v;
|
|
19
19
|
let l = _ ? d.triggerOpen : void 0, f;
|
|
20
|
-
m[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */
|
|
20
|
+
m[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ o(a, { className: "x1kky2od xlup9mm x1iog12x" }), m[10] = f) : f = m[10], m[11] === l ? T = m[12] : (T = /* @__PURE__ */ o(i, {
|
|
21
21
|
asChild: !0,
|
|
22
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ s(e, {
|
|
23
23
|
variant: "outline",
|
|
24
24
|
sx: l,
|
|
25
25
|
children: ["Columns ", f]
|
|
26
26
|
})
|
|
27
27
|
}), m[11] = l, m[12] = T), y = r, x = "end";
|
|
28
28
|
let E;
|
|
29
|
-
m[13] === g ? E = m[14] : (E = (e) => /* @__PURE__ */
|
|
29
|
+
m[13] === g ? E = m[14] : (E = (e) => /* @__PURE__ */ o(n, {
|
|
30
30
|
checked: g[e.id] !== !1,
|
|
31
31
|
onCheckedChange: () => e.toggleVisibility(g[e.id] === !1),
|
|
32
32
|
children: e.id
|
|
33
|
-
}, e.id), m[13] = g, m[14] = E), S = u(
|
|
33
|
+
}, e.id), m[13] = g, m[14] = E), S = u(c, E), m[0] = g, m[1] = _, m[2] = h, m[3] = y, m[4] = b, m[5] = x, m[6] = S, m[7] = C, m[8] = w, m[9] = T;
|
|
34
34
|
} else y = m[3], b = m[4], x = m[5], S = m[6], C = m[7], w = m[8], T = m[9];
|
|
35
35
|
let E;
|
|
36
|
-
m[15] !== y || m[16] !== x || m[17] !== S ? (E = /* @__PURE__ */
|
|
36
|
+
m[15] !== y || m[16] !== x || m[17] !== S ? (E = /* @__PURE__ */ o(y, {
|
|
37
37
|
align: x,
|
|
38
38
|
children: S
|
|
39
39
|
}), m[15] = y, m[16] = x, m[17] = S, m[18] = E) : E = m[18];
|
|
40
40
|
let D;
|
|
41
|
-
return m[19] !== b || m[20] !== C || m[21] !== w || m[22] !== T || m[23] !== E ? (D = /* @__PURE__ */
|
|
41
|
+
return m[19] !== b || m[20] !== C || m[21] !== w || m[22] !== T || m[23] !== E ? (D = /* @__PURE__ */ s(b, {
|
|
42
42
|
open: C,
|
|
43
43
|
onOpenChange: w,
|
|
44
44
|
children: [T, E]
|
package/dist/index174.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index46.cjs"),n=require("./index169.cjs"),r=require("./index170.cjs"),ee=require("./index171.cjs"),i=require("./index172.cjs"),a=require("./index173.cjs");let o=require("@stylexjs/stylex");o=e.__toESM(o,1);let s=require("react/jsx-runtime"),c=require("react"),l=require("lodash-es"),u=require("ahooks"),d=require("@tanstack/react-table");var te={sorting:[],columnFilters:[],globalFilter:``,columnVisibility:{},rowSelection:{},pagination:{pageIndex:0,pageSize:10},expanded:{}},f=()=>({enabled:!1,renderSubComponent:()=>null,getSubRows:()=>[]}),p=()=>null,ne=(e,t)=>String(t),m=({data:e,columns:o,initialState:m,empty:h,search:g,pagination:_,actions:v,api:y,infiniteScroll:b,expand:x,className:S,containerClassName:C,getRowId:w,renderToolbarRight:T})=>{let E=m===void 0?te:m,D=h===void 0?a.DEFAULT_EMPTY:h,O=g===void 0?a.DEFAULT_SEARCH:g,k=_===void 0?a.DEFAULT_PAGINATION:_,A=v===void 0?a.createDefaultActions():v,j=y===void 0?a.DEFAULT_API:y,M=b===void 0?a.DEFAULT_INFINITE_SCROLL:b,N=x===void 0?f():x,re=w===void 0?ne:w,ie=T===void 0?p:T,[P,F]=(0,c.useState)(E.sorting),[I,ae]=(0,c.useState)(E.columnFilters),[L,R]=(0,c.useState)(E.globalFilter),[z,B]=(0,c.useState)(E.columnVisibility),[V,H]=(0,c.useState)(E.rowSelection),[U,W]=(0,c.useState)(E.pagination),[G,K]=(0,c.useState)(E.expanded),q=j.mode===`server`,oe=q&&U.pageSize>0?Math.ceil(j.totalRows/U.pageSize):void 0,J=(0,d.useReactTable)({data:e,columns:o,state:{sorting:P,columnFilters:I,globalFilter:L,columnVisibility:z,rowSelection:V,pagination:U,expanded:G},manualSorting:q,manualFiltering:q,manualPagination:q,pageCount:oe,meta:{getRowActions:A.getRowActions},enableRowSelection:!0,getRowId:(e,t,n)=>re(e,t,n===void 0?null:n),onSortingChange:e=>F(t=>(0,d.functionalUpdate)(e,t)),onColumnFiltersChange:e=>ae(t=>(0,d.functionalUpdate)(e,t)),onGlobalFilterChange:e=>R(t=>(0,d.functionalUpdate)(e,t)),onColumnVisibilityChange:e=>B(t=>(0,d.functionalUpdate)(e,t)),onRowSelectionChange:e=>H(t=>(0,d.functionalUpdate)(e,t)),onPaginationChange:e=>W(t=>(0,d.functionalUpdate)(e,t)),onExpandedChange:e=>K(t=>(0,d.functionalUpdate)(e,t)),getCoreRowModel:(0,d.getCoreRowModel)(),getSortedRowModel:q?void 0:(0,d.getSortedRowModel)(),getFilteredRowModel:q?void 0:(0,d.getFilteredRowModel)(),getPaginationRowModel:q?void 0:(0,d.getPaginationRowModel)(),getExpandedRowModel:(0,d.getExpandedRowModel)(),getSubRows:N.enabled?N.getSubRows:void 0,getRowCanExpand:()=>N.enabled}),Y={sorting:P,columnFilters:I,globalFilter:L,pagination:U};(0,u.useUpdateEffect)(()=>{q||W(e=>({...e,pageIndex:0}))},[q,L,I,P]),(0,c.useEffect)(()=>{if(q)return;let e=J.getFilteredRowModel().rows.length,t=U.pageSize,n=t>0?Math.ceil(e/t):0,r=n===0?0:n-1;W(e=>({...e,pageIndex:(0,l.clamp)(e.pageIndex,0,r)}))},[q,U.pageSize,J]);let X=(0,c.useRef)((0,l.debounce)(e=>{j.onQueryChange(e)},O.debounceMs));(0,c.useEffect)(()=>(X.current=(0,l.debounce)(e=>{j.onQueryChange(e)},O.debounceMs),()=>{X.current.cancel()}),[j,O.debounceMs]),(0,u.useUpdateEffect)(()=>{if(j.mode===`server`)return X.current(Y),()=>{X.current.cancel()}},[Y,j]);let[Z,se]=(0,c.useState)(null);(0,c.useEffect)(()=>{if(M.enabled===!1||Z===null)return;let e=()=>{if(j.isFetching)return;let e=Z.scrollTop;Z.scrollHeight-(e+Z.clientHeight)<=M.thresholdPx&&M.onEndReached(Y)};return Z.addEventListener(`scroll`,e,{passive:!0}),()=>{Z.removeEventListener(`scroll`,e)}},[j.isFetching,M,Y,Z]);let ce=J.getVisibleLeafColumns().length,Q={className:`xh8yej3`},$={className:`xysyzu8`};return(0,s.jsxs)(`div`,{...Q,className:t.cn(Q.className,S===void 0?``:S),children:[(0,s.jsx)(ee.DataTableToolbar,{table:J,placeholder:O.placeholder,debounceMs:O.debounceMs,right:(0,s.jsxs)(`div`,{className:`x8x9d4c x78zum5 x6s0dn4 x13z6uf9`,children:[ie(J),(0,s.jsx)(i.DataTableViewOptions,{table:J,columnVisibility:z})]})}),(0,s.jsx)(`div`,{ref:e=>se(e),...$,className:t.cn($.className,C===void 0?``:C),children:(0,s.jsx)(r.DataTableTable,{table:J,columnVisibility:z,expandedState:G,expandConfig:N,empty:D,columnsCount:ce})}),(0,s.jsx)(n.DataTablePagination,{table:J,tableState:J.getState(),pageSizeOptions:k.pageSizeOptions,apiConfig:j})]})};exports.DataTable=m,exports.default=m;
|
package/dist/index174.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { cn as e } from "./
|
|
1
|
+
import { cn as e } from "./index46.js";
|
|
2
2
|
import { DataTablePagination as t } from "./index169.js";
|
|
3
3
|
import { DataTableTable as n } from "./index170.js";
|
|
4
4
|
import { DataTableToolbar as r } from "./index171.js";
|
|
5
5
|
import { DataTableViewOptions as ee } from "./index172.js";
|
|
6
6
|
import { DEFAULT_API as te, DEFAULT_EMPTY as ne, DEFAULT_INFINITE_SCROLL as re, DEFAULT_PAGINATION as ie, DEFAULT_SEARCH as ae, createDefaultActions as oe } from "./index173.js";
|
|
7
|
-
import { useEffect as i, useRef as se, useState as a } from "react";
|
|
8
7
|
import "@stylexjs/stylex";
|
|
9
|
-
import { jsx as
|
|
8
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
9
|
+
import { useEffect as o, useRef as se, useState as s } from "react";
|
|
10
10
|
import { clamp as ce, debounce as c } from "lodash-es";
|
|
11
11
|
import { useUpdateEffect as l } from "ahooks";
|
|
12
12
|
import { functionalUpdate as u, getCoreRowModel as le, getExpandedRowModel as ue, getFilteredRowModel as de, getPaginationRowModel as fe, getSortedRowModel as pe, useReactTable as d } from "@tanstack/react-table";
|
|
@@ -27,7 +27,7 @@ var f = {
|
|
|
27
27
|
renderSubComponent: () => null,
|
|
28
28
|
getSubRows: () => []
|
|
29
29
|
}), m = () => null, h = (e, t) => String(t), g = ({ data: g, columns: me, initialState: _, empty: v, search: y, pagination: b, actions: x, api: S, infiniteScroll: C, expand: w, className: T, containerClassName: E, getRowId: D, renderToolbarRight: O }) => {
|
|
30
|
-
let k = _ === void 0 ? f : _, A = v === void 0 ? ne : v, j = y === void 0 ? ae : y, M = b === void 0 ? ie : b, N = x === void 0 ? oe() : x, P = S === void 0 ? te : S, F = C === void 0 ? re : C, I = w === void 0 ? p() : w, L = D === void 0 ? h : D, R = O === void 0 ? m : O, [z, he] =
|
|
30
|
+
let k = _ === void 0 ? f : _, A = v === void 0 ? ne : v, j = y === void 0 ? ae : y, M = b === void 0 ? ie : b, N = x === void 0 ? oe() : x, P = S === void 0 ? te : S, F = C === void 0 ? re : C, I = w === void 0 ? p() : w, L = D === void 0 ? h : D, R = O === void 0 ? m : O, [z, he] = s(k.sorting), [B, ge] = s(k.columnFilters), [V, _e] = s(k.globalFilter), [H, ve] = s(k.columnVisibility), [ye, be] = s(k.rowSelection), [U, W] = s(k.pagination), [G, K] = s(k.expanded), q = P.mode === "server", xe = q && U.pageSize > 0 ? Math.ceil(P.totalRows / U.pageSize) : void 0, J = d({
|
|
31
31
|
data: g,
|
|
32
32
|
columns: me,
|
|
33
33
|
state: {
|
|
@@ -76,7 +76,7 @@ var f = {
|
|
|
76
76
|
V,
|
|
77
77
|
B,
|
|
78
78
|
z
|
|
79
|
-
]),
|
|
79
|
+
]), o(() => {
|
|
80
80
|
if (q) return;
|
|
81
81
|
let e = J.getFilteredRowModel().rows.length, t = U.pageSize, n = t > 0 ? Math.ceil(e / t) : 0, r = n === 0 ? 0 : n - 1;
|
|
82
82
|
W((e) => ({
|
|
@@ -91,7 +91,7 @@ var f = {
|
|
|
91
91
|
let X = se(c((e) => {
|
|
92
92
|
P.onQueryChange(e);
|
|
93
93
|
}, j.debounceMs));
|
|
94
|
-
|
|
94
|
+
o(() => (X.current = c((e) => {
|
|
95
95
|
P.onQueryChange(e);
|
|
96
96
|
}, j.debounceMs), () => {
|
|
97
97
|
X.current.cancel();
|
|
@@ -100,8 +100,8 @@ var f = {
|
|
|
100
100
|
X.current.cancel();
|
|
101
101
|
};
|
|
102
102
|
}, [Y, P]);
|
|
103
|
-
let [Z, Se] =
|
|
104
|
-
|
|
103
|
+
let [Z, Se] = s(null);
|
|
104
|
+
o(() => {
|
|
105
105
|
if (F.enabled === !1 || Z === null) return;
|
|
106
106
|
let e = () => {
|
|
107
107
|
if (P.isFetching) return;
|
|
@@ -118,27 +118,27 @@ var f = {
|
|
|
118
118
|
Z
|
|
119
119
|
]);
|
|
120
120
|
let Ce = J.getVisibleLeafColumns().length, Q = { className: "xh8yej3" }, $ = { className: "xysyzu8" };
|
|
121
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ a("div", {
|
|
122
122
|
...Q,
|
|
123
123
|
className: e(Q.className, T === void 0 ? "" : T),
|
|
124
124
|
children: [
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ i(r, {
|
|
126
126
|
table: J,
|
|
127
127
|
placeholder: j.placeholder,
|
|
128
128
|
debounceMs: j.debounceMs,
|
|
129
|
-
right: /* @__PURE__ */
|
|
129
|
+
right: /* @__PURE__ */ a("div", {
|
|
130
130
|
className: "x8x9d4c x78zum5 x6s0dn4 x13z6uf9",
|
|
131
|
-
children: [R(J), /* @__PURE__ */
|
|
131
|
+
children: [R(J), /* @__PURE__ */ i(ee, {
|
|
132
132
|
table: J,
|
|
133
133
|
columnVisibility: H
|
|
134
134
|
})]
|
|
135
135
|
})
|
|
136
136
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ i("div", {
|
|
138
138
|
ref: (e) => Se(e),
|
|
139
139
|
...$,
|
|
140
140
|
className: e($.className, E === void 0 ? "" : E),
|
|
141
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ i(n, {
|
|
142
142
|
table: J,
|
|
143
143
|
columnVisibility: H,
|
|
144
144
|
expandedState: G,
|
|
@@ -147,7 +147,7 @@ var f = {
|
|
|
147
147
|
columnsCount: Ce
|
|
148
148
|
})
|
|
149
149
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ i(t, {
|
|
151
151
|
table: J,
|
|
152
152
|
tableState: J.getState(),
|
|
153
153
|
pageSizeOptions: M.pageSizeOptions,
|