@okam/stack-ui 1.42.0 → 1.42.2
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 +41 -0
- package/components/ShareButton/interface.d.ts +0 -1
- package/components/ShareButton/utils/useLinkedinShareUrl.d.ts +2 -0
- package/components/ShareButton/utils/useXShareUrl.d.ts +2 -0
- package/index.d.ts +3 -1
- package/index.js +1 -1
- package/index.mjs +72 -70
- package/index10.js +1 -1
- package/index10.mjs +1 -1
- package/index101.js +1 -1
- package/index101.mjs +6 -6
- package/index102.js +2 -1
- package/index102.mjs +8 -25
- package/index103.js +1 -2
- package/index103.mjs +24 -10
- package/index104.js +1 -1
- package/index104.mjs +9 -18
- package/index105.js +1 -1
- package/index105.mjs +15 -47
- package/index106.js +1 -1
- package/index106.mjs +47 -38
- package/index107.js +1 -1
- package/index107.mjs +39 -10
- package/index108.js +1 -1
- package/index108.mjs +10 -35
- package/index109.js +1 -1
- package/index109.mjs +35 -13
- package/index110.js +1 -1
- package/index110.mjs +10 -22
- package/index111.js +1 -1
- package/index111.mjs +20 -16
- package/index112.js +1 -1
- package/index112.mjs +21 -11
- package/index113.js +1 -1
- package/index113.mjs +13 -12
- package/index114.js +1 -1
- package/index114.mjs +11 -34
- package/index115.js +2 -1
- package/index115.mjs +37 -4
- package/index116.js +1 -1
- package/index116.mjs +4 -2
- package/index117.js +1 -6
- package/index117.mjs +2 -94
- package/index118.js +6 -1
- package/index118.mjs +79 -55
- package/index119.js +1 -1
- package/index119.mjs +62 -33
- package/index120.js +1 -42
- package/index120.mjs +34 -67
- package/index121.js +38 -60
- package/index121.mjs +65 -219
- package/index122.js +63 -9
- package/index122.mjs +214 -57
- package/index123.js +10 -1
- package/index123.mjs +61 -35
- package/index124.js +1 -1
- package/index124.mjs +40 -8
- package/index125.js +1 -6
- package/index125.mjs +10 -46
- package/index126.js +6 -5
- package/index126.mjs +44 -83
- package/index127.js +5 -1
- package/index127.mjs +88 -6
- package/index128.js +1 -12
- package/index128.mjs +6 -40
- package/index129.js +12 -1
- package/index129.mjs +34 -83
- package/index13.js +1 -1
- package/index13.mjs +1 -1
- package/index130.js +1 -1
- package/index130.mjs +88 -12
- package/index131.js +1 -1
- package/index131.mjs +13 -8
- package/index132.js +1 -1
- package/index132.mjs +7 -28
- package/index133.js +1 -1
- package/index133.mjs +24 -8
- package/index134.js +1 -7
- package/index134.mjs +7 -13
- package/index135.js +6 -14
- package/index135.mjs +13 -65
- package/index136.js +15 -1
- package/index136.mjs +71 -7
- package/index137.js +1 -41
- package/index137.mjs +7 -106
- package/index138.js +32 -38
- package/index138.mjs +78 -74
- package/index139.js +46 -15
- package/index139.mjs +96 -19
- package/index14.js +1 -1
- package/index14.mjs +1 -1
- package/index140.js +16 -1
- package/index140.mjs +20 -37
- package/index141.js +1 -2
- package/index141.mjs +42 -49
- package/index142.js +2 -1
- package/index142.mjs +48 -22
- package/index143.js +1 -2
- package/index143.mjs +22 -8
- package/index144.js +1 -1
- package/index144.mjs +7 -11
- package/index145.js +2 -1
- package/index145.mjs +13 -240
- package/index146.js +1 -1
- package/index146.mjs +240 -52
- package/index147.js +1 -1
- package/index147.mjs +52 -4
- package/index148.js +1 -1
- package/index148.mjs +4 -11
- package/index149.js +1 -1
- package/index149.mjs +11 -14
- package/index150.js +1 -2
- package/index150.mjs +13 -38
- package/index151.js +1 -1
- package/index151.mjs +35 -20
- package/index152.js +2 -1
- package/index152.mjs +23 -43
- package/index153.js +1 -1
- package/index153.mjs +42 -18
- package/index154.js +1 -1
- package/index154.mjs +18 -36
- package/index155.js +1 -1
- package/index155.mjs +35 -13
- package/index156.js +1 -2
- package/index156.mjs +15 -12
- package/index157.js +1 -1
- package/index157.mjs +12 -38
- package/index158.js +2 -1
- package/index158.mjs +38 -10
- package/index159.js +1 -1
- package/index159.mjs +10 -13
- package/index16.js +1 -1
- package/index16.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +13 -38
- package/index161.js +1 -2
- package/index161.mjs +38 -24
- package/index162.js +2 -1
- package/index162.mjs +23 -21
- package/index163.js +1 -1
- package/index163.mjs +21 -41
- package/index164.js +1 -1
- package/index164.mjs +42 -25
- package/index165.js +1 -1
- package/index165.mjs +25 -40
- package/index166.js +1 -2
- package/index166.mjs +39 -56
- package/index167.js +2 -1
- package/index167.mjs +57 -38
- package/index168.js +1 -1
- package/index168.mjs +34 -26
- package/index169.js +1 -2
- package/index169.mjs +30 -8
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +7 -8
- package/index171.js +2 -1
- package/index171.mjs +10 -30
- package/index172.js +1 -1
- package/index172.mjs +30 -15
- package/index173.js +1 -1
- package/index173.mjs +13 -15
- package/index174.js +1 -2
- package/index174.mjs +16 -47
- package/index175.js +2 -1
- package/index175.mjs +46 -36
- package/index176.js +1 -1
- package/index176.mjs +36 -27
- package/index177.js +1 -1
- package/index177.mjs +27 -20
- package/index178.js +1 -1
- package/index178.mjs +18 -32
- package/index179.js +1 -1
- package/index179.mjs +35 -21
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +21 -56
- package/index181.js +1 -1
- package/index181.mjs +57 -46
- package/index182.js +1 -1
- package/index182.mjs +46 -12
- package/index183.js +1 -1
- package/index183.mjs +11 -2025
- package/index184.js +1 -1
- package/index184.mjs +2020 -54
- package/index185.js +1 -1
- package/index185.mjs +57 -186
- package/index186.js +1 -1
- package/index186.mjs +188 -5
- package/index187.js +1 -2
- package/index187.mjs +5 -49
- package/index188.js +2 -1
- package/index188.mjs +49 -11
- package/index189.js +1 -1
- package/index189.mjs +11 -203
- package/index19.js +1 -1
- package/index19.mjs +1 -1
- package/index190.js +1 -1
- package/index190.mjs +190 -51
- package/index191.js +1 -1
- package/index191.mjs +51 -130
- package/index192.js +1 -1
- package/index192.mjs +130 -111
- package/index193.js +1 -1
- package/index193.mjs +105 -205
- package/index194.js +1 -1
- package/index194.mjs +203 -169
- package/index195.js +1 -1
- package/index195.mjs +182 -61
- package/index196.js +1 -1
- package/index196.mjs +60 -270
- package/index197.js +1 -1
- package/index197.mjs +270 -89
- package/index198.js +1 -1
- package/index198.mjs +92 -182
- package/index199.js +1 -1
- package/index199.mjs +182 -78
- package/index2.js +1 -1
- package/index2.mjs +25 -25
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +75 -49
- package/index201.js +1 -1
- package/index201.mjs +49 -117
- package/index202.js +1 -1
- package/index202.mjs +118 -108
- package/index203.js +1 -1
- package/index203.mjs +106 -112
- package/index204.js +1 -1
- package/index204.mjs +113 -63
- package/index205.js +1 -1
- package/index205.mjs +70 -108
- package/index206.js +1 -1
- package/index206.mjs +108 -50
- package/index207.js +1 -1
- package/index207.mjs +34 -75
- package/index208.js +1 -1
- package/index208.mjs +71 -48
- package/index209.js +1 -1
- package/index209.mjs +57 -43
- package/index21.js +1 -1
- package/index21.mjs +3 -3
- package/index210.js +1 -1
- package/index210.mjs +43 -86
- package/index211.js +1 -5
- package/index211.mjs +81 -62
- package/index212.js +5 -1
- package/index212.mjs +77 -127
- package/index213.js +1 -1
- package/index213.mjs +123 -183
- package/index214.js +1 -1
- package/index214.mjs +182 -116
- package/index215.js +1 -1
- package/index215.mjs +122 -132
- package/index216.js +1 -1
- package/index216.mjs +125 -35
- package/index217.js +1 -1
- package/index217.mjs +42 -12
- package/index218.js +1 -1
- package/index218.mjs +12 -93
- package/index219.js +1 -1
- package/index219.mjs +87 -98
- package/index22.js +1 -1
- package/index22.mjs +1 -1
- package/index220.js +1 -1
- package/index220.mjs +106 -4
- package/index221.js +1 -1
- package/index221.mjs +4 -3
- package/index222.js +1 -1
- package/index222.mjs +3 -125
- package/index223.js +1 -1
- package/index223.mjs +117 -21
- package/index224.js +1 -1
- package/index224.mjs +15 -37
- package/index225.js +1 -1
- package/index225.mjs +41 -34
- package/index226.js +1 -1
- package/index226.mjs +32 -25
- package/index227.js +1 -1
- package/index227.mjs +22 -98
- package/index228.js +1 -1
- package/index228.mjs +99 -63
- package/index229.js +1 -1
- package/index229.mjs +55 -79
- package/index23.js +1 -1
- package/index23.mjs +3 -3
- package/index230.js +1 -1
- package/index230.mjs +102 -98
- package/index231.js +1 -1
- package/index231.mjs +98 -126
- package/index232.js +1 -1
- package/index232.mjs +135 -22
- package/index233.js +1 -1
- package/index233.mjs +193 -136
- package/index234.js +1 -1
- package/index234.mjs +21 -196
- package/index235.js +1 -1
- package/index235.mjs +4 -23
- package/index236.js +1 -1
- package/index236.mjs +29 -4
- package/index237.js +1 -1
- package/index237.mjs +47 -26
- package/index238.js +1 -1
- package/index238.mjs +49 -44
- package/index239.js +1 -1
- package/index239.mjs +44 -50
- package/index240.js +1 -1
- package/index240.mjs +92 -43
- package/index241.js +1 -1
- package/index241.mjs +4 -96
- package/index242.js +1 -1
- package/index242.mjs +6 -5
- package/index243.js +1 -1
- package/index243.mjs +41 -6
- package/index244.js +1 -1
- package/index244.mjs +72 -42
- package/index245.js +1 -1
- package/index245.mjs +15 -72
- package/index246.js +1 -1
- package/index246.mjs +67 -13
- package/index247.js +1 -1
- package/index247.mjs +7 -68
- package/index248.js +1 -1
- package/index248.mjs +11 -7
- package/index249.js +1 -1
- package/index249.mjs +46 -10
- package/index25.js +1 -1
- package/index25.mjs +2 -2
- package/index250.js +1 -1
- package/index250.mjs +118 -40
- package/index251.js +1 -1
- package/index251.mjs +22 -68
- package/index252.js +1 -1
- package/index252.mjs +62 -370
- package/index253.js +1 -1
- package/index253.mjs +379 -44
- package/index254.js +1 -1
- package/index254.mjs +45 -23
- package/index255.js +1 -1
- package/index255.mjs +24 -24
- package/index256.js +1 -1
- package/index256.mjs +23 -11
- package/index257.js +1 -1
- package/index257.mjs +12 -4
- package/index258.js +1 -1
- package/index258.mjs +4 -14
- package/index259.js +1 -1
- package/index259.mjs +13 -41
- package/index26.js +1 -1
- package/index26.mjs +4 -4
- package/index260.js +1 -1
- package/index260.mjs +37 -52
- package/index261.js +1 -1
- package/index261.mjs +55 -26
- package/index262.js +1 -1
- package/index262.mjs +27 -30
- package/index263.js +1 -1
- package/index263.mjs +31 -10
- package/index264.js +1 -1
- package/index264.mjs +10 -9
- package/index265.js +1 -1
- package/index265.mjs +9 -5
- package/index266.js +1 -1
- package/index266.mjs +5 -7
- package/index267.js +1 -1
- package/index267.mjs +7 -29
- package/index268.js +1 -1
- package/index268.mjs +27 -16
- package/index269.js +1 -1
- package/index269.mjs +17 -12
- package/index27.js +1 -1
- package/index27.mjs +7 -7
- package/index270.js +1 -1
- package/index270.mjs +13 -43
- package/index271.js +1 -1
- package/index271.mjs +42 -7
- package/index272.js +1 -1
- package/index272.mjs +8 -17
- package/index273.js +1 -1
- package/index273.mjs +18 -3
- package/index274.js +1 -1
- package/index274.mjs +3 -5
- package/index275.js +1 -1
- package/index275.mjs +4 -19
- package/index276.js +1 -1
- package/index276.mjs +19 -5
- package/index277.js +1 -1
- package/index277.mjs +5 -121
- package/index278.js +1 -1
- package/index278.mjs +121 -43
- package/index279.js +1 -1
- package/index279.mjs +43 -230
- package/index28.js +1 -1
- package/index28.mjs +2 -2
- package/index280.js +1 -1
- package/index280.mjs +226 -27
- package/index281.js +1 -1
- package/index281.mjs +30 -8
- package/index282.js +1 -1
- package/index282.mjs +9 -3
- package/index283.js +1 -1
- package/index283.mjs +3 -36
- package/index284.js +1 -1
- package/index284.mjs +36 -5
- package/index285.js +1 -1
- package/index285.mjs +5 -29
- package/index286.js +1 -1
- package/index286.mjs +29 -6
- package/index287.js +1 -1
- package/index287.mjs +6 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -3
- package/index289.js +1 -1
- package/index289.mjs +4 -5
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index290.js +1 -1
- package/index290.mjs +1 -1
- package/index291.js +1 -1
- package/index291.mjs +4 -4
- 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 +1 -1
- package/index297.js +1 -1
- package/index297.mjs +4 -4
- package/index298.js +1 -1
- package/index298.mjs +4 -4
- package/index299.js +1 -1
- package/index299.mjs +1 -1
- package/index300.js +1 -1
- package/index300.mjs +4 -4
- package/index301.js +1 -1
- package/index301.mjs +4 -4
- package/index302.js +1 -1
- package/index302.mjs +1 -1
- package/index303.js +1 -1
- package/index303.mjs +1 -1
- package/index304.js +1 -1
- package/index304.mjs +4 -4
- package/index305.js +1 -1
- package/index305.mjs +4 -4
- package/index306.js +1 -1
- package/index306.mjs +1 -1
- package/index307.js +1 -1
- package/index307.mjs +4 -4
- package/index308.js +1 -1
- package/index308.mjs +4 -4
- package/index309.js +1 -1
- package/index309.mjs +4 -4
- package/index310.js +1 -1
- package/index310.mjs +1 -1
- package/index311.js +1 -1
- package/index311.mjs +4 -4
- package/index312.js +1 -1
- package/index312.mjs +4 -4
- package/index313.js +1 -1
- package/index313.mjs +4 -4
- package/index314.js +1 -1
- package/index314.mjs +4 -4
- package/index315.js +1 -1
- package/index315.mjs +4 -4
- package/index316.js +1 -1
- package/index316.mjs +1 -1
- package/index317.js +1 -1
- package/index317.mjs +1 -1
- package/index318.js +1 -1
- package/index318.mjs +1 -1
- package/index319.js +1 -1
- package/index319.mjs +4 -4
- package/index32.js +1 -1
- package/index32.mjs +2 -2
- package/index320.js +1 -1
- package/index320.mjs +4 -4
- package/index321.js +1 -1
- package/index321.mjs +4 -4
- package/index322.js +1 -1
- package/index322.mjs +4 -4
- package/index323.js +1 -1
- package/index323.mjs +5 -7
- package/index324.js +1 -1
- package/index324.mjs +7 -28
- package/index325.js +1 -1
- package/index325.mjs +24 -89
- package/index326.js +1 -1
- package/index326.mjs +88 -58
- package/index327.js +1 -1
- package/index327.mjs +62 -9
- package/index328.js +1 -1
- package/index328.mjs +8 -24
- package/index329.js +1 -1
- package/index329.mjs +25 -33
- package/index33.js +1 -1
- package/index33.mjs +3 -3
- package/index330.js +1 -1
- package/index330.mjs +33 -6
- package/index331.js +1 -1
- package/index331.mjs +5 -5
- package/index332.js +1 -1
- package/index332.mjs +6 -50
- package/index333.js +1 -1
- package/index333.mjs +49 -28
- package/index334.js +1 -1
- package/index334.mjs +29 -14
- package/index335.js +1 -1
- package/index335.mjs +14 -21
- package/index336.js +1 -1
- package/index336.mjs +20 -28
- package/index337.js +1 -1
- package/index337.mjs +27 -64
- package/index338.js +1 -1
- package/index338.mjs +66 -53
- package/index339.js +1 -1
- package/index339.mjs +53 -54
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index340.js +1 -1
- package/index340.mjs +54 -281
- package/index341.js +1 -1
- package/index341.mjs +281 -20
- package/index342.js +1 -1
- package/index342.mjs +20 -3
- package/index343.js +1 -1
- package/index343.mjs +3 -4
- package/index344.js +1 -1
- package/index344.mjs +4 -8
- package/index345.js +1 -1
- package/index345.mjs +7 -4
- package/index346.js +1 -1
- package/index346.mjs +5 -30
- package/index347.js +1 -1
- package/index347.mjs +27 -164
- package/index348.js +1 -0
- package/index348.mjs +170 -0
- package/index35.js +1 -1
- package/index35.mjs +2 -2
- package/index37.js +1 -1
- package/index37.mjs +3 -3
- package/index38.js +1 -1
- package/index38.mjs +3 -3
- package/index39.js +1 -1
- package/index39.mjs +3 -3
- package/index4.js +1 -1
- package/index4.mjs +2 -2
- package/index41.js +1 -1
- package/index41.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +2 -2
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index47.js +1 -1
- package/index47.mjs +3 -3
- package/index51.js +1 -1
- package/index51.mjs +1 -1
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index53.js +1 -1
- package/index53.mjs +3 -3
- package/index54.js +1 -1
- package/index54.mjs +1 -1
- package/index55.js +1 -1
- package/index55.mjs +2 -2
- package/index56.js +1 -1
- package/index56.mjs +2 -2
- package/index57.js +1 -1
- package/index57.mjs +2 -2
- package/index59.js +1 -1
- package/index59.mjs +2 -2
- package/index60.js +1 -1
- package/index60.mjs +1 -1
- package/index8.js +1 -1
- package/index8.mjs +32 -32
- package/index9.js +1 -1
- package/index9.mjs +1 -1
- package/index90.js +1 -1
- package/index90.mjs +1 -1
- package/index96.js +1 -1
- package/index96.mjs +1 -1
- package/package.json +1 -1
- package/components/ShareButton/utils/useTwitterShareUrl.d.ts +0 -2
package/index348.mjs
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import y from "react";
|
|
2
|
+
class z {
|
|
3
|
+
build(e, l) {
|
|
4
|
+
return this.context = l, p(() => this.iterateCollection(e));
|
|
5
|
+
}
|
|
6
|
+
*iterateCollection(e) {
|
|
7
|
+
let { children: l, items: u } = e;
|
|
8
|
+
if (y.isValidElement(l) && l.type === y.Fragment) yield* this.iterateCollection({
|
|
9
|
+
children: l.props.children,
|
|
10
|
+
items: u
|
|
11
|
+
});
|
|
12
|
+
else if (typeof l == "function") {
|
|
13
|
+
if (!u) throw new Error("props.children was a function but props.items is missing");
|
|
14
|
+
let n = 0;
|
|
15
|
+
for (let r of u)
|
|
16
|
+
yield* this.getFullNode({
|
|
17
|
+
value: r,
|
|
18
|
+
index: n
|
|
19
|
+
}, {
|
|
20
|
+
renderer: l
|
|
21
|
+
}), n++;
|
|
22
|
+
} else {
|
|
23
|
+
let n = [];
|
|
24
|
+
y.Children.forEach(l, (t) => {
|
|
25
|
+
t && n.push(t);
|
|
26
|
+
});
|
|
27
|
+
let r = 0;
|
|
28
|
+
for (let t of n) {
|
|
29
|
+
let d = this.getFullNode({
|
|
30
|
+
element: t,
|
|
31
|
+
index: r
|
|
32
|
+
}, {});
|
|
33
|
+
for (let m of d)
|
|
34
|
+
r++, yield m;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
getKey(e, l, u, n) {
|
|
39
|
+
if (e.key != null) return e.key;
|
|
40
|
+
if (l.type === "cell" && l.key != null) return `${n}${l.key}`;
|
|
41
|
+
let r = l.value;
|
|
42
|
+
if (r != null) {
|
|
43
|
+
var t;
|
|
44
|
+
let d = (t = r.key) !== null && t !== void 0 ? t : r.id;
|
|
45
|
+
if (d == null) throw new Error("No key found for item");
|
|
46
|
+
return d;
|
|
47
|
+
}
|
|
48
|
+
return n ? `${n}.${l.index}` : `$.${l.index}`;
|
|
49
|
+
}
|
|
50
|
+
getChildState(e, l) {
|
|
51
|
+
return {
|
|
52
|
+
renderer: l.renderer || e.renderer
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
*getFullNode(e, l, u, n) {
|
|
56
|
+
if (y.isValidElement(e.element) && e.element.type === y.Fragment) {
|
|
57
|
+
let i = [];
|
|
58
|
+
y.Children.forEach(e.element.props.children, (s) => {
|
|
59
|
+
i.push(s);
|
|
60
|
+
});
|
|
61
|
+
var r;
|
|
62
|
+
let o = (r = e.index) !== null && r !== void 0 ? r : 0;
|
|
63
|
+
for (const s of i) yield* this.getFullNode({
|
|
64
|
+
element: s,
|
|
65
|
+
index: o++
|
|
66
|
+
}, l, u, n);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
let t = e.element;
|
|
70
|
+
if (!t && e.value && l && l.renderer) {
|
|
71
|
+
let i = this.cache.get(e.value);
|
|
72
|
+
if (i && (!i.shouldInvalidate || !i.shouldInvalidate(this.context))) {
|
|
73
|
+
i.index = e.index, i.parentKey = n ? n.key : null, yield i;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
t = l.renderer(e.value);
|
|
77
|
+
}
|
|
78
|
+
if (y.isValidElement(t)) {
|
|
79
|
+
let i = t.type;
|
|
80
|
+
if (typeof i != "function" && typeof i.getCollectionNode != "function") {
|
|
81
|
+
let h = t.type;
|
|
82
|
+
throw new Error(`Unknown element <${h}> in collection.`);
|
|
83
|
+
}
|
|
84
|
+
let o = i.getCollectionNode(t.props, this.context);
|
|
85
|
+
var d;
|
|
86
|
+
let s = (d = e.index) !== null && d !== void 0 ? d : 0, v = o.next();
|
|
87
|
+
for (; !v.done && v.value; ) {
|
|
88
|
+
let h = v.value;
|
|
89
|
+
e.index = s;
|
|
90
|
+
var m;
|
|
91
|
+
let b = (m = h.key) !== null && m !== void 0 ? m : null;
|
|
92
|
+
b == null && (b = h.element ? null : this.getKey(t, e, l, u));
|
|
93
|
+
let V = [
|
|
94
|
+
...this.getFullNode({
|
|
95
|
+
...h,
|
|
96
|
+
key: b,
|
|
97
|
+
index: s,
|
|
98
|
+
wrapper: I(e.wrapper, h.wrapper)
|
|
99
|
+
}, this.getChildState(l, h), u ? `${u}${t.key}` : t.key, n)
|
|
100
|
+
];
|
|
101
|
+
for (let c of V) {
|
|
102
|
+
var x, k;
|
|
103
|
+
c.value = (k = (x = h.value) !== null && x !== void 0 ? x : e.value) !== null && k !== void 0 ? k : null, c.value && this.cache.set(c.value, c);
|
|
104
|
+
var w;
|
|
105
|
+
if (e.type && c.type !== e.type) throw new Error(`Unsupported type <${E(c.type)}> in <${E((w = n == null ? void 0 : n.type) !== null && w !== void 0 ? w : "unknown parent type")}>. Only <${E(e.type)}> is supported.`);
|
|
106
|
+
s++, yield c;
|
|
107
|
+
}
|
|
108
|
+
v = o.next(V);
|
|
109
|
+
}
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (e.key == null || e.type == null) return;
|
|
113
|
+
let F = this;
|
|
114
|
+
var g, C;
|
|
115
|
+
let $ = {
|
|
116
|
+
type: e.type,
|
|
117
|
+
props: e.props,
|
|
118
|
+
key: e.key,
|
|
119
|
+
parentKey: n ? n.key : null,
|
|
120
|
+
value: (g = e.value) !== null && g !== void 0 ? g : null,
|
|
121
|
+
level: n ? n.level + 1 : 0,
|
|
122
|
+
index: e.index,
|
|
123
|
+
rendered: e.rendered,
|
|
124
|
+
textValue: (C = e.textValue) !== null && C !== void 0 ? C : "",
|
|
125
|
+
"aria-label": e["aria-label"],
|
|
126
|
+
wrapper: e.wrapper,
|
|
127
|
+
shouldInvalidate: e.shouldInvalidate,
|
|
128
|
+
hasChildNodes: e.hasChildNodes || !1,
|
|
129
|
+
childNodes: p(function* () {
|
|
130
|
+
if (!e.hasChildNodes || !e.childNodes) return;
|
|
131
|
+
let i = 0;
|
|
132
|
+
for (let o of e.childNodes()) {
|
|
133
|
+
o.key != null && (o.key = `${$.key}${o.key}`);
|
|
134
|
+
let s = F.getFullNode({
|
|
135
|
+
...o,
|
|
136
|
+
index: i
|
|
137
|
+
}, F.getChildState(l, o), $.key, $);
|
|
138
|
+
for (let v of s)
|
|
139
|
+
i++, yield v;
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
};
|
|
143
|
+
yield $;
|
|
144
|
+
}
|
|
145
|
+
constructor() {
|
|
146
|
+
this.cache = /* @__PURE__ */ new WeakMap();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function p(f) {
|
|
150
|
+
let e = [], l = null;
|
|
151
|
+
return {
|
|
152
|
+
*[Symbol.iterator]() {
|
|
153
|
+
for (let u of e) yield u;
|
|
154
|
+
l || (l = f());
|
|
155
|
+
for (let u of l)
|
|
156
|
+
e.push(u), yield u;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function I(f, e) {
|
|
161
|
+
if (f && e) return (l) => f(e(l));
|
|
162
|
+
if (f) return f;
|
|
163
|
+
if (e) return e;
|
|
164
|
+
}
|
|
165
|
+
function E(f) {
|
|
166
|
+
return f[0].toUpperCase() + f.slice(1);
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
z as CollectionBuilder
|
|
170
|
+
};
|
package/index35.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),L=require("react"),M=require("react-aria"),U=require("react-stately"),a=require("./index36.js"),W=require("./index38.js"),G=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),L=require("react"),M=require("react-aria"),U=require("react-stately"),a=require("./index36.js"),W=require("./index38.js"),G=require("./index162.js"),J=require("./index3.js"),Q=require("./index33.js"),r=require("./index34.js"),V=require("./index158.js");function X(o){const{popoverPlacement:x="bottom start",placement:P="bottom start",buttonLabel:g,description:d,themeName:t="datePicker",tokens:l,customTheme:j,icon:f,buttonContent:b,innerDateFieldSeparator:c=" - ",outerDateFieldSeparator:u=" - ",invalidIndicator:p="❌",children:q,label:m,containerPadding:v,shouldCloseOnInteractOutside:N,arrowBoundaryOffset:$,isNonModal:D,isKeyboardDismissDisabled:F,arrowSize:R,boundaryElement:I,maxHeight:S,shouldUpdatePosition:C}=o,y=P??x,s=U.useDateRangePickerState(o),{isInvalid:O,isOpen:T,hasTime:w}=s,i=L.useRef(null),{labelProps:z,descriptionProps:A,groupProps:B,startFieldProps:h,endFieldProps:k,buttonProps:E,dialogProps:H,calendarProps:K}=M.useDateRangePicker(o,s,i),n={...l,isInvalid:O,isOpen:T,hasTime:w};return e.jsxs(a.default,{themeName:`${t}.container`,tokens:n,customTheme:j,children:[m&&e.jsx(J.default,{as:"span",themeName:`${t}.label`,tokens:n,...z,children:m}),d&&e.jsx(a.default,{as:"div",themeName:`${t}.description`,tokens:n,...A,children:d}),e.jsxs(V,{themeName:t,tokens:n,ref:i,groupProps:B,buttonProps:E,buttonLabel:g,buttonContent:b,icon:f,children:[e.jsx(r,{themeName:t,tokens:{...n,position:"outer",range:"start"},...h}),u&&e.jsx(a.default,{as:"span",themeName:`${t}.dateFieldSeparator`,tokens:n,children:u}),e.jsx(r,{themeName:t,tokens:{...n,position:"outer",range:"end"},...k}),s.isInvalid&&e.jsx(a.default,{as:"span",themeName:`${t}.invalidIndicator`,tokens:{...n,position:"outer"},children:p})]}),s.isOpen&&e.jsx(Q.CalendarPopover,{themeName:t,tokens:n,triggerRef:i,state:s,placement:y,containerPadding:v,shouldCloseOnInteractOutside:N,arrowBoundaryOffset:$,isNonModal:D,isKeyboardDismissDisabled:F,arrowSize:R,boundaryElement:I,maxHeight:S,shouldUpdatePosition:C,children:e.jsxs(G.Dialog,{themeName:`${t}.dialog`,tokens:n,...H,children:[q,e.jsxs(a.default,{themeName:`${t}.dateFieldContainer`,tokens:n,children:[e.jsx(r,{themeName:t,tokens:{...n,position:"inner",range:"start"},...h}),c&&e.jsx(a.default,{as:"span",themeName:`${t}.dateFieldSeparator`,tokens:n,children:c}),e.jsx(r,{themeName:t,tokens:{...n,position:"inner",range:"end"},...k}),s.isInvalid&&e.jsx(a.default,{as:"span",themeName:`${t}.invalidIndicator`,tokens:{...n,position:"inner"},children:p})]}),e.jsx(W,{...K,tokens:l})]})})]})}module.exports=X;
|
package/index35.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import { useDateRangePicker as q } from "react-aria";
|
|
|
5
5
|
import { useDateRangePickerState as A } from "react-stately";
|
|
6
6
|
import n from "./index36.mjs";
|
|
7
7
|
import G from "./index38.mjs";
|
|
8
|
-
import { Dialog as J } from "./
|
|
8
|
+
import { Dialog as J } from "./index162.mjs";
|
|
9
9
|
import Q from "./index3.mjs";
|
|
10
10
|
import { CalendarPopover as V } from "./index33.mjs";
|
|
11
11
|
import i from "./index34.mjs";
|
|
12
|
-
import X from "./
|
|
12
|
+
import X from "./index158.mjs";
|
|
13
13
|
function de(s) {
|
|
14
14
|
const {
|
|
15
15
|
popoverPlacement: f = "bottom start",
|
package/index37.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),B=require("./
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),B=require("./index166.js"),$=require("@react-aria/i18n"),P=require("react"),v=require("react-aria"),y=require("react-stately"),o=require("./index36.js"),F=require("./index3.js"),S=require("./index167.js"),b=require("./index168.js");function g({buttons:c,tokens:i,customTheme:l,themeName:e="calendar",gridProps:u,value:s,...a}){const{locale:d}=$.useLocale(),r=y.useCalendarState({...a,locale:d,value:s,createCalendar:B.createCalendar}),{isDisabled:x,isReadOnly:q,isValueInvalid:C,isFocused:f}=r,j=P.useRef(null),{calendarProps:k,prevButtonProps:p,nextButtonProps:R,title:h}=v.useCalendar({...a,value:s},r),t={isDisabled:x,isReadOnly:q,isValueInvalid:C,isFocused:f,...i};return n.jsxs(o.BoxWithForwardRef,{...k,ref:j,themeName:`${e}.container`,tokens:t,customTheme:l,children:[n.jsxs(o.default,{themeName:`${e}.header`,tokens:t,children:[n.jsx(F.default,{as:"p",themeName:`${e}.title`,tokens:t,children:h}),n.jsx(b,{themeName:e,tokens:t,buttons:c,prevButtonProps:p,nextButtonProps:R})]}),n.jsx(S,{...u,themeName:e,state:r,tokens:t})]})}module.exports=g;
|
package/index37.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { createCalendar as b } from "./
|
|
3
|
+
import { createCalendar as b } from "./index166.mjs";
|
|
4
4
|
import { useLocale as y } from "@react-aria/i18n";
|
|
5
5
|
import { useRef as P } from "react";
|
|
6
6
|
import { useCalendar as R } from "react-aria";
|
|
7
7
|
import { useCalendarState as g } from "react-stately";
|
|
8
8
|
import j, { BoxWithForwardRef as v } from "./index36.mjs";
|
|
9
9
|
import F from "./index3.mjs";
|
|
10
|
-
import T from "./
|
|
11
|
-
import w from "./
|
|
10
|
+
import T from "./index167.mjs";
|
|
11
|
+
import w from "./index168.mjs";
|
|
12
12
|
function A({
|
|
13
13
|
buttons: i,
|
|
14
14
|
tokens: d,
|
package/index38.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),j=require("./
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),j=require("./index166.js"),g=require("@react-aria/i18n"),N=require("react"),B=require("react-aria"),P=require("react-stately"),o=require("./index36.js"),$=require("./index3.js"),v=require("./index167.js"),b=require("./index168.js");function y(c){const{buttons:i,tokens:u,customTheme:l,themeName:e="calendar",gridProps:d,...s}=c,{locale:m}=g.useLocale(),r=P.useRangeCalendarState({...s,locale:m,createCalendar:j.createCalendar}),{isDisabled:x,isReadOnly:h,isValueInvalid:q,isFocused:R}=r,a=N.useRef(null),{calendarProps:k,prevButtonProps:p,nextButtonProps:C,title:f}=B.useRangeCalendar({...s},r,a),t={isDisabled:x,isReadOnly:h,isValueInvalid:q,isFocused:R,...u};return n.jsxs(o.BoxWithForwardRef,{...k,ref:a,themeName:`${e}.container`,tokens:t,customTheme:l,children:[n.jsxs(o.default,{themeName:`${e}.header`,tokens:t,children:[n.jsx($.default,{as:"p",themeName:`${e}.title`,tokens:t,children:f}),n.jsx(b,{themeName:e,tokens:t,buttons:i,prevButtonProps:p,nextButtonProps:C})]}),n.jsx(v,{...d,state:r,themeName:e,tokens:t})]})}module.exports=y;
|
package/index38.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { createCalendar as $ } from "./
|
|
3
|
+
import { createCalendar as $ } from "./index166.mjs";
|
|
4
4
|
import { useLocale as b } from "@react-aria/i18n";
|
|
5
5
|
import { useRef as B } from "react";
|
|
6
6
|
import { useRangeCalendar as N } from "react-aria";
|
|
7
7
|
import { useRangeCalendarState as P } from "react-stately";
|
|
8
8
|
import v, { BoxWithForwardRef as y } from "./index36.mjs";
|
|
9
9
|
import T from "./index3.mjs";
|
|
10
|
-
import j from "./
|
|
11
|
-
import F from "./
|
|
10
|
+
import j from "./index167.mjs";
|
|
11
|
+
import F from "./index168.mjs";
|
|
12
12
|
function z(m) {
|
|
13
13
|
const { buttons: i, tokens: d, customTheme: l, themeName: e = "calendar", gridProps: c, ...a } = m, { locale: p } = b(), o = P({
|
|
14
14
|
...a,
|
package/index39.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("react-aria"),m=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react-aria"),m=require("./index169.js"),u=require("./index170.js"),h=require("./index171.js"),x=i=>{const{children:a,transitionComponent:c=m,state:s,themeName:n,tokens:l,...o}=i,{isOpen:r}=s,t={isOpen:r,...l};return e.jsx(d.OverlayContainer,{children:e.jsx(c,{themeName:`${n}.transition`,tokens:t,isVisible:r,children:e.jsx(h,{themeName:n,tokens:t,state:s,...o,children:e.jsx(u,{themeName:n,tokens:t,...o,children:a})})})})};module.exports=x;
|
package/index39.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { OverlayContainer as d } from "react-aria";
|
|
4
|
-
import p from "./
|
|
5
|
-
import c from "./
|
|
6
|
-
import f from "./
|
|
4
|
+
import p from "./index169.mjs";
|
|
5
|
+
import c from "./index170.mjs";
|
|
6
|
+
import f from "./index171.mjs";
|
|
7
7
|
const T = (s) => {
|
|
8
8
|
const {
|
|
9
9
|
children: a,
|
package/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("@react-aria/accordion"),m=require("react"),x=require("./index93.js"),q=require("./index36.js"),A=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("@react-aria/accordion"),m=require("react"),x=require("./index93.js"),q=require("./index36.js"),A=require("./index142.js"),h=require("./index103.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:a}=d.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(q.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...a,children:[...o.collection].map(i=>r.jsx(A,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
|
package/index4.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import { useAccordion as s } from "@react-aria/accordion";
|
|
|
4
4
|
import { useRef as f } from "react";
|
|
5
5
|
import { AccordionContextProvider as p } from "./index93.mjs";
|
|
6
6
|
import { BoxWithForwardRef as u } from "./index36.mjs";
|
|
7
|
-
import l from "./
|
|
8
|
-
import A from "./
|
|
7
|
+
import l from "./index142.mjs";
|
|
8
|
+
import A from "./index103.mjs";
|
|
9
9
|
const T = (o) => {
|
|
10
10
|
const { themeName: e = "accordion", tokens: c, customTheme: m, TransitionAnimation: a } = o, n = f(null), r = A(o), { accordionProps: d } = s(o, r, n);
|
|
11
11
|
return /* @__PURE__ */ t(p, { state: r, TransitionAnimation: a, children: /* @__PURE__ */ t(
|
package/index41.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("./index172.js"),x=require("react-aria"),m=require("./index92.js"),u=require("./index36.js"),d=require("./index3.js"),R=r=>{const{label:o,isError:n=!1,errorMessage:s,isDisabled:t=!1,children:c,themeName:i="radioGroup",tokens:l}=r,a=h.useRadioGroupState(r),{radioGroupProps:G}=x.useRadioGroup(r,a),p={...l,isDisabled:t};return e.jsxs(u.default,{...G,"aria-disabled":t,themeName:`${i}.radioGroup`,tokens:p,children:[o&&e.jsx(d.default,{tokens:{size:"h6"},children:o}),e.jsx(u.default,{themeName:`${i}.radioGroupItemsGroup`,children:e.jsx(m.RadioGroupProvider,{state:a,children:c})}),n&&s&&e.jsx(d.default,{tokens:{isError:!0},children:s})]})};module.exports=R;
|
package/index41.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { useRadioGroupState as h } from "./
|
|
3
|
+
import { useRadioGroupState as h } from "./index172.mjs";
|
|
4
4
|
import { useRadioGroup as G } from "react-aria";
|
|
5
5
|
import { RadioGroupProvider as b } from "./index92.mjs";
|
|
6
6
|
import d from "./index36.mjs";
|
package/index43.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),h=require("./index91.js"),l=require("./index90.js"),x=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("./index91.js"),l=require("./index90.js"),x=require("./index173.js"),r=require("./index36.js"),p=require("./index174.js"),q=c=>{const{id:o="main-menu",children:u,PanelTransition:m=x,themeName:e,tokens:n,customTheme:a,...d}=c,{overlayState:i}=l.useSidePanel(),{closeBtn:s}=h.useMenu();return t.jsx(m,{themeName:`${e}.panelTransition`,tokens:n,isVisible:i==null?void 0:i.isOpen,children:t.jsxs(r.default,{themeName:`${e}.wrapper`,tokens:n,children:[s&&s(),t.jsx(r.default,{themeName:`${e}.container`,tokens:n,children:t.jsx(p,{id:o,themeName:`${e}.innerContent`,tokens:n,customTheme:a,...d,children:u})})]})})};module.exports=q;
|
package/index43.mjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import { useMenu as d } from "./index91.mjs";
|
|
4
4
|
import { useSidePanel as u } from "./index90.mjs";
|
|
5
|
-
import f from "./
|
|
5
|
+
import f from "./index173.mjs";
|
|
6
6
|
import i from "./index36.mjs";
|
|
7
|
-
import N from "./
|
|
7
|
+
import N from "./index174.mjs";
|
|
8
8
|
const M = (o) => {
|
|
9
9
|
const {
|
|
10
10
|
id: s = "main-menu",
|
package/index44.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("./index91.js"),q=require("./index9.js"),j=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("./index91.js"),q=require("./index9.js"),j=require("./index174.js"),P=o=>{const{id:n="main-menu",children:c,TransitionAnimation:u,PanelTransition:d,themeName:t,tokens:s,customTheme:i,...l}=o,{closeBtn:m,tabState:e,defaultSelectedKey:a}=x.useMenu();return r.jsx(q,{themeName:`${t}.sidePanel`,tokens:s,customTheme:i,closeBtnRender:m,id:n,TransitionAnimation:u,PanelTransition:d,onOpenChange:h=>{h||e==null||e.setSelectedKey(a)},children:r.jsx(j,{id:n,themeName:t,tokens:s,customTheme:i,...l,children:c})})};module.exports=P;
|
package/index44.mjs
CHANGED
package/index47.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),O=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),O=require("./index105.js"),d=require("./index173.js"),x=require("./index14.js"),y=require("./index159.js"),C=require("./index48.js"),B=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=d,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=C,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=O({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(x,{themeName:t,tokens:s,...m,children:u})]})};module.exports=B;
|
package/index47.mjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as g, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as h } from "react";
|
|
4
4
|
import { useOverlayTriggerState as O } from "react-stately";
|
|
5
|
-
import d from "./
|
|
6
|
-
import y from "./
|
|
5
|
+
import d from "./index105.mjs";
|
|
6
|
+
import y from "./index173.mjs";
|
|
7
7
|
import C from "./index14.mjs";
|
|
8
|
-
import B from "./
|
|
8
|
+
import B from "./index159.mjs";
|
|
9
9
|
import b from "./index48.mjs";
|
|
10
10
|
const I = (e) => {
|
|
11
11
|
const {
|
package/index51.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index36.js"),n=require("./index3.js"),P=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index36.js"),n=require("./index3.js"),P=require("./index175.js"),R=s=>{const{themeName:e="tagGroup",tokens:r,customTheme:d,as:h,label:c,description:i,errorMessage:u,removeButtonProps:p={children:"❌"}}=s,l=q.useRef(null),o=$.useListState(s),{gridProps:x,labelProps:g,descriptionProps:f,errorMessageProps:j}=N.useTagGroup(s,o,l);return t.jsxs(m.default,{as:h,themeName:`${e}.wrapper`,tokens:r,customTheme:d,children:[c&&t.jsx(n.default,{themeName:`${e}.label`,tokens:r,...g,children:c}),t.jsx(m.BoxWithForwardRef,{themeName:`${e}.tags`,tokens:r,ref:l,...x,children:[...o.collection].map(a=>t.jsx(P,{themeName:`${e}.tag`,tokens:r,item:{...a,props:{removeButtonProps:p,...a.props}},state:o},a.key))}),i&&t.jsx(n.default,{themeName:`${e}.description`,tokens:r,...f,children:i}),u&&t.jsx(n.default,{themeName:`${e}.errorMessage`,tokens:r,...j,children:u})]})};module.exports=R;
|
package/index51.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useTagGroup as P } from "react-aria";
|
|
|
5
5
|
import { useListState as T } from "react-stately";
|
|
6
6
|
import b, { BoxWithForwardRef as y } from "./index36.mjs";
|
|
7
7
|
import a from "./index3.mjs";
|
|
8
|
-
import B from "./
|
|
8
|
+
import B from "./index175.mjs";
|
|
9
9
|
const F = (t) => {
|
|
10
10
|
const {
|
|
11
11
|
themeName: e = "tagGroup",
|
package/index52.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./index116.js");function d(t){return null}function m(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&u.Children.count(t.children)>0)}d.getCollectionNode=function*(e,l){const{childItems:a,title:s,children:c}=e,n=e.title||e.children,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";!r&&!(l!=null&&l.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:m(e),*childNodes(){if(a)yield*Array.from(a).map(i=>({type:"item",value:i}));else if(s){const i=[];u.Children.forEach(c,o=>{i.push({type:"item",element:o})}),yield*i}}}};const f=d;exports.TagItem=f;
|
package/index52.mjs
CHANGED
package/index53.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),T=require("./
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),T=require("./index176.js"),k=require("./index177.js"),x=require("react"),q=require("./index173.js"),a=require("./index36.js"),L=require("./index56.js"),f=require("./index55.js");function j(i){var u;const{themeName:e="tabList",tokens:o,customTheme:b,label:r,orientation:c="horizontal",panelTransition:h=q}=i,t=k.useTabListState(i),l=x.useRef(null),{tabListProps:d}=T.useTabList(i,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:b,children:[r&&s.jsx(a.default,{themeName:`${e}.label`,tokens:n,children:r}),s.jsxs(a.default,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...d,ref:l,children:[...t.collection].map(m=>s.jsx(L,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(f,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},(u=t.selectedItem)==null?void 0:u.key)]})]})}module.exports=j;
|
package/index53.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as b, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { useTabList as $ } from "./
|
|
4
|
-
import { useTabListState as k } from "./
|
|
3
|
+
import { useTabList as $ } from "./index176.mjs";
|
|
4
|
+
import { useTabListState as k } from "./index177.mjs";
|
|
5
5
|
import { useRef as T } from "react";
|
|
6
|
-
import u from "./
|
|
6
|
+
import u from "./index173.mjs";
|
|
7
7
|
import s, { BoxWithForwardRef as x } from "./index36.mjs";
|
|
8
8
|
import N from "./index56.mjs";
|
|
9
9
|
import L from "./index55.mjs";
|
package/index54.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./index116.js");function d(t){return null}function m(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&u.Children.count(t.children)>0)}d.getCollectionNode=function*(e,l){const{childItems:a,title:s,children:c}=e,n=e.title||e.children,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";!r&&!(l!=null&&l.suppressTextValueWarning)&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:m(e),*childNodes(){if(a)yield*Array.from(a).map(i=>({type:"item",value:i}));else if(s){const i=[];u.Children.forEach(c,o=>{i.push({type:"item",element:o})}),yield*i}}}};const f=d;exports.TabItem=f;
|
package/index54.mjs
CHANGED
package/index55.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const a=require("react/jsx-runtime"),m=require("./
|
|
2
|
+
"use strict";const a=require("react/jsx-runtime"),m=require("./index178.js"),h=require("react"),d=require("./index173.js"),b=require("./index36.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/index55.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { useTabPanel as f } from "./
|
|
3
|
+
import { useTabPanel as f } from "./index178.mjs";
|
|
4
4
|
import { useRef as p } from "react";
|
|
5
|
-
import h from "./
|
|
5
|
+
import h from "./index173.mjs";
|
|
6
6
|
import { BoxWithForwardRef as b } from "./index36.mjs";
|
|
7
7
|
const x = (e) => {
|
|
8
8
|
var o;
|
package/index56.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./
|
|
2
|
+
"use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./index179.js"),F=require("react"),P=require("react-aria"),R=require("./index104.js"),h=require("./index36.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/index56.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as k } from "react/jsx-runtime";
|
|
3
3
|
import { useFocusRing as F } from "@react-aria/focus";
|
|
4
|
-
import { useTab as h } from "./
|
|
4
|
+
import { useTab as h } from "./index179.mjs";
|
|
5
5
|
import { useRef as x } from "react";
|
|
6
6
|
import { mergeProps as P } from "react-aria";
|
|
7
|
-
import { mergeDefaultComponentProps as D } from "./
|
|
7
|
+
import { mergeDefaultComponentProps as D } from "./index104.mjs";
|
|
8
8
|
import { BoxWithForwardRef as L } from "./index36.mjs";
|
|
9
9
|
const y = ({ item: s, state: e, ...t }) => {
|
|
10
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 = {
|
package/index57.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),re=require("radashi"),n=require("react"),N=require("react-aria");require("react-hook-form");const ie=require("react-stately"),ce=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),re=require("radashi"),n=require("react"),N=require("react-aria");require("react-hook-form");const ie=require("react-stately"),ce=require("./index114.js"),ue=require("./index88.js");require("./index96.js");const m=require("./index36.js"),le=require("./index23.js"),ae=require("./index62.js"),pe=require("./index68.js"),de=require("./index11.js"),v=require("./index3.js"),fe=require("./index58.js"),me=require("./index160.js"),xe=l=>{const{children:y,hookFormRef:i,errorMessage:x,themeName:t="comboBox",tokens:R,customTheme:C,label:h,icon:F=e.jsx(ae,{}),closeIcon:I=e.jsx(pe,{}),isDisabled:g=!1,isRequired:M=!1,isReadOnly:S=!1,defaultFilter:V,inputRef:w,buttonRef:D,popoverRef:O,listBoxRef:A,debounceDelay:E=200}=l,T=n.useRef(null),a=w??T,W=n.useRef(null),b=D??W,z=n.useRef(null),q=O??z,L=n.useRef(null),B=A??L,c=n.useRef(null),{contains:G}=N.useFilter({sensitivity:"base"}),H=V??G,o=ie.useComboBoxState({...l,defaultFilter:H}),{inputProps:J,listBoxProps:K,labelProps:Q,buttonProps:U,errorMessageProps:X,isInvalid:$}=N.useComboBox({...l,inputRef:a,buttonRef:b,popoverRef:q,listBoxRef:B},o),j=ce.useDebounce(o.collection,E),P=n.useMemo(()=>({...o,collection:j}),[o,j]),{onPress:p,onPressStart:d,preventFocusOnPress:Re,...Y}=U,{isOpen:u,selectedItem:f,selectionManager:Z}=o,{isFocused:_,isSelectAll:ee,isEmpty:te}=Z,k=!re.isEmpty(o.inputValue),s={...R,isInvalid:$,isOpen:u,isFocused:_,hasValue:k,hasSelectedItem:!te,isSelectAll:ee,isReadOnly:S,isDisabled:g,isRequired:M},oe=n.useCallback(r=>{r&&(i==null||i(r),a.current=r)},[i,a]),se=n.useMemo(()=>f&&!u?f.rendered:o.inputValue,[f,o.inputValue,u]),ne=ue(`${t}.input`,R);return e.jsxs(m.default,{themeName:`${t}.wrapper`,tokens:s,customTheme:C,children:[h&&e.jsx(v.default,{...Q,as:"label",themeName:`${t}.label`,tokens:s,children:h}),e.jsxs(m.default,{themeName:`${t}.container`,children:[e.jsxs(m.BoxWithForwardRef,{ref:c,themeName:`${t}.inputWrapper`,tokens:s,children:[e.jsx("input",{...J,ref:oe,value:se,className:ne}),e.jsx(me,{state:o,themeName:`${t}.button`,tokens:s,...Y,ref:b,handlePress:r=>{p==null||p(r),d==null||d(r)},children:e.jsx(le,{themeName:`${t}.icon`,tokens:s,icon:k?I:F})})]}),u&&c.current&&P.collection.size>0&&e.jsx(de.Popover,{themeName:`${t}.popover`,tokens:s,state:o,triggerRef:c,placement:"bottom",sizeRef:c,popoverRef:q,autoFocus:!1,children:e.jsx(fe.ControlledListBox,{...K,themeName:`${t}.list`,tokens:s,state:P,ref:B,children:y})}),$&&x&&e.jsx(v.default,{tokens:s,themeName:`${t}.errorMessage`,...X,children:x})]})]})};module.exports=xe;
|
package/index57.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useRef as s, useMemo as y, useCallback as ie } from "react";
|
|
|
5
5
|
import { useFilter as le, useComboBox as ce } from "react-aria";
|
|
6
6
|
import "react-hook-form";
|
|
7
7
|
import { useComboBoxState as me } from "react-stately";
|
|
8
|
-
import { useDebounce as pe } from "./
|
|
8
|
+
import { useDebounce as pe } from "./index114.mjs";
|
|
9
9
|
import ae from "./index88.mjs";
|
|
10
10
|
import "./index96.mjs";
|
|
11
11
|
import C, { BoxWithForwardRef as ue } from "./index36.mjs";
|
|
@@ -15,7 +15,7 @@ import he from "./index68.mjs";
|
|
|
15
15
|
import { Popover as be } from "./index11.mjs";
|
|
16
16
|
import F from "./index3.mjs";
|
|
17
17
|
import { ControlledListBox as Re } from "./index58.mjs";
|
|
18
|
-
import xe from "./
|
|
18
|
+
import xe from "./index160.mjs";
|
|
19
19
|
const je = (m) => {
|
|
20
20
|
const {
|
|
21
21
|
children: I,
|
package/index59.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),C=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),C=require("./index180.js"),u=require("react-aria"),D=require("./index104.js"),a=require("./index36.js"),y=require("./index3.js"),B=require("./index60.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/index59.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as B, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { filterDOMProps as C } from "./
|
|
3
|
+
import { filterDOMProps as C } from "./index180.mjs";
|
|
4
4
|
import { useListBoxSection as S, mergeProps as T } from "react-aria";
|
|
5
|
-
import { mergeDefaultComponentProps as b } from "./
|
|
5
|
+
import { mergeDefaultComponentProps as b } from "./index104.mjs";
|
|
6
6
|
import l from "./index36.mjs";
|
|
7
7
|
import j from "./index3.mjs";
|
|
8
8
|
import v from "./index60.mjs";
|
package/index60.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const n=require("react/jsx-runtime"),e=require("react"),l=require("react-aria"),M=require("./
|
|
2
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("react"),l=require("react-aria"),M=require("./index104.js"),a=require("./index36.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;
|
package/index60.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as o, jsxs as O, Fragment as I } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as W, Children as f, isValidElement as k, cloneElement as g } from "react";
|
|
4
4
|
import { useOption as q, FocusRing as v, mergeProps as z } from "react-aria";
|
|
5
|
-
import { mergeDefaultComponentProps as G } from "./
|
|
5
|
+
import { mergeDefaultComponentProps as G } from "./index104.mjs";
|
|
6
6
|
import b, { BoxWithForwardRef as H } from "./index36.mjs";
|
|
7
7
|
import { Anchor as J } from "./index6.mjs";
|
|
8
8
|
const _ = ({
|
package/index8.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),T=require("react"),b=require("react-aria"),j=require("./index88.js"),N=require("./index6.js"),A=require("./index23.js"),C=k=>{const{sharingLinksList:f,id:w,isOpen:
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),T=require("react"),b=require("react-aria"),j=require("./index88.js"),N=require("./index6.js"),A=require("./index23.js"),C=k=>{const{sharingLinksList:f,id:w,isOpen:h,setIsOpen:x,onShare:d,themeName:c="shareButton",tokens:i,customTheme:l}=k,y=j(`${c}.linksList`,{...i,isOpen:h},l),e=b.useFocusManager(),m=s=>{s.key==="Escape"&&x(!1);const{listDirection:u}=i??{};u==="row"&&(s.key==="ArrowRight"&&(e==null||e.focusNext({wrap:!0}),s.preventDefault()),s.key==="ArrowLeft"&&(e==null||e.focusPrevious({wrap:!0}),s.preventDefault())),u==="column"&&(s.key==="ArrowDown"&&(e==null||e.focusNext({wrap:!0}),s.preventDefault()),s.key==="ArrowUp"&&(e==null||e.focusPrevious({wrap:!0}),s.preventDefault()))};return a.jsx("div",{className:y,id:w,role:"listbox",tabIndex:-1,onKeyDown:m,children:f==null?void 0:f.map(s=>{const{ariaLabel:u,onClick:p,href:t,icon:r,key:n}=s;return a.jsx(N.default,{themeName:`${c}.link`,tokens:{...i,isOpen:h},handlePress:()=>{d==null||d(n),p==null||p(n)},"aria-label":u,...t?{href:t,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:a.jsx(A,{themeName:`${c}.linkIcons`,icon:r})},n)})})},$=k=>{const{ariaLabel:f,icon:w,id:h,sharingLinksList:x,onShare:d,customTheme:c,themeName:i="shareButton",tokens:l,...y}=k,[e,m]=T.useState(!1),s=j(`${i}.container`,l,c),u=t=>{m(!e),!e&&setTimeout(()=>{var n,o;const r=(o=(n=t.target.parentElement)==null?void 0:n.lastChild)==null?void 0:o.firstChild;r==null||r.focus()})},p=t=>{const r=t.currentTarget.firstChild,n=t.currentTarget.lastChild,o=n.firstChild,D=n.lastChild,{listDirection:v}=l??{};v==="row"&&(t.key==="ArrowRight"&&t.target===r&&(o==null||o.focus(),t.preventDefault()),t.key==="ArrowLeft"&&t.target===r&&(D.focus(),t.preventDefault())),v==="column"&&(t.key==="ArrowDown"&&t.target===r&&(o==null||o.focus(),t.preventDefault()),t.key==="ArrowUp"&&t.target===r&&(D.focus(),t.preventDefault())),t.key==="Escape"&&(m(!1),r==null||r.focus()),document.activeElement===n&&(r==null||r.focus())};return a.jsx(b.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:e,children:a.jsxs("div",{className:s,onKeyDown:p,children:[a.jsx(N.ButtonWithForwardRef,{themeName:`${i}.button`,tokens:{...l,isOpen:e},"aria-label":f,"aria-haspopup":"listbox","aria-expanded":e,...e&&{"aria-controls":h},handlePress:u,...y,children:a.jsx(A,{themeName:`${i}.icon`,icon:w??"Share"})}),e&&a.jsx(C,{id:h,sharingLinksList:x,onShare:d,isOpen:e,setIsOpen:m,themeName:i,customTheme:c,tokens:l})]})})};exports.IconsContainer=C;exports.default=$;
|