mada-design-system 0.1.1 → 0.2.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/index.cjs.js +1 -1
- package/index.cjs10.js +1 -1
- package/index.cjs100.js +5 -1
- package/index.cjs101.js +1 -1
- package/index.cjs102.js +1 -1
- package/index.cjs103.js +1 -1
- package/index.cjs104.js +1 -1
- package/index.cjs105.js +1 -1
- package/index.cjs106.js +1 -1
- package/index.cjs107.js +1 -1
- package/index.cjs108.js +1 -1
- package/index.cjs109.js +1 -1
- package/index.cjs11.js +1 -1
- package/index.cjs110.js +1 -1
- package/index.cjs111.js +1 -1
- package/index.cjs112.js +1 -4
- package/index.cjs113.js +4 -1
- package/index.cjs114.js +1 -2
- package/index.cjs115.js +2 -1
- package/index.cjs116.js +1 -2
- package/index.cjs117.js +2 -1
- package/index.cjs118.js +1 -1
- package/index.cjs119.js +1 -1
- package/index.cjs12.js +1 -1
- package/index.cjs120.js +1 -1
- package/index.cjs121.js +1 -1
- package/index.cjs122.js +1 -1
- package/index.cjs123.js +1 -1
- package/index.cjs124.js +1 -20
- package/index.cjs125.js +20 -1
- package/index.cjs126.js +1 -1
- package/index.cjs127.js +1 -1
- package/index.cjs128.js +1 -1
- package/index.cjs129.js +1 -1
- package/index.cjs13.js +1 -1
- package/index.cjs130.js +1 -1
- package/index.cjs131.js +1 -1
- package/index.cjs132.js +1 -1
- package/index.cjs133.js +1 -1
- package/index.cjs134.js +1 -1
- package/index.cjs135.js +1 -1
- package/index.cjs136.js +1 -1
- package/index.cjs137.js +1 -1
- package/index.cjs138.js +1 -1
- package/index.cjs139.js +1 -1
- package/index.cjs140.js +1 -1
- package/index.cjs141.js +1 -1
- package/index.cjs142.js +1 -1
- package/index.cjs143.js +1 -1
- package/index.cjs144.js +1 -1
- package/index.cjs145.js +1 -1
- package/index.cjs146.js +1 -1
- package/index.cjs147.js +1 -1
- package/index.cjs148.js +1 -1
- package/index.cjs149.js +1 -1
- package/index.cjs15.js +1 -1
- package/index.cjs150.js +1 -1
- package/index.cjs151.js +1 -1
- package/index.cjs152.js +1 -1
- package/index.cjs153.js +1 -1
- package/index.cjs154.js +1 -1
- package/index.cjs155.js +1 -1
- package/index.cjs156.js +1 -1
- package/index.cjs157.js +1 -1
- package/index.cjs158.js +1 -1
- package/index.cjs159.js +1 -1
- package/index.cjs16.js +1 -1
- package/index.cjs160.js +1 -1
- package/index.cjs161.js +1 -1
- package/index.cjs162.js +1 -1
- package/index.cjs163.js +1 -1
- package/index.cjs164.js +1 -1
- package/index.cjs165.js +1 -1
- package/index.cjs166.js +1 -1
- package/index.cjs167.js +1 -1
- package/index.cjs168.js +1 -1
- package/index.cjs169.js +1 -1
- package/index.cjs17.js +1 -1
- package/index.cjs170.js +1 -1
- package/index.cjs171.js +1 -1
- package/index.cjs172.js +1 -1
- package/index.cjs173.js +1 -1
- package/index.cjs174.js +1 -1
- package/index.cjs175.js +1 -1
- package/index.cjs176.js +1 -1
- package/index.cjs177.js +1 -1
- package/index.cjs178.js +1 -1
- package/index.cjs179.js +1 -1
- package/index.cjs18.js +1 -1
- package/index.cjs180.js +1 -1
- package/index.cjs181.js +1 -1
- package/index.cjs182.js +1 -4
- package/index.cjs183.js +1 -1
- package/index.cjs184.js +1 -1
- package/index.cjs185.js +4 -1
- package/index.cjs186.js +1 -1
- package/index.cjs187.js +1 -3
- package/index.cjs188.js +1 -1
- package/index.cjs189.js +1 -1
- package/index.cjs19.js +1 -1
- package/index.cjs190.js +3 -1
- package/index.cjs191.js +1 -1
- package/index.cjs192.js +1 -1
- package/index.cjs193.js +1 -1
- package/index.cjs194.js +1 -1
- package/index.cjs195.js +1 -1
- package/index.cjs196.js +1 -1
- package/index.cjs197.js +1 -1
- package/index.cjs198.js +1 -1
- package/index.cjs199.js +1 -1
- package/index.cjs20.js +1 -1
- package/index.cjs200.js +1 -1
- package/index.cjs201.js +1 -1
- package/index.cjs202.js +1 -1
- package/index.cjs203.js +1 -1
- package/index.cjs204.js +1 -1
- package/index.cjs205.js +1 -1
- package/index.cjs206.js +1 -1
- package/index.cjs207.js +1 -1
- package/index.cjs208.js +1 -1
- package/index.cjs209.js +1 -1
- package/index.cjs21.js +1 -1
- package/index.cjs210.js +1 -1
- package/index.cjs211.js +1 -1
- package/index.cjs212.js +1 -1
- package/index.cjs213.js +1 -1
- package/index.cjs214.js +1 -1
- package/index.cjs215.js +1 -1
- package/index.cjs216.js +1 -1
- package/index.cjs217.js +1 -1
- package/index.cjs218.js +1 -1
- package/index.cjs219.js +1 -1
- package/index.cjs22.js +1 -1
- package/index.cjs220.js +1 -1
- package/index.cjs221.js +1 -1
- package/index.cjs222.js +1 -1
- package/index.cjs223.js +1 -1
- package/index.cjs224.js +1 -1
- package/index.cjs225.js +1 -1
- package/index.cjs226.js +1 -1
- package/index.cjs227.js +1 -2
- package/index.cjs228.js +1 -1
- package/index.cjs229.js +1 -1
- package/index.cjs23.js +1 -1
- package/index.cjs230.js +2 -1
- package/index.cjs231.js +1 -1
- package/index.cjs232.js +1 -1
- package/index.cjs233.js +1 -1
- package/index.cjs234.js +1 -1
- package/index.cjs235.js +1 -1
- package/index.cjs236.js +1 -1
- package/index.cjs237.js +1 -1
- package/index.cjs238.js +1 -1
- package/index.cjs239.js +1 -1
- package/index.cjs24.js +1 -1
- package/index.cjs240.js +1 -1
- package/index.cjs241.js +1 -1
- package/index.cjs242.js +1 -1
- package/index.cjs243.js +1 -2
- package/index.cjs244.js +1 -1
- package/index.cjs245.js +1 -1
- package/index.cjs246.js +2 -1
- package/index.cjs247.js +1 -1
- package/index.cjs248.js +1 -1
- package/index.cjs249.js +1 -1
- package/index.cjs25.js +1 -1
- package/index.cjs250.js +1 -1
- package/index.cjs251.js +1 -1
- package/index.cjs252.js +1 -1
- package/index.cjs253.js +1 -1
- package/index.cjs254.js +1 -15
- package/index.cjs255.js +1 -1
- package/index.cjs256.js +1 -1
- package/index.cjs257.js +1 -1
- package/index.cjs258.js +1 -1
- package/index.cjs259.js +1 -1
- package/index.cjs26.js +1 -1
- package/index.cjs260.js +1 -1
- package/index.cjs261.js +1 -1
- package/index.cjs262.js +1 -1
- package/index.cjs263.js +1 -1
- package/index.cjs264.js +15 -1
- package/index.cjs265.js +1 -1
- package/index.cjs266.js +1 -1
- package/index.cjs267.js +1 -1
- package/index.cjs268.js +1 -1
- package/index.cjs269.js +1 -1
- package/index.cjs27.js +1 -1
- package/index.cjs270.js +1 -1
- package/index.cjs271.js +1 -1
- package/index.cjs272.js +1 -1
- package/index.cjs273.js +1 -1
- package/index.cjs274.js +1 -1
- package/index.cjs275.js +1 -1
- package/index.cjs276.js +1 -1
- package/index.cjs277.js +1 -1
- package/index.cjs278.js +1 -1
- package/index.cjs279.js +1 -1
- package/index.cjs28.js +1 -1
- package/index.cjs280.js +1 -3
- package/index.cjs281.js +1 -1
- package/index.cjs282.js +1 -1
- package/index.cjs283.js +1 -1
- package/index.cjs284.js +1 -1
- package/index.cjs285.js +1 -1
- package/index.cjs286.js +1 -1
- package/index.cjs287.js +3 -1
- package/index.cjs288.js +1 -1
- package/index.cjs289.js +1 -1
- package/index.cjs29.js +1 -1
- package/index.cjs290.js +1 -1
- package/index.cjs291.js +1 -1
- package/index.cjs292.js +1 -1
- package/index.cjs293.js +1 -1
- package/index.cjs294.js +1 -1
- package/index.cjs295.js +1 -1
- package/index.cjs296.js +1 -1
- package/index.cjs297.js +1 -1
- package/index.cjs298.js +1 -1
- package/index.cjs299.js +1 -1
- package/index.cjs3.js +1 -1
- package/index.cjs30.js +1 -1
- package/index.cjs300.js +1 -1
- package/index.cjs301.js +1 -1
- package/index.cjs302.js +1 -1
- package/index.cjs303.js +1 -1
- package/index.cjs304.js +1 -1
- package/index.cjs305.js +1 -1
- package/index.cjs306.js +1 -1
- package/index.cjs307.js +1 -1
- package/index.cjs308.js +1 -1
- package/index.cjs309.js +1 -1
- package/index.cjs31.js +1 -1
- package/index.cjs310.js +1 -1
- package/index.cjs311.js +1 -1
- package/index.cjs312.js +1 -1
- package/index.cjs313.js +1 -1
- package/index.cjs314.js +1 -1
- package/index.cjs315.js +1 -1
- package/index.cjs316.js +1 -1
- package/index.cjs317.js +1 -1
- package/index.cjs318.js +1 -1
- package/index.cjs319.js +1 -1
- package/index.cjs32.js +1 -1
- package/index.cjs320.js +1 -1
- package/index.cjs321.js +1 -1
- package/index.cjs322.js +1 -1
- package/index.cjs323.js +1 -1
- package/index.cjs324.js +1 -1
- package/index.cjs325.js +1 -1
- package/index.cjs326.js +1 -1
- package/index.cjs327.js +1 -1
- package/index.cjs328.js +1 -1
- package/index.cjs329.js +1 -1
- package/index.cjs33.js +1 -1
- package/index.cjs330.js +1 -1
- package/index.cjs331.js +1 -1
- package/index.cjs332.js +1 -1
- package/index.cjs333.js +1 -1
- package/index.cjs334.js +1 -1
- package/index.cjs335.js +1 -1
- package/index.cjs336.js +1 -1
- package/index.cjs337.js +1 -1
- package/index.cjs338.js +1 -1
- package/index.cjs339.js +1 -1
- package/index.cjs340.js +1 -1
- package/index.cjs341.js +1 -1
- package/index.cjs342.js +1 -1
- package/index.cjs343.js +1 -1
- package/index.cjs344.js +1 -1
- package/index.cjs345.js +1 -1
- package/index.cjs346.js +1 -1
- package/index.cjs347.js +1 -1
- package/index.cjs348.js +1 -1
- package/index.cjs349.js +1 -1
- package/index.cjs35.js +1 -1
- package/index.cjs350.js +1 -1
- package/index.cjs351.js +1 -1
- package/index.cjs352.js +1 -1
- package/index.cjs353.js +1 -1
- package/index.cjs354.js +1 -1
- package/index.cjs355.js +1 -1
- package/index.cjs356.js +1 -2
- package/index.cjs357.js +2 -1
- package/index.cjs358.js +1 -1
- package/index.cjs359.js +1 -1
- package/index.cjs36.js +1 -1
- package/index.cjs360.js +1 -1
- package/index.cjs361.js +1 -1
- package/index.cjs362.js +1 -1
- package/index.cjs365.js +1 -1
- package/index.cjs366.js +1 -1
- package/index.cjs367.js +1 -1
- package/index.cjs368.js +1 -1
- package/index.cjs369.js +1 -1
- package/index.cjs37.js +1 -1
- package/index.cjs370.js +1 -1
- package/index.cjs371.js +1 -1
- package/index.cjs372.js +1 -1
- package/index.cjs373.js +1 -74
- package/index.cjs374.js +1 -1
- package/index.cjs375.js +74 -1
- package/index.cjs376.js +1 -1
- package/index.cjs377.js +1 -1
- package/index.cjs378.js +1 -1
- package/index.cjs379.js +1 -1
- package/index.cjs38.js +1 -1
- package/index.cjs380.js +1 -1
- package/index.cjs381.js +1 -1
- package/index.cjs382.js +1 -1
- package/index.cjs383.js +1 -1
- package/index.cjs384.js +1 -1
- package/index.cjs385.js +1 -1
- package/index.cjs386.js +1 -1
- package/index.cjs387.js +1 -1
- package/index.cjs388.js +1 -1
- package/index.cjs389.js +1 -1
- package/index.cjs39.js +1 -1
- package/index.cjs390.js +1 -1
- package/index.cjs391.js +1 -1
- package/index.cjs392.js +1 -1
- package/index.cjs393.js +1 -1
- package/index.cjs394.js +1 -1
- package/index.cjs395.js +1 -1
- package/index.cjs396.js +1 -1
- package/index.cjs397.js +1 -1
- package/index.cjs398.js +1 -0
- package/index.cjs399.js +1 -0
- package/index.cjs4.js +1 -1
- package/index.cjs40.js +1 -1
- package/index.cjs400.js +1 -0
- package/index.cjs41.js +1 -1
- package/index.cjs42.js +1 -1
- package/index.cjs43.js +1 -1
- package/index.cjs44.js +1 -1
- package/index.cjs45.js +1 -1
- package/index.cjs46.js +2 -2
- package/index.cjs47.js +1 -1
- package/index.cjs48.js +1 -1
- package/index.cjs49.js +1 -1
- package/index.cjs50.js +1 -1
- package/index.cjs51.js +1 -1
- package/index.cjs52.js +1 -1
- package/index.cjs53.js +1 -1
- package/index.cjs54.js +1 -1
- package/index.cjs55.js +1 -1
- package/index.cjs56.js +1 -1
- package/index.cjs57.js +1 -1
- package/index.cjs58.js +1 -1
- package/index.cjs59.js +1 -1
- package/index.cjs60.js +1 -1
- package/index.cjs61.js +1 -1
- package/index.cjs62.js +1 -1
- package/index.cjs63.js +1 -1
- package/index.cjs64.js +1 -1
- package/index.cjs65.js +1 -1
- package/index.cjs66.js +1 -1
- package/index.cjs67.js +1 -1
- package/index.cjs68.js +1 -1
- package/index.cjs69.js +3 -3
- package/index.cjs7.js +1 -1
- package/index.cjs70.js +1 -1
- package/index.cjs71.js +1 -1
- package/index.cjs73.js +1 -1
- package/index.cjs74.js +1 -1
- package/index.cjs75.js +1 -1
- package/index.cjs76.js +1 -1
- package/index.cjs77.js +1 -1
- package/index.cjs78.js +1 -1
- package/index.cjs79.js +1 -1
- package/index.cjs8.js +1 -1
- package/index.cjs80.js +1 -1
- package/index.cjs81.js +1 -1
- package/index.cjs82.js +1 -1
- package/index.cjs83.js +1 -1
- package/index.cjs84.js +1 -1
- package/index.cjs85.js +1 -1
- package/index.cjs86.js +1 -1
- package/index.cjs87.js +1 -1
- package/index.cjs88.js +1 -1
- package/index.cjs89.js +1 -1
- package/index.cjs9.js +1 -1
- package/index.cjs90.js +1 -1
- package/index.cjs91.js +1 -1
- package/index.cjs92.js +1 -1
- package/index.cjs93.js +1 -1
- package/index.cjs94.js +1 -1
- package/index.cjs95.js +1 -1
- package/index.cjs96.js +1 -1
- package/index.cjs97.js +1 -1
- package/index.cjs98.js +1 -1
- package/index.cjs99.js +1 -5
- package/index.es.d.ts +31 -4
- package/index.es.js +286 -282
- package/index.es10.js +5 -5
- package/index.es100.js +2561 -287
- package/index.es101.js +321 -10
- package/index.es102.js +5 -5
- package/index.es103.js +5 -5
- package/index.es104.js +10 -7
- package/index.es105.js +8 -33
- package/index.es106.js +32 -37
- package/index.es107.js +38 -11
- package/index.es108.js +5 -5
- package/index.es109.js +5 -5
- package/index.es11.js +2 -2
- package/index.es110.js +5 -5
- package/index.es111.js +5 -5
- package/index.es112.js +9 -2567
- package/index.es113.js +2567 -139
- package/index.es114.js +142 -118
- package/index.es115.js +116 -136
- package/index.es116.js +77 -163
- package/index.es117.js +222 -515
- package/index.es118.js +515 -309
- package/index.es119.js +310 -11
- package/index.es12.js +6 -6
- package/index.es120.js +5 -5
- package/index.es121.js +5 -5
- package/index.es122.js +5 -5
- package/index.es123.js +5 -5
- package/index.es124.js +11 -205
- package/index.es125.js +205 -11
- package/index.es126.js +10 -4
- package/index.es127.js +4 -10
- package/index.es128.js +5 -5
- package/index.es129.js +5 -5
- package/index.es13.js +3 -3
- package/index.es130.js +5 -5
- package/index.es131.js +5 -5
- package/index.es132.js +5 -5
- package/index.es133.js +5 -5
- package/index.es134.js +11 -2
- package/index.es135.js +1 -1
- package/index.es136.js +1 -1
- package/index.es137.js +1 -1
- package/index.es138.js +1 -1
- package/index.es139.js +1 -1
- package/index.es140.js +2 -11
- package/index.es141.js +4 -4
- package/index.es142.js +5 -5
- package/index.es143.js +5 -5
- package/index.es144.js +11 -3
- package/index.es145.js +3 -11
- package/index.es146.js +5 -5
- package/index.es147.js +5 -5
- package/index.es148.js +5 -5
- package/index.es149.js +5 -5
- package/index.es15.js +7 -7
- package/index.es150.js +11 -22
- package/index.es151.js +22 -11
- package/index.es152.js +11 -22
- package/index.es153.js +22 -11
- package/index.es154.js +5 -5
- package/index.es155.js +11 -12
- package/index.es156.js +12 -11
- package/index.es157.js +4 -4
- package/index.es158.js +5 -5
- package/index.es159.js +5 -5
- package/index.es16.js +1 -1
- package/index.es160.js +5 -5
- package/index.es161.js +10 -470
- package/index.es162.js +11 -2323
- package/index.es163.js +11 -2152
- package/index.es164.js +470 -10
- package/index.es165.js +2309 -125
- package/index.es166.js +2152 -6
- package/index.es167.js +13 -3
- package/index.es168.js +128 -439
- package/index.es169.js +6 -233
- package/index.es17.js +2 -2
- package/index.es170.js +3 -56
- package/index.es171.js +232 -5
- package/index.es172.js +53 -30
- package/index.es173.js +449 -11
- package/index.es174.js +5 -35
- package/index.es175.js +31 -18
- package/index.es176.js +12 -35
- package/index.es177.js +29 -1217
- package/index.es178.js +18 -14
- package/index.es179.js +35 -8
- package/index.es18.js +27 -27
- package/index.es180.js +1222 -48
- package/index.es181.js +14 -2
- package/index.es182.js +8 -2261
- package/index.es183.js +49 -10
- package/index.es184.js +2 -13
- package/index.es185.js +2261 -13
- package/index.es186.js +10 -105
- package/index.es187.js +13 -25
- package/index.es188.js +13 -51
- package/index.es189.js +104 -369
- package/index.es19.js +1 -1
- package/index.es190.js +25 -62
- package/index.es191.js +51 -48
- package/index.es192.js +371 -6
- package/index.es193.js +62 -5
- package/index.es194.js +46 -45
- package/index.es195.js +6 -22
- package/index.es196.js +5 -6
- package/index.es197.js +47 -10
- package/index.es198.js +22 -11
- package/index.es199.js +6 -17
- package/index.es20.js +2 -2
- package/index.es200.js +10 -230
- package/index.es201.js +11 -25
- package/index.es202.js +15 -10
- package/index.es203.js +202 -251
- package/index.es204.js +23 -260
- package/index.es205.js +11 -16
- package/index.es206.js +277 -13
- package/index.es207.js +260 -19
- package/index.es208.js +16 -7
- package/index.es209.js +15 -5
- package/index.es21.js +4 -4
- package/index.es210.js +21 -5
- package/index.es211.js +8 -5
- package/index.es212.js +5 -2
- package/index.es213.js +5 -58
- package/index.es214.js +5 -57
- package/index.es215.js +2 -4
- package/index.es216.js +58 -2
- package/index.es217.js +56 -12
- package/index.es218.js +12 -24
- package/index.es219.js +23 -9
- package/index.es22.js +2 -2
- package/index.es220.js +10 -38
- package/index.es221.js +37 -1998
- package/index.es222.js +1998 -5
- package/index.es223.js +6 -71
- package/index.es224.js +71 -24
- package/index.es225.js +25 -2
- package/index.es226.js +3 -7
- package/index.es227.js +2 -327
- package/index.es228.js +2 -51
- package/index.es229.js +8 -30
- package/index.es23.js +6 -6
- package/index.es230.js +327 -34
- package/index.es231.js +51 -53
- package/index.es232.js +30 -119
- package/index.es233.js +34 -9
- package/index.es234.js +53 -163
- package/index.es235.js +105 -296
- package/index.es236.js +8 -126
- package/index.es237.js +131 -148
- package/index.es238.js +308 -24
- package/index.es239.js +124 -59
- package/index.es24.js +1 -1
- package/index.es240.js +180 -5
- package/index.es241.js +26 -36
- package/index.es242.js +60 -24
- package/index.es243.js +5 -186
- package/index.es244.js +36 -138
- package/index.es245.js +26 -2
- package/index.es246.js +186 -8
- package/index.es247.js +138 -2
- package/index.es248.js +2 -98
- package/index.es249.js +7 -25
- package/index.es25.js +2 -2
- package/index.es250.js +2 -39
- package/index.es251.js +98 -2
- package/index.es252.js +22 -56
- package/index.es253.js +35 -13
- package/index.es254.js +2 -244
- package/index.es255.js +67 -72
- package/index.es256.js +84 -4
- package/index.es257.js +45 -55
- package/index.es258.js +9 -11
- package/index.es259.js +4 -6
- package/index.es26.js +1 -1
- package/index.es260.js +51 -35
- package/index.es261.js +2 -27
- package/index.es262.js +58 -289
- package/index.es263.js +15 -89
- package/index.es264.js +244 -3
- package/index.es265.js +73 -7
- package/index.es266.js +4 -15
- package/index.es267.js +53 -142
- package/index.es268.js +11 -2
- package/index.es269.js +6 -68
- package/index.es27.js +4 -4
- package/index.es270.js +35 -84
- package/index.es271.js +26 -47
- package/index.es272.js +291 -9
- package/index.es273.js +90 -4
- package/index.es274.js +3 -52
- package/index.es275.js +8 -38
- package/index.es276.js +16 -3
- package/index.es277.js +146 -10
- package/index.es278.js +11 -8
- package/index.es279.js +36 -349
- package/index.es28.js +4 -4
- package/index.es280.js +3 -95
- package/index.es281.js +116 -10
- package/index.es282.js +7 -3
- package/index.es283.js +10 -206
- package/index.es284.js +8 -116
- package/index.es285.js +7 -6
- package/index.es286.js +351 -8
- package/index.es287.js +94 -119
- package/index.es288.js +3 -7
- package/index.es289.js +206 -8
- package/index.es29.js +80 -51
- package/index.es290.js +119 -15
- package/index.es291.js +7 -2
- package/index.es292.js +7 -44
- package/index.es293.js +15 -51
- package/index.es294.js +2 -6
- package/index.es295.js +44 -23
- package/index.es296.js +51 -20
- package/index.es297.js +2 -32
- package/index.es298.js +2 -6
- package/index.es299.js +13 -3
- package/index.es3.js +1 -1
- package/index.es30.js +4 -4
- package/index.es300.js +143 -7
- package/index.es301.js +42 -3
- package/index.es302.js +3 -19
- package/index.es303.js +36 -62
- package/index.es304.js +7 -15
- package/index.es305.js +76 -15
- package/index.es306.js +54 -3
- package/index.es307.js +7 -12
- package/index.es308.js +75 -142
- package/index.es309.js +23 -42
- package/index.es31.js +2 -2
- package/index.es310.js +62 -3
- package/index.es311.js +4 -40
- package/index.es312.js +6 -7
- package/index.es313.js +30 -74
- package/index.es314.js +55 -51
- package/index.es315.js +12 -7
- package/index.es316.js +4 -76
- package/index.es317.js +9 -23
- package/index.es318.js +53 -60
- package/index.es319.js +3 -4
- package/index.es32.js +2 -2
- package/index.es320.js +5 -59
- package/index.es321.js +17 -13
- package/index.es322.js +17 -4
- package/index.es323.js +17 -10
- package/index.es324.js +17 -55
- package/index.es325.js +17 -5
- package/index.es326.js +17 -17
- package/index.es327.js +17 -17
- package/index.es328.js +6 -17
- package/index.es329.js +24 -17
- package/index.es33.js +1 -1
- package/index.es330.js +21 -17
- package/index.es331.js +6 -17
- package/index.es332.js +3 -17
- package/index.es333.js +4 -2
- package/index.es334.js +19 -2
- package/index.es335.js +66 -4
- package/index.es336.js +15 -4
- package/index.es337.js +15 -7
- package/index.es338.js +4 -335
- package/index.es339.js +5 -19
- package/index.es340.js +7 -4
- package/index.es341.js +335 -5
- package/index.es342.js +19 -3
- package/index.es343.js +4 -72
- package/index.es344.js +6 -4
- package/index.es345.js +3 -16
- package/index.es346.js +71 -6
- package/index.es347.js +3 -29
- package/index.es348.js +14 -8
- package/index.es349.js +6 -7
- package/index.es35.js +2 -2
- package/index.es350.js +29 -6
- package/index.es351.js +10 -2
- package/index.es352.js +8 -2
- package/index.es353.js +7 -2
- package/index.es354.js +2 -66
- package/index.es355.js +2 -65
- package/index.es356.js +9 -78
- package/index.es357.js +74 -255
- package/index.es358.js +256 -29
- package/index.es359.js +32 -6
- package/index.es36.js +40 -24
- package/index.es360.js +6 -132
- package/index.es361.js +134 -17
- package/index.es362.js +17 -9
- package/index.es365.js +3 -8
- package/index.es366.js +45 -3
- package/index.es367.js +9 -45
- package/index.es368.js +6 -9
- package/index.es369.js +2 -6
- package/index.es37.js +2 -2
- package/index.es370.js +65 -3
- package/index.es371.js +65 -2
- package/index.es372.js +6 -2
- package/index.es373.js +4 -251
- package/index.es374.js +2 -8
- package/index.es375.js +251 -3
- package/index.es376.js +8 -2
- package/index.es377.js +3 -174
- package/index.es378.js +2 -2
- package/index.es379.js +2 -2
- package/index.es38.js +2 -2
- package/index.es380.js +174 -2
- package/index.es381.js +2 -2
- package/index.es382.js +2 -8
- package/index.es383.js +8 -7
- package/index.es384.js +6 -19
- package/index.es385.js +20 -51
- package/index.es386.js +50 -248
- package/index.es387.js +247 -41
- package/index.es388.js +41 -14
- package/index.es389.js +16 -10
- package/index.es39.js +1 -1
- package/index.es390.js +10 -48
- package/index.es391.js +47 -25
- package/index.es392.js +24 -127
- package/index.es393.js +119 -102
- package/index.es394.js +110 -71
- package/index.es395.js +2 -4
- package/index.es396.js +2 -9
- package/index.es397.js +72 -6
- package/index.es398.js +11 -0
- package/index.es399.js +6 -0
- package/index.es4.js +4 -4
- package/index.es40.js +2 -2
- package/index.es400.js +9 -0
- package/index.es41.js +10 -10
- package/index.es42.js +2 -2
- package/index.es43.js +6 -6
- package/index.es44.js +7 -7
- package/index.es45.js +13 -13
- package/index.es46.js +11 -11
- package/index.es47.js +54 -54
- package/index.es48.js +1 -1
- package/index.es49.js +2 -2
- package/index.es50.js +3 -3
- package/index.es51.js +4 -4
- package/index.es52.js +1 -1
- package/index.es53.js +1 -1
- package/index.es54.js +3 -3
- package/index.es55.js +1 -1
- package/index.es56.js +4 -5
- package/index.es57.js +6 -6
- package/index.es58.js +1 -1
- package/index.es59.js +49 -49
- package/index.es60.js +4 -4
- package/index.es61.js +1 -1
- package/index.es62.js +1 -1
- package/index.es63.js +1 -1
- package/index.es64.js +1 -1
- package/index.es65.js +2 -2
- package/index.es66.js +2 -2
- package/index.es67.js +4 -4
- package/index.es68.js +13 -13
- package/index.es69.js +9 -4
- package/index.es7.js +4 -4
- package/index.es70.js +24 -22
- package/index.es71.js +1 -1
- package/index.es73.js +58 -20
- package/index.es74.js +22 -8
- package/index.es75.js +7 -69
- package/index.es76.js +69 -6
- package/index.es77.js +7 -4
- package/index.es78.js +4 -79
- package/index.es79.js +79 -32
- package/index.es8.js +2 -2
- package/index.es80.js +28 -44
- package/index.es81.js +48 -8
- package/index.es82.js +8 -16
- package/index.es83.js +16 -45
- package/index.es84.js +45 -4
- package/index.es85.js +4 -115
- package/index.es86.js +114 -4
- package/index.es87.js +5 -7
- package/index.es88.js +7 -28
- package/index.es89.js +28 -28
- package/index.es9.js +8 -8
- package/index.es90.js +28 -11
- package/index.es91.js +11 -104
- package/index.es92.js +90 -90
- package/index.es93.js +104 -11
- package/index.es94.js +10 -87
- package/index.es95.js +86 -19
- package/index.es96.js +19 -22
- package/index.es97.js +23 -1708
- package/index.es98.js +1708 -34
- package/index.es99.js +33 -2594
- package/package.json +144 -144
- package/style.css +1 -1
- package/tailwind.config.cjs +5 -0
- package/tailwind.config.js +5 -0
package/index.es119.js
CHANGED
|
@@ -1,13 +1,312 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { a as se } from "./index.es178.js";
|
|
2
|
+
import * as V from "@radix-ui/react-dialog";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
var fe = '[cmdk-list-sizer=""]', K = '[cmdk-group=""]', H = '[cmdk-group-items=""]', me = '[cmdk-group-heading=""]', B = '[cmdk-item=""]', ne = `${B}:not([aria-disabled="true"])`, W = "cmdk-item-select", w = "data-value", ve = (r, o) => se(r, o), le = t.createContext(void 0), P = () => t.useContext(le), ae = t.createContext(void 0), Q = () => t.useContext(ae), ue = t.createContext(void 0), oe = t.forwardRef((r, o) => {
|
|
5
|
+
let n = t.useRef(null), u = I(() => {
|
|
6
|
+
var e, a, i;
|
|
7
|
+
return { search: "", value: (i = (a = r.value) != null ? a : (e = r.defaultValue) == null ? void 0 : e.toLowerCase()) != null ? i : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
8
|
+
}), c = I(() => /* @__PURE__ */ new Set()), d = I(() => /* @__PURE__ */ new Map()), s = I(() => /* @__PURE__ */ new Map()), v = I(() => /* @__PURE__ */ new Set()), f = ie(r), { label: b, children: p, value: E, onValueChange: A, filter: L, shouldFilter: k, vimBindings: D = !0, ...C } = r, U = t.useId(), J = t.useId(), X = t.useId(), y = Re();
|
|
9
|
+
M(() => {
|
|
10
|
+
if (E !== void 0) {
|
|
11
|
+
let e = E.trim().toLowerCase();
|
|
12
|
+
u.current.value = e, y(6, Z), m.emit();
|
|
13
|
+
}
|
|
14
|
+
}, [E]);
|
|
15
|
+
let m = t.useMemo(() => ({ subscribe: (e) => (v.current.add(e), () => v.current.delete(e)), snapshot: () => u.current, setState: (e, a, i) => {
|
|
16
|
+
var l, g, h;
|
|
17
|
+
if (!Object.is(u.current[e], a)) {
|
|
18
|
+
if (u.current[e] = a, e === "search")
|
|
19
|
+
z(), O(), y(1, j);
|
|
20
|
+
else if (e === "value")
|
|
21
|
+
if (((l = f.current) == null ? void 0 : l.value) !== void 0) {
|
|
22
|
+
let S = a ?? "";
|
|
23
|
+
(h = (g = f.current).onValueChange) == null || h.call(g, S);
|
|
24
|
+
return;
|
|
25
|
+
} else
|
|
26
|
+
i || y(5, Z);
|
|
27
|
+
m.emit();
|
|
28
|
+
}
|
|
29
|
+
}, emit: () => {
|
|
30
|
+
v.current.forEach((e) => e());
|
|
31
|
+
} }), []), x = t.useMemo(() => ({ value: (e, a) => {
|
|
32
|
+
a !== s.current.get(e) && (s.current.set(e, a), u.current.filtered.items.set(e, Y(a)), y(2, () => {
|
|
33
|
+
O(), m.emit();
|
|
34
|
+
}));
|
|
35
|
+
}, item: (e, a) => (c.current.add(e), a && (d.current.has(a) ? d.current.get(a).add(e) : d.current.set(a, /* @__PURE__ */ new Set([e]))), y(3, () => {
|
|
36
|
+
z(), O(), u.current.value || j(), m.emit();
|
|
37
|
+
}), () => {
|
|
38
|
+
s.current.delete(e), c.current.delete(e), u.current.filtered.items.delete(e);
|
|
39
|
+
let i = $();
|
|
40
|
+
y(4, () => {
|
|
41
|
+
z(), (i == null ? void 0 : i.getAttribute("id")) === e && j(), m.emit();
|
|
42
|
+
});
|
|
43
|
+
}), group: (e) => (d.current.has(e) || d.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
44
|
+
s.current.delete(e), d.current.delete(e);
|
|
45
|
+
}), filter: () => f.current.shouldFilter, label: b || r["aria-label"], commandRef: n, listId: U, inputId: X, labelId: J }), []);
|
|
46
|
+
function Y(e) {
|
|
47
|
+
var a, i;
|
|
48
|
+
let l = (i = (a = f.current) == null ? void 0 : a.filter) != null ? i : ve;
|
|
49
|
+
return e ? l(e, u.current.search) : 0;
|
|
50
|
+
}
|
|
51
|
+
function O() {
|
|
52
|
+
if (!n.current || !u.current.search || f.current.shouldFilter === !1)
|
|
53
|
+
return;
|
|
54
|
+
let e = u.current.filtered.items, a = [];
|
|
55
|
+
u.current.filtered.groups.forEach((l) => {
|
|
56
|
+
let g = d.current.get(l), h = 0;
|
|
57
|
+
g.forEach((S) => {
|
|
58
|
+
let T = e.get(S);
|
|
59
|
+
h = Math.max(T, h);
|
|
60
|
+
}), a.push([l, h]);
|
|
61
|
+
});
|
|
62
|
+
let i = n.current.querySelector(fe);
|
|
63
|
+
F().sort((l, g) => {
|
|
64
|
+
var h, S;
|
|
65
|
+
let T = l.getAttribute(w), de = g.getAttribute(w);
|
|
66
|
+
return ((h = e.get(de)) != null ? h : 0) - ((S = e.get(T)) != null ? S : 0);
|
|
67
|
+
}).forEach((l) => {
|
|
68
|
+
let g = l.closest(H);
|
|
69
|
+
g ? g.appendChild(l.parentElement === g ? l : l.closest(`${H} > *`)) : i.appendChild(l.parentElement === i ? l : l.closest(`${H} > *`));
|
|
70
|
+
}), a.sort((l, g) => g[1] - l[1]).forEach((l) => {
|
|
71
|
+
let g = n.current.querySelector(`${K}[${w}="${l[0]}"]`);
|
|
72
|
+
g == null || g.parentElement.appendChild(g);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function j() {
|
|
76
|
+
let e = F().find((i) => !i.ariaDisabled), a = e == null ? void 0 : e.getAttribute(w);
|
|
77
|
+
m.setState("value", a || void 0);
|
|
78
|
+
}
|
|
79
|
+
function z() {
|
|
80
|
+
if (!u.current.search || f.current.shouldFilter === !1) {
|
|
81
|
+
u.current.filtered.count = c.current.size;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
u.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
85
|
+
let e = 0;
|
|
86
|
+
for (let a of c.current) {
|
|
87
|
+
let i = s.current.get(a), l = Y(i);
|
|
88
|
+
u.current.filtered.items.set(a, l), l > 0 && e++;
|
|
89
|
+
}
|
|
90
|
+
for (let [a, i] of d.current)
|
|
91
|
+
for (let l of i)
|
|
92
|
+
if (u.current.filtered.items.get(l) > 0) {
|
|
93
|
+
u.current.filtered.groups.add(a);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
u.current.filtered.count = e;
|
|
97
|
+
}
|
|
98
|
+
function Z() {
|
|
99
|
+
var e, a, i;
|
|
100
|
+
let l = $();
|
|
101
|
+
l && (((e = l.parentElement) == null ? void 0 : e.firstChild) === l && ((i = (a = l.closest(K)) == null ? void 0 : a.querySelector(me)) == null || i.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
|
|
102
|
+
}
|
|
103
|
+
function $() {
|
|
104
|
+
var e;
|
|
105
|
+
return (e = n.current) == null ? void 0 : e.querySelector(`${B}[aria-selected="true"]`);
|
|
106
|
+
}
|
|
107
|
+
function F() {
|
|
108
|
+
return Array.from(n.current.querySelectorAll(ne));
|
|
109
|
+
}
|
|
110
|
+
function N(e) {
|
|
111
|
+
let a = F()[e];
|
|
112
|
+
a && m.setState("value", a.getAttribute(w));
|
|
113
|
+
}
|
|
114
|
+
function G(e) {
|
|
115
|
+
var a;
|
|
116
|
+
let i = $(), l = F(), g = l.findIndex((S) => S === i), h = l[g + e];
|
|
117
|
+
(a = f.current) != null && a.loop && (h = g + e < 0 ? l[l.length - 1] : g + e === l.length ? l[0] : l[g + e]), h && m.setState("value", h.getAttribute(w));
|
|
118
|
+
}
|
|
119
|
+
function _(e) {
|
|
120
|
+
let a = $(), i = a == null ? void 0 : a.closest(K), l;
|
|
121
|
+
for (; i && !l; )
|
|
122
|
+
i = e > 0 ? Se(i, K) : ke(i, K), l = i == null ? void 0 : i.querySelector(ne);
|
|
123
|
+
l ? m.setState("value", l.getAttribute(w)) : G(e);
|
|
124
|
+
}
|
|
125
|
+
let ee = () => N(F().length - 1), te = (e) => {
|
|
126
|
+
e.preventDefault(), e.metaKey ? ee() : e.altKey ? _(1) : G(1);
|
|
127
|
+
}, re = (e) => {
|
|
128
|
+
e.preventDefault(), e.metaKey ? N(0) : e.altKey ? _(-1) : G(-1);
|
|
129
|
+
};
|
|
130
|
+
return t.createElement("div", { ref: q([n, o]), ...C, "cmdk-root": "", onKeyDown: (e) => {
|
|
131
|
+
var a;
|
|
132
|
+
if ((a = C.onKeyDown) == null || a.call(C, e), !e.defaultPrevented)
|
|
133
|
+
switch (e.key) {
|
|
134
|
+
case "n":
|
|
135
|
+
case "j": {
|
|
136
|
+
D && e.ctrlKey && te(e);
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
case "ArrowDown": {
|
|
140
|
+
te(e);
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
case "p":
|
|
144
|
+
case "k": {
|
|
145
|
+
D && e.ctrlKey && re(e);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
case "ArrowUp": {
|
|
149
|
+
re(e);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
case "Home": {
|
|
153
|
+
e.preventDefault(), N(0);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
case "End": {
|
|
157
|
+
e.preventDefault(), ee();
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
case "Enter":
|
|
161
|
+
if (!e.nativeEvent.isComposing) {
|
|
162
|
+
e.preventDefault();
|
|
163
|
+
let i = $();
|
|
164
|
+
if (i) {
|
|
165
|
+
let l = new Event(W);
|
|
166
|
+
i.dispatchEvent(l);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
} }, t.createElement("label", { "cmdk-label": "", htmlFor: x.inputId, id: x.labelId, style: xe }, b), t.createElement(ae.Provider, { value: m }, t.createElement(le.Provider, { value: x }, p)));
|
|
171
|
+
}), pe = t.forwardRef((r, o) => {
|
|
172
|
+
var n, u;
|
|
173
|
+
let c = t.useId(), d = t.useRef(null), s = t.useContext(ue), v = P(), f = ie(r), b = (u = (n = f.current) == null ? void 0 : n.forceMount) != null ? u : s == null ? void 0 : s.forceMount;
|
|
174
|
+
M(() => v.item(c, s == null ? void 0 : s.id), []);
|
|
175
|
+
let p = ce(c, d, [r.value, r.children, d]), E = Q(), A = R((m) => m.value && m.value === p.current), L = R((m) => b || v.filter() === !1 ? !0 : m.search ? m.filtered.items.get(c) > 0 : !0);
|
|
176
|
+
t.useEffect(() => {
|
|
177
|
+
let m = d.current;
|
|
178
|
+
if (!(!m || r.disabled))
|
|
179
|
+
return m.addEventListener(W, k), () => m.removeEventListener(W, k);
|
|
180
|
+
}, [L, r.onSelect, r.disabled]);
|
|
181
|
+
function k() {
|
|
182
|
+
var m, x;
|
|
183
|
+
D(), (x = (m = f.current).onSelect) == null || x.call(m, p.current);
|
|
184
|
+
}
|
|
185
|
+
function D() {
|
|
186
|
+
E.setState("value", p.current, !0);
|
|
187
|
+
}
|
|
188
|
+
if (!L)
|
|
189
|
+
return null;
|
|
190
|
+
let { disabled: C, value: U, onSelect: J, forceMount: X, ...y } = r;
|
|
191
|
+
return t.createElement("div", { ref: q([d, o]), ...y, id: c, "cmdk-item": "", role: "option", "aria-disabled": C || void 0, "aria-selected": A || void 0, "data-disabled": C || void 0, "data-selected": A || void 0, onPointerMove: C ? void 0 : D, onClick: C ? void 0 : k }, r.children);
|
|
192
|
+
}), ge = t.forwardRef((r, o) => {
|
|
193
|
+
let { heading: n, children: u, forceMount: c, ...d } = r, s = t.useId(), v = t.useRef(null), f = t.useRef(null), b = t.useId(), p = P(), E = R((k) => c || p.filter() === !1 ? !0 : k.search ? k.filtered.groups.has(s) : !0);
|
|
194
|
+
M(() => p.group(s), []), ce(s, v, [r.value, r.heading, f]);
|
|
195
|
+
let A = t.useMemo(() => ({ id: s, forceMount: c }), [c]), L = t.createElement(ue.Provider, { value: A }, u);
|
|
196
|
+
return t.createElement("div", { ref: q([v, o]), ...d, "cmdk-group": "", role: "presentation", hidden: E ? void 0 : !0 }, n && t.createElement("div", { ref: f, "cmdk-group-heading": "", "aria-hidden": !0, id: b }, n), t.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? b : void 0 }, L));
|
|
197
|
+
}), he = t.forwardRef((r, o) => {
|
|
198
|
+
let { alwaysRender: n, ...u } = r, c = t.useRef(null), d = R((s) => !s.search);
|
|
199
|
+
return !n && !d ? null : t.createElement("div", { ref: q([c, o]), ...u, "cmdk-separator": "", role: "separator" });
|
|
200
|
+
}), be = t.forwardRef((r, o) => {
|
|
201
|
+
let { onValueChange: n, ...u } = r, c = r.value != null, d = Q(), s = R((p) => p.search), v = R((p) => p.value), f = P(), b = t.useMemo(() => {
|
|
202
|
+
var p;
|
|
203
|
+
let E = (p = f.commandRef.current) == null ? void 0 : p.querySelector(`${B}[${w}="${v}"]`);
|
|
204
|
+
return E == null ? void 0 : E.getAttribute("id");
|
|
205
|
+
}, [v, f.commandRef]);
|
|
206
|
+
return t.useEffect(() => {
|
|
207
|
+
r.value != null && d.setState("search", r.value);
|
|
208
|
+
}, [r.value]), t.createElement("input", { ref: o, ...u, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": f.listId, "aria-labelledby": f.labelId, "aria-activedescendant": b, id: f.inputId, type: "text", value: c ? r.value : s, onChange: (p) => {
|
|
209
|
+
c || d.setState("search", p.target.value), n == null || n(p.target.value);
|
|
210
|
+
} });
|
|
211
|
+
}), Ee = t.forwardRef((r, o) => {
|
|
212
|
+
let { children: n, ...u } = r, c = t.useRef(null), d = t.useRef(null), s = P();
|
|
213
|
+
return t.useEffect(() => {
|
|
214
|
+
if (d.current && c.current) {
|
|
215
|
+
let v = d.current, f = c.current, b, p = new ResizeObserver(() => {
|
|
216
|
+
b = requestAnimationFrame(() => {
|
|
217
|
+
let E = v.offsetHeight;
|
|
218
|
+
f.style.setProperty("--cmdk-list-height", E.toFixed(1) + "px");
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
return p.observe(v), () => {
|
|
222
|
+
cancelAnimationFrame(b), p.unobserve(v);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}, []), t.createElement("div", { ref: q([c, o]), ...u, "cmdk-list": "", role: "listbox", "aria-label": "Suggestions", id: s.listId, "aria-labelledby": s.inputId }, t.createElement("div", { ref: d, "cmdk-list-sizer": "" }, n));
|
|
226
|
+
}), we = t.forwardRef((r, o) => {
|
|
227
|
+
let { open: n, onOpenChange: u, overlayClassName: c, contentClassName: d, container: s, ...v } = r;
|
|
228
|
+
return t.createElement(V.Root, { open: n, onOpenChange: u }, t.createElement(V.Portal, { container: s }, t.createElement(V.Overlay, { "cmdk-overlay": "", className: c }), t.createElement(V.Content, { "aria-label": r.label, "cmdk-dialog": "", className: d }, t.createElement(oe, { ref: o, ...v }))));
|
|
229
|
+
}), Ce = t.forwardRef((r, o) => {
|
|
230
|
+
let n = t.useRef(!0), u = R((c) => c.filtered.count === 0);
|
|
231
|
+
return t.useEffect(() => {
|
|
232
|
+
n.current = !1;
|
|
233
|
+
}, []), n.current || !u ? null : t.createElement("div", { ref: o, ...r, "cmdk-empty": "", role: "presentation" });
|
|
234
|
+
}), ye = t.forwardRef((r, o) => {
|
|
235
|
+
let { progress: n, children: u, ...c } = r;
|
|
236
|
+
return t.createElement("div", { ref: o, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "Loading..." }, t.createElement("div", { "aria-hidden": !0 }, u));
|
|
237
|
+
}), Me = Object.assign(oe, { List: Ee, Item: pe, Input: be, Group: ge, Separator: he, Dialog: we, Empty: Ce, Loading: ye });
|
|
238
|
+
function Se(r, o) {
|
|
239
|
+
let n = r.nextElementSibling;
|
|
240
|
+
for (; n; ) {
|
|
241
|
+
if (n.matches(o))
|
|
242
|
+
return n;
|
|
243
|
+
n = n.nextElementSibling;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function ke(r, o) {
|
|
247
|
+
let n = r.previousElementSibling;
|
|
248
|
+
for (; n; ) {
|
|
249
|
+
if (n.matches(o))
|
|
250
|
+
return n;
|
|
251
|
+
n = n.previousElementSibling;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function ie(r) {
|
|
255
|
+
let o = t.useRef(r);
|
|
256
|
+
return M(() => {
|
|
257
|
+
o.current = r;
|
|
258
|
+
}), o;
|
|
259
|
+
}
|
|
260
|
+
var M = typeof window > "u" ? t.useEffect : t.useLayoutEffect;
|
|
261
|
+
function I(r) {
|
|
262
|
+
let o = t.useRef();
|
|
263
|
+
return o.current === void 0 && (o.current = r()), o;
|
|
264
|
+
}
|
|
265
|
+
function q(r) {
|
|
266
|
+
return (o) => {
|
|
267
|
+
r.forEach((n) => {
|
|
268
|
+
typeof n == "function" ? n(o) : n != null && (n.current = o);
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
function R(r) {
|
|
273
|
+
let o = Q(), n = () => r(o.snapshot());
|
|
274
|
+
return t.useSyncExternalStore(o.subscribe, n, n);
|
|
275
|
+
}
|
|
276
|
+
function ce(r, o, n) {
|
|
277
|
+
let u = t.useRef(), c = P();
|
|
278
|
+
return M(() => {
|
|
279
|
+
var d;
|
|
280
|
+
let s = (() => {
|
|
281
|
+
var v;
|
|
282
|
+
for (let f of n) {
|
|
283
|
+
if (typeof f == "string")
|
|
284
|
+
return f.trim().toLowerCase();
|
|
285
|
+
if (typeof f == "object" && "current" in f)
|
|
286
|
+
return f.current ? (v = f.current.textContent) == null ? void 0 : v.trim().toLowerCase() : u.current;
|
|
287
|
+
}
|
|
288
|
+
})();
|
|
289
|
+
c.value(r, s), (d = o.current) == null || d.setAttribute(w, s), u.current = s;
|
|
290
|
+
}), u;
|
|
291
|
+
}
|
|
292
|
+
var Re = () => {
|
|
293
|
+
let [r, o] = t.useState(), n = I(() => /* @__PURE__ */ new Map());
|
|
294
|
+
return M(() => {
|
|
295
|
+
n.current.forEach((u) => u()), n.current = /* @__PURE__ */ new Map();
|
|
296
|
+
}, [r]), (u, c) => {
|
|
297
|
+
n.current.set(u, c), o({});
|
|
298
|
+
};
|
|
299
|
+
}, xe = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
11
300
|
export {
|
|
12
|
-
|
|
301
|
+
Me as Command,
|
|
302
|
+
we as CommandDialog,
|
|
303
|
+
Ce as CommandEmpty,
|
|
304
|
+
ge as CommandGroup,
|
|
305
|
+
be as CommandInput,
|
|
306
|
+
pe as CommandItem,
|
|
307
|
+
Ee as CommandList,
|
|
308
|
+
ye as CommandLoading,
|
|
309
|
+
oe as CommandRoot,
|
|
310
|
+
he as CommandSeparator,
|
|
311
|
+
R as useCommandState
|
|
13
312
|
};
|
package/index.es12.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import k from "react";
|
|
3
|
-
import { cn as x } from "./index.
|
|
4
|
-
import { strings as f } from "./index.
|
|
5
|
-
import R from "./index.
|
|
3
|
+
import { cn as x } from "./index.es79.js";
|
|
4
|
+
import { strings as f } from "./index.es91.js";
|
|
5
|
+
import R from "./index.es83.js";
|
|
6
6
|
import { ShouldRender as d } from "./index.es14.js";
|
|
7
|
-
import { Pagination as w, PaginationContent as y, PaginationItem as h, PaginationPrevious as A, PaginationLink as p, PaginationNext as L } from "./index.
|
|
7
|
+
import { Pagination as w, PaginationContent as y, PaginationItem as h, PaginationPrevious as A, PaginationLink as p, PaginationNext as L } from "./index.es107.js";
|
|
8
8
|
import { Select as $, SelectTrigger as g, SelectValue as I, SelectContent as T, SelectGroup as j, SelectItem as m } from "./index.es57.js";
|
|
9
|
-
import V from "./index.
|
|
10
|
-
import B from "./index.
|
|
9
|
+
import V from "./index.es108.js";
|
|
10
|
+
import B from "./index.es109.js";
|
|
11
11
|
const J = ({ totalItems: e, onPageChange: l, selectedPage: t, className: o, withoutText: a, itemsPerPage: v = 6 }) => {
|
|
12
12
|
const i = Math.ceil(e / v), s = Array.from(Array(i).keys()), S = (n) => t === i - 3 && n === i - 2 || t === i - 2 && n === i - 5 || t === i - 1 && (n === i - 4 || n === i - 5) || t === i && (t === n + 3 || t === n + 4 || t === n + 5), C = () => {
|
|
13
13
|
const n = document.getElementById("gridList");
|
package/index.es120.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import C from "./index.es175.js";
|
|
2
|
+
const e = C("Search", [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
d: "
|
|
7
|
-
key: "
|
|
6
|
+
d: "M15.7549 14.2549H14.9649L14.6849 13.9849C15.6649 12.8449 16.2549 11.3649 16.2549 9.75488C16.2549 6.16488 13.3449 3.25488 9.75488 3.25488C6.16488 3.25488 3.25488 6.16488 3.25488 9.75488C3.25488 13.3449 6.16488 16.2549 9.75488 16.2549C11.3649 16.2549 12.8449 15.6649 13.9849 14.6849L14.2549 14.9649V15.7549L19.2549 20.7449L20.7449 19.2549L15.7549 14.2549ZM9.75488 14.2549C7.26488 14.2549 5.25488 12.2449 5.25488 9.75488C5.25488 7.26488 7.26488 5.25488 9.75488 5.25488C12.2449 5.25488 14.2549 7.26488 14.2549 9.75488C14.2549 12.2449 12.2449 14.2549 9.75488 14.2549Z",
|
|
7
|
+
key: "1ac8z8"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
]);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
e as default
|
|
13
13
|
};
|
package/index.es121.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import H from "./index.es175.js";
|
|
2
|
+
const a = H("DateRange", [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
d: "
|
|
7
|
-
key: "
|
|
6
|
+
d: "M7 11H9V13H7V11ZM21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM15 13H17V11H15V13ZM11 13H13V11H11V13Z",
|
|
7
|
+
key: "1kdlay"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
]);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as default
|
|
13
13
|
};
|
package/index.es122.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import t from "./index.es175.js";
|
|
2
|
+
const o = t("ChevronRight", [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
d: "
|
|
7
|
-
key: "
|
|
6
|
+
d: "M9.70492 6L8.29492 7.41L12.8749 12L8.29492 16.59L9.70492 18L15.7049 12L9.70492 6Z",
|
|
7
|
+
key: "xcu7tv"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
]);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
o as default
|
|
13
13
|
};
|
package/index.es123.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e from "./index.
|
|
2
|
-
const
|
|
1
|
+
import e from "./index.es175.js";
|
|
2
|
+
const c = e("Check", [
|
|
3
3
|
[
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
d: "
|
|
7
|
-
key: "
|
|
6
|
+
d: "M8.79508 15.8749L4.62508 11.7049L3.20508 13.1149L8.79508 18.7049L20.7951 6.70492L19.3851 5.29492L8.79508 15.8749Z",
|
|
7
|
+
key: "5stcsf"
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
]);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
c as default
|
|
13
13
|
};
|
package/index.es124.js
CHANGED
|
@@ -1,207 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
for (var s in r)
|
|
12
|
-
me.call(r, s) && a.indexOf(s) < 0 && (l[s] = r[s]);
|
|
13
|
-
if (r != null && J)
|
|
14
|
-
for (var s of J(r))
|
|
15
|
-
a.indexOf(s) < 0 && fe.call(r, s) && (l[s] = r[s]);
|
|
16
|
-
return l;
|
|
17
|
-
};
|
|
18
|
-
function Oe(r) {
|
|
19
|
-
let a = setTimeout(r, 0), l = setTimeout(r, 10), s = setTimeout(r, 50);
|
|
20
|
-
return [a, l, s];
|
|
21
|
-
}
|
|
22
|
-
function We(r) {
|
|
23
|
-
let a = t.useRef();
|
|
24
|
-
return t.useEffect(() => {
|
|
25
|
-
a.current = r;
|
|
26
|
-
}), a.current;
|
|
27
|
-
}
|
|
28
|
-
var Ae = 18, ve = 40, Be = `${ve}px`, je = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
29
|
-
function Ie({ containerRef: r, inputRef: a, pushPasswordManagerStrategy: l, isFocused: s }) {
|
|
30
|
-
let [M, p] = t.useState(!1), [_, x] = t.useState(!1), [W, F] = t.useState(!1), H = t.useMemo(() => l === "none" ? !1 : (l === "increase-width" || l === "experimental-no-flickering") && M && _, [M, _, l]), A = t.useCallback(() => {
|
|
31
|
-
let f = r.current, y = a.current;
|
|
32
|
-
if (!f || !y || W || l === "none")
|
|
33
|
-
return;
|
|
34
|
-
let g = f, E = g.getBoundingClientRect().left + g.offsetWidth, B = g.getBoundingClientRect().top + g.offsetHeight / 2, i = E - Ae, L = B;
|
|
35
|
-
document.querySelectorAll(je).length === 0 && document.elementFromPoint(i, L) === f || (p(!0), F(!0));
|
|
36
|
-
}, [r, a, W, l]);
|
|
37
|
-
return t.useEffect(() => {
|
|
38
|
-
let f = r.current;
|
|
39
|
-
if (!f || l === "none")
|
|
40
|
-
return;
|
|
41
|
-
function y() {
|
|
42
|
-
let E = window.innerWidth - f.getBoundingClientRect().right;
|
|
43
|
-
x(E >= ve);
|
|
44
|
-
}
|
|
45
|
-
y();
|
|
46
|
-
let g = setInterval(y, 1e3);
|
|
47
|
-
return () => {
|
|
48
|
-
clearInterval(g);
|
|
49
|
-
};
|
|
50
|
-
}, [r, l]), t.useEffect(() => {
|
|
51
|
-
let f = s || document.activeElement === a.current;
|
|
52
|
-
if (l === "none" || !f)
|
|
53
|
-
return;
|
|
54
|
-
let y = setTimeout(A, 0), g = setTimeout(A, 2e3), E = setTimeout(A, 5e3), B = setTimeout(() => {
|
|
55
|
-
F(!0);
|
|
56
|
-
}, 6e3);
|
|
57
|
-
return () => {
|
|
58
|
-
clearTimeout(y), clearTimeout(g), clearTimeout(E), clearTimeout(B);
|
|
59
|
-
};
|
|
60
|
-
}, [a, s, l, A]), { hasPWMBadge: M, willPushPWMBadge: H, PWM_BADGE_SPACE_WIDTH: Be };
|
|
61
|
-
}
|
|
62
|
-
var _e = t.createContext({}), Fe = t.forwardRef((r, a) => {
|
|
63
|
-
var l = r, { value: s, onChange: M, maxLength: p, textAlign: _ = "left", pattern: x, placeholder: W, inputMode: F = "numeric", onComplete: H, pushPasswordManagerStrategy: A = "increase-width", pasteTransformer: f, containerClassName: y, noScriptCSSFallback: g = He, render: E, children: B } = l, i = De(l, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), L, ee, te, ne, re;
|
|
64
|
-
let [he, ge] = t.useState(typeof i.defaultValue == "string" ? i.defaultValue : ""), u = s ?? he, k = We(u), $ = t.useCallback((e) => {
|
|
65
|
-
M == null || M(e), ge(e);
|
|
66
|
-
}, [M]), w = t.useMemo(() => x ? typeof x == "string" ? new RegExp(x) : x : null, [x]), c = t.useRef(null), K = t.useRef(null), Q = t.useRef({ value: u, onChange: $, isIOS: typeof window < "u" && ((ee = (L = window == null ? void 0 : window.CSS) == null ? void 0 : L.supports) == null ? void 0 : ee.call(L, "-webkit-touch-callout", "none")) }), q = t.useRef({ prev: [(te = c.current) == null ? void 0 : te.selectionStart, (ne = c.current) == null ? void 0 : ne.selectionEnd, (re = c.current) == null ? void 0 : re.selectionDirection] });
|
|
67
|
-
t.useImperativeHandle(a, () => c.current, []), t.useEffect(() => {
|
|
68
|
-
let e = c.current, n = K.current;
|
|
69
|
-
if (!e || !n)
|
|
70
|
-
return;
|
|
71
|
-
Q.current.value !== e.value && Q.current.onChange(e.value), q.current.prev = [e.selectionStart, e.selectionEnd, e.selectionDirection];
|
|
72
|
-
function d() {
|
|
73
|
-
if (document.activeElement !== e) {
|
|
74
|
-
N(null), z(null);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
let o = e.selectionStart, m = e.selectionEnd, Z = e.selectionDirection, b = e.maxLength, T = e.value, S = q.current.prev, P = -1, C = -1, D;
|
|
78
|
-
if (T.length !== 0 && o !== null && m !== null) {
|
|
79
|
-
let ye = o === m, Pe = o === T.length && T.length < b;
|
|
80
|
-
if (ye && !Pe) {
|
|
81
|
-
let O = o;
|
|
82
|
-
if (O === 0)
|
|
83
|
-
P = 0, C = 1, D = "forward";
|
|
84
|
-
else if (O === b)
|
|
85
|
-
P = O - 1, C = O, D = "backward";
|
|
86
|
-
else if (b > 1 && T.length > 1) {
|
|
87
|
-
let Y = 0;
|
|
88
|
-
if (S[0] !== null && S[1] !== null) {
|
|
89
|
-
D = O < S[1] ? "backward" : "forward";
|
|
90
|
-
let Ce = S[0] === S[1] && S[0] < b;
|
|
91
|
-
D === "backward" && !Ce && (Y = -1);
|
|
92
|
-
}
|
|
93
|
-
P = Y + O, C = Y + O + 1;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
P !== -1 && C !== -1 && P !== C && c.current.setSelectionRange(P, C, D);
|
|
97
|
-
}
|
|
98
|
-
let se = P !== -1 ? P : o, pe = C !== -1 ? C : m, Se = D ?? Z;
|
|
99
|
-
N(se), z(pe), q.current.prev = [se, pe, Se];
|
|
100
|
-
}
|
|
101
|
-
if (document.addEventListener("selectionchange", d, { capture: !0 }), d(), document.activeElement === e && U(!0), !document.getElementById("input-otp-style")) {
|
|
102
|
-
let o = document.createElement("style");
|
|
103
|
-
if (o.id = "input-otp-style", document.head.appendChild(o), o.sheet) {
|
|
104
|
-
let m = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
105
|
-
V(o.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), V(o.sheet, `[data-input-otp]:autofill { ${m} }`), V(o.sheet, `[data-input-otp]:-webkit-autofill { ${m} }`), V(o.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), V(o.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
let v = () => {
|
|
109
|
-
n && n.style.setProperty("--root-height", `${e.clientHeight}px`);
|
|
110
|
-
};
|
|
111
|
-
v();
|
|
112
|
-
let h = new ResizeObserver(v);
|
|
113
|
-
return h.observe(e), () => {
|
|
114
|
-
document.removeEventListener("selectionchange", d, { capture: !0 }), h.disconnect();
|
|
115
|
-
};
|
|
116
|
-
}, []);
|
|
117
|
-
let [le, ae] = t.useState(!1), [G, U] = t.useState(!1), [R, N] = t.useState(null), [j, z] = t.useState(null);
|
|
118
|
-
t.useEffect(() => {
|
|
119
|
-
Oe(() => {
|
|
120
|
-
var e, n, d, v;
|
|
121
|
-
(e = c.current) == null || e.dispatchEvent(new Event("input"));
|
|
122
|
-
let h = (n = c.current) == null ? void 0 : n.selectionStart, o = (d = c.current) == null ? void 0 : d.selectionEnd, m = (v = c.current) == null ? void 0 : v.selectionDirection;
|
|
123
|
-
h !== null && o !== null && (N(h), z(o), q.current.prev = [h, o, m]);
|
|
124
|
-
});
|
|
125
|
-
}, [u, G]), t.useEffect(() => {
|
|
126
|
-
k !== void 0 && u !== k && k.length < p && u.length === p && (H == null || H(u));
|
|
127
|
-
}, [p, H, k, u]);
|
|
128
|
-
let I = Ie({ containerRef: K, inputRef: c, pushPasswordManagerStrategy: A, isFocused: G }), oe = t.useCallback((e) => {
|
|
129
|
-
let n = e.currentTarget.value.slice(0, p);
|
|
130
|
-
if (n.length > 0 && w && !w.test(n)) {
|
|
131
|
-
e.preventDefault();
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
typeof k == "string" && n.length < k.length && document.dispatchEvent(new Event("selectionchange")), $(n);
|
|
135
|
-
}, [p, $, k, w]), ie = t.useCallback(() => {
|
|
136
|
-
var e;
|
|
137
|
-
if (c.current) {
|
|
138
|
-
let n = Math.min(c.current.value.length, p - 1), d = c.current.value.length;
|
|
139
|
-
(e = c.current) == null || e.setSelectionRange(n, d), N(n), z(d);
|
|
140
|
-
}
|
|
141
|
-
U(!0);
|
|
142
|
-
}, [p]), ue = t.useCallback((e) => {
|
|
143
|
-
var n, d;
|
|
144
|
-
let v = c.current;
|
|
145
|
-
if (!f && (!Q.current.isIOS || !e.clipboardData || !v))
|
|
146
|
-
return;
|
|
147
|
-
let h = e.clipboardData.getData("text/plain"), o = f ? f(h) : h;
|
|
148
|
-
e.preventDefault();
|
|
149
|
-
let m = (n = c.current) == null ? void 0 : n.selectionStart, Z = (d = c.current) == null ? void 0 : d.selectionEnd, b = (m !== Z ? u.slice(0, m) + o + u.slice(Z) : u.slice(0, m) + o + u.slice(m)).slice(0, p);
|
|
150
|
-
if (b.length > 0 && w && !w.test(b))
|
|
151
|
-
return;
|
|
152
|
-
v.value = b, $(b);
|
|
153
|
-
let T = Math.min(b.length, p - 1), S = b.length;
|
|
154
|
-
v.setSelectionRange(T, S), N(T), z(S);
|
|
155
|
-
}, [p, $, w, u]), be = t.useMemo(() => ({ position: "relative", cursor: i.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [i.disabled]), ce = t.useMemo(() => ({ position: "absolute", inset: 0, width: I.willPushPWMBadge ? `calc(100% + ${I.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: I.willPushPWMBadge ? `inset(0 ${I.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: _, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [I.PWM_BADGE_SPACE_WIDTH, I.willPushPWMBadge, _]), we = t.useMemo(() => t.createElement("input", Te(Re({ autoComplete: i.autoComplete || "one-time-code" }, i), { "data-input-otp": !0, "data-input-otp-placeholder-shown": u.length === 0 || void 0, "data-input-otp-mss": R, "data-input-otp-mse": j, inputMode: F, pattern: w == null ? void 0 : w.source, "aria-placeholder": W, style: ce, maxLength: p, value: u, ref: c, onPaste: (e) => {
|
|
156
|
-
var n;
|
|
157
|
-
ue(e), (n = i.onPaste) == null || n.call(i, e);
|
|
158
|
-
}, onChange: oe, onMouseOver: (e) => {
|
|
159
|
-
var n;
|
|
160
|
-
ae(!0), (n = i.onMouseOver) == null || n.call(i, e);
|
|
161
|
-
}, onMouseLeave: (e) => {
|
|
162
|
-
var n;
|
|
163
|
-
ae(!1), (n = i.onMouseLeave) == null || n.call(i, e);
|
|
164
|
-
}, onFocus: (e) => {
|
|
165
|
-
var n;
|
|
166
|
-
ie(), (n = i.onFocus) == null || n.call(i, e);
|
|
167
|
-
}, onBlur: (e) => {
|
|
168
|
-
var n;
|
|
169
|
-
U(!1), (n = i.onBlur) == null || n.call(i, e);
|
|
170
|
-
} })), [oe, ie, ue, F, ce, p, j, R, i, w == null ? void 0 : w.source, u]), X = t.useMemo(() => ({ slots: Array.from({ length: p }).map((e, n) => {
|
|
171
|
-
var d;
|
|
172
|
-
let v = G && R !== null && j !== null && (R === j && n === R || n >= R && n < j), h = u[n] !== void 0 ? u[n] : null, o = u[0] !== void 0 ? null : (d = W == null ? void 0 : W[n]) != null ? d : null;
|
|
173
|
-
return { char: h, placeholderChar: o, isActive: v, hasFakeCaret: v && h === null };
|
|
174
|
-
}), isFocused: G, isHovering: !i.disabled && le }), [G, le, p, j, R, i.disabled, u]), Ee = t.useMemo(() => E ? E(X) : t.createElement(_e.Provider, { value: X }, B), [B, X, E]);
|
|
175
|
-
return t.createElement(t.Fragment, null, g !== null && t.createElement("noscript", null, t.createElement("style", null, g)), t.createElement("div", { ref: K, "data-input-otp-container": !0, style: be, className: y }, Ee, t.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, we)));
|
|
176
|
-
});
|
|
177
|
-
Fe.displayName = "Input";
|
|
178
|
-
function V(r, a) {
|
|
179
|
-
try {
|
|
180
|
-
r.insertRule(a);
|
|
181
|
-
} catch {
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
var He = `
|
|
185
|
-
[data-input-otp] {
|
|
186
|
-
--nojs-bg: white !important;
|
|
187
|
-
--nojs-fg: black !important;
|
|
188
|
-
|
|
189
|
-
background-color: var(--nojs-bg) !important;
|
|
190
|
-
color: var(--nojs-fg) !important;
|
|
191
|
-
caret-color: var(--nojs-fg) !important;
|
|
192
|
-
letter-spacing: .25em !important;
|
|
193
|
-
text-align: center !important;
|
|
194
|
-
border: 1px solid var(--nojs-fg) !important;
|
|
195
|
-
border-radius: 4px !important;
|
|
196
|
-
width: 100% !important;
|
|
197
|
-
}
|
|
198
|
-
@media (prefers-color-scheme: dark) {
|
|
199
|
-
[data-input-otp] {
|
|
200
|
-
--nojs-bg: black !important;
|
|
201
|
-
--nojs-fg: white !important;
|
|
202
|
-
}
|
|
203
|
-
}`;
|
|
1
|
+
import e from "./index.es175.js";
|
|
2
|
+
const t = e("Circle", [
|
|
3
|
+
[
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2Z",
|
|
7
|
+
key: "arly8y"
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
]);
|
|
204
11
|
export {
|
|
205
|
-
|
|
206
|
-
_e as OTPInputContext
|
|
12
|
+
t as default
|
|
207
13
|
};
|