@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/index130.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ZIndexProvider as e, useZIndex as t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ZIndexProvider as e, useZIndex as t } from "./index8.js";
|
|
3
|
+
import { Text as n } from "./index14.js";
|
|
4
|
+
import { cn as r } from "./index46.js";
|
|
5
|
+
import { CheckboxItem as i, Content as a, Group as o, Item as s, ItemIndicator as c, Label as l, Menu as u, Portal as d, RadioGroup as f, RadioItem as p, Root as m, Separator as h, Sub as g, SubContent as _, SubTrigger as v, Trigger as y } from "./index129.js";
|
|
6
|
+
import * as b from "@stylexjs/stylex";
|
|
7
|
+
import { CheckIcon as x, ChevronRightIcon as S, CircleIcon as C } from "lucide-react";
|
|
8
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
5
9
|
import "react";
|
|
6
|
-
import
|
|
7
|
-
import { CheckIcon as b, ChevronRightIcon as x, CircleIcon as S } from "lucide-react";
|
|
8
|
-
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
9
|
-
import { c as T } from "react/compiler-runtime";
|
|
10
|
+
import { c as E } from "react/compiler-runtime";
|
|
10
11
|
// src/ui/menubar.tsx
|
|
11
|
-
var
|
|
12
|
+
var D = {
|
|
12
13
|
root: {
|
|
13
14
|
k1xSpc: "x78zum5",
|
|
14
15
|
kZKoxP: "xk8t5le",
|
|
@@ -148,79 +149,79 @@ var E = {
|
|
|
148
149
|
$$css: !0
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
|
-
function
|
|
152
|
-
let t =
|
|
153
|
-
t[0] === e ? (
|
|
152
|
+
function O(e) {
|
|
153
|
+
let t = E(16), n, i, a;
|
|
154
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({className: n, sx: a, ...i} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
154
155
|
let o, s, c, l;
|
|
155
|
-
if (t[4] !==
|
|
156
|
-
let e =
|
|
157
|
-
o =
|
|
156
|
+
if (t[4] !== n || t[5] !== a) {
|
|
157
|
+
let e = b.props(D.root, a);
|
|
158
|
+
o = m, s = "menubar", c = e, l = r(e.className, n), t[4] = n, t[5] = a, t[6] = o, t[7] = s, t[8] = c, t[9] = l;
|
|
158
159
|
} else o = t[6], s = t[7], c = t[8], l = t[9];
|
|
159
160
|
let u;
|
|
160
|
-
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */
|
|
161
|
+
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */ w(o, {
|
|
161
162
|
"data-slot": s,
|
|
162
163
|
...c,
|
|
163
164
|
className: l,
|
|
164
165
|
...i
|
|
165
166
|
}), t[10] = o, t[11] = i, t[12] = s, t[13] = c, t[14] = l, t[15] = u) : u = t[15], u;
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
let t =
|
|
168
|
+
function k(e) {
|
|
169
|
+
let t = E(4), n;
|
|
169
170
|
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
170
171
|
let r;
|
|
171
|
-
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */
|
|
172
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ w(u, {
|
|
172
173
|
"data-slot": "menubar-menu",
|
|
173
174
|
...n
|
|
174
175
|
}), t[2] = n, t[3] = r), r;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
-
let t =
|
|
177
|
+
function A(e) {
|
|
178
|
+
let t = E(4), n;
|
|
178
179
|
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
179
180
|
let r;
|
|
180
|
-
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */
|
|
181
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ w(o, {
|
|
181
182
|
"data-slot": "menubar-group",
|
|
182
183
|
...n
|
|
183
184
|
}), t[2] = n, t[3] = r), r;
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
-
let t =
|
|
186
|
+
function j(e) {
|
|
187
|
+
let t = E(4), n;
|
|
187
188
|
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
188
189
|
let r;
|
|
189
|
-
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */
|
|
190
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ w(d, {
|
|
190
191
|
"data-slot": "menubar-portal",
|
|
191
192
|
...n
|
|
192
193
|
}), t[2] = n, t[3] = r), r;
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
let t =
|
|
195
|
+
function M(e) {
|
|
196
|
+
let t = E(4), n;
|
|
196
197
|
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
197
198
|
let r;
|
|
198
|
-
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */
|
|
199
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ w(f, {
|
|
199
200
|
"data-slot": "menubar-radio-group",
|
|
200
201
|
...n
|
|
201
202
|
}), t[2] = n, t[3] = r), r;
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
-
let t =
|
|
205
|
-
t[0] === e ? (
|
|
204
|
+
function N(e) {
|
|
205
|
+
let t = E(16), n, i, a;
|
|
206
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({className: n, sx: a, ...i} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
206
207
|
let o, s, c, l;
|
|
207
|
-
if (t[4] !==
|
|
208
|
-
let e =
|
|
209
|
-
o =
|
|
208
|
+
if (t[4] !== n || t[5] !== a) {
|
|
209
|
+
let e = b.props(D.trigger, a);
|
|
210
|
+
o = y, s = "menubar-trigger", c = e, l = r(e.className, n), t[4] = n, t[5] = a, t[6] = o, t[7] = s, t[8] = c, t[9] = l;
|
|
210
211
|
} else o = t[6], s = t[7], c = t[8], l = t[9];
|
|
211
212
|
let u;
|
|
212
|
-
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */
|
|
213
|
+
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */ w(o, {
|
|
213
214
|
"data-slot": s,
|
|
214
215
|
...c,
|
|
215
216
|
className: l,
|
|
216
217
|
...i
|
|
217
218
|
}), t[10] = o, t[11] = i, t[12] = s, t[13] = c, t[14] = l, t[15] = u) : u = t[15], u;
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
-
let f = t("popover"), p =
|
|
221
|
-
return /* @__PURE__ */
|
|
220
|
+
function P({ className: n, align: i = "start", alignOffset: o = -4, sideOffset: s = 8, sx: c, style: l, children: u, ...d }) {
|
|
221
|
+
let f = t("popover"), p = b.props(D.content, c);
|
|
222
|
+
return /* @__PURE__ */ w(j, { children: /* @__PURE__ */ w(a, {
|
|
222
223
|
"data-slot": "menubar-content",
|
|
223
|
-
align:
|
|
224
|
+
align: i,
|
|
224
225
|
alignOffset: o,
|
|
225
226
|
sideOffset: s,
|
|
226
227
|
...p,
|
|
@@ -229,173 +230,176 @@ function N({ className: r, align: a = "start", alignOffset: o = -4, sideOffset:
|
|
|
229
230
|
...p.style,
|
|
230
231
|
...l
|
|
231
232
|
},
|
|
232
|
-
className:
|
|
233
|
+
className: r(p.className, n),
|
|
233
234
|
...d,
|
|
234
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ w(e, {
|
|
235
236
|
value: f + 10,
|
|
236
237
|
children: u
|
|
237
238
|
})
|
|
238
239
|
}) });
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
-
let
|
|
242
|
-
return /* @__PURE__ */
|
|
241
|
+
function F({ className: e, inset: t, variant: n = "default", sx: i, ...a }) {
|
|
242
|
+
let o = b.props(D.item, n === "destructive" ? D.itemDestructive : void 0, t ? D.itemInset : void 0, i);
|
|
243
|
+
return /* @__PURE__ */ w(s, {
|
|
243
244
|
"data-slot": "menubar-item",
|
|
244
245
|
"data-inset": t,
|
|
245
|
-
"data-variant":
|
|
246
|
-
...
|
|
247
|
-
className:
|
|
246
|
+
"data-variant": n,
|
|
247
|
+
...o,
|
|
248
|
+
className: r(o.className, e),
|
|
248
249
|
...a
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
-
let t =
|
|
253
|
-
t[0] === e ? (
|
|
252
|
+
function I(e) {
|
|
253
|
+
let t = E(23), n, a, o, s, l;
|
|
254
|
+
t[0] === e ? (n = t[1], a = t[2], o = t[3], s = t[4], l = t[5]) : ({className: o, children: a, checked: n, sx: l, ...s} = e, t[0] = e, t[1] = n, t[2] = a, t[3] = o, t[4] = s, t[5] = l);
|
|
254
255
|
let u, d, f, p, m;
|
|
255
|
-
if (t[6] !==
|
|
256
|
-
let e =
|
|
257
|
-
u =
|
|
256
|
+
if (t[6] !== n || t[7] !== o || t[8] !== l) {
|
|
257
|
+
let e = b.props(D.item, D.itemInset, l);
|
|
258
|
+
u = i, d = "menubar-checkbox-item", f = n, p = e, m = r(e.className, o), t[6] = n, t[7] = o, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p, t[13] = m;
|
|
258
259
|
} else u = t[9], d = t[10], f = t[11], p = t[12], m = t[13];
|
|
259
260
|
let h;
|
|
260
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */
|
|
261
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ w("span", {
|
|
261
262
|
className: "x47corl x10l6tqk x1lr0wgl x78zum5 x1xvt488 xf08kfj x6s0dn4 xl56j7k",
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ w(c, { children: /* @__PURE__ */ w(x, { className: "xcdlrvm x1l36t39" }) })
|
|
263
264
|
}), t[14] = h) : h = t[14];
|
|
264
265
|
let g;
|
|
265
|
-
return t[15] !== u || t[16] !== a || t[17] !==
|
|
266
|
+
return t[15] !== u || t[16] !== a || t[17] !== s || t[18] !== d || t[19] !== f || t[20] !== p || t[21] !== m ? (g = /* @__PURE__ */ T(u, {
|
|
266
267
|
"data-slot": d,
|
|
267
268
|
checked: f,
|
|
268
269
|
...p,
|
|
269
270
|
className: m,
|
|
270
|
-
...
|
|
271
|
+
...s,
|
|
271
272
|
children: [h, a]
|
|
272
|
-
}), t[15] = u, t[16] = a, t[17] =
|
|
273
|
+
}), t[15] = u, t[16] = a, t[17] = s, t[18] = d, t[19] = f, t[20] = p, t[21] = m, t[22] = g) : g = t[22], g;
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
-
let t =
|
|
276
|
-
t[0] === e ? (
|
|
277
|
-
let
|
|
275
|
+
function L(e) {
|
|
276
|
+
let t = E(19), n, i, a, o;
|
|
277
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4]) : ({className: i, children: n, sx: o, ...a} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o);
|
|
278
|
+
let s, l, u, d;
|
|
278
279
|
if (t[5] !== i || t[6] !== o) {
|
|
279
|
-
let e =
|
|
280
|
-
|
|
281
|
-
} else
|
|
282
|
-
let
|
|
283
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
280
|
+
let e = b.props(D.item, D.itemInset, o);
|
|
281
|
+
s = p, l = "menubar-radio-item", u = e, d = r(e.className, i), t[5] = i, t[6] = o, t[7] = s, t[8] = l, t[9] = u, t[10] = d;
|
|
282
|
+
} else s = t[7], l = t[8], u = t[9], d = t[10];
|
|
283
|
+
let f;
|
|
284
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ w("span", {
|
|
284
285
|
className: "x47corl x10l6tqk x1lr0wgl x78zum5 x1xvt488 xf08kfj x6s0dn4 xl56j7k",
|
|
285
|
-
children: /* @__PURE__ */
|
|
286
|
-
}), t[11] =
|
|
286
|
+
children: /* @__PURE__ */ w(c, { children: /* @__PURE__ */ w(C, { className: "x1jjc1wv x164u9eo x117rol3" }) })
|
|
287
|
+
}), t[11] = f) : f = t[11];
|
|
287
288
|
let m;
|
|
288
|
-
return t[12] !==
|
|
289
|
+
return t[12] !== s || t[13] !== n || t[14] !== a || t[15] !== l || t[16] !== u || t[17] !== d ? (m = /* @__PURE__ */ T(s, {
|
|
289
290
|
"data-slot": l,
|
|
290
291
|
...u,
|
|
291
292
|
className: d,
|
|
292
293
|
...a,
|
|
293
|
-
children: [
|
|
294
|
-
}), t[12] =
|
|
294
|
+
children: [f, n]
|
|
295
|
+
}), t[12] = s, t[13] = n, t[14] = a, t[15] = l, t[16] = u, t[17] = d, t[18] = m) : m = t[18], m;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
let t =
|
|
298
|
-
t[0] === e ? (
|
|
299
|
-
let s,
|
|
300
|
-
if (t[5] !==
|
|
301
|
-
let e =
|
|
302
|
-
s =
|
|
303
|
-
} else s = t[8],
|
|
297
|
+
function R(e) {
|
|
298
|
+
let t = E(20), n, i, a, o;
|
|
299
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4]) : ({className: n, inset: i, sx: o, ...a} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o);
|
|
300
|
+
let s, c, u, d, f;
|
|
301
|
+
if (t[5] !== n || t[6] !== i || t[7] !== o) {
|
|
302
|
+
let e = b.props(D.label, i ? D.itemInset : void 0, o);
|
|
303
|
+
s = l, c = "menubar-label", u = i, d = e, f = r(e.className, n), t[5] = n, t[6] = i, t[7] = o, t[8] = s, t[9] = c, t[10] = u, t[11] = d, t[12] = f;
|
|
304
|
+
} else s = t[8], c = t[9], u = t[10], d = t[11], f = t[12];
|
|
304
305
|
let p;
|
|
305
|
-
return t[13] !== s || t[14] !== a || t[15] !==
|
|
306
|
-
"data-slot":
|
|
306
|
+
return t[13] !== s || t[14] !== a || t[15] !== c || t[16] !== u || t[17] !== d || t[18] !== f ? (p = /* @__PURE__ */ w(s, {
|
|
307
|
+
"data-slot": c,
|
|
307
308
|
"data-inset": u,
|
|
308
309
|
...d,
|
|
309
310
|
className: f,
|
|
310
311
|
...a
|
|
311
|
-
}), t[13] = s, t[14] = a, t[15] =
|
|
312
|
+
}), t[13] = s, t[14] = a, t[15] = c, t[16] = u, t[17] = d, t[18] = f, t[19] = p) : p = t[19], p;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
-
let t =
|
|
315
|
-
t[0] === e ? (
|
|
314
|
+
function z(e) {
|
|
315
|
+
let t = E(16), n, i, a;
|
|
316
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({className: n, sx: a, ...i} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
316
317
|
let o, s, c, l;
|
|
317
|
-
if (t[4] !==
|
|
318
|
-
let e =
|
|
319
|
-
o =
|
|
318
|
+
if (t[4] !== n || t[5] !== a) {
|
|
319
|
+
let e = b.props(D.separator, a);
|
|
320
|
+
o = h, s = "menubar-separator", c = e, l = r(e.className, n), t[4] = n, t[5] = a, t[6] = o, t[7] = s, t[8] = c, t[9] = l;
|
|
320
321
|
} else o = t[6], s = t[7], c = t[8], l = t[9];
|
|
321
322
|
let u;
|
|
322
|
-
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */
|
|
323
|
+
return t[10] !== o || t[11] !== i || t[12] !== s || t[13] !== c || t[14] !== l ? (u = /* @__PURE__ */ w(o, {
|
|
323
324
|
"data-slot": s,
|
|
324
325
|
...c,
|
|
325
326
|
className: l,
|
|
326
327
|
...i
|
|
327
328
|
}), t[10] = o, t[11] = i, t[12] = s, t[13] = c, t[14] = l, t[15] = u) : u = t[15], u;
|
|
328
329
|
}
|
|
329
|
-
function z(e) {
|
|
330
|
-
let t = T(14), r, i, a;
|
|
331
|
-
t[0] === e ? (r = t[1], i = t[2], a = t[3]) : ({className: r, sx: a, ...i} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a);
|
|
332
|
-
let o, s, c;
|
|
333
|
-
if (t[4] !== r || t[5] !== a) {
|
|
334
|
-
let e = y.props(E.shortcut, a);
|
|
335
|
-
o = "menubar-shortcut", s = e, c = n(e.className, r), t[4] = r, t[5] = a, t[6] = o, t[7] = s, t[8] = c;
|
|
336
|
-
} else o = t[6], s = t[7], c = t[8];
|
|
337
|
-
let l;
|
|
338
|
-
return t[9] !== i || t[10] !== o || t[11] !== s || t[12] !== c ? (l = /* @__PURE__ */ C("span", {
|
|
339
|
-
"data-slot": o,
|
|
340
|
-
...s,
|
|
341
|
-
className: c,
|
|
342
|
-
...i
|
|
343
|
-
}), t[9] = i, t[10] = o, t[11] = s, t[12] = c, t[13] = l) : l = t[13], l;
|
|
344
|
-
}
|
|
345
330
|
function B(e) {
|
|
346
|
-
let t =
|
|
331
|
+
let t = E(22), i, a, o;
|
|
332
|
+
t[0] === e ? (i = t[1], a = t[2], o = t[3]) : ({className: i, sx: o, ...a} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o);
|
|
333
|
+
let s, c, l, u, d, f, p;
|
|
334
|
+
if (t[4] !== i || t[5] !== o) {
|
|
335
|
+
let e = b.props(D.shortcut, o);
|
|
336
|
+
s = n, c = "span", l = "menubar-shortcut", u = "xs", d = "secondary", f = e, p = r(e.className, i), t[4] = i, t[5] = o, t[6] = s, t[7] = c, t[8] = l, t[9] = u, t[10] = d, t[11] = f, t[12] = p;
|
|
337
|
+
} else s = t[6], c = t[7], l = t[8], u = t[9], d = t[10], f = t[11], p = t[12];
|
|
338
|
+
let m;
|
|
339
|
+
return t[13] !== s || t[14] !== a || t[15] !== c || t[16] !== l || t[17] !== u || t[18] !== d || t[19] !== f || t[20] !== p ? (m = /* @__PURE__ */ w(s, {
|
|
340
|
+
as: c,
|
|
341
|
+
"data-slot": l,
|
|
342
|
+
size: u,
|
|
343
|
+
type: d,
|
|
344
|
+
...f,
|
|
345
|
+
className: p,
|
|
346
|
+
...a
|
|
347
|
+
}), t[13] = s, t[14] = a, t[15] = c, t[16] = l, t[17] = u, t[18] = d, t[19] = f, t[20] = p, t[21] = m) : m = t[21], m;
|
|
348
|
+
}
|
|
349
|
+
function V(e) {
|
|
350
|
+
let t = E(4), n;
|
|
347
351
|
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
348
352
|
let r;
|
|
349
|
-
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */
|
|
353
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ w(g, {
|
|
350
354
|
"data-slot": "menubar-sub",
|
|
351
355
|
...n
|
|
352
356
|
}), t[2] = n, t[3] = r), r;
|
|
353
357
|
}
|
|
354
|
-
function
|
|
355
|
-
let t =
|
|
356
|
-
t[0] === e ? (
|
|
358
|
+
function H(e) {
|
|
359
|
+
let t = E(23), n, i, a, o, s;
|
|
360
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5]) : ({className: i, inset: a, children: n, sx: s, ...o} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s);
|
|
357
361
|
let c, l, u, d, f;
|
|
358
362
|
if (t[6] !== i || t[7] !== a || t[8] !== s) {
|
|
359
|
-
let e =
|
|
360
|
-
c =
|
|
363
|
+
let e = b.props(D.subTrigger, a ? D.itemInset : void 0, s);
|
|
364
|
+
c = v, l = "menubar-sub-trigger", u = a, d = e, f = r(e.className, i), t[6] = i, t[7] = a, t[8] = s, t[9] = c, t[10] = l, t[11] = u, t[12] = d, t[13] = f;
|
|
361
365
|
} else c = t[9], l = t[10], u = t[11], d = t[12], f = t[13];
|
|
362
366
|
let p;
|
|
363
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */
|
|
367
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ w(S, { className: "x8x9d4c xcdlrvm x1l36t39" }), t[14] = p) : p = t[14];
|
|
364
368
|
let m;
|
|
365
|
-
return t[15] !== c || t[16] !==
|
|
369
|
+
return t[15] !== c || t[16] !== n || t[17] !== o || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f ? (m = /* @__PURE__ */ T(c, {
|
|
366
370
|
"data-slot": l,
|
|
367
371
|
"data-inset": u,
|
|
368
372
|
...d,
|
|
369
373
|
className: f,
|
|
370
374
|
...o,
|
|
371
|
-
children: [
|
|
372
|
-
}), t[15] = c, t[16] =
|
|
375
|
+
children: [n, p]
|
|
376
|
+
}), t[15] = c, t[16] = n, t[17] = o, t[18] = l, t[19] = u, t[20] = d, t[21] = f, t[22] = m) : m = t[22], m;
|
|
373
377
|
}
|
|
374
|
-
function
|
|
375
|
-
let i =
|
|
376
|
-
i[0] ===
|
|
378
|
+
function U(n) {
|
|
379
|
+
let i = E(26), a, o, s, c, l;
|
|
380
|
+
i[0] === n ? (a = i[1], o = i[2], s = i[3], c = i[4], l = i[5]) : ({className: o, sx: l, style: c, children: a, ...s} = n, i[0] = n, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l);
|
|
377
381
|
let u = t("popover", 1), d, f, p, m, h;
|
|
378
382
|
if (i[6] !== o || i[7] !== c || i[8] !== l || i[9] !== u) {
|
|
379
|
-
let e =
|
|
380
|
-
d =
|
|
383
|
+
let e = b.props(D.subContent, l);
|
|
384
|
+
d = _, f = "menubar-sub-content", p = e, m = {
|
|
381
385
|
zIndex: u,
|
|
382
386
|
...e.style,
|
|
383
387
|
...c
|
|
384
|
-
}, h =
|
|
388
|
+
}, h = r(e.className, o), i[6] = o, i[7] = c, i[8] = l, i[9] = u, i[10] = d, i[11] = f, i[12] = p, i[13] = m, i[14] = h;
|
|
385
389
|
} else d = i[10], f = i[11], p = i[12], m = i[13], h = i[14];
|
|
386
|
-
let
|
|
387
|
-
i[15] !== a || i[16] !==
|
|
388
|
-
value:
|
|
390
|
+
let g = u + 10, v;
|
|
391
|
+
i[15] !== a || i[16] !== g ? (v = /* @__PURE__ */ w(e, {
|
|
392
|
+
value: g,
|
|
389
393
|
children: a
|
|
390
|
-
}), i[15] = a, i[16] =
|
|
391
|
-
let
|
|
392
|
-
return i[18] !== d || i[19] !== s || i[20] !== f || i[21] !== p || i[22] !== m || i[23] !== h || i[24] !== v ? (
|
|
394
|
+
}), i[15] = a, i[16] = g, i[17] = v) : v = i[17];
|
|
395
|
+
let y;
|
|
396
|
+
return i[18] !== d || i[19] !== s || i[20] !== f || i[21] !== p || i[22] !== m || i[23] !== h || i[24] !== v ? (y = /* @__PURE__ */ w(d, {
|
|
393
397
|
"data-slot": f,
|
|
394
398
|
...p,
|
|
395
399
|
style: m,
|
|
396
400
|
className: h,
|
|
397
401
|
...s,
|
|
398
402
|
children: v
|
|
399
|
-
}), i[18] = d, i[19] = s, i[20] = f, i[21] = p, i[22] = m, i[23] = h, i[24] = v, i[25] =
|
|
403
|
+
}), i[18] = d, i[19] = s, i[20] = f, i[21] = p, i[22] = m, i[23] = h, i[24] = v, i[25] = y) : y = i[25], y;
|
|
400
404
|
}
|
|
401
|
-
export {
|
|
405
|
+
export { O as Menubar, I as MenubarCheckboxItem, P as MenubarContent, A as MenubarGroup, F as MenubarItem, R as MenubarLabel, k as MenubarMenu, j as MenubarPortal, M as MenubarRadioGroup, L as MenubarRadioItem, z as MenubarSeparator, B as MenubarShortcut, V as MenubarSub, U as MenubarSubContent, H as MenubarSubTrigger, N as MenubarTrigger };
|
package/dist/index132.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index35.cjs");let n=require("react/jsx-runtime"),r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),c=i.forwardRef(o(function(e,r){return(0,n.jsx)(t.Primitive.span,{...e,ref:r,style:{...s,...e.style}})},`VisuallyHidden`)),l=c;exports.Root=l,exports.VISUALLY_HIDDEN_STYLES=s,exports.VisuallyHidden=c;
|
package/dist/index132.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Primitive as e } from "./
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Primitive as e } from "./index35.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
4
|
// ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.11_@types+react-dom@19.3.0_@types+react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
5
5
|
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
6
|
value: t,
|
|
@@ -16,13 +16,13 @@ var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
|
16
16
|
clip: "rect(0, 0, 0, 0)",
|
|
17
17
|
whiteSpace: "nowrap",
|
|
18
18
|
wordWrap: "normal"
|
|
19
|
-
}), o = /* @__PURE__ */
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
...
|
|
19
|
+
}), o = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ i(function(n, r) {
|
|
20
|
+
return /* @__PURE__ */ t(e.span, {
|
|
21
|
+
...n,
|
|
22
22
|
ref: r,
|
|
23
23
|
style: {
|
|
24
24
|
...a,
|
|
25
|
-
...
|
|
25
|
+
...n.style
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}, "VisuallyHidden")), s = o;
|
package/dist/index133.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index29.cjs"),n=require("./index30.cjs"),r=require("./index31.cjs"),i=require("./index34.cjs"),a=require("./index37.cjs"),o=require("./index38.cjs"),s=require("./index56.cjs"),c=require("./index57.cjs"),l=require("./index58.cjs"),u=require("./index64.cjs"),d=require("./index65.cjs"),f=require("./index131.cjs"),p=require("./index132.cjs");let m=require("react"),h=e.__toESM(m,1);m=e.__toESM(m);let g=require("react/jsx-runtime"),_=require("react-dom");_=e.__toESM(_,1);let v=require("@radix-ui/react-direction");var y=Object.defineProperty,b=(e,t)=>y(e,`name`,{value:t,configurable:!0}),x=`NavigationMenu`,[S,C,w]=u.createCollection(x),[T,ee,E]=u.createCollection(x),[D,O]=t.createContextScope(x,[w,E]),[k,A]=D(x),[te,ne]=D(x),re=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:r,value:a,onValueChange:o,defaultValue:c,delayDuration:l=200,skipDelayDuration:u=300,orientation:d=`horizontal`,dir:f,...p}=e,[m,_]=h.useState(null),y=n.useComposedRefs(t,_),S=(0,v.useDirection)(f),C=h.useRef(0),w=h.useRef(0),T=h.useRef(0),[ee,E]=h.useState(!0),[D,O]=s.useControllableState({prop:a,onChange:b(e=>{let t=e!==``,n=u>0;t?(window.clearTimeout(T.current),n&&E(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>E(!0),u)),o?.(e)},`onChange`),defaultProp:c??``,caller:x}),k=h.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>O(``),150)},[O]),A=h.useCallback(e=>{window.clearTimeout(w.current),O(e)},[O]),te=h.useCallback(e=>{D===e?window.clearTimeout(w.current):C.current=window.setTimeout(()=>{window.clearTimeout(w.current),O(e)},l)},[D,O,l]);return h.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(w.current),window.clearTimeout(T.current)},[]),(0,g.jsx)(ie,{scope:r,isRootMenu:!0,value:D,dir:S,orientation:d,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(C.current),ee?te(e):A(e)},onTriggerLeave:()=>{window.clearTimeout(C.current),k()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:k,onItemSelect:e=>{O(t=>t===e?``:e)},onItemDismiss:()=>O(``),children:(0,g.jsx)(i.Primitive.nav,{"aria-label":`Main`,"data-orientation":d,dir:S,...p,ref:y})})},`NavigationMenu`)),ie=b(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:o,children:s,value:c,onItemSelect:u,onItemDismiss:d,onTriggerEnter:p,onTriggerLeave:m,onContentEnter:_,onContentLeave:v}=e,[y,b]=h.useState(null),[x,C]=h.useState(new Map),[w,T]=h.useState(null);return(0,g.jsx)(k,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:c,previousValue:f.usePrevious(c),baseId:l.useId(),dir:i,orientation:o,viewport:y,onViewportChange:b,indicatorTrack:w,onIndicatorTrackChange:T,onTriggerEnter:a.useCallbackRef(p),onTriggerLeave:a.useCallbackRef(m),onContentEnter:a.useCallbackRef(_),onContentLeave:a.useCallbackRef(v),onItemSelect:a.useCallbackRef(u),onItemDismiss:a.useCallbackRef(d),onViewportContentChange:h.useCallback((e,t)=>{C(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:h.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,g.jsx)(S.Provider,{scope:t,children:(0,g.jsx)(te,{scope:t,items:x,children:s})})})},`NavigationMenuProvider`),ae=`NavigationMenuList`,j=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(ae,n),o=(0,g.jsx)(i.Primitive.ul,{"data-orientation":a.orientation,...r,ref:t});return(0,g.jsx)(i.Primitive.div,{style:{position:`relative`},ref:a.onIndicatorTrackChange,children:(0,g.jsx)(S.Slot,{scope:n,children:a.isRootMenu?(0,g.jsx)(K,{asChild:!0,children:o}):o})})},`NavigationMenuList`)),[oe,M]=D(`NavigationMenuItem`),N=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,value:r,...a}=e,o=l.useId(),s=r||o||`LEGACY_REACT_AUTO_VALUE`,c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(()=>{}),p=h.useRef(!1),m=h.useCallback((e=`start`)=>{if(c.current){f.current();let t=q(c.current);t.length&&J(e===`start`?t:t.reverse())}},[]),_=h.useCallback(()=>{if(c.current){let e=q(c.current);e.length&&(f.current=he(e))}},[]);return(0,g.jsx)(oe,{scope:n,value:s,triggerRef:u,contentRef:c,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:_,onContentFocusOutside:_,children:(0,g.jsx)(i.Primitive.li,{...a,ref:t})})},`NavigationMenuItem`)),P=`NavigationMenuTrigger`,F=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:a,disabled:o,...s}=e,c=A(P,e.__scopeNavigationMenu),l=M(P,e.__scopeNavigationMenu),u=h.useRef(null),d=n.useComposedRefs(u,l.triggerRef,t),f=Z(c.baseId,l.value),m=Q(c.baseId,l.value),_=h.useRef(!1),v=h.useRef(!1),y=l.value===c.value;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.ItemSlot,{scope:a,value:l.value,children:(0,g.jsx)(me,{asChild:!0,children:(0,g.jsx)(i.Primitive.button,{id:f,disabled:o,"data-disabled":o?``:void 0,"data-state":X(y),"aria-expanded":y,"aria-controls":y?m:void 0,...s,ref:d,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,()=>{v.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:r.composeEventHandlers(e.onPointerMove,$(()=>{o||v.current||l.wasEscapeCloseRef.current||_.current||(c.onTriggerEnter(l.value),_.current=!0)})),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(()=>{o||(c.onTriggerLeave(),_.current=!1)})),onClick:r.composeEventHandlers(e.onClick,()=>{c.onItemSelect(l.value),v.current=y}),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{let t={horizontal:`ArrowDown`,vertical:c.dir===`rtl`?`ArrowLeft`:`ArrowRight`}[c.orientation];y&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(p.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,r=n===u.current,i=t?.contains(n);(r||!i)&&l.onFocusProxyEnter(r?`start`:`end`)}}),c.viewport&&(0,g.jsx)(`span`,{"aria-owns":m})]})]})},`NavigationMenuTrigger`)),I=`navigationMenu.linkSelect`,L=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,active:a,onSelect:o,...s}=e;return(0,g.jsx)(me,{asChild:!0,children:(0,g.jsx)(i.Primitive.a,{"data-active":a?``:void 0,"aria-current":a?`page`:void 0,...s,ref:t,onClick:r.composeEventHandlers(e.onClick,e=>{let t=e.target,n=new CustomEvent(I,{bubbles:!0,cancelable:!0});if(t.addEventListener(I,e=>o?.(e),{once:!0}),i.dispatchDiscreteCustomEvent(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(H,{bubbles:!0,cancelable:!0});i.dispatchDiscreteCustomEvent(t,e)}},{checkForDefaultPrevented:!1})})})},`NavigationMenuLink`)),R=`NavigationMenuIndicator`,z=h.forwardRef(b(function(e,t){let{forceMount:n,...r}=e,i=A(R,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?_.createPortal((0,g.jsx)(c.Presence,{present:n||a,children:(0,g.jsx)(se,{...r,ref:t})}),i.indicatorTrack):null},`NavigationMenuIndicator`)),se=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(R,n),o=C(n),[s,c]=h.useState(null),[l,u]=h.useState(null),d=a.orientation===`horizontal`,f=!!a.value;h.useEffect(()=>{let e=o().find(e=>e.value===a.value)?.ref.current;e&&c(e)},[o,a.value]);let p=b(()=>{s&&u({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})},`handlePositionChange`);return Y(s,p),Y(a.indicatorTrack,p),l?(0,g.jsx)(i.Primitive.div,{"aria-hidden":!0,"data-state":f?`visible`:`hidden`,"data-orientation":a.orientation,...r,ref:t,style:{position:`absolute`,...d?{left:0,width:l.size+`px`,transform:`translateX(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-x":`${l.offset}px`}:{top:0,height:l.size+`px`,transform:`translateY(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-y":`${l.offset}px`},...r.style}}):null},`NavigationMenuIndicatorImpl`)),B=`NavigationMenuContent`,V=h.forwardRef(b(function(e,t){let{forceMount:i,...a}=e,o=A(B,e.__scopeNavigationMenu),s=M(B,e.__scopeNavigationMenu),l=n.useComposedRefs(s.contentRef,t),u=s.value===o.value,d={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...a};return o.viewport?(0,g.jsx)(ce,{forceMount:i,...d,ref:l}):(0,g.jsx)(c.Presence,{present:i||u,children:(0,g.jsx)(U,{"data-state":X(u),...d,ref:l,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,o.onContentEnter),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?`none`:void 0,...d.style}})})},`NavigationMenuContent`)),ce=h.forwardRef(b(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=A(B,e.__scopeNavigationMenu);return o.useLayoutEffect(()=>{n(e.value,{ref:t,...e})},[e,t,n]),o.useLayoutEffect(()=>()=>r(e.value),[e.value,r]),null},`ViewportContentMounter`)),H=`navigationMenu.rootContentDismiss`,U=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:i,value:a,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:u,...f}=e,p=A(B,i),m=h.useRef(null),_=n.useComposedRefs(m,t),v=Z(p.baseId,a),y=Q(p.baseId,a),x=C(i),S=h.useRef(null),{onItemDismiss:w}=p;h.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=b(()=>{w(),l(),e.contains(document.activeElement)&&o.current?.focus()},`handleClose`);return e.addEventListener(H,t),()=>e.removeEventListener(H,t)}},[p.isRootMenu,e.value,o,w,l]);let T=h.useMemo(()=>{let e=x().map(e=>e.value);p.dir===`rtl`&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=a===p.value,i=n===e.indexOf(a);if(!r&&!i)return S.current;let o=(()=>{if(t!==n){if(r&&n!==-1)return t>n?`from-end`:`from-start`;if(i&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return S.current=o,o},[p.previousValue,p.value,p.dir,x,a]);return(0,g.jsx)(K,{asChild:!0,children:(0,g.jsx)(d.DismissableLayer,{id:y,"aria-labelledby":v,"data-motion":T,"data-orientation":p.orientation,...f,ref:_,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(H,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:r.composeEventHandlers(e.onFocusOutside,e=>{u();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:r.composeEventHandlers(e.onPointerDownOutside,e=>{let t=e.target,n=x().some(e=>e.ref.current?.contains(t)),r=p.isRootMenu&&p.viewport?.contains(t);(n||r||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!t){let t=q(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);J(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:r.composeEventHandlers(e.onEscapeKeyDown,e=>{c.current=!0})})})},`NavigationMenuContentImpl`)),W=`NavigationMenuViewport`,G=h.forwardRef(b(function(e,t){let{forceMount:n,...r}=e,i=!!A(W,e.__scopeNavigationMenu).value;return(0,g.jsx)(c.Presence,{present:n||i,children:(0,g.jsx)(le,{...r,ref:t})})},`NavigationMenuViewport`)),le=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:a,children:o,...s}=e,l=A(W,a),u=n.useComposedRefs(t,l.onViewportChange),d=ne(B,e.__scopeNavigationMenu),[f,p]=h.useState(null),[m,_]=h.useState(null),v=f?f?.width+`px`:void 0,y=f?f?.height+`px`:void 0,x=!!l.value,S=x?l.value:l.previousValue;return Y(m,b(()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})},`handleSizeChange`)),(0,g.jsx)(i.Primitive.div,{"data-state":X(x),"data-orientation":l.orientation,...s,ref:u,style:{pointerEvents:!x&&l.isRootMenu?`none`:void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":y,...s.style},onPointerEnter:r.composeEventHandlers(e.onPointerEnter,l.onContentEnter),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(l.onContentLeave)),children:Array.from(d.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=S===e;return(0,g.jsx)(c.Presence,{present:n||i,children:(0,g.jsx)(ue,{...r,contentRef:t,isActive:i,onActiveContentChange:_})},e)})})},`NavigationMenuViewportImpl`)),ue=b(({contentRef:e,isActive:t,onActiveContentChange:r,...i})=>{let a=h.useCallback(e=>{t&&e&&r(e)},[t,r]),o=n.useComposedRefs(e,a);return(0,g.jsx)(U,{...i,ref:o})},`NavigationMenuViewportItem`),de=`FocusGroup`,K=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(de,n);return(0,g.jsx)(T.Provider,{scope:n,children:(0,g.jsx)(T.Slot,{scope:n,children:(0,g.jsx)(i.Primitive.div,{dir:a.dir,...r,ref:t})})})},`FocusGroup`)),fe=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`],pe=`FocusGroupItem`,me=h.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...a}=e,o=ee(n),s=A(pe,n);return(0,g.jsx)(T.ItemSlot,{scope:n,children:(0,g.jsx)(i.Primitive.button,{...a,ref:t,onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{if([`Home`,`End`,...fe].includes(e.key)){let t=o().map(e=>e.ref.current);if([s.dir===`rtl`?`ArrowRight`:`ArrowLeft`,`ArrowUp`,`End`].includes(e.key)&&t.reverse(),fe.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>J(t)),e.preventDefault()}})})})},`FocusGroupItem`));function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:b(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}b(q,`getTabbableCandidates`);function J(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}b(J,`focusFirst`);function he(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}b(he,`removeFromTabOrder`);function Y(e,t){let n=a.useCallbackRef(t);o.useLayoutEffect(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}b(Y,`useResizeObserver`);function X(e){return e?`open`:`closed`}b(X,`getOpenState`);function Z(e,t){return`${e}-trigger-${t}`}b(Z,`makeTriggerId`);function Q(e,t){return`${e}-content-${t}`}b(Q,`makeContentId`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}b($,`whenMouse`);var ge=re,_e=j,ve=N,ye=F,be=L,xe=z,Se=V,Ce=G;exports.Content=Se,exports.Indicator=xe,exports.Item=ve,exports.Link=be,exports.List=_e,exports.NavigationMenu=re,exports.NavigationMenuContent=V,exports.NavigationMenuIndicator=z,exports.NavigationMenuItem=N,exports.NavigationMenuLink=L,exports.NavigationMenuList=j,exports.NavigationMenuTrigger=F,exports.NavigationMenuViewport=G,exports.Root=ge,exports.Trigger=ye,exports.Viewport=Ce;
|
|
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("./index38.cjs"),o=require("./index39.cjs"),s=require("./index57.cjs"),c=require("./index58.cjs"),l=require("./index59.cjs"),u=require("./index64.cjs"),d=require("./index65.cjs"),f=require("./index131.cjs"),p=require("./index132.cjs");let m=require("react/jsx-runtime"),h=require("react"),g=e.__toESM(h,1);h=e.__toESM(h);let _=require("react-dom");_=e.__toESM(_,1);let v=require("@radix-ui/react-direction");var y=Object.defineProperty,b=(e,t)=>y(e,`name`,{value:t,configurable:!0}),x=`NavigationMenu`,[S,C,w]=u.createCollection(x),[T,ee,E]=u.createCollection(x),[D,O]=t.createContextScope(x,[w,E]),[k,A]=D(x),[te,ne]=D(x),re=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:r,value:a,onValueChange:o,defaultValue:c,delayDuration:l=200,skipDelayDuration:u=300,orientation:d=`horizontal`,dir:f,...p}=e,[h,_]=g.useState(null),y=n.useComposedRefs(t,_),S=(0,v.useDirection)(f),C=g.useRef(0),w=g.useRef(0),T=g.useRef(0),[ee,E]=g.useState(!0),[D,O]=s.useControllableState({prop:a,onChange:b(e=>{let t=e!==``,n=u>0;t?(window.clearTimeout(T.current),n&&E(!1)):(window.clearTimeout(T.current),T.current=window.setTimeout(()=>E(!0),u)),o?.(e)},`onChange`),defaultProp:c??``,caller:x}),k=g.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>O(``),150)},[O]),A=g.useCallback(e=>{window.clearTimeout(w.current),O(e)},[O]),te=g.useCallback(e=>{D===e?window.clearTimeout(w.current):C.current=window.setTimeout(()=>{window.clearTimeout(w.current),O(e)},l)},[D,O,l]);return g.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(w.current),window.clearTimeout(T.current)},[]),(0,m.jsx)(ie,{scope:r,isRootMenu:!0,value:D,dir:S,orientation:d,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(C.current),ee?te(e):A(e)},onTriggerLeave:()=>{window.clearTimeout(C.current),k()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:k,onItemSelect:e=>{O(t=>t===e?``:e)},onItemDismiss:()=>O(``),children:(0,m.jsx)(i.Primitive.nav,{"aria-label":`Main`,"data-orientation":d,dir:S,...p,ref:y})})},`NavigationMenu`)),ie=b(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:o,children:s,value:c,onItemSelect:u,onItemDismiss:d,onTriggerEnter:p,onTriggerLeave:h,onContentEnter:_,onContentLeave:v}=e,[y,b]=g.useState(null),[x,C]=g.useState(new Map),[w,T]=g.useState(null);return(0,m.jsx)(k,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:c,previousValue:f.usePrevious(c),baseId:l.useId(),dir:i,orientation:o,viewport:y,onViewportChange:b,indicatorTrack:w,onIndicatorTrackChange:T,onTriggerEnter:a.useCallbackRef(p),onTriggerLeave:a.useCallbackRef(h),onContentEnter:a.useCallbackRef(_),onContentLeave:a.useCallbackRef(v),onItemSelect:a.useCallbackRef(u),onItemDismiss:a.useCallbackRef(d),onViewportContentChange:g.useCallback((e,t)=>{C(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:g.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,m.jsx)(S.Provider,{scope:t,children:(0,m.jsx)(te,{scope:t,items:x,children:s})})})},`NavigationMenuProvider`),ae=`NavigationMenuList`,j=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(ae,n),o=(0,m.jsx)(i.Primitive.ul,{"data-orientation":a.orientation,...r,ref:t});return(0,m.jsx)(i.Primitive.div,{style:{position:`relative`},ref:a.onIndicatorTrackChange,children:(0,m.jsx)(S.Slot,{scope:n,children:a.isRootMenu?(0,m.jsx)(K,{asChild:!0,children:o}):o})})},`NavigationMenuList`)),[oe,M]=D(`NavigationMenuItem`),N=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,value:r,...a}=e,o=l.useId(),s=r||o||`LEGACY_REACT_AUTO_VALUE`,c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=g.useRef(()=>{}),p=g.useRef(!1),h=g.useCallback((e=`start`)=>{if(c.current){f.current();let t=q(c.current);t.length&&J(e===`start`?t:t.reverse())}},[]),_=g.useCallback(()=>{if(c.current){let e=q(c.current);e.length&&(f.current=he(e))}},[]);return(0,m.jsx)(oe,{scope:n,value:s,triggerRef:u,contentRef:c,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:_,onContentFocusOutside:_,children:(0,m.jsx)(i.Primitive.li,{...a,ref:t})})},`NavigationMenuItem`)),P=`NavigationMenuTrigger`,F=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:a,disabled:o,...s}=e,c=A(P,e.__scopeNavigationMenu),l=M(P,e.__scopeNavigationMenu),u=g.useRef(null),d=n.useComposedRefs(u,l.triggerRef,t),f=Z(c.baseId,l.value),h=Q(c.baseId,l.value),_=g.useRef(!1),v=g.useRef(!1),y=l.value===c.value;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S.ItemSlot,{scope:a,value:l.value,children:(0,m.jsx)(me,{asChild:!0,children:(0,m.jsx)(i.Primitive.button,{id:f,disabled:o,"data-disabled":o?``:void 0,"data-state":X(y),"aria-expanded":y,"aria-controls":y?h:void 0,...s,ref:d,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,()=>{v.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:r.composeEventHandlers(e.onPointerMove,$(()=>{o||v.current||l.wasEscapeCloseRef.current||_.current||(c.onTriggerEnter(l.value),_.current=!0)})),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(()=>{o||(c.onTriggerLeave(),_.current=!1)})),onClick:r.composeEventHandlers(e.onClick,()=>{c.onItemSelect(l.value),v.current=y}),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{let t={horizontal:`ArrowDown`,vertical:c.dir===`rtl`?`ArrowLeft`:`ArrowRight`}[c.orientation];y&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(p.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,r=n===u.current,i=t?.contains(n);(r||!i)&&l.onFocusProxyEnter(r?`start`:`end`)}}),c.viewport&&(0,m.jsx)(`span`,{"aria-owns":h})]})]})},`NavigationMenuTrigger`)),I=`navigationMenu.linkSelect`,L=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,active:a,onSelect:o,...s}=e;return(0,m.jsx)(me,{asChild:!0,children:(0,m.jsx)(i.Primitive.a,{"data-active":a?``:void 0,"aria-current":a?`page`:void 0,...s,ref:t,onClick:r.composeEventHandlers(e.onClick,e=>{let t=e.target,n=new CustomEvent(I,{bubbles:!0,cancelable:!0});if(t.addEventListener(I,e=>o?.(e),{once:!0}),i.dispatchDiscreteCustomEvent(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(H,{bubbles:!0,cancelable:!0});i.dispatchDiscreteCustomEvent(t,e)}},{checkForDefaultPrevented:!1})})})},`NavigationMenuLink`)),R=`NavigationMenuIndicator`,z=g.forwardRef(b(function(e,t){let{forceMount:n,...r}=e,i=A(R,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?_.createPortal((0,m.jsx)(c.Presence,{present:n||a,children:(0,m.jsx)(se,{...r,ref:t})}),i.indicatorTrack):null},`NavigationMenuIndicator`)),se=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(R,n),o=C(n),[s,c]=g.useState(null),[l,u]=g.useState(null),d=a.orientation===`horizontal`,f=!!a.value;g.useEffect(()=>{let e=o().find(e=>e.value===a.value)?.ref.current;e&&c(e)},[o,a.value]);let p=b(()=>{s&&u({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})},`handlePositionChange`);return Y(s,p),Y(a.indicatorTrack,p),l?(0,m.jsx)(i.Primitive.div,{"aria-hidden":!0,"data-state":f?`visible`:`hidden`,"data-orientation":a.orientation,...r,ref:t,style:{position:`absolute`,...d?{left:0,width:l.size+`px`,transform:`translateX(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-x":`${l.offset}px`}:{top:0,height:l.size+`px`,transform:`translateY(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-y":`${l.offset}px`},...r.style}}):null},`NavigationMenuIndicatorImpl`)),B=`NavigationMenuContent`,V=g.forwardRef(b(function(e,t){let{forceMount:i,...a}=e,o=A(B,e.__scopeNavigationMenu),s=M(B,e.__scopeNavigationMenu),l=n.useComposedRefs(s.contentRef,t),u=s.value===o.value,d={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...a};return o.viewport?(0,m.jsx)(ce,{forceMount:i,...d,ref:l}):(0,m.jsx)(c.Presence,{present:i||u,children:(0,m.jsx)(U,{"data-state":X(u),...d,ref:l,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,o.onContentEnter),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?`none`:void 0,...d.style}})})},`NavigationMenuContent`)),ce=g.forwardRef(b(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=A(B,e.__scopeNavigationMenu);return o.useLayoutEffect(()=>{n(e.value,{ref:t,...e})},[e,t,n]),o.useLayoutEffect(()=>()=>r(e.value),[e.value,r]),null},`ViewportContentMounter`)),H=`navigationMenu.rootContentDismiss`,U=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:i,value:a,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:u,...f}=e,p=A(B,i),h=g.useRef(null),_=n.useComposedRefs(h,t),v=Z(p.baseId,a),y=Q(p.baseId,a),x=C(i),S=g.useRef(null),{onItemDismiss:w}=p;g.useEffect(()=>{let e=h.current;if(p.isRootMenu&&e){let t=b(()=>{w(),l(),e.contains(document.activeElement)&&o.current?.focus()},`handleClose`);return e.addEventListener(H,t),()=>e.removeEventListener(H,t)}},[p.isRootMenu,e.value,o,w,l]);let T=g.useMemo(()=>{let e=x().map(e=>e.value);p.dir===`rtl`&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=a===p.value,i=n===e.indexOf(a);if(!r&&!i)return S.current;let o=(()=>{if(t!==n){if(r&&n!==-1)return t>n?`from-end`:`from-start`;if(i&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return S.current=o,o},[p.previousValue,p.value,p.dir,x,a]);return(0,m.jsx)(K,{asChild:!0,children:(0,m.jsx)(d.DismissableLayer,{id:y,"aria-labelledby":v,"data-motion":T,"data-orientation":p.orientation,...f,ref:_,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(H,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:r.composeEventHandlers(e.onFocusOutside,e=>{u();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:r.composeEventHandlers(e.onPointerDownOutside,e=>{let t=e.target,n=x().some(e=>e.ref.current?.contains(t)),r=p.isRootMenu&&p.viewport?.contains(t);(n||r||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!t){let t=q(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);J(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:r.composeEventHandlers(e.onEscapeKeyDown,e=>{c.current=!0})})})},`NavigationMenuContentImpl`)),W=`NavigationMenuViewport`,G=g.forwardRef(b(function(e,t){let{forceMount:n,...r}=e,i=!!A(W,e.__scopeNavigationMenu).value;return(0,m.jsx)(c.Presence,{present:n||i,children:(0,m.jsx)(le,{...r,ref:t})})},`NavigationMenuViewport`)),le=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:a,children:o,...s}=e,l=A(W,a),u=n.useComposedRefs(t,l.onViewportChange),d=ne(B,e.__scopeNavigationMenu),[f,p]=g.useState(null),[h,_]=g.useState(null),v=f?f?.width+`px`:void 0,y=f?f?.height+`px`:void 0,x=!!l.value,S=x?l.value:l.previousValue;return Y(h,b(()=>{h&&p({width:h.offsetWidth,height:h.offsetHeight})},`handleSizeChange`)),(0,m.jsx)(i.Primitive.div,{"data-state":X(x),"data-orientation":l.orientation,...s,ref:u,style:{pointerEvents:!x&&l.isRootMenu?`none`:void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":y,...s.style},onPointerEnter:r.composeEventHandlers(e.onPointerEnter,l.onContentEnter),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,$(l.onContentLeave)),children:Array.from(d.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=S===e;return(0,m.jsx)(c.Presence,{present:n||i,children:(0,m.jsx)(ue,{...r,contentRef:t,isActive:i,onActiveContentChange:_})},e)})})},`NavigationMenuViewportImpl`)),ue=b(({contentRef:e,isActive:t,onActiveContentChange:r,...i})=>{let a=g.useCallback(e=>{t&&e&&r(e)},[t,r]),o=n.useComposedRefs(e,a);return(0,m.jsx)(U,{...i,ref:o})},`NavigationMenuViewportItem`),de=`FocusGroup`,K=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=A(de,n);return(0,m.jsx)(T.Provider,{scope:n,children:(0,m.jsx)(T.Slot,{scope:n,children:(0,m.jsx)(i.Primitive.div,{dir:a.dir,...r,ref:t})})})},`FocusGroup`)),fe=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`],pe=`FocusGroupItem`,me=g.forwardRef(b(function(e,t){let{__scopeNavigationMenu:n,...a}=e,o=ee(n),s=A(pe,n);return(0,m.jsx)(T.ItemSlot,{scope:n,children:(0,m.jsx)(i.Primitive.button,{...a,ref:t,onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{if([`Home`,`End`,...fe].includes(e.key)){let t=o().map(e=>e.ref.current);if([s.dir===`rtl`?`ArrowRight`:`ArrowLeft`,`ArrowUp`,`End`].includes(e.key)&&t.reverse(),fe.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>J(t)),e.preventDefault()}})})})},`FocusGroupItem`));function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:b(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}b(q,`getTabbableCandidates`);function J(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}b(J,`focusFirst`);function he(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}b(he,`removeFromTabOrder`);function Y(e,t){let n=a.useCallbackRef(t);o.useLayoutEffect(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}b(Y,`useResizeObserver`);function X(e){return e?`open`:`closed`}b(X,`getOpenState`);function Z(e,t){return`${e}-trigger-${t}`}b(Z,`makeTriggerId`);function Q(e,t){return`${e}-content-${t}`}b(Q,`makeContentId`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}b($,`whenMouse`);var ge=re,_e=j,ve=N,ye=F,be=L,xe=z,Se=V,Ce=G;exports.Content=Se,exports.Indicator=xe,exports.Item=ve,exports.Link=be,exports.List=_e,exports.NavigationMenu=re,exports.NavigationMenuContent=V,exports.NavigationMenuIndicator=z,exports.NavigationMenuItem=N,exports.NavigationMenuLink=L,exports.NavigationMenuList=j,exports.NavigationMenuTrigger=F,exports.NavigationMenuViewport=G,exports.Root=ge,exports.Trigger=ye,exports.Viewport=Ce;
|