@okam/stack-ui 1.38.1 → 1.39.1
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 +27 -0
- package/components/Box/interface.d.ts +2 -1
- package/components/Node/index.d.ts +3 -0
- package/components/Node/interface.d.ts +4 -0
- package/components/Popover/components/Button.d.ts +4 -0
- package/components/Popover/index.d.ts +3 -6
- package/components/Popover/interface.d.ts +17 -16
- package/components/Popover/popover.stories.d.ts +7 -0
- package/components/fields/ComboBox/combo-box.stories.d.ts +14 -0
- package/components/fields/ComboBox/hooks/useComboBoxFiltering.d.ts +30 -0
- package/components/fields/ComboBox/index.d.ts +8 -0
- package/components/fields/ComboBox/interface.d.ts +24 -0
- package/components/fields/ListBox/index.d.ts +3 -2
- package/components/fields/ListBox/interface.d.ts +5 -2
- package/components/fields/ListBox/list-box.stories.d.ts +1 -0
- package/hooks/useDebounce/index.d.ts +1 -0
- package/index.d.ts +7 -1
- package/index.js +1 -1
- package/index.mjs +188 -177
- package/index10.js +1 -1
- package/index10.mjs +52 -82
- package/index100.js +6 -9
- package/index100.mjs +80 -43
- package/index101.js +1 -1
- package/index101.mjs +59 -35
- package/index102.js +1 -1
- package/index102.mjs +37 -9
- package/index103.js +41 -4
- package/index103.mjs +66 -80
- package/index104.js +64 -1
- package/index104.mjs +228 -6
- package/index105.js +9 -12
- package/index105.mjs +47 -30
- package/index106.js +1 -1
- package/index106.mjs +34 -78
- package/index107.js +1 -1
- package/index107.mjs +8 -24
- package/index108.js +1 -1
- package/index108.mjs +32 -13
- package/index109.js +4 -6
- package/index109.mjs +84 -15
- package/index11.js +1 -1
- package/index11.mjs +53 -72
- package/index110.js +1 -15
- package/index110.mjs +6 -71
- package/index111.js +12 -1
- package/index111.mjs +39 -6
- package/index112.js +1 -41
- package/index112.mjs +73 -90
- package/index113.js +1 -47
- package/index113.mjs +12 -101
- package/index114.js +1 -16
- package/index114.mjs +25 -21
- package/index115.js +1 -1
- package/index115.mjs +9 -38
- package/index116.js +7 -1
- package/index116.mjs +19 -48
- package/index117.js +15 -1
- package/index117.mjs +70 -22
- package/index118.js +1 -1
- package/index118.mjs +7 -63
- package/index119.js +41 -1
- package/index119.mjs +104 -27
- package/index12.js +1 -1
- package/index12.mjs +77 -44
- package/index120.js +47 -1
- package/index120.mjs +102 -52
- package/index121.js +16 -1
- package/index121.mjs +25 -4
- package/index122.js +1 -1
- package/index122.mjs +42 -11
- package/index123.js +1 -1
- package/index123.mjs +47 -13
- package/index124.js +1 -1
- package/index124.mjs +21 -36
- package/index125.js +1 -1
- package/index125.mjs +60 -20
- package/index126.js +1 -1
- package/index126.mjs +28 -43
- package/index127.js +1 -1
- package/index127.mjs +52 -20
- package/index128.js +1 -1
- package/index128.mjs +4 -38
- package/index129.js +1 -1
- package/index129.mjs +11 -16
- package/index13.js +2 -1
- package/index13.mjs +46 -47
- package/index130.js +1 -1
- package/index130.mjs +13 -240
- package/index131.js +1 -2
- package/index131.mjs +37 -12
- package/index132.js +1 -2
- package/index132.mjs +22 -38
- package/index133.js +1 -1
- package/index133.mjs +44 -11
- package/index134.js +1 -1
- package/index134.mjs +18 -37
- package/index135.js +1 -1
- package/index135.mjs +36 -22
- package/index136.js +1 -1
- package/index136.mjs +14 -21
- package/index137.js +1 -1
- package/index137.mjs +238 -40
- package/index138.js +2 -1
- package/index138.mjs +12 -25
- package/index139.js +2 -1
- package/index139.mjs +39 -41
- package/index14.js +1 -1
- package/index14.mjs +47 -18
- package/index140.js +1 -2
- package/index140.mjs +11 -58
- package/index141.js +1 -1
- package/index141.mjs +39 -39
- package/index142.js +1 -1
- package/index142.mjs +23 -30
- package/index143.js +1 -1
- package/index143.mjs +23 -8
- package/index144.js +1 -1
- package/index144.mjs +43 -9
- package/index145.js +1 -1
- package/index145.mjs +25 -29
- package/index146.js +1 -1
- package/index146.mjs +41 -15
- package/index147.js +2 -1
- package/index147.mjs +57 -16
- package/index148.js +1 -2
- package/index148.mjs +38 -47
- package/index149.js +1 -1
- package/index149.mjs +31 -38
- package/index15.js +1 -1
- package/index15.mjs +18 -17
- package/index150.js +1 -1
- package/index150.mjs +8 -29
- package/index151.js +1 -1
- package/index151.mjs +9 -22
- package/index152.js +1 -1
- package/index152.mjs +27 -33
- package/index153.js +1 -1
- package/index153.mjs +15 -22
- package/index154.js +1 -1
- package/index154.mjs +17 -57
- package/index155.js +2 -1
- package/index155.mjs +47 -11
- package/index156.js +1 -1
- package/index156.mjs +37 -11
- package/index157.js +1 -1
- package/index157.mjs +29 -46
- package/index158.js +1 -2
- package/index158.mjs +22 -13
- package/index159.js +1 -1
- package/index159.mjs +36 -30
- package/index16.js +1 -1
- package/index16.mjs +16 -165
- package/index160.js +1 -1
- package/index160.mjs +21 -5
- package/index161.js +1 -2
- package/index161.mjs +56 -49
- package/index162.js +1 -1
- package/index162.mjs +12 -126
- package/index163.js +1 -1
- package/index163.mjs +46 -74
- package/index164.js +2 -1
- package/index164.mjs +13 -382
- package/index165.js +1 -1
- package/index165.mjs +30 -47
- package/index166.js +1 -1
- package/index166.mjs +12 -4
- package/index167.js +1 -1
- package/index167.mjs +5 -24
- package/index168.js +2 -1
- package/index168.mjs +48 -46
- package/index169.js +1 -1
- package/index169.mjs +124 -4
- package/index17.js +1 -1
- package/index17.mjs +148 -93
- package/index170.js +1 -1
- package/index170.mjs +27 -24
- package/index171.js +1 -1
- package/index171.mjs +72 -11
- package/index172.js +1 -1
- package/index172.mjs +381 -4
- package/index173.js +1 -1
- package/index173.mjs +46 -14
- package/index174.js +1 -1
- package/index174.mjs +4 -43
- package/index175.js +1 -1
- package/index175.mjs +23 -56
- package/index176.js +1 -1
- package/index176.mjs +45 -39
- package/index177.js +1 -1
- package/index177.mjs +4 -27
- package/index178.js +1 -1
- package/index178.mjs +24 -31
- package/index179.js +1 -1
- package/index179.mjs +12 -14
- package/index18.js +1 -1
- package/index18.mjs +110 -113
- package/index180.js +1 -1
- package/index180.mjs +4 -10
- package/index181.js +1 -1
- package/index181.mjs +13 -27
- package/index182.js +1 -1
- package/index182.mjs +41 -8
- package/index183.js +1 -1
- package/index183.mjs +57 -6
- package/index184.js +1 -1
- package/index184.mjs +41 -5
- package/index185.js +1 -1
- package/index185.mjs +28 -7
- package/index186.js +1 -1
- package/index186.mjs +28 -26
- package/index187.js +1 -1
- package/index187.mjs +14 -18
- package/index188.js +1 -1
- package/index188.mjs +10 -13
- package/index189.js +1 -1
- package/index189.mjs +26 -41
- package/index19.js +1 -1
- package/index19.mjs +115 -31
- package/index190.js +1 -1
- package/index190.mjs +9 -8
- package/index191.js +1 -1
- package/index191.mjs +6 -17
- package/index192.js +1 -1
- package/index192.mjs +6 -3
- package/index193.js +1 -1
- package/index193.mjs +7 -4
- package/index194.js +1 -1
- package/index194.mjs +29 -19
- package/index195.js +1 -1
- package/index195.mjs +14 -50
- package/index196.js +1 -1
- package/index196.mjs +12 -26
- package/index197.js +1 -1
- package/index197.mjs +37 -197
- package/index198.js +1 -1
- package/index198.mjs +8 -64
- package/index199.js +1 -1
- package/index199.mjs +16 -142
- package/index2.js +1 -1
- package/index2.mjs +60 -60
- package/index20.js +1 -1
- package/index20.mjs +27 -104
- package/index200.js +1 -1
- package/index200.mjs +3 -125
- package/index201.js +1 -1
- package/index201.mjs +4 -224
- package/index202.js +1 -1
- package/index202.mjs +19 -190
- package/index203.js +1 -1
- package/index203.mjs +50 -65
- package/index204.js +1 -1
- package/index204.mjs +116 -271
- package/index205.js +1 -1
- package/index205.mjs +129 -93
- package/index206.js +1 -1
- package/index206.mjs +44 -188
- package/index207.js +1 -1
- package/index207.mjs +14 -84
- package/index208.js +1 -1
- package/index208.mjs +95 -58
- package/index209.js +1 -1
- package/index209.mjs +105 -125
- package/index21.js +1 -1
- package/index21.mjs +84 -122
- package/index210.js +1 -1
- package/index210.mjs +4 -116
- package/index211.js +1 -1
- package/index211.mjs +3 -122
- package/index212.js +1 -1
- package/index212.mjs +123 -70
- package/index213.js +1 -1
- package/index213.mjs +25 -106
- package/index214.js +1 -1
- package/index214.mjs +51 -52
- package/index215.js +1 -1
- package/index215.mjs +44 -93
- package/index216.js +1 -1
- package/index216.mjs +36 -69
- package/index217.js +1 -1
- package/index217.mjs +111 -54
- package/index218.js +1 -1
- package/index218.mjs +77 -99
- package/index219.js +1 -5
- package/index219.mjs +101 -80
- package/index22.js +1 -1
- package/index22.mjs +110 -124
- package/index220.js +1 -1
- package/index220.mjs +97 -2025
- package/index221.js +1 -1
- package/index221.mjs +137 -56
- package/index222.js +1 -1
- package/index222.mjs +189 -180
- package/index223.js +1 -1
- package/index223.mjs +21 -123
- package/index224.js +1 -1
- package/index224.mjs +47 -132
- package/index225.js +1 -1
- package/index225.mjs +47 -43
- package/index226.js +1 -1
- package/index226.mjs +95 -12
- package/index227.js +1 -1
- package/index227.mjs +71 -95
- package/index228.js +1 -1
- package/index228.mjs +66 -104
- package/index229.js +1 -1
- package/index229.mjs +7 -4
- package/index23.js +1 -1
- package/index23.mjs +151 -102
- package/index230.js +1 -1
- package/index230.mjs +11 -3
- package/index231.js +1 -1
- package/index231.mjs +195 -117
- package/index232.js +1 -1
- package/index232.mjs +61 -26
- package/index233.js +1 -1
- package/index233.mjs +135 -43
- package/index234.js +1 -1
- package/index234.mjs +117 -37
- package/index235.js +1 -1
- package/index235.mjs +216 -29
- package/index236.js +1 -1
- package/index236.mjs +189 -112
- package/index237.js +1 -1
- package/index237.mjs +69 -77
- package/index238.js +1 -1
- package/index238.mjs +259 -81
- package/index239.js +1 -1
- package/index239.mjs +99 -98
- package/index24.js +1 -1
- package/index24.mjs +110 -22
- package/index240.js +1 -1
- package/index240.mjs +183 -135
- package/index241.js +1 -1
- package/index241.mjs +83 -196
- package/index242.js +1 -1
- package/index242.mjs +58 -22
- package/index243.js +1 -1
- package/index243.mjs +122 -45
- package/index244.js +1 -1
- package/index244.mjs +113 -45
- package/index245.js +1 -1
- package/index245.mjs +118 -93
- package/index246.js +1 -1
- package/index246.mjs +73 -72
- package/index247.js +1 -1
- package/index247.mjs +107 -65
- package/index248.js +1 -1
- package/index248.mjs +52 -7
- package/index249.js +1 -1
- package/index249.mjs +92 -10
- package/index25.js +1 -1
- package/index25.mjs +21 -68
- package/index250.js +1 -1
- package/index250.mjs +70 -5
- package/index251.js +1 -1
- package/index251.mjs +54 -119
- package/index252.js +1 -1
- package/index252.mjs +99 -43
- package/index253.js +5 -1
- package/index253.mjs +75 -225
- package/index254.js +1 -1
- package/index254.mjs +2023 -29
- package/index255.js +1 -1
- package/index255.mjs +59 -3
- package/index256.js +1 -1
- package/index256.mjs +183 -125
- package/index257.js +1 -1
- package/index257.mjs +5 -190
- package/index258.js +1 -1
- package/index258.mjs +121 -9
- package/index259.js +1 -1
- package/index259.mjs +43 -3
- package/index26.js +1 -1
- package/index26.mjs +69 -147
- package/index260.js +1 -1
- package/index260.mjs +227 -33
- package/index261.js +1 -1
- package/index261.mjs +31 -5
- package/index262.js +1 -1
- package/index262.mjs +3 -29
- package/index263.js +1 -1
- package/index263.mjs +4 -6
- package/index264.js +1 -1
- package/index264.mjs +5 -5
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +1 -1
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +4 -4
- package/index27.js +1 -1
- package/index27.mjs +149 -20
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +1 -1
- package/index272.js +1 -1
- package/index272.mjs +4 -4
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +1 -1
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +4 -4
- package/index277.js +1 -1
- package/index277.mjs +1 -1
- package/index278.js +1 -1
- package/index278.mjs +1 -1
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index28.js +1 -1
- package/index28.mjs +20 -59
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +1 -1
- package/index282.js +1 -1
- package/index282.mjs +4 -4
- package/index283.js +1 -1
- package/index283.mjs +4 -4
- package/index284.js +1 -1
- package/index284.mjs +4 -4
- package/index285.js +1 -1
- package/index285.mjs +1 -1
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +4 -4
- package/index29.js +1 -1
- package/index29.mjs +42 -33
- package/index290.js +1 -1
- package/index290.mjs +4 -4
- package/index291.js +1 -1
- package/index291.mjs +1 -1
- package/index292.js +1 -1
- package/index292.mjs +1 -1
- package/index293.js +1 -1
- package/index293.mjs +1 -1
- package/index294.js +1 -1
- package/index294.mjs +4 -4
- package/index295.js +1 -1
- package/index295.mjs +4 -4
- package/index296.js +1 -1
- package/index296.mjs +4 -4
- package/index297.js +1 -1
- package/index297.mjs +4 -4
- package/index298.js +1 -1
- package/index298.mjs +130 -4
- package/index299.js +1 -1
- package/index299.mjs +180 -52
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +49 -19
- package/index300.js +1 -1
- package/index300.mjs +10 -7
- package/index301.js +1 -1
- package/index301.mjs +3 -27
- package/index302.js +1 -1
- package/index302.mjs +34 -90
- package/index303.js +1 -1
- package/index303.mjs +5 -9
- package/index304.js +1 -1
- package/index304.mjs +29 -25
- package/index305.js +1 -1
- package/index305.mjs +6 -33
- package/index306.js +1 -1
- package/index306.mjs +62 -6
- package/index307.js +1 -1
- package/index307.mjs +29 -6
- package/index308.js +1 -1
- package/index308.mjs +7 -51
- package/index309.js +1 -1
- package/index309.mjs +23 -25
- package/index31.js +1 -1
- package/index31.mjs +19 -32
- package/index310.js +1 -1
- package/index310.mjs +92 -14
- package/index311.js +1 -1
- package/index311.mjs +9 -21
- package/index312.js +1 -1
- package/index312.mjs +23 -27
- package/index313.js +1 -1
- package/index313.mjs +31 -64
- package/index314.js +1 -1
- package/index314.mjs +6 -53
- package/index315.js +1 -1
- package/index315.mjs +6 -54
- package/index316.js +1 -1
- package/index316.mjs +49 -280
- package/index317.js +1 -1
- package/index317.mjs +14 -20
- package/index318.js +1 -1
- package/index318.mjs +21 -3
- package/index319.js +1 -1
- package/index319.mjs +29 -4
- package/index32.js +1 -1
- package/index32.mjs +32 -23
- package/index320.js +1 -1
- package/index320.mjs +66 -8
- package/index321.js +1 -1
- package/index321.mjs +52 -4
- package/index322.js +1 -1
- package/index322.mjs +52 -28
- package/index323.js +1 -1
- package/index323.mjs +267 -153
- package/index324.js +1 -0
- package/index324.mjs +23 -0
- package/index325.js +1 -0
- package/index325.mjs +6 -0
- package/index326.js +1 -0
- package/index326.mjs +7 -0
- package/index327.js +1 -0
- package/index327.mjs +11 -0
- package/index328.js +1 -0
- package/index328.mjs +8 -0
- package/index329.js +1 -0
- package/index329.mjs +33 -0
- package/index33.js +1 -1
- package/index33.mjs +22 -12
- package/index330.js +1 -0
- package/index330.mjs +170 -0
- package/index34.js +1 -1
- package/index34.mjs +13 -31
- package/index35.js +1 -1
- package/index35.mjs +30 -31
- package/index36.js +1 -1
- package/index36.mjs +28 -121
- package/index37.js +1 -1
- package/index37.mjs +125 -8
- package/index38.js +1 -1
- package/index38.mjs +8 -46
- package/index39.js +1 -1
- package/index39.mjs +46 -18
- package/index4.js +1 -1
- package/index4.mjs +4 -4
- package/index40.js +2 -1
- package/index40.mjs +19 -6
- package/index41.js +1 -2
- package/index41.mjs +6 -21
- package/index42.js +1 -1
- package/index42.mjs +18 -32
- package/index43.js +1 -1
- package/index43.mjs +34 -39
- package/index44.js +1 -1
- package/index44.mjs +39 -48
- package/index45.js +1 -1
- package/index45.mjs +48 -39
- package/index46.js +1 -1
- package/index46.mjs +38 -26
- package/index47.js +1 -1
- package/index47.mjs +27 -18
- package/index48.js +1 -1
- package/index48.mjs +18 -48
- package/index49.js +1 -1
- package/index49.mjs +112 -40
- package/index50.js +1 -1
- package/index50.mjs +55 -63
- package/index51.js +2 -1
- package/index51.mjs +42 -5
- package/index52.js +2 -1
- package/index52.mjs +66 -8
- package/index53.js +2 -1
- package/index53.mjs +74 -8
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index55.js +1 -1
- package/index55.mjs +7 -4
- package/index56.js +1 -1
- package/index56.mjs +8 -5
- package/index57.js +1 -1
- package/index57.mjs +4 -4
- package/index58.js +1 -1
- package/index58.mjs +3 -9
- package/index59.js +1 -1
- package/index59.mjs +4 -12
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +1 -1
- package/index60.mjs +4 -12
- package/index61.js +1 -1
- package/index61.mjs +11 -46
- package/index62.js +1 -1
- package/index62.mjs +12 -7
- package/index63.js +1 -1
- package/index63.mjs +13 -71
- package/index64.js +1 -1
- package/index64.mjs +45 -7
- package/index65.js +1 -1
- package/index65.mjs +8 -13
- package/index66.js +1 -1
- package/index66.mjs +71 -10
- package/index67.js +1 -1
- package/index67.mjs +8 -17
- package/index68.js +1 -1
- package/index68.mjs +10 -10
- package/index69.js +1 -1
- package/index69.mjs +9 -12
- package/index7.js +1 -1
- package/index7.mjs +2 -2
- package/index70.js +1 -1
- package/index70.mjs +17 -13
- package/index71.js +1 -1
- package/index71.mjs +9 -7
- package/index72.js +1 -1
- package/index72.mjs +9 -7
- package/index73.js +1 -1
- package/index73.mjs +8 -8
- package/index74.js +1 -1
- package/index74.mjs +11 -14
- package/index75.js +1 -2
- package/index75.mjs +10 -22
- package/index76.js +1 -2
- package/index76.mjs +12 -16
- package/index77.js +1 -2
- package/index77.mjs +14 -15
- package/index78.js +1 -1
- package/index78.mjs +21 -45
- package/index79.js +1 -1
- package/index79.mjs +15 -37
- package/index8.js +1 -1
- package/index8.mjs +5 -5
- package/index80.js +1 -1
- package/index80.mjs +13 -11
- package/index81.js +1 -1
- package/index81.mjs +45 -10
- package/index82.js +1 -1
- package/index82.mjs +36 -12
- package/index83.js +1 -1
- package/index83.mjs +11 -10
- package/index84.js +1 -1
- package/index84.mjs +10 -29
- package/index85.js +2 -1
- package/index85.mjs +15 -2
- package/index86.js +1 -1
- package/index86.mjs +11 -8
- package/index87.js +1 -1
- package/index87.mjs +30 -7
- package/index88.js +1 -2
- package/index88.mjs +2 -8
- package/index89.js +1 -1
- package/index89.mjs +7 -6
- package/index9.js +1 -1
- package/index9.mjs +4 -4
- package/index90.js +2 -1
- package/index90.mjs +8 -25
- package/index91.js +2 -1
- package/index91.mjs +8 -10
- package/index92.js +1 -1
- package/index92.mjs +7 -19
- package/index93.js +1 -1
- package/index93.mjs +25 -4
- package/index94.js +1 -1
- package/index94.mjs +10 -2
- package/index95.js +2 -6
- package/index95.mjs +20 -94
- package/index96.js +2 -1
- package/index96.mjs +14 -69
- package/index97.js +2 -1
- package/index97.mjs +37 -41
- package/index98.js +1 -42
- package/index98.mjs +4 -74
- package/index99.js +1 -64
- package/index99.mjs +2 -228
- package/package.json +1 -1
- package/theme/ComboBox/index.d.ts +3 -0
- package/theme/Popover/index.d.ts +238 -0
- package/types/react-stately.d.ts +8 -1
package/index46.mjs
CHANGED
|
@@ -1,31 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { log as h } from "./index98.mjs";
|
|
4
|
+
function u(t) {
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
function o(t) {
|
|
8
|
+
return t.hasChildItems != null ? t.hasChildItems : !!(t.childItems || t.title && d.Children.count(t.children) > 0);
|
|
9
|
+
}
|
|
10
|
+
u.getCollectionNode = function* (e, l) {
|
|
11
|
+
const { childItems: n, title: s, children: m } = e, a = e.title || e.children, r = e.textValue || (typeof a == "string" ? a : "") || e["aria-label"] || "";
|
|
12
|
+
!r && !(l != null && l.suppressTextValueWarning) && h(
|
|
13
|
+
"<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.",
|
|
14
|
+
"warn"
|
|
15
|
+
), yield {
|
|
16
|
+
type: "item",
|
|
17
|
+
props: e,
|
|
18
|
+
rendered: a,
|
|
19
|
+
textValue: r,
|
|
20
|
+
"aria-label": e["aria-label"],
|
|
21
|
+
hasChildNodes: o(e),
|
|
22
|
+
*childNodes() {
|
|
23
|
+
if (n)
|
|
24
|
+
yield* Array.from(n).map((i) => ({
|
|
25
|
+
type: "item",
|
|
26
|
+
value: i
|
|
27
|
+
}));
|
|
28
|
+
else if (s) {
|
|
29
|
+
const i = [];
|
|
30
|
+
d.Children.forEach(m, (c) => {
|
|
31
|
+
i.push({
|
|
32
|
+
type: "item",
|
|
33
|
+
element: c
|
|
34
|
+
});
|
|
35
|
+
}), yield* i;
|
|
36
|
+
}
|
|
26
37
|
}
|
|
27
|
-
|
|
38
|
+
};
|
|
28
39
|
};
|
|
40
|
+
const I = u;
|
|
29
41
|
export {
|
|
30
|
-
|
|
42
|
+
I as TabItem
|
|
31
43
|
};
|
package/index47.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const a=require("react/jsx-runtime"),m=require("./index158.js"),h=require("react"),d=require("./index153.js"),b=require("./index28.js"),x=e=>{var i;const{state:t,customTheme:o,themeName:n="tabList.panel",tokens:s,panelTransition:c=d,...l}=e,r=h.useRef(null),{tabPanelProps:u}=m.useTabPanel(e,t,r);return a.jsx(c,{...l,themeName:`${n}.transition`,tokens:s,customTheme:o,isVisible:!0,children:a.jsx(b.BoxWithForwardRef,{themeName:`${n}.container`,tokens:s,...u,ref:r,children:(i=t.selectedItem)==null?void 0:i.props.children})})};module.exports=x;
|
package/index47.mjs
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useTabPanel as f } from "./index158.mjs";
|
|
4
|
+
import { useRef as p } from "react";
|
|
5
|
+
import h from "./index153.mjs";
|
|
6
|
+
import { BoxWithForwardRef as b } from "./index28.mjs";
|
|
7
|
+
const x = (e) => {
|
|
8
|
+
var o;
|
|
9
|
+
const {
|
|
10
|
+
state: t,
|
|
11
|
+
customTheme: s,
|
|
12
|
+
themeName: r = "tabList.panel",
|
|
13
|
+
tokens: a,
|
|
14
|
+
panelTransition: m = h,
|
|
15
|
+
...l
|
|
16
|
+
} = e, n = p(null), { tabPanelProps: c } = f(e, t, n);
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
m,
|
|
19
|
+
{
|
|
20
|
+
...l,
|
|
21
|
+
themeName: `${r}.transition`,
|
|
22
|
+
tokens: a,
|
|
23
|
+
customTheme: s,
|
|
24
|
+
isVisible: !0,
|
|
25
|
+
children: /* @__PURE__ */ i(b, { themeName: `${r}.container`, tokens: a, ...c, ref: n, children: (o = t.selectedItem) == null ? void 0 : o.props.children })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
19
28
|
};
|
|
20
29
|
export {
|
|
21
|
-
|
|
30
|
+
x as default
|
|
22
31
|
};
|
package/index48.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./index159.js"),F=require("react"),P=require("react-aria"),R=require("./index94.js"),h=require("./index28.js"),D=({item:o,state:e,...r})=>{const{key:s,rendered:t}=o,{themeName:i="tabList.tab",tokens:c,...u}=R.mergeDefaultComponentProps(r,o.props),n=F.useRef(null),{tabProps:a}=x.useTab({key:s},e,n),{focusProps:l,isFocusVisible:b,isFocused:d}=k.useFocusRing({within:!0,autoFocus:!1}),p=e.selectionManager.isDisabled(s),f=e.selectionManager.isSelected(s),g=e.selectionManager.isLink(s),m={...c,isDisabled:p,isSelected:f,isLink:g,isFocused:d,isFocusVisible:b};return q.jsx(h.BoxWithForwardRef,{...P.mergeProps(u,l,a),themeName:i,tokens:m,ref:n,children:t})};module.exports=D;
|
package/index48.mjs
CHANGED
|
@@ -1,52 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
label: t,
|
|
20
|
-
escapeKeyBehavior: a = "clearSelection",
|
|
21
|
-
linkElementType: c = k,
|
|
22
|
-
...f
|
|
23
|
-
} = i, r = $(i), n = d(null), { listBoxProps: h, labelProps: x } = N(
|
|
24
|
-
{
|
|
25
|
-
...f,
|
|
26
|
-
escapeKeyBehavior: a,
|
|
27
|
-
label: t
|
|
28
|
-
},
|
|
29
|
-
r,
|
|
30
|
-
n
|
|
31
|
-
);
|
|
32
|
-
return /* @__PURE__ */ y(L, { themeName: `${e}.wrapper`, tokens: o, customTheme: p, children: [
|
|
33
|
-
t && /* @__PURE__ */ s(S, { ...x, themeName: `${e}.label`, tokens: o, children: t }),
|
|
34
|
-
/* @__PURE__ */ s(b, { ref: n, as: "ul", ...h, themeName: `${e}.list`, tokens: o, children: [...r.collection].map((l) => {
|
|
35
|
-
const { type: m, key: u } = l, B = w[m];
|
|
36
|
-
return /* @__PURE__ */ s(
|
|
37
|
-
B,
|
|
38
|
-
{
|
|
39
|
-
[m]: l,
|
|
40
|
-
state: r,
|
|
41
|
-
tokens: o,
|
|
42
|
-
themeName: `${e}.${m}`,
|
|
43
|
-
linkElementType: c
|
|
44
|
-
},
|
|
45
|
-
u
|
|
46
|
-
);
|
|
47
|
-
}) })
|
|
48
|
-
] });
|
|
2
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import { useFocusRing as F } from "@react-aria/focus";
|
|
4
|
+
import { useTab as h } from "./index159.mjs";
|
|
5
|
+
import { useRef as x } from "react";
|
|
6
|
+
import { mergeProps as P } from "react-aria";
|
|
7
|
+
import { mergeDefaultComponentProps as D } from "./index94.mjs";
|
|
8
|
+
import { BoxWithForwardRef as L } from "./index28.mjs";
|
|
9
|
+
const y = ({ item: s, state: e, ...t }) => {
|
|
10
|
+
const { key: o, rendered: i } = s, { themeName: n = "tabList.tab", tokens: c, ...a } = D(t, s.props), r = x(null), { tabProps: m } = h({ key: o }, e, r), { focusProps: f, isFocusVisible: p, isFocused: l } = F({ within: !0, autoFocus: !1 }), u = e.selectionManager.isDisabled(o), d = e.selectionManager.isSelected(o), b = e.selectionManager.isLink(o), g = {
|
|
11
|
+
...c,
|
|
12
|
+
isDisabled: u,
|
|
13
|
+
isSelected: d,
|
|
14
|
+
isLink: b,
|
|
15
|
+
isFocused: l,
|
|
16
|
+
isFocusVisible: p
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ k(L, { ...P(a, f, m), themeName: n, tokens: g, ref: r, children: i });
|
|
49
19
|
};
|
|
50
20
|
export {
|
|
51
|
-
|
|
21
|
+
y as default
|
|
52
22
|
};
|
package/index49.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),re=require("radashi"),n=require("react"),k=require("react-aria");require("react-hook-form");const ie=require("react-stately"),ce=require("./index96.js");require("./index87.js");const x=require("./index28.js"),le=require("./index6.js"),ue=require("./index15.js"),ae=require("./index54.js"),de=require("./index60.js"),fe=require("./index10.js"),v=require("./index3.js"),pe=require("./index50.js"),me=p=>{const{children:N,hookFormRef:c,errorMessage:R,themeName:s="comboBox",tokens:y,customTheme:C,label:h,icon:F=t.jsx(ae,{}),closeIcon:I=t.jsx(de,{}),isDisabled:g=!1,isRequired:M=!1,isReadOnly:S=!1,defaultFilter:V,inputRef:w,buttonRef:D,popoverRef:O,listBoxRef:W,debounceDelay:A=200}=p,E=n.useRef(null),r=w??E,z=n.useRef(null),b=D??z,L=n.useRef(null),q=O??L,T=n.useRef(null),B=W??T,l=n.useRef(null),{contains:G}=k.useFilter({sensitivity:"base"}),H=V??G,e=ie.useComboBoxState({...p,defaultFilter:H}),{inputProps:J,listBoxProps:K,labelProps:Q,buttonProps:U,errorMessageProps:X,isInvalid:$}=k.useComboBox({...p,inputRef:r,buttonRef:b,popoverRef:q,listBoxRef:B},e),P=ce.useDebounce(e.collection,A),j=n.useMemo(()=>({...e,collection:P}),[e,P]),{onPress:u,onPressStart:a,preventFocusOnPress:xe,...Y}=U,{isOpen:d,selectedItem:m,selectionManager:Z}=e,{isFocused:_,isSelectAll:ee,isEmpty:te}=Z,f=!re.isEmpty(e.inputValue),o={...y,isInvalid:$,isOpen:d,isFocused:_,hasValue:f,hasSelectedItem:!te,isSelectAll:ee,isReadOnly:S,isDisabled:g,isRequired:M},se=n.useCallback(i=>{f?(e.setInputValue(""),e.selectionManager.clearSelection(),r.current&&r.current.focus()):(u==null||u(i),a==null||a(i))},[f,e,u,a,r]),ne=n.useCallback(i=>{i&&(c==null||c(i),r.current=i)},[c,r]),oe=n.useMemo(()=>m&&!d?m.rendered:e.inputValue,[m,e.inputValue,d]);return t.jsxs(x.default,{themeName:`${s}.wrapper`,tokens:o,customTheme:C,children:[h&&t.jsx(v.default,{...Q,as:"label",themeName:`${s}.label`,tokens:o,children:h}),t.jsxs(x.default,{themeName:`${s}.container`,children:[t.jsxs(x.BoxWithForwardRef,{ref:l,themeName:`${s}.inputWrapper`,tokens:o,children:[t.jsx("input",{...J,ref:ne,value:oe}),t.jsx(le.ButtonWithForwardRef,{themeName:`${s}.button`,tokens:o,...Y,ref:b,handlePress:se,children:t.jsx(ue,{themeName:`${s}.icon`,tokens:o,icon:f?I:F})})]}),d&&l.current&&j.collection.size>0&&t.jsx(fe.Popover,{themeName:`${s}.popover`,tokens:o,state:e,triggerRef:l,placement:"bottom",sizeRef:l,popoverRef:q,autoFocus:!1,children:t.jsx(pe.ControlledListBox,{...K,themeName:`${s}.list`,tokens:o,state:j,ref:B,children:N})}),$&&R&&t.jsx(v.default,{tokens:o,themeName:`${s}.errorMessage`,...X,children:R})]})]})};module.exports=me;
|
package/index49.mjs
CHANGED
|
@@ -1,44 +1,116 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
2
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { isEmpty as ie } from "radashi";
|
|
4
|
+
import { useRef as i, useMemo as y, useCallback as F } from "react";
|
|
5
|
+
import { useFilter as le, useComboBox as ce } from "react-aria";
|
|
6
|
+
import "react-hook-form";
|
|
7
|
+
import { useComboBoxState as ae } from "react-stately";
|
|
8
|
+
import { useDebounce as me } from "./index96.mjs";
|
|
9
|
+
import "./index87.mjs";
|
|
10
|
+
import I, { BoxWithForwardRef as ue } from "./index28.mjs";
|
|
11
|
+
import { ButtonWithForwardRef as pe } from "./index6.mjs";
|
|
12
|
+
import fe from "./index15.mjs";
|
|
13
|
+
import de from "./index54.mjs";
|
|
14
|
+
import he from "./index60.mjs";
|
|
15
|
+
import { Popover as Re } from "./index10.mjs";
|
|
16
|
+
import $ from "./index3.mjs";
|
|
17
|
+
import { ControlledListBox as be } from "./index50.mjs";
|
|
18
|
+
const Ee = (f) => {
|
|
19
|
+
const {
|
|
20
|
+
children: g,
|
|
21
|
+
hookFormRef: l,
|
|
22
|
+
errorMessage: R,
|
|
23
|
+
themeName: o = "comboBox",
|
|
24
|
+
tokens: C,
|
|
25
|
+
customTheme: M,
|
|
26
|
+
label: b,
|
|
27
|
+
icon: S = /* @__PURE__ */ t(de, {}),
|
|
28
|
+
closeIcon: V = /* @__PURE__ */ t(he, {}),
|
|
29
|
+
isDisabled: w = !1,
|
|
30
|
+
isRequired: D = !1,
|
|
31
|
+
isReadOnly: O = !1,
|
|
32
|
+
defaultFilter: W,
|
|
33
|
+
inputRef: E,
|
|
34
|
+
buttonRef: T,
|
|
35
|
+
popoverRef: j,
|
|
36
|
+
listBoxRef: z,
|
|
37
|
+
debounceDelay: A = 200
|
|
38
|
+
} = f, L = i(null), r = E ?? L, q = i(null), B = T ?? q, G = i(null), x = j ?? G, H = i(null), P = z ?? H, c = i(null), { contains: J } = le({ sensitivity: "base" }), e = ae({ ...f, defaultFilter: W ?? J }), { inputProps: K, listBoxProps: Q, labelProps: U, buttonProps: X, errorMessageProps: Y, isInvalid: k } = ce(
|
|
39
|
+
{ ...f, inputRef: r, buttonRef: B, popoverRef: x, listBoxRef: P },
|
|
40
|
+
e
|
|
41
|
+
), v = me(e.collection, A), N = y(
|
|
42
|
+
() => ({
|
|
43
|
+
...e,
|
|
44
|
+
collection: v
|
|
45
|
+
}),
|
|
46
|
+
[e, v]
|
|
47
|
+
), { onPress: a, onPressStart: m, preventFocusOnPress: xe, ...Z } = X, { isOpen: u, selectedItem: d, selectionManager: _ } = e, { isFocused: ee, isSelectAll: oe, isEmpty: te } = _, p = !ie(e.inputValue), n = {
|
|
48
|
+
...C,
|
|
49
|
+
isInvalid: k,
|
|
50
|
+
isOpen: u,
|
|
51
|
+
isFocused: ee,
|
|
52
|
+
hasValue: p,
|
|
53
|
+
hasSelectedItem: !te,
|
|
54
|
+
isSelectAll: oe,
|
|
55
|
+
isReadOnly: O,
|
|
56
|
+
isDisabled: w,
|
|
57
|
+
isRequired: D
|
|
58
|
+
}, ne = F(
|
|
59
|
+
(s) => {
|
|
60
|
+
p ? (e.setInputValue(""), e.selectionManager.clearSelection(), r.current && r.current.focus()) : (a == null || a(s), m == null || m(s));
|
|
61
|
+
},
|
|
62
|
+
[p, e, a, m, r]
|
|
63
|
+
), re = F(
|
|
64
|
+
(s) => {
|
|
65
|
+
s && (l == null || l(s), r.current = s);
|
|
66
|
+
},
|
|
67
|
+
[l, r]
|
|
68
|
+
), se = y(() => d && !u ? d.rendered : e.inputValue, [d, e.inputValue, u]);
|
|
69
|
+
return /* @__PURE__ */ h(I, { themeName: `${o}.wrapper`, tokens: n, customTheme: M, children: [
|
|
70
|
+
b && /* @__PURE__ */ t($, { ...U, as: "label", themeName: `${o}.label`, tokens: n, children: b }),
|
|
71
|
+
/* @__PURE__ */ h(I, { themeName: `${o}.container`, children: [
|
|
72
|
+
/* @__PURE__ */ h(ue, { ref: c, themeName: `${o}.inputWrapper`, tokens: n, children: [
|
|
73
|
+
/* @__PURE__ */ t("input", { ...K, ref: re, value: se }),
|
|
74
|
+
/* @__PURE__ */ t(
|
|
75
|
+
pe,
|
|
76
|
+
{
|
|
77
|
+
themeName: `${o}.button`,
|
|
78
|
+
tokens: n,
|
|
79
|
+
...Z,
|
|
80
|
+
ref: B,
|
|
81
|
+
handlePress: ne,
|
|
82
|
+
children: /* @__PURE__ */ t(fe, { themeName: `${o}.icon`, tokens: n, icon: p ? V : S })
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
u && c.current && N.collection.size > 0 && /* @__PURE__ */ t(
|
|
87
|
+
Re,
|
|
88
|
+
{
|
|
89
|
+
themeName: `${o}.popover`,
|
|
90
|
+
tokens: n,
|
|
91
|
+
state: e,
|
|
92
|
+
triggerRef: c,
|
|
93
|
+
placement: "bottom",
|
|
94
|
+
sizeRef: c,
|
|
95
|
+
popoverRef: x,
|
|
96
|
+
autoFocus: !1,
|
|
97
|
+
children: /* @__PURE__ */ t(
|
|
98
|
+
be,
|
|
99
|
+
{
|
|
100
|
+
...Q,
|
|
101
|
+
themeName: `${o}.list`,
|
|
102
|
+
tokens: n,
|
|
103
|
+
state: N,
|
|
104
|
+
ref: P,
|
|
105
|
+
children: g
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
k && R && /* @__PURE__ */ t($, { tokens: n, themeName: `${o}.errorMessage`, ...Y, children: R })
|
|
111
|
+
] })
|
|
112
|
+
] });
|
|
41
113
|
};
|
|
42
114
|
export {
|
|
43
|
-
|
|
115
|
+
Ee as default
|
|
44
116
|
};
|
package/index50.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),m=require("react"),j=require("react-aria"),L=require("react-stately"),u=require("./index28.js"),N=require("./index6.js"),S=require("./index3.js"),b=require("./index52.js"),C=require("./index51.js"),R={item:b,section:C},a=m.forwardRef((o,s)=>{const{themeName:e="listBox",tokens:n,customTheme:d,label:i,escapeKeyBehavior:x="clearSelection",linkElementType:h=N.Anchor,state:l,as:p,...B}=o,{listBoxProps:q,labelProps:f}=j.useListBox({...B,escapeKeyBehavior:x,label:i},l,s);return t.jsxs(u.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:d,as:p,children:[i&&t.jsx(S.default,{...f,themeName:`${e}.label`,tokens:n,children:i}),t.jsx(u.BoxWithForwardRef,{ref:s,as:"ul",...q,themeName:`${e}.list`,tokens:n,children:[...l.collection].map(c=>{const{key:y}=c,r=c.type??"item",$=R[r];return t.jsx($,{[r]:c,state:l,tokens:{...n,type:r},themeName:`${e}.${r}`,linkElementType:h},y)})})]})});a.displayName="ControlledListBox";const k=o=>{const s=L.useListState(o),e=m.useRef(null);return t.jsx(a,{...o,state:s,ref:e})};exports.ControlledListBox=a;exports.default=k;
|
package/index50.mjs
CHANGED
|
@@ -1,68 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import b, { BoxWithForwardRef as
|
|
7
|
-
import { Anchor as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
isSelected: A,
|
|
27
|
-
allowsSelection: D,
|
|
28
|
-
descriptionProps: m,
|
|
29
|
-
labelProps: a,
|
|
30
|
-
hasAction: $
|
|
31
|
-
} = q({ key: s }, n, c), i = n.selectionManager.isLink(s), j = n.selectionManager.canSelectItem(s), r = {
|
|
32
|
-
...y,
|
|
33
|
-
type: x,
|
|
34
|
-
isFocused: R,
|
|
35
|
-
isDisabled: S,
|
|
36
|
-
isFocusVisible: T,
|
|
37
|
-
isPressed: V,
|
|
38
|
-
isSelected: A,
|
|
39
|
-
allowsSelection: D,
|
|
40
|
-
hasAction: $,
|
|
41
|
-
isLink: i,
|
|
42
|
-
isSelectable: j
|
|
43
|
-
}, w = i ? E : H, B = i ? "a" : C, M = () => {
|
|
44
|
-
if (f.count(e) > 1) {
|
|
45
|
-
const [p, d] = f.toArray(e), h = k(p), u = k(d);
|
|
46
|
-
return !h && !u ? e : /* @__PURE__ */ O(I, { children: [
|
|
47
|
-
h && /* @__PURE__ */ o(b, { ...a, themeName: `${t}.label`, tokens: r, children: g(p, a) }),
|
|
48
|
-
u && /* @__PURE__ */ o(b, { ...m, themeName: `${t}.description`, tokens: r, children: g(d, m) })
|
|
49
|
-
] });
|
|
50
|
-
}
|
|
51
|
-
return e;
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ o(v, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ o(
|
|
54
|
-
w,
|
|
2
|
+
import { jsxs as L, jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as N, useRef as $ } from "react";
|
|
4
|
+
import { useListBox as k } from "react-aria";
|
|
5
|
+
import { useListState as C } from "react-stately";
|
|
6
|
+
import b, { BoxWithForwardRef as w } from "./index28.mjs";
|
|
7
|
+
import { Anchor as R } from "./index6.mjs";
|
|
8
|
+
import S from "./index3.mjs";
|
|
9
|
+
import T from "./index52.mjs";
|
|
10
|
+
import j from "./index51.mjs";
|
|
11
|
+
const P = {
|
|
12
|
+
item: T,
|
|
13
|
+
section: j
|
|
14
|
+
}, a = N((t, o) => {
|
|
15
|
+
const {
|
|
16
|
+
themeName: e = "listBox",
|
|
17
|
+
tokens: r,
|
|
18
|
+
customTheme: p,
|
|
19
|
+
label: n,
|
|
20
|
+
escapeKeyBehavior: c = "clearSelection",
|
|
21
|
+
linkElementType: f = R,
|
|
22
|
+
state: i,
|
|
23
|
+
as: h,
|
|
24
|
+
...x
|
|
25
|
+
} = t, { listBoxProps: u, labelProps: B } = k(
|
|
55
26
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
27
|
+
...x,
|
|
28
|
+
escapeKeyBehavior: c,
|
|
29
|
+
label: n
|
|
30
|
+
},
|
|
31
|
+
i,
|
|
32
|
+
o
|
|
33
|
+
);
|
|
34
|
+
return /* @__PURE__ */ L(b, { themeName: `${e}.wrapper`, tokens: r, customTheme: p, as: h, children: [
|
|
35
|
+
n && /* @__PURE__ */ m(S, { ...B, themeName: `${e}.label`, tokens: r, children: n }),
|
|
36
|
+
/* @__PURE__ */ m(w, { ref: o, as: "ul", ...u, themeName: `${e}.list`, tokens: r, children: [...i.collection].map((l) => {
|
|
37
|
+
const { key: d } = l, s = l.type ?? "item", y = P[s];
|
|
38
|
+
return /* @__PURE__ */ m(
|
|
39
|
+
y,
|
|
40
|
+
{
|
|
41
|
+
[s]: l,
|
|
42
|
+
state: i,
|
|
43
|
+
tokens: { ...r, type: s },
|
|
44
|
+
themeName: `${e}.${s}`,
|
|
45
|
+
linkElementType: f
|
|
46
|
+
},
|
|
47
|
+
d
|
|
48
|
+
);
|
|
49
|
+
}) })
|
|
50
|
+
] });
|
|
51
|
+
});
|
|
52
|
+
a.displayName = "ControlledListBox";
|
|
53
|
+
const z = (t) => {
|
|
54
|
+
const o = C(t), e = $(null);
|
|
55
|
+
return /* @__PURE__ */ m(a, { ...t, state: o, ref: e });
|
|
65
56
|
};
|
|
66
57
|
export {
|
|
67
|
-
|
|
58
|
+
a as ControlledListBox,
|
|
59
|
+
z as default
|
|
68
60
|
};
|
package/index51.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),C=require("./index160.js"),u=require("react-aria"),D=require("./index94.js"),a=require("./index28.js"),y=require("./index3.js"),B=require("./index52.js"),S=({section:p,state:s,...o})=>{var c,l;const{key:d,rendered:n,props:h,level:x,hasChildNodes:g,type:P}=p,{themeName:e="listBox.section",tokens:r,as:f="li",customTheme:q,...k}=D.mergeDefaultComponentProps(o,h),i={...r,type:P,level:x.toString(),hasChildNodes:g},{itemProps:N,headingProps:$,groupProps:j}=u.useListBoxSection(o);return t.jsxs(a.default,{as:f,themeName:`${e}.wrapper`,tokens:i,...u.mergeProps(C.filterDOMProps(k),N),customTheme:q,children:[n&&t.jsx(y.default,{themeName:`${e}.heading`,tokens:r,...$,children:n}),t.jsx(a.default,{as:"ul",themeName:`${e}.group`,tokens:i,...j,children:[...((l=(c=s.collection).getChildren)==null?void 0:l.call(c,d))??[]].map(m=>t.jsx(B,{item:m,state:s,tokens:r,themeName:`${e}.item`},m.key))})]})};module.exports=S;
|
package/index51.mjs
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as B, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { filterDOMProps as C } from "./index160.mjs";
|
|
4
|
+
import { useListBoxSection as S, mergeProps as T } from "react-aria";
|
|
5
|
+
import { mergeDefaultComponentProps as b } from "./index94.mjs";
|
|
6
|
+
import l from "./index28.mjs";
|
|
7
|
+
import j from "./index3.mjs";
|
|
8
|
+
import v from "./index52.mjs";
|
|
9
|
+
const A = ({
|
|
10
|
+
section: a,
|
|
11
|
+
state: r,
|
|
12
|
+
...s
|
|
13
|
+
}) => {
|
|
14
|
+
var n, p;
|
|
15
|
+
const { key: d, rendered: m, props: h, level: f, hasChildNodes: g, type: u } = a, {
|
|
16
|
+
themeName: e = "listBox.section",
|
|
17
|
+
tokens: o,
|
|
18
|
+
as: x = "li",
|
|
19
|
+
customTheme: P,
|
|
20
|
+
...$
|
|
21
|
+
} = b(s, h), i = {
|
|
22
|
+
...o,
|
|
23
|
+
type: u,
|
|
24
|
+
level: f.toString(),
|
|
25
|
+
hasChildNodes: g
|
|
26
|
+
}, { itemProps: k, headingProps: N, groupProps: y } = S(s);
|
|
27
|
+
return /* @__PURE__ */ B(
|
|
28
|
+
l,
|
|
29
|
+
{
|
|
30
|
+
as: x,
|
|
31
|
+
themeName: `${e}.wrapper`,
|
|
32
|
+
tokens: i,
|
|
33
|
+
...T(C($), k),
|
|
34
|
+
customTheme: P,
|
|
35
|
+
children: [
|
|
36
|
+
m && /* @__PURE__ */ t(j, { themeName: `${e}.heading`, tokens: o, ...N, children: m }),
|
|
37
|
+
/* @__PURE__ */ t(l, { as: "ul", themeName: `${e}.group`, tokens: i, ...y, children: [...((p = (n = r.collection).getChildren) == null ? void 0 : p.call(n, d)) ?? []].map((c) => /* @__PURE__ */ t(v, { item: c, state: r, tokens: o, themeName: `${e}.item` }, c.key)) })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
5
42
|
export {
|
|
6
|
-
|
|
43
|
+
A as default
|
|
7
44
|
};
|
package/index52.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("react"),l=require("react-aria"),M=require("./index94.js"),a=require("./index28.js"),O=require("./index6.js"),B=({item:d,state:t,...g})=>{const{key:o,rendered:s,type:b}=d,{themeName:i="option",tokens:C,as:P="li",customTheme:j,linkElementType:q=O.Anchor,...E}=M.mergeDefaultComponentProps(g,d.props),u=e.useRef(null),{optionProps:R,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,descriptionProps:m,labelProps:p,hasAction:N}=l.useOption({key:o},t,u),r=t.selectionManager.isLink(o),S=t.selectionManager.canSelectItem(o),c={...C,type:b,isFocused:y,isDisabled:F,isFocusVisible:V,isPressed:A,isSelected:D,allowsSelection:L,hasAction:N,isLink:r,isSelectable:S},T=r?q:a.BoxWithForwardRef,$=r?"a":P,w=()=>{if(e.Children.count(s)>1){const[h,f]=e.Children.toArray(s),k=e.isValidElement(h),x=e.isValidElement(f);return!k&&!x?s:n.jsxs(n.Fragment,{children:[k&&n.jsx(a.default,{...p,themeName:`${i}.label`,tokens:c,children:e.cloneElement(h,p)}),x&&n.jsx(a.default,{...m,themeName:`${i}.description`,tokens:c,children:e.cloneElement(f,m)})]})}return s};return n.jsx(l.FocusRing,{focusRingClass:"has-focus-ring",children:n.jsx(T,{as:$,...l.mergeProps(E,R),ref:u,themeName:`${i}.option`,tokens:c,customTheme:j,children:w()})})};module.exports=B;
|