@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/index54.js
CHANGED
|
@@ -1,124 +1,157 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import * as e from "@stylexjs/stylex";
|
|
2
|
+
import { CheckIcon as t } from "lucide-react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import * as i from "@radix-ui/react-checkbox";
|
|
6
|
+
// src/ui/checkbox.tsx
|
|
6
7
|
var a = {
|
|
7
8
|
root: {
|
|
8
|
-
|
|
9
|
+
kmuXW: "x2lah0s",
|
|
10
|
+
kMzoRj: "xmkeg23",
|
|
11
|
+
ksu8eU: "x1y0btm7",
|
|
12
|
+
kVAM5u: "xsyin8q",
|
|
13
|
+
kWkggS: "x1mlyrtw",
|
|
14
|
+
kGVxlE: "x1dsmnui",
|
|
15
|
+
k1ekBW: "x18k87a7",
|
|
16
|
+
kIyJzY: "xx6bhzk",
|
|
17
|
+
kI3sdo: "x1a2a7pz",
|
|
9
18
|
k1xSpc: "x3nfvp2",
|
|
10
19
|
kGNEyG: "x6s0dn4",
|
|
11
20
|
kjj79g: "xl56j7k",
|
|
12
|
-
|
|
21
|
+
kkrTdU: "x1ypdohk",
|
|
22
|
+
kmVPX3: "x1717udv",
|
|
23
|
+
kB7OPa: "x9f619",
|
|
24
|
+
kOJeXU: "x156qtes",
|
|
25
|
+
kEtg5x: "x1ippke1",
|
|
26
|
+
kYPGJ8: "x1s07b3s",
|
|
27
|
+
kWCcOm: "xijokvz",
|
|
13
28
|
$$css: !0
|
|
14
29
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
kAMwcw: "xz4gly6",
|
|
30
|
+
rootChecked: {
|
|
31
|
+
kWkggS: "x1j7ufkg",
|
|
32
|
+
kVAM5u: "x1khvrlk",
|
|
33
|
+
kMwMTN: "xstwp1q",
|
|
20
34
|
$$css: !0
|
|
21
35
|
},
|
|
22
|
-
|
|
23
|
-
|
|
36
|
+
sizeXxs: {
|
|
37
|
+
kzqmXN: "x1jw3ynk",
|
|
38
|
+
kZKoxP: "xvle69y",
|
|
39
|
+
kaIpWk: "x10a6c4v",
|
|
24
40
|
$$css: !0
|
|
25
41
|
},
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
sizeXs: {
|
|
43
|
+
kzqmXN: "x1xvt488",
|
|
44
|
+
kZKoxP: "xf08kfj",
|
|
45
|
+
kaIpWk: "x10a6c4v",
|
|
28
46
|
$$css: !0
|
|
29
47
|
},
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
sizeSm: {
|
|
49
|
+
kzqmXN: "xcdlrvm",
|
|
50
|
+
kZKoxP: "x1l36t39",
|
|
51
|
+
kaIpWk: "x16eypsj",
|
|
32
52
|
$$css: !0
|
|
33
53
|
},
|
|
34
|
-
|
|
35
|
-
|
|
54
|
+
sizeMd: {
|
|
55
|
+
kzqmXN: "xsk17dz",
|
|
56
|
+
kZKoxP: "xaylbqo",
|
|
57
|
+
kaIpWk: "x16eypsj",
|
|
36
58
|
$$css: !0
|
|
37
59
|
},
|
|
38
|
-
|
|
39
|
-
|
|
60
|
+
sizeLg: {
|
|
61
|
+
kzqmXN: "xwqq7k2",
|
|
62
|
+
kZKoxP: "xmll18r",
|
|
63
|
+
kaIpWk: "xddr76m",
|
|
40
64
|
$$css: !0
|
|
41
|
-
}
|
|
42
|
-
}, o = {
|
|
43
|
-
xs: {
|
|
44
|
-
size: 24,
|
|
45
|
-
strokeWidth: 2.5,
|
|
46
|
-
textSize: "xs"
|
|
47
65
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
66
|
+
sizeXl: {
|
|
67
|
+
kzqmXN: "xp8d6y2",
|
|
68
|
+
kZKoxP: "xam5rvr",
|
|
69
|
+
kaIpWk: "x6i6fhv",
|
|
70
|
+
$$css: !0
|
|
52
71
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
72
|
+
sizeXxl: {
|
|
73
|
+
kzqmXN: "xh29eag",
|
|
74
|
+
kZKoxP: "xb8l8e1",
|
|
75
|
+
kaIpWk: "xjzjd16",
|
|
76
|
+
$$css: !0
|
|
57
77
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
78
|
+
iconXxs: {
|
|
79
|
+
kzqmXN: "x7gqxlp",
|
|
80
|
+
kZKoxP: "xpurx6q",
|
|
81
|
+
$$css: !0
|
|
82
|
+
},
|
|
83
|
+
iconXs: {
|
|
84
|
+
kzqmXN: "x1tmz82h",
|
|
85
|
+
kZKoxP: "x1nnp5p7",
|
|
86
|
+
$$css: !0
|
|
87
|
+
},
|
|
88
|
+
iconSm: {
|
|
89
|
+
kzqmXN: "x10rziqa",
|
|
90
|
+
kZKoxP: "x75iezw",
|
|
91
|
+
$$css: !0
|
|
62
92
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
93
|
+
iconMd: {
|
|
94
|
+
kzqmXN: "x15xktyq",
|
|
95
|
+
kZKoxP: "x25yk9b",
|
|
96
|
+
$$css: !0
|
|
97
|
+
},
|
|
98
|
+
iconLg: {
|
|
99
|
+
kzqmXN: "x51uzbs",
|
|
100
|
+
kZKoxP: "x1fz7b6p",
|
|
101
|
+
$$css: !0
|
|
102
|
+
},
|
|
103
|
+
iconXl: {
|
|
104
|
+
kzqmXN: "xwqq7k2",
|
|
105
|
+
kZKoxP: "xmll18r",
|
|
106
|
+
$$css: !0
|
|
107
|
+
},
|
|
108
|
+
iconXxl: {
|
|
109
|
+
kzqmXN: "xp8d6y2",
|
|
110
|
+
kZKoxP: "xam5rvr",
|
|
111
|
+
$$css: !0
|
|
67
112
|
}
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
strokeWidth:
|
|
108
|
-
strokeDasharray: D,
|
|
109
|
-
strokeDashoffset: A,
|
|
110
|
-
...n.props(a.indicator, j)
|
|
111
|
-
})]
|
|
112
|
-
}), (p || h) && /* @__PURE__ */ r("div", {
|
|
113
|
-
className: "x10l6tqk xwa60dl x1nrll8i x11lhmoz x78zum5 x6s0dn4 xl56j7k x47corl",
|
|
114
|
-
children: h || /* @__PURE__ */ r(e, {
|
|
115
|
-
weight: "medium",
|
|
116
|
-
size: C?.textSize ?? "sm",
|
|
117
|
-
"data-slot": "circular-progress-value",
|
|
118
|
-
children: N
|
|
113
|
+
}, o = {
|
|
114
|
+
xxs: a.sizeXxs,
|
|
115
|
+
xs: a.sizeXs,
|
|
116
|
+
sm: a.sizeSm,
|
|
117
|
+
md: a.sizeMd,
|
|
118
|
+
lg: a.sizeLg,
|
|
119
|
+
xl: a.sizeXl,
|
|
120
|
+
xxl: a.sizeXxl
|
|
121
|
+
}, s = {
|
|
122
|
+
xxs: a.iconXxs,
|
|
123
|
+
xs: a.iconXs,
|
|
124
|
+
sm: a.iconSm,
|
|
125
|
+
md: a.iconMd,
|
|
126
|
+
lg: a.iconLg,
|
|
127
|
+
xl: a.iconXl,
|
|
128
|
+
xxl: a.iconXxl
|
|
129
|
+
};
|
|
130
|
+
function c({ className: c, size: l = "md", checked: u, defaultChecked: d = !1, onCheckedChange: f, disabled: p, sx: m, ...h }) {
|
|
131
|
+
let g = u !== void 0, [_, v] = r.useState(d), y = g ? !!u : _;
|
|
132
|
+
r.useEffect(() => {
|
|
133
|
+
!g && d !== void 0 && v(d);
|
|
134
|
+
}, [d, g]);
|
|
135
|
+
let b = (e) => {
|
|
136
|
+
g || v(e === !0), f?.(e);
|
|
137
|
+
}, x = o[l] ?? a.sizeMd, S = s[l] ?? a.iconMd, C = e.props(a.root, x, y && a.rootChecked, m);
|
|
138
|
+
return /* @__PURE__ */ n(i.Root, {
|
|
139
|
+
"data-slot": "checkbox",
|
|
140
|
+
"data-size": l,
|
|
141
|
+
checked: y,
|
|
142
|
+
onCheckedChange: b,
|
|
143
|
+
disabled: p,
|
|
144
|
+
...C,
|
|
145
|
+
className: c ? `${C.className || ""} ${c}`.trim() : C.className,
|
|
146
|
+
...h,
|
|
147
|
+
children: /* @__PURE__ */ n(i.Indicator, {
|
|
148
|
+
"data-slot": "checkbox-indicator",
|
|
149
|
+
className: "x78zum5 x6s0dn4 xl56j7k xstwp1q xh8yej3 x5yr21d x47corl",
|
|
150
|
+
children: /* @__PURE__ */ n(t, {
|
|
151
|
+
...e.props(S),
|
|
152
|
+
strokeWidth: 3
|
|
119
153
|
})
|
|
120
|
-
})
|
|
154
|
+
})
|
|
121
155
|
});
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export { s as CircularProgress };
|
|
156
|
+
}
|
|
157
|
+
export { c as Checkbox };
|
package/dist/index55.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index14.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);var o={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kXLuUW:`xxymvpz`,$$css:!0},indicator:{kU5bRw:`x1owpc8m`,k1ekBW:`xxnu56j`,kIyJzY:`x1d8287x`,kAMwcw:`xz4gly6`,$$css:!0},colorDefault:{kjVXCG:`xodl5ec`,$$css:!0},colorSecondary:{kjVXCG:`x1vgo946`,$$css:!0},colorDestructive:{kjVXCG:`x1whg6ty`,$$css:!0},colorWarning:{kjVXCG:`x163v6lp`,$$css:!0},colorSuccess:{kjVXCG:`x1uof0aa`,$$css:!0}},s={xs:{size:24,strokeWidth:2.5,textSize:`xs`},sm:{size:36,strokeWidth:3,textSize:`xs`},md:{size:48,strokeWidth:4,textSize:`sm`},lg:{size:64,strokeWidth:5,textSize:`md`},xl:{size:96,strokeWidth:6,textSize:`lg`}},c=a.forwardRef(({value:e,min:i=0,max:a=100,size:c=`md`,strokeWidth:l,variant:u=`primary`,indeterminate:d,showValue:f=!1,formatValue:p,children:m,sx:h,className:g,style:_,"aria-label":v=`Circular progress`,...y},b)=>{let x=d||e===void 0||Number.isNaN(e),S=typeof c==`string`?s[c]:void 0,C=typeof c==`number`?c:S?.size??48,w=l??S?.strokeWidth??4,T=Math.max(0,(C-w)/2),E=2*Math.PI*T,D=Math.min(Math.max(e??0,i),a),O=Math.round((D-i)/(a-i||1)*100),k=x?E*.75:E-E*O/100,A=u===`secondary`?o.colorSecondary:u===`destructive`?o.colorDestructive:u===`warning`?o.colorWarning:u===`success`?o.colorSuccess:o.colorDefault,j=n.props(o.root,h),M=p?p(D):`${O}%`;return(0,r.jsxs)(`div`,{ref:b,role:`progressbar`,"aria-valuenow":x?void 0:D,"aria-valuemin":i,"aria-valuemax":a,"aria-label":v,"data-slot":`circular-progress`,"data-state":x?`indeterminate`:`determinate`,...j,className:g?`${j.className||``} ${g}`.trim():j.className,style:{width:C,height:C,..._},...y,children:[(0,r.jsxs)(`svg`,{viewBox:`0 0 ${C} ${C}`,width:C,height:C,...{0:{className:`x1lliihq x9tu13d`},1:{className:`x1lliihq x9tu13d x1ka1v4i x1sbju2s x1esw782 xa4qsjk`}}[!!x|0],children:[(0,r.jsx)(`circle`,{cx:C/2,cy:C/2,r:T,fill:`none`,strokeWidth:w,className:`xdeg11c`}),(0,r.jsx)(`circle`,{cx:C/2,cy:C/2,r:T,fill:`none`,strokeWidth:w,strokeDasharray:E,strokeDashoffset:k,...n.props(o.indicator,A)})]}),(f||m)&&(0,r.jsx)(`div`,{className:`x10l6tqk xwa60dl x1nrll8i x11lhmoz x78zum5 x6s0dn4 xl56j7k x47corl`,children:m||(0,r.jsx)(t.Text,{weight:`medium`,size:S?.textSize??`sm`,"data-slot":`circular-progress-value`,children:M})})]})});c.displayName=`CircularProgress`,exports.CircularProgress=c;
|
package/dist/index55.js
CHANGED
|
@@ -1,20 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as t from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { Text as e } from "./index14.js";
|
|
2
|
+
import * as t from "@stylexjs/stylex";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
// src/ui/circular-progress.tsx
|
|
6
|
+
var a = {
|
|
7
|
+
root: {
|
|
8
|
+
kVAEAm: "x1n2onr6",
|
|
9
|
+
k1xSpc: "x3nfvp2",
|
|
10
|
+
kGNEyG: "x6s0dn4",
|
|
11
|
+
kjj79g: "xl56j7k",
|
|
12
|
+
kXLuUW: "xxymvpz",
|
|
13
|
+
$$css: !0
|
|
14
|
+
},
|
|
15
|
+
indicator: {
|
|
16
|
+
kU5bRw: "x1owpc8m",
|
|
17
|
+
k1ekBW: "xxnu56j",
|
|
18
|
+
kIyJzY: "x1d8287x",
|
|
19
|
+
kAMwcw: "xz4gly6",
|
|
20
|
+
$$css: !0
|
|
21
|
+
},
|
|
22
|
+
colorDefault: {
|
|
23
|
+
kjVXCG: "xodl5ec",
|
|
24
|
+
$$css: !0
|
|
25
|
+
},
|
|
26
|
+
colorSecondary: {
|
|
27
|
+
kjVXCG: "x1vgo946",
|
|
28
|
+
$$css: !0
|
|
29
|
+
},
|
|
30
|
+
colorDestructive: {
|
|
31
|
+
kjVXCG: "x1whg6ty",
|
|
32
|
+
$$css: !0
|
|
33
|
+
},
|
|
34
|
+
colorWarning: {
|
|
35
|
+
kjVXCG: "x163v6lp",
|
|
36
|
+
$$css: !0
|
|
37
|
+
},
|
|
38
|
+
colorSuccess: {
|
|
39
|
+
kjVXCG: "x1uof0aa",
|
|
40
|
+
$$css: !0
|
|
41
|
+
}
|
|
42
|
+
}, o = {
|
|
43
|
+
xs: {
|
|
44
|
+
size: 24,
|
|
45
|
+
strokeWidth: 2.5,
|
|
46
|
+
textSize: "xs"
|
|
47
|
+
},
|
|
48
|
+
sm: {
|
|
49
|
+
size: 36,
|
|
50
|
+
strokeWidth: 3,
|
|
51
|
+
textSize: "xs"
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
size: 48,
|
|
55
|
+
strokeWidth: 4,
|
|
56
|
+
textSize: "sm"
|
|
57
|
+
},
|
|
58
|
+
lg: {
|
|
59
|
+
size: 64,
|
|
60
|
+
strokeWidth: 5,
|
|
61
|
+
textSize: "md"
|
|
62
|
+
},
|
|
63
|
+
xl: {
|
|
64
|
+
size: 96,
|
|
65
|
+
strokeWidth: 6,
|
|
66
|
+
textSize: "lg"
|
|
67
|
+
}
|
|
68
|
+
}, s = i.forwardRef(({ value: i, min: s = 0, max: c = 100, size: l = "md", strokeWidth: u, variant: d = "primary", indeterminate: f, showValue: p = !1, formatValue: m, children: h, sx: g, className: _, style: v, "aria-label": y = "Circular progress", ...b }, x) => {
|
|
69
|
+
let S = f || i === void 0 || Number.isNaN(i), C = typeof l == "string" ? o[l] : void 0, w = typeof l == "number" ? l : C?.size ?? 48, T = u ?? C?.strokeWidth ?? 4, E = Math.max(0, (w - T) / 2), D = 2 * Math.PI * E, O = Math.min(Math.max(i ?? 0, s), c), k = Math.round((O - s) / (c - s || 1) * 100), A = S ? D * .75 : D - D * k / 100, j = d === "secondary" ? a.colorSecondary : d === "destructive" ? a.colorDestructive : d === "warning" ? a.colorWarning : d === "success" ? a.colorSuccess : a.colorDefault, M = t.props(a.root, g), N = m ? m(O) : `${k}%`;
|
|
70
|
+
return /* @__PURE__ */ r("div", {
|
|
71
|
+
ref: x,
|
|
72
|
+
role: "progressbar",
|
|
73
|
+
"aria-valuenow": S ? void 0 : O,
|
|
74
|
+
"aria-valuemin": s,
|
|
75
|
+
"aria-valuemax": c,
|
|
76
|
+
"aria-label": y,
|
|
77
|
+
"data-slot": "circular-progress",
|
|
78
|
+
"data-state": S ? "indeterminate" : "determinate",
|
|
79
|
+
...M,
|
|
80
|
+
className: _ ? `${M.className || ""} ${_}`.trim() : M.className,
|
|
81
|
+
style: {
|
|
82
|
+
width: w,
|
|
83
|
+
height: w,
|
|
84
|
+
...v
|
|
85
|
+
},
|
|
86
|
+
...b,
|
|
87
|
+
children: [/* @__PURE__ */ r("svg", {
|
|
88
|
+
viewBox: `0 0 ${w} ${w}`,
|
|
89
|
+
width: w,
|
|
90
|
+
height: w,
|
|
91
|
+
...{
|
|
92
|
+
0: { className: "x1lliihq x9tu13d" },
|
|
93
|
+
1: { className: "x1lliihq x9tu13d x1ka1v4i x1sbju2s x1esw782 xa4qsjk" }
|
|
94
|
+
}[!!S | 0],
|
|
95
|
+
children: [/* @__PURE__ */ n("circle", {
|
|
96
|
+
cx: w / 2,
|
|
97
|
+
cy: w / 2,
|
|
98
|
+
r: E,
|
|
99
|
+
fill: "none",
|
|
100
|
+
strokeWidth: T,
|
|
101
|
+
className: "xdeg11c"
|
|
102
|
+
}), /* @__PURE__ */ n("circle", {
|
|
103
|
+
cx: w / 2,
|
|
104
|
+
cy: w / 2,
|
|
105
|
+
r: E,
|
|
106
|
+
fill: "none",
|
|
107
|
+
strokeWidth: T,
|
|
108
|
+
strokeDasharray: D,
|
|
109
|
+
strokeDashoffset: A,
|
|
110
|
+
...t.props(a.indicator, j)
|
|
111
|
+
})]
|
|
112
|
+
}), (p || h) && /* @__PURE__ */ n("div", {
|
|
113
|
+
className: "x10l6tqk xwa60dl x1nrll8i x11lhmoz x78zum5 x6s0dn4 xl56j7k x47corl",
|
|
114
|
+
children: h || /* @__PURE__ */ n(e, {
|
|
115
|
+
weight: "medium",
|
|
116
|
+
size: C?.textSize ?? "sm",
|
|
117
|
+
"data-slot": "circular-progress-value",
|
|
118
|
+
children: N
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
12
121
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r.current = n;
|
|
17
|
-
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
18
|
-
}
|
|
19
|
-
r(o, "useEffectEvent");
|
|
20
|
-
export { o as useEffectEvent };
|
|
122
|
+
});
|
|
123
|
+
s.displayName = "CircularProgress";
|
|
124
|
+
export { s as CircularProgress };
|
package/dist/index56.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index39.cjs");let n=require("react"),r=e.__toESM(n,1);n=e.__toESM(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useEffectEvent,s=r.useInsertionEffect;function c(e){if(typeof o==`function`)return o(e);let n=r.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof s==`function`?s(()=>{n.current=e}):t.useLayoutEffect(()=>{n.current=e}),r.useMemo(()=>((...e)=>n.current?.(...e)),[])}a(c,`useEffectEvent`),exports.useEffectEvent=c;
|
package/dist/index56.js
CHANGED
|
@@ -1,82 +1,20 @@
|
|
|
1
|
-
import { useLayoutEffect as e } from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
1
|
+
import { useLayoutEffect as e } from "./index39.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
6
5
|
value: t,
|
|
7
6
|
configurable: !0
|
|
8
|
-
}), a =
|
|
9
|
-
function o(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
d,
|
|
21
|
-
e,
|
|
22
|
-
l,
|
|
23
|
-
u
|
|
24
|
-
])];
|
|
7
|
+
}), i = t.useEffectEvent, a = t.useInsertionEffect;
|
|
8
|
+
function o(n) {
|
|
9
|
+
if (typeof i == "function") return i(n);
|
|
10
|
+
let r = t.useRef(() => {
|
|
11
|
+
throw Error("Cannot call an event handler while rendering.");
|
|
12
|
+
});
|
|
13
|
+
return typeof a == "function" ? a(() => {
|
|
14
|
+
r.current = n;
|
|
15
|
+
}) : e(() => {
|
|
16
|
+
r.current = n;
|
|
17
|
+
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
25
18
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let [r, i] = n.useState(e), o = n.useRef(r), s = n.useRef(t);
|
|
29
|
-
return a(() => {
|
|
30
|
-
s.current = t;
|
|
31
|
-
}, [t]), n.useEffect(() => {
|
|
32
|
-
o.current !== r && (s.current?.(r), o.current = r);
|
|
33
|
-
}, [r, o]), [
|
|
34
|
-
r,
|
|
35
|
-
i,
|
|
36
|
-
s
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
i(s, "useUncontrolledState");
|
|
40
|
-
function c(e) {
|
|
41
|
-
return typeof e == "function";
|
|
42
|
-
}
|
|
43
|
-
i(c, "isFunction");
|
|
44
|
-
var l = Symbol("RADIX:SYNC_STATE");
|
|
45
|
-
function u(e, r, i, a) {
|
|
46
|
-
let { prop: o, defaultProp: s, onChange: c, caller: u } = r, d = o !== void 0, f = t(c), p = [{
|
|
47
|
-
...i,
|
|
48
|
-
state: s
|
|
49
|
-
}];
|
|
50
|
-
a && p.push(a);
|
|
51
|
-
let [m, h] = n.useReducer((t, n) => {
|
|
52
|
-
if (n.type === l) return {
|
|
53
|
-
...t,
|
|
54
|
-
state: n.state
|
|
55
|
-
};
|
|
56
|
-
let r = e(t, n);
|
|
57
|
-
return d && !Object.is(r.state, t.state) && f(r.state), r;
|
|
58
|
-
}, ...p), g = m.state, _ = n.useRef(g);
|
|
59
|
-
n.useEffect(() => {
|
|
60
|
-
_.current !== g && (_.current = g, d || f(g));
|
|
61
|
-
}, [
|
|
62
|
-
g,
|
|
63
|
-
_,
|
|
64
|
-
d
|
|
65
|
-
]);
|
|
66
|
-
let v = n.useMemo(() => o === void 0 ? m : {
|
|
67
|
-
...m,
|
|
68
|
-
state: o
|
|
69
|
-
}, [m, o]);
|
|
70
|
-
return n.useEffect(() => {
|
|
71
|
-
d && !Object.is(o, m.state) && h({
|
|
72
|
-
type: l,
|
|
73
|
-
state: o
|
|
74
|
-
});
|
|
75
|
-
}, [
|
|
76
|
-
o,
|
|
77
|
-
m.state,
|
|
78
|
-
d
|
|
79
|
-
]), [v, h];
|
|
80
|
-
}
|
|
81
|
-
i(u, "useControllableStateReducer");
|
|
82
|
-
export { o as useControllableState, u as useControllableStateReducer };
|
|
19
|
+
r(o, "useEffectEvent");
|
|
20
|
+
export { o as useEffectEvent };
|
package/dist/index57.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index39.cjs"),n=require("./index56.cjs");let r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=i.useInsertionEffect||t.useLayoutEffect;function c({prop:e,defaultProp:t,onChange:n=o(()=>{},`onChange`),caller:r}){let[a,s,c]=l({defaultProp:t,onChange:n}),d=e!==void 0;return[d?e:a,i.useCallback(t=>{if(d){let n=u(t)?t(e):t;n!==e&&c.current?.(n)}else s(t)},[d,e,s,c])]}o(c,`useControllableState`);function l({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return s(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}o(l,`useUncontrolledState`);function u(e){return typeof e==`function`}o(u,`isFunction`);var d=Symbol(`RADIX:SYNC_STATE`);function f(e,t,r,a){let{prop:o,defaultProp:s,onChange:c,caller:l}=t,u=o!==void 0,f=n.useEffectEvent(c),p=[{...r,state:s}];a&&p.push(a);let[m,h]=i.useReducer((t,n)=>{if(n.type===d)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&f(r.state),r},...p),g=m.state,_=i.useRef(g);i.useEffect(()=>{_.current!==g&&(_.current=g,u||f(g))},[g,_,u]);let v=i.useMemo(()=>o===void 0?m:{...m,state:o},[m,o]);return i.useEffect(()=>{u&&!Object.is(o,m.state)&&h({type:d,state:o})},[o,m.state,u]),[v,h]}o(f,`useControllableStateReducer`),exports.useControllableState=c,exports.useControllableStateReducer=f;
|