@easyops-cn/a2ui-react 0.0.0 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/dist/0.8/A2UIRenderer.d.ts +49 -0
- package/dist/0.8/A2UIRenderer.test.d.ts +6 -0
- package/dist/0.8/components/ComponentRenderer.d.ts +39 -0
- package/dist/0.8/components/ComponentRenderer.test.d.ts +6 -0
- package/dist/0.8/components/UnknownComponent.d.ts +18 -0
- package/dist/0.8/components/display/AudioPlayerComponent.d.ts +5 -0
- package/dist/0.8/components/display/DividerComponent.d.ts +5 -0
- package/dist/0.8/components/display/IconComponent.d.ts +5 -0
- package/dist/0.8/components/display/ImageComponent.d.ts +6 -0
- package/dist/0.8/components/display/TextComponent.d.ts +6 -0
- package/dist/0.8/components/display/VideoComponent.d.ts +5 -0
- package/dist/0.8/components/display/display.test.d.ts +7 -0
- package/dist/0.8/components/display/index.d.ts +9 -0
- package/dist/0.8/components/index.d.ts +7 -0
- package/dist/0.8/components/interactive/ButtonComponent.d.ts +5 -0
- package/dist/0.8/components/interactive/CheckBoxComponent.d.ts +5 -0
- package/dist/0.8/components/interactive/DateTimeInputComponent.d.ts +5 -0
- package/dist/0.8/components/interactive/MultipleChoiceComponent.d.ts +7 -0
- package/dist/0.8/components/interactive/SliderComponent.d.ts +5 -0
- package/dist/0.8/components/interactive/TextFieldComponent.d.ts +5 -0
- package/dist/0.8/components/interactive/index.d.ts +9 -0
- package/dist/0.8/components/interactive/interactive.test.d.ts +7 -0
- package/dist/0.8/components/layout/CardComponent.d.ts +5 -0
- package/dist/0.8/components/layout/ColumnComponent.d.ts +5 -0
- package/dist/0.8/components/layout/ListComponent.d.ts +5 -0
- package/dist/0.8/components/layout/ModalComponent.d.ts +5 -0
- package/dist/0.8/components/layout/RowComponent.d.ts +5 -0
- package/dist/0.8/components/layout/TabsComponent.d.ts +5 -0
- package/dist/0.8/components/layout/index.d.ts +9 -0
- package/dist/0.8/components/layout/layout.test.d.ts +7 -0
- package/dist/0.8/contexts/A2UIProvider.d.ts +34 -0
- package/dist/0.8/contexts/A2UIProvider.test.d.ts +6 -0
- package/dist/0.8/contexts/ActionContext.d.ts +33 -0
- package/dist/0.8/contexts/ActionContext.test.d.ts +6 -0
- package/dist/0.8/contexts/ComponentsMapContext.d.ts +63 -0
- package/dist/0.8/contexts/DataModelContext.d.ts +43 -0
- package/dist/0.8/contexts/DataModelContext.test.d.ts +6 -0
- package/dist/0.8/contexts/SurfaceContext.d.ts +45 -0
- package/dist/0.8/contexts/SurfaceContext.test.d.ts +6 -0
- package/dist/0.8/hooks/useA2UIMessageHandler.d.ts +41 -0
- package/dist/0.8/hooks/useA2UIMessageHandler.test.d.ts +6 -0
- package/{src/0.8/hooks/useComponent.ts → dist/0.8/hooks/useComponent.d.ts} +2 -18
- package/dist/0.8/hooks/useComponent.test.d.ts +6 -0
- package/dist/0.8/hooks/useDataBinding.d.ts +50 -0
- package/dist/0.8/hooks/useDataBinding.test.d.ts +6 -0
- package/{src/0.8/hooks/useDispatchAction.ts → dist/0.8/hooks/useDispatchAction.d.ts} +2 -15
- package/dist/0.8/hooks/useDispatchAction.test.d.ts +6 -0
- package/{src/0.8/hooks/useSurface.ts → dist/0.8/hooks/useSurface.d.ts} +2 -15
- package/dist/0.8/hooks/useSurface.test.d.ts +6 -0
- package/{src/0.8/index.ts → dist/0.8/index.d.ts} +7 -21
- package/{src/0.8/types/index.ts → dist/0.8/types/index.d.ts} +128 -213
- package/dist/0.8/utils/dataBinding.d.ts +95 -0
- package/dist/0.8/utils/dataBinding.test.d.ts +6 -0
- package/dist/0.8/utils/pathUtils.d.ts +63 -0
- package/dist/0.8/utils/pathUtils.test.d.ts +6 -0
- package/dist/a2ui-react.js +4 -0
- package/dist/a2ui-react10.js +54 -0
- package/dist/a2ui-react100.js +24 -0
- package/dist/a2ui-react101.js +255 -0
- package/dist/a2ui-react102.js +163 -0
- package/dist/a2ui-react103.js +19 -0
- package/dist/a2ui-react104.js +251 -0
- package/dist/a2ui-react105.js +61 -0
- package/dist/a2ui-react106.js +35 -0
- package/dist/a2ui-react107.js +436 -0
- package/dist/a2ui-react108.js +16 -0
- package/dist/a2ui-react109.js +234 -0
- package/dist/a2ui-react11.js +9 -0
- package/dist/a2ui-react110.js +6 -0
- package/dist/a2ui-react111.js +6 -0
- package/dist/a2ui-react112.js +6 -0
- package/dist/a2ui-react113.js +239 -0
- package/dist/a2ui-react114.js +845 -0
- package/dist/a2ui-react115.js +6 -0
- package/dist/a2ui-react116.js +10 -0
- package/dist/a2ui-react117.js +8 -0
- package/dist/a2ui-react118.js +8 -0
- package/dist/a2ui-react119.js +20 -0
- package/dist/a2ui-react12.js +32 -0
- package/dist/a2ui-react120.js +8 -0
- package/dist/a2ui-react121.js +8 -0
- package/dist/a2ui-react122.js +9 -0
- package/dist/a2ui-react123.js +16 -0
- package/dist/a2ui-react124.js +18 -0
- package/dist/a2ui-react125.js +11 -0
- package/dist/a2ui-react126.js +9 -0
- package/dist/a2ui-react127.js +13 -0
- package/dist/a2ui-react128.js +17 -0
- package/dist/a2ui-react129.js +8 -0
- package/dist/a2ui-react13.js +36 -0
- package/dist/a2ui-react130.js +17 -0
- package/dist/a2ui-react131.js +8 -0
- package/dist/a2ui-react132.js +10 -0
- package/dist/a2ui-react133.js +9 -0
- package/dist/a2ui-react134.js +7 -0
- package/dist/a2ui-react135.js +9 -0
- package/dist/a2ui-react136.js +548 -0
- package/dist/a2ui-react137.js +49 -0
- package/dist/a2ui-react138.js +20 -0
- package/dist/a2ui-react139.js +21 -0
- package/dist/a2ui-react14.js +114 -0
- package/dist/a2ui-react140.js +11 -0
- package/dist/a2ui-react141.js +9 -0
- package/dist/a2ui-react142.js +10 -0
- package/dist/a2ui-react143.js +8 -0
- package/dist/a2ui-react144.js +9 -0
- package/dist/a2ui-react145.js +12 -0
- package/dist/a2ui-react146.js +8 -0
- package/dist/a2ui-react147.js +11 -0
- package/dist/a2ui-react148.js +15 -0
- package/dist/a2ui-react149.js +8 -0
- package/dist/a2ui-react15.js +18 -0
- package/dist/a2ui-react150.js +12 -0
- package/dist/a2ui-react151.js +10 -0
- package/dist/a2ui-react152.js +12 -0
- package/dist/a2ui-react153.js +16 -0
- package/dist/a2ui-react154.js +8 -0
- package/dist/a2ui-react155.js +8 -0
- package/dist/a2ui-react156.js +8 -0
- package/dist/a2ui-react157.js +7 -0
- package/dist/a2ui-react158.js +14 -0
- package/dist/a2ui-react159.js +13 -0
- package/dist/a2ui-react16.js +19 -0
- package/dist/a2ui-react160.js +13 -0
- package/dist/a2ui-react161.js +14 -0
- package/dist/a2ui-react162.js +14 -0
- package/dist/a2ui-react163.js +35 -0
- package/dist/a2ui-react164.js +67 -0
- package/dist/a2ui-react165.js +11 -0
- package/dist/a2ui-react166.js +11 -0
- package/dist/a2ui-react167.js +10 -0
- package/dist/a2ui-react168.js +13 -0
- package/dist/a2ui-react169.js +10 -0
- package/dist/a2ui-react17.js +18 -0
- package/dist/a2ui-react170.js +10 -0
- package/dist/a2ui-react171.js +9 -0
- package/dist/a2ui-react172.js +17 -0
- package/dist/a2ui-react173.js +21 -0
- package/dist/a2ui-react174.js +18 -0
- package/dist/a2ui-react175.js +35 -0
- package/dist/a2ui-react176.js +14 -0
- package/dist/a2ui-react177.js +7 -0
- package/dist/a2ui-react178.js +58 -0
- package/dist/a2ui-react179.js +25 -0
- package/dist/a2ui-react18.js +58 -0
- package/dist/a2ui-react180.js +43 -0
- package/dist/a2ui-react181.js +63 -0
- package/dist/a2ui-react182.js +34 -0
- package/dist/a2ui-react183.js +15 -0
- package/dist/a2ui-react184.js +67 -0
- package/dist/a2ui-react185.js +67 -0
- package/dist/a2ui-react186.js +69 -0
- package/dist/a2ui-react187.js +69 -0
- package/dist/a2ui-react188.js +42 -0
- package/dist/a2ui-react189.js +43 -0
- package/dist/a2ui-react19.js +58 -0
- package/dist/a2ui-react190.js +55 -0
- package/dist/a2ui-react191.js +45 -0
- package/dist/a2ui-react192.js +41 -0
- package/dist/a2ui-react193.js +72 -0
- package/dist/a2ui-react194.js +72 -0
- package/dist/a2ui-react195.js +97 -0
- package/dist/a2ui-react196.js +42 -0
- package/dist/a2ui-react197.js +42 -0
- package/dist/a2ui-react198.js +42 -0
- package/dist/a2ui-react199.js +27 -0
- package/dist/a2ui-react2.js +11 -0
- package/dist/a2ui-react20.js +51 -0
- package/dist/a2ui-react200.js +26 -0
- package/dist/a2ui-react201.js +26 -0
- package/dist/a2ui-react202.js +27 -0
- package/dist/a2ui-react203.js +26 -0
- package/dist/a2ui-react204.js +26 -0
- package/dist/a2ui-react205.js +16 -0
- package/dist/a2ui-react206.js +41 -0
- package/dist/a2ui-react207.js +41 -0
- package/dist/a2ui-react208.js +16 -0
- package/dist/a2ui-react209.js +16 -0
- package/dist/a2ui-react21.js +14 -0
- package/dist/a2ui-react210.js +32 -0
- package/dist/a2ui-react211.js +32 -0
- package/dist/a2ui-react212.js +6 -0
- package/dist/a2ui-react213.js +9 -0
- package/dist/a2ui-react214.js +50 -0
- package/dist/a2ui-react215.js +29 -0
- package/dist/a2ui-react216.js +68 -0
- package/dist/a2ui-react217.js +10 -0
- package/dist/a2ui-react218.js +127 -0
- package/dist/a2ui-react219.js +17 -0
- package/dist/a2ui-react22.js +29 -0
- package/dist/a2ui-react220.js +136 -0
- package/dist/a2ui-react221.js +13 -0
- package/dist/a2ui-react222.js +219 -0
- package/dist/a2ui-react223.js +15 -0
- package/dist/a2ui-react224.js +36 -0
- package/dist/a2ui-react225.js +49 -0
- package/dist/a2ui-react226.js +10 -0
- package/dist/a2ui-react227.js +52 -0
- package/dist/a2ui-react228.js +6 -0
- package/dist/a2ui-react229.js +8 -0
- package/dist/a2ui-react23.js +25 -0
- package/dist/a2ui-react230.js +30 -0
- package/dist/a2ui-react231.js +52 -0
- package/dist/a2ui-react232.js +11 -0
- package/dist/a2ui-react233.js +70 -0
- package/dist/a2ui-react234.js +49 -0
- package/dist/a2ui-react235.js +27 -0
- package/dist/a2ui-react236.js +49 -0
- package/dist/a2ui-react237.js +183 -0
- package/dist/a2ui-react238.js +70 -0
- package/dist/a2ui-react239.js +33 -0
- package/dist/a2ui-react24.js +29 -0
- package/dist/a2ui-react240.js +11 -0
- package/dist/a2ui-react241.js +155 -0
- package/dist/a2ui-react242.js +110 -0
- package/dist/a2ui-react243.js +22 -0
- package/dist/a2ui-react244.js +100 -0
- package/dist/a2ui-react245.js +49 -0
- package/dist/a2ui-react246.js +14 -0
- package/dist/a2ui-react247.js +208 -0
- package/dist/a2ui-react248.js +24 -0
- package/dist/a2ui-react249.js +402 -0
- package/dist/a2ui-react25.js +27 -0
- package/dist/a2ui-react250.js +49 -0
- package/dist/a2ui-react251.js +49 -0
- package/dist/a2ui-react252.js +54 -0
- package/dist/a2ui-react253.js +7 -0
- package/dist/a2ui-react254.js +7 -0
- package/dist/a2ui-react255.js +18 -0
- package/dist/a2ui-react256.js +8 -0
- package/dist/a2ui-react257.js +10 -0
- package/dist/a2ui-react258.js +19 -0
- package/dist/a2ui-react259.js +7 -0
- package/dist/a2ui-react26.js +44 -0
- package/dist/a2ui-react260.js +7 -0
- package/dist/a2ui-react261.js +8 -0
- package/dist/a2ui-react262.js +8 -0
- package/dist/a2ui-react263.js +7 -0
- package/dist/a2ui-react264.js +7 -0
- package/dist/a2ui-react265.js +9 -0
- package/dist/a2ui-react266.js +27 -0
- package/dist/a2ui-react267.js +9 -0
- package/dist/a2ui-react268.js +7 -0
- package/dist/a2ui-react269.js +9 -0
- package/dist/a2ui-react27.js +100 -0
- package/dist/a2ui-react270.js +8 -0
- package/dist/a2ui-react271.js +7 -0
- package/dist/a2ui-react272.js +8 -0
- package/dist/a2ui-react273.js +7 -0
- package/dist/a2ui-react274.js +11 -0
- package/dist/a2ui-react275.js +8 -0
- package/dist/a2ui-react276.js +7 -0
- package/dist/a2ui-react277.js +7 -0
- package/dist/a2ui-react278.js +9 -0
- package/dist/a2ui-react279.js +148 -0
- package/dist/a2ui-react28.js +82 -0
- package/dist/a2ui-react280.js +42 -0
- package/dist/a2ui-react281.js +7 -0
- package/dist/a2ui-react282.js +10 -0
- package/dist/a2ui-react283.js +16 -0
- package/dist/a2ui-react284.js +10 -0
- package/dist/a2ui-react285.js +34 -0
- package/dist/a2ui-react286.js +13 -0
- package/dist/a2ui-react287.js +13 -0
- package/dist/a2ui-react288.js +11 -0
- package/dist/a2ui-react289.js +16 -0
- package/dist/a2ui-react29.js +43 -0
- package/dist/a2ui-react290.js +104 -0
- package/dist/a2ui-react291.js +22 -0
- package/dist/a2ui-react292.js +56 -0
- package/dist/a2ui-react293.js +75 -0
- package/dist/a2ui-react294.js +12 -0
- package/dist/a2ui-react295.js +23 -0
- package/dist/a2ui-react296.js +19 -0
- package/dist/a2ui-react297.js +26 -0
- package/dist/a2ui-react298.js +9 -0
- package/dist/a2ui-react299.js +8 -0
- package/dist/a2ui-react3.js +40 -0
- package/dist/a2ui-react30.js +41 -0
- package/dist/a2ui-react300.js +26 -0
- package/dist/a2ui-react301.js +37 -0
- package/dist/a2ui-react302.js +18 -0
- package/dist/a2ui-react303.js +9 -0
- package/dist/a2ui-react304.js +7 -0
- package/dist/a2ui-react305.js +7 -0
- package/dist/a2ui-react306.js +7 -0
- package/dist/a2ui-react307.js +7 -0
- package/dist/a2ui-react308.js +6 -0
- package/dist/a2ui-react309.js +9 -0
- package/dist/a2ui-react31.js +86 -0
- package/dist/a2ui-react310.js +26 -0
- package/dist/a2ui-react311.js +10 -0
- package/dist/a2ui-react312.js +9 -0
- package/dist/a2ui-react313.js +8 -0
- package/dist/a2ui-react314.js +6 -0
- package/dist/a2ui-react315.js +6 -0
- package/dist/a2ui-react316.js +7 -0
- package/dist/a2ui-react317.js +6 -0
- package/dist/a2ui-react318.js +7 -0
- package/dist/a2ui-react319.js +6 -0
- package/dist/a2ui-react32.js +46 -0
- package/dist/a2ui-react320.js +6 -0
- package/dist/a2ui-react321.js +6 -0
- package/dist/a2ui-react322.js +9 -0
- package/dist/a2ui-react323.js +18 -0
- package/dist/a2ui-react324.js +31 -0
- package/dist/a2ui-react325.js +15 -0
- package/dist/a2ui-react326.js +27 -0
- package/dist/a2ui-react327.js +31 -0
- package/dist/a2ui-react328.js +7 -0
- package/dist/a2ui-react329.js +19 -0
- package/dist/a2ui-react33.js +44 -0
- package/dist/a2ui-react330.js +8 -0
- package/dist/a2ui-react331.js +8 -0
- package/dist/a2ui-react332.js +61 -0
- package/dist/a2ui-react333.js +69 -0
- package/dist/a2ui-react334.js +9 -0
- package/dist/a2ui-react335.js +7 -0
- package/dist/a2ui-react336.js +26 -0
- package/dist/a2ui-react337.js +19 -0
- package/dist/a2ui-react338.js +10 -0
- package/dist/a2ui-react339.js +13 -0
- package/dist/a2ui-react34.js +8 -0
- package/dist/a2ui-react340.js +13 -0
- package/dist/a2ui-react341.js +24 -0
- package/dist/a2ui-react342.js +13 -0
- package/dist/a2ui-react343.js +12 -0
- package/dist/a2ui-react344.js +12 -0
- package/dist/a2ui-react345.js +7 -0
- package/dist/a2ui-react346.js +8 -0
- package/dist/a2ui-react347.js +19 -0
- package/dist/a2ui-react348.js +12 -0
- package/dist/a2ui-react349.js +21 -0
- package/dist/a2ui-react35.js +16 -0
- package/dist/a2ui-react350.js +18 -0
- package/dist/a2ui-react351.js +15 -0
- package/dist/a2ui-react352.js +32 -0
- package/dist/a2ui-react353.js +15 -0
- package/dist/a2ui-react354.js +28 -0
- package/dist/a2ui-react355.js +8 -0
- package/dist/a2ui-react356.js +11 -0
- package/dist/a2ui-react357.js +22 -0
- package/dist/a2ui-react358.js +7 -0
- package/dist/a2ui-react359.js +5 -0
- package/dist/a2ui-react36.js +23 -0
- package/dist/a2ui-react360.js +26 -0
- package/dist/a2ui-react361.js +115 -0
- package/dist/a2ui-react362.js +18 -0
- package/dist/a2ui-react363.js +527 -0
- package/dist/a2ui-react364.js +130 -0
- package/dist/a2ui-react365.js +136 -0
- package/dist/a2ui-react366.js +7 -0
- package/dist/a2ui-react367.js +15 -0
- package/dist/a2ui-react368.js +67 -0
- package/dist/a2ui-react369.js +71 -0
- package/dist/a2ui-react37.js +15 -0
- package/dist/a2ui-react370.js +11 -0
- package/dist/a2ui-react371.js +16 -0
- package/dist/a2ui-react372.js +68 -0
- package/dist/a2ui-react373.js +6 -0
- package/dist/a2ui-react374.js +25 -0
- package/dist/a2ui-react375.js +15 -0
- package/dist/a2ui-react376.js +30 -0
- package/dist/a2ui-react377.js +7 -0
- package/dist/a2ui-react378.js +25 -0
- package/dist/a2ui-react38.js +10 -0
- package/dist/a2ui-react39.js +10 -0
- package/dist/a2ui-react4.js +76 -0
- package/dist/a2ui-react40.js +14 -0
- package/dist/a2ui-react41.js +14 -0
- package/dist/a2ui-react42.js +16 -0
- package/dist/a2ui-react43.js +12 -0
- package/dist/a2ui-react44.js +15 -0
- package/dist/a2ui-react45.js +15 -0
- package/dist/a2ui-react46.js +9 -0
- package/dist/a2ui-react47.js +11 -0
- package/dist/a2ui-react48.js +16 -0
- package/dist/a2ui-react49.js +10 -0
- package/dist/a2ui-react5.js +8 -0
- package/dist/a2ui-react50.js +14 -0
- package/dist/a2ui-react51.js +9 -0
- package/dist/a2ui-react52.js +9 -0
- package/dist/a2ui-react53.js +15 -0
- package/dist/a2ui-react54.js +17 -0
- package/dist/a2ui-react55.js +10 -0
- package/dist/a2ui-react56.js +10 -0
- package/dist/a2ui-react57.js +10 -0
- package/dist/a2ui-react58.js +9 -0
- package/dist/a2ui-react59.js +9 -0
- package/dist/a2ui-react6.js +28 -0
- package/dist/a2ui-react60.js +9 -0
- package/dist/a2ui-react61.js +15 -0
- package/dist/a2ui-react62.js +10 -0
- package/dist/a2ui-react63.js +15 -0
- package/dist/a2ui-react64.js +10 -0
- package/dist/a2ui-react65.js +14 -0
- package/dist/a2ui-react66.js +22 -0
- package/dist/a2ui-react67.js +14 -0
- package/dist/a2ui-react68.js +10 -0
- package/dist/a2ui-react69.js +17 -0
- package/dist/a2ui-react7.js +10 -0
- package/dist/a2ui-react70.js +15 -0
- package/dist/a2ui-react71.js +10 -0
- package/dist/a2ui-react72.js +12 -0
- package/dist/a2ui-react73.js +9 -0
- package/dist/a2ui-react74.js +6 -0
- package/dist/a2ui-react75.js +15 -0
- package/dist/a2ui-react76.js +11 -0
- package/dist/a2ui-react77.js +14 -0
- package/dist/a2ui-react78.js +9 -0
- package/dist/a2ui-react79.js +9 -0
- package/dist/a2ui-react8.js +21 -0
- package/dist/a2ui-react80.js +9 -0
- package/dist/a2ui-react81.js +10 -0
- package/dist/a2ui-react82.js +26 -0
- package/dist/a2ui-react83.js +29 -0
- package/dist/a2ui-react84.js +67 -0
- package/dist/a2ui-react85.js +77 -0
- package/dist/a2ui-react86.js +53 -0
- package/dist/a2ui-react87.js +31 -0
- package/dist/a2ui-react88.js +22 -0
- package/dist/a2ui-react89.js +21 -0
- package/dist/a2ui-react9.js +88 -0
- package/{src/components/ui/textarea.tsx → dist/a2ui-react90.js} +17 -17
- package/dist/a2ui-react91.js +176 -0
- package/dist/a2ui-react92.js +38 -0
- package/dist/a2ui-react93.js +88 -0
- package/dist/a2ui-react94.js +9 -0
- package/dist/a2ui-react95.js +58 -0
- package/dist/a2ui-react96.js +146 -0
- package/dist/a2ui-react97.js +63 -0
- package/dist/a2ui-react98.js +17 -0
- package/dist/a2ui-react99.js +2765 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/native-select.d.ts +7 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +10 -2
- package/.claude/commands/speckit.analyze.md +0 -184
- package/.claude/commands/speckit.checklist.md +0 -294
- package/.claude/commands/speckit.clarify.md +0 -181
- package/.claude/commands/speckit.constitution.md +0 -82
- package/.claude/commands/speckit.implement.md +0 -135
- package/.claude/commands/speckit.plan.md +0 -89
- package/.claude/commands/speckit.specify.md +0 -256
- package/.claude/commands/speckit.tasks.md +0 -137
- package/.claude/commands/speckit.taskstoissues.md +0 -30
- package/.github/workflows/deploy.yml +0 -69
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -4
- package/.prettierrc +0 -7
- package/.specify/memory/constitution.md +0 -73
- package/.specify/scripts/bash/check-prerequisites.sh +0 -166
- package/.specify/scripts/bash/common.sh +0 -156
- package/.specify/scripts/bash/create-new-feature.sh +0 -297
- package/.specify/scripts/bash/setup-plan.sh +0 -61
- package/.specify/scripts/bash/update-agent-context.sh +0 -799
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/plan-template.md +0 -105
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -250
- package/CLAUDE.md +0 -105
- package/CONTRIBUTING.md +0 -97
- package/components.json +0 -21
- package/eslint.config.js +0 -25
- package/netlify.toml +0 -50
- package/playground/README.md +0 -75
- package/playground/index.html +0 -22
- package/playground/package.json +0 -32
- package/playground/public/favicon.svg +0 -8
- package/playground/src/App.css +0 -256
- package/playground/src/App.tsx +0 -115
- package/playground/src/assets/react.svg +0 -1
- package/playground/src/components/ErrorDisplay.tsx +0 -13
- package/playground/src/components/ExampleSelector.tsx +0 -64
- package/playground/src/components/Header.tsx +0 -47
- package/playground/src/components/JsonEditor.tsx +0 -32
- package/playground/src/components/Preview.tsx +0 -78
- package/playground/src/components/ThemeToggle.tsx +0 -19
- package/playground/src/data/examples.ts +0 -1571
- package/playground/src/hooks/useTheme.ts +0 -55
- package/playground/src/index.css +0 -220
- package/playground/src/main.tsx +0 -10
- package/playground/tsconfig.app.json +0 -34
- package/playground/tsconfig.json +0 -13
- package/playground/tsconfig.node.json +0 -26
- package/playground/vite.config.ts +0 -31
- package/specs/001-a2ui-renderer/checklists/requirements.md +0 -41
- package/specs/001-a2ui-renderer/data-model.md +0 -140
- package/specs/001-a2ui-renderer/plan.md +0 -123
- package/specs/001-a2ui-renderer/quickstart.md +0 -141
- package/specs/001-a2ui-renderer/research.md +0 -140
- package/specs/001-a2ui-renderer/spec.md +0 -165
- package/specs/001-a2ui-renderer/tasks.md +0 -310
- package/specs/002-playground/checklists/requirements.md +0 -37
- package/specs/002-playground/contracts/components.md +0 -120
- package/specs/002-playground/data-model.md +0 -149
- package/specs/002-playground/plan.md +0 -73
- package/specs/002-playground/quickstart.md +0 -158
- package/specs/002-playground/research.md +0 -117
- package/specs/002-playground/spec.md +0 -109
- package/specs/002-playground/tasks.md +0 -224
- package/src/0.8/A2UIRender.test.tsx +0 -793
- package/src/0.8/A2UIRender.tsx +0 -142
- package/src/0.8/components/ComponentRenderer.test.tsx +0 -373
- package/src/0.8/components/ComponentRenderer.tsx +0 -163
- package/src/0.8/components/UnknownComponent.tsx +0 -49
- package/src/0.8/components/display/AudioPlayerComponent.tsx +0 -37
- package/src/0.8/components/display/DividerComponent.tsx +0 -23
- package/src/0.8/components/display/IconComponent.tsx +0 -137
- package/src/0.8/components/display/ImageComponent.tsx +0 -57
- package/src/0.8/components/display/TextComponent.tsx +0 -56
- package/src/0.8/components/display/VideoComponent.tsx +0 -31
- package/src/0.8/components/display/display.test.tsx +0 -660
- package/src/0.8/components/display/index.ts +0 -10
- package/src/0.8/components/index.ts +0 -14
- package/src/0.8/components/interactive/ButtonComponent.tsx +0 -44
- package/src/0.8/components/interactive/CheckBoxComponent.tsx +0 -45
- package/src/0.8/components/interactive/DateTimeInputComponent.tsx +0 -176
- package/src/0.8/components/interactive/MultipleChoiceComponent.tsx +0 -157
- package/src/0.8/components/interactive/SliderComponent.tsx +0 -53
- package/src/0.8/components/interactive/TextFieldComponent.tsx +0 -65
- package/src/0.8/components/interactive/index.ts +0 -10
- package/src/0.8/components/interactive/interactive.test.tsx +0 -618
- package/src/0.8/components/layout/CardComponent.tsx +0 -30
- package/src/0.8/components/layout/ColumnComponent.tsx +0 -93
- package/src/0.8/components/layout/ListComponent.tsx +0 -81
- package/src/0.8/components/layout/ModalComponent.tsx +0 -41
- package/src/0.8/components/layout/RowComponent.tsx +0 -94
- package/src/0.8/components/layout/TabsComponent.tsx +0 -59
- package/src/0.8/components/layout/index.ts +0 -10
- package/src/0.8/components/layout/layout.test.tsx +0 -558
- package/src/0.8/contexts/A2UIProvider.test.tsx +0 -226
- package/src/0.8/contexts/A2UIProvider.tsx +0 -54
- package/src/0.8/contexts/ActionContext.test.tsx +0 -242
- package/src/0.8/contexts/ActionContext.tsx +0 -105
- package/src/0.8/contexts/ComponentsMapContext.tsx +0 -125
- package/src/0.8/contexts/DataModelContext.test.tsx +0 -335
- package/src/0.8/contexts/DataModelContext.tsx +0 -184
- package/src/0.8/contexts/SurfaceContext.test.tsx +0 -339
- package/src/0.8/contexts/SurfaceContext.tsx +0 -197
- package/src/0.8/hooks/useA2UIMessageHandler.test.tsx +0 -399
- package/src/0.8/hooks/useA2UIMessageHandler.ts +0 -123
- package/src/0.8/hooks/useComponent.test.tsx +0 -148
- package/src/0.8/hooks/useDataBinding.test.tsx +0 -334
- package/src/0.8/hooks/useDataBinding.ts +0 -99
- package/src/0.8/hooks/useDispatchAction.test.tsx +0 -83
- package/src/0.8/hooks/useSurface.test.tsx +0 -114
- package/src/0.8/schemas/client_to_server.json +0 -50
- package/src/0.8/schemas/server_to_client.json +0 -148
- package/src/0.8/schemas/standard_catalog_definition.json +0 -661
- package/src/0.8/utils/dataBinding.test.ts +0 -443
- package/src/0.8/utils/dataBinding.ts +0 -212
- package/src/0.8/utils/pathUtils.test.ts +0 -353
- package/src/0.8/utils/pathUtils.ts +0 -200
- package/src/components/ui/button.tsx +0 -62
- package/src/components/ui/calendar.tsx +0 -220
- package/src/components/ui/card.tsx +0 -92
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -141
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -22
- package/src/components/ui/native-select.tsx +0 -53
- package/src/components/ui/popover.tsx +0 -46
- package/src/components/ui/select.tsx +0 -188
- package/src/components/ui/separator.tsx +0 -26
- package/src/components/ui/slider.tsx +0 -61
- package/src/components/ui/tabs.tsx +0 -64
- package/src/index.ts +0 -1
- package/src/lib/utils.ts +0 -6
- package/tsconfig.json +0 -28
- package/vite.config.ts +0 -29
- package/vitest.config.ts +0 -22
- package/vitest.setup.ts +0 -8
- package/website/README.md +0 -4
- package/website/assets/favicon.svg +0 -8
- package/website/content/.gitkeep +0 -0
- package/website/content/index.md +0 -122
- package/website/global.d.ts +0 -9
- package/website/package.json +0 -17
- package/website/plain.config.js +0 -28
- package/website/serve.json +0 -6
- package/website/src/client/color-mode-switch.css +0 -47
- package/website/src/client/index.js +0 -61
- package/website/src/client/moon.svg +0 -1
- package/website/src/client/sun.svg +0 -1
- package/website/src/components/Footer.jsx +0 -9
- package/website/src/components/Header.jsx +0 -44
- package/website/src/components/Page.jsx +0 -28
- package/website/src/global.css +0 -423
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { clamp as $ } from "./a2ui-react212.js";
|
|
3
|
+
import { composeEventHandlers as _ } from "./a2ui-react213.js";
|
|
4
|
+
import { useComposedRefs as C } from "./a2ui-react215.js";
|
|
5
|
+
import { createContextScope as ce } from "./a2ui-react216.js";
|
|
6
|
+
import { useControllableState as le } from "./a2ui-react227.js";
|
|
7
|
+
import { useDirection as de } from "./a2ui-react217.js";
|
|
8
|
+
import { usePrevious as ue } from "./a2ui-react229.js";
|
|
9
|
+
import { useSize as fe } from "./a2ui-react235.js";
|
|
10
|
+
import { Primitive as V } from "./a2ui-react224.js";
|
|
11
|
+
import { createCollection as me } from "./a2ui-react214.js";
|
|
12
|
+
import { jsx as g, jsxs as pe } from "react/jsx-runtime";
|
|
13
|
+
var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], G = {
|
|
14
|
+
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
15
|
+
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
16
|
+
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
17
|
+
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
18
|
+
}, M = "Slider", [N, Se, he] = me(M), [W] = ce(M, [
|
|
19
|
+
he
|
|
20
|
+
]), [ge, B] = W(M), q = l.forwardRef(
|
|
21
|
+
(e, t) => {
|
|
22
|
+
const {
|
|
23
|
+
name: o,
|
|
24
|
+
min: n = 0,
|
|
25
|
+
max: s = 100,
|
|
26
|
+
step: c = 1,
|
|
27
|
+
orientation: r = "horizontal",
|
|
28
|
+
disabled: a = !1,
|
|
29
|
+
minStepsBetweenThumbs: u = 0,
|
|
30
|
+
defaultValue: w = [n],
|
|
31
|
+
value: S,
|
|
32
|
+
onValueChange: i = () => {
|
|
33
|
+
},
|
|
34
|
+
onValueCommit: d = () => {
|
|
35
|
+
},
|
|
36
|
+
inverted: v = !1,
|
|
37
|
+
form: y,
|
|
38
|
+
...h
|
|
39
|
+
} = e, m = l.useRef(/* @__PURE__ */ new Set()), f = l.useRef(0), b = r === "horizontal" ? ve : we, [p = [], K] = le({
|
|
40
|
+
prop: S,
|
|
41
|
+
defaultProp: w,
|
|
42
|
+
onChange: (R) => {
|
|
43
|
+
[...m.current][f.current]?.focus(), i(R);
|
|
44
|
+
}
|
|
45
|
+
}), T = l.useRef(p);
|
|
46
|
+
function k(R) {
|
|
47
|
+
const P = xe(p, R);
|
|
48
|
+
I(R, P);
|
|
49
|
+
}
|
|
50
|
+
function se(R) {
|
|
51
|
+
I(R, f.current);
|
|
52
|
+
}
|
|
53
|
+
function ae() {
|
|
54
|
+
const R = T.current[f.current];
|
|
55
|
+
p[f.current] !== R && d(p);
|
|
56
|
+
}
|
|
57
|
+
function I(R, P, { commit: z } = { commit: !1 }) {
|
|
58
|
+
const F = Ce(c), H = Me(Math.round((R - n) / c) * c + n, F), A = $(H, [n, s]);
|
|
59
|
+
K((E = []) => {
|
|
60
|
+
const x = ye(E, A, P);
|
|
61
|
+
if (_e(x, u * c)) {
|
|
62
|
+
f.current = x.indexOf(A);
|
|
63
|
+
const Y = String(x) !== String(E);
|
|
64
|
+
return Y && z && d(x), Y ? x : E;
|
|
65
|
+
} else
|
|
66
|
+
return E;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return /* @__PURE__ */ g(
|
|
70
|
+
ge,
|
|
71
|
+
{
|
|
72
|
+
scope: e.__scopeSlider,
|
|
73
|
+
name: o,
|
|
74
|
+
disabled: a,
|
|
75
|
+
min: n,
|
|
76
|
+
max: s,
|
|
77
|
+
valueIndexToChangeRef: f,
|
|
78
|
+
thumbs: m.current,
|
|
79
|
+
values: p,
|
|
80
|
+
orientation: r,
|
|
81
|
+
form: y,
|
|
82
|
+
children: /* @__PURE__ */ g(N.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ g(N.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ g(
|
|
83
|
+
b,
|
|
84
|
+
{
|
|
85
|
+
"aria-disabled": a,
|
|
86
|
+
"data-disabled": a ? "" : void 0,
|
|
87
|
+
...h,
|
|
88
|
+
ref: t,
|
|
89
|
+
onPointerDown: _(h.onPointerDown, () => {
|
|
90
|
+
a || (T.current = p);
|
|
91
|
+
}),
|
|
92
|
+
min: n,
|
|
93
|
+
max: s,
|
|
94
|
+
inverted: v,
|
|
95
|
+
onSlideStart: a ? void 0 : k,
|
|
96
|
+
onSlideMove: a ? void 0 : se,
|
|
97
|
+
onSlideEnd: a ? void 0 : ae,
|
|
98
|
+
onHomeKeyDown: () => !a && I(n, 0, { commit: !0 }),
|
|
99
|
+
onEndKeyDown: () => !a && I(s, p.length - 1, { commit: !0 }),
|
|
100
|
+
onStepKeyDown: ({ event: R, direction: P }) => {
|
|
101
|
+
if (!a) {
|
|
102
|
+
const H = j.includes(R.key) || R.shiftKey && X.includes(R.key) ? 10 : 1, A = f.current, E = p[A], x = c * H * P;
|
|
103
|
+
I(E + x, A, { commit: !0 });
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
) }) })
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
q.displayName = M;
|
|
113
|
+
var [J, Q] = W(M, {
|
|
114
|
+
startEdge: "left",
|
|
115
|
+
endEdge: "right",
|
|
116
|
+
size: "width",
|
|
117
|
+
direction: 1
|
|
118
|
+
}), ve = l.forwardRef(
|
|
119
|
+
(e, t) => {
|
|
120
|
+
const {
|
|
121
|
+
min: o,
|
|
122
|
+
max: n,
|
|
123
|
+
dir: s,
|
|
124
|
+
inverted: c,
|
|
125
|
+
onSlideStart: r,
|
|
126
|
+
onSlideMove: a,
|
|
127
|
+
onSlideEnd: u,
|
|
128
|
+
onStepKeyDown: w,
|
|
129
|
+
...S
|
|
130
|
+
} = e, [i, d] = l.useState(null), v = C(t, (b) => d(b)), y = l.useRef(void 0), h = de(s), m = h === "ltr", f = m && !c || !m && c;
|
|
131
|
+
function D(b) {
|
|
132
|
+
const p = y.current || i.getBoundingClientRect(), K = [0, p.width], k = U(K, f ? [o, n] : [n, o]);
|
|
133
|
+
return y.current = p, k(b - p.left);
|
|
134
|
+
}
|
|
135
|
+
return /* @__PURE__ */ g(
|
|
136
|
+
J,
|
|
137
|
+
{
|
|
138
|
+
scope: e.__scopeSlider,
|
|
139
|
+
startEdge: f ? "left" : "right",
|
|
140
|
+
endEdge: f ? "right" : "left",
|
|
141
|
+
direction: f ? 1 : -1,
|
|
142
|
+
size: "width",
|
|
143
|
+
children: /* @__PURE__ */ g(
|
|
144
|
+
Z,
|
|
145
|
+
{
|
|
146
|
+
dir: h,
|
|
147
|
+
"data-orientation": "horizontal",
|
|
148
|
+
...S,
|
|
149
|
+
ref: v,
|
|
150
|
+
style: {
|
|
151
|
+
...S.style,
|
|
152
|
+
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
153
|
+
},
|
|
154
|
+
onSlideStart: (b) => {
|
|
155
|
+
const p = D(b.clientX);
|
|
156
|
+
r?.(p);
|
|
157
|
+
},
|
|
158
|
+
onSlideMove: (b) => {
|
|
159
|
+
const p = D(b.clientX);
|
|
160
|
+
a?.(p);
|
|
161
|
+
},
|
|
162
|
+
onSlideEnd: () => {
|
|
163
|
+
y.current = void 0, u?.();
|
|
164
|
+
},
|
|
165
|
+
onStepKeyDown: (b) => {
|
|
166
|
+
const K = G[f ? "from-left" : "from-right"].includes(b.key);
|
|
167
|
+
w?.({ event: b, direction: K ? -1 : 1 });
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
), we = l.forwardRef(
|
|
175
|
+
(e, t) => {
|
|
176
|
+
const {
|
|
177
|
+
min: o,
|
|
178
|
+
max: n,
|
|
179
|
+
inverted: s,
|
|
180
|
+
onSlideStart: c,
|
|
181
|
+
onSlideMove: r,
|
|
182
|
+
onSlideEnd: a,
|
|
183
|
+
onStepKeyDown: u,
|
|
184
|
+
...w
|
|
185
|
+
} = e, S = l.useRef(null), i = C(t, S), d = l.useRef(void 0), v = !s;
|
|
186
|
+
function y(h) {
|
|
187
|
+
const m = d.current || S.current.getBoundingClientRect(), f = [0, m.height], b = U(f, v ? [n, o] : [o, n]);
|
|
188
|
+
return d.current = m, b(h - m.top);
|
|
189
|
+
}
|
|
190
|
+
return /* @__PURE__ */ g(
|
|
191
|
+
J,
|
|
192
|
+
{
|
|
193
|
+
scope: e.__scopeSlider,
|
|
194
|
+
startEdge: v ? "bottom" : "top",
|
|
195
|
+
endEdge: v ? "top" : "bottom",
|
|
196
|
+
size: "height",
|
|
197
|
+
direction: v ? 1 : -1,
|
|
198
|
+
children: /* @__PURE__ */ g(
|
|
199
|
+
Z,
|
|
200
|
+
{
|
|
201
|
+
"data-orientation": "vertical",
|
|
202
|
+
...w,
|
|
203
|
+
ref: i,
|
|
204
|
+
style: {
|
|
205
|
+
...w.style,
|
|
206
|
+
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
207
|
+
},
|
|
208
|
+
onSlideStart: (h) => {
|
|
209
|
+
const m = y(h.clientY);
|
|
210
|
+
c?.(m);
|
|
211
|
+
},
|
|
212
|
+
onSlideMove: (h) => {
|
|
213
|
+
const m = y(h.clientY);
|
|
214
|
+
r?.(m);
|
|
215
|
+
},
|
|
216
|
+
onSlideEnd: () => {
|
|
217
|
+
d.current = void 0, a?.();
|
|
218
|
+
},
|
|
219
|
+
onStepKeyDown: (h) => {
|
|
220
|
+
const f = G[v ? "from-bottom" : "from-top"].includes(h.key);
|
|
221
|
+
u?.({ event: h, direction: f ? -1 : 1 });
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
), Z = l.forwardRef(
|
|
229
|
+
(e, t) => {
|
|
230
|
+
const {
|
|
231
|
+
__scopeSlider: o,
|
|
232
|
+
onSlideStart: n,
|
|
233
|
+
onSlideMove: s,
|
|
234
|
+
onSlideEnd: c,
|
|
235
|
+
onHomeKeyDown: r,
|
|
236
|
+
onEndKeyDown: a,
|
|
237
|
+
onStepKeyDown: u,
|
|
238
|
+
...w
|
|
239
|
+
} = e, S = B(M, o);
|
|
240
|
+
return /* @__PURE__ */ g(
|
|
241
|
+
V.span,
|
|
242
|
+
{
|
|
243
|
+
...w,
|
|
244
|
+
ref: t,
|
|
245
|
+
onKeyDown: _(e.onKeyDown, (i) => {
|
|
246
|
+
i.key === "Home" ? (r(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) : j.concat(X).includes(i.key) && (u(i), i.preventDefault());
|
|
247
|
+
}),
|
|
248
|
+
onPointerDown: _(e.onPointerDown, (i) => {
|
|
249
|
+
const d = i.target;
|
|
250
|
+
d.setPointerCapture(i.pointerId), i.preventDefault(), S.thumbs.has(d) ? d.focus() : n(i);
|
|
251
|
+
}),
|
|
252
|
+
onPointerMove: _(e.onPointerMove, (i) => {
|
|
253
|
+
i.target.hasPointerCapture(i.pointerId) && s(i);
|
|
254
|
+
}),
|
|
255
|
+
onPointerUp: _(e.onPointerUp, (i) => {
|
|
256
|
+
const d = i.target;
|
|
257
|
+
d.hasPointerCapture(i.pointerId) && (d.releasePointerCapture(i.pointerId), c(i));
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
), ee = "SliderTrack", te = l.forwardRef(
|
|
263
|
+
(e, t) => {
|
|
264
|
+
const { __scopeSlider: o, ...n } = e, s = B(ee, o);
|
|
265
|
+
return /* @__PURE__ */ g(
|
|
266
|
+
V.span,
|
|
267
|
+
{
|
|
268
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
269
|
+
"data-orientation": s.orientation,
|
|
270
|
+
...n,
|
|
271
|
+
ref: t
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
);
|
|
276
|
+
te.displayName = ee;
|
|
277
|
+
var L = "SliderRange", ne = l.forwardRef(
|
|
278
|
+
(e, t) => {
|
|
279
|
+
const { __scopeSlider: o, ...n } = e, s = B(L, o), c = Q(L, o), r = l.useRef(null), a = C(t, r), u = s.values.length, w = s.values.map(
|
|
280
|
+
(d) => ie(d, s.min, s.max)
|
|
281
|
+
), S = u > 1 ? Math.min(...w) : 0, i = 100 - Math.max(...w);
|
|
282
|
+
return /* @__PURE__ */ g(
|
|
283
|
+
V.span,
|
|
284
|
+
{
|
|
285
|
+
"data-orientation": s.orientation,
|
|
286
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
287
|
+
...n,
|
|
288
|
+
ref: a,
|
|
289
|
+
style: {
|
|
290
|
+
...e.style,
|
|
291
|
+
[c.startEdge]: S + "%",
|
|
292
|
+
[c.endEdge]: i + "%"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
ne.displayName = L;
|
|
299
|
+
var O = "SliderThumb", oe = l.forwardRef(
|
|
300
|
+
(e, t) => {
|
|
301
|
+
const o = Se(e.__scopeSlider), [n, s] = l.useState(null), c = C(t, (a) => s(a)), r = l.useMemo(
|
|
302
|
+
() => n ? o().findIndex((a) => a.ref.current === n) : -1,
|
|
303
|
+
[o, n]
|
|
304
|
+
);
|
|
305
|
+
return /* @__PURE__ */ g(be, { ...e, ref: c, index: r });
|
|
306
|
+
}
|
|
307
|
+
), be = l.forwardRef(
|
|
308
|
+
(e, t) => {
|
|
309
|
+
const { __scopeSlider: o, index: n, name: s, ...c } = e, r = B(O, o), a = Q(O, o), [u, w] = l.useState(null), S = C(t, (D) => w(D)), i = u ? r.form || !!u.closest("form") : !0, d = fe(u), v = r.values[n], y = v === void 0 ? 0 : ie(v, r.min, r.max), h = Pe(n, r.values.length), m = d?.[a.size], f = m ? De(m, y, a.direction) : 0;
|
|
310
|
+
return l.useEffect(() => {
|
|
311
|
+
if (u)
|
|
312
|
+
return r.thumbs.add(u), () => {
|
|
313
|
+
r.thumbs.delete(u);
|
|
314
|
+
};
|
|
315
|
+
}, [u, r.thumbs]), /* @__PURE__ */ pe(
|
|
316
|
+
"span",
|
|
317
|
+
{
|
|
318
|
+
style: {
|
|
319
|
+
transform: "var(--radix-slider-thumb-transform)",
|
|
320
|
+
position: "absolute",
|
|
321
|
+
[a.startEdge]: `calc(${y}% + ${f}px)`
|
|
322
|
+
},
|
|
323
|
+
children: [
|
|
324
|
+
/* @__PURE__ */ g(N.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ g(
|
|
325
|
+
V.span,
|
|
326
|
+
{
|
|
327
|
+
role: "slider",
|
|
328
|
+
"aria-label": e["aria-label"] || h,
|
|
329
|
+
"aria-valuemin": r.min,
|
|
330
|
+
"aria-valuenow": v,
|
|
331
|
+
"aria-valuemax": r.max,
|
|
332
|
+
"aria-orientation": r.orientation,
|
|
333
|
+
"data-orientation": r.orientation,
|
|
334
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
335
|
+
tabIndex: r.disabled ? void 0 : 0,
|
|
336
|
+
...c,
|
|
337
|
+
ref: S,
|
|
338
|
+
style: v === void 0 ? { display: "none" } : e.style,
|
|
339
|
+
onFocus: _(e.onFocus, () => {
|
|
340
|
+
r.valueIndexToChangeRef.current = n;
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
) }),
|
|
344
|
+
i && /* @__PURE__ */ g(
|
|
345
|
+
re,
|
|
346
|
+
{
|
|
347
|
+
name: s ?? (r.name ? r.name + (r.values.length > 1 ? "[]" : "") : void 0),
|
|
348
|
+
form: r.form,
|
|
349
|
+
value: v
|
|
350
|
+
},
|
|
351
|
+
n
|
|
352
|
+
)
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
);
|
|
358
|
+
oe.displayName = O;
|
|
359
|
+
var Re = "RadioBubbleInput", re = l.forwardRef(
|
|
360
|
+
({ __scopeSlider: e, value: t, ...o }, n) => {
|
|
361
|
+
const s = l.useRef(null), c = C(s, n), r = ue(t);
|
|
362
|
+
return l.useEffect(() => {
|
|
363
|
+
const a = s.current;
|
|
364
|
+
if (!a) return;
|
|
365
|
+
const u = window.HTMLInputElement.prototype, S = Object.getOwnPropertyDescriptor(u, "value").set;
|
|
366
|
+
if (r !== t && S) {
|
|
367
|
+
const i = new Event("input", { bubbles: !0 });
|
|
368
|
+
S.call(a, t), a.dispatchEvent(i);
|
|
369
|
+
}
|
|
370
|
+
}, [r, t]), /* @__PURE__ */ g(
|
|
371
|
+
V.input,
|
|
372
|
+
{
|
|
373
|
+
style: { display: "none" },
|
|
374
|
+
...o,
|
|
375
|
+
ref: c,
|
|
376
|
+
defaultValue: t
|
|
377
|
+
}
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
re.displayName = Re;
|
|
382
|
+
function ye(e = [], t, o) {
|
|
383
|
+
const n = [...e];
|
|
384
|
+
return n[o] = t, n.sort((s, c) => s - c);
|
|
385
|
+
}
|
|
386
|
+
function ie(e, t, o) {
|
|
387
|
+
const c = 100 / (o - t) * (e - t);
|
|
388
|
+
return $(c, [0, 100]);
|
|
389
|
+
}
|
|
390
|
+
function Pe(e, t) {
|
|
391
|
+
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
392
|
+
}
|
|
393
|
+
function xe(e, t) {
|
|
394
|
+
if (e.length === 1) return 0;
|
|
395
|
+
const o = e.map((s) => Math.abs(s - t)), n = Math.min(...o);
|
|
396
|
+
return o.indexOf(n);
|
|
397
|
+
}
|
|
398
|
+
function De(e, t, o) {
|
|
399
|
+
const n = e / 2, c = U([0, 50], [0, n]);
|
|
400
|
+
return (n - c(t) * o) * o;
|
|
401
|
+
}
|
|
402
|
+
function Ee(e) {
|
|
403
|
+
return e.slice(0, -1).map((t, o) => e[o + 1] - t);
|
|
404
|
+
}
|
|
405
|
+
function _e(e, t) {
|
|
406
|
+
if (t > 0) {
|
|
407
|
+
const o = Ee(e);
|
|
408
|
+
return Math.min(...o) >= t;
|
|
409
|
+
}
|
|
410
|
+
return !0;
|
|
411
|
+
}
|
|
412
|
+
function U(e, t) {
|
|
413
|
+
return (o) => {
|
|
414
|
+
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
415
|
+
const n = (t[1] - t[0]) / (e[1] - e[0]);
|
|
416
|
+
return t[0] + n * (o - e[0]);
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
function Ce(e) {
|
|
420
|
+
return (String(e).split(".")[1] || "").length;
|
|
421
|
+
}
|
|
422
|
+
function Me(e, t) {
|
|
423
|
+
const o = Math.pow(10, t);
|
|
424
|
+
return Math.round(e * o) / o;
|
|
425
|
+
}
|
|
426
|
+
var Oe = q, Ue = te, Fe = ne, Ye = oe;
|
|
427
|
+
export {
|
|
428
|
+
Fe as Range,
|
|
429
|
+
Oe as Root,
|
|
430
|
+
q as Slider,
|
|
431
|
+
ne as SliderRange,
|
|
432
|
+
oe as SliderThumb,
|
|
433
|
+
te as SliderTrack,
|
|
434
|
+
Ye as Thumb,
|
|
435
|
+
Ue as Track
|
|
436
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "./a2ui-react291.js";
|
|
2
|
+
function i() {
|
|
3
|
+
const o = {};
|
|
4
|
+
for (const n in t)
|
|
5
|
+
o[t[n]] = `rdp-${t[n]}`;
|
|
6
|
+
for (const n in e)
|
|
7
|
+
o[e[n]] = `rdp-${e[n]}`;
|
|
8
|
+
for (const n in r)
|
|
9
|
+
o[r[n]] = `rdp-${r[n]}`;
|
|
10
|
+
for (const n in s)
|
|
11
|
+
o[s[n]] = `rdp-${s[n]}`;
|
|
12
|
+
return o;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as getDefaultClassNames
|
|
16
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
|
|
2
|
+
import { DateLib as Ze } from "./a2ui-react279.js";
|
|
3
|
+
import { createGetModifiers as Ie } from "./a2ui-react280.js";
|
|
4
|
+
import { getClassNamesForModifiers as Ge } from "./a2ui-react281.js";
|
|
5
|
+
import { getComponents as He } from "./a2ui-react282.js";
|
|
6
|
+
import { getDataAttributes as _e } from "./a2ui-react283.js";
|
|
7
|
+
import { getDefaultClassNames as Ue } from "./a2ui-react108.js";
|
|
8
|
+
import { getFormatters as je } from "./a2ui-react284.js";
|
|
9
|
+
import { getLabels as Ve } from "./a2ui-react285.js";
|
|
10
|
+
import { getMonthOptions as $e } from "./a2ui-react286.js";
|
|
11
|
+
import { getStyleForModifiers as qe } from "./a2ui-react287.js";
|
|
12
|
+
import { getWeekdays as ze } from "./a2ui-react288.js";
|
|
13
|
+
import { getYearOptions as Je } from "./a2ui-react289.js";
|
|
14
|
+
import { createNoonOverrides as Qe } from "./a2ui-react290.js";
|
|
15
|
+
import { UI as n, DayFlag as Xe, SelectionState as w } from "./a2ui-react291.js";
|
|
16
|
+
import { useAnimation as et } from "./a2ui-react292.js";
|
|
17
|
+
import { useCalendar as tt } from "./a2ui-react293.js";
|
|
18
|
+
import { dayPickerContext as at } from "./a2ui-react294.js";
|
|
19
|
+
import { useFocus as ot } from "./a2ui-react295.js";
|
|
20
|
+
import { useSelection as nt } from "./a2ui-react296.js";
|
|
21
|
+
import { convertMatchersToTimeZone as K } from "./a2ui-react297.js";
|
|
22
|
+
import { rangeIncludesDate as st } from "./a2ui-react298.js";
|
|
23
|
+
import { toTimeZone as k } from "./a2ui-react299.js";
|
|
24
|
+
import { isDateRange as rt } from "./a2ui-react300.js";
|
|
25
|
+
import { enUS as it } from "./a2ui-react301.js";
|
|
26
|
+
function Yt(R) {
|
|
27
|
+
let e = R;
|
|
28
|
+
const u = e.timeZone;
|
|
29
|
+
if (u && (e = {
|
|
30
|
+
...R,
|
|
31
|
+
timeZone: u
|
|
32
|
+
}, e.today && (e.today = k(e.today, u)), e.month && (e.month = k(e.month, u)), e.defaultMonth && (e.defaultMonth = k(e.defaultMonth, u)), e.startMonth && (e.startMonth = k(e.startMonth, u)), e.endMonth && (e.endMonth = k(e.endMonth, u)), e.mode === "single" && e.selected ? e.selected = k(e.selected, u) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((o) => k(o, u)) : e.mode === "range" && e.selected && (e.selected = {
|
|
33
|
+
from: e.selected.from ? k(e.selected.from, u) : e.selected.from,
|
|
34
|
+
to: e.selected.to ? k(e.selected.to, u) : e.selected.to
|
|
35
|
+
}), e.disabled !== void 0 && (e.disabled = K(e.disabled, u)), e.hidden !== void 0 && (e.hidden = K(e.hidden, u)), e.modifiers)) {
|
|
36
|
+
const o = {};
|
|
37
|
+
Object.keys(e.modifiers).forEach((i) => {
|
|
38
|
+
o[i] = K(e.modifiers?.[i], u);
|
|
39
|
+
}), e.modifiers = o;
|
|
40
|
+
}
|
|
41
|
+
const { components: m, formatters: v, labels: Z, dateLib: a, locale: se, classNames: d } = T(() => {
|
|
42
|
+
const o = { ...it, ...e.locale }, i = e.broadcastCalendar ? 1 : e.weekStartsOn, t = e.noonSafe && e.timeZone ? Qe(e.timeZone, {
|
|
43
|
+
weekStartsOn: i,
|
|
44
|
+
locale: o
|
|
45
|
+
}) : void 0, r = e.dateLib && t ? { ...t, ...e.dateLib } : e.dateLib ?? t, f = new Ze({
|
|
46
|
+
locale: o,
|
|
47
|
+
weekStartsOn: i,
|
|
48
|
+
firstWeekContainsDate: e.firstWeekContainsDate,
|
|
49
|
+
useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
|
|
50
|
+
useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens,
|
|
51
|
+
timeZone: e.timeZone,
|
|
52
|
+
numerals: e.numerals
|
|
53
|
+
}, r);
|
|
54
|
+
return {
|
|
55
|
+
dateLib: f,
|
|
56
|
+
components: He(e.components),
|
|
57
|
+
formatters: je(e.formatters),
|
|
58
|
+
labels: Ve(e.labels, f.options),
|
|
59
|
+
locale: o,
|
|
60
|
+
classNames: { ...Ue(), ...e.classNames }
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
e.locale,
|
|
64
|
+
e.broadcastCalendar,
|
|
65
|
+
e.weekStartsOn,
|
|
66
|
+
e.firstWeekContainsDate,
|
|
67
|
+
e.useAdditionalWeekYearTokens,
|
|
68
|
+
e.useAdditionalDayOfYearTokens,
|
|
69
|
+
e.timeZone,
|
|
70
|
+
e.numerals,
|
|
71
|
+
e.dateLib,
|
|
72
|
+
e.noonSafe,
|
|
73
|
+
e.components,
|
|
74
|
+
e.formatters,
|
|
75
|
+
e.labels,
|
|
76
|
+
e.classNames
|
|
77
|
+
]);
|
|
78
|
+
e.today || (e = { ...e, today: a.today() });
|
|
79
|
+
const { captionLayout: N, mode: C, navLayout: D, numberOfMonths: I = 1, onDayBlur: G, onDayClick: W, onDayFocus: H, onDayKeyDown: _, onDayMouseEnter: U, onDayMouseLeave: j, onNextClick: V, onPrevClick: $, showWeekNumber: q, styles: c } = e, { formatCaption: z, formatDay: J, formatMonthDropdown: re, formatWeekNumber: ie, formatWeekNumberHeader: de, formatWeekdayName: le, formatYearDropdown: me } = v, Q = tt(e, a), { days: ce, months: E, navStart: B, navEnd: O, previousMonth: p, nextMonth: b, goToMonth: y } = Q, S = Ie(ce, e, B, O, a), { isSelected: x, select: L, selected: g } = nt(e, a) ?? {}, { blur: X, focused: ee, isFocusTarget: ue, moveFocus: te, setFocused: M } = ot(e, Q, S, x ?? (() => !1), a), { labelDayButton: fe, labelGridcell: pe, labelGrid: be, labelMonthDropdown: he, labelNav: ae, labelPrevious: ye, labelNext: ke, labelWeekday: Ne, labelWeekNumber: ve, labelWeekNumberHeader: De, labelYearDropdown: ge } = Z, Me = T(() => ze(a, e.ISOWeek, e.broadcastCalendar, e.today), [a, e.ISOWeek, e.broadcastCalendar, e.today]), oe = C !== void 0 || W !== void 0, Y = h(() => {
|
|
80
|
+
p && (y(p), $?.(p));
|
|
81
|
+
}, [p, y, $]), P = h(() => {
|
|
82
|
+
b && (y(b), V?.(b));
|
|
83
|
+
}, [y, b, V]), we = h((o, i) => (t) => {
|
|
84
|
+
t.preventDefault(), t.stopPropagation(), M(o), !i.disabled && (L?.(o.date, i, t), W?.(o.date, i, t));
|
|
85
|
+
}, [L, W, M]), Ce = h((o, i) => (t) => {
|
|
86
|
+
M(o), H?.(o.date, i, t);
|
|
87
|
+
}, [H, M]), We = h((o, i) => (t) => {
|
|
88
|
+
X(), G?.(o.date, i, t);
|
|
89
|
+
}, [X, G]), Ee = h((o, i) => (t) => {
|
|
90
|
+
const r = {
|
|
91
|
+
ArrowLeft: [
|
|
92
|
+
t.shiftKey ? "month" : "day",
|
|
93
|
+
e.dir === "rtl" ? "after" : "before"
|
|
94
|
+
],
|
|
95
|
+
ArrowRight: [
|
|
96
|
+
t.shiftKey ? "month" : "day",
|
|
97
|
+
e.dir === "rtl" ? "before" : "after"
|
|
98
|
+
],
|
|
99
|
+
ArrowDown: [t.shiftKey ? "year" : "week", "after"],
|
|
100
|
+
ArrowUp: [t.shiftKey ? "year" : "week", "before"],
|
|
101
|
+
PageUp: [t.shiftKey ? "year" : "month", "before"],
|
|
102
|
+
PageDown: [t.shiftKey ? "year" : "month", "after"],
|
|
103
|
+
Home: ["startOfWeek", "before"],
|
|
104
|
+
End: ["endOfWeek", "after"]
|
|
105
|
+
};
|
|
106
|
+
if (r[t.key]) {
|
|
107
|
+
t.preventDefault(), t.stopPropagation();
|
|
108
|
+
const [f, s] = r[t.key];
|
|
109
|
+
te(f, s);
|
|
110
|
+
}
|
|
111
|
+
_?.(o.date, i, t);
|
|
112
|
+
}, [te, _, e.dir]), Be = h((o, i) => (t) => {
|
|
113
|
+
U?.(o.date, i, t);
|
|
114
|
+
}, [U]), Oe = h((o, i) => (t) => {
|
|
115
|
+
j?.(o.date, i, t);
|
|
116
|
+
}, [j]), Se = h((o) => (i) => {
|
|
117
|
+
const t = Number(i.target.value), r = a.setMonth(a.startOfMonth(o), t);
|
|
118
|
+
y(r);
|
|
119
|
+
}, [a, y]), xe = h((o) => (i) => {
|
|
120
|
+
const t = Number(i.target.value), r = a.setYear(a.startOfMonth(o), t);
|
|
121
|
+
y(r);
|
|
122
|
+
}, [a, y]), { className: Le, style: Ye } = T(() => ({
|
|
123
|
+
className: [d[n.Root], e.className].filter(Boolean).join(" "),
|
|
124
|
+
style: { ...c?.[n.Root], ...e.style }
|
|
125
|
+
}), [d, e.className, e.style, c]), Pe = _e(e), ne = Re(null);
|
|
126
|
+
et(ne, !!e.animate, {
|
|
127
|
+
classNames: d,
|
|
128
|
+
months: E,
|
|
129
|
+
focused: ee,
|
|
130
|
+
dateLib: a
|
|
131
|
+
});
|
|
132
|
+
const Fe = {
|
|
133
|
+
dayPickerProps: e,
|
|
134
|
+
selected: g,
|
|
135
|
+
select: L,
|
|
136
|
+
isSelected: x,
|
|
137
|
+
months: E,
|
|
138
|
+
nextMonth: b,
|
|
139
|
+
previousMonth: p,
|
|
140
|
+
goToMonth: y,
|
|
141
|
+
getModifiers: S,
|
|
142
|
+
components: m,
|
|
143
|
+
classNames: d,
|
|
144
|
+
styles: c,
|
|
145
|
+
labels: Z,
|
|
146
|
+
formatters: v
|
|
147
|
+
};
|
|
148
|
+
return l.createElement(
|
|
149
|
+
at.Provider,
|
|
150
|
+
{ value: Fe },
|
|
151
|
+
l.createElement(
|
|
152
|
+
m.Root,
|
|
153
|
+
{ rootRef: e.animate ? ne : void 0, className: Le, style: Ye, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...Pe },
|
|
154
|
+
l.createElement(
|
|
155
|
+
m.Months,
|
|
156
|
+
{ className: d[n.Months], style: c?.[n.Months] },
|
|
157
|
+
!e.hideNavigation && !D && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
158
|
+
E.map((o, i) => l.createElement(
|
|
159
|
+
m.Month,
|
|
160
|
+
{
|
|
161
|
+
"data-animated-month": e.animate ? "true" : void 0,
|
|
162
|
+
className: d[n.Month],
|
|
163
|
+
style: c?.[n.Month],
|
|
164
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
165
|
+
key: i,
|
|
166
|
+
displayIndex: i,
|
|
167
|
+
calendarMonth: o
|
|
168
|
+
},
|
|
169
|
+
D === "around" && !e.hideNavigation && i === 0 && l.createElement(
|
|
170
|
+
m.PreviousMonthButton,
|
|
171
|
+
{ type: "button", className: d[n.PreviousMonthButton], tabIndex: p ? void 0 : -1, "aria-disabled": p ? void 0 : !0, "aria-label": ye(p), onClick: Y, "data-animated-button": e.animate ? "true" : void 0 },
|
|
172
|
+
l.createElement(m.Chevron, { disabled: p ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
|
|
173
|
+
),
|
|
174
|
+
l.createElement(m.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: d[n.MonthCaption], style: c?.[n.MonthCaption], calendarMonth: o, displayIndex: i }, N?.startsWith("dropdown") ? l.createElement(
|
|
175
|
+
m.DropdownNav,
|
|
176
|
+
{ className: d[n.Dropdowns], style: c?.[n.Dropdowns] },
|
|
177
|
+
(() => {
|
|
178
|
+
const t = N === "dropdown" || N === "dropdown-months" ? l.createElement(m.MonthsDropdown, { key: "month", className: d[n.MonthsDropdown], "aria-label": he(), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: Se(o.date), options: $e(o.date, B, O, v, a), style: c?.[n.Dropdown], value: a.getMonth(o.date) }) : l.createElement("span", { key: "month" }, re(o.date, a)), r = N === "dropdown" || N === "dropdown-years" ? l.createElement(m.YearsDropdown, { key: "year", className: d[n.YearsDropdown], "aria-label": ge(a.options), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: xe(o.date), options: Je(B, O, v, a, !!e.reverseYears), style: c?.[n.Dropdown], value: a.getYear(o.date) }) : l.createElement("span", { key: "year" }, me(o.date, a));
|
|
179
|
+
return a.getMonthYearOrder() === "year-first" ? [r, t] : [t, r];
|
|
180
|
+
})(),
|
|
181
|
+
l.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
182
|
+
border: 0,
|
|
183
|
+
clip: "rect(0 0 0 0)",
|
|
184
|
+
height: "1px",
|
|
185
|
+
margin: "-1px",
|
|
186
|
+
overflow: "hidden",
|
|
187
|
+
padding: 0,
|
|
188
|
+
position: "absolute",
|
|
189
|
+
width: "1px",
|
|
190
|
+
whiteSpace: "nowrap",
|
|
191
|
+
wordWrap: "normal"
|
|
192
|
+
} }, z(o.date, a.options, a))
|
|
193
|
+
) : l.createElement(m.CaptionLabel, { className: d[n.CaptionLabel], role: "status", "aria-live": "polite" }, z(o.date, a.options, a))),
|
|
194
|
+
D === "around" && !e.hideNavigation && i === I - 1 && l.createElement(
|
|
195
|
+
m.NextMonthButton,
|
|
196
|
+
{ type: "button", className: d[n.NextMonthButton], tabIndex: b ? void 0 : -1, "aria-disabled": b ? void 0 : !0, "aria-label": ke(b), onClick: P, "data-animated-button": e.animate ? "true" : void 0 },
|
|
197
|
+
l.createElement(m.Chevron, { disabled: b ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
|
|
198
|
+
),
|
|
199
|
+
i === I - 1 && D === "after" && !e.hideNavigation && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
200
|
+
l.createElement(
|
|
201
|
+
m.MonthGrid,
|
|
202
|
+
{ role: "grid", "aria-multiselectable": C === "multiple" || C === "range", "aria-label": be(o.date, a.options, a) || void 0, className: d[n.MonthGrid], style: c?.[n.MonthGrid] },
|
|
203
|
+
!e.hideWeekdays && l.createElement(
|
|
204
|
+
m.Weekdays,
|
|
205
|
+
{ "data-animated-weekdays": e.animate ? "true" : void 0, className: d[n.Weekdays], style: c?.[n.Weekdays] },
|
|
206
|
+
q && l.createElement(m.WeekNumberHeader, { "aria-label": De(a.options), className: d[n.WeekNumberHeader], style: c?.[n.WeekNumberHeader], scope: "col" }, de()),
|
|
207
|
+
Me.map((t) => l.createElement(m.Weekday, { "aria-label": Ne(t, a.options, a), className: d[n.Weekday], key: String(t), style: c?.[n.Weekday], scope: "col" }, le(t, a.options, a)))
|
|
208
|
+
),
|
|
209
|
+
l.createElement(m.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: d[n.Weeks], style: c?.[n.Weeks] }, o.weeks.map((t) => l.createElement(
|
|
210
|
+
m.Week,
|
|
211
|
+
{ className: d[n.Week], key: t.weekNumber, style: c?.[n.Week], week: t },
|
|
212
|
+
q && l.createElement(m.WeekNumber, { week: t, style: c?.[n.WeekNumber], "aria-label": ve(t.weekNumber, {
|
|
213
|
+
locale: se
|
|
214
|
+
}), className: d[n.WeekNumber], scope: "row", role: "rowheader" }, ie(t.weekNumber, a)),
|
|
215
|
+
t.days.map((r) => {
|
|
216
|
+
const { date: f } = r, s = S(r);
|
|
217
|
+
if (s[Xe.focused] = !s.hidden && !!ee?.isEqualTo(r), s[w.selected] = x?.(f) || s.selected, rt(g)) {
|
|
218
|
+
const { from: F, to: A } = g;
|
|
219
|
+
s[w.range_start] = !!(F && A && a.isSameDay(f, F)), s[w.range_end] = !!(F && A && a.isSameDay(f, A)), s[w.range_middle] = st(g, f, !0, a);
|
|
220
|
+
}
|
|
221
|
+
const Ae = qe(s, c, e.modifiersStyles), Te = Ge(s, d, e.modifiersClassNames), Ke = !oe && !s.hidden ? pe(f, s, a.options, a) : void 0;
|
|
222
|
+
return l.createElement(m.Day, { key: `${r.isoDate}_${r.displayMonthId}`, day: r, modifiers: s, className: Te.join(" "), style: Ae, role: "gridcell", "aria-selected": s.selected || void 0, "aria-label": Ke, "data-day": r.isoDate, "data-month": r.outside ? r.dateMonthId : void 0, "data-selected": s.selected || void 0, "data-disabled": s.disabled || void 0, "data-hidden": s.hidden || void 0, "data-outside": r.outside || void 0, "data-focused": s.focused || void 0, "data-today": s.today || void 0 }, !s.hidden && oe ? l.createElement(m.DayButton, { className: d[n.DayButton], style: c?.[n.DayButton], type: "button", day: r, modifiers: s, disabled: !s.focused && s.disabled || void 0, "aria-disabled": s.focused && s.disabled || void 0, tabIndex: ue(r) ? 0 : -1, "aria-label": fe(f, s, a.options, a), onClick: we(r, s), onBlur: We(r, s), onFocus: Ce(r, s), onKeyDown: Ee(r, s), onMouseEnter: Be(r, s), onMouseLeave: Oe(r, s) }, J(f, a.options, a)) : !s.hidden && J(r.date, a.options, a));
|
|
223
|
+
})
|
|
224
|
+
)))
|
|
225
|
+
)
|
|
226
|
+
))
|
|
227
|
+
),
|
|
228
|
+
e.footer && l.createElement(m.Footer, { className: d[n.Footer], style: c?.[n.Footer], role: "status", "aria-live": "polite" }, e.footer)
|
|
229
|
+
)
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
export {
|
|
233
|
+
Yt as DayPicker
|
|
234
|
+
};
|