@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/index63.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Badge as e } from "./
|
|
2
|
-
import * as t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { Badge as e } from "./index43.js";
|
|
2
|
+
import * as t from "@stylexjs/stylex";
|
|
3
|
+
import { ChevronsLeftRight as n } from "lucide-react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import * as o from "react";
|
|
6
6
|
// src/ui/compare-slider.tsx
|
|
7
7
|
var s = {
|
|
8
8
|
root: {
|
|
@@ -34,8 +34,8 @@ var s = {
|
|
|
34
34
|
kfzvcC: "x47corl",
|
|
35
35
|
$$css: !0
|
|
36
36
|
}
|
|
37
|
-
}, c =
|
|
38
|
-
let C = u !== void 0, [w, T] =
|
|
37
|
+
}, c = o.forwardRef(({ itemOne: c, itemTwo: l, value: u, defaultValue: d = 50, onValueChange: f, orientation: p = "horizontal", showLabels: m = !1, labelOne: h = "Before", labelTwo: g = "After", disabled: _ = !1, sx: v, className: y, "aria-label": b = "Comparison slider", ...x }, S) => {
|
|
38
|
+
let C = u !== void 0, [w, T] = o.useState(d), [E, D] = o.useState(!1), O = o.useRef(null), k = C ? u : w, A = o.useCallback((e) => {
|
|
39
39
|
if (_) return;
|
|
40
40
|
let t = Math.max(0, Math.min(100, Math.round(e)));
|
|
41
41
|
C || T(t), f?.(t);
|
|
@@ -43,7 +43,7 @@ var s = {
|
|
|
43
43
|
_,
|
|
44
44
|
C,
|
|
45
45
|
f
|
|
46
|
-
]), j =
|
|
46
|
+
]), j = o.useCallback((e, t) => {
|
|
47
47
|
let n = O.current;
|
|
48
48
|
if (!n) return;
|
|
49
49
|
let r = n.getBoundingClientRect();
|
|
@@ -67,8 +67,8 @@ var s = {
|
|
|
67
67
|
if (_) return;
|
|
68
68
|
let t = e.shiftKey ? 10 : 2;
|
|
69
69
|
e.key === "ArrowLeft" || e.key === "ArrowDown" ? (e.preventDefault(), A(k - t)) : e.key === "ArrowRight" || e.key === "ArrowUp" ? (e.preventDefault(), A(k + t)) : e.key === "Home" ? (e.preventDefault(), A(0)) : e.key === "End" && (e.preventDefault(), A(100));
|
|
70
|
-
}, I = p === "horizontal", L = I ? { clipPath: `inset(0 ${100 - k}% 0 0)` } : { clipPath: `inset(0 0 ${100 - k}% 0)` }, R = I ? { left: `${k}%` } : { top: `${k}%` }, z =
|
|
71
|
-
return /* @__PURE__ */
|
|
70
|
+
}, I = p === "horizontal", L = I ? { clipPath: `inset(0 ${100 - k}% 0 0)` } : { clipPath: `inset(0 0 ${100 - k}% 0)` }, R = I ? { left: `${k}%` } : { top: `${k}%` }, z = t.props(s.root, v);
|
|
71
|
+
return /* @__PURE__ */ a("div", {
|
|
72
72
|
ref: (e) => {
|
|
73
73
|
O.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
|
|
74
74
|
},
|
|
@@ -82,36 +82,36 @@ var s = {
|
|
|
82
82
|
className: y ? `${z.className || ""} ${y}`.trim() : z.className,
|
|
83
83
|
...x,
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ i("div", {
|
|
86
86
|
"data-slot": "compare-layer-two",
|
|
87
87
|
className: "x1lliihq xh8yej3 x5yr21d",
|
|
88
88
|
children: l
|
|
89
89
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ i("div", {
|
|
91
91
|
"data-slot": "compare-layer-one",
|
|
92
92
|
className: "x10l6tqk x13vifvy xu96u03 x3m8u43 x1ey2m1c xb3r6kr x47corl",
|
|
93
93
|
style: L,
|
|
94
94
|
children: c
|
|
95
95
|
}),
|
|
96
|
-
m && /* @__PURE__ */
|
|
96
|
+
m && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(e, {
|
|
97
97
|
variant: "secondary",
|
|
98
98
|
"data-slot": "compare-label-one",
|
|
99
99
|
sx: [s.labelLeft],
|
|
100
100
|
children: h
|
|
101
|
-
}), /* @__PURE__ */
|
|
101
|
+
}), /* @__PURE__ */ i(e, {
|
|
102
102
|
variant: "secondary",
|
|
103
103
|
"data-slot": "compare-label-two",
|
|
104
104
|
sx: [s.labelRight],
|
|
105
105
|
children: g
|
|
106
106
|
})] }),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ i("div", {
|
|
108
108
|
"data-slot": "compare-divider",
|
|
109
109
|
...{
|
|
110
110
|
0: { className: "x10l6tqk xu96u03 x3m8u43 x36qwtl x1c5tqo3 xfr4yco x1e5i8e3 x1cb1t30 x1n327nk" },
|
|
111
111
|
1: { className: "x10l6tqk x13vifvy x1ey2m1c xfo62xy x1c5tqo3 xfr4yco x7eptgl xuuh30 x1n327nk" }
|
|
112
112
|
}[!!I | 0],
|
|
113
113
|
style: R,
|
|
114
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ i("div", {
|
|
115
115
|
role: "slider",
|
|
116
116
|
"aria-valuenow": k,
|
|
117
117
|
"aria-valuemin": 0,
|
|
@@ -124,7 +124,7 @@ var s = {
|
|
|
124
124
|
0: { className: "x10l6tqk xwa60dl x1nrll8i x11lhmoz x1s4ejo4 xk8t5le x7xypw4 x1mlyrtw x84br7x xdh2fpr x1y0btm7 xkqzj2t xytkxmq x78zum5 x6s0dn4 xl56j7k x1a2a7pz x1jm3nie x1kj9du5" },
|
|
125
125
|
1: { className: "x10l6tqk xwa60dl x1nrll8i x1s4ejo4 xk8t5le x7xypw4 x1mlyrtw x84br7x xdh2fpr x1y0btm7 xkqzj2t xytkxmq x78zum5 x6s0dn4 xl56j7k x1a2a7pz x1kj9du5 xi9pz9s xb9cejc" }
|
|
126
126
|
}[!!E | 0],
|
|
127
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ i(n, { size: 16 })
|
|
128
128
|
})
|
|
129
129
|
})
|
|
130
130
|
]
|
package/dist/index64.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index30.cjs"),n=require("./index31.cjs");let r=require("react/jsx-runtime"),i=require("react"),a=e.__toESM(i,1);i=e.__toESM(i);let o=require("@radix-ui/react-slot");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0});function l(e){let i=e+`CollectionProvider`,[s,l]=t.createContextScope(i),[u,d]=s(i,{collectionRef:{current:null},itemMap:new Map}),f=c(e=>{let{scope:t,children:n}=e,i=a.useRef(null),o=a.useRef(new Map).current;return(0,r.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})},`CollectionProvider`);f.displayName=i;let p=e+`CollectionSlot`,m=(0,o.createSlot)(p),h=a.forwardRef((e,t)=>{let{scope:i,children:a}=e,o=d(p,i),s=n.useComposedRefs(t,o.collectionRef);return(0,r.jsx)(m,{ref:s,children:a})});h.displayName=p;let g=e+`CollectionItemSlot`,_=`data-radix-collection-item`,v=(0,o.createSlot)(g),y=a.forwardRef((e,t)=>{let{scope:i,children:o,...s}=e,c=a.useRef(null),l=n.useComposedRefs(t,c),u=d(g,i);return a.useEffect(()=>(u.itemMap.set(c,{ref:c,...s}),()=>void u.itemMap.delete(c))),(0,r.jsx)(v,{[_]:``,ref:l,children:o})});y.displayName=g;function b(t){let n=d(e+`CollectionConsumer`,t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${_}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return c(b,`useCollection`),[{Provider:f,Slot:h,ItemSlot:y},b,l]}c(l,`createCollection`);var u=new WeakMap,d=class e extends Map{static{c(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=m(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=f(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function f(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=p(e,t);return n===-1?void 0:e[n]}c(f,`at`);function p(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}c(p,`toSafeIndex`);function m(e){return e!==e||e===0?0:Math.trunc(e)}c(m,`toSafeInteger`);function h(e){let i=e+`CollectionProvider`,[s,l]=t.createContextScope(i),[u,f]=s(i,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:c(()=>void 0,`setItemMap`)}),p=c(({state:e,...t})=>e?(0,r.jsx)(h,{...t,state:e}):(0,r.jsx)(m,{...t}),`CollectionProvider`);p.displayName=i;let m=c(e=>{let t=T();return(0,r.jsx)(h,{...e,state:t})},`CollectionInit`);m.displayName=i+`Init`;let h=c(e=>{let{scope:t,children:i,state:o}=e,s=a.useRef(null),[c,l]=a.useState(null),d=n.useComposedRefs(s,l),[f,p]=o;return a.useEffect(()=>{if(!c)return;let e=y(()=>{});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c]),(0,r.jsx)(u,{scope:t,itemMap:f,setItemMap:p,collectionRef:d,collectionRefObject:s,collectionElement:c,children:i})},`CollectionProviderImpl`);h.displayName=i+`Impl`;let _=e+`CollectionSlot`,b=(0,o.createSlot)(_),x=a.forwardRef((e,t)=>{let{scope:i,children:a}=e,o=f(_,i),s=n.useComposedRefs(t,o.collectionRef);return(0,r.jsx)(b,{ref:s,children:a})});x.displayName=_;let S=e+`CollectionItemSlot`,C=(0,o.createSlot)(S),w=a.forwardRef((e,t)=>{let{scope:i,children:o,...s}=e,c=a.useRef(null),[l,u]=a.useState(null),p=n.useComposedRefs(t,c,u),{setItemMap:m}=f(S,i),h=a.useRef(s);g(h.current,s)||(h.current=s);let _=h.current;return a.useEffect(()=>{let e=_;return m(t=>l?t.has(l)?t.set(l,{...e,element:l}).toSorted(v):(t.set(l,{...e,element:l}),t.toSorted(v)):t),()=>{m(e=>!l||!e.has(l)?e:(e.delete(l),new d(e)))}},[l,_,m]),(0,r.jsx)(C,{"data-radix-collection-item":``,ref:p,children:o})});w.displayName=S;function T(){return a.useState(new d)}c(T,`useInitCollection`);function E(t){let{itemMap:n}=f(e+`CollectionConsumer`,t);return n}return c(E,`useCollection`),[{Provider:p,Slot:x,ItemSlot:w},{createCollectionScope:l,useCollection:E,useInitCollection:T}]}c(h,`createCollection`);function g(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}c(g,`shallowEqual`);function _(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}c(_,`isElementPreceding`);function v(e,t){return!e[1].element||!t[1].element?0:_(e[1].element,t[1].element)?-1:1}c(v,`sortByDocumentPosition`);function y(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}c(y,`getChildListObserver`),exports.createCollection=l,exports.unstable_createCollection=h;
|
package/dist/index64.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContextScope as e } from "./
|
|
3
|
-
import { useComposedRefs as t } from "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { createContextScope as e } from "./index30.js";
|
|
3
|
+
import { useComposedRefs as t } from "./index31.js";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import * as r from "react";
|
|
6
6
|
import { createSlot as i } from "@radix-ui/react-slot";
|
|
7
7
|
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.15_@types+react-dom@19.3.0_@types+react@19.3.0__@types+r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
8
8
|
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
@@ -15,8 +15,8 @@ function s(a) {
|
|
|
15
15
|
collectionRef: { current: null },
|
|
16
16
|
itemMap: /* @__PURE__ */ new Map()
|
|
17
17
|
}), f = /* @__PURE__ */ o((e) => {
|
|
18
|
-
let { scope: t, children: i } = e, a =
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
let { scope: t, children: i } = e, a = r.useRef(null), o = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
19
|
+
return /* @__PURE__ */ n(u, {
|
|
20
20
|
scope: t,
|
|
21
21
|
itemMap: o,
|
|
22
22
|
collectionRef: a,
|
|
@@ -24,20 +24,20 @@ function s(a) {
|
|
|
24
24
|
});
|
|
25
25
|
}, "CollectionProvider");
|
|
26
26
|
f.displayName = s;
|
|
27
|
-
let p = a + "CollectionSlot", m = i(p), h =
|
|
28
|
-
let { scope: i, children: a } = e, o = d(p, i), s = t(
|
|
29
|
-
return /* @__PURE__ */
|
|
27
|
+
let p = a + "CollectionSlot", m = i(p), h = r.forwardRef((e, r) => {
|
|
28
|
+
let { scope: i, children: a } = e, o = d(p, i), s = t(r, o.collectionRef);
|
|
29
|
+
return /* @__PURE__ */ n(m, {
|
|
30
30
|
ref: s,
|
|
31
31
|
children: a
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
h.displayName = p;
|
|
35
|
-
let g = a + "CollectionItemSlot", _ = "data-radix-collection-item", v = i(g), y =
|
|
36
|
-
let { scope: a, children: o, ...s } = e, c =
|
|
37
|
-
return
|
|
35
|
+
let g = a + "CollectionItemSlot", _ = "data-radix-collection-item", v = i(g), y = r.forwardRef((e, i) => {
|
|
36
|
+
let { scope: a, children: o, ...s } = e, c = r.useRef(null), l = t(i, c), u = d(g, a);
|
|
37
|
+
return r.useEffect(() => (u.itemMap.set(c, {
|
|
38
38
|
ref: c,
|
|
39
39
|
...s
|
|
40
|
-
}), () => void u.itemMap.delete(c))), /* @__PURE__ */
|
|
40
|
+
}), () => void u.itemMap.delete(c))), /* @__PURE__ */ n(v, {
|
|
41
41
|
[_]: "",
|
|
42
42
|
ref: l,
|
|
43
43
|
children: o
|
|
@@ -46,7 +46,7 @@ function s(a) {
|
|
|
46
46
|
y.displayName = g;
|
|
47
47
|
function b(e) {
|
|
48
48
|
let t = d(a + "CollectionConsumer", e);
|
|
49
|
-
return
|
|
49
|
+
return r.useCallback(() => {
|
|
50
50
|
let e = t.collectionRef.current;
|
|
51
51
|
if (!e) return [];
|
|
52
52
|
let n = Array.from(e.querySelectorAll(`[${_}]`));
|
|
@@ -292,22 +292,22 @@ function p(a) {
|
|
|
292
292
|
collectionRefObject: { current: null },
|
|
293
293
|
itemMap: new l(),
|
|
294
294
|
setItemMap: /* @__PURE__ */ o(() => void 0, "setItemMap")
|
|
295
|
-
}), p = /* @__PURE__ */ o(({ state: e, ...t }) => e ? /* @__PURE__ */
|
|
295
|
+
}), p = /* @__PURE__ */ o(({ state: e, ...t }) => e ? /* @__PURE__ */ n(v, {
|
|
296
296
|
...t,
|
|
297
297
|
state: e
|
|
298
|
-
}) : /* @__PURE__ */
|
|
298
|
+
}) : /* @__PURE__ */ n(h, { ...t }), "CollectionProvider");
|
|
299
299
|
p.displayName = s;
|
|
300
300
|
let h = /* @__PURE__ */ o((e) => {
|
|
301
301
|
let t = T();
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ n(v, {
|
|
303
303
|
...e,
|
|
304
304
|
state: t
|
|
305
305
|
});
|
|
306
306
|
}, "CollectionInit");
|
|
307
307
|
h.displayName = s + "Init";
|
|
308
308
|
let v = /* @__PURE__ */ o((e) => {
|
|
309
|
-
let { scope: i, children: a, state: o } = e, s =
|
|
310
|
-
return
|
|
309
|
+
let { scope: i, children: a, state: o } = e, s = r.useRef(null), [c, l] = r.useState(null), u = t(s, l), [f, p] = o;
|
|
310
|
+
return r.useEffect(() => {
|
|
311
311
|
if (!c) return;
|
|
312
312
|
let e = _(() => {});
|
|
313
313
|
return e.observe(c, {
|
|
@@ -316,7 +316,7 @@ function p(a) {
|
|
|
316
316
|
}), () => {
|
|
317
317
|
e.disconnect();
|
|
318
318
|
};
|
|
319
|
-
}, [c]), /* @__PURE__ */
|
|
319
|
+
}, [c]), /* @__PURE__ */ n(d, {
|
|
320
320
|
scope: i,
|
|
321
321
|
itemMap: f,
|
|
322
322
|
setItemMap: p,
|
|
@@ -327,19 +327,19 @@ function p(a) {
|
|
|
327
327
|
});
|
|
328
328
|
}, "CollectionProviderImpl");
|
|
329
329
|
v.displayName = s + "Impl";
|
|
330
|
-
let y = a + "CollectionSlot", b = i(y), x =
|
|
331
|
-
let { scope: i, children: a } = e, o = f(y, i), s = t(
|
|
332
|
-
return /* @__PURE__ */
|
|
330
|
+
let y = a + "CollectionSlot", b = i(y), x = r.forwardRef((e, r) => {
|
|
331
|
+
let { scope: i, children: a } = e, o = f(y, i), s = t(r, o.collectionRef);
|
|
332
|
+
return /* @__PURE__ */ n(b, {
|
|
333
333
|
ref: s,
|
|
334
334
|
children: a
|
|
335
335
|
});
|
|
336
336
|
});
|
|
337
337
|
x.displayName = y;
|
|
338
|
-
let S = a + "CollectionItemSlot", C = i(S), w =
|
|
339
|
-
let { scope: a, children: o, ...s } = e, c =
|
|
338
|
+
let S = a + "CollectionItemSlot", C = i(S), w = r.forwardRef((e, i) => {
|
|
339
|
+
let { scope: a, children: o, ...s } = e, c = r.useRef(null), [u, d] = r.useState(null), p = t(i, c, d), { setItemMap: h } = f(S, a), _ = r.useRef(s);
|
|
340
340
|
m(_.current, s) || (_.current = s);
|
|
341
341
|
let v = _.current;
|
|
342
|
-
return
|
|
342
|
+
return r.useEffect(() => {
|
|
343
343
|
let e = v;
|
|
344
344
|
return h((t) => u ? t.has(u) ? t.set(u, {
|
|
345
345
|
...e,
|
|
@@ -354,7 +354,7 @@ function p(a) {
|
|
|
354
354
|
u,
|
|
355
355
|
v,
|
|
356
356
|
h
|
|
357
|
-
]), /* @__PURE__ */
|
|
357
|
+
]), /* @__PURE__ */ n(C, {
|
|
358
358
|
"data-radix-collection-item": "",
|
|
359
359
|
ref: p,
|
|
360
360
|
children: o
|
|
@@ -362,7 +362,7 @@ function p(a) {
|
|
|
362
362
|
});
|
|
363
363
|
w.displayName = S;
|
|
364
364
|
function T() {
|
|
365
|
-
return
|
|
365
|
+
return r.useState(new l());
|
|
366
366
|
}
|
|
367
367
|
o(T, "useInitCollection");
|
|
368
368
|
function E(e) {
|
package/dist/index65.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index31.cjs"),n=require("./index32.cjs"),r=require("./index35.cjs"),i=require("./index38.cjs");let a=require("react/jsx-runtime"),o=require("react"),s=e.__toESM(o,1);o=e.__toESM(o);var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=`dismissableLayer.update`,d=`dismissableLayer.pointerDownOutside`,f=`dismissableLayer.focusOutside`,p,m=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=s.forwardRef(l(function(e,o){let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:d=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:_,onDismiss:x,...S}=e,C=s.useContext(m),[w,T]=s.useState(null),E=w?.ownerDocument??globalThis?.document,[,D]=s.useState({}),O=t.useComposedRefs(o,T),k=Array.from(C.layers),[A]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),j=A?k.indexOf(A):-1,M=w?k.indexOf(w):-1,N=C.layersWithOutsidePointerEventsDisabled.size>0,P=M>=j,F=s.useRef(!1),I=v(e=>{h?.(e),_?.(e),e.defaultPrevented||x?.()},{ownerDocument:E,deferPointerDownOutside:d,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:s.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return P&&!t},[C.branches,P])}),L=y(e=>{if(d&&F.current)return;let t=e.target;[...C.branches].some(e=>e.contains(t))||(g?.(e),_?.(e),e.defaultPrevented||x?.())},E),R=w?M===k.length-1:!1,z=i.useCallbackRef(e=>{e.key===`Escape`&&(f?.(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))});return s.useEffect(()=>{if(R)return E.addEventListener(`keydown`,z,{capture:!0}),()=>E.removeEventListener(`keydown`,z,{capture:!0})},[E,R,z]),s.useEffect(()=>{if(w)return c&&(C.layersWithOutsidePointerEventsDisabled.size===0&&(p=E.body.style.pointerEvents,E.body.style.pointerEvents=`none`),C.layersWithOutsidePointerEventsDisabled.add(w)),C.layers.add(w),b(),()=>{c&&(C.layersWithOutsidePointerEventsDisabled.delete(w),C.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=p))}},[w,E,c,C]),s.useEffect(()=>()=>{w&&(C.layers.delete(w),C.layersWithOutsidePointerEventsDisabled.delete(w),b())},[w,C]),s.useEffect(()=>{let e=l(()=>D({}),`handleUpdate`);return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,a.jsx)(r.Primitive.div,{...S,ref:O,style:{pointerEvents:N?P?`auto`:`none`:void 0,...e.style},onFocusCapture:n.composeEventHandlers(e.onFocusCapture,L.onFocusCapture),onBlurCapture:n.composeEventHandlers(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:n.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})},`DismissableLayer`));function g(){let e=s.useContext(m),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}l(g,`useDismissableLayerSurface`);var _=l(()=>!0,`IS_TRUE`);function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:c=_}=t,u=i.useCallbackRef(e),f=s.useRef(!1),p=s.useRef(!1),m=s.useRef(new Map),h=s.useRef(()=>{});return s.useEffect(()=>{function e(){p.current=!1,a.current=!1,m.current.clear()}l(e,`resetOutsideInteraction`);function t(){return Array.from(m.current.values()).some(Boolean)}l(t,`isOutsideInteractionIntercepted`);function i(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||m.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{p.current&&h.current()},0)}l(i,`handleInteractionCapture`);function s(e){p.current&&m.current.set(e.type,!1)}l(s,`handleInteractionBubble`);let g=l(i=>{if(i.target&&!f.current){let o=function(){n.removeEventListener(`click`,h.current);let r=t();e(),r||x(d,u,s,{discrete:!0})};if(l(o,`handleAndDispatchPointerDownOutsideEvent`),!c(i.target)){n.removeEventListener(`click`,h.current),e(),f.current=!1;return}let s={originalEvent:i};p.current=!0,a.current=r&&i.button===0,m.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,h.current),h.current=o,n.addEventListener(`click`,h.current,{once:!0}))}else n.removeEventListener(`click`,h.current),e();f.current=!1},`handlePointerDown`),_=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of _)n.addEventListener(e,i,!0),n.addEventListener(e,s);let v=window.setTimeout(()=>{n.addEventListener(`pointerdown`,g)},0);return()=>{window.clearTimeout(v),n.removeEventListener(`pointerdown`,g),n.removeEventListener(`click`,h.current);for(let e of _)n.removeEventListener(e,i,!0),n.removeEventListener(e,s)}},[n,u,r,a,o,c]),{onPointerDownCapture:l(()=>f.current=!0,`onPointerDownCapture`)}}l(v,`usePointerDownOutside`);function y(e,t=globalThis?.document){let n=i.useCallbackRef(e),r=s.useRef(!1);return s.useEffect(()=>{let e=l(e=>{e.target&&!r.current&&x(f,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:l(()=>r.current=!0,`onFocusCapture`),onBlurCapture:l(()=>r.current=!1,`onBlurCapture`)}}l(y,`useFocusOutside`);function b(){let e=new CustomEvent(u);document.dispatchEvent(e)}l(b,`dispatchUpdate`);function x(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r.dispatchDiscreteCustomEvent(a,o):a.dispatchEvent(o)}l(x,`handleAndDispatchCustomEvent`),exports.DismissableLayer=h,exports.useDismissableLayerSurface=g;
|
package/dist/index65.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useComposedRefs as e } from "./
|
|
3
|
-
import { composeEventHandlers as t } from "./
|
|
4
|
-
import { Primitive as n, dispatchDiscreteCustomEvent as r } from "./
|
|
5
|
-
import { useCallbackRef as i } from "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { useComposedRefs as e } from "./index31.js";
|
|
3
|
+
import { composeEventHandlers as t } from "./index32.js";
|
|
4
|
+
import { Primitive as n, dispatchDiscreteCustomEvent as r } from "./index35.js";
|
|
5
|
+
import { useCallbackRef as i } from "./index38.js";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import * as o from "react";
|
|
8
8
|
// ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@19.3.0_@types+react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
9
9
|
var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
10
10
|
value: t,
|
|
11
11
|
configurable: !0
|
|
12
|
-
}), l = "dismissableLayer.update", u = "dismissableLayer.pointerDownOutside", d = "dismissableLayer.focusOutside", f, p =
|
|
12
|
+
}), l = "dismissableLayer.update", u = "dismissableLayer.pointerDownOutside", d = "dismissableLayer.focusOutside", f, p = o.createContext({
|
|
13
13
|
layers: /* @__PURE__ */ new Set(),
|
|
14
14
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
15
15
|
branches: /* @__PURE__ */ new Set(),
|
|
16
16
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
17
|
-
}), m = /* @__PURE__ */
|
|
18
|
-
let { disableOutsidePointerEvents: u = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: m, onPointerDownOutside: h, onFocusOutside: g, onInteractOutside: b, onDismiss: x, ...S } = r, C =
|
|
17
|
+
}), m = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ c(function(r, s) {
|
|
18
|
+
let { disableOutsidePointerEvents: u = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: m, onPointerDownOutside: h, onFocusOutside: g, onInteractOutside: b, onDismiss: x, ...S } = r, C = o.useContext(p), [w, T] = o.useState(null), E = w?.ownerDocument ?? globalThis?.document, [, D] = o.useState({}), O = e(s, T), k = Array.from(C.layers), [A] = [...C.layersWithOutsidePointerEventsDisabled].slice(-1), j = A ? k.indexOf(A) : -1, M = w ? k.indexOf(w) : -1, N = C.layersWithOutsidePointerEventsDisabled.size > 0, P = M >= j, F = o.useRef(!1), I = _((e) => {
|
|
19
19
|
h?.(e), b?.(e), e.defaultPrevented || x?.();
|
|
20
20
|
}, {
|
|
21
21
|
ownerDocument: E,
|
|
22
22
|
deferPointerDownOutside: d,
|
|
23
23
|
isDeferredPointerDownOutsideRef: F,
|
|
24
24
|
dismissableSurfaces: C.dismissableSurfaces,
|
|
25
|
-
shouldHandlePointerDownOutside:
|
|
25
|
+
shouldHandlePointerDownOutside: o.useCallback((e) => {
|
|
26
26
|
if (!(e instanceof Node)) return !1;
|
|
27
27
|
let t = [...C.branches].some((t) => t.contains(e));
|
|
28
28
|
return P && !t;
|
|
@@ -34,13 +34,13 @@ var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
|
34
34
|
}, E), R = w ? M === k.length - 1 : !1, z = i((e) => {
|
|
35
35
|
e.key === "Escape" && (m?.(e), !e.defaultPrevented && x && (e.preventDefault(), x()));
|
|
36
36
|
});
|
|
37
|
-
return
|
|
37
|
+
return o.useEffect(() => {
|
|
38
38
|
if (R) return E.addEventListener("keydown", z, { capture: !0 }), () => E.removeEventListener("keydown", z, { capture: !0 });
|
|
39
39
|
}, [
|
|
40
40
|
E,
|
|
41
41
|
R,
|
|
42
42
|
z
|
|
43
|
-
]),
|
|
43
|
+
]), o.useEffect(() => {
|
|
44
44
|
if (w) return u && (C.layersWithOutsidePointerEventsDisabled.size === 0 && (f = E.body.style.pointerEvents, E.body.style.pointerEvents = "none"), C.layersWithOutsidePointerEventsDisabled.add(w)), C.layers.add(w), y(), () => {
|
|
45
45
|
u && (C.layersWithOutsidePointerEventsDisabled.delete(w), C.layersWithOutsidePointerEventsDisabled.size === 0 && (E.body.style.pointerEvents = f));
|
|
46
46
|
};
|
|
@@ -49,12 +49,12 @@ var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
|
49
49
|
E,
|
|
50
50
|
u,
|
|
51
51
|
C
|
|
52
|
-
]),
|
|
52
|
+
]), o.useEffect(() => () => {
|
|
53
53
|
w && (C.layers.delete(w), C.layersWithOutsidePointerEventsDisabled.delete(w), y());
|
|
54
|
-
}, [w, C]),
|
|
54
|
+
}, [w, C]), o.useEffect(() => {
|
|
55
55
|
let e = /* @__PURE__ */ c(() => D({}), "handleUpdate");
|
|
56
56
|
return document.addEventListener(l, e), () => document.removeEventListener(l, e);
|
|
57
|
-
}, []), /* @__PURE__ */
|
|
57
|
+
}, []), /* @__PURE__ */ a(n.div, {
|
|
58
58
|
...S,
|
|
59
59
|
ref: O,
|
|
60
60
|
style: {
|
|
@@ -67,8 +67,8 @@ var s = Object.defineProperty, c = (e, t) => s(e, "name", {
|
|
|
67
67
|
});
|
|
68
68
|
}, "DismissableLayer"));
|
|
69
69
|
function h() {
|
|
70
|
-
let e =
|
|
71
|
-
return
|
|
70
|
+
let e = o.useContext(p), [t, n] = o.useState(null);
|
|
71
|
+
return o.useEffect(() => {
|
|
72
72
|
if (t) return e.dismissableSurfaces.add(t), () => {
|
|
73
73
|
e.dismissableSurfaces.delete(t);
|
|
74
74
|
};
|
|
@@ -77,10 +77,10 @@ function h() {
|
|
|
77
77
|
c(h, "useDismissableLayerSurface");
|
|
78
78
|
var g = /* @__PURE__ */ c(() => !0, "IS_TRUE");
|
|
79
79
|
function _(e, t) {
|
|
80
|
-
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef:
|
|
81
|
-
return
|
|
80
|
+
let { ownerDocument: n = globalThis?.document, deferPointerDownOutside: r = !1, isDeferredPointerDownOutsideRef: a, dismissableSurfaces: s, shouldHandlePointerDownOutside: l = g } = t, d = i(e), f = o.useRef(!1), p = o.useRef(!1), m = o.useRef(/* @__PURE__ */ new Map()), h = o.useRef(() => {});
|
|
81
|
+
return o.useEffect(() => {
|
|
82
82
|
function e() {
|
|
83
|
-
p.current = !1,
|
|
83
|
+
p.current = !1, a.current = !1, m.current.clear();
|
|
84
84
|
}
|
|
85
85
|
c(e, "resetOutsideInteraction");
|
|
86
86
|
function t() {
|
|
@@ -95,23 +95,23 @@ function _(e, t) {
|
|
|
95
95
|
}, 0);
|
|
96
96
|
}
|
|
97
97
|
c(i, "handleInteractionCapture");
|
|
98
|
-
function
|
|
98
|
+
function o(e) {
|
|
99
99
|
p.current && m.current.set(e.type, !1);
|
|
100
100
|
}
|
|
101
|
-
c(
|
|
101
|
+
c(o, "handleInteractionBubble");
|
|
102
102
|
let g = /* @__PURE__ */ c((i) => {
|
|
103
103
|
if (i.target && !f.current) {
|
|
104
|
-
let
|
|
104
|
+
let o = function() {
|
|
105
105
|
n.removeEventListener("click", h.current);
|
|
106
106
|
let r = t();
|
|
107
107
|
e(), r || b(u, d, s, { discrete: !0 });
|
|
108
108
|
};
|
|
109
|
-
if (c(
|
|
109
|
+
if (c(o, "handleAndDispatchPointerDownOutsideEvent"), !l(i.target)) {
|
|
110
110
|
n.removeEventListener("click", h.current), e(), f.current = !1;
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
let s = { originalEvent: i };
|
|
114
|
-
p.current = !0,
|
|
114
|
+
p.current = !0, a.current = r && i.button === 0, m.current.clear(), !r || i.button !== 0 ? o() : (n.removeEventListener("click", h.current), h.current = o, n.addEventListener("click", h.current, { once: !0 }));
|
|
115
115
|
} else n.removeEventListener("click", h.current), e();
|
|
116
116
|
f.current = !1;
|
|
117
117
|
}, "handlePointerDown"), _ = [
|
|
@@ -122,27 +122,27 @@ function _(e, t) {
|
|
|
122
122
|
"touchend",
|
|
123
123
|
"click"
|
|
124
124
|
];
|
|
125
|
-
for (let e of _) n.addEventListener(e, i, !0), n.addEventListener(e,
|
|
125
|
+
for (let e of _) n.addEventListener(e, i, !0), n.addEventListener(e, o);
|
|
126
126
|
let v = window.setTimeout(() => {
|
|
127
127
|
n.addEventListener("pointerdown", g);
|
|
128
128
|
}, 0);
|
|
129
129
|
return () => {
|
|
130
130
|
window.clearTimeout(v), n.removeEventListener("pointerdown", g), n.removeEventListener("click", h.current);
|
|
131
|
-
for (let e of _) n.removeEventListener(e, i, !0), n.removeEventListener(e,
|
|
131
|
+
for (let e of _) n.removeEventListener(e, i, !0), n.removeEventListener(e, o);
|
|
132
132
|
};
|
|
133
133
|
}, [
|
|
134
134
|
n,
|
|
135
135
|
d,
|
|
136
136
|
r,
|
|
137
|
-
|
|
137
|
+
a,
|
|
138
138
|
s,
|
|
139
139
|
l
|
|
140
140
|
]), { onPointerDownCapture: /* @__PURE__ */ c(() => f.current = !0, "onPointerDownCapture") };
|
|
141
141
|
}
|
|
142
142
|
c(_, "usePointerDownOutside");
|
|
143
143
|
function v(e, t = globalThis?.document) {
|
|
144
|
-
let n = i(e), r =
|
|
145
|
-
return
|
|
144
|
+
let n = i(e), r = o.useRef(!1);
|
|
145
|
+
return o.useEffect(() => {
|
|
146
146
|
let e = /* @__PURE__ */ c((e) => {
|
|
147
147
|
e.target && !r.current && b(d, n, { originalEvent: e }, { discrete: !1 });
|
|
148
148
|
}, "handleFocus");
|
package/dist/index67.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index31.cjs"),n=require("./index35.cjs"),r=require("./index38.cjs");let i=require("react/jsx-runtime"),a=require("react"),o=e.__toESM(a,1);a=e.__toESM(a);var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`focusScope.autoFocusOnMount`,u=`focusScope.autoFocusOnUnmount`,d={bubbles:!1,cancelable:!0},f=o.forwardRef(c(function(e,a){let{loop:s=!1,trapped:f=!1,onMountAutoFocus:g,onUnmountAutoFocus:_,...v}=e,[x,S]=o.useState(null),w=r.useCallbackRef(g),T=r.useCallbackRef(_),E=o.useRef(null),D=t.useComposedRefs(a,S),O=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(f){let e=function(e){if(O.paused||!x)return;let t=e.target;x.contains(t)?E.current=t:y(E.current,{select:!0})},t=function(e){if(O.paused||!x)return;let t=e.relatedTarget;t!==null&&(x.contains(t)||y(E.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(x)};c(e,`handleFocusIn`),c(t,`handleFocusOut`),c(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return x&&r.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[f,x,O.paused]),o.useEffect(()=>{if(x){b.add(O);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(l,d);x.addEventListener(l,w),x.dispatchEvent(t),t.defaultPrevented||(p(C(h(x)),{select:!0}),document.activeElement===e&&y(x))}return()=>{x.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,d);x.addEventListener(u,T),x.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),x.removeEventListener(u,T),b.remove(O)},0)}}},[x,w,T,O]);let k=o.useCallback(e=>{if(!s&&!f||O.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,i]=m(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),s&&y(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),s&&y(i,{select:!0})):n===t&&e.preventDefault()}},[s,f,O.paused]);return(0,i.jsx)(n.Primitive.div,{tabIndex:-1,...v,ref:D,onKeyDown:k})},`FocusScope`));function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}c(p,`focusFirst`);function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}c(m,`getTabbableEdges`);function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:c(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}c(h,`getTabbableCandidates`);function g(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):_(r,{upTo:t})))return r}c(g,`findVisible`);function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}c(_,`isHidden`);function v(e){return e instanceof HTMLInputElement&&`select`in e}c(v,`isSelectableInput`);function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}c(y,`focus`);var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}c(x,`createFocusScopesStack`);function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}c(S,`arrayRemove`);function C(e){return e.filter(e=>e.tagName!==`A`)}c(C,`removeLinks`),exports.FocusScope=f;
|
package/dist/index67.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useComposedRefs as e } from "./
|
|
3
|
-
import { Primitive as t } from "./
|
|
4
|
-
import { useCallbackRef as n } from "./
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { useComposedRefs as e } from "./index31.js";
|
|
3
|
+
import { Primitive as t } from "./index35.js";
|
|
4
|
+
import { useCallbackRef as n } from "./index38.js";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import * as i from "react";
|
|
7
7
|
// ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@19.3.0_@types+react@19.3.0__@types+_3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
8
8
|
var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
9
9
|
value: t,
|
|
@@ -11,8 +11,8 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
11
11
|
}), s = "focusScope.autoFocusOnMount", c = "focusScope.autoFocusOnUnmount", l = {
|
|
12
12
|
bubbles: !1,
|
|
13
13
|
cancelable: !0
|
|
14
|
-
}, u = /* @__PURE__ */
|
|
15
|
-
let { loop: m = !1, trapped: h = !1, onMountAutoFocus: g, onUnmountAutoFocus: y, ...b } = a, [S, C] =
|
|
14
|
+
}, u = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ o(function(a, u) {
|
|
15
|
+
let { loop: m = !1, trapped: h = !1, onMountAutoFocus: g, onUnmountAutoFocus: y, ...b } = a, [S, C] = i.useState(null), w = n(g), T = n(y), E = i.useRef(null), D = e(u, C), O = i.useRef({
|
|
16
16
|
paused: !1,
|
|
17
17
|
pause() {
|
|
18
18
|
this.paused = !0;
|
|
@@ -21,7 +21,7 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
21
21
|
this.paused = !1;
|
|
22
22
|
}
|
|
23
23
|
}).current;
|
|
24
|
-
|
|
24
|
+
i.useEffect(() => {
|
|
25
25
|
if (h) {
|
|
26
26
|
let e = function(e) {
|
|
27
27
|
if (O.paused || !S) return;
|
|
@@ -47,7 +47,7 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
47
47
|
h,
|
|
48
48
|
S,
|
|
49
49
|
O.paused
|
|
50
|
-
]),
|
|
50
|
+
]), i.useEffect(() => {
|
|
51
51
|
if (S) {
|
|
52
52
|
v.add(O);
|
|
53
53
|
let e = document.activeElement;
|
|
@@ -68,7 +68,7 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
68
68
|
T,
|
|
69
69
|
O
|
|
70
70
|
]);
|
|
71
|
-
let k =
|
|
71
|
+
let k = i.useCallback((e) => {
|
|
72
72
|
if (!m && !h || O.paused) return;
|
|
73
73
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
74
74
|
if (t && n) {
|
|
@@ -80,7 +80,7 @@ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
|
|
|
80
80
|
h,
|
|
81
81
|
O.paused
|
|
82
82
|
]);
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ r(t.div, {
|
|
84
84
|
tabIndex: -1,
|
|
85
85
|
...b,
|
|
86
86
|
ref: D,
|
package/dist/index7.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./index6.cjs");function t(e){if(e!=null)return e===`tight`?`-0.035em`:e===`normal`?`normal`:e===`wide`?`0.05em`:typeof e==`number`?`${e}px`:e}function n(n){let{customSize:r,color:i,lineHeight:a,lines:o,rows:s,ellipsis:c,textDecoration:l,textDecorationLine:u,textDecorationStyle:d,textDecorationColor:f,textDecorationThickness:p,textUnderlineOffset:m,margin:h,m:g,marginTop:_,mt:v,marginBottom:y,mb:b,marginLeft:x,ml:S,marginRight:C,mr:w,marginInline:T,mx:E,marginBlock:D,my:O,letterSpacing:k}=n,A=o??s??(typeof c==`object`?c.rows:void 0),j={};r!==void 0&&(j.fontSize=typeof r==`number`?`${r}px`:r),i!==void 0&&(j.color=i),a!==void 0&&(j.lineHeight=a);let M=h??g;M!==void 0&&(j.margin=e.resolveSpacing(M));let N=_??v;N!==void 0&&(j.marginTop=e.resolveSpacing(N));let P=y??b;P!==void 0&&(j.marginBottom=e.resolveSpacing(P));let F=x??S;F!==void 0&&(j.marginLeft=e.resolveSpacing(F));let I=C??w;I!==void 0&&(j.marginRight=e.resolveSpacing(I));let L=T??E;L!==void 0&&(j.marginInline=e.resolveSpacing(L));let R=D??O;return R!==void 0&&(j.marginBlock=e.resolveSpacing(R)),k!==void 0&&(j.letterSpacing=t(k)),A&&(j.display=`-webkit-box`,j.WebkitLineClamp=A,j.WebkitBoxOrient=`vertical`,j.overflow=`hidden`),l!==void 0&&(j.textDecoration=l),u!==void 0&&(j.textDecorationLine=u),d!==void 0&&(j.textDecorationStyle=d),f!==void 0&&(j.textDecorationColor=f),p!==void 0&&(j.textDecorationThickness=typeof p==`number`?`${p}px`:p),m!==void 0&&(j.textUnderlineOffset=typeof m==`number`?`${m}px`:m),j}exports.resolveCustomTypographyStyle=n,exports.resolveLetterSpacing=t;
|
package/dist/index7.js
CHANGED
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var i = {
|
|
6
|
-
deep: -999,
|
|
7
|
-
base: 0,
|
|
8
|
-
docked: 10,
|
|
9
|
-
sticky: 100,
|
|
10
|
-
banner: 200,
|
|
11
|
-
drawer: 500,
|
|
12
|
-
overlay: 500,
|
|
13
|
-
modal: 500,
|
|
14
|
-
popover: 600,
|
|
15
|
-
toast: 700,
|
|
16
|
-
tooltip: 800,
|
|
17
|
-
max: 9999
|
|
18
|
-
}, a = e(void 0);
|
|
19
|
-
function o(e, n) {
|
|
20
|
-
let r = n === void 0 ? 0 : n;
|
|
21
|
-
return (t(a) ?? (typeof e == "number" ? e : i[e])) + r;
|
|
1
|
+
import { resolveSpacing as e } from "./index6.js";
|
|
2
|
+
// src/Typography/utils.ts
|
|
3
|
+
function t(e) {
|
|
4
|
+
if (e != null) return e === "tight" ? "-0.035em" : e === "normal" ? "normal" : e === "wide" ? "0.05em" : typeof e == "number" ? `${e}px` : e;
|
|
22
5
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
function n(n) {
|
|
7
|
+
let { customSize: r, color: i, lineHeight: a, lines: o, rows: s, ellipsis: c, textDecoration: l, textDecorationLine: u, textDecorationStyle: d, textDecorationColor: f, textDecorationThickness: p, textUnderlineOffset: m, margin: h, m: g, marginTop: _, mt: v, marginBottom: y, mb: b, marginLeft: x, ml: S, marginRight: C, mr: w, marginInline: T, mx: E, marginBlock: D, my: O, letterSpacing: k } = n, A = o ?? s ?? (typeof c == "object" ? c.rows : void 0), j = {};
|
|
8
|
+
r !== void 0 && (j.fontSize = typeof r == "number" ? `${r}px` : r), i !== void 0 && (j.color = i), a !== void 0 && (j.lineHeight = a);
|
|
9
|
+
let M = h ?? g;
|
|
10
|
+
M !== void 0 && (j.margin = e(M));
|
|
11
|
+
let N = _ ?? v;
|
|
12
|
+
N !== void 0 && (j.marginTop = e(N));
|
|
13
|
+
let P = y ?? b;
|
|
14
|
+
P !== void 0 && (j.marginBottom = e(P));
|
|
15
|
+
let F = x ?? S;
|
|
16
|
+
F !== void 0 && (j.marginLeft = e(F));
|
|
17
|
+
let I = C ?? w;
|
|
18
|
+
I !== void 0 && (j.marginRight = e(I));
|
|
19
|
+
let L = T ?? E;
|
|
20
|
+
L !== void 0 && (j.marginInline = e(L));
|
|
21
|
+
let R = D ?? O;
|
|
22
|
+
return R !== void 0 && (j.marginBlock = e(R)), k !== void 0 && (j.letterSpacing = t(k)), A && (j.display = "-webkit-box", j.WebkitLineClamp = A, j.WebkitBoxOrient = "vertical", j.overflow = "hidden"), l !== void 0 && (j.textDecoration = l), u !== void 0 && (j.textDecorationLine = u), d !== void 0 && (j.textDecorationStyle = d), f !== void 0 && (j.textDecorationColor = f), p !== void 0 && (j.textDecorationThickness = typeof p == "number" ? `${p}px` : p), m !== void 0 && (j.textUnderlineOffset = typeof m == "number" ? `${m}px` : m), j;
|
|
29
23
|
}
|
|
30
|
-
export {
|
|
24
|
+
export { n as resolveCustomTypographyStyle, t as resolveLetterSpacing };
|
package/dist/index73.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});function o(e){let[n,i]=r.useState(void 0);return t.useLayoutEffect(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}i(void 0)},[e]),n}a(o,`useSize`),exports.useSize=o;
|
package/dist/index73.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useLayoutEffect as e } from "./
|
|
1
|
+
import { useLayoutEffect as e } from "./index39.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
// ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
4
|
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|