@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/index222.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index14.cjs"),r=require("./index20.cjs"),i=require("./index22.cjs"),a=require("./index41.cjs"),o=require("./index47.cjs"),s=require("./index48.cjs"),c=require("./index221.cjs");let l=require("@stylexjs/stylex");l=e.__toESM(l,1);let u=require("react/jsx-runtime"),d=require("react");d=e.__toESM(d,1);var f={triggerButton:{kjj79g:`x1qughib`,k63SB2:`xo1l8bm`,$$css:!0},statusError:{kVAM5u:`x1uwefn5`,$$css:!0},statusWarning:{kVAM5u:`x6j094l`,$$css:!0},fullWidth:{kzqmXN:`xh8yej3`,$$css:!0},clearButton:{kkrTdU:`x1ypdohk`,kDPRdz:`x1mqvv6a`,$$css:!0},popoverContent:{kzqmXN:`x14atkfc`,kmVPX3:`x1717udv`,$$css:!0}};function p({value:e=[void 0,void 0],onChange:l,placeholder:p=`Select Date Range`,dateFormat:m,showTime:h,size:g=`md`,status:_,width:v=`auto`,disabled:y,allowClear:b,hideValue:x,suffixIcon:S,className:C,sx:w,disabledDate:T,locale:E,numberOfMonths:D=2,closeOnSelect:O=!1,startMonth:k,endMonth:A}){let[j,M]=d.default.useState(!1),N=o.resolveDatePickerSize(g),[P,F]=e,I=m||c.getDefaultFormat(`date`,h),L=c.buildRangeDisplayValue(P,F,I),[R,z]=d.default.useState({from:P,to:F});d.default.useEffect(()=>{z({from:P,to:F})},[P,F]);let B=e=>{e.stopPropagation(),z({from:void 0,to:void 0}),l?.([void 0,void 0])},V=e=>{M(e)},H=e=>{let t=e?.from,n=e?.to;z({from:t,to:n}),t&&n?(l?.([t,n]),O&&!h&&M(!1)):t?l?.([t,void 0]):l?.([void 0,void 0])},U=_===`error`?f.statusError:_===`warning`?f.statusWarning:void 0,W=N===`xxs`||N===`xs`?`xs`:N===`xl`||N===`xxl`?`lg`:`sm`;return(0,u.jsxs)(a.Popover,{open:j,onOpenChange:V,children:[(0,u.jsx)(a.PopoverTrigger,{asChild:!0,children:(0,u.jsxs)(i.Button,{variant:`outline`,size:N,disabled:y,width:v,sx:[f.triggerButton,U,v===`auto`?f.fullWidth:void 0,w],className:C,style:v===`auto`?void 0:{width:r.resolveWidth(v)},children:[!x&&L?(0,u.jsx)(n.Text,{size:W,weight:`normal`,children:L}):(0,u.jsx)(n.Text,{size:W,type:`muted`,children:p}),(0,u.jsxs)(`div`,{className:`x8x9d4c x78zum5 x6s0dn4 xvh977a`,children:[b&&(P||F)&&(0,u.jsx)(n.Text,{as:`span`,onClick:B,sx:f.clearButton,children:`×`}),S||(0,u.jsx)(t.Icons.CalendarIcon,{className:`xcdlrvm x1l36t39 xbyyjgo`})]})]})}),(0,u.jsx)(a.PopoverContent,{sx:f.popoverContent,align:`start`,children:(0,u.jsx)(s.Calendar,{mode:`range`,min:1,resetOnSelect:!0,size:N,selected:R,onSelect:H,disabled:T,captionLayout:`dropdown`,numberOfMonths:D,locale:E,startMonth:k,endMonth:A})})]})}exports.RangeDatePicker=p,exports.default=p;
|
package/dist/index222.js
CHANGED
|
@@ -1,42 +1,123 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Icons as e } from "./index4.js";
|
|
2
|
+
import { Text as t } from "./index14.js";
|
|
3
|
+
import { resolveWidth as n } from "./index20.js";
|
|
4
|
+
import { Button as r } from "./index22.js";
|
|
5
|
+
import { Popover as i, PopoverContent as a, PopoverTrigger as o } from "./index41.js";
|
|
6
|
+
import { resolveDatePickerSize as s } from "./index47.js";
|
|
7
|
+
import { Calendar as c } from "./index48.js";
|
|
8
|
+
import { buildRangeDisplayValue as l, getDefaultFormat as u } from "./index221.js";
|
|
9
|
+
import "@stylexjs/stylex";
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
import p from "react";
|
|
12
|
+
// src/Form/FormDatePicker/RangeDatePicker.tsx
|
|
13
|
+
var m = {
|
|
14
|
+
triggerButton: {
|
|
15
|
+
kjj79g: "x1qughib",
|
|
16
|
+
k63SB2: "xo1l8bm",
|
|
17
|
+
$$css: !0
|
|
7
18
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
statusError: {
|
|
20
|
+
kVAM5u: "x1uwefn5",
|
|
21
|
+
$$css: !0
|
|
11
22
|
},
|
|
12
|
-
|
|
13
|
-
|
|
23
|
+
statusWarning: {
|
|
24
|
+
kVAM5u: "x6j094l",
|
|
25
|
+
$$css: !0
|
|
14
26
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
case "a":
|
|
19
|
-
case "aa": return n.toUpperCase();
|
|
20
|
-
case "aaa": return n;
|
|
21
|
-
case "aaaaa": return n[0];
|
|
22
|
-
default: return n === "am" ? "a.m." : "p.m.";
|
|
23
|
-
}
|
|
27
|
+
fullWidth: {
|
|
28
|
+
kzqmXN: "xh8yej3",
|
|
29
|
+
$$css: !0
|
|
24
30
|
},
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
clearButton: {
|
|
32
|
+
kkrTdU: "x1ypdohk",
|
|
33
|
+
kDPRdz: "x1mqvv6a",
|
|
34
|
+
$$css: !0
|
|
27
35
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return e(t.getMinutes(), n.length);
|
|
33
|
-
},
|
|
34
|
-
s(t, n) {
|
|
35
|
-
return e(t.getSeconds(), n.length);
|
|
36
|
-
},
|
|
37
|
-
S(t, n) {
|
|
38
|
-
let r = n.length, i = t.getMilliseconds(), a = Math.trunc(i * 10 ** (r - 3));
|
|
39
|
-
return e(a, n.length);
|
|
36
|
+
popoverContent: {
|
|
37
|
+
kzqmXN: "x14atkfc",
|
|
38
|
+
kmVPX3: "x1717udv",
|
|
39
|
+
$$css: !0
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
function h({ value: h = [void 0, void 0], onChange: g, placeholder: _ = "Select Date Range", dateFormat: v, showTime: y, size: b = "md", status: x, width: S = "auto", disabled: C, allowClear: w, hideValue: T, suffixIcon: E, className: D, sx: O, disabledDate: k, locale: A, numberOfMonths: j = 2, closeOnSelect: M = !1, startMonth: N, endMonth: P }) {
|
|
43
|
+
let [F, I] = p.useState(!1), L = s(b), [R, z] = h, B = v || u("date", y), V = l(R, z, B), [H, U] = p.useState({
|
|
44
|
+
from: R,
|
|
45
|
+
to: z
|
|
46
|
+
});
|
|
47
|
+
p.useEffect(() => {
|
|
48
|
+
U({
|
|
49
|
+
from: R,
|
|
50
|
+
to: z
|
|
51
|
+
});
|
|
52
|
+
}, [R, z]);
|
|
53
|
+
let W = (e) => {
|
|
54
|
+
e.stopPropagation(), U({
|
|
55
|
+
from: void 0,
|
|
56
|
+
to: void 0
|
|
57
|
+
}), g?.([void 0, void 0]);
|
|
58
|
+
}, G = (e) => {
|
|
59
|
+
I(e);
|
|
60
|
+
}, K = (e) => {
|
|
61
|
+
let t = e?.from, n = e?.to;
|
|
62
|
+
U({
|
|
63
|
+
from: t,
|
|
64
|
+
to: n
|
|
65
|
+
}), t && n ? (g?.([t, n]), M && !y && I(!1)) : t ? g?.([t, void 0]) : g?.([void 0, void 0]);
|
|
66
|
+
}, q = x === "error" ? m.statusError : x === "warning" ? m.statusWarning : void 0, J = L === "xxs" || L === "xs" ? "xs" : L === "xl" || L === "xxl" ? "lg" : "sm";
|
|
67
|
+
return /* @__PURE__ */ f(i, {
|
|
68
|
+
open: F,
|
|
69
|
+
onOpenChange: G,
|
|
70
|
+
children: [/* @__PURE__ */ d(o, {
|
|
71
|
+
asChild: !0,
|
|
72
|
+
children: /* @__PURE__ */ f(r, {
|
|
73
|
+
variant: "outline",
|
|
74
|
+
size: L,
|
|
75
|
+
disabled: C,
|
|
76
|
+
width: S,
|
|
77
|
+
sx: [
|
|
78
|
+
m.triggerButton,
|
|
79
|
+
q,
|
|
80
|
+
S === "auto" ? m.fullWidth : void 0,
|
|
81
|
+
O
|
|
82
|
+
],
|
|
83
|
+
className: D,
|
|
84
|
+
style: S === "auto" ? void 0 : { width: n(S) },
|
|
85
|
+
children: [!T && V ? /* @__PURE__ */ d(t, {
|
|
86
|
+
size: J,
|
|
87
|
+
weight: "normal",
|
|
88
|
+
children: V
|
|
89
|
+
}) : /* @__PURE__ */ d(t, {
|
|
90
|
+
size: J,
|
|
91
|
+
type: "muted",
|
|
92
|
+
children: _
|
|
93
|
+
}), /* @__PURE__ */ f("div", {
|
|
94
|
+
className: "x8x9d4c x78zum5 x6s0dn4 xvh977a",
|
|
95
|
+
children: [w && (R || z) && /* @__PURE__ */ d(t, {
|
|
96
|
+
as: "span",
|
|
97
|
+
onClick: W,
|
|
98
|
+
sx: m.clearButton,
|
|
99
|
+
children: "×"
|
|
100
|
+
}), E || /* @__PURE__ */ d(e.CalendarIcon, { className: "xcdlrvm x1l36t39 xbyyjgo" })]
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
}), /* @__PURE__ */ d(a, {
|
|
104
|
+
sx: m.popoverContent,
|
|
105
|
+
align: "start",
|
|
106
|
+
children: /* @__PURE__ */ d(c, {
|
|
107
|
+
mode: "range",
|
|
108
|
+
min: 1,
|
|
109
|
+
resetOnSelect: !0,
|
|
110
|
+
size: L,
|
|
111
|
+
selected: H,
|
|
112
|
+
onSelect: K,
|
|
113
|
+
disabled: k,
|
|
114
|
+
captionLayout: "dropdown",
|
|
115
|
+
numberOfMonths: j,
|
|
116
|
+
locale: A,
|
|
117
|
+
startMonth: N,
|
|
118
|
+
endMonth: P
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export { h as RangeDatePicker, h as default };
|
package/dist/index223.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index14.cjs"),n=require("./index46.cjs"),r=require("./index123.cjs");let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react"),s=require("react/compiler-runtime");var c={timeField:{kzqmXN:`x154i66o`,k9WMMc:`x2b8uid`,$$css:!0}};function l(e){let i=(0,s.c)(36),{value:l,onChange:u,timeConfig:d,className:f}=e,[p,m]=(0,o.useState)(``),[h,g]=(0,o.useState)(``),[_,v]=(0,o.useState)(``),y=d?.format||`HH:mm:ss`,b;i[0]===y?b=i[1]:(b=y.includes(`H`)||y.includes(`h`),i[0]=y,i[1]=b);let x=b,S;i[2]===y?S=i[3]:(S=y.includes(`m`),i[2]=y,i[3]=S);let C=S,w;i[4]===y?w=i[5]:(w=y.includes(`s`),i[4]=y,i[5]=w);let T=w,E,D;i[6]===l?(E=i[7],D=i[8]):(E=()=>{l&&(m(l.getHours().toString().padStart(2,`0`)),g(l.getMinutes().toString().padStart(2,`0`)),v(l.getSeconds().toString().padStart(2,`0`)))},D=[l],i[6]=l,i[7]=E,i[8]=D),(0,o.useEffect)(E,D);let O;i[9]!==u||i[10]!==l?(O=(e,t)=>{let n=parseInt(t,10);if(isNaN(n))return;let r=new Date(l||new Date);e===`hour`&&r.setHours(Math.min(Math.max(n,0),23)),e===`minute`&&r.setMinutes(Math.min(Math.max(n,0),59)),e===`second`&&r.setSeconds(Math.min(Math.max(n,0),59)),u?.(r)},i[9]=u,i[10]=l,i[11]=O):O=i[11];let k=O,A,j;if(i[12]!==f){let e={className:`x78zum5 x6s0dn4 xvh977a`};A=e,j=n.cn(e.className,f),i[12]=f,i[13]=A,i[14]=j}else A=i[13],j=i[14];let M;i[15]!==k||i[16]!==p||i[17]!==x||i[18]!==C||i[19]!==T?(M=x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Input,{type:`number`,min:0,max:23,value:p,onChange:e=>m(e.target.value),onBlur:e=>k(`hour`,e.target.value),sx:c.timeField}),(C||T)&&(0,a.jsx)(t.Text,{as:`span`,type:`secondary`,children:`:`})]}),i[15]=k,i[16]=p,i[17]=x,i[18]=C,i[19]=T,i[20]=M):M=i[20];let N;i[21]!==k||i[22]!==h||i[23]!==C||i[24]!==T?(N=C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Input,{type:`number`,min:0,max:59,value:h,onChange:e=>g(e.target.value),onBlur:e=>k(`minute`,e.target.value),sx:c.timeField}),T&&(0,a.jsx)(t.Text,{as:`span`,type:`secondary`,children:`:`})]}),i[21]=k,i[22]=h,i[23]=C,i[24]=T,i[25]=N):N=i[25];let P;i[26]!==k||i[27]!==_||i[28]!==T?(P=T&&(0,a.jsx)(r.Input,{type:`number`,min:0,max:59,value:_,onChange:e=>v(e.target.value),onBlur:e=>k(`second`,e.target.value),sx:c.timeField}),i[26]=k,i[27]=_,i[28]=T,i[29]=P):P=i[29];let F;return i[30]!==N||i[31]!==P||i[32]!==A||i[33]!==j||i[34]!==M?(F=(0,a.jsxs)(`div`,{...A,className:j,children:[M,N,P]}),i[30]=N,i[31]=P,i[32]=A,i[33]=j,i[34]=M,i[35]=F):F=i[35],F}exports.TimeInput=l,exports.default=l;
|