@okam/stack-ui 1.27.3 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Box/interface.d.ts +0 -1
- package/components/Button/interface.d.ts +2 -2
- package/components/Menu/interface.d.ts +5 -2
- package/components/Typography/interface.d.ts +0 -1
- package/components/Video/index.d.ts +3 -0
- package/components/Video/interface.d.ts +6 -0
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.mjs +101 -103
- package/index10.js +1 -1
- package/index10.mjs +1 -1
- package/index100.js +2 -1
- package/index100.mjs +22 -17
- package/index101.js +1 -2
- package/index101.mjs +63 -22
- package/index102.js +1 -1
- package/index102.mjs +24 -58
- package/index103.js +1 -1
- package/index103.mjs +4 -29
- package/index104.js +1 -1
- package/index104.mjs +11 -4
- package/index105.js +1 -1
- package/index105.mjs +14 -11
- package/index106.js +1 -1
- package/index106.mjs +22 -13
- package/index107.js +1 -1
- package/index107.mjs +19 -19
- package/index108.js +1 -1
- package/index108.mjs +38 -22
- package/index109.js +2 -1
- package/index109.mjs +12 -38
- package/index11.js +1 -1
- package/index11.mjs +3 -3
- package/index110.js +1 -2
- package/index110.mjs +7 -12
- package/index111.js +1 -1
- package/index111.mjs +21 -7
- package/index112.js +1 -1
- package/index112.mjs +38 -21
- package/index113.js +1 -1
- package/index113.mjs +49 -38
- package/index114.js +1 -1
- package/index114.mjs +40 -49
- package/index115.js +1 -1
- package/index115.mjs +13 -40
- package/index116.js +1 -1
- package/index116.mjs +26 -14
- package/index117.js +1 -1
- package/index117.mjs +17 -23
- package/index118.js +1 -1
- package/index118.mjs +8 -19
- package/index119.js +1 -1
- package/index119.mjs +30 -9
- package/index12.js +1 -1
- package/index12.mjs +1 -1
- package/index120.js +1 -1
- package/index120.mjs +15 -30
- package/index121.js +1 -1
- package/index121.mjs +15 -13
- package/index122.js +1 -1
- package/index122.mjs +21 -17
- package/index123.js +1 -1
- package/index123.mjs +11 -5
- package/index124.js +2 -1
- package/index124.mjs +21 -20
- package/index125.js +1 -1
- package/index125.mjs +12 -11
- package/index126.js +1 -1
- package/index126.mjs +46 -42
- package/index127.js +1 -2
- package/index127.mjs +239 -20
- package/index128.js +2 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +30 -46
- package/index13.js +1 -1
- package/index13.mjs +32 -15
- package/index130.js +1 -1
- package/index130.mjs +43 -233
- package/index131.js +1 -2
- package/index131.mjs +27 -13
- package/index132.js +1 -1
- package/index132.mjs +21 -30
- package/index133.js +1 -1
- package/index133.mjs +61 -50
- package/index134.js +1 -1
- package/index134.mjs +93 -25
- package/index135.js +1 -1
- package/index135.mjs +27 -16
- package/index136.js +1 -1
- package/index136.mjs +121 -3
- package/index137.js +1 -4
- package/index137.mjs +27 -246
- package/index138.js +1 -1
- package/index138.mjs +124 -61
- package/index139.js +1 -1
- package/index139.mjs +132 -92
- package/index14.js +1 -1
- package/index14.mjs +4 -4
- package/index140.js +1 -1
- package/index140.mjs +14 -31
- package/index141.js +1 -1
- package/index141.mjs +90 -116
- package/index142.js +1 -1
- package/index142.mjs +105 -26
- package/index143.js +1 -1
- package/index143.mjs +5 -124
- package/index144.js +1 -1
- package/index144.mjs +3 -134
- package/index145.js +1 -1
- package/index145.mjs +123 -12
- package/index146.js +1 -1
- package/index146.mjs +18 -84
- package/index147.js +1 -1
- package/index147.mjs +46 -101
- package/index148.js +1 -1
- package/index148.mjs +44 -5
- package/index149.js +1 -1
- package/index149.mjs +37 -3
- package/index15.js +1 -1
- package/index15.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +102 -114
- package/index151.js +1 -1
- package/index151.mjs +69 -21
- package/index152.js +1 -1
- package/index152.mjs +86 -36
- package/index153.js +1 -1
- package/index153.mjs +98 -45
- package/index154.js +1 -1
- package/index154.mjs +192 -30
- package/index155.js +1 -1
- package/index155.mjs +58 -107
- package/index156.js +1 -1
- package/index156.mjs +132 -68
- package/index157.js +1 -1
- package/index157.mjs +119 -101
- package/index158.js +1 -1
- package/index158.mjs +218 -98
- package/index159.js +1 -1
- package/index159.mjs +191 -2
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +69 -5
- package/index161.js +1 -1
- package/index161.mjs +253 -59
- package/index162.js +1 -1
- package/index162.mjs +95 -24
- package/index163.js +1 -1
- package/index163.mjs +173 -53
- package/index164.js +1 -1
- package/index164.mjs +78 -149
- package/index165.js +1 -1
- package/index165.mjs +57 -21
- package/index166.js +1 -1
- package/index166.mjs +125 -18
- package/index167.js +1 -1
- package/index167.mjs +115 -38
- package/index168.js +1 -1
- package/index168.mjs +117 -77
- package/index169.js +1 -1
- package/index169.mjs +70 -28
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +110 -21
- package/index171.js +1 -1
- package/index171.mjs +50 -51
- package/index172.js +1 -1
- package/index172.mjs +94 -2
- package/index173.js +1 -11
- package/index173.mjs +69 -114
- package/index174.js +1 -1
- package/index174.mjs +50 -193
- package/index175.js +1 -1
- package/index175.mjs +91 -56
- package/index176.js +5 -1
- package/index176.mjs +75 -136
- package/index177.js +1 -1
- package/index177.mjs +1999 -107
- package/index178.js +1 -1
- package/index178.mjs +56 -214
- package/index179.js +1 -1
- package/index179.mjs +186 -188
- package/index18.js +1 -1
- package/index18.mjs +4 -4
- package/index180.js +1 -1
- package/index180.mjs +5 -69
- package/index181.js +1 -1
- package/index181.mjs +121 -249
- package/index182.js +1 -1
- package/index182.mjs +171 -89
- package/index183.js +1 -1
- package/index183.mjs +8 -173
- package/index184.js +1 -1
- package/index184.mjs +3 -84
- package/index185.js +1 -1
- package/index185.mjs +32 -54
- package/index186.js +1 -1
- package/index186.mjs +5 -126
- package/index187.js +1 -1
- package/index187.mjs +25 -112
- package/index188.js +1 -1
- package/index188.mjs +6 -122
- package/index189.js +1 -1
- package/index189.mjs +307 -66
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +190 -108
- package/index191.js +1 -1
- package/index191.mjs +8 -52
- package/index192.js +1 -1
- package/index192.mjs +24 -91
- package/index193.js +1 -1
- package/index193.mjs +54 -69
- package/index194.js +1 -1
- package/index194.mjs +43 -53
- package/index195.js +1 -1
- package/index195.mjs +123 -98
- package/index196.js +1 -5
- package/index196.mjs +5 -80
- package/index197.js +1 -1
- package/index197.mjs +25 -2008
- package/index198.js +1 -1
- package/index198.mjs +6 -59
- package/index199.js +1 -1
- package/index199.mjs +7 -188
- package/index2.js +1 -1
- package/index2.mjs +20 -20
- package/index20.js +1 -1
- package/index20.mjs +2 -2
- package/index200.js +1 -1
- package/index200.mjs +6 -4
- package/index201.js +1 -1
- package/index201.mjs +5 -2
- package/index202.js +1 -1
- package/index202.mjs +5 -52
- package/index203.js +1 -1
- package/index203.mjs +9 -20
- package/index21.js +1 -1
- package/index21.mjs +1 -1
- package/index22.js +1 -1
- package/index22.mjs +1 -1
- package/index23.js +1 -1
- package/index23.mjs +4 -4
- package/index24.js +1 -1
- package/index24.mjs +5 -5
- package/index25.js +1 -1
- package/index25.mjs +1 -1
- package/index26.js +1 -1
- package/index26.mjs +3 -3
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index28.js +1 -1
- package/index28.mjs +2 -2
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index31.js +1 -1
- package/index31.mjs +4 -4
- package/index32.js +1 -1
- package/index32.mjs +2 -2
- package/index33.js +1 -1
- package/index33.mjs +88 -65
- package/index34.js +1 -1
- package/index34.mjs +2 -2
- package/index35.js +1 -1
- package/index35.mjs +3 -3
- package/index36.js +1 -1
- package/index36.mjs +1 -1
- package/index37.js +1 -1
- package/index38.js +2 -1
- package/index38.mjs +20 -45
- package/index39.js +1 -2
- package/index39.mjs +5 -26
- package/index4.js +1 -1
- package/index4.mjs +4 -4
- package/index40.js +1 -1
- package/index40.mjs +7 -4
- package/index41.js +1 -1
- package/index41.mjs +5 -5
- package/index42.js +1 -1
- package/index42.mjs +5 -8
- package/index43.js +1 -1
- package/index43.mjs +2 -2
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +4 -4
- package/index46.js +1 -1
- package/index46.mjs +9 -3
- package/index47.js +1 -1
- package/index47.mjs +9 -7
- package/index48.js +1 -1
- package/index48.mjs +9 -9
- package/index49.js +1 -1
- package/index49.mjs +46 -13
- package/index50.js +1 -1
- package/index50.mjs +8 -46
- package/index51.js +1 -1
- package/index51.mjs +69 -6
- package/index52.js +1 -1
- package/index52.mjs +8 -71
- package/index53.js +1 -1
- package/index53.mjs +12 -7
- package/index54.js +1 -1
- package/index54.mjs +9 -12
- package/index55.js +1 -1
- package/index55.mjs +17 -10
- package/index56.js +1 -1
- package/index56.mjs +13 -17
- package/index57.js +1 -1
- package/index57.mjs +5 -5
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +8 -10
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +1 -1
- package/index60.mjs +5 -5
- package/index61.js +1 -1
- package/index61.mjs +8 -6
- package/index62.js +1 -1
- package/index62.mjs +14 -13
- package/index63.js +2 -1
- package/index63.mjs +23 -14
- package/index64.js +1 -1
- package/index64.mjs +15 -21
- package/index65.js +1 -1
- package/index65.mjs +14 -16
- package/index66.js +1 -1
- package/index66.mjs +40 -13
- package/index67.js +1 -1
- package/index67.mjs +36 -39
- package/index68.js +1 -1
- package/index68.mjs +11 -37
- package/index69.js +1 -1
- package/index69.mjs +10 -11
- package/index7.js +1 -1
- package/index7.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +13 -10
- package/index71.js +1 -1
- package/index71.mjs +10 -13
- package/index72.js +1 -2
- package/index72.mjs +2 -12
- package/index73.js +2 -1
- package/index73.mjs +9 -2
- package/index74.js +1 -1
- package/index74.mjs +6 -7
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +1 -1
- package/index76.mjs +6 -6
- package/index77.js +1 -2
- package/index77.mjs +25 -8
- package/index78.js +1 -1
- package/index78.mjs +2 -25
- package/index79.js +6 -1
- package/index79.mjs +94 -2
- package/index8.js +1 -1
- package/index8.mjs +3 -3
- package/index80.js +1 -6
- package/index80.mjs +54 -79
- package/index81.js +1 -1
- package/index81.mjs +33 -61
- package/index82.js +42 -1
- package/index82.mjs +67 -34
- package/index83.js +1 -42
- package/index83.mjs +154 -65
- package/index84.js +9 -1
- package/index84.mjs +47 -149
- package/index85.js +1 -9
- package/index85.mjs +36 -48
- package/index86.js +1 -1
- package/index86.mjs +8 -40
- package/index87.js +1 -1
- package/index87.mjs +31 -9
- package/index88.js +1 -1
- package/index88.mjs +6 -35
- package/index89.js +12 -1
- package/index89.mjs +40 -6
- package/index9.js +1 -1
- package/index9.mjs +38 -43
- package/index90.js +1 -12
- package/index90.mjs +25 -36
- package/index91.js +1 -1
- package/index91.mjs +8 -24
- package/index92.js +7 -1
- package/index92.mjs +13 -7
- package/index93.js +14 -6
- package/index93.mjs +65 -13
- package/index94.js +1 -15
- package/index94.mjs +7 -71
- package/index95.js +16 -1
- package/index95.mjs +25 -7
- package/index96.js +1 -16
- package/index96.mjs +37 -20
- package/index97.js +1 -1
- package/index97.mjs +43 -40
- package/index98.js +1 -1
- package/index98.mjs +47 -44
- package/index99.js +1 -1
- package/index99.mjs +17 -48
- package/package.json +1 -1
- package/theme/Alerts/index.d.ts +88 -0
- package/theme/Button/index.d.ts +28 -0
- package/theme/Carousel/index.d.ts +36 -0
- package/types/next-link.d.ts +16 -0
- package/components/DirectusImg/index.d.ts +0 -3
- package/components/DirectusImg/interface.d.ts +0 -20
- package/components/Img/index.d.ts +0 -3
- package/components/Img/interface.d.ts +0 -6
- package/index204.js +0 -1
- package/index204.mjs +0 -26
- package/index205.js +0 -1
- package/index205.mjs +0 -29
- package/index206.js +0 -1
- package/index206.mjs +0 -49
- package/index207.js +0 -1
- package/index207.mjs +0 -4
- package/index208.js +0 -1
- package/index208.mjs +0 -23
- package/index209.js +0 -1
- package/index209.mjs +0 -4
- package/index210.js +0 -1
- package/index210.mjs +0 -31
- package/index211.js +0 -1
- package/index211.mjs +0 -4
- package/index212.js +0 -1
- package/index212.mjs +0 -4
- package/index213.js +0 -1
- package/index213.mjs +0 -25
- package/index214.js +0 -1
- package/index214.mjs +0 -4
- package/index215.js +0 -1
- package/index215.mjs +0 -4
- package/index216.js +0 -1
- package/index216.mjs +0 -4
- package/index217.js +0 -1
- package/index217.mjs +0 -40
- package/index218.js +0 -1
- package/index218.mjs +0 -4
- package/index219.js +0 -1
- package/index219.mjs +0 -23
- package/index220.js +0 -1
- package/index220.mjs +0 -25
- package/index221.js +0 -1
- package/index221.mjs +0 -4
- package/index222.js +0 -1
- package/index222.mjs +0 -25
- package/index223.js +0 -1
- package/index223.mjs +0 -4
- package/index224.js +0 -1
- package/index224.mjs +0 -133
- package/index225.js +0 -1
- package/index225.mjs +0 -182
- package/index226.js +0 -1
- package/index226.mjs +0 -12
- package/index227.js +0 -1
- package/index227.mjs +0 -6
- package/index228.js +0 -1
- package/index228.mjs +0 -39
- package/index229.js +0 -1
- package/index229.mjs +0 -8
- package/index230.js +0 -1
- package/index230.mjs +0 -32
- package/index231.js +0 -1
- package/index231.mjs +0 -9
- package/index232.js +0 -1
- package/index232.mjs +0 -316
- package/index233.js +0 -1
- package/index233.mjs +0 -195
- package/index234.js +0 -1
- package/index234.mjs +0 -11
- package/index235.js +0 -1
- package/index235.mjs +0 -29
- package/index236.js +0 -1
- package/index236.mjs +0 -58
- package/index237.js +0 -1
- package/index237.mjs +0 -49
- package/index238.js +0 -1
- package/index238.mjs +0 -127
- package/index239.js +0 -1
- package/index239.mjs +0 -4
- package/index240.js +0 -1
- package/index240.mjs +0 -4
- package/index241.js +0 -1
- package/index241.mjs +0 -4
- package/index242.js +0 -1
- package/index242.mjs +0 -20
- package/index243.js +0 -1
- package/index243.mjs +0 -29
- package/index244.js +0 -1
- package/index244.mjs +0 -4
- package/index245.js +0 -1
- package/index245.mjs +0 -91
- package/index246.js +0 -1
- package/index246.mjs +0 -22
- package/index247.js +0 -1
- package/index247.mjs +0 -4
- package/index248.js +0 -1
- package/index248.mjs +0 -40
- package/index249.js +0 -1
- package/index249.mjs +0 -139
- package/index250.js +0 -1
- package/index250.mjs +0 -4
- package/index251.js +0 -1
- package/index251.mjs +0 -4
- package/index252.js +0 -1
- package/index252.mjs +0 -25
- package/index253.js +0 -1
- package/index253.mjs +0 -4
- package/index254.js +0 -1
- package/index254.mjs +0 -4
- package/index255.js +0 -1
- package/index255.mjs +0 -4
- package/index256.js +0 -1
- package/index256.mjs +0 -25
- package/index257.js +0 -1
- package/index257.mjs +0 -4
- package/index258.js +0 -1
- package/index258.mjs +0 -28
- package/index259.js +0 -1
- package/index259.mjs +0 -4
- package/index260.js +0 -1
- package/index260.mjs +0 -8
- package/index261.js +0 -1
- package/index261.mjs +0 -4
- package/index262.js +0 -1
- package/index262.mjs +0 -4
- package/index263.js +0 -1
- package/index263.mjs +0 -4
- package/index264.js +0 -1
- package/index264.mjs +0 -4
- package/index265.js +0 -1
- package/index265.mjs +0 -74
- package/index266.js +0 -1
- package/index266.mjs +0 -4
- package/index267.js +0 -1
- package/index267.mjs +0 -4
- package/index268.js +0 -1
- package/index268.mjs +0 -21
- package/index269.js +0 -1
- package/index269.mjs +0 -4
- package/index270.js +0 -1
- package/index270.mjs +0 -4
- package/index271.js +0 -1
- package/index271.mjs +0 -4
- package/index272.js +0 -1
- package/index272.mjs +0 -31
- package/index273.js +0 -1
- package/index273.mjs +0 -9
- package/index274.js +0 -1
- package/index274.mjs +0 -10
- package/index275.js +0 -1
- package/index275.mjs +0 -10
- package/index276.js +0 -1
- package/index276.mjs +0 -4
- package/index277.js +0 -1
- package/index277.mjs +0 -39
- package/index278.js +0 -1
- package/index278.mjs +0 -4
- package/index279.js +0 -1
- package/index279.mjs +0 -7
- package/index280.js +0 -1
- package/index280.mjs +0 -8
- package/index281.js +0 -1
- package/index281.mjs +0 -12
- package/index282.js +0 -1
- package/index282.mjs +0 -4
- package/index283.js +0 -1
- package/index283.mjs +0 -20
- package/index284.js +0 -1
- package/index284.mjs +0 -33
- package/index285.js +0 -1
- package/index285.mjs +0 -4
- package/index286.js +0 -1
- package/index286.mjs +0 -4
package/index129.mjs
CHANGED
|
@@ -1,48 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useFocusManager as y, useKeyboard as P, usePress as k } from "react-aria";
|
|
3
|
+
import { useSwiperController as w } from "./index71.mjs";
|
|
4
|
+
import g from "./index6.mjs";
|
|
5
|
+
const $ = (d) => {
|
|
6
|
+
const { themeName: l, tokens: u, slides: o, activeIndex: p, index: t } = d, { controller: e } = w(), s = y(), m = t === 0 ? o.length - 1 : t - 1, c = t === o.length - 1 ? 0 : t + 1, { keyboardProps: b } = P({
|
|
7
|
+
onKeyUp: (i) => {
|
|
8
|
+
i.key === "ArrowLeft" && (i.preventDefault(), s == null || s.focusPrevious({ wrap: !0 }), e == null || e.slideTo(m)), i.key === "ArrowRight" && (i.preventDefault(), s == null || s.focusNext({ wrap: !0 }), e == null || e.slideTo(c));
|
|
9
|
+
}
|
|
10
|
+
}), { pressProps: f } = k({
|
|
11
|
+
onPress: () => e == null ? void 0 : e.slideTo(t)
|
|
12
|
+
}), v = o[t], r = t === p, { title: n, id: x } = v, a = n && n.length > 0;
|
|
13
|
+
return /* @__PURE__ */ h(
|
|
14
|
+
g,
|
|
15
|
+
{
|
|
16
|
+
as: "button",
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
role: "button",
|
|
19
|
+
"aria-current": r ? "true" : "false",
|
|
20
|
+
"aria-disabled": r,
|
|
21
|
+
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
+
"aria-labelledby": a ? x : void 0,
|
|
23
|
+
...b,
|
|
24
|
+
...f,
|
|
25
|
+
themeName: `${l}.bullet`,
|
|
26
|
+
tokens: { ...u, active: r }
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
24
30
|
export {
|
|
25
|
-
|
|
26
|
-
A as Autoplay,
|
|
27
|
-
b as Controller,
|
|
28
|
-
Q as EffectCards,
|
|
29
|
-
I as EffectCoverflow,
|
|
30
|
-
L as EffectCreative,
|
|
31
|
-
q as EffectCube,
|
|
32
|
-
j as EffectFade,
|
|
33
|
-
B as EffectFlip,
|
|
34
|
-
G as FreeMode,
|
|
35
|
-
S as Grid,
|
|
36
|
-
M as HashNavigation,
|
|
37
|
-
h as History,
|
|
38
|
-
f as Keyboard,
|
|
39
|
-
V as Manipulation,
|
|
40
|
-
l as Mousewheel,
|
|
41
|
-
d as Navigation,
|
|
42
|
-
p as Pagination,
|
|
43
|
-
c as Parallax,
|
|
44
|
-
x as Scrollbar,
|
|
45
|
-
N as Thumbs,
|
|
46
|
-
o as Virtual,
|
|
47
|
-
E as Zoom
|
|
31
|
+
$ as default
|
|
48
32
|
};
|
package/index13.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),e=require("sanitize-html"),a=require("./index3.js"),o=({content:t,themeName:r="wysiwyg",...l})=>{const s=e(t,{allowedTags:e.defaults.allowedTags.concat(["iframe"]),allowedAttributes:{...e.defaults.allowedAttributes,iframe:["src","allow","allowfullscreen","frameborder","scrolling","target","title","height","width","referrerpolicy"]}});return i.jsx(a.default,{...l,themeName:r,dangerouslySetInnerHTML:{__html:s}})};module.exports=o;
|
package/index13.mjs
CHANGED
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
const f = ({ content:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import t from "sanitize-html";
|
|
3
|
+
import i from "./index3.mjs";
|
|
4
|
+
const f = ({ content: e, themeName: r = "wysiwyg", ...l }) => {
|
|
5
|
+
const o = t(e, {
|
|
6
|
+
allowedTags: t.defaults.allowedTags.concat(["iframe"]),
|
|
7
|
+
allowedAttributes: {
|
|
8
|
+
...t.defaults.allowedAttributes,
|
|
9
|
+
iframe: [
|
|
10
|
+
"src",
|
|
11
|
+
"allow",
|
|
12
|
+
"allowfullscreen",
|
|
13
|
+
"frameborder",
|
|
14
|
+
"scrolling",
|
|
15
|
+
"target",
|
|
16
|
+
"title",
|
|
17
|
+
"height",
|
|
18
|
+
"width",
|
|
19
|
+
"referrerpolicy"
|
|
20
|
+
]
|
|
14
21
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ a(
|
|
24
|
+
i,
|
|
25
|
+
{
|
|
26
|
+
...l,
|
|
27
|
+
themeName: r,
|
|
28
|
+
dangerouslySetInnerHTML: {
|
|
29
|
+
__html: o
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
17
34
|
export {
|
|
18
35
|
f as default
|
|
19
36
|
};
|
package/index130.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index142.js"),$=require("./index153.js");function l(e,t){return t=u.toCalendar(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function f(e,t){let n=e.calendar.toJulianDay(e),a=Math.ceil(n+1-g(t))%7;return a<0&&(a+=7),a}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function s(e,t){return c(e)-c(t)}function c(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let r=null;function m(){return r==null&&(r=new Intl.DateTimeFormat().resolvedOptions().timeZone),r}function i(e){return e.subtract({days:e.day-1})}const o=new Map;function y(e){if(Intl.Locale){let n=o.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&o.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function g(e){let t=y(e);return t&&$.weekStartData[t]||0}function p(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((f(i(e),t)+n)/7)}exports.compareDate=d;exports.compareTime=s;exports.getDayOfWeek=f;exports.getLocalTimeZone=m;exports.getWeeksInMonth=p;exports.isSameDay=l;exports.startOfMonth=i;
|
package/index130.mjs
CHANGED
|
@@ -1,243 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function L() {
|
|
6
|
-
return L = Object.assign ? Object.assign.bind() : function(n) {
|
|
7
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
8
|
-
var s = arguments[r];
|
|
9
|
-
for (var t in s)
|
|
10
|
-
Object.prototype.hasOwnProperty.call(s, t) && (n[t] = s[t]);
|
|
11
|
-
}
|
|
12
|
-
return n;
|
|
13
|
-
}, L.apply(this, arguments);
|
|
1
|
+
import { toCalendar as o } from "./index142.mjs";
|
|
2
|
+
import { weekStartData as i } from "./index153.mjs";
|
|
3
|
+
function p(e, a) {
|
|
4
|
+
return a = o(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
14
5
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
6
|
+
function $(e, a) {
|
|
7
|
+
let t = e.calendar.toJulianDay(e), n = Math.ceil(t + 1 - d(a)) % 7;
|
|
8
|
+
return n < 0 && (n += 7), n;
|
|
17
9
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
return a.Children.toArray(n).forEach((s) => {
|
|
21
|
-
H(s) ? r.push(s) : s.props && s.props.children && U(s.props.children).forEach((t) => r.push(t));
|
|
22
|
-
}), r;
|
|
10
|
+
function y(e, a) {
|
|
11
|
+
return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
|
|
23
12
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
"container-start": [],
|
|
27
|
-
"container-end": [],
|
|
28
|
-
"wrapper-start": [],
|
|
29
|
-
"wrapper-end": []
|
|
30
|
-
};
|
|
31
|
-
return a.Children.toArray(n).forEach((t) => {
|
|
32
|
-
if (H(t))
|
|
33
|
-
r.push(t);
|
|
34
|
-
else if (t.props && t.props.slot && s[t.props.slot])
|
|
35
|
-
s[t.props.slot].push(t);
|
|
36
|
-
else if (t.props && t.props.children) {
|
|
37
|
-
const p = U(t.props.children);
|
|
38
|
-
p.length > 0 ? p.forEach((o) => r.push(o)) : s["container-end"].push(t);
|
|
39
|
-
} else
|
|
40
|
-
s["container-end"].push(t);
|
|
41
|
-
}), {
|
|
42
|
-
slides: r,
|
|
43
|
-
slots: s
|
|
44
|
-
};
|
|
13
|
+
function g(e, a) {
|
|
14
|
+
return c(e) - c(a);
|
|
45
15
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
const t = (l) => {
|
|
49
|
-
let i = l;
|
|
50
|
-
return l < 0 ? i = r.length + l : i >= r.length && (i = i - r.length), i;
|
|
51
|
-
}, p = n.isHorizontal() ? {
|
|
52
|
-
[n.rtlTranslate ? "right" : "left"]: `${s.offset}px`
|
|
53
|
-
} : {
|
|
54
|
-
top: `${s.offset}px`
|
|
55
|
-
}, {
|
|
56
|
-
from: o,
|
|
57
|
-
to: d
|
|
58
|
-
} = s, S = n.params.loop ? -r.length : 0, h = n.params.loop ? r.length * 2 : r.length, g = [];
|
|
59
|
-
for (let l = S; l < h; l += 1)
|
|
60
|
-
l >= o && l <= d && g.push(r[t(l)]);
|
|
61
|
-
return g.map((l, i) => /* @__PURE__ */ a.cloneElement(l, {
|
|
62
|
-
swiper: n,
|
|
63
|
-
style: p,
|
|
64
|
-
key: `slide-${i}`
|
|
65
|
-
}));
|
|
16
|
+
function c(e) {
|
|
17
|
+
return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
|
|
66
18
|
}
|
|
67
|
-
|
|
68
|
-
|
|
19
|
+
let r = null;
|
|
20
|
+
function x() {
|
|
21
|
+
return r == null && (r = new Intl.DateTimeFormat().resolvedOptions().timeZone), r;
|
|
69
22
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
tag: t = "div",
|
|
74
|
-
wrapperTag: p = "div",
|
|
75
|
-
children: o,
|
|
76
|
-
onSwiper: d,
|
|
77
|
-
...S
|
|
78
|
-
} = n === void 0 ? {} : n, h = !1;
|
|
79
|
-
const [g, l] = P("swiper"), [i, m] = P(null), [C, R] = P(!1), z = u(!1), w = u(null), e = u(null), x = u(null), $ = u(null), j = u(null), b = u(null), N = u(null), T = u(null), {
|
|
80
|
-
params: f,
|
|
81
|
-
passedParams: _,
|
|
82
|
-
rest: G,
|
|
83
|
-
events: v
|
|
84
|
-
} = Z(S), {
|
|
85
|
-
slides: y,
|
|
86
|
-
slots: I
|
|
87
|
-
} = le(o), A = () => {
|
|
88
|
-
R(!C);
|
|
89
|
-
};
|
|
90
|
-
Object.assign(f.on, {
|
|
91
|
-
_containerClasses(c, E) {
|
|
92
|
-
l(E);
|
|
93
|
-
}
|
|
23
|
+
function u(e) {
|
|
24
|
+
return e.subtract({
|
|
25
|
+
days: e.day - 1
|
|
94
26
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
e.current.virtual.slides = y;
|
|
102
|
-
const E = {
|
|
103
|
-
cache: !1,
|
|
104
|
-
slides: y,
|
|
105
|
-
renderExternal: m,
|
|
106
|
-
renderExternalUpdate: !1
|
|
107
|
-
};
|
|
108
|
-
F(e.current.params.virtual, E), F(e.current.originalParams.virtual, E);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
w.current || V(), e.current && e.current.on("_beforeBreakpoint", A);
|
|
112
|
-
const J = () => {
|
|
113
|
-
h || !v || !e.current || Object.keys(v).forEach((c) => {
|
|
114
|
-
e.current.on(c, v[c]);
|
|
115
|
-
});
|
|
116
|
-
}, K = () => {
|
|
117
|
-
!v || !e.current || Object.keys(v).forEach((c) => {
|
|
118
|
-
e.current.off(c, v[c]);
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
k(() => () => {
|
|
122
|
-
e.current && e.current.off("_beforeBreakpoint", A);
|
|
123
|
-
}), k(() => {
|
|
124
|
-
!z.current && e.current && (e.current.emitSlidesClasses(), z.current = !0);
|
|
125
|
-
}), O(() => {
|
|
126
|
-
if (r && (r.current = w.current), !!w.current)
|
|
127
|
-
return e.current.destroyed && V(), ee({
|
|
128
|
-
el: w.current,
|
|
129
|
-
nextEl: j.current,
|
|
130
|
-
prevEl: b.current,
|
|
131
|
-
paginationEl: N.current,
|
|
132
|
-
scrollbarEl: T.current,
|
|
133
|
-
swiper: e.current
|
|
134
|
-
}, f), d && !e.current.destroyed && d(e.current), () => {
|
|
135
|
-
e.current && !e.current.destroyed && e.current.destroy(!0, !1);
|
|
136
|
-
};
|
|
137
|
-
}, []), O(() => {
|
|
138
|
-
J();
|
|
139
|
-
const c = re(_, x.current, y, $.current, (E) => E.key);
|
|
140
|
-
return x.current = _, $.current = y, c.length && e.current && !e.current.destroyed && oe({
|
|
141
|
-
swiper: e.current,
|
|
142
|
-
slides: y,
|
|
143
|
-
passedParams: _,
|
|
144
|
-
changedParams: c,
|
|
145
|
-
nextEl: j.current,
|
|
146
|
-
prevEl: b.current,
|
|
147
|
-
scrollbarEl: T.current,
|
|
148
|
-
paginationEl: N.current
|
|
149
|
-
}), () => {
|
|
150
|
-
K();
|
|
151
|
-
};
|
|
152
|
-
}), O(() => {
|
|
153
|
-
te(e.current);
|
|
154
|
-
}, [i]);
|
|
155
|
-
function M() {
|
|
156
|
-
return f.virtual ? ce(e.current, y, i) : y.map((c, E) => /* @__PURE__ */ a.cloneElement(c, {
|
|
157
|
-
swiper: e.current,
|
|
158
|
-
swiperSlideIndex: E
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
return /* @__PURE__ */ a.createElement(t, L({
|
|
162
|
-
ref: w,
|
|
163
|
-
className: D(`${g}${s ? ` ${s}` : ""}`)
|
|
164
|
-
}, G), /* @__PURE__ */ a.createElement(ue.Provider, {
|
|
165
|
-
value: e.current
|
|
166
|
-
}, I["container-start"], /* @__PURE__ */ a.createElement(p, {
|
|
167
|
-
className: ne(f.wrapperClass)
|
|
168
|
-
}, I["wrapper-start"], M(), I["wrapper-end"]), se(f) && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", {
|
|
169
|
-
ref: b,
|
|
170
|
-
className: "swiper-button-prev"
|
|
171
|
-
}), /* @__PURE__ */ a.createElement("div", {
|
|
172
|
-
ref: j,
|
|
173
|
-
className: "swiper-button-next"
|
|
174
|
-
})), ae(f) && /* @__PURE__ */ a.createElement("div", {
|
|
175
|
-
ref: T,
|
|
176
|
-
className: "swiper-scrollbar"
|
|
177
|
-
}), ie(f) && /* @__PURE__ */ a.createElement("div", {
|
|
178
|
-
ref: N,
|
|
179
|
-
className: "swiper-pagination"
|
|
180
|
-
}), I["container-end"]));
|
|
181
|
-
});
|
|
182
|
-
pe.displayName = "Swiper";
|
|
183
|
-
const de = /* @__PURE__ */ W(function(n, r) {
|
|
184
|
-
let {
|
|
185
|
-
tag: s = "div",
|
|
186
|
-
children: t,
|
|
187
|
-
className: p = "",
|
|
188
|
-
swiper: o,
|
|
189
|
-
zoom: d,
|
|
190
|
-
lazy: S,
|
|
191
|
-
virtualIndex: h,
|
|
192
|
-
swiperSlideIndex: g,
|
|
193
|
-
...l
|
|
194
|
-
} = n === void 0 ? {} : n;
|
|
195
|
-
const i = u(null), [m, C] = P("swiper-slide"), [R, z] = P(!1);
|
|
196
|
-
function w(j, b, N) {
|
|
197
|
-
b === i.current && C(N);
|
|
27
|
+
}
|
|
28
|
+
const f = /* @__PURE__ */ new Map();
|
|
29
|
+
function l(e) {
|
|
30
|
+
if (Intl.Locale) {
|
|
31
|
+
let t = f.get(e);
|
|
32
|
+
return t || (t = new Intl.Locale(e).maximize().region, t && f.set(e, t)), t;
|
|
198
33
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
o && i.current && !o.destroyed && C(o.getSlideClasses(i.current));
|
|
211
|
-
}, [o]);
|
|
212
|
-
const e = {
|
|
213
|
-
isActive: m.indexOf("swiper-slide-active") >= 0,
|
|
214
|
-
isVisible: m.indexOf("swiper-slide-visible") >= 0,
|
|
215
|
-
isPrev: m.indexOf("swiper-slide-prev") >= 0,
|
|
216
|
-
isNext: m.indexOf("swiper-slide-next") >= 0
|
|
217
|
-
}, x = () => typeof t == "function" ? t(e) : t, $ = () => {
|
|
218
|
-
z(!0);
|
|
219
|
-
};
|
|
220
|
-
return /* @__PURE__ */ a.createElement(s, L({
|
|
221
|
-
ref: i,
|
|
222
|
-
className: D(`${m}${p ? ` ${p}` : ""}`),
|
|
223
|
-
"data-swiper-slide-index": h,
|
|
224
|
-
onLoad: $
|
|
225
|
-
}, l), d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
226
|
-
value: e
|
|
227
|
-
}, /* @__PURE__ */ a.createElement("div", {
|
|
228
|
-
className: "swiper-zoom-container",
|
|
229
|
-
"data-swiper-zoom": typeof d == "number" ? d : void 0
|
|
230
|
-
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
231
|
-
className: "swiper-lazy-preloader"
|
|
232
|
-
}))), !d && /* @__PURE__ */ a.createElement(B.Provider, {
|
|
233
|
-
value: e
|
|
234
|
-
}, x(), S && !R && /* @__PURE__ */ a.createElement("div", {
|
|
235
|
-
className: "swiper-lazy-preloader"
|
|
236
|
-
})));
|
|
237
|
-
});
|
|
238
|
-
de.displayName = "SwiperSlide";
|
|
34
|
+
let a = e.split("-")[1];
|
|
35
|
+
return a === "u" ? void 0 : a;
|
|
36
|
+
}
|
|
37
|
+
function d(e) {
|
|
38
|
+
let a = l(e);
|
|
39
|
+
return a && i[a] || 0;
|
|
40
|
+
}
|
|
41
|
+
function h(e, a) {
|
|
42
|
+
let t = e.calendar.getDaysInMonth(e);
|
|
43
|
+
return Math.ceil(($(u(e), a) + t) / 7);
|
|
44
|
+
}
|
|
239
45
|
export {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
46
|
+
y as compareDate,
|
|
47
|
+
g as compareTime,
|
|
48
|
+
$ as getDayOfWeek,
|
|
49
|
+
x as getLocalTimeZone,
|
|
50
|
+
h as getWeeksInMonth,
|
|
51
|
+
p as isSameDay,
|
|
52
|
+
u as startOfMonth
|
|
243
53
|
};
|
package/index131.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("./index130.js"),a=require("./index25.js"),h=require("./index3.js"),m=n=>{const{themeName:e,title:t,tokens:c,id:o,children:l}=n,{isActive:u,isVisible:i}=d.useSwiperSlide(),s={...c,isActive:u,isVisible:i};return r.jsxs(a.default,{themeName:`${e}.container`,tokens:s,...i?{}:{inert:"true"},children:[t&&r.jsx(h.default,{themeName:`${e}.title`,tokens:s,id:o,children:t}),l]})};module.exports=m;
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),r=require("./index130.js"),P=require("@react-aria/calendar"),v=require("@react-aria/focus"),O=require("@react-aria/utils"),$=require("react"),F=require("react-aria"),o=require("./index64.js");function I({themeName:c="calendar",tokens:l,state:e,date:i}){const u=$.useRef(null),{cellProps:f,buttonProps:q,isSelected:n,isOutsideVisibleRange:D,isDisabled:d,formattedDate:y,isInvalid:a}=P.useCalendarCell({date:i},e,u),h=e!=null&&e.highlightedRange?r.isSameDay(i,e==null?void 0:e.highlightedRange.start):n,g=e!=null&&e.highlightedRange?r.isSameDay(i,e==null?void 0:e.highlightedRange.end):n,{locale:m}=F.useLocale(),R=r.getDayOfWeek(i,m),C=n&&(h||R===0||i.day===1),S=n&&(g||R===6||i.day===i.calendar.getDaysInMonth(i)),{focusProps:b,isFocusVisible:p}=v.useFocusRing(),t=o(`${c}.cellContainer`,{...l,isFocusVisible:p}),x=o(`${c}.cell`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isRoundedLeft:C,isRoundedRight:S}),j=o(`${c}.cellDate`,{...l,isSelected:n,isInvalid:a,isDisabled:d,isSelectionStart:h,isSelectionEnd:g});return s.jsx("td",{...f,"aria-disabled":!1,className:t,children:s.jsx("div",{...O.mergeProps(q,b),ref:u,hidden:D,className:x,children:s.jsx("div",{className:j,children:y})})})}module.exports=I;
|
package/index131.mjs
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { isSameDay as g, getDayOfWeek as v } from "./index130.mjs";
|
|
3
|
+
import { useCalendarCell as O } from "@react-aria/calendar";
|
|
4
|
+
import { useFocusRing as T } from "@react-aria/focus";
|
|
5
|
+
import { mergeProps as F } from "@react-aria/utils";
|
|
6
|
+
import { useRef as I } from "react";
|
|
7
|
+
import { useLocale as L } from "react-aria";
|
|
8
|
+
import r from "./index64.mjs";
|
|
9
|
+
function w({ themeName: l = "calendar", tokens: n, state: e, date: o }) {
|
|
10
|
+
const s = I(null), { cellProps: u, buttonProps: p, isSelected: i, isOutsideVisibleRange: R, isDisabled: d, formattedDate: $, isInvalid: f } = O({ date: o }, e, s), a = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.start) : i, m = e != null && e.highlightedRange ? g(o, e == null ? void 0 : e.highlightedRange.end) : i, { locale: C } = L(), h = v(o, C), D = i && (a || h === 0 || o.day === 1), y = i && (m || h === 6 || o.day === o.calendar.getDaysInMonth(o)), { focusProps: b, isFocusVisible: x } = T(), S = r(`${l}.cellContainer`, { ...n, isFocusVisible: x }), t = r(`${l}.cell`, {
|
|
11
|
+
...n,
|
|
12
|
+
isSelected: i,
|
|
13
|
+
isInvalid: f,
|
|
14
|
+
isDisabled: d,
|
|
15
|
+
isRoundedLeft: D,
|
|
16
|
+
isRoundedRight: y
|
|
17
|
+
}), P = r(`${l}.cellDate`, {
|
|
18
|
+
...n,
|
|
19
|
+
isSelected: i,
|
|
20
|
+
isInvalid: f,
|
|
21
|
+
isDisabled: d,
|
|
22
|
+
isSelectionStart: a,
|
|
23
|
+
isSelectionEnd: m
|
|
24
|
+
});
|
|
25
|
+
return /* @__PURE__ */ c("td", { ...u, "aria-disabled": !1, className: S, children: /* @__PURE__ */ c("div", { ...F(p, b), ref: s, hidden: R, className: t, children: /* @__PURE__ */ c("div", { className: P, children: $ }) }) });
|
|
26
|
+
}
|
|
13
27
|
export {
|
|
14
|
-
|
|
28
|
+
w as default
|
|
15
29
|
};
|
package/index132.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index196.js"),l=require("@react-aria/utils"),u=require("@react-aria/focus");function t(a,e,r){let n=u.useHasTabbableChild(r)?void 0:0;var i;const b=d.generateId(e,(i=a.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),o=l.useLabels({...a,id:b,"aria-labelledby":d.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:l.mergeProps(o,{tabIndex:n,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=t;
|
package/index132.mjs
CHANGED
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"aria-label": a ? void 0 : `${t + 1} / ${o.length}`,
|
|
22
|
-
"aria-labelledby": a ? x : void 0,
|
|
23
|
-
...b,
|
|
24
|
-
...f,
|
|
25
|
-
themeName: `${l}.bullet`,
|
|
26
|
-
tokens: { ...u, active: r }
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
1
|
+
import { generateId as i } from "./index196.mjs";
|
|
2
|
+
import { useLabels as n, mergeProps as c } from "@react-aria/utils";
|
|
3
|
+
import { useHasTabbableChild as f } from "@react-aria/focus";
|
|
4
|
+
function m(a, e, l) {
|
|
5
|
+
let r = f(l) ? void 0 : 0;
|
|
6
|
+
var d;
|
|
7
|
+
const b = i(e, (d = a.id) !== null && d !== void 0 ? d : e == null ? void 0 : e.selectedKey, "tabpanel"), o = n({
|
|
8
|
+
...a,
|
|
9
|
+
id: b,
|
|
10
|
+
"aria-labelledby": i(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
tabPanelProps: c(o, {
|
|
14
|
+
tabIndex: r,
|
|
15
|
+
role: "tabpanel",
|
|
16
|
+
"aria-describedby": a["aria-describedby"],
|
|
17
|
+
"aria-details": a["aria-details"]
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
}
|
|
30
21
|
export {
|
|
31
|
-
|
|
22
|
+
m as useTabPanel
|
|
32
23
|
};
|
package/index133.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@react-aria/utils"),O=require("@react-aria/focus"),m=require("./index189.js");function S(s,o){let{elementType:r="button",isDisabled:e,onPress:l,onPressStart:u,onPressEnd:P,onPressUp:p,onPressChange:c,preventFocusOnPress:b,allowFocusWhenDisabled:f,onClick:i,href:g,target:h,rel:y,type:d="button"}=s,n;r==="button"?n={type:d,disabled:e}:n={role:"button",tabIndex:e?void 0:0,href:r==="a"&&e?void 0:g,target:r==="a"?h:void 0,type:r==="input"?d:void 0,disabled:r==="input"?e:void 0,"aria-disabled":!e||r==="input"?void 0:e,rel:r==="a"?y:void 0};let{pressProps:C,isPressed:x}=m.usePress({onPressStart:u,onPressEnd:P,onPressChange:c,onPress:l,onPressUp:p,isDisabled:e,preventFocusOnPress:b,ref:o}),{focusableProps:t}=O.useFocusable(s,o);f&&(t.tabIndex=e?-1:t.tabIndex);let D=a.mergeProps(t,C,a.filterDOMProps(s,{labelable:!0}));return{isPressed:x,buttonProps:a.mergeProps(n,D,{"aria-haspopup":s["aria-haspopup"],"aria-expanded":s["aria-expanded"],"aria-controls":s["aria-controls"],"aria-pressed":s["aria-pressed"],onClick:F=>{i&&(i(F),console.warn("onClick is deprecated, please use onPress"))}})}}exports.useButton=S;
|