@als-tp/als-react-ts-ui 0.3.1 → 0.5.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/als-react-ts-ui.js +95 -12432
- package/dist/als-react-ts-ui10.js +9 -0
- package/dist/als-react-ts-ui100.js +142 -0
- package/dist/als-react-ts-ui101.js +199 -0
- package/dist/als-react-ts-ui102.js +146 -0
- package/dist/als-react-ts-ui103.js +31 -0
- package/dist/als-react-ts-ui104.js +52 -0
- package/dist/als-react-ts-ui105.js +28 -0
- package/dist/als-react-ts-ui106.js +27 -0
- package/dist/als-react-ts-ui107.js +24 -0
- package/dist/als-react-ts-ui108.js +23 -0
- package/dist/als-react-ts-ui109.js +311 -0
- package/dist/als-react-ts-ui11.js +15 -0
- package/dist/als-react-ts-ui110.js +223 -0
- package/dist/als-react-ts-ui111.js +26 -0
- package/dist/als-react-ts-ui112.js +25 -0
- package/dist/als-react-ts-ui113.js +172 -0
- package/dist/als-react-ts-ui114.js +305 -0
- package/dist/als-react-ts-ui115.js +37 -0
- package/dist/als-react-ts-ui116.js +40 -0
- package/dist/als-react-ts-ui117.js +40 -0
- package/dist/als-react-ts-ui118.js +34 -0
- package/dist/als-react-ts-ui119.js +41 -0
- package/dist/als-react-ts-ui12.js +24 -0
- package/dist/als-react-ts-ui120.js +61 -0
- package/dist/als-react-ts-ui121.js +5 -0
- package/dist/als-react-ts-ui122.js +181 -0
- package/dist/als-react-ts-ui123.js +121 -0
- package/dist/als-react-ts-ui124.js +349 -0
- package/dist/als-react-ts-ui125.js +85 -0
- package/dist/als-react-ts-ui126.js +30 -0
- package/dist/als-react-ts-ui127.js +187 -0
- package/dist/als-react-ts-ui128.js +45 -0
- package/dist/als-react-ts-ui129.js +35 -0
- package/dist/als-react-ts-ui13.js +127 -0
- package/dist/als-react-ts-ui130.js +9 -0
- package/dist/als-react-ts-ui131.js +9 -0
- package/dist/als-react-ts-ui132.js +206 -0
- package/dist/als-react-ts-ui133.js +127 -0
- package/dist/als-react-ts-ui134.js +20 -0
- package/dist/als-react-ts-ui135.js +85 -0
- package/dist/als-react-ts-ui136.js +37 -0
- package/dist/als-react-ts-ui137.js +101 -0
- package/dist/als-react-ts-ui138.js +68 -0
- package/dist/als-react-ts-ui139.js +39 -0
- package/dist/als-react-ts-ui14.js +11 -0
- package/dist/als-react-ts-ui140.js +21 -0
- package/dist/als-react-ts-ui141.js +26 -0
- package/dist/als-react-ts-ui142.js +65 -0
- package/dist/als-react-ts-ui143.js +24 -0
- package/dist/als-react-ts-ui144.js +112 -0
- package/dist/als-react-ts-ui145.js +34 -0
- package/dist/als-react-ts-ui146.js +27 -0
- package/dist/als-react-ts-ui147.js +44 -0
- package/dist/als-react-ts-ui148.js +17 -0
- package/dist/als-react-ts-ui149.js +24 -0
- package/dist/als-react-ts-ui15.js +8 -0
- package/dist/als-react-ts-ui150.js +15 -0
- package/dist/als-react-ts-ui151.js +11 -0
- package/dist/als-react-ts-ui152.js +47 -0
- package/dist/als-react-ts-ui153.js +47 -0
- package/dist/als-react-ts-ui154.js +107 -0
- package/dist/als-react-ts-ui155.js +14 -0
- package/dist/als-react-ts-ui156.js +101 -0
- package/dist/als-react-ts-ui157.js +35 -0
- package/dist/als-react-ts-ui158.js +40 -0
- package/dist/als-react-ts-ui159.js +112 -0
- package/dist/als-react-ts-ui16.js +16 -0
- package/dist/als-react-ts-ui160.js +40 -0
- package/dist/als-react-ts-ui161.js +145 -0
- package/dist/als-react-ts-ui162.js +87 -0
- package/dist/als-react-ts-ui163.js +39 -0
- package/dist/als-react-ts-ui164.js +47 -0
- package/dist/als-react-ts-ui165.js +28 -0
- package/dist/als-react-ts-ui166.js +29 -0
- package/dist/als-react-ts-ui167.js +45 -0
- package/dist/als-react-ts-ui168.js +75 -0
- package/dist/als-react-ts-ui169.js +44 -0
- package/dist/als-react-ts-ui17.js +35 -0
- package/dist/als-react-ts-ui170.js +78 -0
- package/dist/als-react-ts-ui171.js +44 -0
- package/dist/als-react-ts-ui172.js +101 -0
- package/dist/als-react-ts-ui173.js +24 -0
- package/dist/als-react-ts-ui174.js +24 -0
- package/dist/als-react-ts-ui175.js +36 -0
- package/dist/als-react-ts-ui176.js +22 -0
- package/dist/als-react-ts-ui177.js +18 -0
- package/dist/als-react-ts-ui178.js +15 -0
- package/dist/als-react-ts-ui179.js +101 -0
- package/dist/als-react-ts-ui18.js +32 -0
- package/dist/als-react-ts-ui180.js +38 -0
- package/dist/als-react-ts-ui181.js +97 -0
- package/dist/als-react-ts-ui182.js +34 -0
- package/dist/als-react-ts-ui183.js +48 -0
- package/dist/als-react-ts-ui184.js +9 -0
- package/dist/als-react-ts-ui185.js +32 -0
- package/dist/als-react-ts-ui186.js +33 -0
- package/dist/als-react-ts-ui187.js +58 -0
- package/dist/als-react-ts-ui188.js +75 -0
- package/dist/als-react-ts-ui189.js +57 -0
- package/dist/als-react-ts-ui19.js +8 -0
- package/dist/als-react-ts-ui190.js +14 -0
- package/dist/als-react-ts-ui191.js +6 -0
- package/dist/als-react-ts-ui192.js +29 -0
- package/dist/als-react-ts-ui193.js +6 -0
- package/dist/als-react-ts-ui194.js +23 -0
- package/dist/als-react-ts-ui195.js +32 -0
- package/dist/als-react-ts-ui196.js +55 -0
- package/dist/als-react-ts-ui197.js +206 -0
- package/dist/als-react-ts-ui198.js +269 -0
- package/dist/als-react-ts-ui199.js +10 -0
- package/dist/als-react-ts-ui20.js +11 -0
- package/dist/als-react-ts-ui200.js +89 -0
- package/dist/als-react-ts-ui201.js +41 -0
- package/dist/als-react-ts-ui202.js +50 -0
- package/dist/als-react-ts-ui203.js +25 -0
- package/dist/als-react-ts-ui204.js +17 -0
- package/dist/als-react-ts-ui205.js +25 -0
- package/dist/als-react-ts-ui206.js +25 -0
- package/dist/als-react-ts-ui207.js +59 -0
- package/dist/als-react-ts-ui208.js +144 -0
- package/dist/als-react-ts-ui209.js +62 -0
- package/dist/als-react-ts-ui21.js +34 -0
- package/dist/als-react-ts-ui210.js +26 -0
- package/dist/als-react-ts-ui211.js +265 -0
- package/dist/als-react-ts-ui212.js +32 -0
- package/dist/als-react-ts-ui213.js +85 -0
- package/dist/als-react-ts-ui214.js +53 -0
- package/dist/als-react-ts-ui215.js +119 -0
- package/dist/als-react-ts-ui216.js +48 -0
- package/dist/als-react-ts-ui217.js +84 -0
- package/dist/als-react-ts-ui218.js +38 -0
- package/dist/als-react-ts-ui219.js +39 -0
- package/dist/als-react-ts-ui22.js +13 -0
- package/dist/als-react-ts-ui220.js +24 -0
- package/dist/als-react-ts-ui221.js +41 -0
- package/dist/als-react-ts-ui222.js +234 -0
- package/dist/als-react-ts-ui223.js +25 -0
- package/dist/als-react-ts-ui224.js +212 -0
- package/dist/als-react-ts-ui225.js +82 -0
- package/dist/als-react-ts-ui226.js +82 -0
- package/dist/als-react-ts-ui227.js +170 -0
- package/dist/als-react-ts-ui228.js +41 -0
- package/dist/als-react-ts-ui229.js +55 -0
- package/dist/als-react-ts-ui23.js +104 -0
- package/dist/als-react-ts-ui230.js +141 -0
- package/dist/als-react-ts-ui231.js +37 -0
- package/dist/als-react-ts-ui232.js +137 -0
- package/dist/als-react-ts-ui233.js +24 -0
- package/dist/als-react-ts-ui234.js +61 -0
- package/dist/als-react-ts-ui235.js +23 -0
- package/dist/als-react-ts-ui236.js +33 -0
- package/dist/als-react-ts-ui237.js +29 -0
- package/dist/als-react-ts-ui238.js +29 -0
- package/dist/als-react-ts-ui239.js +27 -0
- package/dist/als-react-ts-ui24.js +26 -0
- package/dist/als-react-ts-ui240.js +9 -0
- package/dist/als-react-ts-ui241.js +89 -0
- package/dist/als-react-ts-ui242.js +14 -0
- package/dist/als-react-ts-ui243.js +65 -0
- package/dist/als-react-ts-ui244.js +40 -0
- package/dist/als-react-ts-ui245.js +16 -0
- package/dist/als-react-ts-ui246.js +35 -0
- package/dist/als-react-ts-ui247.js +91 -0
- package/dist/als-react-ts-ui248.js +28 -0
- package/dist/als-react-ts-ui249.js +7 -0
- package/dist/als-react-ts-ui25.js +11 -0
- package/dist/als-react-ts-ui250.js +6 -0
- package/dist/als-react-ts-ui251.js +7 -0
- package/dist/als-react-ts-ui252.js +14 -0
- package/dist/als-react-ts-ui253.js +20 -0
- package/dist/als-react-ts-ui254.js +69 -0
- package/dist/als-react-ts-ui255.js +294 -0
- package/dist/als-react-ts-ui256.js +7 -0
- package/dist/als-react-ts-ui257.js +41 -0
- package/dist/als-react-ts-ui258.js +127 -0
- package/dist/als-react-ts-ui259.js +7 -0
- package/dist/als-react-ts-ui26.js +14 -0
- package/dist/als-react-ts-ui260.js +23 -0
- package/dist/als-react-ts-ui261.js +83 -0
- package/dist/als-react-ts-ui262.js +66 -0
- package/dist/als-react-ts-ui263.js +48 -0
- package/dist/als-react-ts-ui264.js +7 -0
- package/dist/als-react-ts-ui265.js +44 -0
- package/dist/als-react-ts-ui266.js +160 -0
- package/dist/als-react-ts-ui267.js +187 -0
- package/dist/als-react-ts-ui268.js +39 -0
- package/dist/als-react-ts-ui269.js +126 -0
- package/dist/als-react-ts-ui27.js +18 -0
- package/dist/als-react-ts-ui270.js +47 -0
- package/dist/als-react-ts-ui271.js +30 -0
- package/dist/als-react-ts-ui272.js +42 -0
- package/dist/als-react-ts-ui273.js +38 -0
- package/dist/als-react-ts-ui274.js +83 -0
- package/dist/als-react-ts-ui275.js +50 -0
- package/dist/als-react-ts-ui276.js +38 -0
- package/dist/als-react-ts-ui277.js +24 -0
- package/dist/als-react-ts-ui278.js +100 -0
- package/dist/als-react-ts-ui279.js +31 -0
- package/dist/als-react-ts-ui28.js +122 -0
- package/dist/als-react-ts-ui280.js +143 -0
- package/dist/als-react-ts-ui281.js +27 -0
- package/dist/als-react-ts-ui282.js +31 -0
- package/dist/als-react-ts-ui283.js +11 -0
- package/dist/als-react-ts-ui284.js +81 -0
- package/dist/als-react-ts-ui285.js +10 -0
- package/dist/als-react-ts-ui286.js +14 -0
- package/dist/als-react-ts-ui287.js +69 -0
- package/dist/als-react-ts-ui288.js +66 -0
- package/dist/als-react-ts-ui289.js +14 -0
- package/dist/als-react-ts-ui29.js +83 -0
- package/dist/als-react-ts-ui290.js +55 -0
- package/dist/als-react-ts-ui291.js +14 -0
- package/dist/als-react-ts-ui292.js +14 -0
- package/dist/als-react-ts-ui293.js +6 -0
- package/dist/als-react-ts-ui294.js +21 -0
- package/dist/als-react-ts-ui295.js +25 -0
- package/dist/als-react-ts-ui296.js +167 -0
- package/dist/als-react-ts-ui297.js +6 -0
- package/dist/als-react-ts-ui298.js +11 -0
- package/dist/als-react-ts-ui299.js +14 -0
- package/dist/als-react-ts-ui3.js +142 -0
- package/dist/als-react-ts-ui30.js +13 -0
- package/dist/als-react-ts-ui300.js +16 -0
- package/dist/als-react-ts-ui301.js +6 -0
- package/dist/als-react-ts-ui302.js +6 -0
- package/dist/als-react-ts-ui303.js +8 -0
- package/dist/als-react-ts-ui304.js +82 -0
- package/dist/als-react-ts-ui305.js +8 -0
- package/dist/als-react-ts-ui306.js +109 -0
- package/dist/als-react-ts-ui307.js +58 -0
- package/dist/als-react-ts-ui308.js +258 -0
- package/dist/als-react-ts-ui309.js +27 -0
- package/dist/als-react-ts-ui31.js +112 -0
- package/dist/als-react-ts-ui310.js +56 -0
- package/dist/als-react-ts-ui311.js +230 -0
- package/dist/als-react-ts-ui312.js +51 -0
- package/dist/als-react-ts-ui313.js +192 -0
- package/dist/als-react-ts-ui314.js +16 -0
- package/dist/als-react-ts-ui315.js +66 -0
- package/dist/als-react-ts-ui316.js +17 -0
- package/dist/als-react-ts-ui317.js +77 -0
- package/dist/als-react-ts-ui318.js +27 -0
- package/dist/als-react-ts-ui319.js +47 -0
- package/dist/als-react-ts-ui32.js +11 -0
- package/dist/als-react-ts-ui320.js +54 -0
- package/dist/als-react-ts-ui321.js +32 -0
- package/dist/als-react-ts-ui322.js +35 -0
- package/dist/als-react-ts-ui323.js +19 -0
- package/dist/als-react-ts-ui324.js +56 -0
- package/dist/als-react-ts-ui325.js +20 -0
- package/dist/als-react-ts-ui326.js +106 -0
- package/dist/als-react-ts-ui327.js +24 -0
- package/dist/als-react-ts-ui328.js +35 -0
- package/dist/als-react-ts-ui329.js +77 -0
- package/dist/als-react-ts-ui33.js +173 -0
- package/dist/als-react-ts-ui330.js +229 -0
- package/dist/als-react-ts-ui331.js +72 -0
- package/dist/als-react-ts-ui332.js +50 -0
- package/dist/als-react-ts-ui333.js +202 -0
- package/dist/als-react-ts-ui334.js +50 -0
- package/dist/als-react-ts-ui335.js +22 -0
- package/dist/als-react-ts-ui336.js +8 -0
- package/dist/als-react-ts-ui337.js +19 -0
- package/dist/als-react-ts-ui338.js +28 -0
- package/dist/als-react-ts-ui339.js +136 -0
- package/dist/als-react-ts-ui34.js +52 -0
- package/dist/als-react-ts-ui340.js +11 -0
- package/dist/als-react-ts-ui341.js +14 -0
- package/dist/als-react-ts-ui342.js +24 -0
- package/dist/als-react-ts-ui343.js +6 -0
- package/dist/als-react-ts-ui344.js +45 -0
- package/dist/als-react-ts-ui345.js +23 -0
- package/dist/als-react-ts-ui346.js +68 -0
- package/dist/als-react-ts-ui347.js +7 -0
- package/dist/als-react-ts-ui348.js +6 -0
- package/dist/als-react-ts-ui349.js +6 -0
- package/dist/als-react-ts-ui35.js +50 -0
- package/dist/als-react-ts-ui350.js +21 -0
- package/dist/als-react-ts-ui351.js +18 -0
- package/dist/als-react-ts-ui352.js +35 -0
- package/dist/als-react-ts-ui353.js +14 -0
- package/dist/als-react-ts-ui354.js +14 -0
- package/dist/als-react-ts-ui355.js +92 -0
- package/dist/als-react-ts-ui356.js +58 -0
- package/dist/als-react-ts-ui357.js +4 -0
- package/dist/als-react-ts-ui358.js +26 -0
- package/dist/als-react-ts-ui359.js +155 -0
- package/dist/als-react-ts-ui36.js +12 -0
- package/dist/als-react-ts-ui360.js +116 -0
- package/dist/als-react-ts-ui361.js +67 -0
- package/dist/als-react-ts-ui362.js +14 -0
- package/dist/als-react-ts-ui363.js +14 -0
- package/dist/als-react-ts-ui364.js +265 -0
- package/dist/als-react-ts-ui365.js +63 -0
- package/dist/als-react-ts-ui366.js +8 -0
- package/dist/als-react-ts-ui367.js +62 -0
- package/dist/als-react-ts-ui368.js +14 -0
- package/dist/als-react-ts-ui369.js +90 -0
- package/dist/als-react-ts-ui37.js +12 -0
- package/dist/als-react-ts-ui370.js +7 -0
- package/dist/als-react-ts-ui371.js +43 -0
- package/dist/als-react-ts-ui372.js +6 -0
- package/dist/als-react-ts-ui373.js +19 -0
- package/dist/als-react-ts-ui374.js +211 -0
- package/dist/als-react-ts-ui375.js +16 -0
- package/dist/als-react-ts-ui376.js +6 -0
- package/dist/als-react-ts-ui377.js +16 -0
- package/dist/als-react-ts-ui378.js +50 -0
- package/dist/als-react-ts-ui379.js +6 -0
- package/dist/als-react-ts-ui38.js +257 -0
- package/dist/als-react-ts-ui380.js +15 -0
- package/dist/als-react-ts-ui381.js +17 -0
- package/dist/als-react-ts-ui382.js +17 -0
- package/dist/als-react-ts-ui383.js +78 -0
- package/dist/als-react-ts-ui384.js +183 -0
- package/dist/als-react-ts-ui385.js +38 -0
- package/dist/als-react-ts-ui386.js +57 -0
- package/dist/als-react-ts-ui387.js +78 -0
- package/dist/als-react-ts-ui388.js +32 -0
- package/dist/als-react-ts-ui389.js +200 -0
- package/dist/als-react-ts-ui39.js +48 -0
- package/dist/als-react-ts-ui390.js +11 -0
- package/dist/als-react-ts-ui391.js +285 -0
- package/dist/als-react-ts-ui392.js +209 -0
- package/dist/als-react-ts-ui393.js +56 -0
- package/dist/als-react-ts-ui394.js +401 -0
- package/dist/als-react-ts-ui395.js +17 -0
- package/dist/als-react-ts-ui396.js +8 -0
- package/dist/als-react-ts-ui397.js +24 -0
- package/dist/als-react-ts-ui398.js +60 -0
- package/dist/als-react-ts-ui399.js +19 -0
- package/dist/als-react-ts-ui4.js +158 -0
- package/dist/als-react-ts-ui40.js +96 -0
- package/dist/als-react-ts-ui400.js +29 -0
- package/dist/als-react-ts-ui401.js +45 -0
- package/dist/als-react-ts-ui402.js +23 -0
- package/dist/als-react-ts-ui403.js +51 -0
- package/dist/als-react-ts-ui404.js +53 -0
- package/dist/als-react-ts-ui405.js +20 -0
- package/dist/als-react-ts-ui406.js +14 -0
- package/dist/als-react-ts-ui407.js +82 -0
- package/dist/als-react-ts-ui408.js +8 -0
- package/dist/als-react-ts-ui409.js +26 -0
- package/dist/als-react-ts-ui41.js +78 -0
- package/dist/als-react-ts-ui410.js +18 -0
- package/dist/als-react-ts-ui411.js +6 -0
- package/dist/als-react-ts-ui412.js +14 -0
- package/dist/als-react-ts-ui413.js +13 -0
- package/dist/als-react-ts-ui414.js +7 -0
- package/dist/als-react-ts-ui415.js +12 -0
- package/dist/als-react-ts-ui416.js +14 -0
- package/dist/als-react-ts-ui417.js +14 -0
- package/dist/als-react-ts-ui418.js +19 -0
- package/dist/als-react-ts-ui419.js +140 -0
- package/dist/als-react-ts-ui42.js +23 -0
- package/dist/als-react-ts-ui420.js +28 -0
- package/dist/als-react-ts-ui421.js +130 -0
- package/dist/als-react-ts-ui422.js +47 -0
- package/dist/als-react-ts-ui423.js +20 -0
- package/dist/als-react-ts-ui424.js +14 -0
- package/dist/als-react-ts-ui425.js +324 -0
- package/dist/als-react-ts-ui426.js +5 -0
- package/dist/als-react-ts-ui427.js +489 -0
- package/dist/als-react-ts-ui428.js +7 -0
- package/dist/als-react-ts-ui429.js +14 -0
- package/dist/als-react-ts-ui43.js +111 -0
- package/dist/als-react-ts-ui430.js +16 -0
- package/dist/als-react-ts-ui431.js +6 -0
- package/dist/als-react-ts-ui432.js +6 -0
- package/dist/als-react-ts-ui433.js +14 -0
- package/dist/als-react-ts-ui434.js +6 -0
- package/dist/als-react-ts-ui435.js +28 -0
- package/dist/als-react-ts-ui436.js +14 -0
- package/dist/als-react-ts-ui437.js +42 -0
- package/dist/als-react-ts-ui438.js +6 -0
- package/dist/als-react-ts-ui439.js +18 -0
- package/dist/als-react-ts-ui44.js +112 -0
- package/dist/als-react-ts-ui440.js +12 -0
- package/dist/als-react-ts-ui441.js +14 -0
- package/dist/als-react-ts-ui442.js +12 -0
- package/dist/als-react-ts-ui443.js +14 -0
- package/dist/als-react-ts-ui444.js +6 -0
- package/dist/als-react-ts-ui445.js +10 -0
- package/dist/als-react-ts-ui446.js +4 -0
- package/dist/als-react-ts-ui447.js +57 -0
- package/dist/als-react-ts-ui448.js +58 -0
- package/dist/als-react-ts-ui449.js +10 -0
- package/dist/als-react-ts-ui45.js +40 -0
- package/dist/als-react-ts-ui450.js +9 -0
- package/dist/als-react-ts-ui451.js +6 -0
- package/dist/als-react-ts-ui452.js +597 -0
- package/dist/als-react-ts-ui453.js +44 -0
- package/dist/als-react-ts-ui454.js +41 -0
- package/dist/als-react-ts-ui455.js +59 -0
- package/dist/als-react-ts-ui456.js +10 -0
- package/dist/als-react-ts-ui457.js +14 -0
- package/dist/als-react-ts-ui458.js +14 -0
- package/dist/als-react-ts-ui459.js +14 -0
- package/dist/als-react-ts-ui46.js +45 -0
- package/dist/als-react-ts-ui460.js +23 -0
- package/dist/als-react-ts-ui461.js +6 -0
- package/dist/als-react-ts-ui462.js +10 -0
- package/dist/als-react-ts-ui463.js +6 -0
- package/dist/als-react-ts-ui464.js +14 -0
- package/dist/als-react-ts-ui465.js +14 -0
- package/dist/als-react-ts-ui466.js +10 -0
- package/dist/als-react-ts-ui467.js +14 -0
- package/dist/als-react-ts-ui468.js +14 -0
- package/dist/als-react-ts-ui469.js +14 -0
- package/dist/als-react-ts-ui47.js +55 -0
- package/dist/als-react-ts-ui470.js +68 -0
- package/dist/als-react-ts-ui471.js +14 -0
- package/dist/als-react-ts-ui472.js +15 -0
- package/dist/als-react-ts-ui473.js +14 -0
- package/dist/als-react-ts-ui474.js +14 -0
- package/dist/als-react-ts-ui475.js +10 -0
- package/dist/als-react-ts-ui476.js +4 -0
- package/dist/als-react-ts-ui477.js +10 -0
- package/dist/als-react-ts-ui478.js +4 -0
- package/dist/als-react-ts-ui479.js +23 -0
- package/dist/als-react-ts-ui48.js +39 -0
- package/dist/als-react-ts-ui480.js +8 -0
- package/dist/als-react-ts-ui481.js +6 -0
- package/dist/als-react-ts-ui482.js +14 -0
- package/dist/als-react-ts-ui483.js +106 -0
- package/dist/als-react-ts-ui484.js +78 -0
- package/dist/als-react-ts-ui485.js +4 -0
- package/dist/als-react-ts-ui486.js +46 -0
- package/dist/als-react-ts-ui487.js +58 -0
- package/dist/als-react-ts-ui488.js +30 -0
- package/dist/als-react-ts-ui489.js +25 -0
- package/dist/als-react-ts-ui49.js +50 -0
- package/dist/als-react-ts-ui490.js +134 -0
- package/dist/als-react-ts-ui491.js +4 -0
- package/dist/als-react-ts-ui492.js +4 -0
- package/dist/als-react-ts-ui493.js +14 -0
- package/dist/als-react-ts-ui494.js +26 -0
- package/dist/als-react-ts-ui495.js +6 -0
- package/dist/als-react-ts-ui496.js +22 -0
- package/dist/als-react-ts-ui497.js +28 -0
- package/dist/als-react-ts-ui498.js +14 -0
- package/dist/als-react-ts-ui499.js +7 -0
- package/dist/als-react-ts-ui5.js +26 -0
- package/dist/als-react-ts-ui50.js +79 -0
- package/dist/als-react-ts-ui500.js +143 -0
- package/dist/als-react-ts-ui501.js +9 -0
- package/dist/als-react-ts-ui502.js +42 -0
- package/dist/als-react-ts-ui503.js +112 -0
- package/dist/als-react-ts-ui504.js +14 -0
- package/dist/als-react-ts-ui505.js +26 -0
- package/dist/als-react-ts-ui506.js +16 -0
- package/dist/als-react-ts-ui507.js +34 -0
- package/dist/als-react-ts-ui508.js +4 -0
- package/dist/als-react-ts-ui509.js +14 -0
- package/dist/als-react-ts-ui51.js +24 -0
- package/dist/als-react-ts-ui510.js +15 -0
- package/dist/als-react-ts-ui511.js +17 -0
- package/dist/als-react-ts-ui512.js +14 -0
- package/dist/als-react-ts-ui513.js +20 -0
- package/dist/als-react-ts-ui514.js +76 -0
- package/dist/als-react-ts-ui515.js +131 -0
- package/dist/als-react-ts-ui516.js +117 -0
- package/dist/als-react-ts-ui517.js +104 -0
- package/dist/als-react-ts-ui518.js +53 -0
- package/dist/als-react-ts-ui519.js +6 -0
- package/dist/als-react-ts-ui52.js +24 -0
- package/dist/als-react-ts-ui520.js +6 -0
- package/dist/als-react-ts-ui521.js +22 -0
- package/dist/als-react-ts-ui522.js +13 -0
- package/dist/als-react-ts-ui523.js +4 -0
- package/dist/als-react-ts-ui524.js +10 -0
- package/dist/als-react-ts-ui525.js +14 -0
- package/dist/als-react-ts-ui526.js +21 -0
- package/dist/als-react-ts-ui527.js +6 -0
- package/dist/als-react-ts-ui528.js +6 -0
- package/dist/als-react-ts-ui529.js +14 -0
- package/dist/als-react-ts-ui53.js +40 -0
- package/dist/als-react-ts-ui530.js +14 -0
- package/dist/als-react-ts-ui531.js +6 -0
- package/dist/als-react-ts-ui532.js +14 -0
- package/dist/als-react-ts-ui533.js +5 -0
- package/dist/als-react-ts-ui534.js +48 -0
- package/dist/als-react-ts-ui535.js +14 -0
- package/dist/als-react-ts-ui536.js +14 -0
- package/dist/als-react-ts-ui537.js +14 -0
- package/dist/als-react-ts-ui538.js +6 -0
- package/dist/als-react-ts-ui539.js +14 -0
- package/dist/als-react-ts-ui54.js +30 -0
- package/dist/als-react-ts-ui540.js +6 -0
- package/dist/als-react-ts-ui541.js +5 -0
- package/dist/als-react-ts-ui542.js +9 -0
- package/dist/als-react-ts-ui543.js +6 -0
- package/dist/als-react-ts-ui544.js +25 -0
- package/dist/als-react-ts-ui545.js +14 -0
- package/dist/als-react-ts-ui546.js +16 -0
- package/dist/als-react-ts-ui547.js +6 -0
- package/dist/als-react-ts-ui548.js +14 -0
- package/dist/als-react-ts-ui549.js +6 -0
- package/dist/als-react-ts-ui55.js +208 -0
- package/dist/als-react-ts-ui550.js +14 -0
- package/dist/als-react-ts-ui551.js +15 -0
- package/dist/als-react-ts-ui552.js +6 -0
- package/dist/als-react-ts-ui553.js +14 -0
- package/dist/als-react-ts-ui554.js +9 -0
- package/dist/als-react-ts-ui555.js +11 -0
- package/dist/als-react-ts-ui556.js +14 -0
- package/dist/als-react-ts-ui557.js +10 -0
- package/dist/als-react-ts-ui558.js +15 -0
- package/dist/als-react-ts-ui559.js +94 -0
- package/dist/als-react-ts-ui56.js +17 -0
- package/dist/als-react-ts-ui560.js +6 -0
- package/dist/als-react-ts-ui561.js +4 -0
- package/dist/als-react-ts-ui562.js +6 -0
- package/dist/als-react-ts-ui563.js +10 -0
- package/dist/als-react-ts-ui564.js +6 -0
- package/dist/als-react-ts-ui565.js +8 -0
- package/dist/als-react-ts-ui566.js +32 -0
- package/dist/als-react-ts-ui567.js +14 -0
- package/dist/als-react-ts-ui568.js +9 -0
- package/dist/als-react-ts-ui569.js +14 -0
- package/dist/als-react-ts-ui57.js +24 -0
- package/dist/als-react-ts-ui570.js +4 -0
- package/dist/als-react-ts-ui571.js +6 -0
- package/dist/als-react-ts-ui572.js +6 -0
- package/dist/als-react-ts-ui573.js +6 -0
- package/dist/als-react-ts-ui58.js +30 -0
- package/dist/als-react-ts-ui59.js +39 -0
- package/dist/als-react-ts-ui6.js +103 -0
- package/dist/als-react-ts-ui60.js +30 -0
- package/dist/als-react-ts-ui61.js +24 -0
- package/dist/als-react-ts-ui62.js +73 -0
- package/dist/als-react-ts-ui63.js +34 -0
- package/dist/als-react-ts-ui64.js +55 -0
- package/dist/als-react-ts-ui65.js +190 -0
- package/dist/als-react-ts-ui66.js +194 -0
- package/dist/als-react-ts-ui67.js +25 -0
- package/dist/als-react-ts-ui68.js +50 -0
- package/dist/als-react-ts-ui69.js +82 -0
- package/dist/als-react-ts-ui7.js +42 -0
- package/dist/als-react-ts-ui70.js +36 -0
- package/dist/als-react-ts-ui71.js +196 -0
- package/dist/als-react-ts-ui72.js +15 -0
- package/dist/als-react-ts-ui73.js +13 -0
- package/dist/als-react-ts-ui74.js +309 -0
- package/dist/als-react-ts-ui75.js +39 -0
- package/dist/als-react-ts-ui76.js +132 -0
- package/dist/als-react-ts-ui77.js +307 -0
- package/dist/als-react-ts-ui78.js +200 -0
- package/dist/als-react-ts-ui79.js +17 -0
- package/dist/als-react-ts-ui8.js +8 -0
- package/dist/als-react-ts-ui80.js +120 -0
- package/dist/als-react-ts-ui81.js +110 -0
- package/dist/als-react-ts-ui82.js +111 -0
- package/dist/als-react-ts-ui83.js +38 -0
- package/dist/als-react-ts-ui84.js +26 -0
- package/dist/als-react-ts-ui85.js +26 -0
- package/dist/als-react-ts-ui86.js +36 -0
- package/dist/als-react-ts-ui87.js +39 -0
- package/dist/als-react-ts-ui88.js +110 -0
- package/dist/als-react-ts-ui89.js +25 -0
- package/dist/als-react-ts-ui9.js +5 -0
- package/dist/als-react-ts-ui90.js +194 -0
- package/dist/als-react-ts-ui91.js +74 -0
- package/dist/als-react-ts-ui92.js +214 -0
- package/dist/als-react-ts-ui93.js +211 -0
- package/dist/als-react-ts-ui94.js +21 -0
- package/dist/als-react-ts-ui95.js +6 -0
- package/dist/als-react-ts-ui96.js +6 -0
- package/dist/als-react-ts-ui97.js +141 -0
- package/dist/als-react-ts-ui98.js +34 -0
- package/dist/als-react-ts-ui99.js +30 -0
- package/dist/components/ALSAccordion/index.module.css +1 -0
- package/dist/components/ALSAlertDialog/ALSAlertDialog.d.ts +106 -0
- package/dist/components/ALSAlertDialog/ALSAlertDialog.d.ts.map +1 -0
- package/dist/components/ALSAlertDialog/index.d.ts +16 -4
- package/dist/components/ALSAlertDialog/index.d.ts.map +1 -1
- package/dist/components/ALSAlertDialog/index.module.css +1 -0
- package/dist/components/ALSAutocomplete/ALSAutocomplete.d.ts +46 -0
- package/dist/components/ALSAutocomplete/ALSAutocomplete.d.ts.map +1 -0
- package/dist/components/ALSAutocomplete/index.d.ts +25 -4
- package/dist/components/ALSAutocomplete/index.d.ts.map +1 -1
- package/dist/components/ALSAutocomplete/index.module.css +1 -0
- package/dist/components/ALSAvatar/index.d.ts +75 -3
- package/dist/components/ALSAvatar/index.d.ts.map +1 -1
- package/dist/components/ALSAvatar/index.module.css +1 -0
- package/dist/components/ALSButton/index.module.css +1 -0
- package/dist/components/ALSCheckbox/ALSCheckbox.d.ts +33 -0
- package/dist/components/ALSCheckbox/ALSCheckbox.d.ts.map +1 -0
- package/dist/components/ALSCheckbox/index.d.ts +6 -4
- package/dist/components/ALSCheckbox/index.d.ts.map +1 -1
- package/dist/components/ALSCheckbox/index.module.css +1 -0
- package/dist/components/ALSCheckboxGroup/ALSCheckboxGroup.d.ts +18 -0
- package/dist/components/ALSCheckboxGroup/ALSCheckboxGroup.d.ts.map +1 -0
- package/dist/components/ALSCheckboxGroup/index.d.ts +3 -4
- package/dist/components/ALSCheckboxGroup/index.d.ts.map +1 -1
- package/dist/components/ALSCheckboxGroup/index.module.css +1 -0
- package/dist/components/ALSCollapsible/ALSCollapsible.d.ts +72 -0
- package/dist/components/ALSCollapsible/ALSCollapsible.d.ts.map +1 -0
- package/dist/components/ALSCollapsible/index.d.ts +7 -4
- package/dist/components/ALSCollapsible/index.d.ts.map +1 -1
- package/dist/components/ALSCollapsible/index.module.css +1 -0
- package/dist/components/ALSCombobox/ALSCombobox.d.ts +173 -0
- package/dist/components/ALSCombobox/ALSCombobox.d.ts.map +1 -0
- package/dist/components/ALSCombobox/index.d.ts +16 -4
- package/dist/components/ALSCombobox/index.d.ts.map +1 -1
- package/dist/components/ALSCombobox/index.module.css +1 -0
- package/dist/components/ALSContextMenu/ALSContextMenu.d.ts +94 -0
- package/dist/components/ALSContextMenu/ALSContextMenu.d.ts.map +1 -0
- package/dist/components/ALSContextMenu/index.d.ts +22 -4
- package/dist/components/ALSContextMenu/index.d.ts.map +1 -1
- package/dist/components/ALSContextMenu/index.module.css +1 -0
- package/dist/components/ALSDialog/index.module.css +1 -0
- package/dist/components/ALSField/ALSField.d.ts +27 -0
- package/dist/components/ALSField/ALSField.d.ts.map +1 -0
- package/dist/components/ALSField/index.d.ts +9 -4
- package/dist/components/ALSField/index.d.ts.map +1 -1
- package/dist/components/ALSField/index.module.css +1 -0
- package/dist/components/ALSFieldset/ALSFieldset.d.ts +13 -0
- package/dist/components/ALSFieldset/ALSFieldset.d.ts.map +1 -0
- package/dist/components/ALSFieldset/index.d.ts +6 -4
- package/dist/components/ALSFieldset/index.d.ts.map +1 -1
- package/dist/components/ALSFieldset/index.module.css +1 -0
- package/dist/components/ALSForm/ALSForm.d.ts +220 -0
- package/dist/components/ALSForm/ALSForm.d.ts.map +1 -0
- package/dist/components/ALSForm/index.d.ts +55 -4
- package/dist/components/ALSForm/index.d.ts.map +1 -1
- package/dist/components/ALSForm/index.module.css +1 -0
- package/dist/components/ALSInput/index.module.css +1 -0
- package/dist/components/ALSMenu/ALSMenu.d.ts +205 -0
- package/dist/components/ALSMenu/ALSMenu.d.ts.map +1 -0
- package/dist/components/ALSMenu/index.d.ts +46 -4
- package/dist/components/ALSMenu/index.d.ts.map +1 -1
- package/dist/components/ALSMenu/index.module.css +1 -0
- package/dist/components/ALSMenubar/ALSMenubar.d.ts +37 -0
- package/dist/components/ALSMenubar/ALSMenubar.d.ts.map +1 -0
- package/dist/components/ALSMenubar/index.d.ts +32 -4
- package/dist/components/ALSMenubar/index.d.ts.map +1 -1
- package/dist/components/ALSMenubar/index.module.css +1 -0
- package/dist/components/ALSMeter/ALSMeter.d.ts +114 -0
- package/dist/components/ALSMeter/ALSMeter.d.ts.map +1 -0
- package/dist/components/ALSMeter/index.d.ts +23 -4
- package/dist/components/ALSMeter/index.d.ts.map +1 -1
- package/dist/components/ALSMeter/index.module.css +1 -0
- package/dist/components/ALSNavigationMenu/ALSNavigationMenu.d.ts +243 -0
- package/dist/components/ALSNavigationMenu/ALSNavigationMenu.d.ts.map +1 -0
- package/dist/components/ALSNavigationMenu/index.d.ts +65 -4
- package/dist/components/ALSNavigationMenu/index.d.ts.map +1 -1
- package/dist/components/ALSNavigationMenu/index.module.css +1 -0
- package/dist/components/ALSNumberField/ALSNumberField.d.ts +170 -0
- package/dist/components/ALSNumberField/ALSNumberField.d.ts.map +1 -0
- package/dist/components/ALSNumberField/index.d.ts +25 -4
- package/dist/components/ALSNumberField/index.d.ts.map +1 -1
- package/dist/components/ALSNumberField/index.module.css +1 -0
- package/dist/components/ALSPopover/index.module.css +1 -0
- package/dist/components/ALSPreviewCard/ALSPreviewCard.d.ts +187 -0
- package/dist/components/ALSPreviewCard/ALSPreviewCard.d.ts.map +1 -0
- package/dist/components/ALSPreviewCard/index.d.ts +51 -4
- package/dist/components/ALSPreviewCard/index.d.ts.map +1 -1
- package/dist/components/ALSPreviewCard/index.module.css +1 -0
- package/dist/components/ALSProgress/index.module.css +1 -0
- package/dist/components/ALSRadio/ALSRadio.d.ts +133 -0
- package/dist/components/ALSRadio/ALSRadio.d.ts.map +1 -0
- package/dist/components/ALSRadio/index.d.ts +42 -4
- package/dist/components/ALSRadio/index.d.ts.map +1 -1
- package/dist/components/ALSRadio/index.module.css +1 -0
- package/dist/components/ALSScrollArea/ALSScrollArea.d.ts +133 -0
- package/dist/components/ALSScrollArea/ALSScrollArea.d.ts.map +1 -0
- package/dist/components/ALSScrollArea/index.d.ts +33 -4
- package/dist/components/ALSScrollArea/index.d.ts.map +1 -1
- package/dist/components/ALSScrollArea/index.module.css +1 -0
- package/dist/components/ALSSelect/index.module.css +1 -0
- package/dist/components/ALSSeparator/ALSSeparator.d.ts +87 -0
- package/dist/components/ALSSeparator/ALSSeparator.d.ts.map +1 -0
- package/dist/components/ALSSeparator/index.d.ts +4 -4
- package/dist/components/ALSSeparator/index.d.ts.map +1 -1
- package/dist/components/ALSSeparator/index.module.css +1 -0
- package/dist/components/ALSSlider/ALSSlider.d.ts +161 -0
- package/dist/components/ALSSlider/ALSSlider.d.ts.map +1 -0
- package/dist/components/ALSSlider/index.d.ts +57 -4
- package/dist/components/ALSSlider/index.d.ts.map +1 -1
- package/dist/components/ALSSlider/index.module.css +1 -0
- package/dist/components/ALSSwitch/ALSSwitch.d.ts +119 -0
- package/dist/components/ALSSwitch/ALSSwitch.d.ts.map +1 -0
- package/dist/components/ALSSwitch/index.d.ts +4 -4
- package/dist/components/ALSSwitch/index.d.ts.map +1 -1
- package/dist/components/ALSSwitch/index.module.css +1 -0
- package/dist/components/ALSTabs/index.module.css +1 -0
- package/dist/components/ALSToast/index.module.css +1 -0
- package/dist/components/ALSToggle/ALSToggle.d.ts +45 -0
- package/dist/components/ALSToggle/ALSToggle.d.ts.map +1 -0
- package/dist/components/ALSToggle/index.d.ts +4 -4
- package/dist/components/ALSToggle/index.d.ts.map +1 -1
- package/dist/components/ALSToggle/index.module.css +1 -0
- package/dist/components/ALSToggleGroup/ALSToggleGroup.d.ts +46 -0
- package/dist/components/ALSToggleGroup/ALSToggleGroup.d.ts.map +1 -0
- package/dist/components/ALSToggleGroup/index.d.ts +4 -4
- package/dist/components/ALSToggleGroup/index.d.ts.map +1 -1
- package/dist/components/ALSToggleGroup/index.module.css +1 -0
- package/dist/components/ALSToolbar/ALSToolbar.d.ts +141 -0
- package/dist/components/ALSToolbar/ALSToolbar.d.ts.map +1 -0
- package/dist/components/ALSToolbar/index.d.ts +10 -4
- package/dist/components/ALSToolbar/index.d.ts.map +1 -1
- package/dist/components/ALSToolbar/index.module.css +1 -0
- package/dist/components/ALSTooltip/ALSTooltip.d.ts +45 -0
- package/dist/components/ALSTooltip/ALSTooltip.d.ts.map +1 -0
- package/dist/components/ALSTooltip/index.d.ts +11 -4
- package/dist/components/ALSTooltip/index.d.ts.map +1 -1
- package/dist/{als-react-ts-ui.css → index.css} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/MainLayout/index.module.css +1 -0
- package/package.json +27 -27
- package/dist/als-react-ts-ui.cjs +0 -21
- package/dist/als-react-ts-ui.cjs.map +0 -1
- package/dist/als-react-ts-ui.js.map +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import { isElement as P, isLastTraversableNode as U, getParentNode as Ce, isHTMLElement as Oe, getComputedStyle as Se, getOverflowAncestors as j, isWebKit as ke } from "./als-react-ts-ui339.js";
|
|
3
|
+
import { useTimeout as ce, Timeout as De } from "./als-react-ts-ui195.js";
|
|
4
|
+
import { useStableCallback as s } from "./als-react-ts-ui192.js";
|
|
5
|
+
import { useFloatingTree as Me } from "./als-react-ts-ui356.js";
|
|
6
|
+
import { createChangeEventDetails as S } from "./als-react-ts-ui246.js";
|
|
7
|
+
import { createAttribute as Ke } from "./als-react-ts-ui376.js";
|
|
8
|
+
import { isReactEvent as Ie } from "./als-react-ts-ui295.js";
|
|
9
|
+
import { getTarget as w, getDocument as ie, contains as x, isRootElement as xe, isEventTargetWithin as f } from "./als-react-ts-ui331.js";
|
|
10
|
+
import { getNodeChildren as G } from "./als-react-ts-ui380.js";
|
|
11
|
+
import { escapeKey as Xe, outsidePress as Ye, triggerPress as le, none as We } from "./als-react-ts-ui248.js";
|
|
12
|
+
const _e = {
|
|
13
|
+
intentional: "onClick",
|
|
14
|
+
sloppy: "onPointerDown"
|
|
15
|
+
};
|
|
16
|
+
function He(d) {
|
|
17
|
+
return {
|
|
18
|
+
escapeKey: typeof d == "boolean" ? d : d?.escapeKey ?? !1,
|
|
19
|
+
outsidePress: typeof d == "boolean" ? d : d?.outsidePress ?? !0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function Je(d, ue = {}) {
|
|
23
|
+
const r = "rootStore" in d ? d.rootStore : d, X = r.useState("open"), k = r.useState("floatingElement"), C = r.useState("referenceElement"), Y = r.useState("domReferenceElement"), {
|
|
24
|
+
onOpenChange: ae,
|
|
25
|
+
dataRef: m
|
|
26
|
+
} = r.context, {
|
|
27
|
+
enabled: E = !0,
|
|
28
|
+
escapeKey: D = !0,
|
|
29
|
+
outsidePress: M = !0,
|
|
30
|
+
outsidePressEvent: W = "sloppy",
|
|
31
|
+
referencePress: J = !1,
|
|
32
|
+
referencePressEvent: _ = "sloppy",
|
|
33
|
+
ancestorScroll: Q = !1,
|
|
34
|
+
bubbles: fe,
|
|
35
|
+
externalTree: de
|
|
36
|
+
} = ue, T = Me(de), pe = s(typeof M == "function" ? M : () => !1), v = typeof M == "function" ? pe : M, H = p.useRef(!1), {
|
|
37
|
+
escapeKey: K,
|
|
38
|
+
outsidePress: Z
|
|
39
|
+
} = He(fe), u = p.useRef(null), I = ce(), z = ce(), b = s(() => {
|
|
40
|
+
z.clear(), m.current.insideReactTree = !1;
|
|
41
|
+
}), A = p.useRef(!1), ee = p.useRef(""), B = s((e) => {
|
|
42
|
+
ee.current = e.pointerType;
|
|
43
|
+
}), L = s(() => {
|
|
44
|
+
const e = ee.current, n = e === "pen" || !e ? "mouse" : e, t = typeof W == "function" ? W() : W;
|
|
45
|
+
return typeof t == "string" ? t : t[n];
|
|
46
|
+
}), h = s((e) => {
|
|
47
|
+
if (!X || !E || !D || e.key !== "Escape" || A.current)
|
|
48
|
+
return;
|
|
49
|
+
const n = m.current.floatingContext?.nodeId, t = T ? G(T.nodesRef.current, n) : [];
|
|
50
|
+
if (!K && t.length > 0) {
|
|
51
|
+
let i = !0;
|
|
52
|
+
if (t.forEach((c) => {
|
|
53
|
+
c.context?.open && !c.context.dataRef.current.__escapeKeyBubbles && (i = !1);
|
|
54
|
+
}), !i)
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const a = Ie(e) ? e.nativeEvent : e, o = S(Xe, a);
|
|
58
|
+
r.setOpen(!1, o), !K && !o.isPropagationAllowed && e.stopPropagation();
|
|
59
|
+
}), me = s((e) => {
|
|
60
|
+
const n = L();
|
|
61
|
+
return n === "intentional" && e.type !== "click" || n === "sloppy" && e.type === "click";
|
|
62
|
+
}), g = s(() => {
|
|
63
|
+
m.current.insideReactTree = !0, z.start(0, b);
|
|
64
|
+
}), O = s((e, n = !1) => {
|
|
65
|
+
if (me(e)) {
|
|
66
|
+
b();
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (m.current.insideReactTree) {
|
|
70
|
+
b();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (L() === "intentional" && n || typeof v == "function" && !v(e))
|
|
74
|
+
return;
|
|
75
|
+
const t = w(e), a = `[${Ke("inert")}]`, o = ie(r.select("floatingElement")).querySelectorAll(a), i = r.context.triggerElements;
|
|
76
|
+
if (t && (i.hasElement(t) || i.hasMatchingElement((l) => x(l, t))))
|
|
77
|
+
return;
|
|
78
|
+
let c = P(t) ? t : null;
|
|
79
|
+
for (; c && !U(c); ) {
|
|
80
|
+
const l = Ce(c);
|
|
81
|
+
if (U(l) || !P(l))
|
|
82
|
+
break;
|
|
83
|
+
c = l;
|
|
84
|
+
}
|
|
85
|
+
if (o.length && P(t) && !xe(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
86
|
+
!x(t, r.select("floatingElement")) && // If the target root element contains none of the markers, then the
|
|
87
|
+
// element was injected after the floating element rendered.
|
|
88
|
+
Array.from(o).every((l) => !x(c, l)))
|
|
89
|
+
return;
|
|
90
|
+
if (Oe(t) && !("touches" in e)) {
|
|
91
|
+
const l = U(t), R = Se(t), se = /auto|scroll/, Te = l || se.test(R.overflowX), ve = l || se.test(R.overflowY), be = Te && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, Le = ve && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, Re = R.direction === "rtl", Pe = Le && (Re ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), we = be && e.offsetY > t.clientHeight;
|
|
92
|
+
if (Pe || we)
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const oe = m.current.floatingContext?.nodeId, ye = T && G(T.nodesRef.current, oe).some((l) => f(e, l.context?.elements.floating));
|
|
96
|
+
if (f(e, r.select("floatingElement")) || f(e, r.select("domReferenceElement")) || ye)
|
|
97
|
+
return;
|
|
98
|
+
const re = T ? G(T.nodesRef.current, oe) : [];
|
|
99
|
+
if (re.length > 0) {
|
|
100
|
+
let l = !0;
|
|
101
|
+
if (re.forEach((R) => {
|
|
102
|
+
R.context?.open && !R.context.dataRef.current.__outsidePressBubbles && (l = !1);
|
|
103
|
+
}), !l)
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
r.setOpen(!1, S(Ye, e)), b();
|
|
107
|
+
}), te = s((e) => {
|
|
108
|
+
L() !== "sloppy" || e.pointerType === "touch" || !r.select("open") || !E || f(e, r.select("floatingElement")) || f(e, r.select("domReferenceElement")) || O(e);
|
|
109
|
+
}), Ee = s((e) => {
|
|
110
|
+
if (L() !== "sloppy" || !r.select("open") || !E || f(e, r.select("floatingElement")) || f(e, r.select("domReferenceElement")))
|
|
111
|
+
return;
|
|
112
|
+
const n = e.touches[0];
|
|
113
|
+
n && (u.current = {
|
|
114
|
+
startTime: Date.now(),
|
|
115
|
+
startX: n.clientX,
|
|
116
|
+
startY: n.clientY,
|
|
117
|
+
dismissOnTouchEnd: !1,
|
|
118
|
+
dismissOnMouseDown: !0
|
|
119
|
+
}, I.start(1e3, () => {
|
|
120
|
+
u.current && (u.current.dismissOnTouchEnd = !1, u.current.dismissOnMouseDown = !1);
|
|
121
|
+
}));
|
|
122
|
+
}), N = s((e) => {
|
|
123
|
+
const n = w(e);
|
|
124
|
+
function t() {
|
|
125
|
+
Ee(e), n?.removeEventListener(e.type, t);
|
|
126
|
+
}
|
|
127
|
+
n?.addEventListener(e.type, t);
|
|
128
|
+
}), y = s((e) => {
|
|
129
|
+
const n = H.current;
|
|
130
|
+
if (H.current = !1, I.clear(), e.type === "mousedown" && u.current && !u.current.dismissOnMouseDown)
|
|
131
|
+
return;
|
|
132
|
+
const t = w(e);
|
|
133
|
+
function a() {
|
|
134
|
+
e.type === "pointerdown" ? te(e) : O(e, n), t?.removeEventListener(e.type, a);
|
|
135
|
+
}
|
|
136
|
+
t?.addEventListener(e.type, a);
|
|
137
|
+
}), he = s((e) => {
|
|
138
|
+
if (L() !== "sloppy" || !u.current || f(e, r.select("floatingElement")) || f(e, r.select("domReferenceElement")))
|
|
139
|
+
return;
|
|
140
|
+
const n = e.touches[0];
|
|
141
|
+
if (!n)
|
|
142
|
+
return;
|
|
143
|
+
const t = Math.abs(n.clientX - u.current.startX), a = Math.abs(n.clientY - u.current.startY), o = Math.sqrt(t * t + a * a);
|
|
144
|
+
o > 5 && (u.current.dismissOnTouchEnd = !0), o > 10 && (O(e), I.clear(), u.current = null);
|
|
145
|
+
}), V = s((e) => {
|
|
146
|
+
const n = w(e);
|
|
147
|
+
function t() {
|
|
148
|
+
he(e), n?.removeEventListener(e.type, t);
|
|
149
|
+
}
|
|
150
|
+
n?.addEventListener(e.type, t);
|
|
151
|
+
}), ge = s((e) => {
|
|
152
|
+
L() !== "sloppy" || !u.current || f(e, r.select("floatingElement")) || f(e, r.select("domReferenceElement")) || (u.current.dismissOnTouchEnd && O(e), I.clear(), u.current = null);
|
|
153
|
+
}), $ = s((e) => {
|
|
154
|
+
const n = w(e);
|
|
155
|
+
function t() {
|
|
156
|
+
ge(e), n?.removeEventListener(e.type, t);
|
|
157
|
+
}
|
|
158
|
+
n?.addEventListener(e.type, t);
|
|
159
|
+
});
|
|
160
|
+
p.useEffect(() => {
|
|
161
|
+
if (!X || !E)
|
|
162
|
+
return;
|
|
163
|
+
m.current.__escapeKeyBubbles = K, m.current.__outsidePressBubbles = Z;
|
|
164
|
+
const e = new De();
|
|
165
|
+
function n(c) {
|
|
166
|
+
r.setOpen(!1, S(We, c));
|
|
167
|
+
}
|
|
168
|
+
function t() {
|
|
169
|
+
e.clear(), A.current = !0;
|
|
170
|
+
}
|
|
171
|
+
function a() {
|
|
172
|
+
e.start(
|
|
173
|
+
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
174
|
+
// Only apply to WebKit for the test to remain 0ms.
|
|
175
|
+
ke() ? 5 : 0,
|
|
176
|
+
() => {
|
|
177
|
+
A.current = !1;
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
const o = ie(k);
|
|
182
|
+
o.addEventListener("pointerdown", B, !0), D && (o.addEventListener("keydown", h), o.addEventListener("compositionstart", t), o.addEventListener("compositionend", a)), v && (o.addEventListener("click", y, !0), o.addEventListener("pointerdown", y, !0), o.addEventListener("touchstart", N, !0), o.addEventListener("touchmove", V, !0), o.addEventListener("touchend", $, !0), o.addEventListener("mousedown", y, !0));
|
|
183
|
+
let i = [];
|
|
184
|
+
return Q && (P(Y) && (i = j(Y)), P(k) && (i = i.concat(j(k))), !P(C) && C && C.contextElement && (i = i.concat(j(C.contextElement)))), i = i.filter((c) => c !== o.defaultView?.visualViewport), i.forEach((c) => {
|
|
185
|
+
c.addEventListener("scroll", n, {
|
|
186
|
+
passive: !0
|
|
187
|
+
});
|
|
188
|
+
}), () => {
|
|
189
|
+
o.removeEventListener("pointerdown", B, !0), D && (o.removeEventListener("keydown", h), o.removeEventListener("compositionstart", t), o.removeEventListener("compositionend", a)), v && (o.removeEventListener("click", y, !0), o.removeEventListener("pointerdown", y, !0), o.removeEventListener("touchstart", N, !0), o.removeEventListener("touchmove", V, !0), o.removeEventListener("touchend", $, !0), o.removeEventListener("mousedown", y, !0)), i.forEach((c) => {
|
|
190
|
+
c.removeEventListener("scroll", n);
|
|
191
|
+
}), e.clear();
|
|
192
|
+
};
|
|
193
|
+
}, [m, k, C, Y, D, v, X, ae, Q, E, K, Z, h, O, y, te, N, V, $, B, r]), p.useEffect(b, [v, b]);
|
|
194
|
+
const q = p.useMemo(() => ({
|
|
195
|
+
onKeyDown: h,
|
|
196
|
+
...J && {
|
|
197
|
+
[_e[_]]: (e) => {
|
|
198
|
+
r.setOpen(!1, S(le, e.nativeEvent));
|
|
199
|
+
},
|
|
200
|
+
..._ !== "intentional" && {
|
|
201
|
+
onClick(e) {
|
|
202
|
+
r.setOpen(!1, S(le, e.nativeEvent));
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}), [h, r, J, _]), F = s((e) => {
|
|
207
|
+
const n = w(e.nativeEvent);
|
|
208
|
+
!x(r.select("floatingElement"), n) || e.button !== 0 || (H.current = !0);
|
|
209
|
+
}), ne = p.useMemo(() => ({
|
|
210
|
+
onKeyDown: h,
|
|
211
|
+
onMouseDown: F,
|
|
212
|
+
onMouseUp: F,
|
|
213
|
+
onPointerDownCapture: g,
|
|
214
|
+
onMouseDownCapture: g,
|
|
215
|
+
onClickCapture: g,
|
|
216
|
+
onMouseUpCapture: g,
|
|
217
|
+
onTouchEndCapture: g,
|
|
218
|
+
onTouchMoveCapture: g
|
|
219
|
+
}), [h, F, g]);
|
|
220
|
+
return p.useMemo(() => E ? {
|
|
221
|
+
reference: q,
|
|
222
|
+
floating: ne,
|
|
223
|
+
trigger: q
|
|
224
|
+
} : {}, [E, q, ne]);
|
|
225
|
+
}
|
|
226
|
+
export {
|
|
227
|
+
He as normalizeProp,
|
|
228
|
+
Je as useDismiss
|
|
229
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { isHTMLElement as u, isShadowRoot as i } from "./als-react-ts-ui339.js";
|
|
2
|
+
import { isJSDOM as c } from "./als-react-ts-ui371.js";
|
|
3
|
+
import { TYPEABLE_SELECTOR as s, FOCUSABLE_ATTRIBUTE as n } from "./als-react-ts-ui390.js";
|
|
4
|
+
function h(t) {
|
|
5
|
+
let e = t.activeElement;
|
|
6
|
+
for (; e?.shadowRoot?.activeElement != null; )
|
|
7
|
+
e = e.shadowRoot.activeElement;
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
function b(t, e) {
|
|
11
|
+
if (!t || !e)
|
|
12
|
+
return !1;
|
|
13
|
+
const r = e.getRootNode?.();
|
|
14
|
+
if (t.contains(e))
|
|
15
|
+
return !0;
|
|
16
|
+
if (r && i(r)) {
|
|
17
|
+
let o = e;
|
|
18
|
+
for (; o; ) {
|
|
19
|
+
if (t === o)
|
|
20
|
+
return !0;
|
|
21
|
+
o = o.parentNode || o.host;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return !1;
|
|
25
|
+
}
|
|
26
|
+
function E(t) {
|
|
27
|
+
return "composedPath" in t ? t.composedPath()[0] : t.target;
|
|
28
|
+
}
|
|
29
|
+
function T(t, e) {
|
|
30
|
+
if (e == null)
|
|
31
|
+
return !1;
|
|
32
|
+
if ("composedPath" in t)
|
|
33
|
+
return t.composedPath().includes(e);
|
|
34
|
+
const r = t;
|
|
35
|
+
return r.target != null && e.contains(r.target);
|
|
36
|
+
}
|
|
37
|
+
function p(t) {
|
|
38
|
+
return t.matches("html,body");
|
|
39
|
+
}
|
|
40
|
+
function d(t) {
|
|
41
|
+
return t?.ownerDocument || document;
|
|
42
|
+
}
|
|
43
|
+
function a(t) {
|
|
44
|
+
return u(t) && t.matches(s);
|
|
45
|
+
}
|
|
46
|
+
function g(t) {
|
|
47
|
+
return t ? t.getAttribute("role") === "combobox" && a(t) : !1;
|
|
48
|
+
}
|
|
49
|
+
function R(t) {
|
|
50
|
+
if (!t || c)
|
|
51
|
+
return !0;
|
|
52
|
+
try {
|
|
53
|
+
return t.matches(":focus-visible");
|
|
54
|
+
} catch {
|
|
55
|
+
return !0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function w(t) {
|
|
59
|
+
return t ? t.hasAttribute(n) ? t : t.querySelector(`[${n}]`) || t : null;
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
h as activeElement,
|
|
63
|
+
b as contains,
|
|
64
|
+
d as getDocument,
|
|
65
|
+
w as getFloatingFocusElement,
|
|
66
|
+
E as getTarget,
|
|
67
|
+
T as isEventTargetWithin,
|
|
68
|
+
p as isRootElement,
|
|
69
|
+
g as isTypeableCombobox,
|
|
70
|
+
a as isTypeableElement,
|
|
71
|
+
R as matchesFocusVisible
|
|
72
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getEmptyRootContext as i } from "./als-react-ts-ui395.js";
|
|
2
|
+
import { EMPTY_OBJECT as n } from "./als-react-ts-ui303.js";
|
|
3
|
+
import { createSelector as t } from "./als-react-ts-ui335.js";
|
|
4
|
+
function l() {
|
|
5
|
+
return {
|
|
6
|
+
open: !1,
|
|
7
|
+
mounted: !1,
|
|
8
|
+
transitionStatus: "idle",
|
|
9
|
+
floatingRootContext: i(),
|
|
10
|
+
preventUnmountingOnClose: !1,
|
|
11
|
+
payload: void 0,
|
|
12
|
+
activeTriggerId: null,
|
|
13
|
+
activeTriggerElement: null,
|
|
14
|
+
popupElement: null,
|
|
15
|
+
positionerElement: null,
|
|
16
|
+
activeTriggerProps: n,
|
|
17
|
+
inactiveTriggerProps: n,
|
|
18
|
+
popupProps: n
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const a = {
|
|
22
|
+
open: t((e) => e.open),
|
|
23
|
+
mounted: t((e) => e.mounted),
|
|
24
|
+
transitionStatus: t((e) => e.transitionStatus),
|
|
25
|
+
floatingRootContext: t((e) => e.floatingRootContext),
|
|
26
|
+
preventUnmountingOnClose: t((e) => e.preventUnmountingOnClose),
|
|
27
|
+
payload: t((e) => e.payload),
|
|
28
|
+
activeTriggerId: t((e) => e.activeTriggerId),
|
|
29
|
+
activeTriggerElement: t((e) => e.mounted ? e.activeTriggerElement : null),
|
|
30
|
+
/**
|
|
31
|
+
* Whether the trigger with the given ID was used to open the popup.
|
|
32
|
+
*/
|
|
33
|
+
isTriggerActive: t((e, o) => o !== void 0 && e.activeTriggerId === o),
|
|
34
|
+
/**
|
|
35
|
+
* Whether the popup is open and was activated by a trigger with the given ID.
|
|
36
|
+
*/
|
|
37
|
+
isOpenedByTrigger: t((e, o) => o !== void 0 && e.activeTriggerId === o && e.open),
|
|
38
|
+
/**
|
|
39
|
+
* Whether the popup is mounted and was activated by a trigger with the given ID.
|
|
40
|
+
*/
|
|
41
|
+
isMountedByTrigger: t((e, o) => o !== void 0 && e.activeTriggerId === o && e.mounted),
|
|
42
|
+
triggerProps: t((e, o) => o ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
43
|
+
popupProps: t((e) => e.popupProps),
|
|
44
|
+
popupElement: t((e) => e.popupElement),
|
|
45
|
+
positionerElement: t((e) => e.positionerElement)
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
l as createInitialPopupStoreState,
|
|
49
|
+
a as popupStoreSelectors
|
|
50
|
+
};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { Store as l } from "./als-react-ts-ui407.js";
|
|
3
|
+
import { useStore as a } from "./als-react-ts-ui408.js";
|
|
4
|
+
import { useStableCallback as h } from "./als-react-ts-ui192.js";
|
|
5
|
+
import { useIsoLayoutEffect as i } from "./als-react-ts-ui193.js";
|
|
6
|
+
import { NOOP as d } from "./als-react-ts-ui303.js";
|
|
7
|
+
class O extends l {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new ReactStore instance.
|
|
10
|
+
*
|
|
11
|
+
* @param state Initial state of the store.
|
|
12
|
+
* @param context Non-reactive context values.
|
|
13
|
+
* @param selectors Optional selectors for use with `useState`.
|
|
14
|
+
*/
|
|
15
|
+
constructor(e, t = {}, s) {
|
|
16
|
+
super(e), this.context = t, this.selectors = s;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Non-reactive values such as refs, callbacks, etc.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Keeps track of which properties are controlled.
|
|
23
|
+
*/
|
|
24
|
+
controlledValues = /* @__PURE__ */ new Map();
|
|
25
|
+
/**
|
|
26
|
+
* Synchronizes a single external value into the store.
|
|
27
|
+
*
|
|
28
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
29
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
30
|
+
*/
|
|
31
|
+
useSyncedValue(e, t) {
|
|
32
|
+
r.useDebugValue(e), i(() => {
|
|
33
|
+
this.state[e] !== t && this.set(e, t);
|
|
34
|
+
}, [e, t]);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Synchronizes a single external value into the store and
|
|
38
|
+
* cleans it up (sets to `undefined`) on unmount.
|
|
39
|
+
*
|
|
40
|
+
* Note that the while the value in `state` is updated immediately, the value returned
|
|
41
|
+
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
42
|
+
*/
|
|
43
|
+
useSyncedValueWithCleanup(e, t) {
|
|
44
|
+
i(() => (this.state[e] !== t && this.set(e, t), () => {
|
|
45
|
+
this.set(e, void 0);
|
|
46
|
+
}), [e, t]);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Synchronizes multiple external values into the store.
|
|
50
|
+
*
|
|
51
|
+
* Note that the while the values in `state` are updated immediately, the values returned
|
|
52
|
+
* by `useState` are updated before the next render (similarly to React's `useState`).
|
|
53
|
+
*/
|
|
54
|
+
useSyncedValues(e) {
|
|
55
|
+
if (process.env.NODE_ENV !== "production") {
|
|
56
|
+
r.useDebugValue(e, (n) => Object.keys(n));
|
|
57
|
+
const s = r.useRef(Object.keys(e)).current, o = Object.keys(e);
|
|
58
|
+
(s.length !== o.length || s.some((n, u) => n !== o[u])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
59
|
+
}
|
|
60
|
+
const t = Object.values(e);
|
|
61
|
+
i(() => {
|
|
62
|
+
this.update(e);
|
|
63
|
+
}, t);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key.
|
|
67
|
+
* - If `controlled` is non-undefined, the key is marked as controlled and the store's
|
|
68
|
+
* state at `key` is updated to match `controlled`. Local writes to that key are ignored.
|
|
69
|
+
* - If `controlled` is undefined, the key is marked as uncontrolled. The store's state
|
|
70
|
+
* is initialized to `defaultValue` on first render and can be updated with local writes.
|
|
71
|
+
*/
|
|
72
|
+
useControlledProp(e, t, s) {
|
|
73
|
+
r.useDebugValue(e);
|
|
74
|
+
const o = t !== void 0;
|
|
75
|
+
if (process.env.NODE_ENV !== "production") {
|
|
76
|
+
const n = this.controlledValues.get(e);
|
|
77
|
+
n !== void 0 && n !== o && console.error(`A component is changing the ${o ? "" : "un"}controlled state of ${e.toString()} to be ${o ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
|
|
78
|
+
}
|
|
79
|
+
this.controlledValues.has(e) || (this.controlledValues.set(e, o), !o && !Object.is(this.state[e], s) && super.setState({
|
|
80
|
+
...this.state,
|
|
81
|
+
[e]: s
|
|
82
|
+
})), i(() => {
|
|
83
|
+
o && !Object.is(this.state[e], t) && super.setState({
|
|
84
|
+
...this.state,
|
|
85
|
+
[e]: t
|
|
86
|
+
});
|
|
87
|
+
}, [e, t, s, o]);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
91
|
+
* If the key is controlled (registered via {@link useControlledProp} with a non-undefined value),
|
|
92
|
+
* the update is ignored and no listeners are notified.
|
|
93
|
+
*
|
|
94
|
+
* @param key The state key to update.
|
|
95
|
+
* @param value The new value to set for the specified key.
|
|
96
|
+
*/
|
|
97
|
+
set(e, t) {
|
|
98
|
+
this.controlledValues.get(e) !== !0 && super.set(e, t);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
102
|
+
* Controlled keys are filtered out and not updated.
|
|
103
|
+
*
|
|
104
|
+
* @param values An object containing the changes to apply to the current state.
|
|
105
|
+
*/
|
|
106
|
+
update(e) {
|
|
107
|
+
const t = {
|
|
108
|
+
...e
|
|
109
|
+
};
|
|
110
|
+
for (const s in t)
|
|
111
|
+
if (Object.hasOwn(t, s) && this.controlledValues.get(s) === !0) {
|
|
112
|
+
delete t[s];
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
super.update(t);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Updates the entire store's state and notifies all registered listeners.
|
|
119
|
+
* Controlled keys are left unchanged; only uncontrolled keys from `newState` are applied.
|
|
120
|
+
*
|
|
121
|
+
* @param newState The new state to set for the store.
|
|
122
|
+
*/
|
|
123
|
+
setState(e) {
|
|
124
|
+
const t = {
|
|
125
|
+
...e
|
|
126
|
+
};
|
|
127
|
+
for (const s in t)
|
|
128
|
+
if (Object.hasOwn(t, s) && this.controlledValues.get(s) === !0) {
|
|
129
|
+
delete t[s];
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
super.setState({
|
|
133
|
+
...this.state,
|
|
134
|
+
...t
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/** Gets the current value from the store using a selector with the provided key.
|
|
138
|
+
*
|
|
139
|
+
* @param key Key of the selector to use.
|
|
140
|
+
*/
|
|
141
|
+
select = (e, t, s, o) => {
|
|
142
|
+
const n = this.selectors[e];
|
|
143
|
+
return n(this.state, t, s, o);
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Returns a value from the store's state using a selector function.
|
|
147
|
+
* Used to subscribe to specific parts of the state.
|
|
148
|
+
* This methods causes a rerender whenever the selected state changes.
|
|
149
|
+
*
|
|
150
|
+
* @param key Key of the selector to use.
|
|
151
|
+
*/
|
|
152
|
+
useState = (e, t, s, o) => {
|
|
153
|
+
r.useDebugValue(e);
|
|
154
|
+
const n = this.selectors[e];
|
|
155
|
+
return a(this, n, t, s, o);
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Wraps a function with `useStableCallback` to ensure it has a stable reference
|
|
159
|
+
* and assigns it to the context.
|
|
160
|
+
*
|
|
161
|
+
* @param key Key of the event callback. Must be a function in the context.
|
|
162
|
+
* @param fn Function to assign.
|
|
163
|
+
*/
|
|
164
|
+
useContextCallback(e, t) {
|
|
165
|
+
r.useDebugValue(e);
|
|
166
|
+
const s = h(t ?? d);
|
|
167
|
+
this.context[e] = s;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns a stable setter function for a specific key in the store's state.
|
|
171
|
+
* It's commonly used to pass as a ref callback to React elements.
|
|
172
|
+
*
|
|
173
|
+
* @param key Key of the state to set.
|
|
174
|
+
*/
|
|
175
|
+
useStateSetter(e) {
|
|
176
|
+
const t = r.useRef(void 0);
|
|
177
|
+
return t.current === void 0 && (t.current = (s) => {
|
|
178
|
+
this.set(e, s);
|
|
179
|
+
}), t.current;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Observes changes derived from the store's selectors and calls the listener when the selected value changes.
|
|
183
|
+
*
|
|
184
|
+
* @param key Key of the selector to observe.
|
|
185
|
+
* @param listener Listener function called when the selector result changes.
|
|
186
|
+
*/
|
|
187
|
+
observe(e, t) {
|
|
188
|
+
let s;
|
|
189
|
+
typeof e == "function" ? s = e : s = this.selectors[e];
|
|
190
|
+
let o = s(this.state);
|
|
191
|
+
return t(o, o, this), this.subscribe((n) => {
|
|
192
|
+
const u = s(n);
|
|
193
|
+
if (!Object.is(o, u)) {
|
|
194
|
+
const c = o;
|
|
195
|
+
o = u, t(u, c, this);
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export {
|
|
201
|
+
O as ReactStore
|
|
202
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import i from "./als-react-ts-ui259.js";
|
|
2
|
+
class a {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.elements = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Adds a trigger element with the given ID.
|
|
8
|
+
*
|
|
9
|
+
* Note: The provided element is assumed to not be registered under multiple IDs.
|
|
10
|
+
*/
|
|
11
|
+
add(e, t) {
|
|
12
|
+
const s = this.idMap.get(e);
|
|
13
|
+
if (s !== t && (s !== void 0 && this.elements.delete(s), this.elements.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elements.size !== this.idMap.size))
|
|
14
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap." : i(87));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Removes the trigger element with the given ID.
|
|
18
|
+
*/
|
|
19
|
+
delete(e) {
|
|
20
|
+
const t = this.idMap.get(e);
|
|
21
|
+
t && (this.elements.delete(t), this.idMap.delete(e));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Whether the given element is registered as a trigger.
|
|
25
|
+
*/
|
|
26
|
+
hasElement(e) {
|
|
27
|
+
return this.elements.has(e);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Whether there is a registered trigger element matching the given predicate.
|
|
31
|
+
*/
|
|
32
|
+
hasMatchingElement(e) {
|
|
33
|
+
for (const t of this.elements)
|
|
34
|
+
if (e(t))
|
|
35
|
+
return !0;
|
|
36
|
+
return !1;
|
|
37
|
+
}
|
|
38
|
+
getById(e) {
|
|
39
|
+
return this.idMap.get(e);
|
|
40
|
+
}
|
|
41
|
+
entries() {
|
|
42
|
+
return this.idMap.entries();
|
|
43
|
+
}
|
|
44
|
+
get size() {
|
|
45
|
+
return this.idMap.size;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
a as PopupTriggerMap
|
|
50
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import t from "./als-react-ts-ui259.js";
|
|
2
|
+
import { createSelectorCreator as s, lruMemoize as i } from "./als-react-ts-ui425.js";
|
|
3
|
+
s({
|
|
4
|
+
memoize: i,
|
|
5
|
+
memoizeOptions: {
|
|
6
|
+
maxSize: 1,
|
|
7
|
+
equalityCheck: Object.is
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const u = (e, m, c, n, l, p, ...o) => {
|
|
11
|
+
if (o.length > 0)
|
|
12
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Unsupported number of selectors" : t(1));
|
|
13
|
+
let r;
|
|
14
|
+
if (e)
|
|
15
|
+
r = e;
|
|
16
|
+
else
|
|
17
|
+
throw new Error("Missing arguments");
|
|
18
|
+
return r;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
u as createSelector
|
|
22
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useIsoLayoutEffect as r } from "./als-react-ts-ui193.js";
|
|
2
|
+
import { useRefWithInit as n } from "./als-react-ts-ui240.js";
|
|
3
|
+
function s(e) {
|
|
4
|
+
const t = n(f, e).current;
|
|
5
|
+
return t.next = e, r(t.effect), t;
|
|
6
|
+
}
|
|
7
|
+
function f(e) {
|
|
8
|
+
const t = {
|
|
9
|
+
current: e,
|
|
10
|
+
next: e,
|
|
11
|
+
effect: () => {
|
|
12
|
+
t.current = t.next;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as useValueAsRef
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as l from "react-dom";
|
|
2
|
+
import { useAnimationFrame as m } from "./als-react-ts-ui346.js";
|
|
3
|
+
import { useStableCallback as u } from "./als-react-ts-ui192.js";
|
|
4
|
+
import { resolveRef as c } from "./als-react-ts-ui379.js";
|
|
5
|
+
function S(s, f = !1, a = !0) {
|
|
6
|
+
const i = m();
|
|
7
|
+
return u((r, t = null) => {
|
|
8
|
+
i.cancel();
|
|
9
|
+
const e = c(s);
|
|
10
|
+
e != null && (typeof e.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED ? r() : i.request(() => {
|
|
11
|
+
function o() {
|
|
12
|
+
e && Promise.all(e.getAnimations().map((n) => n.finished)).then(() => {
|
|
13
|
+
t != null && t.aborted || l.flushSync(r);
|
|
14
|
+
}).catch(() => {
|
|
15
|
+
if (a) {
|
|
16
|
+
if (t != null && t.aborted)
|
|
17
|
+
return;
|
|
18
|
+
l.flushSync(r);
|
|
19
|
+
} else e.getAnimations().length > 0 && e.getAnimations().some((n) => n.pending || n.playState !== "finished") && o();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
f ? i.request(o) : o();
|
|
23
|
+
}));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
S as useAnimationsFinished
|
|
28
|
+
};
|