@rpcbase/ui 0.171.0 → 0.172.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/index100.js +9 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +42 -6
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -145
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +52 -40
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -7
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +15 -13
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +5 -13
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -7
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +16 -31
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +4 -10
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +4 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +5 -8
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +5 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -101
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +5 -20
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +6 -53
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +23 -71
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +6 -9
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -20
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +6 -16
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -23
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +4 -6
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -5
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -23
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +9 -35
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -16
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -6
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -4
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -4
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +145 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +39 -4
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -3
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -6
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +14 -24
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +13 -7
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +7 -6
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +31 -5
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +10 -3
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +10 -3
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +8 -4
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +13 -3
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +101 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +20 -4
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +53 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +72 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +9 -46
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +19 -45
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +15 -204
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +24 -22
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +6 -24
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +5 -399
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +18 -600
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +35 -6
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +16 -69
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -363
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -261
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -60
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +4 -46
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +3 -169
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -109
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +24 -25
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +8 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +6 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +3 -466
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +4 -185
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -107
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +4 -262
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +3 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +3 -42
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +3 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +24 -16
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +29 -6
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -6
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +67 -58
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +176 -62
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +46 -6
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +72 -72
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +13 -4
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +154 -7
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +30 -17
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +9 -5
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +47 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +11 -13
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +44 -10
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +95 -14
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +86 -14
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +105 -5
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +52 -6
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +11 -7
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +37 -6
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -9
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +116 -5
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +17 -5
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +15 -9
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +3 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +36 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +20 -4
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +9 -11
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -10
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -10
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -11
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -11
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +58 -10
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +8 -7
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +66 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +19 -5
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -6
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +5 -7
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -6
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +6 -55
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +7 -19
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +17 -23
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -16
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -7
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +14 -21
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +14 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -9
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +7 -4
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +6 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -15
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -12
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -29
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +11 -25
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +10 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -24
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +12 -29
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +12 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -67
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +7 -180
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +6 -46
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -13
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +6 -154
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -30
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +6 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +53 -45
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +23 -11
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +14 -42
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -95
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -85
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +9 -104
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +21 -52
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -11
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +9 -37
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +8 -7
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +4 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +5 -9
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +14 -114
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -17
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +18 -15
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +13 -34
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +12 -20
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +29 -8
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +11 -18
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +23 -26
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -16
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -19
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +23 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +113 -5
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +16 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +522 -21
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +127 -112
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +133 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +19 -523
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +4 -127
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +18 -133
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -20
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +69 -6
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +9 -6
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +14 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -15
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +64 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +5 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +5 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +4 -546
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -47
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +8 -17
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +5 -6
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -8
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -5
- package/dist/index290.js +545 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -9
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +17 -12
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -9
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -13
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -69
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +9 -9
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +13 -14
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -66
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +13 -64
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +24 -24
- package/dist/index300.js +3 -4
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +23 -56
- package/dist/index301.js.map +1 -1
- package/dist/index303.js +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.js +2 -2
- package/dist/index307.js +4 -3
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +56 -23
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +12 -15
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +25 -26
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -13
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +22 -6
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -22
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +28 -12
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +12 -27
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -5
- package/dist/index316.js.map +1 -1
- package/dist/index32.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index47.js +7 -7
- package/dist/index48.js +3 -6
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +6 -33
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +46 -25
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +26 -7
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +49 -10
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +7 -3
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +14 -47
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +129 -46
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +10 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +215 -13
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +12 -133
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +33 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -214
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +8 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +47 -44
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +4 -50
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +6 -4
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +28 -6
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +50 -28
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +9 -50
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +6 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +7 -5
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +5 -7
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +53 -5
- package/dist/index71.js.map +1 -1
- package/dist/index74.js +11 -53
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +47 -52
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +205 -4
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +22 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +24 -15
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +399 -5
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +46 -7
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +604 -15
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -4
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +68 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +2 -6
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +363 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +261 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +60 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +46 -6
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +169 -24
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +109 -6
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +24 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +8 -7
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -5
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +5 -4
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -5
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +466 -4
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +185 -8
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +107 -5
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +262 -4
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index299.js
CHANGED
|
@@ -1,68 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
function
|
|
6
|
-
t
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
useMedium: function(u) {
|
|
14
|
-
var n = t(u, o);
|
|
15
|
-
return e.push(n), function() {
|
|
16
|
-
e = e.filter(function(i) {
|
|
17
|
-
return i !== n;
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
assignSyncMedium: function(u) {
|
|
22
|
-
for (o = !0; e.length; ) {
|
|
23
|
-
var n = e;
|
|
24
|
-
e = [], n.forEach(u);
|
|
25
|
-
}
|
|
26
|
-
e = {
|
|
27
|
-
push: function(i) {
|
|
28
|
-
return u(i);
|
|
29
|
-
},
|
|
30
|
-
filter: function() {
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
|
-
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return c;
|
|
59
|
-
}
|
|
60
|
-
function v(r) {
|
|
61
|
-
r === void 0 && (r = {});
|
|
62
|
-
var t = h(null);
|
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
1
|
+
import { getDefaultOptions as k } from "./index289.js";
|
|
2
|
+
import { constructFrom as i } from "./index283.js";
|
|
3
|
+
import { startOfWeek as l } from "./index243.js";
|
|
4
|
+
import { toDate as m } from "./index284.js";
|
|
5
|
+
function C(r, e) {
|
|
6
|
+
const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
|
|
7
|
+
a.setFullYear(t + 1, 0, f), a.setHours(0, 0, 0, 0);
|
|
8
|
+
const c = l(a, e), n = i(e?.in || r, 0);
|
|
9
|
+
n.setFullYear(t, 0, f), n.setHours(0, 0, 0, 0);
|
|
10
|
+
const u = l(n, e);
|
|
11
|
+
return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
|
|
64
12
|
}
|
|
65
13
|
export {
|
|
66
|
-
|
|
14
|
+
C as default,
|
|
15
|
+
C as getWeekYear
|
|
67
16
|
};
|
|
68
17
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index299.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":["getWeekYear","date","options","_date","toDate","year","defaultOptions","getDefaultOptions","firstWeekContainsDate","firstWeekOfNextYear","constructFrom","startOfNextYear","startOfWeek","firstWeekOfThisYear","startOfThisYear"],"mappings":";;;;AA2CO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAAiBC,EAAiB,GAClCC,IACJN,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BI,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAsBC,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAQ,EAAoB,YAAYJ,IAAO,GAAG,GAAGG,CAAqB,GAClEC,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAME,IAAkBC,EAAYH,GAAqBP,CAAO,GAE1DW,IAAsBH,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAY,EAAoB,YAAYR,GAAM,GAAGG,CAAqB,GAC9DK,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAMC,IAAkBF,EAAYC,GAAqBX,CAAO;AAEhE,SAAI,CAACC,KAAS,CAACQ,IACNN,IAAO,IACL,CAACF,KAAS,CAACW,IACbT,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
|
package/dist/index30.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
|
|
2
|
-
import { DateLib as Ze } from "./
|
|
3
|
-
import { createGetModifiers as Ie } from "./
|
|
4
|
-
import { getClassNamesForModifiers as Ge } from "./
|
|
5
|
-
import { getComponents as He } from "./
|
|
6
|
-
import { getDataAttributes as _e } from "./
|
|
7
|
-
import { getDefaultClassNames as Ue } from "./
|
|
8
|
-
import { getFormatters as je } from "./
|
|
9
|
-
import { getLabels as Ve } from "./
|
|
10
|
-
import { getMonthOptions as $e } from "./
|
|
11
|
-
import { getStyleForModifiers as qe } from "./
|
|
12
|
-
import { getWeekdays as ze } from "./
|
|
13
|
-
import { getYearOptions as Je } from "./
|
|
14
|
-
import { createNoonOverrides as Qe } from "./
|
|
15
|
-
import { UI as n, DayFlag as Xe, SelectionState as w } from "./
|
|
16
|
-
import { useAnimation as et } from "./
|
|
17
|
-
import { useCalendar as tt } from "./
|
|
18
|
-
import { dayPickerContext as at } from "./
|
|
19
|
-
import { useFocus as ot } from "./
|
|
20
|
-
import { useSelection as nt } from "./
|
|
21
|
-
import { convertMatchersToTimeZone as K } from "./
|
|
22
|
-
import { rangeIncludesDate as st } from "./
|
|
23
|
-
import { toTimeZone as k } from "./
|
|
24
|
-
import { isDateRange as rt } from "./
|
|
25
|
-
import { enUS as it } from "./
|
|
2
|
+
import { DateLib as Ze } from "./index130.js";
|
|
3
|
+
import { createGetModifiers as Ie } from "./index131.js";
|
|
4
|
+
import { getClassNamesForModifiers as Ge } from "./index132.js";
|
|
5
|
+
import { getComponents as He } from "./index133.js";
|
|
6
|
+
import { getDataAttributes as _e } from "./index134.js";
|
|
7
|
+
import { getDefaultClassNames as Ue } from "./index135.js";
|
|
8
|
+
import { getFormatters as je } from "./index136.js";
|
|
9
|
+
import { getLabels as Ve } from "./index137.js";
|
|
10
|
+
import { getMonthOptions as $e } from "./index138.js";
|
|
11
|
+
import { getStyleForModifiers as qe } from "./index139.js";
|
|
12
|
+
import { getWeekdays as ze } from "./index140.js";
|
|
13
|
+
import { getYearOptions as Je } from "./index141.js";
|
|
14
|
+
import { createNoonOverrides as Qe } from "./index142.js";
|
|
15
|
+
import { UI as n, DayFlag as Xe, SelectionState as w } from "./index143.js";
|
|
16
|
+
import { useAnimation as et } from "./index144.js";
|
|
17
|
+
import { useCalendar as tt } from "./index145.js";
|
|
18
|
+
import { dayPickerContext as at } from "./index146.js";
|
|
19
|
+
import { useFocus as ot } from "./index147.js";
|
|
20
|
+
import { useSelection as nt } from "./index148.js";
|
|
21
|
+
import { convertMatchersToTimeZone as K } from "./index149.js";
|
|
22
|
+
import { rangeIncludesDate as st } from "./index150.js";
|
|
23
|
+
import { toTimeZone as k } from "./index151.js";
|
|
24
|
+
import { isDateRange as rt } from "./index152.js";
|
|
25
|
+
import { enUS as it } from "./index153.js";
|
|
26
26
|
function Yt(R) {
|
|
27
27
|
let e = R;
|
|
28
28
|
const u = e.timeZone;
|
package/dist/index300.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
return o + a;
|
|
1
|
+
function i(n, t) {
|
|
2
|
+
return typeof n == "function" ? n(t) : n && (n.current = t), n;
|
|
4
3
|
}
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
i as assignRef
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=index300.js.map
|
package/dist/index300.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index300.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index300.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
|
package/dist/index301.js
CHANGED
|
@@ -1,59 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return r.toUpperCase();
|
|
24
|
-
case "aaa":
|
|
25
|
-
return r;
|
|
26
|
-
case "aaaaa":
|
|
27
|
-
return r[0];
|
|
28
|
-
default:
|
|
29
|
-
return r === "am" ? "a.m." : "p.m.";
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// Hour [1-12]
|
|
33
|
-
h(e, t) {
|
|
34
|
-
return n(e.getHours() % 12 || 12, t.length);
|
|
35
|
-
},
|
|
36
|
-
// Hour [0-23]
|
|
37
|
-
H(e, t) {
|
|
38
|
-
return n(e.getHours(), t.length);
|
|
39
|
-
},
|
|
40
|
-
// Minute
|
|
41
|
-
m(e, t) {
|
|
42
|
-
return n(e.getMinutes(), t.length);
|
|
43
|
-
},
|
|
44
|
-
// Second
|
|
45
|
-
s(e, t) {
|
|
46
|
-
return n(e.getSeconds(), t.length);
|
|
47
|
-
},
|
|
48
|
-
// Fraction of second
|
|
49
|
-
S(e, t) {
|
|
50
|
-
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
|
51
|
-
a * Math.pow(10, r - 3)
|
|
52
|
-
);
|
|
53
|
-
return n(s, t.length);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
1
|
+
import { useState as u } from "react";
|
|
2
|
+
function n(c, r) {
|
|
3
|
+
var e = u(function() {
|
|
4
|
+
return {
|
|
5
|
+
// value
|
|
6
|
+
value: c,
|
|
7
|
+
// last callback
|
|
8
|
+
callback: r,
|
|
9
|
+
// "memoized" public interface
|
|
10
|
+
facade: {
|
|
11
|
+
get current() {
|
|
12
|
+
return e.value;
|
|
13
|
+
},
|
|
14
|
+
set current(a) {
|
|
15
|
+
var t = e.value;
|
|
16
|
+
t !== a && (e.value = a, e.callback(a, t));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
})[0];
|
|
21
|
+
return e.callback = r, e.facade;
|
|
22
|
+
}
|
|
56
23
|
export {
|
|
57
|
-
|
|
24
|
+
n as useCallbackRef
|
|
58
25
|
};
|
|
59
26
|
//# sourceMappingURL=index301.js.map
|
package/dist/index301.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index301.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index301.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACf;AAAA,QACA,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAEhC;AAAA,MACZ;AAAA,IACA;AAAA,EAAQ,CAAC,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
|
package/dist/index303.js
CHANGED
package/dist/index305.js
CHANGED
package/dist/index306.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { buildMatchFn as a } from "./
|
|
2
|
-
import { buildMatchPatternFn as i } from "./
|
|
1
|
+
import { buildMatchFn as a } from "./index314.js";
|
|
2
|
+
import { buildMatchPatternFn as i } from "./index315.js";
|
|
3
3
|
const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
|
|
4
4
|
narrow: /^(b|a)/i,
|
|
5
5
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
package/dist/index307.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function r(t, n) {
|
|
2
|
+
const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
|
|
3
|
+
return o + a;
|
|
3
4
|
}
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
r as addLeadingZeros
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=index307.js.map
|
package/dist/index307.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index307.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index307.js","sources":["../../../node_modules/date-fns/_lib/addLeadingZeros.js"],"sourcesContent":["export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n"],"names":["addLeadingZeros","number","targetLength","sign","output"],"mappings":"AAAO,SAASA,EAAgBC,GAAQC,GAAc;AACpD,QAAMC,IAAOF,IAAS,IAAI,MAAM,IAC1BG,IAAS,KAAK,IAAIH,CAAM,EAAE,WAAW,SAASC,GAAc,GAAG;AACrE,SAAOC,IAAOC;AAChB;","x_google_ignoreList":[0]}
|
package/dist/index308.js
CHANGED
|
@@ -1,26 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { addLeadingZeros as n } from "./index307.js";
|
|
2
|
+
const g = {
|
|
3
|
+
// Year
|
|
4
|
+
y(e, t) {
|
|
5
|
+
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
6
|
+
return n(t === "yy" ? a % 100 : a, t.length);
|
|
7
|
+
},
|
|
8
|
+
// Month
|
|
9
|
+
M(e, t) {
|
|
10
|
+
const r = e.getMonth();
|
|
11
|
+
return t === "M" ? String(r + 1) : n(r + 1, 2);
|
|
12
|
+
},
|
|
13
|
+
// Day of the month
|
|
14
|
+
d(e, t) {
|
|
15
|
+
return n(e.getDate(), t.length);
|
|
16
|
+
},
|
|
17
|
+
// AM or PM
|
|
18
|
+
a(e, t) {
|
|
19
|
+
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
20
|
+
switch (t) {
|
|
21
|
+
case "a":
|
|
22
|
+
case "aa":
|
|
23
|
+
return r.toUpperCase();
|
|
24
|
+
case "aaa":
|
|
25
|
+
return r;
|
|
26
|
+
case "aaaaa":
|
|
27
|
+
return r[0];
|
|
28
|
+
default:
|
|
29
|
+
return r === "am" ? "a.m." : "p.m.";
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
// Hour [1-12]
|
|
33
|
+
h(e, t) {
|
|
34
|
+
return n(e.getHours() % 12 || 12, t.length);
|
|
35
|
+
},
|
|
36
|
+
// Hour [0-23]
|
|
37
|
+
H(e, t) {
|
|
38
|
+
return n(e.getHours(), t.length);
|
|
39
|
+
},
|
|
40
|
+
// Minute
|
|
41
|
+
m(e, t) {
|
|
42
|
+
return n(e.getMinutes(), t.length);
|
|
43
|
+
},
|
|
44
|
+
// Second
|
|
45
|
+
s(e, t) {
|
|
46
|
+
return n(e.getSeconds(), t.length);
|
|
47
|
+
},
|
|
48
|
+
// Fraction of second
|
|
49
|
+
S(e, t) {
|
|
50
|
+
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
|
51
|
+
a * Math.pow(10, r - 3)
|
|
52
|
+
);
|
|
53
|
+
return n(s, t.length);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
23
56
|
export {
|
|
24
|
-
|
|
57
|
+
g as lightFormatters
|
|
25
58
|
};
|
|
26
59
|
//# sourceMappingURL=index308.js.map
|
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/date-fns/_lib/format/lightFormatters.js"],"sourcesContent":["import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n"],"names":["lightFormatters","date","token","signedYear","year","addLeadingZeros","month","dayPeriodEnumValue","numberOfDigits","milliseconds","fractionalSeconds"],"mappings":";AAeY,MAACA,IAAkB;AAAA;AAAA,EAE7B,EAAEC,GAAMC,GAAO;AAUb,UAAMC,IAAaF,EAAK,YAAW,GAE7BG,IAAOD,IAAa,IAAIA,IAAa,IAAIA;AAC/C,WAAOE,EAAgBH,MAAU,OAAOE,IAAO,MAAMA,GAAMF,EAAM,MAAM;AAAA,EACzE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMI,IAAQL,EAAK,SAAQ;AAC3B,WAAOC,MAAU,MAAM,OAAOI,IAAQ,CAAC,IAAID,EAAgBC,IAAQ,GAAG,CAAC;AAAA,EACzE;AAAA;AAAA,EAGA,EAAEL,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,QAAO,GAAIC,EAAM,MAAM;AAAA,EACrD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMK,IAAqBN,EAAK,SAAQ,IAAK,MAAM,IAAI,OAAO;AAE9D,YAAQC,GAAK;AAAA,MACX,KAAK;AAAA,MACL,KAAK;AACH,eAAOK,EAAmB,YAAW;AAAA,MACvC,KAAK;AACH,eAAOA;AAAA,MACT,KAAK;AACH,eAAOA,EAAmB,CAAC;AAAA,MAE7B;AACE,eAAOA,MAAuB,OAAO,SAAS;AAAA,IACtD;AAAA,EACE;AAAA;AAAA,EAGA,EAAEN,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,IAAK,MAAM,IAAIC,EAAM,MAAM;AAAA,EACjE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,GAAIC,EAAM,MAAM;AAAA,EACtD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMM,IAAiBN,EAAM,QACvBO,IAAeR,EAAK,gBAAe,GACnCS,IAAoB,KAAK;AAAA,MAC7BD,IAAe,KAAK,IAAI,IAAID,IAAiB,CAAC;AAAA,IACpD;AACI,WAAOH,EAAgBK,GAAmBR,EAAM,MAAM;AAAA,EACxD;AACF;","x_google_ignoreList":[0]}
|
package/dist/index309.js
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
const a = t.argumentCallback ? t.argumentCallback(l) : l;
|
|
13
|
-
return d[a];
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index310.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
14
11
|
};
|
|
15
|
-
}
|
|
12
|
+
};
|
|
16
13
|
export {
|
|
17
|
-
|
|
14
|
+
i as styleHookSingleton
|
|
18
15
|
};
|
|
19
16
|
//# 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/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
|
package/dist/index310.js
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
);
|
|
10
|
-
let a;
|
|
11
|
-
a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
|
|
12
|
-
// [TODO] -- I challenge you to fix the type
|
|
13
|
-
e.valueCallback(a)
|
|
14
|
-
) : a;
|
|
15
|
-
const f = n.slice(r.length);
|
|
16
|
-
return { value: a, rest: f };
|
|
17
|
-
};
|
|
1
|
+
import { getNonce as o } from "./index311.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
18
9
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
-
return e;
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
23
12
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return e;
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
28
16
|
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
c as stylesheetSingleton
|
|
31
30
|
};
|
|
32
31
|
//# sourceMappingURL=index310.js.map
|
package/dist/index310.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index310.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index310.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|