From 51a148b8957125e04fb2a5663714db78206a02ca Mon Sep 17 00:00:00 2001 From: Davit Date: Tue, 24 Jun 2025 08:33:23 +0400 Subject: [PATCH 1/2] components from figma --- .storybook/decorators/withNextLink.tsx | 21 + .storybook/globals.css | 1891 ----------------- .storybook/main.ts | 2 +- .storybook/preview.ts | 5 +- components.json | 3 +- dist/_util/helpers.d.ts | 6 + dist/_util/helpers.d.ts.map | 2 +- .../components/AvatarBubble/AvatarBubble.d.ts | 8 + .../AvatarBubble/AvatarBubble.d.ts.map | 1 + dist/components/Breadcrumb/Breadcrumb.d.ts | 26 + .../components/Breadcrumb/Breadcrumb.d.ts.map | 1 + dist/components/Breadcrumb/index.d.ts | 3 + dist/components/Breadcrumb/index.d.ts.map | 1 + dist/components/Checkbox/Checkbox.d.ts | 12 + dist/components/Checkbox/Checkbox.d.ts.map | 1 + dist/components/Checkbox/index.d.ts | 3 + dist/components/Checkbox/index.d.ts.map | 1 + .../CopyToClipboard/CopyToClipboard.d.ts | 12 + .../CopyToClipboard/CopyToClipboard.d.ts.map | 1 + dist/components/CopyToClipboard/index.d.ts | 3 + .../components/CopyToClipboard/index.d.ts.map | 1 + dist/components/DetailStat/DetailStat.d.ts | 12 + .../components/DetailStat/DetailStat.d.ts.map | 1 + dist/components/DetailStat/index.d.ts | 3 + dist/components/DetailStat/index.d.ts.map | 1 + dist/components/Input/Input.d.ts | 11 + dist/components/Input/Input.d.ts.map | 1 + dist/components/Input/index.d.ts | 3 + dist/components/Input/index.d.ts.map | 1 + dist/components/KeyFactCard/KeyFactCard.d.ts | 10 + .../KeyFactCard/KeyFactCard.d.ts.map | 1 + dist/components/KeyFactCard/index.d.ts | 3 + dist/components/KeyFactCard/index.d.ts.map | 1 + .../components/Notification/Notification.d.ts | 17 + .../Notification/Notification.d.ts.map | 1 + dist/components/Notification/index.d.ts | 3 + dist/components/Notification/index.d.ts.map | 1 + .../ProblemsOverview/ProblemsOverview.d.ts | 16 + .../ProblemsOverview.d.ts.map | 1 + dist/components/ProblemsOverview/index.d.ts | 3 + .../ProblemsOverview/index.d.ts.map | 1 + dist/components/RootLayout/RootLayout.d.ts | 11 + .../components/RootLayout/RootLayout.d.ts.map | 1 + dist/components/RootLayout/index.d.ts | 3 + dist/components/RootLayout/index.d.ts.map | 1 + dist/components/Select/Select.d.ts | 17 + dist/components/Select/Select.d.ts.map | 1 + dist/components/Select/index.d.ts | 3 + dist/components/Select/index.d.ts.map | 1 + dist/components/StatCard/StatCard.d.ts | 12 + dist/components/StatCard/StatCard.d.ts.map | 1 + dist/components/StatCard/index.d.ts | 3 + dist/components/StatCard/index.d.ts.map | 1 + dist/components/sidenav/Sidenav.d.ts | 41 + dist/components/sidenav/Sidenav.d.ts.map | 1 + dist/components/sidenav/SidenavDropdown.d.ts | 7 + .../sidenav/SidenavDropdown.d.ts.map | 1 + dist/components/sidenav/index.d.ts | 3 + dist/components/sidenav/index.d.ts.map | 1 + dist/components/ui/avatar.d.ts.map | 2 +- dist/components/ui/badge.d.ts.map | 2 +- dist/components/ui/breadcrumb.d.ts.map | 2 +- dist/components/ui/calendar.d.ts | 10 +- dist/components/ui/calendar.d.ts.map | 2 +- dist/components/ui/card.d.ts.map | 2 +- dist/components/ui/carousel.d.ts.map | 2 +- dist/components/ui/chart.d.ts.map | 2 +- dist/components/ui/command.d.ts | 4 +- dist/components/ui/command.d.ts.map | 2 +- dist/components/ui/context-menu.d.ts.map | 2 +- dist/components/ui/dialog.d.ts | 4 +- dist/components/ui/dialog.d.ts.map | 2 +- dist/components/ui/drawer.d.ts.map | 2 +- dist/components/ui/form.d.ts.map | 2 +- dist/components/ui/menubar.d.ts.map | 2 +- dist/components/ui/navigation-menu.d.ts.map | 2 +- dist/components/ui/pagination.d.ts.map | 2 +- dist/components/ui/progress.d.ts.map | 2 +- dist/components/ui/radio-group.d.ts.map | 2 +- dist/components/ui/sheet.d.ts.map | 2 +- dist/components/ui/sidebar.d.ts.map | 2 +- dist/components/ui/skeleton.d.ts.map | 2 +- dist/components/ui/slider.d.ts.map | 2 +- dist/components/ui/table.d.ts.map | 2 +- dist/components/ui/tabs.d.ts.map | 2 +- dist/components/ui/toggle.d.ts.map | 2 +- dist/hooks/useTheme.d.ts | 9 - dist/hooks/useTheme.d.ts.map | 1 - dist/index.cjs.js | 2 +- dist/index.cjs10.js | 2 +- dist/index.cjs100.js | 1 + dist/index.cjs101.js | 1 + dist/index.cjs102.js | 1 + dist/index.cjs103.js | 1 + dist/index.cjs104.js | 1 + dist/index.cjs105.js | 1 + dist/index.cjs106.js | 1 + dist/index.cjs107.js | 1 + dist/index.cjs108.js | 1 + dist/index.cjs109.js | 1 + dist/index.cjs11.js | 2 +- dist/index.cjs110.js | 1 + dist/index.cjs111.js | 3 + dist/index.cjs112.js | 1 + dist/index.cjs113.js | 6 + dist/index.cjs114.js | 1 + dist/index.cjs115.js | 1 + dist/index.cjs116.js | 1 + dist/index.cjs117.js | 1 + dist/index.cjs118.js | 1 + dist/index.cjs119.js | 1 + dist/index.cjs12.js | 2 +- dist/index.cjs120.js | 1 + dist/index.cjs121.js | 1 + dist/index.cjs122.js | 1 + dist/index.cjs123.js | 1 + dist/index.cjs124.js | 1 + dist/index.cjs125.js | 1 + dist/index.cjs126.js | 1 + dist/index.cjs127.js | 1 + dist/index.cjs128.js | 1 + dist/index.cjs129.js | 1 + dist/index.cjs13.js | 2 +- dist/index.cjs130.js | 1 + dist/index.cjs131.js | 1 + dist/index.cjs132.js | 1 + dist/index.cjs133.js | 1 + dist/index.cjs134.js | 1 + dist/index.cjs135.js | 1 + dist/index.cjs136.js | 5 + dist/index.cjs137.js | 1 + dist/index.cjs138.js | 1 + dist/index.cjs139.js | 1 + dist/index.cjs14.js | 2 +- dist/index.cjs140.js | 1 + dist/index.cjs141.js | 1 + dist/index.cjs142.js | 1 + dist/index.cjs143.js | 1 + dist/index.cjs144.js | 1 + dist/index.cjs145.js | 1 + dist/index.cjs146.js | 1 + dist/index.cjs147.js | 1 + dist/index.cjs148.js | 1 + dist/index.cjs149.js | 1 + dist/index.cjs15.js | 2 +- dist/index.cjs150.js | 1 + dist/index.cjs151.js | 1 + dist/index.cjs152.js | 1 + dist/index.cjs153.js | 1 + dist/index.cjs154.js | 2 + dist/index.cjs155.js | 1 + dist/index.cjs156.js | 1 + dist/index.cjs157.js | 1 + dist/index.cjs158.js | 1 + dist/index.cjs159.js | 1 + dist/index.cjs16.js | 2 +- dist/index.cjs160.js | 1 + dist/index.cjs161.js | 1 + dist/index.cjs162.js | 1 + dist/index.cjs163.js | 1 + dist/index.cjs164.js | 1 + dist/index.cjs165.js | 1 + dist/index.cjs166.js | 1 + dist/index.cjs167.js | 1 + dist/index.cjs168.js | 1 + dist/index.cjs169.js | 1 + dist/index.cjs17.js | 8 +- dist/index.cjs170.js | 1 + dist/index.cjs171.js | 1 + dist/index.cjs172.js | 1 + dist/index.cjs173.js | 1 + dist/index.cjs174.js | 1 + dist/index.cjs175.js | 1 + dist/index.cjs176.js | 1 + dist/index.cjs177.js | 1 + dist/index.cjs178.js | 1 + dist/index.cjs179.js | 1 + dist/index.cjs18.js | 8 +- dist/index.cjs180.js | 1 + dist/index.cjs181.js | 1 + dist/index.cjs182.js | 1 + dist/index.cjs183.js | 1 + dist/index.cjs184.js | 1 + dist/index.cjs185.js | 1 + dist/index.cjs186.js | 1 + dist/index.cjs187.js | 4 + dist/index.cjs188.js | 1 + dist/index.cjs189.js | 1 + dist/index.cjs19.js | 2 +- dist/index.cjs190.js | 1 + dist/index.cjs191.js | 1 + dist/index.cjs192.js | 1 + dist/index.cjs193.js | 1 + dist/index.cjs194.js | 1 + dist/index.cjs195.js | 1 + dist/index.cjs196.js | 1 + dist/index.cjs197.js | 1 + dist/index.cjs198.js | 1 + dist/index.cjs199.js | 1 + dist/index.cjs20.js | 2 +- dist/index.cjs200.js | 1 + dist/index.cjs201.js | 33 + dist/index.cjs202.js | 1 + dist/index.cjs203.js | 1 + dist/index.cjs204.js | 1 + dist/index.cjs205.js | 1 + dist/index.cjs206.js | 1 + dist/index.cjs207.js | 1 + dist/index.cjs208.js | 1 + dist/index.cjs209.js | 1 + dist/index.cjs21.js | 2 +- dist/index.cjs210.js | 1 + dist/index.cjs211.js | 1 + dist/index.cjs212.js | 1 + dist/index.cjs213.js | 1 + dist/index.cjs214.js | 1 + dist/index.cjs215.js | 1 + dist/index.cjs216.js | 1 + dist/index.cjs217.js | 1 + dist/index.cjs218.js | 3 + dist/index.cjs219.js | 1 + dist/index.cjs22.js | 2 +- dist/index.cjs220.js | 1 + dist/index.cjs221.js | 1 + dist/index.cjs222.js | 1 + dist/index.cjs223.js | 1 + dist/index.cjs224.js | 1 + dist/index.cjs225.js | 1 + dist/index.cjs226.js | 1 + dist/index.cjs227.js | 1 + dist/index.cjs228.js | 1 + dist/index.cjs229.js | 1 + dist/index.cjs23.js | 2 +- dist/index.cjs230.js | 1 + dist/index.cjs231.js | 1 + dist/index.cjs232.js | 1 + dist/index.cjs233.js | 1 + dist/index.cjs234.js | 1 + dist/index.cjs235.js | 2 + dist/index.cjs236.js | 1 + dist/index.cjs237.js | 1 + dist/index.cjs238.js | 1 + dist/index.cjs239.js | 9 + dist/index.cjs24.js | 2 +- dist/index.cjs240.js | 9 + dist/index.cjs241.js | 1 + dist/index.cjs242.js | 1 + dist/index.cjs243.js | 1 + dist/index.cjs244.js | 1 + dist/index.cjs245.js | 1 + dist/index.cjs246.js | 1 + dist/index.cjs247.js | 1 + dist/index.cjs248.js | 1 + dist/index.cjs249.js | 1 + dist/index.cjs25.js | 2 +- dist/index.cjs250.js | 1 + dist/index.cjs251.js | 1 + dist/index.cjs252.js | 1 + dist/index.cjs253.js | 1 + dist/index.cjs254.js | 1 + dist/index.cjs255.js | 1 + dist/index.cjs256.js | 1 + dist/index.cjs257.js | 1 + dist/index.cjs258.js | 1 + dist/index.cjs259.js | 1 + dist/index.cjs26.js | 2 +- dist/index.cjs260.js | 1 + dist/index.cjs261.js | 1 + dist/index.cjs262.js | 1 + dist/index.cjs263.js | 7 + dist/index.cjs264.js | 1 + dist/index.cjs265.js | 1 + dist/index.cjs266.js | 1 + dist/index.cjs267.js | 1 + dist/index.cjs268.js | 1 + dist/index.cjs269.js | 1 + dist/index.cjs27.js | 2 +- dist/index.cjs270.js | 1 + dist/index.cjs271.js | 1 + dist/index.cjs272.js | 1 + dist/index.cjs273.js | 1 + dist/index.cjs274.js | 1 + dist/index.cjs275.js | 1 + dist/index.cjs276.js | 1 + dist/index.cjs277.js | 1 + dist/index.cjs278.js | 1 + dist/index.cjs279.js | 1 + dist/index.cjs28.js | 2 +- dist/index.cjs280.js | 1 + dist/index.cjs281.js | 1 + dist/index.cjs282.js | 1 + dist/index.cjs283.js | 1 + dist/index.cjs284.js | 1 + dist/index.cjs285.js | 5 + dist/index.cjs286.js | 1 + dist/index.cjs287.js | 5 + dist/index.cjs288.js | 1 + dist/index.cjs289.js | 1 + dist/index.cjs29.js | 2 +- dist/index.cjs290.js | 1 + dist/index.cjs291.js | 1 + dist/index.cjs30.js | 2 +- dist/index.cjs31.js | 2 +- dist/index.cjs32.js | 2 +- dist/index.cjs33.js | 2 +- dist/index.cjs34.js | 2 +- dist/index.cjs35.js | 2 +- dist/index.cjs36.js | 2 +- dist/index.cjs37.js | 2 +- dist/index.cjs38.js | 2 +- dist/index.cjs39.js | 2 +- dist/index.cjs4.js | 2 +- dist/index.cjs40.js | 2 +- dist/index.cjs41.js | 2 +- dist/index.cjs42.js | 2 +- dist/index.cjs43.js | 2 +- dist/index.cjs44.js | 2 +- dist/index.cjs45.js | 2 +- dist/index.cjs46.js | 2 +- dist/index.cjs47.js | 2 +- dist/index.cjs48.js | 2 +- dist/index.cjs49.js | 2 +- dist/index.cjs5.js | 2 +- dist/index.cjs50.js | 2 +- dist/index.cjs51.js | 2 +- dist/index.cjs52.js | 2 +- dist/index.cjs53.js | 2 +- dist/index.cjs54.js | 2 +- dist/index.cjs55.js | 2 +- dist/index.cjs56.js | 1 + dist/index.cjs57.js | 1 + dist/index.cjs58.js | 1 + dist/index.cjs59.js | 1 + dist/index.cjs6.js | 2 +- dist/index.cjs60.js | 1 + dist/index.cjs61.js | 1 + dist/index.cjs62.js | 1 + dist/index.cjs63.js | 1 + dist/index.cjs64.js | 1 + dist/index.cjs65.js | 1 + dist/index.cjs66.js | 1 + dist/index.cjs67.js | 1 + dist/index.cjs68.js | 1 + dist/index.cjs69.js | 1 + dist/index.cjs7.js | 2 +- dist/index.cjs70.js | 1 + dist/index.cjs71.js | 1 + dist/index.cjs72.js | 1 + dist/index.cjs73.js | 1 + dist/index.cjs74.js | 1 + dist/index.cjs75.js | 1 + dist/index.cjs76.js | 1 + dist/index.cjs77.js | 1 + dist/index.cjs78.js | 1 + dist/index.cjs79.js | 1 + dist/index.cjs8.js | 2 +- dist/index.cjs80.js | 1 + dist/index.cjs81.js | 9 + dist/index.cjs82.js | 22 + dist/index.cjs83.js | 1 + dist/index.cjs84.js | 1 + dist/index.cjs85.js | 1 + dist/index.cjs86.js | 1 + dist/index.cjs87.js | 1 + dist/index.cjs88.js | 1 + dist/index.cjs89.js | 1 + dist/index.cjs9.js | 2 +- dist/index.cjs90.js | 1 + dist/index.cjs91.js | 1 + dist/index.cjs92.js | 1 + dist/index.cjs93.js | 1 + dist/index.cjs94.js | 1 + dist/index.cjs95.js | 1 + dist/index.cjs96.js | 1 + dist/index.cjs97.js | 1 + dist/index.cjs98.js | 1 + dist/index.cjs99.js | 1 + dist/index.d.ts | 17 +- dist/index.d.ts.map | 2 +- dist/index.es.js | 602 +++--- dist/index.es10.js | 32 +- dist/index.es100.js | 22 + dist/index.es101.js | 4 + dist/index.es102.js | 5 + dist/index.es103.js | 8 + dist/index.es104.js | 47 + dist/index.es105.js | 38 + dist/index.es106.js | 5 + dist/index.es107.js | 27 + dist/index.es108.js | 5 + dist/index.es109.js | 60 + dist/index.es11.js | 66 +- dist/index.es110.js | 25 + dist/index.es111.js | 66 + dist/index.es112.js | 13 + dist/index.es113.js | 39 + dist/index.es114.js | 15 + dist/index.es115.js | 13 + dist/index.es116.js | 41 + dist/index.es117.js | 28 + dist/index.es118.js | 13 + dist/index.es119.js | 15 + dist/index.es12.js | 105 +- dist/index.es120.js | 32 + dist/index.es121.js | 7 + dist/index.es122.js | 52 + dist/index.es123.js | 25 + dist/index.es124.js | 35 + dist/index.es125.js | 4 + dist/index.es126.js | 149 ++ dist/index.es127.js | 13 + dist/index.es128.js | 6 + dist/index.es129.js | 14 + dist/index.es13.js | 127 +- dist/index.es130.js | 115 + dist/index.es131.js | 33 + dist/index.es132.js | 134 ++ dist/index.es133.js | 15 + dist/index.es134.js | 4 + dist/index.es135.js | 4 + dist/index.es136.js | 42 + dist/index.es137.js | 4 + dist/index.es138.js | 11 + dist/index.es139.js | 13 + dist/index.es14.js | 162 +- dist/index.es140.js | 6 + dist/index.es141.js | 73 + dist/index.es142.js | 94 + dist/index.es143.js | 9 + dist/index.es144.js | 10 + dist/index.es145.js | 4 + dist/index.es146.js | 24 + dist/index.es147.js | 12 + dist/index.es148.js | 59 + dist/index.es149.js | 22 + dist/index.es15.js | 100 +- dist/index.es150.js | 23 + dist/index.es151.js | 7 + dist/index.es152.js | 6 + dist/index.es153.js | 11 + dist/index.es154.js | 7 + dist/index.es155.js | 11 + dist/index.es156.js | 25 + dist/index.es157.js | 10 + dist/index.es158.js | 11 + dist/index.es159.js | 16 + dist/index.es16.js | 183 +- dist/index.es160.js | 22 + dist/index.es161.js | 28 + dist/index.es162.js | 6 + dist/index.es163.js | 87 + dist/index.es164.js | 93 + dist/index.es165.js | 183 ++ dist/index.es166.js | 35 + dist/index.es167.js | 7 + dist/index.es168.js | 13 + dist/index.es169.js | 52 + dist/index.es17.js | 309 +-- dist/index.es170.js | 5 + dist/index.es171.js | 10 + dist/index.es172.js | 14 + dist/index.es173.js | 21 + dist/index.es174.js | 17 + dist/index.es175.js | 76 + dist/index.es176.js | 20 + dist/index.es177.js | 13 + dist/index.es178.js | 29 + dist/index.es179.js | 29 + dist/index.es18.js | 202 +- dist/index.es180.js | 46 + dist/index.es181.js | 140 ++ dist/index.es182.js | 6 + dist/index.es183.js | 17 + dist/index.es184.js | 214 ++ dist/index.es185.js | 52 + dist/index.es186.js | 103 + dist/index.es187.js | 195 ++ dist/index.es188.js | 74 + dist/index.es189.js | 157 ++ dist/index.es19.js | 38 +- dist/index.es190.js | 15 + dist/index.es191.js | 45 + dist/index.es192.js | 6 + dist/index.es193.js | 15 + dist/index.es194.js | 9 + dist/index.es195.js | 9 + dist/index.es196.js | 8 + dist/index.es197.js | 13 + dist/index.es198.js | 10 + dist/index.es199.js | 16 + dist/index.es20.js | 125 +- dist/index.es200.js | 8 + dist/index.es201.js | 160 ++ dist/index.es202.js | 12 + dist/index.es203.js | 24 + dist/index.es204.js | 21 + dist/index.es205.js | 95 + dist/index.es206.js | 38 + dist/index.es207.js | 13 + dist/index.es208.js | 50 + dist/index.es209.js | 13 + dist/index.es21.js | 238 ++- dist/index.es210.js | 7 + dist/index.es211.js | 17 + dist/index.es212.js | 65 + dist/index.es213.js | 40 + dist/index.es214.js | 21 + dist/index.es215.js | 290 +++ dist/index.es216.js | 8 + dist/index.es217.js | 51 + dist/index.es218.js | 216 ++ dist/index.es219.js | 22 + dist/index.es22.js | 244 +-- dist/index.es220.js | 28 + dist/index.es221.js | 47 + dist/index.es222.js | 51 + dist/index.es223.js | 10 + dist/index.es224.js | 7 + dist/index.es225.js | 42 + dist/index.es226.js | 28 + dist/index.es227.js | 136 ++ dist/index.es228.js | 18 + dist/index.es229.js | 40 + dist/index.es23.js | 144 +- dist/index.es230.js | 20 + dist/index.es231.js | 14 + dist/index.es232.js | 32 + dist/index.es233.js | 7 + dist/index.es234.js | 6 + dist/index.es235.js | 7 + dist/index.es236.js | 15 + dist/index.es237.js | 10 + dist/index.es238.js | 4 + dist/index.es239.js | 81 + dist/index.es24.js | 231 +- dist/index.es240.js | 103 + dist/index.es241.js | 24 + dist/index.es242.js | 17 + dist/index.es243.js | 9 + dist/index.es244.js | 52 + dist/index.es245.js | 40 + dist/index.es246.js | 32 + dist/index.es247.js | 12 + dist/index.es248.js | 22 + dist/index.es249.js | 38 + dist/index.es25.js | 235 +- dist/index.es250.js | 13 + dist/index.es251.js | 6 + dist/index.es252.js | 84 + dist/index.es253.js | 14 + dist/index.es254.js | 16 + dist/index.es255.js | 20 + dist/index.es256.js | 6 + dist/index.es257.js | 28 + dist/index.es258.js | 8 + dist/index.es259.js | 68 + dist/index.es26.js | 106 +- dist/index.es260.js | 115 + dist/index.es261.js | 153 ++ dist/index.es262.js | 32 + dist/index.es263.js | 35 + dist/index.es264.js | 4 + dist/index.es265.js | 45 + dist/index.es266.js | 4 + dist/index.es267.js | 4 + dist/index.es268.js | 8 + dist/index.es269.js | 9 + dist/index.es27.js | 69 +- dist/index.es270.js | 14 + dist/index.es271.js | 27 + dist/index.es272.js | 93 + dist/index.es273.js | 14 + dist/index.es274.js | 5 + dist/index.es275.js | 13 + dist/index.es276.js | 187 ++ dist/index.es277.js | 27 + dist/index.es278.js | 35 + dist/index.es279.js | 61 + dist/index.es28.js | 59 +- dist/index.es280.js | 10 + dist/index.es281.js | 37 + dist/index.es282.js | 137 ++ dist/index.es283.js | 5 + dist/index.es284.js | 37 + dist/index.es285.js | 29 + dist/index.es286.js | 8 + dist/index.es287.js | 38 + dist/index.es288.js | 22 + dist/index.es289.js | 24 + dist/index.es29.js | 26 +- dist/index.es290.js | 11 + dist/index.es291.js | 6 + dist/index.es30.js | 218 +- dist/index.es31.js | 279 +-- dist/index.es32.js | 194 +- dist/index.es33.js | 115 +- dist/index.es34.js | 52 +- dist/index.es35.js | 45 +- dist/index.es36.js | 56 +- dist/index.es37.js | 72 +- dist/index.es38.js | 172 +- dist/index.es39.js | 144 +- dist/index.es4.js | 30 +- dist/index.es40.js | 105 +- dist/index.es41.js | 604 +++++- dist/index.es42.js | 551 +---- dist/index.es43.js | 62 +- dist/index.es44.js | 72 +- dist/index.es45.js | 39 +- dist/index.es46.js | 86 +- dist/index.es47.js | 95 +- dist/index.es48.js | 50 +- dist/index.es49.js | 66 +- dist/index.es5.js | 16 +- dist/index.es50.js | 85 +- dist/index.es51.js | 69 +- dist/index.es52.js | 49 +- dist/index.es53.js | 101 +- dist/index.es54.js | 15 +- dist/index.es55.js | 40 +- dist/index.es56.js | 38 + dist/index.es57.js | 14 + dist/index.es58.js | 96 + dist/index.es59.js | 28 + dist/index.es6.js | 59 +- dist/index.es60.js | 45 + dist/index.es61.js | 32 + dist/index.es62.js | 17 + dist/index.es63.js | 33 + dist/index.es64.js | 5 + dist/index.es65.js | 8 + dist/index.es66.js | 14 + dist/index.es67.js | 4 + dist/index.es68.js | 4 + dist/index.es69.js | 4 + dist/index.es7.js | 133 +- dist/index.es70.js | 4 + dist/index.es71.js | 4 + dist/index.es72.js | 4 + dist/index.es73.js | 4 + dist/index.es74.js | 4 + dist/index.es75.js | 4 + dist/index.es76.js | 4 + dist/index.es77.js | 4 + dist/index.es78.js | 4 + dist/index.es79.js | 10 + dist/index.es8.js | 121 +- dist/index.es80.js | 4 + dist/index.es81.js | 28 + dist/index.es82.js | 604 ++++++ dist/index.es83.js | 43 + dist/index.es84.js | 20 + dist/index.es85.js | 10 + dist/index.es86.js | 135 ++ dist/index.es87.js | 4 + dist/index.es88.js | 4 + dist/index.es89.js | 4 + dist/index.es9.js | 50 +- dist/index.es90.js | 6 + dist/index.es91.js | 296 +++ dist/index.es92.js | 10 + dist/index.es93.js | 92 + dist/index.es94.js | 38 + dist/index.es95.js | 10 + dist/index.es96.js | 44 + dist/index.es97.js | 104 + dist/index.es98.js | 15 + dist/index.es99.js | 27 + dist/package.json | 24 +- dist/providers/NextLinkProvider.d.ts.map | 2 +- dist/providers/SkeletonConfigProvider.d.ts | 16 - .../providers/SkeletonConfigProvider.d.ts.map | 1 - dist/providers/ThemeProvider.d.ts | 3 + dist/providers/ThemeProvider.d.ts.map | 1 + dist/providers/__ContextWrapper.d.ts | 8 - dist/providers/__ContextWrapper.d.ts.map | 1 - dist/styles/theme.d.ts | 9 - dist/styles/theme.d.ts.map | 1 - dist/ui-library.css | 2 +- package-lock.json | 821 ++++++- package.json | 24 +- src/_util/helpers.tsx | 36 + src/components/AvatarBubble/AvatarBubble.tsx | 18 + src/components/Breadcrumb/Breadcrumb.tsx | 104 + src/components/Breadcrumb/index.tsx | 3 + src/components/Checkbox/Checkbox.tsx | 21 + src/components/Checkbox/index.tsx | 3 + .../CopyToClipboard/CopyToClipboard.tsx | 134 ++ src/components/CopyToClipboard/index.tsx | 3 + src/components/DetailStat/DetailStat.tsx | 56 + src/components/DetailStat/index.tsx | 3 + src/components/Input/Input.tsx | 41 + src/components/Input/index.tsx | 3 + src/components/KeyFactCard/KeyFactCard.tsx | 17 + src/components/KeyFactCard/index.tsx | 3 + src/components/Notification/Notification.tsx | 72 + src/components/Notification/index.tsx | 3 + .../ProblemsOverview/ProblemsOverview.tsx | 72 + src/components/ProblemsOverview/index.tsx | 3 + src/components/RootLayout/RootLayout.tsx | 31 + src/components/RootLayout/index.tsx | 3 + src/components/Select/Select.tsx | 44 + src/components/Select/index.tsx | 3 + src/components/StatCard/StatCard.tsx | 46 + src/components/StatCard/index.tsx | 3 + src/components/sidenav/Sidenav.tsx | 194 ++ src/components/sidenav/SidenavDropdown.tsx | 55 + src/components/sidenav/index.tsx | 3 + src/components/ui/accordion.tsx | 12 +- src/components/ui/alert-dialog.tsx | 12 +- src/components/ui/alert.tsx | 10 +- src/components/ui/avatar.tsx | 13 +- src/components/ui/badge.tsx | 11 +- src/components/ui/breadcrumb.tsx | 26 +- src/components/ui/button.tsx | 22 +- src/components/ui/calendar.tsx | 177 +- src/components/ui/card.tsx | 23 +- src/components/ui/carousel.tsx | 31 +- src/components/ui/chart.tsx | 54 +- src/components/ui/checkbox.tsx | 6 +- src/components/ui/command.tsx | 35 +- src/components/ui/context-menu.tsx | 31 +- src/components/ui/dialog.tsx | 34 +- src/components/ui/drawer.tsx | 35 +- src/components/ui/dropdown-menu.tsx | 28 +- src/components/ui/form.tsx | 13 +- src/components/ui/hover-card.tsx | 2 +- src/components/ui/input-otp.tsx | 10 +- src/components/ui/input.tsx | 6 +- src/components/ui/label.tsx | 2 +- src/components/ui/menubar.tsx | 35 +- src/components/ui/navigation-menu.tsx | 36 +- src/components/ui/pagination.tsx | 24 +- src/components/ui/popover.tsx | 2 +- src/components/ui/progress.tsx | 7 +- src/components/ui/radio-group.tsx | 10 +- src/components/ui/resizable.tsx | 8 +- src/components/ui/scroll-area.tsx | 12 +- src/components/ui/select.tsx | 30 +- src/components/ui/separator.tsx | 4 +- src/components/ui/sheet.tsx | 34 +- src/components/ui/sidebar.tsx | 150 +- src/components/ui/skeleton.tsx | 4 +- src/components/ui/slider.tsx | 10 +- src/components/ui/sonner.tsx | 2 +- src/components/ui/switch.tsx | 4 +- src/components/ui/table.tsx | 25 +- src/components/ui/tabs.tsx | 16 +- src/components/ui/textarea.tsx | 2 +- src/components/ui/toggle-group.tsx | 4 +- src/components/ui/toggle.tsx | 13 +- src/components/ui/tooltip.tsx | 4 +- src/hooks/useTheme.tsx | 50 - src/icons/lagoon.svg | 24 + src/index.css | 6 +- src/index.ts | 31 +- src/providers/NextLinkProvider.tsx | 2 + src/providers/SkeletonConfigProvider.tsx | 38 - src/providers/ThemeProvider.tsx | 9 + src/providers/__ContextWrapper.tsx | 19 - src/stories/Breadcrumb.stories.tsx | 121 ++ src/stories/Checkbox.stories.tsx | 35 + src/stories/CopyToClipboard.stories.tsx | 82 + src/stories/DetailStat.stories.tsx | 49 + src/stories/Input.stories.tsx | 57 + src/stories/KeyFactCard.stories.tsx | 41 + src/stories/Notification.stories.tsx | 41 + src/stories/ProblemsOverview.stories.tsx | 93 + src/stories/RootLayout.stories.tsx | 44 + src/stories/Select.stories.tsx | 72 + src/stories/Sidenav.stories.tsx | 38 + src/stories/StatCard.stories.tsx | 91 + src/styles/theme.ts | 12 - vite.config.ts | 2 +- 774 files changed, 16683 insertions(+), 6275 deletions(-) create mode 100644 .storybook/decorators/withNextLink.tsx delete mode 100644 .storybook/globals.css create mode 100644 dist/components/AvatarBubble/AvatarBubble.d.ts create mode 100644 dist/components/AvatarBubble/AvatarBubble.d.ts.map create mode 100644 dist/components/Breadcrumb/Breadcrumb.d.ts create mode 100644 dist/components/Breadcrumb/Breadcrumb.d.ts.map create mode 100644 dist/components/Breadcrumb/index.d.ts create mode 100644 dist/components/Breadcrumb/index.d.ts.map create mode 100644 dist/components/Checkbox/Checkbox.d.ts create mode 100644 dist/components/Checkbox/Checkbox.d.ts.map create mode 100644 dist/components/Checkbox/index.d.ts create mode 100644 dist/components/Checkbox/index.d.ts.map create mode 100644 dist/components/CopyToClipboard/CopyToClipboard.d.ts create mode 100644 dist/components/CopyToClipboard/CopyToClipboard.d.ts.map create mode 100644 dist/components/CopyToClipboard/index.d.ts create mode 100644 dist/components/CopyToClipboard/index.d.ts.map create mode 100644 dist/components/DetailStat/DetailStat.d.ts create mode 100644 dist/components/DetailStat/DetailStat.d.ts.map create mode 100644 dist/components/DetailStat/index.d.ts create mode 100644 dist/components/DetailStat/index.d.ts.map create mode 100644 dist/components/Input/Input.d.ts create mode 100644 dist/components/Input/Input.d.ts.map create mode 100644 dist/components/Input/index.d.ts create mode 100644 dist/components/Input/index.d.ts.map create mode 100644 dist/components/KeyFactCard/KeyFactCard.d.ts create mode 100644 dist/components/KeyFactCard/KeyFactCard.d.ts.map create mode 100644 dist/components/KeyFactCard/index.d.ts create mode 100644 dist/components/KeyFactCard/index.d.ts.map create mode 100644 dist/components/Notification/Notification.d.ts create mode 100644 dist/components/Notification/Notification.d.ts.map create mode 100644 dist/components/Notification/index.d.ts create mode 100644 dist/components/Notification/index.d.ts.map create mode 100644 dist/components/ProblemsOverview/ProblemsOverview.d.ts create mode 100644 dist/components/ProblemsOverview/ProblemsOverview.d.ts.map create mode 100644 dist/components/ProblemsOverview/index.d.ts create mode 100644 dist/components/ProblemsOverview/index.d.ts.map create mode 100644 dist/components/RootLayout/RootLayout.d.ts create mode 100644 dist/components/RootLayout/RootLayout.d.ts.map create mode 100644 dist/components/RootLayout/index.d.ts create mode 100644 dist/components/RootLayout/index.d.ts.map create mode 100644 dist/components/Select/Select.d.ts create mode 100644 dist/components/Select/Select.d.ts.map create mode 100644 dist/components/Select/index.d.ts create mode 100644 dist/components/Select/index.d.ts.map create mode 100644 dist/components/StatCard/StatCard.d.ts create mode 100644 dist/components/StatCard/StatCard.d.ts.map create mode 100644 dist/components/StatCard/index.d.ts create mode 100644 dist/components/StatCard/index.d.ts.map create mode 100644 dist/components/sidenav/Sidenav.d.ts create mode 100644 dist/components/sidenav/Sidenav.d.ts.map create mode 100644 dist/components/sidenav/SidenavDropdown.d.ts create mode 100644 dist/components/sidenav/SidenavDropdown.d.ts.map create mode 100644 dist/components/sidenav/index.d.ts create mode 100644 dist/components/sidenav/index.d.ts.map delete mode 100644 dist/hooks/useTheme.d.ts delete mode 100644 dist/hooks/useTheme.d.ts.map create mode 100644 dist/index.cjs100.js create mode 100644 dist/index.cjs101.js create mode 100644 dist/index.cjs102.js create mode 100644 dist/index.cjs103.js create mode 100644 dist/index.cjs104.js create mode 100644 dist/index.cjs105.js create mode 100644 dist/index.cjs106.js create mode 100644 dist/index.cjs107.js create mode 100644 dist/index.cjs108.js create mode 100644 dist/index.cjs109.js create mode 100644 dist/index.cjs110.js create mode 100644 dist/index.cjs111.js create mode 100644 dist/index.cjs112.js create mode 100644 dist/index.cjs113.js create mode 100644 dist/index.cjs114.js create mode 100644 dist/index.cjs115.js create mode 100644 dist/index.cjs116.js create mode 100644 dist/index.cjs117.js create mode 100644 dist/index.cjs118.js create mode 100644 dist/index.cjs119.js create mode 100644 dist/index.cjs120.js create mode 100644 dist/index.cjs121.js create mode 100644 dist/index.cjs122.js create mode 100644 dist/index.cjs123.js create mode 100644 dist/index.cjs124.js create mode 100644 dist/index.cjs125.js create mode 100644 dist/index.cjs126.js create mode 100644 dist/index.cjs127.js create mode 100644 dist/index.cjs128.js create mode 100644 dist/index.cjs129.js create mode 100644 dist/index.cjs130.js create mode 100644 dist/index.cjs131.js create mode 100644 dist/index.cjs132.js create mode 100644 dist/index.cjs133.js create mode 100644 dist/index.cjs134.js create mode 100644 dist/index.cjs135.js create mode 100644 dist/index.cjs136.js create mode 100644 dist/index.cjs137.js create mode 100644 dist/index.cjs138.js create mode 100644 dist/index.cjs139.js create mode 100644 dist/index.cjs140.js create mode 100644 dist/index.cjs141.js create mode 100644 dist/index.cjs142.js create mode 100644 dist/index.cjs143.js create mode 100644 dist/index.cjs144.js create mode 100644 dist/index.cjs145.js create mode 100644 dist/index.cjs146.js create mode 100644 dist/index.cjs147.js create mode 100644 dist/index.cjs148.js create mode 100644 dist/index.cjs149.js create mode 100644 dist/index.cjs150.js create mode 100644 dist/index.cjs151.js create mode 100644 dist/index.cjs152.js create mode 100644 dist/index.cjs153.js create mode 100644 dist/index.cjs154.js create mode 100644 dist/index.cjs155.js create mode 100644 dist/index.cjs156.js create mode 100644 dist/index.cjs157.js create mode 100644 dist/index.cjs158.js create mode 100644 dist/index.cjs159.js create mode 100644 dist/index.cjs160.js create mode 100644 dist/index.cjs161.js create mode 100644 dist/index.cjs162.js create mode 100644 dist/index.cjs163.js create mode 100644 dist/index.cjs164.js create mode 100644 dist/index.cjs165.js create mode 100644 dist/index.cjs166.js create mode 100644 dist/index.cjs167.js create mode 100644 dist/index.cjs168.js create mode 100644 dist/index.cjs169.js create mode 100644 dist/index.cjs170.js create mode 100644 dist/index.cjs171.js create mode 100644 dist/index.cjs172.js create mode 100644 dist/index.cjs173.js create mode 100644 dist/index.cjs174.js create mode 100644 dist/index.cjs175.js create mode 100644 dist/index.cjs176.js create mode 100644 dist/index.cjs177.js create mode 100644 dist/index.cjs178.js create mode 100644 dist/index.cjs179.js create mode 100644 dist/index.cjs180.js create mode 100644 dist/index.cjs181.js create mode 100644 dist/index.cjs182.js create mode 100644 dist/index.cjs183.js create mode 100644 dist/index.cjs184.js create mode 100644 dist/index.cjs185.js create mode 100644 dist/index.cjs186.js create mode 100644 dist/index.cjs187.js create mode 100644 dist/index.cjs188.js create mode 100644 dist/index.cjs189.js create mode 100644 dist/index.cjs190.js create mode 100644 dist/index.cjs191.js create mode 100644 dist/index.cjs192.js create mode 100644 dist/index.cjs193.js create mode 100644 dist/index.cjs194.js create mode 100644 dist/index.cjs195.js create mode 100644 dist/index.cjs196.js create mode 100644 dist/index.cjs197.js create mode 100644 dist/index.cjs198.js create mode 100644 dist/index.cjs199.js create mode 100644 dist/index.cjs200.js create mode 100644 dist/index.cjs201.js create mode 100644 dist/index.cjs202.js create mode 100644 dist/index.cjs203.js create mode 100644 dist/index.cjs204.js create mode 100644 dist/index.cjs205.js create mode 100644 dist/index.cjs206.js create mode 100644 dist/index.cjs207.js create mode 100644 dist/index.cjs208.js create mode 100644 dist/index.cjs209.js create mode 100644 dist/index.cjs210.js create mode 100644 dist/index.cjs211.js create mode 100644 dist/index.cjs212.js create mode 100644 dist/index.cjs213.js create mode 100644 dist/index.cjs214.js create mode 100644 dist/index.cjs215.js create mode 100644 dist/index.cjs216.js create mode 100644 dist/index.cjs217.js create mode 100644 dist/index.cjs218.js create mode 100644 dist/index.cjs219.js create mode 100644 dist/index.cjs220.js create mode 100644 dist/index.cjs221.js create mode 100644 dist/index.cjs222.js create mode 100644 dist/index.cjs223.js create mode 100644 dist/index.cjs224.js create mode 100644 dist/index.cjs225.js create mode 100644 dist/index.cjs226.js create mode 100644 dist/index.cjs227.js create mode 100644 dist/index.cjs228.js create mode 100644 dist/index.cjs229.js create mode 100644 dist/index.cjs230.js create mode 100644 dist/index.cjs231.js create mode 100644 dist/index.cjs232.js create mode 100644 dist/index.cjs233.js create mode 100644 dist/index.cjs234.js create mode 100644 dist/index.cjs235.js create mode 100644 dist/index.cjs236.js create mode 100644 dist/index.cjs237.js create mode 100644 dist/index.cjs238.js create mode 100644 dist/index.cjs239.js create mode 100644 dist/index.cjs240.js create mode 100644 dist/index.cjs241.js create mode 100644 dist/index.cjs242.js create mode 100644 dist/index.cjs243.js create mode 100644 dist/index.cjs244.js create mode 100644 dist/index.cjs245.js create mode 100644 dist/index.cjs246.js create mode 100644 dist/index.cjs247.js create mode 100644 dist/index.cjs248.js create mode 100644 dist/index.cjs249.js create mode 100644 dist/index.cjs250.js create mode 100644 dist/index.cjs251.js create mode 100644 dist/index.cjs252.js create mode 100644 dist/index.cjs253.js create mode 100644 dist/index.cjs254.js create mode 100644 dist/index.cjs255.js create mode 100644 dist/index.cjs256.js create mode 100644 dist/index.cjs257.js create mode 100644 dist/index.cjs258.js create mode 100644 dist/index.cjs259.js create mode 100644 dist/index.cjs260.js create mode 100644 dist/index.cjs261.js create mode 100644 dist/index.cjs262.js create mode 100644 dist/index.cjs263.js create mode 100644 dist/index.cjs264.js create mode 100644 dist/index.cjs265.js create mode 100644 dist/index.cjs266.js create mode 100644 dist/index.cjs267.js create mode 100644 dist/index.cjs268.js create mode 100644 dist/index.cjs269.js create mode 100644 dist/index.cjs270.js create mode 100644 dist/index.cjs271.js create mode 100644 dist/index.cjs272.js create mode 100644 dist/index.cjs273.js create mode 100644 dist/index.cjs274.js create mode 100644 dist/index.cjs275.js create mode 100644 dist/index.cjs276.js create mode 100644 dist/index.cjs277.js create mode 100644 dist/index.cjs278.js create mode 100644 dist/index.cjs279.js create mode 100644 dist/index.cjs280.js create mode 100644 dist/index.cjs281.js create mode 100644 dist/index.cjs282.js create mode 100644 dist/index.cjs283.js create mode 100644 dist/index.cjs284.js create mode 100644 dist/index.cjs285.js create mode 100644 dist/index.cjs286.js create mode 100644 dist/index.cjs287.js create mode 100644 dist/index.cjs288.js create mode 100644 dist/index.cjs289.js create mode 100644 dist/index.cjs290.js create mode 100644 dist/index.cjs291.js create mode 100644 dist/index.cjs56.js create mode 100644 dist/index.cjs57.js create mode 100644 dist/index.cjs58.js create mode 100644 dist/index.cjs59.js create mode 100644 dist/index.cjs60.js create mode 100644 dist/index.cjs61.js create mode 100644 dist/index.cjs62.js create mode 100644 dist/index.cjs63.js create mode 100644 dist/index.cjs64.js create mode 100644 dist/index.cjs65.js create mode 100644 dist/index.cjs66.js create mode 100644 dist/index.cjs67.js create mode 100644 dist/index.cjs68.js create mode 100644 dist/index.cjs69.js create mode 100644 dist/index.cjs70.js create mode 100644 dist/index.cjs71.js create mode 100644 dist/index.cjs72.js create mode 100644 dist/index.cjs73.js create mode 100644 dist/index.cjs74.js create mode 100644 dist/index.cjs75.js create mode 100644 dist/index.cjs76.js create mode 100644 dist/index.cjs77.js create mode 100644 dist/index.cjs78.js create mode 100644 dist/index.cjs79.js create mode 100644 dist/index.cjs80.js create mode 100644 dist/index.cjs81.js create mode 100644 dist/index.cjs82.js create mode 100644 dist/index.cjs83.js create mode 100644 dist/index.cjs84.js create mode 100644 dist/index.cjs85.js create mode 100644 dist/index.cjs86.js create mode 100644 dist/index.cjs87.js create mode 100644 dist/index.cjs88.js create mode 100644 dist/index.cjs89.js create mode 100644 dist/index.cjs90.js create mode 100644 dist/index.cjs91.js create mode 100644 dist/index.cjs92.js create mode 100644 dist/index.cjs93.js create mode 100644 dist/index.cjs94.js create mode 100644 dist/index.cjs95.js create mode 100644 dist/index.cjs96.js create mode 100644 dist/index.cjs97.js create mode 100644 dist/index.cjs98.js create mode 100644 dist/index.cjs99.js create mode 100644 dist/index.es100.js create mode 100644 dist/index.es101.js create mode 100644 dist/index.es102.js create mode 100644 dist/index.es103.js create mode 100644 dist/index.es104.js create mode 100644 dist/index.es105.js create mode 100644 dist/index.es106.js create mode 100644 dist/index.es107.js create mode 100644 dist/index.es108.js create mode 100644 dist/index.es109.js create mode 100644 dist/index.es110.js create mode 100644 dist/index.es111.js create mode 100644 dist/index.es112.js create mode 100644 dist/index.es113.js create mode 100644 dist/index.es114.js create mode 100644 dist/index.es115.js create mode 100644 dist/index.es116.js create mode 100644 dist/index.es117.js create mode 100644 dist/index.es118.js create mode 100644 dist/index.es119.js create mode 100644 dist/index.es120.js create mode 100644 dist/index.es121.js create mode 100644 dist/index.es122.js create mode 100644 dist/index.es123.js create mode 100644 dist/index.es124.js create mode 100644 dist/index.es125.js create mode 100644 dist/index.es126.js create mode 100644 dist/index.es127.js create mode 100644 dist/index.es128.js create mode 100644 dist/index.es129.js create mode 100644 dist/index.es130.js create mode 100644 dist/index.es131.js create mode 100644 dist/index.es132.js create mode 100644 dist/index.es133.js create mode 100644 dist/index.es134.js create mode 100644 dist/index.es135.js create mode 100644 dist/index.es136.js create mode 100644 dist/index.es137.js create mode 100644 dist/index.es138.js create mode 100644 dist/index.es139.js create mode 100644 dist/index.es140.js create mode 100644 dist/index.es141.js create mode 100644 dist/index.es142.js create mode 100644 dist/index.es143.js create mode 100644 dist/index.es144.js create mode 100644 dist/index.es145.js create mode 100644 dist/index.es146.js create mode 100644 dist/index.es147.js create mode 100644 dist/index.es148.js create mode 100644 dist/index.es149.js create mode 100644 dist/index.es150.js create mode 100644 dist/index.es151.js create mode 100644 dist/index.es152.js create mode 100644 dist/index.es153.js create mode 100644 dist/index.es154.js create mode 100644 dist/index.es155.js create mode 100644 dist/index.es156.js create mode 100644 dist/index.es157.js create mode 100644 dist/index.es158.js create mode 100644 dist/index.es159.js create mode 100644 dist/index.es160.js create mode 100644 dist/index.es161.js create mode 100644 dist/index.es162.js create mode 100644 dist/index.es163.js create mode 100644 dist/index.es164.js create mode 100644 dist/index.es165.js create mode 100644 dist/index.es166.js create mode 100644 dist/index.es167.js create mode 100644 dist/index.es168.js create mode 100644 dist/index.es169.js create mode 100644 dist/index.es170.js create mode 100644 dist/index.es171.js create mode 100644 dist/index.es172.js create mode 100644 dist/index.es173.js create mode 100644 dist/index.es174.js create mode 100644 dist/index.es175.js create mode 100644 dist/index.es176.js create mode 100644 dist/index.es177.js create mode 100644 dist/index.es178.js create mode 100644 dist/index.es179.js create mode 100644 dist/index.es180.js create mode 100644 dist/index.es181.js create mode 100644 dist/index.es182.js create mode 100644 dist/index.es183.js create mode 100644 dist/index.es184.js create mode 100644 dist/index.es185.js create mode 100644 dist/index.es186.js create mode 100644 dist/index.es187.js create mode 100644 dist/index.es188.js create mode 100644 dist/index.es189.js create mode 100644 dist/index.es190.js create mode 100644 dist/index.es191.js create mode 100644 dist/index.es192.js create mode 100644 dist/index.es193.js create mode 100644 dist/index.es194.js create mode 100644 dist/index.es195.js create mode 100644 dist/index.es196.js create mode 100644 dist/index.es197.js create mode 100644 dist/index.es198.js create mode 100644 dist/index.es199.js create mode 100644 dist/index.es200.js create mode 100644 dist/index.es201.js create mode 100644 dist/index.es202.js create mode 100644 dist/index.es203.js create mode 100644 dist/index.es204.js create mode 100644 dist/index.es205.js create mode 100644 dist/index.es206.js create mode 100644 dist/index.es207.js create mode 100644 dist/index.es208.js create mode 100644 dist/index.es209.js create mode 100644 dist/index.es210.js create mode 100644 dist/index.es211.js create mode 100644 dist/index.es212.js create mode 100644 dist/index.es213.js create mode 100644 dist/index.es214.js create mode 100644 dist/index.es215.js create mode 100644 dist/index.es216.js create mode 100644 dist/index.es217.js create mode 100644 dist/index.es218.js create mode 100644 dist/index.es219.js create mode 100644 dist/index.es220.js create mode 100644 dist/index.es221.js create mode 100644 dist/index.es222.js create mode 100644 dist/index.es223.js create mode 100644 dist/index.es224.js create mode 100644 dist/index.es225.js create mode 100644 dist/index.es226.js create mode 100644 dist/index.es227.js create mode 100644 dist/index.es228.js create mode 100644 dist/index.es229.js create mode 100644 dist/index.es230.js create mode 100644 dist/index.es231.js create mode 100644 dist/index.es232.js create mode 100644 dist/index.es233.js create mode 100644 dist/index.es234.js create mode 100644 dist/index.es235.js create mode 100644 dist/index.es236.js create mode 100644 dist/index.es237.js create mode 100644 dist/index.es238.js create mode 100644 dist/index.es239.js create mode 100644 dist/index.es240.js create mode 100644 dist/index.es241.js create mode 100644 dist/index.es242.js create mode 100644 dist/index.es243.js create mode 100644 dist/index.es244.js create mode 100644 dist/index.es245.js create mode 100644 dist/index.es246.js create mode 100644 dist/index.es247.js create mode 100644 dist/index.es248.js create mode 100644 dist/index.es249.js create mode 100644 dist/index.es250.js create mode 100644 dist/index.es251.js create mode 100644 dist/index.es252.js create mode 100644 dist/index.es253.js create mode 100644 dist/index.es254.js create mode 100644 dist/index.es255.js create mode 100644 dist/index.es256.js create mode 100644 dist/index.es257.js create mode 100644 dist/index.es258.js create mode 100644 dist/index.es259.js create mode 100644 dist/index.es260.js create mode 100644 dist/index.es261.js create mode 100644 dist/index.es262.js create mode 100644 dist/index.es263.js create mode 100644 dist/index.es264.js create mode 100644 dist/index.es265.js create mode 100644 dist/index.es266.js create mode 100644 dist/index.es267.js create mode 100644 dist/index.es268.js create mode 100644 dist/index.es269.js create mode 100644 dist/index.es270.js create mode 100644 dist/index.es271.js create mode 100644 dist/index.es272.js create mode 100644 dist/index.es273.js create mode 100644 dist/index.es274.js create mode 100644 dist/index.es275.js create mode 100644 dist/index.es276.js create mode 100644 dist/index.es277.js create mode 100644 dist/index.es278.js create mode 100644 dist/index.es279.js create mode 100644 dist/index.es280.js create mode 100644 dist/index.es281.js create mode 100644 dist/index.es282.js create mode 100644 dist/index.es283.js create mode 100644 dist/index.es284.js create mode 100644 dist/index.es285.js create mode 100644 dist/index.es286.js create mode 100644 dist/index.es287.js create mode 100644 dist/index.es288.js create mode 100644 dist/index.es289.js create mode 100644 dist/index.es290.js create mode 100644 dist/index.es291.js create mode 100644 dist/index.es56.js create mode 100644 dist/index.es57.js create mode 100644 dist/index.es58.js create mode 100644 dist/index.es59.js create mode 100644 dist/index.es60.js create mode 100644 dist/index.es61.js create mode 100644 dist/index.es62.js create mode 100644 dist/index.es63.js create mode 100644 dist/index.es64.js create mode 100644 dist/index.es65.js create mode 100644 dist/index.es66.js create mode 100644 dist/index.es67.js create mode 100644 dist/index.es68.js create mode 100644 dist/index.es69.js create mode 100644 dist/index.es70.js create mode 100644 dist/index.es71.js create mode 100644 dist/index.es72.js create mode 100644 dist/index.es73.js create mode 100644 dist/index.es74.js create mode 100644 dist/index.es75.js create mode 100644 dist/index.es76.js create mode 100644 dist/index.es77.js create mode 100644 dist/index.es78.js create mode 100644 dist/index.es79.js create mode 100644 dist/index.es80.js create mode 100644 dist/index.es81.js create mode 100644 dist/index.es82.js create mode 100644 dist/index.es83.js create mode 100644 dist/index.es84.js create mode 100644 dist/index.es85.js create mode 100644 dist/index.es86.js create mode 100644 dist/index.es87.js create mode 100644 dist/index.es88.js create mode 100644 dist/index.es89.js create mode 100644 dist/index.es90.js create mode 100644 dist/index.es91.js create mode 100644 dist/index.es92.js create mode 100644 dist/index.es93.js create mode 100644 dist/index.es94.js create mode 100644 dist/index.es95.js create mode 100644 dist/index.es96.js create mode 100644 dist/index.es97.js create mode 100644 dist/index.es98.js create mode 100644 dist/index.es99.js delete mode 100644 dist/providers/SkeletonConfigProvider.d.ts delete mode 100644 dist/providers/SkeletonConfigProvider.d.ts.map create mode 100644 dist/providers/ThemeProvider.d.ts create mode 100644 dist/providers/ThemeProvider.d.ts.map delete mode 100644 dist/providers/__ContextWrapper.d.ts delete mode 100644 dist/providers/__ContextWrapper.d.ts.map delete mode 100644 dist/styles/theme.d.ts delete mode 100644 dist/styles/theme.d.ts.map create mode 100644 src/components/AvatarBubble/AvatarBubble.tsx create mode 100644 src/components/Breadcrumb/Breadcrumb.tsx create mode 100644 src/components/Breadcrumb/index.tsx create mode 100644 src/components/Checkbox/Checkbox.tsx create mode 100644 src/components/Checkbox/index.tsx create mode 100644 src/components/CopyToClipboard/CopyToClipboard.tsx create mode 100644 src/components/CopyToClipboard/index.tsx create mode 100644 src/components/DetailStat/DetailStat.tsx create mode 100644 src/components/DetailStat/index.tsx create mode 100644 src/components/Input/Input.tsx create mode 100644 src/components/Input/index.tsx create mode 100644 src/components/KeyFactCard/KeyFactCard.tsx create mode 100644 src/components/KeyFactCard/index.tsx create mode 100644 src/components/Notification/Notification.tsx create mode 100644 src/components/Notification/index.tsx create mode 100644 src/components/ProblemsOverview/ProblemsOverview.tsx create mode 100644 src/components/ProblemsOverview/index.tsx create mode 100644 src/components/RootLayout/RootLayout.tsx create mode 100644 src/components/RootLayout/index.tsx create mode 100644 src/components/Select/Select.tsx create mode 100644 src/components/Select/index.tsx create mode 100644 src/components/StatCard/StatCard.tsx create mode 100644 src/components/StatCard/index.tsx create mode 100644 src/components/sidenav/Sidenav.tsx create mode 100644 src/components/sidenav/SidenavDropdown.tsx create mode 100644 src/components/sidenav/index.tsx delete mode 100644 src/hooks/useTheme.tsx create mode 100644 src/icons/lagoon.svg delete mode 100644 src/providers/SkeletonConfigProvider.tsx create mode 100644 src/providers/ThemeProvider.tsx delete mode 100644 src/providers/__ContextWrapper.tsx create mode 100644 src/stories/Breadcrumb.stories.tsx create mode 100644 src/stories/Checkbox.stories.tsx create mode 100644 src/stories/CopyToClipboard.stories.tsx create mode 100644 src/stories/DetailStat.stories.tsx create mode 100644 src/stories/Input.stories.tsx create mode 100644 src/stories/KeyFactCard.stories.tsx create mode 100644 src/stories/Notification.stories.tsx create mode 100644 src/stories/ProblemsOverview.stories.tsx create mode 100644 src/stories/RootLayout.stories.tsx create mode 100644 src/stories/Select.stories.tsx create mode 100644 src/stories/Sidenav.stories.tsx create mode 100644 src/stories/StatCard.stories.tsx delete mode 100644 src/styles/theme.ts diff --git a/.storybook/decorators/withNextLink.tsx b/.storybook/decorators/withNextLink.tsx new file mode 100644 index 00000000..a3d3b983 --- /dev/null +++ b/.storybook/decorators/withNextLink.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Decorator } from '@storybook/react'; + +import { LinkProvider } from '../../src/providers/NextLinkProvider'; + +const withNextLink: Decorator = (StoryFn) => { + // consumers of the library pass in actual React/Next.js links + const FakeLink = function ({ children }) { + return ( + + {children} + + ); + }; + return ( + + + + ); +}; +export default withNextLink; diff --git a/.storybook/globals.css b/.storybook/globals.css deleted file mode 100644 index 25866e0c..00000000 --- a/.storybook/globals.css +++ /dev/null @@ -1,1891 +0,0 @@ -/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */ -@layer properties { - @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or - ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) { - *, - :before, - :after, - ::backdrop { - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-translate-z: 0; - --tw-space-x-reverse: 0; - --tw-border-style: solid; - --tw-leading: initial; - --tw-font-weight: initial; - --tw-tracking: initial; - --tw-ordinal: initial; - --tw-slashed-zero: initial; - --tw-numeric-figure: initial; - --tw-numeric-spacing: initial; - --tw-numeric-fraction: initial; - --tw-shadow: 0 0 #0000; - --tw-shadow-color: initial; - --tw-shadow-alpha: 100%; - --tw-inset-shadow: 0 0 #0000; - --tw-inset-shadow-color: initial; - --tw-inset-shadow-alpha: 100%; - --tw-ring-color: initial; - --tw-ring-shadow: 0 0 #0000; - --tw-inset-ring-color: initial; - --tw-inset-ring-shadow: 0 0 #0000; - --tw-ring-inset: initial; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-offset-shadow: 0 0 #0000; - --tw-duration: initial; - --tw-ease: initial; - } - } -} -@layer theme { - :root, - :host { - --lib-font-sans: - ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - --lib-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; - --lib-color-black: #000; - --lib-color-white: #fff; - --lib-spacing: 0.25rem; - --lib-text-xs: 0.75rem; - --lib-text-xs--line-height: calc(1 / 0.75); - --lib-text-sm: 0.875rem; - --lib-text-sm--line-height: calc(1.25 / 0.875); - --lib-text-base: 1rem; - --lib-text-base--line-height: 1.5; - --lib-text-lg: 1.125rem; - --lib-text-lg--line-height: calc(1.75 / 1.125); - --lib-font-weight-normal: 400; - --lib-font-weight-medium: 500; - --lib-font-weight-semibold: 600; - --lib-tracking-tight: -0.025em; - --lib-tracking-widest: 0.1em; - --lib-radius-xs: 0.125rem; - --lib-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); - --lib-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; - --lib-aspect-video: 16/9; - --lib-default-transition-duration: 0.15s; - --lib-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - --lib-default-font-family: var(--lib-font-sans); - --lib-default-mono-font-family: var(--lib-font-mono); - } -} -@layer base { - *, - :after, - :before, - ::backdrop { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0; - } - ::file-selector-button { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0; - } - html, - :host { - -webkit-text-size-adjust: 100%; - tab-size: 4; - line-height: 1.5; - font-family: var( - --lib-default-font-family, - ui-sans-serif, - system-ui, - sans-serif, - 'Apple Color Emoji', - 'Segoe UI Emoji', - 'Segoe UI Symbol', - 'Noto Color Emoji' - ); - font-feature-settings: var(--lib-default-font-feature-settings, normal); - font-variation-settings: var(--lib-default-font-variation-settings, normal); - -webkit-tap-highlight-color: transparent; - } - hr { - height: 0; - color: inherit; - border-top-width: 1px; - } - abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - h1, - h2, - h3, - h4, - h5, - h6 { - font-size: inherit; - font-weight: inherit; - } - a { - color: inherit; - -webkit-text-decoration: inherit; - text-decoration: inherit; - } - b, - strong { - font-weight: bolder; - } - code, - kbd, - samp, - pre { - font-family: var( - --lib-default-mono-font-family, - ui-monospace, - SFMono-Regular, - Menlo, - Monaco, - Consolas, - 'Liberation Mono', - 'Courier New', - monospace - ); - font-feature-settings: var(--lib-default-mono-font-feature-settings, normal); - font-variation-settings: var(--lib-default-mono-font-variation-settings, normal); - font-size: 1em; - } - small { - font-size: 80%; - } - sub, - sup { - vertical-align: baseline; - font-size: 75%; - line-height: 0; - position: relative; - } - sub { - bottom: -0.25em; - } - sup { - top: -0.5em; - } - table { - text-indent: 0; - border-color: inherit; - border-collapse: collapse; - } - :-moz-focusring { - outline: auto; - } - progress { - vertical-align: baseline; - } - summary { - display: list-item; - } - ol, - ul, - menu { - list-style: none; - } - img, - svg, - video, - canvas, - audio, - iframe, - embed, - object { - vertical-align: middle; - display: block; - } - img, - video { - max-width: 100%; - height: auto; - } - button, - input, - select, - optgroup, - textarea { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0; - } - ::file-selector-button { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0; - } - :where(select:is([multiple], [size])) optgroup { - font-weight: bolder; - } - :where(select:is([multiple], [size])) optgroup option { - padding-inline-start: 20px; - } - ::file-selector-button { - margin-inline-end: 4px; - } - ::placeholder { - opacity: 1; - } - @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) { - ::placeholder { - color: currentColor; - } - @supports (color: color-mix(in lab, red, red)) { - ::placeholder { - color: color-mix(in oklab, currentcolor 50%, transparent); - } - } - } - textarea { - resize: vertical; - } - ::-webkit-search-decoration { - -webkit-appearance: none; - } - ::-webkit-date-and-time-value { - min-height: 1lh; - text-align: inherit; - } - ::-webkit-datetime-edit { - display: inline-flex; - } - ::-webkit-datetime-edit-fields-wrapper { - padding: 0; - } - ::-webkit-datetime-edit { - padding-block: 0; - } - ::-webkit-datetime-edit-year-field { - padding-block: 0; - } - ::-webkit-datetime-edit-month-field { - padding-block: 0; - } - ::-webkit-datetime-edit-day-field { - padding-block: 0; - } - ::-webkit-datetime-edit-hour-field { - padding-block: 0; - } - ::-webkit-datetime-edit-minute-field { - padding-block: 0; - } - ::-webkit-datetime-edit-second-field { - padding-block: 0; - } - ::-webkit-datetime-edit-millisecond-field { - padding-block: 0; - } - ::-webkit-datetime-edit-meridiem-field { - padding-block: 0; - } - :-moz-ui-invalid { - box-shadow: none; - } - button, - input:where([type='button'], [type='reset'], [type='submit']) { - appearance: button; - } - ::file-selector-button { - appearance: button; - } - ::-webkit-inner-spin-button { - height: auto; - } - ::-webkit-outer-spin-button { - height: auto; - } - [hidden]:where(:not([hidden='until-found'])) { - display: none !important; - } - * { - border-color: var(--border); - outline-color: var(--ring); - } - @supports (color: color-mix(in lab, red, red)) { - * { - outline-color: color-mix(in oklab, var(--ring) 50%, transparent); - } - } - body { - background-color: var(--background); - color: var(--foreground); - } -} -@layer components; -@layer utilities { - .lib\:\@container\/card-header { - container: card-header/inline-size; - } - .lib\:pointer-events-none { - pointer-events: none; - } - .lib\:invisible { - visibility: hidden; - } - .lib\:sr-only { - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - position: absolute; - overflow: hidden; - } - .lib\:absolute { - position: absolute; - } - .lib\:fixed { - position: fixed; - } - .lib\:relative { - position: relative; - } - .lib\:inset-0 { - inset: calc(var(--lib-spacing) * 0); - } - .lib\:inset-x-0 { - inset-inline: calc(var(--lib-spacing) * 0); - } - .lib\:inset-y-0 { - inset-block: calc(var(--lib-spacing) * 0); - } - .lib\:-top-12 { - top: calc(var(--lib-spacing) * -12); - } - .lib\:top-0 { - top: calc(var(--lib-spacing) * 0); - } - .lib\:top-1\.5 { - top: calc(var(--lib-spacing) * 1.5); - } - .lib\:top-1\/2 { - top: 50%; - } - .lib\:top-3\.5 { - top: calc(var(--lib-spacing) * 3.5); - } - .lib\:top-4 { - top: calc(var(--lib-spacing) * 4); - } - .lib\:top-\[1px\] { - top: 1px; - } - .lib\:top-\[50\%\] { - top: 50%; - } - .lib\:top-\[60\%\] { - top: 60%; - } - .lib\:top-full { - top: 100%; - } - .lib\:-right-12 { - right: calc(var(--lib-spacing) * -12); - } - .lib\:right-0 { - right: calc(var(--lib-spacing) * 0); - } - .lib\:right-1 { - right: calc(var(--lib-spacing) * 1); - } - .lib\:right-2 { - right: calc(var(--lib-spacing) * 2); - } - .lib\:right-3 { - right: calc(var(--lib-spacing) * 3); - } - .lib\:right-4 { - right: calc(var(--lib-spacing) * 4); - } - .lib\:-bottom-12 { - bottom: calc(var(--lib-spacing) * -12); - } - .lib\:bottom-0 { - bottom: calc(var(--lib-spacing) * 0); - } - .lib\:-left-12 { - left: calc(var(--lib-spacing) * -12); - } - .lib\:left-0 { - left: calc(var(--lib-spacing) * 0); - } - .lib\:left-1 { - left: calc(var(--lib-spacing) * 1); - } - .lib\:left-1\/2 { - left: 50%; - } - .lib\:left-2 { - left: calc(var(--lib-spacing) * 2); - } - .lib\:left-\[50\%\] { - left: 50%; - } - .lib\:isolate { - isolation: isolate; - } - .lib\:z-10 { - z-index: 10; - } - .lib\:z-20 { - z-index: 20; - } - .lib\:z-50 { - z-index: 50; - } - .lib\:z-\[1\] { - z-index: 1; - } - .lib\:col-start-2 { - grid-column-start: 2; - } - .lib\:row-span-2 { - grid-row: span 2 / span 2; - } - .lib\:row-start-1 { - grid-row-start: 1; - } - .lib\:-mx-1 { - margin-inline: calc(var(--lib-spacing) * -1); - } - .lib\:mx-2 { - margin-inline: calc(var(--lib-spacing) * 2); - } - .lib\:mx-3\.5 { - margin-inline: calc(var(--lib-spacing) * 3.5); - } - .lib\:mx-auto { - margin-inline: auto; - } - .lib\:my-1 { - margin-block: calc(var(--lib-spacing) * 1); - } - .lib\:-mt-4 { - margin-top: calc(var(--lib-spacing) * -4); - } - .lib\:mt-1\.5 { - margin-top: calc(var(--lib-spacing) * 1.5); - } - .lib\:mt-2 { - margin-top: calc(var(--lib-spacing) * 2); - } - .lib\:mt-4 { - margin-top: calc(var(--lib-spacing) * 4); - } - .lib\:mt-auto { - margin-top: auto; - } - .lib\:-ml-4 { - margin-left: calc(var(--lib-spacing) * -4); - } - .lib\:ml-1 { - margin-left: calc(var(--lib-spacing) * 1); - } - .lib\:ml-auto { - margin-left: auto; - } - .lib\:line-clamp-1 { - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - } - .lib\:block { - display: block; - } - .lib\:flex { - display: flex; - } - .lib\:grid { - display: grid; - } - .lib\:hidden { - display: none; - } - .lib\:inline-flex { - display: inline-flex; - } - .lib\:field-sizing-content { - field-sizing: content; - } - .lib\:aspect-square { - aspect-ratio: 1; - } - .lib\:aspect-video { - aspect-ratio: var(--lib-aspect-video); - } - .lib\:size-2 { - width: calc(var(--lib-spacing) * 2); - height: calc(var(--lib-spacing) * 2); - } - .lib\:size-2\.5 { - width: calc(var(--lib-spacing) * 2.5); - height: calc(var(--lib-spacing) * 2.5); - } - .lib\:size-3 { - width: calc(var(--lib-spacing) * 3); - height: calc(var(--lib-spacing) * 3); - } - .lib\:size-3\.5 { - width: calc(var(--lib-spacing) * 3.5); - height: calc(var(--lib-spacing) * 3.5); - } - .lib\:size-4 { - width: calc(var(--lib-spacing) * 4); - height: calc(var(--lib-spacing) * 4); - } - .lib\:size-7 { - width: calc(var(--lib-spacing) * 7); - height: calc(var(--lib-spacing) * 7); - } - .lib\:size-8 { - width: calc(var(--lib-spacing) * 8); - height: calc(var(--lib-spacing) * 8); - } - .lib\:size-9 { - width: calc(var(--lib-spacing) * 9); - height: calc(var(--lib-spacing) * 9); - } - .lib\:size-full { - width: 100%; - height: 100%; - } - .lib\:h-1\.5 { - height: calc(var(--lib-spacing) * 1.5); - } - .lib\:h-2 { - height: calc(var(--lib-spacing) * 2); - } - .lib\:h-2\.5 { - height: calc(var(--lib-spacing) * 2.5); - } - .lib\:h-4 { - height: calc(var(--lib-spacing) * 4); - } - .lib\:h-5 { - height: calc(var(--lib-spacing) * 5); - } - .lib\:h-7 { - height: calc(var(--lib-spacing) * 7); - } - .lib\:h-8 { - height: calc(var(--lib-spacing) * 8); - } - .lib\:h-9 { - height: calc(var(--lib-spacing) * 9); - } - .lib\:h-10 { - height: calc(var(--lib-spacing) * 10); - } - .lib\:h-12 { - height: calc(var(--lib-spacing) * 12); - } - .lib\:h-\[1\.15rem\] { - height: 1.15rem; - } - .lib\:h-\[calc\(100\%-1px\)\] { - height: calc(100% - 1px); - } - .lib\:h-\[var\(--radix-navigation-menu-viewport-height\)\] { - height: var(--radix-navigation-menu-viewport-height); - } - .lib\:h-\[var\(--radix-select-trigger-height\)\] { - height: var(--radix-select-trigger-height); - } - .lib\:h-auto { - height: auto; - } - .lib\:h-full { - height: 100%; - } - .lib\:h-px { - height: 1px; - } - .lib\:h-svh { - height: 100svh; - } - .lib\:max-h-\(--radix-context-menu-content-available-height\) { - max-height: var(--radix-context-menu-content-available-height); - } - .lib\:max-h-\(--radix-dropdown-menu-content-available-height\) { - max-height: var(--radix-dropdown-menu-content-available-height); - } - .lib\:max-h-\(--radix-select-content-available-height\) { - max-height: var(--radix-select-content-available-height); - } - .lib\:max-h-\[300px\] { - max-height: 300px; - } - .lib\:min-h-0 { - min-height: calc(var(--lib-spacing) * 0); - } - .lib\:min-h-4 { - min-height: calc(var(--lib-spacing) * 4); - } - .lib\:min-h-16 { - min-height: calc(var(--lib-spacing) * 16); - } - .lib\:min-h-svh { - min-height: 100svh; - } - .lib\:w-\(--sidebar-width\) { - width: var(--sidebar-width); - } - .lib\:w-2 { - width: calc(var(--lib-spacing) * 2); - } - .lib\:w-2\.5 { - width: calc(var(--lib-spacing) * 2.5); - } - .lib\:w-3 { - width: calc(var(--lib-spacing) * 3); - } - .lib\:w-3\/4 { - width: 75%; - } - .lib\:w-4 { - width: calc(var(--lib-spacing) * 4); - } - .lib\:w-5 { - width: calc(var(--lib-spacing) * 5); - } - .lib\:w-8 { - width: calc(var(--lib-spacing) * 8); - } - .lib\:w-9 { - width: calc(var(--lib-spacing) * 9); - } - .lib\:w-64 { - width: calc(var(--lib-spacing) * 64); - } - .lib\:w-72 { - width: calc(var(--lib-spacing) * 72); - } - .lib\:w-\[100px\] { - width: 100px; - } - .lib\:w-auto { - width: auto; - } - .lib\:w-fit { - width: fit-content; - } - .lib\:w-full { - width: 100%; - } - .lib\:w-max { - width: max-content; - } - .lib\:w-px { - width: 1px; - } - .lib\:max-w-\(--skeleton-width\) { - max-width: var(--skeleton-width); - } - .lib\:max-w-\[calc\(100\%-2rem\)\] { - max-width: calc(100% - 2rem); - } - .lib\:max-w-max { - max-width: max-content; - } - .lib\:min-w-0 { - min-width: calc(var(--lib-spacing) * 0); - } - .lib\:min-w-5 { - min-width: calc(var(--lib-spacing) * 5); - } - .lib\:min-w-8 { - min-width: calc(var(--lib-spacing) * 8); - } - .lib\:min-w-9 { - min-width: calc(var(--lib-spacing) * 9); - } - .lib\:min-w-10 { - min-width: calc(var(--lib-spacing) * 10); - } - .lib\:min-w-\[8rem\] { - min-width: 8rem; - } - .lib\:min-w-\[12rem\] { - min-width: 12rem; - } - .lib\:min-w-\[var\(--radix-select-trigger-width\)\] { - min-width: var(--radix-select-trigger-width); - } - .lib\:flex-1 { - flex: 1; - } - .lib\:shrink-0 { - flex-shrink: 0; - } - .lib\:grow { - flex-grow: 1; - } - .lib\:grow-0 { - flex-grow: 0; - } - .lib\:basis-full { - flex-basis: 100%; - } - .lib\:caption-bottom { - caption-side: bottom; - } - .lib\:border-collapse { - border-collapse: collapse; - } - .lib\:origin-\(--radix-context-menu-content-transform-origin\) { - transform-origin: var(--radix-context-menu-content-transform-origin); - } - .lib\:origin-\(--radix-dropdown-menu-content-transform-origin\) { - transform-origin: var(--radix-dropdown-menu-content-transform-origin); - } - .lib\:origin-\(--radix-hover-card-content-transform-origin\) { - transform-origin: var(--radix-hover-card-content-transform-origin); - } - .lib\:origin-\(--radix-menubar-content-transform-origin\) { - transform-origin: var(--radix-menubar-content-transform-origin); - } - .lib\:origin-\(--radix-popover-content-transform-origin\) { - transform-origin: var(--radix-popover-content-transform-origin); - } - .lib\:origin-\(--radix-select-content-transform-origin\) { - transform-origin: var(--radix-select-content-transform-origin); - } - .lib\:origin-\(--radix-tooltip-content-transform-origin\) { - transform-origin: var(--radix-tooltip-content-transform-origin); - } - .lib\:-translate-x-1\/2 { - --tw-translate-x: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:-translate-x-px { - --tw-translate-x: -1px; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-x-\[-50\%\] { - --tw-translate-x: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-x-px { - --tw-translate-x: 1px; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:-translate-y-1\/2 { - --tw-translate-y: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-0\.5 { - --tw-translate-y: calc(var(--lib-spacing) * 0.5); - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-\[-50\%\] { - --tw-translate-y: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-\[calc\(-50\%_-_2px\)\] { - --tw-translate-y: calc(-50% - 2px); - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:rotate-45 { - rotate: 45deg; - } - .lib\:rotate-90 { - rotate: 90deg; - } - .lib\:animate-caret-blink { - animation: 1.25s ease-out infinite caret-blink; - } - .lib\:animate-in { - animation: enter var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:animate-pulse { - animation: var(--lib-animate-pulse); - } - .lib\:cursor-default { - cursor: default; - } - .lib\:touch-none { - touch-action: none; - } - .lib\:scroll-my-1 { - scroll-margin-block: calc(var(--lib-spacing) * 1); - } - .lib\:scroll-py-1 { - scroll-padding-block: calc(var(--lib-spacing) * 1); - } - .lib\:list-none { - list-style-type: none; - } - .lib\:auto-rows-min { - grid-auto-rows: min-content; - } - .lib\:grid-cols-\[0_1fr\] { - grid-template-columns: 0 1fr; - } - .lib\:grid-rows-\[auto_auto\] { - grid-template-rows: auto auto; - } - .lib\:flex-col { - flex-direction: column; - } - .lib\:flex-col-reverse { - flex-direction: column-reverse; - } - .lib\:flex-row { - flex-direction: row; - } - .lib\:flex-wrap { - flex-wrap: wrap; - } - .lib\:items-center { - align-items: center; - } - .lib\:items-end { - align-items: flex-end; - } - .lib\:items-start { - align-items: flex-start; - } - .lib\:items-stretch { - align-items: stretch; - } - .lib\:justify-between { - justify-content: space-between; - } - .lib\:justify-center { - justify-content: center; - } - .lib\:justify-items-start { - justify-items: start; - } - .lib\:gap-1 { - gap: calc(var(--lib-spacing) * 1); - } - .lib\:gap-1\.5 { - gap: calc(var(--lib-spacing) * 1.5); - } - .lib\:gap-2 { - gap: calc(var(--lib-spacing) * 2); - } - .lib\:gap-3 { - gap: calc(var(--lib-spacing) * 3); - } - .lib\:gap-4 { - gap: calc(var(--lib-spacing) * 4); - } - .lib\:gap-6 { - gap: calc(var(--lib-spacing) * 6); - } - :where(.lib\:space-x-1 > :not(:last-child)) { - --tw-space-x-reverse: 0; - margin-inline-start: calc(calc(var(--lib-spacing) * 1) * var(--tw-space-x-reverse)); - margin-inline-end: calc(calc(var(--lib-spacing) * 1) * calc(1 - var(--tw-space-x-reverse))); - } - .lib\:gap-y-0\.5 { - row-gap: calc(var(--lib-spacing) * 0.5); - } - .lib\:self-start { - align-self: flex-start; - } - .lib\:justify-self-end { - justify-self: flex-end; - } - .lib\:overflow-auto { - overflow: auto; - } - .lib\:overflow-hidden { - overflow: hidden; - } - .lib\:overflow-x-auto { - overflow-x: auto; - } - .lib\:overflow-x-hidden { - overflow-x: hidden; - } - .lib\:overflow-y-auto { - overflow-y: auto; - } - .lib\:rounded-\[2px\] { - border-radius: 2px; - } - .lib\:rounded-\[4px\] { - border-radius: 4px; - } - .lib\:rounded-\[inherit\] { - border-radius: inherit; - } - .lib\:rounded-full { - border-radius: 3.40282e38px; - } - .lib\:rounded-lg { - border-radius: var(--radius); - } - .lib\:rounded-md { - border-radius: calc(var(--radius) - 2px); - } - .lib\:rounded-none { - border-radius: 0; - } - .lib\:rounded-sm { - border-radius: calc(var(--radius) - 4px); - } - .lib\:rounded-xl { - border-radius: calc(var(--radius) + 4px); - } - .lib\:rounded-xs { - border-radius: var(--lib-radius-xs); - } - .lib\:rounded-tl-sm { - border-top-left-radius: calc(var(--radius) - 4px); - } - .lib\:border { - border-style: var(--tw-border-style); - border-width: 1px; - } - .lib\:border-y { - border-block-style: var(--tw-border-style); - border-block-width: 1px; - } - .lib\:border-t { - border-top-style: var(--tw-border-style); - border-top-width: 1px; - } - .lib\:border-r { - border-right-style: var(--tw-border-style); - border-right-width: 1px; - } - .lib\:border-b { - border-bottom-style: var(--tw-border-style); - border-bottom-width: 1px; - } - .lib\:border-l { - border-left-style: var(--tw-border-style); - border-left-width: 1px; - } - .lib\:border-\(--color-border\) { - border-color: var(--color-border); - } - .lib\:border-border\/50 { - border-color: var(--border); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:border-border\/50 { - border-color: color-mix(in oklab, var(--border) 50%, transparent); - } - } - .lib\:border-input { - border-color: var(--input); - } - .lib\:border-primary { - border-color: var(--primary); - } - .lib\:border-sidebar-border { - border-color: var(--sidebar-border); - } - .lib\:border-transparent { - border-color: #0000; - } - .lib\:border-t-transparent { - border-top-color: #0000; - } - .lib\:border-l-transparent { - border-left-color: #0000; - } - .lib\:bg-\(--color-bg\) { - background-color: var(--color-bg); - } - .lib\:bg-accent { - background-color: var(--accent); - } - .lib\:bg-background { - background-color: var(--background); - } - .lib\:bg-black\/50 { - background-color: var(--lib-color-black); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-black\/50 { - background-color: color-mix(in oklab, var(--lib-color-black) 50%, transparent); - } - } - .lib\:bg-border { - background-color: var(--border); - } - .lib\:bg-card { - background-color: var(--card); - } - .lib\:bg-destructive { - background-color: var(--destructive); - } - .lib\:bg-foreground { - background-color: var(--foreground); - } - .lib\:bg-muted, - .lib\:bg-muted\/50 { - background-color: var(--muted); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-muted\/50 { - background-color: color-mix(in oklab, var(--muted) 50%, transparent); - } - } - .lib\:bg-popover { - background-color: var(--popover); - } - .lib\:bg-primary, - .lib\:bg-primary\/20 { - background-color: var(--primary); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-primary\/20 { - background-color: color-mix(in oklab, var(--primary) 20%, transparent); - } - } - .lib\:bg-secondary { - background-color: var(--secondary); - } - .lib\:bg-sidebar { - background-color: var(--sidebar); - } - .lib\:bg-sidebar-border { - background-color: var(--sidebar-border); - } - .lib\:bg-transparent { - background-color: #0000; - } - .lib\:fill-current { - fill: currentColor; - } - .lib\:fill-primary { - fill: var(--primary); - } - .lib\:p-0 { - padding: calc(var(--lib-spacing) * 0); - } - .lib\:p-1 { - padding: calc(var(--lib-spacing) * 1); - } - .lib\:p-2 { - padding: calc(var(--lib-spacing) * 2); - } - .lib\:p-3 { - padding: calc(var(--lib-spacing) * 3); - } - .lib\:p-4 { - padding: calc(var(--lib-spacing) * 4); - } - .lib\:p-6 { - padding: calc(var(--lib-spacing) * 6); - } - .lib\:p-\[3px\] { - padding: 3px; - } - .lib\:p-px { - padding: 1px; - } - .lib\:px-1 { - padding-inline: calc(var(--lib-spacing) * 1); - } - .lib\:px-1\.5 { - padding-inline: calc(var(--lib-spacing) * 1.5); - } - .lib\:px-2 { - padding-inline: calc(var(--lib-spacing) * 2); - } - .lib\:px-2\.5 { - padding-inline: calc(var(--lib-spacing) * 2.5); - } - .lib\:px-3 { - padding-inline: calc(var(--lib-spacing) * 3); - } - .lib\:px-4 { - padding-inline: calc(var(--lib-spacing) * 4); - } - .lib\:px-6 { - padding-inline: calc(var(--lib-spacing) * 6); - } - .lib\:py-0\.5 { - padding-block: calc(var(--lib-spacing) * 0.5); - } - .lib\:py-1 { - padding-block: calc(var(--lib-spacing) * 1); - } - .lib\:py-1\.5 { - padding-block: calc(var(--lib-spacing) * 1.5); - } - .lib\:py-2 { - padding-block: calc(var(--lib-spacing) * 2); - } - .lib\:py-3 { - padding-block: calc(var(--lib-spacing) * 3); - } - .lib\:py-4 { - padding-block: calc(var(--lib-spacing) * 4); - } - .lib\:py-6 { - padding-block: calc(var(--lib-spacing) * 6); - } - .lib\:pt-0 { - padding-top: calc(var(--lib-spacing) * 0); - } - .lib\:pt-1 { - padding-top: calc(var(--lib-spacing) * 1); - } - .lib\:pt-3 { - padding-top: calc(var(--lib-spacing) * 3); - } - .lib\:pt-4 { - padding-top: calc(var(--lib-spacing) * 4); - } - .lib\:pr-2 { - padding-right: calc(var(--lib-spacing) * 2); - } - .lib\:pr-2\.5 { - padding-right: calc(var(--lib-spacing) * 2.5); - } - .lib\:pr-8 { - padding-right: calc(var(--lib-spacing) * 8); - } - .lib\:pb-3 { - padding-bottom: calc(var(--lib-spacing) * 3); - } - .lib\:pb-4 { - padding-bottom: calc(var(--lib-spacing) * 4); - } - .lib\:pl-2 { - padding-left: calc(var(--lib-spacing) * 2); - } - .lib\:pl-4 { - padding-left: calc(var(--lib-spacing) * 4); - } - .lib\:pl-8 { - padding-left: calc(var(--lib-spacing) * 8); - } - .lib\:text-center { - text-align: center; - } - .lib\:text-left { - text-align: left; - } - .lib\:align-middle { - vertical-align: middle; - } - .lib\:font-mono { - font-family: var(--lib-font-mono); - } - .lib\:text-base { - font-size: var(--lib-text-base); - line-height: var(--tw-leading, var(--lib-text-base--line-height)); - } - .lib\:text-lg { - font-size: var(--lib-text-lg); - line-height: var(--tw-leading, var(--lib-text-lg--line-height)); - } - .lib\:text-sm { - font-size: var(--lib-text-sm); - line-height: var(--tw-leading, var(--lib-text-sm--line-height)); - } - .lib\:text-xs { - font-size: var(--lib-text-xs); - line-height: var(--tw-leading, var(--lib-text-xs--line-height)); - } - .lib\:text-\[0\.8rem\] { - font-size: 0.8rem; - } - .lib\:leading-none { - --tw-leading: 1; - line-height: 1; - } - .lib\:font-medium { - --tw-font-weight: var(--lib-font-weight-medium); - font-weight: var(--lib-font-weight-medium); - } - .lib\:font-normal { - --tw-font-weight: var(--lib-font-weight-normal); - font-weight: var(--lib-font-weight-normal); - } - .lib\:font-semibold { - --tw-font-weight: var(--lib-font-weight-semibold); - font-weight: var(--lib-font-weight-semibold); - } - .lib\:tracking-tight { - --tw-tracking: var(--lib-tracking-tight); - letter-spacing: var(--lib-tracking-tight); - } - .lib\:tracking-widest { - --tw-tracking: var(--lib-tracking-widest); - letter-spacing: var(--lib-tracking-widest); - } - .lib\:text-balance { - text-wrap: balance; - } - .lib\:break-words { - overflow-wrap: break-word; - } - .lib\:whitespace-nowrap { - white-space: nowrap; - } - .lib\:text-accent-foreground { - color: var(--accent-foreground); - } - .lib\:text-card-foreground { - color: var(--card-foreground); - } - .lib\:text-current { - color: currentColor; - } - .lib\:text-destructive { - color: var(--destructive); - } - .lib\:text-foreground { - color: var(--foreground); - } - .lib\:text-muted-foreground { - color: var(--muted-foreground); - } - .lib\:text-popover-foreground { - color: var(--popover-foreground); - } - .lib\:text-primary { - color: var(--primary); - } - .lib\:text-primary-foreground { - color: var(--primary-foreground); - } - .lib\:text-secondary-foreground { - color: var(--secondary-foreground); - } - .lib\:text-sidebar-foreground, - .lib\:text-sidebar-foreground\/70 { - color: var(--sidebar-foreground); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:text-sidebar-foreground\/70 { - color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); - } - } - .lib\:text-white { - color: var(--lib-color-white); - } - .lib\:tabular-nums { - --tw-numeric-spacing: tabular-nums; - font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) - var(--tw-numeric-spacing,) var(--tw-numeric-fraction,); - } - .lib\:underline-offset-4 { - text-underline-offset: 4px; - } - .lib\:opacity-50 { - opacity: 0.5; - } - .lib\:opacity-70 { - opacity: 0.7; - } - .lib\:shadow { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\] { - --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-border))); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-lg { - --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-md { - --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-none { - --tw-shadow: 0 0 #0000; - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-sm { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-xl { - --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, #0000001a), 0 8px 10px -6px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-xs { - --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:ring-0 { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) - var(--tw-ring-color, currentcolor); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:ring-ring\/50 { - --tw-ring-color: var(--ring); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:ring-ring\/50 { - --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent); - } - } - .lib\:ring-sidebar-ring { - --tw-ring-color: var(--sidebar-ring); - } - .lib\:ring-offset-background { - --tw-ring-offset-color: var(--background); - } - .lib\:outline-hidden { - --tw-outline-style: none; - outline-style: none; - } - @media (forced-colors: active) { - .lib\:outline-hidden { - outline-offset: 2px; - outline: 2px solid #0000; - } - } - .lib\:transition { - transition-property: - color, - background-color, - border-color, - outline-color, - text-decoration-color, - fill, - stroke, - --tw-gradient-from, - --tw-gradient-via, - --tw-gradient-to, - opacity, - box-shadow, - transform, - translate, - scale, - rotate, - filter, - -webkit-backdrop-filter, - backdrop-filter, - display, - visibility, - content-visibility, - overlay, - pointer-events; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[color\,box-shadow\] { - transition-property: color, box-shadow; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[left\,right\,width\] { - transition-property: left, right, width; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[margin\,opacity\] { - transition-property: margin, opacity; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[width\,height\,padding\] { - transition-property: width, height, padding; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[width\] { - transition-property: width; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-all { - transition-property: all; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-colors { - transition-property: - color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, - --tw-gradient-via, --tw-gradient-to; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-opacity { - transition-property: opacity; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-shadow { - transition-property: box-shadow; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-transform { - transition-property: transform, translate, scale, rotate; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-none { - transition-property: none; - } - .lib\:duration-200 { - --tw-duration: 0.2s; - transition-duration: 0.2s; - } - .lib\:duration-300 { - --tw-duration: 0.3s; - transition-duration: 0.3s; - } - .lib\:duration-1000 { - --tw-duration: 1s; - transition-duration: 1s; - } - .lib\:ease-in-out { - --tw-ease: var(--lib-ease-in-out); - transition-timing-function: var(--lib-ease-in-out); - } - .lib\:ease-linear { - --tw-ease: linear; - transition-timing-function: linear; - } - .lib\:fade-in-0 { - --tw-enter-opacity: 0; - } - .lib\:outline-none { - --tw-outline-style: none; - outline-style: none; - } - .lib\:select-none { - -webkit-user-select: none; - user-select: none; - } - .lib\:zoom-in-95 { - --tw-enter-scale: 0.95; - } - .lib\:group-focus-within\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):focus-within *) { - opacity: 1; - } - @media (hover: hover) { - .lib\:group-hover\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):hover *) { - opacity: 1; - } - } - .lib\:group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is( - :where(.lib\:group\/menu-item):has([data-sidebar='menu-action']) * - ) { - padding-right: calc(var(--lib-spacing) * 8); - } - .lib\:group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is( - :where(.lib\:group\/drawer-content)[data-vaul-drawer-direction='bottom'] * - ) { - display: block; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:top-full:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - top: 100%; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - margin-top: calc(var(--lib-spacing) * 1.5); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - overflow: hidden; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - border-radius: calc(var(--radius) - 2px); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:border:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - border-style: var(--tw-border-style); - border-width: 1px; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - background-color: var(--popover); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - color: var(--popover-foreground); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:shadow:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - --tw-duration: 0.2s; - transition-duration: 0.2s; - } - @media (hover: hover) { - .lib\:peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button):hover ~ *) { - color: var(--sidebar-accent-foreground); - } - } - .lib\:peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is( - :where(.lib\:peer\/menu-button)[data-active='true'] ~ * - ) { - color: var(--sidebar-accent-foreground); - } - .lib\:peer-data-\[size\=default\]\/menu-button\:top-1\.5:is( - :where(.lib\:peer\/menu-button)[data-size='default'] ~ * - ) { - top: calc(var(--lib-spacing) * 1.5); - } - .lib\:peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.lib\:peer\/menu-button)[data-size='lg'] ~ *) { - top: calc(var(--lib-spacing) * 2.5); - } - .lib\:peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.lib\:peer\/menu-button)[data-size='sm'] ~ *) { - top: calc(var(--lib-spacing) * 1); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - animation: exit var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - --tw-exit-opacity: 0; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - --tw-exit-scale: 0.95; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - animation: enter var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - --tw-enter-opacity: 0; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - --tw-enter-scale: 0.95; - } -} -:root { - --background: oklch(100% 0 0); - --foreground: oklch(14.5% 0 0); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.5% 0 0); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.5% 0 0); - --primary: oklch(20.5% 0 0); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(97% 0 0); - --secondary-foreground: oklch(20.5% 0 0); - --muted: oklch(97% 0 0); - --muted-foreground: oklch(55.6% 0 0); - --accent: oklch(97% 0 0); - --accent-foreground: oklch(20.5% 0 0); - --destructive: oklch(57.7% 0.245 27.325); - --destructive-foreground: oklch(57.7% 0.245 27.325); - --border: oklch(92.2% 0 0); - --input: oklch(92.2% 0 0); - --ring: oklch(70.8% 0 0); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --radius: 0.625rem; - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.5% 0 0); - --sidebar-primary: oklch(20.5% 0 0); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(97% 0 0); - --sidebar-accent-foreground: oklch(20.5% 0 0); - --sidebar-border: oklch(92.2% 0 0); - --sidebar-ring: oklch(70.8% 0 0); -} -.dark { - --background: oklch(14.5% 0 0); - --foreground: oklch(98.5% 0 0); - --card: oklch(20.5% 0 0); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(20.5% 0 0); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92.2% 0 0); - --primary-foreground: oklch(20.5% 0 0); - --secondary: oklch(26.9% 0 0); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(26.9% 0 0); - --muted-foreground: oklch(70.8% 0 0); - --accent: oklch(26.9% 0 0); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --destructive-foreground: oklch(63.7% 0.237 25.331); - --border: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.6% 0 0); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(20.5% 0 0); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(26.9% 0 0); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.6% 0 0); -} -@property --tw-translate-x { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-translate-y { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-translate-z { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-space-x-reverse { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-border-style { - syntax: '*'; - inherits: false; - initial-value: solid; -} -@property --tw-leading { - syntax: '*'; - inherits: false; -} -@property --tw-font-weight { - syntax: '*'; - inherits: false; -} -@property --tw-tracking { - syntax: '*'; - inherits: false; -} -@property --tw-ordinal { - syntax: '*'; - inherits: false; -} -@property --tw-slashed-zero { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-figure { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-spacing { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-fraction { - syntax: '*'; - inherits: false; -} -@property --tw-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-shadow-color { - syntax: '*'; - inherits: false; -} -@property --tw-shadow-alpha { - syntax: ''; - inherits: false; - initial-value: 100%; -} -@property --tw-inset-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-inset-shadow-color { - syntax: '*'; - inherits: false; -} -@property --tw-inset-shadow-alpha { - syntax: ''; - inherits: false; - initial-value: 100%; -} -@property --tw-ring-color { - syntax: '*'; - inherits: false; -} -@property --tw-ring-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-inset-ring-color { - syntax: '*'; - inherits: false; -} -@property --tw-inset-ring-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-ring-inset { - syntax: '*'; - inherits: false; -} -@property --tw-ring-offset-width { - syntax: ''; - inherits: false; - initial-value: 0; -} -@property --tw-ring-offset-color { - syntax: '*'; - inherits: false; - initial-value: #fff; -} -@property --tw-ring-offset-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-duration { - syntax: '*'; - inherits: false; -} -@property --tw-ease { - syntax: '*'; - inherits: false; -} -@keyframes pulse { - 50% { - opacity: 0.5; - } -} -@keyframes enter { - 0% { - opacity: var(--tw-enter-opacity, 1); - transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) - scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) - rotate(var(--tw-enter-rotate, 0)); - } -} -@keyframes exit { - to { - opacity: var(--tw-exit-opacity, 1); - transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) - scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) - rotate(var(--tw-exit-rotate, 0)); - } -} -@keyframes caret-blink { - 0%, - 70%, - to { - opacity: 1; - } - 20%, - 50% { - opacity: 0; - } -} -@keyframes react-loading-skeleton { - to { - transform: translate(100%); - } -} -.react-loading-skeleton { - --base-color: #ebebeb; - --highlight-color: #f5f5f5; - --animation-duration: 1.5s; - --animation-direction: normal; - --pseudo-element-display: block; - background-color: var(--base-color); - width: 100%; - border-radius: 0.25rem; - display: inline-flex; - line-height: 1; - position: relative; - user-select: none; - overflow: hidden; -} -.react-loading-skeleton:after { - content: ' '; - display: var(--pseudo-element-display); - position: absolute; - top: 0; - left: 0; - right: 0; - height: 100%; - background-repeat: no-repeat; - background-image: var( - --custom-highlight-background, - linear-gradient(90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100%) - ); - transform: translate(-100%); - animation-name: react-loading-skeleton; - animation-direction: var(--animation-direction); - animation-duration: var(--animation-duration); - animation-timing-function: ease-in-out; - animation-iteration-count: infinite; -} -@media (prefers-reduced-motion) { - .react-loading-skeleton { - --pseudo-element-display: none; - } -} diff --git a/.storybook/main.ts b/.storybook/main.ts index 33c2f882..97d47c05 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -2,7 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite'; const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], - addons: ['@storybook/addon-onboarding', '@storybook/addon-docs'], + addons: ['@storybook/addon-docs'], framework: { name: '@storybook/react-vite', options: {}, diff --git a/.storybook/preview.ts b/.storybook/preview.ts index d3672552..142155a5 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,7 +1,9 @@ import type { Preview } from '@storybook/react'; -import './globals.css'; + +import '../src/index.css'; import React from 'react'; +import withNextLink from './decorators/withNextLink'; const preview: Preview = { parameters: { controls: { @@ -29,6 +31,7 @@ const preview: Preview = { }, }, }, + decorators: [withNextLink], }; export default preview; diff --git a/components.json b/components.json index d608f9ad..b76121fd 100644 --- a/components.json +++ b/components.json @@ -7,8 +7,7 @@ "config": "", "css": "src/index.css", "baseColor": "neutral", - "cssVariables": true, - "prefix": "lib:" + "cssVariables": true }, "aliases": { "components": "@/components", diff --git a/dist/_util/helpers.d.ts b/dist/_util/helpers.d.ts index 882333e2..6645106a 100644 --- a/dist/_util/helpers.d.ts +++ b/dist/_util/helpers.d.ts @@ -1,3 +1,9 @@ +import { NavItems } from '../components/sidenav/Sidenav'; import { ReactNode } from 'react'; export declare const highlightTextInElement: (element: ReactNode, searchString: string, key: string | number) => any; +export declare const genAvatarBackground: (firstLetter: string, secondLetter: string) => { + bgColor: string; + textColor: string; +}; +export declare const getCurrentPath: (navLinks: NavItems, pathname: string) => string; //# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/dist/_util/helpers.d.ts.map b/dist/_util/helpers.d.ts.map index 0149467b..fb40a173 100644 --- a/dist/_util/helpers.d.ts.map +++ b/dist/_util/helpers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/_util/helpers.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,SAAS,EAAE,cAAc,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,KAAG,GAqBvG,CAAC"} \ No newline at end of file +{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/_util/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,SAAS,EAAE,cAAc,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,KAAG,GAqBvG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC/B,aAAa,MAAM,EACnB,cAAc,MAAM,KAClB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAYtC,CAAC;AAaF,eAAO,MAAM,cAAc,GAAI,UAAU,QAAQ,EAAE,UAAU,MAAM,KAAG,MAKrE,CAAC"} \ No newline at end of file diff --git a/dist/components/AvatarBubble/AvatarBubble.d.ts b/dist/components/AvatarBubble/AvatarBubble.d.ts new file mode 100644 index 00000000..a1b4e2e1 --- /dev/null +++ b/dist/components/AvatarBubble/AvatarBubble.d.ts @@ -0,0 +1,8 @@ +import { HTMLAttributes } from 'react'; +type AvatarBubbleProps = HTMLAttributes & { + bgColor: string; + textColor: string; +}; +export default function AvatarBubble({ bgColor, textColor, className, children, ...props }: AvatarBubbleProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=AvatarBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/AvatarBubble/AvatarBubble.d.ts.map b/dist/components/AvatarBubble/AvatarBubble.d.ts.map new file mode 100644 index 00000000..8d7f35da --- /dev/null +++ b/dist/components/AvatarBubble/AvatarBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AvatarBubble.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBubble/AvatarBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+CAM5G"} \ No newline at end of file diff --git a/dist/components/Breadcrumb/Breadcrumb.d.ts b/dist/components/Breadcrumb/Breadcrumb.d.ts new file mode 100644 index 00000000..94616061 --- /dev/null +++ b/dist/components/Breadcrumb/Breadcrumb.d.ts @@ -0,0 +1,26 @@ +import { default as React, FC, MouseEventHandler, ReactElement, ReactNode } from 'react'; +type Component> = ReactElement; +type LinkComponent = Component<'a'>; +export interface BasicProps { + items: ({ + title: string | ReactNode; + navOnClick?: MouseEventHandler; + key?: string | number; + copyText?: string; + } | { + title: LinkComponent; + key?: string | number; + copyText?: string; + })[]; + activeKey?: string | number; +} +export type UIBreadcrumbProps = BasicProps & ({ + type: 'default'; + currentSlug?: never; +} | { + type: 'orgs'; + currentSlug?: 'project' | 'user' | 'group'; +}); +declare const UIBreadcrumb: FC; +export default UIBreadcrumb; +//# sourceMappingURL=Breadcrumb.d.ts.map \ No newline at end of file diff --git a/dist/components/Breadcrumb/Breadcrumb.d.ts.map b/dist/components/Breadcrumb/Breadcrumb.d.ts.map new file mode 100644 index 00000000..dfa36386 --- /dev/null +++ b/dist/components/Breadcrumb/Breadcrumb.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAY,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxF,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAC3G,KAAK,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAOpC,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,CACJ;QACA,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,UAAU,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,GAAG,eAAe,CAAC,CAAC;QACpE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACjB,GACD;QACA,KAAK,EAAE,aAAa,CAAC;QACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACjB,CACH,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GACzC,CAAC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,CAAC;AAE3G,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA2DvC,CAAC;AAGF,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/Breadcrumb/index.d.ts b/dist/components/Breadcrumb/index.d.ts new file mode 100644 index 00000000..1ca0dd53 --- /dev/null +++ b/dist/components/Breadcrumb/index.d.ts @@ -0,0 +1,3 @@ +import { default as Breadcrumb } from './Breadcrumb'; +export default Breadcrumb; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Breadcrumb/index.d.ts.map b/dist/components/Breadcrumb/index.d.ts.map new file mode 100644 index 00000000..255c5689 --- /dev/null +++ b/dist/components/Breadcrumb/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Checkbox/Checkbox.d.ts b/dist/components/Checkbox/Checkbox.d.ts new file mode 100644 index 00000000..a569c4f6 --- /dev/null +++ b/dist/components/Checkbox/Checkbox.d.ts @@ -0,0 +1,12 @@ +import { default as React } from 'react'; +import { Checkbox } from '../ui/checkbox'; +type CheckboxProps = React.ComponentProps & { + label: string; + id: string; +}; +declare function CheckboxWithLabel({ label, id, ...rest }: CheckboxProps): import("react/jsx-dev-runtime").JSX.Element; +declare namespace CheckboxWithLabel { + var displayName: string; +} +export default CheckboxWithLabel; +//# sourceMappingURL=Checkbox.d.ts.map \ No newline at end of file diff --git a/dist/components/Checkbox/Checkbox.d.ts.map b/dist/components/Checkbox/Checkbox.d.ts.map new file mode 100644 index 00000000..b1e4a646 --- /dev/null +++ b/dist/components/Checkbox/Checkbox.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,iBAAwB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+CAS9E;kBATuB,iBAAiB;;;eAAjB,iBAAiB"} \ No newline at end of file diff --git a/dist/components/Checkbox/index.d.ts b/dist/components/Checkbox/index.d.ts new file mode 100644 index 00000000..00e657e6 --- /dev/null +++ b/dist/components/Checkbox/index.d.ts @@ -0,0 +1,3 @@ +import { default as Checkbox } from './Checkbox'; +export default Checkbox; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Checkbox/index.d.ts.map b/dist/components/Checkbox/index.d.ts.map new file mode 100644 index 00000000..a6cbc0eb --- /dev/null +++ b/dist/components/Checkbox/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/components/CopyToClipboard/CopyToClipboard.d.ts b/dist/components/CopyToClipboard/CopyToClipboard.d.ts new file mode 100644 index 00000000..b30e3b7f --- /dev/null +++ b/dist/components/CopyToClipboard/CopyToClipboard.d.ts @@ -0,0 +1,12 @@ +import { default as React } from 'react'; +export interface ClipboardProps { + text: string | number; + type?: 'visible' | 'hidden' | 'hiddenWithIcon' | 'alwaysHidden'; + width?: number | string; + fontSize?: string; + withToolTip?: boolean; + iconOnly?: boolean; +} +declare const CopyToClipboard: React.FC; +export default CopyToClipboard; +//# sourceMappingURL=CopyToClipboard.d.ts.map \ No newline at end of file diff --git a/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map b/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map new file mode 100644 index 00000000..940b0931 --- /dev/null +++ b/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,gBAAgB,GAAG,cAAc,CAAC;IAChE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAiCD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAsF7C,CAAC;AAEF,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/components/CopyToClipboard/index.d.ts b/dist/components/CopyToClipboard/index.d.ts new file mode 100644 index 00000000..eb4aa53b --- /dev/null +++ b/dist/components/CopyToClipboard/index.d.ts @@ -0,0 +1,3 @@ +import { default as CopyToClipboard } from './CopyToClipboard'; +export default CopyToClipboard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/CopyToClipboard/index.d.ts.map b/dist/components/CopyToClipboard/index.d.ts.map new file mode 100644 index 00000000..ece4a692 --- /dev/null +++ b/dist/components/CopyToClipboard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/components/DetailStat/DetailStat.d.ts b/dist/components/DetailStat/DetailStat.d.ts new file mode 100644 index 00000000..cce77789 --- /dev/null +++ b/dist/components/DetailStat/DetailStat.d.ts @@ -0,0 +1,12 @@ +import { default as React, ReactNode } from 'react'; +type StatProps = { + title: string; + value: ReactNode; + fullWidth?: boolean; + lowercaseValue?: boolean; + capitalizeValue?: boolean; +}; +declare const DetailStat: React.FC; +export default DetailStat; +export type { StatProps }; +//# sourceMappingURL=DetailStat.d.ts.map \ No newline at end of file diff --git a/dist/components/DetailStat/DetailStat.d.ts.map b/dist/components/DetailStat/DetailStat.d.ts.map new file mode 100644 index 00000000..8359a01a --- /dev/null +++ b/dist/components/DetailStat/DetailStat.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DetailStat.d.ts","sourceRoot":"","sources":["../../../src/components/DetailStat/DetailStat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkB,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzD,KAAK,SAAS,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAmBF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAuBnC,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/DetailStat/index.d.ts b/dist/components/DetailStat/index.d.ts new file mode 100644 index 00000000..fd2bf9a4 --- /dev/null +++ b/dist/components/DetailStat/index.d.ts @@ -0,0 +1,3 @@ +import { default as DetailStat } from './DetailStat'; +export default DetailStat; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/DetailStat/index.d.ts.map b/dist/components/DetailStat/index.d.ts.map new file mode 100644 index 00000000..1403d290 --- /dev/null +++ b/dist/components/DetailStat/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DetailStat/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Input/Input.d.ts b/dist/components/Input/Input.d.ts new file mode 100644 index 00000000..fa50c3cd --- /dev/null +++ b/dist/components/Input/Input.d.ts @@ -0,0 +1,11 @@ +import { Input as ShadInput } from '../ui/input'; +import { ComponentProps, ReactNode } from 'react'; +type InputProps = ComponentProps & { + label: string; + placeholder?: string; + description?: string; + icon?: ReactNode; +}; +export default function Input({ label, placeholder, icon, description, ...rest }: InputProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Input.d.ts.map \ No newline at end of file diff --git a/dist/components/Input/Input.d.ts.map b/dist/components/Input/Input.d.ts.map new file mode 100644 index 00000000..5875a5d5 --- /dev/null +++ b/dist/components/Input/Input.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAUF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,WAAgB,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,+CAoBhG"} \ No newline at end of file diff --git a/dist/components/Input/index.d.ts b/dist/components/Input/index.d.ts new file mode 100644 index 00000000..77645f92 --- /dev/null +++ b/dist/components/Input/index.d.ts @@ -0,0 +1,3 @@ +import { default as Input } from './Input'; +export default Input; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Input/index.d.ts.map b/dist/components/Input/index.d.ts.map new file mode 100644 index 00000000..02a7206f --- /dev/null +++ b/dist/components/Input/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAe,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/components/KeyFactCard/KeyFactCard.d.ts b/dist/components/KeyFactCard/KeyFactCard.d.ts new file mode 100644 index 00000000..8e0b95a3 --- /dev/null +++ b/dist/components/KeyFactCard/KeyFactCard.d.ts @@ -0,0 +1,10 @@ +import { ReactElement } from 'react'; +type KeyFactProps = { + name: string; + category: string; + value: string; + img: ReactElement; +}; +export default function KeyFactCard({ name, category, value, img }: KeyFactProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=KeyFactCard.d.ts.map \ No newline at end of file diff --git a/dist/components/KeyFactCard/KeyFactCard.d.ts.map b/dist/components/KeyFactCard/KeyFactCard.d.ts.map new file mode 100644 index 00000000..aea24c8f --- /dev/null +++ b/dist/components/KeyFactCard/KeyFactCard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"KeyFactCard.d.ts","sourceRoot":"","sources":["../../../src/components/KeyFactCard/KeyFactCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,KAAK,YAAY,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;CAAE,CAAC;AAE3G,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,YAAY,+CAW/E"} \ No newline at end of file diff --git a/dist/components/KeyFactCard/index.d.ts b/dist/components/KeyFactCard/index.d.ts new file mode 100644 index 00000000..a0e68ac7 --- /dev/null +++ b/dist/components/KeyFactCard/index.d.ts @@ -0,0 +1,3 @@ +import { default as KeyFactCard } from './KeyFactCard'; +export default KeyFactCard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/KeyFactCard/index.d.ts.map b/dist/components/KeyFactCard/index.d.ts.map new file mode 100644 index 00000000..6c4f2722 --- /dev/null +++ b/dist/components/KeyFactCard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/KeyFactCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/Notification/Notification.d.ts b/dist/components/Notification/Notification.d.ts new file mode 100644 index 00000000..01dd9a51 --- /dev/null +++ b/dist/components/Notification/Notification.d.ts @@ -0,0 +1,17 @@ +import { ReactNode } from 'react'; +type NotificationProps = { + title: string; + message: string; + cancelText?: string; + onCancel?: () => void; + confirmText?: string; + onConfirm?: () => void; +} & ({ + children?: ReactNode; +} | { + open?: boolean; + onOpenChange?: (open: boolean) => void; +}); +export default function Notification({ title, message, cancelText, onCancel, confirmText, onConfirm, ...rest }: NotificationProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Notification.d.ts.map \ No newline at end of file diff --git a/dist/components/Notification/Notification.d.ts.map b/dist/components/Notification/Notification.d.ts.map new file mode 100644 index 00000000..c7845151 --- /dev/null +++ b/dist/components/Notification/Notification.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,GAAG,CACD;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GACxB;IACA,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACP,EAAE,iBAAiB,+CAkCnB"} \ No newline at end of file diff --git a/dist/components/Notification/index.d.ts b/dist/components/Notification/index.d.ts new file mode 100644 index 00000000..8db484ef --- /dev/null +++ b/dist/components/Notification/index.d.ts @@ -0,0 +1,3 @@ +import { default as Notification } from './Notification'; +export default Notification; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Notification/index.d.ts.map b/dist/components/Notification/index.d.ts.map new file mode 100644 index 00000000..520feb8e --- /dev/null +++ b/dist/components/Notification/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/ProblemsOverview/ProblemsOverview.d.ts b/dist/components/ProblemsOverview/ProblemsOverview.d.ts new file mode 100644 index 00000000..c003539f --- /dev/null +++ b/dist/components/ProblemsOverview/ProblemsOverview.d.ts @@ -0,0 +1,16 @@ +import { default as React } from 'react'; +type LagoonProblemsOverviewProps = { + problems: number; + critical: number; + high: number; + medium: number; + low: number; + skeleton?: false; +}; +type Props = LagoonProblemsOverviewProps | { + skeleton: true; +}; +declare const LagoonProblemsOverview: React.FC; +export default LagoonProblemsOverview; +export type { LagoonProblemsOverviewProps }; +//# sourceMappingURL=ProblemsOverview.d.ts.map \ No newline at end of file diff --git a/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map b/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map new file mode 100644 index 00000000..a978e128 --- /dev/null +++ b/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ProblemsOverview.d.ts","sourceRoot":"","sources":["../../../src/components/ProblemsOverview/ProblemsOverview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,2BAA2B,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AACF,KAAK,KAAK,GACP,2BAA2B,GAC3B;IACA,QAAQ,EAAE,IAAI,CAAC;CACd,CAAC;AAEL,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+C3C,CAAC;AAGF,eAAe,sBAAsB,CAAC;AACtC,YAAY,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ProblemsOverview/index.d.ts b/dist/components/ProblemsOverview/index.d.ts new file mode 100644 index 00000000..7402365b --- /dev/null +++ b/dist/components/ProblemsOverview/index.d.ts @@ -0,0 +1,3 @@ +import { default as ProblemsOverview } from './ProblemsOverview'; +export default ProblemsOverview; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/ProblemsOverview/index.d.ts.map b/dist/components/ProblemsOverview/index.d.ts.map new file mode 100644 index 00000000..a952c998 --- /dev/null +++ b/dist/components/ProblemsOverview/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProblemsOverview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,eAAe,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/RootLayout/RootLayout.d.ts b/dist/components/RootLayout/RootLayout.d.ts new file mode 100644 index 00000000..147c804c --- /dev/null +++ b/dist/components/RootLayout/RootLayout.d.ts @@ -0,0 +1,11 @@ +import { ReactNode } from 'react'; +import { AppInfo, UserInfo } from '../sidenav/Sidenav'; +interface RootLayoutProps { + userInfo: UserInfo; + appInfo: AppInfo; + children: ReactNode; + signOutFn: () => Promise; +} +export default function RootLayout({ userInfo, appInfo, signOutFn, children }: RootLayoutProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=RootLayout.d.ts.map \ No newline at end of file diff --git a/dist/components/RootLayout/RootLayout.d.ts.map b/dist/components/RootLayout/RootLayout.d.ts.map new file mode 100644 index 00000000..3fcfa2ea --- /dev/null +++ b/dist/components/RootLayout/RootLayout.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../src/components/RootLayout/RootLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEvD,UAAU,eAAe;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAMD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,+CAa7F"} \ No newline at end of file diff --git a/dist/components/RootLayout/index.d.ts b/dist/components/RootLayout/index.d.ts new file mode 100644 index 00000000..22a2edc0 --- /dev/null +++ b/dist/components/RootLayout/index.d.ts @@ -0,0 +1,3 @@ +import { default as RootLayout } from './RootLayout'; +export default RootLayout; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/RootLayout/index.d.ts.map b/dist/components/RootLayout/index.d.ts.map new file mode 100644 index 00000000..24b51cdf --- /dev/null +++ b/dist/components/RootLayout/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RootLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Select/Select.d.ts b/dist/components/Select/Select.d.ts new file mode 100644 index 00000000..dec0c8b7 --- /dev/null +++ b/dist/components/Select/Select.d.ts @@ -0,0 +1,17 @@ +import { Select } from '../ui/select'; +type Option = { + label: string; + value: string | number; +}; +type OptionGroup = { + label: string; + options: Option[]; +}; +type SelectProps = Omit, 'disabled'> & { + placeholder: string; + options?: Option[] | OptionGroup[]; + disabled?: boolean; +}; +export default function SelectWithOptions({ placeholder, options, disabled, ...rest }: SelectProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Select.d.ts.map \ No newline at end of file diff --git a/dist/components/Select/Select.d.ts.map b/dist/components/Select/Select.d.ts.map new file mode 100644 index 00000000..20ee671c --- /dev/null +++ b/dist/components/Select/Select.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmF,MAAM,cAAc,CAAC;AAEvH,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AACxD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAExD,KAAK,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+CA4BjG"} \ No newline at end of file diff --git a/dist/components/Select/index.d.ts b/dist/components/Select/index.d.ts new file mode 100644 index 00000000..a3f17e2e --- /dev/null +++ b/dist/components/Select/index.d.ts @@ -0,0 +1,3 @@ +import { default as SelectWithOptions } from './Select'; +export default SelectWithOptions; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Select/index.d.ts.map b/dist/components/Select/index.d.ts.map new file mode 100644 index 00000000..f4829863 --- /dev/null +++ b/dist/components/Select/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAExD,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/components/StatCard/StatCard.d.ts b/dist/components/StatCard/StatCard.d.ts new file mode 100644 index 00000000..9e7817b1 --- /dev/null +++ b/dist/components/StatCard/StatCard.d.ts @@ -0,0 +1,12 @@ +import { ReactNode } from 'react'; +type StatCardprops = { + title: string; + content: ReactNode; + type?: 'default' | 'withIcon' | 'stat'; +}; +export declare const cardVariants: (props?: ({ + type?: "default" | "withIcon" | "stat" | null | undefined; +} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string; +export default function StatCard({ type, title, content }: StatCardprops): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=StatCard.d.ts.map \ No newline at end of file diff --git a/dist/components/StatCard/StatCard.d.ts.map b/dist/components/StatCard/StatCard.d.ts.map new file mode 100644 index 00000000..a4f64d1c --- /dev/null +++ b/dist/components/StatCard/StatCard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;CAAE,CAAC;AAEnG,eAAO,MAAM,YAAY;;mFAWvB,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,aAAa,+CAyBnF"} \ No newline at end of file diff --git a/dist/components/StatCard/index.d.ts b/dist/components/StatCard/index.d.ts new file mode 100644 index 00000000..07fe372a --- /dev/null +++ b/dist/components/StatCard/index.d.ts @@ -0,0 +1,3 @@ +import { default as StatCard } from './StatCard'; +export default StatCard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/StatCard/index.d.ts.map b/dist/components/StatCard/index.d.ts.map new file mode 100644 index 00000000..dcdc718c --- /dev/null +++ b/dist/components/StatCard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/components/sidenav/Sidenav.d.ts b/dist/components/sidenav/Sidenav.d.ts new file mode 100644 index 00000000..dfc56c4c --- /dev/null +++ b/dist/components/sidenav/Sidenav.d.ts @@ -0,0 +1,41 @@ +import { default as React } from 'react'; +import { Sidebar } from '../ui/sidebar'; +type SidebarProps = React.ComponentProps; +export type UserInfo = { + email: string; + image?: React.ImgHTMLAttributes['src']; + firstName?: string; + lastName?: string; +}; +export type AppInfo = { + name: string; + version: string; + kcUrl: string; + logo?: React.ReactNode; +}; +export type SidenavProps = SidebarProps & { + userInfo: UserInfo; + appInfo: AppInfo; + signOutFn: () => Promise; + currentPath?: string; +}; +export type NavItems = ReturnType; +declare const getSidenavItems: (kcUrl: string, signOutFn: () => Promise) => { + section: string; + sectionItems: ({ + title: string; + url: string; + icon: React.ForwardRefExoticComponent & React.RefAttributes>; + target?: undefined; + onClick?: undefined; + } | { + title: string; + url: string; + target: string; + onClick: () => Promise; + icon: React.ForwardRefExoticComponent & React.RefAttributes>; + })[]; +}[]; +export default function Sidenav({ userInfo, appInfo, currentPath, signOutFn, ...props }: SidenavProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Sidenav.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/Sidenav.d.ts.map b/dist/components/sidenav/Sidenav.d.ts.map new file mode 100644 index 00000000..e7fdfe73 --- /dev/null +++ b/dist/components/sidenav/Sidenav.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Sidenav.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/Sidenav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,OAAO,EAUP,MAAM,eAAe,CAAC;AAUvB,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACzC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,QAAA,MAAM,eAAe,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;uBAAb,OAAO,CAAC,IAAI,CAAC;;;GA4CrE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+CAqGpG"} \ No newline at end of file diff --git a/dist/components/sidenav/SidenavDropdown.d.ts b/dist/components/sidenav/SidenavDropdown.d.ts new file mode 100644 index 00000000..785ad4a4 --- /dev/null +++ b/dist/components/sidenav/SidenavDropdown.d.ts @@ -0,0 +1,7 @@ +import { AppInfo } from './Sidenav'; +type DropdownProps = AppInfo & { + signOutFn: () => Promise; +}; +export default function SidenavDropdown({ name, version, logo, signOutFn }: DropdownProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=SidenavDropdown.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/SidenavDropdown.d.ts.map b/dist/components/sidenav/SidenavDropdown.d.ts.map new file mode 100644 index 00000000..88a14626 --- /dev/null +++ b/dist/components/sidenav/SidenavDropdown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SidenavDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/SidenavDropdown.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,aAAa,GAAG,OAAO,GAAG;IAAE,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC;AAElE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,aAAa,+CA0CxF"} \ No newline at end of file diff --git a/dist/components/sidenav/index.d.ts b/dist/components/sidenav/index.d.ts new file mode 100644 index 00000000..dc172f9a --- /dev/null +++ b/dist/components/sidenav/index.d.ts @@ -0,0 +1,3 @@ +import { default as Sidenav } from './Sidenav'; +export default Sidenav; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/index.d.ts.map b/dist/components/sidenav/index.d.ts.map new file mode 100644 index 00000000..6f206c46 --- /dev/null +++ b/dist/components/sidenav/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/avatar.d.ts.map b/dist/components/ui/avatar.d.ts.map index c83cfbf7..8ee25c6d 100644 --- a/dist/components/ui/avatar.d.ts.map +++ b/dist/components/ui/avatar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAQzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,+CAWrG;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAQzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAI/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,+CAQrG;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/badge.d.ts.map b/dist/components/ui/badge.d.ts.map index 20f77362..dde105bd 100644 --- a/dist/components/ui/badge.d.ts.map +++ b/dist/components/ui/badge.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAiBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAI3F;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAgBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAI3F;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/breadcrumb.d.ts.map b/dist/components/ui/breadcrumb.d.ts.map index a4590ee9..1f18f7e3 100644 --- a/dist/components/ui/breadcrumb.d.ts.map +++ b/dist/components/ui/breadcrumb.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5D;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQ1E;AAED,iBAAS,cAAc,CAAC,EACvB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,+CAUA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAW5E;AAED,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAYzF;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAahF;AAED,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5D;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE1E;AAED,iBAAS,cAAc,CAAC,EACvB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,+CAMA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAW5E;AAED,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAYzF;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAahF;AAED,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/calendar.d.ts b/dist/components/ui/calendar.d.ts index 68e0002d..cc8f78b3 100644 --- a/dist/components/ui/calendar.d.ts +++ b/dist/components/ui/calendar.d.ts @@ -1,5 +1,9 @@ -import { DayPicker } from 'react-day-picker'; +import { DayButton, DayPicker } from 'react-day-picker'; +import { Button } from './button'; import * as React from 'react'; -declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -export { Calendar }; +declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps & { + buttonVariant?: React.ComponentProps['variant']; +}): import("react/jsx-dev-runtime").JSX.Element; +declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; +export { Calendar, CalendarDayButton }; //# sourceMappingURL=calendar.d.ts.map \ No newline at end of file diff --git a/dist/components/ui/calendar.d.ts.map b/dist/components/ui/calendar.d.ts.map index 4fdc9498..b11fbb38 100644 --- a/dist/components/ui/calendar.d.ts.map +++ b/dist/components/ui/calendar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CAiDpH;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,QAAQ,CAAC,EACjB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC3C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAC/D,+CAyGA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CA4BzG;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/card.d.ts.map b/dist/components/ui/card.d.ts.map index 20de35e1..23536e5b 100644 --- a/dist/components/ui/card.d.ts.map +++ b/dist/components/ui/card.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAI5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/carousel.d.ts.map b/dist/components/ui/carousel.d.ts.map index ab4544f3..b1b0c376 100644 --- a/dist/components/ui/carousel.d.ts.map +++ b/dist/components/ui/carousel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAInF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACpC,CAAC;AAuBF,iBAAS,QAAQ,CAAC,EACjB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,+CA+E7C;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAW5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAgBzE;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAInF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACpC,CAAC;AAuBF,iBAAS,QAAQ,CAAC,EACjB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,+CA+E7C;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQ5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAYzE;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/chart.d.ts.map b/dist/components/ui/chart.d.ts.map index b9bd4df8..cc6769d3 100644 --- a/dist/components/ui/chart.d.ts.map +++ b/dist/components/ui/chart.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG;QACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC3B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACvG,CAAC;AAkBF,iBAAS,cAAc,CAAC,EACvB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CACzF,+CAoBA;AAED,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,uDA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,iBAAS,mBAAmB,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,SAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,sDAwGD;AAED,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACP,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC7B,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,sDA0CD;AA4BD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG;QACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC3B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACvG,CAAC;AAkBF,iBAAS,cAAc,CAAC,EACvB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CACzF,+CAoBA;AAED,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,uDA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,iBAAS,mBAAmB,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,SAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,sDAkGD;AAED,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACP,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC7B,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,sDAkCD;AA4BD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/command.d.ts b/dist/components/ui/command.d.ts index fdd512f3..fee8847e 100644 --- a/dist/components/ui/command.d.ts +++ b/dist/components/ui/command.d.ts @@ -2,9 +2,11 @@ import { Command as CommandPrimitive } from 'cmdk'; import { Dialog } from './dialog'; import * as React from 'react'; declare function Command({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -declare function CommandDialog({ title, description, children, ...props }: React.ComponentProps & { +declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps & { title?: string; description?: string; + className?: string; + showCloseButton?: boolean; }): import("react/jsx-dev-runtime").JSX.Element; declare function CommandInput({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function CommandList({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; diff --git a/dist/components/ui/command.d.ts.map b/dist/components/ui/command.d.ts.map index 816860f5..38df15f3 100644 --- a/dist/components/ui/command.d.ts.map +++ b/dist/components/ui/command.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EAAE,MAAM,EAA+D,MAAM,wBAAwB,CAAC;AAE7G,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,+CAWtF;AAED,iBAAS,aAAa,CAAC,EACtB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,+CAcA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAiBjG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ/F;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAItF;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAWjG;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW/F;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EAAE,MAAM,EAA+D,MAAM,wBAAwB,CAAC;AAE7G,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,+CAWtF;AAED,iBAAS,aAAa,CAAC,EACtB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,+CAcA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAcjG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ/F;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAWjG;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW/F;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/context-menu.d.ts.map b/dist/components/ui/context-menu.d.ts.map index 746fe60f..c09781e5 100644 --- a/dist/components/ui/context-menu.d.ts.map +++ b/dist/components/ui/context-menu.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+CAExF;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAElG;AAED,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,+CAE9F;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,+CAE1F;AAED,iBAAS,qBAAqB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAExG;AAED,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAWnH;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAa7G;AAED,iBAAS,eAAe,CAAC,EACxB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC,+CAmBhE;AAED,iBAAS,oBAAoB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAkB7D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAYA;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAQjH;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQjF;AAED,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,CAAC"} \ No newline at end of file +{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+CAExF;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAElG;AAED,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,+CAE9F;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,+CAE1F;AAED,iBAAS,qBAAqB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAExG;AAED,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAWnH;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAa7G;AAED,iBAAS,eAAe,CAAC,EACxB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC,+CAmBhE;AAED,iBAAS,oBAAoB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAkB7D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAQjH;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQjF;AAED,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/dialog.d.ts b/dist/components/ui/dialog.d.ts index fcd53e62..4d82d819 100644 --- a/dist/components/ui/dialog.d.ts +++ b/dist/components/ui/dialog.d.ts @@ -5,7 +5,9 @@ declare function DialogTrigger({ ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function DialogClose({ ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function DialogOverlay({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -declare function DialogContent({ className, children, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; +declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps & { + showCloseButton?: boolean; +}): import("react/jsx-dev-runtime").JSX.Element; declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-dev-runtime").JSX.Element; declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-dev-runtime").JSX.Element; declare function DialogTitle({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; diff --git a/dist/components/ui/dialog.d.ts.map b/dist/components/ui/dialog.d.ts.map index 409e3320..41e665ec 100644 --- a/dist/components/ui/dialog.d.ts.map +++ b/dist/components/ui/dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAoB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAC"} \ No newline at end of file +{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,+CAyBA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/drawer.d.ts.map b/dist/components/ui/drawer.d.ts.map index ad6c8822..0c18bfe1 100644 --- a/dist/components/ui/drawer.d.ts.map +++ b/dist/components/ui/drawer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAqB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,CAAC"} \ No newline at end of file +{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAqB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/form.d.ts.map b/dist/components/ui/form.d.ts.map index f4f066ec..130ba406 100644 --- a/dist/components/ui/form.d.ts.map +++ b/dist/components/ui/form.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKN,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACd,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC9D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gDAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAY3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,+CAYnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,sDAkBtE;AAED,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKN,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACd,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC9D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gDAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAY3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,+CAYnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,sDAatE;AAED,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/menubar.d.ts.map b/dist/components/ui/menubar.d.ts.map index 26b18ece..da85b0ec 100644 --- a/dist/components/ui/menubar.d.ts.map +++ b/dist/components/ui/menubar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAEpF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,+CAExF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAWrG;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,KAAe,EACf,WAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAgBvD;AAED,iBAAS,WAAW,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,YAAY,CAAC,+CAmB5D;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAkBnH;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,+CAElF;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAW3G;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,CAAC"} \ No newline at end of file +{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAEpF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,+CAExF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAWrG;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,KAAe,EACf,WAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAgBvD;AAED,iBAAS,WAAW,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,YAAY,CAAC,+CAmB5D;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAkBnH;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,+CAElF;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAW3G;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/navigation-menu.d.ts.map b/dist/components/ui/navigation-menu.d.ts.map index 2e451f4d..256f2328 100644 --- a/dist/components/ui/navigation-menu.d.ts.map +++ b/dist/components/ui/navigation-menu.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAeA;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAQ7G;AAED,QAAA,MAAM,0BAA0B,yFAE/B,CAAC;AAEF,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAc9D;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAYnH;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,+CAa/D;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,+CAahE;AAED,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,CAAC"} \ No newline at end of file +{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAYA;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAQ7G;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAI7G;AAED,QAAA,MAAM,0BAA0B,yFAE/B,CAAC;AAEF,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAc9D;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAYnH;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,+CAa/D;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,+CAahE;AAED,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/pagination.d.ts.map b/dist/components/ui/pagination.d.ts.map index 61cc696d..61a7cbca 100644 --- a/dist/components/ui/pagination.d.ts.map +++ b/dist/components/ui/pagination.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQ7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE/D;AAED,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACpD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+CAgB5F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY3F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAYhF;AAED,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE/D;AAED,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACpD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+CAgB5F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY3F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAYhF;AAED,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/progress.d.ts.map b/dist/components/ui/progress.d.ts.map index 566f0960..24e55546 100644 --- a/dist/components/ui/progress.d.ts.map +++ b/dist/components/ui/progress.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,+CAiBpG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,+CAcpG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/radio-group.d.ts.map b/dist/components/ui/radio-group.d.ts.map index 949b7a14..2b220606 100644 --- a/dist/components/ui/radio-group.d.ts.map +++ b/dist/components/ui/radio-group.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAIjG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAkBrG;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAEjG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAkBrG;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/sheet.d.ts.map b/dist/components/ui/sheet.d.ts.map index d039d26a..9c36b27f 100644 --- a/dist/components/ui/sheet.d.ts.map +++ b/dist/components/ui/sheet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,+CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAElF;AAmBD,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC3C,+CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,+CAQzG;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,+CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAElF;AAmBD,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC3C,+CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,+CAQzG;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/sidebar.d.ts.map b/dist/components/ui/sidebar.d.ts.map index 9a99706c..d06ce551 100644 --- a/dist/components/ui/sidebar.d.ts.map +++ b/dist/components/ui/sidebar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AASnG,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACxB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,+CAiFA;AAED,iBAAS,OAAO,CAAC,EAChB,IAAa,EACb,OAAmB,EACnB,WAAyB,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;CAC5C,+CAyFA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAoB5F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,+CAuB3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAY1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+CAShF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CASxF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAY3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CASzE;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAerD;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAiBxD;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAShF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CASvE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS3E;AAED,QAAA,MAAM,yBAAyB;;;mFAoB9B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAC1B,OAAe,EACf,QAAgB,EAChB,OAAmB,EACnB,IAAgB,EAChB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;CAC/D,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,+CA+BjD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,WAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,+CAsBA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAiB7E;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAyBA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAa1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS9E;AAED,iBAAS,oBAAoB,CAAC,EAC7B,OAAe,EACf,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAoBA;AAED,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,CAAC"} \ No newline at end of file +{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AASnG,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACxB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,+CA8EA;AAED,iBAAS,OAAO,CAAC,EAChB,IAAa,EACb,OAAmB,EACnB,WAAyB,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;CAC5C,+CAsFA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAoB5F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,+CAuB3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAY1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+CAShF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CASxF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAY3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CASzE;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAerD;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAiBxD;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAShF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CASvE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS3E;AAED,QAAA,MAAM,yBAAyB;;;mFAoB9B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAC1B,OAAe,EACf,QAAgB,EAChB,OAAmB,EACnB,IAAgB,EAChB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;CAC/D,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,+CA+BjD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,WAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,+CAsBA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAiB7E;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAyBA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAa1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS9E;AAED,iBAAS,oBAAoB,CAAC,EAC7B,OAAe,EACf,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAoBA;AAED,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/skeleton.d.ts.map b/dist/components/ui/skeleton.d.ts.map index 01694c8f..776128a7 100644 --- a/dist/components/ui/skeleton.d.ts.map +++ b/dist/components/ui/skeleton.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIrE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAErE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/slider.d.ts.map b/dist/components/ui/slider.d.ts.map index 3489b66c..4c6d9ef3 100644 --- a/dist/components/ui/slider.d.ts.map +++ b/dist/components/ui/slider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAyCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAuCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/table.d.ts.map b/dist/components/ui/table.d.ts.map index c266ad7c..63b44a70 100644 --- a/dist/components/ui/table.d.ts.map +++ b/dist/components/ui/table.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAMpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+CAQ7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAMpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+CAI7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/tabs.d.ts.map b/dist/components/ui/tabs.d.ts.map index 57f39891..6a701dee 100644 --- a/dist/components/ui/tabs.d.ts.map +++ b/dist/components/ui/tabs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAIrF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAQ/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAErF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAE/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/toggle.d.ts.map b/dist/components/ui/toggle.d.ts.map index 4111d29b..8215cf3c 100644 --- a/dist/components/ui/toggle.d.ts.map +++ b/dist/components/ui/toggle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAoBnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+CAIzF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAmBnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+CAIzF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/hooks/useTheme.d.ts b/dist/hooks/useTheme.d.ts deleted file mode 100644 index 28f01c43..00000000 --- a/dist/hooks/useTheme.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { default as React } from 'react'; -type Theme = 'dark' | 'light'; -declare const useTheme: () => any; -export declare const AppThemeProvider: ({ defaultScheme, children }: { - defaultScheme?: Theme; - children: React.ReactNode; -}) => import("react/jsx-dev-runtime").JSX.Element; -export default useTheme; -//# sourceMappingURL=useTheme.d.ts.map \ No newline at end of file diff --git a/dist/hooks/useTheme.d.ts.map b/dist/hooks/useTheme.d.ts.map deleted file mode 100644 index 9d118f9d..00000000 --- a/dist/hooks/useTheme.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAI9B,QAAA,MAAM,QAAQ,WAMb,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,6BAA6B;IAAE,aAAa,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,gDAiCjH,CAAC;AAEF,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/index.cjs.js b/dist/index.cjs.js index e94be3de..d5da7850 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const H=require("./index.cjs3.js"),N=require("./index.cjs4.js"),y=require("./index.cjs5.js"),x=require("./index.cjs6.js"),m=require("./index.cjs7.js"),n=require("./index.cjs8.js"),v=require("./index.cjs9.js"),O=require("./index.cjs10.js"),w=require("./index.cjs11.js"),G=require("./index.cjs12.js"),C=require("./index.cjs13.js"),L=require("./index.cjs14.js"),V=require("./index.cjs15.js"),p=require("./index.cjs16.js"),M=require("./index.cjs17.js"),S=require("./index.cjs18.js"),z=require("./index.cjs19.js"),A=require("./index.cjs20.js"),l=require("./index.cjs21.js"),o=require("./index.cjs22.js"),a=require("./index.cjs23.js"),i=require("./index.cjs24.js"),t=require("./index.cjs25.js"),g=require("./index.cjs26.js"),h=require("./index.cjs27.js"),D=require("./index.cjs28.js"),E=require("./index.cjs29.js"),f=require("./index.cjs30.js"),r=require("./index.cjs31.js"),d=require("./index.cjs32.js"),s=require("./index.cjs33.js"),T=require("./index.cjs34.js"),U=require("./index.cjs35.js"),F=require("./index.cjs36.js"),q=require("./index.cjs37.js"),B=require("./index.cjs38.js"),u=require("./index.cjs39.js"),_=require("./index.cjs40.js"),b=require("./index.cjs41.js"),e=require("./index.cjs42.js"),j=require("./index.cjs43.js"),W=require("./index.cjs44.js"),J=require("./index.cjs45.js"),K=require("./index.cjs46.js"),c=require("./index.cjs47.js"),I=require("./index.cjs48.js"),Q=require("./index.cjs49.js"),R=require("./index.cjs50.js"),k=require("./index.cjs51.js"),P=require("./index.cjs52.js");exports.Colors=H.default;exports.useTheme=N.default;exports.UIThemeProvider=y.default;exports.NextLinkProvider=x.LinkProvider;exports.useNextLink=x.useLinkComponent;exports.Accordion=m.Accordion;exports.AccordionContent=m.AccordionContent;exports.AccordionItem=m.AccordionItem;exports.AccordionTrigger=m.AccordionTrigger;exports.AlertDialog=n.AlertDialog;exports.AlertDialogAction=n.AlertDialogAction;exports.AlertDialogCancel=n.AlertDialogCancel;exports.AlertDialogContent=n.AlertDialogContent;exports.AlertDialogDescription=n.AlertDialogDescription;exports.AlertDialogFooter=n.AlertDialogFooter;exports.AlertDialogHeader=n.AlertDialogHeader;exports.AlertDialogOverlay=n.AlertDialogOverlay;exports.AlertDialogPortal=n.AlertDialogPortal;exports.AlertDialogTitle=n.AlertDialogTitle;exports.AlertDialogTrigger=n.AlertDialogTrigger;exports.Alert=v.Alert;exports.AlertDescription=v.AlertDescription;exports.AlertTitle=v.AlertTitle;exports.AspectRatio=O.AspectRatio;exports.Avatar=w.Avatar;exports.AvatarFallback=w.AvatarFallback;exports.AvatarImage=w.AvatarImage;exports.Badge=G.Badge;exports.badgeVariants=G.badgeVariants;exports.Breadcrumb=C.Breadcrumb;exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis;exports.BreadcrumbItem=C.BreadcrumbItem;exports.BreadcrumbLink=C.BreadcrumbLink;exports.BreadcrumbList=C.BreadcrumbList;exports.BreadcrumbPage=C.BreadcrumbPage;exports.BreadcrumbSeparator=C.BreadcrumbSeparator;exports.Button=L.Button;exports.buttonVariants=L.buttonVariants;exports.Calendar=V.Calendar;exports.Card=p.Card;exports.CardAction=p.CardAction;exports.CardContent=p.CardContent;exports.CardDescription=p.CardDescription;exports.CardFooter=p.CardFooter;exports.CardHeader=p.CardHeader;exports.CardTitle=p.CardTitle;exports.Carousel=M.Carousel;exports.CarouselContent=M.CarouselContent;exports.CarouselItem=M.CarouselItem;exports.CarouselNext=M.CarouselNext;exports.CarouselPrevious=M.CarouselPrevious;exports.ChartContainer=S.ChartContainer;exports.ChartLegend=S.ChartLegend;exports.ChartLegendContent=S.ChartLegendContent;exports.ChartStyle=S.ChartStyle;exports.ChartTooltip=S.ChartTooltip;exports.ChartTooltipContent=S.ChartTooltipContent;exports.Checkbox=z.Checkbox;exports.Collapsible=A.Collapsible;exports.CollapsibleContent=A.CollapsibleContent;exports.CollapsibleTrigger=A.CollapsibleTrigger;exports.Command=l.Command;exports.CommandDialog=l.CommandDialog;exports.CommandEmpty=l.CommandEmpty;exports.CommandGroup=l.CommandGroup;exports.CommandInput=l.CommandInput;exports.CommandItem=l.CommandItem;exports.CommandList=l.CommandList;exports.CommandSeparator=l.CommandSeparator;exports.CommandShortcut=l.CommandShortcut;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Dialog=a.Dialog;exports.DialogClose=a.DialogClose;exports.DialogContent=a.DialogContent;exports.DialogDescription=a.DialogDescription;exports.DialogFooter=a.DialogFooter;exports.DialogHeader=a.DialogHeader;exports.DialogOverlay=a.DialogOverlay;exports.DialogPortal=a.DialogPortal;exports.DialogTitle=a.DialogTitle;exports.DialogTrigger=a.DialogTrigger;exports.Drawer=i.Drawer;exports.DrawerClose=i.DrawerClose;exports.DrawerContent=i.DrawerContent;exports.DrawerDescription=i.DrawerDescription;exports.DrawerFooter=i.DrawerFooter;exports.DrawerHeader=i.DrawerHeader;exports.DrawerOverlay=i.DrawerOverlay;exports.DrawerPortal=i.DrawerPortal;exports.DrawerTitle=i.DrawerTitle;exports.DrawerTrigger=i.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.Form=g.Form;exports.FormControl=g.FormControl;exports.FormDescription=g.FormDescription;exports.FormField=g.FormField;exports.FormItem=g.FormItem;exports.FormLabel=g.FormLabel;exports.FormMessage=g.FormMessage;exports.useFormField=g.useFormField;exports.HoverCard=h.HoverCard;exports.HoverCardContent=h.HoverCardContent;exports.HoverCardTrigger=h.HoverCardTrigger;exports.InputOTP=D.InputOTP;exports.InputOTPGroup=D.InputOTPGroup;exports.InputOTPSeparator=D.InputOTPSeparator;exports.InputOTPSlot=D.InputOTPSlot;exports.Input=E.Input;exports.Label=f.Label;exports.Menubar=r.Menubar;exports.MenubarCheckboxItem=r.MenubarCheckboxItem;exports.MenubarContent=r.MenubarContent;exports.MenubarGroup=r.MenubarGroup;exports.MenubarItem=r.MenubarItem;exports.MenubarLabel=r.MenubarLabel;exports.MenubarMenu=r.MenubarMenu;exports.MenubarPortal=r.MenubarPortal;exports.MenubarRadioGroup=r.MenubarRadioGroup;exports.MenubarRadioItem=r.MenubarRadioItem;exports.MenubarSeparator=r.MenubarSeparator;exports.MenubarShortcut=r.MenubarShortcut;exports.MenubarSub=r.MenubarSub;exports.MenubarSubContent=r.MenubarSubContent;exports.MenubarSubTrigger=r.MenubarSubTrigger;exports.MenubarTrigger=r.MenubarTrigger;exports.NavigationMenu=d.NavigationMenu;exports.NavigationMenuContent=d.NavigationMenuContent;exports.NavigationMenuIndicator=d.NavigationMenuIndicator;exports.NavigationMenuItem=d.NavigationMenuItem;exports.NavigationMenuLink=d.NavigationMenuLink;exports.NavigationMenuList=d.NavigationMenuList;exports.NavigationMenuTrigger=d.NavigationMenuTrigger;exports.NavigationMenuViewport=d.NavigationMenuViewport;exports.navigationMenuTriggerStyle=d.navigationMenuTriggerStyle;exports.Pagination=s.Pagination;exports.PaginationContent=s.PaginationContent;exports.PaginationEllipsis=s.PaginationEllipsis;exports.PaginationItem=s.PaginationItem;exports.PaginationLink=s.PaginationLink;exports.PaginationNext=s.PaginationNext;exports.PaginationPrevious=s.PaginationPrevious;exports.Popover=T.Popover;exports.PopoverAnchor=T.PopoverAnchor;exports.PopoverContent=T.PopoverContent;exports.PopoverTrigger=T.PopoverTrigger;exports.Progress=U.Progress;exports.RadioGroup=F.RadioGroup;exports.RadioGroupItem=F.RadioGroupItem;exports.ResizableHandle=q.ResizableHandle;exports.ResizablePanel=q.ResizablePanel;exports.ResizablePanelGroup=q.ResizablePanelGroup;exports.ScrollArea=B.ScrollArea;exports.ScrollBar=B.ScrollBar;exports.Select=u.Select;exports.SelectContent=u.SelectContent;exports.SelectGroup=u.SelectGroup;exports.SelectItem=u.SelectItem;exports.SelectLabel=u.SelectLabel;exports.SelectScrollDownButton=u.SelectScrollDownButton;exports.SelectScrollUpButton=u.SelectScrollUpButton;exports.SelectSeparator=u.SelectSeparator;exports.SelectTrigger=u.SelectTrigger;exports.SelectValue=u.SelectValue;exports.Separator=_.Separator;exports.Sheet=b.Sheet;exports.SheetClose=b.SheetClose;exports.SheetContent=b.SheetContent;exports.SheetDescription=b.SheetDescription;exports.SheetFooter=b.SheetFooter;exports.SheetHeader=b.SheetHeader;exports.SheetTitle=b.SheetTitle;exports.SheetTrigger=b.SheetTrigger;exports.Sidebar=e.Sidebar;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarTrigger=e.SidebarTrigger;exports.useSidebar=e.useSidebar;exports.Skeleton=j.Skeleton;exports.Slider=W.Slider;exports.Toaster=J.Toaster;exports.Switch=K.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=I.Tabs;exports.TabsContent=I.TabsContent;exports.TabsList=I.TabsList;exports.TabsTrigger=I.TabsTrigger;exports.Textarea=Q.Textarea;exports.ToggleGroup=R.ToggleGroup;exports.ToggleGroupItem=R.ToggleGroupItem;exports.Toggle=k.Toggle;exports.toggleVariants=k.toggleVariants;exports.Tooltip=P.Tooltip;exports.TooltipContent=P.TooltipContent;exports.TooltipProvider=P.TooltipProvider;exports.TooltipTrigger=P.TooltipTrigger; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const N=require("./index.cjs3.js"),H=require("./index.cjs4.js"),x=require("./index.cjs5.js"),m=require("./index.cjs6.js"),a=require("./index.cjs7.js"),I=require("./index.cjs8.js"),y=require("./index.cjs9.js"),w=require("./index.cjs10.js"),L=require("./index.cjs11.js"),C=require("./index.cjs12.js"),F=require("./index.cjs13.js"),O=require("./index.cjs14.js"),s=require("./index.cjs15.js"),M=require("./index.cjs16.js"),S=require("./index.cjs17.js"),f=require("./index.cjs18.js"),q=require("./index.cjs19.js"),l=require("./index.cjs20.js"),o=require("./index.cjs21.js"),n=require("./index.cjs22.js"),i=require("./index.cjs23.js"),t=require("./index.cjs24.js"),b=require("./index.cjs25.js"),h=require("./index.cjs26.js"),D=require("./index.cjs27.js"),V=require("./index.cjs28.js"),z=require("./index.cjs29.js"),r=require("./index.cjs30.js"),d=require("./index.cjs31.js"),p=require("./index.cjs32.js"),T=require("./index.cjs33.js"),E=require("./index.cjs34.js"),G=require("./index.cjs35.js"),A=require("./index.cjs36.js"),B=require("./index.cjs37.js"),u=require("./index.cjs38.js"),K=require("./index.cjs39.js"),g=require("./index.cjs40.js"),e=require("./index.cjs41.js"),U=require("./index.cjs42.js"),W=require("./index.cjs43.js"),j=require("./index.cjs44.js"),_=require("./index.cjs45.js"),c=require("./index.cjs46.js"),v=require("./index.cjs47.js"),J=require("./index.cjs48.js"),R=require("./index.cjs49.js"),k=require("./index.cjs50.js"),P=require("./index.cjs51.js"),Q=require("./index.cjs52.js"),X=require("./index.cjs53.js"),Y=require("./index.cjs54.js"),Z=require("./index.cjs55.js"),$=require("./index.cjs56.js"),ee=require("./index.cjs57.js"),re=require("./index.cjs58.js"),oe=require("./index.cjs59.js"),te=require("./index.cjs60.js"),ae=require("./index.cjs61.js"),ne=require("./index.cjs62.js"),ie=require("./index.cjs63.js");exports.Colors=N.default;exports.ThemeProvider=H.default;exports.NextLinkProvider=x.LinkProvider;exports.useNextLink=x.useLinkComponent;exports.Accordion=m.Accordion;exports.AccordionContent=m.AccordionContent;exports.AccordionItem=m.AccordionItem;exports.AccordionTrigger=m.AccordionTrigger;exports.AlertDialog=a.AlertDialog;exports.AlertDialogAction=a.AlertDialogAction;exports.AlertDialogCancel=a.AlertDialogCancel;exports.AlertDialogContent=a.AlertDialogContent;exports.AlertDialogDescription=a.AlertDialogDescription;exports.AlertDialogFooter=a.AlertDialogFooter;exports.AlertDialogHeader=a.AlertDialogHeader;exports.AlertDialogOverlay=a.AlertDialogOverlay;exports.AlertDialogPortal=a.AlertDialogPortal;exports.AlertDialogTitle=a.AlertDialogTitle;exports.AlertDialogTrigger=a.AlertDialogTrigger;exports.Alert=I.Alert;exports.AlertDescription=I.AlertDescription;exports.AlertTitle=I.AlertTitle;exports.AspectRatio=y.AspectRatio;exports.Avatar=w.Avatar;exports.AvatarFallback=w.AvatarFallback;exports.AvatarImage=w.AvatarImage;exports.Badge=L.Badge;exports.badgeVariants=L.badgeVariants;exports.Breadcrumb=C.Breadcrumb;exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis;exports.BreadcrumbItem=C.BreadcrumbItem;exports.BreadcrumbLink=C.BreadcrumbLink;exports.BreadcrumbList=C.BreadcrumbList;exports.BreadcrumbPage=C.BreadcrumbPage;exports.BreadcrumbSeparator=C.BreadcrumbSeparator;exports.Button=F.Button;exports.buttonVariants=F.buttonVariants;exports.Calendar=O.Calendar;exports.Card=s.Card;exports.CardAction=s.CardAction;exports.CardContent=s.CardContent;exports.CardDescription=s.CardDescription;exports.CardFooter=s.CardFooter;exports.CardHeader=s.CardHeader;exports.CardTitle=s.CardTitle;exports.Carousel=M.Carousel;exports.CarouselContent=M.CarouselContent;exports.CarouselItem=M.CarouselItem;exports.CarouselNext=M.CarouselNext;exports.CarouselPrevious=M.CarouselPrevious;exports.ChartContainer=S.ChartContainer;exports.ChartLegend=S.ChartLegend;exports.ChartLegendContent=S.ChartLegendContent;exports.ChartStyle=S.ChartStyle;exports.ChartTooltip=S.ChartTooltip;exports.ChartTooltipContent=S.ChartTooltipContent;exports.Checkbox=f.Checkbox;exports.Collapsible=q.Collapsible;exports.CollapsibleContent=q.CollapsibleContent;exports.CollapsibleTrigger=q.CollapsibleTrigger;exports.Command=l.Command;exports.CommandDialog=l.CommandDialog;exports.CommandEmpty=l.CommandEmpty;exports.CommandGroup=l.CommandGroup;exports.CommandInput=l.CommandInput;exports.CommandItem=l.CommandItem;exports.CommandList=l.CommandList;exports.CommandSeparator=l.CommandSeparator;exports.CommandShortcut=l.CommandShortcut;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Dialog=n.Dialog;exports.DialogClose=n.DialogClose;exports.DialogContent=n.DialogContent;exports.DialogDescription=n.DialogDescription;exports.DialogFooter=n.DialogFooter;exports.DialogHeader=n.DialogHeader;exports.DialogOverlay=n.DialogOverlay;exports.DialogPortal=n.DialogPortal;exports.DialogTitle=n.DialogTitle;exports.DialogTrigger=n.DialogTrigger;exports.Drawer=i.Drawer;exports.DrawerClose=i.DrawerClose;exports.DrawerContent=i.DrawerContent;exports.DrawerDescription=i.DrawerDescription;exports.DrawerFooter=i.DrawerFooter;exports.DrawerHeader=i.DrawerHeader;exports.DrawerOverlay=i.DrawerOverlay;exports.DrawerPortal=i.DrawerPortal;exports.DrawerTitle=i.DrawerTitle;exports.DrawerTrigger=i.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.Form=b.Form;exports.FormControl=b.FormControl;exports.FormDescription=b.FormDescription;exports.FormField=b.FormField;exports.FormItem=b.FormItem;exports.FormLabel=b.FormLabel;exports.FormMessage=b.FormMessage;exports.useFormField=b.useFormField;exports.HoverCard=h.HoverCard;exports.HoverCardContent=h.HoverCardContent;exports.HoverCardTrigger=h.HoverCardTrigger;exports.InputOTP=D.InputOTP;exports.InputOTPGroup=D.InputOTPGroup;exports.InputOTPSeparator=D.InputOTPSeparator;exports.InputOTPSlot=D.InputOTPSlot;exports.ShadInput=V.Input;exports.Label=z.Label;exports.Menubar=r.Menubar;exports.MenubarCheckboxItem=r.MenubarCheckboxItem;exports.MenubarContent=r.MenubarContent;exports.MenubarGroup=r.MenubarGroup;exports.MenubarItem=r.MenubarItem;exports.MenubarLabel=r.MenubarLabel;exports.MenubarMenu=r.MenubarMenu;exports.MenubarPortal=r.MenubarPortal;exports.MenubarRadioGroup=r.MenubarRadioGroup;exports.MenubarRadioItem=r.MenubarRadioItem;exports.MenubarSeparator=r.MenubarSeparator;exports.MenubarShortcut=r.MenubarShortcut;exports.MenubarSub=r.MenubarSub;exports.MenubarSubContent=r.MenubarSubContent;exports.MenubarSubTrigger=r.MenubarSubTrigger;exports.MenubarTrigger=r.MenubarTrigger;exports.NavigationMenu=d.NavigationMenu;exports.NavigationMenuContent=d.NavigationMenuContent;exports.NavigationMenuIndicator=d.NavigationMenuIndicator;exports.NavigationMenuItem=d.NavigationMenuItem;exports.NavigationMenuLink=d.NavigationMenuLink;exports.NavigationMenuList=d.NavigationMenuList;exports.NavigationMenuTrigger=d.NavigationMenuTrigger;exports.NavigationMenuViewport=d.NavigationMenuViewport;exports.navigationMenuTriggerStyle=d.navigationMenuTriggerStyle;exports.Pagination=p.Pagination;exports.PaginationContent=p.PaginationContent;exports.PaginationEllipsis=p.PaginationEllipsis;exports.PaginationItem=p.PaginationItem;exports.PaginationLink=p.PaginationLink;exports.PaginationNext=p.PaginationNext;exports.PaginationPrevious=p.PaginationPrevious;exports.Popover=T.Popover;exports.PopoverAnchor=T.PopoverAnchor;exports.PopoverContent=T.PopoverContent;exports.PopoverTrigger=T.PopoverTrigger;exports.Progress=E.Progress;exports.RadioGroup=G.RadioGroup;exports.RadioGroupItem=G.RadioGroupItem;exports.ResizableHandle=A.ResizableHandle;exports.ResizablePanel=A.ResizablePanel;exports.ResizablePanelGroup=A.ResizablePanelGroup;exports.ScrollArea=B.ScrollArea;exports.ScrollBar=B.ScrollBar;exports.Select=u.Select;exports.SelectContent=u.SelectContent;exports.SelectGroup=u.SelectGroup;exports.SelectItem=u.SelectItem;exports.SelectLabel=u.SelectLabel;exports.SelectScrollDownButton=u.SelectScrollDownButton;exports.SelectScrollUpButton=u.SelectScrollUpButton;exports.SelectSeparator=u.SelectSeparator;exports.SelectTrigger=u.SelectTrigger;exports.SelectValue=u.SelectValue;exports.Separator=K.Separator;exports.Sheet=g.Sheet;exports.SheetClose=g.SheetClose;exports.SheetContent=g.SheetContent;exports.SheetDescription=g.SheetDescription;exports.SheetFooter=g.SheetFooter;exports.SheetHeader=g.SheetHeader;exports.SheetTitle=g.SheetTitle;exports.SheetTrigger=g.SheetTrigger;exports.Sidebar=e.Sidebar;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarTrigger=e.SidebarTrigger;exports.useSidebar=e.useSidebar;exports.Skeleton=U.Skeleton;exports.Slider=W.Slider;exports.Toaster=j.Toaster;exports.Switch=_.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=v.Tabs;exports.TabsContent=v.TabsContent;exports.TabsList=v.TabsList;exports.TabsTrigger=v.TabsTrigger;exports.Textarea=J.Textarea;exports.ToggleGroup=R.ToggleGroup;exports.ToggleGroupItem=R.ToggleGroupItem;exports.Toggle=k.Toggle;exports.toggleVariants=k.toggleVariants;exports.Tooltip=P.Tooltip;exports.TooltipContent=P.TooltipContent;exports.TooltipProvider=P.TooltipProvider;exports.TooltipTrigger=P.TooltipTrigger;exports.RootLayout=Q.default;exports.Sidenav=X.default;exports.CheckboxWithLabel=Y.default;exports.StatCard=Z.default;exports.DetailStat=$.default;exports.KeyFactCard=ee.default;exports.CopyToClipboard=re.default;exports.NavBreadcrumb=oe.default;exports.Notification=te.default;exports.ProblemsOverview=ae.default;exports.SelectWithOptions=ne.default;exports.Input=ie.default; diff --git a/dist/index.cjs10.js b/dist/index.cjs10.js index 654c1f6e..b69f5089 100644 --- a/dist/index.cjs10.js +++ b/dist/index.cjs10.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@radix-ui/react-aspect-ratio");function i(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const a=i(c);function n({...t}){return React.createElement(a.Root,{"data-slot":"aspect-ratio",...t})}exports.AspectRatio=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),i=require("@radix-ui/react-avatar"),n=require("./index.cjs65.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=u(i);function o({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Root,{"data-slot":"avatar",className:n.cn("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Image,{"data-slot":"avatar-image",className:n.cn("aspect-square size-full",e),...t})}function f({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Fallback,{"data-slot":"avatar-fallback",className:n.cn("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}exports.Avatar=o;exports.AvatarFallback=f;exports.AvatarImage=c; diff --git a/dist/index.cjs100.js b/dist/index.cjs100.js new file mode 100644 index 00000000..2930269b --- /dev/null +++ b/dist/index.cjs100.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(){return!1}var t=!1;function n(){return t}const u=process.env.NODE_ENV==="production"?o:n;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(e&&typeof e.webpackHotUpdate=="function"){var d=e.webpackHotUpdate;e.webpackHotUpdate=function(){return t=!0,setTimeout(function(){t=!1},0),d.apply(void 0,arguments)}}}exports.default=u; diff --git a/dist/index.cjs101.js b/dist/index.cjs101.js new file mode 100644 index 00000000..88712756 --- /dev/null +++ b/dist/index.cjs101.js @@ -0,0 +1 @@ +"use strict";function r(o){return o.notSplit=!0,o}r(["borderTop","borderBottom"]),r(["borderTop"]),r(["borderBottom"]),r(["borderLeft","borderRight"]),r(["borderLeft"]),r(["borderRight"]); diff --git a/dist/index.cjs102.js b/dist/index.cjs102.js new file mode 100644 index 00000000..c47a7e13 --- /dev/null +++ b/dist/index.cjs102.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react");var t=e.createContext({});exports.default=t; diff --git a/dist/index.cjs103.js b/dist/index.cjs103.js new file mode 100644 index 00000000..ea0374aa --- /dev/null +++ b/dist/index.cjs103.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");function c(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,e.get?e:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const o=c(u);function a(t,r,n){var e=o.useRef({});return(!("value"in e.current)||n(e.current.condition,r))&&(e.current.value=t(),e.current.condition=r),e.current.value}exports.default=a; diff --git a/dist/index.cjs104.js b/dist/index.cjs104.js new file mode 100644 index 00000000..aed62e40 --- /dev/null +++ b/dist/index.cjs104.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./index.cjs155.js"),j=require("./index.cjs156.js"),v=require("./index.cjs144.js"),O=require("./index.cjs157.js"),s=require("./index.cjs158.js");function A(e,n,t,r){if(!n.length)return t;var o=O.default(n),a=o[0],u=o.slice(1),f;return!e&&typeof a=="number"?f=[]:Array.isArray(e)?f=v.default(e):f=j.default({},e),r&&t===void 0&&u.length===1?delete f[a][u[0]]:f[a]=A(f[a],u,t,r),f}function i(e,n,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&r&&t===void 0&&!s.default(e,n.slice(0,-1))?e:A(e,n,t,r)}function S(e){return y.default(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function m(e){return Array.isArray(e)?[]:{}}var q=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function p(){for(var e=arguments.length,n=new Array(e),t=0;te[t]})}}return r.default=e,Object.freeze(r)}const l=O(g);function a(){}let n=null;function p(){n=null,u.resetWarned()}let d=a;process.env.NODE_ENV!=="production"&&(d=(e,r,t)=>{u.warningOnce(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&p()});const f=l.createContext({}),W=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=l.useContext(f),t=(o,s,i)=>{if(!o)if(r===!1&&s==="deprecated"){const c=n;n||(n={}),n[e]=n[e]||[],n[e].includes(i||"")||n[e].push(i||""),c||console.warn("[antd] There exists deprecated usage in your code:",n)}else process.env.NODE_ENV!=="production"&&d(o,e,i)};return t.deprecated=(o,s,i,c)=>{t(o,"deprecated",`\`${s}\` is deprecated. Please use \`${i}\` instead.${c?` ${c}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=a,e},v=d;exports.WarningContext=f;exports.default=v;exports.devUseWarning=W;exports.noop=a;exports.resetWarned=p; diff --git a/dist/index.cjs106.js b/dist/index.cjs106.js new file mode 100644 index 00000000..bf05963a --- /dev/null +++ b/dist/index.cjs106.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),t=e.createContext(void 0);exports.default=t; diff --git a/dist/index.cjs107.js b/dist/index.cjs107.js new file mode 100644 index 00000000..d86f3298 --- /dev/null +++ b/dist/index.cjs107.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),u=require("./index.cjs105.js"),d=require("./index.cjs159.js"),f=require("./index.cjs108.js");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const c=p(s),a="internalMark",i=t=>{const{locale:e={},children:o,_ANT_MARK__:r}=t;if(process.env.NODE_ENV!=="production"){const n=u.devUseWarning("LocaleProvider");process.env.NODE_ENV!=="production"&&n(r===a,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>d.changeConfirmLocale(e&&e.Modal),[e]);const l=c.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return c.createElement(f.default.Provider,{value:l},o)};process.env.NODE_ENV!=="production"&&(i.displayName="LocaleProvider");exports.ANT_MARK=a;exports.default=i; diff --git a/dist/index.cjs108.js b/dist/index.cjs108.js new file mode 100644 index 00000000..bf05963a --- /dev/null +++ b/dist/index.cjs108.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),t=e.createContext(void 0);exports.default=t; diff --git a/dist/index.cjs109.js b/dist/index.cjs109.js new file mode 100644 index 00000000..b67935ca --- /dev/null +++ b/dist/index.cjs109.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="${label} is not a valid ${type}",a={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:e,method:e,array:e,object:e,number:e,date:e,boolean:e,integer:e,float:e,regexp:e,email:e,url:e,hex:e},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};exports.default=a; diff --git a/dist/index.cjs11.js b/dist/index.cjs11.js index 8c78da43..efbe3e98 100644 --- a/dist/index.cjs11.js +++ b/dist/index.cjs11.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),s=require("@radix-ui/react-avatar"),l=require("./index.cjs54.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=c(o),i=c(s);function u({className:e,...t}){return r.createElement(i.Root,{"data-slot":"avatar",className:l.cn("lib:relative lib:flex lib:size-8 lib:shrink-0 lib:overflow-hidden lib:rounded-full",e),...t})}function b({className:e,...t}){return r.createElement(i.Image,{"data-slot":"avatar-image",className:l.cn("lib:aspect-square lib:size-full",e),...t})}function f({className:e,...t}){return r.createElement(i.Fallback,{"data-slot":"avatar-fallback",className:l.cn("lib:bg-muted lib:flex lib:size-full lib:items-center lib:justify-center lib:rounded-full",e),...t})}exports.Avatar=u;exports.AvatarFallback=f;exports.AvatarImage=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs64.js"),o=require("@radix-ui/react-slot"),d=require("class-variance-authority"),c=require("./index.cjs65.js"),e=d.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function u({className:r,variant:t,asChild:i=!1,...a}){const n=i?o.Slot:"span";return s.jsxRuntimeExports.jsx(n,{"data-slot":"badge",className:c.cn(e({variant:t}),r),...a})}exports.Badge=u;exports.badgeVariants=e; diff --git a/dist/index.cjs110.js b/dist/index.cjs110.js new file mode 100644 index 00000000..197b60c4 --- /dev/null +++ b/dist/index.cjs110.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react");require("./index.cjs92.js");require("./index.cjs93.js");require("./index.cjs94.js");const u=require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const i=require("./index.cjs160.js"),e=require("./index.cjs111.js"),o=u.default(i.default),r={token:e.default,override:{override:e.default},hashed:!0},n=t.createContext(r);exports.DesignTokenContext=n;exports.defaultConfig=r;exports.defaultTheme=o; diff --git a/dist/index.cjs111.js b/dist/index.cjs111.js new file mode 100644 index 00000000..85d8b877 --- /dev/null +++ b/dist/index.cjs111.js @@ -0,0 +1,3 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},e),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});exports.default=o;exports.defaultPresetColors=e; diff --git a/dist/index.cjs112.js b/dist/index.cjs112.js new file mode 100644 index 00000000..27f307a8 --- /dev/null +++ b/dist/index.cjs112.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=i(a),r="anticon",u=(e,t)=>t||(e?`ant-${e}`:"ant"),c=f.createContext({getPrefixCls:u,iconPrefixCls:r}),{Consumer:l}=c;exports.ConfigConsumer=l;exports.ConfigContext=c;exports.defaultIconPrefixCls=r; diff --git a/dist/index.cjs113.js b/dist/index.cjs113.js new file mode 100644 index 00000000..dde18e4e --- /dev/null +++ b/dist/index.cjs113.js @@ -0,0 +1,6 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs161.js");const f=require("./index.cjs162.js"),u=require("./index.cjs163.js"),C=require("./index.cjs105.js"),d=require("./index.cjs164.js"),s=require("./index.cjs165.js"),y=`-ant-${Date.now()}-${Math.random()}`;function p(a,i){const o={},l=(t,e)=>{let n=t.clone();return n=e?.(n)||n,n.toRgbString()},c=(t,e)=>{const n=new s.TinyColor(t),r=d.default(n.toRgbString());o[`${e}-color`]=l(n),o[`${e}-color-disabled`]=r[1],o[`${e}-color-hover`]=r[4],o[`${e}-color-active`]=r[6],o[`${e}-color-outline`]=n.clone().setAlpha(.2).toRgbString(),o[`${e}-color-deprecated-bg`]=r[0],o[`${e}-color-deprecated-border`]=r[2]};if(i.primaryColor){c(i.primaryColor,"primary");const t=new s.TinyColor(i.primaryColor),e=d.default(t.toRgbString());e.forEach((r,g)=>{o[`primary-${g+1}`]=r}),o["primary-color-deprecated-l-35"]=l(t,r=>r.lighten(35)),o["primary-color-deprecated-l-20"]=l(t,r=>r.lighten(20)),o["primary-color-deprecated-t-20"]=l(t,r=>r.tint(20)),o["primary-color-deprecated-t-50"]=l(t,r=>r.tint(50)),o["primary-color-deprecated-f-12"]=l(t,r=>r.setAlpha(r.getAlpha()*.12));const n=new s.TinyColor(e[0]);o["primary-color-active-deprecated-f-30"]=l(n,r=>r.setAlpha(r.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=l(n,r=>r.darken(2))}return i.successColor&&c(i.successColor,"success"),i.warningColor&&c(i.warningColor,"warning"),i.errorColor&&c(i.errorColor,"error"),i.infoColor&&c(i.infoColor,"info"),` + :root { + ${Object.keys(o).map(t=>`--${a}-${t}: ${o[t]};`).join(` +`)} + } + `.trim()}function m(a,i){const o=p(a,i);f.default()?u.updateCSS(o,`${y}-dynamic-theme`):process.env.NODE_ENV!=="production"&&C.default(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}exports.getStyle=p;exports.registerTheme=m; diff --git a/dist/index.cjs114.js b/dist/index.cjs114.js new file mode 100644 index 00000000..383e0835 --- /dev/null +++ b/dist/index.cjs114.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react");function i(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=i(a),l=o.createContext(!1),c=t=>{let{children:r,disabled:e}=t;const n=o.useContext(l);return o.createElement(l.Provider,{value:e??n},r)};exports.DisabledContextProvider=c;exports.default=l; diff --git a/dist/index.cjs115.js b/dist/index.cjs115.js new file mode 100644 index 00000000..0d1dfd7c --- /dev/null +++ b/dist/index.cjs115.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),n=require("./index.cjs114.js"),u=require("./index.cjs119.js");function s(){const t=e.useContext(n.default),o=e.useContext(u.default);return{componentDisabled:t,componentSize:o}}exports.default=s; diff --git a/dist/index.cjs116.js b/dist/index.cjs116.js new file mode 100644 index 00000000..98fd176c --- /dev/null +++ b/dist/index.cjs116.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("./index.cjs103.js"),j=require("./index.cjs166.js"),O=require("./index.cjs105.js"),y=require("./index.cjs167.js"),v=require("./index.cjs110.js");function k(r,e,t){var a,d;const f=O.devUseWarning("ConfigProvider"),s=r||{},n=s.inherit===!1||!e?Object.assign(Object.assign({},v.defaultConfig),{hashed:(a=e?.hashed)!==null&&a!==void 0?a:v.defaultConfig.hashed,cssVar:e?.cssVar}):e,b=y.default();if(process.env.NODE_ENV!=="production"){const o=s.cssVar||n.cssVar,c=!!(typeof s.cssVar=="object"&&(!((d=s.cssVar)===null||d===void 0)&&d.key)||b);process.env.NODE_ENV!=="production"&&f(!o||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return V.default(()=>{var o,c;if(!r)return e;const i=Object.assign({},n.components);Object.keys(r.components||{}).forEach(g=>{i[g]=Object.assign(Object.assign({},i[g]),r.components[g])});const u=`css-var-${b.replace(/:/g,"")}`,l=((o=s.cssVar)!==null&&o!==void 0?o:n.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof n.cssVar=="object"?n.cssVar:{}),typeof s.cssVar=="object"?s.cssVar:{}),{key:typeof s.cssVar=="object"&&((c=s.cssVar)===null||c===void 0?void 0:c.key)||u});return Object.assign(Object.assign(Object.assign({},n),s),{token:Object.assign(Object.assign({},n.token),s.token),components:i,cssVar:l})},[s,n],(o,c)=>o.some((i,u)=>{const l=c[u];return!j.default(i,l,!0)}))}exports.default=k; diff --git a/dist/index.cjs117.js b/dist/index.cjs117.js new file mode 100644 index 00000000..e1d678fb --- /dev/null +++ b/dist/index.cjs117.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react");require("./index.cjs141.js");require("./index.cjs142.js");const c=require("./index.cjs168.js");require("./index.cjs92.js");require("./index.cjs93.js");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const a=require("./index.cjs130.js");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=s(i);function l(e){const{children:r}=e,[,t]=a.default(),{motion:n}=t,u=o.useRef(!1);return u.current=u.current||n===!1,u.current?o.createElement(c.default,{motion:n},r):r}exports.default=l; diff --git a/dist/index.cjs118.js b/dist/index.cjs118.js new file mode 100644 index 00000000..227f3b6d --- /dev/null +++ b/dist/index.cjs118.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),i=require("./index.cjs105.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=a(c),o=u.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return i.devUseWarning("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(o.displayName="PropWarning");const d=process.env.NODE_ENV!=="production"?o:()=>null;exports.default=d; diff --git a/dist/index.cjs119.js b/dist/index.cjs119.js new file mode 100644 index 00000000..48e04c52 --- /dev/null +++ b/dist/index.cjs119.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=u(c),i=o.createContext(void 0),a=e=>{let{children:r,size:t}=e;const n=o.useContext(i);return o.createElement(i.Provider,{value:t||n},r)};exports.SizeContextProvider=a;exports.default=i; diff --git a/dist/index.cjs12.js b/dist/index.cjs12.js index 0607dd4f..a4af84a9 100644 --- a/dist/index.cjs12.js +++ b/dist/index.cjs12.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),b=require("@radix-ui/react-slot"),o=require("class-variance-authority"),s=require("./index.cjs54.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return r.default=e,Object.freeze(r)}const d=c(l),a=o.cva("lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden",{variants:{variant:{default:"lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90",secondary:"lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90",destructive:"lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60",outline:"lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground"}},defaultVariants:{variant:"default"}});function u({className:e,variant:r,asChild:i=!1,...t}){const n=i?b.Slot:"span";return d.createElement(n,{"data-slot":"badge",className:s.cn(a({variant:r}),e),...t})}exports.Badge=u;exports.badgeVariants=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),u=require("@radix-ui/react-slot"),n=require("lucide-react"),a=require("./index.cjs65.js");function o({...e}){return t.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function c({className:e,...r}){return t.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:a.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r})}function m({className:e,...r}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:a.cn("inline-flex items-center gap-1.5",e),...r})}function l({asChild:e,className:r,...s}){const i=e?u.Slot:"a";return t.jsxRuntimeExports.jsx(i,{"data-slot":"breadcrumb-link",className:a.cn("hover:text-foreground transition-colors",r),...s})}function d({className:e,...r}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:a.cn("text-foreground font-normal",e),...r})}function x({children:e,className:r,...s}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:a.cn("[&>svg]:size-3.5",r),...s,children:e??t.jsxRuntimeExports.jsx(n.ChevronRight,{})})}function b({className:e,...r}){return t.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:a.cn("flex size-9 items-center justify-center",e),...r,children:[t.jsxRuntimeExports.jsx(n.MoreHorizontal,{className:"size-4"}),t.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb=o;exports.BreadcrumbEllipsis=b;exports.BreadcrumbItem=m;exports.BreadcrumbLink=l;exports.BreadcrumbList=c;exports.BreadcrumbPage=d;exports.BreadcrumbSeparator=x; diff --git a/dist/index.cjs120.js b/dist/index.cjs120.js new file mode 100644 index 00000000..e03713c3 --- /dev/null +++ b/dist/index.cjs120.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");const t=require("./index.cjs218.js");require("./index.cjs101.js");const i=require("./index.cjs186.js"),n=require("./index.cjs130.js"),o=(e,r)=>{const[s,u]=n.default();return t.default({token:u,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},i.resetIcon()),{[`.${e} .${e}-icon`]:{display:"block"}})}])};exports.default=o; diff --git a/dist/index.cjs121.js b/dist/index.cjs121.js new file mode 100644 index 00000000..81806dcd --- /dev/null +++ b/dist/index.cjs121.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs90.js"),s=require("./index.cjs136.js");var r=s.__require();const t=e.getDefaultExportFromCjs(r);exports.default=t; diff --git a/dist/index.cjs122.js b/dist/index.cjs122.js new file mode 100644 index 00000000..e7bf1618 --- /dev/null +++ b/dist/index.cjs122.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("./index.cjs147.js"),H=require("./index.cjs156.js"),M=require("./index.cjs209.js"),k=require("./index.cjs184.js"),a=require("react"),z=require("./index.cjs252.js"),W=require("./index.cjs183.js");function B(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const y=B(a);var F=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],G=function(e,o){var i=e.overlayClassName,n=e.trigger,g=n===void 0?["hover"]:n,r=e.mouseEnterDelay,b=r===void 0?0:r,l=e.mouseLeaveDelay,C=l===void 0?.1:l,h=e.overlayStyle,u=e.prefixCls,s=u===void 0?"rc-tooltip":u,P=e.children,_=e.onVisibleChange,w=e.afterVisibleChange,D=e.transitionName,S=e.animation,T=e.motion,c=e.placement,V=c===void 0?"right":c,d=e.align,x=d===void 0?{}:d,p=e.destroyTooltipOnHide,E=p===void 0?!1:p,N=e.defaultVisible,O=e.getTooltipContainer,$=e.overlayInnerStyle;e.arrowContent;var j=e.overlay,q=e.id,m=e.showArrow,A=m===void 0?!0:m,I=M.default(e,F),f=a.useRef(null);a.useImperativeHandle(o,function(){return f.current});var v=H.default({},I);"visible"in e&&(v.popupVisible=e.visible);var L=function(){return y.createElement(W.default,{key:"content",prefixCls:s,id:q,overlayInnerStyle:$},j)};return y.createElement(k.default,R.default({popupClassName:i,prefixCls:s,popup:L,action:g,builtinPlacements:z.placements,popupPlacement:V,ref:f,popupAlign:x,getPopupContainer:O,onPopupVisibleChange:_,afterPopupVisibleChange:w,popupTransitionName:D,popupAnimation:S,popupMotion:T,defaultPopupVisible:N,autoDestroy:E,mouseLeaveDelay:C,popupStyle:h,mouseEnterDelay:b,arrow:A},v),P)};const J=a.forwardRef(G);exports.default=J; diff --git a/dist/index.cjs123.js b/dist/index.cjs123.js new file mode 100644 index 00000000..e3ce3ea2 --- /dev/null +++ b/dist/index.cjs123.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("./index.cjs171.js"),S=require("./index.cjs172.js"),p=require("./index.cjs173.js"),V=require("./index.cjs174.js");function l(n){return n!==void 0}function b(n,_){var t=_||{},u=t.defaultValue,e=t.value,h=t.onChange,s=t.postState,y=V.default(function(){return l(e)?e:l(u)?typeof u=="function"?u():u:n}),o=g.default(y,2),f=o[0],i=o[1],a=e!==void 0?e:f,q=s?s(a):a,C=S.default(h),E=V.default([a]),d=g.default(E,2),c=d[0],M=d[1];p.useLayoutUpdateEffect(function(){var r=c[0];f!==r&&C(f,r)},[c]),p.useLayoutUpdateEffect(function(){l(e)||i(e)},[e]);var L=S.default(function(r,v){i(r,v),M([a],v)});return[q,L]}exports.default=b; diff --git a/dist/index.cjs124.js b/dist/index.cjs124.js new file mode 100644 index 00000000..d0e738f9 --- /dev/null +++ b/dist/index.cjs124.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),f=require("./index.cjs130.js"),O=require("./index.cjs128.js"),e=100,l=10,u=e*l,s={Modal:e,Drawer:e,Popover:e,Popconfirm:e,Tooltip:e,Tour:e},a={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function I(t){return t in s}function T(t,r){const[,i]=f.default(),o=c.useContext(O.default),d=I(t);if(r!==void 0)return[r,r];let n=o??0;return d?(n+=(o?0:i.zIndexPopupBase)+s[t],n=Math.min(n,i.zIndexPopupBase+u)):n+=a[t],[o===void 0?r:n,n]}exports.CONTAINER_MAX_OFFSET=u;exports.consumerBaseZIndexOffset=a;exports.containerBaseZIndexOffset=s;exports.useZIndex=T; diff --git a/dist/index.cjs125.js b/dist/index.cjs125.js new file mode 100644 index 00000000..9896c56c --- /dev/null +++ b/dist/index.cjs125.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(t,n,e)=>e!==void 0?e:`${t}-${n}`;exports.getTransitionName=r; diff --git a/dist/index.cjs126.js b/dist/index.cjs126.js new file mode 100644 index 00000000..2e7223f8 --- /dev/null +++ b/dist/index.cjs126.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./index.cjs181.js");function b(n,a,c,s){if(s===!1)return{adjustX:!1,adjustY:!1};const i=s&&typeof s=="object"?s:{},e={};switch(n){case"top":case"bottom":e.shiftX=a.arrowOffsetHorizontal*2+c,e.shiftY=!0,e.adjustY=!0;break;case"left":case"right":e.shiftY=a.arrowOffsetVertical*2+c,e.shiftX=!0,e.adjustX=!0;break}const t=Object.assign(Object.assign({},e),i);return t.shiftX||(t.adjustX=!0),t.shiftY||(t.adjustY=!0),t}const p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},m={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},u=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function w(n){const{arrowWidth:a,autoAdjustOverflow:c,arrowPointAtCenter:s,offset:i,borderRadius:e}=n,t=a/2,l={};return Object.keys(p).forEach(r=>{const g=s&&m[r]||p[r],o=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(l[r]=o,u.has(r)&&(o.autoArrow=!1),r){case"top":case"topLeft":case"topRight":o.offset[1]=-t-i;break;case"bottom":case"bottomLeft":case"bottomRight":o.offset[1]=t+i;break;case"left":case"leftTop":case"leftBottom":o.offset[0]=-t-i;break;case"right":case"rightTop":case"rightBottom":o.offset[0]=t+i;break}const f=h.getArrowOffsetToken({contentRadius:e,limitVerticalRadius:!0});if(s)switch(r){case"topLeft":case"bottomLeft":o.offset[0]=-f.arrowOffsetHorizontal-t;break;case"topRight":case"bottomRight":o.offset[0]=f.arrowOffsetHorizontal+t;break;case"leftTop":case"rightTop":o.offset[1]=-f.arrowOffsetHorizontal-t;break;case"leftBottom":case"rightBottom":o.offset[1]=f.arrowOffsetHorizontal+t;break}o.overflow=b(r,f,a,c),o.htmlRegion="visibleFirst"}),l}exports.default=w;exports.getOverflowOptions=b; diff --git a/dist/index.cjs127.js b/dist/index.cjs127.js new file mode 100644 index 00000000..60e88616 --- /dev/null +++ b/dist/index.cjs127.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react");function l(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const i=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function o(e,n){return i(e,e,n)}exports.cloneElement=o;exports.isFragment=l;exports.replaceElement=i; diff --git a/dist/index.cjs128.js b/dist/index.cjs128.js new file mode 100644 index 00000000..3a89b018 --- /dev/null +++ b/dist/index.cjs128.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),e=t.createContext(void 0);process.env.NODE_ENV!=="production"&&(e.displayName="zIndexContext");exports.default=e; diff --git a/dist/index.cjs129.js b/dist/index.cjs129.js new file mode 100644 index 00000000..3947c1b9 --- /dev/null +++ b/dist/index.cjs129.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");require("./index.cjs121.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(l),c=o.createContext(null),u=e=>{let{children:t}=e;return o.createElement(c.Provider,{value:null},t)};exports.NoCompactStyle=u;exports.SpaceCompactItemContext=c; diff --git a/dist/index.cjs13.js b/dist/index.cjs13.js index cce58d34..11592b98 100644 --- a/dist/index.cjs13.js +++ b/dist/index.cjs13.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),s=require("@radix-ui/react-slot"),i=require("lucide-react"),l=require("./index.cjs54.js");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=o(c);function u({...e}){return t.createElement("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function b({className:e,...r}){return t.createElement("ol",{"data-slot":"breadcrumb-list",className:l.cn("lib:text-muted-foreground lib:flex lib:flex-wrap lib:items-center lib:gap-1.5 lib:text-sm lib:break-words sm:lib:gap-2.5",e),...r})}function m({className:e,...r}){return t.createElement("li",{"data-slot":"breadcrumb-item",className:l.cn("lib:inline-flex lib:items-center lib:gap-1.5",e),...r})}function d({asChild:e,className:r,...a}){const n=e?s.Slot:"a";return t.createElement(n,{"data-slot":"breadcrumb-link",className:l.cn("hover:lib:text-foreground lib:transition-colors",r),...a})}function f({className:e,...r}){return t.createElement("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l.cn("lib:text-foreground lib:font-normal",e),...r})}function p({children:e,className:r,...a}){return t.createElement("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l.cn("[&>svg]:lib:size-3.5",r),...a},e??t.createElement(i.ChevronRight,null))}function g({className:e,...r}){return t.createElement("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:l.cn("lib:flex lib:size-9 lib:items-center lib:justify-center",e),...r},t.createElement(i.MoreHorizontal,{className:"lib:size-4"}),t.createElement("span",{className:"lib:sr-only"},"More"))}exports.Breadcrumb=u;exports.BreadcrumbEllipsis=g;exports.BreadcrumbItem=m;exports.BreadcrumbLink=d;exports.BreadcrumbList=b;exports.BreadcrumbPage=f;exports.BreadcrumbSeparator=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),d=require("@radix-ui/react-slot"),u=require("class-variance-authority"),c=require("./index.cjs65.js"),e=u.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function v({className:t,variant:r,size:i,asChild:n=!1,...s}){const o=n?d.Slot:"button";return a.jsxRuntimeExports.jsx(o,{"data-slot":"button",className:c.cn(e({variant:r,size:i,className:t})),...s})}exports.Button=v;exports.buttonVariants=e; diff --git a/dist/index.cjs130.js b/dist/index.cjs130.js new file mode 100644 index 00000000..a1ef711f --- /dev/null +++ b/dist/index.cjs130.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("react");require("./index.cjs92.js");const S=require("./index.cjs93.js");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const T=require("./index.cjs135.js"),h=require("./index.cjs110.js"),X=require("./index.cjs111.js"),m=require("./index.cjs201.js");var M=function(r,n){var u={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&n.indexOf(e)<0&&(u[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t{const e=u.getDerivativeToken(r),{override:t}=n,o=M(n,["override"]);let i=Object.assign(Object.assign({},e),{override:t});return i=m.default(i),o&&Object.entries(o).forEach(c=>{let[a,s]=c;const{theme:g}=s,l=M(s,["theme"]);let f=l;g&&(f=d(Object.assign(Object.assign({},i),l),{override:l},g)),i[a]=f}),i};function O(){const{token:r,hashed:n,theme:u,override:e,cssVar:t}=k.useContext(h.DesignTokenContext),o=`${T.default}-${n||""}`,i=u||h.defaultTheme,[c,a,s]=S.default(i,[X.default,r],{salt:o,override:e,getComputedToken:d,formatToken:m.default,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:p,ignore:v,preserve:q}});return[i,s,n?a:"",c,t]}exports.default=O;exports.getComputedToken=d;exports.ignore=v;exports.unitless=p; diff --git a/dist/index.cjs131.js b/dist/index.cjs131.js new file mode 100644 index 00000000..4ca7e01a --- /dev/null +++ b/dist/index.cjs131.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("react"),S=require("./index.cjs121.js"),b=require("./index.cjs183.js");require("./index.cjs184.js");require("./index.cjs91.js");const x=require("./index.cjs132.js"),O=require("./index.cjs133.js"),v=require("./index.cjs112.js");function j(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const s=j(C),q=e=>{const{prefixCls:n,className:r,placement:o="top",title:c,color:i,overlayInnerStyle:u}=e,{getPrefixCls:f}=s.useContext(v.ConfigContext),t=f("tooltip",n),[d,a,m]=x.default(t),l=O.parseColor(t,i),p=l.arrowStyle,y=Object.assign(Object.assign({},u),l.overlayStyle),g=S.default(a,m,t,`${t}-pure`,`${t}-placement-${o}`,r,l.className);return d(s.createElement("div",{className:g,style:p},s.createElement("div",{className:`${t}-arrow`}),s.createElement(b.default,Object.assign({},e,{className:a,prefixCls:t,overlayInnerStyle:y}),c)))};exports.default=q; diff --git a/dist/index.cjs132.js b/dist/index.cjs132.js new file mode 100644 index 00000000..6e301234 --- /dev/null +++ b/dist/index.cjs132.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");const d=require("./index.cjs185.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs96.js");require("./index.cjs95.js");require("./index.cjs97.js");require("./index.cjs101.js");const S=require("./index.cjs186.js"),h=require("./index.cjs187.js"),l=require("./index.cjs181.js"),w=require("./index.cjs188.js"),T=require("./index.cjs189.js"),f=require("./index.cjs190.js"),c=require("./index.cjs191.js"),y=e=>{const{componentCls:r,tooltipMaxWidth:s,tooltipColor:o,tooltipBg:t,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:n,boxShadowSecondary:g,paddingSM:m,paddingXS:b}=e;return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},S.resetComponent(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:s,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":t,[`${r}-inner`]:{minWidth:n,minHeight:n,padding:`${d.unit(e.calc(m).div(2).equal())} ${d.unit(b)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:t,borderRadius:i,boxShadow:g,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,l.MAX_VERTICAL_CONTENT_RADIUS)}},[`${r}-content`]:{position:"relative"}}),f.default(e,(q,x)=>{let{darkColor:u}=x;return{[`&${r}-${q}`]:{[`${r}-inner`]:{backgroundColor:u},[`${r}-arrow`]:{"--antd-arrow-background-color":u}}}})),{"&-rtl":{direction:"rtl"}})},l.default(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},p=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},l.getArrowOffsetToken({contentRadius:e.borderRadius,limitVerticalRadius:!0})),w.getArrowToken(c.merge(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),C=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return T.genStyleHooks("Tooltip",o=>{const{borderRadius:t,colorTextLightSolid:i,colorBgSpotlight:a}=o,n=c.merge(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:t,tooltipBg:a});return[y(n),h.initZoomMotion(o,"zoom-big-fast")]},p,{resetStyle:!1,injectStyle:r})(e)};exports.default=C;exports.prepareComponentToken=p; diff --git a/dist/index.cjs133.js b/dist/index.cjs133.js new file mode 100644 index 00000000..0ab1f81d --- /dev/null +++ b/dist/index.cjs133.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs121.js"),i=require("./index.cjs143.js");function l(n,e){const r=i.isPresetColor(e),s=a.default({[`${n}-${e}`]:e&&r}),t={},o={};return e&&!r&&(t.background=e,o["--antd-arrow-background-color"]=e),{className:s,overlayStyle:t,arrowStyle:o}}exports.parseColor=l; diff --git a/dist/index.cjs134.js b/dist/index.cjs134.js new file mode 100644 index 00000000..6eb2dc95 --- /dev/null +++ b/dist/index.cjs134.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs135.js");exports.default=e.default; diff --git a/dist/index.cjs135.js b/dist/index.cjs135.js new file mode 100644 index 00000000..d0026df0 --- /dev/null +++ b/dist/index.cjs135.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="5.16.2";exports.default=e; diff --git a/dist/index.cjs136.js b/dist/index.cjs136.js new file mode 100644 index 00000000..104a9539 --- /dev/null +++ b/dist/index.cjs136.js @@ -0,0 +1,5 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs137.js");/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/var u;function a(){return u||(u=1,function(o){(function(){var f={}.hasOwnProperty;function n(){for(var e="",t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return o.Children.forEach(u,function(e){e==null&&!n.keepEmpty||(Array.isArray(e)?r=r.concat(t(e)):a.default(e)&&e.props?r=r.concat(t(e.props.children,n)):r.push(e))}),r}exports.default=t; diff --git a/dist/index.cjs139.js b/dist/index.cjs139.js new file mode 100644 index 00000000..4a9646d9 --- /dev/null +++ b/dist/index.cjs139.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs155.js");var r=Symbol.for("react.element"),a=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function l(e){return e&&t.default(e)==="object"&&(e.$$typeof===r||e.$$typeof===a)&&e.type===o}exports.default=l; diff --git a/dist/index.cjs14.js b/dist/index.cjs14.js index bcee4fbb..78ff583e 100644 --- a/dist/index.cjs14.js +++ b/dist/index.cjs14.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("@radix-ui/react-slot"),s=require("class-variance-authority"),c=require("./index.cjs54.js");function d(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const u=d(a),l=s.cva("lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive",{variants:{variant:{default:"lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90",destructive:"lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60",outline:"lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50",secondary:"lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80",ghost:"hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50",link:"lib:text-primary lib:underline-offset-4 hover:lib:underline"},size:{default:"lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3",sm:"lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5",lg:"lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4",icon:"lib:size-9"}},defaultVariants:{variant:"default",size:"default"}});function g({className:i,variant:t,size:e,asChild:r=!1,...b}){const n=r?o.Slot:"button";return u.createElement(n,{"data-slot":"button",className:c.cn(l({variant:t,size:e,className:i})),...b})}exports.Button=g;exports.buttonVariants=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs64.js"),_=require("react"),g=require("lucide-react"),m=require("react-day-picker"),e=require("./index.cjs65.js"),f=require("./index.cjs13.js");function w(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(o,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}return o.default=r,Object.freeze(o)}const p=w(_);function h({className:r,classNames:o,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:l="ghost",formatters:i,components:b,...y}){const t=m.getDefaultClassNames();return d.jsxRuntimeExports.jsx(m.DayPicker,{showOutsideDays:n,className:e.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,r),captionLayout:s,formatters:{formatMonthDropdown:a=>a.toLocaleString("default",{month:"short"}),...i},classNames:{root:e.cn("w-fit",t.root),months:e.cn("flex gap-4 flex-col md:flex-row relative",t.months),month:e.cn("flex flex-col w-full gap-4",t.month),nav:e.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",t.nav),button_previous:e.cn(f.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_previous),button_next:e.cn(f.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_next),month_caption:e.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",t.month_caption),dropdowns:e.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",t.dropdowns),dropdown_root:e.cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",t.dropdown_root),dropdown:e.cn("absolute inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("select-none w-(--cell-size)",t.week_number_header),week_number:e.cn("text-[0.8rem] select-none text-muted-foreground",t.week_number),day:e.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",t.day),range_start:e.cn("rounded-l-md bg-accent",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("rounded-r-md bg-accent",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...o},components:{Root:({className:a,rootRef:u,...c})=>d.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:e.cn(a),...c}),Chevron:({className:a,orientation:u,...c})=>u==="left"?d.jsxRuntimeExports.jsx(g.ChevronLeftIcon,{className:e.cn("size-4",a),...c}):u==="right"?d.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:e.cn("size-4",a),...c}):d.jsxRuntimeExports.jsx(g.ChevronDownIcon,{className:e.cn("size-4",a),...c}),DayButton:x,WeekNumber:({children:a,...u})=>d.jsxRuntimeExports.jsx("td",{...u,children:d.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:a})}),...b},...y})}function x({className:r,day:o,modifiers:n,...s}){const l=m.getDefaultClassNames(),i=p.useRef(null);return p.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),d.jsxRuntimeExports.jsx(f.Button,{ref:i,variant:"ghost",size:"icon","data-day":o.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:e.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",l.day,r),...s})}exports.Calendar=h;exports.CalendarDayButton=x; diff --git a/dist/index.cjs140.js b/dist/index.cjs140.js new file mode 100644 index 00000000..8daaf59e --- /dev/null +++ b/dist/index.cjs140.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs141.js");require("./index.cjs142.js");require("react");exports.default=e.default; diff --git a/dist/index.cjs141.js b/dist/index.cjs141.js new file mode 100644 index 00000000..5ea230d7 --- /dev/null +++ b/dist/index.cjs141.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const D=require("./index.cjs202.js"),n=require("./index.cjs156.js"),U=require("./index.cjs171.js"),W=require("./index.cjs155.js"),B=require("./index.cjs121.js"),F=require("./index.cjs203.js"),g=require("./index.cjs169.js"),y=require("react"),G=require("./index.cjs168.js"),I=require("./index.cjs204.js"),J=require("./index.cjs205.js"),K=require("./index.cjs206.js"),q=require("./index.cjs207.js"),T=require("./index.cjs208.js");function X(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const i in r)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(a,i,u.get?u:{enumerable:!0,get:()=>r[i]})}}return a.default=r,Object.freeze(a)}const o=X(y);function h(r){var a=r;W.default(r)==="object"&&(a=r.transitionSupport);function i(t,f){return!!(t.motionName&&a&&f!==!1)}var u=o.forwardRef(function(t,f){var M=t.visible,C=M===void 0?!0:M,O=t.removeOnLeave,P=O===void 0?!0:O,L=t.forceRender,l=t.children,d=t.motionName,S=t.leavedClassName,w=t.eventProps,k=o.useContext(G.Context),x=k.motion,V=i(t,x),p=y.useRef(),E=y.useRef();function $(){try{return p.current instanceof HTMLElement?p.current:F.default(E.current)}catch{return null}}var z=J.default(V,C,$,t),v=U.default(z,4),R=v[0],N=v[1],H=v[2],b=v[3],j=o.useRef(b);b&&(j.current=!0);var s=o.useCallback(function(_){p.current=_,g.fillRef(f,_)},[f]),e,m=n.default(n.default({},w),{},{visible:C});if(!l)e=null;else if(R===q.STATUS_NONE)b?e=l(n.default({},m),s):!P&&j.current&&S?e=l(n.default(n.default({},m),{},{className:S}),s):L||!P&&!S?e=l(n.default(n.default({},m),{},{style:{display:"none"}}),s):e=null;else{var c;N===q.STEP_PREPARE?c="prepare":K.isActive(N)?c="active":N===q.STEP_START&&(c="start");var A=T.getTransitionName(d,"".concat(R,"-").concat(c));e=l(n.default(n.default({},m),{},{className:B.default(T.getTransitionName(d,R),D.default(D.default({},A,A&&c),d,typeof d=="string")),style:H}),s)}if(o.isValidElement(e)&&g.supportRef(e)){var Q=g.getNodeRef(e);Q||(e=o.cloneElement(e,{ref:s}))}return o.createElement(I.default,{ref:E},e)});return u.displayName="CSSMotion",u}const Y=h(T.supportTransition);exports.default=Y;exports.genCSSMotion=h; diff --git a/dist/index.cjs142.js b/dist/index.cjs142.js new file mode 100644 index 00000000..51e005f6 --- /dev/null +++ b/dist/index.cjs142.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index.cjs147.js"),P=require("./index.cjs209.js"),h=require("./index.cjs156.js"),R=require("./index.cjs192.js"),D=require("./index.cjs193.js"),T=require("./index.cjs210.js"),L=require("./index.cjs199.js"),K=require("./index.cjs211.js"),k=require("./index.cjs202.js"),j=require("react"),V=require("./index.cjs141.js"),o=require("./index.cjs212.js"),x=require("./index.cjs208.js");function U(u){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(u){for(const a in u)if(a!=="default"){const m=Object.getOwnPropertyDescriptor(u,a);Object.defineProperty(v,a,m.get?m:{enumerable:!0,get:()=>u[a]})}}return v.default=u,Object.freeze(v)}const g=U(j);var N=["component","children","onVisibleChanged","onAllRemoved"],F=["status"],I=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function O(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.default,a=function(m){L.default(p,m);var A=K.default(p);function p(){var n;R.default(this,p);for(var l=arguments.length,c=new Array(l),t=0;t`${e}-inverse`);function n(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(s.default(t),s.default(r.PresetColors)).includes(e):r.PresetColors.includes(e)}exports.isPresetColor=n; diff --git a/dist/index.cjs144.js b/dist/index.cjs144.js new file mode 100644 index 00000000..4dcb00d2 --- /dev/null +++ b/dist/index.cjs144.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs151.js"),t=require("./index.cjs152.js"),u=require("./index.cjs153.js"),a=require("./index.cjs154.js");function o(e){return r.default(e)||t.default(e)||u.default(e)||a.default()}exports.default=o; diff --git a/dist/index.cjs145.js b/dist/index.cjs145.js new file mode 100644 index 00000000..d1cb8673 --- /dev/null +++ b/dist/index.cjs145.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];exports.PresetColors=e; diff --git a/dist/index.cjs146.js b/dist/index.cjs146.js new file mode 100644 index 00000000..60ec28e6 --- /dev/null +++ b/dist/index.cjs146.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs147.js"),f=require("react"),d=require("./index.cjs138.js"),c=require("./index.cjs96.js"),v=require("./index.cjs148.js"),b=require("./index.cjs149.js");require("./index.cjs150.js");function O(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=O(f);var g="rc-observer-key";function p(e,n){var r=e.children,t=typeof r=="function"?[r]:d.default(r);return process.env.NODE_ENV!=="production"&&(t.length>1?c.warning(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):t.length===0&&c.warning(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),t.map(function(i,s){var l=i?.key||"".concat(g,"-").concat(s);return a.createElement(v.default,u.default({},e,{key:l,ref:s===0?n:void 0}),i)})}var o=a.forwardRef(p);process.env.NODE_ENV!=="production"&&(o.displayName="ResizeObserver");o.Collection=b.Collection;exports.default=o; diff --git a/dist/index.cjs147.js b/dist/index.cjs147.js new file mode 100644 index 00000000..2ea9d891 --- /dev/null +++ b/dist/index.cjs147.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(){return r=Object.assign?Object.assign.bind():function(a){for(var e=1;et[n]})}}return f.default=t,Object.freeze(f)}const e=V(k);function I(t,f){var n=t.children,u=t.disabled,o=e.useRef(null),m=e.useRef(null),d=e.useContext(B.CollectionContext),p=typeof n=="function",a=p?n(o):n,l=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),b=!p&&e.isValidElement(a)&&R.supportRef(a),D=b?R.getNodeRef(a):null,N=R.useComposeRef(D,o),O=function(){var i;return g.default(o.current)||(o.current&&$.default(o.current)==="object"?g.default((i=o.current)===null||i===void 0?void 0:i.nativeElement):null)||g.default(m.current)};e.useImperativeHandle(f,function(){return O()});var C=e.useRef(t);C.current=t;var _=e.useCallback(function(r){var i=C.current,q=i.onResize,P=i.data,w=r.getBoundingClientRect(),v=w.width,h=w.height,c=r.offsetWidth,s=r.offsetHeight,E=Math.floor(v),H=Math.floor(h);if(l.current.width!==E||l.current.height!==H||l.current.offsetWidth!==c||l.current.offsetHeight!==s){var M={width:E,height:H,offsetWidth:c,offsetHeight:s};l.current=M;var x=c===Math.round(v)?v:c,z=s===Math.round(h)?h:s,S=W.default(W.default({},M),{},{offsetWidth:x,offsetHeight:z});d?.(S,r,P),q&&Promise.resolve().then(function(){q(S,r)})}},[]);return e.useEffect(function(){var r=O();return r&&!u&&j.observe(r,_),function(){return j.unobserve(r,_)}},[o.current,u]),e.createElement(T.default,{ref:m},b?e.cloneElement(a,{ref:N}):a)}var y=e.forwardRef(I);process.env.NODE_ENV!=="production"&&(y.displayName="SingleObserver");exports.default=y; diff --git a/dist/index.cjs149.js b/dist/index.cjs149.js new file mode 100644 index 00000000..180d4098 --- /dev/null +++ b/dist/index.cjs149.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react");function C(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const r=C(v);var u=r.createContext(null);function R(t){var o=t.children,e=t.onBatchResize,n=r.useRef(0),l=r.useRef([]),c=r.useContext(u),f=r.useCallback(function(i,a,s){n.current+=1;var d=n.current;l.current.push({size:i,element:a,data:s}),Promise.resolve().then(function(){d===n.current&&(e?.(l.current),l.current=[])}),c?.(i,a,s)},[e,c]);return r.createElement(u.Provider,{value:f},o)}exports.Collection=R;exports.CollectionContext=u; diff --git a/dist/index.cjs15.js b/dist/index.cjs15.js index 0ebca879..c6d64b28 100644 --- a/dist/index.cjs15.js +++ b/dist/index.cjs15.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("lucide-react"),s=require("react-day-picker"),i=require("./index.cjs54.js"),d=require("./index.cjs14.js");function u(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const b=u(c);function m({className:e,classNames:l,showOutsideDays:t=!0,...a}){return b.createElement(s.DayPicker,{showOutsideDays:t,className:i.cn("lib:p-3",e),classNames:{months:"lib:flex lib:flex-col sm:lib:flex-row lib:gap-2",month:"lib:flex lib:flex-col lib:gap-4",caption:"lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full",caption_label:"lib:text-sm lib:font-medium",nav:"lib:flex lib:items-center lib:gap-1",nav_button:i.cn(d.buttonVariants({variant:"outline"}),"lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100"),nav_button_previous:"lib:absolute lib:left-1",nav_button_next:"lib:absolute lib:right-1",table:"lib:w-full lib:border-collapse lib:space-x-1",head_row:"lib:flex",head_cell:"lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]",row:"lib:flex lib:w-full lib:mt-2",cell:i.cn("lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md":"[&:has([aria-selected])]:lib:rounded-md"),day:i.cn(d.buttonVariants({variant:"ghost"}),"lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100"),day_range_start:"lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground",day_range_end:"lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground",day_selected:"lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground",day_today:"lib:bg-accent lib:text-accent-foreground",day_outside:"lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground",day_disabled:"lib:text-muted-foreground lib:opacity-50",day_range_middle:"aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground",day_hidden:"lib:invisible",...l},components:{IconLeft:({className:r,...n})=>b.createElement(o.ChevronLeft,{className:i.cn("lib:size-4",r),...n}),IconRight:({className:r,...n})=>b.createElement(o.ChevronRight,{className:i.cn("lib:size-4",r),...n})},...a})}exports.Calendar=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),e=require("./index.cjs65.js");function s({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:e.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...r})}function o({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:e.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function n({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:e.cn("leading-none font-semibold",t),...r})}function d({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:e.cn("text-muted-foreground text-sm",t),...r})}function i({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:e.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...r})}function c({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:e.cn("px-6",t),...r})}function u({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:e.cn("flex items-center px-6 [.border-t]:pt-6",t),...r})}exports.Card=s;exports.CardAction=i;exports.CardContent=c;exports.CardDescription=d;exports.CardFooter=u;exports.CardHeader=o;exports.CardTitle=n; diff --git a/dist/index.cjs150.js b/dist/index.cjs150.js new file mode 100644 index 00000000..b91fd42f --- /dev/null +++ b/dist/index.cjs150.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index.cjs215.js");var r=new Map;function n(e){e.forEach(function(s){var o,t=s.target;(o=r.get(t))===null||o===void 0||o.forEach(function(u){return u(t)})})}var i=new v.default(n);process.env.NODE_ENV;process.env.NODE_ENV;function a(e,s){r.has(e)||(r.set(e,new Set),i.observe(e)),r.get(e).add(s)}function c(e,s){r.has(e)&&(r.get(e).delete(s),r.get(e).size||(i.unobserve(e),r.delete(e)))}exports.observe=a;exports.unobserve=c; diff --git a/dist/index.cjs151.js b/dist/index.cjs151.js new file mode 100644 index 00000000..a9909bd5 --- /dev/null +++ b/dist/index.cjs151.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs216.js");function t(e){if(Array.isArray(e))return r.default(e)}exports.default=t; diff --git a/dist/index.cjs152.js b/dist/index.cjs152.js new file mode 100644 index 00000000..4729fe45 --- /dev/null +++ b/dist/index.cjs152.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}exports.default=t; diff --git a/dist/index.cjs153.js b/dist/index.cjs153.js new file mode 100644 index 00000000..af4d881c --- /dev/null +++ b/dist/index.cjs153.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs216.js");function u(e,t){if(e){if(typeof e=="string")return o.default(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o.default(e,t):void 0}}exports.default=u; diff --git a/dist/index.cjs154.js b/dist/index.cjs154.js new file mode 100644 index 00000000..5c78345a --- /dev/null +++ b/dist/index.cjs154.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}exports.default=e; diff --git a/dist/index.cjs155.js b/dist/index.cjs155.js new file mode 100644 index 00000000..88c6f014 --- /dev/null +++ b/dist/index.cjs155.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(o)}exports.default=e; diff --git a/dist/index.cjs156.js b/dist/index.cjs156.js new file mode 100644 index 00000000..e89c3399 --- /dev/null +++ b/dist/index.cjs156.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs202.js");function o(r,n){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);n&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),e.push.apply(e,t)}return e}function i(r){for(var n=1;na.reduce((e,t)=>Object.assign(Object.assign({},e),t),c.default.Modal);function l(e){if(e){const t=Object.assign({},e);return a.push(t),n(),()=>{a=a.filter(o=>o!==t),n()}}Object.assign({},c.default.Modal)}exports.changeConfirmLocale=l; diff --git a/dist/index.cjs16.js b/dist/index.cjs16.js index b1ff74cd..be0e620b 100644 --- a/dist/index.cjs16.js +++ b/dist/index.cjs16.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),r=require("./index.cjs54.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const a=o(n);function c({className:e,...t}){return a.createElement("div",{"data-slot":"card",className:r.cn("lib:bg-card lib:text-card-foreground lib:flex lib:flex-col lib:gap-6 lib:rounded-xl lib:border lib:py-6 lib:shadow-sm",e),...t})}function d({className:e,...t}){return a.createElement("div",{"data-slot":"card-header",className:r.cn("lib:@container/card-header lib:grid lib:auto-rows-min lib:grid-rows-[auto_auto] lib:items-start lib:gap-1.5 lib:px-6 has-data-[slot=card-action]:lib:grid-cols-[1fr_auto] [.border-b]:lib:pb-6",e),...t})}function s({className:e,...t}){return a.createElement("div",{"data-slot":"card-title",className:r.cn("lib:leading-none lib:font-semibold",e),...t})}function b({className:e,...t}){return a.createElement("div",{"data-slot":"card-description",className:r.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function u({className:e,...t}){return a.createElement("div",{"data-slot":"card-action",className:r.cn("lib:col-start-2 lib:row-span-2 lib:row-start-1 lib:self-start lib:justify-self-end",e),...t})}function f({className:e,...t}){return a.createElement("div",{"data-slot":"card-content",className:r.cn("lib:px-6",e),...t})}function m({className:e,...t}){return a.createElement("div",{"data-slot":"card-footer",className:r.cn("lib:flex lib:items-center lib:px-6 [.border-t]:lib:pt-6",e),...t})}exports.Card=c;exports.CardAction=u;exports.CardContent=f;exports.CardDescription=b;exports.CardFooter=m;exports.CardHeader=d;exports.CardTitle=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs64.js"),S=require("react"),P=require("embla-carousel-react"),j=require("lucide-react"),f=require("./index.cjs65.js"),p=require("./index.cjs13.js");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=g(S),b=l.createContext(null);function d(){const e=l.useContext(b);if(!e)throw new Error("useCarousel must be used within a ");return e}function w({orientation:e="horizontal",opts:o,setApi:t,plugins:n,className:c,children:u,...i}){const[h,r]=P({...o,axis:e==="horizontal"?"x":"y"},n),[v,N]=l.useState(!1),[R,y]=l.useState(!1),x=l.useCallback(a=>{a&&(N(a.canScrollPrev()),y(a.canScrollNext()))},[]),m=l.useCallback(()=>{r?.scrollPrev()},[r]),C=l.useCallback(()=>{r?.scrollNext()},[r]),E=l.useCallback(a=>{a.key==="ArrowLeft"?(a.preventDefault(),m()):a.key==="ArrowRight"&&(a.preventDefault(),C())},[m,C]);return l.useEffect(()=>{!r||!t||t(r)},[r,t]),l.useEffect(()=>{if(r)return x(r),r.on("reInit",x),r.on("select",x),()=>{r?.off("select",x)}},[r,x]),s.jsxRuntimeExports.jsx(b.Provider,{value:{carouselRef:h,api:r,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:C,canScrollPrev:v,canScrollNext:R},children:s.jsxRuntimeExports.jsx("div",{onKeyDownCapture:E,className:f.cn("relative",c),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:u})})}function k({className:e,...o}){const{carouselRef:t,orientation:n}=d();return s.jsxRuntimeExports.jsx("div",{ref:t,className:"overflow-hidden","data-slot":"carousel-content",children:s.jsxRuntimeExports.jsx("div",{className:f.cn("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})}function z({className:e,...o}){const{orientation:t}=d();return s.jsxRuntimeExports.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:f.cn("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",e),...o})}function q({className:e,variant:o="outline",size:t="icon",...n}){const{orientation:c,scrollPrev:u,canScrollPrev:i}=d();return s.jsxRuntimeExports.jsxs(p.Button,{"data-slot":"carousel-previous",variant:o,size:t,className:f.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:u,...n,children:[s.jsxRuntimeExports.jsx(j.ArrowLeft,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function D({className:e,variant:o="outline",size:t="icon",...n}){const{orientation:c,scrollNext:u,canScrollNext:i}=d();return s.jsxRuntimeExports.jsxs(p.Button,{"data-slot":"carousel-next",variant:o,size:t,className:f.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:u,...n,children:[s.jsxRuntimeExports.jsx(j.ArrowRight,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Next slide"})]})}exports.Carousel=w;exports.CarouselContent=k;exports.CarouselItem=z;exports.CarouselNext=D;exports.CarouselPrevious=q; diff --git a/dist/index.cjs160.js b/dist/index.cjs160.js new file mode 100644 index 00000000..dd1ffe93 --- /dev/null +++ b/dist/index.cjs160.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs161.js");const u=require("./index.cjs111.js"),l=require("./index.cjs175.js"),c=require("./index.cjs176.js"),i=require("./index.cjs177.js"),g=require("./index.cjs178.js"),d=require("./index.cjs179.js"),a=require("./index.cjs180.js"),b=require("./index.cjs164.js");function f(e){const o=Object.keys(u.defaultPresetColors).map(t=>{const r=b.default(e[t]);return new Array(10).fill(1).reduce((n,j,s)=>(n[`${t}-${s+1}`]=r[s],n[`${t}${s+1}`]=r[s],n),{})}).reduce((t,r)=>(t=Object.assign(Object.assign({},t),r),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),o),l.default(e,{generateColorPalettes:a.generateColorPalettes,generateNeutralColorPalettes:a.generateNeutralColorPalettes})),g.default(e.fontSize)),d.default(e)),i.default(e)),c.default(e))}exports.default=f; diff --git a/dist/index.cjs161.js b/dist/index.cjs161.js new file mode 100644 index 00000000..b027d3bd --- /dev/null +++ b/dist/index.cjs161.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs164.js");var r={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},t={},a={};Object.keys(r).forEach(function(e){t[e]=l.default(r[e]),t[e].primary=t[e][5],a[e]=l.default(r[e],{theme:"dark",backgroundColor:"#141414"}),a[e].primary=a[e][5]});exports.generate=l.default;exports.presetDarkPalettes=a;exports.presetPalettes=t;exports.presetPrimaryColors=r; diff --git a/dist/index.cjs162.js b/dist/index.cjs162.js new file mode 100644 index 00000000..7254b6a1 --- /dev/null +++ b/dist/index.cjs162.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}exports.default=e; diff --git a/dist/index.cjs163.js b/dist/index.cjs163.js new file mode 100644 index 00000000..284d5043 --- /dev/null +++ b/dist/index.cjs163.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index.cjs156.js"),N=require("./index.cjs162.js"),P=require("./index.cjs236.js");var S="data-rc-order",y="data-rc-priority",T="rc-util-key",s=new Map;function C(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):T}function l(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function E(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function g(r){return Array.from((s.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function m(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!N.default())return null;var n=e.csp,i=e.prepend,d=e.priority,a=d===void 0?0:d,u=E(i),f=u==="prependQueue",t=document.createElement("style");t.setAttribute(S,u),f&&a&&t.setAttribute(y,"".concat(a)),n!=null&&n.nonce&&(t.nonce=n?.nonce),t.innerHTML=r;var o=l(e),c=o.firstChild;if(i){if(f){var v=(e.styles||g(o)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(S)))return!1;var A=Number(p.getAttribute(y)||0);return a>=A});if(v.length)return o.insertBefore(t,v[v.length-1].nextSibling),t}o.insertBefore(t,c)}else o.appendChild(t);return t}function b(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l(e);return(e.styles||g(n)).find(function(i){return i.getAttribute(C(e))===r})}function M(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=b(r,e);if(n){var i=l(e);i.removeChild(n)}}function R(r,e){var n=s.get(r);if(!n||!P.default(document,n)){var i=m("",e),d=i.parentNode;s.set(r,d),r.removeChild(i)}}function O(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=l(n),d=g(i),a=h.default(h.default({},n),{},{styles:d});R(i,a);var u=b(e,a);if(u){var f,t;if((f=a.csp)!==null&&f!==void 0&&f.nonce&&u.nonce!==((t=a.csp)===null||t===void 0?void 0:t.nonce)){var o;u.nonce=(o=a.csp)===null||o===void 0?void 0:o.nonce}return u.innerHTML!==r&&(u.innerHTML=r),u}var c=m(r,a);return c.setAttribute(C(a),e),c}exports.injectCSS=m;exports.removeCSS=M;exports.updateCSS=O; diff --git a/dist/index.cjs164.js b/dist/index.cjs164.js new file mode 100644 index 00000000..f22e9359 --- /dev/null +++ b/dist/index.cjs164.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs259.js"),y=require("./index.cjs260.js");var i=2,v=.16,k=.05,B=.05,G=.15,b=5,h=4,H=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function f(t){var e=t.r,n=t.g,r=t.b,a=y.rgbToHsv(e,n,r);return{h:a.h*360,s:a.s,v:a.v}}function p(t){var e=t.r,n=t.g,r=t.b;return"#".concat(y.rgbToHex(e,n,r,!1))}function R(t,e,n){var r=n/100,a={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return a}function l(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-i*e:Math.round(t.h)+i*e:r=n?Math.round(t.h)+i*e:Math.round(t.h)-i*e,r<0?r+=360:r>=360&&(r-=360),r}function g(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-v*e:e===h?r=t.s+v:r=t.s+k*e,r>1&&(r=1),n&&e===b&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function x(t,e,n){var r;return n?r=t.v+B*e:r=t.v-G*e,r>1&&(r=1),Number(r.toFixed(2))}function q(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=u.inputToRGB(t),a=b;a>0;a-=1){var d=f(r),m=p(u.inputToRGB({h:l(d,a,!0),s:g(d,a,!0),v:x(d,a,!0)}));n.push(m)}n.push(p(r));for(var o=1;o<=h;o+=1){var c=f(r),M=p(u.inputToRGB({h:l(c,o),s:g(c,o),v:x(c,o)}));n.push(M)}return e.theme==="dark"?H.map(function(s){var S=s.index,C=s.opacity,T=p(R(u.inputToRGB(e.backgroundColor||"#141414"),u.inputToRGB(n[S]),C*100));return T}):n}exports.default=q; diff --git a/dist/index.cjs165.js b/dist/index.cjs165.js new file mode 100644 index 00000000..7f75446f --- /dev/null +++ b/dist/index.cjs165.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index.cjs260.js"),c=require("./index.cjs261.js"),p=require("./index.cjs259.js"),a=require("./index.cjs262.js");var g=function(){function i(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof i)return t;typeof t=="number"&&(t=h.numberInputToObject(t)),this.originalInput=t;var o=p.inputToRGB(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return i.prototype.isDark=function(){return this.getBrightness()<128},i.prototype.isLight=function(){return!this.isDark()},i.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},i.prototype.getLuminance=function(){var t=this.toRgb(),r,n,o,e=t.r/255,s=t.g/255,u=t.b/255;return e<=.03928?r=e/12.92:r=Math.pow((e+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},i.prototype.getAlpha=function(){return this.a},i.prototype.setAlpha=function(t){return this.a=a.boundAlpha(t),this.roundA=Math.round(100*this.a)/100,this},i.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},i.prototype.toHsv=function(){var t=h.rgbToHsv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},i.prototype.toHsvString=function(){var t=h.rgbToHsv(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},i.prototype.toHsl=function(){var t=h.rgbToHsl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},i.prototype.toHslString=function(){var t=h.rgbToHsl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},i.prototype.toHex=function(t){return t===void 0&&(t=!1),h.rgbToHex(this.r,this.g,this.b,t)},i.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},i.prototype.toHex8=function(t){return t===void 0&&(t=!1),h.rgbaToHex(this.r,this.g,this.b,this.a,t)},i.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},i.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},i.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},i.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},i.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(a.bound01(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},i.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(a.bound01(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},i.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+h.rgbToHex(this.r,this.g,this.b,!1),r=0,n=Object.entries(c.names);r=0,e=!r&&o&&(t.startsWith("hex")||t==="name");return e?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},i.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},i.prototype.clone=function(){return new i(this.toString())},i.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=a.clamp01(r.l),new i(r)},i.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new i(r)},i.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=a.clamp01(r.l),new i(r)},i.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},i.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},i.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=a.clamp01(r.s),new i(r)},i.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=a.clamp01(r.s),new i(r)},i.prototype.greyscale=function(){return this.desaturate(100)},i.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new i(r)},i.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),o=new i(t).toRgb(),e=r/100,s={r:(o.r-n.r)*e+n.r,g:(o.g-n.g)*e+n.g,b:(o.b-n.b)*e+n.b,a:(o.a-n.a)*e+n.a};return new i(s)},i.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),o=360/r,e=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,e.push(new i(n));return e},i.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new i(t)},i.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,e=r.v,s=[],u=1/t;t--;)s.push(new i({h:n,s:o,v:e})),e=(e+u)%1;return s},i.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new i({h:(r+72)%360,s:t.s,l:t.l}),new i({h:(r+216)%360,s:t.s,l:t.l})]},i.prototype.onBackground=function(t){var r=this.toRgb(),n=new i(t).toRgb(),o=r.a+n.a*(1-r.a);return new i({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},i.prototype.triad=function(){return this.polyad(3)},i.prototype.tetrad=function(){return this.polyad(4)},i.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],e=360/t,s=1;s2&&arguments[2]!==void 0?arguments[2]:!1,u=new Set;function t(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=u.has(e);if(v.warningOnce(!l,"Warning: There may be circular references"),l)return!1;if(e===r)return!0;if(d&&a>1)return!1;u.add(e);var f=a+1;if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;ne[t]})}}return n.default=e,Object.freeze(n)}const s=r(u),a=Object.assign({},s),{useId:c}=a,l=()=>"",i=typeof c>"u"?l:c;exports.default=i; diff --git a/dist/index.cjs168.js b/dist/index.cjs168.js new file mode 100644 index 00000000..844c326b --- /dev/null +++ b/dist/index.cjs168.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs209.js"),a=require("react");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=i(a);var l=["children"],c=n.createContext({});function d(e){var r=e.children,t=u.default(e,l);return n.createElement(c.Provider,{value:t},r)}exports.Context=c;exports.default=d; diff --git a/dist/index.cjs169.js b/dist/index.cjs169.js new file mode 100644 index 00000000..40375679 --- /dev/null +++ b/dist/index.cjs169.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs155.js"),a=require("react"),i=require("./index.cjs170.js"),v=require("./index.cjs103.js"),g=require("./index.cjs139.js");var y=Number(a.version.split(".")[0]),s=function(e,r){typeof e=="function"?e(r):R.default(e)==="object"&&e&&"current"in e&&(e.current=r)},p=function(){for(var e=arguments.length,r=new Array(e),t=0;t=19)return!0;var u=i.reactIsExports.isMemo(e)?e.type.type:e.type;return!(typeof u=="function"&&!((r=u.prototype)!==null&&r!==void 0&&r.render)&&u.$$typeof!==i.reactIsExports.ForwardRef||typeof e=="function"&&!((t=e.prototype)!==null&&t!==void 0&&t.render)&&e.$$typeof!==i.reactIsExports.ForwardRef)};function c(f){return a.isValidElement(f)&&!g.default(f)}var E=function(e){if(e&&c(e)){var r=e;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};exports.composeRef=p;exports.fillRef=s;exports.getNodeRef=E;exports.supportRef=d;exports.useComposeRef=m; diff --git a/dist/index.cjs17.js b/dist/index.cjs17.js index fbde1981..72d14dcb 100644 --- a/dist/index.cjs17.js +++ b/dist/index.cjs17.js @@ -1 +1,7 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),g=require("embla-carousel-react"),C=require("lucide-react"),b=require("./index.cjs54.js"),x=require("./index.cjs14.js");function w(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(r,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return r.default=t,Object.freeze(r)}const e=w(P),v=e.createContext(null);function f(){const t=e.useContext(v);if(!t)throw new Error("useCarousel must be used within a ");return t}function k({orientation:t="horizontal",opts:r,setApi:l,plugins:n,className:s,children:i,...c}){const[N,o]=g({...r,axis:t==="horizontal"?"x":"y"},n),[p,h]=e.useState(!1),[y,E]=e.useState(!1),u=e.useCallback(a=>{a&&(h(a.canScrollPrev()),E(a.canScrollNext()))},[]),d=e.useCallback(()=>{o?.scrollPrev()},[o]),m=e.useCallback(()=>{o?.scrollNext()},[o]),S=e.useCallback(a=>{a.key==="ArrowLeft"?(a.preventDefault(),d()):a.key==="ArrowRight"&&(a.preventDefault(),m())},[d,m]);return e.useEffect(()=>{!o||!l||l(o)},[o,l]),e.useEffect(()=>{if(o)return u(o),o.on("reInit",u),o.on("select",u),()=>{o?.off("select",u)}},[o,u]),e.createElement(v.Provider,{value:{carouselRef:N,api:o,opts:r,orientation:t||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:d,scrollNext:m,canScrollPrev:p,canScrollNext:y}},e.createElement("div",{onKeyDownCapture:S,className:b.cn("lib:relative",s),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...c},i))}function z({className:t,...r}){const{carouselRef:l,orientation:n}=f();return e.createElement("div",{ref:l,className:"lib:overflow-hidden","data-slot":"carousel-content"},e.createElement("div",{className:b.cn("lib:flex",n==="horizontal"?"lib:-ml-4":"lib:-mt-4 lib:flex-col",t),...r}))}function R({className:t,...r}){const{orientation:l}=f();return e.createElement("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:b.cn("lib:min-w-0 lib:shrink-0 lib:grow-0 lib:basis-full",l==="horizontal"?"lib:pl-4":"lib:pt-4",t),...r})}function D({className:t,variant:r="outline",size:l="icon",...n}){const{orientation:s,scrollPrev:i,canScrollPrev:c}=f();return e.createElement(x.Button,{"data-slot":"carousel-previous",variant:r,size:l,className:b.cn("lib:absolute lib:size-8 lib:rounded-full",s==="horizontal"?"lib:top-1/2 lib:-left-12 lib:-translate-y-1/2":"lib:-top-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90",t),disabled:!c,onClick:i,...n},e.createElement(C.ArrowLeft,null),e.createElement("span",{className:"lib:sr-only"},"Previous slide"))}function O({className:t,variant:r="outline",size:l="icon",...n}){const{orientation:s,scrollNext:i,canScrollNext:c}=f();return e.createElement(x.Button,{"data-slot":"carousel-next",variant:r,size:l,className:b.cn("lib:absolute lib:size-8 lib:rounded-full",s==="horizontal"?"lib:top-1/2 lib:-right-12 lib:-translate-y-1/2":"lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90",t),disabled:!c,onClick:i,...n},e.createElement(C.ArrowRight,null),e.createElement("span",{className:"lib:sr-only"},"Next slide"))}exports.Carousel=k;exports.CarouselContent=z;exports.CarouselItem=R;exports.CarouselNext=O;exports.CarouselPrevious=D; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),P=require("react"),S=require("recharts"),a=require("./index.cjs65.js");function _(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>s[r]})}}return e.default=s,Object.freeze(e)}const m=_(P),b=_(S),T={light:"",dark:".dark"},k=m.createContext(null);function y(){const s=m.useContext(k);if(!s)throw new Error("useChart must be used within a ");return s}function $({id:s,className:e,children:r,config:t,...i}){const u=m.useId(),c=`chart-${s||u.replace(/:/g,"")}`;return n.jsxRuntimeExports.jsx(k.Provider,{value:{config:t},children:n.jsxRuntimeExports.jsxs("div",{"data-slot":"chart","data-chart":c,className:a.cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",e),...i,children:[n.jsxRuntimeExports.jsx(w,{id:c,config:t}),n.jsxRuntimeExports.jsx(b.ResponsiveContainer,{children:r})]})})}const w=({id:s,config:e})=>{const r=Object.entries(e).filter(([,t])=>t.theme||t.color);return r.length?n.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(T).map(([t,i])=>` +${i} [data-chart=${s}] { +${r.map(([u,c])=>{const l=c.theme?.[t]||c.color;return l?` --color-${u}: ${l};`:null}).join(` +`)} +} +`).join(` +`)}}):null},O=b.Tooltip;function q({active:s,payload:e,className:r,indicator:t="dot",hideLabel:i=!1,hideIndicator:u=!1,label:c,labelFormatter:l,labelClassName:d,formatter:C,color:N,nameKey:L,labelKey:p}){const{config:h}=y(),R=m.useMemo(()=>{if(i||!e?.length)return null;const[o]=e,g=`${p||o?.dataKey||o?.name||"value"}`,j=v(h,o,g),x=!p&&typeof c=="string"?h[c]?.label||c:j?.label;return l?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-medium",d),children:l(x,e)}):x?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-medium",d),children:x}):null},[c,l,e,i,d,h,p]);if(!s||!e?.length)return null;const f=e.length===1&&t!=="dot";return n.jsxRuntimeExports.jsxs("div",{className:a.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[f?null:R,n.jsxRuntimeExports.jsx("div",{className:"grid gap-1.5",children:e.map((o,g)=>{const j=`${L||o.name||o.dataKey||"value"}`,x=v(h,o,j),E=N||o.payload.fill||o.color;return n.jsxRuntimeExports.jsx("div",{className:a.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",t==="dot"&&"items-center"),children:C&&o?.value!==void 0&&o.name?C(o.value,o.name,o,g,o.payload):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[x?.icon?n.jsxRuntimeExports.jsx(x.icon,{}):!u&&n.jsxRuntimeExports.jsx("div",{className:a.cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":t==="dot","w-1":t==="line","w-0 border-[1.5px] border-dashed bg-transparent":t==="dashed","my-0.5":f&&t==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),n.jsxRuntimeExports.jsxs("div",{className:a.cn("flex flex-1 justify-between leading-none",f?"items-end":"items-center"),children:[n.jsxRuntimeExports.jsxs("div",{className:"grid gap-1.5",children:[f?R:null,n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground",children:x?.label||o.name})]}),o.value&&n.jsxRuntimeExports.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:o.value.toLocaleString()})]})]})},o.dataKey)})})]})}const M=b.Legend;function I({className:s,hideIcon:e=!1,payload:r,verticalAlign:t="bottom",nameKey:i}){const{config:u}=y();return r?.length?n.jsxRuntimeExports.jsx("div",{className:a.cn("flex items-center justify-center gap-4",t==="top"?"pb-3":"pt-3",s),children:r.map(c=>{const l=`${i||c.dataKey||"value"}`,d=v(u,c,l);return n.jsxRuntimeExports.jsxs("div",{className:a.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[d?.icon&&!e?n.jsxRuntimeExports.jsx(d.icon,{}):n.jsxRuntimeExports.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d?.label]},c.value)})}):null}function v(s,e,r){if(typeof e!="object"||e===null)return;const t="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=r;return r in e&&typeof e[r]=="string"?i=e[r]:t&&r in t&&typeof t[r]=="string"&&(i=t[r]),i in s?s[i]:s[r]}exports.ChartContainer=$;exports.ChartLegend=M;exports.ChartLegendContent=I;exports.ChartStyle=w;exports.ChartTooltip=O;exports.ChartTooltipContent=q; diff --git a/dist/index.cjs170.js b/dist/index.cjs170.js new file mode 100644 index 00000000..5c97c220 --- /dev/null +++ b/dist/index.cjs170.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs237.js");var r=e.__require();exports.reactIsExports=r; diff --git a/dist/index.cjs171.js b/dist/index.cjs171.js new file mode 100644 index 00000000..d3c2c3f9 --- /dev/null +++ b/dist/index.cjs171.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs234.js"),u=require("./index.cjs241.js"),a=require("./index.cjs153.js"),o=require("./index.cjs235.js");function l(e,r){return t.default(e)||u.default(e,r)||a.default(e,r)||o.default()}exports.default=l; diff --git a/dist/index.cjs172.js b/dist/index.cjs172.js new file mode 100644 index 00000000..66b72bfa --- /dev/null +++ b/dist/index.cjs172.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=f(l);function i(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){for(var r,a=arguments.length,c=new Array(a),u=0;uu[e]})}}return r.default=u,Object.freeze(r)}const n=s(o);var f=process.env.NODE_ENV!=="test"&&a.default()?n.useLayoutEffect:n.useEffect,c=function(r,e){var t=n.useRef(!0);f(function(){return r(t.current)},e),f(function(){return t.current=!1,function(){t.current=!0}},[])},i=function(r,e){c(function(t){if(!t)return r()},e)};exports.default=c;exports.useLayoutUpdateEffect=i; diff --git a/dist/index.cjs174.js b/dist/index.cjs174.js new file mode 100644 index 00000000..4d939fc7 --- /dev/null +++ b/dist/index.cjs174.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs171.js"),i=require("react");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=d(i);function S(e){var t=a.useRef(!1),r=a.useState(e),u=l.default(r,2),n=u[0],c=u[1];a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(f,s){s&&t.current||c(f)}return[n,o]}exports.default=S; diff --git a/dist/index.cjs175.js b/dist/index.cjs175.js new file mode 100644 index 00000000..e3b81fc5 --- /dev/null +++ b/dist/index.cjs175.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("./index.cjs165.js");function S(t,i){let{generateColorPalettes:n,generateNeutralColorPalettes:a}=i;const{colorSuccess:g,colorWarning:v,colorError:B,colorInfo:u,colorPrimary:H,colorBgBase:f,colorTextBase:T}=t,o=n(H),r=n(g),c=n(v),e=n(B),l=n(u),x=a(f,T),y=t.colorLink||t.colorInfo,s=n(y);return Object.assign(Object.assign({},x),{colorPrimaryBg:o[1],colorPrimaryBgHover:o[2],colorPrimaryBorder:o[3],colorPrimaryBorderHover:o[4],colorPrimaryHover:o[5],colorPrimary:o[6],colorPrimaryActive:o[7],colorPrimaryTextHover:o[8],colorPrimaryText:o[9],colorPrimaryTextActive:o[10],colorSuccessBg:r[1],colorSuccessBgHover:r[2],colorSuccessBorder:r[3],colorSuccessBorderHover:r[4],colorSuccessHover:r[4],colorSuccess:r[6],colorSuccessActive:r[7],colorSuccessTextHover:r[8],colorSuccessText:r[9],colorSuccessTextActive:r[10],colorErrorBg:e[1],colorErrorBgHover:e[2],colorErrorBorder:e[3],colorErrorBorderHover:e[4],colorErrorHover:e[5],colorError:e[6],colorErrorActive:e[7],colorErrorTextHover:e[8],colorErrorText:e[9],colorErrorTextActive:e[10],colorWarningBg:c[1],colorWarningBgHover:c[2],colorWarningBorder:c[3],colorWarningBorderHover:c[4],colorWarningHover:c[4],colorWarning:c[6],colorWarningActive:c[7],colorWarningTextHover:c[8],colorWarningText:c[9],colorWarningTextActive:c[10],colorInfoBg:l[1],colorInfoBgHover:l[2],colorInfoBorder:l[3],colorInfoBorderHover:l[4],colorInfoHover:l[4],colorInfo:l[6],colorInfoActive:l[7],colorInfoTextHover:l[8],colorInfoText:l[9],colorInfoTextActive:l[10],colorLinkHover:s[4],colorLink:s[6],colorLinkActive:s[7],colorBgMask:new P.TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}exports.default=S; diff --git a/dist/index.cjs176.js b/dist/index.cjs176.js new file mode 100644 index 00000000..e75c6408 --- /dev/null +++ b/dist/index.cjs176.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs250.js");function d(e){const{motionUnit:o,motionBase:t,borderRadius:i,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(t+o).toFixed(1)}s`,motionDurationMid:`${(t+o*2).toFixed(1)}s`,motionDurationSlow:`${(t+o*3).toFixed(1)}s`,lineWidthBold:n+1},u.default(i))}exports.default=d; diff --git a/dist/index.cjs177.js b/dist/index.cjs177.js new file mode 100644 index 00000000..45ceaba7 --- /dev/null +++ b/dist/index.cjs177.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};exports.default=o; diff --git a/dist/index.cjs178.js b/dist/index.cjs178.js new file mode 100644 index 00000000..75814fe6 --- /dev/null +++ b/dist/index.cjs178.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("./index.cjs242.js"),l=f=>{const i=S.default(f),e=i.map(t=>t.size),n=i.map(t=>t.lineHeight),o=e[1],g=e[0],H=e[2],a=n[1],s=n[0],d=n[2];return{fontSizeSM:g,fontSize:o,fontSizeLG:H,fontSizeXL:e[3],fontSizeHeading1:e[6],fontSizeHeading2:e[5],fontSizeHeading3:e[4],fontSizeHeading4:e[3],fontSizeHeading5:e[2],lineHeight:a,lineHeightLG:d,lineHeightSM:s,fontHeight:Math.round(a*o),fontHeightLG:Math.round(d*H),fontHeightSM:Math.round(s*g),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};exports.default=l; diff --git a/dist/index.cjs179.js b/dist/index.cjs179.js new file mode 100644 index 00000000..d92b89df --- /dev/null +++ b/dist/index.cjs179.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(s){const{sizeUnit:e,sizeStep:i}=s;return{sizeXXL:e*(i+8),sizeXL:e*(i+4),sizeLG:e*(i+2),sizeMD:e*(i+1),sizeMS:e*i,size:e*i,sizeSM:e*(i-1),sizeXS:e*(i-2),sizeXXS:e*(i-3)}}exports.default=t; diff --git a/dist/index.cjs18.js b/dist/index.cjs18.js index c85bb08a..0656c509 100644 --- a/dist/index.cjs18.js +++ b/dist/index.cjs18.js @@ -1,7 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),S=require("recharts"),c=require("./index.cjs54.js");function k(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const n in l)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(l,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>l[n]})}}return e.default=l,Object.freeze(e)}const t=k(P),C=k(S),T={light:"",dark:".dark"},y=t.createContext(null);function w(){const l=t.useContext(y);if(!l)throw new Error("useChart must be used within a ");return l}function $({id:l,className:e,children:n,config:r,...a}){const b=t.useId(),i=`chart-${l||b.replace(/:/g,"")}`;return t.createElement(y.Provider,{value:{config:r}},t.createElement("div",{"data-slot":"chart","data-chart":i,className:c.cn("[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden",e),...a},t.createElement(j,{id:i,config:r}),t.createElement(C.ResponsiveContainer,null,n)))}const j=({id:l,config:e})=>{const n=Object.entries(e).filter(([,r])=>r.theme||r.color);return n.length?t.createElement("style",{dangerouslySetInnerHTML:{__html:Object.entries(T).map(([r,a])=>` -${a} [data-chart=${l}] { -${n.map(([b,i])=>{const s=i.theme?.[r]||i.color;return s?` --color-${b}: ${s};`:null}).join(` -`)} -} -`).join(` -`)}}):null},O=C.Tooltip;function M({active:l,payload:e,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:b=!1,label:i,labelFormatter:s,labelClassName:u,formatter:x,color:N,nameKey:L,labelKey:g}){const{config:f}=w(),E=t.useMemo(()=>{if(a||!e?.length)return null;const[o]=e,h=`${g||o?.dataKey||o?.name||"value"}`,p=v(f,o,h),d=!g&&typeof i=="string"?f[i]?.label||i:p?.label;return s?t.createElement("div",{className:c.cn("lib:font-medium",u)},s(d,e)):d?t.createElement("div",{className:c.cn("lib:font-medium",u)},d):null},[i,s,e,a,u,f,g]);if(!l||!e?.length)return null;const m=e.length===1&&r!=="dot";return t.createElement("div",{className:c.cn("lib:border-border/50 lib:bg-background lib:grid lib:min-w-[8rem] lib:items-start lib:gap-1.5 lib:rounded-lg lib:border lib:px-2.5 lib:py-1.5 lib:text-xs lib:shadow-xl",n)},m?null:E,t.createElement("div",{className:"lib:grid lib:gap-1.5"},e.map((o,h)=>{const p=`${L||o.name||o.dataKey||"value"}`,d=v(f,o,p),_=N||o.payload.fill||o.color;return t.createElement("div",{key:o.dataKey,className:c.cn("[&>svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5",r==="dot"&&"lib:items-center")},x&&o?.value!==void 0&&o.name?x(o.value,o.name,o,h,o.payload):t.createElement(t.Fragment,null,d?.icon?t.createElement(d.icon,null):!b&&t.createElement("div",{className:c.cn("lib:shrink-0 lib:rounded-[2px] lib:border-(--color-border) lib:bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":m&&r==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),t.createElement("div",{className:c.cn("lib:flex lib:flex-1 lib:justify-between lib:leading-none",m?"lib:items-end":"lib:items-center")},t.createElement("div",{className:"lib:grid lib:gap-1.5"},m?E:null,t.createElement("span",{className:"lib:text-muted-foreground"},d?.label||o.name)),o.value&&t.createElement("span",{className:"lib:text-foreground lib:font-mono lib:font-medium lib:tabular-nums"},o.value.toLocaleString()))))})))}const R=C.Legend;function q({className:l,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:a}){const{config:b}=w();return n?.length?t.createElement("div",{className:c.cn("lib:flex lib:items-center lib:justify-center lib:gap-4",r==="top"?"lib:pb-3":"lib:pt-3",l)},n.map(i=>{const s=`${a||i.dataKey||"value"}`,u=v(b,i,s);return t.createElement("div",{key:i.value,className:c.cn("[&>svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3")},u?.icon&&!e?t.createElement(u.icon,null):t.createElement("div",{className:"lib:h-2 lib:w-2 lib:shrink-0 lib:rounded-[2px]",style:{backgroundColor:i.color}}),u?.label)})):null}function v(l,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let a=n;return n in e&&typeof e[n]=="string"?a=e[n]:r&&n in r&&typeof r[n]=="string"&&(a=r[n]),a in l?l[a]:l[n]}exports.ChartContainer=$;exports.ChartLegend=R;exports.ChartLegendContent=q;exports.ChartStyle=j;exports.ChartTooltip=O;exports.ChartTooltipContent=M; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),o=require("@radix-ui/react-checkbox"),c=require("lucide-react"),s=require("./index.cjs65.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(o);function u({className:e,...t}){return i.jsxRuntimeExports.jsx(n.Root,{"data-slot":"checkbox",className:s.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsxRuntimeExports.jsx(c.CheckIcon,{className:"size-3.5"})})})}exports.Checkbox=u; diff --git a/dist/index.cjs180.js b/dist/index.cjs180.js new file mode 100644 index 00000000..70a5da22 --- /dev/null +++ b/dist/index.cjs180.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs161.js");const o=require("./index.cjs251.js"),a=require("./index.cjs164.js"),c=t=>{const r=a.default(t);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},g=(t,r)=>{const l=t||"#fff",e=r||"#000";return{colorBgBase:l,colorTextBase:e,colorText:o.getAlphaColor(e,.88),colorTextSecondary:o.getAlphaColor(e,.65),colorTextTertiary:o.getAlphaColor(e,.45),colorTextQuaternary:o.getAlphaColor(e,.25),colorFill:o.getAlphaColor(e,.15),colorFillSecondary:o.getAlphaColor(e,.06),colorFillTertiary:o.getAlphaColor(e,.04),colorFillQuaternary:o.getAlphaColor(e,.02),colorBgLayout:o.getSolidColor(l,4),colorBgContainer:o.getSolidColor(l,0),colorBgElevated:o.getSolidColor(l,0),colorBgSpotlight:o.getAlphaColor(e,.85),colorBgBlur:"transparent",colorBorder:o.getSolidColor(l,15),colorBorderSecondary:o.getSolidColor(l,6)}};exports.generateColorPalettes=c;exports.generateNeutralColorPalettes=g; diff --git a/dist/index.cjs181.js b/dist/index.cjs181.js new file mode 100644 index 00000000..8b0843dd --- /dev/null +++ b/dist/index.cjs181.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./index.cjs188.js"),p=8;function f(r){const{contentRadius:e,limitVerticalRadius:s}=r,t=e>12?e+2:12;return{arrowOffsetHorizontal:t,arrowOffsetVertical:s?p:t}}function c(r,e){return r?e:{}}function u(r,e,s){const{componentCls:t,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=r,{arrowDistance:n=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({[`${t}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},m.genRoundedArrow(r,e,i)),{"&:before":{background:e}})]},c(!!l.top,{[[`&-placement-top > ${t}-arrow`,`&-placement-topLeft > ${t}-arrow`,`&-placement-topRight > ${t}-arrow`].join(",")]:{bottom:n,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}}})),c(!!l.bottom,{[[`&-placement-bottom > ${t}-arrow`,`&-placement-bottomLeft > ${t}-arrow`,`&-placement-bottomRight > ${t}-arrow`].join(",")]:{top:n,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}}})),c(!!l.left,{[[`&-placement-left > ${t}-arrow`,`&-placement-leftTop > ${t}-arrow`,`&-placement-leftBottom > ${t}-arrow`].join(",")]:{right:{_skip_check_:!0,value:n},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${t}-arrow`]:{top:o},[`&-placement-leftBottom > ${t}-arrow`]:{bottom:o}})),c(!!l.right,{[[`&-placement-right > ${t}-arrow`,`&-placement-rightTop > ${t}-arrow`,`&-placement-rightBottom > ${t}-arrow`].join(",")]:{left:{_skip_check_:!0,value:n},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${t}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${t}-arrow`]:{top:o},[`&-placement-rightBottom > ${t}-arrow`]:{bottom:o}}))}}exports.MAX_VERTICAL_CONTENT_RADIUS=p;exports.default=u;exports.getArrowOffsetToken=f; diff --git a/dist/index.cjs182.js b/dist/index.cjs182.js new file mode 100644 index 00000000..81c69f4a --- /dev/null +++ b/dist/index.cjs182.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs121.js");require("react");const e=require("./index.cjs122.js");exports.default=e.default; diff --git a/dist/index.cjs183.js b/dist/index.cjs183.js new file mode 100644 index 00000000..4b0c95b5 --- /dev/null +++ b/dist/index.cjs183.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs121.js"),u=require("react");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=s(u);function d(e){var t=e.children,n=e.prefixCls,l=e.id,r=e.overlayInnerStyle,a=e.className,i=e.style;return c.createElement("div",{className:o.default("".concat(n,"-content"),a),style:i},c.createElement("div",{className:"".concat(n,"-inner"),id:l,role:"tooltip",style:r},typeof t=="function"?t():t))}exports.default=d; diff --git a/dist/index.cjs184.js b/dist/index.cjs184.js new file mode 100644 index 00000000..ecb1c2cc --- /dev/null +++ b/dist/index.cjs184.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("./index.cjs156.js"),c=require("./index.cjs171.js"),sn=require("./index.cjs209.js"),Ve=require("./index.cjs265.js"),Z=require("./index.cjs121.js"),cn=require("./index.cjs146.js"),xe=require("./index.cjs203.js"),ke=require("./index.cjs270.js"),S=require("./index.cjs172.js"),fn=require("./index.cjs271.js"),b=require("./index.cjs173.js"),dn=require("./index.cjs269.js"),pn=require("react"),gn=require("./index.cjs272.js"),vn=require("./index.cjs273.js"),qe=require("./index.cjs274.js"),mn=require("./index.cjs275.js"),hn=require("./index.cjs276.js"),Pn=require("./index.cjs277.js"),Cn=require("./index.cjs278.js"),ee=require("./index.cjs279.js");function Mn(g){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(g){for(const t in g)if(t!=="default"){const $=Object.getOwnPropertyDescriptor(g,t);Object.defineProperty(m,t,$.get?$:{enumerable:!0,get:()=>g[t]})}}return m.default=g,Object.freeze(m)}const o=Mn(pn);var Rn=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Le(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ve.default,m=o.forwardRef(function(t,$){var te=t.prefixCls,A=te===void 0?"rc-trigger-popup":te,ze=t.children,ne=t.action,He=ne===void 0?"hover":ne,Ie=t.showAction,je=t.hideAction,h=t.popupVisible,Be=t.defaultPopupVisible,z=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,I=t.mouseEnterDelay,oe=t.mouseLeaveDelay,j=oe===void 0?.1:oe,Fe=t.focusDelay,We=t.blurDelay,ae=t.mask,re=t.maskClosable,Xe=re===void 0?!0:re,Ye=t.getPopupContainer,Je=t.forceRender,Ge=t.autoDestroy,Ke=t.destroyPopupOnHide,Qe=t.popup,Ue=t.popupClassName,Ze=t.popupStyle,B=t.popupPlacement,ue=t.builtinPlacements,P=ue===void 0?{}:ue,ie=t.popupAlign,et=t.zIndex,le=t.stretch,N=t.getPopupClassNameFromAlign,tt=t.fresh,y=t.alignPoint,nt=t.onPopupClick,ot=t.onPopupAlign,F=t.arrow,at=t.popupMotion,rt=t.maskMotion,ut=t.popupTransitionName,it=t.popupAnimation,lt=t.maskTransitionName,st=t.maskAnimation,se=t.className,ct=t.getTriggerDOMNode,W=sn.default(t,Rn),ft=Ge||Ke||!1,dt=o.useState(!1),ce=c.default(dt,2),pt=ce[0],gt=ce[1];b.default(function(){gt(dn.default())},[]);var fe=o.useRef({}),v=o.useContext(qe.default),vt=o.useMemo(function(){return{registerSubPopup:function(n,a){fe.current[n]=a,v?.registerSubPopup(n,a)}}},[v]),mt=fn.default(),ht=o.useState(null),de=c.default(ht,2),i=de[0],Pt=de[1],pe=o.useRef(null),Ct=S.default(function(e){pe.current=e,xe.isDOM(e)&&i!==e&&Pt(e),v?.registerSubPopup(mt,e)}),Mt=o.useState(null),ge=c.default(Mt,2),p=ge[0],Rt=ge[1],ve=o.useRef(null),St=S.default(function(e){xe.isDOM(e)&&p!==e&&(Rt(e),ve.current=e)}),E=o.Children.only(ze),f=E?.props||{},C={},bt=S.default(function(e){var n,a,u=p;return u?.contains(e)||((n=ke.getShadowRoot(u))===null||n===void 0?void 0:n.host)===e||e===u||i?.contains(e)||((a=ke.getShadowRoot(i))===null||a===void 0?void 0:a.host)===e||e===i||Object.values(fe.current).some(function(r){return r?.contains(e)||e===r})}),At=ee.getMotion(A,at,it,ut),yt=ee.getMotion(A,rt,st,lt),Tt=o.useState(Be||!1),me=c.default(Tt,2),Dt=me[0],he=me[1],l=h??Dt,wt=S.default(function(e){h===void 0&&he(e)});b.default(function(){he(h||!1)},[h]);var T=o.useRef(l);T.current=l;var O=o.useRef([]);O.current=[];var Pe=S.default(function(e){var n;wt(e),((n=O.current[O.current.length-1])!==null&&n!==void 0?n:l)!==e&&(O.current.push(e),z?.(e))}),Ce=o.useRef(),Me=function(){clearTimeout(Ce.current)},d=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Me(),a===0?Pe(n):Ce.current=setTimeout(function(){Pe(n)},a*1e3)};o.useEffect(function(){return Me},[]);var $t=o.useState(!1),Re=c.default($t,2),X=Re[0],Se=Re[1];b.default(function(e){(!e||l)&&Se(!0)},[l]);var Nt=o.useState(null),be=c.default(Nt,2),Y=be[0],Ae=be[1],Et=o.useState(null),ye=c.default(Et,2),J=ye[0],Ot=ye[1],_=function(n){Ot([n.clientX,n.clientY])},_t=hn.default(l,i,y&&J!==null?J:p,B,P,ie,ot),s=c.default(_t,11),xt=s[0],kt=s[1],qt=s[2],Vt=s[3],Lt=s[4],zt=s[5],Ht=s[6],It=s[7],jt=s[8],x=s[9],G=s[10],Bt=mn.default(pt,He,Ie,je),Te=c.default(Bt,2),k=Te[0],D=Te[1],De=k.has("click"),q=D.has("click")||D.has("contextMenu"),M=S.default(function(){X||G()}),Ft=function(){T.current&&y&&q&&d(!1)};Pn.default(l,p,i,M,Ft),b.default(function(){M()},[J,B]),b.default(function(){l&&!(P!=null&&P[B])&&M()},[JSON.stringify(ie)]);var Wt=o.useMemo(function(){var e=ee.getAlignPopupClassName(P,A,x,y);return Z.default(e,N?.(x))},[x,N,P,A,y]);o.useImperativeHandle($,function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:M}});var Xt=o.useState(0),we=c.default(Xt,2),Yt=we[0],Jt=we[1],Gt=o.useState(0),$e=c.default(Gt,2),Kt=$e[0],Qt=$e[1],Ne=function(){if(le&&p){var n=p.getBoundingClientRect();Jt(n.width),Qt(n.height)}},Ut=function(){Ne(),M()},Zt=function(n){Se(!1),G(),H?.(n)},en=function(){return new Promise(function(n){Ne(),Ae(function(){return n})})};b.default(function(){Y&&(G(),Y(),Ae(null))},[Y]);function R(e,n,a,u){C[e]=function(r){var V;u?.(r),d(n,a);for(var U=arguments.length,_e=new Array(U>1?U-1:0),L=1;L1?a-1:0),r=1;r1?a-1:0),r=1;r3&&arguments[3]!==void 0?arguments[3]:{},g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g)return t;var i=l.default(l.default({},a),{},(r={},f.default(r,d.ATTR_TOKEN,e),f.default(r,d.ATTR_MARK,n),r)),S=Object.keys(i).map(function(u){var s=i[u];return s?"".concat(u,'="').concat(s,'"'):null}).filter(function(u){return u}).join(" ");return"")}exports.flattenToken=c;exports.isClientSide=k;exports.memoResult=p;exports.toStyleStr=j;exports.token2key=q;exports.unit=_; diff --git a/dist/index.cjs186.js b/dist/index.cjs186.js new file mode 100644 index 00000000..9a089ecd --- /dev/null +++ b/dist/index.cjs186.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const l=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}},c=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,o,r)=>{const{fontFamily:t,fontSize:n}=e,i=`[class^="${o}"], [class*=" ${o}"]`;return{[r?`.${r}`:i]:{fontFamily:t,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};exports.genCommonStyle=s;exports.genLinkStyle=a;exports.resetComponent=l;exports.resetIcon=c; diff --git a/dist/index.cjs187.js b/dist/index.cjs187.js new file mode 100644 index 00000000..88e905b1 --- /dev/null +++ b/dist/index.cjs187.js @@ -0,0 +1,4 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");const o=require("./index.cjs228.js");require("./index.cjs101.js");const I=require("./index.cjs263.js"),i=new o.default("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),m=new o.default("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),r=new o.default("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new o.default("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),s=new o.default("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),f=new o.default("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),c=new o.default("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),u=new o.default("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),l=new o.default("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O=new o.default("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),g=new o.default("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),y=new o.default("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),K={zoom:{inKeyframes:i,outKeyframes:m},"zoom-big":{inKeyframes:r,outKeyframes:a},"zoom-big-fast":{inKeyframes:r,outKeyframes:a},"zoom-left":{inKeyframes:c,outKeyframes:u},"zoom-right":{inKeyframes:l,outKeyframes:O},"zoom-up":{inKeyframes:s,outKeyframes:f},"zoom-down":{inKeyframes:g,outKeyframes:y}},d=(t,e)=>{const{antCls:z}=t,n=`${z}-${e}`,{inKeyframes:p,outKeyframes:w}=K[e];return[I.initMotion(n,p,w,t.motionDurationFast),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]};exports.initZoomMotion=d;exports.zoomBigIn=r;exports.zoomBigOut=a;exports.zoomDownIn=g;exports.zoomDownOut=y;exports.zoomIn=i;exports.zoomLeftIn=c;exports.zoomLeftOut=u;exports.zoomOut=m;exports.zoomRightIn=l;exports.zoomRightOut=O;exports.zoomUpIn=s;exports.zoomUpOut=f; diff --git a/dist/index.cjs188.js b/dist/index.cjs188.js new file mode 100644 index 00000000..98aae17f --- /dev/null +++ b/dist/index.cjs188.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");const f=require("./index.cjs185.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs96.js");require("./index.cjs95.js");require("./index.cjs97.js");require("./index.cjs101.js");function M(u){const{sizePopupArrow:c,borderRadiusXS:e,borderRadiusOuter:t}=u,r=c/2,n=0,o=r,i=t*1/Math.sqrt(2),s=r-t*(1-1/Math.sqrt(2)),d=r-e*(1/Math.sqrt(2)),h=t*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),$=2*r-d,q=h,l=2*r-i,w=s,p=2*r-n,g=o,b=r*Math.sqrt(2)+t*(Math.sqrt(2)-2),a=t*(Math.sqrt(2)-1),x=`polygon(${a}px 100%, 50% ${a}px, ${2*r-a}px 100%, ${a}px 100%)`,y=`path('M ${n} ${o} A ${t} ${t} 0 0 0 ${i} ${s} L ${d} ${h} A ${e} ${e} 0 0 1 ${$} ${q} L ${l} ${w} A ${t} ${t} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:y,arrowPolygon:x}}const A=(u,c,e)=>{const{sizePopupArrow:t,arrowPolygon:r,arrowPath:n,arrowShadowWidth:o,borderRadiusXS:i,calc:s}=u;return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:s(t).div(2).equal(),background:c,clipPath:{_multi_value_:!0,value:[r,n]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${f.unit(i)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:e,zIndex:0,background:"transparent"}}};exports.genRoundedArrow=A;exports.getArrowToken=M; diff --git a/dist/index.cjs189.js b/dist/index.cjs189.js new file mode 100644 index 00000000..3404b585 --- /dev/null +++ b/dist/index.cjs189.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react");require("./index.cjs92.js");require("./index.cjs93.js");const U=require("./index.cjs217.js"),b=require("./index.cjs218.js"),Z=require("./index.cjs96.js");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs97.js");require("./index.cjs101.js");const K=require("./index.cjs220.js");require("./index.cjs173.js");require("./index.cjs169.js");const M=require("./index.cjs112.js"),$=require("./index.cjs186.js"),C=require("./index.cjs130.js"),B=require("./index.cjs243.js"),F=require("./index.cjs246.js"),q=require("./index.cjs191.js"),L=require("./index.cjs120.js"),x=(n,c,r)=>{var t;return typeof r=="function"?r(q.merge(c,(t=c[n])!==null&&t!==void 0?t:{})):r??{}},E=(n,c,r,t)=>{const e=Object.assign({},c[n]);if(t?.deprecatedTokens){const{deprecatedTokens:l}=t;l.forEach(u=>{let[d,s]=u;var o;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Z.warningOnce(!e?.[d],`Component Token \`${String(d)}\` of ${n} is deprecated. Please use \`${String(s)}\` instead.`),(e?.[d]||e?.[s])&&((o=e[s])!==null&&o!==void 0||(e[s]=e?.[d]))})}const i=Object.assign(Object.assign({},r),e);return Object.keys(i).forEach(l=>{i[l]===c[l]&&delete i[l]}),i},N=(n,c)=>`${[c,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function R(n,c,r){let t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const e=Array.isArray(n)?n:[n,n],[i]=e,l=e.join("-");return function(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;const[s,o,a,f,S]=C.default(),{getPrefixCls:v,iconPrefixCls:g,csp:y}=m.useContext(M.ConfigContext),p=v(),O=S?"css":"js",A=B.default(O),{max:P,min:w}=F.default(O),h={theme:s,token:f,hashId:a,nonce:()=>y?.nonce,clientOnly:t.clientOnly,order:t.order||-999};return b.default(Object.assign(Object.assign({},h),{clientOnly:!1,path:["Shared",p]}),()=>[{"&":$.genLinkStyle(f)}]),L.default(g,y),[b.default(Object.assign(Object.assign({},h),{path:[l,u,g]}),()=>{if(t.injectStyle===!1)return[];const{token:_,flush:I}=q.default(f),k=x(i,o,r),z=`.${u}`,j=E(i,o,k,{deprecatedTokens:t.deprecatedTokens});S&&Object.keys(k).forEach(V=>{k[V]=`var(${K.token2CSSVar(V,N(i,S.prefix))})`});const T=q.merge(_,{componentCls:z,prefixCls:u,iconCls:`.${g}`,antCls:`.${p}`,calc:A,max:P,min:w},S?k:j),H=c(T,{hashId:a,prefixCls:u,rootPrefixCls:p,iconPrefixCls:g});return I(i,j),[t.resetStyle===!1?null:$.genCommonStyle(T,u,d),H]}),a]}}const G=(n,c,r)=>{function t(s){return`${n}${s.slice(0,1).toUpperCase()}${s.slice(1)}`}const{unitless:e={},injectStyle:i=!0}=r??{},l={[t("zIndexPopup")]:!0};Object.keys(e).forEach(s=>{l[t(s)]=e[s]});const u=s=>{let{rootCls:o,cssVar:a}=s;const[,f]=C.default();return U.default({path:[n],prefix:a.prefix,key:a?.key,unitless:Object.assign(Object.assign({},C.unitless),l),ignore:C.ignore,token:f,scope:o},()=>{const S=x(n,f,c),v=E(n,f,S,{deprecatedTokens:r?.deprecatedTokens});return Object.keys(S).forEach(g=>{v[t(g)]=v[g],delete v[g]}),v}),null};return s=>{const[,,,,o]=C.default();return[a=>i&&o?m.createElement(m.Fragment,null,m.createElement(u,{rootCls:s,cssVar:o,component:n}),a):a,o?.key]}},J=(n,c,r,t)=>{const e=R(n,c,r,t),i=G(Array.isArray(n)?n[0]:n,r,t);return function(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[,d]=e(l,u),[s,o]=i(u);return[s,d,o]}};exports.default=R;exports.genStyleHooks=J; diff --git a/dist/index.cjs19.js b/dist/index.cjs19.js index 5d69999f..2bf37fcf 100644 --- a/dist/index.cjs19.js +++ b/dist/index.cjs19.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),o=require("@radix-ui/react-checkbox"),b=require("lucide-react"),s=require("./index.cjs54.js");function l(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const r=l(n),c=l(o);function d({className:e,...i}){return r.createElement(c.Root,{"data-slot":"checkbox",className:s.cn("lib:peer lib:border-input dark:lib:bg-input/30 data-[state=checked]:lib:bg-primary data-[state=checked]:lib:text-primary-foreground dark:data-[state=checked]:lib:bg-primary data-[state=checked]:lib:border-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:size-4 lib:shrink-0 lib:rounded-[4px] lib:border lib:shadow-xs lib:transition-shadow lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...i},r.createElement(c.Indicator,{"data-slot":"checkbox-indicator",className:"lib:flex lib:items-center lib:justify-center lib:text-current lib:transition-none"},r.createElement(b.CheckIcon,{className:"lib:size-3.5"})))}exports.Checkbox=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),n=require("@radix-ui/react-collapsible");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const i=s(n);function a({...e}){return o.jsxRuntimeExports.jsx(i.Root,{"data-slot":"collapsible",...e})}function u({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function c({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleContent,{"data-slot":"collapsible-content",...e})}exports.Collapsible=a;exports.CollapsibleContent=c;exports.CollapsibleTrigger=u; diff --git a/dist/index.cjs190.js b/dist/index.cjs190.js new file mode 100644 index 00000000..b55fac6d --- /dev/null +++ b/dist/index.cjs190.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./index.cjs145.js");function a(t,r){return i.PresetColors.reduce((s,e)=>{const o=t[`${e}1`],u=t[`${e}3`],l=t[`${e}6`],n=t[`${e}7`];return Object.assign(Object.assign({},s),r(e,{lightColor:o,lightBorderColor:u,darkColor:l,textColor:n}))},{})}exports.default=a; diff --git a/dist/index.cjs191.js b/dist/index.cjs191.js new file mode 100644 index 00000000..6b832b1e --- /dev/null +++ b/dist/index.cjs191.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let i=!0;function l(){for(var o=arguments.length,e=new Array(o),t=0;t{Object.keys(r).forEach(n=>{Object.defineProperty(s,n,{configurable:!0,enumerable:!0,get:()=>r[n]})})}),i=!0,s}const a={};function f(){}const d=o=>{let e,t=o,s=f;return u&&typeof Proxy<"u"&&(e=new Set,t=new Proxy(o,{get(r,c){return i&&e.add(c),r[c]}}),s=(r,c)=>{var n;a[r]={global:Array.from(e),component:Object.assign(Object.assign({},(n=a[r])===null||n===void 0?void 0:n.component),c)}}),{token:t,keys:e,flush:s}};exports.default=d;exports.merge=l;exports.statistic=a; diff --git a/dist/index.cjs192.js b/dist/index.cjs192.js new file mode 100644 index 00000000..dec28b20 --- /dev/null +++ b/dist/index.cjs192.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}exports.default=t; diff --git a/dist/index.cjs193.js b/dist/index.cjs193.js new file mode 100644 index 00000000..7c947075 --- /dev/null +++ b/dist/index.cjs193.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs194.js");function a(r,u){for(var t=0;te[t]})}}return l.default=e,Object.freeze(l)}const o=a(n);function i({...e}){return React.createElement(o.Root,{"data-slot":"collapsible",...e})}function c({...e}){return React.createElement(o.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function s({...e}){return React.createElement(o.CollapsibleContent,{"data-slot":"collapsible-content",...e})}exports.Collapsible=i;exports.CollapsibleContent=s;exports.CollapsibleTrigger=c; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),m=require("cmdk"),c=require("lucide-react"),n=require("./index.cjs65.js"),a=require("./index.cjs22.js");function r({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}function p({title:t="Command Palette",description:o="Search for a command to run...",children:s,className:d,showCloseButton:i=!0,...u}){return e.jsxRuntimeExports.jsxs(a.Dialog,{...u,children:[e.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[e.jsxRuntimeExports.jsx(a.DialogTitle,{children:t}),e.jsxRuntimeExports.jsx(a.DialogDescription,{children:o})]}),e.jsxRuntimeExports.jsx(a.DialogContent,{className:n.cn("overflow-hidden p-0",d),showCloseButton:i,children:e.jsxRuntimeExports.jsx(r,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})]})}function l({className:t,...o}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[e.jsxRuntimeExports.jsx(c.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(m.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...o})]})}function x({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}function g({...t}){return e.jsxRuntimeExports.jsx(m.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function C({className:t,...o}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}exports.Command=r;exports.CommandDialog=p;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=l;exports.CommandItem=j;exports.CommandList=x;exports.CommandSeparator=f;exports.CommandShortcut=C; diff --git a/dist/index.cjs200.js b/dist/index.cjs200.js new file mode 100644 index 00000000..7c8cf7d1 --- /dev/null +++ b/dist/index.cjs200.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(o,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,u){return t.__proto__=u,t},e(o,r)}exports.default=e; diff --git a/dist/index.cjs201.js b/dist/index.cjs201.js new file mode 100644 index 00000000..b051822a --- /dev/null +++ b/dist/index.cjs201.js @@ -0,0 +1,33 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./index.cjs111.js"),a=require("./index.cjs249.js"),g=require("./index.cjs165.js");var S=function(e,i){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[t]});const o=Object.assign(Object.assign({},n),r),s=480,l=576,c=768,x=992,p=1200,d=1600;if(o.motion===!1){const t="0s";o.motionDurationFast=t,o.motionDurationMid=t,o.motionDurationSlow=t}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:a.default(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:a.default(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:a.default(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:a.default(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:s,screenXSMin:s,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:x-1,screenLG:x,screenLGMin:x,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new g.TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new g.TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new g.TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}exports.default=u; diff --git a/dist/index.cjs202.js b/dist/index.cjs202.js new file mode 100644 index 00000000..e6265574 --- /dev/null +++ b/dist/index.cjs202.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs194.js");function o(e,t,r){return(t=u.default(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}exports.default=o; diff --git a/dist/index.cjs203.js b/dist/index.cjs203.js new file mode 100644 index 00000000..5ff1c850 --- /dev/null +++ b/dist/index.cjs203.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs155.js"),f=require("react"),u=require("react-dom");function n(e){return e instanceof HTMLElement||e instanceof SVGElement}function i(e){return e&&l.default(e)==="object"&&n(e.nativeElement)?e.nativeElement:n(e)?e:null}function o(e){var r=i(e);if(r)return r;if(e instanceof f.Component){var t;return(t=u.findDOMNode)===null||t===void 0?void 0:t.call(u,e)}return null}exports.default=o;exports.getDOM=i;exports.isDOM=n; diff --git a/dist/index.cjs204.js b/dist/index.cjs204.js new file mode 100644 index 00000000..389d2d79 --- /dev/null +++ b/dist/index.cjs204.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs192.js"),a=require("./index.cjs193.js"),o=require("./index.cjs199.js"),c=require("./index.cjs211.js"),s=require("react");function i(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const l=i(s);var f=function(t){o.default(e,t);var r=c.default(e);function e(){return u.default(this,e),r.apply(this,arguments)}return a.default(e,[{key:"render",value:function(){return this.props.children}}]),e}(l.Component);exports.default=f; diff --git a/dist/index.cjs205.js b/dist/index.cjs205.js new file mode 100644 index 00000000..e50baad8 --- /dev/null +++ b/dist/index.cjs205.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Te=require("./index.cjs156.js"),i=require("./index.cjs202.js"),d=require("./index.cjs171.js"),Ae=require("./index.cjs172.js");require("./index.cjs173.js");const F=require("./index.cjs174.js");require("./index.cjs169.js");require("./index.cjs96.js");const ve=require("./index.cjs254.js"),c=require("react"),e=require("./index.cjs207.js"),Pe=require("./index.cjs255.js"),pe=require("./index.cjs256.js"),m=require("./index.cjs206.js");function Re(E){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(E){for(const s in E)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(E,s);Object.defineProperty(u,s,t.get?t:{enumerable:!0,get:()=>E[s]})}}return u.default=E,Object.freeze(u)}const G=Re(c);function me(E,u,s,t){var M=t.motionEnter,_=M===void 0?!0:M,D=t.motionAppear,N=D===void 0?!0:D,I=t.motionLeave,T=I===void 0?!0:I,C=t.motionDeadline,J=t.motionLeaveImmediately,K=t.onAppearPrepare,W=t.onEnterPrepare,X=t.onLeavePrepare,Y=t.onAppearStart,Z=t.onEnterStart,ee=t.onLeaveStart,te=t.onAppearActive,ne=t.onEnterActive,re=t.onLeaveActive,U=t.onAppearEnd,L=t.onEnterEnd,y=t.onLeaveEnd,g=t.onVisibleChanged,ue=F.default(),b=d.default(ue,2),S=b[0],ae=b[1],oe=ve.default(e.STATUS_NONE),h=d.default(oe,2),j=h[0],A=h[1],ie=F.default(null),Q=d.default(ie,2),Ee=Q[0],k=Q[1],a=j(),v=c.useRef(!1),q=c.useRef(null);function P(){return s()}var w=c.useRef(!1);function x(){A(e.STATUS_NONE),k(null,!0)}var H=Ae.default(function(r){var n=j();if(n!==e.STATUS_NONE){var o=P();if(!(r&&!r.deadline&&r.target!==o)){var p=w.current,R;n===e.STATUS_APPEAR&&p?R=U?.(o,r):n===e.STATUS_ENTER&&p?R=L?.(o,r):n===e.STATUS_LEAVE&&p&&(R=y?.(o,r)),p&&R!==!1&&x()}}}),Se=Pe.default(H),ce=d.default(Se,1),le=ce[0],z=function(n){switch(n){case e.STATUS_APPEAR:return i.default(i.default(i.default({},e.STEP_PREPARE,K),e.STEP_START,Y),e.STEP_ACTIVE,te);case e.STATUS_ENTER:return i.default(i.default(i.default({},e.STEP_PREPARE,W),e.STEP_START,Z),e.STEP_ACTIVE,ne);case e.STATUS_LEAVE:return i.default(i.default(i.default({},e.STEP_PREPARE,X),e.STEP_START,ee),e.STEP_ACTIVE,re);default:return{}}},f=G.useMemo(function(){return z(a)},[a]),se=m.default(a,!E,function(r){if(r===e.STEP_PREPARE){var n=f[e.STEP_PREPARE];return n?n(P()):m.SkipStep}if(l in f){var o;k(((o=f[l])===null||o===void 0?void 0:o.call(f,P(),null))||null)}return l===e.STEP_ACTIVE&&a!==e.STATUS_NONE&&(le(P()),C>0&&(clearTimeout(q.current),q.current=setTimeout(function(){H({deadline:!0})},C))),l===e.STEP_PREPARED&&x(),m.DoStep}),$=d.default(se,2),fe=$[0],l=$[1],de=m.isActive(l);w.current=de;var B=c.useRef(null);pe.default(function(){if(!(v.current&&B.current===u)){ae(u);var r=v.current;v.current=!0;var n;!r&&u&&N&&(n=e.STATUS_APPEAR),r&&u&&_&&(n=e.STATUS_ENTER),(r&&!u&&T||!r&&J&&!u&&T)&&(n=e.STATUS_LEAVE);var o=z(n);n&&(E||o[e.STEP_PREPARE])?(A(n),fe()):A(e.STATUS_NONE),B.current=u}},[u]),c.useEffect(function(){(a===e.STATUS_APPEAR&&!N||a===e.STATUS_ENTER&&!_||a===e.STATUS_LEAVE&&!T)&&A(e.STATUS_NONE)},[N,_,T]),c.useEffect(function(){return function(){v.current=!1,clearTimeout(q.current)}},[]);var O=G.useRef(!1);c.useEffect(function(){S&&(O.current=!0),S!==void 0&&a===e.STATUS_NONE&&((O.current||S)&&g?.(S),O.current=!0)},[S,a]);var V=Ee;return f[e.STEP_PREPARE]&&l===e.STEP_START&&(V=Te.default({transition:"none"},V)),[a,l,V,S??u]}exports.default=me; diff --git a/dist/index.cjs206.js b/dist/index.cjs206.js new file mode 100644 index 00000000..ce85e20a --- /dev/null +++ b/dist/index.cjs206.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("./index.cjs171.js"),m=require("./index.cjs174.js"),R=require("react"),e=require("./index.cjs207.js"),N=require("./index.cjs256.js"),O=require("./index.cjs257.js");function b(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const D=b(R);var g=[e.STEP_PREPARE,e.STEP_START,e.STEP_ACTIVE,e.STEP_ACTIVATED],I=[e.STEP_PREPARE,e.STEP_PREPARED],T=!1,U=!0;function q(t){return t===e.STEP_ACTIVE||t===e.STEP_ACTIVATED}const y=function(t,n,r){var a=m.default(e.STEP_NONE),E=P.default(a,2),u=E[0],i=E[1],_=O.default(),s=P.default(_,2),l=s[0],d=s[1];function v(){i(e.STEP_PREPARE,!0)}var f=n?I:g;return N.default(function(){if(u!==e.STEP_NONE&&u!==e.STEP_ACTIVATED){var A=f.indexOf(u),c=f[A+1],o=r(u);o===T?i(c,!0):c&&l(function(p){function S(){p.isCanceled()||i(c,!0)}o===!0?S():Promise.resolve(o).then(S)})}},[t,u]),D.useEffect(function(){return function(){d()}},[]),[v,u]};exports.DoStep=U;exports.SkipStep=T;exports.default=y;exports.isActive=q; diff --git a/dist/index.cjs207.js b/dist/index.cjs207.js new file mode 100644 index 00000000..9b5b3762 --- /dev/null +++ b/dist/index.cjs207.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var T="none",E="appear",S="enter",A="leave",P="none",r="prepare",e="start",_="active",a="end",R="prepared";exports.STATUS_APPEAR=E;exports.STATUS_ENTER=S;exports.STATUS_LEAVE=A;exports.STATUS_NONE=T;exports.STEP_ACTIVATED=a;exports.STEP_ACTIVE=_;exports.STEP_NONE=P;exports.STEP_PREPARE=r;exports.STEP_PREPARED=R;exports.STEP_START=e; diff --git a/dist/index.cjs208.js b/dist/index.cjs208.js new file mode 100644 index 00000000..c31fafc4 --- /dev/null +++ b/dist/index.cjs208.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index.cjs155.js"),f=require("./index.cjs162.js");function d(n,e){var t={};return t[n.toLowerCase()]=e.toLowerCase(),t["Webkit".concat(n)]="webkit".concat(e),t["Moz".concat(n)]="moz".concat(e),t["ms".concat(n)]="MS".concat(e),t["O".concat(n)]="o".concat(e.toLowerCase()),t}function u(n,e){var t={animationend:d("Animation","AnimationEnd"),transitionend:d("Transition","TransitionEnd")};return n&&("AnimationEvent"in e||delete t.animationend.animation,"TransitionEvent"in e||delete t.transitionend.transition),t}var l=u(f.default(),typeof window<"u"?window:{}),s={};if(f.default()){var p=document.createElement("div");s=p.style}var i={};function c(n){if(i[n])return i[n];var e=l[n];if(e)for(var t=Object.keys(e),r=t.length,a=0;ae[i]})}}return t.default=e,Object.freeze(t)}const l=b(d);function r({className:e,...t}){return l.createElement(n.Command,{"data-slot":"command",className:a.cn("lib:bg-popover lib:text-popover-foreground lib:flex lib:h-full lib:w-full lib:flex-col lib:overflow-hidden lib:rounded-md",e),...t})}function u({title:e="Command Palette",description:t="Search for a command to run...",children:i,...m}){return l.createElement(o.Dialog,{...m},l.createElement(o.DialogHeader,{className:"lib:sr-only"},l.createElement(o.DialogTitle,null,e),l.createElement(o.DialogDescription,null,t)),l.createElement(o.DialogContent,{className:"lib:overflow-hidden lib:p-0"},l.createElement(r,{className:"[&_[cmdk-group-heading]]:lib:text-muted-foreground **:data-[slot=command-input-wrapper]:lib:h-12 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:font-medium [&_[cmdk-group]]:lib:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:lib:pt-0 [&_[cmdk-input-wrapper]_svg]:lib:h-5 [&_[cmdk-input-wrapper]_svg]:lib:w-5 [&_[cmdk-input]]:lib:h-12 [&_[cmdk-item]]:lib:px-2 [&_[cmdk-item]]:lib:py-3 [&_[cmdk-item]_svg]:lib:h-5 [&_[cmdk-item]_svg]:lib:w-5"},i)))}function s({className:e,...t}){return l.createElement("div",{"data-slot":"command-input-wrapper",className:"lib:flex lib:h-9 lib:items-center lib:gap-2 lib:border-b lib:px-3"},l.createElement(c.SearchIcon,{className:"lib:size-4 lib:shrink-0 lib:opacity-50"}),l.createElement(n.Command.Input,{"data-slot":"command-input",className:a.cn("placeholder:lib:text-muted-foreground lib:flex lib:h-10 lib:w-full lib:rounded-md lib:bg-transparent lib:py-3 lib:text-sm lib:outline-hidden disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...t}))}function p({className:e,...t}){return l.createElement(n.Command.List,{"data-slot":"command-list",className:a.cn("lib:max-h-[300px] lib:scroll-py-1 lib:overflow-x-hidden lib:overflow-y-auto",e),...t})}function g({...e}){return l.createElement(n.Command.Empty,{"data-slot":"command-empty",className:"lib:py-6 lib:text-center lib:text-sm",...e})}function f({className:e,...t}){return l.createElement(n.Command.Group,{"data-slot":"command-group",className:a.cn("lib:text-foreground [&_[cmdk-group-heading]]:lib:text-muted-foreground lib:overflow-hidden lib:p-1 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:py-1.5 [&_[cmdk-group-heading]]:lib:text-xs [&_[cmdk-group-heading]]:lib:font-medium",e),...t})}function x({className:e,...t}){return l.createElement(n.Command.Separator,{"data-slot":"command-separator",className:a.cn("lib:bg-border lib:-mx-1 lib:h-px",e),...t})}function h({className:e,...t}){return l.createElement(n.Command.Item,{"data-slot":"command-item",className:a.cn("data-[selected=true]:lib:bg-accent data-[selected=true]:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled=true]:lib:pointer-events-none data-[disabled=true]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...t})}function _({className:e,...t}){return l.createElement("span",{"data-slot":"command-shortcut",className:a.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...t})}exports.Command=r;exports.CommandDialog=u;exports.CommandEmpty=g;exports.CommandGroup=f;exports.CommandInput=s;exports.CommandItem=h;exports.CommandList=p;exports.CommandSeparator=x;exports.CommandShortcut=_; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),u=require("@radix-ui/react-context-menu"),i=require("lucide-react"),a=require("./index.cjs65.js");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const o=d(u);function c({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"context-menu",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function p({...t}){return e.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function f({...t}){return e.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function g({className:t,inset:n,children:s,...r}){return e.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[s,e.jsxRuntimeExports.jsx(i.ChevronRightIcon,{className:"ml-auto"})]})}function v({className:t,...n}){return e.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function b({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Portal,{children:e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"context-menu-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function j({className:t,inset:n,variant:s="default",...r}){return e.jsxRuntimeExports.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":s,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function C({className:t,children:n,checked:s,...r}){return e.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:s,...r,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.CheckIcon,{className:"size-4"})})}),n]})}function h({className:t,children:n,...s}){return e.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function M({className:t,inset:n,...s}){return e.jsxRuntimeExports.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:a.cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...s})}function R({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"context-menu-separator",className:a.cn("bg-border -mx-1 my-1 h-px",t),...n})}function E({className:t,...n}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:a.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n})}exports.ContextMenu=c;exports.ContextMenuCheckboxItem=C;exports.ContextMenuContent=b;exports.ContextMenuGroup=l;exports.ContextMenuItem=j;exports.ContextMenuLabel=M;exports.ContextMenuPortal=m;exports.ContextMenuRadioGroup=f;exports.ContextMenuRadioItem=h;exports.ContextMenuSeparator=R;exports.ContextMenuShortcut=E;exports.ContextMenuSub=p;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=x; diff --git a/dist/index.cjs210.js b/dist/index.cjs210.js new file mode 100644 index 00000000..0d3280c4 --- /dev/null +++ b/dist/index.cjs210.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}exports.default=t; diff --git a/dist/index.cjs211.js b/dist/index.cjs211.js new file mode 100644 index 00000000..3d4418e9 --- /dev/null +++ b/dist/index.cjs211.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs196.js"),n=require("./index.cjs197.js"),a=require("./index.cjs198.js");function c(u){var o=n.default();return function(){var e,t=r.default(u);if(o){var s=r.default(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return a.default(this,e)}}exports.default=c; diff --git a/dist/index.cjs212.js b/dist/index.cjs212.js new file mode 100644 index 00000000..c2496b3b --- /dev/null +++ b/dist/index.cjs212.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs156.js"),m=require("./index.cjs155.js");var d="add",l="keep",v="remove",k="removed";function T(n){var s;return n&&m.default(n)==="object"&&"key"in n?s=n:s={key:n},a.default(a.default({},s),{},{key:String(s.key)})}function y(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.map(T)}function K(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=[],f=0,S=s.length,g=y(n),o=y(s);g.forEach(function(t){for(var r=!1,u=f;u1});return p.forEach(function(t){e=e.filter(function(r){var u=r.key,i=r.status;return u!==t||i!==v}),e.forEach(function(r){r.key===t&&(r.status=l)})}),e}exports.STATUS_ADD=d;exports.STATUS_KEEP=l;exports.STATUS_REMOVE=v;exports.STATUS_REMOVED=k;exports.diffKeys=K;exports.parseKeys=y;exports.wrapKeyToObject=T; diff --git a/dist/index.cjs213.js b/dist/index.cjs213.js new file mode 100644 index 00000000..6626610b --- /dev/null +++ b/dist/index.cjs213.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=function(e){return+setTimeout(e,16)},c=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(o=function(e){return window.requestAnimationFrame(e)},c=function(e){return window.cancelAnimationFrame(e)});var f=0,r=new Map;function d(n){r.delete(n)}var a=function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;f+=1;var t=f;function u(i){if(i===0)d(t),e();else{var l=o(function(){u(i-1)});r.set(t,l)}}return u(s),t};a.cancel=function(n){var e=r.get(n);return d(n),c(e)};process.env.NODE_ENV!=="production"&&(a.ids=function(){return r});exports.default=a; diff --git a/dist/index.cjs214.js b/dist/index.cjs214.js new file mode 100644 index 00000000..389d2d79 --- /dev/null +++ b/dist/index.cjs214.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs192.js"),a=require("./index.cjs193.js"),o=require("./index.cjs199.js"),c=require("./index.cjs211.js"),s=require("react");function i(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const l=i(s);var f=function(t){o.default(e,t);var r=c.default(e);function e(){return u.default(this,e),r.apply(this,arguments)}return a.default(e,[{key:"render",value:function(){return this.props.children}}]),e}(l.Component);exports.default=f; diff --git a/dist/index.cjs215.js b/dist/index.cjs215.js new file mode 100644 index 00000000..f2f3b493 --- /dev/null +++ b/dist/index.cjs215.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var _=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),x?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!v||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=A.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),m=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new j(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof c(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new W(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),g=typeof WeakMap<"u"?new WeakMap:new _,w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=z.getInstance(),r=new F(t,n,this);g.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=g.get(this))[e].apply(t,arguments)}});var H=function(){return typeof f.ResizeObserver<"u"?f.ResizeObserver:w}();exports.default=H; diff --git a/dist/index.cjs216.js b/dist/index.cjs216.js new file mode 100644 index 00000000..7ced81a8 --- /dev/null +++ b/dist/index.cjs216.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,l=Array(e);re[r]})}}return n.default=e,Object.freeze(n)}const w=he(ce);var K="_skip_check_",ee="_multi_value_";function z(e){var n=B.serialize(de.compile(e),B.stringify);return n.replace(/\{%%%\:[^;];}/g,";")}function ve(e){return G.default(e)==="object"&&e&&(K in e||ee in e)}function V(e,n,r){if(!n)return e;var h=".".concat(n),f=r==="low"?":where(".concat(h,")"):h,g=e.split(",").map(function(m){var o,u=m.trim().split(/\s+/),_=u[0]||"",a=((o=_.match(/^\w+/))===null||o===void 0?void 0:o[0])||"";return _="".concat(a).concat(f).concat(_.slice(a.length)),[_].concat(W.default(u.slice(1))).join(" ")});return g.join(",")}var te=function e(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},f=h.root,g=h.injectHash,m=h.parentSelectors,o=r.hashId,u=r.layer,_=r.path,a=r.hashPriority,x=r.transformers,k=x===void 0?[]:x,j=r.linters,M=j===void 0?[]:j,i="",C={};function L(v){var c=v.getName(o);if(!C[c]){var l=e(v.style,r,{root:!1,parentSelectors:m}),d=R.default(l,1),t=d[0];C[c]="@keyframes ".concat(v.getName(o)).concat(t)}}function $(v){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(l){Array.isArray(l)?$(l,c):l&&c.push(l)}),c}var Q=$(Array.isArray(n)?n:[n]);return Q.forEach(function(v){var c=typeof v=="string"&&!f?{}:v;if(typeof c=="string")i+="".concat(c,` +`);else if(c._keyframe)L(c);else{var l=k.reduce(function(d,t){var q;return(t==null||(q=t.visit)===null||q===void 0?void 0:q.call(t,d))||d},c);Object.keys(l).forEach(function(d){var t=l[d];if(G.default(t)==="object"&&t&&(d!=="animationName"||!t._keyframe)&&!ve(t)){var q=!1,b=d.trim(),D=!1;(f||g)&&o?b.startsWith("@")?q=!0:b==="&"?b=V("",o,a):b=V(d,o,a):f&&!o&&(b==="&"||b==="")&&(b="",D=!0);var X=e(t,r,{root:D,injectHash:q,parentSelectors:[].concat(W.default(m),[b])}),A=R.default(X,2),p=A[0],y=A[1];C=U.default(U.default({},C),y),i+="".concat(b).concat(p)}else{let I=function(T,S){process.env.NODE_ENV!=="production"&&(G.default(t)!=="object"||!(t!=null&&t[K]))&&[ue.default,se.default].concat(W.default(M)).forEach(function(s){return s(T,S,{path:_,hashId:o,parentSelectors:m})});var H=T.replace(/[A-Z]/g,function(s){return"-".concat(s.toLowerCase())}),E=S;!le.default[T]&&typeof E=="number"&&E!==0&&(E="".concat(E,"px")),T==="animationName"&&S!==null&&S!==void 0&&S._keyframe&&(L(S),E=S.getName(o)),i+="".concat(H,":").concat(E,";")};var N,P=(N=t?.value)!==null&&N!==void 0?N:t;G.default(t)==="object"&&t!==null&&t!==void 0&&t[ee]&&Array.isArray(P)?P.forEach(function(T){I(d,T)}):I(d,P)}})}}),f?u&&(i&&(i="@layer ".concat(u.name," {").concat(i,"}")),u.dependencies&&(C["@layer ".concat(u.name)]=u.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(u.name,";")}).join(` +`))):i="{".concat(i,"}"),[i,C]};function re(e,n){return ie.default("".concat(e.join("%")).concat(n))}function pe(){return null}var ae="style";function ye(e,n){var r=e.token,h=e.path,f=e.hashId,g=e.layer,m=e.nonce,o=e.clientOnly,u=e.order,_=u===void 0?0:u,a=w.useContext(O.default),x=a.autoClear,k=a.mock,j=a.defaultCache,M=a.hashPriority,i=a.container,C=a.ssrInline,L=a.transformers,$=a.linters,Q=a.cache,v=a.layer,c=r._tokenKey,l=[c];v&&l.push("layer"),l.push.apply(l,W.default(h));var d=Y.isClientSide;process.env.NODE_ENV!=="production"&&k!==void 0&&(d=k==="client");var t=fe.default(ae,l,function(){var A=l.join("|");if(J.existPath(A)){var p=J.getStyleAndHash(A),y=R.default(p,2),N=y[0],P=y[1];if(N)return[N,c,P,{},o,_]}var I=n(),T=te(I,{hashId:f,hashPriority:M,layer:v?g:void 0,path:h.join("-"),transformers:L,linters:$}),S=R.default(T,2),H=S[0],E=S[1],s=z(H),ne=re(l,s);return[s,c,ne,E,o,_]},function(A,p){var y=R.default(A,3),N=y[2];(p||x)&&Y.isClientSide&&F.removeCSS(N,{mark:O.ATTR_MARK})},function(A){var p=R.default(A,4),y=p[0];p[1];var N=p[2],P=p[3];if(d&&y!==J.CSS_FILE_STYLE){var I={mark:O.ATTR_MARK,prepend:v?!1:"queue",attachTo:i,priority:_},T=typeof m=="function"?m():m;T&&(I.csp={nonce:T});var S=[],H=[];Object.keys(P).forEach(function(s){s.startsWith("@layer")?S.push(s):H.push(s)}),S.forEach(function(s){F.updateCSS(z(P[s]),"_layer-".concat(s),U.default(U.default({},I),{},{prepend:!0}))});var E=F.updateCSS(y,N,I);E[O.CSS_IN_JS_INSTANCE]=Q.instanceId,E.setAttribute(O.ATTR_TOKEN,c),process.env.NODE_ENV!=="production"&&E.setAttribute(O.ATTR_CACHE_PATH,l.join("|")),H.forEach(function(s){F.updateCSS(z(P[s]),"_effect-".concat(s),I)})}}),q=R.default(t,3),b=q[0],D=q[1],X=q[2];return function(A){var p;if(!C||d||!j)p=w.createElement(pe,null);else{var y;p=w.createElement("style",oe.default({},(y={},Z.default(y,O.ATTR_TOKEN,D),Z.default(y,O.ATTR_MARK,X),y),{dangerouslySetInnerHTML:{__html:b}}))}return w.createElement(w.Fragment,null,p,A)}}var Se=function(n,r,h){var f=R.default(n,6),g=f[0],m=f[1],o=f[2],u=f[3],_=f[4],a=f[5],x=h||{},k=x.plain;if(_)return null;var j=g,M={"data-rc-order":"prependQueue","data-rc-priority":"".concat(a)};return j=Y.toStyleStr(g,m,o,M,k),u&&Object.keys(u).forEach(function(i){if(!r[i]){r[i]=!0;var C=z(u[i]),L=Y.toStyleStr(C,m,"_effect-".concat(i),M,k);i.startsWith("@layer")?j=L+j:j+=L}}),[a,o,j]};exports.STYLE_PREFIX=ae;exports.default=ye;exports.extract=Se;exports.normalizeStyle=z;exports.parseStyle=te;exports.uniqueHash=re; diff --git a/dist/index.cjs219.js b/dist/index.cjs219.js new file mode 100644 index 00000000..4530186b --- /dev/null +++ b/dist/index.cjs219.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(e){for(var f=0,x,a=0,d=e.length;d>=4;++a,d-=4)x=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,x=(x&65535)*1540483477+((x>>>16)*59797<<16),x^=x>>>24,f=(x&65535)*1540483477+((x>>>16)*59797<<16)^(f&65535)*1540483477+((f>>>16)*59797<<16);switch(d){case 3:f^=(e.charCodeAt(a+2)&255)<<16;case 2:f^=(e.charCodeAt(a+1)&255)<<8;case 1:f^=e.charCodeAt(a)&255,f=(f&65535)*1540483477+((f>>>16)*59797<<16)}return f^=f>>>13,f=(f&65535)*1540483477+((f>>>16)*59797<<16),((f^f>>>15)>>>0).toString(36)}exports.default=o; diff --git a/dist/index.cjs22.js b/dist/index.cjs22.js index fcb6cca2..bf912d3d 100644 --- a/dist/index.cjs22.js +++ b/dist/index.cjs22.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),c=require("@radix-ui/react-context-menu"),r=require("lucide-react"),o=require("./index.cjs54.js");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(n,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return n.default=e,Object.freeze(n)}const t=s(b),i=s(c);function u({...e}){return t.createElement(i.Root,{"data-slot":"context-menu",...e})}function d({...e}){return t.createElement(i.Trigger,{"data-slot":"context-menu-trigger",...e})}function m({...e}){return t.createElement(i.Group,{"data-slot":"context-menu-group",...e})}function x({...e}){return t.createElement(i.Portal,{"data-slot":"context-menu-portal",...e})}function f({...e}){return t.createElement(i.Sub,{"data-slot":"context-menu-sub",...e})}function p({...e}){return t.createElement(i.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}function g({className:e,inset:n,children:l,...a}){return t.createElement(i.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a},l,t.createElement(r.ChevronRightIcon,{className:"lib:ml-auto"}))}function v({className:e,...n}){return t.createElement(i.SubContent,{"data-slot":"context-menu-sub-content",className:o.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...n})}function C({className:e,...n}){return t.createElement(i.Portal,null,t.createElement(i.Content,{"data-slot":"context-menu-content",className:o.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-context-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...n}))}function M({className:e,inset:n,variant:l="default",...a}){return t.createElement(i.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":l,className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a})}function h({className:e,children:n,checked:l,...a}){return t.createElement(i.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:l,...a},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(r.CheckIcon,{className:"lib:size-4"}))),n)}function E({className:e,children:n,...l}){return t.createElement(i.RadioItem,{"data-slot":"context-menu-radio-item",className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...l},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(r.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),n)}function z({className:e,inset:n,...l}){return t.createElement(i.Label,{"data-slot":"context-menu-label","data-inset":n,className:o.cn("lib:text-foreground lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...l})}function S({className:e,...n}){return t.createElement(i.Separator,{"data-slot":"context-menu-separator",className:o.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...n})}function _({className:e,...n}){return t.createElement("span",{"data-slot":"context-menu-shortcut",className:o.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...n})}exports.ContextMenu=u;exports.ContextMenuCheckboxItem=h;exports.ContextMenuContent=C;exports.ContextMenuGroup=m;exports.ContextMenuItem=M;exports.ContextMenuLabel=z;exports.ContextMenuPortal=x;exports.ContextMenuRadioGroup=p;exports.ContextMenuRadioItem=E;exports.ContextMenuSeparator=S;exports.ContextMenuShortcut=_;exports.ContextMenuSub=f;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),n=require("./index.cjs65.js");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function f({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[e,s&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsxRuntimeExports.jsx(c.XIcon,{}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function p({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("text-lg leading-none font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Dialog=g;exports.DialogClose=m;exports.DialogContent=f;exports.DialogDescription=b;exports.DialogFooter=j;exports.DialogHeader=p;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x; diff --git a/dist/index.cjs220.js b/dist/index.cjs220.js new file mode 100644 index 00000000..a50d167b --- /dev/null +++ b/dist/index.cjs220.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs171.js");var m=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(a?"".concat(a,"-"):"").concat(r).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},f=function(r,a,e){return Object.keys(r).length?".".concat(a).concat(e!=null&&e.scope?".".concat(e.scope):"","{").concat(Object.entries(r).map(function(u){var t=p.default(u,2),v=t[0],o=t[1];return"".concat(v,":").concat(o,";")}).join(""),"}"):""},k=function(r,a,e){var u={},t={};return Object.entries(r).forEach(function(v){var o,c,d=p.default(v,2),n=d[0],l=d[1];if(e!=null&&(o=e.preserve)!==null&&o!==void 0&&o[n])t[n]=l;else if((typeof l=="string"||typeof l=="number")&&!(e!=null&&(c=e.ignore)!==null&&c!==void 0&&c[n])){var i,S=m(n,e?.prefix);u[S]=typeof l=="number"&&!(e!=null&&(i=e.unitless)!==null&&i!==void 0&&i[n])?"".concat(l,"px"):String(l),t[n]="var(".concat(S,")")}}),[t,f(u,a,{scope:e?.scope})]};exports.serializeCSSVar=f;exports.token2CSSVar=m;exports.transformToken=k; diff --git a/dist/index.cjs221.js b/dist/index.cjs221.js new file mode 100644 index 00000000..4c8ead4f --- /dev/null +++ b/dist/index.cjs221.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const q=require("./index.cjs171.js"),N=require("./index.cjs144.js"),P=require("react"),x=require("./index.cjs229.js"),D=require("./index.cjs94.js"),G=require("./index.cjs98.js"),T=require("./index.cjs99.js"),U=require("./index.cjs100.js");function $(r){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const e=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(l,a,e.get?e:{enumerable:!0,get:()=>r[a]})}}return l.default=r,Object.freeze(l)}const h=$(P);function A(r,l,a,e,i){var M=h.useContext(D.default),f=M.cache,S=[r].concat(N.default(l)),t=x.pathKey(S),j=T.default([t]),y=U.default(),v=function(o){f.opUpdate(t,function(c){var u=c||[void 0,void 0],n=q.default(u,2),s=n[0],d=s===void 0?0:s,p=n[1],m=p;process.env.NODE_ENV!=="production"&&p&&y&&(e?.(m,y),m=null);var C=m||a(),O=[d,C];return o?o(O):O})};h.useMemo(function(){v()},[t]);var _=f.opGet(t);process.env.NODE_ENV!=="production"&&!_&&(v(),_=f.opGet(t));var b=_[1];return G.default(function(){i?.(b)},function(g){return v(function(o){var c=q.default(o,2),u=c[0],n=c[1];return g&&u===0&&i?.(b),[u+1,n]}),function(){f.opUpdate(t,function(o){var c=o||[],u=q.default(c,2),n=u[0],s=n===void 0?0:n,d=u[1],p=s-1;return p===0?(j(function(){(g||!f.opGet(t))&&e?.(d,!1)}),null):[s-1,d]})}},[t]),b}exports.default=A; diff --git a/dist/index.cjs222.js b/dist/index.cjs222.js new file mode 100644 index 00000000..a2944c1b --- /dev/null +++ b/dist/index.cjs222.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};exports.default=e; diff --git a/dist/index.cjs223.js b/dist/index.cjs223.js new file mode 100644 index 00000000..1d874705 --- /dev/null +++ b/dist/index.cjs223.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs258.js");var c=function(n,t,e){if(n==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,r=["normal","none","initial","inherit","unset"];(typeof t!="string"||r.indexOf(t)===-1&&!i.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&o.lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),e)}};exports.default=c; diff --git a/dist/index.cjs224.js b/dist/index.cjs224.js new file mode 100644 index 00000000..3219489f --- /dev/null +++ b/dist/index.cjs224.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs258.js");var a=function(n,e,i){n==="animation"&&i.hashId&&e!=="none"&&t.lintWarning("You seem to be using hashed animation '".concat(e,"', in which case 'animationName' with Keyframe as value is recommended."),i)};exports.default=a; diff --git a/dist/index.cjs225.js b/dist/index.cjs225.js new file mode 100644 index 00000000..4d90ce37 --- /dev/null +++ b/dist/index.cjs225.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index.cjs171.js"),l=require("./index.cjs162.js"),p=require("./index.cjs94.js");var c="data-ant-cssinjs-cache-path",i="_FILE_STYLE__",r,n=!0;function u(){if(!r&&(r={},l.default())){var e=document.createElement("div");e.className=c,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var a=getComputedStyle(e).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(function(d){var f=d.split(":"),s=S.default(f,2),h=s[0],m=s[1];r[h]=m});var t=document.querySelector("style[".concat(c,"]"));if(t){var o;n=!1,(o=t.parentNode)===null||o===void 0||o.removeChild(t)}document.body.removeChild(e)}}function y(e){return u(),!!r[e]}function v(e){var a=r[e],t=null;if(a&&l.default())if(n)t=i;else{var o=document.querySelector("style[".concat(p.ATTR_MARK,'="').concat(r[e],'"]'));o?t=o.innerHTML:delete r[e]}return[t,a]}exports.ATTR_CACHE_MAP=c;exports.CSS_FILE_STYLE=i;exports.existPath=y;exports.getStyleAndHash=v;exports.prepare=u; diff --git a/dist/index.cjs226.js b/dist/index.cjs226.js new file mode 100644 index 00000000..785c0b44 --- /dev/null +++ b/dist/index.cjs226.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs280.js"),a=require("./index.cjs281.js");function n(r,s){for(var i="",u=0;u0&&(e.strlen(a)-s||n===0&&p===47)&&e.append(h>32?x(a+";",i,b,s-1,v):x(e.replace(a," ","")+";",i,b,s-2,v),v);break;case 59:a+=";";default:if(e.append(d=S(a,k,b,u,l,f,o,w,T=[],g=[],s,E),E),t===123)if(l===0)M(a,k,d,d,T,E,s,o,g);else{switch(y){case 99:if(e.charat(a,3)===110)break;case 108:if(e.charat(a,2)===97)break;default:l=0;case 100:case 109:case 115:}l?M(c,d,d,i&&e.append(S(c,d,d,0,0,f,o,w,f,T=[],s,g),g),f,g,s,o,i?T:g):M(a,d,d,d,[""],g,0,o,g)}}u=l=h=0,n=m=1,w=a="",s=O;break;case 58:s=1+e.strlen(a),h=p;default:if(n<1){if(t==123)--n;else if(t==125&&n++==0&&r.prev()==125)continue}switch(a+=e.from(t),t*n){case 38:m=l>0?1:(a+="\f",-1);break;case 44:o[u++]=(e.strlen(a)-1)*m,m=1;break;case 64:r.peek()===45&&(a+=r.delimit(r.next())),y=r.peek(),l=s=e.strlen(w=a+=r.identifier(r.caret())),t++;break;case 45:p===45&&e.strlen(a)==2&&(n=0)}}return E}function S(c,k,b,i,f,E,O,o,v,u,l,s){for(var y=f-1,h=f===0?E:[""],p=e.sizeof(h),n=0,q=0,m=0;n0?h[t]+" "+w:e.replace(w,/&\f/g,h[t])))&&(v[m++]=T);return r.node(c,k,b,f===0?z.RULESET:o,v,u,l,s)}function A(c,k,b,i){return r.node(c,k,b,z.COMMENT,e.from(r.char()),e.substr(c,2,-2),0,i)}function x(c,k,b,i,f){return r.node(c,k,b,z.DECLARATION,e.substr(c,0,i),e.substr(c,i+1,-1),i,f)}exports.comment=A;exports.compile=C;exports.declaration=x;exports.parse=M;exports.ruleset=S; diff --git a/dist/index.cjs228.js b/dist/index.cjs228.js new file mode 100644 index 00000000..83ca03ad --- /dev/null +++ b/dist/index.cjs228.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./index.cjs192.js"),u=require("./index.cjs193.js"),a=require("./index.cjs202.js");var s=function(){function t(r,e){n.default(this,t),a.default(this,"name",void 0),a.default(this,"style",void 0),a.default(this,"_keyframe",!0),this.name=r,this.style=e}return u.default(t,[{key:"getName",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),t}();exports.default=s; diff --git a/dist/index.cjs229.js b/dist/index.cjs229.js new file mode 100644 index 00000000..18c59ebc --- /dev/null +++ b/dist/index.cjs229.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs192.js"),s=require("./index.cjs193.js"),c=require("./index.cjs202.js");var o="%";function a(t){return t.join(o)}var d=function(){function t(n){l.default(this,t),c.default(this,"instanceId",void 0),c.default(this,"cache",new Map),this.instanceId=n}return s.default(t,[{key:"get",value:function(e){return this.opGet(a(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,u){return this.opUpdate(a(e),u)}},{key:"opUpdate",value:function(e,u){var r=this.cache.get(e),i=u(r);i===null?this.cache.delete(e):this.cache.set(e,i)}}]),t}();exports.default=d;exports.pathKey=a; diff --git a/dist/index.cjs23.js b/dist/index.cjs23.js index 35c5994b..a230129d 100644 --- a/dist/index.cjs23.js +++ b/dist/index.cjs23.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),d=require("@radix-ui/react-dialog"),g=require("lucide-react"),o=require("./index.cjs54.js");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=r(b),a=r(d);function u({...e}){return l.createElement(a.Root,{"data-slot":"dialog",...e})}function m({...e}){return l.createElement(a.Trigger,{"data-slot":"dialog-trigger",...e})}function s({...e}){return l.createElement(a.Portal,{"data-slot":"dialog-portal",...e})}function f({...e}){return l.createElement(a.Close,{"data-slot":"dialog-close",...e})}function c({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"dialog-overlay",className:o.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function p({className:e,children:t,...i}){return l.createElement(s,{"data-slot":"dialog-portal"},l.createElement(c,null),l.createElement(a.Content,{"data-slot":"dialog-content",className:o.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg",e),...i},t,l.createElement(a.Close,{className:"lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-accent data-[state=open]:lib:text-muted-foreground lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4"},l.createElement(g.XIcon,null),l.createElement("span",{className:"lib:sr-only"},"Close"))))}function D({className:e,...t}){return l.createElement("div",{"data-slot":"dialog-header",className:o.cn("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left",e),...t})}function v({className:e,...t}){return l.createElement("div",{"data-slot":"dialog-footer",className:o.cn("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end",e),...t})}function x({className:e,...t}){return l.createElement(a.Title,{"data-slot":"dialog-title",className:o.cn("lib:text-lg lib:leading-none lib:font-semibold",e),...t})}function y({className:e,...t}){return l.createElement(a.Description,{"data-slot":"dialog-description",className:o.cn("lib:text-muted-foreground lib:text-sm",e),...t})}exports.Dialog=u;exports.DialogClose=f;exports.DialogContent=p;exports.DialogDescription=y;exports.DialogFooter=v;exports.DialogHeader=D;exports.DialogOverlay=c;exports.DialogPortal=s;exports.DialogTitle=x;exports.DialogTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),a=require("vaul"),o=require("./index.cjs65.js");function s({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Root,{"data-slot":"drawer",...r})}function l({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Trigger,{"data-slot":"drawer-trigger",...r})}function d({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Portal,{"data-slot":"drawer-portal",...r})}function u({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Close,{"data-slot":"drawer-close",...r})}function n({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Overlay,{"data-slot":"drawer-overlay",className:o.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",r),...e})}function c({className:r,children:e,...i}){return t.jsxRuntimeExports.jsxs(d,{"data-slot":"drawer-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(a.Drawer.Content,{"data-slot":"drawer-content",className:o.cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",r),...i,children:[t.jsxRuntimeExports.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function w({className:r,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"drawer-header",className:o.cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",r),...e})}function x({className:r,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"drawer-footer",className:o.cn("mt-auto flex flex-col gap-2 p-4",r),...e})}function m({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Title,{"data-slot":"drawer-title",className:o.cn("text-foreground font-semibold",r),...e})}function p({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Description,{"data-slot":"drawer-description",className:o.cn("text-muted-foreground text-sm",r),...e})}exports.Drawer=s;exports.DrawerClose=u;exports.DrawerContent=c;exports.DrawerDescription=p;exports.DrawerFooter=x;exports.DrawerHeader=w;exports.DrawerOverlay=n;exports.DrawerPortal=d;exports.DrawerTitle=m;exports.DrawerTrigger=l; diff --git a/dist/index.cjs230.js b/dist/index.cjs230.js new file mode 100644 index 00000000..ce20f9de --- /dev/null +++ b/dist/index.cjs230.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs192.js"),s=require("./index.cjs193.js"),i=require("./index.cjs202.js"),l=require("./index.cjs96.js");var n=0,d=function(){function t(e){o.default(this,t),i.default(this,"derivatives",void 0),i.default(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=n,e.length===0&&l.warning(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),n+=1}return s.default(t,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(u,a){return a(r,u)},void 0)}}]),t}();exports.default=d; diff --git a/dist/index.cjs231.js b/dist/index.cjs231.js new file mode 100644 index 00000000..140c485f --- /dev/null +++ b/dist/index.cjs231.js @@ -0,0 +1 @@ +"use strict";const e=require("./index.cjs232.js"),r=require("./index.cjs233.js");Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},e.default),Object.assign({},r.default); diff --git a/dist/index.cjs232.js b/dist/index.cjs232.js new file mode 100644 index 00000000..efd55a51 --- /dev/null +++ b/dist/index.cjs232.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};exports.default=e; diff --git a/dist/index.cjs233.js b/dist/index.cjs233.js new file mode 100644 index 00000000..7c025153 --- /dev/null +++ b/dist/index.cjs233.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};exports.default=e; diff --git a/dist/index.cjs234.js b/dist/index.cjs234.js new file mode 100644 index 00000000..458fe7f9 --- /dev/null +++ b/dist/index.cjs234.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(e){if(Array.isArray(e))return e}exports.default=r; diff --git a/dist/index.cjs235.js b/dist/index.cjs235.js new file mode 100644 index 00000000..92a83c22 --- /dev/null +++ b/dist/index.cjs235.js @@ -0,0 +1,2 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}exports.default=e; diff --git a/dist/index.cjs236.js b/dist/index.cjs236.js new file mode 100644 index 00000000..bbcdedac --- /dev/null +++ b/dist/index.cjs236.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}exports.default=r; diff --git a/dist/index.cjs237.js b/dist/index.cjs237.js new file mode 100644 index 00000000..6122f8c9 --- /dev/null +++ b/dist/index.cjs237.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs238.js"),t=require("./index.cjs239.js"),o=require("./index.cjs240.js");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u; diff --git a/dist/index.cjs238.js b/dist/index.cjs238.js new file mode 100644 index 00000000..6cd11289 --- /dev/null +++ b/dist/index.cjs238.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e; diff --git a/dist/index.cjs239.js b/dist/index.cjs239.js new file mode 100644 index 00000000..4bd8e9ec --- /dev/null +++ b/dist/index.cjs239.js @@ -0,0 +1,9 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs266.js");/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var d;function $(){if(d)return r.__exports;d=1;var y=Symbol.for("react.element"),x=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),c=Symbol.for("react.context"),S=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var m=e.$$typeof;switch(m){case y:switch(e=e.type,e){case o:case s:case n:case u:case i:return e;default:switch(e=e&&e.$$typeof,e){case S:case c:case f:case l:case p:case _:return e;default:return m}}case x:return m}}}return r.__exports.ContextConsumer=c,r.__exports.ContextProvider=_,r.__exports.Element=y,r.__exports.ForwardRef=f,r.__exports.Fragment=o,r.__exports.Lazy=l,r.__exports.Memo=p,r.__exports.Portal=x,r.__exports.Profiler=s,r.__exports.StrictMode=n,r.__exports.Suspense=u,r.__exports.SuspenseList=i,r.__exports.isAsyncMode=function(){return!1},r.__exports.isConcurrentMode=function(){return!1},r.__exports.isContextConsumer=function(e){return t(e)===c},r.__exports.isContextProvider=function(e){return t(e)===_},r.__exports.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===y},r.__exports.isForwardRef=function(e){return t(e)===f},r.__exports.isFragment=function(e){return t(e)===o},r.__exports.isLazy=function(e){return t(e)===l},r.__exports.isMemo=function(e){return t(e)===p},r.__exports.isPortal=function(e){return t(e)===x},r.__exports.isProfiler=function(e){return t(e)===s},r.__exports.isStrictMode=function(e){return t(e)===n},r.__exports.isSuspense=function(e){return t(e)===u},r.__exports.isSuspenseList=function(e){return t(e)===i},r.__exports.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===u||e===i||e===b||typeof e=="object"&&e!==null&&(e.$$typeof===l||e.$$typeof===p||e.$$typeof===_||e.$$typeof===c||e.$$typeof===f||e.$$typeof===a||e.getModuleId!==void 0)},r.__exports.typeOf=t,r.__exports}exports.__require=$; diff --git a/dist/index.cjs24.js b/dist/index.cjs24.js index 88f2f6ed..b253bd90 100644 --- a/dist/index.cjs24.js +++ b/dist/index.cjs24.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),a=require("vaul"),i=require("./index.cjs54.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,o.get?o:{enumerable:!0,get:()=>e[l]})}}return r.default=e,Object.freeze(r)}const t=b(c);function u({...e}){return t.createElement(a.Drawer.Root,{"data-slot":"drawer",...e})}function w({...e}){return t.createElement(a.Drawer.Trigger,{"data-slot":"drawer-trigger",...e})}function d({...e}){return t.createElement(a.Drawer.Portal,{"data-slot":"drawer-portal",...e})}function s({...e}){return t.createElement(a.Drawer.Close,{"data-slot":"drawer-close",...e})}function n({className:e,...r}){return t.createElement(a.Drawer.Overlay,{"data-slot":"drawer-overlay",className:i.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...r})}function m({className:e,children:r,...l}){return t.createElement(d,{"data-slot":"drawer-portal"},t.createElement(n,null),t.createElement(a.Drawer.Content,{"data-slot":"drawer-content",className:i.cn("lib:group/drawer-content lib:bg-background lib:fixed lib:z-50 lib:flex lib:h-auto lib:flex-col","data-[vaul-drawer-direction=top]:lib:inset-x-0 data-[vaul-drawer-direction=top]:lib:top-0 data-[vaul-drawer-direction=top]:lib:mb-24 data-[vaul-drawer-direction=top]:lib:max-h-[80vh] data-[vaul-drawer-direction=top]:lib:rounded-b-lg data-[vaul-drawer-direction=top]:lib:border-b","data-[vaul-drawer-direction=bottom]:lib:inset-x-0 data-[vaul-drawer-direction=bottom]:lib:bottom-0 data-[vaul-drawer-direction=bottom]:lib:mt-24 data-[vaul-drawer-direction=bottom]:lib:max-h-[80vh] data-[vaul-drawer-direction=bottom]:lib:rounded-t-lg data-[vaul-drawer-direction=bottom]:lib:border-t","data-[vaul-drawer-direction=right]:lib:inset-y-0 data-[vaul-drawer-direction=right]:lib:right-0 data-[vaul-drawer-direction=right]:lib:w-3/4 data-[vaul-drawer-direction=right]:lib:border-l data-[vaul-drawer-direction=right]:sm:lib:max-w-sm","data-[vaul-drawer-direction=left]:lib:inset-y-0 data-[vaul-drawer-direction=left]:lib:left-0 data-[vaul-drawer-direction=left]:lib:w-3/4 data-[vaul-drawer-direction=left]:lib:border-r data-[vaul-drawer-direction=left]:sm:lib:max-w-sm",e),...l},t.createElement("div",{className:"lib:bg-muted lib:mx-auto lib:mt-4 lib:hidden lib:h-2 lib:w-[100px] lib:shrink-0 lib:rounded-full lib:group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),r))}function f({className:e,...r}){return t.createElement("div",{"data-slot":"drawer-header",className:i.cn("lib:flex lib:flex-col lib:gap-1.5 lib:p-4",e),...r})}function v({className:e,...r}){return t.createElement("div",{"data-slot":"drawer-footer",className:i.cn("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4",e),...r})}function g({className:e,...r}){return t.createElement(a.Drawer.Title,{"data-slot":"drawer-title",className:i.cn("lib:text-foreground lib:font-semibold",e),...r})}function D({className:e,...r}){return t.createElement(a.Drawer.Description,{"data-slot":"drawer-description",className:i.cn("lib:text-muted-foreground lib:text-sm",e),...r})}exports.Drawer=u;exports.DrawerClose=s;exports.DrawerContent=m;exports.DrawerDescription=D;exports.DrawerFooter=v;exports.DrawerHeader=f;exports.DrawerOverlay=n;exports.DrawerPortal=d;exports.DrawerTitle=g;exports.DrawerTrigger=w; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),i=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),s=require("./index.cjs65.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const o=u(i);function c({...e}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dropdown-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function l({...e}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function m({className:e,sideOffset:n=4,...r}){return t.jsxRuntimeExports.jsx(o.Portal,{children:t.jsxRuntimeExports.jsx(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function x({...e}){return t.jsxRuntimeExports.jsx(o.Group,{"data-slot":"dropdown-menu-group",...e})}function f({className:e,inset:n,variant:r="default",...a}){return t.jsxRuntimeExports.jsx(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function g({className:e,children:n,checked:r,...a}){return t.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...a,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.CheckIcon,{className:"size-4"})})}),n]})}function w({...e}){return t.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function b({className:e,children:n,...r}){return t.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function j({className:e,inset:n,...r}){return t.jsxRuntimeExports.jsx(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:s.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function v({className:e,...n}){return t.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"dropdown-menu-separator",className:s.cn("bg-border -mx-1 my-1 h-px",e),...n})}function h({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...n})}function D({...e}){return t.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function M({className:e,inset:n,children:r,...a}){return t.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...a,children:[r,t.jsxRuntimeExports.jsx(d.ChevronRightIcon,{className:"ml-auto size-4"})]})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n})}exports.DropdownMenu=c;exports.DropdownMenuCheckboxItem=g;exports.DropdownMenuContent=m;exports.DropdownMenuGroup=x;exports.DropdownMenuItem=f;exports.DropdownMenuLabel=j;exports.DropdownMenuPortal=p;exports.DropdownMenuRadioGroup=w;exports.DropdownMenuRadioItem=b;exports.DropdownMenuSeparator=v;exports.DropdownMenuShortcut=h;exports.DropdownMenuSub=D;exports.DropdownMenuSubContent=R;exports.DropdownMenuSubTrigger=M;exports.DropdownMenuTrigger=l; diff --git a/dist/index.cjs240.js b/dist/index.cjs240.js new file mode 100644 index 00000000..7477df93 --- /dev/null +++ b/dist/index.cjs240.js @@ -0,0 +1,9 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs267.js");/** + * @license React + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var S;function te(){return S||(S=1,process.env.NODE_ENV!=="production"&&function(){var d=Symbol.for("react.element"),v=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),C=Symbol.for("react.server_context"),_=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),b=!1,A=!1,M=!1,y=!1,F=!1,m;m=Symbol.for("react.module.reference");function L(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===s||F||e===n||e===c||e===u||y||e===P||b||A||M||typeof e=="object"&&e!==null&&(e.$$typeof===l||e.$$typeof===f||e.$$typeof===a||e.$$typeof===i||e.$$typeof===_||e.$$typeof===m||e.getModuleId!==void 0))}function t(e){if(typeof e=="object"&&e!==null){var p=e.$$typeof;switch(p){case d:var E=e.type;switch(E){case o:case s:case n:case c:case u:return E;default:var x=E&&E.$$typeof;switch(x){case C:case i:case _:case l:case f:case a:return x;default:return p}}case v:return p}}}var Y=i,O=a,g=d,I=_,w=o,$=l,h=f,N=v,D=s,z=n,V=c,q=u,T=!1,R=!1;function U(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(e){return R||(R=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(e){return t(e)===i}function j(e){return t(e)===a}function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function H(e){return t(e)===_}function Z(e){return t(e)===o}function k(e){return t(e)===l}function B(e){return t(e)===f}function J(e){return t(e)===v}function K(e){return t(e)===s}function Q(e){return t(e)===n}function ee(e){return t(e)===c}function re(e){return t(e)===u}r.__exports.ContextConsumer=Y,r.__exports.ContextProvider=O,r.__exports.Element=g,r.__exports.ForwardRef=I,r.__exports.Fragment=w,r.__exports.Lazy=$,r.__exports.Memo=h,r.__exports.Portal=N,r.__exports.Profiler=D,r.__exports.StrictMode=z,r.__exports.Suspense=V,r.__exports.SuspenseList=q,r.__exports.isAsyncMode=U,r.__exports.isConcurrentMode=W,r.__exports.isContextConsumer=X,r.__exports.isContextProvider=j,r.__exports.isElement=G,r.__exports.isForwardRef=H,r.__exports.isFragment=Z,r.__exports.isLazy=k,r.__exports.isMemo=B,r.__exports.isPortal=J,r.__exports.isProfiler=K,r.__exports.isStrictMode=Q,r.__exports.isSuspense=ee,r.__exports.isSuspenseList=re,r.__exports.isValidElementType=L,r.__exports.typeOf=t}()),r.__exports}exports.__require=te; diff --git a/dist/index.cjs241.js b/dist/index.cjs241.js new file mode 100644 index 00000000..8b74afe8 --- /dev/null +++ b/dist/index.cjs241.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function y(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,o,r,u=[],l=!0,f=!1;try{if(o=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(i=o.call(e)).done)&&(u.push(i.value),u.length!==n);l=!0);}catch(c){f=!0,a=c}finally{try{if(!l&&e.return!=null&&(r=e.return(),Object(r)!==r))return}finally{if(f)throw a}}return u}}exports.default=y; diff --git a/dist/index.cjs242.js b/dist/index.cjs242.js new file mode 100644 index 00000000..b4ccefcc --- /dev/null +++ b/dist/index.cjs242.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(t){return(t+8)/t}function a(t){const n=new Array(10).fill(null).map((e,i)=>{const l=i-1,o=t*Math.pow(2.71828,l/5),u=i>1?Math.floor(o):Math.ceil(o);return Math.floor(u/2)*2});return n[1]=t,n.map(e=>({size:e,lineHeight:r(e)}))}exports.default=a;exports.getLineHeight=r; diff --git a/dist/index.cjs243.js b/dist/index.cjs243.js new file mode 100644 index 00000000..940123b2 --- /dev/null +++ b/dist/index.cjs243.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs244.js"),r=require("./index.cjs245.js"),a=e=>{const t=e==="css"?l.default:r.default;return u=>new t(u)};exports.default=a; diff --git a/dist/index.cjs244.js b/dist/index.cjs244.js new file mode 100644 index 00000000..b6b0023d --- /dev/null +++ b/dist/index.cjs244.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("./index.cjs192.js"),n=require("./index.cjs193.js"),h=require("./index.cjs195.js"),a=require("./index.cjs199.js"),c=require("./index.cjs268.js"),l="CALC_UNIT";function i(r){return typeof r=="number"?`${r}${l}`:r}let y=function(r){function s(e){var t;return f.default(this,s),t=h.default(this,s),t.result="",e instanceof s?t.result=`(${e.result})`:typeof e=="number"?t.result=i(e):typeof e=="string"&&(t.result=e),t}return a.default(s,r),n.default(s,[{key:"add",value:function(t){return t instanceof s?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${i(t)}`),this.lowPriority=!0,this}},{key:"sub",value:function(t){return t instanceof s?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${i(t)}`),this.lowPriority=!0,this}},{key:"mul",value:function(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}},{key:"div",value:function(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}},{key:"getResult",value:function(t){return this.lowPriority||t?`(${this.result})`:this.result}},{key:"equal",value:function(t){const{unit:u=!0}=t||{},o=new RegExp(`${l}`,"g");return this.result=this.result.replace(o,u?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(c.default);exports.default=y; diff --git a/dist/index.cjs245.js b/dist/index.cjs245.js new file mode 100644 index 00000000..0e1d3a79 --- /dev/null +++ b/dist/index.cjs245.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs192.js"),u=require("./index.cjs193.js"),i=require("./index.cjs195.js"),a=require("./index.cjs199.js"),f=require("./index.cjs268.js");let o=function(r){function t(s){var e;return l.default(this,t),e=i.default(this,t),e.result=0,s instanceof t?e.result=s.result:typeof s=="number"&&(e.result=s),e}return a.default(t,r),u.default(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:typeof e=="number"&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:typeof e=="number"&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:typeof e=="number"&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:typeof e=="number"&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(f.default);exports.default=o; diff --git a/dist/index.cjs246.js b/dist/index.cjs246.js new file mode 100644 index 00000000..be21a751 --- /dev/null +++ b/dist/index.cjs246.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index.cjs92.js");require("./index.cjs93.js");require("react");require("./index.cjs94.js");const n=require("./index.cjs185.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs96.js");require("./index.cjs95.js");require("./index.cjs97.js");require("./index.cjs101.js");function a(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,u=new Array(e),r=0;rn.unit(i)).join(",")})`},min:function(){for(var e=arguments.length,u=new Array(e),r=0;rn.unit(i)).join(",")})`}}}exports.default=a; diff --git a/dist/index.cjs247.js b/dist/index.cjs247.js new file mode 100644 index 00000000..8a95dd36 --- /dev/null +++ b/dist/index.cjs247.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(e,i){if(e==null)return{};var o={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(i.indexOf(t)!==-1)continue;o[t]=e[t]}return o}exports.default=r; diff --git a/dist/index.cjs248.js b/dist/index.cjs248.js new file mode 100644 index 00000000..343cb6e9 --- /dev/null +++ b/dist/index.cjs248.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var i=t.getBBox(),u=i.width,e=i.height;if(u||e)return!0}if(t.getBoundingClientRect){var r=t.getBoundingClientRect(),f=r.width,n=r.height;if(f||n)return!0}}return!1};exports.default=o; diff --git a/dist/index.cjs249.js b/dist/index.cjs249.js new file mode 100644 index 00000000..0454ed43 --- /dev/null +++ b/dist/index.cjs249.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs165.js");function r(n){return n>=0&&n<=255}function h(n,l){const{r:e,g:i,b:u,a:s}=new o.TinyColor(n).toRgb();if(s<1)return n;const{r:f,g:c,b:d}=new o.TinyColor(l).toRgb();for(let t=.01;t<=1;t+=.01){const a=Math.round((e-f*(1-t))/t),b=Math.round((i-c*(1-t))/t),g=Math.round((u-d*(1-t))/t);if(r(a)&&r(b)&&r(g))return new o.TinyColor({r:a,g:b,b:g,a:Math.round(t*100)/100}).toRgbString()}return new o.TinyColor({r:e,g:i,b:u,a:1}).toRgbString()}exports.default=h; diff --git a/dist/index.cjs25.js b/dist/index.cjs25.js index bf80fdb6..e827a699 100644 --- a/dist/index.cjs25.js +++ b/dist/index.cjs25.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),b=require("@radix-ui/react-dropdown-menu"),r=require("lucide-react"),l=require("./index.cjs54.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=d(s),o=d(b);function u({...e}){return t.createElement(o.Root,{"data-slot":"dropdown-menu",...e})}function c({...e}){return t.createElement(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function m({...e}){return t.createElement(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function p({className:e,sideOffset:n=4,...i}){return t.createElement(o.Portal,null,t.createElement(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...i}))}function f({...e}){return t.createElement(o.Group,{"data-slot":"dropdown-menu-group",...e})}function g({className:e,inset:n,variant:i="default",...a}){return t.createElement(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":i,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a})}function w({className:e,children:n,checked:i,...a}){return t.createElement(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:i,...a},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(o.ItemIndicator,null,t.createElement(r.CheckIcon,{className:"lib:size-4"}))),n)}function v({...e}){return t.createElement(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function x({className:e,children:n,...i}){return t.createElement(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...i},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(o.ItemIndicator,null,t.createElement(r.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),n)}function D({className:e,inset:n,...i}){return t.createElement(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:l.cn("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...i})}function M({className:e,...n}){return t.createElement(o.Separator,{"data-slot":"dropdown-menu-separator",className:l.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...n})}function h({className:e,...n}){return t.createElement("span",{"data-slot":"dropdown-menu-shortcut",className:l.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...n})}function E({...e}){return t.createElement(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function z({className:e,inset:n,children:i,...a}){return t.createElement(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8",e),...a},i,t.createElement(r.ChevronRightIcon,{className:"lib:ml-auto lib:size-4"}))}function S({className:e,...n}){return t.createElement(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...n})}exports.DropdownMenu=u;exports.DropdownMenuCheckboxItem=w;exports.DropdownMenuContent=p;exports.DropdownMenuGroup=f;exports.DropdownMenuItem=g;exports.DropdownMenuLabel=D;exports.DropdownMenuPortal=c;exports.DropdownMenuRadioGroup=v;exports.DropdownMenuRadioItem=x;exports.DropdownMenuSeparator=M;exports.DropdownMenuShortcut=h;exports.DropdownMenuSub=E;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=z;exports.DropdownMenuTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),x=require("react"),f=require("@radix-ui/react-slot"),c=require("react-hook-form"),d=require("./index.cjs65.js"),F=require("./index.cjs29.js");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=j(x),p=c.FormProvider,u=i.createContext({}),g=({...e})=>n.jsxRuntimeExports.jsx(u.Provider,{value:{name:e.name},children:n.jsxRuntimeExports.jsx(c.Controller,{...e})}),m=()=>{const e=i.useContext(u),t=i.useContext(l),{getFieldState:r}=c.useFormContext(),o=c.useFormState({name:e.name}),s=r(e.name,o);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...s}},l=i.createContext({});function b({className:e,...t}){const r=i.useId();return n.jsxRuntimeExports.jsx(l.Provider,{value:{id:r},children:n.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:d.cn("grid gap-2",e),...t})})}function I({className:e,...t}){const{error:r,formItemId:o}=m();return n.jsxRuntimeExports.jsx(F.Label,{"data-slot":"form-label","data-error":!!r,className:d.cn("data-[error=true]:text-destructive",e),htmlFor:o,...t})}function C({...e}){const{error:t,formItemId:r,formDescriptionId:o,formMessageId:s}=m();return n.jsxRuntimeExports.jsx(f.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${o} ${s}`:`${o}`,"aria-invalid":!!t,...e})}function v({className:e,...t}){const{formDescriptionId:r}=m();return n.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:d.cn("text-muted-foreground text-sm",e),...t})}function R({className:e,...t}){const{error:r,formMessageId:o}=m(),s=r?String(r?.message??""):t.children;return s?n.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:o,className:d.cn("text-destructive text-sm",e),...t,children:s}):null}exports.Form=p;exports.FormControl=C;exports.FormDescription=v;exports.FormField=g;exports.FormItem=b;exports.FormLabel=I;exports.FormMessage=R;exports.useFormField=m; diff --git a/dist/index.cjs250.js b/dist/index.cjs250.js new file mode 100644 index 00000000..4d93e5c7 --- /dev/null +++ b/dist/index.cjs250.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=l=>{let t=l,e=l,f=l,o=l;return l<6&&l>=5?t=l+1:l<16&&l>=6?t=l+2:l>=16&&(t=16),l<7&&l>=5?e=4:l<8&&l>=7?e=5:l<14&&l>=8?e=6:l<16&&l>=14?e=7:l>=16&&(e=8),l<6&&l>=2?f=1:l>=6&&(f=2),l>4&&l<8?o=4:l>=8&&(o=6),{borderRadius:l,borderRadiusXS:f,borderRadiusSM:e,borderRadiusLG:t,borderRadiusOuter:o}};exports.default=b; diff --git a/dist/index.cjs251.js b/dist/index.cjs251.js new file mode 100644 index 00000000..0e16f724 --- /dev/null +++ b/dist/index.cjs251.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs165.js"),n=(o,e)=>new t.TinyColor(o).setAlpha(e).toRgbString(),r=(o,e)=>new t.TinyColor(o).darken(e).toHexString();exports.getAlphaColor=n;exports.getSolidColor=r; diff --git a/dist/index.cjs252.js b/dist/index.cjs252.js new file mode 100644 index 00000000..9dec9284 --- /dev/null +++ b/dist/index.cjs252.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={shiftX:64,adjustY:1},o={adjustX:1,shiftY:!0},t=[0,0],f={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:t},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:t},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:t},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:t},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:t},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:t},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:t},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:t},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:t},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:t},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:t},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:t}};exports.default=f;exports.placements=f; diff --git a/dist/index.cjs253.js b/dist/index.cjs253.js new file mode 100644 index 00000000..4ff5c8d5 --- /dev/null +++ b/dist/index.cjs253.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.cjs155.js");function o(e,r){if(u.default(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r);if(u.default(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}exports.default=o; diff --git a/dist/index.cjs254.js b/dist/index.cjs254.js new file mode 100644 index 00000000..597441fa --- /dev/null +++ b/dist/index.cjs254.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs171.js"),i=require("react"),a=require("./index.cjs172.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=d(i);function R(e){var r=o.useReducer(function(u){return u+1},0),t=s.default(r,2),n=t[1],c=o.useRef(e),f=a.default(function(){return c.current}),l=a.default(function(u){c.current=typeof u=="function"?u(c.current):u,n()});return[f,l]}exports.default=R; diff --git a/dist/index.cjs255.js b/dist/index.cjs255.js new file mode 100644 index 00000000..cb5743c2 --- /dev/null +++ b/dist/index.cjs255.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react"),i=require("./index.cjs208.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=o(u),s=function(e){var t=u.useRef();function n(r){r&&(r.removeEventListener(i.transitionEndName,e),r.removeEventListener(i.animationEndName,e))}function c(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(i.transitionEndName,e),r.addEventListener(i.animationEndName,e),t.current=r)}return a.useEffect(function(){return function(){n(t.current)}},[]),[c,n]};exports.default=s; diff --git a/dist/index.cjs256.js b/dist/index.cjs256.js new file mode 100644 index 00000000..b786ae8f --- /dev/null +++ b/dist/index.cjs256.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs162.js"),e=require("react");var u=t.default()?e.useLayoutEffect:e.useEffect;exports.default=u; diff --git a/dist/index.cjs257.js b/dist/index.cjs257.js new file mode 100644 index 00000000..386d50b8 --- /dev/null +++ b/dist/index.cjs257.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs213.js"),f=require("react");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=i(f),l=function(){var e=o.useRef(null);function t(){a.default.cancel(e.current)}function n(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var c=a.default(function(){u<=1?r({isCanceled:function(){return c!==e.current}}):n(r,u-1)});e.current=c}return o.useEffect(function(){return function(){t()}},[]),[n,t]};exports.default=l; diff --git a/dist/index.cjs258.js b/dist/index.cjs258.js new file mode 100644 index 00000000..3fdc411a --- /dev/null +++ b/dist/index.cjs258.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs96.js");function a(r,n){var t=n.path,e=n.parentSelectors;c.warningOnce(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(r).concat(e.length?" Selector: ".concat(e.join(" | ")):""))}exports.lintWarning=a; diff --git a/dist/index.cjs259.js b/dist/index.cjs259.js new file mode 100644 index 00000000..9e435453 --- /dev/null +++ b/dist/index.cjs259.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs260.js"),p=require("./index.cjs261.js"),i=require("./index.cjs262.js");function I(a){var r={r:0,g:0,b:0},e=1,h=null,v=null,b=null,x=!1,g=!1;return typeof a=="string"&&(a=F(a)),typeof a=="object"&&(s(a.r)&&s(a.g)&&s(a.b)?(r=t.rgbToRgb(a.r,a.g,a.b),x=!0,g=String(a.r).substr(-1)==="%"?"prgb":"rgb"):s(a.h)&&s(a.s)&&s(a.v)?(h=i.convertToPercentage(a.s),v=i.convertToPercentage(a.v),r=t.hsvToRgb(a.h,h,v),x=!0,g="hsv"):s(a.h)&&s(a.s)&&s(a.l)&&(h=i.convertToPercentage(a.s),b=i.convertToPercentage(a.l),r=t.hslToRgb(a.h,h,b),x=!0,g="hsl"),Object.prototype.hasOwnProperty.call(a,"a")&&(e=a.a)),e=i.boundAlpha(e),{ok:x,format:a.format||g,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}var S="[-\\+]?\\d+%?",T="[-\\+]?\\d*\\.\\d+%?",f="(?:".concat(T,")|(?:").concat(S,")"),m="[\\s|\\(]+(".concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")\\s*\\)?"),u="[\\s|\\(]+(".concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")[,|\\s]+(").concat(f,")\\s*\\)?"),n={CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+m),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function F(a){if(a=a.trim().toLowerCase(),a.length===0)return!1;var r=!1;if(p.names[a])a=p.names[a],r=!0;else if(a==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=n.rgb.exec(a);return e?{r:e[1],g:e[2],b:e[3]}:(e=n.rgba.exec(a),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=n.hsl.exec(a),e?{h:e[1],s:e[2],l:e[3]}:(e=n.hsla.exec(a),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=n.hsv.exec(a),e?{h:e[1],s:e[2],v:e[3]}:(e=n.hsva.exec(a),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=n.hex8.exec(a),e?{r:t.parseIntFromHex(e[1]),g:t.parseIntFromHex(e[2]),b:t.parseIntFromHex(e[3]),a:t.convertHexToDecimal(e[4]),format:r?"name":"hex8"}:(e=n.hex6.exec(a),e?{r:t.parseIntFromHex(e[1]),g:t.parseIntFromHex(e[2]),b:t.parseIntFromHex(e[3]),format:r?"name":"hex"}:(e=n.hex4.exec(a),e?{r:t.parseIntFromHex(e[1]+e[1]),g:t.parseIntFromHex(e[2]+e[2]),b:t.parseIntFromHex(e[3]+e[3]),a:t.convertHexToDecimal(e[4]+e[4]),format:r?"name":"hex8"}:(e=n.hex3.exec(a),e?{r:t.parseIntFromHex(e[1]+e[1]),g:t.parseIntFromHex(e[2]+e[2]),b:t.parseIntFromHex(e[3]+e[3]),format:r?"name":"hex"}:!1)))))))))}function s(a){return!!n.CSS_UNIT.exec(String(a))}exports.inputToRGB=I;exports.isValidCSSUnit=s;exports.stringInputToObject=F; diff --git a/dist/index.cjs26.js b/dist/index.cjs26.js index 78a82d8e..d4205944 100644 --- a/dist/index.cjs26.js +++ b/dist/index.cjs26.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),f=require("@radix-ui/react-slot"),s=require("react-hook-form"),c=require("./index.cjs54.js"),F=require("./index.cjs30.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=b(u),g=s.FormProvider,l=o.createContext({}),I=({...e})=>o.createElement(l.Provider,{value:{name:e.name}},o.createElement(s.Controller,{...e})),a=()=>{const e=o.useContext(l),t=o.useContext(d),{getFieldState:r}=s.useFormContext(),n=s.useFormState({name:e.name}),m=r(e.name,n);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...m}},d=o.createContext({});function x({className:e,...t}){const r=o.useId();return o.createElement(d.Provider,{value:{id:r}},o.createElement("div",{"data-slot":"form-item",className:c.cn("lib:grid lib:gap-2",e),...t}))}function p({className:e,...t}){const{error:r,formItemId:n}=a();return o.createElement(F.Label,{"data-slot":"form-label","data-error":!!r,className:c.cn("data-[error=true]:lib:text-destructive",e),htmlFor:n,...t})}function C({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:m}=a();return o.createElement(f.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${m}`:`${n}`,"aria-invalid":!!t,...e})}function v({className:e,...t}){const{formDescriptionId:r}=a();return o.createElement("p",{"data-slot":"form-description",id:r,className:c.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function S({className:e,...t}){const{error:r,formMessageId:n}=a(),m=r?String(r?.message??""):t.children;return m?o.createElement("p",{"data-slot":"form-message",id:n,className:c.cn("lib:text-destructive lib:text-sm",e),...t},m):null}exports.Form=g;exports.FormControl=C;exports.FormDescription=v;exports.FormField=I;exports.FormItem=x;exports.FormLabel=p;exports.FormMessage=S;exports.useFormField=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),i=require("@radix-ui/react-hover-card"),d=require("./index.cjs65.js");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=s(i);function c({...t}){return a.jsxRuntimeExports.jsx(n.Root,{"data-slot":"hover-card",...t})}function u({...t}){return a.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"hover-card-trigger",...t})}function l({className:t,align:r="center",sideOffset:e=4,...o}){return a.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"hover-card-portal",children:a.jsxRuntimeExports.jsx(n.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:d.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...o})})}exports.HoverCard=c;exports.HoverCardContent=l;exports.HoverCardTrigger=u; diff --git a/dist/index.cjs260.js b/dist/index.cjs260.js new file mode 100644 index 00000000..358d389f --- /dev/null +++ b/dist/index.cjs260.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs262.js");function g(t,a,r){return{r:u.bound01(t,255)*255,g:u.bound01(a,255)*255,b:u.bound01(r,255)*255}}function m(t,a,r){t=u.bound01(t,255),a=u.bound01(a,255),r=u.bound01(r,255);var e=Math.max(t,a,r),o=Math.min(t,a,r),n=0,c=0,i=(e+o)/2;if(e===o)c=0,n=0;else{var h=e-o;switch(c=i>.5?h/(2-e-o):h/(e+o),e){case t:n=(a-r)/h+(a1&&(r-=1),r<1/6?t+(a-t)*(6*r):r<1/2?a:r<2/3?t+(a-t)*(2/3-r)*6:t}function x(t,a,r){var e,o,n;if(t=u.bound01(t,360),a=u.bound01(a,100),r=u.bound01(r,100),a===0)o=r,n=r,e=r;else{var c=r<.5?r*(1+a):r+a-r*a,i=2*r-c;e=b(i,c,t+1/3),o=b(i,c,t),n=b(i,c,t-1/3)}return{r:e*255,g:o*255,b:n*255}}function A(t,a,r){t=u.bound01(t,255),a=u.bound01(a,255),r=u.bound01(r,255);var e=Math.max(t,a,r),o=Math.min(t,a,r),n=0,c=e,i=e-o,h=e===0?0:i/e;if(e===o)n=0;else{switch(e){case t:n=(a-r)/i+(a>16,g:(t&65280)>>8,b:t&255}}exports.convertDecimalToHex=s;exports.convertHexToDecimal=S;exports.hslToRgb=x;exports.hsvToRgb=H;exports.numberInputToObject=l;exports.parseIntFromHex=d;exports.rgbToHex=M;exports.rgbToHsl=m;exports.rgbToHsv=A;exports.rgbToRgb=g;exports.rgbaToHex=p; diff --git a/dist/index.cjs261.js b/dist/index.cjs261.js new file mode 100644 index 00000000..7baf5248 --- /dev/null +++ b/dist/index.cjs261.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};exports.names=e; diff --git a/dist/index.cjs262.js b/dist/index.cjs262.js new file mode 100644 index 00000000..6725f7a7 --- /dev/null +++ b/dist/index.cjs262.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t,e){r(t)&&(t="100%");var n=i(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function u(t){return Math.min(1,Math.max(0,t))}function r(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function i(t){return typeof t=="string"&&t.indexOf("%")!==-1}function a(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function c(t){return t<=1?"".concat(Number(t)*100,"%"):t}function f(t){return t.length===1?"0"+t:String(t)}exports.bound01=o;exports.boundAlpha=a;exports.clamp01=u;exports.convertToPercentage=c;exports.isOnePointZero=r;exports.isPercentage=i;exports.pad2=f; diff --git a/dist/index.cjs263.js b/dist/index.cjs263.js new file mode 100644 index 00000000..0a422f10 --- /dev/null +++ b/dist/index.cjs263.js @@ -0,0 +1,7 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({animationDuration:e,animationFillMode:"both"}),r=e=>({animationDuration:e,animationFillMode:"both"}),s=function(e,t,i,n){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:Object.assign(Object.assign({},o(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},r(n)),{animationPlayState:"paused"}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:i,animationPlayState:"running",pointerEvents:"none"}}};exports.initMotion=s; diff --git a/dist/index.cjs264.js b/dist/index.cjs264.js new file mode 100644 index 00000000..db636ee6 --- /dev/null +++ b/dist/index.cjs264.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs265.js");exports.default=e.default; diff --git a/dist/index.cjs265.js b/dist/index.cjs265.js new file mode 100644 index 00000000..b0787455 --- /dev/null +++ b/dist/index.cjs265.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs171.js"),T=require("react"),$=require("react-dom"),i=require("./index.cjs162.js"),z=require("./index.cjs96.js"),D=require("./index.cjs169.js"),I=require("./index.cjs283.js"),V=require("./index.cjs284.js"),x=require("./index.cjs285.js"),A=require("./index.cjs286.js");function U(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const n=U(T);var P=function(e){return e===!1?!1:!i.default()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},b=n.forwardRef(function(t,e){var r=t.open,a=t.autoLock,d=t.getContainer,p=t.debug,v=t.autoDestroy,m=v===void 0?!0:v,u=t.children,O=n.useState(r),R=s.default(O,2),E=R[0],h=R[1],S=E||r;process.env.NODE_ENV!=="production"&&z.warningOnce(i.default()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),n.useEffect(function(){(m||r)&&h(r)},[r,m]);var k=n.useState(function(){return P(d)}),y=s.default(k,2),o=y[0],C=y[1];n.useEffect(function(){var f=P(d);C(f??null)});var w=V.default(S&&!o,p),_=s.default(w,2),g=_[0],N=_[1],l=o??g;x.default(a&&r&&i.default()&&(l===g||l===document.body));var q=null;if(u&&D.supportRef(u)&&e){var j=u;q=j.ref}var M=D.useComposeRef(q,e);if(!S||!i.default()||o===void 0)return null;var L=l===!1||A.inlineMock(),c=u;return e&&(c=n.cloneElement(u,{ref:M})),n.createElement(I.default.Provider,{value:N},L?c:$.createPortal(c,l))});process.env.NODE_ENV!=="production"&&(b.displayName="Portal");exports.default=b; diff --git a/dist/index.cjs266.js b/dist/index.cjs266.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs266.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs267.js b/dist/index.cjs267.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs267.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs268.js b/dist/index.cjs268.js new file mode 100644 index 00000000..9a2363c1 --- /dev/null +++ b/dist/index.cjs268.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs193.js"),l=require("./index.cjs192.js");let a=t.default(function e(){l.default(this,e)});exports.default=a; diff --git a/dist/index.cjs269.js b/dist/index.cjs269.js new file mode 100644 index 00000000..4ccae069 --- /dev/null +++ b/dist/index.cjs269.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var i=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i?.substr(0,4))};exports.default=e; diff --git a/dist/index.cjs27.js b/dist/index.cjs27.js index 6f66ba87..61eb62c4 100644 --- a/dist/index.cjs27.js +++ b/dist/index.cjs27.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),l=require("@radix-ui/react-hover-card"),c=require("./index.cjs54.js");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=n(d),i=n(l);function s({...e}){return a.createElement(i.Root,{"data-slot":"hover-card",...e})}function b({...e}){return a.createElement(i.Trigger,{"data-slot":"hover-card-trigger",...e})}function u({className:e,align:r="center",sideOffset:t=4,...o}){return a.createElement(i.Portal,{"data-slot":"hover-card-portal"},a.createElement(i.Content,{"data-slot":"hover-card-content",align:r,sideOffset:t,className:c.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden",e),...o}))}exports.HoverCard=s;exports.HoverCardContent=u;exports.HoverCardTrigger=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),d=require("react"),s=require("input-otp"),l=require("lucide-react"),i=require("./index.cjs65.js");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=p(d);function m({className:t,containerClassName:e,...r}){return n.jsxRuntimeExports.jsx(s.OTPInput,{"data-slot":"input-otp",containerClassName:i.cn("flex items-center gap-2 has-disabled:opacity-50",e),className:i.cn("disabled:cursor-not-allowed",t),...r})}function v({className:t,...e}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:i.cn("flex items-center",t),...e})}function f({index:t,className:e,...r}){const a=x.useContext(s.OTPInputContext),{char:o,hasFakeCaret:u,isActive:c}=a?.slots[t]??{};return n.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:i.cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",e),...r,children:[o,u&&n.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:n.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function j({...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...t,children:n.jsxRuntimeExports.jsx(l.MinusIcon,{})})}exports.InputOTP=m;exports.InputOTPGroup=v;exports.InputOTPSeparator=j;exports.InputOTPSlot=f; diff --git a/dist/index.cjs270.js b/dist/index.cjs270.js new file mode 100644 index 00000000..d804f72c --- /dev/null +++ b/dist/index.cjs270.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(o){var t;return o==null||(t=o.getRootNode)===null||t===void 0?void 0:t.call(o)}function d(o){return n(o)instanceof ShadowRoot}function e(o){return d(o)?n(o):null}exports.getShadowRoot=e;exports.inShadow=d; diff --git a/dist/index.cjs271.js b/dist/index.cjs271.js new file mode 100644 index 00000000..060c833b --- /dev/null +++ b/dist/index.cjs271.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs171.js"),f=require("./index.cjs156.js"),l=require("react");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=p(l);function v(){var e=f.default({},u);return e.useId}var s=0,c=v();const I=c?function(t){var r=c();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=u.useState("ssr-id"),n=d.default(r,2),a=n[0],o=n[1];return u.useEffect(function(){var i=s;s+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};exports.default=I; diff --git a/dist/index.cjs272.js b/dist/index.cjs272.js new file mode 100644 index 00000000..23f512c0 --- /dev/null +++ b/dist/index.cjs272.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const le=require("./index.cjs147.js"),C=require("./index.cjs156.js"),ue=require("./index.cjs171.js"),fe=require("./index.cjs121.js"),ce=require("./index.cjs141.js");require("./index.cjs142.js");const se=require("react"),de=require("./index.cjs146.js"),me=require("./index.cjs173.js"),ve=require("./index.cjs169.js"),ge=require("./index.cjs288.js"),he=require("./index.cjs289.js"),be=require("./index.cjs290.js");function Ce(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(u,o,d.get?d:{enumerable:!0,get:()=>e[o]})}}return u.default=e,Object.freeze(u)}const n=Ce(se);var _=n.forwardRef(function(e,u){var o=e.popup,d=e.className,m=e.prefixCls,z=e.style,P=e.target,A=e.onVisibleChanged,a=e.open,V=e.keepDom,j=e.fresh,L=e.onClick,I=e.mask,q=e.arrow,y=e.arrowPos,v=e.align,f=e.motion,H=e.maskMotion,M=e.forceRender,r=e.getPopupContainer,T=e.autoDestroy,W=e.portal,N=e.zIndex,$=e.onMouseEnter,B=e.onMouseLeave,X=e.onPointerEnter,Y=e.onPointerDownCapture,U=e.ready,F=e.offsetX,G=e.offsetY,J=e.offsetR,K=e.offsetB,Q=e.onAlign,k=e.onPrepare,c=e.stretch,g=e.targetWidth,h=e.targetHeight,Z=typeof o=="function"?o():o,p=a||V,w=r?.length>0,ee=n.useState(!r||!w),R=ue.default(ee,2),E=R[0],te=R[1];if(me.default(function(){!E&&w&&P&&te(!0)},[E,w,P]),!E)return null;var i="auto",t={left:"-1000vw",top:"-1000vh",right:i,bottom:i};if(U||!a){var x,D=v.points,O=v.dynamicInset||((x=v._experimental)===null||x===void 0?void 0:x.dynamicInset),ne=O&&D[0][1]==="r",oe=O&&D[0][0]==="b";ne?(t.right=J,t.left=i):(t.left=F,t.right=i),oe?(t.bottom=K,t.top=i):(t.top=G,t.bottom=i)}var l={};return c&&(c.includes("height")&&h?l.height=h:c.includes("minHeight")&&h&&(l.minHeight=h),c.includes("width")&&g?l.width=g:c.includes("minWidth")&&g&&(l.minWidth=g)),a||(l.pointerEvents="none"),n.createElement(W,{open:M||p,getContainer:r&&function(){return r(P)},autoDestroy:T},n.createElement(he.default,{prefixCls:m,open:a,zIndex:N,mask:I,motion:H}),n.createElement(de.default,{onResize:Q,disabled:!a},function(ae){return n.createElement(ce.default,le.default({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(m,"-hidden")},f,{onAppearPrepare:k,onEnterPrepare:k,visible:a,onVisibleChanged:function(b){var s;f==null||(s=f.onVisibleChanged)===null||s===void 0||s.call(f,b),A(b)}}),function(S,b){var s=S.className,re=S.style,ie=fe.default(m,s,d);return n.createElement("div",{ref:ve.composeRef(ae,u,b),className:ie,style:C.default(C.default(C.default(C.default({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},t),l),re),{},{boxSizing:"border-box",zIndex:N},z),onMouseEnter:$,onMouseLeave:B,onPointerEnter:X,onClick:L,onPointerDownCapture:Y},q&&n.createElement(ge.default,{prefixCls:m,arrow:q,arrowPos:y,align:v}),n.createElement(be.default,{cache:!a&&!j},Z))})}))});process.env.NODE_ENV!=="production"&&(_.displayName="Popup");exports.default=_; diff --git a/dist/index.cjs273.js b/dist/index.cjs273.js new file mode 100644 index 00000000..80123f8e --- /dev/null +++ b/dist/index.cjs273.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs169.js"),s=require("react");function g(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}return n.default=r,Object.freeze(n)}const a=g(s);var f=a.forwardRef(function(r,n){var e=r.children,t=r.getTriggerDOMNode,i=o.supportRef(e),u=a.useCallback(function(c){o.fillRef(n,t?t(c):c)},[t]),l=o.useComposeRef(u,o.getNodeRef(e));return i?a.cloneElement(e,{ref:l}):e});process.env.NODE_ENV!=="production"&&(f.displayName="TriggerWrapper");exports.default=f; diff --git a/dist/index.cjs274.js b/dist/index.cjs274.js new file mode 100644 index 00000000..4bb9b02f --- /dev/null +++ b/dist/index.cjs274.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=a(o);var u=c.createContext(null);exports.default=u; diff --git a/dist/index.cjs275.js b/dist/index.cjs275.js new file mode 100644 index 00000000..0b3efe80 --- /dev/null +++ b/dist/index.cjs275.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const f=d(l);function a(e){return e?Array.isArray(e)?e:[e]:[]}function s(e,r,t,n){return f.useMemo(function(){var c=a(t??r),i=a(n??r),u=new Set(c),o=new Set(i);return e&&(u.has("hover")&&(u.delete("hover"),u.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[u,o]},[e,r,t,n])}exports.default=s; diff --git a/dist/index.cjs276.js b/dist/index.cjs276.js new file mode 100644 index 00000000..c795fdc4 --- /dev/null +++ b/dist/index.cjs276.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./index.cjs156.js"),o=require("./index.cjs171.js"),rv=require("./index.cjs203.js"),av=require("./index.cjs248.js"),vv=require("./index.cjs172.js"),Rr=require("./index.cjs173.js"),yv=require("react"),i=require("./index.cjs279.js");function dv(r){const w=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const y in r)if(y!=="default"){const q=Object.getOwnPropertyDescriptor(r,y);Object.defineProperty(w,y,q.get?q:{enumerable:!0,get:()=>r[y]})}}return w.default=r,Object.freeze(w)}const ar=dv(yv);function tr(r){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y="".concat(w),q=y.match(/^(.*)\%$/);return q?r*(parseFloat(q[1])/100):parseFloat(y)}function er(r,w){var y=w||[],q=o.default(y,2),u=q[0],U=q[1];return[tr(r.width,u),tr(r.height,U)]}function pr(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function N(r,w){var y=w[0],q=w[1],u,U;return y==="t"?U=r.y:y==="b"?U=r.y+r.height:U=r.y+r.height/2,q==="l"?u=r.x:q==="r"?u=r.x+r.width:u=r.x+r.width/2,{x:u,y:U}}function J(r,w){var y={t:"b",b:"t",l:"r",r:"l"};return r.map(function(q,u){return u===w?y[q]||"c":q}).join("")}function lv(r,w,y,q,u,U,vr){var ra=ar.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:u[q]||{}}),jr=o.default(ra,2),j=jr[0],Cr=jr[1],yr=ar.useRef(0),Fr=ar.useMemo(function(){return w?i.collectScroller(w):[]},[w]),b=ar.useRef({}),aa=function(){b.current={}};r||aa();var va=vv.default(function(){if(w&&y&&r){let F=function(nr,E){var rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qr,or=d.x+nr,Or=d.y+E,oa=or+L,Oa=Or+T,Ra=Math.max(or,rr.left),ta=Math.max(Or,rr.top),ea=Math.min(oa,rr.right),pa=Math.min(Oa,rr.bottom);return Math.max(0,(ea-Ra)*(pa-ta))},Er=function(){P=d.y+M,e=P+T,g=d.x+h,p=g+L};var k,K,dr,lr,a=w,zr=a.ownerDocument,da=i.getWin(a),hr=da.getComputedStyle(a),la=hr.width,ha=hr.height,Ma=hr.position,wa=a.style.left,qa=a.style.top,ba=a.style.right,ua=a.style.bottom,Da=a.style.overflow,B=n.default(n.default({},u[q]),U),Q=zr.createElement("div");(k=a.parentElement)===null||k===void 0||k.appendChild(Q),Q.style.left="".concat(a.offsetLeft,"px"),Q.style.top="".concat(a.offsetTop,"px"),Q.style.position=Ma,Q.style.height="".concat(a.offsetHeight,"px"),Q.style.width="".concat(a.offsetWidth,"px"),a.style.left="0",a.style.top="0",a.style.right="auto",a.style.bottom="auto",a.style.overflow="hidden";var l;if(Array.isArray(y))l={x:y[0],y:y[1],width:0,height:0};else{var Mr,wr,C=y.getBoundingClientRect();C.x=(Mr=C.x)!==null&&Mr!==void 0?Mr:C.left,C.y=(wr=C.y)!==null&&wr!==void 0?wr:C.top,l={x:C.x,y:C.y,width:C.width,height:C.height}}var d=a.getBoundingClientRect();d.x=(K=d.x)!==null&&K!==void 0?K:d.left,d.y=(dr=d.y)!==null&&dr!==void 0?dr:d.top;var S=zr.documentElement,ja=S.clientWidth,Ca=S.clientHeight,Fa=S.scrollWidth,fa=S.scrollHeight,Ur=S.scrollTop,Gr=S.scrollLeft,T=d.height,L=d.width,V=l.height,$=l.width,za={left:0,top:0,right:ja,bottom:Ca},Ua={left:-Gr,top:-Ur,right:Fa-Gr,bottom:fa-Ur},c=B.htmlRegion,Jr="visible",Kr="visibleFirst";c!=="scroll"&&c!==Kr&&(c=Jr);var I=c===Kr,Ga=i.getVisibleArea(Ua,Fr),v=i.getVisibleArea(za,Fr),Qr=c===Jr?v:Ga,O=I?v:Qr;a.style.left="auto",a.style.top="auto",a.style.right="0",a.style.bottom="0";var Zr=a.getBoundingClientRect();a.style.left=wa,a.style.top=qa,a.style.right=ba,a.style.bottom=ua,a.style.overflow=Da,(lr=a.parentElement)===null||lr===void 0||lr.removeChild(Q);var W=i.toNum(Math.round(L/parseFloat(la)*1e3)/1e3),H=i.toNum(Math.round(T/parseFloat(ha)*1e3)/1e3);if(W===0||H===0||rv.isDOM(y)&&!av.default(y))return;var Ja=B.offset,Ka=B.targetOffset,Qa=er(d,Ja),kr=o.default(Qa,2),f=kr[0],z=kr[1],Za=er(l,Ka),Br=o.default(Za,2),ka=Br[0],Ba=Br[1];l.x-=ka,l.y-=Ba;var Sa=B.points||[],Sr=o.default(Sa,2),Ta=Sr[0],La=Sr[1],Z=pr(La),D=pr(Ta),Tr=N(l,Z),Lr=N(d,D),s=n.default({},B),h=Tr.x-Lr.x+f,M=Tr.y-Lr.y+z,G=F(h,M),R=F(h,M,v),Wr=N(l,["t","l"]),Hr=N(d,["t","l"]),sr=N(l,["b","r"]),ir=N(d,["b","r"]),t=B.overflow||{},Wa=t.adjustX,Ha=t.adjustY,Nr=t.shiftX,Vr=t.shiftY,$r=function(E){return typeof E=="boolean"?E:E>=0},P,e,g,p;Er();var cr=$r(Ha),Ir=D[0]===Z[0];if(cr&&D[0]==="t"&&(e>O.bottom||b.current.bt)){var _=M;Ir?_-=T-V:_=Wr.y-ir.y-z;var Pr=F(h,_),sa=F(h,_,v);Pr>G||Pr===G&&(!I||sa>=R)?(b.current.bt=!0,M=_,z=-z,s.points=[J(D,0),J(Z,0)]):b.current.bt=!1}if(cr&&D[0]==="b"&&(PG||gr===G&&(!I||ia>=R)?(b.current.tb=!0,M=x,z=-z,s.points=[J(D,0),J(Z,0)]):b.current.tb=!1}var _r=$r(Wa),xr=D[1]===Z[1];if(_r&&D[1]==="l"&&(p>O.right||b.current.rl)){var X=h;xr?X-=L-$:X=Wr.x-ir.x-f;var Xr=F(X,M),Na=F(X,M,v);Xr>G||Xr===G&&(!I||Na>=R)?(b.current.rl=!0,h=X,f=-f,s.points=[J(D,1),J(Z,1)]):b.current.rl=!1}if(_r&&D[1]==="r"&&(gG||Yr===G&&(!I||Va>=R)?(b.current.lr=!0,h=Y,f=-f,s.points=[J(D,1),J(Z,1)]):b.current.lr=!1}Er();var A=Nr===!0?0:Nr;typeof A=="number"&&(gv.right&&(h-=p-v.right-f,l.x>v.right-A&&(h+=l.x-v.right+A)));var m=Vr===!0?0:Vr;typeof m=="number"&&(Pv.bottom&&(M-=e-v.bottom-z,l.y>v.bottom-m&&(M+=l.y-v.bottom+m)));var qr=d.x+h,$a=qr+L,br=d.y+M,ca=br+T,Ar=l.x,Ia=Ar+$,mr=l.y,Pa=mr+V,ga=Math.max(qr,Ar),_a=Math.min($a,Ia),xa=(ga+_a)/2,Xa=xa-qr,Ya=Math.max(br,mr),Aa=Math.min(ca,Pa),ma=(Ya+Aa)/2,Ea=ma-br;vr?.(w,s);var ur=Zr.right-d.x-(h+d.width),Dr=Zr.bottom-d.y-(M+d.height);W===1&&(h=Math.round(h),ur=Math.round(ur)),H===1&&(M=Math.round(M),Dr=Math.round(Dr));var na={ready:!0,offsetX:h/W,offsetY:M/H,offsetR:ur/W,offsetB:Dr/H,arrowX:Xa/W,arrowY:Ea/H,scaleX:W,scaleY:H,align:s};Cr(na)}}),ya=function(){yr.current+=1;var K=yr.current;Promise.resolve().then(function(){yr.current===K&&va()})},fr=function(){Cr(function(K){return n.default(n.default({},K),{},{ready:!1})})};return Rr.default(fr,[q]),Rr.default(function(){r||fr()},[r]),[j.ready,j.offsetX,j.offsetY,j.offsetR,j.offsetB,j.arrowX,j.arrowY,j.scaleX,j.scaleY,j.align,ya]}exports.default=lv; diff --git a/dist/index.cjs277.js b/dist/index.cjs277.js new file mode 100644 index 00000000..c49c5f51 --- /dev/null +++ b/dist/index.cjs277.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./index.cjs144.js"),S=require("./index.cjs173.js"),o=require("./index.cjs279.js");function y(u,r,t,l,f){S.default(function(){if(u&&r&&t){let e=function(){l(),f()};var v=r,a=t,d=o.collectScroller(v),E=o.collectScroller(a),c=o.getWin(a),i=new Set([c].concat(s.default(d),s.default(E)));return i.forEach(function(n){n.addEventListener("scroll",e,{passive:!0})}),c.addEventListener("resize",e,{passive:!0}),l(),function(){i.forEach(function(n){n.removeEventListener("scroll",e),c.removeEventListener("resize",e)})}}},[u,r,t])}exports.default=y; diff --git a/dist/index.cjs278.js b/dist/index.cjs278.js new file mode 100644 index 00000000..1fa357f3 --- /dev/null +++ b/dist/index.cjs278.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("./index.cjs270.js"),y=require("./index.cjs96.js"),p=require("react"),M=require("./index.cjs279.js");function _(n){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(u,e,t.get?t:{enumerable:!0,get:()=>n[e]})}}return u.default=n,Object.freeze(u)}const a=_(p);function W(n,u,e,t,m,l,b,O){var L=a.useRef(n);L.current=n;var v=a.useRef(!1);a.useEffect(function(){if(u&&t&&(!m||l)){var P=function(){v.current=!1},r=function(f){var o;L.current&&!b(((o=f.composedPath)===null||o===void 0||(o=o.call(f))===null||o===void 0?void 0:o[0])||f.target)&&!v.current&&O(!1)},i=M.getWin(t);i.addEventListener("pointerdown",P,!0),i.addEventListener("mousedown",r,!0),i.addEventListener("contextmenu",r,!0);var c=x.getShadowRoot(e);if(c&&(c.addEventListener("mousedown",r,!0),c.addEventListener("contextmenu",r,!0)),process.env.NODE_ENV!=="production"){var s,d,D=e==null||(s=e.getRootNode)===null||s===void 0?void 0:s.call(e),q=(d=t.getRootNode)===null||d===void 0?void 0:d.call(t);y.warning(D===q,"trigger element and popup element should in same shadow root.")}return function(){i.removeEventListener("pointerdown",P,!0),i.removeEventListener("mousedown",r,!0),i.removeEventListener("contextmenu",r,!0),c&&(c.removeEventListener("mousedown",r,!0),c.removeEventListener("contextmenu",r,!0))}}},[u,e,t,m,l]);function j(){v.current=!0}return j}exports.default=W; diff --git a/dist/index.cjs279.js b/dist/index.cjs279.js new file mode 100644 index 00000000..23942ca0 --- /dev/null +++ b/dist/index.cjs279.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index.cjs156.js");function I(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===o[0]:e[0]===o[0]&&e[1]===o[1]}function X(e,o,t,r){for(var n=t.points,l=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?o:e}function h(e){return v(parseFloat(e),0)}function D(e,o){var t=q.default({},e);return(o||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var n=m(r).getComputedStyle(r),l=n.overflow,i=n.overflowClipMargin,a=n.borderTopWidth,u=n.borderBottomWidth,T=n.borderLeftWidth,R=n.borderRightWidth,d=r.getBoundingClientRect(),p=r.offsetHeight,A=r.clientHeight,b=r.offsetWidth,C=r.clientWidth,W=h(a),M=h(u),w=h(T),B=h(R),c=v(Math.round(d.width/b*1e3)/1e3),g=v(Math.round(d.height/p*1e3)/1e3),E=(b-C-w-B)*c,V=(p-A-W-M)*g,N=W*g,x=M*g,H=w*c,O=B*c,f=0,s=0;if(l==="clip"){var S=h(i);f=S*c,s=S*g}var y=d.x+H-f,L=d.y+N-s,j=y+d.width+2*f-H-O-E,P=L+d.height+2*s-N-x-V;t.left=Math.max(t.left,y),t.top=Math.max(t.top,L),t.right=Math.min(t.right,j),t.bottom=Math.min(t.bottom,P)}}),t}exports.collectScroller=k;exports.getAlignPopupClassName=X;exports.getMotion=Y;exports.getVisibleArea=D;exports.getWin=m;exports.toNum=v; diff --git a/dist/index.cjs28.js b/dist/index.cjs28.js index 00d9790b..5153aff5 100644 --- a/dist/index.cjs28.js +++ b/dist/index.cjs28.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),l=require("input-otp"),b=require("lucide-react"),n=require("./index.cjs54.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const r=d(s);function p({className:t,containerClassName:e,...i}){return r.createElement(l.OTPInput,{"data-slot":"input-otp",containerClassName:n.cn("flex items-center gap-2 has-disabled:opacity-50",e),className:n.cn("disabled:lib:cursor-not-allowed",t),...i})}function m({className:t,...e}){return r.createElement("div",{"data-slot":"input-otp-group",className:n.cn("lib:flex lib:items-center",t),...e})}function v({index:t,className:e,...i}){const a=r.useContext(l.OTPInputContext),{char:o,hasFakeCaret:u,isActive:c}=a?.slots[t]??{};return r.createElement("div",{"data-slot":"input-otp-slot","data-active":c,className:n.cn("data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]",e),...i},o,u&&r.createElement("div",{className:"lib:pointer-events-none lib:absolute lib:inset-0 lib:flex lib:items-center lib:justify-center"},r.createElement("div",{className:"lib:animate-caret-blink lib:bg-foreground lib:h-4 lib:w-px lib:duration-1000"})))}function f({...t}){return r.createElement("div",{"data-slot":"input-otp-separator",role:"separator",...t},r.createElement(b.MinusIcon,null))}exports.InputOTP=p;exports.InputOTPGroup=m;exports.InputOTPSeparator=f;exports.InputOTPSlot=v; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),n=require("./index.cjs65.js");function o({className:e,type:i,...r}){return t.jsxRuntimeExports.jsx("input",{type:i,"data-slot":"input",className:n.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}exports.Input=o; diff --git a/dist/index.cjs280.js b/dist/index.cjs280.js new file mode 100644 index 00000000..23d6f58a --- /dev/null +++ b/dist/index.cjs280.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E="comm",r="rule",e="decl",a="@import",A="@namespace",M="@keyframes",R="@layer";exports.COMMENT=E;exports.DECLARATION=e;exports.IMPORT=a;exports.KEYFRAMES=M;exports.LAYER=R;exports.NAMESPACE=A;exports.RULESET=r; diff --git a/dist/index.cjs281.js b/dist/index.cjs281.js new file mode 100644 index 00000000..9ea808eb --- /dev/null +++ b/dist/index.cjs281.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Math.abs,i=String.fromCharCode;function o(r){return r.trim()}function u(r,n,t){return r.replace(n,t)}function a(r,n,t){return r.indexOf(n,t)}function c(r,n){return r.charCodeAt(n)|0}function f(r,n,t){return r.slice(n,t)}function s(r){return r.length}function l(r){return r.length}function d(r,n){return n.push(r),r}exports.abs=e;exports.append=d;exports.charat=c;exports.from=i;exports.indexof=a;exports.replace=u;exports.sizeof=l;exports.strlen=s;exports.substr=f;exports.trim=o; diff --git a/dist/index.cjs282.js b/dist/index.cjs282.js new file mode 100644 index 00000000..a2c68a5b --- /dev/null +++ b/dist/index.cjs282.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs281.js");exports.line=1;exports.column=1;exports.length=0;exports.position=0;exports.character=0;exports.characters="";function d(e,c,u,h,l,f,m,p){return{value:e,root:c,parent:u,type:h,props:l,children:f,line:exports.line,column:exports.column,length:m,return:"",siblings:p}}function b(){return exports.character}function k(){return exports.character=exports.position>0?a.charat(exports.characters,--exports.position):0,exports.column--,exports.character===10&&(exports.column=1,exports.line--),exports.character}function r(){return exports.character=exports.position2||i(exports.character)>3?"":" "}function S(e,c){for(;--c&&r()&&!(exports.character<48||exports.character>102||exports.character>57&&exports.character<65||exports.character>70&&exports.character<97););return n(e,s()+(c<6&&t()==32&&r()==32))}function o(e){for(;r();)switch(exports.character){case e:return exports.position;case 34:case 39:e!==34&&e!==39&&o(exports.character);break;case 40:e===41&&o(e);break;case 92:r();break}return exports.position}function j(e,c){for(;r()&&e+exports.character!==57;)if(e+exports.character===84&&t()===47)break;return"/*"+n(c,exports.position-1)+"*"+a.from(e===47?e:r())}function q(e){for(;!i(t());)r();return n(e,exports.position)}exports.alloc=g;exports.caret=s;exports.char=b;exports.commenter=j;exports.dealloc=w;exports.delimit=v;exports.delimiter=o;exports.escaping=S;exports.identifier=q;exports.next=r;exports.node=d;exports.peek=t;exports.prev=k;exports.slice=n;exports.token=i;exports.whitespace=x; diff --git a/dist/index.cjs283.js b/dist/index.cjs283.js new file mode 100644 index 00000000..4bb9b02f --- /dev/null +++ b/dist/index.cjs283.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=a(o);var u=c.createContext(null);exports.default=u; diff --git a/dist/index.cjs284.js b/dist/index.cjs284.js new file mode 100644 index 00000000..43cc3abc --- /dev/null +++ b/dist/index.cjs284.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const q=require("./index.cjs144.js"),v=require("./index.cjs171.js"),y=require("react"),m=require("./index.cjs173.js"),R=require("./index.cjs162.js"),C=require("./index.cjs283.js");function O(t){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(u,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return u.default=t,Object.freeze(u)}const o=O(y);var _=[];function j(t,u){var n=o.useState(function(){if(!R.default())return null;var e=document.createElement("div");return process.env.NODE_ENV!=="production"&&u&&e.setAttribute("data-debug",u),e}),a=v.default(n,1),r=a[0],c=o.useRef(!1),l=o.useContext(C.default),b=o.useState(_),i=v.default(b,2),f=i[0],s=i[1],S=l||(c.current?void 0:function(e){s(function(E){var g=[e].concat(q.default(E));return g})});function d(){r.parentElement||document.body.appendChild(r),c.current=!0}function p(){var e;(e=r.parentElement)===null||e===void 0||e.removeChild(r),c.current=!1}return m.default(function(){return t?l?l(d):d():p(),p},[t]),m.default(function(){f.length&&(f.forEach(function(e){return e()}),s(_))},[f]),[r,S]}exports.default=j; diff --git a/dist/index.cjs285.js b/dist/index.cjs285.js new file mode 100644 index 00000000..d1d4740d --- /dev/null +++ b/dist/index.cjs285.js @@ -0,0 +1,5 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs171.js"),d=require("react"),n=require("./index.cjs163.js"),s=require("./index.cjs173.js"),f=require("./index.cjs287.js"),S=require("./index.cjs291.js");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=v(d);var m="rc-util-locker-".concat(Date.now()),a=0;function y(e){var t=!!e,r=g.useState(function(){return a+=1,"".concat(m,"_").concat(a)}),c=l.default(r,1),o=c[0];s.default(function(){if(t){var u=f.getTargetScrollBarSize(document.body).width,i=S.isBodyOverflowing();n.updateCSS(` +html body { + overflow-y: hidden; + `.concat(i?"width: calc(100% - ".concat(u,"px);"):"",` +}`),o)}else n.removeCSS(o);return function(){n.removeCSS(o)}},[t,o])}exports.default=y; diff --git a/dist/index.cjs286.js b/dist/index.cjs286.js new file mode 100644 index 00000000..518deaca --- /dev/null +++ b/dist/index.cjs286.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=!1;function e(i){return n}exports.inline=n;exports.inlineMock=e; diff --git a/dist/index.cjs287.js b/dist/index.cjs287.js new file mode 100644 index 00000000..dddbb908 --- /dev/null +++ b/dist/index.cjs287.js @@ -0,0 +1,5 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs163.js");function g(t){var o="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=o;var e=r.style;e.position="absolute",e.left="0",e.top="0",e.width="100px",e.height="100px",e.overflow="scroll";var a,i;if(t){var n=getComputedStyle(t);e.scrollbarColor=n.scrollbarColor,e.scrollbarWidth=n.scrollbarWidth;var c=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(c.width,10),d=parseInt(c.height,10);try{var h=l?"width: ".concat(c.width,";"):"",u=d?"height: ".concat(c.height,";"):"";s.updateCSS(` +#`.concat(o,`::-webkit-scrollbar { +`).concat(h,` +`).concat(u,` +}`),o)}catch(f){console.error(f),a=l,i=d}}document.body.appendChild(r);var m=t&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,v=t&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),s.removeCSS(o),{width:m,height:v}}function p(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:g(t)}exports.getTargetScrollBarSize=p; diff --git a/dist/index.cjs288.js b/dist/index.cjs288.js new file mode 100644 index 00000000..ee4bde15 --- /dev/null +++ b/dist/index.cjs288.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=require("./index.cjs121.js"),j=require("react");function P(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const d=P(j);function S(e){var a=e.prefixCls,r=e.align,l=e.arrow,i=e.arrowPos,s=l||{},b=s.className,w=s.content,c=i.x,g=c===void 0?0:c,f=i.y,m=f===void 0?0:f,y=d.useRef();if(!r||!r.points)return null;var t={position:"absolute"};if(r.autoArrow!==!1){var u=r.points[0],v=r.points[1],o=u[0],n=u[1],_=v[0],x=v[1];o===_||!["t","b"].includes(o)?t.top=m:o==="t"?t.top=0:t.bottom=0,n===x||!["l","r"].includes(n)?t.left=g:n==="l"?t.left=0:t.right=0}return d.createElement("div",{ref:y,className:O.default("".concat(a,"-arrow"),b),style:t},w)}exports.default=S; diff --git a/dist/index.cjs289.js b/dist/index.cjs289.js new file mode 100644 index 00000000..c571be6d --- /dev/null +++ b/dist/index.cjs289.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs147.js"),s=require("./index.cjs121.js"),f=require("./index.cjs141.js");require("./index.cjs142.js");const d=require("react");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=m(d);function b(e){var n=e.prefixCls,t=e.open,r=e.zIndex,u=e.mask,o=e.motion;return u?a.createElement(f.default,l.default({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(c){var i=c.className;return a.createElement("div",{style:{zIndex:r},className:s.default("".concat(n,"-mask"),i)})}):null}exports.default=b; diff --git a/dist/index.cjs29.js b/dist/index.cjs29.js index 24ecdb49..6178db70 100644 --- a/dist/index.cjs29.js +++ b/dist/index.cjs29.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("./index.cjs54.js");function b(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const o=b(r);function a({className:e,type:l,...i}){return o.createElement("input",{type:l,"data-slot":"input",className:n.cn("file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm","focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]","aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive",e),...i})}exports.Input=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),a=require("@radix-ui/react-label"),i=require("./index.cjs65.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=l(a);function u({className:e,...t}){return o.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}exports.Label=u; diff --git a/dist/index.cjs290.js b/dist/index.cjs290.js new file mode 100644 index 00000000..e68146bf --- /dev/null +++ b/dist/index.cjs290.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=u(c);var o=a.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(o.displayName="PopupContent");exports.default=o; diff --git a/dist/index.cjs291.js b/dist/index.cjs291.js new file mode 100644 index 00000000..b94f5920 --- /dev/null +++ b/dist/index.cjs291.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}exports.isBodyOverflowing=e; diff --git a/dist/index.cjs30.js b/dist/index.cjs30.js index ca3a0f76..cf7219ba 100644 --- a/dist/index.cjs30.js +++ b/dist/index.cjs30.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),r=require("@radix-ui/react-label"),o=require("./index.cjs54.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const c=a(n),b=a(r);function s({className:e,...t}){return c.createElement(b.Root,{"data-slot":"label",className:o.cn("lib:flex lib:items-center lib:gap-2 lib:text-sm lib:leading-none lib:font-medium lib:select-none group-data-[disabled=true]:lib:pointer-events-none group-data-[disabled=true]:lib:opacity-50 peer-disabled:lib:cursor-not-allowed peer-disabled:lib:opacity-50",e),...t})}exports.Label=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),c=require("@radix-ui/react-menubar"),u=require("lucide-react"),s=require("./index.cjs65.js");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=m(c);function l({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Root,{"data-slot":"menubar",className:s.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function x({...e}){return n.jsxRuntimeExports.jsx(a.Menu,{"data-slot":"menubar-menu",...e})}function b({...e}){return n.jsxRuntimeExports.jsx(a.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return n.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"menubar-portal",...e})}function p({...e}){return n.jsxRuntimeExports.jsx(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function f({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"menubar-trigger",className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function g({className:e,align:t="start",alignOffset:r=-4,sideOffset:o=8,...d}){return n.jsxRuntimeExports.jsx(i,{children:n.jsxRuntimeExports.jsx(a.Content,{"data-slot":"menubar-content",align:t,alignOffset:r,sideOffset:o,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...d})})}function j({className:e,inset:t,variant:r="default",...o}){return n.jsxRuntimeExports.jsx(a.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":r,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function v({className:e,children:t,checked:r,...o}){return n.jsxRuntimeExports.jsxs(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...o,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(u.CheckIcon,{className:"size-4"})})}),t]})}function M({className:e,children:t,...r}){return n.jsxRuntimeExports.jsxs(a.RadioItem,{"data-slot":"menubar-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(u.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function h({className:e,inset:t,...r}){return n.jsxRuntimeExports.jsx(a.Label,{"data-slot":"menubar-label","data-inset":t,className:s.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function R({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Separator,{"data-slot":"menubar-separator",className:s.cn("bg-border -mx-1 my-1 h-px",e),...t})}function E({className:e,...t}){return n.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function S({...e}){return n.jsxRuntimeExports.jsx(a.Sub,{"data-slot":"menubar-sub",...e})}function y({className:e,inset:t,children:r,...o}){return n.jsxRuntimeExports.jsxs(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",e),...o,children:[r,n.jsxRuntimeExports.jsx(u.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function z({className:e,...t}){return n.jsxRuntimeExports.jsx(a.SubContent,{"data-slot":"menubar-sub-content",className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}exports.Menubar=l;exports.MenubarCheckboxItem=v;exports.MenubarContent=g;exports.MenubarGroup=b;exports.MenubarItem=j;exports.MenubarLabel=h;exports.MenubarMenu=x;exports.MenubarPortal=i;exports.MenubarRadioGroup=p;exports.MenubarRadioItem=M;exports.MenubarSeparator=R;exports.MenubarShortcut=E;exports.MenubarSub=S;exports.MenubarSubContent=z;exports.MenubarSubTrigger=y;exports.MenubarTrigger=f; diff --git a/dist/index.cjs31.js b/dist/index.cjs31.js index ae2fc2f5..95ff9e2c 100644 --- a/dist/index.cjs31.js +++ b/dist/index.cjs31.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=require("@radix-ui/react-menubar"),b=require("lucide-react"),l=require("./index.cjs54.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=o(c),a=o(d);function m({className:e,...t}){return i.createElement(a.Root,{"data-slot":"menubar",className:l.cn("lib:bg-background lib:flex lib:h-9 lib:items-center lib:gap-1 lib:rounded-md lib:border lib:p-1 lib:shadow-xs",e),...t})}function f({...e}){return i.createElement(a.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return i.createElement(a.Group,{"data-slot":"menubar-group",...e})}function s({...e}){return i.createElement(a.Portal,{"data-slot":"menubar-portal",...e})}function g({...e}){return i.createElement(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function v({className:e,...t}){return i.createElement(a.Trigger,{"data-slot":"menubar-trigger",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:items-center lib:rounded-sm lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:outline-hidden lib:select-none",e),...t})}function x({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...u}){return i.createElement(s,null,i.createElement(a.Content,{"data-slot":"menubar-content",align:t,alignOffset:n,sideOffset:r,className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[12rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...u}))}function M({className:e,inset:t,variant:n="default",...r}){return i.createElement(a.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":n,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...r})}function h({className:e,children:t,checked:n,...r}){return i.createElement(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:n,...r},i.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},i.createElement(a.ItemIndicator,null,i.createElement(b.CheckIcon,{className:"lib:size-4"}))),t)}function E({className:e,children:t,...n}){return i.createElement(a.RadioItem,{"data-slot":"menubar-radio-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...n},i.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},i.createElement(a.ItemIndicator,null,i.createElement(b.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),t)}function S({className:e,inset:t,...n}){return i.createElement(a.Label,{"data-slot":"menubar-label","data-inset":t,className:l.cn("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...n})}function y({className:e,...t}){return i.createElement(a.Separator,{"data-slot":"menubar-separator",className:l.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...t})}function z({className:e,...t}){return i.createElement("span",{"data-slot":"menubar-shortcut",className:l.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...t})}function N({...e}){return i.createElement(a.Sub,{"data-slot":"menubar-sub",...e})}function I({className:e,inset:t,children:n,...r}){return i.createElement(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8",e),...r},n,i.createElement(b.ChevronRightIcon,{className:"lib:ml-auto lib:h-4 lib:w-4"}))}function _({className:e,...t}){return i.createElement(a.SubContent,{"data-slot":"menubar-sub-content",className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...t})}exports.Menubar=m;exports.MenubarCheckboxItem=h;exports.MenubarContent=x;exports.MenubarGroup=p;exports.MenubarItem=M;exports.MenubarLabel=S;exports.MenubarMenu=f;exports.MenubarPortal=s;exports.MenubarRadioGroup=g;exports.MenubarRadioItem=E;exports.MenubarSeparator=y;exports.MenubarShortcut=z;exports.MenubarSub=N;exports.MenubarSubContent=_;exports.MenubarSubTrigger=I;exports.MenubarTrigger=v; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),d=require("@radix-ui/react-navigation-menu"),c=require("class-variance-authority"),l=require("lucide-react"),o=require("./index.cjs65.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=g(d);function m({className:t,children:e,viewport:n=!0,...r}){return a.jsxRuntimeExports.jsxs(i.Root,{"data-slot":"navigation-menu","data-viewport":n,className:o.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...r,children:[e,n&&a.jsxRuntimeExports.jsx(u,{})]})}function v({className:t,...e}){return a.jsxRuntimeExports.jsx(i.List,{"data-slot":"navigation-menu-list",className:o.cn("group flex flex-1 list-none items-center justify-center gap-1",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Item,{"data-slot":"navigation-menu-item",className:o.cn("relative",t),...e})}const s=c.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function f({className:t,children:e,...n}){return a.jsxRuntimeExports.jsxs(i.Trigger,{"data-slot":"navigation-menu-trigger",className:o.cn(s(),"group",t),...n,children:[e," ",a.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function x({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Content,{"data-slot":"navigation-menu-content",className:o.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...e})}function u({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{className:o.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:a.jsxRuntimeExports.jsx(i.Viewport,{"data-slot":"navigation-menu-viewport",className:o.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",t),...e})})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Link,{"data-slot":"navigation-menu-link",className:o.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",t),...e})}function w({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Indicator,{"data-slot":"navigation-menu-indicator",className:o.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",t),...e,children:a.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}exports.NavigationMenu=m;exports.NavigationMenuContent=x;exports.NavigationMenuIndicator=w;exports.NavigationMenuItem=p;exports.NavigationMenuLink=b;exports.NavigationMenuList=v;exports.NavigationMenuTrigger=f;exports.NavigationMenuViewport=u;exports.navigationMenuTriggerStyle=s; diff --git a/dist/index.cjs32.js b/dist/index.cjs32.js index 30b93090..04a5429d 100644 --- a/dist/index.cjs32.js +++ b/dist/index.cjs32.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("@radix-ui/react-navigation-menu"),d=require("class-variance-authority"),g=require("lucide-react"),n=require("./index.cjs54.js");function r(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return i.default=t,Object.freeze(i)}const e=r(s),o=r(c);function m({className:t,children:i,viewport:a=!0,...l}){return e.createElement(o.Root,{"data-slot":"navigation-menu","data-viewport":a,className:n.cn("lib:group/navigation-menu lib:relative lib:flex lib:max-w-max lib:flex-1 lib:items-center lib:justify-center",t),...l},i,a&&e.createElement(u,null))}function v({className:t,...i}){return e.createElement(o.List,{"data-slot":"navigation-menu-list",className:n.cn("lib:group lib:flex lib:flex-1 lib:list-none lib:items-center lib:justify-center lib:gap-1",t),...i})}function f({className:t,...i}){return e.createElement(o.Item,{"data-slot":"navigation-menu-item",className:n.cn("lib:relative",t),...i})}const b=d.cva("lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1");function p({className:t,children:i,...a}){return e.createElement(o.Trigger,{"data-slot":"navigation-menu-trigger",className:n.cn(b(),"lib:group",t),...a},i," ",e.createElement(g.ChevronDownIcon,{className:"lib:relative lib:top-[1px] lib:ml-1 lib:size-3 lib:transition lib:duration-300 group-data-[state=open]:lib:rotate-180","aria-hidden":"true"}))}function w({className:t,...i}){return e.createElement(o.Content,{"data-slot":"navigation-menu-content",className:n.cn("data-[motion^=from-]:lib:animate-in data-[motion^=to-]:lib:animate-out data-[motion^=from-]:lib:fade-in data-[motion^=to-]:lib:fade-out data-[motion=from-end]:lib:slide-in-from-right-52 data-[motion=from-start]:lib:slide-in-from-left-52 data-[motion=to-end]:lib:slide-out-to-right-52 data-[motion=to-start]:lib:slide-out-to-left-52 lib:top-0 lib:left-0 lib:w-full lib:p-2 lib:pr-2.5 md:lib:absolute md:lib:w-auto","lib:group-data-[viewport=false]/navigation-menu:bg-popover lib:group-data-[viewport=false]/navigation-menu:text-popover-foreground lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 lib:group-data-[viewport=false]/navigation-menu:top-full lib:group-data-[viewport=false]/navigation-menu:mt-1.5 lib:group-data-[viewport=false]/navigation-menu:overflow-hidden lib:group-data-[viewport=false]/navigation-menu:rounded-md lib:group-data-[viewport=false]/navigation-menu:border lib:group-data-[viewport=false]/navigation-menu:shadow lib:group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:lib:ring-0 **:data-[slot=navigation-menu-link]:focus:lib:outline-none",t),...i})}function u({className:t,...i}){return e.createElement("div",{className:n.cn("lib:absolute lib:top-full lib:left-0 lib:isolate lib:z-50 lib:flex lib:justify-center")},e.createElement(o.Viewport,{"data-slot":"navigation-menu-viewport",className:n.cn("lib:origin-top-center lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-90 lib:relative lib:mt-1.5 lib:h-[var(--radix-navigation-menu-viewport-height)] lib:w-full lib:overflow-hidden lib:rounded-md lib:border lib:shadow md:lib:w-[var(--radix-navigation-menu-viewport-width)]",t),...i}))}function x({className:t,...i}){return e.createElement(o.Link,{"data-slot":"navigation-menu-link",className:n.cn("data-[active=true]:focus:lib:bg-accent data-[active=true]:hover:lib:bg-accent data-[active=true]:lib:bg-accent/50 data-[active=true]:lib:text-accent-foreground hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground focus-visible:lib:ring-ring/50 [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:flex lib:flex-col lib:gap-1 lib:rounded-sm lib:p-2 lib:text-sm lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 [&_svg:not([class*=size-])]:lib:size-4",t),...i})}function N({className:t,...i}){return e.createElement(o.Indicator,{"data-slot":"navigation-menu-indicator",className:n.cn("data-[state=visible]:lib:animate-in data-[state=hidden]:lib:animate-out data-[state=hidden]:lib:fade-out data-[state=visible]:lib:fade-in lib:top-full lib:z-[1] lib:flex lib:h-1.5 lib:items-end lib:justify-center lib:overflow-hidden",t),...i},e.createElement("div",{className:"lib:bg-border lib:relative lib:top-[60%] lib:h-2 lib:w-2 lib:rotate-45 lib:rounded-tl-sm lib:shadow-md"}))}exports.NavigationMenu=m;exports.NavigationMenuContent=w;exports.NavigationMenuIndicator=N;exports.NavigationMenuItem=f;exports.NavigationMenuLink=x;exports.NavigationMenuList=v;exports.NavigationMenuTrigger=p;exports.NavigationMenuViewport=u;exports.navigationMenuTriggerStyle=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),e=require("lucide-react"),a=require("./index.cjs65.js"),l=require("./index.cjs13.js");function u({className:n,...t}){return i.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:a.cn("mx-auto flex w-full justify-center",n),...t})}function x({className:n,...t}){return i.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:a.cn("flex flex-row items-center gap-1",n),...t})}function c({...n}){return i.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...n})}function s({className:n,isActive:t,size:o="icon",...r}){return i.jsxRuntimeExports.jsx("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:a.cn(l.buttonVariants({variant:t?"outline":"ghost",size:o}),n),...r})}function p({className:n,...t}){return i.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:a.cn("gap-1 px-2.5 sm:pl-2.5",n),...t,children:[i.jsxRuntimeExports.jsx(e.ChevronLeftIcon,{}),i.jsxRuntimeExports.jsx("span",{className:"hidden sm:block",children:"Previous"})]})}function m({className:n,...t}){return i.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to next page",size:"default",className:a.cn("gap-1 px-2.5 sm:pr-2.5",n),...t,children:[i.jsxRuntimeExports.jsx("span",{className:"hidden sm:block",children:"Next"}),i.jsxRuntimeExports.jsx(e.ChevronRightIcon,{})]})}function g({className:n,...t}){return i.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:a.cn("flex size-9 items-center justify-center",n),...t,children:[i.jsxRuntimeExports.jsx(e.MoreHorizontalIcon,{className:"size-4"}),i.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]})}exports.Pagination=u;exports.PaginationContent=x;exports.PaginationEllipsis=g;exports.PaginationItem=c;exports.PaginationLink=s;exports.PaginationNext=m;exports.PaginationPrevious=p; diff --git a/dist/index.cjs33.js b/dist/index.cjs33.js index f5b2b122..4d3b5fd4 100644 --- a/dist/index.cjs33.js +++ b/dist/index.cjs33.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("lucide-react"),i=require("./index.cjs54.js"),s=require("./index.cjs14.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=u(c);function b({className:e,...t}){return n.createElement("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("lib:mx-auto lib:flex lib:w-full lib:justify-center",e),...t})}function m({className:e,...t}){return n.createElement("ul",{"data-slot":"pagination-content",className:i.cn("lib:flex lib:flex-row lib:items-center lib:gap-1",e),...t})}function g({...e}){return n.createElement("li",{"data-slot":"pagination-item",...e})}function r({className:e,isActive:t,size:a="icon",...l}){return n.createElement("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:i.cn(s.buttonVariants({variant:t?"outline":"ghost",size:a}),e),...l})}function p({className:e,...t}){return n.createElement(r,{"aria-label":"Go to previous page",size:"default",className:i.cn("lib:gap-1 lib:px-2.5 sm:lib:pl-2.5",e),...t},n.createElement(o.ChevronLeftIcon,null),n.createElement("span",{className:"lib:hidden sm:lib:block"},"Previous"))}function f({className:e,...t}){return n.createElement(r,{"aria-label":"Go to next page",size:"default",className:i.cn("lib:gap-1 lib:px-2.5 sm:lib:pr-2.5",e),...t},n.createElement("span",{className:"lib:hidden sm:lib:block"},"Next"),n.createElement(o.ChevronRightIcon,null))}function d({className:e,...t}){return n.createElement("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i.cn("lib:flex lib:size-9 lib:items-center lib:justify-center",e),...t},n.createElement(o.MoreHorizontalIcon,{className:"lib:size-4"}),n.createElement("span",{className:"lib:sr-only"},"More pages"))}exports.Pagination=b;exports.PaginationContent=m;exports.PaginationEllipsis=d;exports.PaginationItem=g;exports.PaginationLink=r;exports.PaginationNext=f;exports.PaginationPrevious=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),a=require("@radix-ui/react-popover"),s=require("./index.cjs65.js");function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const n=d(a);function p({...t}){return r.jsxRuntimeExports.jsx(n.Root,{"data-slot":"popover",...t})}function u({...t}){return r.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"popover-trigger",...t})}function c({className:t,align:o="center",sideOffset:e=4,...i}){return r.jsxRuntimeExports.jsx(n.Portal,{children:r.jsxRuntimeExports.jsx(n.Content,{"data-slot":"popover-content",align:o,sideOffset:e,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...i})})}function l({...t}){return r.jsxRuntimeExports.jsx(n.Anchor,{"data-slot":"popover-anchor",...t})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=c;exports.PopoverTrigger=u; diff --git a/dist/index.cjs34.js b/dist/index.cjs34.js index 5e46a743..33b29647 100644 --- a/dist/index.cjs34.js +++ b/dist/index.cjs34.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("@radix-ui/react-popover"),c=require("./index.cjs54.js");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=a(l),n=a(d);function s({...e}){return r.createElement(n.Root,{"data-slot":"popover",...e})}function p({...e}){return r.createElement(n.Trigger,{"data-slot":"popover-trigger",...e})}function b({className:e,align:o="center",sideOffset:t=4,...i}){return r.createElement(n.Portal,null,r.createElement(n.Content,{"data-slot":"popover-content",align:o,sideOffset:t,className:c.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden",e),...i}))}function u({...e}){return r.createElement(n.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=s;exports.PopoverAnchor=u;exports.PopoverContent=b;exports.PopoverTrigger=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),i=require("@radix-ui/react-progress"),l=require("./index.cjs65.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=a(i);function u({className:e,value:t,...r}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"progress",className:l.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:o.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}exports.Progress=u; diff --git a/dist/index.cjs35.js b/dist/index.cjs35.js index 1af6b0c6..ce3cb456 100644 --- a/dist/index.cjs35.js +++ b/dist/index.cjs35.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("@radix-ui/react-progress"),c=require("./index.cjs54.js");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=a(n),o=a(s);function u({className:e,value:r,...t}){return i.createElement(o.Root,{"data-slot":"progress",className:c.cn("lib:bg-primary/20 lib:relative lib:h-2 lib:w-full lib:overflow-hidden lib:rounded-full",e),...t},i.createElement(o.Indicator,{"data-slot":"progress-indicator",className:"lib:bg-primary lib:h-full lib:w-full lib:flex-1 lib:transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}}))}exports.Progress=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),n=require("@radix-ui/react-radio-group"),u=require("lucide-react"),s=require("./index.cjs65.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=c(n);function d({className:e,...r}){return i.jsxRuntimeExports.jsx(o.Root,{"data-slot":"radio-group",className:s.cn("grid gap-3",e),...r})}function l({className:e,...r}){return i.jsxRuntimeExports.jsx(o.Item,{"data-slot":"radio-group-item",className:s.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:i.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:i.jsxRuntimeExports.jsx(u.CircleIcon,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}exports.RadioGroup=d;exports.RadioGroupItem=l; diff --git a/dist/index.cjs36.js b/dist/index.cjs36.js index 8e3fa72a..a5c1135e 100644 --- a/dist/index.cjs36.js +++ b/dist/index.cjs36.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),s=require("@radix-ui/react-radio-group"),b=require("lucide-react"),o=require("./index.cjs54.js");function n(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const r=n(c),l=n(s);function u({className:e,...i}){return r.createElement(l.Root,{"data-slot":"radio-group",className:o.cn("lib:grid lib:gap-3",e),...i})}function d({className:e,...i}){return r.createElement(l.Item,{"data-slot":"radio-group-item",className:o.cn("lib:border-input lib:text-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:aspect-square lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...i},r.createElement(l.Indicator,{"data-slot":"radio-group-indicator",className:"lib:relative lib:flex lib:items-center lib:justify-center"},r.createElement(b.CircleIcon,{className:"lib:fill-primary lib:absolute lib:top-1/2 lib:left-1/2 lib:size-2 lib:-translate-x-1/2 lib:-translate-y-1/2"})))}exports.RadioGroup=u;exports.RadioGroupItem=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),s=require("lucide-react"),o=require("react-resizable-panels"),n=require("./index.cjs65.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=c(o);function u({className:e,...t}){return r.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:n.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function d({...e}){return r.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",...e})}function f({withHandle:e,className:t,...a}){return r.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:n.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...a,children:e&&r.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsxRuntimeExports.jsx(s.GripVerticalIcon,{className:"size-2.5"})})})}exports.ResizableHandle=f;exports.ResizablePanel=d;exports.ResizablePanelGroup=u; diff --git a/dist/index.cjs37.js b/dist/index.cjs37.js index 245768d2..49f10440 100644 --- a/dist/index.cjs37.js +++ b/dist/index.cjs37.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),o=require("lucide-react"),s=require("react-resizable-panels"),n=require("./index.cjs54.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const t=c(b),a=c(s);function u({className:e,...l}){return t.createElement(a.PanelGroup,{"data-slot":"resizable-panel-group",className:n.cn("lib:flex lib:h-full lib:w-full data-[panel-group-direction=vertical]:lib:flex-col",e),...l})}function d({...e}){return t.createElement(a.Panel,{"data-slot":"resizable-panel",...e})}function f({withHandle:e,className:l,...i}){return t.createElement(a.PanelResizeHandle,{"data-slot":"resizable-handle",className:n.cn("lib:bg-border focus-visible:lib:ring-ring lib:relative lib:flex lib:w-px lib:items-center lib:justify-center after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-1 after:lib:-translate-x-1/2 focus-visible:lib:ring-1 focus-visible:lib:ring-offset-1 focus-visible:lib:outline-hidden data-[panel-group-direction=vertical]:lib:h-px data-[panel-group-direction=vertical]:lib:w-full data-[panel-group-direction=vertical]:after:lib:left-0 data-[panel-group-direction=vertical]:after:lib:h-1 data-[panel-group-direction=vertical]:after:lib:w-full data-[panel-group-direction=vertical]:after:lib:-translate-y-1/2 data-[panel-group-direction=vertical]:after:lib:translate-x-0 [&[data-panel-group-direction=vertical]>div]:lib:rotate-90",l),...i},e&&t.createElement("div",{className:"lib:bg-border lib:z-10 lib:flex lib:h-4 lib:w-3 lib:items-center lib:justify-center lib:rounded-xs lib:border"},t.createElement(o.GripVerticalIcon,{className:"lib:size-2.5"})))}exports.ResizableHandle=f;exports.ResizablePanel=d;exports.ResizablePanelGroup=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs64.js"),i=require("@radix-ui/react-scroll-area"),n=require("./index.cjs65.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=c(i);function u({className:e,children:r,...t}){return l.jsxRuntimeExports.jsxs(o.Root,{"data-slot":"scroll-area",className:n.cn("relative",e),...t,children:[l.jsxRuntimeExports.jsx(o.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),l.jsxRuntimeExports.jsx(a,{}),l.jsxRuntimeExports.jsx(o.Corner,{})]})}function a({className:e,orientation:r="vertical",...t}){return l.jsxRuntimeExports.jsx(o.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:r,className:n.cn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...t,children:l.jsxRuntimeExports.jsx(o.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=u;exports.ScrollBar=a; diff --git a/dist/index.cjs38.js b/dist/index.cjs38.js index 102d68f5..5af17b0e 100644 --- a/dist/index.cjs38.js +++ b/dist/index.cjs38.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),s=require("@radix-ui/react-scroll-area"),a=require("./index.cjs54.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(l,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const t=c(b),i=c(s);function u({className:e,children:l,...r}){return t.createElement(i.Root,{"data-slot":"scroll-area",className:a.cn("lib:relative",e),...r},t.createElement(i.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:lib:ring-ring/50 lib:size-full lib:rounded-[inherit] lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1"},l),t.createElement(n,null),t.createElement(i.Corner,null))}function n({className:e,orientation:l="vertical",...r}){return t.createElement(i.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:l,className:a.cn("lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none",l==="vertical"&&"lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent",l==="horizontal"&&"lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent",e),...r},t.createElement(i.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"lib:bg-border lib:relative lib:flex-1 lib:rounded-full"}))}exports.ScrollArea=u;exports.ScrollBar=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),d=require("@radix-ui/react-select"),l=require("lucide-react"),a=require("./index.cjs65.js");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return s.default=e,Object.freeze(s)}const r=u(d);function x({...e}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...e})}function f({className:e,size:s="default",children:n,...o}){return t.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,className:a.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[n,t.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function g({className:e,children:s,position:n="popper",...o}){return t.jsxRuntimeExports.jsx(r.Portal,{children:t.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(r.Viewport,{className:a.cn("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function j({className:e,...s}){return t.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:a.cn("text-muted-foreground px-2 py-1.5 text-xs",e),...s})}function v({className:e,children:s,...n}){return t.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:a.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.CheckIcon,{className:"size-4"})})}),t.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function b({className:e,...s}){return t.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:a.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:a.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronUpIcon,{className:"size-4"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:a.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-4"})})}exports.Select=x;exports.SelectContent=g;exports.SelectGroup=p;exports.SelectItem=v;exports.SelectLabel=j;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=b;exports.SelectTrigger=f;exports.SelectValue=m; diff --git a/dist/index.cjs39.js b/dist/index.cjs39.js index 47585905..32780b77 100644 --- a/dist/index.cjs39.js +++ b/dist/index.cjs39.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),u=require("@radix-ui/react-select"),o=require("lucide-react"),n=require("./index.cjs54.js");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return l.default=e,Object.freeze(l)}const t=s(d),i=s(u);function m({...e}){return t.createElement(i.Root,{"data-slot":"select",...e})}function p({...e}){return t.createElement(i.Group,{"data-slot":"select-group",...e})}function f({...e}){return t.createElement(i.Value,{"data-slot":"select-value",...e})}function g({className:e,size:l="default",children:a,...r}){return t.createElement(i.Trigger,{"data-slot":"select-trigger","data-size":l,className:n.cn("lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...r},a,t.createElement(i.Icon,{asChild:!0},t.createElement(o.ChevronDownIcon,{className:"lib:size-4 lib:opacity-50"})))}function v({className:e,children:l,position:a="popper",...r}){return t.createElement(i.Portal,null,t.createElement(i.Content,{"data-slot":"select-content",className:n.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:relative lib:z-50 lib:max-h-(--radix-select-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-select-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:shadow-md",a==="popper"&&"data-[side=bottom]:lib:translate-y-1 data-[side=left]:lib:-translate-x-1 data-[side=right]:lib:translate-x-1 data-[side=top]:lib:-translate-y-1",e),position:a,...r},t.createElement(c,null),t.createElement(i.Viewport,{className:n.cn("lib:p-1",a==="popper"&&"lib:h-[var(--radix-select-trigger-height)] lib:w-full lib:min-w-[var(--radix-select-trigger-width)] lib:scroll-my-1")},l),t.createElement(b,null)))}function x({className:e,...l}){return t.createElement(i.Label,{"data-slot":"select-label",className:n.cn("lib:text-muted-foreground lib:px-2 lib:py-1.5 lib:text-xs",e),...l})}function S({className:e,children:l,...a}){return t.createElement(i.Item,{"data-slot":"select-item",className:n.cn("focus:lib:bg-accent focus:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:w-full lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-8 lib:pl-2 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4 *:[span]:last:lib:flex *:[span]:last:lib:items-center *:[span]:last:lib:gap-2",e),...a},t.createElement("span",{className:"lib:absolute lib:right-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(o.CheckIcon,{className:"lib:size-4"}))),t.createElement(i.ItemText,null,l))}function h({className:e,...l}){return t.createElement(i.Separator,{"data-slot":"select-separator",className:n.cn("lib:bg-border lib:pointer-events-none lib:-mx-1 lib:my-1 lib:h-px",e),...l})}function c({className:e,...l}){return t.createElement(i.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:n.cn("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1",e),...l},t.createElement(o.ChevronUpIcon,{className:"lib:size-4"}))}function b({className:e,...l}){return t.createElement(i.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:n.cn("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1",e),...l},t.createElement(o.ChevronDownIcon,{className:"lib:size-4"}))}exports.Select=m;exports.SelectContent=v;exports.SelectGroup=p;exports.SelectItem=S;exports.SelectLabel=x;exports.SelectScrollDownButton=b;exports.SelectScrollUpButton=c;exports.SelectSeparator=h;exports.SelectTrigger=g;exports.SelectValue=f; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),n=require("@radix-ui/react-separator"),i=require("./index.cjs65.js");function l(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const u=l(n);function c({className:t,orientation:r="horizontal",decorative:e=!0,...o}){return a.jsxRuntimeExports.jsx(u.Root,{"data-slot":"separator",decorative:e,orientation:r,className:i.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...o})}exports.Separator=c; diff --git a/dist/index.cjs4.js b/dist/index.cjs4.js index 2f099835..0d1accaa 100644 --- a/dist/index.cjs4.js +++ b/dist/index.cjs4.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),n=o.createContext(null),i=()=>{const t=o.useContext(n);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},c=({defaultScheme:t,children:a})=>{const[s,r]=o.useState(null);o.useEffect(()=>{if(t){r(t);return}const e=localStorage.getItem("theme");e&&["light","dark"].includes(e)?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?(r("dark"),localStorage.setItem("theme","dark")):(r("light"),localStorage.setItem("theme","light"))},[]);const l=()=>{const e=s==="light"?"dark":"light";r(e),localStorage.setItem("theme",e),window.dispatchEvent(new Event("storage"))};return o.createElement(n.Provider,{value:{theme:s,toggleTheme:l}},a)};exports.AppThemeProvider=c;exports.default=i; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),u=require("next-themes");function i({children:e,...r}){return t.jsxRuntimeExports.jsx(u.ThemeProvider,{...r,children:e})}exports.default=i; diff --git a/dist/index.cjs40.js b/dist/index.cjs40.js index 1b7feeff..d0aa947a 100644 --- a/dist/index.cjs40.js +++ b/dist/index.cjs40.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),n=require("@radix-ui/react-separator"),l=require("./index.cjs54.js");function o(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const c=o(i),u=o(n);function s({className:t,orientation:r="horizontal",decorative:e=!0,...a}){return c.createElement(u.Root,{"data-slot":"separator-root",decorative:e,orientation:r,className:l.cn("lib:bg-border lib:shrink-0 data-[orientation=horizontal]:lib:h-px data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-px",t),...a})}exports.Separator=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),i=require("@radix-ui/react-dialog"),l=require("lucide-react"),n=require("./index.cjs65.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=d(i);function u({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function c({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function p({className:t,children:e,side:s="right",...r}){return o.jsxRuntimeExports.jsxs(m,{children:[o.jsxRuntimeExports.jsx(f,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxRuntimeExports.jsxs(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsxRuntimeExports.jsx(l.XIcon,{className:"size-4"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-1.5 p-4",t),...e})}function g({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:n.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:n.cn("text-foreground font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Sheet=u;exports.SheetClose=x;exports.SheetContent=p;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetTitle=j;exports.SheetTrigger=c; diff --git a/dist/index.cjs41.js b/dist/index.cjs41.js index f2395b98..9a55755b 100644 --- a/dist/index.cjs41.js +++ b/dist/index.cjs41.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),b=require("@radix-ui/react-dialog"),c=require("lucide-react"),o=require("./index.cjs54.js");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=r(s),a=r(b);function d({...e}){return l.createElement(a.Root,{"data-slot":"sheet",...e})}function u({...e}){return l.createElement(a.Trigger,{"data-slot":"sheet-trigger",...e})}function m({...e}){return l.createElement(a.Close,{"data-slot":"sheet-close",...e})}function f({...e}){return l.createElement(a.Portal,{"data-slot":"sheet-portal",...e})}function h({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"sheet-overlay",className:o.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function g({className:e,children:t,side:i="right",...n}){return l.createElement(f,null,l.createElement(h,null),l.createElement(a.Content,{"data-slot":"sheet-content",className:o.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out lib:fixed lib:z-50 lib:flex lib:flex-col lib:gap-4 lib:shadow-lg lib:transition lib:ease-in-out data-[state=closed]:lib:duration-300 data-[state=open]:lib:duration-500",i==="right"&&"data-[state=closed]:lib:slide-out-to-right data-[state=open]:lib:slide-in-from-right lib:inset-y-0 lib:right-0 lib:h-full lib:w-3/4 lib:border-l sm:lib:max-w-sm",i==="left"&&"data-[state=closed]:lib:slide-out-to-left data-[state=open]:lib:slide-in-from-left lib:inset-y-0 lib:left-0 lib:h-full lib:w-3/4 lib:border-r sm:lib:max-w-sm",i==="top"&&"data-[state=closed]:lib:slide-out-to-top data-[state=open]:lib:slide-in-from-top lib:inset-x-0 lib:top-0 lib:h-auto lib:border-b",i==="bottom"&&"data-[state=closed]:lib:slide-out-to-bottom data-[state=open]:lib:slide-in-from-bottom lib:inset-x-0 lib:bottom-0 lib:h-auto lib:border-t",e),...n},t,l.createElement(a.Close,{className:"lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-secondary lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none"},l.createElement(c.XIcon,{className:"lib:size-4"}),l.createElement("span",{className:"lib:sr-only"},"Close"))))}function p({className:e,...t}){return l.createElement("div",{"data-slot":"sheet-header",className:o.cn("lib:flex lib:flex-col lib:gap-1.5 lib:p-4",e),...t})}function S({className:e,...t}){return l.createElement("div",{"data-slot":"sheet-footer",className:o.cn("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4",e),...t})}function x({className:e,...t}){return l.createElement(a.Title,{"data-slot":"sheet-title",className:o.cn("lib:text-foreground lib:font-semibold",e),...t})}function y({className:e,...t}){return l.createElement(a.Description,{"data-slot":"sheet-description",className:o.cn("lib:text-muted-foreground lib:text-sm",e),...t})}exports.Sheet=d;exports.SheetClose=m;exports.SheetContent=g;exports.SheetDescription=y;exports.SheetFooter=S;exports.SheetHeader=p;exports.SheetTitle=x;exports.SheetTrigger=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),k=require("react"),g=require("@radix-ui/react-slot"),_=require("class-variance-authority"),C=require("lucide-react"),I=require("./index.cjs66.js"),i=require("./index.cjs65.js"),z=require("./index.cjs13.js"),O=require("./index.cjs28.js"),T=require("./index.cjs39.js"),f=require("./index.cjs40.js"),R=require("./index.cjs42.js"),w=require("./index.cjs51.js");function D(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=D(k),B="sidebar_state",q=60*60*24*7,A="16rem",G="18rem",H="3rem",P="b",y=u.createContext(null);function h(){const e=u.useContext(y);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function K({defaultOpen:e=!0,open:t,onOpenChange:r,className:s,style:n,children:d,...x}){const l=I.useIsMobile(),[p,c]=u.useState(!1),[v,M]=u.useState(e),m=t??v,S=u.useCallback(o=>{const b=typeof o=="function"?o(m):o;r?r(b):M(b),document.cookie=`${B}=${b}; path=/; max-age=${q}`},[r,m]),j=u.useCallback(()=>l?c(o=>!o):S(o=>!o),[l,S,c]);u.useEffect(()=>{const o=b=>{b.key===P&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),j())};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[j]);const E=m?"expanded":"collapsed",N=u.useMemo(()=>({state:E,open:m,setOpen:S,isMobile:l,openMobile:p,setOpenMobile:c,toggleSidebar:j}),[E,m,S,l,p,c,j]);return a.jsxRuntimeExports.jsx(y.Provider,{value:N,children:a.jsxRuntimeExports.jsx(w.TooltipProvider,{delayDuration:0,children:a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":A,"--sidebar-width-icon":H,...n},className:i.cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...x,children:d})})})}function L({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:s,children:n,...d}){const{isMobile:x,state:l,openMobile:p,setOpenMobile:c}=h();return r==="none"?a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar",className:i.cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...d,children:n}):x?a.jsxRuntimeExports.jsx(f.Sheet,{open:p,onOpenChange:c,...d,children:a.jsxRuntimeExports.jsxs(f.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":G},side:e,children:[a.jsxRuntimeExports.jsxs(f.SheetHeader,{className:"sr-only",children:[a.jsxRuntimeExports.jsx(f.SheetTitle,{children:"Sidebar"}),a.jsxRuntimeExports.jsx(f.SheetDescription,{children:"Displays the mobile sidebar."})]}),a.jsxRuntimeExports.jsx("div",{className:"flex h-full w-full flex-col",children:n})]})}):a.jsxRuntimeExports.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":l==="collapsed"?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-gap",className:i.cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-container",className:i.cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...d,children:a.jsxRuntimeExports.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:n})})]})}function V({className:e,onClick:t,...r}){const{toggleSidebar:s}=h();return a.jsxRuntimeExports.jsxs(z.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i.cn("size-7",e),onClick:n=>{t?.(n),s()},...r,children:[a.jsxRuntimeExports.jsx(C.PanelLeftIcon,{}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function W({className:e,...t}){const{toggleSidebar:r}=h();return a.jsxRuntimeExports.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:i.cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function F({className:e,...t}){return a.jsxRuntimeExports.jsx("main",{"data-slot":"sidebar-inset",className:i.cn("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function U({className:e,...t}){return a.jsxRuntimeExports.jsx(O.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:i.cn("bg-background h-8 w-full shadow-none",e),...t})}function X({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:i.cn("flex flex-col gap-2 p-2",e),...t})}function Y({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i.cn("flex flex-col gap-2 p-2",e),...t})}function J({className:e,...t}){return a.jsxRuntimeExports.jsx(T.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:i.cn("bg-sidebar-border mx-2 w-auto",e),...t})}function Q({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i.cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Z({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i.cn("relative flex w-full min-w-0 flex-col p-2",e),...t})}function $({className:e,asChild:t=!1,...r}){const s=t?g.Slot:"div";return a.jsxRuntimeExports.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:i.cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function ee({className:e,asChild:t=!1,...r}){const s=t?g.Slot:"button";return a.jsxRuntimeExports.jsx(s,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})}function te({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i.cn("w-full text-sm",e),...t})}function ae({className:e,...t}){return a.jsxRuntimeExports.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i.cn("flex w-full min-w-0 flex-col gap-1",e),...t})}function re({className:e,...t}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i.cn("group/menu-item relative",e),...t})}const ie=_.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function se({asChild:e=!1,isActive:t=!1,variant:r="default",size:s="default",tooltip:n,className:d,...x}){const l=e?g.Slot:"button",{isMobile:p,state:c}=h(),v=a.jsxRuntimeExports.jsx(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":t,className:i.cn(ie({variant:r,size:s}),d),...x});return n?(typeof n=="string"&&(n={children:n}),a.jsxRuntimeExports.jsxs(w.Tooltip,{children:[a.jsxRuntimeExports.jsx(w.TooltipTrigger,{asChild:!0,children:v}),a.jsxRuntimeExports.jsx(w.TooltipContent,{side:"right",align:"center",hidden:c!=="collapsed"||p,...n})]})):v}function ne({className:e,asChild:t=!1,showOnHover:r=!1,...s}){const n=t?g.Slot:"button";return a.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...s})}function oe({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:i.cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function de({className:e,showIcon:t=!1,...r}){const s=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return a.jsxRuntimeExports.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:i.cn("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&a.jsxRuntimeExports.jsx(R.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),a.jsxRuntimeExports.jsx(R.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})}function le({className:e,...t}){return a.jsxRuntimeExports.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i.cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function ue({className:e,...t}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i.cn("group/menu-sub-item relative",e),...t})}function ce({asChild:e=!1,size:t="md",isActive:r=!1,className:s,...n}){const d=e?g.Slot:"a";return a.jsxRuntimeExports.jsx(d,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...n})}exports.Sidebar=L;exports.SidebarContent=Q;exports.SidebarFooter=Y;exports.SidebarGroup=Z;exports.SidebarGroupAction=ee;exports.SidebarGroupContent=te;exports.SidebarGroupLabel=$;exports.SidebarHeader=X;exports.SidebarInput=U;exports.SidebarInset=F;exports.SidebarMenu=ae;exports.SidebarMenuAction=ne;exports.SidebarMenuBadge=oe;exports.SidebarMenuButton=se;exports.SidebarMenuItem=re;exports.SidebarMenuSkeleton=de;exports.SidebarMenuSub=le;exports.SidebarMenuSubButton=ce;exports.SidebarMenuSubItem=ue;exports.SidebarProvider=K;exports.SidebarRail=W;exports.SidebarSeparator=J;exports.SidebarTrigger=V;exports.useSidebar=h; diff --git a/dist/index.cjs42.js b/dist/index.cjs42.js index 7ea6b851..a1f275ff 100644 --- a/dist/index.cjs42.js +++ b/dist/index.cjs42.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),g=require("@radix-ui/react-slot"),C=require("class-variance-authority"),I=require("lucide-react"),z=require("./index.cjs55.js"),l=require("./index.cjs54.js"),O=require("./index.cjs14.js"),T=require("./index.cjs29.js"),D=require("./index.cjs40.js"),p=require("./index.cjs41.js"),y=require("./index.cjs43.js"),w=require("./index.cjs52.js");function B(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const t=B(_),A="sidebar_state",q=60*60*24*7,R="16rem",G="18rem",j="3rem",H="b",M=t.createContext(null);function h(){const e=t.useContext(M);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function P({defaultOpen:e=!0,open:i,onOpenChange:a,className:r,style:b,children:o,...m}){const d=z.useIsMobile(),[u,s]=t.useState(!1),[v,N]=t.useState(e),f=i??v,x=t.useCallback(n=>{const c=typeof n=="function"?n(f):n;a?a(c):N(c),document.cookie=`${A}=${c}; path=/; max-age=${q}`},[a,f]),S=t.useCallback(()=>d?s(n=>!n):x(n=>!n),[d,x,s]);t.useEffect(()=>{const n=c=>{c.key===H&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),S())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[S]);const E=f?"expanded":"collapsed",k=t.useMemo(()=>({state:E,open:f,setOpen:x,isMobile:d,openMobile:u,setOpenMobile:s,toggleSidebar:S}),[E,f,x,d,u,s,S]);return t.createElement(M.Provider,{value:k},t.createElement(w.TooltipProvider,{delayDuration:0},t.createElement("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":R,"--sidebar-width-icon":j,...b},className:l.cn("lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full",r),...m},o)))}function K({side:e="left",variant:i="sidebar",collapsible:a="offcanvas",className:r,children:b,...o}){const{isMobile:m,state:d,openMobile:u,setOpenMobile:s}=h();return a==="none"?t.createElement("div",{"data-slot":"sidebar",className:l.cn("lib:bg-sidebar lib:text-sidebar-foreground lib:flex lib:h-full lib:w-(--sidebar-width) lib:flex-col",r),...o},b):m?t.createElement(p.Sheet,{open:u,onOpenChange:s,...o},t.createElement(p.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden",style:{"--sidebar-width":G},side:e},t.createElement(p.SheetHeader,{className:"lib:sr-only"},t.createElement(p.SheetTitle,null,"Sidebar"),t.createElement(p.SheetDescription,null,"Displays the mobile sidebar.")),t.createElement("div",{className:"lib:flex lib:h-full lib:w-full lib:flex-col"},b))):t.createElement("div",{className:"lib:group lib:peer lib:text-sidebar-foreground lib:hidden md:lib:block","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":i,"data-side":e,"data-slot":"sidebar"},t.createElement("div",{"data-slot":"sidebar-gap",className:l.cn("lib:relative lib:w-(--sidebar-width) lib:bg-transparent lib:transition-[width] lib:duration-200 lib:ease-linear","group-data-[collapsible=offcanvas]:lib:w-0","group-data-[side=right]:lib:rotate-180",i==="floating"||i==="inset"?"group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon)")}),t.createElement("div",{"data-slot":"sidebar-container",className:l.cn("lib:fixed lib:inset-y-0 lib:z-10 lib:hidden lib:h-svh lib:w-(--sidebar-width) lib:transition-[left,right,width] lib:duration-200 lib:ease-linear md:lib:flex",e==="left"?"lib:left-0 group-data-[collapsible=offcanvas]:lib:left-[calc(var(--sidebar-width)*-1)]":"lib:right-0 group-data-[collapsible=offcanvas]:lib:right-[calc(var(--sidebar-width)*-1)]",i==="floating"||i==="inset"?"lib:p-2 group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon) group-data-[side=left]:lib:border-r group-data-[side=right]:lib:border-l",r),...o},t.createElement("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"lib:bg-sidebar group-data-[variant=floating]:lib:border-sidebar-border lib:flex lib:h-full lib:w-full lib:flex-col group-data-[variant=floating]:lib:rounded-lg group-data-[variant=floating]:lib:border group-data-[variant=floating]:lib:shadow-sm"},b)))}function L({className:e,onClick:i,...a}){const{toggleSidebar:r}=h();return t.createElement(O.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:l.cn("lib:size-7",e),onClick:b=>{i?.(b),r()},...a},t.createElement(I.PanelLeftIcon,null),t.createElement("span",{className:"lib:sr-only"},"Toggle Sidebar"))}function V({className:e,...i}){const{toggleSidebar:a}=h();return t.createElement("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:l.cn("hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex","in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2",e),...i})}function W({className:e,...i}){return t.createElement("main",{"data-slot":"sidebar-inset",className:l.cn("lib:bg-background lib:relative lib:flex lib:w-full lib:flex-1 lib:flex-col","md:peer-data-[variant=inset]:lib:m-2 md:peer-data-[variant=inset]:lib:ml-0 md:peer-data-[variant=inset]:lib:rounded-xl md:peer-data-[variant=inset]:lib:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:lib:ml-2",e),...i})}function F({className:e,...i}){return t.createElement(T.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:l.cn("lib:bg-background lib:h-8 lib:w-full lib:shadow-none",e),...i})}function U({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l.cn("lib:flex lib:flex-col lib:gap-2 lib:p-2",e),...i})}function X({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l.cn("lib:flex lib:flex-col lib:gap-2 lib:p-2",e),...i})}function Y({className:e,...i}){return t.createElement(D.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:l.cn("lib:bg-sidebar-border lib:mx-2 lib:w-auto",e),...i})}function J({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l.cn("lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden",e),...i})}function Q({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l.cn("lib:relative lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:p-2",e),...i})}function Z({className:e,asChild:i=!1,...a}){const r=i?g.Slot:"div";return t.createElement(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l.cn("lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0",e),...a})}function $({className:e,asChild:i=!1,...a}){const r=i?g.Slot:"button";return t.createElement(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","after:lib:absolute after:lib:-inset-2 md:after:lib:hidden","group-data-[collapsible=icon]:lib:hidden",e),...a})}function ee({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l.cn("lib:w-full lib:text-sm",e),...i})}function ie({className:e,...i}){return t.createElement("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l.cn("lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:gap-1",e),...i})}function te({className:e,...i}){return t.createElement("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l.cn("lib:group/menu-item lib:relative",e),...i})}const ae=C.cva("lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0",{variants:{variant:{default:"hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground",outline:"lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"lib:h-8 lib:text-sm",sm:"lib:h-7 lib:text-xs",lg:"lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function le({asChild:e=!1,isActive:i=!1,variant:a="default",size:r="default",tooltip:b,className:o,...m}){const d=e?g.Slot:"button",{isMobile:u,state:s}=h(),v=t.createElement(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":i,className:l.cn(ae({variant:a,size:r}),o),...m});return b?(typeof b=="string"&&(b={children:b}),t.createElement(w.Tooltip,null,t.createElement(w.TooltipTrigger,{asChild:!0},v),t.createElement(w.TooltipContent,{side:"right",align:"center",hidden:s!=="collapsed"||u,...b}))):v}function re({className:e,asChild:i=!1,showOnHover:a=!1,...r}){const b=i?g.Slot:"button";return t.createElement(b,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","after:lib:absolute after:lib:-inset-2 md:after:lib:hidden","lib:peer-data-[size=sm]/menu-button:top-1","lib:peer-data-[size=default]/menu-button:top-1.5","lib:peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:lib:hidden",a&&"lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0",e),...r})}function be({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:l.cn("lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none","lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","lib:peer-data-[size=sm]/menu-button:top-1","lib:peer-data-[size=default]/menu-button:top-1.5","lib:peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:lib:hidden",e),...i})}function ne({className:e,showIcon:i=!1,...a}){const r=t.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return t.createElement("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l.cn("lib:flex lib:h-8 lib:items-center lib:gap-2 lib:rounded-md lib:px-2",e),...a},i&&t.createElement(y.Skeleton,{className:"lib:size-4 lib:rounded-md","data-sidebar":"menu-skeleton-icon"}),t.createElement(y.Skeleton,{className:"lib:h-4 lib:max-w-(--skeleton-width) lib:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}}))}function oe({className:e,...i}){return t.createElement("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:l.cn("lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5","group-data-[collapsible=icon]:lib:hidden",e),...i})}function de({className:e,...i}){return t.createElement("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:l.cn("lib:group/menu-sub-item lib:relative",e),...i})}function se({asChild:e=!1,size:i="md",isActive:a=!1,className:r,...b}){const o=e?g.Slot:"a";return t.createElement(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":i,"data-active":a,className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground",i==="sm"&&"lib:text-xs",i==="md"&&"lib:text-sm","group-data-[collapsible=icon]:lib:hidden",r),...b})}exports.Sidebar=K;exports.SidebarContent=J;exports.SidebarFooter=X;exports.SidebarGroup=Q;exports.SidebarGroupAction=$;exports.SidebarGroupContent=ee;exports.SidebarGroupLabel=Z;exports.SidebarHeader=U;exports.SidebarInput=F;exports.SidebarInset=W;exports.SidebarMenu=ie;exports.SidebarMenuAction=re;exports.SidebarMenuBadge=be;exports.SidebarMenuButton=le;exports.SidebarMenuItem=te;exports.SidebarMenuSkeleton=ne;exports.SidebarMenuSub=oe;exports.SidebarMenuSubButton=se;exports.SidebarMenuSubItem=de;exports.SidebarProvider=P;exports.SidebarRail=V;exports.SidebarSeparator=Y;exports.SidebarTrigger=L;exports.useSidebar=h; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),s=require("./index.cjs65.js");function o({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:s.cn("bg-accent animate-pulse rounded-md",e),...t})}exports.Skeleton=o; diff --git a/dist/index.cjs43.js b/dist/index.cjs43.js index bf207a81..db03b52f 100644 --- a/dist/index.cjs43.js +++ b/dist/index.cjs43.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs54.js");function n({className:e,...t}){return React.createElement("div",{"data-slot":"skeleton",className:l.cn("lib:bg-accent lib:animate-pulse lib:rounded-md",e),...t})}exports.Skeleton=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),b=require("react"),m=require("@radix-ui/react-slider"),s=require("./index.cjs65.js");function l(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const f=l(b),a=l(m);function h({className:r,defaultValue:e,value:t,min:i=0,max:n=100,...c}){const d=f.useMemo(()=>Array.isArray(t)?t:Array.isArray(e)?e:[i,n],[t,e,i,n]);return o.jsxRuntimeExports.jsxs(a.Root,{"data-slot":"slider",defaultValue:e,value:t,min:i,max:n,className:s.cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...c,children:[o.jsxRuntimeExports.jsx(a.Track,{"data-slot":"slider-track",className:s.cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:o.jsxRuntimeExports.jsx(a.Range,{"data-slot":"slider-range",className:s.cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(g,u)=>o.jsxRuntimeExports.jsx(a.Thumb,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},u))]})}exports.Slider=h; diff --git a/dist/index.cjs44.js b/dist/index.cjs44.js index 39155226..eb5734ce 100644 --- a/dist/index.cjs44.js +++ b/dist/index.cjs44.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),f=require("@radix-ui/react-slider"),n=require("./index.cjs54.js");function b(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return i.default=t,Object.freeze(i)}const r=b(u),a=b(f);function m({className:t,defaultValue:i,value:e,min:l=0,max:o=100,...c}){const s=r.useMemo(()=>Array.isArray(e)?e:Array.isArray(i)?i:[l,o],[e,i,l,o]);return r.createElement(a.Root,{"data-slot":"slider",defaultValue:i,value:e,min:l,max:o,className:n.cn("lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col",t),...c},r.createElement(a.Track,{"data-slot":"slider-track",className:n.cn("lib:bg-muted lib:relative lib:grow lib:overflow-hidden lib:rounded-full data-[orientation=horizontal]:lib:h-1.5 data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-1.5")},r.createElement(a.Range,{"data-slot":"slider-range",className:n.cn("lib:bg-primary lib:absolute data-[orientation=horizontal]:lib:h-full data-[orientation=vertical]:lib:w-full")})),Array.from({length:s.length},(g,d)=>r.createElement(a.Thumb,{"data-slot":"slider-thumb",key:d,className:"lib:border-primary lib:bg-background lib:ring-ring/50 lib:block lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-sm lib:transition-[color,box-shadow] hover:lib:ring-4 focus-visible:lib:ring-4 focus-visible:lib:outline-hidden disabled:lib:pointer-events-none disabled:lib:opacity-50"})))}exports.Slider=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),t=require("next-themes"),s=require("sonner"),n=({...e})=>{const{theme:r="system"}=t.useTheme();return o.jsxRuntimeExports.jsx(s.Toaster,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=n; diff --git a/dist/index.cjs45.js b/dist/index.cjs45.js index 41868bdd..42f22fcc 100644 --- a/dist/index.cjs45.js +++ b/dist/index.cjs45.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("next-themes"),t=require("sonner"),s=({...e})=>{const{theme:r="system"}=o.useTheme();return React.createElement(t.Toaster,{theme:r,className:"lib:toaster lib:group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),c=require("@radix-ui/react-switch"),i=require("./index.cjs65.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=o(c);function d({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"switch",className:i.cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsxRuntimeExports.jsx(s.Thumb,{"data-slot":"switch-thumb",className:i.cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}exports.Switch=d; diff --git a/dist/index.cjs46.js b/dist/index.cjs46.js index 2e1fe50f..1a12c8f6 100644 --- a/dist/index.cjs46.js +++ b/dist/index.cjs46.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),o=require("@radix-ui/react-switch"),a=require("./index.cjs54.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=c(b),n=c(o);function s({className:e,...t}){return l.createElement(n.Root,{"data-slot":"switch",className:a.cn("lib:peer data-[state=checked]:lib:bg-primary data-[state=unchecked]:lib:bg-input focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 dark:data-[state=unchecked]:lib:bg-input/80 lib:inline-flex lib:h-[1.15rem] lib:w-8 lib:shrink-0 lib:items-center lib:rounded-full lib:border lib:border-transparent lib:shadow-xs lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...t},l.createElement(n.Thumb,{"data-slot":"switch-thumb",className:a.cn("lib:bg-background dark:data-[state=unchecked]:lib:bg-foreground dark:data-[state=checked]:lib:bg-primary-foreground lib:pointer-events-none lib:block lib:size-4 lib:rounded-full lib:ring-0 lib:transition-transform data-[state=checked]:lib:translate-x-[calc(100%-2px)] data-[state=unchecked]:lib:translate-x-0")}))}exports.Switch=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),o=require("./index.cjs65.js");function l({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("w-full caption-bottom text-sm",t),...e})})}function r({className:t,...e}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",t),...e})}function s({className:t,...e}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",t),...e})}function n({className:t,...e}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",t),...e})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function d({className:t,...e}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function i({className:t,...e}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground mt-4 text-sm",t),...e})}exports.Table=l;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=b;exports.TableHeader=r;exports.TableRow=c; diff --git a/dist/index.cjs47.js b/dist/index.cjs47.js index 3b89a918..50602666 100644 --- a/dist/index.cjs47.js +++ b/dist/index.cjs47.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),a=require("./index.cjs54.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=n(b);function i({className:e,...t}){return l.createElement("div",{"data-slot":"table-container",className:"lib:relative lib:w-full lib:overflow-x-auto"},l.createElement("table",{"data-slot":"table",className:a.cn("lib:w-full lib:caption-bottom lib:text-sm",e),...t}))}function c({className:e,...t}){return l.createElement("thead",{"data-slot":"table-header",className:a.cn("[&_tr]:lib:border-b",e),...t})}function s({className:e,...t}){return l.createElement("tbody",{"data-slot":"table-body",className:a.cn("[&_tr:last-child]:lib:border-0",e),...t})}function d({className:e,...t}){return l.createElement("tfoot",{"data-slot":"table-footer",className:a.cn("lib:bg-muted/50 lib:border-t lib:font-medium [&>tr]:last:lib:border-b-0",e),...t})}function u({className:e,...t}){return l.createElement("tr",{"data-slot":"table-row",className:a.cn("hover:lib:bg-muted/50 data-[state=selected]:lib:bg-muted lib:border-b lib:transition-colors",e),...t})}function m({className:e,...t}){return l.createElement("th",{"data-slot":"table-head",className:a.cn("lib:text-foreground lib:h-10 lib:px-2 lib:text-left lib:align-middle lib:font-medium lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]",e),...t})}function f({className:e,...t}){return l.createElement("td",{"data-slot":"table-cell",className:a.cn("lib:p-2 lib:align-middle lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]",e),...t})}function p({className:e,...t}){return l.createElement("caption",{"data-slot":"table-caption",className:a.cn("lib:text-muted-foreground lib:mt-4 lib:text-sm",e),...t})}exports.Table=i;exports.TableBody=s;exports.TableCaption=p;exports.TableCell=f;exports.TableFooter=d;exports.TableHead=m;exports.TableHeader=c;exports.TableRow=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),o=require("@radix-ui/react-tabs"),r=require("./index.cjs65.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const i=c(o);function u({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Root,{"data-slot":"tabs",className:r.cn("flex flex-col gap-2",t),...e})}function l({className:t,...e}){return n.jsxRuntimeExports.jsx(i.List,{"data-slot":"tabs-list",className:r.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...e})}function d({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Trigger,{"data-slot":"tabs-trigger",className:r.cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function b({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Content,{"data-slot":"tabs-content",className:r.cn("flex-1 outline-none",t),...e})}exports.Tabs=u;exports.TabsContent=b;exports.TabsList=l;exports.TabsTrigger=d; diff --git a/dist/index.cjs48.js b/dist/index.cjs48.js index d5fbe3ea..36157d12 100644 --- a/dist/index.cjs48.js +++ b/dist/index.cjs48.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),o=require("@radix-ui/react-tabs"),l=require("./index.cjs54.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const n=b(s),a=b(o);function c({className:e,...t}){return n.createElement(a.Root,{"data-slot":"tabs",className:l.cn("lib:flex lib:flex-col lib:gap-2",e),...t})}function u({className:e,...t}){return n.createElement(a.List,{"data-slot":"tabs-list",className:l.cn("lib:bg-muted lib:text-muted-foreground lib:inline-flex lib:h-9 lib:w-fit lib:items-center lib:justify-center lib:rounded-lg lib:p-[3px]",e),...t})}function d({className:e,...t}){return n.createElement(a.Trigger,{"data-slot":"tabs-trigger",className:l.cn("data-[state=active]:lib:bg-background dark:data-[state=active]:lib:text-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:outline-ring dark:data-[state=active]:lib:border-input dark:data-[state=active]:lib:bg-input/30 lib:text-foreground dark:lib:text-muted-foreground lib:inline-flex lib:h-[calc(100%-1px)] lib:flex-1 lib:items-center lib:justify-center lib:gap-1.5 lib:rounded-md lib:border lib:border-transparent lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:whitespace-nowrap lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=active]:lib:shadow-sm [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...t})}function g({className:e,...t}){return n.createElement(a.Content,{"data-slot":"tabs-content",className:l.cn("lib:flex-1 lib:outline-none",e),...t})}exports.Tabs=c;exports.TabsContent=g;exports.TabsList=u;exports.TabsTrigger=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),i=require("./index.cjs65.js");function a({className:e,...r}){return t.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:i.cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...r})}exports.Textarea=a; diff --git a/dist/index.cjs49.js b/dist/index.cjs49.js index 39386a82..6334c325 100644 --- a/dist/index.cjs49.js +++ b/dist/index.cjs49.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),a=require("./index.cjs54.js");function n(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const b=n(l);function o({className:e,...i}){return b.createElement("textarea",{"data-slot":"textarea",className:a.cn("lib:border-input placeholder:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:flex lib:field-sizing-content lib:min-h-16 lib:w-full lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm",e),...i})}exports.Textarea=o; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),g=require("react"),m=require("@radix-ui/react-toggle-group"),s=require("./index.cjs65.js"),p=require("./index.cjs50.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const l=u(g),c=u(m),d=l.createContext({size:"default",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(c.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=l.useContext(d);return i.jsxRuntimeExports.jsx(c.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x; diff --git a/dist/index.cjs5.js b/dist/index.cjs5.js index 51715e0a..5b22c924 100644 --- a/dist/index.cjs5.js +++ b/dist/index.cjs5.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs4.js"),e=require("react"),u=require("./index.cjs53.js"),l=({children:r,defaultScheme:t})=>e.createElement(o.AppThemeProvider,{defaultScheme:t||void 0},e.createElement(u.default,null,r));exports.default=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),n=require("react"),t=n.createContext(void 0),i=({linkComponent:e,children:o})=>r.jsxRuntimeExports.jsx(t.Provider,{value:e,children:o}),s=()=>{const e=n.useContext(t);if(!e)throw new Error("useLinkComponent must be used within a LinkProvider");return e};exports.LinkContext=t;exports.LinkProvider=i;exports.useLinkComponent=s; diff --git a/dist/index.cjs50.js b/dist/index.cjs50.js index 0c30822e..5f8f3c3f 100644 --- a/dist/index.cjs50.js +++ b/dist/index.cjs50.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),d=require("@radix-ui/react-toggle-group"),l=require("./index.cjs54.js"),b=require("./index.cjs51.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=u(g),s=u(d),c=i.createContext({size:"default",variant:"default"});function m({className:t,variant:o,size:e,children:r,...n}){return i.createElement(s.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:l.cn("lib:group/toggle-group lib:flex lib:w-fit lib:items-center lib:rounded-md data-[variant=outline]:lib:shadow-xs",t),...n},i.createElement(c.Provider,{value:{variant:o,size:e}},r))}function f({className:t,children:o,variant:e,size:r,...n}){const a=i.useContext(c);return i.createElement(s.Item,{"data-slot":"toggle-group-item","data-variant":a.variant||e,"data-size":a.size||r,className:l.cn(b.toggleVariants({variant:a.variant||e,size:a.size||r}),"lib:min-w-0 lib:flex-1 lib:shrink-0 lib:rounded-none lib:shadow-none first:lib:rounded-l-md last:lib:rounded-r-md focus:lib:z-10 focus-visible:lib:z-10 data-[variant=outline]:lib:border-l-0 data-[variant=outline]:first:lib:border-l",t),...n},o)}exports.ToggleGroup=m;exports.ToggleGroupItem=f; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),o=require("@radix-ui/react-toggle"),s=require("class-variance-authority"),c=require("./index.cjs65.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=u(o),i=s.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:n,size:t,...r}){return a.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle",className:c.cn(i({variant:n,size:t,className:e})),...r})}exports.Toggle=d;exports.toggleVariants=i; diff --git a/dist/index.cjs51.js b/dist/index.cjs51.js index 6d00c703..bab3ef0e 100644 --- a/dist/index.cjs51.js +++ b/dist/index.cjs51.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("@radix-ui/react-toggle"),b=require("class-variance-authority"),s=require("./index.cjs54.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const c=l(a),u=l(o),r=b.cva("lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:rounded-md lib:text-sm lib:font-medium hover:lib:bg-muted hover:lib:text-muted-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=on]:lib:bg-accent data-[state=on]:lib:text-accent-foreground [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 [&_svg]:lib:shrink-0 focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] lib:outline-none lib:transition-[color,box-shadow] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:whitespace-nowrap",{variants:{variant:{default:"lib:bg-transparent",outline:"lib:border lib:border-input lib:bg-transparent lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground"},size:{default:"lib:h-9 lib:px-2 lib:min-w-9",sm:"lib:h-8 lib:px-1.5 lib:min-w-8",lg:"lib:h-10 lib:px-2.5 lib:min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:t,size:i,...n}){return c.createElement(u.Root,{"data-slot":"toggle",className:s.cn(r({variant:t,size:i,className:e})),...n})}exports.Toggle=d;exports.toggleVariants=r; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),a=require("@radix-ui/react-tooltip"),l=require("./index.cjs65.js");function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const r=d(a);function s({delayDuration:t=0,...o}){return e.jsxRuntimeExports.jsx(r.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function p({...t}){return e.jsxRuntimeExports.jsx(s,{children:e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"tooltip",...t})})}function u({...t}){return e.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"tooltip-trigger",...t})}function c({className:t,sideOffset:o=0,children:i,...n}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"tooltip-content",sideOffset:o,className:l.cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[i,e.jsxRuntimeExports.jsx(r.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}exports.Tooltip=p;exports.TooltipContent=c;exports.TooltipProvider=s;exports.TooltipTrigger=u; diff --git a/dist/index.cjs52.js b/dist/index.cjs52.js index 2191c4a2..662eff7d 100644 --- a/dist/index.cjs52.js +++ b/dist/index.cjs52.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=require("@radix-ui/react-tooltip"),s=require("./index.cjs54.js");function a(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const i=a(c),l=a(d);function n({delayDuration:t=0,...e}){return i.createElement(l.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function b({...t}){return i.createElement(n,null,i.createElement(l.Root,{"data-slot":"tooltip",...t}))}function p({...t}){return i.createElement(l.Trigger,{"data-slot":"tooltip-trigger",...t})}function m({className:t,sideOffset:e=0,children:o,...r}){return i.createElement(l.Portal,null,i.createElement(l.Content,{"data-slot":"tooltip-content",sideOffset:e,className:s.cn("lib:bg-primary lib:text-primary-foreground lib:animate-in lib:fade-in-0 lib:zoom-in-95 data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=closed]:lib:zoom-out-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-fit lib:origin-(--radix-tooltip-content-transform-origin) lib:rounded-md lib:px-3 lib:py-1.5 lib:text-xs lib:text-balance",t),...r},o,i.createElement(l.Arrow,{className:"lib:bg-primary lib:fill-primary lib:z-50 lib:size-2.5 lib:translate-y-[calc(-50%_-_2px)] lib:rotate-45 lib:rounded-[2px]"})))}exports.Tooltip=b;exports.TooltipContent=m;exports.TooltipProvider=n;exports.TooltipTrigger=p; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("./index.cjs41.js"),n=require("./index.cjs53.js"),a=require("./index.cjs4.js");function o({userInfo:r,appInfo:s,signOutFn:i,children:u}){return e.jsxRuntimeExports.jsx(a.default,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:e.jsxRuntimeExports.jsxs(t.SidebarProvider,{defaultOpen:!0,children:[e.jsxRuntimeExports.jsx(n.default,{userInfo:r,appInfo:s,signOutFn:i}),e.jsxRuntimeExports.jsxs("main",{className:"w-fit",children:[e.jsxRuntimeExports.jsx(t.SidebarTrigger,{}),u]})]})})}exports.default=o; diff --git a/dist/index.cjs53.js b/dist/index.cjs53.js index 6be09a3b..5cb20c62 100644 --- a/dist/index.cjs53.js +++ b/dist/index.cjs53.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react-loading-skeleton"),l=require("./index.cjs4.js");;/* empty css */const c=({children:e,baseColor:t,highlightColor:o})=>{localStorage.getItem("theme");const{theme:n}=l.default();return React.createElement(r.SkeletonTheme,{baseColor:t||"#000",highlightColor:o||"#c9c9c9"},e)};exports.default=c; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),b=require("react"),t=require("./index.cjs41.js"),n=require("lucide-react"),N=require("./index.cjs83.js"),j=require("./index.cjs84.js"),g=require("./index.cjs10.js"),y=require("@radix-ui/react-avatar"),B=require("./index.cjs85.js"),P=require("./index.cjs5.js"),U=(c,r)=>[{section:"Projects",sectionItems:[{title:"All Projects",url:"/projects",icon:n.SquareTerminal}]},{section:"Organizations",sectionItems:[{title:"All Organizations",url:"/organizations",icon:n.BriefcaseBusiness},{title:"All Deployments",url:"/deployments",icon:n.ServerCog}]},{section:"Settings",sectionItems:[{title:"SSH Keys",url:"/settings",icon:n.KeyRound},{title:"My Account",url:`${c}/account`,target:"blank",onClick:r,icon:n.UserRoundCog}]}];function L({userInfo:c,appInfo:r,currentPath:m,signOutFn:l,...E}){const v=P.useLinkComponent(),{firstName:i,lastName:a,image:p,email:o}=c,S=!!p,u=!!(i&&a),h=u?j.genAvatarBackground(i.charAt(0),a.charAt(0)):j.genAvatarBackground(o.charAt(0),o.charAt(1)),A=u?i.charAt(0).toUpperCase()+a.charAt(0).toUpperCase():o.charAt(0).toUpperCase(),C=S?e.jsxRuntimeExports.jsxs(g.Avatar,{children:[e.jsxRuntimeExports.jsx(g.AvatarImage,{src:p,alt:"user_avatar"}),e.jsxRuntimeExports.jsx(y.AvatarFallback,{children:"Avatar"})]}):e.jsxRuntimeExports.jsx(B.default,{bgColor:h.bgColor,textColor:h.textColor,children:A}),k=u?e.jsxRuntimeExports.jsx("span",{className:"user-name",children:`${i} ${a}`}):e.jsxRuntimeExports.jsx("span",{className:"user-name",children:o}),x=b.useMemo(()=>U(r.kcUrl,l),[r.kcUrl,l]),M=b.useMemo(()=>j.getCurrentPath(x,m||""),[x,m]),f={...r,signOutFn:l};return e.jsxRuntimeExports.jsxs(t.Sidebar,{variant:"sidebar",collapsible:"icon",...E,children:[e.jsxRuntimeExports.jsx(t.SidebarHeader,{children:e.jsxRuntimeExports.jsx(t.SidebarMenu,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsx(N.default,{...f})})})}),e.jsxRuntimeExports.jsx(t.SidebarContent,{children:x.map(d=>e.jsxRuntimeExports.jsxs(t.SidebarGroup,{children:[e.jsxRuntimeExports.jsx(t.SidebarGroupLabel,{children:d.section}),e.jsxRuntimeExports.jsx(t.SidebarGroupContent,{className:"list-none",children:d.sectionItems.map(s=>{const q=s.target==="blank",R=s.onClick;return e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuButton,{asChild:!0,isActive:M===s.url,children:e.jsxRuntimeExports.jsxs(v,{onClick:async()=>{R&&await R()},href:s.url,target:q?"_blank":"_self",children:[e.jsxRuntimeExports.jsx(s.icon,{}),e.jsxRuntimeExports.jsx("span",{children:s.title})]})})},s.title)})})]},d.section))}),e.jsxRuntimeExports.jsx(t.SidebarFooter,{children:e.jsxRuntimeExports.jsx(t.SidebarMenu,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsxs(t.SidebarMenuButton,{size:"lg",children:[C,e.jsxRuntimeExports.jsx("div",{className:"grid flex-1 text-left text-sm leading-tight",children:e.jsxRuntimeExports.jsx("span",{className:"truncate font-light",children:k})})]})})})})]})}exports.default=L; diff --git a/dist/index.cjs54.js b/dist/index.cjs54.js index 8ac276b6..68267287 100644 --- a/dist/index.cjs54.js +++ b/dist/index.cjs54.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),l=require("./index.cjs18.js"),x=require("./index.cjs29.js");function s({label:r,id:t,...i}){return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx(l.Checkbox,{id:t,...i}),e.jsxRuntimeExports.jsx(x.Label,{htmlFor:t,children:r})]})})}s.displayName="CheckboxWithLabel";exports.default=s; diff --git a/dist/index.cjs55.js b/dist/index.cjs55.js index ac97fd4b..74803fab 100644 --- a/dist/index.cjs55.js +++ b/dist/index.cjs55.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(c),i=768;function a(){const[e,n]=r.useState(void 0);return r.useEffect(()=>{const t=window.matchMedia(`(max-width: ${i-1}px)`),o=()=>{n(window.innerWidtht.removeEventListener("change",o)},[]),!!e}exports.useIsMobile=a; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),a=require("./index.cjs15.js"),i=require("class-variance-authority"),l=require("./index.cjs65.js"),r=i.cva("max-w-[160px] border rounded-lg flex flex-col justify-center",{variants:{type:{default:"h-[108px]",withIcon:"h-[125px] gap-2 p-6",stat:"w-[370px] max-w-[370px] h-[140px] gap-3 p-5"}},defaultVariants:{type:"default"}});function x({type:e="default",title:n,content:s}){return t.jsxRuntimeExports.jsxs(a.Card,{className:l.cn(r({type:e})),children:[t.jsxRuntimeExports.jsx(a.CardHeader,{children:t.jsxRuntimeExports.jsx(a.CardTitle,{className:e==="stat"?"font-sans font-light text-sm leading-[1.4] tracking-normal":"font-sans font-medium text-sm leading-[1.5] tracking-normal",children:n})}),t.jsxRuntimeExports.jsx(a.CardContent,{children:e==="stat"?t.jsxRuntimeExports.jsx("section",{className:"font-sans font-normal leading-[1.75] tracking-normal",children:s}):e==="default"?t.jsxRuntimeExports.jsx("p",{className:"text-2xl leading-normal font-bold ml-auto w-max",children:s}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:s})})]})}exports.cardVariants=r;exports.default=x; diff --git a/dist/index.cjs56.js b/dist/index.cjs56.js new file mode 100644 index 00000000..ff55e5bd --- /dev/null +++ b/dist/index.cjs56.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs64.js"),l=require("react"),u=require("./index.cjs55.js"),m=require("class-variance-authority"),d=m.cva("font-sans font-normal text-lg leading-normal tracking-normal text-right",{variants:{transform:{lowercase:"lowercase",capitalize:"capitalize",none:""}},defaultVariants:{transform:"none"}});function o(t){return t.toLowerCase().replace(/\s+/g,"-")}const f=({title:t,value:e,lowercaseValue:n,capitalizeValue:s})=>{const i=l.isValidElement(e);let a="";n&&(a="lowercase"),s&&(a="capitalize");const c=i?r.jsxRuntimeExports.jsx("div",{className:a,"data-cy":o(t),children:e}):r.jsxRuntimeExports.jsx("span",{className:d({transform:n?"lowercase":s?"capitalize":"none"}),"data-cy":o(t),children:e});return r.jsxRuntimeExports.jsx(u.default,{type:"stat",title:t,content:c})};exports.default=f; diff --git a/dist/index.cjs57.js b/dist/index.cjs57.js new file mode 100644 index 00000000..6c2b96af --- /dev/null +++ b/dist/index.cjs57.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),i=require("./index.cjs55.js");function o({name:e,category:s,value:n,img:r}){const a=t.jsxRuntimeExports.jsxs("section",{className:"flex-row justify-items-end font-sans font-normal text-xs leading-[1.25] tracking-normal text-right",children:[r,t.jsxRuntimeExports.jsx("span",{className:"name",children:e}),t.jsxRuntimeExports.jsx("br",{}),t.jsxRuntimeExports.jsx("span",{className:"value",children:n})]});return t.jsxRuntimeExports.jsx(i.default,{type:"withIcon",title:s,content:a})}exports.default=o; diff --git a/dist/index.cjs58.js b/dist/index.cjs58.js new file mode 100644 index 00000000..bdab96a1 --- /dev/null +++ b/dist/index.cjs58.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),c=require("react"),t=require("lucide-react"),j=require("class-variance-authority"),x=require("./index.cjs86.js"),y=j.cva("truncate transition-all duration-300",{variants:{type:{visible:"",hidden:"blur-sm select-none hover:blur-0 hover:select-text",hiddenWithIcon:"",alwaysHidden:"blur-sm select-none"},unblur:{true:"!blur-0 !select-text",false:""}},compoundVariants:[{type:"hiddenWithIcon",unblur:!1,className:"blur-sm select-none"},{type:"hiddenWithIcon",unblur:!0,className:"!blur-0 !select-text"}],defaultVariants:{type:"visible",unblur:!1}}),f=({text:s,width:r,fontSize:m="14px",type:i="visible",withToolTip:d=!1,iconOnly:o=!1})=>{const[p,l]=c.useState(!1),[n,h]=c.useState(!1),g=()=>{navigator.clipboard.writeText(s.toString())},b=()=>{g(),l(!0),setTimeout(()=>l(!1),3500)},a=()=>h(!n),u={maxWidth:r?typeof r=="number"?`${r}px`:r:void 0,fontSize:m,width:o?"max-content":void 0};return e.jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-4 min-w-max justify-between",style:u,children:[!o&&e.jsxRuntimeExports.jsx("span",{className:y({type:i,unblur:n}),style:{maxWidth:u.maxWidth},children:d?e.jsxRuntimeExports.jsx(x.default,{overlayInnerStyle:{width:"300px"},title:s,placement:"bottom",children:e.jsxRuntimeExports.jsx("span",{className:"truncate",children:s})}):s}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:p?e.jsxRuntimeExports.jsx(x.default,{placement:"right",title:"Copied!",children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[e.jsxRuntimeExports.jsx(t.Check,{className:"w-4 h-4 text-green-500"}),i==="hiddenWithIcon"&&(n?e.jsxRuntimeExports.jsx(t.EyeOff,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:a}):e.jsxRuntimeExports.jsx(t.Eye,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:a}))]})}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(t.Copy,{className:"w-4 h-4 text-muted-foreground hover:bg-gray-200 active:bg-gray-300 cursor-pointer","data-cy":"copy-button",onClick:b}),i==="hiddenWithIcon"&&(n?e.jsxRuntimeExports.jsx(t.EyeOff,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:a}):e.jsxRuntimeExports.jsx(t.Eye,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:a}))]})})]})};exports.default=f; diff --git a/dist/index.cjs59.js b/dist/index.cjs59.js new file mode 100644 index 00000000..1677e2e4 --- /dev/null +++ b/dist/index.cjs59.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),h=require("react"),s=require("./index.cjs12.js"),R=require("./index.cjs58.js"),g=require("lucide-react"),b={default:["","project","environment"],orgs:["","organization","project"]},d=({activeKey:a,items:l,type:r,currentSlug:i})=>{const n=r&&["default","orgs"].includes(r)?[...b[r]]:null;return i&&n&&(n[2]=i),e.jsxRuntimeExports.jsx(s.Breadcrumb,{className:"mb-8 text-sm","data-cy":"page-title",children:e.jsxRuntimeExports.jsx(s.BreadcrumbList,{children:l.map((t,o)=>{const x="key"in t?t.key:o,p=a&&a===x,c=n?.[o]??null,m="copyText"in t&&t.copyText&&c,u=t.copyText&&t.copyText.length<15&&c==="organization"?"Org":c,j=e.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col items-start group",children:[u&&e.jsxRuntimeExports.jsx("span",{className:"absolute -top-3 left-0 text-[11px] font-semibold uppercase text-primary pointer-events-none select-none",children:u}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxRuntimeExports.jsx("span",{className:p?"text-foreground":"text-muted-foreground",children:"navOnClick"in t&&t.navOnClick?e.jsxRuntimeExports.jsx("span",{onClick:t.navOnClick,className:"hover:underline cursor-pointer",children:t.title}):t.title}),m&&e.jsxRuntimeExports.jsx("div",{className:"text-primary scale-90 ml-1",children:e.jsxRuntimeExports.jsx(R.default,{text:t.copyText,iconOnly:!0})})]})]});return e.jsxRuntimeExports.jsxs(h.Fragment,{children:[e.jsxRuntimeExports.jsx(s.BreadcrumbItem,{children:e.jsxRuntimeExports.jsx(s.BreadcrumbLink,{asChild:!0,children:j})}),o!==l.length-1&&e.jsxRuntimeExports.jsx(s.BreadcrumbSeparator,{children:e.jsxRuntimeExports.jsx(g.ChevronRight,{className:"w-4 h-4 text-muted-foreground"})})]},x)})})})};d.displayName="Breadcrumb";exports.default=d; diff --git a/dist/index.cjs6.js b/dist/index.cjs6.js index 0d4cdd56..7502b90d 100644 --- a/dist/index.cjs6.js +++ b/dist/index.cjs6.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),n=t.createContext(void 0),r=({linkComponent:e,children:o})=>t.createElement(n.Provider,{value:e},o),i=()=>{const e=t.useContext(n);if(!e)throw new Error("useLinkComponent must be used within a LinkProvider");return e};exports.LinkContext=n;exports.LinkProvider=r;exports.useLinkComponent=i; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),c=require("@radix-ui/react-accordion"),a=require("lucide-react"),i=require("./index.cjs65.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(c);function u({...e}){return o.jsxRuntimeExports.jsx(r.Root,{"data-slot":"accordion",...e})}function l({className:e,...t}){return o.jsxRuntimeExports.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Header,{className:"flex",children:o.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsxRuntimeExports.jsx(a.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function x({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:o.jsxRuntimeExports.jsx("div",{className:i.cn("pt-0 pb-4",e),children:t})})}exports.Accordion=u;exports.AccordionContent=x;exports.AccordionItem=l;exports.AccordionTrigger=m; diff --git a/dist/index.cjs60.js b/dist/index.cjs60.js new file mode 100644 index 00000000..bdbfcfa3 --- /dev/null +++ b/dist/index.cjs60.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),i=require("./index.cjs7.js");function u({title:r,message:o,cancelText:s,onCancel:t,confirmText:x,onConfirm:l,...n}){const a="rest"in arguments&&"open"in n&&"onOpenChange"in n?{open:n.open,onOpenChange:n.onOpenChange}:{};return e.jsxRuntimeExports.jsxs(i.AlertDialog,{...a,children:[e.jsxRuntimeExports.jsx(i.AlertDialogTrigger,{asChild:!0,children:"children"in n?n.children:null}),e.jsxRuntimeExports.jsxs(i.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(i.AlertDialogHeader,{children:[e.jsxRuntimeExports.jsx(i.AlertDialogTitle,{children:r}),e.jsxRuntimeExports.jsx(i.AlertDialogDescription,{children:o})]}),e.jsxRuntimeExports.jsxs(i.AlertDialogFooter,{children:[e.jsxRuntimeExports.jsx(i.AlertDialogCancel,{onClick:()=>{t&&t()},children:s??"Cancel"}),e.jsxRuntimeExports.jsx(i.AlertDialogAction,{onClick:()=>{l&&l()},children:x??"Continue"})]})]})]})}exports.default=u; diff --git a/dist/index.cjs61.js b/dist/index.cjs61.js new file mode 100644 index 00000000..e304841f --- /dev/null +++ b/dist/index.cjs61.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("lucide-react"),r=require("./index.cjs26.js"),s=require("./index.cjs55.js"),a=i=>{if(i.skeleton)return e.jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 animate-pulse",children:Array.from({length:5}).map((c,d)=>e.jsxRuntimeExports.jsx("div",{className:"h-[80px] rounded-xl bg-muted"},d))});const{problems:m,critical:n,high:x,medium:o,low:l}=i,u=()=>n>=1?e.jsxRuntimeExports.jsx(t.Frown,{className:"h-6 w-6 text-rose-500"}):x>=1?e.jsxRuntimeExports.jsx(t.Meh,{className:"h-6 w-6 text-orange-500"}):o>=1||l>=1?e.jsxRuntimeExports.jsx(t.Smile,{className:"h-6 w-6 text-green-500"}):e.jsxRuntimeExports.jsx(t.Smile,{className:"h-6 w-6 text-green-500"});return e.jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-center mx-auto w-fit",children:[e.jsxRuntimeExports.jsx("div",{className:"shrink-0",children:u()}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsxRuntimeExports.jsx("h2",{children:"At a glance"}),e.jsxRuntimeExports.jsxs(r.HoverCard,{children:[e.jsxRuntimeExports.jsx(r.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(t.HelpCircle,{className:"h-4 w-4 text-muted-foreground cursor-pointer"})}),e.jsxRuntimeExports.jsx(r.HoverCardContent,{className:"w-64 text-sm text-muted-foreground",children:"The summary of all the problems is shown here."})]})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4",children:[e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Problems",content:m}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Critical",content:n}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"High",content:x}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Medium",content:o}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Low",content:l})]})]})};a.displayName="LagoonProblemsOverview";exports.default=a; diff --git a/dist/index.cjs62.js b/dist/index.cjs62.js new file mode 100644 index 00000000..9a62cf3c --- /dev/null +++ b/dist/index.cjs62.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("./index.cjs38.js");function a(r){return Array.isArray(r)&&"options"in r[0]}function c({placeholder:r,options:s,disabled:n,...i}){return e.jsxRuntimeExports.jsxs(t.Select,{disabled:n,...i,children:[e.jsxRuntimeExports.jsx(t.SelectTrigger,{className:"w-[266px]",children:e.jsxRuntimeExports.jsx(t.SelectValue,{placeholder:r||"Make a selection"})}),!n&&s&&e.jsxRuntimeExports.jsx(t.SelectContent,{children:a(s)?s.map(l=>e.jsxRuntimeExports.jsxs(t.SelectGroup,{children:[e.jsxRuntimeExports.jsx(t.SelectLabel,{children:l.label}),l.options.map(u=>e.jsxRuntimeExports.jsx(t.SelectItem,{value:String(u.value),children:u.label},u.value))]},l.label)):s.map(l=>e.jsxRuntimeExports.jsx(t.SelectItem,{value:String(l.value),children:l.label},l.value))})]})}exports.default=c; diff --git a/dist/index.cjs63.js b/dist/index.cjs63.js new file mode 100644 index 00000000..34e84098 --- /dev/null +++ b/dist/index.cjs63.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),a=require("./index.cjs29.js"),i=require("./index.cjs28.js"),l=require("class-variance-authority"),o=l.cva("w-full rounded-lg bg-background",{variants:{hasIcon:{true:"pl-8",false:""}}});function c({label:t,placeholder:n="",icon:s,description:r,...u}){return e.jsxRuntimeExports.jsxs("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[e.jsxRuntimeExports.jsx(a.Label,{htmlFor:`${t}-input`,children:t}),e.jsxRuntimeExports.jsxs("div",{className:"relative",children:[s&&e.jsxRuntimeExports.jsx("div",{className:"absolute left-2.5 top-1.5 h-2.5 w-2.5 text-muted-foreground",children:s}),e.jsxRuntimeExports.jsx(i.Input,{className:o({hasIcon:!!s}),id:`${t}-input`,placeholder:n,...u}),r&&e.jsxRuntimeExports.jsx("p",{className:"font-sans font-normal text-sm leading-[1.5] tracking-[0%] text-muted-foreground",children:r})]})]})}exports.default=c; diff --git a/dist/index.cjs64.js b/dist/index.cjs64.js new file mode 100644 index 00000000..16620126 --- /dev/null +++ b/dist/index.cjs64.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs79.js");var t=e.__require();exports.jsxRuntimeExports=t; diff --git a/dist/index.cjs65.js b/dist/index.cjs65.js new file mode 100644 index 00000000..8ac276b6 --- /dev/null +++ b/dist/index.cjs65.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n; diff --git a/dist/index.cjs66.js b/dist/index.cjs66.js new file mode 100644 index 00000000..ac97fd4b --- /dev/null +++ b/dist/index.cjs66.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(c),i=768;function a(){const[e,n]=r.useState(void 0);return r.useEffect(()=>{const t=window.matchMedia(`(max-width: ${i-1}px)`),o=()=>{n(window.innerWidtht.removeEventListener("change",o)},[]),!!e}exports.useIsMobile=a; diff --git a/dist/index.cjs67.js b/dist/index.cjs67.js new file mode 100644 index 00000000..08de5c9d --- /dev/null +++ b/dist/index.cjs67.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs52.js");exports.default=e.default; diff --git a/dist/index.cjs68.js b/dist/index.cjs68.js new file mode 100644 index 00000000..536c67a8 --- /dev/null +++ b/dist/index.cjs68.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs53.js");exports.default=e.default; diff --git a/dist/index.cjs69.js b/dist/index.cjs69.js new file mode 100644 index 00000000..c840c8fc --- /dev/null +++ b/dist/index.cjs69.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs54.js");exports.default=e.default; diff --git a/dist/index.cjs7.js b/dist/index.cjs7.js index 13835a71..475b1862 100644 --- a/dist/index.cjs7.js +++ b/dist/index.cjs7.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@radix-ui/react-accordion"),b=require("lucide-react"),r=require("./index.cjs54.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,c.get?c:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const n=l(a),o=l(s);function d({...e}){return n.createElement(o.Root,{"data-slot":"accordion",...e})}function u({className:e,...t}){return n.createElement(o.Item,{"data-slot":"accordion-item",className:r.cn("lib:border-b last:lib:border-b-0",e),...t})}function m({className:e,children:t,...i}){return n.createElement(o.Header,{className:"lib:flex"},n.createElement(o.Trigger,{"data-slot":"accordion-trigger",className:r.cn("focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 lib:flex lib:flex-1 lib:items-start lib:justify-between lib:gap-4 lib:rounded-md lib:py-4 lib:text-left lib:text-sm lib:font-medium lib:transition-all lib:outline-none hover:lib:underline focus-visible:lib:ring-[3px] disabled:lib:pointer-events-none disabled:lib:opacity-50 [&[data-state=open]>svg]:lib:rotate-180",e),...i},t,n.createElement(b.ChevronDownIcon,{className:"lib:text-muted-foreground lib:pointer-events-none lib:size-4 lib:shrink-0 lib:translate-y-0.5 lib:transition-transform lib:duration-200"})))}function f({className:e,children:t,...i}){return n.createElement(o.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:lib:animate-accordion-up data-[state=open]:lib:animate-accordion-down lib:overflow-hidden lib:text-sm",...i},n.createElement("div",{className:r.cn("lib:pt-0 lib:pb-4",e)},t))}exports.Accordion=d;exports.AccordionContent=f;exports.AccordionItem=u;exports.AccordionTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),u=require("@radix-ui/react-alert-dialog"),r=require("./index.cjs65.js"),i=require("./index.cjs13.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:r.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:r.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:r.cn("text-lg font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:r.cn("text-muted-foreground text-sm",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:r.cn(i.buttonVariants(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:r.cn(i.buttonVariants({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x; diff --git a/dist/index.cjs70.js b/dist/index.cjs70.js new file mode 100644 index 00000000..f8545cf5 --- /dev/null +++ b/dist/index.cjs70.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs55.js");exports.default=e.default; diff --git a/dist/index.cjs71.js b/dist/index.cjs71.js new file mode 100644 index 00000000..42e230b6 --- /dev/null +++ b/dist/index.cjs71.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs56.js");exports.default=e.default; diff --git a/dist/index.cjs72.js b/dist/index.cjs72.js new file mode 100644 index 00000000..568ea1b7 --- /dev/null +++ b/dist/index.cjs72.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs57.js");exports.default=e.default; diff --git a/dist/index.cjs73.js b/dist/index.cjs73.js new file mode 100644 index 00000000..11f74f41 --- /dev/null +++ b/dist/index.cjs73.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs58.js");exports.default=e.default; diff --git a/dist/index.cjs74.js b/dist/index.cjs74.js new file mode 100644 index 00000000..80cf8a42 --- /dev/null +++ b/dist/index.cjs74.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs59.js");exports.default=e.default; diff --git a/dist/index.cjs75.js b/dist/index.cjs75.js new file mode 100644 index 00000000..c94004dc --- /dev/null +++ b/dist/index.cjs75.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs60.js");exports.default=e.default; diff --git a/dist/index.cjs76.js b/dist/index.cjs76.js new file mode 100644 index 00000000..8d45bd2f --- /dev/null +++ b/dist/index.cjs76.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs61.js");exports.default=e.default; diff --git a/dist/index.cjs77.js b/dist/index.cjs77.js new file mode 100644 index 00000000..27939f50 --- /dev/null +++ b/dist/index.cjs77.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs62.js");exports.default=e.default; diff --git a/dist/index.cjs78.js b/dist/index.cjs78.js new file mode 100644 index 00000000..46b62b5d --- /dev/null +++ b/dist/index.cjs78.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs63.js");exports.default=e.default; diff --git a/dist/index.cjs79.js b/dist/index.cjs79.js new file mode 100644 index 00000000..e6b78d62 --- /dev/null +++ b/dist/index.cjs79.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs80.js"),t=require("./index.cjs81.js"),u=require("./index.cjs82.js");var r;function i(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=i; diff --git a/dist/index.cjs8.js b/dist/index.cjs8.js index e969bb20..f06fccf3 100644 --- a/dist/index.cjs8.js +++ b/dist/index.cjs8.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),g=require("@radix-ui/react-alert-dialog"),i=require("./index.cjs54.js"),n=require("./index.cjs14.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=c(b),a=c(g);function u({...e}){return l.createElement(a.Root,{"data-slot":"alert-dialog",...e})}function m({...e}){return l.createElement(a.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function s({...e}){return l.createElement(a.Portal,{"data-slot":"alert-dialog-portal",...e})}function d({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"alert-dialog-overlay",className:i.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function f({className:e,...t}){return l.createElement(s,null,l.createElement(d,null),l.createElement(a.Content,{"data-slot":"alert-dialog-content",className:i.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg",e),...t}))}function D({className:e,...t}){return l.createElement("div",{"data-slot":"alert-dialog-header",className:i.cn("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left",e),...t})}function A({className:e,...t}){return l.createElement("div",{"data-slot":"alert-dialog-footer",className:i.cn("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end",e),...t})}function p({className:e,...t}){return l.createElement(a.Title,{"data-slot":"alert-dialog-title",className:i.cn("lib:text-lg lib:font-semibold",e),...t})}function x({className:e,...t}){return l.createElement(a.Description,{"data-slot":"alert-dialog-description",className:i.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function E({className:e,...t}){return l.createElement(a.Action,{className:i.cn(n.buttonVariants(),e),...t})}function v({className:e,...t}){return l.createElement(a.Cancel,{className:i.cn(n.buttonVariants({variant:"outline"}),e),...t})}exports.AlertDialog=u;exports.AlertDialogAction=E;exports.AlertDialogCancel=v;exports.AlertDialogContent=f;exports.AlertDialogDescription=x;exports.AlertDialogFooter=A;exports.AlertDialogHeader=D;exports.AlertDialogOverlay=d;exports.AlertDialogPortal=s;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),i=require("class-variance-authority"),a=require("./index.cjs65.js"),l=i.cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function n({className:t,variant:e,...s}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert",role:"alert",className:a.cn(l({variant:e}),t),...s})}function c({className:t,...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-title",className:a.cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...e})}function o({className:t,...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-description",className:a.cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...e})}exports.Alert=n;exports.AlertDescription=o;exports.AlertTitle=c; diff --git a/dist/index.cjs80.js b/dist/index.cjs80.js new file mode 100644 index 00000000..6cd11289 --- /dev/null +++ b/dist/index.cjs80.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e; diff --git a/dist/index.cjs81.js b/dist/index.cjs81.js new file mode 100644 index 00000000..9020e84d --- /dev/null +++ b/dist/index.cjs81.js @@ -0,0 +1,9 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs87.js"),R=require("react");/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var p;function a(){if(p)return t.__exports;p=1;var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a; diff --git a/dist/index.cjs82.js b/dist/index.cjs82.js new file mode 100644 index 00000000..c3fdcd63 --- /dev/null +++ b/dist/index.cjs82.js @@ -0,0 +1,22 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs88.js"),ir=require("react");/** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ee;function or(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&function(){var ye=ir,x=Symbol.for("react.element"),_e=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),N=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Re=Symbol.for("react.offscreen"),q=Symbol.iterator,me="@@iterator";function Te(e){if(e===null||typeof e!="object")return null;var r=q&&e[q]||e[me];return typeof r=="function"?r:null}var h=ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&l>=0&&a[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==c[l]){var d=` +`+a[s].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),typeof e=="function"&&P.set(e,d),d}while(s>=1&&l>=0);break}}}finally{W=!1,A.current=u,Fe(),Error.prepareStackTrace=o}var y=e?e.displayName||e.name:"",b=y?O(y):"";return typeof e=="function"&&P.set(e,b),b}function Ie(e,r,t){return ne(e,!1)}function We(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function w(e,r,t){if(e==null)return"";if(typeof e=="function")return ne(e,We(e));if(typeof e=="string")return O(e);switch(e){case k:return O("Suspense");case D:return O("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case S:return Ie(e.render);case C:return w(e.type,r,t);case F:{var n=e,o=n._payload,u=n._init;try{return w(u(o),r,t)}catch{}}}return""}var R=Object.prototype.hasOwnProperty,ae={},ie=h.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=w(e.type,e._source,r?r.type:null);ie.setExtraStackFrame(t)}else ie.setExtraStackFrame(null)}function Ye(e,r,t,n,o){{var u=Function.call.bind(R);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(j(o),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),j(null)),a instanceof Error&&!(a.message in ae)&&(ae[a.message]=!0,j(o),f("Failed %s type: %s",t,a.message),j(null))}}}var $e=Array.isArray;function Y(e){return $e(e)}function Me(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ve(e){try{return oe(e),!1}catch{return!0}}function oe(e){return""+e}function ue(e){if(Ve(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(e)),oe(e)}var se=h.ReactCurrentOwner,Le={key:!0,ref:!0,__self:!0,__source:!0},le,fe;function Ue(e){if(R.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Be(e){if(R.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ke(e,r){typeof e.ref=="string"&&se.current}function Ne(e,r){{var t=function(){le||(le=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function qe(e,r){{var t=function(){fe||(fe=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ge=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Je(e,r,t,n,o){{var u,i={},a=null,c=null;t!==void 0&&(ue(t),a=""+t),Be(r)&&(ue(r.key),a=""+r.key),Ue(r)&&(c=r.ref,Ke(r,o));for(u in r)R.call(r,u)&&!Le.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ne(i,l),c&&qe(i,l)}return Ge(e,a,c,o,n,se.current,i)}}var $=h.ReactCurrentOwner,ce=h.ReactDebugCurrentFrame;function E(e){if(e){var r=e._owner,t=w(e.type,e._source,r?r.type:null);ce.setExtraStackFrame(t)}else ce.setExtraStackFrame(null)}var M;M=!1;function V(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ve(){{if($.current){var e=p($.current.type);if(e)return` + +Check the render method of \``+e+"`."}return""}}function ze(e){return""}var de={};function Xe(e){{var r=ve();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` + +Check the top-level render call using <`+t+">.")}return r}}function pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Xe(r);if(de[t])return;de[t]=!0;var n="";e&&e._owner&&e._owner!==$.current&&(n=" It was passed a child from "+p(e._owner.type)+"."),E(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),E(null)}}function ge(e,r){{if(typeof e!="object")return;if(Y(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Je(e,r,t,o,u);if(l==null)return l;if(i){var d=r.children;if(d!==void 0)if(n)if(Y(d)){for(var y=0;y0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!be[b+L]){var nr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`,L,b,nr,b),be[b+L]=!0}}return e===T?Ze(l):He(l),l}}function Qe(e,r,t){return he(e,r,t,!0)}function er(e,r,t){return he(e,r,t,!1)}var rr=er,tr=Qe;m.__exports.Fragment=T,m.__exports.jsx=rr,m.__exports.jsxs=tr}()),m.__exports}exports.__require=or; diff --git a/dist/index.cjs83.js b/dist/index.cjs83.js new file mode 100644 index 00000000..f0186691 --- /dev/null +++ b/dist/index.cjs83.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("lucide-react"),c=require("next-themes"),s=require("./index.cjs24.js"),d=require("./index.cjs41.js"),l=require("./index.cjs89.js"),m=require("./index.cjs5.js");function j({name:i,version:o,logo:n,signOutFn:x}){const{setTheme:r,theme:a}=c.useTheme(),u=m.useLinkComponent();return e.jsxRuntimeExports.jsxs(s.DropdownMenu,{children:[e.jsxRuntimeExports.jsx(s.DropdownMenuTrigger,{className:"w-full",children:e.jsxRuntimeExports.jsxs(d.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[e.jsxRuntimeExports.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg text-sidebar-primary-foreground",children:e.jsxRuntimeExports.jsx(u,{href:"/projects",children:n||e.jsxRuntimeExports.jsx("img",{src:l.default,className:"size-8"})})}),e.jsxRuntimeExports.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[e.jsxRuntimeExports.jsx("span",{className:"truncate font-semibold",children:i}),e.jsxRuntimeExports.jsx("span",{className:"truncate text-xs",children:o})]}),e.jsxRuntimeExports.jsx(t.ChevronsUpDown,{className:"ml-auto h-4 w-4"})]})}),e.jsxRuntimeExports.jsxs(s.DropdownMenuContent,{className:"w-56",align:"start",side:"right",sideOffset:4,style:{zIndex:9999},children:[a==="dark"?e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>r("light"),children:[e.jsxRuntimeExports.jsx(t.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}):e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>r("dark"),children:[e.jsxRuntimeExports.jsx(t.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>x(),children:[e.jsxRuntimeExports.jsx(t.LogOut,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})]})}exports.default=j; diff --git a/dist/index.cjs84.js b/dist/index.cjs84.js new file mode 100644 index 00000000..a6e4137c --- /dev/null +++ b/dist/index.cjs84.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs64.js");require("react");require("react-highlight-words");const c=(r,n)=>{const a=o=>o.charCodeAt(0)-64,e=o=>Math.round(a(o)*11);let t=e(r)%256,u=e(n)%256,l=Math.round((a(r)+a(n))/2*11)%256;return{bgColor:`rgb(${t}, ${u}, ${l})`,textColor:s(t,u,l)>.5?"#000000":"#FFFFFF"}};function s(r,n,a){const e=[r,n,a].map(t=>(t/=255,t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)));return .2126*e[0]+.7152*e[1]+.0722*e[2]}const g=(r,n)=>r.flatMap(t=>t.sectionItems).find(t=>n.startsWith(t.url))?.url||"";exports.genAvatarBackground=c;exports.getCurrentPath=g; diff --git a/dist/index.cjs85.js b/dist/index.cjs85.js new file mode 100644 index 00000000..5c9fe127 --- /dev/null +++ b/dist/index.cjs85.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./index.cjs64.js"),o=require("class-variance-authority"),i=require("./index.cjs65.js"),l=o.cva("rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs");function a({bgColor:e,textColor:t,className:r,children:u,...s}){return n.jsxRuntimeExports.jsx("div",{...s,className:i.cn(l(),r),style:{backgroundColor:e,color:t},children:u})}exports.default=a; diff --git a/dist/index.cjs86.js b/dist/index.cjs86.js new file mode 100644 index 00000000..55e110ca --- /dev/null +++ b/dist/index.cjs86.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const fe=require("react"),T=require("./index.cjs121.js"),pe=require("./index.cjs122.js"),me=require("./index.cjs123.js"),ve=require("./index.cjs124.js"),ye=require("./index.cjs125.js"),ge=require("./index.cjs126.js"),V=require("./index.cjs127.js"),Ce=require("./index.cjs105.js"),be=require("./index.cjs128.js");require("./index.cjs91.js");const Oe=require("./index.cjs129.js");require("./index.cjs92.js");require("./index.cjs93.js");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const Pe=require("./index.cjs130.js"),Ne=require("./index.cjs131.js"),we=require("./index.cjs132.js"),qe=require("./index.cjs133.js"),he=require("./index.cjs112.js");function xe(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(l,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return l.default=e,Object.freeze(l)}const r=xe(fe);var Se=function(e,l){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var o,t;const{prefixCls:i,openClassName:I,getTooltipContainer:D,overlayClassName:z,color:R,overlayInnerStyle:M,children:f,afterOpenChange:y,afterVisibleChange:$,destroyTooltipOnHide:g,arrow:s=!0,title:u,overlay:C,builtinPlacements:x,arrowPointAtCenter:b=!1,autoAdjustOverflow:k=!0}=e,S=!!s,[,p]=Pe.default(),{getPopupContainer:H,getPrefixCls:_,direction:W}=r.useContext(he.ConfigContext),m=Ce.devUseWarning("Tooltip"),A=r.useRef(null),E=()=>{var n;(n=A.current)===null||n===void 0||n.forceAlign()};r.useImperativeHandle(l,()=>({forceAlign:E,forcePopupAlign:()=>{m.deprecated(!1,"forcePopupAlign","forceAlign"),E()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(n=>{let[a,c]=n;m.deprecated(!(a in e),a,c)}),process.env.NODE_ENV!=="production"&&m(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&m(!s||typeof s=="boolean"||!("arrowPointAtCenter"in s),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[F,L]=me.default(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),O=!u&&!C&&u!==0,Z=n=>{var a,c;L(O?!1:n),O||((a=e.onOpenChange)===null||a===void 0||a.call(e,n),(c=e.onVisibleChange)===null||c===void 0||c.call(e,n))},U=r.useMemo(()=>{var n,a;let c=b;return typeof s=="object"&&(c=(a=(n=s.pointAtCenter)!==null&&n!==void 0?n:s.arrowPointAtCenter)!==null&&a!==void 0?a:b),x||ge.default({arrowPointAtCenter:c,autoAdjustOverflow:k,arrowWidth:S?p.sizePopupArrow:0,borderRadius:p.borderRadius,offset:p.marginXXS})},[b,s,x,p]),P=r.useMemo(()=>u===0?u:C||u||"",[C,u]),X=r.createElement(Oe.NoCompactStyle,null,typeof P=="function"?P():P),{getPopupContainer:B,placement:Y="top",mouseEnterDelay:G=.1,mouseLeaveDelay:J=.1,overlayStyle:K,rootClassName:Q}=e,j=Se(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),d=_("tooltip",i),ee=_(),te=e["data-popover-inject"];let N=F;!("open"in e)&&!("visible"in e)&&O&&(N=!1);const w=r.isValidElement(f)&&!V.isFragment(f)?f:r.createElement("span",null,f),v=w.props,ne=!v.className||typeof v.className=="string"?T.default(v.className,I||`${d}-open`):v.className,[oe,re,ae]=we.default(d,!te),q=qe.parseColor(d,R),le=q.arrowStyle,ie=Object.assign(Object.assign({},M),q.overlayStyle),se=T.default(z,{[`${d}-rtl`]:W==="rtl"},q.className,Q,re,ae),[ce,ue]=ve.useZIndex("Tooltip",j.zIndex),de=r.createElement(pe.default,Object.assign({},j,{zIndex:ce,showArrow:S,placement:Y,mouseEnterDelay:G,mouseLeaveDelay:J,prefixCls:d,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},le),K),getTooltipContainer:B||D||H,ref:A,builtinPlacements:U,overlay:X,visible:N,onVisibleChange:Z,afterVisibleChange:y??$,overlayInnerStyle:ie,arrowContent:r.createElement("span",{className:`${d}-arrow-content`}),motion:{motionName:ye.getTransitionName(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),N?V.cloneElement(w,{className:ne}):w);return oe(r.createElement(be.default.Provider,{value:ue},de))}),h=_e;process.env.NODE_ENV!=="production"&&(h.displayName="Tooltip");h._InternalPanelDoNotUseOrYouWillBeFired=Ne.default;exports.default=h; diff --git a/dist/index.cjs87.js b/dist/index.cjs87.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs87.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs88.js b/dist/index.cjs88.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs88.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs89.js b/dist/index.cjs89.js new file mode 100644 index 00000000..cfe8cb5f --- /dev/null +++ b/dist/index.cjs89.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.8262%2015.3527L30.0001%2022.1537V8.61523L24.1268%2011.6919L17.8262%2015.3527Z'%20fill='url(%23paint0_linear_2241_6387)'/%3e%3cpath%20d='M30%2024.0036L16%2016L11.36%2018.2397L2%2024.0022L16.0087%2032L30%2024.0036Z'%20fill='url(%23paint1_linear_2241_6387)'/%3e%3cpath%20d='M16.6087%2016.4073V0L2%208.19701L2.00455%2024.6154L16.6087%2016.4073Z'%20fill='url(%23paint2_linear_2241_6387)'/%3e%3cpath%20d='M30.0001%207.99624L17.8262%201.23096V14.7694L30.0001%207.99624Z'%20fill='url(%23paint3_linear_2241_6387)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2241_6387'%20x1='22.6449'%20y1='19.9685'%20x2='31.8358'%20y2='10.3738'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.9'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2241_6387'%20x1='21.7839'%20y1='17.1815'%20x2='10.358'%20y2='30.9421'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.75'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2241_6387'%20x1='19.2776'%20y1='2.59742'%20x2='-0.127779'%20y2='22.5405'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.15'%20stop-color='%234578E6'/%3e%3cstop%20offset='0.95'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2241_6387'%20x1='17.8264'%20y1='8.0002'%20x2='30.0003'%20y2='8.0002'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.55'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";exports.default=e; diff --git a/dist/index.cjs9.js b/dist/index.cjs9.js index c717db7c..6f03682f 100644 --- a/dist/index.cjs9.js +++ b/dist/index.cjs9.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("class-variance-authority"),l=require("./index.cjs54.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const r=c(n),b=s.cva("lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current",{variants:{variant:{default:"lib:bg-card lib:text-card-foreground",destructive:"lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90"}},defaultVariants:{variant:"default"}});function o({className:t,variant:e,...i}){return r.createElement("div",{"data-slot":"alert",role:"alert",className:l.cn(b({variant:e}),t),...i})}function u({className:t,...e}){return r.createElement("div",{"data-slot":"alert-title",className:l.cn("lib:col-start-2 lib:line-clamp-1 lib:min-h-4 lib:font-medium lib:tracking-tight",t),...e})}function d({className:t,...e}){return r.createElement("div",{"data-slot":"alert-description",className:l.cn("lib:text-muted-foreground lib:col-start-2 lib:grid lib:justify-items-start lib:gap-1 lib:text-sm [&_p]:lib:leading-relaxed",t),...e})}exports.Alert=o;exports.AlertDescription=d;exports.AlertTitle=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),n=require("@radix-ui/react-aspect-ratio");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const a=c(n);function s({...t}){return i.jsxRuntimeExports.jsx(a.Root,{"data-slot":"aspect-ratio",...t})}exports.AspectRatio=s; diff --git a/dist/index.cjs90.js b/dist/index.cjs90.js new file mode 100644 index 00000000..2d066af0 --- /dev/null +++ b/dist/index.cjs90.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e; diff --git a/dist/index.cjs91.js b/dist/index.cjs91.js new file mode 100644 index 00000000..b39fbacf --- /dev/null +++ b/dist/index.cjs91.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const et=require("react");require("./index.cjs92.js");require("./index.cjs93.js");require("./index.cjs94.js");const I=require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");require("./index.cjs98.js");require("./index.cjs99.js");require("./index.cjs100.js");require("./index.cjs101.js");const tt=require("./index.cjs102.js"),nt=require("./index.cjs103.js"),ot=require("./index.cjs104.js"),O=require("./index.cjs105.js"),rt=require("./index.cjs106.js"),W=require("./index.cjs107.js"),it=require("./index.cjs108.js"),st=require("./index.cjs109.js"),z=require("./index.cjs110.js"),at=require("./index.cjs111.js"),f=require("./index.cjs112.js"),ct=require("./index.cjs113.js"),lt=require("./index.cjs114.js"),ut=require("./index.cjs115.js"),dt=require("./index.cjs116.js"),ft=require("./index.cjs117.js"),gt=require("./index.cjs118.js"),S=require("./index.cjs119.js"),mt=require("./index.cjs120.js");function pt(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(s,a,t.get?t:{enumerable:!0,get:()=>e[a]})}}return s.default=e,Object.freeze(s)}const o=pt(et);var Ct=function(e,s){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,t=Object.getOwnPropertySymbols(e);us.endsWith("Color"))}const bt=e=>{const{prefixCls:s,iconPrefixCls:a,theme:t,holderRender:u}=e;s!==void 0&&($=s),t&&xt(t)&&(process.env.NODE_ENV!=="production"&&O.default(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ct.registerTheme(ht(),t))},Pt=e=>{const{children:s,csp:a,autoInsertSpaceInButton:t,alert:u,anchor:K,form:m,locale:y,componentSize:M,direction:L,space:F,virtual:G,dropdownMatchSelectWidth:w,popupMatchSelectWidth:q,popupOverflow:B,legacyLocale:H,parentContext:p,iconPrefixCls:U,theme:k,componentDisabled:T,segmented:J,statistic:Q,spin:X,calendar:Y,carousel:Z,cascader:ee,collapse:te,typography:ne,checkbox:oe,descriptions:re,divider:ie,drawer:se,skeleton:ae,steps:ce,image:le,layout:ue,list:de,mentions:fe,modal:ge,progress:me,result:pe,slider:Ce,breadcrumb:ve,menu:he,pagination:xe,input:be,textArea:Pe,empty:Oe,badge:ye,radio:qe,rate:Ee,switch:_e,transfer:je,avatar:Se,message:Me,tag:we,table:ke,card:Te,tabs:Ne,timeline:Ve,timePicker:De,upload:Ae,notification:Ie,tree:We,colorPicker:ze,datePicker:Re,rangePicker:$e,flex:Ke,wave:Le,dropdown:Fe,warning:Ge,tour:Be,floatButtonGroup:He}=e,N=o.useCallback((n,i)=>{const{prefixCls:c}=e;if(i)return i;const l=c||p.getPrefixCls("");return n?`${l}-${n}`:l},[p.getPrefixCls,e.prefixCls]),v=U||p.iconPrefixCls||f.defaultIconPrefixCls,h=a||p.csp;mt.default(v,h);const x=dt.default(k,p.theme,{prefixCls:N("")});process.env.NODE_ENV!=="production"&&(j=j||!!x);const E={csp:h,autoInsertSpaceInButton:t,alert:u,anchor:K,locale:y||H,direction:L,space:F,virtual:G,popupMatchSelectWidth:q??w,popupOverflow:B,getPrefixCls:N,iconPrefixCls:v,theme:x,segmented:J,statistic:Q,spin:X,calendar:Y,carousel:Z,cascader:ee,collapse:te,typography:ne,checkbox:oe,descriptions:re,divider:ie,drawer:se,skeleton:ae,steps:ce,image:le,input:be,textArea:Pe,layout:ue,list:de,mentions:fe,modal:ge,progress:me,result:pe,slider:Ce,breadcrumb:ve,menu:he,pagination:xe,empty:Oe,badge:ye,radio:qe,rate:Ee,switch:_e,transfer:je,avatar:Se,message:Me,tag:we,table:ke,card:Te,tabs:Ne,timeline:Ve,timePicker:De,upload:Ae,notification:Ie,tree:We,colorPicker:ze,datePicker:Re,rangePicker:$e,flex:Ke,wave:Le,dropdown:Fe,warning:Ge,tour:Be,floatButtonGroup:He},b=Object.assign({},p);Object.keys(E).forEach(n=>{E[n]!==void 0&&(b[n]=E[n])}),vt.forEach(n=>{const i=e[n];i&&(b[n]=i)});const C=nt.default(()=>b,b,(n,i)=>{const c=Object.keys(n),l=Object.keys(i);return c.length!==l.length||c.some(P=>n[P]!==i[P])}),Ue=o.useMemo(()=>({prefixCls:v,csp:h}),[v,h]);let r=o.createElement(o.Fragment,null,o.createElement(gt.default,{dropdownMatchSelectWidth:w}),s);const V=o.useMemo(()=>{var n,i,c,l;return ot.merge(((n=st.default.Form)===null||n===void 0?void 0:n.defaultValidateMessages)||{},((c=(i=C.locale)===null||i===void 0?void 0:i.Form)===null||c===void 0?void 0:c.defaultValidateMessages)||{},((l=C.form)===null||l===void 0?void 0:l.validateMessages)||{},m?.validateMessages||{})},[C,m?.validateMessages]);Object.keys(V).length>0&&(r=o.createElement(rt.default.Provider,{value:V},r)),y&&(r=o.createElement(W.default,{locale:y,_ANT_MARK__:W.ANT_MARK},r)),r=o.createElement(tt.default.Provider,{value:Ue},r),M&&(r=o.createElement(S.SizeContextProvider,{size:M},r)),r=o.createElement(ft.default,null,r);const Je=o.useMemo(()=>{const n=x||{},{algorithm:i,token:c,components:l,cssVar:P}=n,Qe=Ct(n,["algorithm","token","components","cssVar"]),D=i&&(!Array.isArray(i)||i.length>0)?I.default(i):z.defaultTheme,_={};Object.entries(l||{}).forEach(Xe=>{let[Ye,Ze]=Xe;const d=Object.assign({},Ze);"algorithm"in d&&(d.algorithm===!0?d.theme=D:(Array.isArray(d.algorithm)||typeof d.algorithm=="function")&&(d.theme=I.default(d.algorithm)),delete d.algorithm),_[Ye]=d});const A=Object.assign(Object.assign({},at.default),c);return Object.assign(Object.assign({},Qe),{theme:D,token:A,components:_,override:Object.assign({override:A},_),cssVar:P})},[x]);return k&&(r=o.createElement(z.DesignTokenContext.Provider,{value:Je},r)),C.warning&&(r=o.createElement(O.WarningContext.Provider,{value:C.warning},r)),T!==void 0&&(r=o.createElement(lt.DisabledContextProvider,{disabled:T},r)),o.createElement(f.ConfigContext.Provider,{value:C},r)},g=e=>{const s=o.useContext(f.ConfigContext),a=o.useContext(it.default);return o.createElement(Pt,Object.assign({parentContext:s,legacyLocale:a},e))};g.ConfigContext=f.ConfigContext;g.SizeContext=S.default;g.config=bt;g.useConfig=ut.default;Object.defineProperty(g,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&O.default(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),S.default)});process.env.NODE_ENV!=="production"&&(g.displayName="ConfigProvider");exports.ConfigConsumer=f.ConfigConsumer;exports.ConfigContext=f.ConfigContext;exports.defaultIconPrefixCls=f.defaultIconPrefixCls;exports.default=g;exports.defaultPrefixCls=R; diff --git a/dist/index.cjs92.js b/dist/index.cjs92.js new file mode 100644 index 00000000..2184c880 --- /dev/null +++ b/dist/index.cjs92.js @@ -0,0 +1 @@ +"use strict";const r=require("./index.cjs202.js"),t=require("./index.cjs93.js"),u=require("./index.cjs217.js"),i=require("./index.cjs218.js");require("./index.cjs94.js");require("./index.cjs95.js");require("./index.cjs96.js");require("./index.cjs97.js");var e;e={},r.default(e,i.STYLE_PREFIX,i.extract),r.default(e,t.TOKEN_PREFIX,t.extract),r.default(e,u.CSS_VAR_PREFIX,u.extract); diff --git a/dist/index.cjs93.js b/dist/index.cjs93.js new file mode 100644 index 00000000..0068826c --- /dev/null +++ b/dist/index.cjs93.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./index.cjs171.js"),D=require("./index.cjs144.js"),E=require("./index.cjs156.js"),A=require("./index.cjs219.js"),M=require("./index.cjs163.js"),P=require("react"),f=require("./index.cjs94.js"),v=require("./index.cjs185.js"),j=require("./index.cjs220.js"),L=require("./index.cjs221.js");var w={},F=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",d=new Map;function H(t){d.set(t,(d.get(t)||0)+1)}function J(t,i){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(f.ATTR_TOKEN,'="').concat(t,'"]'));n.forEach(function(a){if(a[f.CSS_IN_JS_INSTANCE]===i){var e;(e=a.parentNode)===null||e===void 0||e.removeChild(a)}})}}var X=0;function G(t,i){d.set(t,(d.get(t)||0)-1);var n=Array.from(d.keys()),a=n.filter(function(e){var u=d.get(e)||0;return u<=0});n.length-a.length>X&&a.forEach(function(e){J(e,i),d.delete(e)})}var I=function(i,n,a,e){var u=a.getDerivativeToken(i),c=E.default(E.default({},u),n);return e&&(c=e(c)),c},N="token";function Q(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=P.useContext(f.default),e=a.cache.instanceId,u=a.container,c=n.salt,T=c===void 0?"":c,p=n.override,k=p===void 0?w:p,m=n.formatToken,y=n.getComputedToken,r=n.cssVar,_=v.memoResult(function(){return Object.assign.apply(Object,[{}].concat(D.default(i)))},i),x=v.flattenToken(_),O=v.flattenToken(k),R=r?v.flattenToken(r):"",V=L.default(N,[T,t.id,x,O,R],function(){var s,o=y?y(_,k,t):I(_,k,t,m),l=E.default({},o),S="";if(r){var h=j.transformToken(o,r.key,{prefix:r.prefix,ignore:r.ignore,unitless:r.unitless,preserve:r.preserve}),K=C.default(h,2);o=K[0],S=K[1]}var g=v.token2key(o,T);o._tokenKey=g,l._tokenKey=v.token2key(l,T);var b=(s=r?.key)!==null&&s!==void 0?s:g;o._themeKey=b,H(b);var q="".concat(F,"-").concat(A.default(g));return o._hashId=q,[o,q,l,S,r?.key||""]},function(s){G(s[0]._themeKey,e)},function(s){var o=C.default(s,4),l=o[0],S=o[3];if(r&&S){var h=M.updateCSS(S,A.default("css-variables-".concat(l._themeKey)),{mark:f.ATTR_MARK,prepend:"queue",attachTo:u,priority:-999});h[f.CSS_IN_JS_INSTANCE]=e,h.setAttribute(f.ATTR_TOKEN,l._themeKey)}});return V}var Y=function(i,n,a){var e=C.default(i,5),u=e[2],c=e[3],T=e[4],p=a||{},k=p.plain;if(!c)return null;var m=u._tokenKey,y=-999,r={"data-rc-order":"prependQueue","data-rc-priority":"".concat(y)},_=v.toStyleStr(c,T,m,r,k);return[y,m,_]};exports.TOKEN_PREFIX=N;exports.default=Q;exports.extract=Y;exports.getComputedToken=I; diff --git a/dist/index.cjs94.js b/dist/index.cjs94.js new file mode 100644 index 00000000..dc2b5879 --- /dev/null +++ b/dist/index.cjs94.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("./index.cjs96.js");const l=require("./index.cjs229.js");function s(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const h=s(f);var _="data-token-hash",o="data-css-hash",T="data-cache-path",n="__cssinjs_instance__";function d(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var a=document.body.querySelectorAll("style[".concat(o,"]"))||[],r=document.head.firstChild;Array.from(a).forEach(function(t){t[n]=t[n]||e,t[n]===e&&document.head.insertBefore(t,r)});var c={};Array.from(document.querySelectorAll("style[".concat(o,"]"))).forEach(function(t){var i=t.getAttribute(o);if(c[i]){if(t[n]===e){var u;(u=t.parentNode)===null||u===void 0||u.removeChild(t)}}else c[i]=!0})}return new l.default(e)}var A=h.createContext({hashPriority:"low",cache:d(),defaultCache:!0});exports.ATTR_CACHE_PATH=T;exports.ATTR_MARK=o;exports.ATTR_TOKEN=_;exports.CSS_IN_JS_INSTANCE=n;exports.createCache=d;exports.default=A; diff --git a/dist/index.cjs95.js b/dist/index.cjs95.js new file mode 100644 index 00000000..bdb4cdcc --- /dev/null +++ b/dist/index.cjs95.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index.cjs97.js"),u=require("./index.cjs230.js");var t=new a.default;function c(r){var e=Array.isArray(r)?r:[r];return t.has(e)||t.set(e,new u.default(e)),t.get(e)}exports.default=c; diff --git a/dist/index.cjs96.js b/dist/index.cjs96.js new file mode 100644 index 00000000..65180870 --- /dev/null +++ b/dist/index.cjs96.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var i={},u=[],d=function(n){u.push(n)};function f(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=u.reduce(function(o,c){return c(o??"","warning")},n);r&&console.error("Warning: ".concat(r))}}function l(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=u.reduce(function(o,c){return c(o??"","note")},n);r&&console.warn("Note: ".concat(r))}}function s(){i={}}function a(e,n,r){!n&&!i[r]&&(e(!1,r),i[r]=!0)}function t(e,n){a(f,e,n)}function p(e,n){a(l,e,n)}t.preMessage=d;t.resetWarned=s;t.noteOnce=p;exports.call=a;exports.default=t;exports.note=l;exports.noteOnce=p;exports.preMessage=d;exports.resetWarned=s;exports.warning=f;exports.warningOnce=t; diff --git a/dist/index.cjs97.js b/dist/index.cjs97.js new file mode 100644 index 00000000..1547d4d9 --- /dev/null +++ b/dist/index.cjs97.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./index.cjs171.js"),g=require("./index.cjs192.js"),p=require("./index.cjs193.js"),o=require("./index.cjs202.js");function y(s,i){if(s.length!==i.length)return!1;for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:!1,n={map:this.cache};return e.forEach(function(c){if(!n)n=void 0;else{var a;n=(a=n)===null||a===void 0||(a=a.map)===null||a===void 0?void 0:a.get(c)}}),(t=n)!==null&&t!==void 0&&t.value&&u&&(n.value[1]=this.cacheCallTimes++),(l=n)===null||l===void 0?void 0:l.value}},{key:"get",value:function(e){var t;return(t=this.internalGet(e,!0))===null||t===void 0?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(e,t){var l=this;if(!this.has(e)){if(this.size()+1>s.MAX_CACHE_SIZE+s.MAX_CACHE_OFFSET){var u=this.keys.reduce(function(r,h){var f=m.default(r,2),v=f[1];return l.internalGet(h)[1]e[t]})}}return n.default=e,Object.freeze(n)}const o=l(i);var a=f.default({},o),u=a.useInsertionEffect,s=function(n,t,r){o.useMemo(n,r),c.default(function(){return t(!0)},r)},d=u?function(e,n,t){return u(function(){return e(),n()},t)}:s;exports.default=d; diff --git a/dist/index.cjs99.js b/dist/index.cjs99.js new file mode 100644 index 00000000..47ad4079 --- /dev/null +++ b/dist/index.cjs99.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./index.cjs156.js"),c=require("./index.cjs96.js"),o=require("react");function s(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const a=s(o);var l=i.default({},a),g=l.useInsertionEffect,p=function(n){var e=[],r=!1;function f(u){if(r){process.env.NODE_ENV!=="production"&&c.warning(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}e.push(u)}return a.useEffect(function(){return r=!1,function(){r=!0,e.length&&e.forEach(function(u){return u()})}},n),f},d=function(){return function(n){n()}},v=typeof g<"u"?p:d;exports.default=v; diff --git a/dist/index.d.ts b/dist/index.d.ts index 457490d4..c624ff82 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,6 +1,5 @@ export { default as Colors } from './_util/colors'; -export { default as useTheme } from './hooks/useTheme'; -export { default as UIThemeProvider } from './providers/__ContextWrapper'; +export { default as ThemeProvider } from './providers/ThemeProvider'; export { LinkProvider as NextLinkProvider, useLinkComponent as useNextLink } from './providers/NextLinkProvider'; export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './components/ui/accordion'; export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './components/ui/alert-dialog'; @@ -24,7 +23,7 @@ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuCont export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from './components/ui/form'; export { HoverCard, HoverCardTrigger, HoverCardContent } from './components/ui/hover-card'; export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from './components/ui/input-otp'; -export { Input } from './components/ui/input'; +export { Input as ShadInput } from './components/ui/input'; export { Label } from './components/ui/label'; export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from './components/ui/menubar'; export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, } from './components/ui/navigation-menu'; @@ -48,4 +47,16 @@ export { Textarea } from './components/ui/textarea'; export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group'; export { Toggle, toggleVariants } from './components/ui/toggle'; export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/ui/tooltip'; +export { default as RootLayout } from './components/RootLayout'; +export { default as Sidenav } from './components/sidenav'; +export { default as CheckboxWithLabel } from './components/Checkbox'; +export { default as StatCard } from './components/StatCard'; +export { default as DetailStat } from './components/DetailStat'; +export { default as KeyFactCard } from './components/KeyFactCard'; +export { default as CopyToClipboard } from './components/CopyToClipboard'; +export { default as NavBreadcrumb } from './components/Breadcrumb'; +export { default as Notification } from './components/Notification'; +export { default as ProblemsOverview } from './components/ProblemsOverview'; +export { default as SelectWithOptions } from './components/Select'; +export { default as Input } from './components/Input'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 5dc1352f..9cf9b60a 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEzG,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACN,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACV,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAElG,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAErG,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjG,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EACN,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EACN,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEzG,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACN,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACV,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAElG,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAErG,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjG,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EACN,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EACN,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAGnG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/index.es.js b/dist/index.es.js index 3268c5e7..caf70523 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,302 +1,324 @@ /* empty css */ import { default as t } from "./index.es3.js"; import { default as n } from "./index.es4.js"; -import { default as l } from "./index.es5.js"; -import { LinkProvider as p, useLinkComponent as m } from "./index.es6.js"; -import { Accordion as g, AccordionContent as b, AccordionItem as C, AccordionTrigger as S } from "./index.es7.js"; -import { AlertDialog as M, AlertDialogAction as s, AlertDialogCancel as D, AlertDialogContent as T, AlertDialogDescription as c, AlertDialogFooter as f, AlertDialogHeader as I, AlertDialogOverlay as P, AlertDialogPortal as v, AlertDialogTitle as w, AlertDialogTrigger as A } from "./index.es8.js"; -import { Alert as L, AlertDescription as F, AlertTitle as G } from "./index.es9.js"; -import { AspectRatio as k } from "./index.es10.js"; -import { Avatar as H, AvatarFallback as N, AvatarImage as y } from "./index.es11.js"; -import { Badge as V, badgeVariants as z } from "./index.es12.js"; -import { Breadcrumb as U, BreadcrumbEllipsis as j, BreadcrumbItem as q, BreadcrumbLink as J, BreadcrumbList as K, BreadcrumbPage as Q, BreadcrumbSeparator as W } from "./index.es13.js"; -import { Button as Y, buttonVariants as Z } from "./index.es14.js"; -import { Calendar as $ } from "./index.es15.js"; -import { Card as re, CardAction as oe, CardContent as te, CardDescription as ae, CardFooter as ne, CardHeader as ie, CardTitle as le } from "./index.es16.js"; -import { Carousel as pe, CarouselContent as me, CarouselItem as de, CarouselNext as ge, CarouselPrevious as be } from "./index.es17.js"; -import { ChartContainer as Se, ChartLegend as xe, ChartLegendContent as Me, ChartStyle as se, ChartTooltip as De, ChartTooltipContent as Te } from "./index.es18.js"; -import { Checkbox as fe } from "./index.es19.js"; -import { Collapsible as Pe, CollapsibleContent as ve, CollapsibleTrigger as we } from "./index.es20.js"; -import { Command as he, CommandDialog as Le, CommandEmpty as Fe, CommandGroup as Ge, CommandInput as Be, CommandItem as ke, CommandList as Re, CommandSeparator as He, CommandShortcut as Ne } from "./index.es21.js"; -import { ContextMenu as Oe, ContextMenuCheckboxItem as Ve, ContextMenuContent as ze, ContextMenuGroup as Ee, ContextMenuItem as Ue, ContextMenuLabel as je, ContextMenuPortal as qe, ContextMenuRadioGroup as Je, ContextMenuRadioItem as Ke, ContextMenuSeparator as Qe, ContextMenuShortcut as We, ContextMenuSub as Xe, ContextMenuSubContent as Ye, ContextMenuSubTrigger as Ze, ContextMenuTrigger as _e } from "./index.es22.js"; -import { Dialog as er, DialogClose as rr, DialogContent as or, DialogDescription as tr, DialogFooter as ar, DialogHeader as nr, DialogOverlay as ir, DialogPortal as lr, DialogTitle as ur, DialogTrigger as pr } from "./index.es23.js"; -import { Drawer as dr, DrawerClose as gr, DrawerContent as br, DrawerDescription as Cr, DrawerFooter as Sr, DrawerHeader as xr, DrawerOverlay as Mr, DrawerPortal as sr, DrawerTitle as Dr, DrawerTrigger as Tr } from "./index.es24.js"; -import { DropdownMenu as fr, DropdownMenuCheckboxItem as Ir, DropdownMenuContent as Pr, DropdownMenuGroup as vr, DropdownMenuItem as wr, DropdownMenuLabel as Ar, DropdownMenuPortal as hr, DropdownMenuRadioGroup as Lr, DropdownMenuRadioItem as Fr, DropdownMenuSeparator as Gr, DropdownMenuShortcut as Br, DropdownMenuSub as kr, DropdownMenuSubContent as Rr, DropdownMenuSubTrigger as Hr, DropdownMenuTrigger as Nr } from "./index.es25.js"; -import { Form as Or, FormControl as Vr, FormDescription as zr, FormField as Er, FormItem as Ur, FormLabel as jr, FormMessage as qr, useFormField as Jr } from "./index.es26.js"; -import { HoverCard as Qr, HoverCardContent as Wr, HoverCardTrigger as Xr } from "./index.es27.js"; -import { InputOTP as Zr, InputOTPGroup as _r, InputOTPSeparator as $r, InputOTPSlot as eo } from "./index.es28.js"; -import { Input as oo } from "./index.es29.js"; -import { Label as ao } from "./index.es30.js"; -import { Menubar as io, MenubarCheckboxItem as lo, MenubarContent as uo, MenubarGroup as po, MenubarItem as mo, MenubarLabel as go, MenubarMenu as bo, MenubarPortal as Co, MenubarRadioGroup as So, MenubarRadioItem as xo, MenubarSeparator as Mo, MenubarShortcut as so, MenubarSub as Do, MenubarSubContent as To, MenubarSubTrigger as co, MenubarTrigger as fo } from "./index.es31.js"; -import { NavigationMenu as Po, NavigationMenuContent as vo, NavigationMenuIndicator as wo, NavigationMenuItem as Ao, NavigationMenuLink as ho, NavigationMenuList as Lo, NavigationMenuTrigger as Fo, NavigationMenuViewport as Go, navigationMenuTriggerStyle as Bo } from "./index.es32.js"; -import { Pagination as Ro, PaginationContent as Ho, PaginationEllipsis as No, PaginationItem as yo, PaginationLink as Oo, PaginationNext as Vo, PaginationPrevious as zo } from "./index.es33.js"; -import { Popover as Uo, PopoverAnchor as jo, PopoverContent as qo, PopoverTrigger as Jo } from "./index.es34.js"; -import { Progress as Qo } from "./index.es35.js"; -import { RadioGroup as Xo, RadioGroupItem as Yo } from "./index.es36.js"; -import { ResizableHandle as _o, ResizablePanel as $o, ResizablePanelGroup as et } from "./index.es37.js"; -import { ScrollArea as ot, ScrollBar as tt } from "./index.es38.js"; -import { Select as nt, SelectContent as it, SelectGroup as lt, SelectItem as ut, SelectLabel as pt, SelectScrollDownButton as mt, SelectScrollUpButton as dt, SelectSeparator as gt, SelectTrigger as bt, SelectValue as Ct } from "./index.es39.js"; -import { Separator as xt } from "./index.es40.js"; -import { Sheet as st, SheetClose as Dt, SheetContent as Tt, SheetDescription as ct, SheetFooter as ft, SheetHeader as It, SheetTitle as Pt, SheetTrigger as vt } from "./index.es41.js"; -import { Sidebar as At, SidebarContent as ht, SidebarFooter as Lt, SidebarGroup as Ft, SidebarGroupAction as Gt, SidebarGroupContent as Bt, SidebarGroupLabel as kt, SidebarHeader as Rt, SidebarInput as Ht, SidebarInset as Nt, SidebarMenu as yt, SidebarMenuAction as Ot, SidebarMenuBadge as Vt, SidebarMenuButton as zt, SidebarMenuItem as Et, SidebarMenuSkeleton as Ut, SidebarMenuSub as jt, SidebarMenuSubButton as qt, SidebarMenuSubItem as Jt, SidebarProvider as Kt, SidebarRail as Qt, SidebarSeparator as Wt, SidebarTrigger as Xt, useSidebar as Yt } from "./index.es42.js"; -import { Skeleton as _t } from "./index.es43.js"; -import { Slider as ea } from "./index.es44.js"; -import { Toaster as oa } from "./index.es45.js"; -import { Switch as aa } from "./index.es46.js"; -import { Table as ia, TableBody as la, TableCaption as ua, TableCell as pa, TableFooter as ma, TableHead as da, TableHeader as ga, TableRow as ba } from "./index.es47.js"; -import { Tabs as Sa, TabsContent as xa, TabsList as Ma, TabsTrigger as sa } from "./index.es48.js"; -import { Textarea as Ta } from "./index.es49.js"; -import { ToggleGroup as fa, ToggleGroupItem as Ia } from "./index.es50.js"; -import { Toggle as va, toggleVariants as wa } from "./index.es51.js"; -import { Tooltip as ha, TooltipContent as La, TooltipProvider as Fa, TooltipTrigger as Ga } from "./index.es52.js"; +import { LinkProvider as l, useLinkComponent as u } from "./index.es5.js"; +import { Accordion as d, AccordionContent as m, AccordionItem as b, AccordionTrigger as g } from "./index.es6.js"; +import { AlertDialog as x, AlertDialogAction as S, AlertDialogCancel as f, AlertDialogContent as s, AlertDialogDescription as M, AlertDialogFooter as c, AlertDialogHeader as D, AlertDialogOverlay as T, AlertDialogPortal as v, AlertDialogTitle as I, AlertDialogTrigger as P } from "./index.es7.js"; +import { Alert as h, AlertDescription as A, AlertTitle as L } from "./index.es8.js"; +import { AspectRatio as G } from "./index.es9.js"; +import { Avatar as k, AvatarFallback as R, AvatarImage as N } from "./index.es10.js"; +import { Badge as y, badgeVariants as O } from "./index.es11.js"; +import { Breadcrumb as z, BreadcrumbEllipsis as E, BreadcrumbItem as W, BreadcrumbLink as K, BreadcrumbList as U, BreadcrumbPage as j, BreadcrumbSeparator as q } from "./index.es12.js"; +import { Button as Q, buttonVariants as X } from "./index.es13.js"; +import { Calendar as Z } from "./index.es14.js"; +import { Card as $, CardAction as ee, CardContent as re, CardDescription as oe, CardFooter as te, CardHeader as ae, CardTitle as ne } from "./index.es15.js"; +import { Carousel as le, CarouselContent as ue, CarouselItem as pe, CarouselNext as de, CarouselPrevious as me } from "./index.es16.js"; +import { ChartContainer as ge, ChartLegend as Ce, ChartLegendContent as xe, ChartStyle as Se, ChartTooltip as fe, ChartTooltipContent as se } from "./index.es17.js"; +import { Checkbox as ce } from "./index.es18.js"; +import { Collapsible as Te, CollapsibleContent as ve, CollapsibleTrigger as Ie } from "./index.es19.js"; +import { Command as we, CommandDialog as he, CommandEmpty as Ae, CommandGroup as Le, CommandInput as Fe, CommandItem as Ge, CommandList as Be, CommandSeparator as ke, CommandShortcut as Re } from "./index.es20.js"; +import { ContextMenu as He, ContextMenuCheckboxItem as ye, ContextMenuContent as Oe, ContextMenuGroup as Ve, ContextMenuItem as ze, ContextMenuLabel as Ee, ContextMenuPortal as We, ContextMenuRadioGroup as Ke, ContextMenuRadioItem as Ue, ContextMenuSeparator as je, ContextMenuShortcut as qe, ContextMenuSub as Je, ContextMenuSubContent as Qe, ContextMenuSubTrigger as Xe, ContextMenuTrigger as Ye } from "./index.es21.js"; +import { Dialog as _e, DialogClose as $e, DialogContent as er, DialogDescription as rr, DialogFooter as or, DialogHeader as tr, DialogOverlay as ar, DialogPortal as nr, DialogTitle as ir, DialogTrigger as lr } from "./index.es22.js"; +import { Drawer as pr, DrawerClose as dr, DrawerContent as mr, DrawerDescription as br, DrawerFooter as gr, DrawerHeader as Cr, DrawerOverlay as xr, DrawerPortal as Sr, DrawerTitle as fr, DrawerTrigger as sr } from "./index.es23.js"; +import { DropdownMenu as cr, DropdownMenuCheckboxItem as Dr, DropdownMenuContent as Tr, DropdownMenuGroup as vr, DropdownMenuItem as Ir, DropdownMenuLabel as Pr, DropdownMenuPortal as wr, DropdownMenuRadioGroup as hr, DropdownMenuRadioItem as Ar, DropdownMenuSeparator as Lr, DropdownMenuShortcut as Fr, DropdownMenuSub as Gr, DropdownMenuSubContent as Br, DropdownMenuSubTrigger as kr, DropdownMenuTrigger as Rr } from "./index.es24.js"; +import { Form as Hr, FormControl as yr, FormDescription as Or, FormField as Vr, FormItem as zr, FormLabel as Er, FormMessage as Wr, useFormField as Kr } from "./index.es25.js"; +import { HoverCard as jr, HoverCardContent as qr, HoverCardTrigger as Jr } from "./index.es26.js"; +import { InputOTP as Xr, InputOTPGroup as Yr, InputOTPSeparator as Zr, InputOTPSlot as _r } from "./index.es27.js"; +import { Input as eo } from "./index.es28.js"; +import { Label as oo } from "./index.es29.js"; +import { Menubar as ao, MenubarCheckboxItem as no, MenubarContent as io, MenubarGroup as lo, MenubarItem as uo, MenubarLabel as po, MenubarMenu as mo, MenubarPortal as bo, MenubarRadioGroup as go, MenubarRadioItem as Co, MenubarSeparator as xo, MenubarShortcut as So, MenubarSub as fo, MenubarSubContent as so, MenubarSubTrigger as Mo, MenubarTrigger as co } from "./index.es30.js"; +import { NavigationMenu as To, NavigationMenuContent as vo, NavigationMenuIndicator as Io, NavigationMenuItem as Po, NavigationMenuLink as wo, NavigationMenuList as ho, NavigationMenuTrigger as Ao, NavigationMenuViewport as Lo, navigationMenuTriggerStyle as Fo } from "./index.es31.js"; +import { Pagination as Bo, PaginationContent as ko, PaginationEllipsis as Ro, PaginationItem as No, PaginationLink as Ho, PaginationNext as yo, PaginationPrevious as Oo } from "./index.es32.js"; +import { Popover as zo, PopoverAnchor as Eo, PopoverContent as Wo, PopoverTrigger as Ko } from "./index.es33.js"; +import { Progress as jo } from "./index.es34.js"; +import { RadioGroup as Jo, RadioGroupItem as Qo } from "./index.es35.js"; +import { ResizableHandle as Yo, ResizablePanel as Zo, ResizablePanelGroup as _o } from "./index.es36.js"; +import { ScrollArea as et, ScrollBar as rt } from "./index.es37.js"; +import { Select as tt, SelectContent as at, SelectGroup as nt, SelectItem as it, SelectLabel as lt, SelectScrollDownButton as ut, SelectScrollUpButton as pt, SelectSeparator as dt, SelectTrigger as mt, SelectValue as bt } from "./index.es38.js"; +import { Separator as Ct } from "./index.es39.js"; +import { Sheet as St, SheetClose as ft, SheetContent as st, SheetDescription as Mt, SheetFooter as ct, SheetHeader as Dt, SheetTitle as Tt, SheetTrigger as vt } from "./index.es40.js"; +import { Sidebar as Pt, SidebarContent as wt, SidebarFooter as ht, SidebarGroup as At, SidebarGroupAction as Lt, SidebarGroupContent as Ft, SidebarGroupLabel as Gt, SidebarHeader as Bt, SidebarInput as kt, SidebarInset as Rt, SidebarMenu as Nt, SidebarMenuAction as Ht, SidebarMenuBadge as yt, SidebarMenuButton as Ot, SidebarMenuItem as Vt, SidebarMenuSkeleton as zt, SidebarMenuSub as Et, SidebarMenuSubButton as Wt, SidebarMenuSubItem as Kt, SidebarProvider as Ut, SidebarRail as jt, SidebarSeparator as qt, SidebarTrigger as Jt, useSidebar as Qt } from "./index.es41.js"; +import { Skeleton as Yt } from "./index.es42.js"; +import { Slider as _t } from "./index.es43.js"; +import { Toaster as ea } from "./index.es44.js"; +import { Switch as oa } from "./index.es45.js"; +import { Table as aa, TableBody as na, TableCaption as ia, TableCell as la, TableFooter as ua, TableHead as pa, TableHeader as da, TableRow as ma } from "./index.es46.js"; +import { Tabs as ga, TabsContent as Ca, TabsList as xa, TabsTrigger as Sa } from "./index.es47.js"; +import { Textarea as sa } from "./index.es48.js"; +import { ToggleGroup as ca, ToggleGroupItem as Da } from "./index.es49.js"; +import { Toggle as va, toggleVariants as Ia } from "./index.es50.js"; +import { Tooltip as wa, TooltipContent as ha, TooltipProvider as Aa, TooltipTrigger as La } from "./index.es51.js"; +import { default as Ga } from "./index.es52.js"; +import { default as ka } from "./index.es53.js"; +import { default as Na } from "./index.es54.js"; +import { default as ya } from "./index.es55.js"; +import { default as Va } from "./index.es56.js"; +import { default as Ea } from "./index.es57.js"; +import { default as Ka } from "./index.es58.js"; +import { default as ja } from "./index.es59.js"; +import { default as Ja } from "./index.es60.js"; +import { default as Xa } from "./index.es61.js"; +import { default as Za } from "./index.es62.js"; +import { default as $a } from "./index.es63.js"; export { - g as Accordion, - b as AccordionContent, - C as AccordionItem, - S as AccordionTrigger, - L as Alert, - F as AlertDescription, - M as AlertDialog, - s as AlertDialogAction, - D as AlertDialogCancel, - T as AlertDialogContent, - c as AlertDialogDescription, - f as AlertDialogFooter, - I as AlertDialogHeader, - P as AlertDialogOverlay, + d as Accordion, + m as AccordionContent, + b as AccordionItem, + g as AccordionTrigger, + h as Alert, + A as AlertDescription, + x as AlertDialog, + S as AlertDialogAction, + f as AlertDialogCancel, + s as AlertDialogContent, + M as AlertDialogDescription, + c as AlertDialogFooter, + D as AlertDialogHeader, + T as AlertDialogOverlay, v as AlertDialogPortal, - w as AlertDialogTitle, - A as AlertDialogTrigger, - G as AlertTitle, - k as AspectRatio, - H as Avatar, - N as AvatarFallback, - y as AvatarImage, - V as Badge, - U as Breadcrumb, - j as BreadcrumbEllipsis, - q as BreadcrumbItem, - J as BreadcrumbLink, - K as BreadcrumbList, - Q as BreadcrumbPage, - W as BreadcrumbSeparator, - Y as Button, - $ as Calendar, - re as Card, - oe as CardAction, - te as CardContent, - ae as CardDescription, - ne as CardFooter, - ie as CardHeader, - le as CardTitle, - pe as Carousel, - me as CarouselContent, - de as CarouselItem, - ge as CarouselNext, - be as CarouselPrevious, - Se as ChartContainer, - xe as ChartLegend, - Me as ChartLegendContent, - se as ChartStyle, - De as ChartTooltip, - Te as ChartTooltipContent, - fe as Checkbox, - Pe as Collapsible, + I as AlertDialogTitle, + P as AlertDialogTrigger, + L as AlertTitle, + G as AspectRatio, + k as Avatar, + R as AvatarFallback, + N as AvatarImage, + y as Badge, + z as Breadcrumb, + E as BreadcrumbEllipsis, + W as BreadcrumbItem, + K as BreadcrumbLink, + U as BreadcrumbList, + j as BreadcrumbPage, + q as BreadcrumbSeparator, + Q as Button, + Z as Calendar, + $ as Card, + ee as CardAction, + re as CardContent, + oe as CardDescription, + te as CardFooter, + ae as CardHeader, + ne as CardTitle, + le as Carousel, + ue as CarouselContent, + pe as CarouselItem, + de as CarouselNext, + me as CarouselPrevious, + ge as ChartContainer, + Ce as ChartLegend, + xe as ChartLegendContent, + Se as ChartStyle, + fe as ChartTooltip, + se as ChartTooltipContent, + ce as Checkbox, + Na as CheckboxWithLabel, + Te as Collapsible, ve as CollapsibleContent, - we as CollapsibleTrigger, + Ie as CollapsibleTrigger, t as Colors, - he as Command, - Le as CommandDialog, - Fe as CommandEmpty, - Ge as CommandGroup, - Be as CommandInput, - ke as CommandItem, - Re as CommandList, - He as CommandSeparator, - Ne as CommandShortcut, - Oe as ContextMenu, - Ve as ContextMenuCheckboxItem, - ze as ContextMenuContent, - Ee as ContextMenuGroup, - Ue as ContextMenuItem, - je as ContextMenuLabel, - qe as ContextMenuPortal, - Je as ContextMenuRadioGroup, - Ke as ContextMenuRadioItem, - Qe as ContextMenuSeparator, - We as ContextMenuShortcut, - Xe as ContextMenuSub, - Ye as ContextMenuSubContent, - Ze as ContextMenuSubTrigger, - _e as ContextMenuTrigger, - er as Dialog, - rr as DialogClose, - or as DialogContent, - tr as DialogDescription, - ar as DialogFooter, - nr as DialogHeader, - ir as DialogOverlay, - lr as DialogPortal, - ur as DialogTitle, - pr as DialogTrigger, - dr as Drawer, - gr as DrawerClose, - br as DrawerContent, - Cr as DrawerDescription, - Sr as DrawerFooter, - xr as DrawerHeader, - Mr as DrawerOverlay, - sr as DrawerPortal, - Dr as DrawerTitle, - Tr as DrawerTrigger, - fr as DropdownMenu, - Ir as DropdownMenuCheckboxItem, - Pr as DropdownMenuContent, + we as Command, + he as CommandDialog, + Ae as CommandEmpty, + Le as CommandGroup, + Fe as CommandInput, + Ge as CommandItem, + Be as CommandList, + ke as CommandSeparator, + Re as CommandShortcut, + He as ContextMenu, + ye as ContextMenuCheckboxItem, + Oe as ContextMenuContent, + Ve as ContextMenuGroup, + ze as ContextMenuItem, + Ee as ContextMenuLabel, + We as ContextMenuPortal, + Ke as ContextMenuRadioGroup, + Ue as ContextMenuRadioItem, + je as ContextMenuSeparator, + qe as ContextMenuShortcut, + Je as ContextMenuSub, + Qe as ContextMenuSubContent, + Xe as ContextMenuSubTrigger, + Ye as ContextMenuTrigger, + Ka as CopyToClipboard, + Va as DetailStat, + _e as Dialog, + $e as DialogClose, + er as DialogContent, + rr as DialogDescription, + or as DialogFooter, + tr as DialogHeader, + ar as DialogOverlay, + nr as DialogPortal, + ir as DialogTitle, + lr as DialogTrigger, + pr as Drawer, + dr as DrawerClose, + mr as DrawerContent, + br as DrawerDescription, + gr as DrawerFooter, + Cr as DrawerHeader, + xr as DrawerOverlay, + Sr as DrawerPortal, + fr as DrawerTitle, + sr as DrawerTrigger, + cr as DropdownMenu, + Dr as DropdownMenuCheckboxItem, + Tr as DropdownMenuContent, vr as DropdownMenuGroup, - wr as DropdownMenuItem, - Ar as DropdownMenuLabel, - hr as DropdownMenuPortal, - Lr as DropdownMenuRadioGroup, - Fr as DropdownMenuRadioItem, - Gr as DropdownMenuSeparator, - Br as DropdownMenuShortcut, - kr as DropdownMenuSub, - Rr as DropdownMenuSubContent, - Hr as DropdownMenuSubTrigger, - Nr as DropdownMenuTrigger, - Or as Form, - Vr as FormControl, - zr as FormDescription, - Er as FormField, - Ur as FormItem, - jr as FormLabel, - qr as FormMessage, - Qr as HoverCard, - Wr as HoverCardContent, - Xr as HoverCardTrigger, - oo as Input, - Zr as InputOTP, - _r as InputOTPGroup, - $r as InputOTPSeparator, - eo as InputOTPSlot, - ao as Label, - io as Menubar, - lo as MenubarCheckboxItem, - uo as MenubarContent, - po as MenubarGroup, - mo as MenubarItem, - go as MenubarLabel, - bo as MenubarMenu, - Co as MenubarPortal, - So as MenubarRadioGroup, - xo as MenubarRadioItem, - Mo as MenubarSeparator, - so as MenubarShortcut, - Do as MenubarSub, - To as MenubarSubContent, - co as MenubarSubTrigger, - fo as MenubarTrigger, - Po as NavigationMenu, + Ir as DropdownMenuItem, + Pr as DropdownMenuLabel, + wr as DropdownMenuPortal, + hr as DropdownMenuRadioGroup, + Ar as DropdownMenuRadioItem, + Lr as DropdownMenuSeparator, + Fr as DropdownMenuShortcut, + Gr as DropdownMenuSub, + Br as DropdownMenuSubContent, + kr as DropdownMenuSubTrigger, + Rr as DropdownMenuTrigger, + Hr as Form, + yr as FormControl, + Or as FormDescription, + Vr as FormField, + zr as FormItem, + Er as FormLabel, + Wr as FormMessage, + jr as HoverCard, + qr as HoverCardContent, + Jr as HoverCardTrigger, + $a as Input, + Xr as InputOTP, + Yr as InputOTPGroup, + Zr as InputOTPSeparator, + _r as InputOTPSlot, + Ea as KeyFactCard, + oo as Label, + ao as Menubar, + no as MenubarCheckboxItem, + io as MenubarContent, + lo as MenubarGroup, + uo as MenubarItem, + po as MenubarLabel, + mo as MenubarMenu, + bo as MenubarPortal, + go as MenubarRadioGroup, + Co as MenubarRadioItem, + xo as MenubarSeparator, + So as MenubarShortcut, + fo as MenubarSub, + so as MenubarSubContent, + Mo as MenubarSubTrigger, + co as MenubarTrigger, + ja as NavBreadcrumb, + To as NavigationMenu, vo as NavigationMenuContent, - wo as NavigationMenuIndicator, - Ao as NavigationMenuItem, - ho as NavigationMenuLink, - Lo as NavigationMenuList, - Fo as NavigationMenuTrigger, - Go as NavigationMenuViewport, - p as NextLinkProvider, - Ro as Pagination, - Ho as PaginationContent, - No as PaginationEllipsis, - yo as PaginationItem, - Oo as PaginationLink, - Vo as PaginationNext, - zo as PaginationPrevious, - Uo as Popover, - jo as PopoverAnchor, - qo as PopoverContent, - Jo as PopoverTrigger, - Qo as Progress, - Xo as RadioGroup, - Yo as RadioGroupItem, - _o as ResizableHandle, - $o as ResizablePanel, - et as ResizablePanelGroup, - ot as ScrollArea, - tt as ScrollBar, - nt as Select, - it as SelectContent, - lt as SelectGroup, - ut as SelectItem, - pt as SelectLabel, - mt as SelectScrollDownButton, - dt as SelectScrollUpButton, - gt as SelectSeparator, - bt as SelectTrigger, - Ct as SelectValue, - xt as Separator, - st as Sheet, - Dt as SheetClose, - Tt as SheetContent, - ct as SheetDescription, - ft as SheetFooter, - It as SheetHeader, - Pt as SheetTitle, + Io as NavigationMenuIndicator, + Po as NavigationMenuItem, + wo as NavigationMenuLink, + ho as NavigationMenuList, + Ao as NavigationMenuTrigger, + Lo as NavigationMenuViewport, + l as NextLinkProvider, + Ja as Notification, + Bo as Pagination, + ko as PaginationContent, + Ro as PaginationEllipsis, + No as PaginationItem, + Ho as PaginationLink, + yo as PaginationNext, + Oo as PaginationPrevious, + zo as Popover, + Eo as PopoverAnchor, + Wo as PopoverContent, + Ko as PopoverTrigger, + Xa as ProblemsOverview, + jo as Progress, + Jo as RadioGroup, + Qo as RadioGroupItem, + Yo as ResizableHandle, + Zo as ResizablePanel, + _o as ResizablePanelGroup, + Ga as RootLayout, + et as ScrollArea, + rt as ScrollBar, + tt as Select, + at as SelectContent, + nt as SelectGroup, + it as SelectItem, + lt as SelectLabel, + ut as SelectScrollDownButton, + pt as SelectScrollUpButton, + dt as SelectSeparator, + mt as SelectTrigger, + bt as SelectValue, + Za as SelectWithOptions, + Ct as Separator, + eo as ShadInput, + St as Sheet, + ft as SheetClose, + st as SheetContent, + Mt as SheetDescription, + ct as SheetFooter, + Dt as SheetHeader, + Tt as SheetTitle, vt as SheetTrigger, - At as Sidebar, - ht as SidebarContent, - Lt as SidebarFooter, - Ft as SidebarGroup, - Gt as SidebarGroupAction, - Bt as SidebarGroupContent, - kt as SidebarGroupLabel, - Rt as SidebarHeader, - Ht as SidebarInput, - Nt as SidebarInset, - yt as SidebarMenu, - Ot as SidebarMenuAction, - Vt as SidebarMenuBadge, - zt as SidebarMenuButton, - Et as SidebarMenuItem, - Ut as SidebarMenuSkeleton, - jt as SidebarMenuSub, - qt as SidebarMenuSubButton, - Jt as SidebarMenuSubItem, - Kt as SidebarProvider, - Qt as SidebarRail, - Wt as SidebarSeparator, - Xt as SidebarTrigger, - _t as Skeleton, - ea as Slider, - aa as Switch, - ia as Table, - la as TableBody, - ua as TableCaption, - pa as TableCell, - ma as TableFooter, - da as TableHead, - ga as TableHeader, - ba as TableRow, - Sa as Tabs, - xa as TabsContent, - Ma as TabsList, - sa as TabsTrigger, - Ta as Textarea, - oa as Toaster, + Pt as Sidebar, + wt as SidebarContent, + ht as SidebarFooter, + At as SidebarGroup, + Lt as SidebarGroupAction, + Ft as SidebarGroupContent, + Gt as SidebarGroupLabel, + Bt as SidebarHeader, + kt as SidebarInput, + Rt as SidebarInset, + Nt as SidebarMenu, + Ht as SidebarMenuAction, + yt as SidebarMenuBadge, + Ot as SidebarMenuButton, + Vt as SidebarMenuItem, + zt as SidebarMenuSkeleton, + Et as SidebarMenuSub, + Wt as SidebarMenuSubButton, + Kt as SidebarMenuSubItem, + Ut as SidebarProvider, + jt as SidebarRail, + qt as SidebarSeparator, + Jt as SidebarTrigger, + ka as Sidenav, + Yt as Skeleton, + _t as Slider, + ya as StatCard, + oa as Switch, + aa as Table, + na as TableBody, + ia as TableCaption, + la as TableCell, + ua as TableFooter, + pa as TableHead, + da as TableHeader, + ma as TableRow, + ga as Tabs, + Ca as TabsContent, + xa as TabsList, + Sa as TabsTrigger, + sa as Textarea, + n as ThemeProvider, + ea as Toaster, va as Toggle, - fa as ToggleGroup, - Ia as ToggleGroupItem, - ha as Tooltip, - La as TooltipContent, - Fa as TooltipProvider, - Ga as TooltipTrigger, - l as UIThemeProvider, - z as badgeVariants, - Z as buttonVariants, - Bo as navigationMenuTriggerStyle, - wa as toggleVariants, - Jr as useFormField, - m as useNextLink, - Yt as useSidebar, - n as useTheme + ca as ToggleGroup, + Da as ToggleGroupItem, + wa as Tooltip, + ha as TooltipContent, + Aa as TooltipProvider, + La as TooltipTrigger, + O as badgeVariants, + X as buttonVariants, + Fo as navigationMenuTriggerStyle, + Ia as toggleVariants, + Kr as useFormField, + u as useNextLink, + Qt as useSidebar }; diff --git a/dist/index.es10.js b/dist/index.es10.js index 45dd6e41..5b1e08b0 100644 --- a/dist/index.es10.js +++ b/dist/index.es10.js @@ -1,7 +1,31 @@ -import * as e from "@radix-ui/react-aspect-ratio"; -function o({ ...t }) { - return /* @__PURE__ */ React.createElement(e.Root, { "data-slot": "aspect-ratio", ...t }); +import { j as e } from "./index.es64.js"; +import * as r from "@radix-ui/react-avatar"; +import { cn as l } from "./index.es65.js"; +function i({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx( + r.Root, + { + "data-slot": "avatar", + className: l("relative flex size-8 shrink-0 overflow-hidden rounded-full", a), + ...t + } + ); +} +function n({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx(r.Image, { "data-slot": "avatar-image", className: l("aspect-square size-full", a), ...t }); +} +function m({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx( + r.Fallback, + { + "data-slot": "avatar-fallback", + className: l("bg-muted flex size-full items-center justify-center rounded-full", a), + ...t + } + ); } export { - o as AspectRatio + i as Avatar, + m as AvatarFallback, + n as AvatarImage }; diff --git a/dist/index.es100.js b/dist/index.es100.js new file mode 100644 index 00000000..0eb22a55 --- /dev/null +++ b/dist/index.es100.js @@ -0,0 +1,22 @@ +function t() { + return !1; +} +var o = !1; +function n() { + return o; +} +const d = process.env.NODE_ENV === "production" ? t : n; +if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") { + var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : null; + if (e && typeof e.webpackHotUpdate == "function") { + var u = e.webpackHotUpdate; + e.webpackHotUpdate = function() { + return o = !0, setTimeout(function() { + o = !1; + }, 0), u.apply(void 0, arguments); + }; + } +} +export { + d as default +}; diff --git a/dist/index.es101.js b/dist/index.es101.js new file mode 100644 index 00000000..82447e0e --- /dev/null +++ b/dist/index.es101.js @@ -0,0 +1,4 @@ +function r(o) { + return o.notSplit = !0, o; +} +r(["borderTop", "borderBottom"]), r(["borderTop"]), r(["borderBottom"]), r(["borderLeft", "borderRight"]), r(["borderLeft"]), r(["borderRight"]); diff --git a/dist/index.es102.js b/dist/index.es102.js new file mode 100644 index 00000000..4a955011 --- /dev/null +++ b/dist/index.es102.js @@ -0,0 +1,5 @@ +import { createContext as t } from "react"; +var o = /* @__PURE__ */ t({}); +export { + o as default +}; diff --git a/dist/index.es103.js b/dist/index.es103.js new file mode 100644 index 00000000..801f30ad --- /dev/null +++ b/dist/index.es103.js @@ -0,0 +1,8 @@ +import * as n from "react"; +function c(u, r, t) { + var e = n.useRef({}); + return (!("value" in e.current) || t(e.current.condition, r)) && (e.current.value = u(), e.current.condition = r), e.current.value; +} +export { + c as default +}; diff --git a/dist/index.es104.js b/dist/index.es104.js new file mode 100644 index 00000000..e6d9b621 --- /dev/null +++ b/dist/index.es104.js @@ -0,0 +1,47 @@ +import y from "./index.es155.js"; +import b from "./index.es156.js"; +import A from "./index.es144.js"; +import j from "./index.es157.js"; +import s from "./index.es158.js"; +function p(e, n, t, r) { + if (!n.length) + return t; + var c = j(n), a = c[0], f = c.slice(1), o; + return !e && typeof a == "number" ? o = [] : Array.isArray(e) ? o = A(e) : o = b({}, e), r && t === void 0 && f.length === 1 ? delete o[a][f[0]] : o[a] = p(o[a], f, t, r), o; +} +function l(e, n, t) { + var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; + return n.length && r && t === void 0 && !s(e, n.slice(0, -1)) ? e : p(e, n, t, r); +} +function O(e) { + return y(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype; +} +function g(e) { + return Array.isArray(e) ? [] : {}; +} +var S = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys; +function x() { + for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++) + n[t] = arguments[t]; + var r = g(n[0]); + return n.forEach(function(c) { + function a(f, o) { + var u = new Set(o), i = s(c, f), m = Array.isArray(i); + if (m || O(i)) { + if (!u.has(i)) { + u.add(i); + var d = s(r, f); + m ? r = l(r, f, []) : (!d || y(d) !== "object") && (r = l(r, f, g(i))), S(i).forEach(function(v) { + a([].concat(A(f), [v]), u); + }); + } + } else + r = l(r, f, i); + } + a([]); + }), r; +} +export { + l as default, + x as merge +}; diff --git a/dist/index.es105.js b/dist/index.es105.js new file mode 100644 index 00000000..d1d8e54d --- /dev/null +++ b/dist/index.es105.js @@ -0,0 +1,38 @@ +import * as c from "react"; +import { warningOnce as u, resetWarned as f } from "./index.es96.js"; +function p() { +} +let n = null; +function l() { + n = null, f(); +} +let d = p; +process.env.NODE_ENV !== "production" && (d = (e, a, t) => { + u(e, `[antd: ${a}] ${t}`), process.env.NODE_ENV === "test" && l(); +}); +const W = /* @__PURE__ */ c.createContext({}), N = process.env.NODE_ENV !== "production" ? (e) => { + const { + strict: a + } = c.useContext(W), t = (s, o, r) => { + if (!s) + if (a === !1 && o === "deprecated") { + const i = n; + n || (n = {}), n[e] = n[e] || [], n[e].includes(r || "") || n[e].push(r || ""), i || console.warn("[antd] There exists deprecated usage in your code:", n); + } else + process.env.NODE_ENV !== "production" && d(s, e, r); + }; + return t.deprecated = (s, o, r, i) => { + t(s, "deprecated", `\`${o}\` is deprecated. Please use \`${r}\` instead.${i ? ` ${i}` : ""}`); + }, t; +} : () => { + const e = () => { + }; + return e.deprecated = p, e; +}, $ = d; +export { + W as WarningContext, + $ as default, + N as devUseWarning, + p as noop, + l as resetWarned +}; diff --git a/dist/index.es106.js b/dist/index.es106.js new file mode 100644 index 00000000..30e4b02f --- /dev/null +++ b/dist/index.es106.js @@ -0,0 +1,5 @@ +import { createContext as e } from "react"; +const a = /* @__PURE__ */ e(void 0); +export { + a as default +}; diff --git a/dist/index.es107.js b/dist/index.es107.js new file mode 100644 index 00000000..43c89789 --- /dev/null +++ b/dist/index.es107.js @@ -0,0 +1,27 @@ +import * as o from "react"; +import { devUseWarning as i } from "./index.es105.js"; +import { changeConfirmLocale as s } from "./index.es159.js"; +import l from "./index.es108.js"; +const d = "internalMark", p = (t) => { + const { + locale: e = {}, + children: a, + _ANT_MARK__: c + } = t; + if (process.env.NODE_ENV !== "production") { + const r = i("LocaleProvider"); + process.env.NODE_ENV !== "production" && r(c === d, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"); + } + o.useEffect(() => s(e && e.Modal), [e]); + const n = o.useMemo(() => Object.assign(Object.assign({}, e), { + exist: !0 + }), [e]); + return /* @__PURE__ */ o.createElement(l.Provider, { + value: n + }, a); +}; +process.env.NODE_ENV !== "production" && (p.displayName = "LocaleProvider"); +export { + d as ANT_MARK, + p as default +}; diff --git a/dist/index.es108.js b/dist/index.es108.js new file mode 100644 index 00000000..38c3f1b3 --- /dev/null +++ b/dist/index.es108.js @@ -0,0 +1,5 @@ +import { createContext as e } from "react"; +const o = /* @__PURE__ */ e(void 0); +export { + o as default +}; diff --git a/dist/index.es109.js b/dist/index.es109.js new file mode 100644 index 00000000..05a54b0a --- /dev/null +++ b/dist/index.es109.js @@ -0,0 +1,60 @@ +const e = "${label} is not a valid ${type}", a = { + Modal: { + okText: "OK", + cancelText: "Cancel", + justOkText: "OK" + }, + Form: { + optional: "(optional)", + defaultValidateMessages: { + default: "Field validation error for ${label}", + required: "Please enter ${label}", + enum: "${label} must be one of [${enum}]", + whitespace: "${label} cannot be a blank character", + date: { + format: "${label} date format is invalid", + parse: "${label} cannot be converted to a date", + invalid: "${label} is an invalid date" + }, + types: { + string: e, + method: e, + array: e, + object: e, + number: e, + date: e, + boolean: e, + integer: e, + float: e, + regexp: e, + email: e, + url: e, + hex: e + }, + string: { + len: "${label} must be ${len} characters", + min: "${label} must be at least ${min} characters", + max: "${label} must be up to ${max} characters", + range: "${label} must be between ${min}-${max} characters" + }, + number: { + len: "${label} must be equal to ${len}", + min: "${label} must be minimum ${min}", + max: "${label} must be maximum ${max}", + range: "${label} must be between ${min}-${max}" + }, + array: { + len: "Must be ${len} ${label}", + min: "At least ${min} ${label}", + max: "At most ${max} ${label}", + range: "The amount of ${label} must be between ${min}-${max}" + }, + pattern: { + mismatch: "${label} does not match the pattern ${pattern}" + } + } + } +}; +export { + a as default +}; diff --git a/dist/index.es11.js b/dist/index.es11.js index 39fbb361..4217136c 100644 --- a/dist/index.es11.js +++ b/dist/index.es11.js @@ -1,41 +1,33 @@ -import * as l from "react"; -import * as t from "@radix-ui/react-avatar"; -import { cn as i } from "./index.es54.js"; -function n({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Root, - { - "data-slot": "avatar", - className: i("lib:relative lib:flex lib:size-8 lib:shrink-0 lib:overflow-hidden lib:rounded-full", a), - ...e +import { j as o } from "./index.es64.js"; +import { Slot as n } from "@radix-ui/react-slot"; +import { cva as s } from "class-variance-authority"; +import { cn as d } from "./index.es65.js"; +const c = s( + "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", + { + variants: { + variant: { + default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90", + secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90", + destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground" + } + }, + defaultVariants: { + variant: "default" } - ); -} -function o({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Image, - { - "data-slot": "avatar-image", - className: i("lib:aspect-square lib:size-full", a), - ...e - } - ); -} -function s({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Fallback, - { - "data-slot": "avatar-fallback", - className: i( - "lib:bg-muted lib:flex lib:size-full lib:items-center lib:justify-center lib:rounded-full", - a - ), - ...e - } - ); + } +); +function b({ + className: r, + variant: e, + asChild: t = !1, + ...i +}) { + const a = t ? n : "span"; + return /* @__PURE__ */ o.jsx(a, { "data-slot": "badge", className: d(c({ variant: e }), r), ...i }); } export { - n as Avatar, - s as AvatarFallback, - o as AvatarImage + b as Badge, + c as badgeVariants }; diff --git a/dist/index.es110.js b/dist/index.es110.js new file mode 100644 index 00000000..9bf4b398 --- /dev/null +++ b/dist/index.es110.js @@ -0,0 +1,25 @@ +import e from "react"; +import "./index.es92.js"; +import "./index.es93.js"; +import "./index.es94.js"; +import o from "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +import r from "./index.es160.js"; +import t from "./index.es111.js"; +const l = o(r), i = { + token: t, + override: { + override: t + }, + hashed: !0 +}, x = /* @__PURE__ */ e.createContext(i); +export { + x as DesignTokenContext, + i as defaultConfig, + l as defaultTheme +}; diff --git a/dist/index.es111.js b/dist/index.es111.js new file mode 100644 index 00000000..c36842d7 --- /dev/null +++ b/dist/index.es111.js @@ -0,0 +1,66 @@ +const o = { + blue: "#1677ff", + purple: "#722ED1", + cyan: "#13C2C2", + green: "#52C41A", + magenta: "#EB2F96", + pink: "#eb2f96", + red: "#F5222D", + orange: "#FA8C16", + yellow: "#FADB14", + volcano: "#FA541C", + geekblue: "#2F54EB", + gold: "#FAAD14", + lime: "#A0D911" +}, e = Object.assign(Object.assign({}, o), { + // Color + colorPrimary: "#1677ff", + colorSuccess: "#52c41a", + colorWarning: "#faad14", + colorError: "#ff4d4f", + colorInfo: "#1677ff", + colorLink: "", + colorTextBase: "", + colorBgBase: "", + // Font + fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`, + fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace", + fontSize: 14, + // Line + lineWidth: 1, + lineType: "solid", + // Motion + motionUnit: 0.1, + motionBase: 0, + motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)", + motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)", + motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)", + motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)", + motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)", + motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)", + motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)", + motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)", + // Radius + borderRadius: 6, + // Size + sizeUnit: 4, + sizeStep: 4, + sizePopupArrow: 16, + // Control Base + controlHeight: 32, + // zIndex + zIndexBase: 0, + zIndexPopupBase: 1e3, + // Image + opacityImage: 1, + // Wireframe + wireframe: !1, + // Motion + motion: !0 +}); +export { + e as default, + o as defaultPresetColors +}; diff --git a/dist/index.es112.js b/dist/index.es112.js new file mode 100644 index 00000000..a41f46dd --- /dev/null +++ b/dist/index.es112.js @@ -0,0 +1,13 @@ +import * as e from "react"; +const o = "anticon", r = (t, n) => n || (t ? `ant-${t}` : "ant"), a = /* @__PURE__ */ e.createContext({ + // We provide a default function for Context without provider + getPrefixCls: r, + iconPrefixCls: o +}), { + Consumer: c +} = a; +export { + c as ConfigConsumer, + a as ConfigContext, + o as defaultIconPrefixCls +}; diff --git a/dist/index.es113.js b/dist/index.es113.js new file mode 100644 index 00000000..5494aca7 --- /dev/null +++ b/dist/index.es113.js @@ -0,0 +1,39 @@ +import "./index.es161.js"; +import m from "./index.es162.js"; +import { updateCSS as f } from "./index.es163.js"; +import g from "./index.es105.js"; +import p from "./index.es164.js"; +import { TinyColor as s } from "./index.es165.js"; +const C = `-ant-${Date.now()}-${Math.random()}`; +function y(a, t) { + const r = {}, n = (e, i) => { + let l = e.clone(); + return l = i?.(l) || l, l.toRgbString(); + }, c = (e, i) => { + const l = new s(e), o = p(l.toRgbString()); + r[`${i}-color`] = n(l), r[`${i}-color-disabled`] = o[1], r[`${i}-color-hover`] = o[4], r[`${i}-color-active`] = o[6], r[`${i}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), r[`${i}-color-deprecated-bg`] = o[0], r[`${i}-color-deprecated-border`] = o[2]; + }; + if (t.primaryColor) { + c(t.primaryColor, "primary"); + const e = new s(t.primaryColor), i = p(e.toRgbString()); + i.forEach((o, d) => { + r[`primary-${d + 1}`] = o; + }), r["primary-color-deprecated-l-35"] = n(e, (o) => o.lighten(35)), r["primary-color-deprecated-l-20"] = n(e, (o) => o.lighten(20)), r["primary-color-deprecated-t-20"] = n(e, (o) => o.tint(20)), r["primary-color-deprecated-t-50"] = n(e, (o) => o.tint(50)), r["primary-color-deprecated-f-12"] = n(e, (o) => o.setAlpha(o.getAlpha() * 0.12)); + const l = new s(i[0]); + r["primary-color-active-deprecated-f-30"] = n(l, (o) => o.setAlpha(o.getAlpha() * 0.3)), r["primary-color-active-deprecated-d-02"] = n(l, (o) => o.darken(2)); + } + return t.successColor && c(t.successColor, "success"), t.warningColor && c(t.warningColor, "warning"), t.errorColor && c(t.errorColor, "error"), t.infoColor && c(t.infoColor, "info"), ` + :root { + ${Object.keys(r).map((e) => `--${a}-${e}: ${r[e]};`).join(` +`)} + } + `.trim(); +} +function R(a, t) { + const r = y(a, t); + m() ? f(r, `${C}-dynamic-theme`) : process.env.NODE_ENV !== "production" && g(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables."); +} +export { + y as getStyle, + R as registerTheme +}; diff --git a/dist/index.es114.js b/dist/index.es114.js new file mode 100644 index 00000000..cf70eda9 --- /dev/null +++ b/dist/index.es114.js @@ -0,0 +1,15 @@ +import * as t from "react"; +const o = /* @__PURE__ */ t.createContext(!1), n = (r) => { + let { + children: a, + disabled: e + } = r; + const l = t.useContext(o); + return /* @__PURE__ */ t.createElement(o.Provider, { + value: e ?? l + }, a); +}; +export { + n as DisabledContextProvider, + o as default +}; diff --git a/dist/index.es115.js b/dist/index.es115.js new file mode 100644 index 00000000..af268bf9 --- /dev/null +++ b/dist/index.es115.js @@ -0,0 +1,13 @@ +import { useContext as o } from "react"; +import n from "./index.es114.js"; +import i from "./index.es119.js"; +function f() { + const t = o(n), e = o(i); + return { + componentDisabled: t, + componentSize: e + }; +} +export { + f as default +}; diff --git a/dist/index.es116.js b/dist/index.es116.js new file mode 100644 index 00000000..f3dcba22 --- /dev/null +++ b/dist/index.es116.js @@ -0,0 +1,41 @@ +import V from "./index.es103.js"; +import j from "./index.es166.js"; +import { devUseWarning as O } from "./index.es105.js"; +import y from "./index.es167.js"; +import { defaultConfig as u } from "./index.es110.js"; +function _(r, o, a) { + var t, d; + const v = O("ConfigProvider"), s = r || {}, e = s.inherit === !1 || !o ? Object.assign(Object.assign({}, u), { + hashed: (t = o?.hashed) !== null && t !== void 0 ? t : u.hashed, + cssVar: o?.cssVar + }) : o, f = y(); + if (process.env.NODE_ENV !== "production") { + const n = s.cssVar || e.cssVar, c = !!(typeof s.cssVar == "object" && (!((d = s.cssVar) === null || d === void 0) && d.key) || f); + process.env.NODE_ENV !== "production" && v(!n || c, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider."); + } + return V(() => { + var n, c; + if (!r) + return o; + const i = Object.assign({}, e.components); + Object.keys(r.components || {}).forEach((b) => { + i[b] = Object.assign(Object.assign({}, i[b]), r.components[b]); + }); + const g = `css-var-${f.replace(/:/g, "")}`, l = ((n = s.cssVar) !== null && n !== void 0 ? n : e.cssVar) && Object.assign(Object.assign(Object.assign({ + prefix: a?.prefixCls + }, typeof e.cssVar == "object" ? e.cssVar : {}), typeof s.cssVar == "object" ? s.cssVar : {}), { + key: typeof s.cssVar == "object" && ((c = s.cssVar) === null || c === void 0 ? void 0 : c.key) || g + }); + return Object.assign(Object.assign(Object.assign({}, e), s), { + token: Object.assign(Object.assign({}, e.token), s.token), + components: i, + cssVar: l + }); + }, [s, e], (n, c) => n.some((i, g) => { + const l = c[g]; + return !j(i, l, !0); + })); +} +export { + _ as default +}; diff --git a/dist/index.es117.js b/dist/index.es117.js new file mode 100644 index 00000000..c9fc016d --- /dev/null +++ b/dist/index.es117.js @@ -0,0 +1,28 @@ +import * as e from "react"; +import "./index.es141.js"; +import "./index.es142.js"; +import n from "./index.es168.js"; +import "./index.es92.js"; +import "./index.es93.js"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +import p from "./index.es130.js"; +function x(i) { + const { + children: r + } = i, [, m] = p(), { + motion: t + } = m, o = e.useRef(!1); + return o.current = o.current || t === !1, o.current ? /* @__PURE__ */ e.createElement(n, { + motion: t + }, r) : r; +} +export { + x as default +}; diff --git a/dist/index.es118.js b/dist/index.es118.js new file mode 100644 index 00000000..7201f8be --- /dev/null +++ b/dist/index.es118.js @@ -0,0 +1,13 @@ +import * as r from "react"; +import { devUseWarning as t } from "./index.es105.js"; +const n = /* @__PURE__ */ r.memo((e) => { + let { + dropdownMatchSelectWidth: o + } = e; + return t("ConfigProvider").deprecated(o === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null; +}); +process.env.NODE_ENV !== "production" && (n.displayName = "PropWarning"); +const p = process.env.NODE_ENV !== "production" ? n : () => null; +export { + p as default +}; diff --git a/dist/index.es119.js b/dist/index.es119.js new file mode 100644 index 00000000..bf61ce25 --- /dev/null +++ b/dist/index.es119.js @@ -0,0 +1,15 @@ +import * as e from "react"; +const t = /* @__PURE__ */ e.createContext(void 0), a = (n) => { + let { + children: o, + size: r + } = n; + const i = e.useContext(t); + return /* @__PURE__ */ e.createElement(t.Provider, { + value: r || i + }, o); +}; +export { + a as SizeContextProvider, + t as default +}; diff --git a/dist/index.es12.js b/dist/index.es12.js index d7ac61ae..c40bfc1d 100644 --- a/dist/index.es12.js +++ b/dist/index.es12.js @@ -1,33 +1,82 @@ -import * as b from "react"; -import { Slot as l } from "@radix-ui/react-slot"; -import { cva as n } from "class-variance-authority"; -import { cn as o } from "./index.es54.js"; -const s = n( - "lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden", - { - variants: { - variant: { - default: "lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90", - secondary: "lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90", - destructive: "lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60", - outline: "lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground" - } - }, - defaultVariants: { - variant: "default" +import { j as a } from "./index.es64.js"; +import { Slot as o } from "@radix-ui/react-slot"; +import { ChevronRight as i, MoreHorizontal as l } from "lucide-react"; +import { cn as t } from "./index.es65.js"; +function b({ ...r }) { + return /* @__PURE__ */ a.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r }); +} +function p({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx( + "ol", + { + "data-slot": "breadcrumb-list", + className: t( + "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", + r + ), + ...e } - } -); -function u({ - className: i, - variant: r, - asChild: e = !1, - ...t + ); +} +function x({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx("li", { "data-slot": "breadcrumb-item", className: t("inline-flex items-center gap-1.5", r), ...e }); +} +function f({ + asChild: r, + className: e, + ...s }) { - const a = e ? l : "span"; - return /* @__PURE__ */ b.createElement(a, { "data-slot": "badge", className: o(s({ variant: r }), i), ...t }); + const n = r ? o : "a"; + return /* @__PURE__ */ a.jsx(n, { "data-slot": "breadcrumb-link", className: t("hover:text-foreground transition-colors", e), ...s }); +} +function j({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx( + "span", + { + "data-slot": "breadcrumb-page", + role: "link", + "aria-disabled": "true", + "aria-current": "page", + className: t("text-foreground font-normal", r), + ...e + } + ); +} +function g({ children: r, className: e, ...s }) { + return /* @__PURE__ */ a.jsx( + "li", + { + "data-slot": "breadcrumb-separator", + role: "presentation", + "aria-hidden": "true", + className: t("[&>svg]:size-3.5", e), + ...s, + children: r ?? /* @__PURE__ */ a.jsx(i, {}) + } + ); +} +function h({ className: r, ...e }) { + return /* @__PURE__ */ a.jsxs( + "span", + { + "data-slot": "breadcrumb-ellipsis", + role: "presentation", + "aria-hidden": "true", + className: t("flex size-9 items-center justify-center", r), + ...e, + children: [ + /* @__PURE__ */ a.jsx(l, { className: "size-4" }), + /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "More" }) + ] + } + ); } export { - u as Badge, - s as badgeVariants + b as Breadcrumb, + h as BreadcrumbEllipsis, + x as BreadcrumbItem, + f as BreadcrumbLink, + p as BreadcrumbList, + j as BreadcrumbPage, + g as BreadcrumbSeparator }; diff --git a/dist/index.es120.js b/dist/index.es120.js new file mode 100644 index 00000000..6ebcb719 --- /dev/null +++ b/dist/index.es120.js @@ -0,0 +1,32 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import r from "./index.es218.js"; +import "./index.es101.js"; +import { resetIcon as m } from "./index.es186.js"; +import i from "./index.es130.js"; +const j = (t, o) => { + const [n, e] = i(); + return r({ + token: e, + hashId: "", + path: ["ant-design-icons", t], + nonce: () => o?.nonce + }, () => [{ + [`.${t}`]: Object.assign(Object.assign({}, m()), { + [`.${t} .${t}-icon`]: { + display: "block" + } + }) + }]); +}; +export { + j as default +}; diff --git a/dist/index.es121.js b/dist/index.es121.js new file mode 100644 index 00000000..46bf525e --- /dev/null +++ b/dist/index.es121.js @@ -0,0 +1,7 @@ +import { getDefaultExportFromCjs as s } from "./index.es90.js"; +import { __require as r } from "./index.es136.js"; +var a = r(); +const t = /* @__PURE__ */ s(a); +export { + t as default +}; diff --git a/dist/index.es122.js b/dist/index.es122.js new file mode 100644 index 00000000..b5581daf --- /dev/null +++ b/dist/index.es122.js @@ -0,0 +1,52 @@ +import R from "./index.es147.js"; +import O from "./index.es156.js"; +import j from "./index.es209.js"; +import k from "./index.es184.js"; +import * as v from "react"; +import { forwardRef as M, useRef as W, useImperativeHandle as q } from "react"; +import { placements as z } from "./index.es252.js"; +import B from "./index.es183.js"; +var F = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"], G = function(e, y) { + var d = e.overlayClassName, o = e.trigger, f = o === void 0 ? ["hover"] : o, i = e.mouseEnterDelay, g = i === void 0 ? 0 : i, t = e.mouseLeaveDelay, c = t === void 0 ? 0.1 : t, C = e.overlayStyle, r = e.prefixCls, a = r === void 0 ? "rc-tooltip" : r, b = e.children, h = e.onVisibleChange, V = e.afterVisibleChange, w = e.transitionName, P = e.animation, T = e.motion, n = e.placement, _ = n === void 0 ? "right" : n, l = e.align, D = l === void 0 ? {} : l, m = e.destroyTooltipOnHide, x = m === void 0 ? !1 : m, E = e.defaultVisible, S = e.getTooltipContainer, $ = e.overlayInnerStyle; + e.arrowContent; + var N = e.overlay, A = e.id, s = e.showArrow, I = s === void 0 ? !0 : s, L = j(e, F), u = W(null); + q(y, function() { + return u.current; + }); + var p = O({}, L); + "visible" in e && (p.popupVisible = e.visible); + var H = function() { + return /* @__PURE__ */ v.createElement(B, { + key: "content", + prefixCls: a, + id: A, + overlayInnerStyle: $ + }, N); + }; + return /* @__PURE__ */ v.createElement(k, R({ + popupClassName: d, + prefixCls: a, + popup: H, + action: f, + builtinPlacements: z, + popupPlacement: _, + ref: u, + popupAlign: D, + getPopupContainer: S, + onPopupVisibleChange: h, + afterPopupVisibleChange: V, + popupTransitionName: w, + popupAnimation: P, + popupMotion: T, + defaultPopupVisible: E, + autoDestroy: x, + mouseLeaveDelay: c, + popupStyle: C, + mouseEnterDelay: g, + arrow: I + }, p), b); +}; +const ie = /* @__PURE__ */ M(G); +export { + ie as default +}; diff --git a/dist/index.es123.js b/dist/index.es123.js new file mode 100644 index 00000000..78e00fd8 --- /dev/null +++ b/dist/index.es123.js @@ -0,0 +1,25 @@ +import c from "./index.es171.js"; +import m from "./index.es172.js"; +import { useLayoutUpdateEffect as S } from "./index.es173.js"; +import V from "./index.es174.js"; +function o(n) { + return n !== void 0; +} +function P(n, g) { + var t = g || {}, a = t.defaultValue, e = t.value, _ = t.onChange, i = t.postState, h = V(function() { + return o(e) ? e : o(a) ? typeof a == "function" ? a() : a : n; + }), l = c(h, 2), f = l[0], s = l[1], r = e !== void 0 ? e : f, C = i ? i(r) : r, y = m(_), E = V([r]), v = c(E, 2), d = v[0], M = v[1]; + S(function() { + var u = d[0]; + f !== u && y(f, u); + }, [d]), S(function() { + o(e) || s(e); + }, [e]); + var x = m(function(u, p) { + s(u, p), M([r], p); + }); + return [C, x]; +} +export { + P as default +}; diff --git a/dist/index.es124.js b/dist/index.es124.js new file mode 100644 index 00000000..c567ece8 --- /dev/null +++ b/dist/index.es124.js @@ -0,0 +1,35 @@ +import f from "react"; +import u from "./index.es130.js"; +import d from "./index.es128.js"; +const e = 100, c = 10, p = e * c, s = { + Modal: e, + Drawer: e, + Popover: e, + Popconfirm: e, + Tooltip: e, + Tour: e +}, I = { + SelectLike: 50, + Dropdown: 50, + DatePicker: 50, + Menu: 50, + ImagePreview: 1 +}; +function O(o) { + return o in s; +} +function C(o, r) { + const [, i] = u(), t = f.useContext(d), a = O(o); + if (r !== void 0) + return [r, r]; + let n = t ?? 0; + return a ? (n += // Use preset token zIndex by default but not stack when has parent container + (t ? 0 : i.zIndexPopupBase) + // Container offset + s[o], n = Math.min(n, i.zIndexPopupBase + p)) : n += I[o], [t === void 0 ? r : n, n]; +} +export { + p as CONTAINER_MAX_OFFSET, + I as consumerBaseZIndexOffset, + s as containerBaseZIndexOffset, + C as useZIndex +}; diff --git a/dist/index.es125.js b/dist/index.es125.js new file mode 100644 index 00000000..df58484e --- /dev/null +++ b/dist/index.es125.js @@ -0,0 +1,4 @@ +const t = (n, r, e) => e !== void 0 ? e : `${n}-${r}`; +export { + t as getTransitionName +}; diff --git a/dist/index.es126.js b/dist/index.es126.js new file mode 100644 index 00000000..6908b79d --- /dev/null +++ b/dist/index.es126.js @@ -0,0 +1,149 @@ +import { getArrowOffsetToken as h } from "./index.es181.js"; +function m(n, f, c, s) { + if (s === !1) + return { + adjustX: !1, + adjustY: !1 + }; + const i = s && typeof s == "object" ? s : {}, e = {}; + switch (n) { + case "top": + case "bottom": + e.shiftX = f.arrowOffsetHorizontal * 2 + c, e.shiftY = !0, e.adjustY = !0; + break; + case "left": + case "right": + e.shiftY = f.arrowOffsetVertical * 2 + c, e.shiftX = !0, e.adjustX = !0; + break; + } + const t = Object.assign(Object.assign({}, e), i); + return t.shiftX || (t.adjustX = !0), t.shiftY || (t.adjustY = !0), t; +} +const p = { + left: { + points: ["cr", "cl"] + }, + right: { + points: ["cl", "cr"] + }, + top: { + points: ["bc", "tc"] + }, + bottom: { + points: ["tc", "bc"] + }, + topLeft: { + points: ["bl", "tl"] + }, + leftTop: { + points: ["tr", "tl"] + }, + topRight: { + points: ["br", "tr"] + }, + rightTop: { + points: ["tl", "tr"] + }, + bottomRight: { + points: ["tr", "br"] + }, + rightBottom: { + points: ["bl", "br"] + }, + bottomLeft: { + points: ["tl", "bl"] + }, + leftBottom: { + points: ["br", "bl"] + } +}, g = { + topLeft: { + points: ["bl", "tc"] + }, + leftTop: { + points: ["tr", "cl"] + }, + topRight: { + points: ["br", "tc"] + }, + rightTop: { + points: ["tl", "cr"] + }, + bottomRight: { + points: ["tr", "bc"] + }, + rightBottom: { + points: ["bl", "cr"] + }, + bottomLeft: { + points: ["tl", "bc"] + }, + leftBottom: { + points: ["br", "cl"] + } +}, u = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]); +function O(n) { + const { + arrowWidth: f, + autoAdjustOverflow: c, + arrowPointAtCenter: s, + offset: i, + borderRadius: e + } = n, t = f / 2, l = {}; + return Object.keys(p).forEach((r) => { + const b = s && g[r] || p[r], o = Object.assign(Object.assign({}, b), { + offset: [0, 0], + dynamicInset: !0 + }); + switch (l[r] = o, u.has(r) && (o.autoArrow = !1), r) { + case "top": + case "topLeft": + case "topRight": + o.offset[1] = -t - i; + break; + case "bottom": + case "bottomLeft": + case "bottomRight": + o.offset[1] = t + i; + break; + case "left": + case "leftTop": + case "leftBottom": + o.offset[0] = -t - i; + break; + case "right": + case "rightTop": + case "rightBottom": + o.offset[0] = t + i; + break; + } + const a = h({ + contentRadius: e, + limitVerticalRadius: !0 + }); + if (s) + switch (r) { + case "topLeft": + case "bottomLeft": + o.offset[0] = -a.arrowOffsetHorizontal - t; + break; + case "topRight": + case "bottomRight": + o.offset[0] = a.arrowOffsetHorizontal + t; + break; + case "leftTop": + case "rightTop": + o.offset[1] = -a.arrowOffsetHorizontal - t; + break; + case "leftBottom": + case "rightBottom": + o.offset[1] = a.arrowOffsetHorizontal + t; + break; + } + o.overflow = m(r, a, f, c), o.htmlRegion = "visibleFirst"; + }), l; +} +export { + O as default, + m as getOverflowOptions +}; diff --git a/dist/index.es127.js b/dist/index.es127.js new file mode 100644 index 00000000..4494be35 --- /dev/null +++ b/dist/index.es127.js @@ -0,0 +1,13 @@ +import n from "react"; +function u(t) { + return t && /* @__PURE__ */ n.isValidElement(t) && t.type === n.Fragment; +} +const o = (t, e, r) => /* @__PURE__ */ n.isValidElement(t) ? /* @__PURE__ */ n.cloneElement(t, typeof r == "function" ? r(t.props || {}) : r) : e; +function a(t, e) { + return o(t, t, e); +} +export { + a as cloneElement, + u as isFragment, + o as replaceElement +}; diff --git a/dist/index.es128.js b/dist/index.es128.js new file mode 100644 index 00000000..e687cfe8 --- /dev/null +++ b/dist/index.es128.js @@ -0,0 +1,6 @@ +import e from "react"; +const t = /* @__PURE__ */ e.createContext(void 0); +process.env.NODE_ENV !== "production" && (t.displayName = "zIndexContext"); +export { + t as default +}; diff --git a/dist/index.es129.js b/dist/index.es129.js new file mode 100644 index 00000000..4101aca5 --- /dev/null +++ b/dist/index.es129.js @@ -0,0 +1,14 @@ +import * as e from "react"; +import "./index.es121.js"; +const n = /* @__PURE__ */ e.createContext(null), l = (t) => { + let { + children: r + } = t; + return /* @__PURE__ */ e.createElement(n.Provider, { + value: null + }, r); +}; +export { + l as NoCompactStyle, + n as SpaceCompactItemContext +}; diff --git a/dist/index.es13.js b/dist/index.es13.js index 2242b6a9..a8cfb942 100644 --- a/dist/index.es13.js +++ b/dist/index.es13.js @@ -1,94 +1,43 @@ -import * as t from "react"; -import { Slot as n } from "@radix-ui/react-slot"; -import { ChevronRight as o, MoreHorizontal as s } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function u({ ...e }) { - return /* @__PURE__ */ t.createElement("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e }); -} -function d({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "ol", - { - "data-slot": "breadcrumb-list", - className: a( - "lib:text-muted-foreground lib:flex lib:flex-wrap lib:items-center lib:gap-1.5 lib:text-sm lib:break-words sm:lib:gap-2.5", - e - ), - ...r - } - ); -} -function p({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "li", - { - "data-slot": "breadcrumb-item", - className: a("lib:inline-flex lib:items-center lib:gap-1.5", e), - ...r +import { j as s } from "./index.es64.js"; +import { Slot as a } from "@radix-ui/react-slot"; +import { cva as d } from "class-variance-authority"; +import { cn as u } from "./index.es65.js"; +const c = d( + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", + { + variants: { + variant: { + default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", + destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", + secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-9 px-4 py-2 has-[>svg]:px-3", + sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", + lg: "h-10 rounded-md px-6 has-[>svg]:px-4", + icon: "size-9" + } + }, + defaultVariants: { + variant: "default", + size: "default" } - ); -} -function f({ - asChild: e, - className: r, - ...l + } +); +function b({ + className: e, + variant: r, + size: t, + asChild: i = !1, + ...n }) { - const i = e ? n : "a"; - return /* @__PURE__ */ t.createElement( - i, - { - "data-slot": "breadcrumb-link", - className: a("hover:lib:text-foreground lib:transition-colors", r), - ...l - } - ); -} -function g({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "data-slot": "breadcrumb-page", - role: "link", - "aria-disabled": "true", - "aria-current": "page", - className: a("lib:text-foreground lib:font-normal", e), - ...r - } - ); -} -function E({ children: e, className: r, ...l }) { - return /* @__PURE__ */ t.createElement( - "li", - { - "data-slot": "breadcrumb-separator", - role: "presentation", - "aria-hidden": "true", - className: a("[&>svg]:lib:size-3.5", r), - ...l - }, - e ?? /* @__PURE__ */ t.createElement(o, null) - ); -} -function x({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "data-slot": "breadcrumb-ellipsis", - role: "presentation", - "aria-hidden": "true", - className: a("lib:flex lib:size-9 lib:items-center lib:justify-center", e), - ...r - }, - /* @__PURE__ */ t.createElement(s, { className: "lib:size-4" }), - /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "More") - ); + const o = i ? a : "button"; + return /* @__PURE__ */ s.jsx(o, { "data-slot": "button", className: u(c({ variant: r, size: t, className: e })), ...n }); } export { - u as Breadcrumb, - x as BreadcrumbEllipsis, - p as BreadcrumbItem, - f as BreadcrumbLink, - d as BreadcrumbList, - g as BreadcrumbPage, - E as BreadcrumbSeparator + b as Button, + c as buttonVariants }; diff --git a/dist/index.es130.js b/dist/index.es130.js new file mode 100644 index 00000000..4ac16096 --- /dev/null +++ b/dist/index.es130.js @@ -0,0 +1,115 @@ +import h from "react"; +import "./index.es92.js"; +import M from "./index.es93.js"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +import k from "./index.es135.js"; +import { DesignTokenContext as v, defaultTheme as X } from "./index.es110.js"; +import S from "./index.es111.js"; +import d from "./index.es201.js"; +var f = function(r, n) { + var i = {}; + for (var e in r) Object.prototype.hasOwnProperty.call(r, e) && n.indexOf(e) < 0 && (i[e] = r[e]); + if (r != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, e = Object.getOwnPropertySymbols(r); t < e.length; t++) + n.indexOf(e[t]) < 0 && Object.prototype.propertyIsEnumerable.call(r, e[t]) && (i[e[t]] = r[e[t]]); + return i; +}; +const T = { + lineHeight: !0, + lineHeightSM: !0, + lineHeightLG: !0, + lineHeightHeading1: !0, + lineHeightHeading2: !0, + lineHeightHeading3: !0, + lineHeightHeading4: !0, + lineHeightHeading5: !0, + opacityLoading: !0, + fontWeightStrong: !0, + zIndexPopupBase: !0, + zIndexBase: !0 +}, x = { + size: !0, + sizeSM: !0, + sizeLG: !0, + sizeMD: !0, + sizeXS: !0, + sizeXXS: !0, + sizeMS: !0, + sizeXL: !0, + sizeXXL: !0, + sizeUnit: !0, + sizeStep: !0, + motionBase: !0, + motionUnit: !0 +}, O = { + screenXS: !0, + screenXSMin: !0, + screenXSMax: !0, + screenSM: !0, + screenSMMin: !0, + screenSMMax: !0, + screenMD: !0, + screenMDMin: !0, + screenMDMax: !0, + screenLG: !0, + screenLGMin: !0, + screenLGMax: !0, + screenXL: !0, + screenXLMin: !0, + screenXLMax: !0, + screenXXL: !0, + screenXXLMin: !0 +}, l = (r, n, i) => { + const e = i.getDerivativeToken(r), { + override: t + } = n, s = f(n, ["override"]); + let o = Object.assign(Object.assign({}, e), { + override: t + }); + return o = d(o), s && Object.entries(s).forEach((c) => { + let [a, u] = c; + const { + theme: p + } = u, m = f(u, ["theme"]); + let g = m; + p && (g = l(Object.assign(Object.assign({}, o), m), { + override: m + }, p)), o[a] = g; + }), o; +}; +function U() { + const { + token: r, + hashed: n, + theme: i, + override: e, + cssVar: t + } = h.useContext(v), s = `${k}-${n || ""}`, o = i || X, [c, a, u] = M(o, [S, r], { + salt: s, + override: e, + getComputedToken: l, + // formatToken will not be consumed after 1.15.0 with getComputedToken. + // But token will break if @ant-design/cssinjs is under 1.15.0 without it + formatToken: d, + cssVar: t && { + prefix: t.prefix, + key: t.key, + unitless: T, + ignore: x, + preserve: O + } + }); + return [o, u, n ? a : "", c, t]; +} +export { + U as default, + l as getComputedToken, + x as ignore, + T as unitless +}; diff --git a/dist/index.es131.js b/dist/index.es131.js new file mode 100644 index 00000000..d94045dc --- /dev/null +++ b/dist/index.es131.js @@ -0,0 +1,33 @@ +import * as t from "react"; +import x from "./index.es121.js"; +import v from "./index.es183.js"; +import "./index.es184.js"; +import "./index.es91.js"; +import N from "./index.es132.js"; +import { parseColor as d } from "./index.es133.js"; +import { ConfigContext as g } from "./index.es112.js"; +const E = (o) => { + const { + prefixCls: a, + className: l, + placement: n = "top", + title: c, + color: m, + overlayInnerStyle: i + } = o, { + getPrefixCls: p + } = t.useContext(g), e = p("tooltip", a), [f, s, y] = N(e), r = d(e, m), C = r.arrowStyle, S = Object.assign(Object.assign({}, i), r.overlayStyle), u = x(s, y, e, `${e}-pure`, `${e}-placement-${n}`, l, r.className); + return f(/* @__PURE__ */ t.createElement("div", { + className: u, + style: C + }, /* @__PURE__ */ t.createElement("div", { + className: `${e}-arrow` + }), /* @__PURE__ */ t.createElement(v, Object.assign({}, o, { + className: s, + prefixCls: e, + overlayInnerStyle: S + }), c))); +}; +export { + E as default +}; diff --git a/dist/index.es132.js b/dist/index.es132.js new file mode 100644 index 00000000..0c33e14b --- /dev/null +++ b/dist/index.es132.js @@ -0,0 +1,134 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import { unit as d } from "./index.es185.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es96.js"; +import "./index.es95.js"; +import "./index.es97.js"; +import "./index.es101.js"; +import { resetComponent as f } from "./index.es186.js"; +import { initZoomMotion as h } from "./index.es187.js"; +import x, { getArrowOffsetToken as S, MAX_VERTICAL_CONTENT_RADIUS as w } from "./index.es181.js"; +import { getArrowToken as y } from "./index.es188.js"; +import { genStyleHooks as T } from "./index.es189.js"; +import R from "./index.es190.js"; +import { merge as s } from "./index.es191.js"; +const C = (o) => { + const { + componentCls: t, + // ant-tooltip + tooltipMaxWidth: l, + tooltipColor: r, + tooltipBg: i, + tooltipBorderRadius: e, + zIndexPopup: a, + controlHeight: n, + boxShadowSecondary: m, + paddingSM: c, + paddingXS: g + } = o; + return [ + { + [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, f(o)), { + position: "absolute", + zIndex: a, + display: "block", + width: "max-content", + maxWidth: l, + visibility: "visible", + transformOrigin: "var(--arrow-x, 50%) var(--arrow-y, 50%)", + "&-hidden": { + display: "none" + }, + "--antd-arrow-background-color": i, + // Wrapper for the tooltip content + [`${t}-inner`]: { + minWidth: n, + minHeight: n, + padding: `${d(o.calc(c).div(2).equal())} ${d(g)}`, + color: r, + textAlign: "start", + textDecoration: "none", + wordWrap: "break-word", + backgroundColor: i, + borderRadius: e, + boxShadow: m, + boxSizing: "border-box" + }, + // Limit left and right placement radius + [["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: { + [`${t}-inner`]: { + borderRadius: o.min(e, w) + } + }, + [`${t}-content`]: { + position: "relative" + } + }), R(o, (u, b) => { + let { + darkColor: p + } = b; + return { + [`&${t}-${u}`]: { + [`${t}-inner`]: { + backgroundColor: p + }, + [`${t}-arrow`]: { + "--antd-arrow-background-color": p + } + } + }; + })), { + // RTL + "&-rtl": { + direction: "rtl" + } + }) + }, + // Arrow Style + x(o, "var(--antd-arrow-background-color)"), + // Pure Render + { + [`${t}-pure`]: { + position: "relative", + maxWidth: "none", + margin: o.sizePopupArrow + } + } + ]; +}, O = (o) => Object.assign(Object.assign({ + zIndexPopup: o.zIndexPopupBase + 70 +}, S({ + contentRadius: o.borderRadius, + limitVerticalRadius: !0 +})), y(s(o, { + borderRadiusOuter: Math.min(o.borderRadiusOuter, 4) +}))), q = function(o) { + let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; + return T("Tooltip", (r) => { + const { + borderRadius: i, + colorTextLightSolid: e, + colorBgSpotlight: a + } = r, n = s(r, { + // default variables + tooltipMaxWidth: 250, + tooltipColor: e, + tooltipBorderRadius: i, + tooltipBg: a + }); + return [C(n), h(r, "zoom-big-fast")]; + }, O, { + resetStyle: !1, + // Popover use Tooltip as internal component. We do not need to handle this. + injectStyle: t + })(o); +}; +export { + q as default, + O as prepareComponentToken +}; diff --git a/dist/index.es133.js b/dist/index.es133.js new file mode 100644 index 00000000..461023f8 --- /dev/null +++ b/dist/index.es133.js @@ -0,0 +1,15 @@ +import e from "./index.es121.js"; +import { isPresetColor as i } from "./index.es143.js"; +function l(a, r) { + const t = i(r), n = e({ + [`${a}-${r}`]: r && t + }), o = {}, s = {}; + return r && !t && (o.background = r, s["--antd-arrow-background-color"] = r), { + className: n, + overlayStyle: o, + arrowStyle: s + }; +} +export { + l as parseColor +}; diff --git a/dist/index.es134.js b/dist/index.es134.js new file mode 100644 index 00000000..9abda164 --- /dev/null +++ b/dist/index.es134.js @@ -0,0 +1,4 @@ +import r from "./index.es135.js"; +export { + r as default +}; diff --git a/dist/index.es135.js b/dist/index.es135.js new file mode 100644 index 00000000..f53e7e8c --- /dev/null +++ b/dist/index.es135.js @@ -0,0 +1,4 @@ +const e = "5.16.2"; +export { + e as default +}; diff --git a/dist/index.es136.js b/dist/index.es136.js new file mode 100644 index 00000000..97155c94 --- /dev/null +++ b/dist/index.es136.js @@ -0,0 +1,42 @@ +import { __module as s } from "./index.es137.js"; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +var u; +function c() { + return u ? s.exports : (u = 1, function(i) { + (function() { + var f = {}.hasOwnProperty; + function n() { + for (var r = "", t = 0; t < arguments.length; t++) { + var e = arguments[t]; + e && (r = o(r, a(e))); + } + return r; + } + function a(r) { + if (typeof r == "string" || typeof r == "number") + return r; + if (typeof r != "object") + return ""; + if (Array.isArray(r)) + return n.apply(null, r); + if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) + return r.toString(); + var t = ""; + for (var e in r) + f.call(r, e) && r[e] && (t = o(t, e)); + return t; + } + function o(r, t) { + return t ? r ? r + " " + t : r + t : r; + } + i.exports ? (n.default = n, i.exports = n) : window.classNames = n; + })(); + }(s), s.exports); +} +export { + c as __require +}; diff --git a/dist/index.es137.js b/dist/index.es137.js new file mode 100644 index 00000000..bf1487b7 --- /dev/null +++ b/dist/index.es137.js @@ -0,0 +1,4 @@ +var s = { exports: {} }; +export { + s as __module +}; diff --git a/dist/index.es138.js b/dist/index.es138.js new file mode 100644 index 00000000..9a3072b8 --- /dev/null +++ b/dist/index.es138.js @@ -0,0 +1,11 @@ +import o from "./index.es139.js"; +import u from "react"; +function t(a) { + var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = []; + return u.Children.forEach(a, function(r) { + r == null && !n.keepEmpty || (Array.isArray(r) ? e = e.concat(t(r)) : o(r) && r.props ? e = e.concat(t(r.props.children, n)) : e.push(r)); + }), e; +} +export { + t as default +}; diff --git a/dist/index.es139.js b/dist/index.es139.js new file mode 100644 index 00000000..ec661ce8 --- /dev/null +++ b/dist/index.es139.js @@ -0,0 +1,13 @@ +import e from "./index.es155.js"; +var t = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment"); +function f(r) { + return ( + // Base object type + r && e(r) === "object" && // React Element type + (r.$$typeof === t || r.$$typeof === E) && // React Fragment type + r.type === a + ); +} +export { + f as default +}; diff --git a/dist/index.es14.js b/dist/index.es14.js index 8aa0f9fd..41ac2e24 100644 --- a/dist/index.es14.js +++ b/dist/index.es14.js @@ -1,43 +1,129 @@ -import * as n from "react"; -import { Slot as o } from "@radix-ui/react-slot"; -import { cva as a } from "class-variance-authority"; -import { cn as s } from "./index.es54.js"; -const d = a( - "lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive", - { - variants: { - variant: { - default: "lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90", - destructive: "lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60", - outline: "lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50", - secondary: "lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80", - ghost: "hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50", - link: "lib:text-primary lib:underline-offset-4 hover:lib:underline" +import { j as n } from "./index.es64.js"; +import * as g from "react"; +import { ChevronLeftIcon as b, ChevronRightIcon as w, ChevronDownIcon as _ } from "lucide-react"; +import { getDefaultClassNames as f, DayPicker as h } from "react-day-picker"; +import { cn as e } from "./index.es65.js"; +import { buttonVariants as m, Button as y } from "./index.es13.js"; +function D({ + className: c, + classNames: i, + showOutsideDays: r = !0, + captionLayout: s = "label", + buttonVariant: l = "ghost", + formatters: u, + components: p, + ...x +}) { + const t = f(); + return /* @__PURE__ */ n.jsx( + h, + { + showOutsideDays: r, + className: e( + "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", + String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, + String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, + c + ), + captionLayout: s, + formatters: { + formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }), + ...u + }, + classNames: { + root: e("w-fit", t.root), + months: e("flex gap-4 flex-col md:flex-row relative", t.months), + month: e("flex flex-col w-full gap-4", t.month), + nav: e("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", t.nav), + button_previous: e( + m({ variant: l }), + "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", + t.button_previous + ), + button_next: e( + m({ variant: l }), + "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", + t.button_next + ), + month_caption: e( + "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", + t.month_caption + ), + dropdowns: e( + "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", + t.dropdowns + ), + dropdown_root: e( + "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", + t.dropdown_root + ), + dropdown: e("absolute inset-0 opacity-0", t.dropdown), + caption_label: e( + "select-none font-medium", + s === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", + t.caption_label + ), + table: "w-full border-collapse", + weekdays: e("flex", t.weekdays), + weekday: e( + "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", + t.weekday + ), + week: e("flex w-full mt-2", t.week), + week_number_header: e("select-none w-(--cell-size)", t.week_number_header), + week_number: e("text-[0.8rem] select-none text-muted-foreground", t.week_number), + day: e( + "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", + t.day + ), + range_start: e("rounded-l-md bg-accent", t.range_start), + range_middle: e("rounded-none", t.range_middle), + range_end: e("rounded-r-md bg-accent", t.range_end), + today: e( + "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", + t.today + ), + outside: e("text-muted-foreground aria-selected:text-muted-foreground", t.outside), + disabled: e("text-muted-foreground opacity-50", t.disabled), + hidden: e("invisible", t.hidden), + ...i + }, + components: { + Root: ({ className: a, rootRef: d, ...o }) => /* @__PURE__ */ n.jsx("div", { "data-slot": "calendar", ref: d, className: e(a), ...o }), + Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n.jsx(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n.jsx(w, { className: e("size-4", a), ...o }) : /* @__PURE__ */ n.jsx(_, { className: e("size-4", a), ...o }), + DayButton: v, + WeekNumber: ({ children: a, ...d }) => /* @__PURE__ */ n.jsx("td", { ...d, children: /* @__PURE__ */ n.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }), + ...p }, - size: { - default: "lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3", - sm: "lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5", - lg: "lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4", - icon: "lib:size-9" - } - }, - defaultVariants: { - variant: "default", - size: "default" + ...x } - } -); -function g({ - className: i, - variant: e, - size: l, - asChild: r = !1, - ...b -}) { - const t = r ? o : "button"; - return /* @__PURE__ */ n.createElement(t, { "data-slot": "button", className: s(d({ variant: e, size: l, className: i })), ...b }); + ); +} +function v({ className: c, day: i, modifiers: r, ...s }) { + const l = f(), u = g.useRef(null); + return g.useEffect(() => { + r.focused && u.current?.focus(); + }, [r.focused]), /* @__PURE__ */ n.jsx( + y, + { + ref: u, + variant: "ghost", + size: "icon", + "data-day": i.date.toLocaleDateString(), + "data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle, + "data-range-start": r.range_start, + "data-range-end": r.range_end, + "data-range-middle": r.range_middle, + className: e( + "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", + l.day, + c + ), + ...s + } + ); } export { - g as Button, - d as buttonVariants + D as Calendar, + v as CalendarDayButton }; diff --git a/dist/index.es140.js b/dist/index.es140.js new file mode 100644 index 00000000..beae7a2c --- /dev/null +++ b/dist/index.es140.js @@ -0,0 +1,6 @@ +import t from "./index.es141.js"; +import "./index.es142.js"; +import "react"; +export { + t as default +}; diff --git a/dist/index.es141.js b/dist/index.es141.js new file mode 100644 index 00000000..0215346f --- /dev/null +++ b/dist/index.es141.js @@ -0,0 +1,73 @@ +import g from "./index.es202.js"; +import t from "./index.es156.js"; +import U from "./index.es171.js"; +import W from "./index.es155.js"; +import q from "./index.es121.js"; +import z from "./index.es203.js"; +import { fillRef as B, supportRef as F, getNodeRef as G } from "./index.es169.js"; +import * as o from "react"; +import { useRef as A } from "react"; +import { Context as I } from "./index.es168.js"; +import J from "./index.es204.js"; +import K from "./index.es205.js"; +import { isActive as Q } from "./index.es206.js"; +import { STATUS_NONE as X, STEP_PREPARE as Y, STEP_START as Z } from "./index.es207.js"; +import { getTransitionName as O, supportTransition as ee } from "./index.es208.js"; +function re(c) { + var N = c; + W(c) === "object" && (N = c.transitionSupport); + function h(r, m) { + return !!(r.motionName && N && m !== !1); + } + var _ = /* @__PURE__ */ o.forwardRef(function(r, m) { + var T = r.visible, y = T === void 0 ? !0 : T, C = r.removeOnLeave, E = C === void 0 ? !0 : C, L = r.forceRender, i = r.children, s = r.motionName, u = r.leavedClassName, D = r.eventProps, $ = o.useContext(I), j = $.motion, w = h(r, j), v = A(), b = A(); + function V() { + try { + return v.current instanceof HTMLElement ? v.current : z(b.current); + } catch { + return null; + } + } + var k = K(w, y, V, r), l = U(k, 4), p = l[0], d = l[1], x = l[2], S = l[3], M = o.useRef(S); + S && (M.current = !0); + var n = o.useCallback(function(R) { + v.current = R, B(m, R); + }, [m]), e, f = t(t({}, D), {}, { + visible: y + }); + if (!i) + e = null; + else if (p === X) + S ? e = i(t({}, f), n) : !E && M.current && u ? e = i(t(t({}, f), {}, { + className: u + }), n) : L || !E && !u ? e = i(t(t({}, f), {}, { + style: { + display: "none" + } + }), n) : e = null; + else { + var a; + d === Y ? a = "prepare" : Q(d) ? a = "active" : d === Z && (a = "start"); + var P = O(s, "".concat(p, "-").concat(a)); + e = i(t(t({}, f), {}, { + className: q(O(s, p), g(g({}, P, P && a), s, typeof s == "string")), + style: x + }), n); + } + if (/* @__PURE__ */ o.isValidElement(e) && F(e)) { + var H = G(e); + H || (e = /* @__PURE__ */ o.cloneElement(e, { + ref: n + })); + } + return /* @__PURE__ */ o.createElement(J, { + ref: b + }, e); + }); + return _.displayName = "CSSMotion", _; +} +const Se = re(ee); +export { + Se as default, + re as genCSSMotion +}; diff --git a/dist/index.es142.js b/dist/index.es142.js new file mode 100644 index 00000000..d173217a --- /dev/null +++ b/dist/index.es142.js @@ -0,0 +1,94 @@ +import K from "./index.es147.js"; +import C from "./index.es209.js"; +import c from "./index.es156.js"; +import L from "./index.es192.js"; +import M from "./index.es193.js"; +import _ from "./index.es210.js"; +import R from "./index.es199.js"; +import x from "./index.es211.js"; +import y from "./index.es202.js"; +import * as d from "react"; +import O from "./index.es141.js"; +import { STATUS_REMOVED as E, STATUS_ADD as D, STATUS_KEEP as V, parseKeys as N, diffKeys as U, STATUS_REMOVE as j } from "./index.es212.js"; +import { supportTransition as F } from "./index.es208.js"; +var I = ["component", "children", "onVisibleChanged", "onAllRemoved"], $ = ["status"], w = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"]; +function z(W) { + var g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : O, S = /* @__PURE__ */ function(P) { + R(u, P); + var h = x(u); + function u() { + var r; + L(this, u); + for (var a = arguments.length, s = new Array(a), t = 0; t < a; t++) + s[t] = arguments[t]; + return r = h.call.apply(h, [this].concat(s)), y(_(r), "state", { + keyEntities: [] + }), y(_(r), "removeKey", function(m) { + r.setState(function(i) { + var n = i.keyEntities.map(function(e) { + return e.key !== m ? e : c(c({}, e), {}, { + status: E + }); + }); + return { + keyEntities: n + }; + }, function() { + var i = r.state.keyEntities, n = i.filter(function(e) { + var p = e.status; + return p !== E; + }).length; + n === 0 && r.props.onAllRemoved && r.props.onAllRemoved(); + }); + }), r; + } + return M(u, [{ + key: "render", + value: function() { + var a = this, s = this.state.keyEntities, t = this.props, m = t.component, i = t.children, n = t.onVisibleChanged; + t.onAllRemoved; + var e = C(t, I), p = m || d.Fragment, v = {}; + return w.forEach(function(o) { + v[o] = e[o], delete e[o]; + }), delete e.keys, /* @__PURE__ */ d.createElement(p, e, s.map(function(o, T) { + var k = o.status, l = C(o, $), b = k === D || k === V; + return /* @__PURE__ */ d.createElement(g, K({}, v, { + key: l.key, + visible: b, + eventProps: l, + onVisibleChanged: function(f) { + n?.(f, { + key: l.key + }), f || a.removeKey(l.key); + } + }), function(A, f) { + return i(c(c({}, A), {}, { + index: T + }), f); + }); + })); + } + }], [{ + key: "getDerivedStateFromProps", + value: function(a, s) { + var t = a.keys, m = s.keyEntities, i = N(t), n = U(m, i); + return { + keyEntities: n.filter(function(e) { + var p = m.find(function(v) { + var o = v.key; + return e.key === o; + }); + return !(p && p.status === E && e.status === j); + }) + }; + } + }]), u; + }(d.Component); + return y(S, "defaultProps", { + component: "div" + }), S; +} +z(F); +export { + z as genCSSMotionList +}; diff --git a/dist/index.es143.js b/dist/index.es143.js new file mode 100644 index 00000000..77d35c4b --- /dev/null +++ b/dist/index.es143.js @@ -0,0 +1,9 @@ +import n from "./index.es144.js"; +import { PresetColors as r } from "./index.es145.js"; +const t = r.map((e) => `${e}-inverse`); +function i(e) { + return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(n(t), n(r)).includes(e) : r.includes(e); +} +export { + i as isPresetColor +}; diff --git a/dist/index.es144.js b/dist/index.es144.js new file mode 100644 index 00000000..9f8814b8 --- /dev/null +++ b/dist/index.es144.js @@ -0,0 +1,10 @@ +import o from "./index.es151.js"; +import t from "./index.es152.js"; +import e from "./index.es153.js"; +import a from "./index.es154.js"; +function u(r) { + return o(r) || t(r) || e(r) || a(); +} +export { + u as default +}; diff --git a/dist/index.es145.js b/dist/index.es145.js new file mode 100644 index 00000000..b9f9cd04 --- /dev/null +++ b/dist/index.es145.js @@ -0,0 +1,4 @@ +const e = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"]; +export { + e as PresetColors +}; diff --git a/dist/index.es146.js b/dist/index.es146.js new file mode 100644 index 00000000..cd13fc15 --- /dev/null +++ b/dist/index.es146.js @@ -0,0 +1,24 @@ +import c from "./index.es147.js"; +import * as s from "react"; +import m from "./index.es138.js"; +import { warning as t } from "./index.es96.js"; +import v from "./index.es148.js"; +import { Collection as d } from "./index.es149.js"; +import "./index.es150.js"; +var p = "rc-observer-key"; +function R(i, a) { + var r = i.children, o = typeof r == "function" ? [r] : m(r); + return process.env.NODE_ENV !== "production" && (o.length > 1 ? t(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : o.length === 0 && t(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), o.map(function(e, n) { + var l = e?.key || "".concat(p, "-").concat(n); + return /* @__PURE__ */ s.createElement(v, c({}, i, { + key: l, + ref: n === 0 ? a : void 0 + }), e); + }); +} +var f = /* @__PURE__ */ s.forwardRef(R); +process.env.NODE_ENV !== "production" && (f.displayName = "ResizeObserver"); +f.Collection = d; +export { + f as default +}; diff --git a/dist/index.es147.js b/dist/index.es147.js new file mode 100644 index 00000000..8e31149d --- /dev/null +++ b/dist/index.es147.js @@ -0,0 +1,12 @@ +function e() { + return e = Object.assign ? Object.assign.bind() : function(t) { + for (var n = 1; n < arguments.length; n++) { + var a = arguments[n]; + for (var r in a) ({}).hasOwnProperty.call(a, r) && (t[r] = a[r]); + } + return t; + }, e.apply(null, arguments); +} +export { + e as default +}; diff --git a/dist/index.es148.js b/dist/index.es148.js new file mode 100644 index 00000000..bbdba856 --- /dev/null +++ b/dist/index.es148.js @@ -0,0 +1,59 @@ +import D from "./index.es156.js"; +import $ from "./index.es155.js"; +import h from "./index.es203.js"; +import { supportRef as j, getNodeRef as B, useComposeRef as P } from "./index.es169.js"; +import * as e from "react"; +import { CollectionContext as V } from "./index.es149.js"; +import { observe as k, unobserve as I } from "./index.es150.js"; +import q from "./index.es214.js"; +function A(f, M) { + var l = f.children, v = f.disabled, t = e.useRef(null), m = e.useRef(null), d = e.useContext(V), R = typeof l == "function", o = R ? l(t) : l, i = e.useRef({ + width: -1, + height: -1, + offsetWidth: -1, + offsetHeight: -1 + }), g = !R && /* @__PURE__ */ e.isValidElement(o) && j(o), N = g ? B(o) : null, O = P(N, t), p = function() { + var n; + return h(t.current) || // Support `nativeElement` format + (t.current && $(t.current) === "object" ? h((n = t.current) === null || n === void 0 ? void 0 : n.nativeElement) : null) || h(m.current); + }; + e.useImperativeHandle(M, function() { + return p(); + }); + var b = e.useRef(f); + b.current = f; + var C = e.useCallback(function(r) { + var n = b.current, E = n.onResize, S = n.data, H = r.getBoundingClientRect(), s = H.width, c = H.height, u = r.offsetWidth, a = r.offsetHeight, W = Math.floor(s), w = Math.floor(c); + if (i.current.width !== W || i.current.height !== w || i.current.offsetWidth !== u || i.current.offsetHeight !== a) { + var _ = { + width: W, + height: w, + offsetWidth: u, + offsetHeight: a + }; + i.current = _; + var y = u === Math.round(s) ? s : u, z = a === Math.round(c) ? c : a, x = D(D({}, _), {}, { + offsetWidth: y, + offsetHeight: z + }); + d?.(x, r, S), E && Promise.resolve().then(function() { + E(x, r); + }); + } + }, []); + return e.useEffect(function() { + var r = p(); + return r && !v && k(r, C), function() { + return I(r, C); + }; + }, [t.current, v]), /* @__PURE__ */ e.createElement(q, { + ref: m + }, g ? /* @__PURE__ */ e.cloneElement(o, { + ref: O + }) : o); +} +var F = /* @__PURE__ */ e.forwardRef(A); +process.env.NODE_ENV !== "production" && (F.displayName = "SingleObserver"); +export { + F as default +}; diff --git a/dist/index.es149.js b/dist/index.es149.js new file mode 100644 index 00000000..7738f4b5 --- /dev/null +++ b/dist/index.es149.js @@ -0,0 +1,22 @@ +import * as e from "react"; +var a = /* @__PURE__ */ e.createContext(null); +function R(c) { + var s = c.children, r = c.onBatchResize, t = e.useRef(0), o = e.useRef([]), n = e.useContext(a), v = e.useCallback(function(i, u, l) { + t.current += 1; + var f = t.current; + o.current.push({ + size: i, + element: u, + data: l + }), Promise.resolve().then(function() { + f === t.current && (r?.(o.current), o.current = []); + }), n?.(i, u, l); + }, [r, n]); + return /* @__PURE__ */ e.createElement(a.Provider, { + value: v + }, s); +} +export { + R as Collection, + a as CollectionContext +}; diff --git a/dist/index.es15.js b/dist/index.es15.js index c90cab56..0c17959d 100644 --- a/dist/index.es15.js +++ b/dist/index.es15.js @@ -1,56 +1,56 @@ -import * as a from "react"; -import { ChevronRight as n, ChevronLeft as s } from "lucide-react"; -import { DayPicker as c } from "react-day-picker"; -import { cn as e } from "./index.es54.js"; -import { buttonVariants as r } from "./index.es14.js"; -function p({ className: b, classNames: o, showOutsideDays: d = !0, ...t }) { - return /* @__PURE__ */ a.createElement( - c, +import { j as a } from "./index.es64.js"; +import { cn as o } from "./index.es65.js"; +function s({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", { - showOutsideDays: d, - className: e("lib:p-3", b), - classNames: { - months: "lib:flex lib:flex-col sm:lib:flex-row lib:gap-2", - month: "lib:flex lib:flex-col lib:gap-4", - caption: "lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full", - caption_label: "lib:text-sm lib:font-medium", - nav: "lib:flex lib:items-center lib:gap-1", - nav_button: e( - r({ variant: "outline" }), - "lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100" - ), - nav_button_previous: "lib:absolute lib:left-1", - nav_button_next: "lib:absolute lib:right-1", - table: "lib:w-full lib:border-collapse lib:space-x-1", - head_row: "lib:flex", - head_cell: "lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]", - row: "lib:flex lib:w-full lib:mt-2", - cell: e( - "lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md", - t.mode === "range" ? "[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md" : "[&:has([aria-selected])]:lib:rounded-md" - ), - day: e( - r({ variant: "ghost" }), - "lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100" - ), - day_range_start: "lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground", - day_range_end: "lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground", - day_selected: "lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground", - day_today: "lib:bg-accent lib:text-accent-foreground", - day_outside: "lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground", - day_disabled: "lib:text-muted-foreground lib:opacity-50", - day_range_middle: "aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground", - day_hidden: "lib:invisible", - ...o - }, - components: { - IconLeft: ({ className: i, ...l }) => /* @__PURE__ */ a.createElement(s, { className: e("lib:size-4", i), ...l }), - IconRight: ({ className: i, ...l }) => /* @__PURE__ */ a.createElement(n, { className: e("lib:size-4", i), ...l }) - }, - ...t + "data-slot": "card", + className: o("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", t), + ...r } ); } +function n({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", + { + "data-slot": "card-header", + className: o( + "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", + t + ), + ...r + } + ); +} +function c({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-title", className: o("leading-none font-semibold", t), ...r }); +} +function i({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-description", className: o("text-muted-foreground text-sm", t), ...r }); +} +function l({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", + { + "data-slot": "card-action", + className: o("col-start-2 row-span-2 row-start-1 self-start justify-self-end", t), + ...r + } + ); +} +function u({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-content", className: o("px-6", t), ...r }); +} +function f({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-footer", className: o("flex items-center px-6 [.border-t]:pt-6", t), ...r }); +} export { - p as Calendar + s as Card, + l as CardAction, + u as CardContent, + i as CardDescription, + f as CardFooter, + n as CardHeader, + c as CardTitle }; diff --git a/dist/index.es150.js b/dist/index.es150.js new file mode 100644 index 00000000..c2fd10e8 --- /dev/null +++ b/dist/index.es150.js @@ -0,0 +1,23 @@ +import a from "./index.es215.js"; +var r = /* @__PURE__ */ new Map(); +function s(e) { + e.forEach(function(n) { + var o, t = n.target; + (o = r.get(t)) === null || o === void 0 || o.forEach(function(u) { + return u(t); + }); + }); +} +var i = new a(s); +process.env.NODE_ENV; +process.env.NODE_ENV; +function c(e, n) { + r.has(e) || (r.set(e, /* @__PURE__ */ new Set()), i.observe(e)), r.get(e).add(n); +} +function f(e, n) { + r.has(e) && (r.get(e).delete(n), r.get(e).size || (i.unobserve(e), r.delete(e))); +} +export { + c as observe, + f as unobserve +}; diff --git a/dist/index.es151.js b/dist/index.es151.js new file mode 100644 index 00000000..80ac6b60 --- /dev/null +++ b/dist/index.es151.js @@ -0,0 +1,7 @@ +import a from "./index.es216.js"; +function t(r) { + if (Array.isArray(r)) return a(r); +} +export { + t as default +}; diff --git a/dist/index.es152.js b/dist/index.es152.js new file mode 100644 index 00000000..59bbfe8d --- /dev/null +++ b/dist/index.es152.js @@ -0,0 +1,6 @@ +function e(r) { + if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r); +} +export { + e as default +}; diff --git a/dist/index.es153.js b/dist/index.es153.js new file mode 100644 index 00000000..5d26686a --- /dev/null +++ b/dist/index.es153.js @@ -0,0 +1,11 @@ +import o from "./index.es216.js"; +function n(r, e) { + if (r) { + if (typeof r == "string") return o(r, e); + var t = {}.toString.call(r).slice(8, -1); + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? o(r, e) : void 0; + } +} +export { + n as default +}; diff --git a/dist/index.es154.js b/dist/index.es154.js new file mode 100644 index 00000000..fdfaad79 --- /dev/null +++ b/dist/index.es154.js @@ -0,0 +1,7 @@ +function e() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); +} +export { + e as default +}; diff --git a/dist/index.es155.js b/dist/index.es155.js new file mode 100644 index 00000000..4c696dea --- /dev/null +++ b/dist/index.es155.js @@ -0,0 +1,11 @@ +function o(e) { + "@babel/helpers - typeof"; + return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { + return typeof t; + } : function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, o(e); +} +export { + o as default +}; diff --git a/dist/index.es156.js b/dist/index.es156.js new file mode 100644 index 00000000..400a6924 --- /dev/null +++ b/dist/index.es156.js @@ -0,0 +1,25 @@ +import p from "./index.es202.js"; +function o(r, n) { + var e = Object.keys(r); + if (Object.getOwnPropertySymbols) { + var t = Object.getOwnPropertySymbols(r); + n && (t = t.filter(function(c) { + return Object.getOwnPropertyDescriptor(r, c).enumerable; + })), e.push.apply(e, t); + } + return e; +} +function i(r) { + for (var n = 1; n < arguments.length; n++) { + var e = arguments[n] != null ? arguments[n] : {}; + n % 2 ? o(Object(e), !0).forEach(function(t) { + p(r, t, e[t]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : o(Object(e)).forEach(function(t) { + Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t)); + }); + } + return r; +} +export { + i as default +}; diff --git a/dist/index.es157.js b/dist/index.es157.js new file mode 100644 index 00000000..3f9f0462 --- /dev/null +++ b/dist/index.es157.js @@ -0,0 +1,10 @@ +import o from "./index.es234.js"; +import t from "./index.es152.js"; +import e from "./index.es153.js"; +import a from "./index.es235.js"; +function n(r) { + return o(r) || t(r) || e(r) || a(); +} +export { + n as default +}; diff --git a/dist/index.es158.js b/dist/index.es158.js new file mode 100644 index 00000000..ddd3636f --- /dev/null +++ b/dist/index.es158.js @@ -0,0 +1,11 @@ +function t(u, r) { + for (var e = u, n = 0; n < r.length; n += 1) { + if (e == null) + return; + e = e[r[n]]; + } + return e; +} +export { + t as default +}; diff --git a/dist/index.es159.js b/dist/index.es159.js new file mode 100644 index 00000000..20b81b62 --- /dev/null +++ b/dist/index.es159.js @@ -0,0 +1,16 @@ +import o from "./index.es109.js"; +Object.assign({}, o.Modal); +let c = []; +const s = () => c.reduce((e, a) => Object.assign(Object.assign({}, e), a), o.Modal); +function n(e) { + if (e) { + const a = Object.assign({}, e); + return c.push(a), s(), () => { + c = c.filter((t) => t !== a), s(); + }; + } + Object.assign({}, o.Modal); +} +export { + n as changeConfirmLocale +}; diff --git a/dist/index.es16.js b/dist/index.es16.js index 13ca3921..c81a1f00 100644 --- a/dist/index.es16.js +++ b/dist/index.es16.js @@ -1,66 +1,155 @@ -import * as a from "react"; -import { cn as r } from "./index.es54.js"; -function l({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", +import { j as l } from "./index.es64.js"; +import * as s from "react"; +import y from "embla-carousel-react"; +import { ArrowLeft as P, ArrowRight as k } from "lucide-react"; +import { cn as x } from "./index.es65.js"; +import { Button as h } from "./index.es13.js"; +const v = s.createContext(null); +function d() { + const o = s.useContext(v); + if (!o) + throw new Error("useCarousel must be used within a "); + return o; +} +function A({ + orientation: o = "horizontal", + opts: r, + setApi: t, + plugins: n, + className: c, + children: i, + ...u +}) { + const [p, e] = y( { - "data-slot": "card", - className: r( - "lib:bg-card lib:text-card-foreground lib:flex lib:flex-col lib:gap-6 lib:rounded-xl lib:border lib:py-6 lib:shadow-sm", - t - ), - ...e - } + ...r, + axis: o === "horizontal" ? "x" : "y" + }, + n + ), [N, j] = s.useState(!1), [b, w] = s.useState(!1), f = s.useCallback((a) => { + a && (j(a.canScrollPrev()), w(a.canScrollNext())); + }, []), m = s.useCallback(() => { + e?.scrollPrev(); + }, [e]), C = s.useCallback(() => { + e?.scrollNext(); + }, [e]), S = s.useCallback( + (a) => { + a.key === "ArrowLeft" ? (a.preventDefault(), m()) : a.key === "ArrowRight" && (a.preventDefault(), C()); + }, + [m, C] ); -} -function o({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", + return s.useEffect(() => { + !e || !t || t(e); + }, [e, t]), s.useEffect(() => { + if (e) + return f(e), e.on("reInit", f), e.on("select", f), () => { + e?.off("select", f); + }; + }, [e, f]), /* @__PURE__ */ l.jsx( + v.Provider, { - "data-slot": "card-header", - className: r( - "lib:@container/card-header lib:grid lib:auto-rows-min lib:grid-rows-[auto_auto] lib:items-start lib:gap-1.5 lib:px-6 has-data-[slot=card-action]:lib:grid-cols-[1fr_auto] [.border-b]:lib:pb-6", - t - ), - ...e + value: { + carouselRef: p, + api: e, + opts: r, + orientation: o || (r?.axis === "y" ? "vertical" : "horizontal"), + scrollPrev: m, + scrollNext: C, + canScrollPrev: N, + canScrollNext: b + }, + children: /* @__PURE__ */ l.jsx( + "div", + { + onKeyDownCapture: S, + className: x("relative", c), + role: "region", + "aria-roledescription": "carousel", + "data-slot": "carousel", + ...u, + children: i + } + ) } ); } -function d({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-title", className: r("lib:leading-none lib:font-semibold", t), ...e }); +function I({ className: o, ...r }) { + const { carouselRef: t, orientation: n } = d(); + return /* @__PURE__ */ l.jsx("div", { ref: t, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ l.jsx("div", { className: x("flex", n === "horizontal" ? "-ml-4" : "-mt-4 flex-col", o), ...r }) }); } -function n({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-description", className: r("lib:text-muted-foreground lib:text-sm", t), ...e }); -} -function c({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( +function K({ className: o, ...r }) { + const { orientation: t } = d(); + return /* @__PURE__ */ l.jsx( "div", { - "data-slot": "card-action", - className: r("lib:col-start-2 lib:row-span-2 lib:row-start-1 lib:self-start lib:justify-self-end", t), - ...e + role: "group", + "aria-roledescription": "slide", + "data-slot": "carousel-item", + className: x("min-w-0 shrink-0 grow-0 basis-full", t === "horizontal" ? "pl-4" : "pt-4", o), + ...r } ); } -function s({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-content", className: r("lib:px-6", t), ...e }); +function L({ + className: o, + variant: r = "outline", + size: t = "icon", + ...n +}) { + const { orientation: c, scrollPrev: i, canScrollPrev: u } = d(); + return /* @__PURE__ */ l.jsxs( + h, + { + "data-slot": "carousel-previous", + variant: r, + size: t, + className: x( + "absolute size-8 rounded-full", + c === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", + o + ), + disabled: !u, + onClick: i, + ...n, + children: [ + /* @__PURE__ */ l.jsx(P, {}), + /* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Previous slide" }) + ] + } + ); } -function b({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", +function B({ + className: o, + variant: r = "outline", + size: t = "icon", + ...n +}) { + const { orientation: c, scrollNext: i, canScrollNext: u } = d(); + return /* @__PURE__ */ l.jsxs( + h, { - "data-slot": "card-footer", - className: r("lib:flex lib:items-center lib:px-6 [.border-t]:lib:pt-6", t), - ...e + "data-slot": "carousel-next", + variant: r, + size: t, + className: x( + "absolute size-8 rounded-full", + c === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", + o + ), + disabled: !u, + onClick: i, + ...n, + children: [ + /* @__PURE__ */ l.jsx(k, {}), + /* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Next slide" }) + ] } ); } export { - l as Card, - c as CardAction, - s as CardContent, - n as CardDescription, - b as CardFooter, - o as CardHeader, - d as CardTitle + A as Carousel, + I as CarouselContent, + K as CarouselItem, + B as CarouselNext, + L as CarouselPrevious }; diff --git a/dist/index.es160.js b/dist/index.es160.js new file mode 100644 index 00000000..dcc8669a --- /dev/null +++ b/dist/index.es160.js @@ -0,0 +1,22 @@ +import "./index.es161.js"; +import { defaultPresetColors as a } from "./index.es111.js"; +import i from "./index.es175.js"; +import m from "./index.es176.js"; +import g from "./index.es177.js"; +import c from "./index.es178.js"; +import f from "./index.es179.js"; +import { generateColorPalettes as l, generateNeutralColorPalettes as p } from "./index.es180.js"; +import b from "./index.es164.js"; +function S(e) { + const s = Object.keys(a).map((t) => { + const r = b(e[t]); + return new Array(10).fill(1).reduce((n, j, o) => (n[`${t}-${o + 1}`] = r[o], n[`${t}${o + 1}`] = r[o], n), {}); + }).reduce((t, r) => (t = Object.assign(Object.assign({}, t), r), t), {}); + return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), s), i(e, { + generateColorPalettes: l, + generateNeutralColorPalettes: p + })), c(e.fontSize)), f(e)), g(e)), m(e)); +} +export { + S as default +}; diff --git a/dist/index.es161.js b/dist/index.es161.js new file mode 100644 index 00000000..53f49d83 --- /dev/null +++ b/dist/index.es161.js @@ -0,0 +1,28 @@ +import t from "./index.es164.js"; +var e = { + red: "#F5222D", + volcano: "#FA541C", + orange: "#FA8C16", + gold: "#FAAD14", + yellow: "#FADB14", + lime: "#A0D911", + green: "#52C41A", + cyan: "#13C2C2", + blue: "#1677FF", + geekblue: "#2F54EB", + purple: "#722ED1", + magenta: "#EB2F96", + grey: "#666666" +}, a = {}, o = {}; +Object.keys(e).forEach(function(r) { + a[r] = t(e[r]), a[r].primary = a[r][5], o[r] = t(e[r], { + theme: "dark", + backgroundColor: "#141414" + }), o[r].primary = o[r][5]; +}); +export { + t as generate, + o as presetDarkPalettes, + a as presetPalettes, + e as presetPrimaryColors +}; diff --git a/dist/index.es162.js b/dist/index.es162.js new file mode 100644 index 00000000..495e9488 --- /dev/null +++ b/dist/index.es162.js @@ -0,0 +1,6 @@ +function e() { + return !!(typeof window < "u" && window.document && window.document.createElement); +} +export { + e as default +}; diff --git a/dist/index.es163.js b/dist/index.es163.js new file mode 100644 index 00000000..8b38d03b --- /dev/null +++ b/dist/index.es163.js @@ -0,0 +1,87 @@ +import p from "./index.es156.js"; +import S from "./index.es162.js"; +import E from "./index.es236.js"; +var h = "data-rc-order", y = "data-rc-priority", P = "rc-util-key", l = /* @__PURE__ */ new Map(); +function C() { + var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = r.mark; + return e ? e.startsWith("data-") ? e : "data-".concat(e) : P; +} +function c(r) { + if (r.attachTo) + return r.attachTo; + var e = document.querySelector("head"); + return e || document.body; +} +function R(r) { + return r === "queue" ? "prependQueue" : r ? "prepend" : "append"; +} +function m(r) { + return Array.from((l.get(r) || r).children).filter(function(e) { + return e.tagName === "STYLE"; + }); +} +function b(r) { + var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!S()) + return null; + var n = e.csp, i = e.prepend, d = e.priority, a = d === void 0 ? 0 : d, u = R(i), f = u === "prependQueue", t = document.createElement("style"); + t.setAttribute(h, u), f && a && t.setAttribute(y, "".concat(a)), n != null && n.nonce && (t.nonce = n?.nonce), t.innerHTML = r; + var o = c(e), v = o.firstChild; + if (i) { + if (f) { + var s = (e.styles || m(o)).filter(function(g) { + if (!["prepend", "prependQueue"].includes(g.getAttribute(h))) + return !1; + var N = Number(g.getAttribute(y) || 0); + return a >= N; + }); + if (s.length) + return o.insertBefore(t, s[s.length - 1].nextSibling), t; + } + o.insertBefore(t, v); + } else + o.appendChild(t); + return t; +} +function A(r) { + var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = c(e); + return (e.styles || m(n)).find(function(i) { + return i.getAttribute(C(e)) === r; + }); +} +function L(r) { + var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = A(r, e); + if (n) { + var i = c(e); + i.removeChild(n); + } +} +function T(r, e) { + var n = l.get(r); + if (!n || !E(document, n)) { + var i = b("", e), d = i.parentNode; + l.set(r, d), r.removeChild(i); + } +} +function Q(r, e) { + var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = c(n), d = m(i), a = p(p({}, n), {}, { + styles: d + }); + T(i, a); + var u = A(e, a); + if (u) { + var f, t; + if ((f = a.csp) !== null && f !== void 0 && f.nonce && u.nonce !== ((t = a.csp) === null || t === void 0 ? void 0 : t.nonce)) { + var o; + u.nonce = (o = a.csp) === null || o === void 0 ? void 0 : o.nonce; + } + return u.innerHTML !== r && (u.innerHTML = r), u; + } + var v = b(r, a); + return v.setAttribute(C(a), e), v; +} +export { + b as injectCSS, + L as removeCSS, + Q as updateCSS +}; diff --git a/dist/index.es164.js b/dist/index.es164.js new file mode 100644 index 00000000..c990d324 --- /dev/null +++ b/dist/index.es164.js @@ -0,0 +1,93 @@ +import { inputToRGB as u } from "./index.es259.js"; +import { rgbToHsv as k, rgbToHex as H } from "./index.es260.js"; +var i = 2, v = 0.16, T = 0.05, F = 0.05, N = 0.15, m = 5, y = 4, B = [{ + index: 7, + opacity: 0.15 +}, { + index: 6, + opacity: 0.25 +}, { + index: 5, + opacity: 0.3 +}, { + index: 5, + opacity: 0.45 +}, { + index: 5, + opacity: 0.65 +}, { + index: 5, + opacity: 0.85 +}, { + index: 4, + opacity: 0.9 +}, { + index: 3, + opacity: 0.95 +}, { + index: 2, + opacity: 0.97 +}, { + index: 1, + opacity: 0.98 +}]; +function s(t) { + var a = t.r, e = t.g, r = t.b, n = k(a, e, r); + return { + h: n.h * 360, + s: n.s, + v: n.v + }; +} +function p(t) { + var a = t.r, e = t.g, r = t.b; + return "#".concat(H(a, e, r, !1)); +} +function G(t, a, e) { + var r = e / 100, n = { + r: (a.r - t.r) * r + t.r, + g: (a.g - t.g) * r + t.g, + b: (a.b - t.b) * r + t.b + }; + return n; +} +function x(t, a, e) { + var r; + return Math.round(t.h) >= 60 && Math.round(t.h) <= 240 ? r = e ? Math.round(t.h) - i * a : Math.round(t.h) + i * a : r = e ? Math.round(t.h) + i * a : Math.round(t.h) - i * a, r < 0 ? r += 360 : r >= 360 && (r -= 360), r; +} +function g(t, a, e) { + if (t.h === 0 && t.s === 0) + return t.s; + var r; + return e ? r = t.s - v * a : a === y ? r = t.s + v : r = t.s + T * a, r > 1 && (r = 1), e && a === m && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2)); +} +function l(t, a, e) { + var r; + return e ? r = t.v + F * a : r = t.v - N * a, r > 1 && (r = 1), Number(r.toFixed(2)); +} +function j(t) { + for (var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = [], r = u(t), n = m; n > 0; n -= 1) { + var d = s(r), h = p(u({ + h: x(d, n, !0), + s: g(d, n, !0), + v: l(d, n, !0) + })); + e.push(h); + } + e.push(p(r)); + for (var o = 1; o <= y; o += 1) { + var c = s(r), b = p(u({ + h: x(c, o), + s: g(c, o), + v: l(c, o) + })); + e.push(b); + } + return a.theme === "dark" ? B.map(function(f) { + var C = f.index, M = f.opacity, S = p(G(u(a.backgroundColor || "#141414"), u(e[C]), M * 100)); + return S; + }) : e; +} +export { + j as default +}; diff --git a/dist/index.es165.js b/dist/index.es165.js new file mode 100644 index 00000000..c52d28d3 --- /dev/null +++ b/dist/index.es165.js @@ -0,0 +1,183 @@ +import { numberInputToObject as v, rgbToHsv as u, rgbToHsl as p, rgbToHex as c, rgbaToHex as f } from "./index.es260.js"; +import { names as b } from "./index.es261.js"; +import { inputToRGB as d } from "./index.es259.js"; +import { boundAlpha as y, clamp01 as a, bound01 as g } from "./index.es262.js"; +var S = ( + /** @class */ + function() { + function i(t, r) { + t === void 0 && (t = ""), r === void 0 && (r = {}); + var n; + if (t instanceof i) + return t; + typeof t == "number" && (t = v(t)), this.originalInput = t; + var o = d(t); + this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = r.format) !== null && n !== void 0 ? n : o.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok; + } + return i.prototype.isDark = function() { + return this.getBrightness() < 128; + }, i.prototype.isLight = function() { + return !this.isDark(); + }, i.prototype.getBrightness = function() { + var t = this.toRgb(); + return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3; + }, i.prototype.getLuminance = function() { + var t = this.toRgb(), r, n, o, h = t.r / 255, s = t.g / 255, e = t.b / 255; + return h <= 0.03928 ? r = h / 12.92 : r = Math.pow((h + 0.055) / 1.055, 2.4), s <= 0.03928 ? n = s / 12.92 : n = Math.pow((s + 0.055) / 1.055, 2.4), e <= 0.03928 ? o = e / 12.92 : o = Math.pow((e + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * n + 0.0722 * o; + }, i.prototype.getAlpha = function() { + return this.a; + }, i.prototype.setAlpha = function(t) { + return this.a = y(t), this.roundA = Math.round(100 * this.a) / 100, this; + }, i.prototype.isMonochrome = function() { + var t = this.toHsl().s; + return t === 0; + }, i.prototype.toHsv = function() { + var t = u(this.r, this.g, this.b); + return { h: t.h * 360, s: t.s, v: t.v, a: this.a }; + }, i.prototype.toHsvString = function() { + var t = u(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100); + return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")"); + }, i.prototype.toHsl = function() { + var t = p(this.r, this.g, this.b); + return { h: t.h * 360, s: t.s, l: t.l, a: this.a }; + }, i.prototype.toHslString = function() { + var t = p(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100); + return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")"); + }, i.prototype.toHex = function(t) { + return t === void 0 && (t = !1), c(this.r, this.g, this.b, t); + }, i.prototype.toHexString = function(t) { + return t === void 0 && (t = !1), "#" + this.toHex(t); + }, i.prototype.toHex8 = function(t) { + return t === void 0 && (t = !1), f(this.r, this.g, this.b, this.a, t); + }, i.prototype.toHex8String = function(t) { + return t === void 0 && (t = !1), "#" + this.toHex8(t); + }, i.prototype.toHexShortString = function(t) { + return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t); + }, i.prototype.toRgb = function() { + return { + r: Math.round(this.r), + g: Math.round(this.g), + b: Math.round(this.b), + a: this.a + }; + }, i.prototype.toRgbString = function() { + var t = Math.round(this.r), r = Math.round(this.g), n = Math.round(this.b); + return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")"); + }, i.prototype.toPercentageRgb = function() { + var t = function(r) { + return "".concat(Math.round(g(r, 255) * 100), "%"); + }; + return { + r: t(this.r), + g: t(this.g), + b: t(this.b), + a: this.a + }; + }, i.prototype.toPercentageRgbString = function() { + var t = function(r) { + return Math.round(g(r, 255) * 100); + }; + return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")"); + }, i.prototype.toName = function() { + if (this.a === 0) + return "transparent"; + if (this.a < 1) + return !1; + for (var t = "#" + c(this.r, this.g, this.b, !1), r = 0, n = Object.entries(b); r < n.length; r++) { + var o = n[r], h = o[0], s = o[1]; + if (t === s) + return h; + } + return !1; + }, i.prototype.toString = function(t) { + var r = !!t; + t = t ?? this.format; + var n = !1, o = this.a < 1 && this.a >= 0, h = !r && o && (t.startsWith("hex") || t === "name"); + return h ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString()); + }, i.prototype.toNumber = function() { + return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b); + }, i.prototype.clone = function() { + return new i(this.toString()); + }, i.prototype.lighten = function(t) { + t === void 0 && (t = 10); + var r = this.toHsl(); + return r.l += t / 100, r.l = a(r.l), new i(r); + }, i.prototype.brighten = function(t) { + t === void 0 && (t = 10); + var r = this.toRgb(); + return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new i(r); + }, i.prototype.darken = function(t) { + t === void 0 && (t = 10); + var r = this.toHsl(); + return r.l -= t / 100, r.l = a(r.l), new i(r); + }, i.prototype.tint = function(t) { + return t === void 0 && (t = 10), this.mix("white", t); + }, i.prototype.shade = function(t) { + return t === void 0 && (t = 10), this.mix("black", t); + }, i.prototype.desaturate = function(t) { + t === void 0 && (t = 10); + var r = this.toHsl(); + return r.s -= t / 100, r.s = a(r.s), new i(r); + }, i.prototype.saturate = function(t) { + t === void 0 && (t = 10); + var r = this.toHsl(); + return r.s += t / 100, r.s = a(r.s), new i(r); + }, i.prototype.greyscale = function() { + return this.desaturate(100); + }, i.prototype.spin = function(t) { + var r = this.toHsl(), n = (r.h + t) % 360; + return r.h = n < 0 ? 360 + n : n, new i(r); + }, i.prototype.mix = function(t, r) { + r === void 0 && (r = 50); + var n = this.toRgb(), o = new i(t).toRgb(), h = r / 100, s = { + r: (o.r - n.r) * h + n.r, + g: (o.g - n.g) * h + n.g, + b: (o.b - n.b) * h + n.b, + a: (o.a - n.a) * h + n.a + }; + return new i(s); + }, i.prototype.analogous = function(t, r) { + t === void 0 && (t = 6), r === void 0 && (r = 30); + var n = this.toHsl(), o = 360 / r, h = [this]; + for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; ) + n.h = (n.h + o) % 360, h.push(new i(n)); + return h; + }, i.prototype.complement = function() { + var t = this.toHsl(); + return t.h = (t.h + 180) % 360, new i(t); + }, i.prototype.monochromatic = function(t) { + t === void 0 && (t = 6); + for (var r = this.toHsv(), n = r.h, o = r.s, h = r.v, s = [], e = 1 / t; t--; ) + s.push(new i({ h: n, s: o, v: h })), h = (h + e) % 1; + return s; + }, i.prototype.splitcomplement = function() { + var t = this.toHsl(), r = t.h; + return [ + this, + new i({ h: (r + 72) % 360, s: t.s, l: t.l }), + new i({ h: (r + 216) % 360, s: t.s, l: t.l }) + ]; + }, i.prototype.onBackground = function(t) { + var r = this.toRgb(), n = new i(t).toRgb(), o = r.a + n.a * (1 - r.a); + return new i({ + r: (r.r * r.a + n.r * n.a * (1 - r.a)) / o, + g: (r.g * r.a + n.g * n.a * (1 - r.a)) / o, + b: (r.b * r.a + n.b * n.a * (1 - r.a)) / o, + a: o + }); + }, i.prototype.triad = function() { + return this.polyad(3); + }, i.prototype.tetrad = function() { + return this.polyad(4); + }, i.prototype.polyad = function(t) { + for (var r = this.toHsl(), n = r.h, o = [this], h = 360 / t, s = 1; s < t; s++) + o.push(new i({ h: (n + s * h) % 360, s: r.s, l: r.l })); + return o; + }, i.prototype.equals = function(t) { + return this.toRgbString() === new i(t).toRgbString(); + }, i; + }() +); +export { + S as TinyColor +}; diff --git a/dist/index.es166.js b/dist/index.es166.js new file mode 100644 index 00000000..a11b0889 --- /dev/null +++ b/dist/index.es166.js @@ -0,0 +1,35 @@ +import g from "./index.es155.js"; +import { warningOnce as h } from "./index.es96.js"; +function y(c, o) { + var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, u = /* @__PURE__ */ new Set(); + function t(e, r) { + var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, a = u.has(e); + if (h(!a, "Warning: There may be circular references"), a) + return !1; + if (e === r) + return !0; + if (m && f > 1) + return !1; + u.add(e); + var l = f + 1; + if (Array.isArray(e)) { + if (!Array.isArray(r) || e.length !== r.length) + return !1; + for (var n = 0; n < e.length; n++) + if (!t(e[n], r[n], l)) + return !1; + return !0; + } + if (e && r && g(e) === "object" && g(r) === "object") { + var s = Object.keys(e); + return s.length !== Object.keys(r).length ? !1 : s.every(function(i) { + return t(e[i], r[i], l); + }); + } + return !1; + } + return t(c, o); +} +export { + y as default +}; diff --git a/dist/index.es167.js b/dist/index.es167.js new file mode 100644 index 00000000..be96d163 --- /dev/null +++ b/dist/index.es167.js @@ -0,0 +1,7 @@ +import * as s from "react"; +const t = Object.assign({}, s), { + useId: e +} = t, o = () => "", n = typeof e > "u" ? o : e; +export { + n as default +}; diff --git a/dist/index.es168.js b/dist/index.es168.js new file mode 100644 index 00000000..75c93f1c --- /dev/null +++ b/dist/index.es168.js @@ -0,0 +1,13 @@ +import i from "./index.es209.js"; +import * as r from "react"; +var a = ["children"], n = /* @__PURE__ */ r.createContext({}); +function d(e) { + var t = e.children, o = i(e, a); + return /* @__PURE__ */ r.createElement(n.Provider, { + value: o + }, t); +} +export { + n as Context, + d as default +}; diff --git a/dist/index.es169.js b/dist/index.es169.js new file mode 100644 index 00000000..be01fd73 --- /dev/null +++ b/dist/index.es169.js @@ -0,0 +1,52 @@ +import s from "./index.es155.js"; +import { isValidElement as c, version as l } from "react"; +import { r as n } from "./index.es170.js"; +import m from "./index.es103.js"; +import v from "./index.es139.js"; +var R = Number(l.split(".")[0]), y = function(r, t) { + typeof r == "function" ? r(t) : s(r) === "object" && r && "current" in r && (r.current = t); +}, g = function() { + for (var r = arguments.length, t = new Array(r), e = 0; e < r; e++) + t[e] = arguments[e]; + var f = t.filter(Boolean); + return f.length <= 1 ? f[0] : function(u) { + t.forEach(function(i) { + y(i, u); + }); + }; +}, F = function() { + for (var r = arguments.length, t = new Array(r), e = 0; e < r; e++) + t[e] = arguments[e]; + return m(function() { + return g.apply(void 0, t); + }, t, function(f, u) { + return f.length !== u.length || f.every(function(i, a) { + return i !== u[a]; + }); + }); +}, M = function(r) { + var t, e; + if (!r) + return !1; + if (p(r) && R >= 19) + return !0; + var f = n.isMemo(r) ? r.type.type : r.type; + return !(typeof f == "function" && !((t = f.prototype) !== null && t !== void 0 && t.render) && f.$$typeof !== n.ForwardRef || typeof r == "function" && !((e = r.prototype) !== null && e !== void 0 && e.render) && r.$$typeof !== n.ForwardRef); +}; +function p(o) { + return /* @__PURE__ */ c(o) && !v(o); +} +var N = function(r) { + if (r && p(r)) { + var t = r; + return t.props.propertyIsEnumerable("ref") ? t.props.ref : t.ref; + } + return null; +}; +export { + g as composeRef, + y as fillRef, + N as getNodeRef, + M as supportRef, + F as useComposeRef +}; diff --git a/dist/index.es17.js b/dist/index.es17.js index 807c4326..0b166bcf 100644 --- a/dist/index.es17.js +++ b/dist/index.es17.js @@ -1,160 +1,185 @@ -import * as e from "react"; -import S from "embla-carousel-react"; -import { ArrowLeft as y, ArrowRight as P } from "lucide-react"; -import { cn as b } from "./index.es54.js"; -import { Button as C } from "./index.es14.js"; -const x = e.createContext(null); -function f() { - const t = e.useContext(x); - if (!t) - throw new Error("useCarousel must be used within a "); - return t; +import { j as r } from "./index.es64.js"; +import * as x from "react"; +import * as b from "recharts"; +import { cn as l } from "./index.es65.js"; +const L = { light: "", dark: ".dark" }, w = x.createContext(null); +function N() { + const c = x.useContext(w); + if (!c) + throw new Error("useChart must be used within a "); + return c; } -function D({ - orientation: t = "horizontal", - opts: o, - setApi: r, - plugins: n, - className: i, +function I({ + id: c, + className: e, children: s, - ...c + config: t, + ...a }) { - const [v, l] = S( - { - ...o, - axis: t === "horizontal" ? "x" : "y" - }, - n - ), [N, h] = e.useState(!1), [p, E] = e.useState(!1), u = e.useCallback((a) => { - a && (h(a.canScrollPrev()), E(a.canScrollNext())); - }, []), m = e.useCallback(() => { - l?.scrollPrev(); - }, [l]), d = e.useCallback(() => { - l?.scrollNext(); - }, [l]), w = e.useCallback( - (a) => { - a.key === "ArrowLeft" ? (a.preventDefault(), m()) : a.key === "ArrowRight" && (a.preventDefault(), d()); - }, - [m, d] - ); - return e.useEffect(() => { - !l || !r || r(l); - }, [l, r]), e.useEffect(() => { - if (l) - return u(l), l.on("reInit", u), l.on("select", u), () => { - l?.off("select", u); - }; - }, [l, u]), /* @__PURE__ */ e.createElement( - x.Provider, - { - value: { - carouselRef: v, - api: l, - opts: o, - orientation: t || (o?.axis === "y" ? "vertical" : "horizontal"), - scrollPrev: m, - scrollNext: d, - canScrollPrev: N, - canScrollNext: p - } - }, - /* @__PURE__ */ e.createElement( - "div", - { - onKeyDownCapture: w, - className: b("lib:relative", i), - role: "region", - "aria-roledescription": "carousel", - "data-slot": "carousel", - ...c - }, - s - ) - ); -} -function A({ className: t, ...o }) { - const { carouselRef: r, orientation: n } = f(); - return /* @__PURE__ */ e.createElement("div", { ref: r, className: "lib:overflow-hidden", "data-slot": "carousel-content" }, /* @__PURE__ */ e.createElement( + const d = x.useId(), o = `chart-${c || d.replace(/:/g, "")}`; + return /* @__PURE__ */ r.jsx(w.Provider, { value: { config: t }, children: /* @__PURE__ */ r.jsxs( "div", { - className: b("lib:flex", n === "horizontal" ? "lib:-ml-4" : "lib:-mt-4 lib:flex-col", t), - ...o + "data-slot": "chart", + "data-chart": o, + className: l( + "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", + e + ), + ...a, + children: [ + /* @__PURE__ */ r.jsx(P, { id: o, config: t }), + /* @__PURE__ */ r.jsx(b.ResponsiveContainer, { children: s }) + ] } - )); + ) }); } -function I({ className: t, ...o }) { - const { orientation: r } = f(); - return /* @__PURE__ */ e.createElement( - "div", +const P = ({ id: c, config: e }) => { + const s = Object.entries(e).filter(([, t]) => t.theme || t.color); + return s.length ? /* @__PURE__ */ r.jsx( + "style", { - role: "group", - "aria-roledescription": "slide", - "data-slot": "carousel-item", - className: b( - "lib:min-w-0 lib:shrink-0 lib:grow-0 lib:basis-full", - r === "horizontal" ? "lib:pl-4" : "lib:pt-4", - t - ), - ...o - } - ); + dangerouslySetInnerHTML: { + __html: Object.entries(L).map( + ([t, a]) => ` +${a} [data-chart=${c}] { +${s.map(([d, o]) => { + const i = o.theme?.[t] || o.color; + return i ? ` --color-${d}: ${i};` : null; + }).join(` +`)} } -function K({ - className: t, - variant: o = "outline", - size: r = "icon", - ...n +` + ).join(` +`) + } + } + ) : null; +}, R = b.Tooltip; +function S({ + active: c, + payload: e, + className: s, + indicator: t = "dot", + hideLabel: a = !1, + hideIndicator: d = !1, + label: o, + labelFormatter: i, + labelClassName: u, + formatter: C, + color: y, + nameKey: $, + labelKey: m }) { - const { orientation: i, scrollPrev: s, canScrollPrev: c } = f(); - return /* @__PURE__ */ e.createElement( - C, + const { config: f } = N(), _ = x.useMemo(() => { + if (a || !e?.length) + return null; + const [n] = e, p = `${m || n?.dataKey || n?.name || "value"}`, v = j(f, n, p), h = !m && typeof o == "string" ? f[o]?.label || o : v?.label; + return i ? /* @__PURE__ */ r.jsx("div", { className: l("font-medium", u), children: i(h, e) }) : h ? /* @__PURE__ */ r.jsx("div", { className: l("font-medium", u), children: h }) : null; + }, [o, i, e, a, u, f, m]); + if (!c || !e?.length) + return null; + const g = e.length === 1 && t !== "dot"; + return /* @__PURE__ */ r.jsxs( + "div", { - "data-slot": "carousel-previous", - variant: o, - size: r, - className: b( - "lib:absolute lib:size-8 lib:rounded-full", - i === "horizontal" ? "lib:top-1/2 lib:-left-12 lib:-translate-y-1/2" : "lib:-top-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90", - t + className: l( + "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl", + s ), - disabled: !c, - onClick: s, - ...n - }, - /* @__PURE__ */ e.createElement(y, null), - /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Previous slide") + children: [ + g ? null : _, + /* @__PURE__ */ r.jsx("div", { className: "grid gap-1.5", children: e.map((n, p) => { + const v = `${$ || n.name || n.dataKey || "value"}`, h = j(f, n, v), k = y || n.payload.fill || n.color; + return /* @__PURE__ */ r.jsx( + "div", + { + className: l( + "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", + t === "dot" && "items-center" + ), + children: C && n?.value !== void 0 && n.name ? C(n.value, n.name, n, p, n.payload) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [ + h?.icon ? /* @__PURE__ */ r.jsx(h.icon, {}) : !d && /* @__PURE__ */ r.jsx( + "div", + { + className: l("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", { + "h-2.5 w-2.5": t === "dot", + "w-1": t === "line", + "w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed", + "my-0.5": g && t === "dashed" + }), + style: { + "--color-bg": k, + "--color-border": k + } + } + ), + /* @__PURE__ */ r.jsxs( + "div", + { + className: l("flex flex-1 justify-between leading-none", g ? "items-end" : "items-center"), + children: [ + /* @__PURE__ */ r.jsxs("div", { className: "grid gap-1.5", children: [ + g ? _ : null, + /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: h?.label || n.name }) + ] }), + n.value && /* @__PURE__ */ r.jsx("span", { className: "text-foreground font-mono font-medium tabular-nums", children: n.value.toLocaleString() }) + ] + } + ) + ] }) + }, + n.dataKey + ); + }) }) + ] + } ); } -function L({ - className: t, - variant: o = "outline", - size: r = "icon", - ...n +const K = b.Legend; +function M({ + className: c, + hideIcon: e = !1, + payload: s, + verticalAlign: t = "bottom", + nameKey: a }) { - const { orientation: i, scrollNext: s, canScrollNext: c } = f(); - return /* @__PURE__ */ e.createElement( - C, - { - "data-slot": "carousel-next", - variant: o, - size: r, - className: b( - "lib:absolute lib:size-8 lib:rounded-full", - i === "horizontal" ? "lib:top-1/2 lib:-right-12 lib:-translate-y-1/2" : "lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90", - t - ), - disabled: !c, - onClick: s, - ...n - }, - /* @__PURE__ */ e.createElement(P, null), - /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Next slide") - ); + const { config: d } = N(); + return s?.length ? /* @__PURE__ */ r.jsx("div", { className: l("flex items-center justify-center gap-4", t === "top" ? "pb-3" : "pt-3", c), children: s.map((o) => { + const i = `${a || o.dataKey || "value"}`, u = j(d, o, i); + return /* @__PURE__ */ r.jsxs( + "div", + { + className: l("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"), + children: [ + u?.icon && !e ? /* @__PURE__ */ r.jsx(u.icon, {}) : /* @__PURE__ */ r.jsx( + "div", + { + className: "h-2 w-2 shrink-0 rounded-[2px]", + style: { + backgroundColor: o.color + } + } + ), + u?.label + ] + }, + o.value + ); + }) }) : null; +} +function j(c, e, s) { + if (typeof e != "object" || e === null) + return; + const t = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0; + let a = s; + return s in e && typeof e[s] == "string" ? a = e[s] : t && s in t && typeof t[s] == "string" && (a = t[s]), a in c ? c[a] : c[s]; } export { - D as Carousel, - A as CarouselContent, - I as CarouselItem, - L as CarouselNext, - K as CarouselPrevious + I as ChartContainer, + K as ChartLegend, + M as ChartLegendContent, + P as ChartStyle, + R as ChartTooltip, + S as ChartTooltipContent }; diff --git a/dist/index.es170.js b/dist/index.es170.js new file mode 100644 index 00000000..d5011b30 --- /dev/null +++ b/dist/index.es170.js @@ -0,0 +1,5 @@ +import { __require as r } from "./index.es237.js"; +var a = r(); +export { + a as r +}; diff --git a/dist/index.es171.js b/dist/index.es171.js new file mode 100644 index 00000000..d82c4a30 --- /dev/null +++ b/dist/index.es171.js @@ -0,0 +1,10 @@ +import t from "./index.es234.js"; +import e from "./index.es241.js"; +import a from "./index.es153.js"; +import i from "./index.es235.js"; +function n(r, o) { + return t(r) || e(r, o) || a(r, o) || i(); +} +export { + n as default +}; diff --git a/dist/index.es172.js b/dist/index.es172.js new file mode 100644 index 00000000..5001ee84 --- /dev/null +++ b/dist/index.es172.js @@ -0,0 +1,14 @@ +import * as u from "react"; +function o(c) { + var e = u.useRef(); + e.current = c; + var f = u.useCallback(function() { + for (var r, t = arguments.length, a = new Array(t), n = 0; n < t; n++) + a[n] = arguments[n]; + return (r = e.current) === null || r === void 0 ? void 0 : r.call.apply(r, [e].concat(a)); + }, []); + return f; +} +export { + o as default +}; diff --git a/dist/index.es173.js b/dist/index.es173.js new file mode 100644 index 00000000..227a02fa --- /dev/null +++ b/dist/index.es173.js @@ -0,0 +1,21 @@ +import * as f from "react"; +import o from "./index.es162.js"; +var r = process.env.NODE_ENV !== "test" && o() ? f.useLayoutEffect : f.useEffect, a = function(e, u) { + var t = f.useRef(!0); + r(function() { + return e(t.current); + }, u), r(function() { + return t.current = !1, function() { + t.current = !0; + }; + }, []); +}, s = function(e, u) { + a(function(t) { + if (!t) + return e(); + }, u); +}; +export { + a as default, + s as useLayoutUpdateEffect +}; diff --git a/dist/index.es174.js b/dist/index.es174.js new file mode 100644 index 00000000..98e60d87 --- /dev/null +++ b/dist/index.es174.js @@ -0,0 +1,17 @@ +import i from "./index.es171.js"; +import * as t from "react"; +function l(a) { + var e = t.useRef(!1), u = t.useState(a), r = i(u, 2), f = r[0], n = r[1]; + t.useEffect(function() { + return e.current = !1, function() { + e.current = !0; + }; + }, []); + function s(c, o) { + o && e.current || n(c); + } + return [f, s]; +} +export { + l as default +}; diff --git a/dist/index.es175.js b/dist/index.es175.js new file mode 100644 index 00000000..441b3f35 --- /dev/null +++ b/dist/index.es175.js @@ -0,0 +1,76 @@ +import { TinyColor as y } from "./index.es165.js"; +function I(s, i) { + let { + generateColorPalettes: n, + generateNeutralColorPalettes: a + } = i; + const { + colorSuccess: g, + colorWarning: v, + colorError: B, + colorInfo: H, + colorPrimary: f, + colorBgBase: u, + colorTextBase: T + } = s, o = n(f), r = n(g), c = n(v), e = n(B), l = n(H), x = a(u, T), m = s.colorLink || s.colorInfo, t = n(m); + return Object.assign(Object.assign({}, x), { + colorPrimaryBg: o[1], + colorPrimaryBgHover: o[2], + colorPrimaryBorder: o[3], + colorPrimaryBorderHover: o[4], + colorPrimaryHover: o[5], + colorPrimary: o[6], + colorPrimaryActive: o[7], + colorPrimaryTextHover: o[8], + colorPrimaryText: o[9], + colorPrimaryTextActive: o[10], + colorSuccessBg: r[1], + colorSuccessBgHover: r[2], + colorSuccessBorder: r[3], + colorSuccessBorderHover: r[4], + colorSuccessHover: r[4], + colorSuccess: r[6], + colorSuccessActive: r[7], + colorSuccessTextHover: r[8], + colorSuccessText: r[9], + colorSuccessTextActive: r[10], + colorErrorBg: e[1], + colorErrorBgHover: e[2], + colorErrorBorder: e[3], + colorErrorBorderHover: e[4], + colorErrorHover: e[5], + colorError: e[6], + colorErrorActive: e[7], + colorErrorTextHover: e[8], + colorErrorText: e[9], + colorErrorTextActive: e[10], + colorWarningBg: c[1], + colorWarningBgHover: c[2], + colorWarningBorder: c[3], + colorWarningBorderHover: c[4], + colorWarningHover: c[4], + colorWarning: c[6], + colorWarningActive: c[7], + colorWarningTextHover: c[8], + colorWarningText: c[9], + colorWarningTextActive: c[10], + colorInfoBg: l[1], + colorInfoBgHover: l[2], + colorInfoBorder: l[3], + colorInfoBorderHover: l[4], + colorInfoHover: l[4], + colorInfo: l[6], + colorInfoActive: l[7], + colorInfoTextHover: l[8], + colorInfoText: l[9], + colorInfoTextActive: l[10], + colorLinkHover: t[4], + colorLink: t[6], + colorLinkActive: t[7], + colorBgMask: new y("#000").setAlpha(0.45).toRgbString(), + colorWhite: "#fff" + }); +} +export { + I as default +}; diff --git a/dist/index.es176.js b/dist/index.es176.js new file mode 100644 index 00000000..bb615a64 --- /dev/null +++ b/dist/index.es176.js @@ -0,0 +1,20 @@ +import a from "./index.es250.js"; +function s(t) { + const { + motionUnit: o, + motionBase: i, + borderRadius: n, + lineWidth: e + } = t; + return Object.assign({ + // motion + motionDurationFast: `${(i + o).toFixed(1)}s`, + motionDurationMid: `${(i + o * 2).toFixed(1)}s`, + motionDurationSlow: `${(i + o * 3).toFixed(1)}s`, + // line + lineWidthBold: e + 1 + }, a(n)); +} +export { + s as default +}; diff --git a/dist/index.es177.js b/dist/index.es177.js new file mode 100644 index 00000000..9acefb3f --- /dev/null +++ b/dist/index.es177.js @@ -0,0 +1,13 @@ +const e = (o) => { + const { + controlHeight: t + } = o; + return { + controlHeightSM: t * 0.75, + controlHeightXS: t * 0.5, + controlHeightLG: t * 1.25 + }; +}; +export { + e as default +}; diff --git a/dist/index.es178.js b/dist/index.es178.js new file mode 100644 index 00000000..a882cb6c --- /dev/null +++ b/dist/index.es178.js @@ -0,0 +1,29 @@ +import S from "./index.es242.js"; +const z = (s) => { + const t = S(s), e = t.map((i) => i.size), n = t.map((i) => i.lineHeight), o = e[1], g = e[0], H = e[2], a = n[1], f = n[0], h = n[2]; + return { + fontSizeSM: g, + fontSize: o, + fontSizeLG: H, + fontSizeXL: e[3], + fontSizeHeading1: e[6], + fontSizeHeading2: e[5], + fontSizeHeading3: e[4], + fontSizeHeading4: e[3], + fontSizeHeading5: e[2], + lineHeight: a, + lineHeightLG: h, + lineHeightSM: f, + fontHeight: Math.round(a * o), + fontHeightLG: Math.round(h * H), + fontHeightSM: Math.round(f * g), + lineHeightHeading1: n[6], + lineHeightHeading2: n[5], + lineHeightHeading3: n[4], + lineHeightHeading4: n[3], + lineHeightHeading5: n[2] + }; +}; +export { + z as default +}; diff --git a/dist/index.es179.js b/dist/index.es179.js new file mode 100644 index 00000000..aca50f0f --- /dev/null +++ b/dist/index.es179.js @@ -0,0 +1,29 @@ +function z(s) { + const { + sizeUnit: e, + sizeStep: i + } = s; + return { + sizeXXL: e * (i + 8), + // 48 + sizeXL: e * (i + 4), + // 32 + sizeLG: e * (i + 2), + // 24 + sizeMD: e * (i + 1), + // 20 + sizeMS: e * i, + // 16 + size: e * i, + // 16 + sizeSM: e * (i - 1), + // 12 + sizeXS: e * (i - 2), + // 8 + sizeXXS: e * (i - 3) + // 4 + }; +} +export { + z as default +}; diff --git a/dist/index.es18.js b/dist/index.es18.js index 05ae4117..68e52b1c 100644 --- a/dist/index.es18.js +++ b/dist/index.es18.js @@ -1,188 +1,28 @@ -import * as e from "react"; -import * as x from "recharts"; -import { cn as s } from "./index.es54.js"; -const j = { light: "", dark: ".dark" }, k = e.createContext(null); -function w() { - const i = e.useContext(k); - if (!i) - throw new Error("useChart must be used within a "); - return i; -} -function P({ - id: i, - className: t, - children: n, - config: r, - ...a -}) { - const b = e.useId(), o = `chart-${i || b.replace(/:/g, "")}`; - return /* @__PURE__ */ e.createElement(k.Provider, { value: { config: r } }, /* @__PURE__ */ e.createElement( - "div", +import { j as r } from "./index.es64.js"; +import * as e from "@radix-ui/react-checkbox"; +import { CheckIcon as a } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function c({ className: i, ...t }) { + return /* @__PURE__ */ r.jsx( + e.Root, { - "data-slot": "chart", - "data-chart": o, - className: s( - "[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden", - t + "data-slot": "checkbox", + className: o( + "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", + i ), - ...a - }, - /* @__PURE__ */ e.createElement($, { id: o, config: r }), - /* @__PURE__ */ e.createElement(x.ResponsiveContainer, null, n) - )); -} -const $ = ({ id: i, config: t }) => { - const n = Object.entries(t).filter(([, r]) => r.theme || r.color); - return n.length ? /* @__PURE__ */ e.createElement( - "style", - { - dangerouslySetInnerHTML: { - __html: Object.entries(j).map( - ([r, a]) => ` -${a} [data-chart=${i}] { -${n.map(([b, o]) => { - const c = o.theme?.[r] || o.color; - return c ? ` --color-${b}: ${c};` : null; - }).join(` -`)} -} -` - ).join(` -`) - } - } - ) : null; -}, T = x.Tooltip; -function I({ - active: i, - payload: t, - className: n, - indicator: r = "dot", - hideLabel: a = !1, - hideIndicator: b = !1, - label: o, - labelFormatter: c, - labelClassName: u, - formatter: E, - color: y, - nameKey: N, - labelKey: h -}) { - const { config: m } = w(), C = e.useMemo(() => { - if (a || !t?.length) - return null; - const [l] = t, g = `${h || l?.dataKey || l?.name || "value"}`, v = p(m, l, g), d = !h && typeof o == "string" ? m[o]?.label || o : v?.label; - return c ? /* @__PURE__ */ e.createElement("div", { className: s("lib:font-medium", u) }, c(d, t)) : d ? /* @__PURE__ */ e.createElement("div", { className: s("lib:font-medium", u) }, d) : null; - }, [o, c, t, a, u, m, h]); - if (!i || !t?.length) - return null; - const f = t.length === 1 && r !== "dot"; - return /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:border-border/50 lib:bg-background lib:grid lib:min-w-[8rem] lib:items-start lib:gap-1.5 lib:rounded-lg lib:border lib:px-2.5 lib:py-1.5 lib:text-xs lib:shadow-xl", - n - ) - }, - f ? null : C, - /* @__PURE__ */ e.createElement("div", { className: "lib:grid lib:gap-1.5" }, t.map((l, g) => { - const v = `${N || l.name || l.dataKey || "value"}`, d = p(m, l, v), _ = y || l.payload.fill || l.color; - return /* @__PURE__ */ e.createElement( - "div", + ...t, + children: /* @__PURE__ */ r.jsx( + e.Indicator, { - key: l.dataKey, - className: s( - "[&>svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5", - r === "dot" && "lib:items-center" - ) - }, - E && l?.value !== void 0 && l.name ? E(l.value, l.name, l, g, l.payload) : /* @__PURE__ */ e.createElement(e.Fragment, null, d?.icon ? /* @__PURE__ */ e.createElement(d.icon, null) : !b && /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:shrink-0 lib:rounded-[2px] lib:border-(--color-border) lib:bg-(--color-bg)", - { - "h-2.5 w-2.5": r === "dot", - "w-1": r === "line", - "w-0 border-[1.5px] border-dashed bg-transparent": r === "dashed", - "my-0.5": f && r === "dashed" - } - ), - style: { - "--color-bg": _, - "--color-border": _ - } - } - ), /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:flex lib:flex-1 lib:justify-between lib:leading-none", - f ? "lib:items-end" : "lib:items-center" - ) - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:grid lib:gap-1.5" }, f ? C : null, /* @__PURE__ */ e.createElement("span", { className: "lib:text-muted-foreground" }, d?.label || l.name)), - l.value && /* @__PURE__ */ e.createElement("span", { className: "lib:text-foreground lib:font-mono lib:font-medium lib:tabular-nums" }, l.value.toLocaleString()) - )) - ); - })) - ); -} -const S = x.Legend; -function K({ - className: i, - hideIcon: t = !1, - payload: n, - verticalAlign: r = "bottom", - nameKey: a -}) { - const { config: b } = w(); - return n?.length ? /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:flex lib:items-center lib:justify-center lib:gap-4", - r === "top" ? "lib:pb-3" : "lib:pt-3", - i + "data-slot": "checkbox-indicator", + className: "flex items-center justify-center text-current transition-none", + children: /* @__PURE__ */ r.jsx(a, { className: "size-3.5" }) + } ) - }, - n.map((o) => { - const c = `${a || o.dataKey || "value"}`, u = p(b, o, c); - return /* @__PURE__ */ e.createElement( - "div", - { - key: o.value, - className: s( - "[&>svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3" - ) - }, - u?.icon && !t ? /* @__PURE__ */ e.createElement(u.icon, null) : /* @__PURE__ */ e.createElement( - "div", - { - className: "lib:h-2 lib:w-2 lib:shrink-0 lib:rounded-[2px]", - style: { - backgroundColor: o.color - } - } - ), - u?.label - ); - }) - ) : null; -} -function p(i, t, n) { - if (typeof t != "object" || t === null) - return; - const r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0; - let a = n; - return n in t && typeof t[n] == "string" ? a = t[n] : r && n in r && typeof r[n] == "string" && (a = r[n]), a in i ? i[a] : i[n]; + } + ); } export { - P as ChartContainer, - S as ChartLegend, - K as ChartLegendContent, - $ as ChartStyle, - T as ChartTooltip, - I as ChartTooltipContent + c as Checkbox }; diff --git a/dist/index.es180.js b/dist/index.es180.js new file mode 100644 index 00000000..f14dfd43 --- /dev/null +++ b/dist/index.es180.js @@ -0,0 +1,46 @@ +import "./index.es161.js"; +import { getSolidColor as t, getAlphaColor as e } from "./index.es251.js"; +import a from "./index.es164.js"; +const s = (c) => { + const o = a(c); + return { + 1: o[0], + 2: o[1], + 3: o[2], + 4: o[3], + 5: o[4], + 6: o[5], + 7: o[6], + 8: o[4], + 9: o[5], + 10: o[6] + // 8: colors[7], + // 9: colors[8], + // 10: colors[9], + }; +}, B = (c, o) => { + const l = c || "#fff", r = o || "#000"; + return { + colorBgBase: l, + colorTextBase: r, + colorText: e(r, 0.88), + colorTextSecondary: e(r, 0.65), + colorTextTertiary: e(r, 0.45), + colorTextQuaternary: e(r, 0.25), + colorFill: e(r, 0.15), + colorFillSecondary: e(r, 0.06), + colorFillTertiary: e(r, 0.04), + colorFillQuaternary: e(r, 0.02), + colorBgLayout: t(l, 4), + colorBgContainer: t(l, 0), + colorBgElevated: t(l, 0), + colorBgSpotlight: e(r, 0.85), + colorBgBlur: "transparent", + colorBorder: t(l, 15), + colorBorderSecondary: t(l, 6) + }; +}; +export { + s as generateColorPalettes, + B as generateNeutralColorPalettes +}; diff --git a/dist/index.es181.js b/dist/index.es181.js new file mode 100644 index 00000000..47223fc0 --- /dev/null +++ b/dist/index.es181.js @@ -0,0 +1,140 @@ +import { genRoundedArrow as i } from "./index.es188.js"; +const m = 8; +function w(r) { + const { + contentRadius: e, + limitVerticalRadius: s + } = r, t = e > 12 ? e + 2 : 12; + return { + arrowOffsetHorizontal: t, + arrowOffsetVertical: s ? m : t + }; +} +function c(r, e) { + return r ? e : {}; +} +function u(r, e, s) { + const { + componentCls: t, + boxShadowPopoverArrow: p, + arrowOffsetVertical: o, + arrowOffsetHorizontal: a + } = r, { + arrowDistance: n = 0, + arrowPlacement: l = { + left: !0, + right: !0, + top: !0, + bottom: !0 + } + } = {}; + return { + [t]: Object.assign(Object.assign(Object.assign(Object.assign({ + // ============================ Basic ============================ + [`${t}-arrow`]: [Object.assign(Object.assign({ + position: "absolute", + zIndex: 1, + display: "block" + }, i(r, e, p)), { + "&:before": { + background: e + } + })] + }, c(!!l.top, { + [[`&-placement-top > ${t}-arrow`, `&-placement-topLeft > ${t}-arrow`, `&-placement-topRight > ${t}-arrow`].join(",")]: { + bottom: n, + transform: "translateY(100%) rotate(180deg)" + }, + [`&-placement-top > ${t}-arrow`]: { + left: { + _skip_check_: !0, + value: "50%" + }, + transform: "translateX(-50%) translateY(100%) rotate(180deg)" + }, + [`&-placement-topLeft > ${t}-arrow`]: { + left: { + _skip_check_: !0, + value: a + } + }, + [`&-placement-topRight > ${t}-arrow`]: { + right: { + _skip_check_: !0, + value: a + } + } + })), c(!!l.bottom, { + [[`&-placement-bottom > ${t}-arrow`, `&-placement-bottomLeft > ${t}-arrow`, `&-placement-bottomRight > ${t}-arrow`].join(",")]: { + top: n, + transform: "translateY(-100%)" + }, + [`&-placement-bottom > ${t}-arrow`]: { + left: { + _skip_check_: !0, + value: "50%" + }, + transform: "translateX(-50%) translateY(-100%)" + }, + [`&-placement-bottomLeft > ${t}-arrow`]: { + left: { + _skip_check_: !0, + value: a + } + }, + [`&-placement-bottomRight > ${t}-arrow`]: { + right: { + _skip_check_: !0, + value: a + } + } + })), c(!!l.left, { + [[`&-placement-left > ${t}-arrow`, `&-placement-leftTop > ${t}-arrow`, `&-placement-leftBottom > ${t}-arrow`].join(",")]: { + right: { + _skip_check_: !0, + value: n + }, + transform: "translateX(100%) rotate(90deg)" + }, + [`&-placement-left > ${t}-arrow`]: { + top: { + _skip_check_: !0, + value: "50%" + }, + transform: "translateY(-50%) translateX(100%) rotate(90deg)" + }, + [`&-placement-leftTop > ${t}-arrow`]: { + top: o + }, + [`&-placement-leftBottom > ${t}-arrow`]: { + bottom: o + } + })), c(!!l.right, { + [[`&-placement-right > ${t}-arrow`, `&-placement-rightTop > ${t}-arrow`, `&-placement-rightBottom > ${t}-arrow`].join(",")]: { + left: { + _skip_check_: !0, + value: n + }, + transform: "translateX(-100%) rotate(-90deg)" + }, + [`&-placement-right > ${t}-arrow`]: { + top: { + _skip_check_: !0, + value: "50%" + }, + transform: "translateY(-50%) translateX(-100%) rotate(-90deg)" + }, + [`&-placement-rightTop > ${t}-arrow`]: { + top: o + }, + [`&-placement-rightBottom > ${t}-arrow`]: { + bottom: o + } + })) + }; +} +export { + m as MAX_VERTICAL_CONTENT_RADIUS, + u as default, + w as getArrowOffsetToken +}; diff --git a/dist/index.es182.js b/dist/index.es182.js new file mode 100644 index 00000000..bcb11f44 --- /dev/null +++ b/dist/index.es182.js @@ -0,0 +1,6 @@ +import "./index.es121.js"; +import "react"; +import r from "./index.es122.js"; +export { + r as default +}; diff --git a/dist/index.es183.js b/dist/index.es183.js new file mode 100644 index 00000000..3192e00d --- /dev/null +++ b/dist/index.es183.js @@ -0,0 +1,17 @@ +import s from "./index.es121.js"; +import * as a from "react"; +function m(e) { + var t = e.children, l = e.prefixCls, n = e.id, c = e.overlayInnerStyle, i = e.className, r = e.style; + return /* @__PURE__ */ a.createElement("div", { + className: s("".concat(l, "-content"), i), + style: r + }, /* @__PURE__ */ a.createElement("div", { + className: "".concat(l, "-inner"), + id: n, + role: "tooltip", + style: c + }, typeof t == "function" ? t() : t)); +} +export { + m as default +}; diff --git a/dist/index.es184.js b/dist/index.es184.js new file mode 100644 index 00000000..6970f823 --- /dev/null +++ b/dist/index.es184.js @@ -0,0 +1,214 @@ +import T from "./index.es156.js"; +import c from "./index.es171.js"; +import st from "./index.es209.js"; +import Oe from "./index.es265.js"; +import K from "./index.es121.js"; +import lt from "./index.es146.js"; +import { isDOM as Ee } from "./index.es203.js"; +import { getShadowRoot as _e } from "./index.es270.js"; +import R from "./index.es172.js"; +import ct from "./index.es271.js"; +import M from "./index.es173.js"; +import ft from "./index.es269.js"; +import * as n from "react"; +import pt from "./index.es272.js"; +import mt from "./index.es273.js"; +import ke from "./index.es274.js"; +import gt from "./index.es275.js"; +import vt from "./index.es276.js"; +import dt from "./index.es277.js"; +import ht from "./index.es278.js"; +import { getAlignPopupClassName as Pt, getMotion as xe } from "./index.es279.js"; +var Ct = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"]; +function Rt() { + var Ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Oe, Q = /* @__PURE__ */ n.forwardRef(function(t, Le) { + var U = t.prefixCls, S = U === void 0 ? "rc-trigger-popup" : U, ze = t.children, Z = t.action, He = Z === void 0 ? "hover" : Z, Ie = t.showAction, Be = t.hideAction, v = t.popupVisible, Fe = t.defaultPopupVisible, V = t.onPopupVisibleChange, L = t.afterPopupVisibleChange, z = t.mouseEnterDelay, ee = t.mouseLeaveDelay, H = ee === void 0 ? 0.1 : ee, We = t.focusDelay, Xe = t.blurDelay, oe = t.mask, te = t.maskClosable, Ye = te === void 0 ? !0 : te, je = t.getPopupContainer, Je = t.forceRender, qe = t.autoDestroy, Ge = t.destroyPopupOnHide, Ke = t.popup, Qe = t.popupClassName, Ue = t.popupStyle, I = t.popupPlacement, ne = t.builtinPlacements, d = ne === void 0 ? {} : ne, re = t.popupAlign, Ze = t.zIndex, ae = t.stretch, D = t.getPopupClassNameFromAlign, eo = t.fresh, A = t.alignPoint, oo = t.onPopupClick, to = t.onPopupAlign, B = t.arrow, no = t.popupMotion, ro = t.maskMotion, ao = t.popupTransitionName, io = t.popupAnimation, uo = t.maskTransitionName, so = t.maskAnimation, ie = t.className, lo = t.getTriggerDOMNode, F = st(t, Ct), co = qe || Ge || !1, fo = n.useState(!1), ue = c(fo, 2), po = ue[0], mo = ue[1]; + M(function() { + mo(ft()); + }, []); + var se = n.useRef({}), g = n.useContext(ke), go = n.useMemo(function() { + return { + registerSubPopup: function(o, r) { + se.current[o] = r, g?.registerSubPopup(o, r); + } + }; + }, [g]), vo = ct(), ho = n.useState(null), le = c(ho, 2), u = le[0], Po = le[1], ce = n.useRef(null), Co = R(function(e) { + ce.current = e, Ee(e) && u !== e && Po(e), g?.registerSubPopup(vo, e); + }), Ro = n.useState(null), fe = c(Ro, 2), m = fe[0], Mo = fe[1], pe = n.useRef(null), So = R(function(e) { + Ee(e) && m !== e && (Mo(e), pe.current = e); + }), w = n.Children.only(ze), f = w?.props || {}, h = {}, Ao = R(function(e) { + var o, r, i = m; + return i?.contains(e) || ((o = _e(i)) === null || o === void 0 ? void 0 : o.host) === e || e === i || u?.contains(e) || ((r = _e(u)) === null || r === void 0 ? void 0 : r.host) === e || e === u || Object.values(se.current).some(function(a) { + return a?.contains(e) || e === a; + }); + }), yo = xe(S, no, io, ao), bo = xe(S, ro, so, uo), To = n.useState(Fe || !1), me = c(To, 2), Do = me[0], ge = me[1], s = v ?? Do, wo = R(function(e) { + v === void 0 && ge(e); + }); + M(function() { + ge(v || !1); + }, [v]); + var y = n.useRef(s); + y.current = s; + var $ = n.useRef([]); + $.current = []; + var ve = R(function(e) { + var o; + wo(e), ((o = $.current[$.current.length - 1]) !== null && o !== void 0 ? o : s) !== e && ($.current.push(e), V?.(e)); + }), de = n.useRef(), he = function() { + clearTimeout(de.current); + }, p = function(o) { + var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; + he(), r === 0 ? ve(o) : de.current = setTimeout(function() { + ve(o); + }, r * 1e3); + }; + n.useEffect(function() { + return he; + }, []); + var $o = n.useState(!1), Pe = c($o, 2), W = Pe[0], Ce = Pe[1]; + M(function(e) { + (!e || s) && Ce(!0); + }, [s]); + var No = n.useState(null), Re = c(No, 2), X = Re[0], Me = Re[1], Eo = n.useState(null), Se = c(Eo, 2), Y = Se[0], _o = Se[1], N = function(o) { + _o([o.clientX, o.clientY]); + }, ko = vt(s, u, A && Y !== null ? Y : m, I, d, re, to), l = c(ko, 11), xo = l[0], Oo = l[1], Vo = l[2], Lo = l[3], zo = l[4], Ho = l[5], Io = l[6], Bo = l[7], Fo = l[8], E = l[9], j = l[10], Wo = gt(po, He, Ie, Be), Ae = c(Wo, 2), _ = Ae[0], b = Ae[1], ye = _.has("click"), k = b.has("click") || b.has("contextMenu"), P = R(function() { + W || j(); + }), Xo = function() { + y.current && A && k && p(!1); + }; + dt(s, m, u, P, Xo), M(function() { + P(); + }, [Y, I]), M(function() { + s && !(d != null && d[I]) && P(); + }, [JSON.stringify(re)]); + var Yo = n.useMemo(function() { + var e = Pt(d, S, E, A); + return K(e, D?.(E)); + }, [E, D, d, S, A]); + n.useImperativeHandle(Le, function() { + return { + nativeElement: pe.current, + popupElement: ce.current, + forceAlign: P + }; + }); + var jo = n.useState(0), be = c(jo, 2), Jo = be[0], qo = be[1], Go = n.useState(0), Te = c(Go, 2), Ko = Te[0], Qo = Te[1], De = function() { + if (ae && m) { + var o = m.getBoundingClientRect(); + qo(o.width), Qo(o.height); + } + }, Uo = function() { + De(), P(); + }, Zo = function(o) { + Ce(!1), j(), L?.(o); + }, et = function() { + return new Promise(function(o) { + De(), Me(function() { + return o; + }); + }); + }; + M(function() { + X && (j(), X(), Me(null)); + }, [X]); + function C(e, o, r, i) { + h[e] = function(a) { + var x; + i?.(a), p(o, r); + for (var G = arguments.length, Ne = new Array(G > 1 ? G - 1 : 0), O = 1; O < G; O++) + Ne[O - 1] = arguments[O]; + (x = f[e]) === null || x === void 0 || x.call.apply(x, [f, a].concat(Ne)); + }; + } + (ye || k) && (h.onClick = function(e) { + var o; + y.current && k ? p(!1) : !y.current && ye && (N(e), p(!0)); + for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++) + i[a - 1] = arguments[a]; + (o = f.onClick) === null || o === void 0 || o.call.apply(o, [f, e].concat(i)); + }); + var ot = ht(s, k, m, u, oe, Ye, Ao, p), tt = _.has("hover"), nt = b.has("hover"), J, we; + tt && (C("onMouseEnter", !0, z, function(e) { + N(e); + }), C("onPointerEnter", !0, z, function(e) { + N(e); + }), J = function(o) { + (s || W) && u !== null && u !== void 0 && u.contains(o.target) && p(!0, z); + }, A && (h.onMouseMove = function(e) { + var o; + (o = f.onMouseMove) === null || o === void 0 || o.call(f, e); + })), nt && (C("onMouseLeave", !1, H), C("onPointerLeave", !1, H), we = function() { + p(!1, H); + }), _.has("focus") && C("onFocus", !0, We), b.has("focus") && C("onBlur", !1, Xe), _.has("contextMenu") && (h.onContextMenu = function(e) { + var o; + y.current && b.has("contextMenu") ? p(!1) : (N(e), p(!0)), e.preventDefault(); + for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++) + i[a - 1] = arguments[a]; + (o = f.onContextMenu) === null || o === void 0 || o.call.apply(o, [f, e].concat(i)); + }), ie && (h.className = K(f.className, ie)); + var q = T(T({}, f), h), $e = {}, rt = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"]; + rt.forEach(function(e) { + F[e] && ($e[e] = function() { + for (var o, r = arguments.length, i = new Array(r), a = 0; a < r; a++) + i[a] = arguments[a]; + (o = q[e]) === null || o === void 0 || o.call.apply(o, [q].concat(i)), F[e].apply(F, i); + }); + }); + var at = /* @__PURE__ */ n.cloneElement(w, T(T({}, q), $e)), it = { + x: Ho, + y: Io + }, ut = B ? T({}, B !== !0 ? B : {}) : null; + return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(lt, { + disabled: !s, + ref: So, + onResize: Uo + }, /* @__PURE__ */ n.createElement(mt, { + getTriggerDOMNode: lo + }, at)), /* @__PURE__ */ n.createElement(ke.Provider, { + value: go + }, /* @__PURE__ */ n.createElement(pt, { + portal: Ve, + ref: Co, + prefixCls: S, + popup: Ke, + className: K(Qe, Yo), + style: Ue, + target: m, + onMouseEnter: J, + onMouseLeave: we, + onPointerEnter: J, + zIndex: Ze, + open: s, + keepDom: W, + fresh: eo, + onClick: oo, + onPointerDownCapture: ot, + mask: oe, + motion: yo, + maskMotion: bo, + onVisibleChanged: Zo, + onPrepare: et, + forceRender: Je, + autoDestroy: co, + getPopupContainer: je, + align: E, + arrow: ut, + arrowPos: it, + ready: xo, + offsetX: Oo, + offsetY: Vo, + offsetR: Lo, + offsetB: zo, + onAlign: P, + stretch: ae, + targetWidth: Jo / Bo, + targetHeight: Ko / Fo + }))); + }); + return process.env.NODE_ENV !== "production" && (Q.displayName = "Trigger"), Q; +} +const Bt = Rt(Oe); +export { + Bt as default, + Rt as generateTrigger +}; diff --git a/dist/index.es185.js b/dist/index.es185.js new file mode 100644 index 00000000..1eb364f8 --- /dev/null +++ b/dist/index.es185.js @@ -0,0 +1,52 @@ +import u from "./index.es202.js"; +import m from "./index.es156.js"; +import h from "./index.es155.js"; +import l from "./index.es219.js"; +import T from "./index.es162.js"; +import { ATTR_TOKEN as _, ATTR_MARK as y } from "./index.es94.js"; +import "./index.es95.js"; +import S from "./index.es230.js"; +import "./index.es97.js"; +var b = /* @__PURE__ */ new WeakMap(), i = {}; +function O(r, t) { + for (var n = b, e = 0; e < t.length; e += 1) { + var a = t[e]; + n.has(a) || n.set(a, /* @__PURE__ */ new WeakMap()), n = n.get(a); + } + return n.has(i) || n.set(i, r()), n.get(i); +} +var s = /* @__PURE__ */ new WeakMap(); +function p(r) { + var t = s.get(r) || ""; + return t || (Object.keys(r).forEach(function(n) { + var e = r[n]; + t += n, e instanceof S ? t += e.id : e && h(e) === "object" ? t += p(e) : t += e; + }), t = l(t), s.set(r, t)), t; +} +function U(r, t) { + return l("".concat(t, "_").concat(p(r))); +} +var W = T(); +function x(r) { + return typeof r == "number" ? "".concat(r, "px") : r; +} +function K(r, t, n) { + var e, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, v = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1; + if (v) + return r; + var c = m(m({}, a), {}, (e = {}, u(e, _, t), u(e, y, n), e)), g = Object.keys(c).map(function(o) { + var f = c[o]; + return f ? "".concat(o, '="').concat(f, '"') : null; + }).filter(function(o) { + return o; + }).join(" "); + return ""); +} +export { + p as flattenToken, + W as isClientSide, + O as memoResult, + K as toStyleStr, + U as token2key, + x as unit +}; diff --git a/dist/index.es186.js b/dist/index.es186.js new file mode 100644 index 00000000..42679a7f --- /dev/null +++ b/dist/index.es186.js @@ -0,0 +1,103 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +const S = function(o) { + let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; + return { + boxSizing: "border-box", + margin: 0, + padding: 0, + color: o.colorText, + fontSize: o.fontSize, + // font-variant: @font-variant-base; + lineHeight: o.lineHeight, + listStyle: "none", + // font-feature-settings: @font-feature-settings-base; + fontFamily: e ? "inherit" : o.fontFamily + }; +}, h = () => ({ + display: "inline-flex", + alignItems: "center", + color: "inherit", + fontStyle: "normal", + lineHeight: 0, + textAlign: "center", + textTransform: "none", + // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4 + verticalAlign: "-0.125em", + textRendering: "optimizeLegibility", + "-webkit-font-smoothing": "antialiased", + "-moz-osx-font-smoothing": "grayscale", + "> *": { + lineHeight: 1 + }, + svg: { + display: "inline-block" + } +}), y = (o) => ({ + a: { + color: o.colorLink, + textDecoration: o.linkDecoration, + backgroundColor: "transparent", + // remove the gray background on active links in IE 10. + outline: "none", + cursor: "pointer", + transition: `color ${o.motionDurationSlow}`, + "-webkit-text-decoration-skip": "objects", + // remove gaps in links underline in iOS 8+ and Safari 8+. + "&:hover": { + color: o.colorLinkHover + }, + "&:active": { + color: o.colorLinkActive + }, + "&:active,\n &:hover": { + textDecoration: o.linkHoverDecoration, + outline: 0 + }, + // https://github.com/ant-design/ant-design/issues/22503 + "&:focus": { + textDecoration: o.linkFocusDecoration, + outline: 0 + }, + "&[disabled]": { + color: o.colorTextDisabled, + cursor: "not-allowed" + } + } +}), z = (o, e, i) => { + const { + fontFamily: r, + fontSize: n + } = o, t = `[class^="${e}"], [class*=" ${e}"]`; + return { + [i ? `.${i}` : t]: { + fontFamily: r, + fontSize: n, + boxSizing: "border-box", + "&::before, &::after": { + boxSizing: "border-box" + }, + [t]: { + boxSizing: "border-box", + "&::before, &::after": { + boxSizing: "border-box" + } + } + } + }; +}; +export { + z as genCommonStyle, + y as genLinkStyle, + S as resetComponent, + h as resetIcon +}; diff --git a/dist/index.es187.js b/dist/index.es187.js new file mode 100644 index 00000000..697f0530 --- /dev/null +++ b/dist/index.es187.js @@ -0,0 +1,195 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import o from "./index.es228.js"; +import "./index.es101.js"; +import { initMotion as f } from "./index.es263.js"; +const c = new o("antZoomIn", { + "0%": { + transform: "scale(0.2)", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + opacity: 1 + } +}), p = new o("antZoomOut", { + "0%": { + transform: "scale(1)" + }, + "100%": { + transform: "scale(0.2)", + opacity: 0 + } +}), a = new o("antZoomBigIn", { + "0%": { + transform: "scale(0.8)", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + opacity: 1 + } +}), m = new o("antZoomBigOut", { + "0%": { + transform: "scale(1)" + }, + "100%": { + transform: "scale(0.8)", + opacity: 0 + } +}), y = new o("antZoomUpIn", { + "0%": { + transform: "scale(0.8)", + transformOrigin: "50% 0%", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + transformOrigin: "50% 0%" + } +}), O = new o("antZoomUpOut", { + "0%": { + transform: "scale(1)", + transformOrigin: "50% 0%" + }, + "100%": { + transform: "scale(0.8)", + transformOrigin: "50% 0%", + opacity: 0 + } +}), g = new o("antZoomLeftIn", { + "0%": { + transform: "scale(0.8)", + transformOrigin: "0% 50%", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + transformOrigin: "0% 50%" + } +}), l = new o("antZoomLeftOut", { + "0%": { + transform: "scale(1)", + transformOrigin: "0% 50%" + }, + "100%": { + transform: "scale(0.8)", + transformOrigin: "0% 50%", + opacity: 0 + } +}), u = new o("antZoomRightIn", { + "0%": { + transform: "scale(0.8)", + transformOrigin: "100% 50%", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + transformOrigin: "100% 50%" + } +}), z = new o("antZoomRightOut", { + "0%": { + transform: "scale(1)", + transformOrigin: "100% 50%" + }, + "100%": { + transform: "scale(0.8)", + transformOrigin: "100% 50%", + opacity: 0 + } +}), w = new o("antZoomDownIn", { + "0%": { + transform: "scale(0.8)", + transformOrigin: "50% 100%", + opacity: 0 + }, + "100%": { + transform: "scale(1)", + transformOrigin: "50% 100%" + } +}), K = new o("antZoomDownOut", { + "0%": { + transform: "scale(1)", + transformOrigin: "50% 100%" + }, + "100%": { + transform: "scale(0.8)", + transformOrigin: "50% 100%", + opacity: 0 + } +}), I = { + zoom: { + inKeyframes: c, + outKeyframes: p + }, + "zoom-big": { + inKeyframes: a, + outKeyframes: m + }, + "zoom-big-fast": { + inKeyframes: a, + outKeyframes: m + }, + "zoom-left": { + inKeyframes: g, + outKeyframes: l + }, + "zoom-right": { + inKeyframes: u, + outKeyframes: z + }, + "zoom-up": { + inKeyframes: y, + outKeyframes: O + }, + "zoom-down": { + inKeyframes: w, + outKeyframes: K + } +}, T = (t, r) => { + const { + antCls: s + } = t, n = `${s}-${r}`, { + inKeyframes: i, + outKeyframes: e + } = I[r]; + return [f(n, i, e, t.motionDurationFast), { + [` + ${n}-enter, + ${n}-appear + `]: { + transform: "scale(0)", + opacity: 0, + animationTimingFunction: t.motionEaseOutCirc, + "&-prepare": { + transform: "none" + } + }, + [`${n}-leave`]: { + animationTimingFunction: t.motionEaseInOutCirc + } + }]; +}; +export { + T as initZoomMotion, + a as zoomBigIn, + m as zoomBigOut, + w as zoomDownIn, + K as zoomDownOut, + c as zoomIn, + g as zoomLeftIn, + l as zoomLeftOut, + p as zoomOut, + u as zoomRightIn, + z as zoomRightOut, + y as zoomUpIn, + O as zoomUpOut +}; diff --git a/dist/index.es188.js b/dist/index.es188.js new file mode 100644 index 00000000..1c8c1171 --- /dev/null +++ b/dist/index.es188.js @@ -0,0 +1,74 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import { unit as y } from "./index.es185.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es96.js"; +import "./index.es95.js"; +import "./index.es97.js"; +import "./index.es101.js"; +function L(c) { + const { + sizePopupArrow: h, + borderRadiusXS: r, + borderRadiusOuter: t + } = c, o = h / 2, e = 0, n = o, s = t * 1 / Math.sqrt(2), a = o - t * (1 - 1 / Math.sqrt(2)), p = o - r * (1 / Math.sqrt(2)), d = t * (Math.sqrt(2) - 1) + r * (1 / Math.sqrt(2)), u = 2 * o - p, $ = d, m = 2 * o - s, l = a, w = 2 * o - e, b = n, g = o * Math.sqrt(2) + t * (Math.sqrt(2) - 2), i = t * (Math.sqrt(2) - 1), x = `polygon(${i}px 100%, 50% ${i}px, ${2 * o - i}px 100%, ${i}px 100%)`, f = `path('M ${e} ${n} A ${t} ${t} 0 0 0 ${s} ${a} L ${p} ${d} A ${r} ${r} 0 0 1 ${u} ${$} L ${m} ${l} A ${t} ${t} 0 0 0 ${w} ${b} Z')`; + return { + arrowShadowWidth: g, + arrowPath: f, + arrowPolygon: x + }; +} +const O = (c, h, r) => { + const { + sizePopupArrow: t, + arrowPolygon: o, + arrowPath: e, + arrowShadowWidth: n, + borderRadiusXS: s, + calc: a + } = c; + return { + pointerEvents: "none", + width: t, + height: t, + overflow: "hidden", + "&::before": { + position: "absolute", + bottom: 0, + insetInlineStart: 0, + width: t, + height: a(t).div(2).equal(), + background: h, + clipPath: { + _multi_value_: !0, + value: [o, e] + }, + content: '""' + }, + "&::after": { + content: '""', + position: "absolute", + width: n, + height: n, + bottom: 0, + insetInline: 0, + margin: "auto", + borderRadius: { + _skip_check_: !0, + value: `0 0 ${y(s)} 0` + }, + transform: "translateY(50%) rotate(-135deg)", + boxShadow: r, + zIndex: 0, + background: "transparent" + } + }; +}; +export { + O as genRoundedArrow, + L as getArrowToken +}; diff --git a/dist/index.es189.js b/dist/index.es189.js new file mode 100644 index 00000000..471f52ca --- /dev/null +++ b/dist/index.es189.js @@ -0,0 +1,157 @@ +import k, { useContext as U } from "react"; +import "./index.es92.js"; +import "./index.es93.js"; +import Z from "./index.es217.js"; +import $ from "./index.es218.js"; +import { warningOnce as H } from "./index.es96.js"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es97.js"; +import "./index.es101.js"; +import { token2CSSVar as K } from "./index.es220.js"; +import "./index.es173.js"; +import "./index.es169.js"; +import { ConfigContext as M } from "./index.es112.js"; +import { genLinkStyle as B, genCommonStyle as F } from "./index.es186.js"; +import y, { unitless as L, ignore as N } from "./index.es130.js"; +import q from "./index.es243.js"; +import G from "./index.es246.js"; +import J, { merge as b } from "./index.es191.js"; +import Q from "./index.es120.js"; +const E = (n, i, o) => { + var t; + return typeof o == "function" ? o(b(i, (t = i[n]) !== null && t !== void 0 ? t : {})) : o ?? {}; +}, x = (n, i, o, t) => { + const e = Object.assign({}, i[n]); + if (t?.deprecatedTokens) { + const { + deprecatedTokens: l + } = t; + l.forEach((a) => { + let [d, r] = a; + var s; + process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && H(!e?.[d], `Component Token \`${String(d)}\` of ${n} is deprecated. Please use \`${String(r)}\` instead.`), (e?.[d] || e?.[r]) && ((s = e[r]) !== null && s !== void 0 || (e[r] = e?.[d])); + }); + } + const c = Object.assign(Object.assign({}, o), e); + return Object.keys(c).forEach((l) => { + c[l] === i[l] && delete c[l]; + }), c; +}, W = (n, i) => `${[i, n.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-")}`; +function X(n, i, o) { + let t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; + const e = Array.isArray(n) ? n : [n, n], [c] = e, l = e.join("-"); + return function(a) { + let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a; + const [r, s, u, g, f] = y(), { + getPrefixCls: p, + iconPrefixCls: m, + csp: S + } = U(M), C = p(), h = f ? "css" : "js", R = q(h), { + max: A, + min: P + } = G(h), O = { + theme: r, + token: g, + hashId: u, + nonce: () => S?.nonce, + clientOnly: t.clientOnly, + // antd is always at top of styles + order: t.order || -999 + }; + return $(Object.assign(Object.assign({}, O), { + clientOnly: !1, + path: ["Shared", C] + }), () => [{ + // Link + "&": B(g) + }]), Q(m, S), [$(Object.assign(Object.assign({}, O), { + path: [l, a, m] + }), () => { + if (t.injectStyle === !1) + return []; + const { + token: _, + flush: w + } = J(g), v = E(c, s, o), I = `.${a}`, T = x(c, s, v, { + deprecatedTokens: t.deprecatedTokens + }); + f && Object.keys(v).forEach((V) => { + v[V] = `var(${K(V, W(c, f.prefix))})`; + }); + const j = b(_, { + componentCls: I, + prefixCls: a, + iconCls: `.${m}`, + antCls: `.${C}`, + calc: R, + // @ts-ignore + max: A, + // @ts-ignore + min: P + }, f ? v : T), z = i(j, { + hashId: u, + prefixCls: a, + rootPrefixCls: C, + iconPrefixCls: m + }); + return w(c, T), [t.resetStyle === !1 ? null : F(j, a, d), z]; + }), u]; + }; +} +const Y = (n, i, o) => { + function t(r) { + return `${n}${r.slice(0, 1).toUpperCase()}${r.slice(1)}`; + } + const { + unitless: e = {}, + injectStyle: c = !0 + } = o ?? {}, l = { + [t("zIndexPopup")]: !0 + }; + Object.keys(e).forEach((r) => { + l[t(r)] = e[r]; + }); + const a = (r) => { + let { + rootCls: s, + cssVar: u + } = r; + const [, g] = y(); + return Z({ + path: [n], + prefix: u.prefix, + key: u?.key, + unitless: Object.assign(Object.assign({}, L), l), + ignore: N, + token: g, + scope: s + }, () => { + const f = E(n, g, i), p = x(n, g, f, { + deprecatedTokens: o?.deprecatedTokens + }); + return Object.keys(f).forEach((m) => { + p[t(m)] = p[m], delete p[m]; + }), p; + }), null; + }; + return (r) => { + const [, , , , s] = y(); + return [(u) => c && s ? /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(a, { + rootCls: r, + cssVar: s, + component: n + }), u) : u, s?.key]; + }; +}, ye = (n, i, o, t) => { + const e = X(n, i, o, t), c = Y(Array.isArray(n) ? n[0] : n, o, t); + return function(l) { + let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : l; + const [, d] = e(l, a), [r, s] = c(a); + return [r, d, s]; + }; +}; +export { + X as default, + ye as genStyleHooks +}; diff --git a/dist/index.es19.js b/dist/index.es19.js index 6b091fc4..27cd975b 100644 --- a/dist/index.es19.js +++ b/dist/index.es19.js @@ -1,28 +1,16 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-checkbox"; -import { CheckIcon as a } from "lucide-react"; -import { cn as l } from "./index.es54.js"; -function c({ className: r, ...t }) { - return /* @__PURE__ */ i.createElement( - e.Root, - { - "data-slot": "checkbox", - className: l( - "lib:peer lib:border-input dark:lib:bg-input/30 data-[state=checked]:lib:bg-primary data-[state=checked]:lib:text-primary-foreground dark:data-[state=checked]:lib:bg-primary data-[state=checked]:lib:border-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:size-4 lib:shrink-0 lib:rounded-[4px] lib:border lib:shadow-xs lib:transition-shadow lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - r - ), - ...t - }, - /* @__PURE__ */ i.createElement( - e.Indicator, - { - "data-slot": "checkbox-indicator", - className: "lib:flex lib:items-center lib:justify-center lib:text-current lib:transition-none" - }, - /* @__PURE__ */ i.createElement(a, { className: "lib:size-3.5" }) - ) - ); +import { j as o } from "./index.es64.js"; +import * as t from "@radix-ui/react-collapsible"; +function i({ ...l }) { + return /* @__PURE__ */ o.jsx(t.Root, { "data-slot": "collapsible", ...l }); +} +function r({ ...l }) { + return /* @__PURE__ */ o.jsx(t.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...l }); +} +function s({ ...l }) { + return /* @__PURE__ */ o.jsx(t.CollapsibleContent, { "data-slot": "collapsible-content", ...l }); } export { - c as Checkbox + i as Collapsible, + s as CollapsibleContent, + r as CollapsibleTrigger }; diff --git a/dist/index.es190.js b/dist/index.es190.js new file mode 100644 index 00000000..61b4a74e --- /dev/null +++ b/dist/index.es190.js @@ -0,0 +1,15 @@ +import { PresetColors as a } from "./index.es145.js"; +function l(t, s) { + return a.reduce((o, r) => { + const e = t[`${r}1`], n = t[`${r}3`], i = t[`${r}6`], C = t[`${r}7`]; + return Object.assign(Object.assign({}, o), s(r, { + lightColor: e, + lightBorderColor: n, + darkColor: i, + textColor: C + })); + }, {}); +} +export { + l as default +}; diff --git a/dist/index.es191.js b/dist/index.es191.js new file mode 100644 index 00000000..7cf3aea8 --- /dev/null +++ b/dist/index.es191.js @@ -0,0 +1,45 @@ +const u = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u"; +let a = !0; +function l() { + for (var o = arguments.length, e = new Array(o), t = 0; t < o; t++) + e[t] = arguments[t]; + if (!u) + return Object.assign.apply(Object, [{}].concat(e)); + a = !1; + const s = {}; + return e.forEach((n) => { + Object.keys(n).forEach((r) => { + Object.defineProperty(s, r, { + configurable: !0, + enumerable: !0, + get: () => n[r] + }); + }); + }), a = !0, s; +} +const i = {}; +function f() { +} +const d = (o) => { + let e, t = o, s = f; + return u && typeof Proxy < "u" && (e = /* @__PURE__ */ new Set(), t = new Proxy(o, { + get(n, c) { + return a && e.add(c), n[c]; + } + }), s = (n, c) => { + var r; + i[n] = { + global: Array.from(e), + component: Object.assign(Object.assign({}, (r = i[n]) === null || r === void 0 ? void 0 : r.component), c) + }; + }), { + token: t, + keys: e, + flush: s + }; +}; +export { + d as default, + l as merge, + i as statistic +}; diff --git a/dist/index.es192.js b/dist/index.es192.js new file mode 100644 index 00000000..75bed347 --- /dev/null +++ b/dist/index.es192.js @@ -0,0 +1,6 @@ +function c(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); +} +export { + c as default +}; diff --git a/dist/index.es193.js b/dist/index.es193.js new file mode 100644 index 00000000..8ff3dc74 --- /dev/null +++ b/dist/index.es193.js @@ -0,0 +1,15 @@ +import f from "./index.es194.js"; +function n(r, a) { + for (var t = 0; t < a.length; t++) { + var e = a[t]; + e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, f(e.key), e); + } +} +function l(r, a, t) { + return a && n(r.prototype, a), t && n(r, t), Object.defineProperty(r, "prototype", { + writable: !1 + }), r; +} +export { + l as default +}; diff --git a/dist/index.es194.js b/dist/index.es194.js new file mode 100644 index 00000000..40d6fd63 --- /dev/null +++ b/dist/index.es194.js @@ -0,0 +1,9 @@ +import o from "./index.es155.js"; +import i from "./index.es253.js"; +function f(t) { + var r = i(t, "string"); + return o(r) == "symbol" ? r : r + ""; +} +export { + f as default +}; diff --git a/dist/index.es195.js b/dist/index.es195.js new file mode 100644 index 00000000..5ac66578 --- /dev/null +++ b/dist/index.es195.js @@ -0,0 +1,9 @@ +import o from "./index.es196.js"; +import c from "./index.es197.js"; +import p from "./index.es198.js"; +function s(r, t, e) { + return t = o(t), p(r, c() ? Reflect.construct(t, [], o(r).constructor) : t.apply(r, e)); +} +export { + s as default +}; diff --git a/dist/index.es196.js b/dist/index.es196.js new file mode 100644 index 00000000..12dc84b3 --- /dev/null +++ b/dist/index.es196.js @@ -0,0 +1,8 @@ +function e(o) { + return e = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, e(o); +} +export { + e as default +}; diff --git a/dist/index.es197.js b/dist/index.es197.js new file mode 100644 index 00000000..f075fc50 --- /dev/null +++ b/dist/index.es197.js @@ -0,0 +1,13 @@ +function c() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })); + } catch { + } + return (c = function() { + return !!t; + })(); +} +export { + c as default +}; diff --git a/dist/index.es198.js b/dist/index.es198.js new file mode 100644 index 00000000..c638e12f --- /dev/null +++ b/dist/index.es198.js @@ -0,0 +1,10 @@ +import t from "./index.es155.js"; +import e from "./index.es210.js"; +function f(o, r) { + if (r && (t(r) == "object" || typeof r == "function")) return r; + if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); + return e(o); +} +export { + f as default +}; diff --git a/dist/index.es199.js b/dist/index.es199.js new file mode 100644 index 00000000..ab45ab3f --- /dev/null +++ b/dist/index.es199.js @@ -0,0 +1,16 @@ +import r from "./index.es200.js"; +function n(e, t) { + if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); + e.prototype = Object.create(t && t.prototype, { + constructor: { + value: e, + writable: !0, + configurable: !0 + } + }), Object.defineProperty(e, "prototype", { + writable: !1 + }), t && r(e, t); +} +export { + n as default +}; diff --git a/dist/index.es20.js b/dist/index.es20.js index 40358a9e..a5b06912 100644 --- a/dist/index.es20.js +++ b/dist/index.es20.js @@ -1,15 +1,120 @@ -import * as l from "@radix-ui/react-collapsible"; -function t({ ...e }) { - return /* @__PURE__ */ React.createElement(l.Root, { "data-slot": "collapsible", ...e }); +import { j as t } from "./index.es64.js"; +import { Command as n } from "cmdk"; +import { SearchIcon as c } from "lucide-react"; +import { cn as a } from "./index.es65.js"; +import { Dialog as i, DialogHeader as u, DialogTitle as l, DialogDescription as p, DialogContent as x } from "./index.es22.js"; +function g({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n, + { + "data-slot": "command", + className: a( + "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", + e + ), + ...o + } + ); } -function o({ ...e }) { - return /* @__PURE__ */ React.createElement(l.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...e }); +function j({ + title: e = "Command Palette", + description: o = "Search for a command to run...", + children: r, + className: d, + showCloseButton: m = !0, + ...s +}) { + return /* @__PURE__ */ t.jsxs(i, { ...s, children: [ + /* @__PURE__ */ t.jsxs(u, { className: "sr-only", children: [ + /* @__PURE__ */ t.jsx(l, { children: e }), + /* @__PURE__ */ t.jsx(p, { children: o }) + ] }), + /* @__PURE__ */ t.jsx(x, { className: a("overflow-hidden p-0", d), showCloseButton: m, children: /* @__PURE__ */ t.jsx(g, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r }) }) + ] }); } -function a({ ...e }) { - return /* @__PURE__ */ React.createElement(l.CollapsibleContent, { "data-slot": "collapsible-content", ...e }); +function w({ className: e, ...o }) { + return /* @__PURE__ */ t.jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [ + /* @__PURE__ */ t.jsx(c, { className: "size-4 shrink-0 opacity-50" }), + /* @__PURE__ */ t.jsx( + n.Input, + { + "data-slot": "command-input", + className: a( + "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", + e + ), + ...o + } + ) + ] }); +} +function y({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.List, + { + "data-slot": "command-list", + className: a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e), + ...o + } + ); +} +function C({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...e }); +} +function N({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Group, + { + "data-slot": "command-group", + className: a( + "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", + e + ), + ...o + } + ); +} +function b({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Separator, + { + "data-slot": "command-separator", + className: a("bg-border -mx-1 h-px", e), + ...o + } + ); +} +function D({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "command-item", + className: a( + "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...o + } + ); +} +function I({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "command-shortcut", + className: a("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...o + } + ); } export { - t as Collapsible, - a as CollapsibleContent, - o as CollapsibleTrigger + g as Command, + j as CommandDialog, + C as CommandEmpty, + N as CommandGroup, + w as CommandInput, + D as CommandItem, + y as CommandList, + b as CommandSeparator, + I as CommandShortcut }; diff --git a/dist/index.es200.js b/dist/index.es200.js new file mode 100644 index 00000000..377d30ef --- /dev/null +++ b/dist/index.es200.js @@ -0,0 +1,8 @@ +function e(o, r) { + return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { + return t.__proto__ = n, t; + }, e(o, r); +} +export { + e as default +}; diff --git a/dist/index.es201.js b/dist/index.es201.js new file mode 100644 index 00000000..158d500a --- /dev/null +++ b/dist/index.es201.js @@ -0,0 +1,160 @@ +import b from "./index.es111.js"; +import a from "./index.es249.js"; +import { TinyColor as s } from "./index.es165.js"; +var S = function(e, t) { + var n = {}; + for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); + if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++) + t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]); + return n; +}; +function h(e) { + const { + override: t + } = e, n = S(e, ["override"]), r = Object.assign({}, t); + Object.keys(b).forEach((i) => { + delete r[i]; + }); + const o = Object.assign(Object.assign({}, n), r), d = 480, l = 576, c = 768, x = 992, p = 1200, g = 1600; + if (o.motion === !1) { + const i = "0s"; + o.motionDurationFast = i, o.motionDurationMid = i, o.motionDurationSlow = i; + } + return Object.assign(Object.assign(Object.assign({}, o), { + // ============== Background ============== // + colorFillContent: o.colorFillSecondary, + colorFillContentHover: o.colorFill, + colorFillAlter: o.colorFillQuaternary, + colorBgContainerDisabled: o.colorFillTertiary, + // ============== Split ============== // + colorBorderBg: o.colorBgContainer, + colorSplit: a(o.colorBorderSecondary, o.colorBgContainer), + // ============== Text ============== // + colorTextPlaceholder: o.colorTextQuaternary, + colorTextDisabled: o.colorTextQuaternary, + colorTextHeading: o.colorText, + colorTextLabel: o.colorTextSecondary, + colorTextDescription: o.colorTextTertiary, + colorTextLightSolid: o.colorWhite, + colorHighlight: o.colorError, + colorBgTextHover: o.colorFillSecondary, + colorBgTextActive: o.colorFill, + colorIcon: o.colorTextTertiary, + colorIconHover: o.colorText, + colorErrorOutline: a(o.colorErrorBg, o.colorBgContainer), + colorWarningOutline: a(o.colorWarningBg, o.colorBgContainer), + // Font + fontSizeIcon: o.fontSizeSM, + // Line + lineWidthFocus: o.lineWidth * 4, + // Control + lineWidth: o.lineWidth, + controlOutlineWidth: o.lineWidth * 2, + // Checkbox size and expand icon size + controlInteractiveSize: o.controlHeight / 2, + controlItemBgHover: o.colorFillTertiary, + controlItemBgActive: o.colorPrimaryBg, + controlItemBgActiveHover: o.colorPrimaryBgHover, + controlItemBgActiveDisabled: o.colorFill, + controlTmpOutline: o.colorFillQuaternary, + controlOutline: a(o.colorPrimaryBg, o.colorBgContainer), + lineType: o.lineType, + borderRadius: o.borderRadius, + borderRadiusXS: o.borderRadiusXS, + borderRadiusSM: o.borderRadiusSM, + borderRadiusLG: o.borderRadiusLG, + fontWeightStrong: 600, + opacityLoading: 0.65, + linkDecoration: "none", + linkHoverDecoration: "none", + linkFocusDecoration: "none", + controlPaddingHorizontal: 12, + controlPaddingHorizontalSM: 8, + paddingXXS: o.sizeXXS, + paddingXS: o.sizeXS, + paddingSM: o.sizeSM, + padding: o.size, + paddingMD: o.sizeMD, + paddingLG: o.sizeLG, + paddingXL: o.sizeXL, + paddingContentHorizontalLG: o.sizeLG, + paddingContentVerticalLG: o.sizeMS, + paddingContentHorizontal: o.sizeMS, + paddingContentVertical: o.sizeSM, + paddingContentHorizontalSM: o.size, + paddingContentVerticalSM: o.sizeXS, + marginXXS: o.sizeXXS, + marginXS: o.sizeXS, + marginSM: o.sizeSM, + margin: o.size, + marginMD: o.sizeMD, + marginLG: o.sizeLG, + marginXL: o.sizeXL, + marginXXL: o.sizeXXL, + boxShadow: ` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowSecondary: ` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowTertiary: ` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `, + screenXS: d, + screenXSMin: d, + screenXSMax: l - 1, + screenSM: l, + screenSMMin: l, + screenSMMax: c - 1, + screenMD: c, + screenMDMin: c, + screenMDMax: x - 1, + screenLG: x, + screenLGMin: x, + screenLGMax: p - 1, + screenXL: p, + screenXLMin: p, + screenXLMax: g - 1, + screenXXL: g, + screenXXLMin: g, + boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)", + boxShadowCard: ` + 0 1px 2px -2px ${new s("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new s("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new s("rgba(0, 0, 0, 0.09)").toRgbString()} + `, + boxShadowDrawerRight: ` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowDrawerLeft: ` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowDrawerUp: ` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowDrawerDown: ` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `, + boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)", + boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)", + boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)", + boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)" + }), r); +} +export { + h as default +}; diff --git a/dist/index.es202.js b/dist/index.es202.js new file mode 100644 index 00000000..3f9df77b --- /dev/null +++ b/dist/index.es202.js @@ -0,0 +1,12 @@ +import o from "./index.es194.js"; +function n(e, r, t) { + return (r = o(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} +export { + n as default +}; diff --git a/dist/index.es203.js b/dist/index.es203.js new file mode 100644 index 00000000..4ec59434 --- /dev/null +++ b/dist/index.es203.js @@ -0,0 +1,24 @@ +import f from "./index.es155.js"; +import u from "react"; +import e from "react-dom"; +function i(t) { + return t instanceof HTMLElement || t instanceof SVGElement; +} +function l(t) { + return t && f(t) === "object" && i(t.nativeElement) ? t.nativeElement : i(t) ? t : null; +} +function c(t) { + var n = l(t); + if (n) + return n; + if (t instanceof u.Component) { + var r; + return (r = e.findDOMNode) === null || r === void 0 ? void 0 : r.call(e, t); + } + return null; +} +export { + c as default, + l as getDOM, + i as isDOM +}; diff --git a/dist/index.es204.js b/dist/index.es204.js new file mode 100644 index 00000000..16c699ac --- /dev/null +++ b/dist/index.es204.js @@ -0,0 +1,21 @@ +import o from "./index.es192.js"; +import p from "./index.es193.js"; +import a from "./index.es199.js"; +import n from "./index.es211.js"; +import * as i from "react"; +var l = /* @__PURE__ */ function(e) { + a(r, e); + var t = n(r); + function r() { + return o(this, r), t.apply(this, arguments); + } + return p(r, [{ + key: "render", + value: function() { + return this.props.children; + } + }]), r; +}(i.Component); +export { + l as default +}; diff --git a/dist/index.es205.js b/dist/index.es205.js new file mode 100644 index 00000000..ffee72f5 --- /dev/null +++ b/dist/index.es205.js @@ -0,0 +1,95 @@ +import Le from "./index.es156.js"; +import i from "./index.es202.js"; +import f from "./index.es171.js"; +import Re from "./index.es172.js"; +import "./index.es173.js"; +import Y from "./index.es174.js"; +import "./index.es169.js"; +import "./index.es96.js"; +import ye from "./index.es254.js"; +import * as Z from "react"; +import { useRef as T, useEffect as N } from "react"; +import { STATUS_NONE as s, STATUS_APPEAR as P, STATUS_ENTER as L, STATUS_LEAVE as R, STEP_PREPARE as m, STEP_ACTIVE as y, STEP_PREPARED as ge, STEP_START as g } from "./index.es207.js"; +import De from "./index.es255.js"; +import Me from "./index.es256.js"; +import he, { SkipStep as Ve, DoStep as Ie, isActive as _e } from "./index.es206.js"; +function Fe(Q, a, b, e) { + var H = e.motionEnter, D = H === void 0 ? !0 : H, j = e.motionAppear, M = j === void 0 ? !0 : j, k = e.motionLeave, p = k === void 0 ? !0 : k, w = e.motionDeadline, ee = e.motionLeaveImmediately, te = e.onAppearPrepare, ne = e.onEnterPrepare, re = e.onLeavePrepare, oe = e.onAppearStart, ae = e.onEnterStart, ie = e.onLeaveStart, ue = e.onAppearActive, ce = e.onEnterActive, se = e.onLeaveActive, h = e.onAppearEnd, V = e.onEnterEnd, I = e.onLeaveEnd, _ = e.onVisibleChanged, me = Y(), O = f(me, 2), u = O[0], ve = O[1], fe = ye(s), $ = f(fe, 2), q = $[0], l = $[1], pe = Y(null), z = f(pe, 2), le = z[0], B = z[1], r = q(), d = T(!1), C = T(null); + function S() { + return b(); + } + var F = T(!1); + function G() { + l(s), B(null, !0); + } + var J = Re(function(n) { + var t = q(); + if (t !== s) { + var o = S(); + if (!(n && !n.deadline && n.target !== o)) { + var E = F.current, A; + t === P && E ? A = h?.(o, n) : t === L && E ? A = V?.(o, n) : t === R && E && (A = I?.(o, n)), E && A !== !1 && G(); + } + } + }), de = De(J), Se = f(de, 1), Ee = Se[0], K = function(t) { + switch (t) { + case P: + return i(i(i({}, m, te), g, oe), y, ue); + case L: + return i(i(i({}, m, ne), g, ae), y, ce); + case R: + return i(i(i({}, m, re), g, ie), y, se); + default: + return {}; + } + }, v = Z.useMemo(function() { + return K(r); + }, [r]), Ae = he(r, !Q, function(n) { + if (n === m) { + var t = v[m]; + return t ? t(S()) : Ve; + } + if (c in v) { + var o; + B(((o = v[c]) === null || o === void 0 ? void 0 : o.call(v, S(), null)) || null); + } + return c === y && r !== s && (Ee(S()), w > 0 && (clearTimeout(C.current), C.current = setTimeout(function() { + J({ + deadline: !0 + }); + }, w))), c === ge && G(), Ie; + }), W = f(Ae, 2), Te = W[0], c = W[1], Pe = _e(c); + F.current = Pe; + var X = T(null); + Me(function() { + if (!(d.current && X.current === a)) { + ve(a); + var n = d.current; + d.current = !0; + var t; + !n && a && M && (t = P), n && a && D && (t = L), (n && !a && p || !n && ee && !a && p) && (t = R); + var o = K(t); + t && (Q || o[m]) ? (l(t), Te()) : l(s), X.current = a; + } + }, [a]), N(function() { + // Cancel appear + (r === P && !M || // Cancel enter + r === L && !D || // Cancel leave + r === R && !p) && l(s); + }, [M, D, p]), N(function() { + return function() { + d.current = !1, clearTimeout(C.current); + }; + }, []); + var U = Z.useRef(!1); + N(function() { + u && (U.current = !0), u !== void 0 && r === s && ((U.current || u) && _?.(u), U.current = !0); + }, [u, r]); + var x = le; + return v[m] && c === g && (x = Le({ + transition: "none" + }, x)), [r, c, x, u ?? a]; +} +export { + Fe as default +}; diff --git a/dist/index.es206.js b/dist/index.es206.js new file mode 100644 index 00000000..52545d50 --- /dev/null +++ b/dist/index.es206.js @@ -0,0 +1,38 @@ +import m from "./index.es171.js"; +import x from "./index.es174.js"; +import * as F from "react"; +import { STEP_NONE as c, STEP_ACTIVATED as a, STEP_PREPARE as f, STEP_PREPARED as R, STEP_START as d, STEP_ACTIVE as S } from "./index.es207.js"; +import Q from "./index.es256.js"; +import I from "./index.es257.js"; +var L = [f, d, S, a], C = [f, R], D = !1, M = !0; +function b(r) { + return r === S || r === a; +} +const g = function(r, _, P) { + var T = x(c), i = m(T, 2), e = i[0], t = i[1], v = I(), E = m(v, 2), p = E[0], A = E[1]; + function N() { + t(f, !0); + } + var n = _ ? C : L; + return Q(function() { + if (e !== c && e !== a) { + var U = n.indexOf(e), o = n[U + 1], u = P(e); + u === D ? t(o, !0) : o && p(function(l) { + function s() { + l.isCanceled() || t(o, !0); + } + u === !0 ? s() : Promise.resolve(u).then(s); + }); + } + }, [r, e]), F.useEffect(function() { + return function() { + A(); + }; + }, []), [N, e]; +}; +export { + M as DoStep, + D as SkipStep, + g as default, + b as isActive +}; diff --git a/dist/index.es207.js b/dist/index.es207.js new file mode 100644 index 00000000..edebf705 --- /dev/null +++ b/dist/index.es207.js @@ -0,0 +1,13 @@ +var T = "none", E = "appear", r = "enter", a = "leave", S = "none", e = "prepare", A = "start", v = "active", P = "end", _ = "prepared"; +export { + E as STATUS_APPEAR, + r as STATUS_ENTER, + a as STATUS_LEAVE, + T as STATUS_NONE, + P as STEP_ACTIVATED, + v as STEP_ACTIVE, + S as STEP_NONE, + e as STEP_PREPARE, + _ as STEP_PREPARED, + A as STEP_START +}; diff --git a/dist/index.es208.js b/dist/index.es208.js new file mode 100644 index 00000000..b2b36ed3 --- /dev/null +++ b/dist/index.es208.js @@ -0,0 +1,50 @@ +import v from "./index.es155.js"; +import f from "./index.es162.js"; +function c(n, i) { + var r = {}; + return r[n.toLowerCase()] = i.toLowerCase(), r["Webkit".concat(n)] = "webkit".concat(i), r["Moz".concat(n)] = "moz".concat(i), r["ms".concat(n)] = "MS".concat(i), r["O".concat(n)] = "o".concat(i.toLowerCase()), r; +} +function p(n, i) { + var r = { + animationend: c("Animation", "AnimationEnd"), + transitionend: c("Transition", "TransitionEnd") + }; + return n && ("AnimationEvent" in i || delete r.animationend.animation, "TransitionEvent" in i || delete r.transitionend.transition), r; +} +var E = p(f(), typeof window < "u" ? window : {}), d = {}; +if (f()) { + var w = document.createElement("div"); + d = w.style; +} +var t = {}; +function u(n) { + if (t[n]) + return t[n]; + var i = E[n]; + if (i) + for (var r = Object.keys(i), a = r.length, o = 0; o < a; o += 1) { + var e = r[o]; + if (Object.prototype.hasOwnProperty.call(i, e) && e in d) + return t[n] = i[e], t[n]; + } + return ""; +} +var m = u("animationend"), s = u("transitionend"), b = !!(m && s), g = m || "animationend", T = s || "transitionend"; +function k(n, i) { + if (!n) return null; + if (v(n) === "object") { + var r = i.replace(/-\w/g, function(a) { + return a[1].toUpperCase(); + }); + return n[r]; + } + return "".concat(n, "-").concat(i); +} +export { + g as animationEndName, + k as getTransitionName, + u as getVendorPrefixedEventName, + p as getVendorPrefixes, + b as supportTransition, + T as transitionEndName +}; diff --git a/dist/index.es209.js b/dist/index.es209.js new file mode 100644 index 00000000..79996b3f --- /dev/null +++ b/dist/index.es209.js @@ -0,0 +1,13 @@ +import n from "./index.es247.js"; +function u(r, e) { + if (r == null) return {}; + var t, o, i = n(r, e); + if (Object.getOwnPropertySymbols) { + var l = Object.getOwnPropertySymbols(r); + for (o = 0; o < l.length; o++) t = l[o], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(r, t) && (i[t] = r[t]); + } + return i; +} +export { + u as default +}; diff --git a/dist/index.es21.js b/dist/index.es21.js index ee8b03f2..31cd3d77 100644 --- a/dist/index.es21.js +++ b/dist/index.es21.js @@ -1,117 +1,187 @@ -import * as t from "react"; -import { Command as i } from "cmdk"; -import { SearchIcon as m } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -import { Dialog as r, DialogHeader as d, DialogTitle as b, DialogDescription as c, DialogContent as s } from "./index.es23.js"; -function u({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i, +import { j as e } from "./index.es64.js"; +import * as o from "@radix-ui/react-context-menu"; +import { CheckIcon as i, CircleIcon as d, ChevronRightIcon as u } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function x({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "context-menu", ...t }); +} +function f({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "context-menu-trigger", ...t }); +} +function p({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Group, { "data-slot": "context-menu-group", ...t }); +} +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "context-menu-portal", ...t }); +} +function v({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Sub, { "data-slot": "context-menu-sub", ...t }); +} +function b({ ...t }) { + return /* @__PURE__ */ e.jsx(o.RadioGroup, { "data-slot": "context-menu-radio-group", ...t }); +} +function h({ + className: t, + inset: n, + children: a, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + o.SubTrigger, { - "data-slot": "command", - className: a( - "lib:bg-popover lib:text-popover-foreground lib:flex lib:h-full lib:w-full lib:flex-col lib:overflow-hidden lib:rounded-md", - e + "data-slot": "context-menu-sub-trigger", + "data-inset": n, + className: s( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...l + ...r, + children: [ + a, + /* @__PURE__ */ e.jsx(u, { className: "ml-auto" }) + ] } ); } -function h({ - title: e = "Command Palette", - description: l = "Search for a command to run...", - children: o, - ...n -}) { - return /* @__PURE__ */ t.createElement(r, { ...n }, /* @__PURE__ */ t.createElement(d, { className: "lib:sr-only" }, /* @__PURE__ */ t.createElement(b, null, e), /* @__PURE__ */ t.createElement(c, null, l)), /* @__PURE__ */ t.createElement(s, { className: "lib:overflow-hidden lib:p-0" }, /* @__PURE__ */ t.createElement(u, { className: "[&_[cmdk-group-heading]]:lib:text-muted-foreground **:data-[slot=command-input-wrapper]:lib:h-12 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:font-medium [&_[cmdk-group]]:lib:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:lib:pt-0 [&_[cmdk-input-wrapper]_svg]:lib:h-5 [&_[cmdk-input-wrapper]_svg]:lib:w-5 [&_[cmdk-input]]:lib:h-12 [&_[cmdk-item]]:lib:px-2 [&_[cmdk-item]]:lib:py-3 [&_[cmdk-item]_svg]:lib:h-5 [&_[cmdk-item]_svg]:lib:w-5" }, o))); -} -function _({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - "div", +function j({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( + o.SubContent, { - "data-slot": "command-input-wrapper", - className: "lib:flex lib:h-9 lib:items-center lib:gap-2 lib:border-b lib:px-3" - }, - /* @__PURE__ */ t.createElement(m, { className: "lib:size-4 lib:shrink-0 lib:opacity-50" }), - /* @__PURE__ */ t.createElement( - i.Input, - { - "data-slot": "command-input", - className: a( - "placeholder:lib:text-muted-foreground lib:flex lib:h-10 lib:w-full lib:rounded-md lib:bg-transparent lib:py-3 lib:text-sm lib:outline-hidden disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - e - ), - ...l - } - ) + "data-slot": "context-menu-sub-content", + className: s( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", + t + ), + ...n + } ); } -function k({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.List, +function C({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx(o.Portal, { children: /* @__PURE__ */ e.jsx( + o.Content, { - "data-slot": "command-list", - className: a("lib:max-h-[300px] lib:scroll-py-1 lib:overflow-x-hidden lib:overflow-y-auto", e), - ...l + "data-slot": "context-menu-content", + className: s( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", + t + ), + ...n + } + ) }); +} +function z({ + className: t, + inset: n, + variant: a = "default", + ...r +}) { + return /* @__PURE__ */ e.jsx( + o.Item, + { + "data-slot": "context-menu-item", + "data-inset": n, + "data-variant": a, + className: s( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...r } ); } -function v({ ...e }) { - return /* @__PURE__ */ t.createElement(i.Empty, { "data-slot": "command-empty", className: "lib:py-6 lib:text-center lib:text-sm", ...e }); +function M({ + className: t, + children: n, + checked: a, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + o.CheckboxItem, + { + "data-slot": "context-menu-checkbox-item", + className: s( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + checked: a, + ...r, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }), + n + ] + } + ); } -function E({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Group, +function N({ + className: t, + children: n, + ...a +}) { + return /* @__PURE__ */ e.jsxs( + o.RadioItem, { - "data-slot": "command-group", - className: a( - "lib:text-foreground [&_[cmdk-group-heading]]:lib:text-muted-foreground lib:overflow-hidden lib:p-1 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:py-1.5 [&_[cmdk-group-heading]]:lib:text-xs [&_[cmdk-group-heading]]:lib:font-medium", - e + "data-slot": "context-menu-radio-item", + className: s( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...l + ...a, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(d, { className: "size-2 fill-current" }) }) }), + n + ] } ); } -function w({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Separator, +function I({ + className: t, + inset: n, + ...a +}) { + return /* @__PURE__ */ e.jsx( + o.Label, { - "data-slot": "command-separator", - className: a("lib:bg-border lib:-mx-1 lib:h-px", e), - ...l + "data-slot": "context-menu-label", + "data-inset": n, + className: s("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t), + ...a } ); } -function y({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Item, +function _({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( + o.Separator, { - "data-slot": "command-item", - className: a( - "data-[selected=true]:lib:bg-accent data-[selected=true]:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled=true]:lib:pointer-events-none data-[disabled=true]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...l + "data-slot": "context-menu-separator", + className: s("bg-border -mx-1 my-1 h-px", t), + ...n } ); } -function C({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( +function y({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( "span", { - "data-slot": "command-shortcut", - className: a("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...l + "data-slot": "context-menu-shortcut", + className: s("text-muted-foreground ml-auto text-xs tracking-widest", t), + ...n } ); } export { - u as Command, - h as CommandDialog, - v as CommandEmpty, - E as CommandGroup, - _ as CommandInput, - y as CommandItem, - k as CommandList, - w as CommandSeparator, - C as CommandShortcut + x as ContextMenu, + M as ContextMenuCheckboxItem, + C as ContextMenuContent, + p as ContextMenuGroup, + z as ContextMenuItem, + I as ContextMenuLabel, + g as ContextMenuPortal, + b as ContextMenuRadioGroup, + N as ContextMenuRadioItem, + _ as ContextMenuSeparator, + y as ContextMenuShortcut, + v as ContextMenuSub, + j as ContextMenuSubContent, + h as ContextMenuSubTrigger, + f as ContextMenuTrigger }; diff --git a/dist/index.es210.js b/dist/index.es210.js new file mode 100644 index 00000000..c44aa3d5 --- /dev/null +++ b/dist/index.es210.js @@ -0,0 +1,7 @@ +function i(e) { + if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +export { + i as default +}; diff --git a/dist/index.es211.js b/dist/index.es211.js new file mode 100644 index 00000000..9bfcd29c --- /dev/null +++ b/dist/index.es211.js @@ -0,0 +1,17 @@ +import e from "./index.es196.js"; +import u from "./index.es197.js"; +import i from "./index.es198.js"; +function p(o) { + var s = u(); + return function() { + var t, r = e(o); + if (s) { + var n = e(this).constructor; + t = Reflect.construct(r, arguments, n); + } else t = r.apply(this, arguments); + return i(this, t); + }; +} +export { + p as default +}; diff --git a/dist/index.es212.js b/dist/index.es212.js new file mode 100644 index 00000000..2755c3bc --- /dev/null +++ b/dist/index.es212.js @@ -0,0 +1,65 @@ +import n from "./index.es156.js"; +import h from "./index.es155.js"; +var m = "add", y = "keep", p = "remove", K = "removed"; +function E(a) { + var s; + return a && h(a) === "object" && "key" in a ? s = a : s = { + key: a + }, n(n({}, s), {}, { + key: String(s.key) + }); +} +function g() { + var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + return a.map(E); +} +function b() { + var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], e = [], f = 0, v = s.length, d = g(a), i = g(s); + d.forEach(function(r) { + for (var t = !1, u = f; u < v; u += 1) { + var o = i[u]; + if (o.key === r.key) { + f < u && (e = e.concat(i.slice(f, u).map(function(l) { + return n(n({}, l), {}, { + status: m + }); + })), f = u), e.push(n(n({}, o), {}, { + status: y + })), f += 1, t = !0; + break; + } + } + t || e.push(n(n({}, r), {}, { + status: p + })); + }), f < v && (e = e.concat(i.slice(f).map(function(r) { + return n(n({}, r), {}, { + status: m + }); + }))); + var c = {}; + e.forEach(function(r) { + var t = r.key; + c[t] = (c[t] || 0) + 1; + }); + var k = Object.keys(c).filter(function(r) { + return c[r] > 1; + }); + return k.forEach(function(r) { + e = e.filter(function(t) { + var u = t.key, o = t.status; + return u !== r || o !== p; + }), e.forEach(function(t) { + t.key === r && (t.status = y); + }); + }), e; +} +export { + m as STATUS_ADD, + y as STATUS_KEEP, + p as STATUS_REMOVE, + K as STATUS_REMOVED, + b as diffKeys, + g as parseKeys, + E as wrapKeyToObject +}; diff --git a/dist/index.es213.js b/dist/index.es213.js new file mode 100644 index 00000000..4bb8a3b1 --- /dev/null +++ b/dist/index.es213.js @@ -0,0 +1,40 @@ +var f = function(n) { + return +setTimeout(n, 16); +}, o = function(n) { + return clearTimeout(n); +}; +typeof window < "u" && "requestAnimationFrame" in window && (f = function(n) { + return window.requestAnimationFrame(n); +}, o = function(n) { + return window.cancelAnimationFrame(n); +}); +var u = 0, r = /* @__PURE__ */ new Map(); +function c(e) { + r.delete(e); +} +var d = function(n) { + var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + u += 1; + var a = u; + function t(i) { + if (i === 0) + c(a), n(); + else { + var m = f(function() { + t(i - 1); + }); + r.set(a, m); + } + } + return t(s), a; +}; +d.cancel = function(e) { + var n = r.get(e); + return c(e), o(n); +}; +process.env.NODE_ENV !== "production" && (d.ids = function() { + return r; +}); +export { + d as default +}; diff --git a/dist/index.es214.js b/dist/index.es214.js new file mode 100644 index 00000000..16c699ac --- /dev/null +++ b/dist/index.es214.js @@ -0,0 +1,21 @@ +import o from "./index.es192.js"; +import p from "./index.es193.js"; +import a from "./index.es199.js"; +import n from "./index.es211.js"; +import * as i from "react"; +var l = /* @__PURE__ */ function(e) { + a(r, e); + var t = n(r); + function r() { + return o(this, r), t.apply(this, arguments); + } + return p(r, [{ + key: "render", + value: function() { + return this.props.children; + } + }]), r; +}(i.Component); +export { + l as default +}; diff --git a/dist/index.es215.js b/dist/index.es215.js new file mode 100644 index 00000000..de0e4ce0 --- /dev/null +++ b/dist/index.es215.js @@ -0,0 +1,290 @@ +var _ = function() { + if (typeof Map < "u") + return Map; + function e(t, n) { + var r = -1; + return t.some(function(i, o) { + return i[0] === n ? (r = o, !0) : !1; + }), r; + } + return ( + /** @class */ + function() { + function t() { + this.__entries__ = []; + } + return Object.defineProperty(t.prototype, "size", { + /** + * @returns {boolean} + */ + get: function() { + return this.__entries__.length; + }, + enumerable: !0, + configurable: !0 + }), t.prototype.get = function(n) { + var r = e(this.__entries__, n), i = this.__entries__[r]; + return i && i[1]; + }, t.prototype.set = function(n, r) { + var i = e(this.__entries__, n); + ~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]); + }, t.prototype.delete = function(n) { + var r = this.__entries__, i = e(r, n); + ~i && r.splice(i, 1); + }, t.prototype.has = function(n) { + return !!~e(this.__entries__, n); + }, t.prototype.clear = function() { + this.__entries__.splice(0); + }, t.prototype.forEach = function(n, r) { + r === void 0 && (r = null); + for (var i = 0, o = this.__entries__; i < o.length; i++) { + var s = o[i]; + n.call(r, s[1], s[0]); + } + }, t; + }() + ); +}(), v = typeof window < "u" && typeof document < "u" && window.document === document, f = function() { + return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(); +}(), O = function() { + return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(f) : function(e) { + return setTimeout(function() { + return e(Date.now()); + }, 1e3 / 60); + }; +}(), E = 2; +function R(e, t) { + var n = !1, r = !1, i = 0; + function o() { + n && (n = !1, e()), r && a(); + } + function s() { + O(o); + } + function a() { + var u = Date.now(); + if (n) { + if (u - i < E) + return; + r = !0; + } else + n = !0, r = !1, setTimeout(s, t); + i = u; + } + return a; +} +var M = 20, x = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], A = typeof MutationObserver < "u", z = ( + /** @class */ + function() { + function e() { + this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = R(this.refresh.bind(this), M); + } + return e.prototype.addObserver = function(t) { + ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_(); + }, e.prototype.removeObserver = function(t) { + var n = this.observers_, r = n.indexOf(t); + ~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_(); + }, e.prototype.refresh = function() { + var t = this.updateObservers_(); + t && this.refresh(); + }, e.prototype.updateObservers_ = function() { + var t = this.observers_.filter(function(n) { + return n.gatherActive(), n.hasActive(); + }); + return t.forEach(function(n) { + return n.broadcastActive(); + }), t.length > 0; + }, e.prototype.connect_ = function() { + !v || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), A ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { + attributes: !0, + childList: !0, + characterData: !0, + subtree: !0 + })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0); + }, e.prototype.disconnect_ = function() { + !v || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1); + }, e.prototype.onTransitionEnd_ = function(t) { + var n = t.propertyName, r = n === void 0 ? "" : n, i = x.some(function(o) { + return !!~r.indexOf(o); + }); + i && this.refresh(); + }, e.getInstance = function() { + return this.instance_ || (this.instance_ = new e()), this.instance_; + }, e.instance_ = null, e; + }() +), m = function(e, t) { + for (var n = 0, r = Object.keys(t); n < r.length; n++) { + var i = r[n]; + Object.defineProperty(e, i, { + value: t[i], + enumerable: !1, + writable: !1, + configurable: !0 + }); + } + return e; +}, c = function(e) { + var t = e && e.ownerDocument && e.ownerDocument.defaultView; + return t || f; +}, y = d(0, 0, 0, 0); +function h(e) { + return parseFloat(e) || 0; +} +function b(e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + return t.reduce(function(r, i) { + var o = e["border-" + i + "-width"]; + return r + h(o); + }, 0); +} +function T(e) { + for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) { + var o = i[r], s = e["padding-" + o]; + n[o] = h(s); + } + return n; +} +function C(e) { + var t = e.getBBox(); + return d(0, 0, t.width, t.height); +} +function S(e) { + var t = e.clientWidth, n = e.clientHeight; + if (!t && !n) + return y; + var r = c(e).getComputedStyle(e), i = T(r), o = i.left + i.right, s = i.top + i.bottom, a = h(r.width), u = h(r.height); + if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= b(r, "left", "right") + o), Math.round(u + s) !== n && (u -= b(r, "top", "bottom") + s)), !G(e)) { + var l = Math.round(a + o) - t, p = Math.round(u + s) - n; + Math.abs(l) !== 1 && (a -= l), Math.abs(p) !== 1 && (u -= p); + } + return d(i.left, i.top, a, u); +} +var D = /* @__PURE__ */ function() { + return typeof SVGGraphicsElement < "u" ? function(e) { + return e instanceof c(e).SVGGraphicsElement; + } : function(e) { + return e instanceof c(e).SVGElement && typeof e.getBBox == "function"; + }; +}(); +function G(e) { + return e === c(e).document.documentElement; +} +function L(e) { + return v ? D(e) ? C(e) : S(e) : y; +} +function P(e) { + var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype); + return m(s, { + x: t, + y: n, + width: r, + height: i, + top: n, + right: t + r, + bottom: i + n, + left: t + }), s; +} +function d(e, t, n, r) { + return { x: e, y: t, width: n, height: r }; +} +var W = ( + /** @class */ + function() { + function e(t) { + this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = d(0, 0, 0, 0), this.target = t; + } + return e.prototype.isActive = function() { + var t = L(this.target); + return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight; + }, e.prototype.broadcastRect = function() { + var t = this.contentRect_; + return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t; + }, e; + }() +), j = ( + /** @class */ + /* @__PURE__ */ function() { + function e(t, n) { + var r = P(n); + m(this, { target: t, contentRect: r }); + } + return e; + }() +), F = ( + /** @class */ + function() { + function e(t, n, r) { + if (this.activeObservations_ = [], this.observations_ = new _(), typeof t != "function") + throw new TypeError("The callback provided as parameter 1 is not a function."); + this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r; + } + return e.prototype.observe = function(t) { + if (!arguments.length) + throw new TypeError("1 argument required, but only 0 present."); + if (!(typeof Element > "u" || !(Element instanceof Object))) { + if (!(t instanceof c(t).Element)) + throw new TypeError('parameter 1 is not of type "Element".'); + var n = this.observations_; + n.has(t) || (n.set(t, new W(t)), this.controller_.addObserver(this), this.controller_.refresh()); + } + }, e.prototype.unobserve = function(t) { + if (!arguments.length) + throw new TypeError("1 argument required, but only 0 present."); + if (!(typeof Element > "u" || !(Element instanceof Object))) { + if (!(t instanceof c(t).Element)) + throw new TypeError('parameter 1 is not of type "Element".'); + var n = this.observations_; + n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this)); + } + }, e.prototype.disconnect = function() { + this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this); + }, e.prototype.gatherActive = function() { + var t = this; + this.clearActive(), this.observations_.forEach(function(n) { + n.isActive() && t.activeObservations_.push(n); + }); + }, e.prototype.broadcastActive = function() { + if (this.hasActive()) { + var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) { + return new j(r.target, r.broadcastRect()); + }); + this.callback_.call(t, n, t), this.clearActive(); + } + }, e.prototype.clearActive = function() { + this.activeObservations_.splice(0); + }, e.prototype.hasActive = function() { + return this.activeObservations_.length > 0; + }, e; + }() +), g = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new _(), w = ( + /** @class */ + /* @__PURE__ */ function() { + function e(t) { + if (!(this instanceof e)) + throw new TypeError("Cannot call a class as a function."); + if (!arguments.length) + throw new TypeError("1 argument required, but only 0 present."); + var n = z.getInstance(), r = new F(t, n, this); + g.set(this, r); + } + return e; + }() +); +[ + "observe", + "unobserve", + "disconnect" +].forEach(function(e) { + w.prototype[e] = function() { + var t; + return (t = g.get(this))[e].apply(t, arguments); + }; +}); +var H = function() { + return typeof f.ResizeObserver < "u" ? f.ResizeObserver : w; +}(); +export { + H as default +}; diff --git a/dist/index.es216.js b/dist/index.es216.js new file mode 100644 index 00000000..75a66567 --- /dev/null +++ b/dist/index.es216.js @@ -0,0 +1,8 @@ +function o(l, r) { + (r == null || r > l.length) && (r = l.length); + for (var t = 0, n = Array(r); t < r; t++) n[t] = l[t]; + return n; +} +export { + o as default +}; diff --git a/dist/index.es217.js b/dist/index.es217.js new file mode 100644 index 00000000..6c632ce7 --- /dev/null +++ b/dist/index.es217.js @@ -0,0 +1,51 @@ +import f from "./index.es171.js"; +import A from "./index.es144.js"; +import { removeCSS as I, updateCSS as R } from "./index.es163.js"; +import { useContext as V } from "react"; +import K, { ATTR_MARK as T, CSS_IN_JS_INSTANCE as N, ATTR_TOKEN as b } from "./index.es94.js"; +import { isClientSide as E, toStyleStr as g } from "./index.es185.js"; +import { transformToken as q } from "./index.es220.js"; +import P from "./index.es221.js"; +import { uniqueHash as F } from "./index.es218.js"; +var G = "cssVar", z = function(r, d) { + var t = r.key, o = r.prefix, c = r.unitless, u = r.ignore, l = r.token, p = r.scope, m = p === void 0 ? "" : p, n = V(K), S = n.cache.instanceId, v = n.container, C = l._tokenKey, _ = [].concat(A(r.path), [t, m, C]), x = P(G, _, function() { + var s = d(), a = q(s, t, { + prefix: o, + unitless: c, + ignore: u, + scope: m + }), e = f(a, 2), y = e[0], i = e[1], h = F(_, i); + return [y, i, h, t]; + }, function(s) { + var a = f(s, 3), e = a[2]; + E && I(e, { + mark: T + }); + }, function(s) { + var a = f(s, 3), e = a[1], y = a[2]; + if (e) { + var i = R(e, y, { + mark: T, + prepend: "queue", + attachTo: v, + priority: -999 + }); + i[N] = S, i.setAttribute(b, t); + } + }); + return x; +}, B = function(r, d, t) { + var o = f(r, 4), c = o[1], u = o[2], l = o[3], p = t || {}, m = p.plain; + if (!c) + return null; + var n = -999, S = { + "data-rc-order": "prependQueue", + "data-rc-priority": "".concat(n) + }, v = g(c, l, u, S, m); + return [n, u, v]; +}; +export { + G as CSS_VAR_PREFIX, + z as default, + B as extract +}; diff --git a/dist/index.es218.js b/dist/index.es218.js new file mode 100644 index 00000000..55114d99 --- /dev/null +++ b/dist/index.es218.js @@ -0,0 +1,216 @@ +import er from "./index.es147.js"; +import Q from "./index.es202.js"; +import M from "./index.es156.js"; +import O from "./index.es171.js"; +import W from "./index.es144.js"; +import F from "./index.es155.js"; +import ar from "./index.es219.js"; +import { removeCSS as nr, updateCSS as Y } from "./index.es163.js"; +import * as w from "react"; +import or from "./index.es222.js"; +import ir from "./index.es223.js"; +import cr from "./index.es224.js"; +import "./index.es96.js"; +import lr, { ATTR_TOKEN as X, ATTR_MARK as J, CSS_IN_JS_INSTANCE as sr, ATTR_CACHE_PATH as fr } from "./index.es94.js"; +import { isClientSide as Z, toStyleStr as B } from "./index.es185.js"; +import { existPath as ur, getStyleAndHash as mr, CSS_FILE_STYLE as pr } from "./index.es225.js"; +import hr from "./index.es221.js"; +import { serialize as vr, stringify as dr } from "./index.es226.js"; +import { compile as yr } from "./index.es227.js"; +var K = "_skip_check_", rr = "_multi_value_"; +function G(t) { + var m = vr(yr(t), dr); + return m.replace(/\{%%%\:[^;];}/g, ";"); +} +function _r(t) { + return F(t) === "object" && t && (K in t || rr in t); +} +function V(t, m, s) { + if (!m) + return t; + var E = ".".concat(m), f = s === "low" ? ":where(".concat(E, ")") : E, k = t.split(",").map(function(y) { + var a, c = y.trim().split(/\s+/), _ = c[0] || "", e = ((a = _.match(/^\w+/)) === null || a === void 0 ? void 0 : a[0]) || ""; + return _ = "".concat(e).concat(f).concat(_.slice(e.length)), [_].concat(W(c.slice(1))).join(" "); + }); + return k.join(","); +} +var Sr = function t(m) { + var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { + root: !0, + parentSelectors: [] + }, f = E.root, k = E.injectHash, y = E.parentSelectors, a = s.hashId, c = s.layer, _ = s.path, e = s.hashPriority, H = s.transformers, x = H === void 0 ? [] : H, I = s.linters, $ = I === void 0 ? [] : I, n = "", N = {}; + function L(p) { + var o = p.getName(a); + if (!N[o]) { + var i = t(p.style, s, { + root: !1, + parentSelectors: y + }), u = O(i, 1), r = u[0]; + N[o] = "@keyframes ".concat(p.getName(a)).concat(r); + } + } + function z(p) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; + return p.forEach(function(i) { + Array.isArray(i) ? z(i, o) : i && o.push(i); + }), o; + } + var q = z(Array.isArray(m) ? m : [m]); + return q.forEach(function(p) { + var o = typeof p == "string" && !f ? {} : p; + if (typeof o == "string") + n += "".concat(o, ` +`); + else if (o._keyframe) + L(o); + else { + var i = x.reduce(function(u, r) { + var b; + return (r == null || (b = r.visit) === null || b === void 0 ? void 0 : b.call(r, u)) || u; + }, o); + Object.keys(i).forEach(function(u) { + var r = i[u]; + if (F(r) === "object" && r && (u !== "animationName" || !r._keyframe) && !_r(r)) { + var b = !1, A = u.trim(), D = !1; + (f || k) && a ? A.startsWith("@") ? b = !0 : A === "&" ? A = V("", a, e) : A = V(u, a, e) : f && !a && (A === "&" || A === "") && (A = "", D = !0); + var U = t(r, s, { + root: D, + injectHash: b, + parentSelectors: [].concat(W(y), [A]) + }), j = O(U, 2), h = j[0], v = j[1]; + N = M(M({}, N), v), n += "".concat(A).concat(h); + } else { + let g = function(C, d) { + process.env.NODE_ENV !== "production" && (F(r) !== "object" || !(r != null && r[K])) && [ir, cr].concat(W($)).forEach(function(l) { + return l(C, d, { + path: _, + hashId: a, + parentSelectors: y + }); + }); + var R = C.replace(/[A-Z]/g, function(l) { + return "-".concat(l.toLowerCase()); + }), S = d; + !or[C] && typeof S == "number" && S !== 0 && (S = "".concat(S, "px")), C === "animationName" && d !== null && d !== void 0 && d._keyframe && (L(d), S = d.getName(a)), n += "".concat(R, ":").concat(S, ";"); + }; + var P, T = (P = r?.value) !== null && P !== void 0 ? P : r; + F(r) === "object" && r !== null && r !== void 0 && r[rr] && Array.isArray(T) ? T.forEach(function(C) { + g(u, C); + }) : g(u, T); + } + }); + } + }), f ? c && (n && (n = "@layer ".concat(c.name, " {").concat(n, "}")), c.dependencies && (N["@layer ".concat(c.name)] = c.dependencies.map(function(p) { + return "@layer ".concat(p, ", ").concat(c.name, ";"); + }).join(` +`))) : n = "{".concat(n, "}"), [n, N]; +}; +function Er(t, m) { + return ar("".concat(t.join("%")).concat(m)); +} +function Ar() { + return null; +} +var jr = "style"; +function Gr(t, m) { + var s = t.token, E = t.path, f = t.hashId, k = t.layer, y = t.nonce, a = t.clientOnly, c = t.order, _ = c === void 0 ? 0 : c, e = w.useContext(lr), H = e.autoClear, x = e.mock, I = e.defaultCache, $ = e.hashPriority, n = e.container, N = e.ssrInline, L = e.transformers, z = e.linters, q = e.cache, p = e.layer, o = s._tokenKey, i = [o]; + p && i.push("layer"), i.push.apply(i, W(E)); + var u = Z; + process.env.NODE_ENV !== "production" && x !== void 0 && (u = x === "client"); + var r = hr( + jr, + i, + // Create cache if needed + function() { + var j = i.join("|"); + if (ur(j)) { + var h = mr(j), v = O(h, 2), P = v[0], T = v[1]; + if (P) + return [P, o, T, {}, a, _]; + } + var g = m(), C = Sr(g, { + hashId: f, + hashPriority: $, + layer: p ? k : void 0, + path: E.join("-"), + transformers: L, + linters: z + }), d = O(C, 2), R = d[0], S = d[1], l = G(R), tr = Er(i, l); + return [l, o, tr, S, a, _]; + }, + // Remove cache if no need + function(j, h) { + var v = O(j, 3), P = v[2]; + (h || H) && Z && nr(P, { + mark: J + }); + }, + // Effect: Inject style here + function(j) { + var h = O(j, 4), v = h[0]; + h[1]; + var P = h[2], T = h[3]; + if (u && v !== pr) { + var g = { + mark: J, + prepend: p ? !1 : "queue", + attachTo: n, + priority: _ + }, C = typeof y == "function" ? y() : y; + C && (g.csp = { + nonce: C + }); + var d = [], R = []; + Object.keys(T).forEach(function(l) { + l.startsWith("@layer") ? d.push(l) : R.push(l); + }), d.forEach(function(l) { + Y(G(T[l]), "_layer-".concat(l), M(M({}, g), {}, { + prepend: !0 + })); + }); + var S = Y(v, P, g); + S[sr] = q.instanceId, S.setAttribute(X, o), process.env.NODE_ENV !== "production" && S.setAttribute(fr, i.join("|")), R.forEach(function(l) { + Y(G(T[l]), "_effect-".concat(l), g); + }); + } + } + ), b = O(r, 3), A = b[0], D = b[1], U = b[2]; + return function(j) { + var h; + if (!N || u || !I) + h = /* @__PURE__ */ w.createElement(Ar, null); + else { + var v; + h = /* @__PURE__ */ w.createElement("style", er({}, (v = {}, Q(v, X, D), Q(v, J, U), v), { + dangerouslySetInnerHTML: { + __html: A + } + })); + } + return /* @__PURE__ */ w.createElement(w.Fragment, null, h, j); + }; +} +var Mr = function(m, s, E) { + var f = O(m, 6), k = f[0], y = f[1], a = f[2], c = f[3], _ = f[4], e = f[5], H = E || {}, x = H.plain; + if (_) + return null; + var I = k, $ = { + "data-rc-order": "prependQueue", + "data-rc-priority": "".concat(e) + }; + return I = B(k, y, a, $, x), c && Object.keys(c).forEach(function(n) { + if (!s[n]) { + s[n] = !0; + var N = G(c[n]), L = B(N, y, "_effect-".concat(n), $, x); + n.startsWith("@layer") ? I = L + I : I += L; + } + }), [e, a, I]; +}; +export { + jr as STYLE_PREFIX, + Gr as default, + Mr as extract, + G as normalizeStyle, + Sr as parseStyle, + Er as uniqueHash +}; diff --git a/dist/index.es219.js b/dist/index.es219.js new file mode 100644 index 00000000..e5ee2323 --- /dev/null +++ b/dist/index.es219.js @@ -0,0 +1,22 @@ +function c(e) { + for (var f = 0, x, a = 0, d = e.length; d >= 4; ++a, d -= 4) + x = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, x = /* Math.imul(k, m): */ + (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16), x ^= /* k >>> r: */ + x >>> 24, f = /* Math.imul(k, m): */ + (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ + (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16); + switch (d) { + case 3: + f ^= (e.charCodeAt(a + 2) & 255) << 16; + case 2: + f ^= (e.charCodeAt(a + 1) & 255) << 8; + case 1: + f ^= e.charCodeAt(a) & 255, f = /* Math.imul(h, m): */ + (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16); + } + return f ^= f >>> 13, f = /* Math.imul(h, m): */ + (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16), ((f ^ f >>> 15) >>> 0).toString(36); +} +export { + c as default +}; diff --git a/dist/index.es22.js b/dist/index.es22.js index c3d16ea4..2c3b92df 100644 --- a/dist/index.es22.js +++ b/dist/index.es22.js @@ -1,184 +1,116 @@ -import * as t from "react"; -import * as n from "@radix-ui/react-context-menu"; -import { CheckIcon as r, CircleIcon as s, ChevronRightIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function u({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Root, { "data-slot": "context-menu", ...e }); +import { j as a } from "./index.es64.js"; +import * as o from "@radix-ui/react-dialog"; +import { XIcon as l } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function f({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Root, { "data-slot": "dialog", ...t }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Trigger, { "data-slot": "context-menu-trigger", ...e }); +function m({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Trigger, { "data-slot": "dialog-trigger", ...t }); } -function f({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Group, { "data-slot": "context-menu-group", ...e }); +function r({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Portal, { "data-slot": "dialog-portal", ...t }); } -function x({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Portal, { "data-slot": "context-menu-portal", ...e }); +function x({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Close, { "data-slot": "dialog-close", ...t }); } -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Sub, { "data-slot": "context-menu-sub", ...e }); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(n.RadioGroup, { "data-slot": "context-menu-radio-group", ...e }); -} -function v({ - className: e, - inset: i, - children: l, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.SubTrigger, - { - "data-slot": "context-menu-sub-trigger", - "data-inset": i, - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - }, - l, - /* @__PURE__ */ t.createElement(b, { className: "lib:ml-auto" }) - ); -} -function h({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.SubContent, +function d({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Overlay, { - "data-slot": "context-menu-sub-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e + "data-slot": "dialog-overlay", + className: s( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t ), - ...i + ...e } ); } -function C({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement(n.Portal, null, /* @__PURE__ */ t.createElement( - n.Content, - { - "data-slot": "context-menu-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-context-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...i - } - )); -} -function E({ - className: e, - inset: i, - variant: l = "default", - ...o +function p({ + className: t, + children: e, + showCloseButton: n = !0, + ...i }) { - return /* @__PURE__ */ t.createElement( - n.Item, - { - "data-slot": "context-menu-item", - "data-inset": i, - "data-variant": l, - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - } - ); -} -function z({ - className: e, - children: i, - checked: l, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.CheckboxItem, - { - "data-slot": "context-menu-checkbox-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: l, - ...o - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(r, { className: "lib:size-4" }))), - i - ); + return /* @__PURE__ */ a.jsxs(r, { "data-slot": "dialog-portal", children: [ + /* @__PURE__ */ a.jsx(d, {}), + /* @__PURE__ */ a.jsxs( + o.Content, + { + "data-slot": "dialog-content", + className: s( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", + t + ), + ...i, + children: [ + e, + n && /* @__PURE__ */ a.jsxs( + o.Close, + { + "data-slot": "dialog-close", + className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + children: [ + /* @__PURE__ */ a.jsx(l, {}), + /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" }) + ] + } + ) + ] + } + ) + ] }); } -function M({ - className: e, - children: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - n.RadioItem, +function j({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "div", { - "data-slot": "context-menu-radio-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...l - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(s, { className: "lib:size-2 lib:fill-current" }))), - i + "data-slot": "dialog-header", + className: s("flex flex-col gap-2 text-center sm:text-left", t), + ...e + } ); } -function N({ - className: e, - inset: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - n.Label, +function v({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "div", { - "data-slot": "context-menu-label", - "data-inset": i, - className: a( - "lib:text-foreground lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", - e - ), - ...l + "data-slot": "dialog-footer", + className: s("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t), + ...e } ); } -function I({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.Separator, +function D({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Title, { - "data-slot": "context-menu-separator", - className: a("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "dialog-title", + className: s("text-lg leading-none font-semibold", t), + ...e } ); } -function _({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function b({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Description, { - "data-slot": "context-menu-shortcut", - className: a("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "dialog-description", + className: s("text-muted-foreground text-sm", t), + ...e } ); } export { - u as ContextMenu, - z as ContextMenuCheckboxItem, - C as ContextMenuContent, - f as ContextMenuGroup, - E as ContextMenuItem, - N as ContextMenuLabel, - x as ContextMenuPortal, - g as ContextMenuRadioGroup, - M as ContextMenuRadioItem, - I as ContextMenuSeparator, - _ as ContextMenuShortcut, - p as ContextMenuSub, - h as ContextMenuSubContent, - v as ContextMenuSubTrigger, - m as ContextMenuTrigger + f as Dialog, + x as DialogClose, + p as DialogContent, + b as DialogDescription, + v as DialogFooter, + j as DialogHeader, + d as DialogOverlay, + r as DialogPortal, + D as DialogTitle, + m as DialogTrigger }; diff --git a/dist/index.es220.js b/dist/index.es220.js new file mode 100644 index 00000000..135c83f2 --- /dev/null +++ b/dist/index.es220.js @@ -0,0 +1,28 @@ +import m from "./index.es171.js"; +var S = function(r) { + var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; + return "--".concat(a ? "".concat(a, "-") : "").concat(r).replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase(); +}, k = function(r, a, e) { + return Object.keys(r).length ? ".".concat(a).concat(e != null && e.scope ? ".".concat(e.scope) : "", "{").concat(Object.entries(r).map(function(u) { + var t = m(u, 2), v = t[0], l = t[1]; + return "".concat(v, ":").concat(l, ";"); + }).join(""), "}") : ""; +}, f = function(r, a, e) { + var u = {}, t = {}; + return Object.entries(r).forEach(function(v) { + var l, c, d = m(v, 2), n = d[0], o = d[1]; + if (e != null && (l = e.preserve) !== null && l !== void 0 && l[n]) + t[n] = o; + else if ((typeof o == "string" || typeof o == "number") && !(e != null && (c = e.ignore) !== null && c !== void 0 && c[n])) { + var i, s = S(n, e?.prefix); + u[s] = typeof o == "number" && !(e != null && (i = e.unitless) !== null && i !== void 0 && i[n]) ? "".concat(o, "px") : String(o), t[n] = "var(".concat(s, ")"); + } + }), [t, k(u, a, { + scope: e?.scope + })]; +}; +export { + k as serializeCSSVar, + S as token2CSSVar, + f as transformToken +}; diff --git a/dist/index.es221.js b/dist/index.es221.js new file mode 100644 index 00000000..a827cf41 --- /dev/null +++ b/dist/index.es221.js @@ -0,0 +1,47 @@ +import _ from "./index.es171.js"; +import $ from "./index.es144.js"; +import * as x from "react"; +import { pathKey as A } from "./index.es229.js"; +import D from "./index.es94.js"; +import E from "./index.es98.js"; +import H from "./index.es99.js"; +import O from "./index.es100.js"; +function k(g, y, C, i, n) { + var G = x.useContext(D), a = G.cache, N = [g].concat($(y)), r = A(N), M = H([r]), b = O(), p = function(o) { + a.opUpdate(r, function(u) { + var t = u || [void 0, void 0], e = _(t, 2), f = e[0], l = f === void 0 ? 0 : f, c = e[1], v = c; + process.env.NODE_ENV !== "production" && c && b && (i?.(v, b), v = null); + var U = v || C(), h = [l, U]; + return o ? o(h) : h; + }); + }; + x.useMemo( + function() { + p(); + }, + /* eslint-disable react-hooks/exhaustive-deps */ + [r] + /* eslint-enable */ + ); + var s = a.opGet(r); + process.env.NODE_ENV !== "production" && !s && (p(), s = a.opGet(r)); + var d = s[1]; + return E(function() { + n?.(d); + }, function(m) { + return p(function(o) { + var u = _(o, 2), t = u[0], e = u[1]; + return m && t === 0 && n?.(d), [t + 1, e]; + }), function() { + a.opUpdate(r, function(o) { + var u = o || [], t = _(u, 2), e = t[0], f = e === void 0 ? 0 : e, l = t[1], c = f - 1; + return c === 0 ? (M(function() { + (m || !a.opGet(r)) && i?.(l, !1); + }), null) : [f - 1, l]; + }); + }; + }, [r]), d; +} +export { + k as default +}; diff --git a/dist/index.es222.js b/dist/index.es222.js new file mode 100644 index 00000000..13adc28a --- /dev/null +++ b/dist/index.es222.js @@ -0,0 +1,51 @@ +var o = { + animationIterationCount: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}; +export { + o as default +}; diff --git a/dist/index.es223.js b/dist/index.es223.js new file mode 100644 index 00000000..eb376ff3 --- /dev/null +++ b/dist/index.es223.js @@ -0,0 +1,10 @@ +import { lintWarning as e } from "./index.es258.js"; +var s = function(n, t, r) { + if (n === "content") { + var i = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, o = ["normal", "none", "initial", "inherit", "unset"]; + (typeof t != "string" || o.indexOf(t) === -1 && !i.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")) && e("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t, "\"'`."), r); + } +}; +export { + s as default +}; diff --git a/dist/index.es224.js b/dist/index.es224.js new file mode 100644 index 00000000..ed1d4b15 --- /dev/null +++ b/dist/index.es224.js @@ -0,0 +1,7 @@ +import { lintWarning as e } from "./index.es258.js"; +var m = function(a, i, n) { + a === "animation" && n.hashId && i !== "none" && e("You seem to be using hashed animation '".concat(i, "', in which case 'animationName' with Keyframe as value is recommended."), n); +}; +export { + m as default +}; diff --git a/dist/index.es225.js b/dist/index.es225.js new file mode 100644 index 00000000..f9e95ba0 --- /dev/null +++ b/dist/index.es225.js @@ -0,0 +1,42 @@ +import d from "./index.es171.js"; +import i from "./index.es162.js"; +import { ATTR_MARK as h } from "./index.es94.js"; +var s = "data-ant-cssinjs-cache-path", p = "_FILE_STYLE__", r, l = !0; +function v() { + if (!r && (r = {}, i())) { + var e = document.createElement("div"); + e.className = s, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e); + var o = getComputedStyle(e).content || ""; + o = o.replace(/^"/, "").replace(/"$/, ""), o.split(";").forEach(function(m) { + var n = m.split(":"), c = d(n, 2), f = c[0], u = c[1]; + r[f] = u; + }); + var t = document.querySelector("style[".concat(s, "]")); + if (t) { + var a; + l = !1, (a = t.parentNode) === null || a === void 0 || a.removeChild(t); + } + document.body.removeChild(e); + } +} +function T(e) { + return v(), !!r[e]; +} +function A(e) { + var o = r[e], t = null; + if (o && i()) + if (l) + t = p; + else { + var a = document.querySelector("style[".concat(h, '="').concat(r[e], '"]')); + a ? t = a.innerHTML : delete r[e]; + } + return [t, o]; +} +export { + s as ATTR_CACHE_MAP, + p as CSS_FILE_STYLE, + T as existPath, + A as getStyleAndHash, + v as prepare +}; diff --git a/dist/index.es226.js b/dist/index.es226.js new file mode 100644 index 00000000..a73b32ca --- /dev/null +++ b/dist/index.es226.js @@ -0,0 +1,28 @@ +import { RULESET as i, KEYFRAMES as E, COMMENT as f, DECLARATION as n, NAMESPACE as p, IMPORT as c, LAYER as v } from "./index.es280.js"; +import { strlen as o } from "./index.es281.js"; +function t(r, a) { + for (var s = "", u = 0; u < r.length; u++) + s += a(r[u], u, r, a) || ""; + return s; +} +function R(r, a, s, u) { + switch (r.type) { + case v: + if (r.children.length) break; + case c: + case p: + case n: + return r.return = r.return || r.value; + case f: + return ""; + case E: + return r.return = r.value + "{" + t(r.children, u) + "}"; + case i: + if (!o(r.value = r.props.join(","))) return ""; + } + return o(s = t(r.children, u)) ? r.return = r.value + "{" + s + "}" : ""; +} +export { + t as serialize, + R as stringify +}; diff --git a/dist/index.es227.js b/dist/index.es227.js new file mode 100644 index 00000000..1de0f4d7 --- /dev/null +++ b/dist/index.es227.js @@ -0,0 +1,136 @@ +import { DECLARATION as G, COMMENT as H, RULESET as J } from "./index.es280.js"; +import { strlen as u, append as M, charat as x, replace as O, substr as C, indexof as K, abs as B, sizeof as P, trim as Q, from as F } from "./index.es281.js"; +import { dealloc as V, alloc as W, next as y, peek as N, delimit as z, identifier as X, commenter as Y, token as S, escaping as Z, whitespace as _, node as I, char as $, prev as j, caret as D } from "./index.es282.js"; +function fa(e) { + return V(R("", null, null, null, [""], e = W(e), 0, [0], e)); +} +function R(e, m, n, c, s, g, L, t, h) { + for (var d = 0, v = 0, f = L, T = 0, p = 0, k = 0, i = 1, A = 1, o = 1, r = 0, w = "", l = s, E = g, b = c, a = w; A; ) + switch (k = r, r = y()) { + // ( + case 40: + if (k != 108 && x(a, f - 1) == 58) { + K(a += O(z(r), "&", "&\f"), "&\f", B(d ? t[d - 1] : 0)) != -1 && (o = -1); + break; + } + // " ' [ + case 34: + case 39: + case 91: + a += z(r); + break; + // \t \n \r \s + case 9: + case 10: + case 13: + case 32: + a += _(k); + break; + // \ + case 92: + a += Z(D() - 1, 7); + continue; + // / + case 47: + switch (N()) { + case 42: + case 47: + M(aa(Y(y(), D()), m, n, h), h), (S(k || 1) == 5 || S(N() || 1) == 5) && u(a) && C(a, -1, void 0) !== " " && (a += " "); + break; + default: + a += "/"; + } + break; + // { + case 123 * i: + t[d++] = u(a) * o; + // } ; \0 + case 125 * i: + case 59: + case 0: + switch (r) { + // \0 } + case 0: + case 125: + A = 0; + // ; + case 59 + v: + o == -1 && (a = O(a, /\f/g, "")), p > 0 && (u(a) - f || i === 0 && k === 47) && M(p > 32 ? q(a + ";", c, n, f - 1, h) : q(O(a, " ", "") + ";", c, n, f - 2, h), h); + break; + // @ ; + case 59: + a += ";"; + // { rule/at-rule + default: + if (M(b = U(a, m, n, d, v, s, t, w, l = [], E = [], f, g), g), r === 123) + if (v === 0) + R(a, m, b, b, l, g, f, t, E); + else { + switch (T) { + // c(ontainer) + case 99: + if (x(a, 3) === 110) break; + // l(ayer) + case 108: + if (x(a, 2) === 97) break; + default: + v = 0; + // d(ocument) m(edia) s(upports) + case 100: + case 109: + case 115: + } + v ? R(e, b, b, c && M(U(e, b, b, 0, 0, s, t, w, s, l = [], f, E), E), s, E, f, t, c ? l : E) : R(a, b, b, b, [""], E, 0, t, E); + } + } + d = v = p = 0, i = o = 1, w = a = "", f = L; + break; + // : + case 58: + f = 1 + u(a), p = k; + default: + if (i < 1) { + if (r == 123) + --i; + else if (r == 125 && i++ == 0 && j() == 125) + continue; + } + switch (a += F(r), r * i) { + // & + case 38: + o = v > 0 ? 1 : (a += "\f", -1); + break; + // , + case 44: + t[d++] = (u(a) - 1) * o, o = 1; + break; + // @ + case 64: + N() === 45 && (a += z(y())), T = N(), v = f = u(w = a += X(D())), r++; + break; + // - + case 45: + k === 45 && u(a) == 2 && (i = 0); + } + } + return g; +} +function U(e, m, n, c, s, g, L, t, h, d, v, f) { + for (var T = s - 1, p = s === 0 ? g : [""], k = P(p), i = 0, A = 0, o = 0; i < c; ++i) + for (var r = 0, w = C(e, T + 1, T = B(A = L[i])), l = e; r < k; ++r) + (l = Q(A > 0 ? p[r] + " " + w : O(w, /&\f/g, p[r]))) && (h[o++] = l); + return I(e, m, n, s === 0 ? J : t, h, d, v, f); +} +function aa(e, m, n, c) { + return I(e, m, n, H, F($()), C(e, 2, -2), 0, c); +} +function q(e, m, n, c, s) { + return I(e, m, n, G, C(e, 0, c), C(e, c + 1, -1), c, s); +} +export { + aa as comment, + fa as compile, + q as declaration, + R as parse, + U as ruleset +}; diff --git a/dist/index.es228.js b/dist/index.es228.js new file mode 100644 index 00000000..7c7b2231 --- /dev/null +++ b/dist/index.es228.js @@ -0,0 +1,18 @@ +import n from "./index.es192.js"; +import s from "./index.es193.js"; +import a from "./index.es202.js"; +var f = /* @__PURE__ */ function() { + function t(r, e) { + n(this, t), a(this, "name", void 0), a(this, "style", void 0), a(this, "_keyframe", !0), this.name = r, this.style = e; + } + return s(t, [{ + key: "getName", + value: function() { + var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + return e ? "".concat(e, "-").concat(this.name) : this.name; + } + }]), t; +}(); +export { + f as default +}; diff --git a/dist/index.es229.js b/dist/index.es229.js new file mode 100644 index 00000000..e8620932 --- /dev/null +++ b/dist/index.es229.js @@ -0,0 +1,40 @@ +import c from "./index.es192.js"; +import p from "./index.es193.js"; +import o from "./index.es202.js"; +var s = "%"; +function r(t) { + return t.join(s); +} +var d = /* @__PURE__ */ function() { + function t(n) { + c(this, t), o(this, "instanceId", void 0), o(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = n; + } + return p(t, [{ + key: "get", + value: function(e) { + return this.opGet(r(e)); + } + /** A fast get cache with `get` concat. */ + }, { + key: "opGet", + value: function(e) { + return this.cache.get(e) || null; + } + }, { + key: "update", + value: function(e, a) { + return this.opUpdate(r(e), a); + } + /** A fast get cache with `get` concat. */ + }, { + key: "opUpdate", + value: function(e, a) { + var u = this.cache.get(e), i = a(u); + i === null ? this.cache.delete(e) : this.cache.set(e, i); + } + }]), t; +}(); +export { + d as default, + r as pathKey +}; diff --git a/dist/index.es23.js b/dist/index.es23.js index 62d134ba..43d852ef 100644 --- a/dist/index.es23.js +++ b/dist/index.es23.js @@ -1,96 +1,100 @@ -import * as t from "react"; -import * as a from "@radix-ui/react-dialog"; -import { XIcon as n } from "lucide-react"; -import { cn as i } from "./index.es54.js"; -function c({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Root, { "data-slot": "dialog", ...e }); +import { j as r } from "./index.es64.js"; +import { Drawer as e } from "vaul"; +import { cn as d } from "./index.es65.js"; +function u({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Root, { "data-slot": "drawer", ...t }); } -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Trigger, { "data-slot": "dialog-trigger", ...e }); +function w({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Trigger, { "data-slot": "drawer-trigger", ...t }); } -function r({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Portal, { "data-slot": "dialog-portal", ...e }); +function i({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Portal, { "data-slot": "drawer-portal", ...t }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Close, { "data-slot": "dialog-close", ...e }); +function m({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Close, { "data-slot": "drawer-close", ...t }); } -function s({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Overlay, +function n({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Overlay, { - "data-slot": "dialog-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - e + "data-slot": "drawer-overlay", + className: d( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t ), - ...l + ...a } ); } -function u({ className: e, children: l, ...o }) { - return /* @__PURE__ */ t.createElement(r, { "data-slot": "dialog-portal" }, /* @__PURE__ */ t.createElement(s, null), /* @__PURE__ */ t.createElement( - a.Content, - { - "data-slot": "dialog-content", - className: i( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg", - e - ), - ...o - }, - l, - /* @__PURE__ */ t.createElement(a.Close, { className: "lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-accent data-[state=open]:lib:text-muted-foreground lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4" }, /* @__PURE__ */ t.createElement(n, null), /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "Close")) - )); +function x({ className: t, children: a, ...o }) { + return /* @__PURE__ */ r.jsxs(i, { "data-slot": "drawer-portal", children: [ + /* @__PURE__ */ r.jsx(n, {}), + /* @__PURE__ */ r.jsxs( + e.Content, + { + "data-slot": "drawer-content", + className: d( + "group/drawer-content bg-background fixed z-50 flex h-auto flex-col", + "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", + "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", + "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", + "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", + t + ), + ...o, + children: [ + /* @__PURE__ */ r.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), + a + ] + } + ) + ] }); } -function f({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( +function f({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( "div", { - "data-slot": "dialog-header", - className: i("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left", e), - ...l + "data-slot": "drawer-header", + className: d( + "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", + t + ), + ...a } ); } -function p({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - "div", - { - "data-slot": "dialog-footer", - className: i("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end", e), - ...l - } - ); +function v({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx("div", { "data-slot": "drawer-footer", className: d("mt-auto flex flex-col gap-2 p-4", t), ...a }); } -function x({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Title, +function p({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Title, { - "data-slot": "dialog-title", - className: i("lib:text-lg lib:leading-none lib:font-semibold", e), - ...l + "data-slot": "drawer-title", + className: d("text-foreground font-semibold", t), + ...a } ); } -function E({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Description, +function g({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Description, { - "data-slot": "dialog-description", - className: i("lib:text-muted-foreground lib:text-sm", e), - ...l + "data-slot": "drawer-description", + className: d("text-muted-foreground text-sm", t), + ...a } ); } export { - c as Dialog, - m as DialogClose, - u as DialogContent, - E as DialogDescription, - p as DialogFooter, - f as DialogHeader, - s as DialogOverlay, - r as DialogPortal, - x as DialogTitle, - g as DialogTrigger + u as Drawer, + m as DrawerClose, + x as DrawerContent, + g as DrawerDescription, + v as DrawerFooter, + f as DrawerHeader, + n as DrawerOverlay, + i as DrawerPortal, + p as DrawerTitle, + w as DrawerTrigger }; diff --git a/dist/index.es230.js b/dist/index.es230.js new file mode 100644 index 00000000..b068bfa3 --- /dev/null +++ b/dist/index.es230.js @@ -0,0 +1,20 @@ +import u from "./index.es192.js"; +import h from "./index.es193.js"; +import t from "./index.es202.js"; +import { warning as s } from "./index.es96.js"; +var r = 0, v = /* @__PURE__ */ function() { + function i(e) { + u(this, i), t(this, "derivatives", void 0), t(this, "id", void 0), this.derivatives = Array.isArray(e) ? e : [e], this.id = r, e.length === 0 && s(e.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), r += 1; + } + return h(i, [{ + key: "getDerivativeToken", + value: function(n) { + return this.derivatives.reduce(function(o, a) { + return a(n, o); + }, void 0); + } + }]), i; +}(); +export { + v as default +}; diff --git a/dist/index.es231.js b/dist/index.es231.js new file mode 100644 index 00000000..85e0a6b8 --- /dev/null +++ b/dist/index.es231.js @@ -0,0 +1,14 @@ +import e from "./index.es232.js"; +import r from "./index.es233.js"; +Object.assign({ + placeholder: "Select date", + yearPlaceholder: "Select year", + quarterPlaceholder: "Select quarter", + monthPlaceholder: "Select month", + weekPlaceholder: "Select week", + rangePlaceholder: ["Start date", "End date"], + rangeYearPlaceholder: ["Start year", "End year"], + rangeQuarterPlaceholder: ["Start quarter", "End quarter"], + rangeMonthPlaceholder: ["Start month", "End month"], + rangeWeekPlaceholder: ["Start week", "End week"] +}, e), Object.assign({}, r); diff --git a/dist/index.es232.js b/dist/index.es232.js new file mode 100644 index 00000000..866c1089 --- /dev/null +++ b/dist/index.es232.js @@ -0,0 +1,32 @@ +var e = { + locale: "en_US", + today: "Today", + now: "Now", + backToToday: "Back to today", + ok: "OK", + clear: "Clear", + month: "Month", + year: "Year", + timeSelect: "select time", + dateSelect: "select date", + weekSelect: "Choose a week", + monthSelect: "Choose a month", + yearSelect: "Choose a year", + decadeSelect: "Choose a decade", + yearFormat: "YYYY", + dateFormat: "M/D/YYYY", + dayFormat: "D", + dateTimeFormat: "M/D/YYYY HH:mm:ss", + monthBeforeYear: !0, + previousMonth: "Previous month (PageUp)", + nextMonth: "Next month (PageDown)", + previousYear: "Last year (Control + left)", + nextYear: "Next year (Control + right)", + previousDecade: "Last decade", + nextDecade: "Next decade", + previousCentury: "Last century", + nextCentury: "Next century" +}; +export { + e as default +}; diff --git a/dist/index.es233.js b/dist/index.es233.js new file mode 100644 index 00000000..b69f40bb --- /dev/null +++ b/dist/index.es233.js @@ -0,0 +1,7 @@ +const e = { + placeholder: "Select time", + rangePlaceholder: ["Start time", "End time"] +}; +export { + e as default +}; diff --git a/dist/index.es234.js b/dist/index.es234.js new file mode 100644 index 00000000..5c4d9850 --- /dev/null +++ b/dist/index.es234.js @@ -0,0 +1,6 @@ +function a(r) { + if (Array.isArray(r)) return r; +} +export { + a as default +}; diff --git a/dist/index.es235.js b/dist/index.es235.js new file mode 100644 index 00000000..0cd5bfa4 --- /dev/null +++ b/dist/index.es235.js @@ -0,0 +1,7 @@ +function e() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); +} +export { + e as default +}; diff --git a/dist/index.es236.js b/dist/index.es236.js new file mode 100644 index 00000000..62866c42 --- /dev/null +++ b/dist/index.es236.js @@ -0,0 +1,15 @@ +function r(e, a) { + if (!e) + return !1; + if (e.contains) + return e.contains(a); + for (var n = a; n; ) { + if (n === e) + return !0; + n = n.parentNode; + } + return !1; +} +export { + r as default +}; diff --git a/dist/index.es237.js b/dist/index.es237.js new file mode 100644 index 00000000..720a2985 --- /dev/null +++ b/dist/index.es237.js @@ -0,0 +1,10 @@ +import { __module as e } from "./index.es238.js"; +import { __require as o } from "./index.es239.js"; +import { __require as t } from "./index.es240.js"; +var r; +function p() { + return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports); +} +export { + p as __require +}; diff --git a/dist/index.es238.js b/dist/index.es238.js new file mode 100644 index 00000000..9d3562c2 --- /dev/null +++ b/dist/index.es238.js @@ -0,0 +1,4 @@ +var e = { exports: {} }; +export { + e as __module +}; diff --git a/dist/index.es239.js b/dist/index.es239.js new file mode 100644 index 00000000..45f09f09 --- /dev/null +++ b/dist/index.es239.js @@ -0,0 +1,81 @@ +import { __exports as r } from "./index.es266.js"; +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var b; +function x() { + if (b) return r; + b = 1; + var p = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), s = Symbol.for("react.context"), $ = Symbol.for("react.server_context"), i = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), S; + S = Symbol.for("react.module.reference"); + function t(e) { + if (typeof e == "object" && e !== null) { + var d = e.$$typeof; + switch (d) { + case p: + switch (e = e.type, e) { + case o: + case c: + case n: + case u: + case l: + return e; + default: + switch (e = e && e.$$typeof, e) { + case $: + case s: + case i: + case y: + case m: + case f: + return e; + default: + return d; + } + } + case a: + return d; + } + } + } + return r.ContextConsumer = s, r.ContextProvider = f, r.Element = p, r.ForwardRef = i, r.Fragment = o, r.Lazy = y, r.Memo = m, r.Portal = a, r.Profiler = c, r.StrictMode = n, r.Suspense = u, r.SuspenseList = l, r.isAsyncMode = function() { + return !1; + }, r.isConcurrentMode = function() { + return !1; + }, r.isContextConsumer = function(e) { + return t(e) === s; + }, r.isContextProvider = function(e) { + return t(e) === f; + }, r.isElement = function(e) { + return typeof e == "object" && e !== null && e.$$typeof === p; + }, r.isForwardRef = function(e) { + return t(e) === i; + }, r.isFragment = function(e) { + return t(e) === o; + }, r.isLazy = function(e) { + return t(e) === y; + }, r.isMemo = function(e) { + return t(e) === m; + }, r.isPortal = function(e) { + return t(e) === a; + }, r.isProfiler = function(e) { + return t(e) === c; + }, r.isStrictMode = function(e) { + return t(e) === n; + }, r.isSuspense = function(e) { + return t(e) === u; + }, r.isSuspenseList = function(e) { + return t(e) === l; + }, r.isValidElementType = function(e) { + return typeof e == "string" || typeof e == "function" || e === o || e === c || e === n || e === u || e === l || e === _ || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === m || e.$$typeof === f || e.$$typeof === s || e.$$typeof === i || e.$$typeof === S || e.getModuleId !== void 0); + }, r.typeOf = t, r; +} +export { + x as __require +}; diff --git a/dist/index.es24.js b/dist/index.es24.js index 97ccf2e5..b4c9a135 100644 --- a/dist/index.es24.js +++ b/dist/index.es24.js @@ -1,92 +1,195 @@ -import * as e from "react"; -import { Drawer as r } from "vaul"; -import { cn as i } from "./index.es54.js"; -function c({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Root, { "data-slot": "drawer", ...t }); +import { j as t } from "./index.es64.js"; +import * as n from "@radix-ui/react-dropdown-menu"; +import { CheckIcon as s, CircleIcon as i, ChevronRightIcon as u } from "lucide-react"; +import { cn as r } from "./index.es65.js"; +function p({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e }); } -function u({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Trigger, { "data-slot": "drawer-trigger", ...t }); +function f({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e }); } -function d({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Portal, { "data-slot": "drawer-portal", ...t }); +function x({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Trigger, { "data-slot": "dropdown-menu-trigger", ...e }); } -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Close, { "data-slot": "drawer-close", ...t }); -} -function o({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Overlay, +function g({ + className: e, + sideOffset: o = 4, + ...a +}) { + return /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx( + n.Content, { - "data-slot": "drawer-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t + "data-slot": "dropdown-menu-content", + sideOffset: o, + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", + e ), ...a } + ) }); +} +function v({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e }); +} +function w({ + className: e, + inset: o, + variant: a = "default", + ...d +}) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "dropdown-menu-item", + "data-inset": o, + "data-variant": a, + className: r( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...d + } ); } -function w({ className: t, children: a, ...l }) { - return /* @__PURE__ */ e.createElement(d, { "data-slot": "drawer-portal" }, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement( - r.Content, +function b({ + className: e, + children: o, + checked: a, + ...d +}) { + return /* @__PURE__ */ t.jsxs( + n.CheckboxItem, { - "data-slot": "drawer-content", - className: i( - "lib:group/drawer-content lib:bg-background lib:fixed lib:z-50 lib:flex lib:h-auto lib:flex-col", - "data-[vaul-drawer-direction=top]:lib:inset-x-0 data-[vaul-drawer-direction=top]:lib:top-0 data-[vaul-drawer-direction=top]:lib:mb-24 data-[vaul-drawer-direction=top]:lib:max-h-[80vh] data-[vaul-drawer-direction=top]:lib:rounded-b-lg data-[vaul-drawer-direction=top]:lib:border-b", - "data-[vaul-drawer-direction=bottom]:lib:inset-x-0 data-[vaul-drawer-direction=bottom]:lib:bottom-0 data-[vaul-drawer-direction=bottom]:lib:mt-24 data-[vaul-drawer-direction=bottom]:lib:max-h-[80vh] data-[vaul-drawer-direction=bottom]:lib:rounded-t-lg data-[vaul-drawer-direction=bottom]:lib:border-t", - "data-[vaul-drawer-direction=right]:lib:inset-y-0 data-[vaul-drawer-direction=right]:lib:right-0 data-[vaul-drawer-direction=right]:lib:w-3/4 data-[vaul-drawer-direction=right]:lib:border-l data-[vaul-drawer-direction=right]:sm:lib:max-w-sm", - "data-[vaul-drawer-direction=left]:lib:inset-y-0 data-[vaul-drawer-direction=left]:lib:left-0 data-[vaul-drawer-direction=left]:lib:w-3/4 data-[vaul-drawer-direction=left]:lib:border-r data-[vaul-drawer-direction=left]:sm:lib:max-w-sm", - t + "data-slot": "dropdown-menu-checkbox-item", + className: r( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e ), - ...l - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:bg-muted lib:mx-auto lib:mt-4 lib:hidden lib:h-2 lib:w-[100px] lib:shrink-0 lib:rounded-full lib:group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), - a - )); + checked: a, + ...d, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(s, { className: "size-4" }) }) }), + o + ] + } + ); } -function s({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement("div", { "data-slot": "drawer-header", className: i("lib:flex lib:flex-col lib:gap-1.5 lib:p-4", t), ...a }); +function h({ ...e }) { + return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...e }); } -function f({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - "div", +function j({ + className: e, + children: o, + ...a +}) { + return /* @__PURE__ */ t.jsxs( + n.RadioItem, { - "data-slot": "drawer-footer", - className: i("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4", t), - ...a + "data-slot": "dropdown-menu-radio-item", + className: r( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...a, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-2 fill-current" }) }) }), + o + ] } ); } -function v({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Title, +function z({ + className: e, + inset: o, + ...a +}) { + return /* @__PURE__ */ t.jsx( + n.Label, { - "data-slot": "drawer-title", - className: i("lib:text-foreground lib:font-semibold", t), + "data-slot": "dropdown-menu-label", + "data-inset": o, + className: r("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e), ...a } ); } -function p({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Description, +function D({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Separator, { - "data-slot": "drawer-description", - className: i("lib:text-muted-foreground lib:text-sm", t), - ...a + "data-slot": "dropdown-menu-separator", + className: r("bg-border -mx-1 my-1 h-px", e), + ...o + } + ); +} +function M({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "dropdown-menu-shortcut", + className: r("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...o + } + ); +} +function N({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "dropdown-menu-sub", ...e }); +} +function I({ + className: e, + inset: o, + children: a, + ...d +}) { + return /* @__PURE__ */ t.jsxs( + n.SubTrigger, + { + "data-slot": "dropdown-menu-sub-trigger", + "data-inset": o, + className: r( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", + e + ), + ...d, + children: [ + a, + /* @__PURE__ */ t.jsx(u, { className: "ml-auto size-4" }) + ] + } + ); +} +function y({ + className: e, + ...o +}) { + return /* @__PURE__ */ t.jsx( + n.SubContent, + { + "data-slot": "dropdown-menu-sub-content", + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", + e + ), + ...o } ); } export { - c as Drawer, - m as DrawerClose, - w as DrawerContent, - p as DrawerDescription, - f as DrawerFooter, - s as DrawerHeader, - o as DrawerOverlay, - d as DrawerPortal, - v as DrawerTitle, - u as DrawerTrigger + p as DropdownMenu, + b as DropdownMenuCheckboxItem, + g as DropdownMenuContent, + v as DropdownMenuGroup, + w as DropdownMenuItem, + z as DropdownMenuLabel, + f as DropdownMenuPortal, + h as DropdownMenuRadioGroup, + j as DropdownMenuRadioItem, + D as DropdownMenuSeparator, + M as DropdownMenuShortcut, + N as DropdownMenuSub, + y as DropdownMenuSubContent, + I as DropdownMenuSubTrigger, + x as DropdownMenuTrigger }; diff --git a/dist/index.es240.js b/dist/index.es240.js new file mode 100644 index 00000000..a7f76c35 --- /dev/null +++ b/dist/index.es240.js @@ -0,0 +1,103 @@ +import { __exports as r } from "./index.es267.js"; +/** + * @license React + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var P; +function te() { + return P ? r : (P = 1, process.env.NODE_ENV !== "production" && function() { + var v = Symbol.for("react.element"), m = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), b = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M = !1, p = !1, y = !1, F = !1, L = !1, T; + T = Symbol.for("react.module.reference"); + function Y(e) { + return !!(typeof e == "string" || typeof e == "function" || e === t || e === a || L || e === o || e === f || e === u || F || e === A || M || p || y || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === l || e.$$typeof === s || e.$$typeof === i || e.$$typeof === c || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + e.$$typeof === T || e.getModuleId !== void 0)); + } + function n(e) { + if (typeof e == "object" && e !== null) { + var _ = e.$$typeof; + switch (_) { + case v: + var d = e.type; + switch (d) { + case t: + case a: + case o: + case f: + case u: + return d; + default: + var C = d && d.$$typeof; + switch (C) { + case b: + case i: + case c: + case E: + case l: + case s: + return C; + default: + return _; + } + } + case m: + return _; + } + } + } + var I = i, O = s, w = v, x = c, $ = t, g = E, h = l, N = m, D = a, z = o, V = f, q = u, R = !1, S = !1; + function U(e) { + return R || (R = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; + } + function W(e) { + return S || (S = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1; + } + function X(e) { + return n(e) === i; + } + function G(e) { + return n(e) === s; + } + function H(e) { + return typeof e == "object" && e !== null && e.$$typeof === v; + } + function Z(e) { + return n(e) === c; + } + function j(e) { + return n(e) === t; + } + function k(e) { + return n(e) === E; + } + function B(e) { + return n(e) === l; + } + function J(e) { + return n(e) === m; + } + function K(e) { + return n(e) === a; + } + function Q(e) { + return n(e) === o; + } + function ee(e) { + return n(e) === f; + } + function re(e) { + return n(e) === u; + } + r.ContextConsumer = I, r.ContextProvider = O, r.Element = w, r.ForwardRef = x, r.Fragment = $, r.Lazy = g, r.Memo = h, r.Portal = N, r.Profiler = D, r.StrictMode = z, r.Suspense = V, r.SuspenseList = q, r.isAsyncMode = U, r.isConcurrentMode = W, r.isContextConsumer = X, r.isContextProvider = G, r.isElement = H, r.isForwardRef = Z, r.isFragment = j, r.isLazy = k, r.isMemo = B, r.isPortal = J, r.isProfiler = K, r.isStrictMode = Q, r.isSuspense = ee, r.isSuspenseList = re, r.isValidElementType = Y, r.typeOf = n; + }(), r); +} +export { + te as __require +}; diff --git a/dist/index.es241.js b/dist/index.es241.js new file mode 100644 index 00000000..f4d09859 --- /dev/null +++ b/dist/index.es241.js @@ -0,0 +1,24 @@ +function c(e, u) { + var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; + if (t != null) { + var a, i, f, l, n = [], r = !0, o = !1; + try { + if (f = (t = t.call(e)).next, u === 0) { + if (Object(t) !== t) return; + r = !1; + } else for (; !(r = (a = f.call(t)).done) && (n.push(a.value), n.length !== u); r = !0) ; + } catch (y) { + o = !0, i = y; + } finally { + try { + if (!r && t.return != null && (l = t.return(), Object(l) !== l)) return; + } finally { + if (o) throw i; + } + } + return n; + } +} +export { + c as default +}; diff --git a/dist/index.es242.js b/dist/index.es242.js new file mode 100644 index 00000000..595b42cc --- /dev/null +++ b/dist/index.es242.js @@ -0,0 +1,17 @@ +function l(t) { + return (t + 8) / t; +} +function c(t) { + const e = new Array(10).fill(null).map((n, o) => { + const r = o - 1, i = t * Math.pow(2.71828, r / 5), a = o > 1 ? Math.floor(i) : Math.ceil(i); + return Math.floor(a / 2) * 2; + }); + return e[1] = t, e.map((n) => ({ + size: n, + lineHeight: l(n) + })); +} +export { + c as default, + l as getLineHeight +}; diff --git a/dist/index.es243.js b/dist/index.es243.js new file mode 100644 index 00000000..9af09de6 --- /dev/null +++ b/dist/index.es243.js @@ -0,0 +1,9 @@ +import a from "./index.es244.js"; +import l from "./index.es245.js"; +const e = (o) => { + const r = o === "css" ? a : l; + return (t) => new r(t); +}; +export { + e as default +}; diff --git a/dist/index.es244.js b/dist/index.es244.js new file mode 100644 index 00000000..d025a859 --- /dev/null +++ b/dist/index.es244.js @@ -0,0 +1,52 @@ +import f from "./index.es192.js"; +import h from "./index.es193.js"; +import n from "./index.es195.js"; +import a from "./index.es199.js"; +import c from "./index.es268.js"; +const l = "CALC_UNIT"; +function i(r) { + return typeof r == "number" ? `${r}${l}` : r; +} +let b = /* @__PURE__ */ function(r) { + function s(e) { + var t; + return f(this, s), t = n(this, s), t.result = "", e instanceof s ? t.result = `(${e.result})` : typeof e == "number" ? t.result = i(e) : typeof e == "string" && (t.result = e), t; + } + return a(s, r), h(s, [{ + key: "add", + value: function(t) { + return t instanceof s ? this.result = `${this.result} + ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} + ${i(t)}`), this.lowPriority = !0, this; + } + }, { + key: "sub", + value: function(t) { + return t instanceof s ? this.result = `${this.result} - ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} - ${i(t)}`), this.lowPriority = !0, this; + } + }, { + key: "mul", + value: function(t) { + return this.lowPriority && (this.result = `(${this.result})`), t instanceof s ? this.result = `${this.result} * ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} * ${t}`), this.lowPriority = !1, this; + } + }, { + key: "div", + value: function(t) { + return this.lowPriority && (this.result = `(${this.result})`), t instanceof s ? this.result = `${this.result} / ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} / ${t}`), this.lowPriority = !1, this; + } + }, { + key: "getResult", + value: function(t) { + return this.lowPriority || t ? `(${this.result})` : this.result; + } + }, { + key: "equal", + value: function(t) { + const { + unit: u = !0 + } = t || {}, o = new RegExp(`${l}`, "g"); + return this.result = this.result.replace(o, u ? "px" : ""), typeof this.lowPriority < "u" ? `calc(${this.result})` : this.result; + } + }]); +}(c); +export { + b as default +}; diff --git a/dist/index.es245.js b/dist/index.es245.js new file mode 100644 index 00000000..858381ce --- /dev/null +++ b/dist/index.es245.js @@ -0,0 +1,40 @@ +import i from "./index.es192.js"; +import l from "./index.es193.js"; +import u from "./index.es195.js"; +import f from "./index.es199.js"; +import o from "./index.es268.js"; +let y = /* @__PURE__ */ function(s) { + function e(r) { + var t; + return i(this, e), t = u(this, e), t.result = 0, r instanceof e ? t.result = r.result : typeof r == "number" && (t.result = r), t; + } + return f(e, s), l(e, [{ + key: "add", + value: function(t) { + return t instanceof e ? this.result += t.result : typeof t == "number" && (this.result += t), this; + } + }, { + key: "sub", + value: function(t) { + return t instanceof e ? this.result -= t.result : typeof t == "number" && (this.result -= t), this; + } + }, { + key: "mul", + value: function(t) { + return t instanceof e ? this.result *= t.result : typeof t == "number" && (this.result *= t), this; + } + }, { + key: "div", + value: function(t) { + return t instanceof e ? this.result /= t.result : typeof t == "number" && (this.result /= t), this; + } + }, { + key: "equal", + value: function() { + return this.result; + } + }]); +}(o); +export { + y as default +}; diff --git a/dist/index.es246.js b/dist/index.es246.js new file mode 100644 index 00000000..eec0288e --- /dev/null +++ b/dist/index.es246.js @@ -0,0 +1,32 @@ +import "./index.es92.js"; +import "./index.es93.js"; +import "react"; +import "./index.es94.js"; +import { unit as i } from "./index.es185.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es96.js"; +import "./index.es95.js"; +import "./index.es97.js"; +import "./index.es101.js"; +function v(o) { + return o === "js" ? { + max: Math.max, + min: Math.min + } : { + max: function() { + for (var t = arguments.length, m = new Array(t), r = 0; r < t; r++) + m[r] = arguments[r]; + return `max(${m.map((n) => i(n)).join(",")})`; + }, + min: function() { + for (var t = arguments.length, m = new Array(t), r = 0; r < t; r++) + m[r] = arguments[r]; + return `min(${m.map((n) => i(n)).join(",")})`; + } + }; +} +export { + v as default +}; diff --git a/dist/index.es247.js b/dist/index.es247.js new file mode 100644 index 00000000..d378af9d --- /dev/null +++ b/dist/index.es247.js @@ -0,0 +1,12 @@ +function r(t, i) { + if (t == null) return {}; + var o = {}; + for (var e in t) if ({}.hasOwnProperty.call(t, e)) { + if (i.indexOf(e) !== -1) continue; + o[e] = t[e]; + } + return o; +} +export { + r as default +}; diff --git a/dist/index.es248.js b/dist/index.es248.js new file mode 100644 index 00000000..2468a206 --- /dev/null +++ b/dist/index.es248.js @@ -0,0 +1,22 @@ +const s = function(i) { + if (!i) + return !1; + if (i instanceof Element) { + if (i.offsetParent) + return !0; + if (i.getBBox) { + var t = i.getBBox(), f = t.width, u = t.height; + if (f || u) + return !0; + } + if (i.getBoundingClientRect) { + var r = i.getBoundingClientRect(), n = r.width, a = r.height; + if (n || a) + return !0; + } + } + return !1; +}; +export { + s as default +}; diff --git a/dist/index.es249.js b/dist/index.es249.js new file mode 100644 index 00000000..f34858a5 --- /dev/null +++ b/dist/index.es249.js @@ -0,0 +1,38 @@ +import { TinyColor as r } from "./index.es165.js"; +function o(n) { + return n >= 0 && n <= 255; +} +function d(n, f) { + const { + r: e, + g: a, + b, + a: s + } = new r(n).toRgb(); + if (s < 1) + return n; + const { + r: c, + g: h, + b: l + } = new r(f).toRgb(); + for (let t = 0.01; t <= 1; t += 0.01) { + const g = Math.round((e - c * (1 - t)) / t), i = Math.round((a - h * (1 - t)) / t), u = Math.round((b - l * (1 - t)) / t); + if (o(g) && o(i) && o(u)) + return new r({ + r: g, + g: i, + b: u, + a: Math.round(t * 100) / 100 + }).toRgbString(); + } + return new r({ + r: e, + g: a, + b, + a: 1 + }).toRgbString(); +} +export { + d as default +}; diff --git a/dist/index.es25.js b/dist/index.es25.js index d5958e8d..df149753 100644 --- a/dist/index.es25.js +++ b/dist/index.es25.js @@ -1,189 +1,78 @@ -import * as t from "react"; -import * as n from "@radix-ui/react-dropdown-menu"; -import { CheckIcon as r, CircleIcon as d, ChevronRightIcon as s } from "lucide-react"; -import { cn as l } from "./index.es54.js"; -function c({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Root, { "data-slot": "dropdown-menu", ...e }); +import { j as m } from "./index.es64.js"; +import * as n from "react"; +import { Slot as f } from "@radix-ui/react-slot"; +import { FormProvider as u, useFormContext as x, useFormState as F, Controller as I } from "react-hook-form"; +import { cn as a } from "./index.es65.js"; +import { Label as p } from "./index.es29.js"; +const b = u, c = n.createContext({}), S = ({ + ...t +}) => /* @__PURE__ */ m.jsx(c.Provider, { value: { name: t.name }, children: /* @__PURE__ */ m.jsx(I, { ...t }) }), d = () => { + const t = n.useContext(c), e = n.useContext(l), { getFieldState: r } = x(), o = F({ name: t.name }), s = r(t.name, o); + if (!t) + throw new Error("useFormField should be used within "); + const { id: i } = e; + return { + id: i, + name: t.name, + formItemId: `${i}-form-item`, + formDescriptionId: `${i}-form-item-description`, + formMessageId: `${i}-form-item-message`, + ...s + }; +}, l = n.createContext({}); +function $({ className: t, ...e }) { + const r = n.useId(); + return /* @__PURE__ */ m.jsx(l.Provider, { value: { id: r }, children: /* @__PURE__ */ m.jsx("div", { "data-slot": "form-item", className: a("grid gap-2", t), ...e }) }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Portal, { "data-slot": "dropdown-menu-portal", ...e }); -} -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Trigger, { "data-slot": "dropdown-menu-trigger", ...e }); -} -function f({ - className: e, - sideOffset: i = 4, - ...o -}) { - return /* @__PURE__ */ t.createElement(n.Portal, null, /* @__PURE__ */ t.createElement( - n.Content, - { - "data-slot": "dropdown-menu-content", - sideOffset: i, - className: l( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...o - } - )); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Group, { "data-slot": "dropdown-menu-group", ...e }); -} -function v({ - className: e, - inset: i, - variant: o = "default", - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.Item, - { - "data-slot": "dropdown-menu-item", - "data-inset": i, - "data-variant": o, - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...a - } - ); -} -function w({ - className: e, - children: i, - checked: o, - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.CheckboxItem, - { - "data-slot": "dropdown-menu-checkbox-item", - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: o, - ...a - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(r, { className: "lib:size-4" }))), - i - ); -} -function x({ ...e }) { - return /* @__PURE__ */ t.createElement(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...e }); -} -function h({ - className: e, - children: i, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.RadioItem, - { - "data-slot": "dropdown-menu-radio-item", - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(d, { className: "lib:size-2 lib:fill-current" }))), - i - ); -} -function E({ - className: e, - inset: i, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.Label, +function D({ className: t, ...e }) { + const { error: r, formItemId: o } = d(); + return /* @__PURE__ */ m.jsx( + p, { - "data-slot": "dropdown-menu-label", - "data-inset": i, - className: l("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", e), - ...o + "data-slot": "form-label", + "data-error": !!r, + className: a("data-[error=true]:text-destructive", t), + htmlFor: o, + ...e } ); } -function z({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.Separator, +function M({ ...t }) { + const { error: e, formItemId: r, formDescriptionId: o, formMessageId: s } = d(); + return /* @__PURE__ */ m.jsx( + f, { - "data-slot": "dropdown-menu-separator", - className: l("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "form-control", + id: r, + "aria-describedby": e ? `${o} ${s}` : `${o}`, + "aria-invalid": !!e, + ...t } ); } -function D({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function N({ className: t, ...e }) { + const { formDescriptionId: r } = d(); + return /* @__PURE__ */ m.jsx( + "p", { - "data-slot": "dropdown-menu-shortcut", - className: l("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "form-description", + id: r, + className: a("text-muted-foreground text-sm", t), + ...e } ); } -function M({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Sub, { "data-slot": "dropdown-menu-sub", ...e }); -} -function N({ - className: e, - inset: i, - children: o, - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.SubTrigger, - { - "data-slot": "dropdown-menu-sub-trigger", - "data-inset": i, - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8", - e - ), - ...a - }, - o, - /* @__PURE__ */ t.createElement(s, { className: "lib:ml-auto lib:size-4" }) - ); -} -function I({ - className: e, - ...i -}) { - return /* @__PURE__ */ t.createElement( - n.SubContent, - { - "data-slot": "dropdown-menu-sub-content", - className: l( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e - ), - ...i - } - ); +function w({ className: t, ...e }) { + const { error: r, formMessageId: o } = d(), s = r ? String(r?.message ?? "") : e.children; + return s ? /* @__PURE__ */ m.jsx("p", { "data-slot": "form-message", id: o, className: a("text-destructive text-sm", t), ...e, children: s }) : null; } export { - c as DropdownMenu, - w as DropdownMenuCheckboxItem, - f as DropdownMenuContent, - g as DropdownMenuGroup, - v as DropdownMenuItem, - E as DropdownMenuLabel, - m as DropdownMenuPortal, - x as DropdownMenuRadioGroup, - h as DropdownMenuRadioItem, - z as DropdownMenuSeparator, - D as DropdownMenuShortcut, - M as DropdownMenuSub, - I as DropdownMenuSubContent, - N as DropdownMenuSubTrigger, - p as DropdownMenuTrigger + b as Form, + M as FormControl, + N as FormDescription, + S as FormField, + $ as FormItem, + D as FormLabel, + w as FormMessage, + d as useFormField }; diff --git a/dist/index.es250.js b/dist/index.es250.js new file mode 100644 index 00000000..764ba862 --- /dev/null +++ b/dist/index.es250.js @@ -0,0 +1,13 @@ +const b = (f) => { + let t = f, l = f, o = f, R = f; + return f < 6 && f >= 5 ? t = f + 1 : f < 16 && f >= 6 ? t = f + 2 : f >= 16 && (t = 16), f < 7 && f >= 5 ? l = 4 : f < 8 && f >= 7 ? l = 5 : f < 14 && f >= 8 ? l = 6 : f < 16 && f >= 14 ? l = 7 : f >= 16 && (l = 8), f < 6 && f >= 2 ? o = 1 : f >= 6 && (o = 2), f > 4 && f < 8 ? R = 4 : f >= 8 && (R = 6), { + borderRadius: f, + borderRadiusXS: o, + borderRadiusSM: l, + borderRadiusLG: t, + borderRadiusOuter: R + }; +}; +export { + b as default +}; diff --git a/dist/index.es251.js b/dist/index.es251.js new file mode 100644 index 00000000..1bedb32e --- /dev/null +++ b/dist/index.es251.js @@ -0,0 +1,6 @@ +import { TinyColor as n } from "./index.es165.js"; +const i = (o, t) => new n(o).setAlpha(t).toRgbString(), l = (o, t) => new n(o).darken(t).toHexString(); +export { + i as getAlphaColor, + l as getSolidColor +}; diff --git a/dist/index.es252.js b/dist/index.es252.js new file mode 100644 index 00000000..c6ba3943 --- /dev/null +++ b/dist/index.es252.js @@ -0,0 +1,84 @@ +var f = { + shiftX: 64, + adjustY: 1 +}, o = { + adjustX: 1, + shiftY: !0 +}, t = [0, 0], e = { + left: { + points: ["cr", "cl"], + overflow: o, + offset: [-4, 0], + targetOffset: t + }, + right: { + points: ["cl", "cr"], + overflow: o, + offset: [4, 0], + targetOffset: t + }, + top: { + points: ["bc", "tc"], + overflow: f, + offset: [0, -4], + targetOffset: t + }, + bottom: { + points: ["tc", "bc"], + overflow: f, + offset: [0, 4], + targetOffset: t + }, + topLeft: { + points: ["bl", "tl"], + overflow: f, + offset: [0, -4], + targetOffset: t + }, + leftTop: { + points: ["tr", "tl"], + overflow: o, + offset: [-4, 0], + targetOffset: t + }, + topRight: { + points: ["br", "tr"], + overflow: f, + offset: [0, -4], + targetOffset: t + }, + rightTop: { + points: ["tl", "tr"], + overflow: o, + offset: [4, 0], + targetOffset: t + }, + bottomRight: { + points: ["tr", "br"], + overflow: f, + offset: [0, 4], + targetOffset: t + }, + rightBottom: { + points: ["bl", "br"], + overflow: o, + offset: [4, 0], + targetOffset: t + }, + bottomLeft: { + points: ["tl", "bl"], + overflow: f, + offset: [0, 4], + targetOffset: t + }, + leftBottom: { + points: ["br", "bl"], + overflow: o, + offset: [-4, 0], + targetOffset: t + } +}; +export { + e as default, + e as placements +}; diff --git a/dist/index.es253.js b/dist/index.es253.js new file mode 100644 index 00000000..7908cdca --- /dev/null +++ b/dist/index.es253.js @@ -0,0 +1,14 @@ +import o from "./index.es155.js"; +function n(r, i) { + if (o(r) != "object" || !r) return r; + var e = r[Symbol.toPrimitive]; + if (e !== void 0) { + var t = e.call(r, i); + if (o(t) != "object") return t; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (i === "string" ? String : Number)(r); +} +export { + n as default +}; diff --git a/dist/index.es254.js b/dist/index.es254.js new file mode 100644 index 00000000..07912292 --- /dev/null +++ b/dist/index.es254.js @@ -0,0 +1,16 @@ +import i from "./index.es171.js"; +import * as t from "react"; +import u from "./index.es172.js"; +function l(n) { + var c = t.useReducer(function(e) { + return e + 1; + }, 0), o = i(c, 2), a = o[1], r = t.useRef(n), f = u(function() { + return r.current; + }), s = u(function(e) { + r.current = typeof e == "function" ? e(r.current) : e, a(); + }); + return [f, s]; +} +export { + l as default +}; diff --git a/dist/index.es255.js b/dist/index.es255.js new file mode 100644 index 00000000..54917a13 --- /dev/null +++ b/dist/index.es255.js @@ -0,0 +1,20 @@ +import * as f from "react"; +import { useRef as o } from "react"; +import { transitionEndName as n, animationEndName as c } from "./index.es208.js"; +const v = function(e) { + var t = o(); + function i(r) { + r && (r.removeEventListener(n, e), r.removeEventListener(c, e)); + } + function u(r) { + t.current && t.current !== r && i(t.current), r && r !== t.current && (r.addEventListener(n, e), r.addEventListener(c, e), t.current = r); + } + return f.useEffect(function() { + return function() { + i(t.current); + }; + }, []), [u, i]; +}; +export { + v as default +}; diff --git a/dist/index.es256.js b/dist/index.es256.js new file mode 100644 index 00000000..e31302b4 --- /dev/null +++ b/dist/index.es256.js @@ -0,0 +1,6 @@ +import o from "./index.es162.js"; +import { useLayoutEffect as e, useEffect as f } from "react"; +var a = o() ? e : f; +export { + a as default +}; diff --git a/dist/index.es257.js b/dist/index.es257.js new file mode 100644 index 00000000..7d00c3af --- /dev/null +++ b/dist/index.es257.js @@ -0,0 +1,28 @@ +import c from "./index.es213.js"; +import * as f from "react"; +const m = function() { + var e = f.useRef(null); + function n() { + c.cancel(e.current); + } + function r(t) { + var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2; + n(); + var a = c(function() { + u <= 1 ? t({ + isCanceled: function() { + return a !== e.current; + } + }) : r(t, u - 1); + }); + e.current = a; + } + return f.useEffect(function() { + return function() { + n(); + }; + }, []), [r, n]; +}; +export { + m as default +}; diff --git a/dist/index.es258.js b/dist/index.es258.js new file mode 100644 index 00000000..699bdeca --- /dev/null +++ b/dist/index.es258.js @@ -0,0 +1,8 @@ +import { warningOnce as a } from "./index.es96.js"; +function o(r, n) { + var t = n.path, c = n.parentSelectors; + a(!1, "[Ant Design CSS-in-JS] ".concat(t ? "Error in ".concat(t, ": ") : "").concat(r).concat(c.length ? " Selector: ".concat(c.join(" | ")) : "")); +} +export { + o as lintWarning +}; diff --git a/dist/index.es259.js b/dist/index.es259.js new file mode 100644 index 00000000..6e33e1e5 --- /dev/null +++ b/dist/index.es259.js @@ -0,0 +1,68 @@ +import { rgbToRgb as A, hsvToRgb as F, hslToRgb as R, convertHexToDecimal as p, parseIntFromHex as n } from "./index.es260.js"; +import { names as S } from "./index.es261.js"; +import { convertToPercentage as x, boundAlpha as E } from "./index.es262.js"; +function d(a) { + var t = { r: 0, g: 0, b: 0 }, e = 1, h = null, v = null, u = null, g = !1, i = !1; + return typeof a == "string" && (a = I(a)), typeof a == "object" && (f(a.r) && f(a.g) && f(a.b) ? (t = A(a.r, a.g, a.b), g = !0, i = String(a.r).substr(-1) === "%" ? "prgb" : "rgb") : f(a.h) && f(a.s) && f(a.v) ? (h = x(a.s), v = x(a.v), t = F(a.h, h, v), g = !0, i = "hsv") : f(a.h) && f(a.s) && f(a.l) && (h = x(a.s), u = x(a.l), t = R(a.h, h, u), g = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(a, "a") && (e = a.a)), e = E(e), { + ok: g, + format: a.format || i, + r: Math.min(255, Math.max(t.r, 0)), + g: Math.min(255, Math.max(t.g, 0)), + b: Math.min(255, Math.max(t.b, 0)), + a: e + }; +} +var T = "[-\\+]?\\d+%?", M = "[-\\+]?\\d*\\.\\d+%?", s = "(?:".concat(M, ")|(?:").concat(T, ")"), m = "[\\s|\\(]+(".concat(s, ")[,|\\s]+(").concat(s, ")[,|\\s]+(").concat(s, ")\\s*\\)?"), b = "[\\s|\\(]+(".concat(s, ")[,|\\s]+(").concat(s, ")[,|\\s]+(").concat(s, ")[,|\\s]+(").concat(s, ")\\s*\\)?"), r = { + CSS_UNIT: new RegExp(s), + rgb: new RegExp("rgb" + m), + rgba: new RegExp("rgba" + b), + hsl: new RegExp("hsl" + m), + hsla: new RegExp("hsla" + b), + hsv: new RegExp("hsv" + m), + hsva: new RegExp("hsva" + b), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ +}; +function I(a) { + if (a = a.trim().toLowerCase(), a.length === 0) + return !1; + var t = !1; + if (S[a]) + a = S[a], t = !0; + else if (a === "transparent") + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + var e = r.rgb.exec(a); + return e ? { r: e[1], g: e[2], b: e[3] } : (e = r.rgba.exec(a), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = r.hsl.exec(a), e ? { h: e[1], s: e[2], l: e[3] } : (e = r.hsla.exec(a), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = r.hsv.exec(a), e ? { h: e[1], s: e[2], v: e[3] } : (e = r.hsva.exec(a), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = r.hex8.exec(a), e ? { + r: n(e[1]), + g: n(e[2]), + b: n(e[3]), + a: p(e[4]), + format: t ? "name" : "hex8" + } : (e = r.hex6.exec(a), e ? { + r: n(e[1]), + g: n(e[2]), + b: n(e[3]), + format: t ? "name" : "hex" + } : (e = r.hex4.exec(a), e ? { + r: n(e[1] + e[1]), + g: n(e[2] + e[2]), + b: n(e[3] + e[3]), + a: p(e[4] + e[4]), + format: t ? "name" : "hex8" + } : (e = r.hex3.exec(a), e ? { + r: n(e[1] + e[1]), + g: n(e[2] + e[2]), + b: n(e[3] + e[3]), + format: t ? "name" : "hex" + } : !1))))))))); +} +function f(a) { + return !!r.CSS_UNIT.exec(String(a)); +} +export { + d as inputToRGB, + f as isValidCSSUnit, + I as stringInputToObject +}; diff --git a/dist/index.es26.js b/dist/index.es26.js index 3d17f3ed..0b7f7505 100644 --- a/dist/index.es26.js +++ b/dist/index.es26.js @@ -1,86 +1,34 @@ -import * as r from "react"; -import { Slot as d } from "@radix-ui/react-slot"; -import { FormProvider as f, useFormContext as u, useFormState as F, Controller as x } from "react-hook-form"; -import { cn as a } from "./index.es54.js"; -import { Label as I } from "./index.es30.js"; -const v = f, c = r.createContext({}), E = ({ - ...e -}) => /* @__PURE__ */ r.createElement(c.Provider, { value: { name: e.name } }, /* @__PURE__ */ r.createElement(x, { ...e })), s = () => { - const e = r.useContext(c), t = r.useContext(l), { getFieldState: o } = u(), m = F({ name: e.name }), n = o(e.name, m); - if (!e) - throw new Error("useFormField should be used within "); - const { id: i } = t; - return { - id: i, - name: e.name, - formItemId: `${i}-form-item`, - formDescriptionId: `${i}-form-item-description`, - formMessageId: `${i}-form-item-message`, - ...n - }; -}, l = r.createContext({}); -function S({ className: e, ...t }) { - const o = r.useId(); - return /* @__PURE__ */ r.createElement(l.Provider, { value: { id: o } }, /* @__PURE__ */ r.createElement("div", { "data-slot": "form-item", className: a("lib:grid lib:gap-2", e), ...t })); +import { j as o } from "./index.es64.js"; +import * as r from "@radix-ui/react-hover-card"; +import { cn as i } from "./index.es65.js"; +function m({ ...t }) { + return /* @__PURE__ */ o.jsx(r.Root, { "data-slot": "hover-card", ...t }); } -function $({ className: e, ...t }) { - const { error: o, formItemId: m } = s(); - return /* @__PURE__ */ r.createElement( - I, - { - "data-slot": "form-label", - "data-error": !!o, - className: a("data-[error=true]:lib:text-destructive", e), - htmlFor: m, - ...t - } - ); +function l({ ...t }) { + return /* @__PURE__ */ o.jsx(r.Trigger, { "data-slot": "hover-card-trigger", ...t }); } -function h({ ...e }) { - const { error: t, formItemId: o, formDescriptionId: m, formMessageId: n } = s(); - return /* @__PURE__ */ r.createElement( - d, +function c({ + className: t, + align: e = "center", + sideOffset: a = 4, + ...d +}) { + return /* @__PURE__ */ o.jsx(r.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx( + r.Content, { - "data-slot": "form-control", - id: o, - "aria-describedby": t ? `${m} ${n}` : `${m}`, - "aria-invalid": !!t, - ...e + "data-slot": "hover-card-content", + align: e, + sideOffset: a, + className: i( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", + t + ), + ...d } - ); -} -function D({ className: e, ...t }) { - const { formDescriptionId: o } = s(); - return /* @__PURE__ */ r.createElement( - "p", - { - "data-slot": "form-description", - id: o, - className: a("lib:text-muted-foreground lib:text-sm", e), - ...t - } - ); -} -function M({ className: e, ...t }) { - const { error: o, formMessageId: m } = s(), n = o ? String(o?.message ?? "") : t.children; - return n ? /* @__PURE__ */ r.createElement( - "p", - { - "data-slot": "form-message", - id: m, - className: a("lib:text-destructive lib:text-sm", e), - ...t - }, - n - ) : null; + ) }); } export { - v as Form, - h as FormControl, - D as FormDescription, - E as FormField, - S as FormItem, - $ as FormLabel, - M as FormMessage, - s as useFormField + m as HoverCard, + c as HoverCardContent, + l as HoverCardTrigger }; diff --git a/dist/index.es260.js b/dist/index.es260.js new file mode 100644 index 00000000..6651f89e --- /dev/null +++ b/dist/index.es260.js @@ -0,0 +1,115 @@ +import { bound01 as u, pad2 as f } from "./index.es262.js"; +function T(t, a, r) { + return { + r: u(t, 255) * 255, + g: u(a, 255) * 255, + b: u(r, 255) * 255 + }; +} +function g(t, a, r) { + t = u(t, 255), a = u(a, 255), r = u(r, 255); + var i = Math.max(t, a, r), e = Math.min(t, a, r), n = 0, c = 0, o = (i + e) / 2; + if (i === e) + c = 0, n = 0; + else { + var h = i - e; + switch (c = o > 0.5 ? h / (2 - i - e) : h / (i + e), i) { + case t: + n = (a - r) / h + (a < r ? 6 : 0); + break; + case a: + n = (r - t) / h + 2; + break; + case r: + n = (t - a) / h + 4; + break; + } + n /= 6; + } + return { h: n, s: c, l: o }; +} +function s(t, a, r) { + return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (a - t) * (6 * r) : r < 1 / 2 ? a : r < 2 / 3 ? t + (a - t) * (2 / 3 - r) * 6 : t; +} +function d(t, a, r) { + var i, e, n; + if (t = u(t, 360), a = u(a, 100), r = u(r, 100), a === 0) + e = r, n = r, i = r; + else { + var c = r < 0.5 ? r * (1 + a) : r + a - r * a, o = 2 * r - c; + i = s(o, c, t + 1 / 3), e = s(o, c, t), n = s(o, c, t - 1 / 3); + } + return { r: i * 255, g: e * 255, b: n * 255 }; +} +function H(t, a, r) { + t = u(t, 255), a = u(a, 255), r = u(r, 255); + var i = Math.max(t, a, r), e = Math.min(t, a, r), n = 0, c = i, o = i - e, h = i === 0 ? 0 : o / i; + if (i === e) + n = 0; + else { + switch (i) { + case t: + n = (a - r) / o + (a < r ? 6 : 0); + break; + case a: + n = (r - t) / o + 2; + break; + case r: + n = (t - a) / o + 4; + break; + } + n /= 6; + } + return { h: n, s: h, v: c }; +} +function S(t, a, r) { + t = u(t, 360) * 6, a = u(a, 100), r = u(r, 100); + var i = Math.floor(t), e = t - i, n = r * (1 - a), c = r * (1 - e * a), o = r * (1 - (1 - e) * a), h = i % 6, v = [r, c, n, n, o, r][h], m = [o, r, r, c, n, n][h], x = [n, n, o, r, r, c][h]; + return { r: v * 255, g: m * 255, b: x * 255 }; +} +function W(t, a, r, i) { + var e = [ + f(Math.round(t).toString(16)), + f(Math.round(a).toString(16)), + f(Math.round(r).toString(16)) + ]; + return i && e[0].startsWith(e[0].charAt(1)) && e[1].startsWith(e[1].charAt(1)) && e[2].startsWith(e[2].charAt(1)) ? e[0].charAt(0) + e[1].charAt(0) + e[2].charAt(0) : e.join(""); +} +function k(t, a, r, i, e) { + var n = [ + f(Math.round(t).toString(16)), + f(Math.round(a).toString(16)), + f(Math.round(r).toString(16)), + f(A(i)) + ]; + return e && n[0].startsWith(n[0].charAt(1)) && n[1].startsWith(n[1].charAt(1)) && n[2].startsWith(n[2].charAt(1)) && n[3].startsWith(n[3].charAt(1)) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) + n[3].charAt(0) : n.join(""); +} +function A(t) { + return Math.round(parseFloat(t) * 255).toString(16); +} +function j(t) { + return M(t) / 255; +} +function M(t) { + return parseInt(t, 16); +} +function I(t) { + return { + r: t >> 16, + g: (t & 65280) >> 8, + b: t & 255 + }; +} +export { + A as convertDecimalToHex, + j as convertHexToDecimal, + d as hslToRgb, + S as hsvToRgb, + I as numberInputToObject, + M as parseIntFromHex, + W as rgbToHex, + g as rgbToHsl, + H as rgbToHsv, + T as rgbToRgb, + k as rgbaToHex +}; diff --git a/dist/index.es261.js b/dist/index.es261.js new file mode 100644 index 00000000..d82aca77 --- /dev/null +++ b/dist/index.es261.js @@ -0,0 +1,153 @@ +var e = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#00ffff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000000", + blanchedalmond: "#ffebcd", + blue: "#0000ff", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#00ffff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#ff00ff", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + goldenrod: "#daa520", + gold: "#ffd700", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavenderblush: "#fff0f5", + lavender: "#e6e6fa", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#778899", + lightslategrey: "#778899", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#00ff00", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#ff00ff", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#663399", + red: "#ff0000", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#ffffff", + whitesmoke: "#f5f5f5", + yellow: "#ffff00", + yellowgreen: "#9acd32" +}; +export { + e as names +}; diff --git a/dist/index.es262.js b/dist/index.es262.js new file mode 100644 index 00000000..8cdc1959 --- /dev/null +++ b/dist/index.es262.js @@ -0,0 +1,32 @@ +function o(t, r) { + i(t) && (t = "100%"); + var e = n(t); + return t = r === 360 ? t : Math.min(r, Math.max(0, parseFloat(t))), e && (t = parseInt(String(t * r), 10) / 100), Math.abs(t - r) < 1e-6 ? 1 : (r === 360 ? t = (t < 0 ? t % r + r : t % r) / parseFloat(String(r)) : t = t % r / parseFloat(String(r)), t); +} +function u(t) { + return Math.min(1, Math.max(0, t)); +} +function i(t) { + return typeof t == "string" && t.indexOf(".") !== -1 && parseFloat(t) === 1; +} +function n(t) { + return typeof t == "string" && t.indexOf("%") !== -1; +} +function f(t) { + return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t; +} +function s(t) { + return t <= 1 ? "".concat(Number(t) * 100, "%") : t; +} +function c(t) { + return t.length === 1 ? "0" + t : String(t); +} +export { + o as bound01, + f as boundAlpha, + u as clamp01, + s as convertToPercentage, + i as isOnePointZero, + n as isPercentage, + c as pad2 +}; diff --git a/dist/index.es263.js b/dist/index.es263.js new file mode 100644 index 00000000..06d4b973 --- /dev/null +++ b/dist/index.es263.js @@ -0,0 +1,35 @@ +const o = (a) => ({ + animationDuration: a, + animationFillMode: "both" +}), r = (a) => ({ + animationDuration: a, + animationFillMode: "both" +}), m = function(a, t, i, n) { + const e = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : ""; + return { + [` + ${e}${a}-enter, + ${e}${a}-appear + `]: Object.assign(Object.assign({}, o(n)), { + animationPlayState: "paused" + }), + [`${e}${a}-leave`]: Object.assign(Object.assign({}, r(n)), { + animationPlayState: "paused" + }), + [` + ${e}${a}-enter${a}-enter-active, + ${e}${a}-appear${a}-appear-active + `]: { + animationName: t, + animationPlayState: "running" + }, + [`${e}${a}-leave${a}-leave-active`]: { + animationName: i, + animationPlayState: "running", + pointerEvents: "none" + } + }; +}; +export { + m as initMotion +}; diff --git a/dist/index.es264.js b/dist/index.es264.js new file mode 100644 index 00000000..144865c7 --- /dev/null +++ b/dist/index.es264.js @@ -0,0 +1,4 @@ +import r from "./index.es265.js"; +export { + r as default +}; diff --git a/dist/index.es265.js b/dist/index.es265.js new file mode 100644 index 00000000..836b5df4 --- /dev/null +++ b/dist/index.es265.js @@ -0,0 +1,45 @@ +import c from "./index.es171.js"; +import * as o from "react"; +import { createPortal as q } from "react-dom"; +import i from "./index.es162.js"; +import { warningOnce as x } from "./index.es96.js"; +import { supportRef as I, useComposeRef as V } from "./index.es169.js"; +import z from "./index.es283.js"; +import A from "./index.es284.js"; +import M from "./index.es285.js"; +import { inlineMock as T } from "./index.es286.js"; +var D = function(e) { + return e === !1 ? !1 : !i() || !e ? null : typeof e == "string" ? document.querySelector(e) : typeof e == "function" ? e() : e; +}, U = /* @__PURE__ */ o.forwardRef(function(r, e) { + var t = r.open, E = r.autoLock, d = r.getContainer, P = r.debug, s = r.autoDestroy, m = s === void 0 ? !0 : s, n = r.children, h = o.useState(t), v = c(h, 2), C = v[0], g = v[1], p = C || t; + process.env.NODE_ENV !== "production" && x(i() || !t, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), o.useEffect(function() { + (m || t) && g(t); + }, [t, m]); + var k = o.useState(function() { + return D(d); + }), R = c(k, 2), a = R[0], N = R[1]; + o.useEffect(function() { + var l = D(d); + N(l ?? null); + }); + var $ = A(p && !a, P), S = c($, 2), y = S[0], w = S[1], u = a ?? y; + M(E && t && i() && (u === y || u === document.body)); + var _ = null; + if (n && I(n) && e) { + var O = n; + _ = O.ref; + } + var b = V(_, e); + if (!p || !i() || a === void 0) + return null; + var L = u === !1 || T(), f = n; + return e && (f = /* @__PURE__ */ o.cloneElement(n, { + ref: b + })), /* @__PURE__ */ o.createElement(z.Provider, { + value: w + }, L ? f : /* @__PURE__ */ q(f, u)); +}); +process.env.NODE_ENV !== "production" && (U.displayName = "Portal"); +export { + U as default +}; diff --git a/dist/index.es266.js b/dist/index.es266.js new file mode 100644 index 00000000..dde92541 --- /dev/null +++ b/dist/index.es266.js @@ -0,0 +1,4 @@ +var r = {}; +export { + r as __exports +}; diff --git a/dist/index.es267.js b/dist/index.es267.js new file mode 100644 index 00000000..f51b0164 --- /dev/null +++ b/dist/index.es267.js @@ -0,0 +1,4 @@ +var e = {}; +export { + e as __exports +}; diff --git a/dist/index.es268.js b/dist/index.es268.js new file mode 100644 index 00000000..d21f154e --- /dev/null +++ b/dist/index.es268.js @@ -0,0 +1,8 @@ +import a from "./index.es193.js"; +import l from "./index.es192.js"; +let o = /* @__PURE__ */ a(function t() { + l(this, t); +}); +export { + o as default +}; diff --git a/dist/index.es269.js b/dist/index.es269.js new file mode 100644 index 00000000..0d5b3045 --- /dev/null +++ b/dist/index.es269.js @@ -0,0 +1,9 @@ +const a = function() { + if (typeof navigator > "u" || typeof window > "u") + return !1; + var i = navigator.userAgent || navigator.vendor || window.opera; + return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i?.substr(0, 4)); +}; +export { + a as default +}; diff --git a/dist/index.es27.js b/dist/index.es27.js index 09c4c797..5b92b555 100644 --- a/dist/index.es27.js +++ b/dist/index.es27.js @@ -1,34 +1,55 @@ -import * as e from "react"; -import * as o from "@radix-ui/react-hover-card"; -import { cn as d } from "./index.es54.js"; -function l({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Root, { "data-slot": "hover-card", ...t }); +import { j as e } from "./index.es64.js"; +import * as u from "react"; +import { OTPInput as c, OTPInputContext as l } from "input-otp"; +import { MinusIcon as p } from "lucide-react"; +import { cn as a } from "./index.es65.js"; +function b({ + className: t, + containerClassName: r, + ...i +}) { + return /* @__PURE__ */ e.jsx( + c, + { + "data-slot": "input-otp", + containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", r), + className: a("disabled:cursor-not-allowed", t), + ...i + } + ); } -function s({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Trigger, { "data-slot": "hover-card-trigger", ...t }); +function g({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-group", className: a("flex items-center", t), ...r }); } -function m({ - className: t, - align: a = "center", - sideOffset: r = 4, +function j({ + index: t, + className: r, ...i }) { - return /* @__PURE__ */ e.createElement(o.Portal, { "data-slot": "hover-card-portal" }, /* @__PURE__ */ e.createElement( - o.Content, + const n = u.useContext(l), { char: o, hasFakeCaret: s, isActive: d } = n?.slots[t] ?? {}; + return /* @__PURE__ */ e.jsxs( + "div", { - "data-slot": "hover-card-content", - align: a, - sideOffset: r, - className: d( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden", - t + "data-slot": "input-otp-slot", + "data-active": d, + className: a( + "data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", + r ), - ...i + ...i, + children: [ + o, + s && /* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) }) + ] } - )); + ); +} +function h({ ...t }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ e.jsx(p, {}) }); } export { - l as HoverCard, - m as HoverCardContent, - s as HoverCardTrigger + b as InputOTP, + g as InputOTPGroup, + h as InputOTPSeparator, + j as InputOTPSlot }; diff --git a/dist/index.es270.js b/dist/index.es270.js new file mode 100644 index 00000000..514232fb --- /dev/null +++ b/dist/index.es270.js @@ -0,0 +1,14 @@ +function n(o) { + var t; + return o == null || (t = o.getRootNode) === null || t === void 0 ? void 0 : t.call(o); +} +function u(o) { + return n(o) instanceof ShadowRoot; +} +function d(o) { + return u(o) ? n(o) : null; +} +export { + d as getShadowRoot, + u as inShadow +}; diff --git a/dist/index.es271.js b/dist/index.es271.js new file mode 100644 index 00000000..23ff7a72 --- /dev/null +++ b/dist/index.es271.js @@ -0,0 +1,27 @@ +import d from "./index.es171.js"; +import f from "./index.es156.js"; +import * as n from "react"; +function I() { + var t = f({}, n); + return t.useId; +} +var s = 0, a = I(); +const _ = a ? ( + // Use React `useId` + function(e) { + var r = a(); + return e || (process.env.NODE_ENV === "test" ? "test-id" : r); + } +) : ( + // Use compatible of `useId` + function(e) { + var r = n.useState("ssr-id"), u = d(r, 2), o = u[0], i = u[1]; + return n.useEffect(function() { + var c = s; + s += 1, i("rc_unique_".concat(c)); + }, []), e || (process.env.NODE_ENV === "test" ? "test-id" : o); + } +); +export { + _ as default +}; diff --git a/dist/index.es272.js b/dist/index.es272.js new file mode 100644 index 00000000..cacf89bd --- /dev/null +++ b/dist/index.es272.js @@ -0,0 +1,93 @@ +import ae from "./index.es147.js"; +import h from "./index.es156.js"; +import le from "./index.es171.js"; +import fe from "./index.es121.js"; +import me from "./index.es141.js"; +import "./index.es142.js"; +import * as o from "react"; +import se from "./index.es146.js"; +import ce from "./index.es173.js"; +import { composeRef as ue } from "./index.es169.js"; +import de from "./index.es288.js"; +import ve from "./index.es289.js"; +import he from "./index.es290.js"; +var ge = /* @__PURE__ */ o.forwardRef(function(e, z) { + var g = e.popup, A = e.className, s = e.prefixCls, V = e.style, C = e.target, L = e.onVisibleChanged, n = e.open, _ = e.keepDom, I = e.fresh, H = e.onClick, O = e.mask, x = e.arrow, P = e.arrowPos, c = e.align, l = e.motion, W = e.maskMotion, N = e.forceRender, i = e.getPopupContainer, $ = e.autoDestroy, B = e.portal, R = e.zIndex, T = e.onMouseEnter, X = e.onMouseLeave, Y = e.onPointerEnter, j = e.onPointerDownCapture, U = e.ready, q = e.offsetX, F = e.offsetY, G = e.offsetR, J = e.offsetB, K = e.onAlign, k = e.onPrepare, f = e.stretch, u = e.targetWidth, d = e.targetHeight, Q = typeof g == "function" ? g() : g, Z = n || _, y = i?.length > 0, p = o.useState(!i || !y), S = le(p, 2), E = S[0], ee = S[1]; + if (ce(function() { + !E && y && C && ee(!0); + }, [E, y, C]), !E) + return null; + var r = "auto", t = { + left: "-1000vw", + top: "-1000vh", + right: r, + bottom: r + }; + if (U || !n) { + var w, M = c.points, D = c.dynamicInset || ((w = c._experimental) === null || w === void 0 ? void 0 : w.dynamicInset), te = D && M[0][1] === "r", oe = D && M[0][0] === "b"; + te ? (t.right = G, t.left = r) : (t.left = q, t.right = r), oe ? (t.bottom = J, t.top = r) : (t.top = F, t.bottom = r); + } + var a = {}; + return f && (f.includes("height") && d ? a.height = d : f.includes("minHeight") && d && (a.minHeight = d), f.includes("width") && u ? a.width = u : f.includes("minWidth") && u && (a.minWidth = u)), n || (a.pointerEvents = "none"), /* @__PURE__ */ o.createElement(B, { + open: N || Z, + getContainer: i && function() { + return i(C); + }, + autoDestroy: $ + }, /* @__PURE__ */ o.createElement(ve, { + prefixCls: s, + open: n, + zIndex: R, + mask: O, + motion: W + }), /* @__PURE__ */ o.createElement(se, { + onResize: K, + disabled: !n + }, function(ne) { + return /* @__PURE__ */ o.createElement(me, ae({ + motionAppear: !0, + motionEnter: !0, + motionLeave: !0, + removeOnLeave: !1, + forceRender: N, + leavedClassName: "".concat(s, "-hidden") + }, l, { + onAppearPrepare: k, + onEnterPrepare: k, + visible: n, + onVisibleChanged: function(v) { + var m; + l == null || (m = l.onVisibleChanged) === null || m === void 0 || m.call(l, v), L(v); + } + }), function(b, v) { + var m = b.className, ie = b.style, re = fe(s, m, A); + return /* @__PURE__ */ o.createElement("div", { + ref: ue(ne, z, v), + className: re, + style: h(h(h(h({ + "--arrow-x": "".concat(P.x || 0, "px"), + "--arrow-y": "".concat(P.y || 0, "px") + }, t), a), ie), {}, { + boxSizing: "border-box", + zIndex: R + }, V), + onMouseEnter: T, + onMouseLeave: X, + onPointerEnter: Y, + onClick: H, + onPointerDownCapture: j + }, x && /* @__PURE__ */ o.createElement(de, { + prefixCls: s, + arrow: x, + arrowPos: P, + align: c + }), /* @__PURE__ */ o.createElement(he, { + cache: !n && !I + }, Q)); + }); + })); +}); +process.env.NODE_ENV !== "production" && (ge.displayName = "Popup"); +export { + ge as default +}; diff --git a/dist/index.es273.js b/dist/index.es273.js new file mode 100644 index 00000000..6338209d --- /dev/null +++ b/dist/index.es273.js @@ -0,0 +1,14 @@ +import { supportRef as p, fillRef as c, useComposeRef as l, getNodeRef as s } from "./index.es169.js"; +import * as a from "react"; +var d = /* @__PURE__ */ a.forwardRef(function(f, t) { + var e = f.children, r = f.getTriggerDOMNode, i = p(e), g = a.useCallback(function(o) { + c(t, r ? r(o) : o); + }, [r]), n = l(g, s(e)); + return i ? /* @__PURE__ */ a.cloneElement(e, { + ref: n + }) : e; +}); +process.env.NODE_ENV !== "production" && (d.displayName = "TriggerWrapper"); +export { + d as default +}; diff --git a/dist/index.es274.js b/dist/index.es274.js new file mode 100644 index 00000000..4eb7da29 --- /dev/null +++ b/dist/index.es274.js @@ -0,0 +1,5 @@ +import * as t from "react"; +var e = /* @__PURE__ */ t.createContext(null); +export { + e as default +}; diff --git a/dist/index.es275.js b/dist/index.es275.js new file mode 100644 index 00000000..7dcd705c --- /dev/null +++ b/dist/index.es275.js @@ -0,0 +1,13 @@ +import * as i from "react"; +function n(e) { + return e ? Array.isArray(e) ? e : [e] : []; +} +function v(e, d, r, t) { + return i.useMemo(function() { + var o = n(r ?? d), f = n(t ?? d), u = new Set(o), a = new Set(f); + return e && (u.has("hover") && (u.delete("hover"), u.add("click")), a.has("hover") && (a.delete("hover"), a.add("click"))), [u, a]; + }, [e, d, r, t]); +} +export { + v as default +}; diff --git a/dist/index.es276.js b/dist/index.es276.js new file mode 100644 index 00000000..5c52eed0 --- /dev/null +++ b/dist/index.es276.js @@ -0,0 +1,187 @@ +import E from "./index.es156.js"; +import o from "./index.es171.js"; +import { isDOM as va } from "./index.es203.js"; +import aa from "./index.es248.js"; +import ya from "./index.es172.js"; +import Or from "./index.es173.js"; +import * as rr from "react"; +import { collectScroller as ha, getWin as da, getVisibleArea as nr, toNum as tr } from "./index.es279.js"; +function er(v) { + var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, w = "".concat(l), C = w.match(/^(.*)\%$/); + return C ? v * (parseFloat(C[1]) / 100) : parseFloat(w); +} +function pr(v, l) { + var w = l || [], C = o(w, 2), D = C[0], Q = C[1]; + return [er(v.width, D), er(v.height, Q)]; +} +function rv() { + var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + return [v[0], v[1]]; +} +function V(v, l) { + var w = l[0], C = l[1], D, Q; + return w === "t" ? Q = v.y : w === "b" ? Q = v.y + v.height : Q = v.y + v.height / 2, C === "l" ? D = v.x : C === "r" ? D = v.x + v.width : D = v.x + v.width / 2, { + x: D, + y: Q + }; +} +function j(v, l) { + var w = { + t: "b", + b: "t", + l: "r", + r: "l" + }; + return v.map(function(C, D) { + return D === l ? w[C] || "c" : C; + }).join(""); +} +function qa(v, l, w, C, D, Q, vr) { + var vv = rr.useState({ + ready: !1, + offsetX: 0, + offsetY: 0, + offsetR: 0, + offsetB: 0, + arrowX: 0, + arrowY: 0, + scaleX: 1, + scaleY: 1, + align: D[C] || {} + }), Ur = o(vv, 2), q = Ur[0], qr = Ur[1], ar = rr.useRef(0), zr = rr.useMemo(function() { + return l ? ha(l) : []; + }, [l]), F = rr.useRef({}), av = function() { + F.current = {}; + }; + v || av(); + var yv = ya(function() { + if (l && w && v) { + let G = function(Er, A) { + var p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Br, or = y.x + Er, Rr = y.y + A, Ov = or + S, nv = Rr + H, tv = Math.max(or, p.left), ev = Math.max(Rr, p.top), pv = Math.min(Ov, p.right), ra = Math.min(nv, p.bottom); + return Math.max(0, (pv - tv) * (ra - ev)); + }, Ar = function() { + u = y.y + M, t = u + H, m = y.x + d, e = m + S; + }; + var L, B, yr, hr, r = l, Jr = r.ownerDocument, dv = da(r), dr = dv.getComputedStyle(r), Mv = dr.width, wv = dr.height, lv = dr.position, Cv = r.style.left, Fv = r.style.top, Dv = r.style.right, Uv = r.style.bottom, qv = r.style.overflow, T = E(E({}, D[C]), Q), k = Jr.createElement("div"); + (L = r.parentElement) === null || L === void 0 || L.appendChild(k), k.style.left = "".concat(r.offsetLeft, "px"), k.style.top = "".concat(r.offsetTop, "px"), k.style.position = lv, k.style.height = "".concat(r.offsetHeight, "px"), k.style.width = "".concat(r.offsetWidth, "px"), r.style.left = "0", r.style.top = "0", r.style.right = "auto", r.style.bottom = "auto", r.style.overflow = "hidden"; + var h; + if (Array.isArray(w)) + h = { + x: w[0], + y: w[1], + width: 0, + height: 0 + }; + else { + var Mr, wr, z = w.getBoundingClientRect(); + z.x = (Mr = z.x) !== null && Mr !== void 0 ? Mr : z.left, z.y = (wr = z.y) !== null && wr !== void 0 ? wr : z.top, h = { + x: z.x, + y: z.y, + width: z.width, + height: z.height + }; + } + var y = r.getBoundingClientRect(); + y.x = (B = y.x) !== null && B !== void 0 ? B : y.left, y.y = (yr = y.y) !== null && yr !== void 0 ? yr : y.top; + var W = Jr.documentElement, zv = W.clientWidth, Gv = W.clientHeight, Jv = W.scrollWidth, Kv = W.scrollHeight, Kr = W.scrollTop, Qr = W.scrollLeft, H = y.height, S = y.width, I = h.height, i = h.width, Qv = { + left: 0, + top: 0, + right: zv, + bottom: Gv + }, Zv = { + left: -Qr, + top: -Kr, + right: Jv - Qr, + bottom: Kv - Kr + }, s = T.htmlRegion, Zr = "visible", jr = "visibleFirst"; + s !== "scroll" && s !== jr && (s = Zr); + var P = s === jr, jv = nr(Zv, zr), a = nr(Qv, zr), Br = s === Zr ? a : jv, R = P ? a : Br; + r.style.left = "auto", r.style.top = "auto", r.style.right = "0", r.style.bottom = "0"; + var kr = r.getBoundingClientRect(); + r.style.left = Cv, r.style.top = Fv, r.style.right = Dv, r.style.bottom = Uv, r.style.overflow = qv, (hr = r.parentElement) === null || hr === void 0 || hr.removeChild(k); + var N = tr(Math.round(S / parseFloat(Mv) * 1e3) / 1e3), f = tr(Math.round(H / parseFloat(wv) * 1e3) / 1e3); + if (N === 0 || f === 0 || va(w) && !aa(w)) + return; + var Bv = T.offset, kv = T.targetOffset, bv = pr(y, Bv), br = o(bv, 2), J = br[0], K = br[1], Lv = pr(h, kv), Lr = o(Lv, 2), Tv = Lr[0], Wv = Lr[1]; + h.x -= Tv, h.y -= Wv; + var Hv = T.points || [], Tr = o(Hv, 2), Sv = Tr[0], Nv = Tr[1], b = rv(Nv), U = rv(Sv), Wr = V(h, b), Hr = V(y, U), $ = E({}, T), d = Wr.x - Hr.x + J, M = Wr.y - Hr.y + K, Z = G(d, M), O = G(d, M, a), Sr = V(h, ["t", "l"]), Nr = V(y, ["t", "l"]), fr = V(h, ["b", "r"]), $r = V(y, ["b", "r"]), n = T.overflow || {}, fv = n.adjustX, $v = n.adjustY, Vr = n.shiftX, Ir = n.shiftY, ir = function(A) { + return typeof A == "boolean" ? A : A >= 0; + }, u, t, m, e; + Ar(); + var sr = ir($v), Pr = U[0] === b[0]; + if (sr && U[0] === "t" && (t > R.bottom || F.current.bt)) { + var x = M; + Pr ? x -= H - I : x = Sr.y - $r.y - K; + var ur = G(d, x), Vv = G(d, x, a); + // Of course use larger one + ur > Z || ur === Z && (!P || // Choose recommend one + Vv >= O) ? (F.current.bt = !0, M = x, K = -K, $.points = [j(U, 0), j(b, 0)]) : F.current.bt = !1; + } + if (sr && U[0] === "b" && (u < R.top || F.current.tb)) { + var _ = M; + Pr ? _ += H - I : _ = fr.y - Nr.y - K; + var mr = G(d, _), Iv = G(d, _, a); + // Of course use larger one + mr > Z || mr === Z && (!P || // Choose recommend one + Iv >= O) ? (F.current.tb = !0, M = _, K = -K, $.points = [j(U, 0), j(b, 0)]) : F.current.tb = !1; + } + var xr = ir(fv), _r = U[1] === b[1]; + if (xr && U[1] === "l" && (e > R.right || F.current.rl)) { + var X = d; + _r ? X -= S - i : X = Sr.x - $r.x - J; + var Xr = G(X, M), iv = G(X, M, a); + // Of course use larger one + Xr > Z || Xr === Z && (!P || // Choose recommend one + iv >= O) ? (F.current.rl = !0, d = X, J = -J, $.points = [j(U, 1), j(b, 1)]) : F.current.rl = !1; + } + if (xr && U[1] === "r" && (m < R.left || F.current.lr)) { + var Y = d; + _r ? Y += S - i : Y = fr.x - Nr.x - J; + var Yr = G(Y, M), sv = G(Y, M, a); + // Of course use larger one + Yr > Z || Yr === Z && (!P || // Choose recommend one + sv >= O) ? (F.current.lr = !0, d = Y, J = -J, $.points = [j(U, 1), j(b, 1)]) : F.current.lr = !1; + } + Ar(); + var c = Vr === !0 ? 0 : Vr; + typeof c == "number" && (m < a.left && (d -= m - a.left - J, h.x + i < a.left + c && (d += h.x - a.left + i - c)), e > a.right && (d -= e - a.right - J, h.x > a.right - c && (d += h.x - a.right + c))); + var g = Ir === !0 ? 0 : Ir; + typeof g == "number" && (u < a.top && (M -= u - a.top - K, h.y + I < a.top + g && (M += h.y - a.top + I - g)), t > a.bottom && (M -= t - a.bottom - K, h.y > a.bottom - g && (M += h.y - a.bottom + g))); + var lr = y.x + d, Pv = lr + S, Cr = y.y + M, uv = Cr + H, cr = h.x, mv = cr + i, gr = h.y, xv = gr + I, _v = Math.max(lr, cr), Xv = Math.min(Pv, mv), Yv = (_v + Xv) / 2, cv = Yv - lr, gv = Math.max(Cr, gr), Av = Math.min(uv, xv), Ev = (gv + Av) / 2, ov = Ev - Cr; + vr?.(l, $); + var Fr = kr.right - y.x - (d + y.width), Dr = kr.bottom - y.y - (M + y.height); + N === 1 && (d = Math.round(d), Fr = Math.round(Fr)), f === 1 && (M = Math.round(M), Dr = Math.round(Dr)); + var Rv = { + ready: !0, + offsetX: d / N, + offsetY: M / f, + offsetR: Fr / N, + offsetB: Dr / f, + arrowX: cv / N, + arrowY: ov / f, + scaleX: N, + scaleY: f, + align: $ + }; + qr(Rv); + } + }), hv = function() { + ar.current += 1; + var B = ar.current; + Promise.resolve().then(function() { + ar.current === B && yv(); + }); + }, Gr = function() { + qr(function(B) { + return E(E({}, B), {}, { + ready: !1 + }); + }); + }; + return Or(Gr, [C]), Or(function() { + v || Gr(); + }, [v]), [q.ready, q.offsetX, q.offsetY, q.offsetR, q.offsetB, q.arrowX, q.arrowY, q.scaleX, q.scaleY, q.align, hv]; +} +export { + qa as default +}; diff --git a/dist/index.es277.js b/dist/index.es277.js new file mode 100644 index 00000000..e70c344d --- /dev/null +++ b/dist/index.es277.js @@ -0,0 +1,27 @@ +import s from "./index.es144.js"; +import d from "./index.es173.js"; +import { collectScroller as v, getWin as L } from "./index.es279.js"; +function z(c, e, t, a, u) { + d(function() { + if (c && e && t) { + let r = function() { + a(), u(); + }; + var l = e, f = t, m = v(l), E = v(f), o = L(f), i = new Set([o].concat(s(m), s(E))); + return i.forEach(function(n) { + n.addEventListener("scroll", r, { + passive: !0 + }); + }), o.addEventListener("resize", r, { + passive: !0 + }), a(), function() { + i.forEach(function(n) { + n.removeEventListener("scroll", r), o.removeEventListener("resize", r); + }); + }; + } + }, [c, e, t]); +} +export { + z as default +}; diff --git a/dist/index.es278.js b/dist/index.es278.js new file mode 100644 index 00000000..5bf0c40e --- /dev/null +++ b/dist/index.es278.js @@ -0,0 +1,35 @@ +import { getShadowRoot as V } from "./index.es270.js"; +import { warning as h } from "./index.es96.js"; +import * as m from "react"; +import { getWin as j } from "./index.es279.js"; +function A(c, s, e, v, a, L, D, l) { + var x = m.useRef(c); + x.current = c; + var i = m.useRef(!1); + m.useEffect(function() { + if (s && v && (!a || L)) { + var P = function() { + i.current = !1; + }, n = function(d) { + var u; + x.current && !D(((u = d.composedPath) === null || u === void 0 || (u = u.call(d)) === null || u === void 0 ? void 0 : u[0]) || d.target) && !i.current && l(!1); + }, r = j(v); + r.addEventListener("pointerdown", P, !0), r.addEventListener("mousedown", n, !0), r.addEventListener("contextmenu", n, !0); + var t = V(e); + if (t && (t.addEventListener("mousedown", n, !0), t.addEventListener("contextmenu", n, !0)), process.env.NODE_ENV !== "production") { + var f, o, p = e == null || (f = e.getRootNode) === null || f === void 0 ? void 0 : f.call(e), w = (o = v.getRootNode) === null || o === void 0 ? void 0 : o.call(v); + h(p === w, "trigger element and popup element should in same shadow root."); + } + return function() { + r.removeEventListener("pointerdown", P, !0), r.removeEventListener("mousedown", n, !0), r.removeEventListener("contextmenu", n, !0), t && (t.removeEventListener("mousedown", n, !0), t.removeEventListener("contextmenu", n, !0)); + }; + } + }, [s, e, v, a, L]); + function W() { + i.current = !0; + } + return W; +} +export { + A as default +}; diff --git a/dist/index.es279.js b/dist/index.es279.js new file mode 100644 index 00000000..75e31caa --- /dev/null +++ b/dist/index.es279.js @@ -0,0 +1,61 @@ +import X from "./index.es156.js"; +function Y() { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 ? arguments[2] : void 0; + return r ? t[0] === o[0] : t[0] === o[0] && t[1] === o[1]; +} +function q(t, o, r, e) { + for (var n = r.points, d = Object.keys(t), i = 0; i < d.length; i += 1) { + var a, l = d[i]; + if (Y((a = t[l]) === null || a === void 0 ? void 0 : a.points, n, e)) + return "".concat(o, "-placement-").concat(l); + } + return ""; +} +function D(t, o, r, e) { + return o || (r ? { + motionName: "".concat(t, "-").concat(r) + } : e ? { + motionName: e + } : null); +} +function T(t) { + return t.ownerDocument.defaultView; +} +function F(t) { + for (var o = [], r = t?.parentElement, e = ["hidden", "scroll", "clip", "auto"]; r; ) { + var n = T(r).getComputedStyle(r), d = n.overflowX, i = n.overflowY, a = n.overflow; + [d, i, a].some(function(l) { + return e.includes(l); + }) && o.push(r), r = r.parentElement; + } + return o; +} +function s(t) { + var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + return Number.isNaN(t) ? o : t; +} +function h(t) { + return s(parseFloat(t), 0); +} +function P(t, o) { + var r = X({}, t); + return (o || []).forEach(function(e) { + if (!(e instanceof HTMLBodyElement || e instanceof HTMLHtmlElement)) { + var n = T(e).getComputedStyle(e), d = n.overflow, i = n.overflowClipMargin, a = n.borderTopWidth, l = n.borderBottomWidth, y = n.borderLeftWidth, E = n.borderRightWidth, u = e.getBoundingClientRect(), m = e.offsetHeight, S = e.clientHeight, p = e.offsetWidth, x = e.clientWidth, W = h(a), b = h(l), M = h(y), w = h(E), v = s(Math.round(u.width / p * 1e3) / 1e3), f = s(Math.round(u.height / m * 1e3) / 1e3), C = (p - x - M - w) * v, A = (m - S - W - b) * f, B = W * f, V = b * f, H = M * v, O = w * v, c = 0, g = 0; + if (d === "clip") { + var N = h(i); + c = N * v, g = N * f; + } + var L = u.x + H - c, R = u.y + B - g, j = L + u.width + 2 * c - H - O - C, I = R + u.height + 2 * g - B - V - A; + r.left = Math.max(r.left, L), r.top = Math.max(r.top, R), r.right = Math.min(r.right, j), r.bottom = Math.min(r.bottom, I); + } + }), r; +} +export { + F as collectScroller, + q as getAlignPopupClassName, + D as getMotion, + P as getVisibleArea, + T as getWin, + s as toNum +}; diff --git a/dist/index.es28.js b/dist/index.es28.js index ae4add5f..9c25eeff 100644 --- a/dist/index.es28.js +++ b/dist/index.es28.js @@ -1,52 +1,21 @@ -import * as t from "react"; -import { OTPInput as s, OTPInputContext as d } from "input-otp"; -import { MinusIcon as u } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function v({ - className: e, - containerClassName: i, - ...r -}) { - return /* @__PURE__ */ t.createElement( - s, +import { j as t } from "./index.es64.js"; +import { cn as n } from "./index.es65.js"; +function a({ className: e, type: i, ...r }) { + return /* @__PURE__ */ t.jsx( + "input", { - "data-slot": "input-otp", - containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", i), - className: a("disabled:lib:cursor-not-allowed", e), - ...r - } - ); -} -function f({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement("div", { "data-slot": "input-otp-group", className: a("lib:flex lib:items-center", e), ...i }); -} -function x({ - index: e, - className: i, - ...r -}) { - const l = t.useContext(d), { char: n, hasFakeCaret: o, isActive: b } = l?.slots[e] ?? {}; - return /* @__PURE__ */ t.createElement( - "div", - { - "data-slot": "input-otp-slot", - "data-active": b, - className: a( - "data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]", - i + type: i, + "data-slot": "input", + className: n( + "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", + "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", + "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", + e ), ...r - }, - n, - o && /* @__PURE__ */ t.createElement("div", { className: "lib:pointer-events-none lib:absolute lib:inset-0 lib:flex lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement("div", { className: "lib:animate-caret-blink lib:bg-foreground lib:h-4 lib:w-px lib:duration-1000" })) + } ); } -function g({ ...e }) { - return /* @__PURE__ */ t.createElement("div", { "data-slot": "input-otp-separator", role: "separator", ...e }, /* @__PURE__ */ t.createElement(u, null)); -} export { - v as InputOTP, - f as InputOTPGroup, - g as InputOTPSeparator, - x as InputOTPSlot + a as Input }; diff --git a/dist/index.es280.js b/dist/index.es280.js new file mode 100644 index 00000000..f05a6267 --- /dev/null +++ b/dist/index.es280.js @@ -0,0 +1,10 @@ +var r = "comm", a = "rule", E = "decl", e = "@import", v = "@namespace", A = "@keyframes", m = "@layer"; +export { + r as COMMENT, + E as DECLARATION, + e as IMPORT, + A as KEYFRAMES, + m as LAYER, + v as NAMESPACE, + a as RULESET +}; diff --git a/dist/index.es281.js b/dist/index.es281.js new file mode 100644 index 00000000..1635a080 --- /dev/null +++ b/dist/index.es281.js @@ -0,0 +1,37 @@ +var e = Math.abs, u = String.fromCharCode; +function i(n) { + return n.trim(); +} +function o(n, r, t) { + return n.replace(r, t); +} +function c(n, r, t) { + return n.indexOf(r, t); +} +function f(n, r) { + return n.charCodeAt(r) | 0; +} +function a(n, r, t) { + return n.slice(r, t); +} +function s(n) { + return n.length; +} +function h(n) { + return n.length; +} +function p(n, r) { + return r.push(n), n; +} +export { + e as abs, + p as append, + f as charat, + u as from, + c as indexof, + o as replace, + h as sizeof, + s as strlen, + a as substr, + i as trim +}; diff --git a/dist/index.es282.js b/dist/index.es282.js new file mode 100644 index 00000000..58ce5e7d --- /dev/null +++ b/dist/index.es282.js @@ -0,0 +1,137 @@ +import { strlen as x, charat as h, trim as j, from as p, substr as q } from "./index.es281.js"; +var s = 1, t = 1, m = 0, n = 0, r = 0, i = ""; +function B(e, c, b, k, v, w, d, g) { + return { value: e, root: c, parent: b, type: k, props: v, children: w, line: s, column: t, length: d, return: "", siblings: g }; +} +function C() { + return r; +} +function D() { + return r = n > 0 ? h(i, --n) : 0, t--, r === 10 && (t = 1, s--), r; +} +function a() { + return r = n < m ? h(i, n++) : 0, t++, r === 10 && (t = 1, s++), r; +} +function u() { + return h(i, n); +} +function z() { + return n; +} +function o(e, c) { + return q(i, e, c); +} +function f(e) { + switch (e) { + // \0 \t \n \r \s whitespace token + case 0: + case 9: + case 10: + case 13: + case 32: + return 5; + // ! + , / > @ ~ isolate token + case 33: + case 43: + case 44: + case 47: + case 62: + case 64: + case 126: + // ; { } breakpoint token + case 59: + case 123: + case 125: + return 4; + // : accompanied token + case 58: + return 3; + // " ' ( [ opening delimit token + case 34: + case 39: + case 40: + case 91: + return 2; + // ) ] closing delimit token + case 41: + case 93: + return 1; + } + return 0; +} +function E(e) { + return s = t = 1, m = x(i = e), n = 0, []; +} +function F(e) { + return i = "", e; +} +function G(e) { + return j(o(n - 1, l(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); +} +function H(e) { + for (; (r = u()) && r < 33; ) + a(); + return f(e) > 2 || f(r) > 3 ? "" : " "; +} +function I(e, c) { + for (; --c && a() && !(r < 48 || r > 102 || r > 57 && r < 65 || r > 70 && r < 97); ) + ; + return o(e, z() + (c < 6 && u() == 32 && a() == 32)); +} +function l(e) { + for (; a(); ) + switch (r) { + // ] ) " ' + case e: + return n; + // " ' + case 34: + case 39: + e !== 34 && e !== 39 && l(r); + break; + // ( + case 40: + e === 41 && l(e); + break; + // \ + case 92: + a(); + break; + } + return n; +} +function J(e, c) { + for (; a() && e + r !== 57; ) + if (e + r === 84 && u() === 47) + break; + return "/*" + o(c, n - 1) + "*" + p(e === 47 ? e : a()); +} +function K(e) { + for (; !f(u()); ) + a(); + return o(e, n); +} +export { + E as alloc, + z as caret, + C as char, + r as character, + i as characters, + t as column, + J as commenter, + F as dealloc, + G as delimit, + l as delimiter, + I as escaping, + K as identifier, + m as length, + s as line, + a as next, + B as node, + u as peek, + n as position, + D as prev, + o as slice, + f as token, + H as whitespace +}; diff --git a/dist/index.es283.js b/dist/index.es283.js new file mode 100644 index 00000000..4eb7da29 --- /dev/null +++ b/dist/index.es283.js @@ -0,0 +1,5 @@ +import * as t from "react"; +var e = /* @__PURE__ */ t.createContext(null); +export { + e as default +}; diff --git a/dist/index.es284.js b/dist/index.es284.js new file mode 100644 index 00000000..ba23f239 --- /dev/null +++ b/dist/index.es284.js @@ -0,0 +1,37 @@ +import $ from "./index.es144.js"; +import s from "./index.es171.js"; +import * as r from "react"; +import d from "./index.es173.js"; +import h from "./index.es162.js"; +import y from "./index.es283.js"; +var p = []; +function T(o, f) { + var v = r.useState(function() { + if (!h()) + return null; + var e = document.createElement("div"); + return process.env.NODE_ENV !== "production" && f && e.setAttribute("data-debug", f), e; + }), E = s(v, 1), t = E[0], n = r.useRef(!1), u = r.useContext(y), _ = r.useState(p), i = s(_, 2), a = i[0], c = i[1], C = u || (n.current ? void 0 : function(e) { + c(function(R) { + var S = [e].concat($(R)); + return S; + }); + }); + function l() { + t.parentElement || document.body.appendChild(t), n.current = !0; + } + function m() { + var e; + (e = t.parentElement) === null || e === void 0 || e.removeChild(t), n.current = !1; + } + return d(function() { + return o ? u ? u(l) : l() : m(), m; + }, [o]), d(function() { + a.length && (a.forEach(function(e) { + return e(); + }), c(p)); + }, [a]), [t, C]; +} +export { + T as default +}; diff --git a/dist/index.es285.js b/dist/index.es285.js new file mode 100644 index 00000000..d697f918 --- /dev/null +++ b/dist/index.es285.js @@ -0,0 +1,29 @@ +import f from "./index.es171.js"; +import * as m from "react"; +import { updateCSS as d, removeCSS as r } from "./index.es163.js"; +import l from "./index.es173.js"; +import { getTargetScrollBarSize as s } from "./index.es287.js"; +import { isBodyOverflowing as S } from "./index.es291.js"; +var p = "rc-util-locker-".concat(Date.now()), e = 0; +function h(c) { + var o = !!c, a = m.useState(function() { + return e += 1, "".concat(p, "_").concat(e); + }), n = f(a, 1), t = n[0]; + l(function() { + if (o) { + var i = s(document.body).width, u = S(); + d(` +html body { + overflow-y: hidden; + `.concat(u ? "width: calc(100% - ".concat(i, "px);") : "", ` +}`), t); + } else + r(t); + return function() { + r(t); + }; + }, [o, t]); +} +export { + h as default +}; diff --git a/dist/index.es286.js b/dist/index.es286.js new file mode 100644 index 00000000..5a215671 --- /dev/null +++ b/dist/index.es286.js @@ -0,0 +1,8 @@ +var n = !1; +function i(e) { + return n; +} +export { + n as inline, + i as inlineMock +}; diff --git a/dist/index.es287.js b/dist/index.es287.js new file mode 100644 index 00000000..7012bc5c --- /dev/null +++ b/dist/index.es287.js @@ -0,0 +1,38 @@ +import { updateCSS as f, removeCSS as p } from "./index.es163.js"; +function g(t) { + var o = "rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)), r = document.createElement("div"); + r.id = o; + var e = r.style; + e.position = "absolute", e.left = "0", e.top = "0", e.width = "100px", e.height = "100px", e.overflow = "scroll"; + var a, i; + if (t) { + var c = getComputedStyle(t); + e.scrollbarColor = c.scrollbarColor, e.scrollbarWidth = c.scrollbarWidth; + var n = getComputedStyle(t, "::-webkit-scrollbar"), l = parseInt(n.width, 10), d = parseInt(n.height, 10); + try { + var h = l ? "width: ".concat(n.width, ";") : "", s = d ? "height: ".concat(n.height, ";") : ""; + f(` +#`.concat(o, `::-webkit-scrollbar { +`).concat(h, ` +`).concat(s, ` +}`), o); + } catch (v) { + console.error(v), a = l, i = d; + } + } + document.body.appendChild(r); + var u = t && a && !isNaN(a) ? a : r.offsetWidth - r.clientWidth, m = t && i && !isNaN(i) ? i : r.offsetHeight - r.clientHeight; + return document.body.removeChild(r), p(o), { + width: u, + height: m + }; +} +function C(t) { + return typeof document > "u" || !t || !(t instanceof Element) ? { + width: 0, + height: 0 + } : g(t); +} +export { + C as getTargetScrollBarSize +}; diff --git a/dist/index.es288.js b/dist/index.es288.js new file mode 100644 index 00000000..4662730f --- /dev/null +++ b/dist/index.es288.js @@ -0,0 +1,22 @@ +import _ from "./index.es121.js"; +import * as c from "react"; +function C(e) { + var m = e.prefixCls, a = e.align, w = e.arrow, o = e.arrowPos, s = w || {}, d = s.className, x = s.content, i = o.x, u = i === void 0 ? 0 : i, f = o.y, y = f === void 0 ? 0 : f, N = c.useRef(); + if (!a || !a.points) + return null; + var r = { + position: "absolute" + }; + if (a.autoArrow !== !1) { + var n = a.points[0], v = a.points[1], t = n[0], l = n[1], b = v[0], g = v[1]; + t === b || !["t", "b"].includes(t) ? r.top = y : t === "t" ? r.top = 0 : r.bottom = 0, l === g || !["l", "r"].includes(l) ? r.left = u : l === "l" ? r.left = 0 : r.right = 0; + } + return /* @__PURE__ */ c.createElement("div", { + ref: N, + className: _("".concat(m, "-arrow"), d), + style: r + }, x); +} +export { + C as default +}; diff --git a/dist/index.es289.js b/dist/index.es289.js new file mode 100644 index 00000000..1c44f941 --- /dev/null +++ b/dist/index.es289.js @@ -0,0 +1,24 @@ +import l from "./index.es147.js"; +import c from "./index.es121.js"; +import f from "./index.es141.js"; +import "./index.es142.js"; +import * as t from "react"; +function k(e) { + var a = e.prefixCls, m = e.open, n = e.zIndex, r = e.mask, o = e.motion; + return r ? /* @__PURE__ */ t.createElement(f, l({}, o, { + motionAppear: !0, + visible: m, + removeOnLeave: !0 + }), function(i) { + var s = i.className; + return /* @__PURE__ */ t.createElement("div", { + style: { + zIndex: n + }, + className: c("".concat(a, "-mask"), s) + }); + }) : null; +} +export { + k as default +}; diff --git a/dist/index.es29.js b/dist/index.es29.js index c920d943..060aa4e9 100644 --- a/dist/index.es29.js +++ b/dist/index.es29.js @@ -1,21 +1,19 @@ -import * as r from "react"; -import { cn as b } from "./index.es54.js"; -function n({ className: i, type: l, ...e }) { - return /* @__PURE__ */ r.createElement( - "input", +import { j as o } from "./index.es64.js"; +import * as a from "@radix-ui/react-label"; +import { cn as r } from "./index.es65.js"; +function s({ className: e, ...t }) { + return /* @__PURE__ */ o.jsx( + a.Root, { - type: l, - "data-slot": "input", - className: b( - "file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm", - "focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]", - "aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive", - i + "data-slot": "label", + className: r( + "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", + e ), - ...e + ...t } ); } export { - n as Input + s as Label }; diff --git a/dist/index.es290.js b/dist/index.es290.js new file mode 100644 index 00000000..ed305df4 --- /dev/null +++ b/dist/index.es290.js @@ -0,0 +1,11 @@ +import * as o from "react"; +var r = /* @__PURE__ */ o.memo(function(n) { + var e = n.children; + return e; +}, function(n, e) { + return e.cache; +}); +process.env.NODE_ENV !== "production" && (r.displayName = "PopupContent"); +export { + r as default +}; diff --git a/dist/index.es291.js b/dist/index.es291.js new file mode 100644 index 00000000..8a0789c5 --- /dev/null +++ b/dist/index.es291.js @@ -0,0 +1,6 @@ +function e() { + return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth; +} +export { + e as isBodyOverflowing +}; diff --git a/dist/index.es30.js b/dist/index.es30.js index 96252a22..794588b5 100644 --- a/dist/index.es30.js +++ b/dist/index.es30.js @@ -1,19 +1,213 @@ -import * as t from "react"; -import * as l from "@radix-ui/react-label"; -import { cn as a } from "./index.es54.js"; -function r({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - l.Root, - { - "data-slot": "label", - className: a( - "lib:flex lib:items-center lib:gap-2 lib:text-sm lib:leading-none lib:font-medium lib:select-none group-data-[disabled=true]:lib:pointer-events-none group-data-[disabled=true]:lib:opacity-50 peer-disabled:lib:cursor-not-allowed peer-disabled:lib:opacity-50", +import { j as t } from "./index.es64.js"; +import * as n from "@radix-ui/react-menubar"; +import { CheckIcon as i, CircleIcon as u, ChevronRightIcon as c } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function p({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Root, + { + "data-slot": "menubar", + className: o("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", e), + ...a + } + ); +} +function x({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Menu, { "data-slot": "menubar-menu", ...e }); +} +function g({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "menubar-group", ...e }); +} +function l({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "menubar-portal", ...e }); +} +function v({ ...e }) { + return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e }); +} +function h({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Trigger, + { + "data-slot": "menubar-trigger", + className: o( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", + e + ), + ...a + } + ); +} +function j({ + className: e, + align: a = "start", + alignOffset: r = -4, + sideOffset: s = 8, + ...d +}) { + return /* @__PURE__ */ t.jsx(l, { children: /* @__PURE__ */ t.jsx( + n.Content, + { + "data-slot": "menubar-content", + align: a, + alignOffset: r, + sideOffset: s, + className: o( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", + e + ), + ...d + } + ) }); +} +function M({ + className: e, + inset: a, + variant: r = "default", + ...s +}) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "menubar-item", + "data-inset": a, + "data-variant": r, + className: o( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...s + } + ); +} +function z({ + className: e, + children: a, + checked: r, + ...s +}) { + return /* @__PURE__ */ t.jsxs( + n.CheckboxItem, + { + "data-slot": "menubar-checkbox-item", + className: o( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + checked: r, + ...s, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-4" }) }) }), + a + ] + } + ); +} +function N({ className: e, children: a, ...r }) { + return /* @__PURE__ */ t.jsxs( + n.RadioItem, + { + "data-slot": "menubar-radio-item", + className: o( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...r, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(u, { className: "size-2 fill-current" }) }) }), + a + ] + } + ); +} +function I({ + className: e, + inset: a, + ...r +}) { + return /* @__PURE__ */ t.jsx( + n.Label, + { + "data-slot": "menubar-label", + "data-inset": a, + className: o("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e), + ...r + } + ); +} +function y({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Separator, + { + "data-slot": "menubar-separator", + className: o("bg-border -mx-1 my-1 h-px", e), + ...a + } + ); +} +function k({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "menubar-shortcut", + className: o("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...a + } + ); +} +function _({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "menubar-sub", ...e }); +} +function w({ + className: e, + inset: a, + children: r, + ...s +}) { + return /* @__PURE__ */ t.jsxs( + n.SubTrigger, + { + "data-slot": "menubar-sub-trigger", + "data-inset": a, + className: o( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", + e + ), + ...s, + children: [ + r, + /* @__PURE__ */ t.jsx(c, { className: "ml-auto h-4 w-4" }) + ] + } + ); +} +function C({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.SubContent, + { + "data-slot": "menubar-sub-content", + className: o( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e ), - ...i + ...a } ); } export { - r as Label + p as Menubar, + z as MenubarCheckboxItem, + j as MenubarContent, + g as MenubarGroup, + M as MenubarItem, + I as MenubarLabel, + x as MenubarMenu, + l as MenubarPortal, + v as MenubarRadioGroup, + N as MenubarRadioItem, + y as MenubarSeparator, + k as MenubarShortcut, + _ as MenubarSub, + C as MenubarSubContent, + w as MenubarSubTrigger, + h as MenubarTrigger }; diff --git a/dist/index.es31.js b/dist/index.es31.js index 6219219c..e55f1e81 100644 --- a/dist/index.es31.js +++ b/dist/index.es31.js @@ -1,210 +1,137 @@ -import * as t from "react"; -import * as a from "@radix-ui/react-menubar"; -import { CheckIcon as o, CircleIcon as s, ChevronRightIcon as d } from "lucide-react"; -import { cn as n } from "./index.es54.js"; -function f({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Root, +import { j as e } from "./index.es64.js"; +import * as n from "@radix-ui/react-navigation-menu"; +import { cva as s } from "class-variance-authority"; +import { ChevronDownIcon as u } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function f({ + className: t, + children: a, + viewport: i = !0, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + n.Root, { - "data-slot": "menubar", - className: n( - "lib:bg-background lib:flex lib:h-9 lib:items-center lib:gap-1 lib:rounded-md lib:border lib:p-1 lib:shadow-xs", - e - ), - ...i + "data-slot": "navigation-menu", + "data-viewport": i, + className: o("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t), + ...r, + children: [ + a, + i && /* @__PURE__ */ e.jsx(l, {}) + ] } ); } -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Menu, { "data-slot": "menubar-menu", ...e }); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Group, { "data-slot": "menubar-group", ...e }); -} -function u({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Portal, { "data-slot": "menubar-portal", ...e }); -} -function v({ ...e }) { - return /* @__PURE__ */ t.createElement(a.RadioGroup, { "data-slot": "menubar-radio-group", ...e }); -} -function x({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Trigger, +function p({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.List, { - "data-slot": "menubar-trigger", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:items-center lib:rounded-sm lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:outline-hidden lib:select-none", - e - ), - ...i + "data-slot": "navigation-menu-list", + className: o("group flex flex-1 list-none items-center justify-center gap-1", t), + ...a } ); } -function h({ - className: e, - align: i = "start", - alignOffset: l = -4, - sideOffset: r = 8, - ...b -}) { - return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement( - a.Content, - { - "data-slot": "menubar-content", - align: i, - alignOffset: l, - sideOffset: r, - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[12rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...b - } - )); +function x({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(n.Item, { "data-slot": "navigation-menu-item", className: o("relative", t), ...a }); } -function E({ - className: e, - inset: i, - variant: l = "default", - ...r +const d = s( + "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1" +); +function w({ + className: t, + children: a, + ...i }) { - return /* @__PURE__ */ t.createElement( - a.Item, + return /* @__PURE__ */ e.jsxs( + n.Trigger, { - "data-slot": "menubar-item", - "data-inset": i, - "data-variant": l, - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...r + "data-slot": "navigation-menu-trigger", + className: o(d(), "group", t), + ...i, + children: [ + a, + " ", + /* @__PURE__ */ e.jsx( + u, + { + className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180", + "aria-hidden": "true" + } + ) + ] } ); } -function M({ - className: e, - children: i, - checked: l, - ...r -}) { - return /* @__PURE__ */ t.createElement( - a.CheckboxItem, - { - "data-slot": "menubar-checkbox-item", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: l, - ...r - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(a.ItemIndicator, null, /* @__PURE__ */ t.createElement(o, { className: "lib:size-4" }))), - i - ); -} -function z({ className: e, children: i, ...l }) { - return /* @__PURE__ */ t.createElement( - a.RadioItem, +function b({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.Content, { - "data-slot": "menubar-radio-item", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e + "data-slot": "navigation-menu-content", + className: o( + "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", + "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", + t ), - ...l - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(a.ItemIndicator, null, /* @__PURE__ */ t.createElement(s, { className: "lib:size-2 lib:fill-current" }))), - i - ); -} -function N({ - className: e, - inset: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - a.Label, - { - "data-slot": "menubar-label", - "data-inset": i, - className: n("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", e), - ...l + ...a } ); } -function I({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Separator, +function l({ + className: t, + ...a +}) { + return /* @__PURE__ */ e.jsx("div", { className: o("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ e.jsx( + n.Viewport, { - "data-slot": "menubar-separator", - className: n("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "navigation-menu-viewport", + className: o( + "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", + t + ), + ...a } - ); + ) }); } -function y({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function h({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.Link, { - "data-slot": "menubar-shortcut", - className: n("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "navigation-menu-link", + className: o( + "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...a } ); } -function k({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Sub, { "data-slot": "menubar-sub", ...e }); -} -function _({ - className: e, - inset: i, - children: l, - ...r +function N({ + className: t, + ...a }) { - return /* @__PURE__ */ t.createElement( - a.SubTrigger, - { - "data-slot": "menubar-sub-trigger", - "data-inset": i, - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8", - e - ), - ...r - }, - l, - /* @__PURE__ */ t.createElement(d, { className: "lib:ml-auto lib:h-4 lib:w-4" }) - ); -} -function w({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.SubContent, + return /* @__PURE__ */ e.jsx( + n.Indicator, { - "data-slot": "menubar-sub-content", - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e + "data-slot": "navigation-menu-indicator", + className: o( + "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", + t ), - ...i + ...a, + children: /* @__PURE__ */ e.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }) } ); } export { - f as Menubar, - M as MenubarCheckboxItem, - h as MenubarContent, - g as MenubarGroup, - E as MenubarItem, - N as MenubarLabel, - p as MenubarMenu, - u as MenubarPortal, - v as MenubarRadioGroup, - z as MenubarRadioItem, - I as MenubarSeparator, - y as MenubarShortcut, - k as MenubarSub, - w as MenubarSubContent, - _ as MenubarSubTrigger, - x as MenubarTrigger + f as NavigationMenu, + b as NavigationMenuContent, + N as NavigationMenuIndicator, + x as NavigationMenuItem, + h as NavigationMenuLink, + p as NavigationMenuList, + w as NavigationMenuTrigger, + l as NavigationMenuViewport, + d as navigationMenuTriggerStyle }; diff --git a/dist/index.es32.js b/dist/index.es32.js index d5af797e..f59cf490 100644 --- a/dist/index.es32.js +++ b/dist/index.es32.js @@ -1,146 +1,94 @@ -import * as e from "react"; -import * as n from "@radix-ui/react-navigation-menu"; -import { cva as r } from "class-variance-authority"; -import { ChevronDownIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function g({ - className: i, - children: t, - viewport: o = !0, - ...l -}) { - return /* @__PURE__ */ e.createElement( - n.Root, +import { j as t } from "./index.es64.js"; +import { ChevronLeftIcon as r, ChevronRightIcon as l, MoreHorizontalIcon as c } from "lucide-react"; +import { cn as i } from "./index.es65.js"; +import { buttonVariants as p } from "./index.es13.js"; +function d({ className: a, ...n }) { + return /* @__PURE__ */ t.jsx( + "nav", { - "data-slot": "navigation-menu", - "data-viewport": o, - className: a( - "lib:group/navigation-menu lib:relative lib:flex lib:max-w-max lib:flex-1 lib:items-center lib:justify-center", - i - ), - ...l - }, - t, - o && /* @__PURE__ */ e.createElement(s, null) - ); -} -function v({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.List, - { - "data-slot": "navigation-menu-list", - className: a( - "lib:group lib:flex lib:flex-1 lib:list-none lib:items-center lib:justify-center lib:gap-1", - i - ), - ...t + role: "navigation", + "aria-label": "pagination", + "data-slot": "pagination", + className: i("mx-auto flex w-full justify-center", a), + ...n } ); } -function f({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Item, - { - "data-slot": "navigation-menu-item", - className: a("lib:relative", i), - ...t - } - ); +function f({ className: a, ...n }) { + return /* @__PURE__ */ t.jsx("ul", { "data-slot": "pagination-content", className: i("flex flex-row items-center gap-1", a), ...n }); } -const u = r( - "lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1" -); -function p({ - className: i, - children: t, - ...o -}) { - return /* @__PURE__ */ e.createElement( - n.Trigger, - { - "data-slot": "navigation-menu-trigger", - className: a(u(), "lib:group", i), - ...o - }, - t, - " ", - /* @__PURE__ */ e.createElement( - b, - { - className: "lib:relative lib:top-[1px] lib:ml-1 lib:size-3 lib:transition lib:duration-300 group-data-[state=open]:lib:rotate-180", - "aria-hidden": "true" - } - ) - ); +function j({ ...a }) { + return /* @__PURE__ */ t.jsx("li", { "data-slot": "pagination-item", ...a }); } -function w({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Content, +function e({ className: a, isActive: n, size: s = "icon", ...o }) { + return /* @__PURE__ */ t.jsx( + "a", { - "data-slot": "navigation-menu-content", - className: a( - "data-[motion^=from-]:lib:animate-in data-[motion^=to-]:lib:animate-out data-[motion^=from-]:lib:fade-in data-[motion^=to-]:lib:fade-out data-[motion=from-end]:lib:slide-in-from-right-52 data-[motion=from-start]:lib:slide-in-from-left-52 data-[motion=to-end]:lib:slide-out-to-right-52 data-[motion=to-start]:lib:slide-out-to-left-52 lib:top-0 lib:left-0 lib:w-full lib:p-2 lib:pr-2.5 md:lib:absolute md:lib:w-auto", - "lib:group-data-[viewport=false]/navigation-menu:bg-popover lib:group-data-[viewport=false]/navigation-menu:text-popover-foreground lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 lib:group-data-[viewport=false]/navigation-menu:top-full lib:group-data-[viewport=false]/navigation-menu:mt-1.5 lib:group-data-[viewport=false]/navigation-menu:overflow-hidden lib:group-data-[viewport=false]/navigation-menu:rounded-md lib:group-data-[viewport=false]/navigation-menu:border lib:group-data-[viewport=false]/navigation-menu:shadow lib:group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:lib:ring-0 **:data-[slot=navigation-menu-link]:focus:lib:outline-none", - i + "aria-current": n ? "page" : void 0, + "data-slot": "pagination-link", + "data-active": n, + className: i( + p({ + variant: n ? "outline" : "ghost", + size: s + }), + a ), - ...t + ...o } ); } -function s({ - className: i, - ...t -}) { - return /* @__PURE__ */ e.createElement("div", { className: a("lib:absolute lib:top-full lib:left-0 lib:isolate lib:z-50 lib:flex lib:justify-center") }, /* @__PURE__ */ e.createElement( - n.Viewport, +function h({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + e, { - "data-slot": "navigation-menu-viewport", - className: a( - "lib:origin-top-center lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-90 lib:relative lib:mt-1.5 lib:h-[var(--radix-navigation-menu-viewport-height)] lib:w-full lib:overflow-hidden lib:rounded-md lib:border lib:shadow md:lib:w-[var(--radix-navigation-menu-viewport-width)]", - i - ), - ...t + "aria-label": "Go to previous page", + size: "default", + className: i("gap-1 px-2.5 sm:pl-2.5", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx(r, {}), + /* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Previous" }) + ] } - )); + ); } -function x({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Link, +function N({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + e, { - "data-slot": "navigation-menu-link", - className: a( - "data-[active=true]:focus:lib:bg-accent data-[active=true]:hover:lib:bg-accent data-[active=true]:lib:bg-accent/50 data-[active=true]:lib:text-accent-foreground hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground focus-visible:lib:ring-ring/50 [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:flex lib:flex-col lib:gap-1 lib:rounded-sm lib:p-2 lib:text-sm lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 [&_svg:not([class*=size-])]:lib:size-4", - i - ), - ...t + "aria-label": "Go to next page", + size: "default", + className: i("gap-1 px-2.5 sm:pr-2.5", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Next" }), + /* @__PURE__ */ t.jsx(l, {}) + ] } ); } -function h({ - className: i, - ...t -}) { - return /* @__PURE__ */ e.createElement( - n.Indicator, +function P({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + "span", { - "data-slot": "navigation-menu-indicator", - className: a( - "data-[state=visible]:lib:animate-in data-[state=hidden]:lib:animate-out data-[state=hidden]:lib:fade-out data-[state=visible]:lib:fade-in lib:top-full lib:z-[1] lib:flex lib:h-1.5 lib:items-end lib:justify-center lib:overflow-hidden", - i - ), - ...t - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:bg-border lib:relative lib:top-[60%] lib:h-2 lib:w-2 lib:rotate-45 lib:rounded-tl-sm lib:shadow-md" }) + "aria-hidden": !0, + "data-slot": "pagination-ellipsis", + className: i("flex size-9 items-center justify-center", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx(c, { className: "size-4" }), + /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "More pages" }) + ] + } ); } export { - g as NavigationMenu, - w as NavigationMenuContent, - h as NavigationMenuIndicator, - f as NavigationMenuItem, - x as NavigationMenuLink, - v as NavigationMenuList, - p as NavigationMenuTrigger, - s as NavigationMenuViewport, - u as navigationMenuTriggerStyle + d as Pagination, + f as PaginationContent, + P as PaginationEllipsis, + j as PaginationItem, + e as PaginationLink, + N as PaginationNext, + h as PaginationPrevious }; diff --git a/dist/index.es33.js b/dist/index.es33.js index 241fa333..5dc68851 100644 --- a/dist/index.es33.js +++ b/dist/index.es33.js @@ -1,95 +1,38 @@ -import * as t from "react"; -import { ChevronLeftIcon as r, ChevronRightIcon as s, MoreHorizontalIcon as c } from "lucide-react"; -import { cn as n } from "./index.es54.js"; -import { buttonVariants as m } from "./index.es14.js"; -function g({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "nav", - { - role: "navigation", - "aria-label": "pagination", - "data-slot": "pagination", - className: n("lib:mx-auto lib:flex lib:w-full lib:justify-center", e), - ...a - } - ); -} -function f({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "ul", - { - "data-slot": "pagination-content", - className: n("lib:flex lib:flex-row lib:items-center lib:gap-1", e), - ...a - } - ); +import { j as t } from "./index.es64.js"; +import * as e from "@radix-ui/react-popover"; +import { cn as i } from "./index.es65.js"; +function p({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "popover", ...o }); } -function d({ ...e }) { - return /* @__PURE__ */ t.createElement("li", { "data-slot": "pagination-item", ...e }); +function m({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "popover-trigger", ...o }); } -function i({ className: e, isActive: a, size: l = "icon", ...o }) { - return /* @__PURE__ */ t.createElement( - "a", +function f({ + className: o, + align: r = "center", + sideOffset: a = 4, + ...n +}) { + return /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx( + e.Content, { - "aria-current": a ? "page" : void 0, - "data-slot": "pagination-link", - "data-active": a, - className: n( - m({ - variant: a ? "outline" : "ghost", - size: l - }), - e + "data-slot": "popover-content", + align: r, + sideOffset: a, + className: i( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", + o ), - ...o + ...n } - ); + ) }); } -function E({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - i, - { - "aria-label": "Go to previous page", - size: "default", - className: n("lib:gap-1 lib:px-2.5 sm:lib:pl-2.5", e), - ...a - }, - /* @__PURE__ */ t.createElement(r, null), - /* @__PURE__ */ t.createElement("span", { className: "lib:hidden sm:lib:block" }, "Previous") - ); -} -function N({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - i, - { - "aria-label": "Go to next page", - size: "default", - className: n("lib:gap-1 lib:px-2.5 sm:lib:pr-2.5", e), - ...a - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:hidden sm:lib:block" }, "Next"), - /* @__PURE__ */ t.createElement(s, null) - ); -} -function x({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "aria-hidden": !0, - "data-slot": "pagination-ellipsis", - className: n("lib:flex lib:size-9 lib:items-center lib:justify-center", e), - ...a - }, - /* @__PURE__ */ t.createElement(c, { className: "lib:size-4" }), - /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "More pages") - ); +function l({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Anchor, { "data-slot": "popover-anchor", ...o }); } export { - g as Pagination, - f as PaginationContent, - x as PaginationEllipsis, - d as PaginationItem, - i as PaginationLink, - N as PaginationNext, - E as PaginationPrevious + p as Popover, + l as PopoverAnchor, + f as PopoverContent, + m as PopoverTrigger }; diff --git a/dist/index.es34.js b/dist/index.es34.js index c0aef3ed..84ab4575 100644 --- a/dist/index.es34.js +++ b/dist/index.es34.js @@ -1,38 +1,24 @@ -import * as e from "react"; -import * as o from "@radix-ui/react-popover"; -import { cn as n } from "./index.es54.js"; -function d({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Root, { "data-slot": "popover", ...t }); -} -function p({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Trigger, { "data-slot": "popover-trigger", ...t }); -} -function s({ - className: t, - align: r = "center", - sideOffset: i = 4, - ...a -}) { - return /* @__PURE__ */ e.createElement(o.Portal, null, /* @__PURE__ */ e.createElement( - o.Content, +import { j as r } from "./index.es64.js"; +import * as o from "@radix-ui/react-progress"; +import { cn as l } from "./index.es65.js"; +function n({ className: s, value: t, ...a }) { + return /* @__PURE__ */ r.jsx( + o.Root, { - "data-slot": "popover-content", - align: r, - sideOffset: i, - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden", - t - ), - ...a + "data-slot": "progress", + className: l("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", s), + ...a, + children: /* @__PURE__ */ r.jsx( + o.Indicator, + { + "data-slot": "progress-indicator", + className: "bg-primary h-full w-full flex-1 transition-all", + style: { transform: `translateX(-${100 - (t || 0)}%)` } + } + ) } - )); -} -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Anchor, { "data-slot": "popover-anchor", ...t }); + ); } export { - d as Popover, - m as PopoverAnchor, - s as PopoverContent, - p as PopoverTrigger + n as Progress }; diff --git a/dist/index.es35.js b/dist/index.es35.js index 2319ec67..fb2d55c5 100644 --- a/dist/index.es35.js +++ b/dist/index.es35.js @@ -1,27 +1,32 @@ -import * as r from "react"; -import * as l from "@radix-ui/react-progress"; -import { cn as a } from "./index.es54.js"; -function s({ className: i, value: e, ...t }) { - return /* @__PURE__ */ r.createElement( - l.Root, +import { j as r } from "./index.es64.js"; +import * as a from "@radix-ui/react-radio-group"; +import { CircleIcon as e } from "lucide-react"; +import { cn as t } from "./index.es65.js"; +function l({ className: i, ...o }) { + return /* @__PURE__ */ r.jsx(a.Root, { "data-slot": "radio-group", className: t("grid gap-3", i), ...o }); +} +function u({ className: i, ...o }) { + return /* @__PURE__ */ r.jsx( + a.Item, { - "data-slot": "progress", - className: a( - "lib:bg-primary/20 lib:relative lib:h-2 lib:w-full lib:overflow-hidden lib:rounded-full", + "data-slot": "radio-group-item", + className: t( + "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", i ), - ...t - }, - /* @__PURE__ */ r.createElement( - l.Indicator, - { - "data-slot": "progress-indicator", - className: "lib:bg-primary lib:h-full lib:w-full lib:flex-1 lib:transition-all", - style: { transform: `translateX(-${100 - (e || 0)}%)` } - } - ) + ...o, + children: /* @__PURE__ */ r.jsx( + a.Indicator, + { + "data-slot": "radio-group-indicator", + className: "relative flex items-center justify-center", + children: /* @__PURE__ */ r.jsx(e, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) + } + ) + } ); } export { - s as Progress + l as RadioGroup, + u as RadioGroupItem }; diff --git a/dist/index.es36.js b/dist/index.es36.js index 68dbe9e2..cb69edb8 100644 --- a/dist/index.es36.js +++ b/dist/index.es36.js @@ -1,32 +1,40 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-radio-group"; -import { CircleIcon as a } from "lucide-react"; -import { cn as t } from "./index.es54.js"; -function s({ className: r, ...l }) { - return /* @__PURE__ */ i.createElement(e.Root, { "data-slot": "radio-group", className: t("lib:grid lib:gap-3", r), ...l }); +import { j as a } from "./index.es64.js"; +import { GripVerticalIcon as n } from "lucide-react"; +import * as t from "react-resizable-panels"; +import { cn as i } from "./index.es65.js"; +function d({ className: e, ...r }) { + return /* @__PURE__ */ a.jsx( + t.PanelGroup, + { + "data-slot": "resizable-panel-group", + className: i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), + ...r + } + ); +} +function f({ ...e }) { + return /* @__PURE__ */ a.jsx(t.Panel, { "data-slot": "resizable-panel", ...e }); } -function n({ className: r, ...l }) { - return /* @__PURE__ */ i.createElement( - e.Item, +function p({ + withHandle: e, + className: r, + ...l +}) { + return /* @__PURE__ */ a.jsx( + t.PanelResizeHandle, { - "data-slot": "radio-group-item", - className: t( - "lib:border-input lib:text-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:aspect-square lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", + "data-slot": "resizable-handle", + className: i( + "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", r ), - ...l - }, - /* @__PURE__ */ i.createElement( - e.Indicator, - { - "data-slot": "radio-group-indicator", - className: "lib:relative lib:flex lib:items-center lib:justify-center" - }, - /* @__PURE__ */ i.createElement(a, { className: "lib:fill-primary lib:absolute lib:top-1/2 lib:left-1/2 lib:size-2 lib:-translate-x-1/2 lib:-translate-y-1/2" }) - ) + ...l, + children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(n, { className: "size-2.5" }) }) + } ); } export { - s as RadioGroup, - n as RadioGroupItem + p as ResizableHandle, + f as ResizablePanel, + d as ResizablePanelGroup }; diff --git a/dist/index.es37.js b/dist/index.es37.js index 83804716..56eacb45 100644 --- a/dist/index.es37.js +++ b/dist/index.es37.js @@ -1,40 +1,48 @@ -import * as l from "react"; -import { GripVerticalIcon as n } from "lucide-react"; -import * as a from "react-resizable-panels"; -import { cn as t } from "./index.es54.js"; -function c({ className: e, ...i }) { - return /* @__PURE__ */ l.createElement( - a.PanelGroup, - { - "data-slot": "resizable-panel-group", - className: t("lib:flex lib:h-full lib:w-full data-[panel-group-direction=vertical]:lib:flex-col", e), - ...i - } - ); +import { j as r } from "./index.es64.js"; +import * as o from "@radix-ui/react-scroll-area"; +import { cn as s } from "./index.es65.js"; +function n({ className: e, children: l, ...a }) { + return /* @__PURE__ */ r.jsxs(o.Root, { "data-slot": "scroll-area", className: s("relative", e), ...a, children: [ + /* @__PURE__ */ r.jsx( + o.Viewport, + { + "data-slot": "scroll-area-viewport", + className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", + children: l + } + ), + /* @__PURE__ */ r.jsx(t, {}), + /* @__PURE__ */ r.jsx(o.Corner, {}) + ] }); } -function s({ ...e }) { - return /* @__PURE__ */ l.createElement(a.Panel, { "data-slot": "resizable-panel", ...e }); -} -function f({ - withHandle: e, - className: i, - ...r +function t({ + className: e, + orientation: l = "vertical", + ...a }) { - return /* @__PURE__ */ l.createElement( - a.PanelResizeHandle, + return /* @__PURE__ */ r.jsx( + o.ScrollAreaScrollbar, { - "data-slot": "resizable-handle", - className: t( - "lib:bg-border focus-visible:lib:ring-ring lib:relative lib:flex lib:w-px lib:items-center lib:justify-center after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-1 after:lib:-translate-x-1/2 focus-visible:lib:ring-1 focus-visible:lib:ring-offset-1 focus-visible:lib:outline-hidden data-[panel-group-direction=vertical]:lib:h-px data-[panel-group-direction=vertical]:lib:w-full data-[panel-group-direction=vertical]:after:lib:left-0 data-[panel-group-direction=vertical]:after:lib:h-1 data-[panel-group-direction=vertical]:after:lib:w-full data-[panel-group-direction=vertical]:after:lib:-translate-y-1/2 data-[panel-group-direction=vertical]:after:lib:translate-x-0 [&[data-panel-group-direction=vertical]>div]:lib:rotate-90", - i + "data-slot": "scroll-area-scrollbar", + orientation: l, + className: s( + "flex touch-none p-px transition-colors select-none", + l === "vertical" && "h-full w-2.5 border-l border-l-transparent", + l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", + e ), - ...r - }, - e && /* @__PURE__ */ l.createElement("div", { className: "lib:bg-border lib:z-10 lib:flex lib:h-4 lib:w-3 lib:items-center lib:justify-center lib:rounded-xs lib:border" }, /* @__PURE__ */ l.createElement(n, { className: "lib:size-2.5" })) + ...a, + children: /* @__PURE__ */ r.jsx( + o.ScrollAreaThumb, + { + "data-slot": "scroll-area-thumb", + className: "bg-border relative flex-1 rounded-full" + } + ) + } ); } export { - f as ResizableHandle, - s as ResizablePanel, - c as ResizablePanelGroup + n as ScrollArea, + t as ScrollBar }; diff --git a/dist/index.es38.js b/dist/index.es38.js index 051baa85..84a4f507 100644 --- a/dist/index.es38.js +++ b/dist/index.es38.js @@ -1,44 +1,144 @@ -import * as l from "react"; -import * as r from "@radix-ui/react-scroll-area"; -import { cn as a } from "./index.es54.js"; -function c({ className: i, children: e, ...o }) { - return /* @__PURE__ */ l.createElement(r.Root, { "data-slot": "scroll-area", className: a("lib:relative", i), ...o }, /* @__PURE__ */ l.createElement( - r.Viewport, +import { j as e } from "./index.es64.js"; +import * as a from "@radix-ui/react-select"; +import { CheckIcon as i, ChevronDownIcon as l, ChevronUpIcon as d } from "lucide-react"; +import { cn as r } from "./index.es65.js"; +function f({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "select", ...t }); +} +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Group, { "data-slot": "select-group", ...t }); +} +function v({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Value, { "data-slot": "select-value", ...t }); +} +function h({ + className: t, + size: s = "default", + children: o, + ...n +}) { + return /* @__PURE__ */ e.jsxs( + a.Trigger, { - "data-slot": "scroll-area-viewport", - className: "focus-visible:lib:ring-ring/50 lib:size-full lib:rounded-[inherit] lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1" - }, - e - ), /* @__PURE__ */ l.createElement(t, null), /* @__PURE__ */ l.createElement(r.Corner, null)); -} -function t({ - className: i, - orientation: e = "vertical", - ...o + "data-slot": "select-trigger", + "data-size": s, + className: r( + "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...n, + children: [ + o, + /* @__PURE__ */ e.jsx(a.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(l, { className: "size-4 opacity-50" }) }) + ] + } + ); +} +function b({ + className: t, + children: s, + position: o = "popper", + ...n }) { - return /* @__PURE__ */ l.createElement( - r.ScrollAreaScrollbar, + return /* @__PURE__ */ e.jsx(a.Portal, { children: /* @__PURE__ */ e.jsxs( + a.Content, { - "data-slot": "scroll-area-scrollbar", - orientation: e, - className: a( - "lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none", - e === "vertical" && "lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent", - e === "horizontal" && "lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent", - i + "data-slot": "select-content", + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", + o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", + t ), - ...o - }, - /* @__PURE__ */ l.createElement( - r.ScrollAreaThumb, - { - "data-slot": "scroll-area-thumb", - className: "lib:bg-border lib:relative lib:flex-1 lib:rounded-full" - } - ) + position: o, + ...n, + children: [ + /* @__PURE__ */ e.jsx(c, {}), + /* @__PURE__ */ e.jsx( + a.Viewport, + { + className: r( + "p-1", + o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1" + ), + children: s + } + ), + /* @__PURE__ */ e.jsx(u, {}) + ] + } + ) }); +} +function j({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.Label, + { + "data-slot": "select-label", + className: r("text-muted-foreground px-2 py-1.5 text-xs", t), + ...s + } + ); +} +function w({ className: t, children: s, ...o }) { + return /* @__PURE__ */ e.jsxs( + a.Item, + { + "data-slot": "select-item", + className: r( + "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", + t + ), + ...o, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(a.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }), + /* @__PURE__ */ e.jsx(a.ItemText, { children: s }) + ] + } + ); +} +function y({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.Separator, + { + "data-slot": "select-separator", + className: r("bg-border pointer-events-none -mx-1 my-1 h-px", t), + ...s + } + ); +} +function c({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.ScrollUpButton, + { + "data-slot": "select-scroll-up-button", + className: r("flex cursor-default items-center justify-center py-1", t), + ...s, + children: /* @__PURE__ */ e.jsx(d, { className: "size-4" }) + } + ); +} +function u({ + className: t, + ...s +}) { + return /* @__PURE__ */ e.jsx( + a.ScrollDownButton, + { + "data-slot": "select-scroll-down-button", + className: r("flex cursor-default items-center justify-center py-1", t), + ...s, + children: /* @__PURE__ */ e.jsx(l, { className: "size-4" }) + } ); } export { - c as ScrollArea, - t as ScrollBar + f as Select, + b as SelectContent, + g as SelectGroup, + w as SelectItem, + j as SelectLabel, + u as SelectScrollDownButton, + c as SelectScrollUpButton, + y as SelectSeparator, + h as SelectTrigger, + v as SelectValue }; diff --git a/dist/index.es39.js b/dist/index.es39.js index 6b567ac9..2931833d 100644 --- a/dist/index.es39.js +++ b/dist/index.es39.js @@ -1,138 +1,26 @@ -import * as e from "react"; -import * as l from "@radix-ui/react-select"; -import { CheckIcon as o, ChevronDownIcon as s, ChevronUpIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function p({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Root, { "data-slot": "select", ...t }); -} -function f({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Group, { "data-slot": "select-group", ...t }); -} -function g({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Value, { "data-slot": "select-value", ...t }); -} -function v({ +import { j as i } from "./index.es64.js"; +import * as n from "@radix-ui/react-separator"; +import { cn as e } from "./index.es65.js"; +function s({ className: t, - size: i = "default", - children: r, - ...n + orientation: o = "horizontal", + decorative: r = !0, + ...a }) { - return /* @__PURE__ */ e.createElement( - l.Trigger, + return /* @__PURE__ */ i.jsx( + n.Root, { - "data-slot": "select-trigger", - "data-size": i, - className: a( - "lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", + "data-slot": "separator", + decorative: r, + orientation: o, + className: e( + "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", t ), - ...n - }, - r, - /* @__PURE__ */ e.createElement(l.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(s, { className: "lib:size-4 lib:opacity-50" })) - ); -} -function x({ - className: t, - children: i, - position: r = "popper", - ...n -}) { - return /* @__PURE__ */ e.createElement(l.Portal, null, /* @__PURE__ */ e.createElement( - l.Content, - { - "data-slot": "select-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:relative lib:z-50 lib:max-h-(--radix-select-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-select-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:shadow-md", - r === "popper" && "data-[side=bottom]:lib:translate-y-1 data-[side=left]:lib:-translate-x-1 data-[side=right]:lib:translate-x-1 data-[side=top]:lib:-translate-y-1", - t - ), - position: r, - ...n - }, - /* @__PURE__ */ e.createElement(c, null), - /* @__PURE__ */ e.createElement( - l.Viewport, - { - className: a( - "lib:p-1", - r === "popper" && "lib:h-[var(--radix-select-trigger-height)] lib:w-full lib:min-w-[var(--radix-select-trigger-width)] lib:scroll-my-1" - ) - }, - i - ), - /* @__PURE__ */ e.createElement(d, null) - )); -} -function h({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.Label, - { - "data-slot": "select-label", - className: a("lib:text-muted-foreground lib:px-2 lib:py-1.5 lib:text-xs", t), - ...i + ...a } ); } -function E({ className: t, children: i, ...r }) { - return /* @__PURE__ */ e.createElement( - l.Item, - { - "data-slot": "select-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:w-full lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-8 lib:pl-2 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4 *:[span]:last:lib:flex *:[span]:last:lib:items-center *:[span]:last:lib:gap-2", - t - ), - ...r - }, - /* @__PURE__ */ e.createElement("span", { className: "lib:absolute lib:right-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ e.createElement(l.ItemIndicator, null, /* @__PURE__ */ e.createElement(o, { className: "lib:size-4" }))), - /* @__PURE__ */ e.createElement(l.ItemText, null, i) - ); -} -function w({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.Separator, - { - "data-slot": "select-separator", - className: a("lib:bg-border lib:pointer-events-none lib:-mx-1 lib:my-1 lib:h-px", t), - ...i - } - ); -} -function c({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.ScrollUpButton, - { - "data-slot": "select-scroll-up-button", - className: a("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1", t), - ...i - }, - /* @__PURE__ */ e.createElement(b, { className: "lib:size-4" }) - ); -} -function d({ - className: t, - ...i -}) { - return /* @__PURE__ */ e.createElement( - l.ScrollDownButton, - { - "data-slot": "select-scroll-down-button", - className: a("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1", t), - ...i - }, - /* @__PURE__ */ e.createElement(s, { className: "lib:size-4" }) - ); -} export { - p as Select, - x as SelectContent, - f as SelectGroup, - E as SelectItem, - h as SelectLabel, - d as SelectScrollDownButton, - c as SelectScrollUpButton, - w as SelectSeparator, - v as SelectTrigger, - g as SelectValue + s as Separator }; diff --git a/dist/index.es4.js b/dist/index.es4.js index 3c7861c6..e050bab5 100644 --- a/dist/index.es4.js +++ b/dist/index.es4.js @@ -1,26 +1,8 @@ -import h, { createContext as l, useContext as m, useState as c, useEffect as i } from "react"; -const a = l(null), u = () => { - const t = m(a); - if (!t) - throw new Error("useTheme must be used within a ThemeProvider"); - return t; -}, g = ({ defaultScheme: t, children: s }) => { - const [r, o] = c(null); - i(() => { - if (t) { - o(t); - return; - } - const e = localStorage.getItem("theme"); - e && ["light", "dark"].includes(e) ? o(e) : window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? (o("dark"), localStorage.setItem("theme", "dark")) : (o("light"), localStorage.setItem("theme", "light")); - }, []); - const n = () => { - const e = r === "light" ? "dark" : "light"; - o(e), localStorage.setItem("theme", e), window.dispatchEvent(new Event("storage")); - }; - return /* @__PURE__ */ h.createElement(a.Provider, { value: { theme: r, toggleTheme: n } }, s); -}; +import { j as o } from "./index.es64.js"; +import { ThemeProvider as m } from "next-themes"; +function s({ children: r, ...e }) { + return /* @__PURE__ */ o.jsx(m, { ...e, children: r }); +} export { - g as AppThemeProvider, - u as default + s as default }; diff --git a/dist/index.es40.js b/dist/index.es40.js index 75c1636d..6405b230 100644 --- a/dist/index.es40.js +++ b/dist/index.es40.js @@ -1,26 +1,97 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-separator"; -import { cn as l } from "./index.es54.js"; -function m({ +import { j as e } from "./index.es64.js"; +import * as a from "@radix-ui/react-dialog"; +import { XIcon as i } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function m({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t }); +} +function h({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Trigger, { "data-slot": "sheet-trigger", ...t }); +} +function p({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Close, { "data-slot": "sheet-close", ...t }); +} +function l({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Portal, { "data-slot": "sheet-portal", ...t }); +} +function d({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Overlay, + { + "data-slot": "sheet-overlay", + className: s( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t + ), + ...o + } + ); +} +function x({ className: t, - orientation: a = "horizontal", - decorative: o = !0, + children: o, + side: n = "right", ...r }) { - return /* @__PURE__ */ i.createElement( - e.Root, + return /* @__PURE__ */ e.jsxs(l, { children: [ + /* @__PURE__ */ e.jsx(d, {}), + /* @__PURE__ */ e.jsxs( + a.Content, + { + "data-slot": "sheet-content", + className: s( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", + n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", + n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", + n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", + n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", + t + ), + ...r, + children: [ + o, + /* @__PURE__ */ e.jsxs(a.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [ + /* @__PURE__ */ e.jsx(i, { className: "size-4" }), + /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" }) + ] }) + ] + } + ) + ] }); +} +function g({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "sheet-header", className: s("flex flex-col gap-1.5 p-4", t), ...o }); +} +function b({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "sheet-footer", className: s("mt-auto flex flex-col gap-2 p-4", t), ...o }); +} +function j({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Title, { - "data-slot": "separator-root", - decorative: o, - orientation: a, - className: l( - "lib:bg-border lib:shrink-0 data-[orientation=horizontal]:lib:h-px data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-px", - t - ), - ...r + "data-slot": "sheet-title", + className: s("text-foreground font-semibold", t), + ...o + } + ); +} +function y({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Description, + { + "data-slot": "sheet-description", + className: s("text-muted-foreground text-sm", t), + ...o } ); } export { - m as Separator + m as Sheet, + p as SheetClose, + x as SheetContent, + y as SheetDescription, + b as SheetFooter, + g as SheetHeader, + j as SheetTitle, + h as SheetTrigger }; diff --git a/dist/index.es41.js b/dist/index.es41.js index 99b995ef..ceace754 100644 --- a/dist/index.es41.js +++ b/dist/index.es41.js @@ -1,96 +1,558 @@ -import * as e from "react"; -import * as i from "@radix-ui/react-dialog"; -import { XIcon as s } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Root, { "data-slot": "sheet", ...t }); -} -function u({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Trigger, { "data-slot": "sheet-trigger", ...t }); -} -function f({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Close, { "data-slot": "sheet-close", ...t }); -} -function r({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Portal, { "data-slot": "sheet-portal", ...t }); -} -function b({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Overlay, - { - "data-slot": "sheet-overlay", - className: a( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t +import { j as t } from "./index.es64.js"; +import * as c from "react"; +import { Slot as g } from "@radix-ui/react-slot"; +import { cva as k } from "class-variance-authority"; +import { PanelLeftIcon as M } from "lucide-react"; +import { useIsMobile as C } from "./index.es66.js"; +import { cn as r } from "./index.es65.js"; +import { Button as z } from "./index.es13.js"; +import { Input as I } from "./index.es28.js"; +import { Separator as E } from "./index.es39.js"; +import { Sheet as D, SheetContent as T, SheetHeader as B, SheetTitle as A, SheetDescription as O } from "./index.es40.js"; +import { Skeleton as j } from "./index.es42.js"; +import { Tooltip as R, TooltipTrigger as H, TooltipContent as K, TooltipProvider as G } from "./index.es51.js"; +const L = "sidebar_state", $ = 60 * 60 * 24 * 7, P = "16rem", V = "18rem", W = "3rem", q = "b", N = c.createContext(null); +function w() { + const a = c.useContext(N); + if (!a) + throw new Error("useSidebar must be used within a SidebarProvider."); + return a; +} +function ne({ + defaultOpen: a = !0, + open: e, + onOpenChange: i, + className: s, + style: n, + children: d, + ...p +}) { + const l = C(), [f, u] = c.useState(!1), [x, y] = c.useState(a), m = e ?? x, h = c.useCallback( + (o) => { + const b = typeof o == "function" ? o(m) : o; + i ? i(b) : y(b), document.cookie = `${L}=${b}; path=/; max-age=${$}`; + }, + [i, m] + ), v = c.useCallback(() => l ? u((o) => !o) : h((o) => !o), [l, h, u]); + c.useEffect(() => { + const o = (b) => { + b.key === q && (b.metaKey || b.ctrlKey) && (b.preventDefault(), v()); + }; + return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o); + }, [v]); + const S = m ? "expanded" : "collapsed", _ = c.useMemo( + () => ({ + state: S, + open: m, + setOpen: h, + isMobile: l, + openMobile: f, + setOpenMobile: u, + toggleSidebar: v + }), + [S, m, h, l, f, u, v] + ); + return /* @__PURE__ */ t.jsx(N.Provider, { value: _, children: /* @__PURE__ */ t.jsx(G, { delayDuration: 0, children: /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-wrapper", + style: { + "--sidebar-width": P, + "--sidebar-width-icon": W, + ...n + }, + className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", s), + ...p, + children: d + } + ) }) }); +} +function oe({ + side: a = "left", + variant: e = "sidebar", + collapsible: i = "offcanvas", + className: s, + children: n, + ...d +}) { + const { isMobile: p, state: l, openMobile: f, setOpenMobile: u } = w(); + return i === "none" ? /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar", + className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", s), + ...d, + children: n + } + ) : p ? /* @__PURE__ */ t.jsx(D, { open: f, onOpenChange: u, ...d, children: /* @__PURE__ */ t.jsxs( + T, + { + "data-sidebar": "sidebar", + "data-slot": "sidebar", + "data-mobile": "true", + className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", + style: { + "--sidebar-width": V + }, + side: a, + children: [ + /* @__PURE__ */ t.jsxs(B, { className: "sr-only", children: [ + /* @__PURE__ */ t.jsx(A, { children: "Sidebar" }), + /* @__PURE__ */ t.jsx(O, { children: "Displays the mobile sidebar." }) + ] }), + /* @__PURE__ */ t.jsx("div", { className: "flex h-full w-full flex-col", children: n }) + ] + } + ) }) : /* @__PURE__ */ t.jsxs( + "div", + { + className: "group peer text-sidebar-foreground hidden md:block", + "data-state": l, + "data-collapsible": l === "collapsed" ? i : "", + "data-variant": e, + "data-side": a, + "data-slot": "sidebar", + children: [ + /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-gap", + className: r( + "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", + "group-data-[collapsible=offcanvas]:w-0", + "group-data-[side=right]:rotate-180", + e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)" + ) + } + ), + /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-container", + className: r( + "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", + a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", + // Adjust the padding for floating and inset variants. + e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", + s + ), + ...d, + children: /* @__PURE__ */ t.jsx( + "div", + { + "data-sidebar": "sidebar", + "data-slot": "sidebar-inner", + className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm", + children: n + } + ) + } + ) + ] + } + ); +} +function de({ className: a, onClick: e, ...i }) { + const { toggleSidebar: s } = w(); + return /* @__PURE__ */ t.jsxs( + z, + { + "data-sidebar": "trigger", + "data-slot": "sidebar-trigger", + variant: "ghost", + size: "icon", + className: r("size-7", a), + onClick: (n) => { + e?.(n), s(); + }, + ...i, + children: [ + /* @__PURE__ */ t.jsx(M, {}), + /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Toggle Sidebar" }) + ] + } + ); +} +function le({ className: a, ...e }) { + const { toggleSidebar: i } = w(); + return /* @__PURE__ */ t.jsx( + "button", + { + "data-sidebar": "rail", + "data-slot": "sidebar-rail", + "aria-label": "Toggle Sidebar", + tabIndex: -1, + onClick: i, + title: "Toggle Sidebar", + className: r( + "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", + "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", + "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", + "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", + "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", + "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", + a ), - ...l + ...e } ); } -function h({ - className: t, - children: l, - side: o = "right", - ...n +function ce({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "main", + { + "data-slot": "sidebar-inset", + className: r( + "bg-background relative flex w-full flex-1 flex-col", + "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", + a + ), + ...e + } + ); +} +function ue({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + I, + { + "data-slot": "sidebar-input", + "data-sidebar": "input", + className: r("bg-background h-8 w-full shadow-none", a), + ...e + } + ); +} +function be({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-header", + "data-sidebar": "header", + className: r("flex flex-col gap-2 p-2", a), + ...e + } + ); +} +function fe({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-footer", + "data-sidebar": "footer", + className: r("flex flex-col gap-2 p-2", a), + ...e + } + ); +} +function pe({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + E, + { + "data-slot": "sidebar-separator", + "data-sidebar": "separator", + className: r("bg-sidebar-border mx-2 w-auto", a), + ...e + } + ); +} +function me({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-content", + "data-sidebar": "content", + className: r( + "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", + a + ), + ...e + } + ); +} +function ge({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-group", + "data-sidebar": "group", + className: r("relative flex w-full min-w-0 flex-col p-2", a), + ...e + } + ); +} +function xe({ + className: a, + asChild: e = !1, + ...i }) { - return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(b, null), /* @__PURE__ */ e.createElement( - i.Content, - { - "data-slot": "sheet-content", - className: a( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out lib:fixed lib:z-50 lib:flex lib:flex-col lib:gap-4 lib:shadow-lg lib:transition lib:ease-in-out data-[state=closed]:lib:duration-300 data-[state=open]:lib:duration-500", - o === "right" && "data-[state=closed]:lib:slide-out-to-right data-[state=open]:lib:slide-in-from-right lib:inset-y-0 lib:right-0 lib:h-full lib:w-3/4 lib:border-l sm:lib:max-w-sm", - o === "left" && "data-[state=closed]:lib:slide-out-to-left data-[state=open]:lib:slide-in-from-left lib:inset-y-0 lib:left-0 lib:h-full lib:w-3/4 lib:border-r sm:lib:max-w-sm", - o === "top" && "data-[state=closed]:lib:slide-out-to-top data-[state=open]:lib:slide-in-from-top lib:inset-x-0 lib:top-0 lib:h-auto lib:border-b", - o === "bottom" && "data-[state=closed]:lib:slide-out-to-bottom data-[state=open]:lib:slide-in-from-bottom lib:inset-x-0 lib:bottom-0 lib:h-auto lib:border-t", - t + const s = e ? g : "div"; + return /* @__PURE__ */ t.jsx( + s, + { + "data-slot": "sidebar-group-label", + "data-sidebar": "group-label", + className: r( + "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", + a ), - ...n + ...i + } + ); +} +function he({ + className: a, + asChild: e = !1, + ...i +}) { + const s = e ? g : "button"; + return /* @__PURE__ */ t.jsx( + s, + { + "data-slot": "sidebar-group-action", + "data-sidebar": "group-action", + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + // Increases the hit area of the button on mobile. + "after:absolute after:-inset-2 md:after:hidden", + "group-data-[collapsible=icon]:hidden", + a + ), + ...i + } + ); +} +function ve({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-group-content", + "data-sidebar": "group-content", + className: r("w-full text-sm", a), + ...e + } + ); +} +function we({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "ul", + { + "data-slot": "sidebar-menu", + "data-sidebar": "menu", + className: r("flex w-full min-w-0 flex-col gap-1", a), + ...e + } + ); +} +function Se({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "li", + { + "data-slot": "sidebar-menu-item", + "data-sidebar": "menu-item", + className: r("group/menu-item relative", a), + ...e + } + ); +} +const F = k( + "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", + { + variants: { + variant: { + default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground", + outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]" + }, + size: { + default: "h-8 text-sm", + sm: "h-7 text-xs", + lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!" + } }, + defaultVariants: { + variant: "default", + size: "default" + } + } +); +function je({ + asChild: a = !1, + isActive: e = !1, + variant: i = "default", + size: s = "default", + tooltip: n, + className: d, + ...p +}) { + const l = a ? g : "button", { isMobile: f, state: u } = w(), x = /* @__PURE__ */ t.jsx( l, - /* @__PURE__ */ e.createElement(i.Close, { className: "lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-secondary lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none" }, /* @__PURE__ */ e.createElement(s, { className: "lib:size-4" }), /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Close")) - )); + { + "data-slot": "sidebar-menu-button", + "data-sidebar": "menu-button", + "data-size": s, + "data-active": e, + className: r(F({ variant: i, size: s }), d), + ...p + } + ); + return n ? (typeof n == "string" && (n = { + children: n + }), /* @__PURE__ */ t.jsxs(R, { children: [ + /* @__PURE__ */ t.jsx(H, { asChild: !0, children: x }), + /* @__PURE__ */ t.jsx(K, { side: "right", align: "center", hidden: u !== "collapsed" || f, ...n }) + ] })) : x; } -function p({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement("div", { "data-slot": "sheet-header", className: a("lib:flex lib:flex-col lib:gap-1.5 lib:p-4", t), ...l }); +function Ne({ + className: a, + asChild: e = !1, + showOnHover: i = !1, + ...s +}) { + const n = e ? g : "button"; + return /* @__PURE__ */ t.jsx( + n, + { + "data-slot": "sidebar-menu-action", + "data-sidebar": "menu-action", + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + // Increases the hit area of the button on mobile. + "after:absolute after:-inset-2 md:after:hidden", + "peer-data-[size=sm]/menu-button:top-1", + "peer-data-[size=default]/menu-button:top-1.5", + "peer-data-[size=lg]/menu-button:top-2.5", + "group-data-[collapsible=icon]:hidden", + i && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", + a + ), + ...s + } + ); } -function g({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( +function ye({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( "div", { - "data-slot": "sheet-footer", - className: a("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4", t), - ...l + "data-slot": "sidebar-menu-badge", + "data-sidebar": "menu-badge", + className: r( + "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", + "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", + "peer-data-[size=sm]/menu-button:top-1", + "peer-data-[size=default]/menu-button:top-1.5", + "peer-data-[size=lg]/menu-button:top-2.5", + "group-data-[collapsible=icon]:hidden", + a + ), + ...e } ); } -function x({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Title, +function _e({ + className: a, + showIcon: e = !1, + ...i +}) { + const s = c.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []); + return /* @__PURE__ */ t.jsxs( + "div", { - "data-slot": "sheet-title", - className: a("lib:text-foreground lib:font-semibold", t), - ...l + "data-slot": "sidebar-menu-skeleton", + "data-sidebar": "menu-skeleton", + className: r("flex h-8 items-center gap-2 rounded-md px-2", a), + ...i, + children: [ + e && /* @__PURE__ */ t.jsx(j, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }), + /* @__PURE__ */ t.jsx( + j, + { + className: "h-4 max-w-(--skeleton-width) flex-1", + "data-sidebar": "menu-skeleton-text", + style: { + "--skeleton-width": s + } + } + ) + ] } ); } -function E({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Description, +function ke({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "ul", { - "data-slot": "sheet-description", - className: a("lib:text-muted-foreground lib:text-sm", t), - ...l + "data-slot": "sidebar-menu-sub", + "data-sidebar": "menu-sub", + className: r( + "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", + "group-data-[collapsible=icon]:hidden", + a + ), + ...e + } + ); +} +function Me({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "li", + { + "data-slot": "sidebar-menu-sub-item", + "data-sidebar": "menu-sub-item", + className: r("group/menu-sub-item relative", a), + ...e + } + ); +} +function Ce({ + asChild: a = !1, + size: e = "md", + isActive: i = !1, + className: s, + ...n +}) { + const d = a ? g : "a"; + return /* @__PURE__ */ t.jsx( + d, + { + "data-slot": "sidebar-menu-sub-button", + "data-sidebar": "menu-sub-button", + "data-size": e, + "data-active": i, + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", + "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", + e === "sm" && "text-xs", + e === "md" && "text-sm", + "group-data-[collapsible=icon]:hidden", + s + ), + ...n } ); } export { - m as Sheet, - f as SheetClose, - h as SheetContent, - E as SheetDescription, - g as SheetFooter, - p as SheetHeader, - x as SheetTitle, - u as SheetTrigger + oe as Sidebar, + me as SidebarContent, + fe as SidebarFooter, + ge as SidebarGroup, + he as SidebarGroupAction, + ve as SidebarGroupContent, + xe as SidebarGroupLabel, + be as SidebarHeader, + ue as SidebarInput, + ce as SidebarInset, + we as SidebarMenu, + Ne as SidebarMenuAction, + ye as SidebarMenuBadge, + je as SidebarMenuButton, + Se as SidebarMenuItem, + _e as SidebarMenuSkeleton, + ke as SidebarMenuSub, + Ce as SidebarMenuSubButton, + Me as SidebarMenuSubItem, + ne as SidebarProvider, + le as SidebarRail, + pe as SidebarSeparator, + de as SidebarTrigger, + w as useSidebar }; diff --git a/dist/index.es42.js b/dist/index.es42.js index c3ca5ea2..8c58f2af 100644 --- a/dist/index.es42.js +++ b/dist/index.es42.js @@ -1,549 +1,8 @@ -import * as i from "react"; -import { Slot as p } from "@radix-ui/react-slot"; -import { cva as _ } from "class-variance-authority"; -import { PanelLeftIcon as k } from "lucide-react"; -import { useIsMobile as M } from "./index.es55.js"; -import { cn as t } from "./index.es54.js"; -import { Button as C } from "./index.es14.js"; -import { Input as z } from "./index.es29.js"; -import { Separator as I } from "./index.es40.js"; -import { Sheet as D, SheetContent as T, SheetHeader as B, SheetTitle as A, SheetDescription as O } from "./index.es41.js"; -import { Skeleton as E } from "./index.es43.js"; -import { Tooltip as R, TooltipTrigger as H, TooltipContent as K, TooltipProvider as G } from "./index.es52.js"; -const L = "sidebar_state", $ = 60 * 60 * 24 * 7, j = "16rem", P = "18rem", V = "3rem", W = "b", S = i.createContext(null); -function x() { - const a = i.useContext(S); - if (!a) - throw new Error("useSidebar must be used within a SidebarProvider."); - return a; -} -function le({ - defaultOpen: a = !0, - open: e, - onOpenChange: l, - className: r, - style: b, - children: o, - ...m -}) { - const s = M(), [u, d] = i.useState(!1), [g, N] = i.useState(a), f = e ?? g, h = i.useCallback( - (n) => { - const c = typeof n == "function" ? n(f) : n; - l ? l(c) : N(c), document.cookie = `${L}=${c}; path=/; max-age=${$}`; - }, - [l, f] - ), v = i.useCallback(() => s ? d((n) => !n) : h((n) => !n), [s, h, d]); - i.useEffect(() => { - const n = (c) => { - c.key === W && (c.metaKey || c.ctrlKey) && (c.preventDefault(), v()); - }; - return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n); - }, [v]); - const w = f ? "expanded" : "collapsed", y = i.useMemo( - () => ({ - state: w, - open: f, - setOpen: h, - isMobile: s, - openMobile: u, - setOpenMobile: d, - toggleSidebar: v - }), - [w, f, h, s, u, d, v] - ); - return /* @__PURE__ */ i.createElement(S.Provider, { value: y }, /* @__PURE__ */ i.createElement(G, { delayDuration: 0 }, /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-wrapper", - style: { - "--sidebar-width": j, - "--sidebar-width-icon": V, - ...b - }, - className: t( - "lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full", - r - ), - ...m - }, - o - ))); -} -function re({ - side: a = "left", - variant: e = "sidebar", - collapsible: l = "offcanvas", - className: r, - children: b, - ...o -}) { - const { isMobile: m, state: s, openMobile: u, setOpenMobile: d } = x(); - return l === "none" ? /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar", - className: t( - "lib:bg-sidebar lib:text-sidebar-foreground lib:flex lib:h-full lib:w-(--sidebar-width) lib:flex-col", - r - ), - ...o - }, - b - ) : m ? /* @__PURE__ */ i.createElement(D, { open: u, onOpenChange: d, ...o }, /* @__PURE__ */ i.createElement( - T, - { - "data-sidebar": "sidebar", - "data-slot": "sidebar", - "data-mobile": "true", - className: "lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden", - style: { - "--sidebar-width": P - }, - side: a - }, - /* @__PURE__ */ i.createElement(B, { className: "lib:sr-only" }, /* @__PURE__ */ i.createElement(A, null, "Sidebar"), /* @__PURE__ */ i.createElement(O, null, "Displays the mobile sidebar.")), - /* @__PURE__ */ i.createElement("div", { className: "lib:flex lib:h-full lib:w-full lib:flex-col" }, b) - )) : /* @__PURE__ */ i.createElement( - "div", - { - className: "lib:group lib:peer lib:text-sidebar-foreground lib:hidden md:lib:block", - "data-state": s, - "data-collapsible": s === "collapsed" ? l : "", - "data-variant": e, - "data-side": a, - "data-slot": "sidebar" - }, - /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-gap", - className: t( - "lib:relative lib:w-(--sidebar-width) lib:bg-transparent lib:transition-[width] lib:duration-200 lib:ease-linear", - "group-data-[collapsible=offcanvas]:lib:w-0", - "group-data-[side=right]:lib:rotate-180", - e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon)" - ) - } - ), - /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-container", - className: t( - "lib:fixed lib:inset-y-0 lib:z-10 lib:hidden lib:h-svh lib:w-(--sidebar-width) lib:transition-[left,right,width] lib:duration-200 lib:ease-linear md:lib:flex", - a === "left" ? "lib:left-0 group-data-[collapsible=offcanvas]:lib:left-[calc(var(--sidebar-width)*-1)]" : "lib:right-0 group-data-[collapsible=offcanvas]:lib:right-[calc(var(--sidebar-width)*-1)]", - // Adjust the padding for floating and inset variants. - e === "floating" || e === "inset" ? "lib:p-2 group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon) group-data-[side=left]:lib:border-r group-data-[side=right]:lib:border-l", - r - ), - ...o - }, - /* @__PURE__ */ i.createElement( - "div", - { - "data-sidebar": "sidebar", - "data-slot": "sidebar-inner", - className: "lib:bg-sidebar group-data-[variant=floating]:lib:border-sidebar-border lib:flex lib:h-full lib:w-full lib:flex-col group-data-[variant=floating]:lib:rounded-lg group-data-[variant=floating]:lib:border group-data-[variant=floating]:lib:shadow-sm" - }, - b - ) - ) - ); -} -function be({ className: a, onClick: e, ...l }) { - const { toggleSidebar: r } = x(); - return /* @__PURE__ */ i.createElement( - C, - { - "data-sidebar": "trigger", - "data-slot": "sidebar-trigger", - variant: "ghost", - size: "icon", - className: t("lib:size-7", a), - onClick: (b) => { - e?.(b), r(); - }, - ...l - }, - /* @__PURE__ */ i.createElement(k, null), - /* @__PURE__ */ i.createElement("span", { className: "lib:sr-only" }, "Toggle Sidebar") - ); -} -function ne({ className: a, ...e }) { - const { toggleSidebar: l } = x(); - return /* @__PURE__ */ i.createElement( - "button", - { - "data-sidebar": "rail", - "data-slot": "sidebar-rail", - "aria-label": "Toggle Sidebar", - tabIndex: -1, - onClick: l, - title: "Toggle Sidebar", - className: t( - "hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex", - "in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize", - "[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize", - "hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full", - "[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2", - "[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2", - a - ), - ...e - } - ); -} -function oe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "main", - { - "data-slot": "sidebar-inset", - className: t( - "lib:bg-background lib:relative lib:flex lib:w-full lib:flex-1 lib:flex-col", - "md:peer-data-[variant=inset]:lib:m-2 md:peer-data-[variant=inset]:lib:ml-0 md:peer-data-[variant=inset]:lib:rounded-xl md:peer-data-[variant=inset]:lib:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:lib:ml-2", - a - ), - ...e - } - ); -} -function se({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - z, - { - "data-slot": "sidebar-input", - "data-sidebar": "input", - className: t("lib:bg-background lib:h-8 lib:w-full lib:shadow-none", a), - ...e - } - ); -} -function de({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-header", - "data-sidebar": "header", - className: t("lib:flex lib:flex-col lib:gap-2 lib:p-2", a), - ...e - } - ); -} -function ce({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-footer", - "data-sidebar": "footer", - className: t("lib:flex lib:flex-col lib:gap-2 lib:p-2", a), - ...e - } - ); -} -function ue({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - I, - { - "data-slot": "sidebar-separator", - "data-sidebar": "separator", - className: t("lib:bg-sidebar-border lib:mx-2 lib:w-auto", a), - ...e - } - ); -} -function me({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-content", - "data-sidebar": "content", - className: t( - "lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden", - a - ), - ...e - } - ); -} -function fe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-group", - "data-sidebar": "group", - className: t("lib:relative lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:p-2", a), - ...e - } - ); -} -function pe({ - className: a, - asChild: e = !1, - ...l -}) { - const r = e ? p : "div"; - return /* @__PURE__ */ i.createElement( - r, - { - "data-slot": "sidebar-group-label", - "data-sidebar": "group-label", - className: t( - "lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - "group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0", - a - ), - ...l - } - ); -} -function ge({ - className: a, - asChild: e = !1, - ...l -}) { - const r = e ? p : "button"; - return /* @__PURE__ */ i.createElement( - r, - { - "data-slot": "sidebar-group-action", - "data-sidebar": "group-action", - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - // Increases the hit area of the button on mobile. - "after:lib:absolute after:lib:-inset-2 md:after:lib:hidden", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...l - } - ); -} -function he({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-group-content", - "data-sidebar": "group-content", - className: t("lib:w-full lib:text-sm", a), - ...e - } - ); -} -function ve({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "ul", - { - "data-slot": "sidebar-menu", - "data-sidebar": "menu", - className: t("lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:gap-1", a), - ...e - } - ); -} -function xe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "li", - { - "data-slot": "sidebar-menu-item", - "data-sidebar": "menu-item", - className: t("lib:group/menu-item lib:relative", a), - ...e - } - ); -} -const q = _( - "lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - { - variants: { - variant: { - default: "hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground", - outline: "lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]" - }, - size: { - default: "lib:h-8 lib:text-sm", - sm: "lib:h-7 lib:text-xs", - lg: "lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!" - } - }, - defaultVariants: { - variant: "default", - size: "default" - } - } -); -function we({ - asChild: a = !1, - isActive: e = !1, - variant: l = "default", - size: r = "default", - tooltip: b, - className: o, - ...m -}) { - const s = a ? p : "button", { isMobile: u, state: d } = x(), g = /* @__PURE__ */ i.createElement( - s, - { - "data-slot": "sidebar-menu-button", - "data-sidebar": "menu-button", - "data-size": r, - "data-active": e, - className: t(q({ variant: l, size: r }), o), - ...m - } - ); - return b ? (typeof b == "string" && (b = { - children: b - }), /* @__PURE__ */ i.createElement(R, null, /* @__PURE__ */ i.createElement(H, { asChild: !0 }, g), /* @__PURE__ */ i.createElement(K, { side: "right", align: "center", hidden: d !== "collapsed" || u, ...b }))) : g; -} -function Ee({ - className: a, - asChild: e = !1, - showOnHover: l = !1, - ...r -}) { - const b = e ? p : "button"; - return /* @__PURE__ */ i.createElement( - b, - { - "data-slot": "sidebar-menu-action", - "data-sidebar": "menu-action", - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - // Increases the hit area of the button on mobile. - "after:lib:absolute after:lib:-inset-2 md:after:lib:hidden", - "lib:peer-data-[size=sm]/menu-button:top-1", - "lib:peer-data-[size=default]/menu-button:top-1.5", - "lib:peer-data-[size=lg]/menu-button:top-2.5", - "group-data-[collapsible=icon]:lib:hidden", - l && "lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0", - a - ), - ...r - } - ); -} -function Se({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-menu-badge", - "data-sidebar": "menu-badge", - className: t( - "lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none", - "lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", - "lib:peer-data-[size=sm]/menu-button:top-1", - "lib:peer-data-[size=default]/menu-button:top-1.5", - "lib:peer-data-[size=lg]/menu-button:top-2.5", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...e - } - ); -} -function Ne({ - className: a, - showIcon: e = !1, - ...l -}) { - const r = i.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []); - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-menu-skeleton", - "data-sidebar": "menu-skeleton", - className: t("lib:flex lib:h-8 lib:items-center lib:gap-2 lib:rounded-md lib:px-2", a), - ...l - }, - e && /* @__PURE__ */ i.createElement(E, { className: "lib:size-4 lib:rounded-md", "data-sidebar": "menu-skeleton-icon" }), - /* @__PURE__ */ i.createElement( - E, - { - className: "lib:h-4 lib:max-w-(--skeleton-width) lib:flex-1", - "data-sidebar": "menu-skeleton-text", - style: { - "--skeleton-width": r - } - } - ) - ); -} -function ye({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "ul", - { - "data-slot": "sidebar-menu-sub", - "data-sidebar": "menu-sub", - className: t( - "lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...e - } - ); -} -function _e({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "li", - { - "data-slot": "sidebar-menu-sub-item", - "data-sidebar": "menu-sub-item", - className: t("lib:group/menu-sub-item lib:relative", a), - ...e - } - ); -} -function ke({ - asChild: a = !1, - size: e = "md", - isActive: l = !1, - className: r, - ...b -}) { - const o = a ? p : "a"; - return /* @__PURE__ */ i.createElement( - o, - { - "data-slot": "sidebar-menu-sub-button", - "data-sidebar": "menu-sub-button", - "data-size": e, - "data-active": l, - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - "data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground", - e === "sm" && "lib:text-xs", - e === "md" && "lib:text-sm", - "group-data-[collapsible=icon]:lib:hidden", - r - ), - ...b - } - ); +import { j as o } from "./index.es64.js"; +import { cn as n } from "./index.es65.js"; +function a({ className: t, ...e }) { + return /* @__PURE__ */ o.jsx("div", { "data-slot": "skeleton", className: n("bg-accent animate-pulse rounded-md", t), ...e }); } export { - re as Sidebar, - me as SidebarContent, - ce as SidebarFooter, - fe as SidebarGroup, - ge as SidebarGroupAction, - he as SidebarGroupContent, - pe as SidebarGroupLabel, - de as SidebarHeader, - se as SidebarInput, - oe as SidebarInset, - ve as SidebarMenu, - Ee as SidebarMenuAction, - Se as SidebarMenuBadge, - we as SidebarMenuButton, - xe as SidebarMenuItem, - Ne as SidebarMenuSkeleton, - ye as SidebarMenuSub, - ke as SidebarMenuSubButton, - _e as SidebarMenuSubItem, - le as SidebarProvider, - ne as SidebarRail, - ue as SidebarSeparator, - be as SidebarTrigger, - x as useSidebar + a as Skeleton }; diff --git a/dist/index.es43.js b/dist/index.es43.js index 4a018817..ca5b989b 100644 --- a/dist/index.es43.js +++ b/dist/index.es43.js @@ -1,7 +1,61 @@ -import { cn as n } from "./index.es54.js"; -function l({ className: e, ...t }) { - return /* @__PURE__ */ React.createElement("div", { "data-slot": "skeleton", className: n("lib:bg-accent lib:animate-pulse lib:rounded-md", e), ...t }); +import { j as a } from "./index.es64.js"; +import * as h from "react"; +import * as o from "@radix-ui/react-slider"; +import { cn as n } from "./index.es65.js"; +function u({ + className: l, + defaultValue: r, + value: t, + min: i = 0, + max: e = 100, + ...s +}) { + const d = h.useMemo( + () => Array.isArray(t) ? t : Array.isArray(r) ? r : [i, e], + [t, r, i, e] + ); + return /* @__PURE__ */ a.jsxs( + o.Root, + { + "data-slot": "slider", + defaultValue: r, + value: t, + min: i, + max: e, + className: n( + "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", + l + ), + ...s, + children: [ + /* @__PURE__ */ a.jsx( + o.Track, + { + "data-slot": "slider-track", + className: n( + "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5" + ), + children: /* @__PURE__ */ a.jsx( + o.Range, + { + "data-slot": "slider-range", + className: n("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full") + } + ) + } + ), + Array.from({ length: d.length }, (m, c) => /* @__PURE__ */ a.jsx( + o.Thumb, + { + "data-slot": "slider-thumb", + className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" + }, + c + )) + ] + } + ); } export { - l as Skeleton + u as Slider }; diff --git a/dist/index.es44.js b/dist/index.es44.js index 78b8517d..ec2bd889 100644 --- a/dist/index.es44.js +++ b/dist/index.es44.js @@ -1,60 +1,22 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-slider"; -import { cn as o } from "./index.es54.js"; -function h({ - className: n, - defaultValue: l, - value: t, - min: a = 0, - max: r = 100, - ...b -}) { - const s = i.useMemo( - () => Array.isArray(t) ? t : Array.isArray(l) ? l : [a, r], - [t, l, a, r] - ); - return /* @__PURE__ */ i.createElement( - e.Root, +import { j as e } from "./index.es64.js"; +import { useTheme as t } from "next-themes"; +import { Toaster as s } from "sonner"; +const n = ({ ...r }) => { + const { theme: o = "system" } = t(); + return /* @__PURE__ */ e.jsx( + s, { - "data-slot": "slider", - defaultValue: l, - value: t, - min: a, - max: r, - className: o( - "lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col", - n - ), - ...b - }, - /* @__PURE__ */ i.createElement( - e.Track, - { - "data-slot": "slider-track", - className: o( - "lib:bg-muted lib:relative lib:grow lib:overflow-hidden lib:rounded-full data-[orientation=horizontal]:lib:h-1.5 data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-1.5" - ) + theme: o, + className: "toaster group", + style: { + "--normal-bg": "var(--popover)", + "--normal-text": "var(--popover-foreground)", + "--normal-border": "var(--border)" }, - /* @__PURE__ */ i.createElement( - e.Range, - { - "data-slot": "slider-range", - className: o( - "lib:bg-primary lib:absolute data-[orientation=horizontal]:lib:h-full data-[orientation=vertical]:lib:w-full" - ) - } - ) - ), - Array.from({ length: s.length }, (c, d) => /* @__PURE__ */ i.createElement( - e.Thumb, - { - "data-slot": "slider-thumb", - key: d, - className: "lib:border-primary lib:bg-background lib:ring-ring/50 lib:block lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-sm lib:transition-[color,box-shadow] hover:lib:ring-4 focus-visible:lib:ring-4 focus-visible:lib:outline-hidden disabled:lib:pointer-events-none disabled:lib:opacity-50" - } - )) + ...r + } ); -} +}; export { - h as Slider + n as Toaster }; diff --git a/dist/index.es45.js b/dist/index.es45.js index 1d63614c..968319fa 100644 --- a/dist/index.es45.js +++ b/dist/index.es45.js @@ -1,21 +1,28 @@ -import { useTheme as o } from "next-themes"; -import { Toaster as t } from "sonner"; -const m = ({ ...r }) => { - const { theme: e = "system" } = o(); - return /* @__PURE__ */ React.createElement( - t, +import { j as t } from "./index.es64.js"; +import * as e from "@radix-ui/react-switch"; +import { cn as a } from "./index.es65.js"; +function o({ className: r, ...n }) { + return /* @__PURE__ */ t.jsx( + e.Root, { - theme: e, - className: "lib:toaster lib:group", - style: { - "--normal-bg": "var(--popover)", - "--normal-text": "var(--popover-foreground)", - "--normal-border": "var(--border)" - }, - ...r + "data-slot": "switch", + className: a( + "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", + r + ), + ...n, + children: /* @__PURE__ */ t.jsx( + e.Thumb, + { + "data-slot": "switch-thumb", + className: a( + "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" + ) + } + ) } ); -}; +} export { - m as Toaster + o as Switch }; diff --git a/dist/index.es46.js b/dist/index.es46.js index ec5dcd12..7c3d5f10 100644 --- a/dist/index.es46.js +++ b/dist/index.es46.js @@ -1,28 +1,70 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-switch"; -import { cn as t } from "./index.es54.js"; -function b({ className: l, ...a }) { - return /* @__PURE__ */ i.createElement( - e.Root, +import { j as a } from "./index.es64.js"; +import { cn as o } from "./index.es65.js"; +function s({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ a.jsx("table", { "data-slot": "table", className: o("w-full caption-bottom text-sm", t), ...e }) }); +} +function n({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("thead", { "data-slot": "table-header", className: o("[&_tr]:border-b", t), ...e }); +} +function d({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("tbody", { "data-slot": "table-body", className: o("[&_tr:last-child]:border-0", t), ...e }); +} +function c({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "tfoot", + { + "data-slot": "table-footer", + className: o("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", t), + ...e + } + ); +} +function b({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "tr", + { + "data-slot": "table-row", + className: o("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", t), + ...e + } + ); +} +function i({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "th", { - "data-slot": "switch", - className: t( - "lib:peer data-[state=checked]:lib:bg-primary data-[state=unchecked]:lib:bg-input focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 dark:data-[state=unchecked]:lib:bg-input/80 lib:inline-flex lib:h-[1.15rem] lib:w-8 lib:shrink-0 lib:items-center lib:rounded-full lib:border lib:border-transparent lib:shadow-xs lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - l + "data-slot": "table-head", + className: o( + "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", + t ), - ...a - }, - /* @__PURE__ */ i.createElement( - e.Thumb, - { - "data-slot": "switch-thumb", - className: t( - "lib:bg-background dark:data-[state=unchecked]:lib:bg-foreground dark:data-[state=checked]:lib:bg-primary-foreground lib:pointer-events-none lib:block lib:size-4 lib:rounded-full lib:ring-0 lib:transition-transform data-[state=checked]:lib:translate-x-[calc(100%-2px)] data-[state=unchecked]:lib:translate-x-0" - ) - } - ) + ...e + } ); } +function m({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "td", + { + "data-slot": "table-cell", + className: o( + "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", + t + ), + ...e + } + ); +} +function u({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("caption", { "data-slot": "table-caption", className: o("text-muted-foreground mt-4 text-sm", t), ...e }); +} export { - b as Switch + s as Table, + d as TableBody, + u as TableCaption, + m as TableCell, + c as TableFooter, + i as TableHead, + n as TableHeader, + b as TableRow }; diff --git a/dist/index.es47.js b/dist/index.es47.js index 7f791d9b..59a9704e 100644 --- a/dist/index.es47.js +++ b/dist/index.es47.js @@ -1,80 +1,41 @@ -import * as l from "react"; -import { cn as a } from "./index.es54.js"; -function r({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("div", { "data-slot": "table-container", className: "lib:relative lib:w-full lib:overflow-x-auto" }, /* @__PURE__ */ l.createElement("table", { "data-slot": "table", className: a("lib:w-full lib:caption-bottom lib:text-sm", e), ...t })); -} -function o({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("thead", { "data-slot": "table-header", className: a("[&_tr]:lib:border-b", e), ...t }); -} -function i({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("tbody", { "data-slot": "table-body", className: a("[&_tr:last-child]:lib:border-0", e), ...t }); -} -function n({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "tfoot", - { - "data-slot": "table-footer", - className: a("lib:bg-muted/50 lib:border-t lib:font-medium [&>tr]:last:lib:border-b-0", e), - ...t - } - ); -} -function c({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "tr", +import { j as s } from "./index.es64.js"; +import * as a from "@radix-ui/react-tabs"; +import { cn as i } from "./index.es65.js"; +function o({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx(a.Root, { "data-slot": "tabs", className: i("flex flex-col gap-2", t), ...e }); +} +function d({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx( + a.List, { - "data-slot": "table-row", - className: a( - "hover:lib:bg-muted/50 data-[state=selected]:lib:bg-muted lib:border-b lib:transition-colors", - e + "data-slot": "tabs-list", + className: i( + "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", + t ), - ...t + ...e } ); } -function s({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "th", +function c({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx( + a.Trigger, { - "data-slot": "table-head", - className: a( - "lib:text-foreground lib:h-10 lib:px-2 lib:text-left lib:align-middle lib:font-medium lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]", - e + "data-slot": "tabs-trigger", + className: i( + "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...t + ...e } ); } -function d({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "td", - { - "data-slot": "table-cell", - className: a( - "lib:p-2 lib:align-middle lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]", - e - ), - ...t - } - ); -} -function m({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "caption", - { - "data-slot": "table-caption", - className: a("lib:text-muted-foreground lib:mt-4 lib:text-sm", e), - ...t - } - ); +function l({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx(a.Content, { "data-slot": "tabs-content", className: i("flex-1 outline-none", t), ...e }); } export { - r as Table, - i as TableBody, - m as TableCaption, - d as TableCell, - n as TableFooter, - s as TableHead, - o as TableHeader, - c as TableRow + o as Tabs, + l as TabsContent, + d as TabsList, + c as TabsTrigger }; diff --git a/dist/index.es48.js b/dist/index.es48.js index 50276cfc..f5902e6e 100644 --- a/dist/index.es48.js +++ b/dist/index.es48.js @@ -1,48 +1,18 @@ -import * as t from "react"; -import * as l from "@radix-ui/react-tabs"; -import { cn as a } from "./index.es54.js"; -function n({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement(l.Root, { "data-slot": "tabs", className: a("lib:flex lib:flex-col lib:gap-2", i), ...e }); -} -function r({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.List, - { - "data-slot": "tabs-list", - className: a( - "lib:bg-muted lib:text-muted-foreground lib:inline-flex lib:h-9 lib:w-fit lib:items-center lib:justify-center lib:rounded-lg lib:p-[3px]", - i - ), - ...e - } - ); -} -function s({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.Trigger, +import { j as i } from "./index.es64.js"; +import { cn as t } from "./index.es65.js"; +function n({ className: r, ...e }) { + return /* @__PURE__ */ i.jsx( + "textarea", { - "data-slot": "tabs-trigger", - className: a( - "data-[state=active]:lib:bg-background dark:data-[state=active]:lib:text-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:outline-ring dark:data-[state=active]:lib:border-input dark:data-[state=active]:lib:bg-input/30 lib:text-foreground dark:lib:text-muted-foreground lib:inline-flex lib:h-[calc(100%-1px)] lib:flex-1 lib:items-center lib:justify-center lib:gap-1.5 lib:rounded-md lib:border lib:border-transparent lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:whitespace-nowrap lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=active]:lib:shadow-sm [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - i + "data-slot": "textarea", + className: t( + "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", + r ), ...e } ); } -function o({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.Content, - { - "data-slot": "tabs-content", - className: a("lib:flex-1 lib:outline-none", i), - ...e - } - ); -} export { - n as Tabs, - o as TabsContent, - r as TabsList, - s as TabsTrigger + n as Textarea }; diff --git a/dist/index.es49.js b/dist/index.es49.js index c7cbc4e0..4c18d68a 100644 --- a/dist/index.es49.js +++ b/dist/index.es49.js @@ -1,18 +1,62 @@ -import * as e from "react"; -import { cn as r } from "./index.es54.js"; -function b({ className: i, ...l }) { - return /* @__PURE__ */ e.createElement( - "textarea", +import { j as n } from "./index.es64.js"; +import * as s from "react"; +import * as d from "@radix-ui/react-toggle-group"; +import { cn as l } from "./index.es65.js"; +import { toggleVariants as m } from "./index.es50.js"; +const u = s.createContext({ + size: "default", + variant: "default" +}); +function c({ + className: a, + variant: o, + size: t, + children: e, + ...i +}) { + return /* @__PURE__ */ n.jsx( + d.Root, { - "data-slot": "textarea", - className: r( - "lib:border-input placeholder:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:flex lib:field-sizing-content lib:min-h-16 lib:w-full lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm", - i + "data-slot": "toggle-group", + "data-variant": o, + "data-size": t, + className: l( + "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", + a ), - ...l + ...i, + children: /* @__PURE__ */ n.jsx(u.Provider, { value: { variant: o, size: t }, children: e }) + } + ); +} +function x({ + className: a, + children: o, + variant: t, + size: e, + ...i +}) { + const r = s.useContext(u); + return /* @__PURE__ */ n.jsx( + d.Item, + { + "data-slot": "toggle-group-item", + "data-variant": r.variant || t, + "data-size": r.size || e, + className: l( + m({ + variant: r.variant || t, + size: r.size || e + }), + "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", + a + ), + ...i, + children: o } ); } export { - b as Textarea + c as ToggleGroup, + x as ToggleGroupItem }; diff --git a/dist/index.es5.js b/dist/index.es5.js index 0d2af613..16920075 100644 --- a/dist/index.es5.js +++ b/dist/index.es5.js @@ -1,7 +1,13 @@ -import { AppThemeProvider as o } from "./index.es4.js"; -import e from "react"; -import m from "./index.es53.js"; -const d = ({ children: r, defaultScheme: t }) => /* @__PURE__ */ e.createElement(o, { defaultScheme: t || void 0 }, /* @__PURE__ */ e.createElement(m, null, r)); +import { j as n } from "./index.es64.js"; +import { createContext as r, useContext as i } from "react"; +const o = r(void 0), m = ({ linkComponent: t, children: e }) => /* @__PURE__ */ n.jsx(o.Provider, { value: t, children: e }), x = () => { + const t = i(o); + if (!t) + throw new Error("useLinkComponent must be used within a LinkProvider"); + return t; +}; export { - d as default + o as LinkContext, + m as LinkProvider, + x as useLinkComponent }; diff --git a/dist/index.es50.js b/dist/index.es50.js index c5fd389a..aa84fe4b 100644 --- a/dist/index.es50.js +++ b/dist/index.es50.js @@ -1,61 +1,36 @@ -import * as e from "react"; -import * as n from "@radix-ui/react-toggle-group"; -import { cn as d } from "./index.es54.js"; -import { toggleVariants as u } from "./index.es51.js"; -const s = e.createContext({ - size: "default", - variant: "default" -}); -function g({ - className: r, - variant: o, - size: t, - children: a, - ...l -}) { - return /* @__PURE__ */ e.createElement( - n.Root, - { - "data-slot": "toggle-group", - "data-variant": o, - "data-size": t, - className: d( - "lib:group/toggle-group lib:flex lib:w-fit lib:items-center lib:rounded-md data-[variant=outline]:lib:shadow-xs", - r - ), - ...l +import { j as n } from "./index.es64.js"; +import * as a from "@radix-ui/react-toggle"; +import { cva as o } from "class-variance-authority"; +import { cn as s } from "./index.es65.js"; +const d = o( + "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", + { + variants: { + variant: { + default: "bg-transparent", + outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground" + }, + size: { + default: "h-9 px-2 min-w-9", + sm: "h-8 px-1.5 min-w-8", + lg: "h-10 px-2.5 min-w-10" + } }, - /* @__PURE__ */ e.createElement(s.Provider, { value: { variant: o, size: t } }, a) - ); -} -function c({ - className: r, - children: o, + defaultVariants: { + variant: "default", + size: "default" + } + } +); +function u({ + className: e, variant: t, - size: a, - ...l + size: i, + ...r }) { - const i = e.useContext(s); - return /* @__PURE__ */ e.createElement( - n.Item, - { - "data-slot": "toggle-group-item", - "data-variant": i.variant || t, - "data-size": i.size || a, - className: d( - u({ - variant: i.variant || t, - size: i.size || a - }), - "lib:min-w-0 lib:flex-1 lib:shrink-0 lib:rounded-none lib:shadow-none first:lib:rounded-l-md last:lib:rounded-r-md focus:lib:z-10 focus-visible:lib:z-10 data-[variant=outline]:lib:border-l-0 data-[variant=outline]:first:lib:border-l", - r - ), - ...l - }, - o - ); + return /* @__PURE__ */ n.jsx(a.Root, { "data-slot": "toggle", className: s(d({ variant: t, size: i, className: e })), ...r }); } export { - g as ToggleGroup, - c as ToggleGroupItem + u as Toggle, + d as toggleVariants }; diff --git a/dist/index.es51.js b/dist/index.es51.js index d0372878..b92dee09 100644 --- a/dist/index.es51.js +++ b/dist/index.es51.js @@ -1,36 +1,41 @@ -import * as r from "react"; -import * as n from "@radix-ui/react-toggle"; -import { cva as a } from "class-variance-authority"; -import { cn as b } from "./index.es54.js"; -const o = a( - "lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:rounded-md lib:text-sm lib:font-medium hover:lib:bg-muted hover:lib:text-muted-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=on]:lib:bg-accent data-[state=on]:lib:text-accent-foreground [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 [&_svg]:lib:shrink-0 focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] lib:outline-none lib:transition-[color,box-shadow] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:whitespace-nowrap", - { - variants: { - variant: { - default: "lib:bg-transparent", - outline: "lib:border lib:border-input lib:bg-transparent lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground" - }, - size: { - default: "lib:h-9 lib:px-2 lib:min-w-9", - sm: "lib:h-8 lib:px-1.5 lib:min-w-8", - lg: "lib:h-10 lib:px-2.5 lib:min-w-10" - } - }, - defaultVariants: { - variant: "default", - size: "default" - } - } -); -function c({ - className: i, - variant: e, - size: t, - ...l +import { j as o } from "./index.es64.js"; +import * as i from "@radix-ui/react-tooltip"; +import { cn as n } from "./index.es65.js"; +function s({ delayDuration: t = 0, ...r }) { + return /* @__PURE__ */ o.jsx(i.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...r }); +} +function m({ ...t }) { + return /* @__PURE__ */ o.jsx(s, { children: /* @__PURE__ */ o.jsx(i.Root, { "data-slot": "tooltip", ...t }) }); +} +function p({ ...t }) { + return /* @__PURE__ */ o.jsx(i.Trigger, { "data-slot": "tooltip-trigger", ...t }); +} +function f({ + className: t, + sideOffset: r = 0, + children: e, + ...a }) { - return /* @__PURE__ */ r.createElement(n.Root, { "data-slot": "toggle", className: b(o({ variant: e, size: t, className: i })), ...l }); + return /* @__PURE__ */ o.jsx(i.Portal, { children: /* @__PURE__ */ o.jsxs( + i.Content, + { + "data-slot": "tooltip-content", + sideOffset: r, + className: n( + "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", + t + ), + ...a, + children: [ + e, + /* @__PURE__ */ o.jsx(i.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" }) + ] + } + ) }); } export { - c as Toggle, - o as toggleVariants + m as Tooltip, + f as TooltipContent, + s as TooltipProvider, + p as TooltipTrigger }; diff --git a/dist/index.es52.js b/dist/index.es52.js index ef207d26..b3e2026f 100644 --- a/dist/index.es52.js +++ b/dist/index.es52.js @@ -1,39 +1,16 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-tooltip"; -import { cn as a } from "./index.es54.js"; -function n({ delayDuration: t = 0, ...o }) { - return /* @__PURE__ */ i.createElement(e.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...o }); -} -function b({ ...t }) { - return /* @__PURE__ */ i.createElement(n, null, /* @__PURE__ */ i.createElement(e.Root, { "data-slot": "tooltip", ...t })); -} -function m({ ...t }) { - return /* @__PURE__ */ i.createElement(e.Trigger, { "data-slot": "tooltip-trigger", ...t }); -} -function s({ - className: t, - sideOffset: o = 0, - children: l, - ...r -}) { - return /* @__PURE__ */ i.createElement(e.Portal, null, /* @__PURE__ */ i.createElement( - e.Content, - { - "data-slot": "tooltip-content", - sideOffset: o, - className: a( - "lib:bg-primary lib:text-primary-foreground lib:animate-in lib:fade-in-0 lib:zoom-in-95 data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=closed]:lib:zoom-out-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-fit lib:origin-(--radix-tooltip-content-transform-origin) lib:rounded-md lib:px-3 lib:py-1.5 lib:text-xs lib:text-balance", - t - ), - ...r - }, - l, - /* @__PURE__ */ i.createElement(e.Arrow, { className: "lib:bg-primary lib:fill-primary lib:z-50 lib:size-2.5 lib:translate-y-[calc(-50%_-_2px)] lib:rotate-45 lib:rounded-[2px]" }) - )); +import { j as e } from "./index.es64.js"; +import { SidebarProvider as a, SidebarTrigger as o } from "./index.es41.js"; +import m from "./index.es53.js"; +import n from "./index.es4.js"; +function x({ userInfo: r, appInfo: t, signOutFn: i, children: s }) { + return /* @__PURE__ */ e.jsx(n, { attribute: "class", defaultTheme: "system", enableSystem: !0, disableTransitionOnChange: !0, children: /* @__PURE__ */ e.jsxs(a, { defaultOpen: !0, children: [ + /* @__PURE__ */ e.jsx(m, { userInfo: r, appInfo: t, signOutFn: i }), + /* @__PURE__ */ e.jsxs("main", { className: "w-fit", children: [ + /* @__PURE__ */ e.jsx(o, {}), + s + ] }) + ] }) }); } export { - b as Tooltip, - s as TooltipContent, - n as TooltipProvider, - m as TooltipTrigger + x as default }; diff --git a/dist/index.es53.js b/dist/index.es53.js index bffbfe7b..f3eddca2 100644 --- a/dist/index.es53.js +++ b/dist/index.es53.js @@ -1,15 +1,90 @@ -import { SkeletonTheme as r } from "react-loading-skeleton"; -import m from "./index.es4.js"; -/* empty css */ -const i = ({ - children: e, - baseColor: t, - highlightColor: o -}) => { - localStorage.getItem("theme"); - const { theme: l } = m(); - return /* @__PURE__ */ React.createElement(r, { baseColor: t || "#000", highlightColor: o || "#c9c9c9" }, e); -}; +import { j as e } from "./index.es64.js"; +import { useMemo as p } from "react"; +import { Sidebar as M, SidebarHeader as P, SidebarMenu as g, SidebarMenuItem as m, SidebarContent as z, SidebarGroup as L, SidebarGroupLabel as w, SidebarGroupContent as D, SidebarMenuButton as b, SidebarFooter as G } from "./index.es41.js"; +import { SquareTerminal as R, BriefcaseBusiness as T, ServerCog as _, KeyRound as $, UserRoundCog as E } from "lucide-react"; +import H from "./index.es83.js"; +import { genAvatarBackground as v, getCurrentPath as K } from "./index.es84.js"; +import { Avatar as q, AvatarImage as F } from "./index.es10.js"; +import { AvatarFallback as I } from "@radix-ui/react-avatar"; +import J from "./index.es85.js"; +import { useLinkComponent as O } from "./index.es5.js"; +const Q = (n, t) => [ + { + section: "Projects", + sectionItems: [ + { + title: "All Projects", + url: "/projects", + icon: R + } + ] + }, + { + section: "Organizations", + sectionItems: [ + { + title: "All Organizations", + url: "/organizations", + icon: T + }, + { + title: "All Deployments", + url: "/deployments", + icon: _ + } + ] + }, + { + section: "Settings", + sectionItems: [ + { + title: "SSH Keys", + url: "/settings", + icon: $ + }, + { + title: "My Account", + url: `${n}/account`, + target: "blank", + onClick: t, + icon: E + } + ] + } +]; +function ie({ userInfo: n, appInfo: t, currentPath: u, signOutFn: o, ...f }) { + const A = O(), { firstName: s, lastName: a, image: h, email: i } = n, S = !!h, l = !!(s && a), x = l ? v(s.charAt(0), a.charAt(0)) : v(i.charAt(0), i.charAt(1)), C = l ? s.charAt(0).toUpperCase() + a.charAt(0).toUpperCase() : i.charAt(0).toUpperCase(), k = S ? /* @__PURE__ */ e.jsxs(q, { children: [ + /* @__PURE__ */ e.jsx(F, { src: h, alt: "user_avatar" }), + /* @__PURE__ */ e.jsx(I, { children: "Avatar" }) + ] }) : /* @__PURE__ */ e.jsx(J, { bgColor: x.bgColor, textColor: x.textColor, children: C }), N = l ? /* @__PURE__ */ e.jsx("span", { className: "user-name", children: `${s} ${a}` }) : /* @__PURE__ */ e.jsx("span", { className: "user-name", children: i }), c = p(() => Q(t.kcUrl, o), [t.kcUrl, o]), y = p(() => K(c, u || ""), [c, u]), U = { ...t, signOutFn: o }; + return /* @__PURE__ */ e.jsxs(M, { variant: "sidebar", collapsible: "icon", ...f, children: [ + /* @__PURE__ */ e.jsx(P, { children: /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(H, { ...U }) }) }) }), + /* @__PURE__ */ e.jsx(z, { children: c.map((d) => /* @__PURE__ */ e.jsxs(L, { children: [ + /* @__PURE__ */ e.jsx(w, { children: d.section }), + /* @__PURE__ */ e.jsx(D, { className: "list-none", children: d.sectionItems.map((r) => { + const B = r.target === "blank", j = r.onClick; + return /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(b, { asChild: !0, isActive: y === r.url, children: /* @__PURE__ */ e.jsxs( + A, + { + onClick: async () => { + j && await j(); + }, + href: r.url, + target: B ? "_blank" : "_self", + children: [ + /* @__PURE__ */ e.jsx(r.icon, {}), + /* @__PURE__ */ e.jsx("span", { children: r.title }) + ] + } + ) }) }, r.title); + }) }) + ] }, d.section)) }), + /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsxs(b, { size: "lg", children: [ + k, + /* @__PURE__ */ e.jsx("div", { className: "grid flex-1 text-left text-sm leading-tight", children: /* @__PURE__ */ e.jsx("span", { className: "truncate font-light", children: N }) }) + ] }) }) }) }) + ] }); +} export { - i as default + ie as default }; diff --git a/dist/index.es54.js b/dist/index.es54.js index a4783bbc..d3abcf2a 100644 --- a/dist/index.es54.js +++ b/dist/index.es54.js @@ -1,8 +1,13 @@ -import { clsx as o } from "clsx"; -import { twMerge as t } from "tailwind-merge"; -function n(...r) { - return t(o(r)); +import { j as e } from "./index.es64.js"; +import { Checkbox as s } from "./index.es18.js"; +import { Label as a } from "./index.es29.js"; +function i({ label: t, id: r, ...o }) { + return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [ + /* @__PURE__ */ e.jsx(s, { id: r, ...o }), + /* @__PURE__ */ e.jsx(a, { htmlFor: r, children: t }) + ] }) }); } +i.displayName = "CheckboxWithLabel"; export { - n as cn + i as default }; diff --git a/dist/index.es55.js b/dist/index.es55.js index 5b54426a..96889903 100644 --- a/dist/index.es55.js +++ b/dist/index.es55.js @@ -1,14 +1,32 @@ -import * as o from "react"; -const e = 768; -function r() { - const [s, n] = o.useState(void 0); - return o.useEffect(() => { - const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => { - n(window.innerWidth < e); - }; - return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i); - }, []), !!s; +import { j as a } from "./index.es64.js"; +import { Card as e, CardHeader as s, CardTitle as l, CardContent as o } from "./index.es15.js"; +import { cva as d } from "class-variance-authority"; +import { cn as i } from "./index.es65.js"; +const m = d("max-w-[160px] border rounded-lg flex flex-col justify-center", { + variants: { + type: { + default: "h-[108px]", + withIcon: "h-[125px] gap-2 p-6", + stat: "w-[370px] max-w-[370px] h-[140px] gap-3 p-5" + } + }, + defaultVariants: { + type: "default" + } +}); +function u({ type: t = "default", title: n, content: r }) { + return /* @__PURE__ */ a.jsxs(e, { className: i(m({ type: t })), children: [ + /* @__PURE__ */ a.jsx(s, { children: /* @__PURE__ */ a.jsx( + l, + { + className: t === "stat" ? "font-sans font-light text-sm leading-[1.4] tracking-normal" : "font-sans font-medium text-sm leading-[1.5] tracking-normal", + children: n + } + ) }), + /* @__PURE__ */ a.jsx(o, { children: t === "stat" ? /* @__PURE__ */ a.jsx("section", { className: "font-sans font-normal leading-[1.75] tracking-normal", children: r }) : t === "default" ? /* @__PURE__ */ a.jsx("p", { className: "text-2xl leading-normal font-bold ml-auto w-max", children: r }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: r }) }) + ] }); } export { - r as useIsMobile + m as cardVariants, + u as default }; diff --git a/dist/index.es56.js b/dist/index.es56.js new file mode 100644 index 00000000..98ad5e2e --- /dev/null +++ b/dist/index.es56.js @@ -0,0 +1,38 @@ +import { j as n } from "./index.es64.js"; +import { isValidElement as m } from "react"; +import l from "./index.es55.js"; +import { cva as f } from "class-variance-authority"; +const p = f("font-sans font-normal text-lg leading-normal tracking-normal text-right", { + variants: { + transform: { + lowercase: "lowercase", + capitalize: "capitalize", + none: "" + } + }, + defaultVariants: { + transform: "none" + } +}); +function s(t) { + return t.toLowerCase().replace(/\s+/g, "-"); +} +const w = ({ title: t, value: a, lowercaseValue: e, capitalizeValue: o }) => { + const i = m(a); + let r = ""; + e && (r = "lowercase"), o && (r = "capitalize"); + const c = i ? /* @__PURE__ */ n.jsx("div", { className: r, "data-cy": s(t), children: a }) : /* @__PURE__ */ n.jsx( + "span", + { + className: p({ + transform: e ? "lowercase" : o ? "capitalize" : "none" + }), + "data-cy": s(t), + children: a + } + ); + return /* @__PURE__ */ n.jsx(l, { type: "stat", title: t, content: c }); +}; +export { + w as default +}; diff --git a/dist/index.es57.js b/dist/index.es57.js new file mode 100644 index 00000000..b781fe3f --- /dev/null +++ b/dist/index.es57.js @@ -0,0 +1,14 @@ +import { j as t } from "./index.es64.js"; +import o from "./index.es55.js"; +function l({ name: e, category: n, value: s, img: a }) { + const r = /* @__PURE__ */ t.jsxs("section", { className: "flex-row justify-items-end font-sans font-normal text-xs leading-[1.25] tracking-normal text-right", children: [ + a, + /* @__PURE__ */ t.jsx("span", { className: "name", children: e }), + /* @__PURE__ */ t.jsx("br", {}), + /* @__PURE__ */ t.jsx("span", { className: "value", children: s }) + ] }); + return /* @__PURE__ */ t.jsx(o, { type: "withIcon", title: n, content: r }); +} +export { + l as default +}; diff --git a/dist/index.es58.js b/dist/index.es58.js new file mode 100644 index 00000000..0523bbfc --- /dev/null +++ b/dist/index.es58.js @@ -0,0 +1,96 @@ +import { j as e } from "./index.es64.js"; +import { useState as c } from "react"; +import { Copy as y, EyeOff as m, Eye as u, Check as v } from "lucide-react"; +import { cva as j } from "class-variance-authority"; +import d from "./index.es86.js"; +const N = j("truncate transition-all duration-300", { + variants: { + type: { + visible: "", + hidden: "blur-sm select-none hover:blur-0 hover:select-text", + hiddenWithIcon: "", + alwaysHidden: "blur-sm select-none" + }, + unblur: { + true: "!blur-0 !select-text", + false: "" + } + }, + compoundVariants: [ + { + type: "hiddenWithIcon", + unblur: !1, + className: "blur-sm select-none" + }, + { + type: "hiddenWithIcon", + unblur: !0, + className: "!blur-0 !select-text" + } + ], + defaultVariants: { + type: "visible", + unblur: !1 + } +}), T = ({ + text: t, + width: r, + fontSize: h = "14px", + type: n = "visible", + withToolTip: p = !1, + iconOnly: o = !1 +}) => { + const [x, l] = c(!1), [s, g] = c(!1), b = () => { + navigator.clipboard.writeText(t.toString()); + }, f = () => { + b(), l(!0), setTimeout(() => l(!1), 3500); + }, a = () => g(!s), i = { + maxWidth: r ? typeof r == "number" ? `${r}px` : r : void 0, + fontSize: h, + width: o ? "max-content" : void 0 + }; + return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-4 min-w-max justify-between", style: i, children: [ + !o && /* @__PURE__ */ e.jsx("span", { className: N({ type: n, unblur: s }), style: { maxWidth: i.maxWidth }, children: p ? /* @__PURE__ */ e.jsx(d, { overlayInnerStyle: { width: "300px" }, title: t, placement: "bottom", children: /* @__PURE__ */ e.jsx("span", { className: "truncate", children: t }) }) : t }), + /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: x ? /* @__PURE__ */ e.jsx(d, { placement: "right", title: "Copied!", children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [ + /* @__PURE__ */ e.jsx(v, { className: "w-4 h-4 text-green-500" }), + n === "hiddenWithIcon" && (s ? /* @__PURE__ */ e.jsx( + m, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + ) : /* @__PURE__ */ e.jsx( + u, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + )) + ] }) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [ + /* @__PURE__ */ e.jsx( + y, + { + className: "w-4 h-4 text-muted-foreground hover:bg-gray-200 active:bg-gray-300 cursor-pointer", + "data-cy": "copy-button", + onClick: f + } + ), + n === "hiddenWithIcon" && (s ? /* @__PURE__ */ e.jsx( + m, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + ) : /* @__PURE__ */ e.jsx( + u, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + )) + ] }) }) + ] }); +}; +export { + T as default +}; diff --git a/dist/index.es59.js b/dist/index.es59.js new file mode 100644 index 00000000..93e7eee9 --- /dev/null +++ b/dist/index.es59.js @@ -0,0 +1,28 @@ +import { j as e } from "./index.es64.js"; +import { Fragment as u } from "react"; +import { Breadcrumb as h, BreadcrumbList as j, BreadcrumbItem as f, BreadcrumbLink as g, BreadcrumbSeparator as y } from "./index.es12.js"; +import b from "./index.es58.js"; +import { ChevronRight as v } from "lucide-react"; +const C = { + default: ["", "project", "environment"], + orgs: ["", "organization", "project"] +}, N = ({ activeKey: a, items: c, type: t, currentSlug: l }) => { + const o = t && ["default", "orgs"].includes(t) ? [...C[t]] : null; + return l && o && (o[2] = l), /* @__PURE__ */ e.jsx(h, { className: "mb-8 text-sm", "data-cy": "page-title", children: /* @__PURE__ */ e.jsx(j, { children: c.map((r, s) => { + const i = "key" in r ? r.key : s, p = a && a === i, n = o?.[s] ?? null, x = "copyText" in r && r.copyText && n, d = r.copyText && r.copyText.length < 15 && n === "organization" ? "Org" : n, m = /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-start group", children: [ + d && /* @__PURE__ */ e.jsx("span", { className: "absolute -top-3 left-0 text-[11px] font-semibold uppercase text-primary pointer-events-none select-none", children: d }), + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [ + /* @__PURE__ */ e.jsx("span", { className: p ? "text-foreground" : "text-muted-foreground", children: "navOnClick" in r && r.navOnClick ? /* @__PURE__ */ e.jsx("span", { onClick: r.navOnClick, className: "hover:underline cursor-pointer", children: r.title }) : r.title }), + x && /* @__PURE__ */ e.jsx("div", { className: "text-primary scale-90 ml-1", children: /* @__PURE__ */ e.jsx(b, { text: r.copyText, iconOnly: !0 }) }) + ] }) + ] }); + return /* @__PURE__ */ e.jsxs(u, { children: [ + /* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsx(g, { asChild: !0, children: m }) }), + s !== c.length - 1 && /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsx(v, { className: "w-4 h-4 text-muted-foreground" }) }) + ] }, i); + }) }) }); +}; +N.displayName = "Breadcrumb"; +export { + N as default +}; diff --git a/dist/index.es6.js b/dist/index.es6.js index 8d64478e..b6f66c48 100644 --- a/dist/index.es6.js +++ b/dist/index.es6.js @@ -1,12 +1,51 @@ -import o, { createContext as r, useContext as i } from "react"; -const t = r(void 0), u = ({ linkComponent: e, children: n }) => /* @__PURE__ */ o.createElement(t.Provider, { value: e }, n), c = () => { - const e = i(t); - if (!e) - throw new Error("useLinkComponent must be used within a LinkProvider"); - return e; -}; +import { j as e } from "./index.es64.js"; +import * as n from "@radix-ui/react-accordion"; +import { ChevronDownIcon as a } from "lucide-react"; +import { cn as i } from "./index.es65.js"; +function l({ ...t }) { + return /* @__PURE__ */ e.jsx(n.Root, { "data-slot": "accordion", ...t }); +} +function m({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + n.Item, + { + "data-slot": "accordion-item", + className: i("border-b last:border-b-0", t), + ...o + } + ); +} +function u({ className: t, children: o, ...r }) { + return /* @__PURE__ */ e.jsx(n.Header, { className: "flex", children: /* @__PURE__ */ e.jsxs( + n.Trigger, + { + "data-slot": "accordion-trigger", + className: i( + "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", + t + ), + ...r, + children: [ + o, + /* @__PURE__ */ e.jsx(a, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" }) + ] + } + ) }); +} +function f({ className: t, children: o, ...r }) { + return /* @__PURE__ */ e.jsx( + n.Content, + { + "data-slot": "accordion-content", + className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm", + ...r, + children: /* @__PURE__ */ e.jsx("div", { className: i("pt-0 pb-4", t), children: o }) + } + ); +} export { - t as LinkContext, - u as LinkProvider, - c as useLinkComponent + l as Accordion, + f as AccordionContent, + m as AccordionItem, + u as AccordionTrigger }; diff --git a/dist/index.es60.js b/dist/index.es60.js new file mode 100644 index 00000000..a88f9863 --- /dev/null +++ b/dist/index.es60.js @@ -0,0 +1,45 @@ +import { j as e } from "./index.es64.js"; +import { AlertDialog as s, AlertDialogTrigger as g, AlertDialogContent as h, AlertDialogHeader as d, AlertDialogTitle as p, AlertDialogDescription as x, AlertDialogFooter as j, AlertDialogCancel as D, AlertDialogAction as A } from "./index.es7.js"; +function m({ + title: o, + message: r, + cancelText: t, + onCancel: i, + confirmText: a, + onConfirm: l, + ...n +}) { + const c = "rest" in arguments && "open" in n && "onOpenChange" in n ? { open: n.open, onOpenChange: n.onOpenChange } : {}; + return /* @__PURE__ */ e.jsxs(s, { ...c, children: [ + /* @__PURE__ */ e.jsx(g, { asChild: !0, children: "children" in n ? n.children : null }), + /* @__PURE__ */ e.jsxs(h, { children: [ + /* @__PURE__ */ e.jsxs(d, { children: [ + /* @__PURE__ */ e.jsx(p, { children: o }), + /* @__PURE__ */ e.jsx(x, { children: r }) + ] }), + /* @__PURE__ */ e.jsxs(j, { children: [ + /* @__PURE__ */ e.jsx( + D, + { + onClick: () => { + i && i(); + }, + children: t ?? "Cancel" + } + ), + /* @__PURE__ */ e.jsx( + A, + { + onClick: () => { + l && l(); + }, + children: a ?? "Continue" + } + ) + ] }) + ] }) + ] }); +} +export { + m as default +}; diff --git a/dist/index.es61.js b/dist/index.es61.js new file mode 100644 index 00000000..8972f460 --- /dev/null +++ b/dist/index.es61.js @@ -0,0 +1,32 @@ +import { j as e } from "./index.es64.js"; +import { HelpCircle as c, Frown as x, Meh as h, Smile as o } from "lucide-react"; +import { HoverCard as g, HoverCardTrigger as u, HoverCardContent as j } from "./index.es26.js"; +import t from "./index.es55.js"; +const f = (s) => { + if (s.skeleton) + return /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 animate-pulse", children: Array.from({ length: 5 }).map((p, m) => /* @__PURE__ */ e.jsx("div", { className: "h-[80px] rounded-xl bg-muted" }, m)) }); + const { problems: n, critical: r, high: l, medium: a, low: i } = s, d = () => r >= 1 ? /* @__PURE__ */ e.jsx(x, { className: "h-6 w-6 text-rose-500" }) : l >= 1 ? /* @__PURE__ */ e.jsx(h, { className: "h-6 w-6 text-orange-500" }) : a >= 1 || i >= 1 ? /* @__PURE__ */ e.jsx(o, { className: "h-6 w-6 text-green-500" }) : /* @__PURE__ */ e.jsx(o, { className: "h-6 w-6 text-green-500" }); + return /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [ + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 text-center mx-auto w-fit", children: [ + /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: d() }), + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 text-xl font-semibold", children: [ + /* @__PURE__ */ e.jsx("h2", { children: "At a glance" }), + /* @__PURE__ */ e.jsxs(g, { children: [ + /* @__PURE__ */ e.jsx(u, { asChild: !0, children: /* @__PURE__ */ e.jsx(c, { className: "h-4 w-4 text-muted-foreground cursor-pointer" }) }), + /* @__PURE__ */ e.jsx(j, { className: "w-64 text-sm text-muted-foreground", children: "The summary of all the problems is shown here." }) + ] }) + ] }) + ] }), + /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4", children: [ + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Problems", content: n }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Critical", content: r }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "High", content: l }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Medium", content: a }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Low", content: i }) + ] }) + ] }); +}; +f.displayName = "LagoonProblemsOverview"; +export { + f as default +}; diff --git a/dist/index.es62.js b/dist/index.es62.js new file mode 100644 index 00000000..1f7e2e36 --- /dev/null +++ b/dist/index.es62.js @@ -0,0 +1,17 @@ +import { j as e } from "./index.es64.js"; +import { Select as i, SelectTrigger as u, SelectValue as x, SelectContent as j, SelectGroup as m, SelectLabel as S, SelectItem as s } from "./index.es38.js"; +function h(r) { + return Array.isArray(r) && "options" in r[0]; +} +function f({ placeholder: r, options: a, disabled: c, ...n }) { + return /* @__PURE__ */ e.jsxs(i, { disabled: c, ...n, children: [ + /* @__PURE__ */ e.jsx(u, { className: "w-[266px]", children: /* @__PURE__ */ e.jsx(x, { placeholder: r || "Make a selection" }) }), + !c && a && /* @__PURE__ */ e.jsx(j, { children: h(a) ? a.map((l) => /* @__PURE__ */ e.jsxs(m, { children: [ + /* @__PURE__ */ e.jsx(S, { children: l.label }), + l.options.map((t) => /* @__PURE__ */ e.jsx(s, { value: String(t.value), children: t.label }, t.value)) + ] }, l.label)) : a.map((l) => /* @__PURE__ */ e.jsx(s, { value: String(l.value), children: l.label }, l.value)) }) + ] }); +} +export { + f as default +}; diff --git a/dist/index.es63.js b/dist/index.es63.js new file mode 100644 index 00000000..db3488bf --- /dev/null +++ b/dist/index.es63.js @@ -0,0 +1,33 @@ +import { j as t } from "./index.es64.js"; +import { Label as o } from "./index.es29.js"; +import { Input as m } from "./index.es28.js"; +import { cva as i } from "class-variance-authority"; +const l = i("w-full rounded-lg bg-background", { + variants: { + hasIcon: { + true: "pl-8", + false: "" + } + } +}); +function f({ label: s, placeholder: e = "", icon: r, description: a, ...n }) { + return /* @__PURE__ */ t.jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [ + /* @__PURE__ */ t.jsx(o, { htmlFor: `${s}-input`, children: s }), + /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [ + r && /* @__PURE__ */ t.jsx("div", { className: "absolute left-2.5 top-1.5 h-2.5 w-2.5 text-muted-foreground", children: r }), + /* @__PURE__ */ t.jsx( + m, + { + className: l({ hasIcon: !!r }), + id: `${s}-input`, + placeholder: e, + ...n + } + ), + a && /* @__PURE__ */ t.jsx("p", { className: "font-sans font-normal text-sm leading-[1.5] tracking-[0%] text-muted-foreground", children: a }) + ] }) + ] }); +} +export { + f as default +}; diff --git a/dist/index.es64.js b/dist/index.es64.js new file mode 100644 index 00000000..911cb3b6 --- /dev/null +++ b/dist/index.es64.js @@ -0,0 +1,5 @@ +import { __require as r } from "./index.es79.js"; +var i = r(); +export { + i as j +}; diff --git a/dist/index.es65.js b/dist/index.es65.js new file mode 100644 index 00000000..a4783bbc --- /dev/null +++ b/dist/index.es65.js @@ -0,0 +1,8 @@ +import { clsx as o } from "clsx"; +import { twMerge as t } from "tailwind-merge"; +function n(...r) { + return t(o(r)); +} +export { + n as cn +}; diff --git a/dist/index.es66.js b/dist/index.es66.js new file mode 100644 index 00000000..5b54426a --- /dev/null +++ b/dist/index.es66.js @@ -0,0 +1,14 @@ +import * as o from "react"; +const e = 768; +function r() { + const [s, n] = o.useState(void 0); + return o.useEffect(() => { + const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => { + n(window.innerWidth < e); + }; + return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i); + }, []), !!s; +} +export { + r as useIsMobile +}; diff --git a/dist/index.es67.js b/dist/index.es67.js new file mode 100644 index 00000000..6578c92e --- /dev/null +++ b/dist/index.es67.js @@ -0,0 +1,4 @@ +import t from "./index.es52.js"; +export { + t as default +}; diff --git a/dist/index.es68.js b/dist/index.es68.js new file mode 100644 index 00000000..f013ded9 --- /dev/null +++ b/dist/index.es68.js @@ -0,0 +1,4 @@ +import e from "./index.es53.js"; +export { + e as default +}; diff --git a/dist/index.es69.js b/dist/index.es69.js new file mode 100644 index 00000000..82338c5d --- /dev/null +++ b/dist/index.es69.js @@ -0,0 +1,4 @@ +import o from "./index.es54.js"; +export { + o as default +}; diff --git a/dist/index.es7.js b/dist/index.es7.js index 2ca6f10d..5c0e8caf 100644 --- a/dist/index.es7.js +++ b/dist/index.es7.js @@ -1,49 +1,104 @@ -import * as t from "react"; -import * as o from "@radix-ui/react-accordion"; -import { ChevronDownIcon as l } from "lucide-react"; -import { cn as r } from "./index.es54.js"; -function b({ ...e }) { - return /* @__PURE__ */ t.createElement(o.Root, { "data-slot": "accordion", ...e }); -} -function s({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - o.Item, +import { j as e } from "./index.es64.js"; +import * as o from "@radix-ui/react-alert-dialog"; +import { cn as l } from "./index.es65.js"; +import { buttonVariants as r } from "./index.es13.js"; +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "alert-dialog", ...t }); +} +function u({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t }); +} +function n({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "alert-dialog-portal", ...t }); +} +function i({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + o.Overlay, + { + "data-slot": "alert-dialog-overlay", + className: l( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t + ), + ...a + } + ); +} +function m({ className: t, ...a }) { + return /* @__PURE__ */ e.jsxs(n, { children: [ + /* @__PURE__ */ e.jsx(i, {}), + /* @__PURE__ */ e.jsx( + o.Content, + { + "data-slot": "alert-dialog-content", + className: l( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", + t + ), + ...a + } + ) + ] }); +} +function f({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + "div", { - "data-slot": "accordion-item", - className: r("lib:border-b last:lib:border-b-0", e), - ...i + "data-slot": "alert-dialog-header", + className: l("flex flex-col gap-2 text-center sm:text-left", t), + ...a } ); } -function d({ className: e, children: i, ...n }) { - return /* @__PURE__ */ t.createElement(o.Header, { className: "lib:flex" }, /* @__PURE__ */ t.createElement( - o.Trigger, +function x({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + "div", { - "data-slot": "accordion-trigger", - className: r( - "focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 lib:flex lib:flex-1 lib:items-start lib:justify-between lib:gap-4 lib:rounded-md lib:py-4 lib:text-left lib:text-sm lib:font-medium lib:transition-all lib:outline-none hover:lib:underline focus-visible:lib:ring-[3px] disabled:lib:pointer-events-none disabled:lib:opacity-50 [&[data-state=open]>svg]:lib:rotate-180", - e - ), - ...n - }, - i, - /* @__PURE__ */ t.createElement(l, { className: "lib:text-muted-foreground lib:pointer-events-none lib:size-4 lib:shrink-0 lib:translate-y-0.5 lib:transition-transform lib:duration-200" }) - )); -} -function m({ className: e, children: i, ...n }) { - return /* @__PURE__ */ t.createElement( - o.Content, + "data-slot": "alert-dialog-footer", + className: l("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t), + ...a + } + ); +} +function p({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + o.Title, + { + "data-slot": "alert-dialog-title", + className: l("text-lg font-semibold", t), + ...a + } + ); +} +function j({ + className: t, + ...a +}) { + return /* @__PURE__ */ e.jsx( + o.Description, { - "data-slot": "accordion-content", - className: "data-[state=closed]:lib:animate-accordion-up data-[state=open]:lib:animate-accordion-down lib:overflow-hidden lib:text-sm", - ...n - }, - /* @__PURE__ */ t.createElement("div", { className: r("lib:pt-0 lib:pb-4", e) }, i) + "data-slot": "alert-dialog-description", + className: l("text-muted-foreground text-sm", t), + ...a + } ); } +function A({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(o.Action, { className: l(r(), t), ...a }); +} +function D({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(o.Cancel, { className: l(r({ variant: "outline" }), t), ...a }); +} export { - b as Accordion, - m as AccordionContent, - s as AccordionItem, - d as AccordionTrigger + g as AlertDialog, + A as AlertDialogAction, + D as AlertDialogCancel, + m as AlertDialogContent, + j as AlertDialogDescription, + x as AlertDialogFooter, + f as AlertDialogHeader, + i as AlertDialogOverlay, + n as AlertDialogPortal, + p as AlertDialogTitle, + u as AlertDialogTrigger }; diff --git a/dist/index.es70.js b/dist/index.es70.js new file mode 100644 index 00000000..e363f8fc --- /dev/null +++ b/dist/index.es70.js @@ -0,0 +1,4 @@ +import a from "./index.es55.js"; +export { + a as default +}; diff --git a/dist/index.es71.js b/dist/index.es71.js new file mode 100644 index 00000000..a2e62d03 --- /dev/null +++ b/dist/index.es71.js @@ -0,0 +1,4 @@ +import a from "./index.es56.js"; +export { + a as default +}; diff --git a/dist/index.es72.js b/dist/index.es72.js new file mode 100644 index 00000000..c01d9b74 --- /dev/null +++ b/dist/index.es72.js @@ -0,0 +1,4 @@ +import r from "./index.es57.js"; +export { + r as default +}; diff --git a/dist/index.es73.js b/dist/index.es73.js new file mode 100644 index 00000000..4fea9b1c --- /dev/null +++ b/dist/index.es73.js @@ -0,0 +1,4 @@ +import p from "./index.es58.js"; +export { + p as default +}; diff --git a/dist/index.es74.js b/dist/index.es74.js new file mode 100644 index 00000000..ea996eed --- /dev/null +++ b/dist/index.es74.js @@ -0,0 +1,4 @@ +import a from "./index.es59.js"; +export { + a as default +}; diff --git a/dist/index.es75.js b/dist/index.es75.js new file mode 100644 index 00000000..35d94421 --- /dev/null +++ b/dist/index.es75.js @@ -0,0 +1,4 @@ +import t from "./index.es60.js"; +export { + t as default +}; diff --git a/dist/index.es76.js b/dist/index.es76.js new file mode 100644 index 00000000..d5cbc057 --- /dev/null +++ b/dist/index.es76.js @@ -0,0 +1,4 @@ +import e from "./index.es61.js"; +export { + e as default +}; diff --git a/dist/index.es77.js b/dist/index.es77.js new file mode 100644 index 00000000..5cf75fc0 --- /dev/null +++ b/dist/index.es77.js @@ -0,0 +1,4 @@ +import e from "./index.es62.js"; +export { + e as default +}; diff --git a/dist/index.es78.js b/dist/index.es78.js new file mode 100644 index 00000000..4d2bfe11 --- /dev/null +++ b/dist/index.es78.js @@ -0,0 +1,4 @@ +import o from "./index.es63.js"; +export { + o as default +}; diff --git a/dist/index.es79.js b/dist/index.es79.js new file mode 100644 index 00000000..a942cc0d --- /dev/null +++ b/dist/index.es79.js @@ -0,0 +1,10 @@ +import { __module as e } from "./index.es80.js"; +import { __require as i } from "./index.es81.js"; +import { __require as t } from "./index.es82.js"; +var r; +function m() { + return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = t(), e.exports); +} +export { + m as __require +}; diff --git a/dist/index.es8.js b/dist/index.es8.js index ce012cb8..7cbe1543 100644 --- a/dist/index.es8.js +++ b/dist/index.es8.js @@ -1,101 +1,48 @@ -import * as l from "react"; -import * as a from "@radix-ui/react-alert-dialog"; -import { cn as i } from "./index.es54.js"; -import { buttonVariants as o } from "./index.es14.js"; -function c({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Root, { "data-slot": "alert-dialog", ...t }); -} -function b({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Trigger, { "data-slot": "alert-dialog-trigger", ...t }); -} -function r({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Portal, { "data-slot": "alert-dialog-portal", ...t }); -} -function n({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( - a.Overlay, - { - "data-slot": "alert-dialog-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t - ), - ...e - } - ); -} -function m({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(r, null, /* @__PURE__ */ l.createElement(n, null), /* @__PURE__ */ l.createElement( - a.Content, - { - "data-slot": "alert-dialog-content", - className: i( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg", - t - ), - ...e +import { j as e } from "./index.es64.js"; +import { cva as i } from "class-variance-authority"; +import { cn as a } from "./index.es65.js"; +const l = i( + "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", + { + variants: { + variant: { + default: "bg-card text-card-foreground", + destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90" + } + }, + defaultVariants: { + variant: "default" } - )); + } +); +function c({ className: t, variant: r, ...s }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "alert", role: "alert", className: a(l({ variant: r }), t), ...s }); } -function g({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( +function g({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx( "div", { - "data-slot": "alert-dialog-header", - className: i("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left", t), - ...e + "data-slot": "alert-title", + className: a("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", t), + ...r } ); } -function u({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( +function u({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx( "div", { - "data-slot": "alert-dialog-footer", - className: i("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end", t), - ...e - } - ); -} -function f({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( - a.Title, - { - "data-slot": "alert-dialog-title", - className: i("lib:text-lg lib:font-semibold", t), - ...e - } - ); -} -function p({ - className: t, - ...e -}) { - return /* @__PURE__ */ l.createElement( - a.Description, - { - "data-slot": "alert-dialog-description", - className: i("lib:text-muted-foreground lib:text-sm", t), - ...e + "data-slot": "alert-description", + className: a( + "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", + t + ), + ...r } ); } -function x({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(a.Action, { className: i(o(), t), ...e }); -} -function A({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(a.Cancel, { className: i(o({ variant: "outline" }), t), ...e }); -} export { - c as AlertDialog, - x as AlertDialogAction, - A as AlertDialogCancel, - m as AlertDialogContent, - p as AlertDialogDescription, - u as AlertDialogFooter, - g as AlertDialogHeader, - n as AlertDialogOverlay, - r as AlertDialogPortal, - f as AlertDialogTitle, - b as AlertDialogTrigger + c as Alert, + u as AlertDescription, + g as AlertTitle }; diff --git a/dist/index.es80.js b/dist/index.es80.js new file mode 100644 index 00000000..9d3562c2 --- /dev/null +++ b/dist/index.es80.js @@ -0,0 +1,4 @@ +var e = { exports: {} }; +export { + e as __module +}; diff --git a/dist/index.es81.js b/dist/index.es81.js new file mode 100644 index 00000000..4cd90c36 --- /dev/null +++ b/dist/index.es81.js @@ -0,0 +1,28 @@ +import { __exports as t } from "./index.es87.js"; +import R from "react"; +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var p; +function v() { + if (p) return t; + p = 1; + var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 }; + function u(o, r, i) { + var e, n = {}, _ = null, f = null; + i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref); + for (e in r) c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]); + if (o && o.defaultProps) for (e in r = o.defaultProps, r) n[e] === void 0 && (n[e] = r[e]); + return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current }; + } + return t.Fragment = l, t.jsx = u, t.jsxs = u, t; +} +export { + v as __require +}; diff --git a/dist/index.es82.js b/dist/index.es82.js new file mode 100644 index 00000000..b056656e --- /dev/null +++ b/dist/index.es82.js @@ -0,0 +1,604 @@ +import { __exports as m } from "./index.es88.js"; +import ir from "react"; +/** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var Ee; +function sr() { + return Ee ? m : (Ee = 1, process.env.NODE_ENV !== "production" && function() { + var ye = ir, k = Symbol.for("react.element"), Re = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), K = Symbol.for("react.provider"), N = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), _e = Symbol.for("react.offscreen"), G = Symbol.iterator, me = "@@iterator"; + function Te(e) { + if (e === null || typeof e != "object") + return null; + var r = G && e[G] || e[me]; + return typeof r == "function" ? r : null; + } + var h = ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function f(e) { + { + for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) + t[n - 1] = arguments[n]; + Ce("error", e, t); + } + } + function Ce(e, r, t) { + { + var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum(); + o !== "" && (r += "%s", t = t.concat([o])); + var u = t.map(function(i) { + return String(i); + }); + u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u); + } + } + var Oe = !1, Pe = !1, Se = !1, we = !1, je = !1, J; + J = Symbol.for("react.module.reference"); + function ke(e) { + return !!(typeof e == "string" || typeof e == "function" || e === T || e === B || je || e === U || e === x || e === D || we || e === _e || Oe || Pe || Se || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === O || e.$$typeof === K || e.$$typeof === N || e.$$typeof === C || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + e.$$typeof === J || e.getModuleId !== void 0)); + } + function xe(e, r, t) { + var n = e.displayName; + if (n) + return n; + var o = r.displayName || r.name || ""; + return o !== "" ? t + "(" + o + ")" : t; + } + function q(e) { + return e.displayName || "Context"; + } + function p(e) { + if (e == null) + return null; + if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") + return e.displayName || e.name || null; + if (typeof e == "string") + return e; + switch (e) { + case T: + return "Fragment"; + case Re: + return "Portal"; + case B: + return "Profiler"; + case U: + return "StrictMode"; + case x: + return "Suspense"; + case D: + return "SuspenseList"; + } + if (typeof e == "object") + switch (e.$$typeof) { + case N: + var r = e; + return q(r) + ".Consumer"; + case K: + var t = e; + return q(t._context) + ".Provider"; + case C: + return xe(e, e.render, "ForwardRef"); + case O: + var n = e.displayName || null; + return n !== null ? n : p(e.type) || "Memo"; + case F: { + var o = e, u = o._payload, i = o._init; + try { + return p(i(u)); + } catch { + return null; + } + } + } + return null; + } + var g = Object.assign, R = 0, z, X, H, Z, Q, ee, re; + function te() { + } + te.__reactDisabledLog = !0; + function De() { + { + if (R === 0) { + z = console.log, X = console.info, H = console.warn, Z = console.error, Q = console.group, ee = console.groupCollapsed, re = console.groupEnd; + var e = { + configurable: !0, + enumerable: !0, + value: te, + writable: !0 + }; + Object.defineProperties(console, { + info: e, + log: e, + warn: e, + error: e, + group: e, + groupCollapsed: e, + groupEnd: e + }); + } + R++; + } + } + function Fe() { + { + if (R--, R === 0) { + var e = { + configurable: !0, + enumerable: !0, + writable: !0 + }; + Object.defineProperties(console, { + log: g({}, e, { + value: z + }), + info: g({}, e, { + value: X + }), + warn: g({}, e, { + value: H + }), + error: g({}, e, { + value: Z + }), + group: g({}, e, { + value: Q + }), + groupCollapsed: g({}, e, { + value: ee + }), + groupEnd: g({}, e, { + value: re + }) + }); + } + R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + var A = h.ReactCurrentDispatcher, I; + function P(e, r, t) { + { + if (I === void 0) + try { + throw Error(); + } catch (o) { + var n = o.stack.trim().match(/\n( *(at )?)/); + I = n && n[1] || ""; + } + return ` +` + I + e; + } + } + var W = !1, S; + { + var Ae = typeof WeakMap == "function" ? WeakMap : Map; + S = new Ae(); + } + function ne(e, r) { + if (!e || W) + return ""; + { + var t = S.get(e); + if (t !== void 0) + return t; + } + var n; + W = !0; + var o = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var u; + u = A.current, A.current = null, De(); + try { + if (r) { + var i = function() { + throw Error(); + }; + if (Object.defineProperty(i.prototype, "props", { + set: function() { + throw Error(); + } + }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(i, []); + } catch (v) { + n = v; + } + Reflect.construct(e, [], i); + } else { + try { + i.call(); + } catch (v) { + n = v; + } + e.call(i.prototype); + } + } else { + try { + throw Error(); + } catch (v) { + n = v; + } + e(); + } + } catch (v) { + if (v && n && typeof v.stack == "string") { + for (var a = v.stack.split(` +`), c = n.stack.split(` +`), s = a.length - 1, l = c.length - 1; s >= 1 && l >= 0 && a[s] !== c[l]; ) + l--; + for (; s >= 1 && l >= 0; s--, l--) + if (a[s] !== c[l]) { + if (s !== 1 || l !== 1) + do + if (s--, l--, l < 0 || a[s] !== c[l]) { + var d = ` +` + a[s].replace(" at new ", " at "); + return e.displayName && d.includes("") && (d = d.replace("", e.displayName)), typeof e == "function" && S.set(e, d), d; + } + while (s >= 1 && l >= 0); + break; + } + } + } finally { + W = !1, A.current = u, Fe(), Error.prepareStackTrace = o; + } + var y = e ? e.displayName || e.name : "", b = y ? P(y) : ""; + return typeof e == "function" && S.set(e, b), b; + } + function Ie(e, r, t) { + return ne(e, !1); + } + function We(e) { + var r = e.prototype; + return !!(r && r.isReactComponent); + } + function w(e, r, t) { + if (e == null) + return ""; + if (typeof e == "function") + return ne(e, We(e)); + if (typeof e == "string") + return P(e); + switch (e) { + case x: + return P("Suspense"); + case D: + return P("SuspenseList"); + } + if (typeof e == "object") + switch (e.$$typeof) { + case C: + return Ie(e.render); + case O: + return w(e.type, r, t); + case F: { + var n = e, o = n._payload, u = n._init; + try { + return w(u(o), r, t); + } catch { + } + } + } + return ""; + } + var _ = Object.prototype.hasOwnProperty, ae = {}, ie = h.ReactDebugCurrentFrame; + function j(e) { + if (e) { + var r = e._owner, t = w(e.type, e._source, r ? r.type : null); + ie.setExtraStackFrame(t); + } else + ie.setExtraStackFrame(null); + } + function Ye(e, r, t, n, o) { + { + var u = Function.call.bind(_); + for (var i in e) + if (u(e, i)) { + var a = void 0; + try { + if (typeof e[i] != "function") { + var c = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw c.name = "Invariant Violation", c; + } + a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (s) { + a = s; + } + a && !(a instanceof Error) && (j(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), j(null)), a instanceof Error && !(a.message in ae) && (ae[a.message] = !0, j(o), f("Failed %s type: %s", t, a.message), j(null)); + } + } + } + var $e = Array.isArray; + function Y(e) { + return $e(e); + } + function Me(e) { + { + var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; + return t; + } + } + function Ve(e) { + try { + return oe(e), !1; + } catch { + return !0; + } + } + function oe(e) { + return "" + e; + } + function ue(e) { + if (Ve(e)) + return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), oe(e); + } + var se = h.ReactCurrentOwner, Le = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }, le, fe; + function Ue(e) { + if (_.call(e, "ref")) { + var r = Object.getOwnPropertyDescriptor(e, "ref").get; + if (r && r.isReactWarning) + return !1; + } + return e.ref !== void 0; + } + function Be(e) { + if (_.call(e, "key")) { + var r = Object.getOwnPropertyDescriptor(e, "key").get; + if (r && r.isReactWarning) + return !1; + } + return e.key !== void 0; + } + function Ke(e, r) { + typeof e.ref == "string" && se.current; + } + function Ne(e, r) { + { + var t = function() { + le || (le = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); + }; + t.isReactWarning = !0, Object.defineProperty(e, "key", { + get: t, + configurable: !0 + }); + } + } + function Ge(e, r) { + { + var t = function() { + fe || (fe = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); + }; + t.isReactWarning = !0, Object.defineProperty(e, "ref", { + get: t, + configurable: !0 + }); + } + } + var Je = function(e, r, t, n, o, u, i) { + var a = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: k, + // Built-in properties that belong on the element + type: e, + key: r, + ref: t, + props: i, + // Record the component responsible for creating this element. + _owner: u + }; + return a._store = {}, Object.defineProperty(a._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: !1 + }), Object.defineProperty(a, "_self", { + configurable: !1, + enumerable: !1, + writable: !1, + value: n + }), Object.defineProperty(a, "_source", { + configurable: !1, + enumerable: !1, + writable: !1, + value: o + }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; + }; + function qe(e, r, t, n, o) { + { + var u, i = {}, a = null, c = null; + t !== void 0 && (ue(t), a = "" + t), Be(r) && (ue(r.key), a = "" + r.key), Ue(r) && (c = r.ref, Ke(r, o)); + for (u in r) + _.call(r, u) && !Le.hasOwnProperty(u) && (i[u] = r[u]); + if (e && e.defaultProps) { + var s = e.defaultProps; + for (u in s) + i[u] === void 0 && (i[u] = s[u]); + } + if (a || c) { + var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; + a && Ne(i, l), c && Ge(i, l); + } + return Je(e, a, c, o, n, se.current, i); + } + } + var $ = h.ReactCurrentOwner, ce = h.ReactDebugCurrentFrame; + function E(e) { + if (e) { + var r = e._owner, t = w(e.type, e._source, r ? r.type : null); + ce.setExtraStackFrame(t); + } else + ce.setExtraStackFrame(null); + } + var M; + M = !1; + function V(e) { + return typeof e == "object" && e !== null && e.$$typeof === k; + } + function ve() { + { + if ($.current) { + var e = p($.current.type); + if (e) + return ` + +Check the render method of \`` + e + "`."; + } + return ""; + } + } + function ze(e) { + return ""; + } + var de = {}; + function Xe(e) { + { + var r = ve(); + if (!r) { + var t = typeof e == "string" ? e : e.displayName || e.name; + t && (r = ` + +Check the top-level render call using <` + t + ">."); + } + return r; + } + } + function pe(e, r) { + { + if (!e._store || e._store.validated || e.key != null) + return; + e._store.validated = !0; + var t = Xe(r); + if (de[t]) + return; + de[t] = !0; + var n = ""; + e && e._owner && e._owner !== $.current && (n = " It was passed a child from " + p(e._owner.type) + "."), E(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), E(null); + } + } + function ge(e, r) { + { + if (typeof e != "object") + return; + if (Y(e)) + for (var t = 0; t < e.length; t++) { + var n = e[t]; + V(n) && pe(n, r); + } + else if (V(e)) + e._store && (e._store.validated = !0); + else if (e) { + var o = Te(e); + if (typeof o == "function" && o !== e.entries) + for (var u = o.call(e), i; !(i = u.next()).done; ) + V(i.value) && pe(i.value, r); + } + } + } + function He(e) { + { + var r = e.type; + if (r == null || typeof r == "string") + return; + var t; + if (typeof r == "function") + t = r.propTypes; + else if (typeof r == "object" && (r.$$typeof === C || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + r.$$typeof === O)) + t = r.propTypes; + else + return; + if (t) { + var n = p(r); + Ye(t, e.props, "prop", n, e); + } else if (r.PropTypes !== void 0 && !M) { + M = !0; + var o = p(r); + f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown"); + } + typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + function Ze(e) { + { + for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { + var n = r[t]; + if (n !== "children" && n !== "key") { + E(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), E(null); + break; + } + } + e.ref !== null && (E(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), E(null)); + } + } + var be = {}; + function he(e, r, t, n, o, u) { + { + var i = ke(e); + if (!i) { + var a = ""; + (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var c = ze(); + c ? a += c : a += ve(); + var s; + e === null ? s = "null" : Y(e) ? s = "array" : e !== void 0 && e.$$typeof === k ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a); + } + var l = qe(e, r, t, o, u); + if (l == null) + return l; + if (i) { + var d = r.children; + if (d !== void 0) + if (n) + if (Y(d)) { + for (var y = 0; y < d.length; y++) + ge(d[y], e); + Object.freeze && Object.freeze(d); + } else + f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); + else + ge(d, e); + } + if (_.call(r, "key")) { + var b = p(e), v = Object.keys(r).filter(function(ar) { + return ar !== "key"; + }), L = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}"; + if (!be[b + L]) { + var nr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}"; + f(`A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`, L, b, nr, b), be[b + L] = !0; + } + } + return e === T ? Ze(l) : He(l), l; + } + } + function Qe(e, r, t) { + return he(e, r, t, !0); + } + function er(e, r, t) { + return he(e, r, t, !1); + } + var rr = er, tr = Qe; + m.Fragment = T, m.jsx = rr, m.jsxs = tr; + }(), m); +} +export { + sr as __require +}; diff --git a/dist/index.es83.js b/dist/index.es83.js new file mode 100644 index 00000000..08f5b560 --- /dev/null +++ b/dist/index.es83.js @@ -0,0 +1,43 @@ +import { j as e } from "./index.es64.js"; +import { ChevronsUpDown as m, Sun as l, Moon as d, LogOut as x } from "lucide-react"; +import { useTheme as h } from "next-themes"; +import { DropdownMenu as u, DropdownMenuTrigger as p, DropdownMenuContent as j, DropdownMenuItem as s } from "./index.es24.js"; +import { SidebarMenuButton as f } from "./index.es41.js"; +import g from "./index.es89.js"; +import { useLinkComponent as w } from "./index.es5.js"; +function v({ name: n, version: a, logo: r, signOutFn: o }) { + const { setTheme: t, theme: i } = h(), c = w(); + return /* @__PURE__ */ e.jsxs(u, { children: [ + /* @__PURE__ */ e.jsx(p, { className: "w-full", children: /* @__PURE__ */ e.jsxs( + f, + { + size: "lg", + className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground", + children: [ + /* @__PURE__ */ e.jsx("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg text-sidebar-primary-foreground", children: /* @__PURE__ */ e.jsx(c, { href: "/projects", children: r || /* @__PURE__ */ e.jsx("img", { src: g, className: "size-8" }) }) }), + /* @__PURE__ */ e.jsxs("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [ + /* @__PURE__ */ e.jsx("span", { className: "truncate font-semibold", children: n }), + /* @__PURE__ */ e.jsx("span", { className: "truncate text-xs", children: a }) + ] }), + /* @__PURE__ */ e.jsx(m, { className: "ml-auto h-4 w-4" }) + ] + } + ) }), + /* @__PURE__ */ e.jsxs(j, { className: "w-56", align: "start", side: "right", sideOffset: 4, style: { zIndex: 9999 }, children: [ + i === "dark" ? /* @__PURE__ */ e.jsxs(s, { onClick: () => t("light"), children: [ + /* @__PURE__ */ e.jsx(l, { className: "mr-2 h-4 w-4" }), + "Light" + ] }) : /* @__PURE__ */ e.jsxs(s, { onClick: () => t("dark"), children: [ + /* @__PURE__ */ e.jsx(d, { className: "mr-2 h-4 w-4" }), + "Dark" + ] }), + /* @__PURE__ */ e.jsxs(s, { onClick: () => o(), children: [ + /* @__PURE__ */ e.jsx(x, { className: "mr-2 h-4 w-4" }), + "Sign Out" + ] }) + ] }) + ] }); +} +export { + v as default +}; diff --git a/dist/index.es84.js b/dist/index.es84.js new file mode 100644 index 00000000..872440c2 --- /dev/null +++ b/dist/index.es84.js @@ -0,0 +1,20 @@ +import "./index.es64.js"; +import "react"; +import "react-highlight-words"; +const i = (r, n) => { + const a = (e) => e.charCodeAt(0) - 64, o = (e) => Math.round(a(e) * 11); + let t = o(r) % 256, l = o(n) % 256, c = Math.round((a(r) + a(n)) / 2 * 11) % 256; + return { + bgColor: `rgb(${t}, ${l}, ${c})`, + textColor: u(t, l, c) > 0.5 ? "#000000" : "#FFFFFF" + }; +}; +function u(r, n, a) { + const o = [r, n, a].map((t) => (t /= 255, t <= 0.03928 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4))); + return 0.2126 * o[0] + 0.7152 * o[1] + 0.0722 * o[2]; +} +const g = (r, n) => r.flatMap((t) => t.sectionItems).find((t) => n.startsWith(t.url))?.url || ""; +export { + i as genAvatarBackground, + g as getCurrentPath +}; diff --git a/dist/index.es85.js b/dist/index.es85.js new file mode 100644 index 00000000..b02adca5 --- /dev/null +++ b/dist/index.es85.js @@ -0,0 +1,10 @@ +import { j as s } from "./index.es64.js"; +import { cva as m } from "class-variance-authority"; +import { cn as n } from "./index.es65.js"; +const l = m("rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs"); +function f({ bgColor: r, textColor: t, className: e, children: o, ...a }) { + return /* @__PURE__ */ s.jsx("div", { ...a, className: n(l(), e), style: { backgroundColor: r, color: t }, children: o }); +} +export { + f as default +}; diff --git a/dist/index.es86.js b/dist/index.es86.js new file mode 100644 index 00000000..cf607423 --- /dev/null +++ b/dist/index.es86.js @@ -0,0 +1,135 @@ +import * as n from "react"; +import I from "./index.es121.js"; +import pe from "./index.es122.js"; +import fe from "./index.es123.js"; +import { useZIndex as de } from "./index.es124.js"; +import { getTransitionName as ue } from "./index.es125.js"; +import ve from "./index.es126.js"; +import { isFragment as ye, cloneElement as Ce } from "./index.es127.js"; +import { devUseWarning as ge } from "./index.es105.js"; +import be from "./index.es128.js"; +import "./index.es91.js"; +import { NoCompactStyle as Oe } from "./index.es129.js"; +import "./index.es92.js"; +import "./index.es93.js"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +import Pe from "./index.es130.js"; +import Ne from "./index.es131.js"; +import we from "./index.es132.js"; +import { parseColor as he } from "./index.es133.js"; +import { ConfigContext as xe } from "./index.es112.js"; +var Ae = function(e, p) { + var s = {}; + for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && p.indexOf(o) < 0 && (s[o] = e[o]); + if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++) + p.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (s[o[a]] = e[o[a]]); + return s; +}; +const Ee = /* @__PURE__ */ n.forwardRef((e, p) => { + var s, o; + const { + prefixCls: a, + openClassName: j, + getTooltipContainer: D, + overlayClassName: z, + color: R, + overlayInnerStyle: H, + children: f, + afterOpenChange: y, + afterVisibleChange: W, + destroyTooltipOnHide: C, + arrow: l = !0, + title: m, + overlay: g, + builtinPlacements: x, + arrowPointAtCenter: b = !1, + autoAdjustOverflow: $ = !0 + } = e, A = !!l, [, d] = Pe(), { + getPopupContainer: k, + getPrefixCls: E, + direction: F + } = n.useContext(xe), u = ge("Tooltip"), S = n.useRef(null), V = () => { + var t; + (t = S.current) === null || t === void 0 || t.forceAlign(); + }; + n.useImperativeHandle(p, () => ({ + forceAlign: V, + forcePopupAlign: () => { + u.deprecated(!1, "forcePopupAlign", "forceAlign"), V(); + } + })), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"]].forEach((t) => { + let [r, i] = t; + u.deprecated(!(r in e), r, i); + }), process.env.NODE_ENV !== "production" && u(!C || typeof C == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && u(!l || typeof l == "boolean" || !("arrowPointAtCenter" in l), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.")); + const [L, M] = fe(!1, { + value: (s = e.open) !== null && s !== void 0 ? s : e.visible, + defaultValue: (o = e.defaultOpen) !== null && o !== void 0 ? o : e.defaultVisible + }), O = !m && !g && m !== 0, U = (t) => { + var r, i; + M(O ? !1 : t), O || ((r = e.onOpenChange) === null || r === void 0 || r.call(e, t), (i = e.onVisibleChange) === null || i === void 0 || i.call(e, t)); + }, X = n.useMemo(() => { + var t, r; + let i = b; + return typeof l == "object" && (i = (r = (t = l.pointAtCenter) !== null && t !== void 0 ? t : l.arrowPointAtCenter) !== null && r !== void 0 ? r : b), x || ve({ + arrowPointAtCenter: i, + autoAdjustOverflow: $, + arrowWidth: A ? d.sizePopupArrow : 0, + borderRadius: d.borderRadius, + offset: d.marginXXS + }); + }, [b, l, x, d]), P = n.useMemo(() => m === 0 ? m : g || m || "", [g, m]), Z = /* @__PURE__ */ n.createElement(Oe, null, typeof P == "function" ? P() : P), { + getPopupContainer: B, + placement: Y = "top", + mouseEnterDelay: q = 0.1, + mouseLeaveDelay: G = 0.1, + overlayStyle: J, + rootClassName: K + } = e, _ = Ae(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName"]), c = E("tooltip", a), Q = E(), ee = e["data-popover-inject"]; + let N = L; + !("open" in e) && !("visible" in e) && O && (N = !1); + const w = /* @__PURE__ */ n.isValidElement(f) && !ye(f) ? f : /* @__PURE__ */ n.createElement("span", null, f), v = w.props, oe = !v.className || typeof v.className == "string" ? I(v.className, j || `${c}-open`) : v.className, [te, ne, re] = we(c, !ee), h = he(c, R), ae = h.arrowStyle, le = Object.assign(Object.assign({}, H), h.overlayStyle), ie = I(z, { + [`${c}-rtl`]: F === "rtl" + }, h.className, K, ne, re), [se, me] = de("Tooltip", _.zIndex), ce = /* @__PURE__ */ n.createElement(pe, Object.assign({}, _, { + zIndex: se, + showArrow: A, + placement: Y, + mouseEnterDelay: q, + mouseLeaveDelay: G, + prefixCls: c, + overlayClassName: ie, + overlayStyle: Object.assign(Object.assign({}, ae), J), + getTooltipContainer: B || D || k, + ref: S, + builtinPlacements: X, + overlay: Z, + visible: N, + onVisibleChange: U, + afterVisibleChange: y ?? W, + overlayInnerStyle: le, + arrowContent: /* @__PURE__ */ n.createElement("span", { + className: `${c}-arrow-content` + }), + motion: { + motionName: ue(Q, "zoom-big-fast", e.transitionName), + motionDeadline: 1e3 + }, + destroyTooltipOnHide: !!C + }), N ? Ce(w, { + className: oe + }) : w); + return te(/* @__PURE__ */ n.createElement(be.Provider, { + value: me + }, ce)); +}), T = Ee; +process.env.NODE_ENV !== "production" && (T.displayName = "Tooltip"); +T._InternalPanelDoNotUseOrYouWillBeFired = Ne; +export { + T as default +}; diff --git a/dist/index.es87.js b/dist/index.es87.js new file mode 100644 index 00000000..dde92541 --- /dev/null +++ b/dist/index.es87.js @@ -0,0 +1,4 @@ +var r = {}; +export { + r as __exports +}; diff --git a/dist/index.es88.js b/dist/index.es88.js new file mode 100644 index 00000000..f51b0164 --- /dev/null +++ b/dist/index.es88.js @@ -0,0 +1,4 @@ +var e = {}; +export { + e as __exports +}; diff --git a/dist/index.es89.js b/dist/index.es89.js new file mode 100644 index 00000000..833b6752 --- /dev/null +++ b/dist/index.es89.js @@ -0,0 +1,4 @@ +const e = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.8262%2015.3527L30.0001%2022.1537V8.61523L24.1268%2011.6919L17.8262%2015.3527Z'%20fill='url(%23paint0_linear_2241_6387)'/%3e%3cpath%20d='M30%2024.0036L16%2016L11.36%2018.2397L2%2024.0022L16.0087%2032L30%2024.0036Z'%20fill='url(%23paint1_linear_2241_6387)'/%3e%3cpath%20d='M16.6087%2016.4073V0L2%208.19701L2.00455%2024.6154L16.6087%2016.4073Z'%20fill='url(%23paint2_linear_2241_6387)'/%3e%3cpath%20d='M30.0001%207.99624L17.8262%201.23096V14.7694L30.0001%207.99624Z'%20fill='url(%23paint3_linear_2241_6387)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2241_6387'%20x1='22.6449'%20y1='19.9685'%20x2='31.8358'%20y2='10.3738'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.9'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2241_6387'%20x1='21.7839'%20y1='17.1815'%20x2='10.358'%20y2='30.9421'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.75'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2241_6387'%20x1='19.2776'%20y1='2.59742'%20x2='-0.127779'%20y2='22.5405'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.15'%20stop-color='%234578E6'/%3e%3cstop%20offset='0.95'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2241_6387'%20x1='17.8264'%20y1='8.0002'%20x2='30.0003'%20y2='8.0002'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.55'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"; +export { + e as default +}; diff --git a/dist/index.es9.js b/dist/index.es9.js index eaa094b7..c37cf093 100644 --- a/dist/index.es9.js +++ b/dist/index.es9.js @@ -1,48 +1,8 @@ -import * as l from "react"; -import { cva as a } from "class-variance-authority"; -import { cn as e } from "./index.es54.js"; -const s = a( - "lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current", - { - variants: { - variant: { - default: "lib:bg-card lib:text-card-foreground", - destructive: "lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90" - } - }, - defaultVariants: { - variant: "default" - } - } -); -function c({ className: t, variant: i, ...r }) { - return /* @__PURE__ */ l.createElement("div", { "data-slot": "alert", role: "alert", className: e(s({ variant: i }), t), ...r }); -} -function d({ className: t, ...i }) { - return /* @__PURE__ */ l.createElement( - "div", - { - "data-slot": "alert-title", - className: e("lib:col-start-2 lib:line-clamp-1 lib:min-h-4 lib:font-medium lib:tracking-tight", t), - ...i - } - ); -} -function o({ className: t, ...i }) { - return /* @__PURE__ */ l.createElement( - "div", - { - "data-slot": "alert-description", - className: e( - "lib:text-muted-foreground lib:col-start-2 lib:grid lib:justify-items-start lib:gap-1 lib:text-sm [&_p]:lib:leading-relaxed", - t - ), - ...i - } - ); +import { j as o } from "./index.es64.js"; +import * as i from "@radix-ui/react-aspect-ratio"; +function s({ ...t }) { + return /* @__PURE__ */ o.jsx(i.Root, { "data-slot": "aspect-ratio", ...t }); } export { - c as Alert, - o as AlertDescription, - d as AlertTitle + s as AspectRatio }; diff --git a/dist/index.es90.js b/dist/index.es90.js new file mode 100644 index 00000000..f081318f --- /dev/null +++ b/dist/index.es90.js @@ -0,0 +1,6 @@ +function e(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +export { + e as getDefaultExportFromCjs +}; diff --git a/dist/index.es91.js b/dist/index.es91.js new file mode 100644 index 00000000..9d29a292 --- /dev/null +++ b/dist/index.es91.js @@ -0,0 +1,296 @@ +import * as o from "react"; +import "./index.es92.js"; +import "./index.es93.js"; +import "./index.es94.js"; +import I from "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +import "./index.es98.js"; +import "./index.es99.js"; +import "./index.es100.js"; +import "./index.es101.js"; +import Xe from "./index.es102.js"; +import Ye from "./index.es103.js"; +import { merge as Ze } from "./index.es104.js"; +import j, { WarningContext as et } from "./index.es105.js"; +import tt from "./index.es106.js"; +import ot, { ANT_MARK as rt } from "./index.es107.js"; +import nt from "./index.es108.js"; +import it from "./index.es109.js"; +import { defaultTheme as st, DesignTokenContext as at } from "./index.es110.js"; +import ct from "./index.es111.js"; +import { ConfigContext as S, defaultIconPrefixCls as lt } from "./index.es112.js"; +import { ConfigConsumer as oo } from "./index.es112.js"; +import { registerTheme as mt } from "./index.es113.js"; +import { DisabledContextProvider as dt } from "./index.es114.js"; +import ft from "./index.es115.js"; +import pt from "./index.es116.js"; +import ut from "./index.es117.js"; +import gt from "./index.es118.js"; +import W, { SizeContextProvider as vt } from "./index.es119.js"; +import Ct from "./index.es120.js"; +var ht = function(e, s) { + var d = {}; + for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && s.indexOf(i) < 0 && (d[i] = e[i]); + if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, i = Object.getOwnPropertySymbols(e); l < i.length; l++) + s.indexOf(i[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[l]) && (d[i[l]] = e[i[l]]); + return d; +}; +let _ = !1; +process.env.NODE_ENV; +const xt = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"], Pt = "ant"; +let z; +function bt() { + return z || Pt; +} +function Ot(e) { + return Object.keys(e).some((s) => s.endsWith("Color")); +} +const yt = (e) => { + const { + prefixCls: s, + iconPrefixCls: d, + theme: i, + holderRender: l + } = e; + s !== void 0 && (z = s), i && Ot(i) && (process.env.NODE_ENV !== "production" && j(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), mt(bt(), i)); +}, Et = (e) => { + const { + children: s, + csp: d, + autoInsertSpaceInButton: i, + alert: l, + anchor: L, + form: f, + locale: b, + componentSize: k, + direction: R, + space: K, + virtual: F, + dropdownMatchSelectWidth: w, + popupMatchSelectWidth: O, + popupOverflow: G, + legacyLocale: B, + parentContext: p, + iconPrefixCls: $, + theme: M, + componentDisabled: T, + segmented: H, + statistic: q, + spin: J, + calendar: Q, + carousel: U, + cascader: X, + collapse: Y, + typography: Z, + checkbox: ee, + descriptions: te, + divider: oe, + drawer: re, + skeleton: ne, + steps: ie, + image: se, + layout: ae, + list: ce, + mentions: le, + modal: me, + progress: de, + result: fe, + slider: pe, + breadcrumb: ue, + menu: ge, + pagination: ve, + input: Ce, + textArea: he, + empty: xe, + badge: Pe, + radio: be, + rate: Oe, + switch: ye, + transfer: Ee, + avatar: _e, + message: je, + tag: Se, + table: ke, + card: we, + tabs: Me, + timeline: Te, + timePicker: Ne, + upload: Ve, + notification: Ae, + tree: De, + colorPicker: Ie, + datePicker: We, + rangePicker: ze, + flex: Le, + wave: Re, + dropdown: Ke, + warning: Fe, + tour: Ge, + floatButtonGroup: Be + } = e, N = o.useCallback((t, n) => { + const { + prefixCls: a + } = e; + if (n) + return n; + const c = a || p.getPrefixCls(""); + return t ? `${c}-${t}` : c; + }, [p.getPrefixCls, e.prefixCls]), v = $ || p.iconPrefixCls || lt, C = d || p.csp; + Ct(v, C); + const h = pt(M, p.theme, { + prefixCls: N("") + }); + process.env.NODE_ENV !== "production" && (_ = _ || !!h); + const y = { + csp: C, + autoInsertSpaceInButton: i, + alert: l, + anchor: L, + locale: b || B, + direction: R, + space: K, + virtual: F, + popupMatchSelectWidth: O ?? w, + popupOverflow: G, + getPrefixCls: N, + iconPrefixCls: v, + theme: h, + segmented: H, + statistic: q, + spin: J, + calendar: Q, + carousel: U, + cascader: X, + collapse: Y, + typography: Z, + checkbox: ee, + descriptions: te, + divider: oe, + drawer: re, + skeleton: ne, + steps: ie, + image: se, + input: Ce, + textArea: he, + layout: ae, + list: ce, + mentions: le, + modal: me, + progress: de, + result: fe, + slider: pe, + breadcrumb: ue, + menu: ge, + pagination: ve, + empty: xe, + badge: Pe, + radio: be, + rate: Oe, + switch: ye, + transfer: Ee, + avatar: _e, + message: je, + tag: Se, + table: ke, + card: we, + tabs: Me, + timeline: Te, + timePicker: Ne, + upload: Ve, + notification: Ae, + tree: De, + colorPicker: Ie, + datePicker: We, + rangePicker: ze, + flex: Le, + wave: Re, + dropdown: Ke, + warning: Fe, + tour: Ge, + floatButtonGroup: Be + }, x = Object.assign({}, p); + Object.keys(y).forEach((t) => { + y[t] !== void 0 && (x[t] = y[t]); + }), xt.forEach((t) => { + const n = e[t]; + n && (x[t] = n); + }); + const u = Ye(() => x, x, (t, n) => { + const a = Object.keys(t), c = Object.keys(n); + return a.length !== c.length || a.some((P) => t[P] !== n[P]); + }), $e = o.useMemo(() => ({ + prefixCls: v, + csp: C + }), [v, C]); + let r = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(gt, { + dropdownMatchSelectWidth: w + }), s); + const V = o.useMemo(() => { + var t, n, a, c; + return Ze(((t = it.Form) === null || t === void 0 ? void 0 : t.defaultValidateMessages) || {}, ((a = (n = u.locale) === null || n === void 0 ? void 0 : n.Form) === null || a === void 0 ? void 0 : a.defaultValidateMessages) || {}, ((c = u.form) === null || c === void 0 ? void 0 : c.validateMessages) || {}, f?.validateMessages || {}); + }, [u, f?.validateMessages]); + Object.keys(V).length > 0 && (r = /* @__PURE__ */ o.createElement(tt.Provider, { + value: V + }, r)), b && (r = /* @__PURE__ */ o.createElement(ot, { + locale: b, + _ANT_MARK__: rt + }, r)), r = /* @__PURE__ */ o.createElement(Xe.Provider, { + value: $e + }, r), k && (r = /* @__PURE__ */ o.createElement(vt, { + size: k + }, r)), r = /* @__PURE__ */ o.createElement(ut, null, r); + const He = o.useMemo(() => { + const t = h || {}, { + algorithm: n, + token: a, + components: c, + cssVar: P + } = t, qe = ht(t, ["algorithm", "token", "components", "cssVar"]), A = n && (!Array.isArray(n) || n.length > 0) ? I(n) : st, E = {}; + Object.entries(c || {}).forEach((Je) => { + let [Qe, Ue] = Je; + const m = Object.assign({}, Ue); + "algorithm" in m && (m.algorithm === !0 ? m.theme = A : (Array.isArray(m.algorithm) || typeof m.algorithm == "function") && (m.theme = I(m.algorithm)), delete m.algorithm), E[Qe] = m; + }); + const D = Object.assign(Object.assign({}, ct), a); + return Object.assign(Object.assign({}, qe), { + theme: A, + token: D, + components: E, + override: Object.assign({ + override: D + }, E), + cssVar: P + }); + }, [h]); + return M && (r = /* @__PURE__ */ o.createElement(at.Provider, { + value: He + }, r)), u.warning && (r = /* @__PURE__ */ o.createElement(et.Provider, { + value: u.warning + }, r)), T !== void 0 && (r = /* @__PURE__ */ o.createElement(dt, { + disabled: T + }, r)), /* @__PURE__ */ o.createElement(S.Provider, { + value: u + }, r); +}, g = (e) => { + const s = o.useContext(S), d = o.useContext(nt); + return /* @__PURE__ */ o.createElement(Et, Object.assign({ + parentContext: s, + legacyLocale: d + }, e)); +}; +g.ConfigContext = S; +g.SizeContext = W; +g.config = yt; +g.useConfig = ft; +Object.defineProperty(g, "SizeContext", { + get: () => (process.env.NODE_ENV !== "production" && j(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), W) +}); +process.env.NODE_ENV !== "production" && (g.displayName = "ConfigProvider"); +export { + oo as ConfigConsumer, + S as ConfigContext, + g as default, + lt as defaultIconPrefixCls, + Pt as defaultPrefixCls +}; diff --git a/dist/index.es92.js b/dist/index.es92.js new file mode 100644 index 00000000..3617cf8a --- /dev/null +++ b/dist/index.es92.js @@ -0,0 +1,10 @@ +import r from "./index.es202.js"; +import { extract as o, TOKEN_PREFIX as m } from "./index.es93.js"; +import { extract as a, CSS_VAR_PREFIX as e } from "./index.es217.js"; +import { extract as i, STYLE_PREFIX as p } from "./index.es218.js"; +import "./index.es94.js"; +import "./index.es95.js"; +import "./index.es96.js"; +import "./index.es97.js"; +var t; +t = {}, r(t, p, i), r(t, m, o), r(t, e, a); diff --git a/dist/index.es93.js b/dist/index.es93.js new file mode 100644 index 00000000..0b2fb246 --- /dev/null +++ b/dist/index.es93.js @@ -0,0 +1,92 @@ +import g from "./index.es171.js"; +import j from "./index.es144.js"; +import K from "./index.es156.js"; +import A from "./index.es219.js"; +import { updateCSS as L } from "./index.es163.js"; +import { useContext as M } from "react"; +import P, { ATTR_TOKEN as V, CSS_IN_JS_INSTANCE as b, ATTR_MARK as q } from "./index.es94.js"; +import { memoResult as H, flattenToken as S, token2key as I, toStyleStr as w } from "./index.es185.js"; +import { transformToken as F } from "./index.es220.js"; +import G from "./index.es221.js"; +var J = {}, Q = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", u = /* @__PURE__ */ new Map(); +function X(t) { + u.set(t, (u.get(t) || 0) + 1); +} +function Y(t, i) { + if (typeof document < "u") { + var o = document.querySelectorAll("style[".concat(V, '="').concat(t, '"]')); + o.forEach(function(n) { + if (n[b] === i) { + var e; + (e = n.parentNode) === null || e === void 0 || e.removeChild(n); + } + }); + } +} +var $ = 0; +function z(t, i) { + u.set(t, (u.get(t) || 0) - 1); + var o = Array.from(u.keys()), n = o.filter(function(e) { + var v = u.get(e) || 0; + return v <= 0; + }); + o.length - n.length > $ && n.forEach(function(e) { + Y(e, i), u.delete(e); + }); +} +var B = function(i, o, n, e) { + var v = n.getDerivativeToken(i), c = K(K({}, v), o); + return e && (c = e(c)), c; +}, U = "token"; +function ve(t, i) { + var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = M(P), e = n.cache.instanceId, v = n.container, c = o.salt, f = c === void 0 ? "" : c, k = o.override, l = k === void 0 ? J : k, y = o.formatToken, m = o.getComputedToken, r = o.cssVar, p = H(function() { + return Object.assign.apply(Object, [{}].concat(j(i))); + }, i), O = S(p), R = S(l), N = r ? S(r) : "", D = G(U, [f, t.id, O, R, N], function() { + var s, a = m ? m(p, l, t) : B(p, l, t, y), d = K({}, a), T = ""; + if (r) { + var _ = F(a, r.key, { + prefix: r.prefix, + ignore: r.ignore, + unitless: r.unitless, + preserve: r.preserve + }), C = g(_, 2); + a = C[0], T = C[1]; + } + var h = I(a, f); + a._tokenKey = h, d._tokenKey = I(d, f); + var E = (s = r?.key) !== null && s !== void 0 ? s : h; + a._themeKey = E, X(E); + var x = "".concat(Q, "-").concat(A(h)); + return a._hashId = x, [a, x, d, T, r?.key || ""]; + }, function(s) { + z(s[0]._themeKey, e); + }, function(s) { + var a = g(s, 4), d = a[0], T = a[3]; + if (r && T) { + var _ = L(T, A("css-variables-".concat(d._themeKey)), { + mark: q, + prepend: "queue", + attachTo: v, + priority: -999 + }); + _[b] = e, _.setAttribute(V, d._themeKey); + } + }); + return D; +} +var se = function(i, o, n) { + var e = g(i, 5), v = e[2], c = e[3], f = e[4], k = n || {}, l = k.plain; + if (!c) + return null; + var y = v._tokenKey, m = -999, r = { + "data-rc-order": "prependQueue", + "data-rc-priority": "".concat(m) + }, p = w(c, f, y, r, l); + return [m, y, p]; +}; +export { + U as TOKEN_PREFIX, + ve as default, + se as extract, + B as getComputedToken +}; diff --git a/dist/index.es94.js b/dist/index.es94.js new file mode 100644 index 00000000..597900b9 --- /dev/null +++ b/dist/index.es94.js @@ -0,0 +1,38 @@ +import * as h from "react"; +import "./index.es96.js"; +import u from "./index.es229.js"; +var s = "data-token-hash", o = "data-css-hash", A = "data-cache-path", t = "__cssinjs_instance__"; +function f() { + var r = Math.random().toString(12).slice(2); + if (typeof document < "u" && document.head && document.body) { + var i = document.body.querySelectorAll("style[".concat(o, "]")) || [], d = document.head.firstChild; + Array.from(i).forEach(function(a) { + a[t] = a[t] || r, a[t] === r && document.head.insertBefore(a, d); + }); + var c = {}; + Array.from(document.querySelectorAll("style[".concat(o, "]"))).forEach(function(a) { + var n = a.getAttribute(o); + if (c[n]) { + if (a[t] === r) { + var e; + (e = a.parentNode) === null || e === void 0 || e.removeChild(a); + } + } else + c[n] = !0; + }); + } + return new u(r); +} +var C = /* @__PURE__ */ h.createContext({ + hashPriority: "low", + cache: f(), + defaultCache: !0 +}); +export { + A as ATTR_CACHE_PATH, + o as ATTR_MARK, + s as ATTR_TOKEN, + t as CSS_IN_JS_INSTANCE, + f as createCache, + C as default +}; diff --git a/dist/index.es95.js b/dist/index.es95.js new file mode 100644 index 00000000..265c0216 --- /dev/null +++ b/dist/index.es95.js @@ -0,0 +1,10 @@ +import m from "./index.es97.js"; +import t from "./index.es230.js"; +var a = new m(); +function c(r) { + var e = Array.isArray(r) ? r : [r]; + return a.has(e) || a.set(e, new t(e)), a.get(e); +} +export { + c as default +}; diff --git a/dist/index.es96.js b/dist/index.es96.js new file mode 100644 index 00000000..03ecf1fb --- /dev/null +++ b/dist/index.es96.js @@ -0,0 +1,44 @@ +var t = {}, i = [], f = function(n) { + i.push(n); +}; +function d(e, n) { + if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { + var r = i.reduce(function(o, c) { + return c(o ?? "", "warning"); + }, n); + r && console.error("Warning: ".concat(r)); + } +} +function l(e, n) { + if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { + var r = i.reduce(function(o, c) { + return c(o ?? "", "note"); + }, n); + r && console.warn("Note: ".concat(r)); + } +} +function p() { + t = {}; +} +function a(e, n, r) { + !n && !t[r] && (e(!1, r), t[r] = !0); +} +function u(e, n) { + a(d, e, n); +} +function v(e, n) { + a(l, e, n); +} +u.preMessage = f; +u.resetWarned = p; +u.noteOnce = v; +export { + a as call, + u as default, + l as note, + v as noteOnce, + f as preMessage, + p as resetWarned, + d as warning, + u as warningOnce +}; diff --git a/dist/index.es97.js b/dist/index.es97.js new file mode 100644 index 00000000..c1d98824 --- /dev/null +++ b/dist/index.es97.js @@ -0,0 +1,104 @@ +import c from "./index.es171.js"; +import y from "./index.es192.js"; +import C from "./index.es193.js"; +import o from "./index.es202.js"; +function g(a, i) { + if (a.length !== i.length) + return !1; + for (var e = 0; e < a.length; e++) + if (a[e] !== i[e]) + return !1; + return !0; +} +var d = /* @__PURE__ */ function() { + function a() { + y(this, a), o(this, "cache", void 0), o(this, "keys", void 0), o(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0; + } + return C(a, [{ + key: "size", + value: function() { + return this.keys.length; + } + }, { + key: "internalGet", + value: function(e) { + var t, n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = { + map: this.cache + }; + return e.forEach(function(m) { + if (!s) + s = void 0; + else { + var l; + s = (l = s) === null || l === void 0 || (l = l.map) === null || l === void 0 ? void 0 : l.get(m); + } + }), (t = s) !== null && t !== void 0 && t.value && r && (s.value[1] = this.cacheCallTimes++), (n = s) === null || n === void 0 ? void 0 : n.value; + } + }, { + key: "get", + value: function(e) { + var t; + return (t = this.internalGet(e, !0)) === null || t === void 0 ? void 0 : t[0]; + } + }, { + key: "has", + value: function(e) { + return !!this.internalGet(e); + } + }, { + key: "set", + value: function(e, t) { + var n = this; + if (!this.has(e)) { + if (this.size() + 1 > a.MAX_CACHE_SIZE + a.MAX_CACHE_OFFSET) { + var r = this.keys.reduce(function(h, u) { + var f = c(h, 2), p = f[1]; + return n.internalGet(u)[1] < p ? [u, n.internalGet(u)[1]] : h; + }, [this.keys[0], this.cacheCallTimes]), s = c(r, 1), m = s[0]; + this.delete(m); + } + this.keys.push(e); + } + var l = this.cache; + e.forEach(function(h, u) { + if (u === e.length - 1) + l.set(h, { + value: [t, n.cacheCallTimes++] + }); + else { + var f = l.get(h); + f ? f.map || (f.map = /* @__PURE__ */ new Map()) : l.set(h, { + map: /* @__PURE__ */ new Map() + }), l = l.get(h).map; + } + }); + } + }, { + key: "deleteByPath", + value: function(e, t) { + var n = e.get(t[0]); + if (t.length === 1) { + var r; + return n.map ? e.set(t[0], { + map: n.map + }) : e.delete(t[0]), (r = n.value) === null || r === void 0 ? void 0 : r[0]; + } + var s = this.deleteByPath(n.map, t.slice(1)); + return (!n.map || n.map.size === 0) && !n.value && e.delete(t[0]), s; + } + }, { + key: "delete", + value: function(e) { + if (this.has(e)) + return this.keys = this.keys.filter(function(t) { + return !g(t, e); + }), this.deleteByPath(this.cache, e); + } + }]), a; +}(); +o(d, "MAX_CACHE_SIZE", 20); +o(d, "MAX_CACHE_OFFSET", 5); +export { + d as default, + g as sameDerivativeOption +}; diff --git a/dist/index.es98.js b/dist/index.es98.js new file mode 100644 index 00000000..bf597b68 --- /dev/null +++ b/dist/index.es98.js @@ -0,0 +1,15 @@ +import u from "./index.es156.js"; +import i from "./index.es173.js"; +import * as n from "react"; +var s = u({}, n), o = s.useInsertionEffect, c = function(e, t, f) { + n.useMemo(e, f), i(function() { + return t(!0); + }, f); +}, m = o ? function(r, e, t) { + return o(function() { + return r(), e(); + }, t); +} : c; +export { + m as default +}; diff --git a/dist/index.es99.js b/dist/index.es99.js new file mode 100644 index 00000000..717d882f --- /dev/null +++ b/dist/index.es99.js @@ -0,0 +1,27 @@ +import i from "./index.es156.js"; +import { warning as o } from "./index.es96.js"; +import * as u from "react"; +var s = i({}, u), c = s.useInsertionEffect, l = function(e) { + var n = [], r = !1; + function a(t) { + if (r) { + process.env.NODE_ENV !== "production" && o(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."); + return; + } + n.push(t); + } + return u.useEffect(function() { + return r = !1, function() { + r = !0, n.length && n.forEach(function(t) { + return t(); + }); + }; + }, e), a; +}, p = function() { + return function(e) { + e(); + }; +}, m = typeof c < "u" ? l : p; +export { + m as default +}; diff --git a/dist/package.json b/dist/package.json index bfa37323..8b262b7d 100644 --- a/dist/package.json +++ b/dist/package.json @@ -2,7 +2,7 @@ "name": "@uselagoon/ui-library", "author": "Amazeeio", "license": "Apache-2.0", - "version": "2.0.0", + "version": "2.0.1", "description": "Lagoon component library using Shadcn / tailwind", "main": "dist/index.cjs.js", "module": "dist/index.es.js", @@ -25,7 +25,7 @@ "bundle": "rm -rf ./dist && tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "copy": "cp package.json dist/ && cp dist/ui-library.css .storybook/globals.css", + "copy": "cp package.json dist/", "postinstall": "node postinstall.cjs", "format": "prettier --write .", "format:check": "prettier --check .", @@ -33,7 +33,7 @@ "build-storybook": "storybook build" }, "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -68,18 +68,19 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "peerDependencies": { "react": ">=18.2.0", @@ -89,6 +90,7 @@ "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -106,7 +108,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", diff --git a/dist/providers/NextLinkProvider.d.ts.map b/dist/providers/NextLinkProvider.d.ts.map index 9b746945..a74084f0 100644 --- a/dist/providers/NextLinkProvider.d.ts.map +++ b/dist/providers/NextLinkProvider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"NextLinkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NextLinkProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,WAAW,yCAAqD,CAAC;AAE9E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,oBAM5B,CAAC"} \ No newline at end of file +{"version":3,"file":"NextLinkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NextLinkProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,WAAW,yCAAqD,CAAC;AAE9E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,oBAM5B,CAAC"} \ No newline at end of file diff --git a/dist/providers/SkeletonConfigProvider.d.ts b/dist/providers/SkeletonConfigProvider.d.ts deleted file mode 100644 index 305a7dd0..00000000 --- a/dist/providers/SkeletonConfigProvider.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ReactNode } from 'react'; -/** - * A global config provider for react-loading-skeleton - * - * @param {Object} props - Component props. - * @param {ReactNode} props.children - The content to render within the skeleton wrapper. - * @param {string} [props.baseColor] - The base color of the skeleton. Optional, can be overridden. - * @param {string} [props.highlightColor] - The highlight color of the skeleton. Optional, can be overridden. - */ -declare const SkeletonConfigProvider: ({ children, baseColor, highlightColor, }: { - children: ReactNode; - baseColor?: string; - highlightColor?: string; -}) => import("react/jsx-dev-runtime").JSX.Element; -export default SkeletonConfigProvider; -//# sourceMappingURL=SkeletonConfigProvider.d.ts.map \ No newline at end of file diff --git a/dist/providers/SkeletonConfigProvider.d.ts.map b/dist/providers/SkeletonConfigProvider.d.ts.map deleted file mode 100644 index f53dd943..00000000 --- a/dist/providers/SkeletonConfigProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SkeletonConfigProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SkeletonConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,0CAA0C,CAAC;AAClD;;;;;;;GAOG;AACH,QAAA,MAAM,sBAAsB,GAAI,0CAI7B;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,gDAcA,CAAC;AAEF,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/dist/providers/ThemeProvider.d.ts b/dist/providers/ThemeProvider.d.ts new file mode 100644 index 00000000..10aca6e1 --- /dev/null +++ b/dist/providers/ThemeProvider.d.ts @@ -0,0 +1,3 @@ +import { ThemeProviderProps } from 'next-themes'; +export default function ThemeProvider({ children, ...props }: ThemeProviderProps): import("react/jsx-dev-runtime").JSX.Element; +//# sourceMappingURL=ThemeProvider.d.ts.map \ No newline at end of file diff --git a/dist/providers/ThemeProvider.d.ts.map b/dist/providers/ThemeProvider.d.ts.map new file mode 100644 index 00000000..ffd6444c --- /dev/null +++ b/dist/providers/ThemeProvider.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+CAE/E"} \ No newline at end of file diff --git a/dist/providers/__ContextWrapper.d.ts b/dist/providers/__ContextWrapper.d.ts deleted file mode 100644 index 5910d54a..00000000 --- a/dist/providers/__ContextWrapper.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { default as React } from 'react'; -interface Props { - children: React.ReactNode; - defaultScheme?: 'dark' | 'light'; -} -declare const UIThemeProvider: ({ children, defaultScheme }: Props) => import("react/jsx-dev-runtime").JSX.Element; -export default UIThemeProvider; -//# sourceMappingURL=__ContextWrapper.d.ts.map \ No newline at end of file diff --git a/dist/providers/__ContextWrapper.d.ts.map b/dist/providers/__ContextWrapper.d.ts.map deleted file mode 100644 index 5e4a728a..00000000 --- a/dist/providers/__ContextWrapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"__ContextWrapper.d.ts","sourceRoot":"","sources":["../../src/providers/__ContextWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,KAAK;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AACD,QAAA,MAAM,eAAe,GAAI,6BAA6B,KAAK,gDAM1D,CAAC;AAEF,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/styles/theme.d.ts b/dist/styles/theme.d.ts deleted file mode 100644 index fd99dd17..00000000 --- a/dist/styles/theme.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const darkTheme: { - colorScheme: string; - UI: {}; -}; -export declare const lightTheme: { - colorScheme: string; - UI: {}; -}; -//# sourceMappingURL=theme.d.ts.map \ No newline at end of file diff --git a/dist/styles/theme.d.ts.map b/dist/styles/theme.d.ts.map deleted file mode 100644 index 5c933ef1..00000000 --- a/dist/styles/theme.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAGtB,CAAC"} \ No newline at end of file diff --git a/dist/ui-library.css b/dist/ui-library.css index 059fa65a..5a5373ce 100644 --- a/dist/ui-library.css +++ b/dist/ui-library.css @@ -1 +1 @@ -/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--lib-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--lib-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--lib-color-black:#000;--lib-color-white:#fff;--lib-spacing:.25rem;--lib-text-xs:.75rem;--lib-text-xs--line-height:calc(1/.75);--lib-text-sm:.875rem;--lib-text-sm--line-height:calc(1.25/.875);--lib-text-base:1rem;--lib-text-base--line-height: 1.5 ;--lib-text-lg:1.125rem;--lib-text-lg--line-height:calc(1.75/1.125);--lib-font-weight-normal:400;--lib-font-weight-medium:500;--lib-font-weight-semibold:600;--lib-tracking-tight:-.025em;--lib-tracking-widest:.1em;--lib-radius-xs:.125rem;--lib-ease-in-out:cubic-bezier(.4,0,.2,1);--lib-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--lib-aspect-video:16/9;--lib-default-transition-duration:.15s;--lib-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--lib-default-font-family:var(--lib-font-sans);--lib-default-mono-font-family:var(--lib-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--lib-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--lib-default-font-feature-settings,normal);font-variation-settings:var(--lib-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--lib-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--lib-default-mono-font-feature-settings,normal);font-variation-settings:var(--lib-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.lib\:\@container\/card-header{container:card-header/inline-size}.lib\:pointer-events-none{pointer-events:none}.lib\:invisible{visibility:hidden}.lib\:sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lib\:absolute{position:absolute}.lib\:fixed{position:fixed}.lib\:relative{position:relative}.lib\:inset-0{inset:calc(var(--lib-spacing)*0)}.lib\:inset-x-0{inset-inline:calc(var(--lib-spacing)*0)}.lib\:inset-y-0{inset-block:calc(var(--lib-spacing)*0)}.lib\:-top-12{top:calc(var(--lib-spacing)*-12)}.lib\:top-0{top:calc(var(--lib-spacing)*0)}.lib\:top-1\.5{top:calc(var(--lib-spacing)*1.5)}.lib\:top-1\/2{top:50%}.lib\:top-3\.5{top:calc(var(--lib-spacing)*3.5)}.lib\:top-4{top:calc(var(--lib-spacing)*4)}.lib\:top-\[1px\]{top:1px}.lib\:top-\[50\%\]{top:50%}.lib\:top-\[60\%\]{top:60%}.lib\:top-full{top:100%}.lib\:-right-12{right:calc(var(--lib-spacing)*-12)}.lib\:right-0{right:calc(var(--lib-spacing)*0)}.lib\:right-1{right:calc(var(--lib-spacing)*1)}.lib\:right-2{right:calc(var(--lib-spacing)*2)}.lib\:right-3{right:calc(var(--lib-spacing)*3)}.lib\:right-4{right:calc(var(--lib-spacing)*4)}.lib\:-bottom-12{bottom:calc(var(--lib-spacing)*-12)}.lib\:bottom-0{bottom:calc(var(--lib-spacing)*0)}.lib\:-left-12{left:calc(var(--lib-spacing)*-12)}.lib\:left-0{left:calc(var(--lib-spacing)*0)}.lib\:left-1{left:calc(var(--lib-spacing)*1)}.lib\:left-1\/2{left:50%}.lib\:left-2{left:calc(var(--lib-spacing)*2)}.lib\:left-\[50\%\]{left:50%}.lib\:isolate{isolation:isolate}.lib\:z-10{z-index:10}.lib\:z-20{z-index:20}.lib\:z-50{z-index:50}.lib\:z-\[1\]{z-index:1}.lib\:col-start-2{grid-column-start:2}.lib\:row-span-2{grid-row:span 2/span 2}.lib\:row-start-1{grid-row-start:1}.lib\:-mx-1{margin-inline:calc(var(--lib-spacing)*-1)}.lib\:mx-2{margin-inline:calc(var(--lib-spacing)*2)}.lib\:mx-3\.5{margin-inline:calc(var(--lib-spacing)*3.5)}.lib\:mx-auto{margin-inline:auto}.lib\:my-1{margin-block:calc(var(--lib-spacing)*1)}.lib\:-mt-4{margin-top:calc(var(--lib-spacing)*-4)}.lib\:mt-1\.5{margin-top:calc(var(--lib-spacing)*1.5)}.lib\:mt-2{margin-top:calc(var(--lib-spacing)*2)}.lib\:mt-4{margin-top:calc(var(--lib-spacing)*4)}.lib\:mt-auto{margin-top:auto}.lib\:-ml-4{margin-left:calc(var(--lib-spacing)*-4)}.lib\:ml-1{margin-left:calc(var(--lib-spacing)*1)}.lib\:ml-auto{margin-left:auto}.lib\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.lib\:block{display:block}.lib\:flex{display:flex}.lib\:grid{display:grid}.lib\:hidden{display:none}.lib\:inline-flex{display:inline-flex}.lib\:field-sizing-content{field-sizing:content}.lib\:aspect-square{aspect-ratio:1}.lib\:aspect-video{aspect-ratio:var(--lib-aspect-video)}.lib\:size-2{width:calc(var(--lib-spacing)*2);height:calc(var(--lib-spacing)*2)}.lib\:size-2\.5{width:calc(var(--lib-spacing)*2.5);height:calc(var(--lib-spacing)*2.5)}.lib\:size-3{width:calc(var(--lib-spacing)*3);height:calc(var(--lib-spacing)*3)}.lib\:size-3\.5{width:calc(var(--lib-spacing)*3.5);height:calc(var(--lib-spacing)*3.5)}.lib\:size-4{width:calc(var(--lib-spacing)*4);height:calc(var(--lib-spacing)*4)}.lib\:size-7{width:calc(var(--lib-spacing)*7);height:calc(var(--lib-spacing)*7)}.lib\:size-8{width:calc(var(--lib-spacing)*8);height:calc(var(--lib-spacing)*8)}.lib\:size-9{width:calc(var(--lib-spacing)*9);height:calc(var(--lib-spacing)*9)}.lib\:size-full{width:100%;height:100%}.lib\:h-1\.5{height:calc(var(--lib-spacing)*1.5)}.lib\:h-2{height:calc(var(--lib-spacing)*2)}.lib\:h-2\.5{height:calc(var(--lib-spacing)*2.5)}.lib\:h-4{height:calc(var(--lib-spacing)*4)}.lib\:h-5{height:calc(var(--lib-spacing)*5)}.lib\:h-7{height:calc(var(--lib-spacing)*7)}.lib\:h-8{height:calc(var(--lib-spacing)*8)}.lib\:h-9{height:calc(var(--lib-spacing)*9)}.lib\:h-10{height:calc(var(--lib-spacing)*10)}.lib\:h-12{height:calc(var(--lib-spacing)*12)}.lib\:h-\[1\.15rem\]{height:1.15rem}.lib\:h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.lib\:h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.lib\:h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.lib\:h-auto{height:auto}.lib\:h-full{height:100%}.lib\:h-px{height:1px}.lib\:h-svh{height:100svh}.lib\:max-h-\(--radix-context-menu-content-available-height\){max-height:var(--radix-context-menu-content-available-height)}.lib\:max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.lib\:max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.lib\:max-h-\[300px\]{max-height:300px}.lib\:min-h-0{min-height:calc(var(--lib-spacing)*0)}.lib\:min-h-4{min-height:calc(var(--lib-spacing)*4)}.lib\:min-h-16{min-height:calc(var(--lib-spacing)*16)}.lib\:min-h-svh{min-height:100svh}.lib\:w-\(--sidebar-width\){width:var(--sidebar-width)}.lib\:w-2{width:calc(var(--lib-spacing)*2)}.lib\:w-2\.5{width:calc(var(--lib-spacing)*2.5)}.lib\:w-3{width:calc(var(--lib-spacing)*3)}.lib\:w-3\/4{width:75%}.lib\:w-4{width:calc(var(--lib-spacing)*4)}.lib\:w-5{width:calc(var(--lib-spacing)*5)}.lib\:w-8{width:calc(var(--lib-spacing)*8)}.lib\:w-9{width:calc(var(--lib-spacing)*9)}.lib\:w-64{width:calc(var(--lib-spacing)*64)}.lib\:w-72{width:calc(var(--lib-spacing)*72)}.lib\:w-\[100px\]{width:100px}.lib\:w-auto{width:auto}.lib\:w-fit{width:fit-content}.lib\:w-full{width:100%}.lib\:w-max{width:max-content}.lib\:w-px{width:1px}.lib\:max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.lib\:max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.lib\:max-w-max{max-width:max-content}.lib\:min-w-0{min-width:calc(var(--lib-spacing)*0)}.lib\:min-w-5{min-width:calc(var(--lib-spacing)*5)}.lib\:min-w-8{min-width:calc(var(--lib-spacing)*8)}.lib\:min-w-9{min-width:calc(var(--lib-spacing)*9)}.lib\:min-w-10{min-width:calc(var(--lib-spacing)*10)}.lib\:min-w-\[8rem\]{min-width:8rem}.lib\:min-w-\[12rem\]{min-width:12rem}.lib\:min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.lib\:flex-1{flex:1}.lib\:shrink-0{flex-shrink:0}.lib\:grow{flex-grow:1}.lib\:grow-0{flex-grow:0}.lib\:basis-full{flex-basis:100%}.lib\:caption-bottom{caption-side:bottom}.lib\:border-collapse{border-collapse:collapse}.lib\:origin-\(--radix-context-menu-content-transform-origin\){transform-origin:var(--radix-context-menu-content-transform-origin)}.lib\:origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.lib\:origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.lib\:origin-\(--radix-menubar-content-transform-origin\){transform-origin:var(--radix-menubar-content-transform-origin)}.lib\:origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.lib\:origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.lib\:origin-\(--radix-tooltip-content-transform-origin\){transform-origin:var(--radix-tooltip-content-transform-origin)}.lib\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-0\.5{--tw-translate-y:calc(var(--lib-spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:rotate-45{rotate:45deg}.lib\:rotate-90{rotate:90deg}.lib\:animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.lib\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:animate-pulse{animation:var(--lib-animate-pulse)}.lib\:cursor-default{cursor:default}.lib\:touch-none{touch-action:none}.lib\:scroll-my-1{scroll-margin-block:calc(var(--lib-spacing)*1)}.lib\:scroll-py-1{scroll-padding-block:calc(var(--lib-spacing)*1)}.lib\:list-none{list-style-type:none}.lib\:auto-rows-min{grid-auto-rows:min-content}.lib\:grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.lib\:grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.lib\:flex-col{flex-direction:column}.lib\:flex-col-reverse{flex-direction:column-reverse}.lib\:flex-row{flex-direction:row}.lib\:flex-wrap{flex-wrap:wrap}.lib\:items-center{align-items:center}.lib\:items-end{align-items:flex-end}.lib\:items-start{align-items:flex-start}.lib\:items-stretch{align-items:stretch}.lib\:justify-between{justify-content:space-between}.lib\:justify-center{justify-content:center}.lib\:justify-items-start{justify-items:start}.lib\:gap-1{gap:calc(var(--lib-spacing)*1)}.lib\:gap-1\.5{gap:calc(var(--lib-spacing)*1.5)}.lib\:gap-2{gap:calc(var(--lib-spacing)*2)}.lib\:gap-3{gap:calc(var(--lib-spacing)*3)}.lib\:gap-4{gap:calc(var(--lib-spacing)*4)}.lib\:gap-6{gap:calc(var(--lib-spacing)*6)}:where(.lib\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--lib-spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--lib-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}.lib\:gap-y-0\.5{row-gap:calc(var(--lib-spacing)*.5)}.lib\:self-start{align-self:flex-start}.lib\:justify-self-end{justify-self:flex-end}.lib\:overflow-auto{overflow:auto}.lib\:overflow-hidden{overflow:hidden}.lib\:overflow-x-auto{overflow-x:auto}.lib\:overflow-x-hidden{overflow-x:hidden}.lib\:overflow-y-auto{overflow-y:auto}.lib\:rounded-\[2px\]{border-radius:2px}.lib\:rounded-\[4px\]{border-radius:4px}.lib\:rounded-\[inherit\]{border-radius:inherit}.lib\:rounded-full{border-radius:3.40282e38px}.lib\:rounded-lg{border-radius:var(--radius)}.lib\:rounded-md{border-radius:calc(var(--radius) - 2px)}.lib\:rounded-none{border-radius:0}.lib\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.lib\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.lib\:rounded-xs{border-radius:var(--lib-radius-xs)}.lib\:rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.lib\:border{border-style:var(--tw-border-style);border-width:1px}.lib\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.lib\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.lib\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.lib\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.lib\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lib\:border-\(--color-border\){border-color:var(--color-border)}.lib\:border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.lib\:border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.lib\:border-input{border-color:var(--input)}.lib\:border-primary{border-color:var(--primary)}.lib\:border-sidebar-border{border-color:var(--sidebar-border)}.lib\:border-transparent{border-color:#0000}.lib\:border-t-transparent{border-top-color:#0000}.lib\:border-l-transparent{border-left-color:#0000}.lib\:bg-\(--color-bg\){background-color:var(--color-bg)}.lib\:bg-accent{background-color:var(--accent)}.lib\:bg-background{background-color:var(--background)}.lib\:bg-black\/50{background-color:var(--lib-color-black)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-black\/50{background-color:color-mix(in oklab,var(--lib-color-black)50%,transparent)}}.lib\:bg-border{background-color:var(--border)}.lib\:bg-card{background-color:var(--card)}.lib\:bg-destructive{background-color:var(--destructive)}.lib\:bg-foreground{background-color:var(--foreground)}.lib\:bg-muted,.lib\:bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.lib\:bg-popover{background-color:var(--popover)}.lib\:bg-primary,.lib\:bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.lib\:bg-secondary{background-color:var(--secondary)}.lib\:bg-sidebar{background-color:var(--sidebar)}.lib\:bg-sidebar-border{background-color:var(--sidebar-border)}.lib\:bg-transparent{background-color:#0000}.lib\:fill-current{fill:currentColor}.lib\:fill-primary{fill:var(--primary)}.lib\:p-0{padding:calc(var(--lib-spacing)*0)}.lib\:p-1{padding:calc(var(--lib-spacing)*1)}.lib\:p-2{padding:calc(var(--lib-spacing)*2)}.lib\:p-3{padding:calc(var(--lib-spacing)*3)}.lib\:p-4{padding:calc(var(--lib-spacing)*4)}.lib\:p-6{padding:calc(var(--lib-spacing)*6)}.lib\:p-\[3px\]{padding:3px}.lib\:p-px{padding:1px}.lib\:px-1{padding-inline:calc(var(--lib-spacing)*1)}.lib\:px-1\.5{padding-inline:calc(var(--lib-spacing)*1.5)}.lib\:px-2{padding-inline:calc(var(--lib-spacing)*2)}.lib\:px-2\.5{padding-inline:calc(var(--lib-spacing)*2.5)}.lib\:px-3{padding-inline:calc(var(--lib-spacing)*3)}.lib\:px-4{padding-inline:calc(var(--lib-spacing)*4)}.lib\:px-6{padding-inline:calc(var(--lib-spacing)*6)}.lib\:py-0\.5{padding-block:calc(var(--lib-spacing)*.5)}.lib\:py-1{padding-block:calc(var(--lib-spacing)*1)}.lib\:py-1\.5{padding-block:calc(var(--lib-spacing)*1.5)}.lib\:py-2{padding-block:calc(var(--lib-spacing)*2)}.lib\:py-3{padding-block:calc(var(--lib-spacing)*3)}.lib\:py-4{padding-block:calc(var(--lib-spacing)*4)}.lib\:py-6{padding-block:calc(var(--lib-spacing)*6)}.lib\:pt-0{padding-top:calc(var(--lib-spacing)*0)}.lib\:pt-1{padding-top:calc(var(--lib-spacing)*1)}.lib\:pt-3{padding-top:calc(var(--lib-spacing)*3)}.lib\:pt-4{padding-top:calc(var(--lib-spacing)*4)}.lib\:pr-2{padding-right:calc(var(--lib-spacing)*2)}.lib\:pr-2\.5{padding-right:calc(var(--lib-spacing)*2.5)}.lib\:pr-8{padding-right:calc(var(--lib-spacing)*8)}.lib\:pb-3{padding-bottom:calc(var(--lib-spacing)*3)}.lib\:pb-4{padding-bottom:calc(var(--lib-spacing)*4)}.lib\:pl-2{padding-left:calc(var(--lib-spacing)*2)}.lib\:pl-4{padding-left:calc(var(--lib-spacing)*4)}.lib\:pl-8{padding-left:calc(var(--lib-spacing)*8)}.lib\:text-center{text-align:center}.lib\:text-left{text-align:left}.lib\:align-middle{vertical-align:middle}.lib\:font-mono{font-family:var(--lib-font-mono)}.lib\:text-base{font-size:var(--lib-text-base);line-height:var(--tw-leading,var(--lib-text-base--line-height))}.lib\:text-lg{font-size:var(--lib-text-lg);line-height:var(--tw-leading,var(--lib-text-lg--line-height))}.lib\:text-sm{font-size:var(--lib-text-sm);line-height:var(--tw-leading,var(--lib-text-sm--line-height))}.lib\:text-xs{font-size:var(--lib-text-xs);line-height:var(--tw-leading,var(--lib-text-xs--line-height))}.lib\:text-\[0\.8rem\]{font-size:.8rem}.lib\:leading-none{--tw-leading:1;line-height:1}.lib\:font-medium{--tw-font-weight:var(--lib-font-weight-medium);font-weight:var(--lib-font-weight-medium)}.lib\:font-normal{--tw-font-weight:var(--lib-font-weight-normal);font-weight:var(--lib-font-weight-normal)}.lib\:font-semibold{--tw-font-weight:var(--lib-font-weight-semibold);font-weight:var(--lib-font-weight-semibold)}.lib\:tracking-tight{--tw-tracking:var(--lib-tracking-tight);letter-spacing:var(--lib-tracking-tight)}.lib\:tracking-widest{--tw-tracking:var(--lib-tracking-widest);letter-spacing:var(--lib-tracking-widest)}.lib\:text-balance{text-wrap:balance}.lib\:break-words{overflow-wrap:break-word}.lib\:whitespace-nowrap{white-space:nowrap}.lib\:text-accent-foreground{color:var(--accent-foreground)}.lib\:text-card-foreground{color:var(--card-foreground)}.lib\:text-current{color:currentColor}.lib\:text-destructive{color:var(--destructive)}.lib\:text-foreground{color:var(--foreground)}.lib\:text-muted-foreground{color:var(--muted-foreground)}.lib\:text-popover-foreground{color:var(--popover-foreground)}.lib\:text-primary{color:var(--primary)}.lib\:text-primary-foreground{color:var(--primary-foreground)}.lib\:text-secondary-foreground{color:var(--secondary-foreground)}.lib\:text-sidebar-foreground,.lib\:text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.lib\:text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.lib\:text-white{color:var(--lib-color-white)}.lib\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lib\:underline-offset-4{text-underline-offset:4px}.lib\:opacity-50{opacity:.5}.lib\:opacity-70{opacity:.7}.lib\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:ring-ring\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.lib\:ring-ring\/50{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.lib\:ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.lib\:ring-offset-background{--tw-ring-offset-color:var(--background)}.lib\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.lib\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.lib\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-none{transition-property:none}.lib\:duration-200{--tw-duration:.2s;transition-duration:.2s}.lib\:duration-300{--tw-duration:.3s;transition-duration:.3s}.lib\:duration-1000{--tw-duration:1s;transition-duration:1s}.lib\:ease-in-out{--tw-ease:var(--lib-ease-in-out);transition-timing-function:var(--lib-ease-in-out)}.lib\:ease-linear{--tw-ease:linear;transition-timing-function:linear}.lib\:fade-in-0{--tw-enter-opacity:0}.lib\:outline-none{--tw-outline-style:none;outline-style:none}.lib\:select-none{-webkit-user-select:none;user-select:none}.lib\:zoom-in-95{--tw-enter-scale:.95}.lib\:group-focus-within\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.lib\:group-hover\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):hover *){opacity:1}}.lib\:group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.lib\:group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--lib-spacing)*8)}.lib\:group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is(:where(.lib\:group\/drawer-content)[data-vaul-drawer-direction=bottom] *){display:block}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){top:100%}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--lib-spacing)*1.5)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){border-radius:calc(var(--radius) - 2px)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){background-color:var(--popover)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){color:var(--popover-foreground)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.lib\:peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.lib\:peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.lib\:peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.lib\:peer\/menu-button)[data-size=default]~*){top:calc(var(--lib-spacing)*1.5)}.lib\:peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.lib\:peer\/menu-button)[data-size=lg]~*){top:calc(var(--lib-spacing)*2.5)}.lib\:peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.lib\:peer\/menu-button)[data-size=sm]~*){top:calc(var(--lib-spacing)*1)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}} +/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-orange-500:oklch(70.5% .213 47.604);--color-green-500:oklch(72.3% .219 149.579);--color-rose-500:oklch(64.5% .246 16.439);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-widest:.1em;--leading-tight:1.25;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-border:var(--border)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-3{top:calc(var(--spacing)*-3)}.-top-12{top:calc(var(--spacing)*-12)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.-right-12{right:calc(var(--spacing)*-12)}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.-bottom-12{bottom:calc(var(--spacing)*-12)}.bottom-0{bottom:calc(var(--spacing)*0)}.-left-12{left:calc(var(--spacing)*-12)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-2\.5{left:calc(var(--spacing)*2.5)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing)*.5)}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-4{margin-top:calc(var(--spacing)*-4)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.-ml-4{margin-left:calc(var(--spacing)*-4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[1\.15rem\]{height:1.15rem}.h-\[44px\]{height:44px}.h-\[80px\]{height:80px}.h-\[108px\]{height:108px}.h-\[125px\]{height:125px}.h-\[140px\]{height:140px}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--radix-context-menu-content-available-height\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-svh{min-height:100svh}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-56{width:calc(var(--spacing)*56)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-\[44px\]{width:44px}.w-\[100px\]{width:100px}.w-\[266px\]{width:266px}.w-\[370px\]{width:370px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-\[160px\]{max-width:160px}.max-w-\[370px\]{max-width:370px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-max{max-width:max-content}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[24px\]{min-width:24px}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--radix-context-menu-content-transform-origin\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.origin-\(--radix-menubar-content-transform-origin\){transform-origin:var(--radix-menubar-content-transform-origin)}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--radix-tooltip-content-transform-origin\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-items-end{justify-items:end}.justify-items-start{justify-items:start}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\(--color-border\){border-color:var(--color-border)}.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-\(--color-bg\){background-color:var(--color-bg)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-foreground{background-color:var(--foreground)}.bg-muted,.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.fill-current{fill:currentColor}.fill-primary{fill:var(--primary)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[11px\]{font-size:11px}.leading-\[1\.4\]{--tw-leading:1.4;line-height:1.4}.leading-\[1\.5\]{--tw-leading:1.5;line-height:1.5}.leading-\[1\.25\]{--tw-leading:1.25;line-height:1.25}.leading-\[1\.75\]{--tw-leading:1.75;line-height:1.75}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\%\]{--tw-tracking:0%;letter-spacing:0%}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--accent-foreground)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-green-500{color:var(--color-green-500)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-500{color:var(--color-orange-500)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-rose-500{color:var(--color-rose-500)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-sidebar-primary-foreground{color:var(--sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-ring\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.ring-ring\/50{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-sm{--tw-blur:blur(var(--blur-sm));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.\!select-text{-webkit-user-select:text!important;user-select:text!important}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}.running{animation-play-state:running}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *){display:block}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *),.group-data-\[vaul-drawer-direction\=top\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=top] *){text-align:center}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing)*1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:calc(var(--radius) - 2px)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:calc(var(--spacing)*1)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:select-text:hover{-webkit-user-select:text;user-select:text}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.active\:bg-gray-300:active{background-color:var(--color-gray-300)}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-\[active\=true\]\:z-10[data-active=true]{z-index:10}.data-\[active\=true\]\:border-ring[data-active=true]{border-color:var(--ring)}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[active\=true\]\:ring-\[3px\][data-active=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}@media (hover:hover){.data-\[active\=true\]\:hover\:bg-accent[data-active=true]:hover{background-color:var(--accent)}}.data-\[active\=true\]\:focus\:bg-accent[data-active=true]:focus{background-color:var(--accent)}.data-\[active\=true\]\:aria-invalid\:border-destructive[data-active=true][aria-invalid=true]{border-color:var(--destructive)}.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[error\=true\]\:text-destructive[data-error=true]{color:var(--destructive)}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-1\.5[data-orientation=horizontal]{height:calc(var(--spacing)*1.5)}.data-\[orientation\=horizontal\]\:h-full[data-orientation=horizontal]{height:100%}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:min-h-44[data-orientation=vertical]{min-height:calc(var(--spacing)*44)}.data-\[orientation\=vertical\]\:w-1\.5[data-orientation=vertical]{width:calc(var(--spacing)*1.5)}.data-\[orientation\=vertical\]\:w-auto[data-orientation=vertical]{width:auto}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:calc(var(--spacing)*0)}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:calc(var(--spacing)*1)}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-accent[data-state=open]:hover{background-color:var(--accent)}.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}.data-\[state\=open\]\:focus\:bg-accent[data-state=open]:focus{background-color:var(--accent)}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[vaul-drawer-direction\=bottom\]\:inset-x-0[data-vaul-drawer-direction=bottom]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:bottom-0[data-vaul-drawer-direction=bottom]{bottom:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:mt-24[data-vaul-drawer-direction=bottom]{margin-top:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=bottom\]\:max-h-\[80vh\][data-vaul-drawer-direction=bottom]{max-height:80vh}.data-\[vaul-drawer-direction\=bottom\]\:rounded-t-lg[data-vaul-drawer-direction=bottom]{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.data-\[vaul-drawer-direction\=bottom\]\:border-t[data-vaul-drawer-direction=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[vaul-drawer-direction\=left\]\:inset-y-0[data-vaul-drawer-direction=left]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:left-0[data-vaul-drawer-direction=left]{left:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:w-3\/4[data-vaul-drawer-direction=left]{width:75%}.data-\[vaul-drawer-direction\=left\]\:border-r[data-vaul-drawer-direction=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[vaul-drawer-direction\=right\]\:inset-y-0[data-vaul-drawer-direction=right]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:right-0[data-vaul-drawer-direction=right]{right:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:w-3\/4[data-vaul-drawer-direction=right]{width:75%}.data-\[vaul-drawer-direction\=right\]\:border-l[data-vaul-drawer-direction=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[vaul-drawer-direction\=top\]\:inset-x-0[data-vaul-drawer-direction=top]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:top-0[data-vaul-drawer-direction=top]{top:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:mb-24[data-vaul-drawer-direction=top]{margin-bottom:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=top\]\:max-h-\[80vh\][data-vaul-drawer-direction=top]{max-height:80vh}.data-\[vaul-drawer-direction\=top\]\:rounded-b-lg[data-vaul-drawer-direction=top]{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.data-\[vaul-drawer-direction\=top\]\:border-b[data-vaul-drawer-direction=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}@media (min-width:40rem){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:calc(var(--spacing)*2.5)}.sm\:pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.sm\:pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.sm\:text-left{text-align:left}.data-\[vaul-drawer-direction\=left\]\:sm\:max-w-sm[data-vaul-drawer-direction=left],.data-\[vaul-drawer-direction\=right\]\:sm\:max-w-sm[data-vaul-drawer-direction=right]{max-width:var(--container-sm)}}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-1\.5{gap:calc(var(--spacing)*1.5)}.md\:text-left{text-align:left}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab,var(--input)80%,transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--muted-foreground)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:var(--border)}@supports (color:color-mix(in lab,red,red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:color-mix(in oklab,var(--border)50%,transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:var(--border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--muted)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:var(--border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing)*3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing)*3)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{rotate:90deg}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,auto))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,auto))))}to{height:0}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/package-lock.json b/package-lock.json index 11dc9c5d..f324c56f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@uselagoon/ui-library", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@uselagoon/ui-library", - "version": "2.0.0", + "version": "2.0.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -45,23 +45,25 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "devDependencies": { "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -79,7 +81,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", @@ -401,6 +403,12 @@ "node": ">=6.9.0" } }, + "node_modules/@date-fns/tz": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@date-fns/tz/-/tz-1.2.0.tgz", + "integrity": "sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==", + "license": "MIT" + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.25.5", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz", @@ -994,9 +1002,9 @@ "license": "MIT" }, "node_modules/@hookform/resolvers": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.0.1.tgz", - "integrity": "sha512-u/+Jp83luQNx9AdyW2fIPGY6Y7NG68eN2ZW8FOJYL+M0i4s49+refdJdOp/A9n9HFQtQs3HIDHQvX3ZET2o7YA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.1.1.tgz", + "integrity": "sha512-J/NVING3LMAEvexJkyTLjruSm7aOFx7QX21pzkiJfMoNG0wl5aFEjLTl7ay7IQb9EWY6AkrBy7tHL2Alijpdcg==", "license": "MIT", "dependencies": { "@standard-schema/utils": "^0.3.0" @@ -1154,6 +1162,18 @@ "node": ">=6.0.0" } }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", @@ -3203,6 +3223,17 @@ "storybook": "^9.0.0" } }, + "node_modules/@storybook/addon-styling-webpack": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@storybook/addon-styling-webpack/-/addon-styling-webpack-2.0.0.tgz", + "integrity": "sha512-N8jWhWnk3/nbL4P9zl0OEV/47P0Cxn/kPzSHjdAClyDYnqj9jI6upeLsraZgIV9Ro3QSeqeIloeXb1zMasWpOw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "storybook": "^9.0.0", + "webpack": "^5.0.0" + } + }, "node_modules/@storybook/builder-vite": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/@storybook/builder-vite/-/builder-vite-9.0.0.tgz", @@ -3351,6 +3382,12 @@ "tailwindcss": "4.1.8" } }, + "node_modules/@tailwindcss/node/node_modules/tailwindcss": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", + "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "license": "MIT" + }, "node_modules/@tailwindcss/oxide": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.8.tgz", @@ -3598,6 +3635,12 @@ "vite": "^5.2.0 || ^6" } }, + "node_modules/@tailwindcss/vite/node_modules/tailwindcss": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", + "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "license": "MIT" + }, "node_modules/@testing-library/dom": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", @@ -3805,6 +3848,30 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/eslint": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, "node_modules/@types/estree": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", @@ -4355,11 +4422,203 @@ "dev": true, "license": "MIT" }, + "node_modules/@webassemblyjs/ast": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true + }, "node_modules/acorn": { "version": "8.14.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, + "devOptional": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -4639,6 +4898,14 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "devOptional": true, + "license": "MIT", + "peer": true + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -4761,6 +5028,17 @@ "node": ">=18" } }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/class-variance-authority": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", @@ -4886,6 +5164,14 @@ "dev": true, "license": "MIT" }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "devOptional": true, + "license": "MIT", + "peer": true + }, "node_modules/compare-versions": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", @@ -5073,6 +5359,12 @@ "url": "https://github.com/sponsors/kossnocorp" } }, + "node_modules/date-fns-jalali": { + "version": "4.1.0-0", + "resolved": "https://registry.npmjs.org/date-fns-jalali/-/date-fns-jalali-4.1.0-0.tgz", + "integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==", + "license": "MIT" + }, "node_modules/de-indent": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", @@ -5272,6 +5564,14 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/esbuild": { "version": "0.25.5", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz", @@ -5583,6 +5883,17 @@ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "license": "MIT" }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, "node_modules/exsolve": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.5.tgz", @@ -5874,6 +6185,14 @@ "node": ">=10.13.0" } }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true + }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -6165,6 +6484,39 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/jiti": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", @@ -6220,6 +6572,14 @@ "dev": true, "license": "MIT" }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -6532,6 +6892,17 @@ "url": "https://github.com/sponsors/antonk52" } }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, "node_modules/local-pkg": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.1.tgz", @@ -6643,6 +7014,14 @@ "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==", "license": "MIT" }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -6680,6 +7059,31 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", @@ -6820,6 +7224,23 @@ "dev": true, "license": "MIT" }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/next-nprogress-bar": { + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/next-nprogress-bar/-/next-nprogress-bar-2.4.7.tgz", + "integrity": "sha512-OeveNQYFBhQhZ+RgrDnvHNUEQfHCmipymmD4AfAVE9pFV4jeWi7/nNK5f0lIk7ODRrtjyyr/n2YpkRbs5kUoMg==", + "license": "MIT", + "dependencies": { + "nprogress-v2": "^1.0.4" + } + }, "node_modules/next-themes": { "version": "0.4.6", "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz", @@ -6847,6 +7268,12 @@ "node": ">=0.10.0" } }, + "node_modules/nprogress-v2": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/nprogress-v2/-/nprogress-v2-1.1.10.tgz", + "integrity": "sha512-MypWLNIPIM07SS0bAc/oac0vhVFz9vAHm7d1sj//Pnf3J03LQ3CuWrlDteIu6exq0fIvkDJ6tUDRWLaifsIt5w==", + "license": "MIT" + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -7322,6 +7749,17 @@ ], "license": "MIT" }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", @@ -7335,17 +7773,34 @@ } }, "node_modules/react-day-picker": { - "version": "8.10.1", - "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.10.1.tgz", - "integrity": "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.7.0.tgz", + "integrity": "sha512-urlK4C9XJZVpQ81tmVgd2O7lZ0VQldZeHzNejbwLWZSkzHH498KnArT0EHNfKBOWwKc935iMLGZdxXPRISzUxQ==", "license": "MIT", + "dependencies": { + "@date-fns/tz": "1.2.0", + "date-fns": "4.1.0", + "date-fns-jalali": "4.1.0-0" + }, + "engines": { + "node": ">=18" + }, "funding": { "type": "individual", "url": "https://github.com/sponsors/gpbl" }, "peerDependencies": { - "date-fns": "^2.28.0 || ^3.0.0", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": ">=16.8.0" + } + }, + "node_modules/react-day-picker/node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" } }, "node_modules/react-docgen": { @@ -7407,9 +7862,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.56.4", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.4.tgz", - "integrity": "sha512-Rob7Ftz2vyZ/ZGsQZPaRdIefkgOSrQSPXfqBdvOPwJfoGnjwRJUs7EM7Kc1mcoDv3NOtqBzPGbcMB8CGn9CKgw==", + "version": "7.58.1", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.58.1.tgz", + "integrity": "sha512-Lml/KZYEEFfPhUVgE0RdCVpnC4yhW+PndRhbiTtdvSlQTL8IfVR+iQkBjLIvmmc6+GGoVeM11z37ktKFPAb0FA==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -7495,9 +7950,9 @@ } }, "node_modules/react-resizable-panels": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.2.tgz", - "integrity": "sha512-j4RNII75fnHkLnbsTb5G5YsDvJsSEZrJK2XSF2z0Tc2jIonYlIVir/Yh/5LvcUFCfs1HqrMAoiBFmIrRjC4XnA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.3.tgz", + "integrity": "sha512-7HA8THVBHTzhDK4ON0tvlGXyMAJN1zBeRpuyyremSikgYh2ku6ltD7tsGQOcXx4NKPrZtYCm/5CBr+dkruTGQw==", "license": "MIT", "peerDependencies": { "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc", @@ -7611,9 +8066,9 @@ } }, "node_modules/recharts": { - "version": "2.15.3", - "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.3.tgz", - "integrity": "sha512-EdOPzTwcFSuqtvkDoaM5ws/Km1+WTAO2eizL7rqiG0V2UVhTnz0m7J2i0CjVPUCdEkZImaWvXLbZDS2H5t6GFQ==", + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz", + "integrity": "sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==", "license": "MIT", "dependencies": { "clsx": "^2.0.0", @@ -7794,6 +8249,28 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "peer": true + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -7803,6 +8280,86 @@ "loose-envify": "^1.1.0" } }, + "node_modules/schema-utils": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", + "integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -7813,6 +8370,17 @@ "semver": "bin/semver.js" } }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -7863,9 +8431,9 @@ } }, "node_modules/sonner": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.3.tgz", - "integrity": "sha512-njQ4Hht92m0sMqqHVDL32V2Oun9W1+PHO9NDv9FHfJjT3JT22IG4Jpo3FPQy+mouRKCXFWO+r67v6MrHX2zeIA==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.5.tgz", + "integrity": "sha512-YwbHQO6cSso3HBXlbCkgrgzDNIhws14r4MO87Ofy+cV2X7ES4pOoAK3+veSmVTvqNx1BWUxlhPmZzP00Crk2aQ==", "license": "MIT", "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", @@ -7876,7 +8444,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, + "devOptional": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -7891,6 +8459,18 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -8129,9 +8709,9 @@ } }, "node_modules/tailwindcss": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", - "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.10.tgz", + "integrity": "sha512-P3nr6WkvKV/ONsTzj6Gb57sWPMX29EPNPopo7+FcpkQaNsrNpZ1pv8QmrYI2RqEKD7mlGqLnGovlcYnBK0IqUA==", "license": "MIT" }, "node_modules/tapable": { @@ -8169,6 +8749,62 @@ "node": ">=18" } }, + "node_modules/terser": { + "version": "5.43.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.43.1.tgz", + "integrity": "sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==", + "devOptional": true, + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.14.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.14", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz", + "integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "jest-worker": "^27.4.5", + "schema-utils": "^4.3.0", + "serialize-javascript": "^6.0.2", + "terser": "^5.31.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, "node_modules/thenby": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/thenby/-/thenby-1.3.4.tgz", @@ -8276,9 +8912,9 @@ "license": "0BSD" }, "node_modules/tw-animate-css": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.0.tgz", - "integrity": "sha512-jrJ0XenzS9KVuDThJDvnhalbl4IYiMQ/XvpA0a2FL8KmlK+6CSMviO7ROY/I7z1NnUs5NnDhlM6fXmF40xPxzw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.4.tgz", + "integrity": "sha512-dd1Ht6/YQHcNbq0znIT6dG8uhO7Ce+VIIhZUhjsryXsMPJQz3bZg7Q2eNzLwipb25bRZslGb2myio5mScd1TFg==", "dev": true, "license": "MIT", "funding": { @@ -8609,6 +9245,81 @@ "dev": true, "license": "MIT" }, + "node_modules/watchpack": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", + "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.99.9", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.99.9.tgz", + "integrity": "sha512-brOPwM3JnmOa+7kd3NsmOUOwbDAj8FT9xDsG3IW0MgbN9yZV7Oi/s/+MNQ/EcSMqw7qfoRyXPoeEWT8zLVdVGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.14.0", + "browserslist": "^4.24.0", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.11", + "watchpack": "^2.4.1", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", + "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/webpack-virtual-modules": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", @@ -8616,6 +9327,32 @@ "dev": true, "license": "MIT" }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -8857,9 +9594,9 @@ } }, "node_modules/zod": { - "version": "3.25.34", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", - "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", + "version": "3.25.67", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", + "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index bfa37323..8b262b7d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@uselagoon/ui-library", "author": "Amazeeio", "license": "Apache-2.0", - "version": "2.0.0", + "version": "2.0.1", "description": "Lagoon component library using Shadcn / tailwind", "main": "dist/index.cjs.js", "module": "dist/index.es.js", @@ -25,7 +25,7 @@ "bundle": "rm -rf ./dist && tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "copy": "cp package.json dist/ && cp dist/ui-library.css .storybook/globals.css", + "copy": "cp package.json dist/", "postinstall": "node postinstall.cjs", "format": "prettier --write .", "format:check": "prettier --check .", @@ -33,7 +33,7 @@ "build-storybook": "storybook build" }, "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -68,18 +68,19 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "peerDependencies": { "react": ">=18.2.0", @@ -89,6 +90,7 @@ "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -106,7 +108,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", diff --git a/src/_util/helpers.tsx b/src/_util/helpers.tsx index 29718678..4ebeac12 100644 --- a/src/_util/helpers.tsx +++ b/src/_util/helpers.tsx @@ -1,3 +1,4 @@ +import { NavItems } from '@/components/sidenav/Sidenav'; import React, { ReactNode } from 'react'; import Highlighter from 'react-highlight-words'; @@ -23,3 +24,38 @@ export const highlightTextInElement = (element: ReactNode, searchString: string, return element; }; + +export const genAvatarBackground = ( + firstLetter: string, + secondLetter: string, +): { bgColor: string; textColor: string } => { + const alphaPosition = (letter: string): number => letter.charCodeAt(0) - 64; + const getColorIndex = (letter: string): number => Math.round(alphaPosition(letter) * 11); + + let red = getColorIndex(firstLetter) % 256; + let green = getColorIndex(secondLetter) % 256; + let blue = Math.round(((alphaPosition(firstLetter) + alphaPosition(secondLetter)) / 2) * 11) % 256; + + return { + bgColor: `rgb(${red}, ${green}, ${blue})`, + textColor: getLuminance(red, green, blue) > 0.5 ? '#000000' : '#FFFFFF', + }; +}; + +function getLuminance(r: number, g: number, b: number) { + // normalize the RGB values to the range [0, 1] + const a = [r, g, b].map((v) => { + v /= 255; + return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); + }); + + // calculate the luminance. reference: https://www.w3.org/WAI/GL/wiki/Relative_luminance + return 0.2126 * a[0] + 0.7152 * a[1] + 0.0722 * a[2]; +} + +export const getCurrentPath = (navLinks: NavItems, pathname: string): string => { + const allItems = navLinks.flatMap((section) => section.sectionItems); + + const match = allItems.find((item) => pathname.startsWith(item.url)); + return match?.url || ''; +}; diff --git a/src/components/AvatarBubble/AvatarBubble.tsx b/src/components/AvatarBubble/AvatarBubble.tsx new file mode 100644 index 00000000..8997c70f --- /dev/null +++ b/src/components/AvatarBubble/AvatarBubble.tsx @@ -0,0 +1,18 @@ +import { cva } from 'class-variance-authority'; +import { HTMLAttributes } from 'react'; +import { cn } from '@/lib/utils'; + +const avatarBubble = cva('rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs'); + +type AvatarBubbleProps = HTMLAttributes & { + bgColor: string; + textColor: string; +}; + +export default function AvatarBubble({ bgColor, textColor, className, children, ...props }: AvatarBubbleProps) { + return ( +
+ {children} +
+ ); +} diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx new file mode 100644 index 00000000..f73f57ad --- /dev/null +++ b/src/components/Breadcrumb/Breadcrumb.tsx @@ -0,0 +1,104 @@ +'use client'; + +import React, { FC, Fragment, MouseEventHandler, ReactElement, ReactNode } from 'react'; +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbList, + BreadcrumbLink, + BreadcrumbSeparator, +} from '@/components/ui/breadcrumb'; +import CopyToClipboard from '../CopyToClipboard'; +import { ChevronRight } from 'lucide-react'; + +type Component> = ReactElement; +type LinkComponent = Component<'a'>; + +const decorators = { + default: ['', 'project', 'environment'], + orgs: ['', 'organization', 'project'], +}; + +export interface BasicProps { + items: ( + | { + title: string | ReactNode; + navOnClick?: MouseEventHandler; + key?: string | number; + copyText?: string; + } + | { + title: LinkComponent; + key?: string | number; + copyText?: string; + } + )[]; + activeKey?: string | number; +} + +export type UIBreadcrumbProps = BasicProps & + ({ type: 'default'; currentSlug?: never } | { type: 'orgs'; currentSlug?: 'project' | 'user' | 'group' }); + +const UIBreadcrumb: FC = ({ activeKey, items, type, currentSlug }) => { + const decoratorList = type && ['default', 'orgs'].includes(type) ? [...decorators[type]] : null; + if (currentSlug && decoratorList) { + decoratorList[2] = currentSlug; + } + + return ( + + + {items.map((item, idx) => { + const key = 'key' in item ? item.key : idx; + const isActive = activeKey && activeKey === key; + const titleDecorator = decoratorList?.[idx] ?? null; + const shouldCopy = 'copyText' in item && item.copyText && titleDecorator; + const isSmall = item.copyText && item.copyText.length < 15; + const decorator = isSmall && titleDecorator === 'organization' ? 'Org' : titleDecorator; + + const content = ( +
+ {decorator && ( + + {decorator} + + )} +
+ + {'navOnClick' in item && item.navOnClick ? ( + + {item.title} + + ) : ( + item.title + )} + + {shouldCopy && ( +
+ +
+ )} +
+
+ ); + + return ( + + + {content} + + {idx !== items.length - 1 && ( + + + + )} + + ); + })} +
+
+ ); +}; + +UIBreadcrumb.displayName = 'Breadcrumb'; +export default UIBreadcrumb; diff --git a/src/components/Breadcrumb/index.tsx b/src/components/Breadcrumb/index.tsx new file mode 100644 index 00000000..38c6daf7 --- /dev/null +++ b/src/components/Breadcrumb/index.tsx @@ -0,0 +1,3 @@ +import { default as Breadcrumb } from './Breadcrumb'; + +export default Breadcrumb; diff --git a/src/components/Checkbox/Checkbox.tsx b/src/components/Checkbox/Checkbox.tsx new file mode 100644 index 00000000..56a33aba --- /dev/null +++ b/src/components/Checkbox/Checkbox.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Checkbox } from '../ui/checkbox'; +import { Label } from '../ui/label'; + +type CheckboxProps = React.ComponentProps & { + label: string; + id: string; +}; + +export default function CheckboxWithLabel({ label, id, ...rest }: CheckboxProps) { + return ( + <> +
+ + +
+ + ); +} + +CheckboxWithLabel.displayName = 'CheckboxWithLabel'; diff --git a/src/components/Checkbox/index.tsx b/src/components/Checkbox/index.tsx new file mode 100644 index 00000000..44d64872 --- /dev/null +++ b/src/components/Checkbox/index.tsx @@ -0,0 +1,3 @@ +import { default as Checkbox } from './Checkbox'; + +export default Checkbox; diff --git a/src/components/CopyToClipboard/CopyToClipboard.tsx b/src/components/CopyToClipboard/CopyToClipboard.tsx new file mode 100644 index 00000000..62ef8866 --- /dev/null +++ b/src/components/CopyToClipboard/CopyToClipboard.tsx @@ -0,0 +1,134 @@ +import React, { useState } from 'react'; +import { Copy, Check, Eye, EyeOff } from 'lucide-react'; +import { Tooltip } from 'antd'; +import { cva } from 'class-variance-authority'; + +export interface ClipboardProps { + text: string | number; + type?: 'visible' | 'hidden' | 'hiddenWithIcon' | 'alwaysHidden'; + width?: number | string; + fontSize?: string; + withToolTip?: boolean; + iconOnly?: boolean; +} + +const textVariants = cva('truncate transition-all duration-300', { + variants: { + type: { + visible: '', + hidden: 'blur-sm select-none hover:blur-0 hover:select-text', + hiddenWithIcon: '', + alwaysHidden: 'blur-sm select-none', + }, + unblur: { + true: '!blur-0 !select-text', + false: '', + }, + }, + compoundVariants: [ + { + type: 'hiddenWithIcon', + unblur: false, + className: 'blur-sm select-none', + }, + { + type: 'hiddenWithIcon', + unblur: true, + className: '!blur-0 !select-text', + }, + ], + defaultVariants: { + type: 'visible', + unblur: false, + }, +}); + +const CopyToClipboard: React.FC = ({ + text, + width, + fontSize = '14px', + type = 'visible', + withToolTip = false, + iconOnly = false, +}) => { + const [copied, setCopied] = useState(false); + const [manualUnblur, setManualUnblur] = useState(false); + + const copyFn = () => { + navigator.clipboard.writeText(text.toString()); + }; + + const handleCopy = () => { + copyFn(); + setCopied(true); + setTimeout(() => setCopied(false), 3500); + }; + + const handleBlurToggle = () => setManualUnblur(!manualUnblur); + + const containerStyle: React.CSSProperties = { + maxWidth: width ? (typeof width === 'number' ? `${width}px` : width) : undefined, + fontSize, + width: iconOnly ? 'max-content' : undefined, + }; + + return ( +
+ {!iconOnly && ( + + {withToolTip ? ( + + {text} + + ) : ( + text + )} + + )} + +
+ {!copied ? ( + <> + + {type === 'hiddenWithIcon' && + (manualUnblur ? ( + + ) : ( + + ))} + + ) : ( + +
+ + {type === 'hiddenWithIcon' && + (manualUnblur ? ( + + ) : ( + + ))} +
+
+ )} +
+
+ ); +}; + +export default CopyToClipboard; diff --git a/src/components/CopyToClipboard/index.tsx b/src/components/CopyToClipboard/index.tsx new file mode 100644 index 00000000..8bd50eac --- /dev/null +++ b/src/components/CopyToClipboard/index.tsx @@ -0,0 +1,3 @@ +import { default as CopyToClipboard } from './CopyToClipboard'; + +export default CopyToClipboard; diff --git a/src/components/DetailStat/DetailStat.tsx b/src/components/DetailStat/DetailStat.tsx new file mode 100644 index 00000000..f162d04d --- /dev/null +++ b/src/components/DetailStat/DetailStat.tsx @@ -0,0 +1,56 @@ +import React, { isValidElement, ReactNode } from 'react'; +import StatCard from '../StatCard'; +import { cva } from 'class-variance-authority'; + +type StatProps = { + title: string; + value: ReactNode; + fullWidth?: boolean; + lowercaseValue?: boolean; + capitalizeValue?: boolean; +}; + +const valueText = cva('font-sans font-normal text-lg leading-normal tracking-normal text-right', { + variants: { + transform: { + lowercase: 'lowercase', + capitalize: 'capitalize', + none: '', + }, + }, + defaultVariants: { + transform: 'none', + }, +}); + +function formatToCypressString(input: string) { + return input.toLowerCase().replace(/\s+/g, '-'); +} + +const DetailStat: React.FC = ({ title, value, lowercaseValue, capitalizeValue }) => { + const isElement = isValidElement(value); + + let textTransform = ''; + if (lowercaseValue) textTransform = 'lowercase'; + if (capitalizeValue) textTransform = 'capitalize'; + + const content = isElement ? ( +
+ {value} +
+ ) : ( + + {value} + + ); + + return ; +}; + +export default DetailStat; +export type { StatProps }; diff --git a/src/components/DetailStat/index.tsx b/src/components/DetailStat/index.tsx new file mode 100644 index 00000000..f6fe30b0 --- /dev/null +++ b/src/components/DetailStat/index.tsx @@ -0,0 +1,3 @@ +import { default as DetailStat } from './DetailStat'; + +export default DetailStat; diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx new file mode 100644 index 00000000..3576cc97 --- /dev/null +++ b/src/components/Input/Input.tsx @@ -0,0 +1,41 @@ +import { Label } from '@/components/ui/label'; +import { Input as ShadInput } from '@/components/ui/input'; +import React, { ComponentProps, ReactNode } from 'react'; +import { cva } from 'class-variance-authority'; + +type InputProps = ComponentProps & { + label: string; + placeholder?: string; + description?: string; + icon?: ReactNode; +}; +const inputVariants = cva('w-full rounded-lg bg-background', { + variants: { + hasIcon: { + true: 'pl-8', + false: '', + }, + }, +}); + +export default function Input({ label, placeholder = '', icon, description, ...rest }: InputProps) { + return ( +
+ +
+ {icon &&
{icon}
} + + {description && ( +

+ {description} +

+ )} +
+
+ ); +} diff --git a/src/components/Input/index.tsx b/src/components/Input/index.tsx new file mode 100644 index 00000000..2dab0cb2 --- /dev/null +++ b/src/components/Input/index.tsx @@ -0,0 +1,3 @@ +import { default as Input } from './Input'; + +export default Input; diff --git a/src/components/KeyFactCard/KeyFactCard.tsx b/src/components/KeyFactCard/KeyFactCard.tsx new file mode 100644 index 00000000..a734f0a7 --- /dev/null +++ b/src/components/KeyFactCard/KeyFactCard.tsx @@ -0,0 +1,17 @@ +import React, { ReactElement } from 'react'; +import StatCard from '../StatCard'; + +type KeyFactProps = { name: string; category: string; value: string; img: ReactElement }; + +export default function KeyFactCard({ name, category, value, img }: KeyFactProps) { + const KeyFactContent = ( +
+ {img} + {name} +
+ {value} +
+ ); + + return ; +} diff --git a/src/components/KeyFactCard/index.tsx b/src/components/KeyFactCard/index.tsx new file mode 100644 index 00000000..a5016038 --- /dev/null +++ b/src/components/KeyFactCard/index.tsx @@ -0,0 +1,3 @@ +import { default as KeyFactCard } from './KeyFactCard'; + +export default KeyFactCard; diff --git a/src/components/Notification/Notification.tsx b/src/components/Notification/Notification.tsx new file mode 100644 index 00000000..3be90fe4 --- /dev/null +++ b/src/components/Notification/Notification.tsx @@ -0,0 +1,72 @@ +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, + AlertDialogTrigger, +} from '@/components/ui/alert-dialog'; +import { Button } from '@/components/ui/button'; +import { ReactNode } from 'react'; + +type NotificationProps = { + title: string; + message: string; + cancelText?: string; + onCancel?: () => void; + confirmText?: string; + onConfirm?: () => void; +} & ( + | { children?: ReactNode } + | { + open?: boolean; + onOpenChange?: (open: boolean) => void; + } +); + +export default function Notification({ + title, + message, + cancelText, + onCancel, + confirmText, + onConfirm, + ...rest +}: NotificationProps) { + const alertDialogProps = + 'rest' in arguments && 'open' in rest && 'onOpenChange' in rest + ? { open: rest.open, onOpenChange: rest.onOpenChange } + : {}; + + return ( + + {'children' in rest ? rest.children : null} + + + + {title} + {message} + + + { + onCancel && onCancel(); + }} + > + {cancelText ?? 'Cancel'} + + { + onConfirm && onConfirm(); + }} + > + {confirmText ?? 'Continue'} + + + + + ); +} diff --git a/src/components/Notification/index.tsx b/src/components/Notification/index.tsx new file mode 100644 index 00000000..8da32913 --- /dev/null +++ b/src/components/Notification/index.tsx @@ -0,0 +1,3 @@ +import { default as Notification } from './Notification'; + +export default Notification; diff --git a/src/components/ProblemsOverview/ProblemsOverview.tsx b/src/components/ProblemsOverview/ProblemsOverview.tsx new file mode 100644 index 00000000..2a740999 --- /dev/null +++ b/src/components/ProblemsOverview/ProblemsOverview.tsx @@ -0,0 +1,72 @@ +import React from 'react'; +import { Frown, Meh, Smile, HelpCircle } from 'lucide-react'; +import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'; + +import StatCard from '../StatCard'; + +type LagoonProblemsOverviewProps = { + problems: number; + critical: number; + high: number; + medium: number; + low: number; + skeleton?: false; +}; +type Props = + | LagoonProblemsOverviewProps + | { + skeleton: true; + }; + +const LagoonProblemsOverview: React.FC = (props) => { + if (props.skeleton) { + return ( +
+ {Array.from({ length: 5 }).map((_, i) => ( +
+ ))} +
+ ); + } + + const { problems, critical, high, medium, low } = props; + + const getStatusIcon = () => { + if (critical >= 1) return ; + if (high >= 1) return ; + if (medium >= 1 || low >= 1) return ; + + return ; + }; + + return ( +
+
+
{getStatusIcon()}
+
+

At a glance

+ + + + + + The summary of all the problems is shown here. + + +
+
+ +
+ + + + + +
+
+ ); +}; + +LagoonProblemsOverview.displayName = 'LagoonProblemsOverview'; +export default LagoonProblemsOverview; +export type { LagoonProblemsOverviewProps }; diff --git a/src/components/ProblemsOverview/index.tsx b/src/components/ProblemsOverview/index.tsx new file mode 100644 index 00000000..b986d08c --- /dev/null +++ b/src/components/ProblemsOverview/index.tsx @@ -0,0 +1,3 @@ +import { default as ProblemsOverview } from './ProblemsOverview'; + +export default ProblemsOverview; diff --git a/src/components/RootLayout/RootLayout.tsx b/src/components/RootLayout/RootLayout.tsx new file mode 100644 index 00000000..3b0c150a --- /dev/null +++ b/src/components/RootLayout/RootLayout.tsx @@ -0,0 +1,31 @@ +import React, { ReactNode } from 'react'; +import { SidebarProvider, SidebarTrigger } from '../ui/sidebar'; +import Sidenav from '../sidenav'; +import ThemeProvider from '@/providers/ThemeProvider'; +import { AppInfo, UserInfo } from '../sidenav/Sidenav'; + +interface RootLayoutProps { + userInfo: UserInfo; + appInfo: AppInfo; + children: ReactNode; + signOutFn: () => Promise; +} + +//** +// Root layout wrapping the whole app with the side navigation +// */ + +export default function RootLayout({ userInfo, appInfo, signOutFn, children }: RootLayoutProps) { + return ( + + + + +
+ + {children} +
+
+
+ ); +} diff --git a/src/components/RootLayout/index.tsx b/src/components/RootLayout/index.tsx new file mode 100644 index 00000000..cc2f7719 --- /dev/null +++ b/src/components/RootLayout/index.tsx @@ -0,0 +1,3 @@ +import { default as RootLayout } from './RootLayout'; + +export default RootLayout; diff --git a/src/components/Select/Select.tsx b/src/components/Select/Select.tsx new file mode 100644 index 00000000..cd5c413a --- /dev/null +++ b/src/components/Select/Select.tsx @@ -0,0 +1,44 @@ +import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '../ui/select'; + +type Option = { label: string; value: string | number }; +type OptionGroup = { label: string; options: Option[] }; + +type SelectProps = Omit, 'disabled'> & { + placeholder: string; + options?: Option[] | OptionGroup[]; + disabled?: boolean; +}; + +function isOptionGroupArray(options: Option[] | OptionGroup[] | undefined): options is OptionGroup[] { + return Array.isArray(options) && 'options' in options[0]!; +} + +export default function SelectWithOptions({ placeholder, options, disabled, ...rest }: SelectProps) { + return ( + + ); +} diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx new file mode 100644 index 00000000..06f33052 --- /dev/null +++ b/src/components/Select/index.tsx @@ -0,0 +1,3 @@ +import { default as SelectWithOptions } from './Select'; + +export default SelectWithOptions; diff --git a/src/components/StatCard/StatCard.tsx b/src/components/StatCard/StatCard.tsx new file mode 100644 index 00000000..dc71ba94 --- /dev/null +++ b/src/components/StatCard/StatCard.tsx @@ -0,0 +1,46 @@ +import React, { ReactNode } from 'react'; +import { Card, CardHeader, CardTitle, CardContent } from '../ui/card'; +import { cva } from 'class-variance-authority'; +import { cn } from '@/lib/utils'; + +type StatCardprops = { title: string; content: ReactNode; type?: 'default' | 'withIcon' | 'stat' }; + +export const cardVariants = cva('max-w-[160px] border rounded-lg flex flex-col justify-center', { + variants: { + type: { + default: 'h-[108px]', + withIcon: 'h-[125px] gap-2 p-6', + stat: 'w-[370px] max-w-[370px] h-[140px] gap-3 p-5', + }, + }, + defaultVariants: { + type: 'default', + }, +}); + +export default function StatCard({ type = 'default', title, content }: StatCardprops) { + return ( + + + + {title} + + + + {type === 'stat' ? ( +
{content}
+ ) : type === 'default' ? ( +

{content}

+ ) : ( + <>{content} + )} +
+
+ ); +} diff --git a/src/components/StatCard/index.tsx b/src/components/StatCard/index.tsx new file mode 100644 index 00000000..f8301138 --- /dev/null +++ b/src/components/StatCard/index.tsx @@ -0,0 +1,3 @@ +import { default as StatCard } from './StatCard'; + +export default StatCard; diff --git a/src/components/sidenav/Sidenav.tsx b/src/components/sidenav/Sidenav.tsx new file mode 100644 index 00000000..ae15ce0a --- /dev/null +++ b/src/components/sidenav/Sidenav.tsx @@ -0,0 +1,194 @@ +import React, { useEffect, useMemo, useState } from 'react'; +import { + Sidebar, + SidebarContent, + SidebarFooter, + SidebarGroup, + SidebarGroupContent, + SidebarGroupLabel, + SidebarHeader, + SidebarMenu, + SidebarMenuButton, + SidebarMenuItem, +} from '../ui/sidebar'; +import { BriefcaseBusiness, KeyRound, ServerCog, SquareTerminal, UserRoundCog } from 'lucide-react'; +import SidenavDropdown from './SidenavDropdown'; +import { genAvatarBackground, getCurrentPath } from '@/_util/helpers'; + +import { Avatar, AvatarImage } from '../ui/avatar'; +import { AvatarFallback } from '@radix-ui/react-avatar'; +import AvatarBubble from '../AvatarBubble/AvatarBubble'; +import { useLinkComponent } from '@/providers/NextLinkProvider'; + +type SidebarProps = React.ComponentProps; + +export type UserInfo = { + email: string; + image?: React.ImgHTMLAttributes['src']; + firstName?: string; + lastName?: string; +}; + +export type AppInfo = { + name: string; + version: string; + kcUrl: string; + logo?: React.ReactNode; +}; + +export type SidenavProps = SidebarProps & { + userInfo: UserInfo; + appInfo: AppInfo; + signOutFn: () => Promise; + currentPath?: string; +}; +export type NavItems = ReturnType; + +const getSidenavItems = (kcUrl: string, signOutFn: () => Promise) => [ + { + section: 'Projects', + sectionItems: [ + { + title: 'All Projects', + url: '/projects', + icon: SquareTerminal, + }, + ], + }, + { + section: 'Organizations', + sectionItems: [ + { + title: 'All Organizations', + url: '/organizations', + icon: BriefcaseBusiness, + }, + + { + title: 'All Deployments', + url: '/deployments', + icon: ServerCog, + }, + ], + }, + { + section: 'Settings', + sectionItems: [ + { + title: 'SSH Keys', + url: '/settings', + icon: KeyRound, + }, + { + title: 'My Account', + url: `${kcUrl}/account`, + target: 'blank', + onClick: signOutFn, + icon: UserRoundCog, + }, + ], + }, +]; + +export default function Sidenav({ userInfo, appInfo, currentPath, signOutFn, ...props }: SidenavProps) { + const Link = useLinkComponent(); + + const { firstName, lastName, image, email } = userInfo; + + const userImageExists = !!image; + + const firstLastProvided = !!(firstName && lastName); + + const avatarBg = firstLastProvided + ? genAvatarBackground(firstName.charAt(0), lastName.charAt(0)) + : genAvatarBackground(email.charAt(0), email.charAt(1)); + + const avatarInitials = firstLastProvided + ? firstName.charAt(0).toUpperCase() + lastName.charAt(0).toUpperCase() + : email.charAt(0).toUpperCase(); + + // show img + firstname lastnamea + // or avatarbg + firstname lastname + // or genericImage + user email + + const avatarToUse = userImageExists ? ( + + + Avatar + + ) : ( + + {avatarInitials} + + ); + + const userDisplayName = firstLastProvided ? ( + {`${firstName} ${lastName}`} + ) : ( + {email} + ); + + const sidenavItems = useMemo(() => { + return getSidenavItems(appInfo.kcUrl, signOutFn); + }, [appInfo.kcUrl, signOutFn]); + + const activePath = useMemo(() => getCurrentPath(sidenavItems, currentPath || ''), [sidenavItems, currentPath]); + + const sidenavProps = { ...appInfo, signOutFn }; + return ( + + + + + + + + + + + {sidenavItems.map((navItem) => { + return ( + + {navItem.section} + + {navItem.sectionItems.map((sectionItem) => { + const newTab = sectionItem.target === 'blank'; + const action = sectionItem.onClick; + return ( + + + { + action && (await action()); + }} + href={sectionItem.url} + target={newTab ? '_blank' : '_self'} + > + + {sectionItem.title} + + + + ); + })} + + + ); + })} + + + + + + + {avatarToUse} +
+ {userDisplayName} +
+
+
+
+
+
+ ); +} diff --git a/src/components/sidenav/SidenavDropdown.tsx b/src/components/sidenav/SidenavDropdown.tsx new file mode 100644 index 00000000..14107173 --- /dev/null +++ b/src/components/sidenav/SidenavDropdown.tsx @@ -0,0 +1,55 @@ +'use client'; +import React from 'react'; +import { ChevronsUpDown, LogOut, Sun, Moon } from 'lucide-react'; +import { useTheme } from 'next-themes'; +import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from '../ui/dropdown-menu'; +import { SidebarMenuButton } from '../ui/sidebar'; +import LagoonIcon from '../../icons/lagoon.svg'; +import { useLinkComponent } from '@/providers/NextLinkProvider'; +import { AppInfo } from './Sidenav'; + +type DropdownProps = AppInfo & { signOutFn: () => Promise }; + +export default function SidenavDropdown({ name, version, logo, signOutFn }: DropdownProps) { + const { setTheme, theme } = useTheme(); + + const Link = useLinkComponent(); + + return ( + + + +
+ {logo ? logo : } +
+
+ {name} + {version} +
+ + +
+
+ + {theme === 'dark' ? ( + setTheme('light')}> + + Light + + ) : ( + setTheme('dark')}> + + Dark + + )} + signOutFn()}> + + Sign Out + + +
+ ); +} diff --git a/src/components/sidenav/index.tsx b/src/components/sidenav/index.tsx new file mode 100644 index 00000000..26d2a4a9 --- /dev/null +++ b/src/components/sidenav/index.tsx @@ -0,0 +1,3 @@ +import { default as Sidenav } from './Sidenav'; + +export default Sidenav; diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx index 1e09881d..5e62af45 100644 --- a/src/components/ui/accordion.tsx +++ b/src/components/ui/accordion.tsx @@ -12,7 +12,7 @@ function AccordionItem({ className, ...props }: React.ComponentProps ); @@ -20,17 +20,17 @@ function AccordionItem({ className, ...props }: React.ComponentProps) { return ( - + svg]:lib:rotate-180', + 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180', className, )} {...props} > {children} - + ); @@ -40,10 +40,10 @@ function AccordionContent({ className, children, ...props }: React.ComponentProp return ( -
{children}
+
{children}
); } diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index 456d1473..9e309c6e 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -23,7 +23,7 @@ function AlertDialogOverlay({ className, ...props }: React.ComponentProps) return (
); @@ -61,7 +61,7 @@ function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) return (
); @@ -71,7 +71,7 @@ function AlertDialogTitle({ className, ...props }: React.ComponentProps ); @@ -84,7 +84,7 @@ function AlertDialogDescription({ return ( ); diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx index 54d3f2dc..a482b7ac 100644 --- a/src/components/ui/alert.tsx +++ b/src/components/ui/alert.tsx @@ -4,13 +4,13 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const alertVariants = cva( - 'lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current', + 'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current', { variants: { variant: { - default: 'lib:bg-card lib:text-card-foreground', + default: 'bg-card text-card-foreground', destructive: - 'lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90', + 'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90', }, }, defaultVariants: { @@ -27,7 +27,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) { return (
); @@ -38,7 +38,7 @@ function AlertDescription({ className, ...props }: React.ComponentProps<'div'>)
); @@ -17,11 +17,7 @@ function Avatar({ className, ...props }: React.ComponentProps) { return ( - + ); } @@ -29,10 +25,7 @@ function AvatarFallback({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx index 47927367..01f8e18a 100644 --- a/src/components/ui/badge.tsx +++ b/src/components/ui/badge.tsx @@ -5,16 +5,15 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const badgeVariants = cva( - 'lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden', + 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden', { variants: { variant: { - default: 'lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90', - secondary: - 'lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90', + default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90', + secondary: 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90', destructive: - 'lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60', - outline: 'lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground', + 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60', + outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground', }, }, defaultVariants: { diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx index d5dd30a7..36d16453 100644 --- a/src/components/ui/breadcrumb.tsx +++ b/src/components/ui/breadcrumb.tsx @@ -13,7 +13,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {
    ) { } function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) { - return ( -
  1. - ); + return
  2. ; } function BreadcrumbLink({ @@ -41,11 +35,7 @@ function BreadcrumbLink({ const Comp = asChild ? Slot : 'a'; return ( - + ); } @@ -56,7 +46,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) { role="link" aria-disabled="true" aria-current="page" - className={cn('lib:text-foreground lib:font-normal', className)} + className={cn('text-foreground font-normal', className)} {...props} /> ); @@ -68,7 +58,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP data-slot="breadcrumb-separator" role="presentation" aria-hidden="true" - className={cn('[&>svg]:lib:size-3.5', className)} + className={cn('[&>svg]:size-3.5', className)} {...props} > {children ?? } @@ -82,11 +72,11 @@ function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span' data-slot="breadcrumb-ellipsis" role="presentation" aria-hidden="true" - className={cn('lib:flex lib:size-9 lib:items-center lib:justify-center', className)} + className={cn('flex size-9 items-center justify-center', className)} {...props} > - - More + + More ); } diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 126b0e14..f3c419d7 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -5,24 +5,24 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const buttonVariants = cva( - 'lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive', + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", { variants: { variant: { - default: 'lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90', + default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90', destructive: - 'lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60', + 'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60', outline: - 'lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50', - secondary: 'lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80', - ghost: 'hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50', - link: 'lib:text-primary lib:underline-offset-4 hover:lib:underline', + 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50', + secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80', + ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50', + link: 'text-primary underline-offset-4 hover:underline', }, size: { - default: 'lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3', - sm: 'lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5', - lg: 'lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4', - icon: 'lib:size-9', + default: 'h-9 px-4 py-2 has-[>svg]:px-3', + sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5', + lg: 'h-10 rounded-md px-6 has-[>svg]:px-4', + icon: 'size-9', }, }, defaultVariants: { diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 0e4541eb..5ed5f5ab 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -1,59 +1,156 @@ import * as React from 'react'; -import { ChevronLeft, ChevronRight } from 'lucide-react'; -import { DayPicker } from 'react-day-picker'; +import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'; +import { DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker'; import { cn } from '@/lib/utils'; -import { buttonVariants } from '@/components/ui/button'; +import { Button, buttonVariants } from '@/components/ui/button'; + +function Calendar({ + className, + classNames, + showOutsideDays = true, + captionLayout = 'label', + buttonVariant = 'ghost', + formatters, + components, + ...props +}: React.ComponentProps & { + buttonVariant?: React.ComponentProps['variant']; +}) { + const defaultClassNames = getDefaultClassNames(); -function Calendar({ className, classNames, showOutsideDays = true, ...props }: React.ComponentProps) { return ( svg]:rotate-180`, + String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, + className, + )} + captionLayout={captionLayout} + formatters={{ + formatMonthDropdown: (date) => date.toLocaleString('default', { month: 'short' }), + ...formatters, + }} classNames={{ - months: 'lib:flex lib:flex-col sm:lib:flex-row lib:gap-2', - month: 'lib:flex lib:flex-col lib:gap-4', - caption: 'lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full', - caption_label: 'lib:text-sm lib:font-medium', - nav: 'lib:flex lib:items-center lib:gap-1', - nav_button: cn( - buttonVariants({ variant: 'outline' }), - 'lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100', - ), - nav_button_previous: 'lib:absolute lib:left-1', - nav_button_next: 'lib:absolute lib:right-1', - table: 'lib:w-full lib:border-collapse lib:space-x-1', - head_row: 'lib:flex', - head_cell: 'lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]', - row: 'lib:flex lib:w-full lib:mt-2', - cell: cn( - 'lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md', - props.mode === 'range' - ? '[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md' - : '[&:has([aria-selected])]:lib:rounded-md', + root: cn('w-fit', defaultClassNames.root), + months: cn('flex gap-4 flex-col md:flex-row relative', defaultClassNames.months), + month: cn('flex flex-col w-full gap-4', defaultClassNames.month), + nav: cn('flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between', defaultClassNames.nav), + button_previous: cn( + buttonVariants({ variant: buttonVariant }), + 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none', + defaultClassNames.button_previous, + ), + button_next: cn( + buttonVariants({ variant: buttonVariant }), + 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none', + defaultClassNames.button_next, + ), + month_caption: cn( + 'flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)', + defaultClassNames.month_caption, + ), + dropdowns: cn( + 'w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5', + defaultClassNames.dropdowns, ), + dropdown_root: cn( + 'relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md', + defaultClassNames.dropdown_root, + ), + dropdown: cn('absolute inset-0 opacity-0', defaultClassNames.dropdown), + caption_label: cn( + 'select-none font-medium', + captionLayout === 'label' + ? 'text-sm' + : 'rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5', + defaultClassNames.caption_label, + ), + table: 'w-full border-collapse', + weekdays: cn('flex', defaultClassNames.weekdays), + weekday: cn( + 'text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none', + defaultClassNames.weekday, + ), + week: cn('flex w-full mt-2', defaultClassNames.week), + week_number_header: cn('select-none w-(--cell-size)', defaultClassNames.week_number_header), + week_number: cn('text-[0.8rem] select-none text-muted-foreground', defaultClassNames.week_number), day: cn( - buttonVariants({ variant: 'ghost' }), - 'lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100', - ), - day_range_start: 'lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground', - day_range_end: 'lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground', - day_selected: - 'lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground', - day_today: 'lib:bg-accent lib:text-accent-foreground', - day_outside: 'lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground', - day_disabled: 'lib:text-muted-foreground lib:opacity-50', - day_range_middle: 'aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground', - day_hidden: 'lib:invisible', + 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none', + defaultClassNames.day, + ), + range_start: cn('rounded-l-md bg-accent', defaultClassNames.range_start), + range_middle: cn('rounded-none', defaultClassNames.range_middle), + range_end: cn('rounded-r-md bg-accent', defaultClassNames.range_end), + today: cn( + 'bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none', + defaultClassNames.today, + ), + outside: cn('text-muted-foreground aria-selected:text-muted-foreground', defaultClassNames.outside), + disabled: cn('text-muted-foreground opacity-50', defaultClassNames.disabled), + hidden: cn('invisible', defaultClassNames.hidden), ...classNames, }} components={{ - IconLeft: ({ className, ...props }) => , - IconRight: ({ className, ...props }) => , + Root: ({ className, rootRef, ...props }) => { + return
    ; + }, + Chevron: ({ className, orientation, ...props }) => { + if (orientation === 'left') { + return ; + } + + if (orientation === 'right') { + return ; + } + + return ; + }, + DayButton: CalendarDayButton, + WeekNumber: ({ children, ...props }) => { + return ( + +
    {children}
    + + ); + }, + ...components, }} {...props} /> ); } -export { Calendar }; +function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps) { + const defaultClassNames = getDefaultClassNames(); + + const ref = React.useRef(null); + React.useEffect(() => { + if (modifiers.focused) ref.current?.focus(); + }, [modifiers.focused]); + + return ( + ); } @@ -204,10 +197,10 @@ function CarouselNext({ variant={variant} size={size} className={cn( - 'lib:absolute lib:size-8 lib:rounded-full', + 'absolute size-8 rounded-full', orientation === 'horizontal' - ? 'lib:top-1/2 lib:-right-12 lib:-translate-y-1/2' - : 'lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90', + ? 'top-1/2 -right-12 -translate-y-1/2' + : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90', className, )} disabled={!canScrollNext} @@ -215,7 +208,7 @@ function CarouselNext({ {...props} > - Next slide + Next slide ); } diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx index 8ea6b1a5..7e4844e8 100644 --- a/src/components/ui/chart.tsx +++ b/src/components/ui/chart.tsx @@ -48,7 +48,7 @@ function ChartContainer({ data-slot="chart" data-chart={chartId} className={cn( - '[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden', + "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className, )} {...props} @@ -127,14 +127,14 @@ function ChartTooltipContent({ !labelKey && typeof label === 'string' ? config[label as keyof typeof config]?.label || label : itemConfig?.label; if (labelFormatter) { - return
    {labelFormatter(value, payload)}
    ; + return
    {labelFormatter(value, payload)}
    ; } if (!value) { return null; } - return
    {value}
    ; + return
    {value}
    ; }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]); if (!active || !payload?.length) { @@ -146,12 +146,12 @@ function ChartTooltipContent({ return (
    {!nestLabel ? tooltipLabel : null} -
    +
    {payload.map((item, index) => { const key = `${nameKey || item.name || item.dataKey || 'value'}`; const itemConfig = getPayloadConfigFromPayload(config, item, key); @@ -161,8 +161,8 @@ function ChartTooltipContent({
    svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5', - indicator === 'dot' && 'lib:items-center', + '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5', + indicator === 'dot' && 'items-center', )} > {formatter && item?.value !== undefined && item.name ? ( @@ -174,15 +174,12 @@ function ChartTooltipContent({ ) : ( !hideIndicator && (
    -
    +
    {nestLabel ? tooltipLabel : null} - {itemConfig?.label || item.name} + {itemConfig?.label || item.name}
    {item.value && ( - + {item.value.toLocaleString()} )} @@ -238,13 +232,7 @@ function ChartLegendContent({ } return ( -
    +
    {payload.map((item) => { const key = `${nameKey || item.dataKey || 'value'}`; const itemConfig = getPayloadConfigFromPayload(config, item, key); @@ -252,15 +240,13 @@ function ChartLegendContent({ return (
    svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3', - )} + className={cn('[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3')} > {itemConfig?.icon && !hideIcon ? ( ) : (
    - + ); diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx index 76a74802..770db6da 100644 --- a/src/components/ui/command.tsx +++ b/src/components/ui/command.tsx @@ -12,7 +12,7 @@ function Command({ className, ...props }: React.ComponentProps & { title?: string; description?: string; + className?: string; + showCloseButton?: boolean; }) { return ( - + {title} {description} - - + + {children} @@ -46,15 +50,12 @@ function CommandDialog({ function CommandInput({ className, ...props }: React.ComponentProps) { return ( -
    - +
    + ); } function CommandEmpty({ ...props }: React.ComponentProps) { - return ( - - ); + return ; } function CommandGroup({ className, ...props }: React.ComponentProps) { @@ -84,7 +83,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps ); @@ -107,7 +106,7 @@ function CommandItem({ className, ...props }: React.ComponentProps) return ( ); diff --git a/src/components/ui/context-menu.tsx b/src/components/ui/context-menu.tsx index 3e594e7d..e24c0efb 100644 --- a/src/components/ui/context-menu.tsx +++ b/src/components/ui/context-menu.tsx @@ -43,13 +43,13 @@ function ContextMenuSubTrigger({ data-slot="context-menu-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} > {children} - + ); } @@ -59,7 +59,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps - + - + {children} @@ -140,14 +140,14 @@ function ContextMenuRadioItem({ - + - + {children} @@ -166,10 +166,7 @@ function ContextMenuLabel({ ); @@ -179,7 +176,7 @@ function ContextMenuSeparator({ className, ...props }: React.ComponentProps ); @@ -189,7 +186,7 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span return ( ); diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 811f78b2..797adb7e 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -25,7 +25,7 @@ function DialogOverlay({ className, ...props }: React.ComponentProps) { +function DialogContent({ + className, + children, + showCloseButton = true, + ...props +}: React.ComponentProps & { + showCloseButton?: boolean; +}) { return ( {children} - - - Close - + {showCloseButton && ( + + + Close + + )} ); @@ -59,7 +71,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); @@ -69,7 +81,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); @@ -79,7 +91,7 @@ function DialogTitle({ className, ...props }: React.ComponentProps ); @@ -89,7 +101,7 @@ function DialogDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsx index 7ce2d1b0..5b410003 100644 --- a/src/components/ui/drawer.tsx +++ b/src/components/ui/drawer.tsx @@ -24,7 +24,7 @@ function DrawerOverlay({ className, ...props }: React.ComponentProps -
    +
    {children} @@ -56,26 +56,27 @@ function DrawerContent({ className, children, ...props }: React.ComponentProps) { - return ( -
    - ); -} - -function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); } +function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) { + return
    ; +} + function DrawerTitle({ className, ...props }: React.ComponentProps) { return ( ); @@ -85,7 +86,7 @@ function DrawerDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 98f5a9ef..7c319c91 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -29,7 +29,7 @@ function DropdownMenuContent({ data-slot="dropdown-menu-content" sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md', className, )} {...props} @@ -57,7 +57,7 @@ function DropdownMenuItem({ data-inset={inset} data-variant={variant} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} @@ -75,15 +75,15 @@ function DropdownMenuCheckboxItem({ - + - + {children} @@ -104,14 +104,14 @@ function DropdownMenuRadioItem({ - + - + {children} @@ -130,7 +130,7 @@ function DropdownMenuLabel({ ); @@ -140,7 +140,7 @@ function DropdownMenuSeparator({ className, ...props }: React.ComponentProps ); @@ -150,7 +150,7 @@ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'spa return ( ); @@ -173,13 +173,13 @@ function DropdownMenuSubTrigger({ data-slot="dropdown-menu-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8', + 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8', className, )} {...props} > {children} - + ); } @@ -192,7 +192,7 @@ function DropdownMenuSubContent({ ) { return ( -
    +
    ); } @@ -84,7 +84,7 @@ function FormLabel({ className, ...props }: React.ComponentProps @@ -112,7 +112,7 @@ function FormDescription({ className, ...props }: React.ComponentProps<'p'>) {

    ); @@ -127,12 +127,7 @@ function FormMessage({ className, ...props }: React.ComponentProps<'p'>) { } return ( -

    +

    {body}

    ); diff --git a/src/components/ui/hover-card.tsx b/src/components/ui/hover-card.tsx index d1bc50f0..363dbe7a 100644 --- a/src/components/ui/hover-card.tsx +++ b/src/components/ui/hover-card.tsx @@ -24,7 +24,7 @@ function HoverCardContent({ align={align} sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden', className, )} {...props} diff --git a/src/components/ui/input-otp.tsx b/src/components/ui/input-otp.tsx index 9ec0f83a..d5fffcbb 100644 --- a/src/components/ui/input-otp.tsx +++ b/src/components/ui/input-otp.tsx @@ -17,14 +17,14 @@ function InputOTP({ ); } function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'>) { - return
    ; + return
    ; } function InputOTPSlot({ @@ -42,15 +42,15 @@ function InputOTPSlot({ data-slot="input-otp-slot" data-active={isActive} className={cn( - 'data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]', + 'data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]', className, )} {...props} > {char} {hasFakeCaret && ( -
    -
    +
    +
    )}
    diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index 9c33b012..34e38112 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -8,9 +8,9 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) { type={type} data-slot="input" className={cn( - 'file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm', - 'focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]', - 'aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive', + 'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', + 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', + 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', className, )} {...props} diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index f5a46458..d223ff26 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -10,7 +10,7 @@ function Label({ className, ...props }: React.ComponentProps ); @@ -38,7 +35,7 @@ function MenubarTrigger({ className, ...props }: React.ComponentProps - + - + {children} @@ -124,14 +121,14 @@ function MenubarRadioItem({ className, children, ...props }: React.ComponentProp - + - + {children} @@ -150,7 +147,7 @@ function MenubarLabel({ ); @@ -160,7 +157,7 @@ function MenubarSeparator({ className, ...props }: React.ComponentProps ); @@ -170,7 +167,7 @@ function MenubarShortcut({ className, ...props }: React.ComponentProps<'span'>) return ( ); @@ -193,13 +190,13 @@ function MenubarSubTrigger({ data-slot="menubar-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8', + 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8', className, )} {...props} > {children} - + ); } @@ -209,7 +206,7 @@ function MenubarSubContent({ className, ...props }: React.ComponentProps {children} @@ -33,10 +30,7 @@ function NavigationMenuList({ className, ...props }: React.ComponentProps ); @@ -44,16 +38,12 @@ function NavigationMenuList({ className, ...props }: React.ComponentProps) { return ( - + ); } const navigationMenuTriggerStyle = cva( - 'lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1', + 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1', ); function NavigationMenuTrigger({ @@ -64,12 +54,12 @@ function NavigationMenuTrigger({ return ( {children}{' '} @@ -81,8 +71,8 @@ function NavigationMenuContent({ className, ...props }: React.ComponentProps) { return ( -
    +
    -
    +
    ); } diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx index fb73ad5a..5b739add 100644 --- a/src/components/ui/pagination.tsx +++ b/src/components/ui/pagination.tsx @@ -10,20 +10,14 @@ function Pagination({ className, ...props }: React.ComponentProps<'nav'>) { role="navigation" aria-label="pagination" data-slot="pagination" - className={cn('lib:mx-auto lib:flex lib:w-full lib:justify-center', className)} + className={cn('mx-auto flex w-full justify-center', className)} {...props} /> ); } function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) { - return ( -
      - ); + return
        ; } function PaginationItem({ ...props }: React.ComponentProps<'li'>) { @@ -58,11 +52,11 @@ function PaginationPrevious({ className, ...props }: React.ComponentProps - Previous + Previous ); } @@ -72,10 +66,10 @@ function PaginationNext({ className, ...props }: React.ComponentProps - Next + Next ); @@ -86,11 +80,11 @@ function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span' - - More pages + + More pages ); } diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx index ef9778d2..1d680b3b 100644 --- a/src/components/ui/popover.tsx +++ b/src/components/ui/popover.tsx @@ -26,7 +26,7 @@ function PopoverContent({ align={align} sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden', className, )} {...props} diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 3aa4c105..11a358f6 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -7,15 +7,12 @@ function Progress({ className, value, ...props }: React.ComponentProps diff --git a/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsx index 50c330fd..38ca206b 100644 --- a/src/components/ui/radio-group.tsx +++ b/src/components/ui/radio-group.tsx @@ -7,9 +7,7 @@ import { CircleIcon } from 'lucide-react'; import { cn } from '@/lib/utils'; function RadioGroup({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } function RadioGroupItem({ className, ...props }: React.ComponentProps) { @@ -17,16 +15,16 @@ function RadioGroupItem({ className, ...props }: React.ComponentProps - + ); diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx index e5ca5ae4..bc5fe3cb 100644 --- a/src/components/ui/resizable.tsx +++ b/src/components/ui/resizable.tsx @@ -8,7 +8,7 @@ function ResizablePanelGroup({ className, ...props }: React.ComponentProps ); @@ -29,14 +29,14 @@ function ResizableHandle({ div]:lib:rotate-90', + 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90', className, )} {...props} > {withHandle && ( -
        - +
        +
        )} diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx index 9f0286b8..a3a39e8a 100644 --- a/src/components/ui/scroll-area.tsx +++ b/src/components/ui/scroll-area.tsx @@ -7,10 +7,10 @@ import { cn } from '@/lib/utils'; function ScrollArea({ className, children, ...props }: React.ComponentProps) { return ( - + {children} @@ -30,16 +30,16 @@ function ScrollBar({ data-slot="scroll-area-scrollbar" orientation={orientation} className={cn( - 'lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none', - orientation === 'vertical' && 'lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent', - orientation === 'horizontal' && 'lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent', + 'flex touch-none p-px transition-colors select-none', + orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent', + orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent', className, )} {...props} > ); diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index e794fb7f..3a838947 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -29,14 +29,14 @@ function SelectTrigger({ data-slot="select-trigger" data-size={size} className={cn( - 'lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} > {children} - + ); @@ -53,9 +53,9 @@ function SelectContent({ {children} @@ -81,7 +81,7 @@ function SelectLabel({ className, ...props }: React.ComponentProps ); @@ -92,14 +92,14 @@ function SelectItem({ className, children, ...props }: React.ComponentProps - + - + {children} @@ -111,7 +111,7 @@ function SelectSeparator({ className, ...props }: React.ComponentProps ); @@ -121,10 +121,10 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps - + ); } @@ -136,10 +136,10 @@ function SelectScrollDownButton({ return ( - + ); } diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx index 29cb88a1..aea66479 100644 --- a/src/components/ui/separator.tsx +++ b/src/components/ui/separator.tsx @@ -13,11 +13,11 @@ function Separator({ }: React.ComponentProps) { return ( {children} - - - Close + + + Close @@ -71,26 +71,18 @@ function SheetContent({ } function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
        - ); + return
        ; } function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
        - ); + return
        ; } function SheetTitle({ className, ...props }: React.ComponentProps) { return ( ); @@ -100,7 +92,7 @@ function SheetDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx index 86c8b66e..1f22d5e5 100644 --- a/src/components/ui/sidebar.tsx +++ b/src/components/ui/sidebar.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { Slot } from '@radix-ui/react-slot'; -import { VariantProps, cva } from 'class-variance-authority'; +import { cva, VariantProps } from 'class-variance-authority'; import { PanelLeftIcon } from 'lucide-react'; import { useIsMobile } from '@/hooks/use-mobile'; @@ -124,10 +124,7 @@ function SidebarProvider({ ...style, } as React.CSSProperties } - className={cn( - 'lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full', - className, - )} + className={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)} {...props} > {children} @@ -155,10 +152,7 @@ function Sidebar({ return (
        {children} @@ -173,7 +167,7 @@ function Sidebar({ data-sidebar="sidebar" data-slot="sidebar" data-mobile="true" - className="lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden" + className="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden" style={ { '--sidebar-width': SIDEBAR_WIDTH_MOBILE, @@ -181,11 +175,11 @@ function Sidebar({ } side={side} > - + Sidebar Displays the mobile sidebar. -
        {children}
        +
        {children}
        ); @@ -193,7 +187,7 @@ function Sidebar({ return (
        @@ -248,7 +242,7 @@ function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps { onClick?.(event); toggleSidebar(); @@ -256,7 +250,7 @@ function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps - Toggle Sidebar + Toggle Sidebar ); } @@ -273,12 +267,12 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) { onClick={toggleSidebar} title="Toggle Sidebar" className={cn( - 'hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex', - 'in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize', - '[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize', - 'hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full', - '[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2', - '[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2', + 'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex', + 'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize', + '[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize', + 'hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full', + '[[data-side=left][data-collapsible=offcanvas]_&]:-right-2', + '[[data-side=right][data-collapsible=offcanvas]_&]:-left-2', className, )} {...props} @@ -291,8 +285,8 @@ function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {
        ); @@ -316,7 +310,7 @@ function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -327,7 +321,7 @@ function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -338,7 +332,7 @@ function SidebarSeparator({ className, ...props }: React.ComponentProps ); @@ -350,7 +344,7 @@ function SidebarContent({ className, ...props }: React.ComponentProps<'div'>) { data-slot="sidebar-content" data-sidebar="content" className={cn( - 'lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden', + 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', className, )} {...props} @@ -363,7 +357,7 @@ function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -381,8 +375,8 @@ function SidebarGroupLabel({ data-slot="sidebar-group-label" data-sidebar="group-label" className={cn( - 'lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', - 'group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0', + 'text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', + 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0', className, )} {...props} @@ -402,10 +396,10 @@ function SidebarGroupAction({ data-slot="sidebar-group-action" data-sidebar="group-action" className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', // Increases the hit area of the button on mobile. - 'after:lib:absolute after:lib:-inset-2 md:after:lib:hidden', - 'group-data-[collapsible=icon]:lib:hidden', + 'after:absolute after:-inset-2 md:after:hidden', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -418,7 +412,7 @@ function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'
        ); @@ -429,7 +423,7 @@ function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {
          ); @@ -440,25 +434,25 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {
        • ); } const sidebarMenuButtonVariants = cva( - 'lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', { variants: { variant: { - default: 'hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground', + default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground', outline: - 'lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]', + 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]', }, size: { - default: 'lib:h-8 lib:text-sm', - sm: 'lib:h-7 lib:text-xs', - lg: 'lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!', + default: 'h-8 text-sm', + sm: 'h-7 text-xs', + lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!', }, }, defaultVariants: { @@ -529,15 +523,15 @@ function SidebarMenuAction({ data-slot="sidebar-menu-action" data-sidebar="menu-action" className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', // Increases the hit area of the button on mobile. - 'after:lib:absolute after:lib:-inset-2 md:after:lib:hidden', - 'lib:peer-data-[size=sm]/menu-button:top-1', - 'lib:peer-data-[size=default]/menu-button:top-1.5', - 'lib:peer-data-[size=lg]/menu-button:top-2.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'after:absolute after:-inset-2 md:after:hidden', + 'peer-data-[size=sm]/menu-button:top-1', + 'peer-data-[size=default]/menu-button:top-1.5', + 'peer-data-[size=lg]/menu-button:top-2.5', + 'group-data-[collapsible=icon]:hidden', showOnHover && - 'lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0', + 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0', className, )} {...props} @@ -551,12 +545,12 @@ function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) data-slot="sidebar-menu-badge" data-sidebar="menu-badge" className={cn( - 'lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none', - 'lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground', - 'lib:peer-data-[size=sm]/menu-button:top-1', - 'lib:peer-data-[size=default]/menu-button:top-1.5', - 'lib:peer-data-[size=lg]/menu-button:top-2.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none', + 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground', + 'peer-data-[size=sm]/menu-button:top-1', + 'peer-data-[size=default]/menu-button:top-1.5', + 'peer-data-[size=lg]/menu-button:top-2.5', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -580,12 +574,12 @@ function SidebarMenuSkeleton({
          - {showIcon && } + {showIcon && } ) { data-slot="sidebar-menu-sub" data-sidebar="menu-sub" className={cn( - 'lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -617,7 +611,7 @@ function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>)
        • ); @@ -643,11 +637,11 @@ function SidebarMenuSubButton({ data-size={size} data-active={isActive} className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', - 'data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground', - size === 'sm' && 'lib:text-xs', - size === 'md' && 'lib:text-sm', - 'group-data-[collapsible=icon]:lib:hidden', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', + 'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground', + size === 'sm' && 'text-xs', + size === 'md' && 'text-sm', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx index 75914d48..3e62a18e 100644 --- a/src/components/ui/skeleton.tsx +++ b/src/components/ui/skeleton.tsx @@ -1,9 +1,7 @@ import { cn } from '@/lib/utils'; function Skeleton({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
          - ); + return
          ; } export { Skeleton }; diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx index fd50f200..6285e872 100644 --- a/src/components/ui/slider.tsx +++ b/src/components/ui/slider.tsx @@ -26,7 +26,7 @@ function Slider({ min={min} max={max} className={cn( - 'lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col', + 'relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className, )} {...props} @@ -34,21 +34,19 @@ function Slider({ {Array.from({ length: _values.length }, (_, index) => ( ))} diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx index cbe61df7..338695a7 100644 --- a/src/components/ui/sonner.tsx +++ b/src/components/ui/sonner.tsx @@ -7,7 +7,7 @@ const Toaster = ({ ...props }: ToasterProps) => { return ( diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 8702ae44..58475148 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -4,25 +4,25 @@ import { cn } from '@/lib/utils'; function Table({ className, ...props }: React.ComponentProps<'table'>) { return ( -
          - +
          +
          ); } function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) { - return ; + return ; } function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) { - return ; + return ; } function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) { return ( tr]:last:lib:border-b-0', className)} + className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)} {...props} /> ); @@ -32,10 +32,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) { return ( ); @@ -46,7 +43,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
          [role=checkbox]]:lib:translate-y-[2px]', + 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className, )} {...props} @@ -59,7 +56,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) { [role=checkbox]]:lib:translate-y-[2px]', + 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className, )} {...props} @@ -69,11 +66,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) { function TableCaption({ className, ...props }: React.ComponentProps<'caption'>) { return ( -
          + ); } diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 7b97bf90..97a3c8e5 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -6,9 +6,7 @@ import * as TabsPrimitive from '@radix-ui/react-tabs'; import { cn } from '@/lib/utils'; function Tabs({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } function TabsList({ className, ...props }: React.ComponentProps) { @@ -16,7 +14,7 @@ function TabsList({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } export { Tabs, TabsList, TabsTrigger, TabsContent }; diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index 948068b9..40f5b4b5 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {