@als-tp/als-react-ts-ui 0.3.1 → 0.4.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 +9 -0
- package/dist/als-react-ts-ui110.js +7 -0
- package/dist/als-react-ts-ui111.js +7 -0
- package/dist/als-react-ts-ui112.js +7 -0
- package/dist/als-react-ts-ui113.js +26 -0
- package/dist/als-react-ts-ui114.js +25 -0
- package/dist/als-react-ts-ui115.js +172 -0
- package/dist/als-react-ts-ui116.js +305 -0
- package/dist/als-react-ts-ui117.js +37 -0
- package/dist/als-react-ts-ui118.js +40 -0
- package/dist/als-react-ts-ui119.js +40 -0
- package/dist/als-react-ts-ui12.js +9 -0
- package/dist/als-react-ts-ui120.js +34 -0
- package/dist/als-react-ts-ui121.js +41 -0
- package/dist/als-react-ts-ui122.js +61 -0
- package/dist/als-react-ts-ui123.js +5 -0
- package/dist/als-react-ts-ui124.js +181 -0
- package/dist/als-react-ts-ui125.js +7 -0
- package/dist/als-react-ts-ui126.js +7 -0
- package/dist/als-react-ts-ui127.js +7 -0
- package/dist/als-react-ts-ui128.js +7 -0
- package/dist/als-react-ts-ui129.js +85 -0
- package/dist/als-react-ts-ui13.js +127 -0
- package/dist/als-react-ts-ui130.js +35 -0
- package/dist/als-react-ts-ui131.js +9 -0
- package/dist/als-react-ts-ui132.js +9 -0
- package/dist/als-react-ts-ui133.js +206 -0
- package/dist/als-react-ts-ui134.js +127 -0
- package/dist/als-react-ts-ui135.js +20 -0
- package/dist/als-react-ts-ui136.js +85 -0
- package/dist/als-react-ts-ui137.js +37 -0
- package/dist/als-react-ts-ui138.js +101 -0
- package/dist/als-react-ts-ui139.js +68 -0
- package/dist/als-react-ts-ui14.js +9 -0
- package/dist/als-react-ts-ui140.js +39 -0
- package/dist/als-react-ts-ui141.js +21 -0
- package/dist/als-react-ts-ui142.js +26 -0
- package/dist/als-react-ts-ui143.js +65 -0
- package/dist/als-react-ts-ui144.js +24 -0
- package/dist/als-react-ts-ui145.js +112 -0
- package/dist/als-react-ts-ui146.js +34 -0
- package/dist/als-react-ts-ui147.js +27 -0
- package/dist/als-react-ts-ui148.js +44 -0
- package/dist/als-react-ts-ui149.js +17 -0
- package/dist/als-react-ts-ui15.js +9 -0
- package/dist/als-react-ts-ui150.js +24 -0
- package/dist/als-react-ts-ui151.js +15 -0
- package/dist/als-react-ts-ui152.js +24 -0
- package/dist/als-react-ts-ui153.js +61 -0
- package/dist/als-react-ts-ui154.js +23 -0
- package/dist/als-react-ts-ui155.js +33 -0
- package/dist/als-react-ts-ui156.js +29 -0
- package/dist/als-react-ts-ui157.js +29 -0
- package/dist/als-react-ts-ui158.js +109 -0
- package/dist/als-react-ts-ui159.js +31 -0
- package/dist/als-react-ts-ui16.js +9 -0
- package/dist/als-react-ts-ui160.js +29 -0
- package/dist/als-react-ts-ui161.js +6 -0
- package/dist/als-react-ts-ui162.js +11 -0
- package/dist/als-react-ts-ui163.js +81 -0
- package/dist/als-react-ts-ui164.js +10 -0
- package/dist/als-react-ts-ui165.js +14 -0
- package/dist/als-react-ts-ui166.js +57 -0
- package/dist/als-react-ts-ui167.js +35 -0
- package/dist/als-react-ts-ui168.js +19 -0
- package/dist/als-react-ts-ui169.js +69 -0
- package/dist/als-react-ts-ui17.js +35 -0
- package/dist/als-react-ts-ui170.js +7 -0
- package/dist/als-react-ts-ui171.js +66 -0
- package/dist/als-react-ts-ui172.js +14 -0
- package/dist/als-react-ts-ui173.js +55 -0
- package/dist/als-react-ts-ui174.js +14 -0
- package/dist/als-react-ts-ui175.js +14 -0
- package/dist/als-react-ts-ui176.js +6 -0
- package/dist/als-react-ts-ui177.js +21 -0
- package/dist/als-react-ts-ui178.js +69 -0
- package/dist/als-react-ts-ui179.js +91 -0
- package/dist/als-react-ts-ui18.js +9 -0
- package/dist/als-react-ts-ui180.js +25 -0
- package/dist/als-react-ts-ui181.js +167 -0
- package/dist/als-react-ts-ui182.js +6 -0
- package/dist/als-react-ts-ui183.js +20 -0
- package/dist/als-react-ts-ui184.js +9 -0
- package/dist/als-react-ts-ui185.js +89 -0
- package/dist/als-react-ts-ui186.js +14 -0
- package/dist/als-react-ts-ui187.js +65 -0
- package/dist/als-react-ts-ui188.js +40 -0
- package/dist/als-react-ts-ui189.js +16 -0
- package/dist/als-react-ts-ui19.js +9 -0
- package/dist/als-react-ts-ui190.js +6 -0
- package/dist/als-react-ts-ui191.js +7 -0
- package/dist/als-react-ts-ui192.js +14 -0
- package/dist/als-react-ts-ui193.js +294 -0
- package/dist/als-react-ts-ui194.js +7 -0
- package/dist/als-react-ts-ui195.js +41 -0
- package/dist/als-react-ts-ui196.js +127 -0
- package/dist/als-react-ts-ui197.js +7 -0
- package/dist/als-react-ts-ui198.js +22 -0
- package/dist/als-react-ts-ui199.js +83 -0
- package/dist/als-react-ts-ui20.js +9 -0
- package/dist/als-react-ts-ui200.js +66 -0
- package/dist/als-react-ts-ui201.js +48 -0
- package/dist/als-react-ts-ui202.js +7 -0
- package/dist/als-react-ts-ui203.js +21 -0
- package/dist/als-react-ts-ui204.js +18 -0
- package/dist/als-react-ts-ui205.js +35 -0
- package/dist/als-react-ts-ui206.js +14 -0
- package/dist/als-react-ts-ui207.js +11 -0
- package/dist/als-react-ts-ui208.js +14 -0
- package/dist/als-react-ts-ui209.js +16 -0
- package/dist/als-react-ts-ui21.js +9 -0
- package/dist/als-react-ts-ui210.js +6 -0
- package/dist/als-react-ts-ui211.js +6 -0
- package/dist/als-react-ts-ui212.js +8 -0
- package/dist/als-react-ts-ui213.js +82 -0
- package/dist/als-react-ts-ui214.js +6 -0
- package/dist/als-react-ts-ui215.js +23 -0
- package/dist/als-react-ts-ui216.js +20 -0
- package/dist/als-react-ts-ui217.js +28 -0
- package/dist/als-react-ts-ui218.js +45 -0
- package/dist/als-react-ts-ui219.js +7 -0
- package/dist/als-react-ts-ui22.js +9 -0
- package/dist/als-react-ts-ui220.js +6 -0
- package/dist/als-react-ts-ui221.js +136 -0
- package/dist/als-react-ts-ui222.js +8 -0
- package/dist/als-react-ts-ui223.js +68 -0
- package/dist/als-react-ts-ui224.js +6 -0
- package/dist/als-react-ts-ui225.js +19 -0
- package/dist/als-react-ts-ui226.js +14 -0
- package/dist/als-react-ts-ui227.js +6 -0
- package/dist/als-react-ts-ui228.js +23 -0
- package/dist/als-react-ts-ui229.js +32 -0
- package/dist/als-react-ts-ui23.js +104 -0
- package/dist/als-react-ts-ui230.js +20 -0
- package/dist/als-react-ts-ui231.js +76 -0
- package/dist/als-react-ts-ui232.js +131 -0
- package/dist/als-react-ts-ui233.js +117 -0
- package/dist/als-react-ts-ui234.js +104 -0
- package/dist/als-react-ts-ui235.js +53 -0
- package/dist/als-react-ts-ui236.js +106 -0
- package/dist/als-react-ts-ui237.js +24 -0
- package/dist/als-react-ts-ui238.js +35 -0
- package/dist/als-react-ts-ui239.js +77 -0
- package/dist/als-react-ts-ui24.js +9 -0
- package/dist/als-react-ts-ui240.js +229 -0
- package/dist/als-react-ts-ui241.js +72 -0
- package/dist/als-react-ts-ui242.js +50 -0
- package/dist/als-react-ts-ui243.js +202 -0
- package/dist/als-react-ts-ui244.js +50 -0
- package/dist/als-react-ts-ui245.js +22 -0
- package/dist/als-react-ts-ui246.js +8 -0
- package/dist/als-react-ts-ui247.js +11 -0
- package/dist/als-react-ts-ui248.js +14 -0
- package/dist/als-react-ts-ui249.js +24 -0
- package/dist/als-react-ts-ui25.js +11 -0
- package/dist/als-react-ts-ui250.js +97 -0
- package/dist/als-react-ts-ui251.js +16 -0
- package/dist/als-react-ts-ui252.js +8 -0
- package/dist/als-react-ts-ui253.js +24 -0
- package/dist/als-react-ts-ui254.js +60 -0
- package/dist/als-react-ts-ui255.js +19 -0
- package/dist/als-react-ts-ui256.js +29 -0
- package/dist/als-react-ts-ui257.js +45 -0
- package/dist/als-react-ts-ui258.js +23 -0
- package/dist/als-react-ts-ui259.js +51 -0
- package/dist/als-react-ts-ui26.js +9 -0
- package/dist/als-react-ts-ui260.js +53 -0
- package/dist/als-react-ts-ui261.js +20 -0
- package/dist/als-react-ts-ui262.js +14 -0
- package/dist/als-react-ts-ui263.js +38 -0
- package/dist/als-react-ts-ui264.js +285 -0
- package/dist/als-react-ts-ui265.js +56 -0
- package/dist/als-react-ts-ui266.js +82 -0
- package/dist/als-react-ts-ui267.js +8 -0
- package/dist/als-react-ts-ui268.js +6 -0
- package/dist/als-react-ts-ui269.js +26 -0
- package/dist/als-react-ts-ui27.js +9 -0
- package/dist/als-react-ts-ui270.js +18 -0
- package/dist/als-react-ts-ui271.js +6 -0
- package/dist/als-react-ts-ui272.js +265 -0
- package/dist/als-react-ts-ui273.js +14 -0
- package/dist/als-react-ts-ui274.js +13 -0
- package/dist/als-react-ts-ui275.js +44 -0
- package/dist/als-react-ts-ui276.js +7 -0
- package/dist/als-react-ts-ui277.js +12 -0
- package/dist/als-react-ts-ui278.js +10 -0
- package/dist/als-react-ts-ui279.js +8 -0
- package/dist/als-react-ts-ui28.js +122 -0
- package/dist/als-react-ts-ui280.js +14 -0
- package/dist/als-react-ts-ui281.js +14 -0
- package/dist/als-react-ts-ui282.js +7 -0
- package/dist/als-react-ts-ui283.js +6 -0
- package/dist/als-react-ts-ui284.js +14 -0
- package/dist/als-react-ts-ui285.js +92 -0
- package/dist/als-react-ts-ui286.js +58 -0
- package/dist/als-react-ts-ui287.js +4 -0
- package/dist/als-react-ts-ui288.js +26 -0
- package/dist/als-react-ts-ui289.js +155 -0
- package/dist/als-react-ts-ui29.js +9 -0
- package/dist/als-react-ts-ui290.js +116 -0
- package/dist/als-react-ts-ui291.js +67 -0
- package/dist/als-react-ts-ui292.js +14 -0
- package/dist/als-react-ts-ui293.js +14 -0
- package/dist/als-react-ts-ui294.js +63 -0
- package/dist/als-react-ts-ui295.js +62 -0
- package/dist/als-react-ts-ui296.js +90 -0
- package/dist/als-react-ts-ui297.js +19 -0
- package/dist/als-react-ts-ui298.js +211 -0
- package/dist/als-react-ts-ui299.js +6 -0
- package/dist/als-react-ts-ui3.js +142 -0
- package/dist/als-react-ts-ui30.js +9 -0
- package/dist/als-react-ts-ui300.js +16 -0
- package/dist/als-react-ts-ui301.js +50 -0
- package/dist/als-react-ts-ui302.js +15 -0
- package/dist/als-react-ts-ui303.js +17 -0
- package/dist/als-react-ts-ui304.js +17 -0
- package/dist/als-react-ts-ui305.js +78 -0
- package/dist/als-react-ts-ui306.js +183 -0
- package/dist/als-react-ts-ui307.js +57 -0
- package/dist/als-react-ts-ui308.js +32 -0
- package/dist/als-react-ts-ui309.js +16 -0
- package/dist/als-react-ts-ui31.js +9 -0
- package/dist/als-react-ts-ui310.js +11 -0
- package/dist/als-react-ts-ui311.js +209 -0
- package/dist/als-react-ts-ui312.js +401 -0
- package/dist/als-react-ts-ui313.js +17 -0
- package/dist/als-react-ts-ui314.js +14 -0
- package/dist/als-react-ts-ui315.js +12 -0
- package/dist/als-react-ts-ui316.js +6 -0
- package/dist/als-react-ts-ui317.js +130 -0
- package/dist/als-react-ts-ui318.js +47 -0
- package/dist/als-react-ts-ui319.js +20 -0
- package/dist/als-react-ts-ui32.js +11 -0
- package/dist/als-react-ts-ui320.js +14 -0
- package/dist/als-react-ts-ui321.js +7 -0
- package/dist/als-react-ts-ui322.js +14 -0
- package/dist/als-react-ts-ui323.js +16 -0
- package/dist/als-react-ts-ui324.js +6 -0
- package/dist/als-react-ts-ui325.js +6 -0
- package/dist/als-react-ts-ui326.js +14 -0
- package/dist/als-react-ts-ui327.js +6 -0
- package/dist/als-react-ts-ui328.js +28 -0
- package/dist/als-react-ts-ui329.js +597 -0
- package/dist/als-react-ts-ui33.js +173 -0
- package/dist/als-react-ts-ui330.js +44 -0
- package/dist/als-react-ts-ui331.js +41 -0
- package/dist/als-react-ts-ui332.js +59 -0
- package/dist/als-react-ts-ui333.js +10 -0
- package/dist/als-react-ts-ui334.js +14 -0
- package/dist/als-react-ts-ui335.js +14 -0
- package/dist/als-react-ts-ui336.js +14 -0
- package/dist/als-react-ts-ui337.js +23 -0
- package/dist/als-react-ts-ui338.js +6 -0
- package/dist/als-react-ts-ui339.js +10 -0
- package/dist/als-react-ts-ui34.js +9 -0
- package/dist/als-react-ts-ui340.js +19 -0
- package/dist/als-react-ts-ui341.js +14 -0
- package/dist/als-react-ts-ui342.js +15 -0
- package/dist/als-react-ts-ui343.js +6 -0
- package/dist/als-react-ts-ui344.js +324 -0
- package/dist/als-react-ts-ui345.js +5 -0
- package/dist/als-react-ts-ui346.js +489 -0
- package/dist/als-react-ts-ui347.js +23 -0
- package/dist/als-react-ts-ui348.js +8 -0
- package/dist/als-react-ts-ui349.js +6 -0
- package/dist/als-react-ts-ui35.js +9 -0
- package/dist/als-react-ts-ui350.js +10 -0
- package/dist/als-react-ts-ui351.js +4 -0
- package/dist/als-react-ts-ui352.js +57 -0
- package/dist/als-react-ts-ui353.js +58 -0
- package/dist/als-react-ts-ui354.js +10 -0
- package/dist/als-react-ts-ui355.js +14 -0
- package/dist/als-react-ts-ui356.js +9 -0
- package/dist/als-react-ts-ui357.js +4 -0
- package/dist/als-react-ts-ui358.js +34 -0
- package/dist/als-react-ts-ui359.js +14 -0
- package/dist/als-react-ts-ui36.js +9 -0
- package/dist/als-react-ts-ui360.js +4 -0
- package/dist/als-react-ts-ui361.js +6 -0
- package/dist/als-react-ts-ui362.js +6 -0
- package/dist/als-react-ts-ui363.js +78 -0
- package/dist/als-react-ts-ui364.js +4 -0
- package/dist/als-react-ts-ui365.js +10 -0
- package/dist/als-react-ts-ui366.js +4 -0
- package/dist/als-react-ts-ui367.js +6 -0
- package/dist/als-react-ts-ui368.js +134 -0
- package/dist/als-react-ts-ui369.js +4 -0
- package/dist/als-react-ts-ui37.js +9 -0
- package/dist/als-react-ts-ui370.js +46 -0
- package/dist/als-react-ts-ui371.js +58 -0
- package/dist/als-react-ts-ui372.js +4 -0
- package/dist/als-react-ts-ui373.js +4 -0
- package/dist/als-react-ts-ui38.js +257 -0
- package/dist/als-react-ts-ui39.js +48 -0
- package/dist/als-react-ts-ui4.js +158 -0
- package/dist/als-react-ts-ui40.js +96 -0
- package/dist/als-react-ts-ui41.js +78 -0
- package/dist/als-react-ts-ui42.js +23 -0
- package/dist/als-react-ts-ui43.js +111 -0
- package/dist/als-react-ts-ui44.js +112 -0
- package/dist/als-react-ts-ui45.js +40 -0
- package/dist/als-react-ts-ui46.js +45 -0
- package/dist/als-react-ts-ui47.js +55 -0
- package/dist/als-react-ts-ui48.js +39 -0
- package/dist/als-react-ts-ui49.js +50 -0
- package/dist/als-react-ts-ui5.js +26 -0
- package/dist/als-react-ts-ui50.js +79 -0
- package/dist/als-react-ts-ui51.js +24 -0
- package/dist/als-react-ts-ui52.js +24 -0
- package/dist/als-react-ts-ui53.js +40 -0
- package/dist/als-react-ts-ui54.js +30 -0
- package/dist/als-react-ts-ui55.js +208 -0
- package/dist/als-react-ts-ui56.js +17 -0
- package/dist/als-react-ts-ui57.js +24 -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 +7 -0
- package/dist/als-react-ts-ui63.js +7 -0
- package/dist/als-react-ts-ui64.js +7 -0
- package/dist/als-react-ts-ui65.js +7 -0
- package/dist/als-react-ts-ui66.js +7 -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 +7 -0
- package/dist/als-react-ts-ui7.js +42 -0
- package/dist/als-react-ts-ui70.js +7 -0
- package/dist/als-react-ts-ui71.js +7 -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 +7 -0
- package/dist/als-react-ts-ui75.js +7 -0
- package/dist/als-react-ts-ui76.js +7 -0
- package/dist/als-react-ts-ui77.js +7 -0
- package/dist/als-react-ts-ui78.js +7 -0
- package/dist/als-react-ts-ui79.js +17 -0
- package/dist/als-react-ts-ui8.js +9 -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 +9 -0
- package/dist/als-react-ts-ui90.js +7 -0
- package/dist/als-react-ts-ui91.js +74 -0
- package/dist/als-react-ts-ui92.js +7 -0
- package/dist/als-react-ts-ui93.js +7 -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/index.module.css +0 -0
- package/dist/components/ALSDialog/index.module.css +1 -0
- package/dist/components/ALSInput/index.module.css +1 -0
- package/dist/components/ALSPopover/index.module.css +1 -0
- package/dist/components/ALSProgress/index.module.css +1 -0
- package/dist/components/ALSSelect/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/{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 +1 -1
- 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,53 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { useBaseUiId as I } from "./als-react-ts-ui170.js";
|
|
3
|
+
import { useRenderElement as T } from "./als-react-ts-ui166.js";
|
|
4
|
+
import { useCompositeListItem as x } from "./als-react-ts-ui173.js";
|
|
5
|
+
import { tabsStateAttributesMapping as M } from "./als-react-ts-ui356.js";
|
|
6
|
+
import { useTabsRootContext as R } from "./als-react-ts-ui355.js";
|
|
7
|
+
import { TabsPanelDataAttributes as V } from "./als-react-ts-ui362.js";
|
|
8
|
+
const g = /* @__PURE__ */ n.forwardRef(function(r, d) {
|
|
9
|
+
const {
|
|
10
|
+
children: m,
|
|
11
|
+
className: N,
|
|
12
|
+
value: e,
|
|
13
|
+
render: h,
|
|
14
|
+
keepMounted: u = !1,
|
|
15
|
+
...c
|
|
16
|
+
} = r, {
|
|
17
|
+
value: p,
|
|
18
|
+
getTabIdByPanelValueOrIndex: s,
|
|
19
|
+
orientation: i,
|
|
20
|
+
tabActivationDirection: l
|
|
21
|
+
} = R(), o = I(), b = n.useMemo(() => ({
|
|
22
|
+
id: o,
|
|
23
|
+
value: e
|
|
24
|
+
}), [o, e]), {
|
|
25
|
+
ref: f,
|
|
26
|
+
index: a
|
|
27
|
+
} = x({
|
|
28
|
+
metadata: b
|
|
29
|
+
}), t = (e ?? a) !== p, P = n.useMemo(() => s(e, a), [s, a, e]), v = n.useMemo(() => ({
|
|
30
|
+
hidden: t,
|
|
31
|
+
orientation: i,
|
|
32
|
+
tabActivationDirection: l
|
|
33
|
+
}), [t, i, l]);
|
|
34
|
+
return T("div", r, {
|
|
35
|
+
state: v,
|
|
36
|
+
ref: [d, f],
|
|
37
|
+
props: [{
|
|
38
|
+
"aria-labelledby": P,
|
|
39
|
+
hidden: t,
|
|
40
|
+
id: o ?? void 0,
|
|
41
|
+
role: "tabpanel",
|
|
42
|
+
tabIndex: t ? -1 : 0,
|
|
43
|
+
[V.index]: a
|
|
44
|
+
}, c, {
|
|
45
|
+
children: t && !u ? void 0 : m
|
|
46
|
+
}],
|
|
47
|
+
stateAttributesMapping: M
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
process.env.NODE_ENV !== "production" && (g.displayName = "TabsPanel");
|
|
51
|
+
export {
|
|
52
|
+
g as TabsPanel
|
|
53
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { getWindow as u, isOverflowElement as Y } from "./als-react-ts-ui221.js";
|
|
2
|
+
import { isIOS as W, isWebKit as E } from "./als-react-ts-ui275.js";
|
|
3
|
+
import { ownerDocument as n } from "./als-react-ts-ui268.js";
|
|
4
|
+
import { useIsoLayoutEffect as T } from "./als-react-ts-ui161.js";
|
|
5
|
+
import { Timeout as k } from "./als-react-ts-ui229.js";
|
|
6
|
+
import { AnimationFrame as z } from "./als-react-ts-ui223.js";
|
|
7
|
+
import { NOOP as H } from "./als-react-ts-ui212.js";
|
|
8
|
+
let L = {}, C = {}, O = "";
|
|
9
|
+
function F(r) {
|
|
10
|
+
if (typeof document > "u")
|
|
11
|
+
return !1;
|
|
12
|
+
const o = n(r);
|
|
13
|
+
return u(o).innerWidth - o.documentElement.clientWidth > 0;
|
|
14
|
+
}
|
|
15
|
+
function j(r) {
|
|
16
|
+
const o = n(r), t = o.documentElement, e = o.body, l = Y(t) ? t : e, s = l.style.overflow;
|
|
17
|
+
return l.style.overflow = "hidden", () => {
|
|
18
|
+
l.style.overflow = s;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function I(r) {
|
|
22
|
+
const o = n(r), t = o.documentElement, e = o.body, l = u(t);
|
|
23
|
+
let s = 0, c = 0;
|
|
24
|
+
const h = z.create(), f = typeof CSS < "u" && CSS.supports?.("scrollbar-gutter", "stable");
|
|
25
|
+
if (E && (l.visualViewport?.scale ?? 1) !== 1)
|
|
26
|
+
return () => {
|
|
27
|
+
};
|
|
28
|
+
function d() {
|
|
29
|
+
const a = l.getComputedStyle(t), i = l.getComputedStyle(e), y = (a.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
30
|
+
s = t.scrollTop, c = t.scrollLeft, L = {
|
|
31
|
+
scrollbarGutter: t.style.scrollbarGutter,
|
|
32
|
+
overflowY: t.style.overflowY,
|
|
33
|
+
overflowX: t.style.overflowX
|
|
34
|
+
}, O = t.style.scrollBehavior, C = {
|
|
35
|
+
position: e.style.position,
|
|
36
|
+
height: e.style.height,
|
|
37
|
+
width: e.style.width,
|
|
38
|
+
boxSizing: e.style.boxSizing,
|
|
39
|
+
overflowY: e.style.overflowY,
|
|
40
|
+
overflowX: e.style.overflowX,
|
|
41
|
+
scrollBehavior: e.style.scrollBehavior
|
|
42
|
+
};
|
|
43
|
+
const X = t.scrollHeight > t.clientHeight, B = t.scrollWidth > t.clientWidth, x = a.overflowY === "scroll" || i.overflowY === "scroll", G = a.overflowX === "scroll" || i.overflowX === "scroll", b = Math.max(0, l.innerWidth - t.clientWidth), w = Math.max(0, l.innerHeight - t.clientHeight), p = parseFloat(i.marginTop) + parseFloat(i.marginBottom), g = parseFloat(i.marginLeft) + parseFloat(i.marginRight), S = Y(t) ? t : e;
|
|
44
|
+
if (f) {
|
|
45
|
+
t.style.scrollbarGutter = y, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
Object.assign(t.style, {
|
|
49
|
+
scrollbarGutter: y,
|
|
50
|
+
overflowY: "hidden",
|
|
51
|
+
overflowX: "hidden"
|
|
52
|
+
}), (X || x) && (t.style.overflowY = "scroll"), (B || G) && (t.style.overflowX = "scroll"), Object.assign(e.style, {
|
|
53
|
+
position: "relative",
|
|
54
|
+
height: p || w ? `calc(100dvh - ${p + w}px)` : "100dvh",
|
|
55
|
+
width: g || b ? `calc(100vw - ${g + b}px)` : "100vw",
|
|
56
|
+
boxSizing: "border-box",
|
|
57
|
+
overflow: "hidden",
|
|
58
|
+
scrollBehavior: "unset"
|
|
59
|
+
}), e.scrollTop = s, e.scrollLeft = c, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
|
|
60
|
+
}
|
|
61
|
+
function m() {
|
|
62
|
+
Object.assign(t.style, L), Object.assign(e.style, C), f || (t.scrollTop = s, t.scrollLeft = c, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = O);
|
|
63
|
+
}
|
|
64
|
+
function v() {
|
|
65
|
+
m(), h.request(d);
|
|
66
|
+
}
|
|
67
|
+
return d(), l.addEventListener("resize", v), () => {
|
|
68
|
+
h.cancel(), m(), typeof l.removeEventListener == "function" && l.removeEventListener("resize", v);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
class R {
|
|
72
|
+
lockCount = 0;
|
|
73
|
+
restore = null;
|
|
74
|
+
timeoutLock = k.create();
|
|
75
|
+
timeoutUnlock = k.create();
|
|
76
|
+
acquire(o) {
|
|
77
|
+
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(o)), this.release;
|
|
78
|
+
}
|
|
79
|
+
release = () => {
|
|
80
|
+
this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
|
|
81
|
+
};
|
|
82
|
+
unlock = () => {
|
|
83
|
+
this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
|
|
84
|
+
};
|
|
85
|
+
lock(o) {
|
|
86
|
+
if (this.lockCount === 0 || this.restore !== null)
|
|
87
|
+
return;
|
|
88
|
+
const e = n(o).documentElement, l = u(e).getComputedStyle(e).overflowY;
|
|
89
|
+
if (l === "hidden" || l === "clip") {
|
|
90
|
+
this.restore = H;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const s = W || !F(o);
|
|
94
|
+
this.restore = s ? j(o) : I(o);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const V = new R();
|
|
98
|
+
function _(r = !0, o = null) {
|
|
99
|
+
T(() => {
|
|
100
|
+
if (r)
|
|
101
|
+
return V.acquire(o);
|
|
102
|
+
}, [r, o]);
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
_ as useScrollLock
|
|
106
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { useStableCallback as i } from "./als-react-ts-ui160.js";
|
|
3
|
+
import { useEnhancedClickHandler as u } from "./als-react-ts-ui297.js";
|
|
4
|
+
function f(s) {
|
|
5
|
+
const [n, o] = e.useState(null), c = i((p, a) => {
|
|
6
|
+
s || o(a);
|
|
7
|
+
}), t = e.useCallback(() => {
|
|
8
|
+
o(null);
|
|
9
|
+
}, []), {
|
|
10
|
+
onClick: r,
|
|
11
|
+
onPointerDown: l
|
|
12
|
+
} = u(c);
|
|
13
|
+
return e.useMemo(() => ({
|
|
14
|
+
openMethod: n,
|
|
15
|
+
reset: t,
|
|
16
|
+
triggerProps: {
|
|
17
|
+
onClick: r,
|
|
18
|
+
onPointerDown: l
|
|
19
|
+
}
|
|
20
|
+
}), [n, t, r, l]);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
f as useOpenInteractionType
|
|
24
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useId as f } from "./als-react-ts-ui216.js";
|
|
2
|
+
import { useRefWithInit as g } from "./als-react-ts-ui184.js";
|
|
3
|
+
import { useIsoLayoutEffect as E } from "./als-react-ts-ui161.js";
|
|
4
|
+
import { isElement as d } from "./als-react-ts-ui221.js";
|
|
5
|
+
import { useFloatingParentNodeId as S } from "./als-react-ts-ui286.js";
|
|
6
|
+
import { FloatingRootStore as x } from "./als-react-ts-ui307.js";
|
|
7
|
+
function v(p) {
|
|
8
|
+
const {
|
|
9
|
+
popupStore: o,
|
|
10
|
+
noEmit: i = !1,
|
|
11
|
+
treatPopupAsFloatingElement: a = !1,
|
|
12
|
+
onOpenChange: m
|
|
13
|
+
} = p, n = f(), c = S() != null, r = o.useState("open"), t = o.useState("activeTriggerElement"), s = o.useState(a ? "popupElement" : "positionerElement"), u = o.context.triggerElements, e = g(() => new x({
|
|
14
|
+
open: r,
|
|
15
|
+
referenceElement: t,
|
|
16
|
+
floatingElement: s,
|
|
17
|
+
triggerElements: u,
|
|
18
|
+
onOpenChange: m,
|
|
19
|
+
floatingId: n,
|
|
20
|
+
nested: c,
|
|
21
|
+
noEmit: i
|
|
22
|
+
})).current;
|
|
23
|
+
return E(() => {
|
|
24
|
+
const l = {
|
|
25
|
+
open: r,
|
|
26
|
+
floatingId: n,
|
|
27
|
+
referenceElement: t,
|
|
28
|
+
floatingElement: s
|
|
29
|
+
};
|
|
30
|
+
d(t) && (l.domReferenceElement = t), e.update(l);
|
|
31
|
+
}, [r, n, t, s, e]), e.context.onOpenChange = m, e.context.nested = c, e.context.noEmit = i, e;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
v as useSyncedFloatingRootContext
|
|
35
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useId as P } from "./als-react-ts-ui216.js";
|
|
3
|
+
import { useFloatingParentNodeId as S } from "./als-react-ts-ui286.js";
|
|
4
|
+
import { EMPTY_OBJECT as F } from "./als-react-ts-ui212.js";
|
|
5
|
+
import { getFloatingFocusElement as y } from "./als-react-ts-ui241.js";
|
|
6
|
+
const T = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
|
+
function k(c, I = {}) {
|
|
8
|
+
const a = "rootStore" in c ? c.rootStore : c, l = a.useState("open"), u = a.useState("floatingId"), x = a.useState("domReferenceElement"), d = a.useState("floatingElement"), {
|
|
9
|
+
enabled: m = !0,
|
|
10
|
+
role: o = "dialog"
|
|
11
|
+
} = I, M = P(), s = x?.id || M, t = r.useMemo(() => y(d)?.id || u, [d, u]), e = T.get(o) ?? o, p = S() != null, i = r.useMemo(() => e === "tooltip" || o === "label" ? F : {
|
|
12
|
+
"aria-haspopup": e === "alertdialog" ? "dialog" : e,
|
|
13
|
+
"aria-expanded": "false",
|
|
14
|
+
...e === "listbox" && {
|
|
15
|
+
role: "combobox"
|
|
16
|
+
},
|
|
17
|
+
...e === "menu" && p && {
|
|
18
|
+
role: "menuitem"
|
|
19
|
+
},
|
|
20
|
+
...o === "select" && {
|
|
21
|
+
"aria-autocomplete": "none"
|
|
22
|
+
},
|
|
23
|
+
...o === "combobox" && {
|
|
24
|
+
"aria-autocomplete": "list"
|
|
25
|
+
}
|
|
26
|
+
}, [e, p, o]), f = r.useMemo(() => e === "tooltip" || o === "label" ? {
|
|
27
|
+
[`aria-${o === "label" ? "labelledby" : "describedby"}`]: l ? t : void 0
|
|
28
|
+
} : {
|
|
29
|
+
...i,
|
|
30
|
+
"aria-expanded": l ? "true" : "false",
|
|
31
|
+
"aria-controls": l ? t : void 0,
|
|
32
|
+
...e === "menu" && {
|
|
33
|
+
id: s
|
|
34
|
+
}
|
|
35
|
+
}, [e, t, l, s, o, i]), b = r.useMemo(() => {
|
|
36
|
+
const n = {
|
|
37
|
+
id: t,
|
|
38
|
+
...e && {
|
|
39
|
+
role: e
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return e === "tooltip" || o === "label" ? n : {
|
|
43
|
+
...n,
|
|
44
|
+
...e === "menu" && {
|
|
45
|
+
"aria-labelledby": s
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}, [e, t, s, o]), g = r.useCallback(({
|
|
49
|
+
active: n,
|
|
50
|
+
selected: R
|
|
51
|
+
}) => {
|
|
52
|
+
const E = {
|
|
53
|
+
role: "option",
|
|
54
|
+
...n && {
|
|
55
|
+
id: `${t}-fui-option`
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
switch (o) {
|
|
59
|
+
case "select":
|
|
60
|
+
case "combobox":
|
|
61
|
+
return {
|
|
62
|
+
...E,
|
|
63
|
+
"aria-selected": R
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return {};
|
|
67
|
+
}, [t, o]);
|
|
68
|
+
return r.useMemo(() => m ? {
|
|
69
|
+
reference: f,
|
|
70
|
+
floating: b,
|
|
71
|
+
item: g,
|
|
72
|
+
trigger: i
|
|
73
|
+
} : {}, [m, f, b, i, g]);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
k as useRole
|
|
77
|
+
};
|
|
@@ -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-ui221.js";
|
|
3
|
+
import { useTimeout as ce, Timeout as De } from "./als-react-ts-ui229.js";
|
|
4
|
+
import { useStableCallback as s } from "./als-react-ts-ui160.js";
|
|
5
|
+
import { useFloatingTree as Me } from "./als-react-ts-ui286.js";
|
|
6
|
+
import { createChangeEventDetails as S } from "./als-react-ts-ui167.js";
|
|
7
|
+
import { createAttribute as Ke } from "./als-react-ts-ui299.js";
|
|
8
|
+
import { isReactEvent as Ie } from "./als-react-ts-ui180.js";
|
|
9
|
+
import { getTarget as w, getDocument as ie, contains as x, isRootElement as xe, isEventTargetWithin as f } from "./als-react-ts-ui241.js";
|
|
10
|
+
import { getNodeChildren as G } from "./als-react-ts-ui302.js";
|
|
11
|
+
import { escapeKey as Xe, outsidePress as Ye, triggerPress as le, none as We } from "./als-react-ts-ui168.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-ui221.js";
|
|
2
|
+
import { isJSDOM as c } from "./als-react-ts-ui275.js";
|
|
3
|
+
import { TYPEABLE_SELECTOR as s, FOCUSABLE_ATTRIBUTE as n } from "./als-react-ts-ui310.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-ui313.js";
|
|
2
|
+
import { EMPTY_OBJECT as n } from "./als-react-ts-ui212.js";
|
|
3
|
+
import { createSelector as t } from "./als-react-ts-ui245.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
|
+
};
|