@rpcbase/ui 0.158.0 → 0.159.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/dist/components/DayPicker/index.d.ts.map +1 -1
- package/dist/components/HoursPicker/index.d.ts.map +1 -1
- package/dist/index100.js +130 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +20 -6
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +75 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +18 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +101 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +5 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +14 -8
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -6
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +326 -4
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +105 -104
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +49 -6
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +5 -145
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +66 -37
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -5
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +363 -7
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +261 -13
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +60 -13
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +46 -7
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +169 -31
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +109 -10
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +24 -10
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +8 -9
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -13
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -101
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +5 -20
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +464 -51
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +182 -69
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +107 -9
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +262 -20
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +9 -16
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +40 -21
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -6
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +52 -6
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -23
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +5 -35
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +16 -16
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +5 -6
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +7 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +16 -4
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +4 -4
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +3 -3
- package/dist/index140.js +4 -4
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +5 -3
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +5 -6
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +5 -24
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -7
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +6 -6
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +24 -5
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +6 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +4 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +6 -4
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +5 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +4 -4
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +5 -3
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -3
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +8 -3
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +5 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -33
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -249
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +6 -114
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +144 -218
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +36 -63
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +4 -20
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +7 -209
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +13 -319
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +13 -130
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +7 -20
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +31 -75
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +10 -18
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +10 -101
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +9 -5
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +13 -14
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +102 -2
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +19 -7
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +51 -324
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +71 -48
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +9 -605
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +19 -45
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +16 -11
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +21 -203
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +7 -22
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +45 -44
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +5 -24
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +18 -394
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +33 -45
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +16 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +6 -68
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +4 -363
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +4 -261
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -60
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +3 -46
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +6 -6
- package/dist/index190.js +6 -169
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +24 -110
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +7 -24
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +7 -8
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +3 -5
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +3 -4
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -466
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -185
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +4 -107
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +1 -1
- package/dist/index200.js +3 -262
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -9
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +3 -42
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +605 -4
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +25 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +29 -68
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -85
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +3 -46
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -8
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +67 -4
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +81 -48
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +44 -14
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +7 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +51 -58
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +60 -62
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +48 -6
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +39 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +100 -7
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +97 -17
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +99 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +13 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +154 -13
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +30 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +9 -14
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +47 -14
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +11 -5
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +44 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +95 -7
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +86 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +105 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +52 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +11 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +37 -9
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +8 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +116 -5
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +17 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +15 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +3 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +36 -10
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +20 -11
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -11
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +8 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +19 -7
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +28 -6
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -5
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +58 -6
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +8 -7
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +66 -6
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +18 -54
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +16 -8
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +4 -18
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +5 -23
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +6 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +4 -7
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +7 -10
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +17 -10
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -21
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +5 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +13 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +10 -9
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +14 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +14 -5
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +5 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +6 -9
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +7 -18
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +6 -15
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +9 -12
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +5 -29
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +5 -12
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +9 -25
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +5 -5
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -64
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +4 -48
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -39
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +10 -100
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +10 -97
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -99
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +11 -3
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +10 -67
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +7 -180
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +6 -46
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +5 -24
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +7 -29
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +8 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +6 -13
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +54 -153
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +22 -29
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +16 -9
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +7 -47
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +124 -47
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +10 -11
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +9 -43
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +19 -93
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +10 -86
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +9 -105
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +9 -52
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +4 -11
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +5 -37
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +16 -8
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +9 -116
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +47 -219
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +18 -17
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +15 -15
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +12 -3
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +28 -35
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +11 -19
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +25 -9
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +5 -8
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +65 -17
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +178 -26
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +44 -14
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +216 -40
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +5 -2
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +3 -2
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +23 -4
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +113 -19
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +15 -12
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +525 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +128 -3
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +132 -22
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +2 -113
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +2 -16
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +41 -38
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +19 -523
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +4 -127
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +18 -133
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +12 -20
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +64 -5
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +69 -6
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +9 -4
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +14 -16
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +65 -8
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +5 -5
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +36 -24
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -4
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +4 -546
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +16 -47
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +8 -17
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +5 -6
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +4 -8
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +545 -7
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +47 -9
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +17 -12
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +6 -9
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +21 -38
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +8 -13
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +8 -69
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +9 -9
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +13 -14
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +10 -66
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +13 -64
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +3 -4
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +23 -56
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +5 -68
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +55 -30
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +44 -30
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +68 -9
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +26 -148
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +9 -108
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +153 -4
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +108 -23
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +22 -15
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +12 -28
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +27 -12
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +5 -7
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +15 -22
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +30 -26
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +28 -12
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +12 -27
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +7 -5
- package/dist/index362.js.map +1 -1
- package/dist/index37.js +28 -23
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +17 -123
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +127 -230
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +230 -49
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +50 -2640
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +2598 -351
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +375 -214
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +230 -19
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +18 -138
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +125 -170
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +174 -64
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +74 -88
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +90 -5
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +5 -843
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +832 -54
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +66 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +8 -2
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +2 -24
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +22 -232
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +229 -200
- package/dist/index56.js.map +1 -1
- package/dist/index59.js +1 -1
- package/dist/index63.js +12 -122
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +133 -14
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -133
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +216 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +12 -216
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +34 -13
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +44 -31
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +7 -46
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +49 -7
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +4 -50
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +6 -4
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +28 -6
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +50 -28
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +9 -50
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +205 -9
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -53
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -1
- package/dist/index80.js +2 -2
- package/dist/index81.js +2 -2
- package/dist/index84.js +47 -52
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +205 -4
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +22 -5
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +24 -15
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +399 -5
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +46 -7
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +53 -16
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +3 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +33 -4
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +249 -5
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +114 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +219 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +66 -4
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +20 -6
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +209 -24
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +319 -6
- package/dist/index99.js.map +1 -1
- package/package.json +2 -1
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js"],"sourcesContent":["/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\r\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n if (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode;\n // https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n // If a `national_prefix_for_parsing` has any \"capturing groups\"\n // then it means that the national (significant) number is equal to\n // those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n // and nothing could be said about the actual national prefix:\n // what is it and was it even there.\n // If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n // then everything it matches is a national prefix.\n // To determine whether `national_prefix_for_parsing` matched any\n // \"capturing groups\", the value of the result of calling `.exec()`\n // is looked at, and if it has non-undefined values where there're\n // \"capturing groups\" in the regular expression, then it means\n // that \"capturing groups\" have been matched.\n // It's not possible to tell whether there'll be any \"capturing gropus\"\n // before the matching process, because a `national_prefix_for_parsing`\n // could exhibit both behaviors.\n var capturedGroupsCount = prefixMatch.length - 1;\n var hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount];\n if (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule());\n // If there's more than one captured group,\n // then carrier code is the second one.\n if (capturedGroupsCount > 1) {\n carrierCode = prefixMatch[1];\n }\n }\n // If there're no \"capturing groups\",\n // or if there're \"capturing groups\" but no\n // `national_prefix_transform_rule`,\n // then just strip the national prefix from the number,\n // and possibly a carrier code.\n // Seems like there could be more.\n else {\n // `prefixBeforeNationalNumber` is the whole substring matched by\n // the `national_prefix_for_parsing` regular expression.\n // There seem to be no guarantees that it's just a national prefix.\n // For example, if there's a carrier code, it's gonna be a\n // part of `prefixBeforeNationalNumber` too.\n var prefixBeforeNationalNumber = prefixMatch[0];\n nationalNumber = number.slice(prefixBeforeNationalNumber.length);\n // If there's at least one captured group,\n // then carrier code is the first one.\n if (hasCapturedGroups) {\n carrierCode = prefixMatch[1];\n }\n }\n // Tries to guess whether a national prefix was present in the input.\n // This is not something copy-pasted from Google's library:\n // they don't seem to have an equivalent for that.\n // So this isn't an \"officially approved\" way of doing something like that.\n // But since there seems no other existing method, this library uses it.\n var nationalPrefix;\n if (hasCapturedGroups) {\n var possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1]);\n var possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup);\n // Example: an Argentinian (AR) phone number `0111523456789`.\n // `prefixMatch[0]` is `01115`, and `$1` is `11`,\n // and the rest of the phone number is `23456789`.\n // The national number is transformed via `9$1` to `91123456789`.\n // National prefix `0` is detected being present at the start.\n // if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n if (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n nationalPrefix = metadata.numberingPlan.nationalPrefix();\n }\n } else {\n nationalPrefix = prefixMatch[0];\n }\n return {\n nationalNumber: nationalNumber,\n nationalPrefix: nationalPrefix,\n carrierCode: carrierCode\n };\n }\n }\n return {\n nationalNumber: number\n };\n}\n//# sourceMappingURL=extractNationalNumberFromPossiblyIncompleteNumber.js.map"],"names":["extractNationalNumberFromPossiblyIncompleteNumber","number","metadata","prefixPattern","prefixMatch","nationalNumber","carrierCode","capturedGroupsCount","hasCapturedGroups","prefixBeforeNationalNumber","nationalPrefix","possiblePositionOfTheFirstCapturedGroup","possibleNationalPrefix"],"mappings":"AAae,SAASA,EAAkDC,GAAQC,GAAU;AAC1F,MAAID,KAAUC,EAAS,cAAc,yBAAwB,GAAI;AAI/D,QAAIC,IAAgB,IAAI,OAAO,SAASD,EAAS,cAAc,yBAAwB,IAAK,GAAG,GAC3FE,IAAcD,EAAc,KAAKF,CAAM;AAC3C,QAAIG,GAAa;AACf,UAAIC,GACAC,GAiBAC,IAAsBH,EAAY,SAAS,GAC3CI,IAAoBD,IAAsB,KAAKH,EAAYG,CAAmB;AAClF,UAAIL,EAAS,4BAA2B,KAAMM;AAC5C,QAAAH,IAAiBJ,EAAO,QAAQE,GAAeD,EAAS,4BAA2B,CAAE,GAGjFK,IAAsB,MACxBD,IAAcF,EAAY,CAAC;AAAA,WAS1B;AAMH,YAAIK,IAA6BL,EAAY,CAAC;AAC9C,QAAAC,IAAiBJ,EAAO,MAAMQ,EAA2B,MAAM,GAG3DD,MACFF,IAAcF,EAAY,CAAC;AAAA,MAE/B;AAMA,UAAIM;AACJ,UAAIF,GAAmB;AACrB,YAAIG,IAA0CV,EAAO,QAAQG,EAAY,CAAC,CAAC,GACvEQ,IAAyBX,EAAO,MAAM,GAAGU,CAAuC;AAOpF,QAAIC,MAA2BV,EAAS,cAAc,eAAc,MAClEQ,IAAiBR,EAAS,cAAc,eAAc;AAAA,MAE1D;AACE,QAAAQ,IAAiBN,EAAY,CAAC;AAEhC,aAAO;AAAA,QACL,gBAAgBC;AAAA,QAChB,gBAAgBK;AAAA,QAChB,aAAaJ;AAAA,MACrB;AAAA,IACI;AAAA,EACF;AACA,SAAO;AAAA,IACL,gBAAgBL;AAAA,EACpB;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","children","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","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3E;AACG,IAACI,KAAO1E,GACP2E,KAAO5B;","x_google_ignoreList":[0]}
|
package/dist/index309.js
CHANGED
|
@@ -1,20 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var e = t.match(c);
|
|
12
|
-
if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
|
|
13
|
-
return t;
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./index60.js";
|
|
3
|
+
import { j as u } from "./index28.js";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function x(e) {
|
|
6
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
7
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(g);
|
|
8
|
+
if (a) {
|
|
9
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
14
11
|
}
|
|
12
|
+
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
|
|
13
|
+
});
|
|
14
|
+
return t.displayName = `${e}.Slot`, t;
|
|
15
|
+
}
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function y(e) {
|
|
18
|
+
const r = l.forwardRef((t, o) => {
|
|
19
|
+
const { children: n, ...i } = t;
|
|
20
|
+
if (l.isValidElement(n)) {
|
|
21
|
+
const c = R(n), s = C(i, n.props);
|
|
22
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
+
}
|
|
24
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
+
}
|
|
28
|
+
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
+
function g(e) {
|
|
30
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
|
+
}
|
|
32
|
+
function C(e, r) {
|
|
33
|
+
const t = { ...r };
|
|
34
|
+
for (const o in r) {
|
|
35
|
+
const n = e[o], i = r[o];
|
|
36
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
+
const a = i(...s);
|
|
38
|
+
return n(...s), a;
|
|
39
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
15
40
|
}
|
|
41
|
+
return { ...e, ...t };
|
|
42
|
+
}
|
|
43
|
+
function R(e) {
|
|
44
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
16
46
|
}
|
|
17
47
|
export {
|
|
18
|
-
|
|
48
|
+
x as createSlot
|
|
19
49
|
};
|
|
20
50
|
//# sourceMappingURL=index309.js.map
|
package/dist/index309.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index309.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index309.js","sources":["../../../node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","mayWarn"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AACh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AM,QAAQA,EAAM,KAAK,cAAcO;AAClI;AACA,SAASF,EAAWX,GAAWc,GAAY;AACzC,QAAMC,IAAgB,EAAE,GAAGD,EAAU;AACrC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBjB,EAAUgB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,YAAMC,IAASF,EAAe,GAAGC,CAAI;AACrC,aAAAF,EAAc,GAAGE,CAAI,GACdC;AAAA,IACT,IACSH,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAc,IACtDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAEtF;AACA,SAAO,EAAE,GAAGlB,GAAW,GAAGe,EAAa;AACzC;AACA,SAASN,EAAcY,GAAS;AAC9B,MAAIC,IAAS,OAAO,yBAAyBD,EAAQ,OAAO,KAAK,GAAG,KAChEE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIC,IACKF,EAAQ,OAEjBC,IAAS,OAAO,yBAAyBD,GAAS,KAAK,GAAG,KAC1DE,IAAUD,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDC,IACKF,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index31.js
CHANGED
|
@@ -1,47 +1,223 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { DIRECTION as r } from "./index215.js";
|
|
2
|
+
import h from "./index216.js";
|
|
3
|
+
import u, { maskedClass as l } from "./index32.js";
|
|
4
|
+
import d from "./index33.js";
|
|
5
|
+
import p from "./index34.js";
|
|
6
|
+
import _ from "./index36.js";
|
|
7
|
+
import o from "./index91.js";
|
|
8
|
+
import m from "./index37.js";
|
|
9
|
+
import "./index35.js";
|
|
10
|
+
class c {
|
|
11
|
+
/**
|
|
12
|
+
View element
|
|
13
|
+
*/
|
|
14
|
+
/** Internal {@link Masked} model */
|
|
15
|
+
constructor(t, s) {
|
|
16
|
+
this.el = t instanceof d ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new _(t) : new p(t), this.masked = u(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new m(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
17
|
+
}
|
|
18
|
+
maskEquals(t) {
|
|
19
|
+
var s;
|
|
20
|
+
return t == null || ((s = this.masked) == null ? void 0 : s.maskEquals(t));
|
|
21
|
+
}
|
|
22
|
+
/** Masked */
|
|
23
|
+
get mask() {
|
|
24
|
+
return this.masked.mask;
|
|
25
|
+
}
|
|
26
|
+
set mask(t) {
|
|
27
|
+
if (this.maskEquals(t)) return;
|
|
28
|
+
if (!(t instanceof o.Masked) && this.masked.constructor === l(t)) {
|
|
29
|
+
this.masked.updateOptions({
|
|
30
|
+
mask: t
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const s = t instanceof o.Masked ? t : u({
|
|
35
|
+
mask: t
|
|
36
|
+
});
|
|
37
|
+
s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
|
|
38
|
+
}
|
|
39
|
+
/** Raw value */
|
|
40
|
+
get value() {
|
|
41
|
+
return this._value;
|
|
42
|
+
}
|
|
43
|
+
set value(t) {
|
|
44
|
+
this.value !== t && (this.masked.value = t, this.updateControl("auto"));
|
|
45
|
+
}
|
|
46
|
+
/** Unmasked value */
|
|
47
|
+
get unmaskedValue() {
|
|
48
|
+
return this._unmaskedValue;
|
|
49
|
+
}
|
|
50
|
+
set unmaskedValue(t) {
|
|
51
|
+
this.unmaskedValue !== t && (this.masked.unmaskedValue = t, this.updateControl("auto"));
|
|
52
|
+
}
|
|
53
|
+
/** Raw input value */
|
|
54
|
+
get rawInputValue() {
|
|
55
|
+
return this._rawInputValue;
|
|
56
|
+
}
|
|
57
|
+
set rawInputValue(t) {
|
|
58
|
+
this.rawInputValue !== t && (this.masked.rawInputValue = t, this.updateControl(), this.alignCursor());
|
|
59
|
+
}
|
|
60
|
+
/** Typed unmasked value */
|
|
61
|
+
get typedValue() {
|
|
62
|
+
return this.masked.typedValue;
|
|
63
|
+
}
|
|
64
|
+
set typedValue(t) {
|
|
65
|
+
this.masked.typedValueEquals(t) || (this.masked.typedValue = t, this.updateControl("auto"));
|
|
66
|
+
}
|
|
67
|
+
/** Display value */
|
|
68
|
+
get displayValue() {
|
|
69
|
+
return this.masked.displayValue;
|
|
70
|
+
}
|
|
71
|
+
/** Starts listening to element events */
|
|
72
|
+
_bindEvents() {
|
|
73
|
+
this.el.bindEvents({
|
|
74
|
+
selectionChange: this._saveSelection,
|
|
75
|
+
input: this._onInput,
|
|
76
|
+
drop: this._onDrop,
|
|
77
|
+
click: this._onClick,
|
|
78
|
+
focus: this._onFocus,
|
|
79
|
+
commit: this._onChange,
|
|
80
|
+
undo: this._onUndo,
|
|
81
|
+
redo: this._onRedo
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/** Stops listening to element events */
|
|
85
|
+
_unbindEvents() {
|
|
86
|
+
this.el && this.el.unbindEvents();
|
|
87
|
+
}
|
|
88
|
+
/** Fires custom event */
|
|
89
|
+
_fireEvent(t, s) {
|
|
90
|
+
const e = this._listeners[t];
|
|
91
|
+
e && e.forEach((i) => i(s));
|
|
92
|
+
}
|
|
93
|
+
/** Current selection start */
|
|
94
|
+
get selectionStart() {
|
|
95
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
|
|
96
|
+
}
|
|
97
|
+
/** Current cursor position */
|
|
98
|
+
get cursorPos() {
|
|
99
|
+
return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
|
|
100
|
+
}
|
|
101
|
+
set cursorPos(t) {
|
|
102
|
+
!this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
|
|
103
|
+
}
|
|
104
|
+
/** Stores current selection */
|
|
105
|
+
_saveSelection() {
|
|
106
|
+
this.displayValue !== this.el.value && console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."), this._selection = {
|
|
107
|
+
start: this.selectionStart,
|
|
108
|
+
end: this.cursorPos
|
|
12
109
|
};
|
|
110
|
+
}
|
|
111
|
+
/** Syncronizes model value from view */
|
|
112
|
+
updateValue() {
|
|
113
|
+
this.masked.value = this.el.value, this._value = this.masked.value, this._unmaskedValue = this.masked.unmaskedValue, this._rawInputValue = this.masked.rawInputValue;
|
|
114
|
+
}
|
|
115
|
+
/** Syncronizes view from model value, fires change events */
|
|
116
|
+
updateControl(t) {
|
|
117
|
+
const s = this.masked.unmaskedValue, e = this.masked.value, i = this.masked.rawInputValue, n = this.displayValue, a = this.unmaskedValue !== s || this.value !== e || this._rawInputValue !== i;
|
|
118
|
+
this._unmaskedValue = s, this._value = e, this._rawInputValue = i, this.el.value !== n && (this.el.value = n), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), a && this._fireChangeEvents(), !this._historyChanging && (a || this.history.isEmpty) && this.history.push({
|
|
119
|
+
unmaskedValue: s,
|
|
120
|
+
selection: {
|
|
121
|
+
start: this.selectionStart,
|
|
122
|
+
end: this.cursorPos
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */
|
|
127
|
+
updateOptions(t) {
|
|
13
128
|
const {
|
|
14
|
-
mask:
|
|
15
|
-
...
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
129
|
+
mask: s,
|
|
130
|
+
...e
|
|
131
|
+
} = t, i = !this.maskEquals(s), n = this.masked.optionsIsChanged(e);
|
|
132
|
+
i && (this.mask = s), n && this.masked.updateOptions(e), (i || n) && this.updateControl();
|
|
133
|
+
}
|
|
134
|
+
/** Updates cursor */
|
|
135
|
+
updateCursor(t) {
|
|
136
|
+
t != null && (this.cursorPos = t, this._delayUpdateCursor(t));
|
|
137
|
+
}
|
|
138
|
+
/** Delays cursor update to support mobile browsers */
|
|
139
|
+
_delayUpdateCursor(t) {
|
|
140
|
+
this._abortUpdateCursor(), this._changingCursorPos = t, this._cursorChanging = setTimeout(() => {
|
|
141
|
+
this.el && (this.cursorPos = this._changingCursorPos, this._abortUpdateCursor());
|
|
142
|
+
}, 10);
|
|
143
|
+
}
|
|
144
|
+
/** Fires custom events */
|
|
145
|
+
_fireChangeEvents() {
|
|
146
|
+
this._fireEvent("accept", this._inputEvent), this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
|
|
147
|
+
}
|
|
148
|
+
/** Aborts delayed cursor update */
|
|
149
|
+
_abortUpdateCursor() {
|
|
150
|
+
this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
|
|
151
|
+
}
|
|
152
|
+
/** Aligns cursor to nearest available position */
|
|
153
|
+
alignCursor() {
|
|
154
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, r.LEFT));
|
|
155
|
+
}
|
|
156
|
+
/** Aligns cursor only if selection is empty */
|
|
157
|
+
alignCursorFriendly() {
|
|
158
|
+
this.selectionStart === this.cursorPos && this.alignCursor();
|
|
159
|
+
}
|
|
160
|
+
/** Adds listener on custom event */
|
|
161
|
+
on(t, s) {
|
|
162
|
+
return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(s), this;
|
|
163
|
+
}
|
|
164
|
+
/** Removes custom event listener */
|
|
165
|
+
off(t, s) {
|
|
166
|
+
if (!this._listeners[t]) return this;
|
|
167
|
+
if (!s)
|
|
168
|
+
return delete this._listeners[t], this;
|
|
169
|
+
const e = this._listeners[t].indexOf(s);
|
|
170
|
+
return e >= 0 && this._listeners[t].splice(e, 1), this;
|
|
171
|
+
}
|
|
172
|
+
/** Handles view input event */
|
|
173
|
+
_onInput(t) {
|
|
174
|
+
this._inputEvent = t, this._abortUpdateCursor();
|
|
175
|
+
const s = new h({
|
|
176
|
+
// new state
|
|
177
|
+
value: this.el.value,
|
|
178
|
+
cursorPos: this.cursorPos,
|
|
179
|
+
// old state
|
|
180
|
+
oldValue: this.displayValue,
|
|
181
|
+
oldSelection: this._selection
|
|
182
|
+
}), e = this.masked.rawInputValue, i = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
|
|
183
|
+
input: !0,
|
|
184
|
+
raw: !0
|
|
185
|
+
}).offset, n = e === this.masked.rawInputValue ? s.removeDirection : r.NONE;
|
|
186
|
+
let a = this.masked.nearestInputPos(s.startChangePos + i, n);
|
|
187
|
+
n !== r.NONE && (a = this.masked.nearestInputPos(a, r.NONE)), this.updateControl(a), delete this._inputEvent;
|
|
188
|
+
}
|
|
189
|
+
/** Handles view change event and commits model value */
|
|
190
|
+
_onChange() {
|
|
191
|
+
this.displayValue !== this.el.value && this.updateValue(), this.masked.doCommit(), this.updateControl(), this._saveSelection();
|
|
192
|
+
}
|
|
193
|
+
/** Handles view drop event, prevents by default */
|
|
194
|
+
_onDrop(t) {
|
|
195
|
+
t.preventDefault(), t.stopPropagation();
|
|
196
|
+
}
|
|
197
|
+
/** Restore last selection on focus */
|
|
198
|
+
_onFocus(t) {
|
|
199
|
+
this.alignCursorFriendly();
|
|
200
|
+
}
|
|
201
|
+
/** Restore last selection on focus */
|
|
202
|
+
_onClick(t) {
|
|
203
|
+
this.alignCursorFriendly();
|
|
204
|
+
}
|
|
205
|
+
_onUndo() {
|
|
206
|
+
this._applyHistoryState(this.history.undo());
|
|
207
|
+
}
|
|
208
|
+
_onRedo() {
|
|
209
|
+
this._applyHistoryState(this.history.redo());
|
|
210
|
+
}
|
|
211
|
+
_applyHistoryState(t) {
|
|
212
|
+
t && (this._historyChanging = !0, this.unmaskedValue = t.unmaskedValue, this.el.select(t.selection.start, t.selection.end), this._saveSelection(), this._historyChanging = !1);
|
|
213
|
+
}
|
|
214
|
+
/** Unbind view events and removes element reference */
|
|
215
|
+
destroy() {
|
|
216
|
+
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
28
217
|
}
|
|
29
|
-
return t(e) ? {
|
|
30
|
-
...e
|
|
31
|
-
} : {
|
|
32
|
-
mask: e
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function u(e) {
|
|
36
|
-
if (r.Masked && e instanceof r.Masked) return e;
|
|
37
|
-
const n = k(e), a = d(n.mask);
|
|
38
|
-
if (!a) throw new Error("Masked class is not found for provided mask " + n.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
39
|
-
return n.mask === a && delete n.mask, n._mask && (n.mask = n._mask, delete n._mask), new a(n);
|
|
40
218
|
}
|
|
41
|
-
|
|
219
|
+
o.InputMask = c;
|
|
42
220
|
export {
|
|
43
|
-
|
|
44
|
-
d as maskedClass,
|
|
45
|
-
k as normalizeOpts
|
|
221
|
+
c as default
|
|
46
222
|
};
|
|
47
223
|
//# sourceMappingURL=index31.js.map
|
package/dist/index31.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index31.js","sources":["../../../node_modules/imask/esm/masked/factory.js"],"sourcesContent":["import { isString, isObject, pick } from '../core/utils.js';\nimport IMask from '../core/holder.js';\n\n// TODO can't use overloads here because of https://github.com/microsoft/TypeScript/issues/50754\n// export function maskedClass(mask: string): typeof MaskedPattern;\n// export function maskedClass(mask: DateConstructor): typeof MaskedDate;\n// export function maskedClass(mask: NumberConstructor): typeof MaskedNumber;\n// export function maskedClass(mask: Array<any> | ArrayConstructor): typeof MaskedDynamic;\n// export function maskedClass(mask: MaskedDate): typeof MaskedDate;\n// export function maskedClass(mask: MaskedNumber): typeof MaskedNumber;\n// export function maskedClass(mask: MaskedEnum): typeof MaskedEnum;\n// export function maskedClass(mask: MaskedRange): typeof MaskedRange;\n// export function maskedClass(mask: MaskedRegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: MaskedFunction): typeof MaskedFunction;\n// export function maskedClass(mask: MaskedPattern): typeof MaskedPattern;\n// export function maskedClass(mask: MaskedDynamic): typeof MaskedDynamic;\n// export function maskedClass(mask: Masked): typeof Masked;\n// export function maskedClass(mask: typeof Masked): typeof Masked;\n// export function maskedClass(mask: typeof MaskedDate): typeof MaskedDate;\n// export function maskedClass(mask: typeof MaskedNumber): typeof MaskedNumber;\n// export function maskedClass(mask: typeof MaskedEnum): typeof MaskedEnum;\n// export function maskedClass(mask: typeof MaskedRange): typeof MaskedRange;\n// export function maskedClass(mask: typeof MaskedRegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: typeof MaskedFunction): typeof MaskedFunction;\n// export function maskedClass(mask: typeof MaskedPattern): typeof MaskedPattern;\n// export function maskedClass(mask: typeof MaskedDynamic): typeof MaskedDynamic;\n// export function maskedClass<Mask extends typeof Masked> (mask: Mask): Mask;\n// export function maskedClass(mask: RegExp): typeof MaskedRegExp;\n// export function maskedClass(mask: (value: string, ...args: any[]) => boolean): typeof MaskedFunction;\n\n/** Get Masked class by mask type */\nfunction maskedClass(mask) /* TODO */{\n if (mask == null) throw new Error('mask property should be defined');\n if (mask instanceof RegExp) return IMask.MaskedRegExp;\n if (isString(mask)) return IMask.MaskedPattern;\n if (mask === Date) return IMask.MaskedDate;\n if (mask === Number) return IMask.MaskedNumber;\n if (Array.isArray(mask) || mask === Array) return IMask.MaskedDynamic;\n if (IMask.Masked && mask.prototype instanceof IMask.Masked) return mask;\n if (IMask.Masked && mask instanceof IMask.Masked) return mask.constructor;\n if (mask instanceof Function) return IMask.MaskedFunction;\n console.warn('Mask not found for mask', mask); // eslint-disable-line no-console\n return IMask.Masked;\n}\nfunction normalizeOpts(opts) {\n if (!opts) throw new Error('Options in not defined');\n if (IMask.Masked) {\n if (opts.prototype instanceof IMask.Masked) return {\n mask: opts\n };\n\n /*\n handle cases like:\n 1) opts = Masked\n 2) opts = { mask: Masked, ...instanceOpts }\n */\n const {\n mask = undefined,\n ...instanceOpts\n } = opts instanceof IMask.Masked ? {\n mask: opts\n } : isObject(opts) && opts.mask instanceof IMask.Masked ? opts : {};\n if (mask) {\n const _mask = mask.mask;\n return {\n ...pick(mask, (_, k) => !k.startsWith('_')),\n mask: mask.constructor,\n _mask,\n ...instanceOpts\n };\n }\n }\n if (!isObject(opts)) return {\n mask: opts\n };\n return {\n ...opts\n };\n}\n\n// TODO can't use overloads here because of https://github.com/microsoft/TypeScript/issues/50754\n\n// From masked\n// export default function createMask<Opts extends Masked, ReturnMasked=Opts> (opts: Opts): ReturnMasked;\n// // From masked class\n// export default function createMask<Opts extends MaskedOptions<typeof Masked>, ReturnMasked extends Masked=InstanceType<Opts['mask']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedDate>, ReturnMasked extends MaskedDate=MaskedDate<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedNumber>, ReturnMasked extends MaskedNumber=MaskedNumber<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedEnum>, ReturnMasked extends MaskedEnum=MaskedEnum<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedRange>, ReturnMasked extends MaskedRange=MaskedRange<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedRegExp>, ReturnMasked extends MaskedRegExp=MaskedRegExp<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedFunction>, ReturnMasked extends MaskedFunction=MaskedFunction<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedPattern>, ReturnMasked extends MaskedPattern=MaskedPattern<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<typeof MaskedDynamic>, ReturnMasked extends MaskedDynamic=MaskedDynamic<Opts['parent']>> (opts: Opts): ReturnMasked;\n// // From mask opts\n// export default function createMask<Opts extends MaskedOptions<Masked>, ReturnMasked=Opts extends MaskedOptions<infer M> ? M : never> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedNumberOptions, ReturnMasked extends MaskedNumber=MaskedNumber<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedDateFactoryOptions, ReturnMasked extends MaskedDate=MaskedDate<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedEnumOptions, ReturnMasked extends MaskedEnum=MaskedEnum<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedRangeOptions, ReturnMasked extends MaskedRange=MaskedRange<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedPatternOptions, ReturnMasked extends MaskedPattern=MaskedPattern<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedDynamicOptions, ReturnMasked extends MaskedDynamic=MaskedDynamic<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<RegExp>, ReturnMasked extends MaskedRegExp=MaskedRegExp<Opts['parent']>> (opts: Opts): ReturnMasked;\n// export default function createMask<Opts extends MaskedOptions<Function>, ReturnMasked extends MaskedFunction=MaskedFunction<Opts['parent']>> (opts: Opts): ReturnMasked;\n\n/** Creates new {@link Masked} depending on mask type */\nfunction createMask(opts) {\n if (IMask.Masked && opts instanceof IMask.Masked) return opts;\n const nOpts = normalizeOpts(opts);\n const MaskedClass = maskedClass(nOpts.mask);\n if (!MaskedClass) throw new Error(\"Masked class is not found for provided mask \" + nOpts.mask + \", appropriate module needs to be imported manually before creating mask.\");\n if (nOpts.mask === MaskedClass) delete nOpts.mask;\n if (nOpts._mask) {\n nOpts.mask = nOpts._mask;\n delete nOpts._mask;\n }\n return new MaskedClass(nOpts);\n}\nIMask.createMask = createMask;\n\nexport { createMask as default, maskedClass, normalizeOpts };\n"],"names":["maskedClass","mask","IMask","isString","normalizeOpts","opts","instanceOpts","isObject","_mask","pick","_","k","createMask","nOpts","MaskedClass"],"mappings":";;AA+BA,SAASA,EAAYC,GAAgB;AACnC,MAAIA,KAAQ,KAAM,OAAM,IAAI,MAAM,iCAAiC;AACnE,SAAIA,aAAgB,SAAeC,EAAM,eACrCC,EAASF,CAAI,IAAUC,EAAM,gBAC7BD,MAAS,OAAaC,EAAM,aAC5BD,MAAS,SAAeC,EAAM,eAC9B,MAAM,QAAQD,CAAI,KAAKA,MAAS,QAAcC,EAAM,gBACpDA,EAAM,UAAUD,EAAK,qBAAqBC,EAAM,SAAeD,IAC/DC,EAAM,UAAUD,aAAgBC,EAAM,SAAeD,EAAK,cAC1DA,aAAgB,WAAiBC,EAAM,kBAC3C,QAAQ,KAAK,2BAA2BD,CAAI,GACrCC,EAAM;AACf;AACA,SAASE,EAAcC,GAAM;AAC3B,MAAI,CAACA,EAAM,OAAM,IAAI,MAAM,wBAAwB;AACnD,MAAIH,EAAM,QAAQ;AAChB,QAAIG,EAAK,qBAAqBH,EAAM,OAAQ,QAAO;AAAA,MACjD,MAAMG;AAAA,IACZ;AAOI,UAAM;AAAA,MACJ,MAAAJ,IAAO;AAAA,MACP,GAAGK;AAAA,IACT,IAAQD,aAAgBH,EAAM,SAAS;AAAA,MACjC,MAAMG;AAAA,IACZ,IAAQE,EAASF,CAAI,KAAKA,EAAK,gBAAgBH,EAAM,SAASG,IAAO,CAAA;AACjE,QAAIJ,GAAM;AACR,YAAMO,IAAQP,EAAK;AACnB,aAAO;AAAA,QACL,GAAGQ,EAAKR,GAAM,CAACS,GAAGC,MAAM,CAACA,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1C,MAAMV,EAAK;AAAA,QACX,OAAAO;AAAA,QACA,GAAGF;AAAA,MACX;AAAA,IACI;AAAA,EACF;AACA,SAAKC,EAASF,CAAI,IAGX;AAAA,IACL,GAAGA;AAAA,EACP,IAL8B;AAAA,IAC1B,MAAMA;AAAA,EACV;AAIA;AA4BA,SAASO,EAAWP,GAAM;AACxB,MAAIH,EAAM,UAAUG,aAAgBH,EAAM,OAAQ,QAAOG;AACzD,QAAMQ,IAAQT,EAAcC,CAAI,GAC1BS,IAAcd,EAAYa,EAAM,IAAI;AAC1C,MAAI,CAACC,EAAa,OAAM,IAAI,MAAM,iDAAiDD,EAAM,OAAO,0EAA0E;AAC1K,SAAIA,EAAM,SAASC,KAAa,OAAOD,EAAM,MACzCA,EAAM,UACRA,EAAM,OAAOA,EAAM,OACnB,OAAOA,EAAM,QAER,IAAIC,EAAYD,CAAK;AAC9B;AACAX,EAAM,aAAaU;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index31.js","sources":["../../../node_modules/imask/esm/controls/input.js"],"sourcesContent":["import { DIRECTION } from '../core/utils.js';\nimport ActionDetails from '../core/action-details.js';\nimport createMask, { maskedClass } from '../masked/factory.js';\nimport MaskElement from './mask-element.js';\nimport HTMLInputMaskElement from './html-input-mask-element.js';\nimport HTMLContenteditableMaskElement from './html-contenteditable-mask-element.js';\nimport IMask from '../core/holder.js';\nimport InputHistory from './input-history.js';\nimport './html-mask-element.js';\n\n/** Listens to element events and controls changes between element and {@link Masked} */\nclass InputMask {\n /**\n View element\n */\n\n /** Internal {@link Masked} model */\n\n constructor(el, opts) {\n this.el = el instanceof MaskElement ? el : el.isContentEditable && el.tagName !== 'INPUT' && el.tagName !== 'TEXTAREA' ? new HTMLContenteditableMaskElement(el) : new HTMLInputMaskElement(el);\n this.masked = createMask(opts);\n this._listeners = {};\n this._value = '';\n this._unmaskedValue = '';\n this._rawInputValue = '';\n this.history = new InputHistory();\n this._saveSelection = this._saveSelection.bind(this);\n this._onInput = this._onInput.bind(this);\n this._onChange = this._onChange.bind(this);\n this._onDrop = this._onDrop.bind(this);\n this._onFocus = this._onFocus.bind(this);\n this._onClick = this._onClick.bind(this);\n this._onUndo = this._onUndo.bind(this);\n this._onRedo = this._onRedo.bind(this);\n this.alignCursor = this.alignCursor.bind(this);\n this.alignCursorFriendly = this.alignCursorFriendly.bind(this);\n this._bindEvents();\n\n // refresh\n this.updateValue();\n this._onChange();\n }\n maskEquals(mask) {\n var _this$masked;\n return mask == null || ((_this$masked = this.masked) == null ? void 0 : _this$masked.maskEquals(mask));\n }\n\n /** Masked */\n get mask() {\n return this.masked.mask;\n }\n set mask(mask) {\n if (this.maskEquals(mask)) return;\n if (!(mask instanceof IMask.Masked) && this.masked.constructor === maskedClass(mask)) {\n // TODO \"any\" no idea\n this.masked.updateOptions({\n mask\n });\n return;\n }\n const masked = mask instanceof IMask.Masked ? mask : createMask({\n mask\n });\n masked.unmaskedValue = this.masked.unmaskedValue;\n this.masked = masked;\n }\n\n /** Raw value */\n get value() {\n return this._value;\n }\n set value(str) {\n if (this.value === str) return;\n this.masked.value = str;\n this.updateControl('auto');\n }\n\n /** Unmasked value */\n get unmaskedValue() {\n return this._unmaskedValue;\n }\n set unmaskedValue(str) {\n if (this.unmaskedValue === str) return;\n this.masked.unmaskedValue = str;\n this.updateControl('auto');\n }\n\n /** Raw input value */\n get rawInputValue() {\n return this._rawInputValue;\n }\n set rawInputValue(str) {\n if (this.rawInputValue === str) return;\n this.masked.rawInputValue = str;\n this.updateControl();\n this.alignCursor();\n }\n\n /** Typed unmasked value */\n get typedValue() {\n return this.masked.typedValue;\n }\n set typedValue(val) {\n if (this.masked.typedValueEquals(val)) return;\n this.masked.typedValue = val;\n this.updateControl('auto');\n }\n\n /** Display value */\n get displayValue() {\n return this.masked.displayValue;\n }\n\n /** Starts listening to element events */\n _bindEvents() {\n this.el.bindEvents({\n selectionChange: this._saveSelection,\n input: this._onInput,\n drop: this._onDrop,\n click: this._onClick,\n focus: this._onFocus,\n commit: this._onChange,\n undo: this._onUndo,\n redo: this._onRedo\n });\n }\n\n /** Stops listening to element events */\n _unbindEvents() {\n if (this.el) this.el.unbindEvents();\n }\n\n /** Fires custom event */\n _fireEvent(ev, e) {\n const listeners = this._listeners[ev];\n if (!listeners) return;\n listeners.forEach(l => l(e));\n }\n\n /** Current selection start */\n get selectionStart() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;\n }\n\n /** Current cursor position */\n get cursorPos() {\n return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;\n }\n set cursorPos(pos) {\n if (!this.el || !this.el.isActive) return;\n this.el.select(pos, pos);\n this._saveSelection();\n }\n\n /** Stores current selection */\n _saveSelection( /* ev */\n ) {\n if (this.displayValue !== this.el.value) {\n console.warn('Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.'); // eslint-disable-line no-console\n }\n this._selection = {\n start: this.selectionStart,\n end: this.cursorPos\n };\n }\n\n /** Syncronizes model value from view */\n updateValue() {\n this.masked.value = this.el.value;\n this._value = this.masked.value;\n this._unmaskedValue = this.masked.unmaskedValue;\n this._rawInputValue = this.masked.rawInputValue;\n }\n\n /** Syncronizes view from model value, fires change events */\n updateControl(cursorPos) {\n const newUnmaskedValue = this.masked.unmaskedValue;\n const newValue = this.masked.value;\n const newRawInputValue = this.masked.rawInputValue;\n const newDisplayValue = this.displayValue;\n const isChanged = this.unmaskedValue !== newUnmaskedValue || this.value !== newValue || this._rawInputValue !== newRawInputValue;\n this._unmaskedValue = newUnmaskedValue;\n this._value = newValue;\n this._rawInputValue = newRawInputValue;\n if (this.el.value !== newDisplayValue) this.el.value = newDisplayValue;\n if (cursorPos === 'auto') this.alignCursor();else if (cursorPos != null) this.cursorPos = cursorPos;\n if (isChanged) this._fireChangeEvents();\n if (!this._historyChanging && (isChanged || this.history.isEmpty)) this.history.push({\n unmaskedValue: newUnmaskedValue,\n selection: {\n start: this.selectionStart,\n end: this.cursorPos\n }\n });\n }\n\n /** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */\n updateOptions(opts) {\n const {\n mask,\n ...restOpts\n } = opts; // TODO types, yes, mask is optional\n\n const updateMask = !this.maskEquals(mask);\n const updateOpts = this.masked.optionsIsChanged(restOpts);\n if (updateMask) this.mask = mask;\n if (updateOpts) this.masked.updateOptions(restOpts); // TODO\n\n if (updateMask || updateOpts) this.updateControl();\n }\n\n /** Updates cursor */\n updateCursor(cursorPos) {\n if (cursorPos == null) return;\n this.cursorPos = cursorPos;\n\n // also queue change cursor for mobile browsers\n this._delayUpdateCursor(cursorPos);\n }\n\n /** Delays cursor update to support mobile browsers */\n _delayUpdateCursor(cursorPos) {\n this._abortUpdateCursor();\n this._changingCursorPos = cursorPos;\n this._cursorChanging = setTimeout(() => {\n if (!this.el) return; // if was destroyed\n this.cursorPos = this._changingCursorPos;\n this._abortUpdateCursor();\n }, 10);\n }\n\n /** Fires custom events */\n _fireChangeEvents() {\n this._fireEvent('accept', this._inputEvent);\n if (this.masked.isComplete) this._fireEvent('complete', this._inputEvent);\n }\n\n /** Aborts delayed cursor update */\n _abortUpdateCursor() {\n if (this._cursorChanging) {\n clearTimeout(this._cursorChanging);\n delete this._cursorChanging;\n }\n }\n\n /** Aligns cursor to nearest available position */\n alignCursor() {\n this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, DIRECTION.LEFT));\n }\n\n /** Aligns cursor only if selection is empty */\n alignCursorFriendly() {\n if (this.selectionStart !== this.cursorPos) return; // skip if range is selected\n this.alignCursor();\n }\n\n /** Adds listener on custom event */\n on(ev, handler) {\n if (!this._listeners[ev]) this._listeners[ev] = [];\n this._listeners[ev].push(handler);\n return this;\n }\n\n /** Removes custom event listener */\n off(ev, handler) {\n if (!this._listeners[ev]) return this;\n if (!handler) {\n delete this._listeners[ev];\n return this;\n }\n const hIndex = this._listeners[ev].indexOf(handler);\n if (hIndex >= 0) this._listeners[ev].splice(hIndex, 1);\n return this;\n }\n\n /** Handles view input event */\n _onInput(e) {\n this._inputEvent = e;\n this._abortUpdateCursor();\n const details = new ActionDetails({\n // new state\n value: this.el.value,\n cursorPos: this.cursorPos,\n // old state\n oldValue: this.displayValue,\n oldSelection: this._selection\n });\n const oldRawValue = this.masked.rawInputValue;\n const offset = this.masked.splice(details.startChangePos, details.removed.length, details.inserted, details.removeDirection, {\n input: true,\n raw: true\n }).offset;\n\n // force align in remove direction only if no input chars were removed\n // otherwise we still need to align with NONE (to get out from fixed symbols for instance)\n const removeDirection = oldRawValue === this.masked.rawInputValue ? details.removeDirection : DIRECTION.NONE;\n let cursorPos = this.masked.nearestInputPos(details.startChangePos + offset, removeDirection);\n if (removeDirection !== DIRECTION.NONE) cursorPos = this.masked.nearestInputPos(cursorPos, DIRECTION.NONE);\n this.updateControl(cursorPos);\n delete this._inputEvent;\n }\n\n /** Handles view change event and commits model value */\n _onChange() {\n if (this.displayValue !== this.el.value) this.updateValue();\n this.masked.doCommit();\n this.updateControl();\n this._saveSelection();\n }\n\n /** Handles view drop event, prevents by default */\n _onDrop(ev) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n\n /** Restore last selection on focus */\n _onFocus(ev) {\n this.alignCursorFriendly();\n }\n\n /** Restore last selection on focus */\n _onClick(ev) {\n this.alignCursorFriendly();\n }\n _onUndo() {\n this._applyHistoryState(this.history.undo());\n }\n _onRedo() {\n this._applyHistoryState(this.history.redo());\n }\n _applyHistoryState(state) {\n if (!state) return;\n this._historyChanging = true;\n this.unmaskedValue = state.unmaskedValue;\n this.el.select(state.selection.start, state.selection.end);\n this._saveSelection();\n this._historyChanging = false;\n }\n\n /** Unbind view events and removes element reference */\n destroy() {\n this._unbindEvents();\n this._listeners.length = 0;\n delete this.el;\n }\n}\nIMask.InputMask = InputMask;\n\nexport { InputMask as default };\n"],"names":["InputMask","el","opts","MaskElement","HTMLContenteditableMaskElement","HTMLInputMaskElement","createMask","InputHistory","mask","_this$masked","IMask","maskedClass","masked","str","val","ev","e","listeners","l","pos","cursorPos","newUnmaskedValue","newValue","newRawInputValue","newDisplayValue","isChanged","restOpts","updateMask","updateOpts","DIRECTION","handler","hIndex","details","ActionDetails","oldRawValue","offset","removeDirection","state"],"mappings":";;;;;;;;;AAWA,MAAMA,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAOd,YAAYC,GAAIC,GAAM;AACpB,SAAK,KAAKD,aAAcE,IAAcF,IAAKA,EAAG,qBAAqBA,EAAG,YAAY,WAAWA,EAAG,YAAY,aAAa,IAAIG,EAA+BH,CAAE,IAAI,IAAII,EAAqBJ,CAAE,GAC7L,KAAK,SAASK,EAAWJ,CAAI,GAC7B,KAAK,aAAa,CAAA,GAClB,KAAK,SAAS,IACd,KAAK,iBAAiB,IACtB,KAAK,iBAAiB,IACtB,KAAK,UAAU,IAAIK,EAAY,GAC/B,KAAK,iBAAiB,KAAK,eAAe,KAAK,IAAI,GACnD,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,YAAY,KAAK,UAAU,KAAK,IAAI,GACzC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,WAAW,KAAK,SAAS,KAAK,IAAI,GACvC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,cAAc,KAAK,YAAY,KAAK,IAAI,GAC7C,KAAK,sBAAsB,K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AAU,OAAOA,EAAM,UAAU,GAAG,GACzD,KAAK,eAAc,GACnB,KAAK,mBAAmB;AAAA,EAC1B;AAAA;AAAA,EAGA,UAAU;AACR,SAAK,cAAa,GAClB,KAAK,WAAW,SAAS,GACzB,OAAO,KAAK;AAAA,EACd;AACF;AACA3B,EAAM,YAAYV;","x_google_ignoreList":[0]}
|
package/dist/index310.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
var r =
|
|
1
|
+
var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
a as fullWidthClassName,
|
|
4
|
+
l as noScrollbarsClassName,
|
|
5
|
+
e as removedBarSizeVariable,
|
|
6
|
+
r as zeroRightClassName
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index310.js.map
|
package/dist/index310.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index310.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index310.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"AAAU,IAACA,IAAqB,6BACrBC,IAAqB,2BACrBC,IAAwB,2BAKxBC,IAAyB;","x_google_ignoreList":[0]}
|
package/dist/index311.js
CHANGED
package/dist/index311.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index311.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index311.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":";AACU,IAACA,IAAYC,EAAmB;","x_google_ignoreList":[0]}
|
package/dist/index312.js
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { assignRef as o } from "./index346.js";
|
|
3
|
+
import { useCallbackRef as l } from "./index347.js";
|
|
4
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function v(e, m) {
|
|
6
|
+
var t = l(null, function(n) {
|
|
7
|
+
return e.forEach(function(u) {
|
|
8
|
+
return o(u, n);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
return s(function() {
|
|
12
|
+
var n = c.get(t);
|
|
13
|
+
if (n) {
|
|
14
|
+
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
+
u.forEach(function(a) {
|
|
16
|
+
r.has(a) || o(a, null);
|
|
17
|
+
}), r.forEach(function(a) {
|
|
18
|
+
u.has(a) || o(a, i);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
c.set(t, e);
|
|
22
|
+
}, [e]), t;
|
|
4
23
|
}
|
|
5
24
|
export {
|
|
6
|
-
|
|
25
|
+
v as useMergeRefs
|
|
7
26
|
};
|
|
8
27
|
//# sourceMappingURL=index312.js.map
|
package/dist/index312.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index312.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index312.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js"],"sourcesContent":["import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n"],"names":["useIsomorphicLayoutEffect","React","currentValues","useMergeRefs","refs","defaultValue","callbackRef","useCallbackRef","newValue","ref","assignRef","oldValue","prevRefs_1","nextRefs_1","current_1"],"mappings":";;;AAGA,IAAIA,IAA4B,OAAO,SAAW,MAAcC,EAAM,kBAAkBA,EAAM,WAC1FC,IAAgB,oBAAI,QAAO;AAexB,SAASC,EAAaC,GAAMC,GAAc;AAC7C,MAAIC,IAAcC,EAA+B,MAAM,SAAUC,GAAU;AACvE,WAAOJ,EAAK,QAAQ,SAAUK,GAAK;AAAE,aAAOC,EAAUD,GAAKD,CAAQ;AAAA,IAAG,CAAC;AAAA,EAC3E,CAAC;AAED,SAAAR,EAA0B,WAAY;AAClC,QAAIW,IAAWT,EAAc,IAAII,CAAW;AAC5C,QAAIK,GAAU;AACV,UAAIC,IAAa,IAAI,IAAID,CAAQ,GAC7BE,IAAa,IAAI,IAAIT,CAAI,GACzBU,IAAYR,EAAY;AAC5B,MAAAM,EAAW,QAAQ,SAAUH,GAAK;AAC9B,QAAKI,EAAW,IAAIJ,CAAG,KACnBC,EAAUD,GAAK,IAAI;AAAA,MAE3B,CAAC,GACDI,EAAW,QAAQ,SAAUJ,GAAK;AAC9B,QAAKG,EAAW,IAAIH,CAAG,KACnBC,EAAUD,GAAKK,CAAS;AAAA,MAEhC,CAAC;AAAA,IACL;AACA,IAAAZ,EAAc,IAAII,GAAaF,CAAI;AAAA,EACvC,GAAG,CAACA,CAAI,CAAC,GACFE;AACX;","x_google_ignoreList":[0]}
|