@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/index57.js
CHANGED
|
@@ -1,97 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
// ../../node_modules/.pnpm/@radix-ui+react-
|
|
5
|
-
var
|
|
1
|
+
import { useLayoutEffect as e } from "./index39.js";
|
|
2
|
+
import { useEffectEvent as t } from "./index56.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
5
|
+
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
6
|
value: t,
|
|
7
7
|
configurable: !0
|
|
8
|
-
});
|
|
9
|
-
function
|
|
10
|
-
|
|
8
|
+
}), a = n.useInsertionEffect || e;
|
|
9
|
+
function o({ prop: e, defaultProp: t, onChange: r = /* @__PURE__ */ i(() => {}, "onChange"), caller: a }) {
|
|
10
|
+
let [o, l, u] = s({
|
|
11
|
+
defaultProp: t,
|
|
12
|
+
onChange: r
|
|
13
|
+
}), d = e !== void 0;
|
|
14
|
+
return [d ? e : o, n.useCallback((t) => {
|
|
15
|
+
if (d) {
|
|
16
|
+
let n = c(t) ? t(e) : t;
|
|
17
|
+
n !== e && u.current?.(n);
|
|
18
|
+
} else l(t);
|
|
19
|
+
}, [
|
|
20
|
+
d,
|
|
21
|
+
e,
|
|
22
|
+
l,
|
|
23
|
+
u
|
|
24
|
+
])];
|
|
11
25
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
MOUNT: "mounted",
|
|
25
|
-
ANIMATION_END: "unmounted"
|
|
26
|
-
},
|
|
27
|
-
unmounted: { MOUNT: "mounted" }
|
|
28
|
-
});
|
|
29
|
-
return t.useEffect(() => {
|
|
30
|
-
f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
|
|
31
|
-
}, [f]), e(() => {
|
|
32
|
-
let e = s.current, t = c.current;
|
|
33
|
-
if (t !== n) {
|
|
34
|
-
let r = u.current, i = l(e);
|
|
35
|
-
n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
|
|
36
|
-
}
|
|
37
|
-
}, [n, p]), e(() => {
|
|
38
|
-
if (a) {
|
|
39
|
-
let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
|
|
40
|
-
let r = l(s.current).includes(CSS.escape(n.animationName));
|
|
41
|
-
if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
|
|
42
|
-
let n = a.style.animationFillMode;
|
|
43
|
-
a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
44
|
-
a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
|
|
48
|
-
e.target === a && (u.current = l(s.current));
|
|
49
|
-
}, "handleAnimationStart");
|
|
50
|
-
return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
|
|
51
|
-
t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
p("ANIMATION_END");
|
|
55
|
-
}, [a, p]), {
|
|
56
|
-
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
57
|
-
ref: t.useCallback((e) => {
|
|
58
|
-
if (e) {
|
|
59
|
-
let t = getComputedStyle(e);
|
|
60
|
-
s.current = t, d.current = l(t);
|
|
61
|
-
} else s.current = null;
|
|
62
|
-
o(e);
|
|
63
|
-
}, [])
|
|
64
|
-
};
|
|
26
|
+
i(o, "useControllableState");
|
|
27
|
+
function s({ defaultProp: e, onChange: t }) {
|
|
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
|
+
];
|
|
65
38
|
}
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
e != null && (e.current = t);
|
|
39
|
+
i(s, "useUncontrolledState");
|
|
40
|
+
function c(e) {
|
|
41
|
+
return typeof e == "function";
|
|
70
42
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
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
|
|
84
55
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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];
|
|
95
80
|
}
|
|
96
|
-
|
|
97
|
-
export {
|
|
81
|
+
i(u, "useControllableStateReducer");
|
|
82
|
+
export { o as useControllableState, u as useControllableStateReducer };
|
package/dist/index58.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";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});function o(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}a(o,`useStateMachine`);var s=a(e=>{let{present:t,children:n}=e,i=c(t),a=typeof n==`function`?n({present:i.isPresent}):r.Children.only(n),o=u(i.ref,f(a));return typeof n==`function`||i.isPresent?r.cloneElement(a,{ref:o}):null},`Presence`);function c(e){let[n,i]=r.useState(),s=r.useRef(null),c=r.useRef(e),l=r.useRef(`none`),u=r.useRef(void 0),[f,p]=o(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return r.useEffect(()=>{f===`mounted`?(l.current=u.current??d(s.current),u.current=void 0):l.current=`none`},[f]),t.useLayoutEffect(()=>{let t=s.current,n=c.current;if(n!==e){let r=l.current,i=d(t);e?(u.current=i,p(`MOUNT`)):i===`none`||t?.display===`none`?p(`UNMOUNT`):p(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),c.current=e}},[e,p]),t.useLayoutEffect(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=a(r=>{let i=d(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&i&&(p(`ANIMATION_END`),!c.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},`handleAnimationEnd`),i=a(e=>{e.target===n&&(l.current=d(s.current))},`handleAnimationStart`);return n.addEventListener(`animationstart`,i),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,i),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}p(`ANIMATION_END`)},[n,p]),{isPresent:[`mounted`,`unmountSuspended`].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,u.current=d(t)}else s.current=null;i(e)},[])}}a(c,`usePresence`);function l(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}a(l,`setRef`);function u(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=l(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():l(n[e],null)}}},[])}a(u,`useStableComposedRefs`);function d(e){return e?.animationName||`none`}a(d,`getAnimationName`);function f(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}a(f,`getElementRef`),exports.Presence=s;
|
package/dist/index58.js
CHANGED
|
@@ -1,15 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect as e } from "./index39.js";
|
|
2
3
|
import * as t from "react";
|
|
3
|
-
// ../../node_modules/.pnpm/@radix-ui+react-
|
|
4
|
+
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
4
5
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
6
|
value: t,
|
|
6
7
|
configurable: !0
|
|
7
|
-
})
|
|
8
|
+
});
|
|
9
|
+
function i(e, n) {
|
|
10
|
+
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
11
|
+
}
|
|
12
|
+
r(i, "useStateMachine");
|
|
13
|
+
var a = /* @__PURE__ */ r((e) => {
|
|
14
|
+
let { present: n, children: r } = e, i = o(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), s = c(i.ref, u(a));
|
|
15
|
+
return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: s }) : null;
|
|
16
|
+
}, "Presence");
|
|
8
17
|
function o(n) {
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
let [a, o] = t.useState(), s = t.useRef(null), c = t.useRef(n), u = t.useRef("none"), d = t.useRef(void 0), [f, p] = i(n ? "mounted" : "unmounted", {
|
|
19
|
+
mounted: {
|
|
20
|
+
UNMOUNT: "unmounted",
|
|
21
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
22
|
+
},
|
|
23
|
+
unmountSuspended: {
|
|
24
|
+
MOUNT: "mounted",
|
|
25
|
+
ANIMATION_END: "unmounted"
|
|
26
|
+
},
|
|
27
|
+
unmounted: { MOUNT: "mounted" }
|
|
28
|
+
});
|
|
29
|
+
return t.useEffect(() => {
|
|
30
|
+
f === "mounted" ? (u.current = d.current ?? l(s.current), d.current = void 0) : u.current = "none";
|
|
31
|
+
}, [f]), e(() => {
|
|
32
|
+
let e = s.current, t = c.current;
|
|
33
|
+
if (t !== n) {
|
|
34
|
+
let r = u.current, i = l(e);
|
|
35
|
+
n ? (d.current = i, p("MOUNT")) : i === "none" || e?.display === "none" ? p("UNMOUNT") : p(t && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = n;
|
|
36
|
+
}
|
|
37
|
+
}, [n, p]), e(() => {
|
|
38
|
+
if (a) {
|
|
39
|
+
let e, t = a.ownerDocument.defaultView ?? window, n = /* @__PURE__ */ r((n) => {
|
|
40
|
+
let r = l(s.current).includes(CSS.escape(n.animationName));
|
|
41
|
+
if (n.target === a && r && (p("ANIMATION_END"), !c.current)) {
|
|
42
|
+
let n = a.style.animationFillMode;
|
|
43
|
+
a.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
44
|
+
a.style.animationFillMode === "forwards" && (a.style.animationFillMode = n);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}, "handleAnimationEnd"), i = /* @__PURE__ */ r((e) => {
|
|
48
|
+
e.target === a && (u.current = l(s.current));
|
|
49
|
+
}, "handleAnimationStart");
|
|
50
|
+
return a.addEventListener("animationstart", i), a.addEventListener("animationcancel", n), a.addEventListener("animationend", n), () => {
|
|
51
|
+
t.clearTimeout(e), a.removeEventListener("animationstart", i), a.removeEventListener("animationcancel", n), a.removeEventListener("animationend", n);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
p("ANIMATION_END");
|
|
55
|
+
}, [a, p]), {
|
|
56
|
+
isPresent: ["mounted", "unmountSuspended"].includes(f),
|
|
57
|
+
ref: t.useCallback((e) => {
|
|
58
|
+
if (e) {
|
|
59
|
+
let t = getComputedStyle(e);
|
|
60
|
+
s.current = t, d.current = l(t);
|
|
61
|
+
} else s.current = null;
|
|
62
|
+
o(e);
|
|
63
|
+
}, [])
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
r(o, "usePresence");
|
|
67
|
+
function s(e, t) {
|
|
68
|
+
if (typeof e == "function") return e(t);
|
|
69
|
+
e != null && (e.current = t);
|
|
70
|
+
}
|
|
71
|
+
r(s, "setRef");
|
|
72
|
+
function c(...e) {
|
|
73
|
+
let n = t.useRef(e);
|
|
74
|
+
return n.current = e, t.useCallback((e) => {
|
|
75
|
+
let t = n.current, r = !1, i = t.map((t) => {
|
|
76
|
+
let n = s(t, e);
|
|
77
|
+
return !r && typeof n == "function" && (r = !0), n;
|
|
78
|
+
});
|
|
79
|
+
if (r) return () => {
|
|
80
|
+
for (let e = 0; e < i.length; e++) {
|
|
81
|
+
let n = i[e];
|
|
82
|
+
typeof n == "function" ? n() : s(t[e], null);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}, []);
|
|
86
|
+
}
|
|
87
|
+
r(c, "useStableComposedRefs");
|
|
88
|
+
function l(e) {
|
|
89
|
+
return e?.animationName || "none";
|
|
90
|
+
}
|
|
91
|
+
r(l, "getAnimationName");
|
|
92
|
+
function u(e) {
|
|
93
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
94
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
13
95
|
}
|
|
14
|
-
r(
|
|
15
|
-
export {
|
|
96
|
+
r(u, "getElementRef");
|
|
97
|
+
export { a as Presence };
|
package/dist/index59.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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.useId||(()=>void 0),s=0;function c(e){let[n,i]=r.useState(o());return t.useLayoutEffect(()=>{e||i(e=>e??String(s++))},[e]),e||(n?`radix-${n}`:``)}a(c,`useId`),exports.useId=c;
|
package/dist/index59.js
CHANGED
|
@@ -1,94 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Primitive as r } from "./index34.js";
|
|
6
|
-
import { useLayoutEffect as i } from "./index38.js";
|
|
7
|
-
import { useControllableState as a } from "./index56.js";
|
|
8
|
-
import { Presence as o } from "./index57.js";
|
|
9
|
-
import { useId as s } from "./index58.js";
|
|
10
|
-
import * as c from "react";
|
|
11
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
12
|
-
// ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
13
|
-
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
1
|
+
import { useLayoutEffect as e } from "./index39.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
14
5
|
value: t,
|
|
15
6
|
configurable: !0
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ l(h, {
|
|
24
|
-
scope: n,
|
|
25
|
-
disabled: u,
|
|
26
|
-
contentId: s(),
|
|
27
|
-
open: m,
|
|
28
|
-
onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
|
|
29
|
-
children: /* @__PURE__ */ l(r.div, {
|
|
30
|
-
"data-state": C(m),
|
|
31
|
-
"data-disabled": u ? "" : void 0,
|
|
32
|
-
...p,
|
|
33
|
-
ref: t
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
}, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
37
|
-
let { __scopeCollapsible: i, ...a } = e, o = g(v, i);
|
|
38
|
-
return /* @__PURE__ */ l(r.button, {
|
|
39
|
-
type: "button",
|
|
40
|
-
"aria-controls": o.open ? o.contentId : void 0,
|
|
41
|
-
"aria-expanded": o.open || !1,
|
|
42
|
-
"data-state": C(o.open),
|
|
43
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
44
|
-
disabled: o.disabled,
|
|
45
|
-
...a,
|
|
46
|
-
ref: t,
|
|
47
|
-
onClick: n(e.onClick, o.onOpenToggle)
|
|
48
|
-
});
|
|
49
|
-
}, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
50
|
-
let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
|
|
51
|
-
return /* @__PURE__ */ l(o, {
|
|
52
|
-
present: n || i.open,
|
|
53
|
-
children: ({ present: e }) => /* @__PURE__ */ l(S, {
|
|
54
|
-
...r,
|
|
55
|
-
ref: t,
|
|
56
|
-
present: e
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
}, "CollapsibleContent")), S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, n) {
|
|
60
|
-
let { __scopeCollapsible: a, present: o, children: s, ...u } = e, d = g(b, a), [f, p] = c.useState(o), m = c.useRef(null), h = t(n, m), _ = c.useRef(0), v = _.current, y = c.useRef(0), x = y.current, S = d.open || f, w = c.useRef(S), T = c.useRef(void 0);
|
|
61
|
-
return c.useEffect(() => {
|
|
62
|
-
let e = requestAnimationFrame(() => w.current = !1);
|
|
63
|
-
return () => cancelAnimationFrame(e);
|
|
64
|
-
}, []), i(() => {
|
|
65
|
-
let e = m.current;
|
|
66
|
-
if (e) {
|
|
67
|
-
T.current = T.current || {
|
|
68
|
-
transitionDuration: e.style.transitionDuration,
|
|
69
|
-
animationName: e.style.animationName
|
|
70
|
-
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
71
|
-
let t = e.getBoundingClientRect();
|
|
72
|
-
_.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
|
|
73
|
-
}
|
|
74
|
-
}, [d.open, o]), /* @__PURE__ */ l(r.div, {
|
|
75
|
-
"data-state": C(d.open),
|
|
76
|
-
"data-disabled": d.disabled ? "" : void 0,
|
|
77
|
-
id: d.contentId,
|
|
78
|
-
hidden: !S,
|
|
79
|
-
...u,
|
|
80
|
-
ref: h,
|
|
81
|
-
style: {
|
|
82
|
-
"--radix-collapsible-content-height": v ? `${v}px` : void 0,
|
|
83
|
-
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
84
|
-
...e.style
|
|
85
|
-
},
|
|
86
|
-
children: S && s
|
|
87
|
-
});
|
|
88
|
-
}, "CollapsibleContentImpl"));
|
|
89
|
-
function C(e) {
|
|
90
|
-
return e ? "open" : "closed";
|
|
7
|
+
}), i = t.useId || (() => void 0), a = 0;
|
|
8
|
+
function o(n) {
|
|
9
|
+
let [r, o] = t.useState(i());
|
|
10
|
+
return e(() => {
|
|
11
|
+
n || o((e) => e ?? String(a++));
|
|
12
|
+
}, [n]), n || (r ? `radix-${r}` : "");
|
|
91
13
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export { _ as Collapsible, x as CollapsibleContent, y as CollapsibleTrigger, w as Root };
|
|
14
|
+
r(o, "useId");
|
|
15
|
+
export { o as useId };
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e={xxs:{rem:`0.25rem`,px:4},xs:{rem:`0.5rem`,px:8},sm:{rem:`0.75rem`,px:12},md:{rem:`1rem`,px:16},lg:{rem:`1.5rem`,px:24},xl:{rem:`2rem`,px:32},xxl:{rem:`3rem`,px:48}};function t(t){return typeof t==`string`&&t in e}function n(n){if(n!=null)return typeof n==`number`?`${n}px`:t(n)?`var(--spacing-${n}, ${e[n].rem})`:n}function r(n){if(n!=null){if(typeof n==`number`)return n;if(t(n))return e[n].px;if(typeof n==`string`){if(n.endsWith(`px`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e}if(n.endsWith(`rem`)){let e=parseFloat(n);return Number.isNaN(e)?void 0:e*16}}}}function i(e){if(e!=null){if(Array.isArray(e)){let t=n(e[0]),r=n(e[1]);return t&&r?`${t} ${r}`:t||r||void 0}return n(e)}}exports.ComponentSpacingPresetMap=e,exports.isComponentSize=t,exports.resolveGap=i,exports.resolveSpacing=n,exports.resolveSpacingPixel=r;
|
package/dist/index6.js
CHANGED
|
@@ -1,6 +1,63 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/theme/spacing.ts
|
|
2
|
+
var e = {
|
|
3
|
+
xxs: {
|
|
4
|
+
rem: "0.25rem",
|
|
5
|
+
px: 4
|
|
6
|
+
},
|
|
7
|
+
xs: {
|
|
8
|
+
rem: "0.5rem",
|
|
9
|
+
px: 8
|
|
10
|
+
},
|
|
11
|
+
sm: {
|
|
12
|
+
rem: "0.75rem",
|
|
13
|
+
px: 12
|
|
14
|
+
},
|
|
15
|
+
md: {
|
|
16
|
+
rem: "1rem",
|
|
17
|
+
px: 16
|
|
18
|
+
},
|
|
19
|
+
lg: {
|
|
20
|
+
rem: "1.5rem",
|
|
21
|
+
px: 24
|
|
22
|
+
},
|
|
23
|
+
xl: {
|
|
24
|
+
rem: "2rem",
|
|
25
|
+
px: 32
|
|
26
|
+
},
|
|
27
|
+
xxl: {
|
|
28
|
+
rem: "3rem",
|
|
29
|
+
px: 48
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function t(t) {
|
|
33
|
+
return typeof t == "string" && t in e;
|
|
5
34
|
}
|
|
6
|
-
|
|
35
|
+
function n(n) {
|
|
36
|
+
if (n != null) return typeof n == "number" ? `${n}px` : t(n) ? `var(--spacing-${n}, ${e[n].rem})` : n;
|
|
37
|
+
}
|
|
38
|
+
function r(n) {
|
|
39
|
+
if (n != null) {
|
|
40
|
+
if (typeof n == "number") return n;
|
|
41
|
+
if (t(n)) return e[n].px;
|
|
42
|
+
if (typeof n == "string") {
|
|
43
|
+
if (n.endsWith("px")) {
|
|
44
|
+
let e = parseFloat(n);
|
|
45
|
+
return Number.isNaN(e) ? void 0 : e;
|
|
46
|
+
}
|
|
47
|
+
if (n.endsWith("rem")) {
|
|
48
|
+
let e = parseFloat(n);
|
|
49
|
+
return Number.isNaN(e) ? void 0 : e * 16;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function i(e) {
|
|
55
|
+
if (e != null) {
|
|
56
|
+
if (Array.isArray(e)) {
|
|
57
|
+
let t = n(e[0]), r = n(e[1]);
|
|
58
|
+
return t && r ? `${t} ${r}` : t || r || void 0;
|
|
59
|
+
}
|
|
60
|
+
return n(e);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export { e as ComponentSpacingPresetMap, t as isComponentSize, i as resolveGap, n as resolveSpacing, r as resolveSpacingPixel };
|
package/dist/index60.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index59.cjs");let
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index30.cjs"),n=require("./index31.cjs"),r=require("./index32.cjs"),i=require("./index35.cjs"),a=require("./index39.cjs"),o=require("./index57.cjs"),s=require("./index58.cjs"),c=require("./index59.cjs");let l=require("react/jsx-runtime"),u=require("react"),d=e.__toESM(u,1);u=e.__toESM(u);var f=Object.defineProperty,p=(e,t)=>f(e,`name`,{value:t,configurable:!0}),m=`Collapsible`,[h,g]=t.createContextScope(m),[_,v]=h(m),y=d.forwardRef(p(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:s,onOpenChange:u,...f}=e,[p,h]=o.useControllableState({prop:r,defaultProp:a??!1,onChange:u,caller:m});return(0,l.jsx)(_,{scope:n,disabled:s,contentId:c.useId(),open:p,onOpenToggle:d.useCallback(()=>h(e=>!e),[h]),children:(0,l.jsx)(i.Primitive.div,{"data-state":T(p),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),b=`CollapsibleTrigger`,x=d.forwardRef(p(function(e,t){let{__scopeCollapsible:n,...a}=e,o=v(b,n);return(0,l.jsx)(i.Primitive.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...a,ref:t,onClick:r.composeEventHandlers(e.onClick,o.onOpenToggle)})},`CollapsibleTrigger`)),S=`CollapsibleContent`,C=d.forwardRef(p(function(e,t){let{forceMount:n,...r}=e,i=v(S,e.__scopeCollapsible);return(0,l.jsx)(s.Presence,{present:n||i.open,children:({present:e})=>(0,l.jsx)(w,{...r,ref:t,present:e})})},`CollapsibleContent`)),w=d.forwardRef(p(function(e,t){let{__scopeCollapsible:r,present:o,children:s,...c}=e,u=v(S,r),[f,p]=d.useState(o),m=d.useRef(null),h=n.useComposedRefs(t,m),g=d.useRef(0),_=g.current,y=d.useRef(0),b=y.current,x=u.open||f,C=d.useRef(x),w=d.useRef(void 0);return d.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),a.useLayoutEffect(()=>{let e=m.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),p(o)}},[u.open,o]),(0,l.jsx)(i.Primitive.div,{"data-state":T(u.open),"data-disabled":u.disabled?``:void 0,id:u.contentId,hidden:!x,...c,ref:h,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})},`CollapsibleContentImpl`));function T(e){return e?`open`:`closed`}p(T,`getState`);var E=y;exports.Collapsible=y,exports.CollapsibleContent=C,exports.CollapsibleTrigger=x,exports.Root=E;
|
package/dist/index60.js
CHANGED
|
@@ -1,33 +1,94 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { createContextScope as e } from "./index30.js";
|
|
3
|
+
import { useComposedRefs as t } from "./index31.js";
|
|
4
|
+
import { composeEventHandlers as n } from "./index32.js";
|
|
5
|
+
import { Primitive as r } from "./index35.js";
|
|
6
|
+
import { useLayoutEffect as i } from "./index39.js";
|
|
7
|
+
import { useControllableState as a } from "./index57.js";
|
|
8
|
+
import { Presence as o } from "./index58.js";
|
|
9
|
+
import { useId as s } from "./index59.js";
|
|
10
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
11
|
+
import * as l from "react";
|
|
12
|
+
// ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.20_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
13
|
+
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
14
|
+
value: t,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), f = "Collapsible", [p, m] = e(f), [h, g] = p(f), _ = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
17
|
+
let { __scopeCollapsible: n, open: i, defaultOpen: o, disabled: u, onOpenChange: d, ...p } = e, [m, g] = a({
|
|
18
|
+
prop: i,
|
|
19
|
+
defaultProp: o ?? !1,
|
|
20
|
+
onChange: d,
|
|
21
|
+
caller: f
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ c(h, {
|
|
24
|
+
scope: n,
|
|
25
|
+
disabled: u,
|
|
26
|
+
contentId: s(),
|
|
27
|
+
open: m,
|
|
28
|
+
onOpenToggle: l.useCallback(() => g((e) => !e), [g]),
|
|
29
|
+
children: /* @__PURE__ */ c(r.div, {
|
|
30
|
+
"data-state": C(m),
|
|
31
|
+
"data-disabled": u ? "" : void 0,
|
|
32
|
+
...p,
|
|
33
|
+
ref: t
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
37
|
+
let { __scopeCollapsible: i, ...a } = e, o = g(v, i);
|
|
38
|
+
return /* @__PURE__ */ c(r.button, {
|
|
39
|
+
type: "button",
|
|
40
|
+
"aria-controls": o.open ? o.contentId : void 0,
|
|
41
|
+
"aria-expanded": o.open || !1,
|
|
42
|
+
"data-state": C(o.open),
|
|
43
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
44
|
+
disabled: o.disabled,
|
|
45
|
+
...a,
|
|
46
|
+
ref: t,
|
|
47
|
+
onClick: n(e.onClick, o.onOpenToggle)
|
|
48
|
+
});
|
|
49
|
+
}, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
50
|
+
let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
|
|
51
|
+
return /* @__PURE__ */ c(o, {
|
|
52
|
+
present: n || i.open,
|
|
53
|
+
children: ({ present: e }) => /* @__PURE__ */ c(S, {
|
|
54
|
+
...r,
|
|
55
|
+
ref: t,
|
|
56
|
+
present: e
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}, "CollapsibleContent")), S = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ d(function(e, n) {
|
|
60
|
+
let { __scopeCollapsible: a, present: o, children: s, ...u } = e, d = g(b, a), [f, p] = l.useState(o), m = l.useRef(null), h = t(n, m), _ = l.useRef(0), v = _.current, y = l.useRef(0), x = y.current, S = d.open || f, w = l.useRef(S), T = l.useRef(void 0);
|
|
61
|
+
return l.useEffect(() => {
|
|
62
|
+
let e = requestAnimationFrame(() => w.current = !1);
|
|
63
|
+
return () => cancelAnimationFrame(e);
|
|
64
|
+
}, []), i(() => {
|
|
65
|
+
let e = m.current;
|
|
66
|
+
if (e) {
|
|
67
|
+
T.current = T.current || {
|
|
68
|
+
transitionDuration: e.style.transitionDuration,
|
|
69
|
+
animationName: e.style.animationName
|
|
70
|
+
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
71
|
+
let t = e.getBoundingClientRect();
|
|
72
|
+
_.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
|
|
73
|
+
}
|
|
74
|
+
}, [d.open, o]), /* @__PURE__ */ c(r.div, {
|
|
75
|
+
"data-state": C(d.open),
|
|
76
|
+
"data-disabled": d.disabled ? "" : void 0,
|
|
77
|
+
id: d.contentId,
|
|
78
|
+
hidden: !S,
|
|
79
|
+
...u,
|
|
80
|
+
ref: h,
|
|
81
|
+
style: {
|
|
82
|
+
"--radix-collapsible-content-height": v ? `${v}px` : void 0,
|
|
83
|
+
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
84
|
+
...e.style
|
|
85
|
+
},
|
|
86
|
+
children: S && s
|
|
87
|
+
});
|
|
88
|
+
}, "CollapsibleContentImpl"));
|
|
89
|
+
function C(e) {
|
|
90
|
+
return e ? "open" : "closed";
|
|
14
91
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let o;
|
|
19
|
-
return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(t, {
|
|
20
|
-
"data-slot": "collapsible-trigger",
|
|
21
|
-
...a
|
|
22
|
-
}), n[2] = a, n[3] = o), o;
|
|
23
|
-
}
|
|
24
|
-
function s(t) {
|
|
25
|
-
let n = i(4), a;
|
|
26
|
-
n[0] === t ? a = n[1] : ({...a} = t, n[0] = t, n[1] = a);
|
|
27
|
-
let o;
|
|
28
|
-
return n[2] === a ? o = n[3] : (o = /* @__PURE__ */ r(e, {
|
|
29
|
-
"data-slot": "collapsible-content",
|
|
30
|
-
...a
|
|
31
|
-
}), n[2] = a, n[3] = o), o;
|
|
32
|
-
}
|
|
33
|
-
export { a as Collapsible, s as CollapsibleContent, o as CollapsibleTrigger };
|
|
92
|
+
d(C, "getState");
|
|
93
|
+
var w = _;
|
|
94
|
+
export { _ as Collapsible, x as CollapsibleContent, y as CollapsibleTrigger, w as Root };
|