diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 81bb244f..b623d3df 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "fable": { - "version": "5.0.0", + "version": "5.23.0", "commands": [ "fable" ], @@ -17,7 +17,7 @@ "rollForward": false }, "fantomas": { - "version": "7.0.1", + "version": "8.1.0", "commands": [ "fantomas" ], diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e0a56e8..dfba4e49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,12 +2,12 @@ name: Release to NuGet on: push: - branches: [ main, 'major/**' ] + branches: [main, "major/**"] jobs: - release-to-nuget: - + permissions: + id-token: write # enable GitHub OIDC token issuance for this job runs-on: ubuntu-latest steps: @@ -17,13 +17,30 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v5 with: - dotnet-version: '8.0.x' + dotnet-version: "8.0.x" - name: Setup Node.js and NPM uses: actions/setup-node@v5 with: - node-version: '20' - cache: 'npm' + node-version: "20" + cache: "npm" + + - name: Setup + run: dotnet run --project ./build/Build.fsproj setup + + - name: Test .NET and NPM projects + run: dotnet run --project ./build/Build.fsproj test + + - name: Build .NET and NPM projects + run: dotnet run --project ./build/Build.fsproj pack + + # Get a short-lived NuGet API key + # https://learn.microsoft.com/en-gb/nuget/nuget-org/trusted-publishing#github-actions-setup + - name: NuGet login (OIDC → temp API key) + uses: NuGet/login@v1 + id: login + with: + user: ${{ secrets.NUGET_USER }} # Recommended: use a secret like ${{ secrets.NUGET_USER }} for your nuget.org username (profile name), NOT your email address - name: Release to NuGet - run: dotnet run --project ./build/Build.fsproj release-pipeline ${{ secrets.NUGET_API_KEY }} + run: dotnet run --project ./build/Build.fsproj release ${{steps.login.outputs.NUGET_API_KEY}} diff --git a/AGENT.md b/AGENT.md new file mode 100644 index 00000000..9eae4ba9 --- /dev/null +++ b/AGENT.md @@ -0,0 +1,50 @@ +# Feliz agent guide + +## Purpose and scope + +Feliz is an F# DSL and Fable binding for React. Its core package lets applications describe HTML, SVG, properties, styles, components, and React hooks in typed F# while Fable emits JavaScript. The repository also contains optional Feliz packages, Vitest bindings, tests, a playground, and the documentation site. + +Use `docs/docs/` for the current Feliz 3 API. `docs/versioned_docs/version-2.9.0/` is a snapshot of the older API; do not copy its examples into current code without checking the migration guide at `docs/docs/api-docs/Upgrade.md`. The core project currently targets React 19 through its npm dependency requirements. Check the project's actual package versions before giving installation advice; some documentation snippets still show Feliz 2.9.0. + +## Using Feliz in an application + +- Add the `Feliz` NuGet package and install the matching JavaScript `react` and `react-dom` packages. A new application can start from `Feliz.Template`; an existing one can use Femto to install the .NET and npm dependencies together. See `docs/docs/api-docs/GettingStarted.mdx`. +- `open Feliz`. Build elements with `Html.*`, properties with `prop.*`, and typed inline CSS with `prop.style [ style.* ]`. For SVG, use the corresponding `Svg` API. See `docs/docs/api-docs/feliz/Html.mdx` and the examples in `docs/docs/feliz-docs/Examples/Feliz/`. +- An `Html.*` list is either a list of children or a list of properties. When passing properties, place children inside `prop.children [...]`; use `prop.text` for simple text. Do not mix bare children with properties in the same list. +- Use `[]` on a function that returns a React element, then call it normally from parent F# code. Its parameters become React props. `[]` additionally makes it the module's default export; it is not required for ordinary components. See `docs/docs/api-docs/feliz/react-component.mdx` and `passing-props.mdx`. +- Keep state and effects inside components with `React.useState`, `React.useEffect`, and the other React hooks. Use `React.useStateWithUpdater` when the next state must be computed from the previous state. Clean up subscriptions or timers in effects. See `docs/docs/api-docs/react/hooks/`. +- F# `if`, `match`, `for`, and `List.map` work in element construction. Give dynamic siblings stable `prop.key` values; default Feliz element creation may not produce React's missing-key warning. `Html.none` renders nothing. See `conditional-rendering.mdx`, `rendering-lists.mdx`, and `Html.mdx` under `docs/docs/api-docs/feliz/`. +- Mount the app with `ReactDOM.createRoot` and `root.render`. See `docs/docs/api-docs/react-dom/client-apis/createRoot.mdx`. + +```fsharp +open Feliz + +[] +let Counter() = + let count, setCount = React.useState(0) + Html.div [ + Html.button [ + prop.onClick (fun _ -> setCount(count + 1)) + prop.text "Increment" + ] + Html.p [ prop.text (string count) ] + ] +``` + +For optional integrations, use their own package and documentation: `Feliz.UseElmish` for an Elmish model inside a component, `Feliz.Recharts` and `Feliz.PigeonMaps` for visualizations, and the other packages catalogued in `docs/docs/ecosystem/`. The `Feliz.JSX` module is an alternative output path; it requires `.jsx` Fable output and has documented limitations, so consult `docs/docs/api-docs/guides/output-jsx.mdx` before using it. For JavaScript library interop, start with `docs/docs/api-docs/guides/writing-bindings.mdx`. + +## Repository map + +- `src/Feliz/`: core public API. `Html.fs`, `Svg.fs`, `Properties.fs`, `Styles.fs`, and `React/` implement the DSL and React bindings. `Feliz.fsproj` defines F# compilation order and references `src/Feliz.CompilerPlugins/`, which implements component-related transforms. +- `src/Feliz.*` and `src/Vitest*`: companion libraries and test bindings. Each package has its own project file and usually a `CHANGELOG.md`. +- `tests/`: F# and npm/Vitest test projects. `tests/README.md` describes the test layout. +- `docs/docs/api-docs/`: current guides and API reference. `docs/docs/feliz-docs/Examples/`: F# examples compiled into live Docusaurus examples by `docs/docs/feliz-docs/Feliz.Docs.fsproj`. `docs/versioned_docs/`: historical docs. +- `playground/`: small application for trying changes. `build/Build.fsproj` and `build/Program.fs`: setup, test, pack, and release commands. + +## Working in this repository + +- Follow the relevant current guide and its compiled example before changing an API. Keep `src`, matching tests, live examples, and API documentation in sync. Respect `.fsproj` compile ordering when adding F# files. +- Use the shared root `package.json` npm workspaces and `Directory.Packages.props` for dependencies; the repo pins its .NET SDK in `global.json` and local Fable tools in `.config/dotnet-tools.json`. +- Run `dotnet run --project ./build/Build.fsproj setup` for initial setup. Run `dotnet run --project ./build/Build.fsproj test` for the test suite, or append a test folder name to target one project (for example, `test Feliz`). +- For documentation work, run `npm run start` from `docs/` to compile the F# examples and start Docusaurus; run `npm run build` there to verify a production docs build. +- Follow `CONTRIBUTING.md` for formatting, tests, and changelog entries. Avoid editing generated output or dependency directories such as `node_modules/`, `obj/`, `bin/`, and `docs/.docusaurus/` by hand. diff --git a/Feliz.Pack.sln b/Feliz.Pack.sln deleted file mode 100644 index ecfe2983..00000000 --- a/Feliz.Pack.sln +++ /dev/null @@ -1,141 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz", "src\Feliz\Feliz.fsproj", "{43B924E8-C7EA-450F-804B-5C952BA06FA9}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.CompilerPlugins", "src\Feliz.CompilerPlugins\Feliz.CompilerPlugins.fsproj", "{C3A82AF3-A67E-4D47-836C-3CE5121D6D70}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Delay", "src\Feliz.Delay\Feliz.Delay.fsproj", "{03D052B7-4E85-4420-B98B-6EC391D07D97}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Kawaii", "src\Feliz.Kawaii\Feliz.Kawaii.fsproj", "{EB50EB0B-B4F9-465E-92B1-41026A59A665}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Listeners", "src\Feliz.Listeners\Feliz.Listeners.fsproj", "{CC083953-D62C-4ED7-9FD2-BA20FC812F96}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Markdown", "src\Feliz.Markdown\Feliz.Markdown.fsproj", "{75FCCB42-B5CF-4889-BD32-16E79FB841FE}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.PigeonMaps", "src\Feliz.PigeonMaps\Feliz.PigeonMaps.fsproj", "{8015E6A2-EEBD-4693-A8F5-6CF78A26F98B}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Popover", "src\Feliz.Popover\Feliz.Popover.fsproj", "{2EDAE2FD-F8D3-488B-9B84-8E821BABF976}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Recharts", "src\Feliz.Recharts\Feliz.Recharts.fsproj", "{19F3776B-6F21-4211-AE8B-342078ED176F}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.RoughViz", "src\Feliz.RoughViz\Feliz.RoughViz.fsproj", "{839A1F63-20E0-4EA2-9B85-691D3FD70E08}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.SelectSearch", "src\Feliz.SelectSearch\Feliz.SelectSearch.fsproj", "{8466AA1A-99BC-4589-9E6E-C45BFED08455}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseDeferred", "src\Feliz.UseDeferred\Feliz.UseDeferred.fsproj", "{E736C5A3-C1B1-4E9B-94CC-72EB787CA289}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseElmish", "src\Feliz.UseElmish\Feliz.UseElmish.fsproj", "{BF938244-4CE8-4838-B7D2-5A2801D674F5}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseMediaQuery", "src\Feliz.UseMediaQuery\Feliz.UseMediaQuery.fsproj", "{6AA60938-AFE1-4021-B5CC-3AEFE6185D6E}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest", "src\Vitest\Vitest.fsproj", "{1B506106-CB14-4EB5-BFC3-36FF10DB5A8B}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.JestDom", "src\Vitest.JestDom\Vitest.JestDom.fsproj", "{FDDDD104-F911-4222-887B-92030D414DC5}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.ReactTestingLibrary", "src\Vitest.ReactTestingLibrary\Vitest.ReactTestingLibrary.fsproj", "{E22384CC-FDA7-48AE-9B9C-A75F999A9CBF}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.UserEvent", "src\Vitest.UserEvent\Vitest.UserEvent.fsproj", "{D6AF74E9-5F07-482F-B65E-5D5CB24670F9}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Template", "src\Feliz.Template\Feliz.Template.fsproj", "{E10E2170-8D45-4F9B-A131-05A07EF7AA57}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{14958588-48D8-4600-9052-F57CAAE69292}" -EndProject -Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Feliz.CompilerPlugins.Tests", "tests\Feliz.CompilerPlugin\Feliz.CompilerPlugins.Tests.fsproj", "{4880856A-8566-4588-ACFC-C649EF615F05}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {43B924E8-C7EA-450F-804B-5C952BA06FA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {43B924E8-C7EA-450F-804B-5C952BA06FA9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {43B924E8-C7EA-450F-804B-5C952BA06FA9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {43B924E8-C7EA-450F-804B-5C952BA06FA9}.Release|Any CPU.Build.0 = Release|Any CPU - {C3A82AF3-A67E-4D47-836C-3CE5121D6D70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C3A82AF3-A67E-4D47-836C-3CE5121D6D70}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C3A82AF3-A67E-4D47-836C-3CE5121D6D70}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C3A82AF3-A67E-4D47-836C-3CE5121D6D70}.Release|Any CPU.Build.0 = Release|Any CPU - {03D052B7-4E85-4420-B98B-6EC391D07D97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {03D052B7-4E85-4420-B98B-6EC391D07D97}.Debug|Any CPU.Build.0 = Debug|Any CPU - {03D052B7-4E85-4420-B98B-6EC391D07D97}.Release|Any CPU.ActiveCfg = Release|Any CPU - {03D052B7-4E85-4420-B98B-6EC391D07D97}.Release|Any CPU.Build.0 = Release|Any CPU - {EB50EB0B-B4F9-465E-92B1-41026A59A665}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB50EB0B-B4F9-465E-92B1-41026A59A665}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB50EB0B-B4F9-465E-92B1-41026A59A665}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB50EB0B-B4F9-465E-92B1-41026A59A665}.Release|Any CPU.Build.0 = Release|Any CPU - {CC083953-D62C-4ED7-9FD2-BA20FC812F96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CC083953-D62C-4ED7-9FD2-BA20FC812F96}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CC083953-D62C-4ED7-9FD2-BA20FC812F96}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CC083953-D62C-4ED7-9FD2-BA20FC812F96}.Release|Any CPU.Build.0 = Release|Any CPU - {75FCCB42-B5CF-4889-BD32-16E79FB841FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {75FCCB42-B5CF-4889-BD32-16E79FB841FE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {75FCCB42-B5CF-4889-BD32-16E79FB841FE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {75FCCB42-B5CF-4889-BD32-16E79FB841FE}.Release|Any CPU.Build.0 = Release|Any CPU - {8015E6A2-EEBD-4693-A8F5-6CF78A26F98B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8015E6A2-EEBD-4693-A8F5-6CF78A26F98B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8015E6A2-EEBD-4693-A8F5-6CF78A26F98B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8015E6A2-EEBD-4693-A8F5-6CF78A26F98B}.Release|Any CPU.Build.0 = Release|Any CPU - {2EDAE2FD-F8D3-488B-9B84-8E821BABF976}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2EDAE2FD-F8D3-488B-9B84-8E821BABF976}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2EDAE2FD-F8D3-488B-9B84-8E821BABF976}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2EDAE2FD-F8D3-488B-9B84-8E821BABF976}.Release|Any CPU.Build.0 = Release|Any CPU - {19F3776B-6F21-4211-AE8B-342078ED176F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19F3776B-6F21-4211-AE8B-342078ED176F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19F3776B-6F21-4211-AE8B-342078ED176F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19F3776B-6F21-4211-AE8B-342078ED176F}.Release|Any CPU.Build.0 = Release|Any CPU - {839A1F63-20E0-4EA2-9B85-691D3FD70E08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {839A1F63-20E0-4EA2-9B85-691D3FD70E08}.Debug|Any CPU.Build.0 = Debug|Any CPU - {839A1F63-20E0-4EA2-9B85-691D3FD70E08}.Release|Any CPU.ActiveCfg = Release|Any CPU - {839A1F63-20E0-4EA2-9B85-691D3FD70E08}.Release|Any CPU.Build.0 = Release|Any CPU - {8466AA1A-99BC-4589-9E6E-C45BFED08455}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8466AA1A-99BC-4589-9E6E-C45BFED08455}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8466AA1A-99BC-4589-9E6E-C45BFED08455}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8466AA1A-99BC-4589-9E6E-C45BFED08455}.Release|Any CPU.Build.0 = Release|Any CPU - {E736C5A3-C1B1-4E9B-94CC-72EB787CA289}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E736C5A3-C1B1-4E9B-94CC-72EB787CA289}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E736C5A3-C1B1-4E9B-94CC-72EB787CA289}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E736C5A3-C1B1-4E9B-94CC-72EB787CA289}.Release|Any CPU.Build.0 = Release|Any CPU - {BF938244-4CE8-4838-B7D2-5A2801D674F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BF938244-4CE8-4838-B7D2-5A2801D674F5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BF938244-4CE8-4838-B7D2-5A2801D674F5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BF938244-4CE8-4838-B7D2-5A2801D674F5}.Release|Any CPU.Build.0 = Release|Any CPU - {6AA60938-AFE1-4021-B5CC-3AEFE6185D6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6AA60938-AFE1-4021-B5CC-3AEFE6185D6E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6AA60938-AFE1-4021-B5CC-3AEFE6185D6E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6AA60938-AFE1-4021-B5CC-3AEFE6185D6E}.Release|Any CPU.Build.0 = Release|Any CPU - {1B506106-CB14-4EB5-BFC3-36FF10DB5A8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1B506106-CB14-4EB5-BFC3-36FF10DB5A8B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1B506106-CB14-4EB5-BFC3-36FF10DB5A8B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1B506106-CB14-4EB5-BFC3-36FF10DB5A8B}.Release|Any CPU.Build.0 = Release|Any CPU - {FDDDD104-F911-4222-887B-92030D414DC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FDDDD104-F911-4222-887B-92030D414DC5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FDDDD104-F911-4222-887B-92030D414DC5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FDDDD104-F911-4222-887B-92030D414DC5}.Release|Any CPU.Build.0 = Release|Any CPU - {E22384CC-FDA7-48AE-9B9C-A75F999A9CBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E22384CC-FDA7-48AE-9B9C-A75F999A9CBF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E22384CC-FDA7-48AE-9B9C-A75F999A9CBF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E22384CC-FDA7-48AE-9B9C-A75F999A9CBF}.Release|Any CPU.Build.0 = Release|Any CPU - {D6AF74E9-5F07-482F-B65E-5D5CB24670F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D6AF74E9-5F07-482F-B65E-5D5CB24670F9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D6AF74E9-5F07-482F-B65E-5D5CB24670F9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D6AF74E9-5F07-482F-B65E-5D5CB24670F9}.Release|Any CPU.Build.0 = Release|Any CPU - {E10E2170-8D45-4F9B-A131-05A07EF7AA57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E10E2170-8D45-4F9B-A131-05A07EF7AA57}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E10E2170-8D45-4F9B-A131-05A07EF7AA57}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E10E2170-8D45-4F9B-A131-05A07EF7AA57}.Release|Any CPU.Build.0 = Release|Any CPU - {4880856A-8566-4588-ACFC-C649EF615F05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4880856A-8566-4588-ACFC-C649EF615F05}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4880856A-8566-4588-ACFC-C649EF615F05}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4880856A-8566-4588-ACFC-C649EF615F05}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {4880856A-8566-4588-ACFC-C649EF615F05} = {14958588-48D8-4600-9052-F57CAAE69292} - EndGlobalSection -EndGlobal diff --git a/Feliz.Pack.slnx b/Feliz.Pack.slnx new file mode 100644 index 00000000..90ff9e6a --- /dev/null +++ b/Feliz.Pack.slnx @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Feliz.sln b/Feliz.sln deleted file mode 100644 index 0adb90fe..00000000 --- a/Feliz.sln +++ /dev/null @@ -1,246 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F4E22855-60E1-4B10-A0B1-90158DD8D79F}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz", "src\Feliz\Feliz.fsproj", "{2ACBA931-65B6-4531-9884-67666C7D36B2}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.CompilerPlugins", "src\Feliz.CompilerPlugins\Feliz.CompilerPlugins.fsproj", "{0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Delay", "src\Feliz.Delay\Feliz.Delay.fsproj", "{55BC4BE0-EAD8-4804-9C69-FC6E934581A7}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Kawaii", "src\Feliz.Kawaii\Feliz.Kawaii.fsproj", "{CBB7206D-0A18-4597-A1DF-89608B7A9004}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Listeners", "src\Feliz.Listeners\Feliz.Listeners.fsproj", "{E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Markdown", "src\Feliz.Markdown\Feliz.Markdown.fsproj", "{1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.PigeonMaps", "src\Feliz.PigeonMaps\Feliz.PigeonMaps.fsproj", "{7CA21F0A-CA3B-4144-B68B-68FCD7561F40}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Popover", "src\Feliz.Popover\Feliz.Popover.fsproj", "{D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Recharts", "src\Feliz.Recharts\Feliz.Recharts.fsproj", "{55E17483-47D8-4AA1-95A9-178932E1D487}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.RoughViz", "src\Feliz.RoughViz\Feliz.RoughViz.fsproj", "{E4ABFA93-D645-420C-B509-6645CDE6EB54}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.SelectSearch", "src\Feliz.SelectSearch\Feliz.SelectSearch.fsproj", "{85CE3827-6AAF-42BA-BE18-511E3276F65B}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseDeferred", "src\Feliz.UseDeferred\Feliz.UseDeferred.fsproj", "{FC7C8508-12A6-4414-BC69-4D0D5A5B61E1}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseElmish", "src\Feliz.UseElmish\Feliz.UseElmish.fsproj", "{7CDCDE32-B3FD-48C4-B1AD-21DA3164437E}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseMediaQuery", "src\Feliz.UseMediaQuery\Feliz.UseMediaQuery.fsproj", "{947C909E-C857-4E4E-A03E-243B4004884C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{5BED55CF-2757-46F0-98E9-063F63DD2BCD}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Tests", "tests\Feliz\Feliz.Tests.fsproj", "{0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Delay.Tests", "tests\Feliz.Delay\Feliz.Delay.Tests.fsproj", "{0BC7063D-5EEA-44AD-8000-BB0BAB195ED5}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.UseElmish.Tests", "tests\Feliz.UseElmish\Feliz.UseElmish.Tests.fsproj", "{F260CA19-974D-4015-8B29-6AFB56AC8AAF}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Build", "build\Build.fsproj", "{0ABFBDDF-A150-4DEF-AF62-561973AB4E80}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8B9042E9-9658-4903-A935-EDCF50C421F6}" - ProjectSection(SolutionItems) = preProject - .editorconfig = .editorconfig - Directory.Build.props = Directory.Build.props - Directory.Packages.props = Directory.Packages.props - global.json = global.json - LICENSE = LICENSE - package-lock.json = package-lock.json - package.json = package.json - README.md = README.md - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "playground", "playground", "{8F1D0581-0DB1-4A66-AF2F-5DA6953333F9}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "App", "playground\src\App.fsproj", "{A39FCEBC-7CCD-483F-8164-7D3FAFD56564}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{29F0A638-CEF7-404D-B6E2-87048B7F85B9}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{FD6D1D03-23E3-42A5-AA21-47002EDBD841}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Feliz.Docs", "docs\docs\feliz-docs\Feliz.Docs.fsproj", "{4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest", "src\Vitest\Vitest.fsproj", "{0600420B-2601-42FD-BE2A-D455E465B843}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.JestDom", "src\Vitest.JestDom\Vitest.JestDom.fsproj", "{5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.ReactTestingLibrary", "src\Vitest.ReactTestingLibrary\Vitest.ReactTestingLibrary.fsproj", "{0473A36C-404C-4E77-B63F-AA7593385FD3}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.UserEvent", "src\Vitest.UserEvent\Vitest.UserEvent.fsproj", "{188B5200-BE59-4025-AEF3-CFE21B401CED}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Test.Globals", "tests\Globals\Test.Globals.fsproj", "{022533DD-BB75-4E25-A41E-98464EF216B4}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.Test", "tests\Vitest\Vitest.Test.fsproj", "{032B3C6B-975D-423C-9FED-0F3D60BC5831}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Vitest.ReactTestingLibrary.Test", "tests\Vitest.ReactTestingLibrary\Vitest.ReactTestingLibrary.Test.fsproj", "{2293DA74-1D02-4894-A43E-96009C77F6CF}" -EndProject -Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Feliz.CompilerPlugins.Tests", "tests\Feliz.CompilerPlugin\Feliz.CompilerPlugins.Tests.fsproj", "{9D635AAD-8CED-84C7-CB46-7BA1776B4589}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Transpile.Tests", "tests\Transpile.Tests\Transpile.Tests.fsproj", "{7A861A6A-4CC6-4A7E-B61B-180FA4A26B48}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2ACBA931-65B6-4531-9884-67666C7D36B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2ACBA931-65B6-4531-9884-67666C7D36B2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2ACBA931-65B6-4531-9884-67666C7D36B2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2ACBA931-65B6-4531-9884-67666C7D36B2}.Release|Any CPU.Build.0 = Release|Any CPU - {0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42}.Release|Any CPU.Build.0 = Release|Any CPU - {55BC4BE0-EAD8-4804-9C69-FC6E934581A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {55BC4BE0-EAD8-4804-9C69-FC6E934581A7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {55BC4BE0-EAD8-4804-9C69-FC6E934581A7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {55BC4BE0-EAD8-4804-9C69-FC6E934581A7}.Release|Any CPU.Build.0 = Release|Any CPU - {CBB7206D-0A18-4597-A1DF-89608B7A9004}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CBB7206D-0A18-4597-A1DF-89608B7A9004}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CBB7206D-0A18-4597-A1DF-89608B7A9004}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CBB7206D-0A18-4597-A1DF-89608B7A9004}.Release|Any CPU.Build.0 = Release|Any CPU - {E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087}.Release|Any CPU.Build.0 = Release|Any CPU - {1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1}.Release|Any CPU.Build.0 = Release|Any CPU - {7CA21F0A-CA3B-4144-B68B-68FCD7561F40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CA21F0A-CA3B-4144-B68B-68FCD7561F40}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CA21F0A-CA3B-4144-B68B-68FCD7561F40}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CA21F0A-CA3B-4144-B68B-68FCD7561F40}.Release|Any CPU.Build.0 = Release|Any CPU - {D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504}.Release|Any CPU.Build.0 = Release|Any CPU - {55E17483-47D8-4AA1-95A9-178932E1D487}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {55E17483-47D8-4AA1-95A9-178932E1D487}.Debug|Any CPU.Build.0 = Debug|Any CPU - {55E17483-47D8-4AA1-95A9-178932E1D487}.Release|Any CPU.ActiveCfg = Release|Any CPU - {55E17483-47D8-4AA1-95A9-178932E1D487}.Release|Any CPU.Build.0 = Release|Any CPU - {E4ABFA93-D645-420C-B509-6645CDE6EB54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E4ABFA93-D645-420C-B509-6645CDE6EB54}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E4ABFA93-D645-420C-B509-6645CDE6EB54}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E4ABFA93-D645-420C-B509-6645CDE6EB54}.Release|Any CPU.Build.0 = Release|Any CPU - {85CE3827-6AAF-42BA-BE18-511E3276F65B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {85CE3827-6AAF-42BA-BE18-511E3276F65B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {85CE3827-6AAF-42BA-BE18-511E3276F65B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {85CE3827-6AAF-42BA-BE18-511E3276F65B}.Release|Any CPU.Build.0 = Release|Any CPU - {FC7C8508-12A6-4414-BC69-4D0D5A5B61E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC7C8508-12A6-4414-BC69-4D0D5A5B61E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC7C8508-12A6-4414-BC69-4D0D5A5B61E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FC7C8508-12A6-4414-BC69-4D0D5A5B61E1}.Release|Any CPU.Build.0 = Release|Any CPU - {7CDCDE32-B3FD-48C4-B1AD-21DA3164437E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CDCDE32-B3FD-48C4-B1AD-21DA3164437E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CDCDE32-B3FD-48C4-B1AD-21DA3164437E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CDCDE32-B3FD-48C4-B1AD-21DA3164437E}.Release|Any CPU.Build.0 = Release|Any CPU - {947C909E-C857-4E4E-A03E-243B4004884C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {947C909E-C857-4E4E-A03E-243B4004884C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {947C909E-C857-4E4E-A03E-243B4004884C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {947C909E-C857-4E4E-A03E-243B4004884C}.Release|Any CPU.Build.0 = Release|Any CPU - {0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D}.Release|Any CPU.Build.0 = Release|Any CPU - {0BC7063D-5EEA-44AD-8000-BB0BAB195ED5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0BC7063D-5EEA-44AD-8000-BB0BAB195ED5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0BC7063D-5EEA-44AD-8000-BB0BAB195ED5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0BC7063D-5EEA-44AD-8000-BB0BAB195ED5}.Release|Any CPU.Build.0 = Release|Any CPU - {F260CA19-974D-4015-8B29-6AFB56AC8AAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F260CA19-974D-4015-8B29-6AFB56AC8AAF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F260CA19-974D-4015-8B29-6AFB56AC8AAF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F260CA19-974D-4015-8B29-6AFB56AC8AAF}.Release|Any CPU.Build.0 = Release|Any CPU - {0ABFBDDF-A150-4DEF-AF62-561973AB4E80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0ABFBDDF-A150-4DEF-AF62-561973AB4E80}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0ABFBDDF-A150-4DEF-AF62-561973AB4E80}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0ABFBDDF-A150-4DEF-AF62-561973AB4E80}.Release|Any CPU.Build.0 = Release|Any CPU - {A39FCEBC-7CCD-483F-8164-7D3FAFD56564}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A39FCEBC-7CCD-483F-8164-7D3FAFD56564}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A39FCEBC-7CCD-483F-8164-7D3FAFD56564}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A39FCEBC-7CCD-483F-8164-7D3FAFD56564}.Release|Any CPU.Build.0 = Release|Any CPU - {4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17}.Release|Any CPU.Build.0 = Release|Any CPU - {0600420B-2601-42FD-BE2A-D455E465B843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0600420B-2601-42FD-BE2A-D455E465B843}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0600420B-2601-42FD-BE2A-D455E465B843}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0600420B-2601-42FD-BE2A-D455E465B843}.Release|Any CPU.Build.0 = Release|Any CPU - {5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE}.Release|Any CPU.Build.0 = Release|Any CPU - {0473A36C-404C-4E77-B63F-AA7593385FD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0473A36C-404C-4E77-B63F-AA7593385FD3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0473A36C-404C-4E77-B63F-AA7593385FD3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0473A36C-404C-4E77-B63F-AA7593385FD3}.Release|Any CPU.Build.0 = Release|Any CPU - {188B5200-BE59-4025-AEF3-CFE21B401CED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {188B5200-BE59-4025-AEF3-CFE21B401CED}.Debug|Any CPU.Build.0 = Debug|Any CPU - {188B5200-BE59-4025-AEF3-CFE21B401CED}.Release|Any CPU.ActiveCfg = Release|Any CPU - {188B5200-BE59-4025-AEF3-CFE21B401CED}.Release|Any CPU.Build.0 = Release|Any CPU - {022533DD-BB75-4E25-A41E-98464EF216B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {022533DD-BB75-4E25-A41E-98464EF216B4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {022533DD-BB75-4E25-A41E-98464EF216B4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {022533DD-BB75-4E25-A41E-98464EF216B4}.Release|Any CPU.Build.0 = Release|Any CPU - {032B3C6B-975D-423C-9FED-0F3D60BC5831}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {032B3C6B-975D-423C-9FED-0F3D60BC5831}.Debug|Any CPU.Build.0 = Debug|Any CPU - {032B3C6B-975D-423C-9FED-0F3D60BC5831}.Release|Any CPU.ActiveCfg = Release|Any CPU - {032B3C6B-975D-423C-9FED-0F3D60BC5831}.Release|Any CPU.Build.0 = Release|Any CPU - {2293DA74-1D02-4894-A43E-96009C77F6CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2293DA74-1D02-4894-A43E-96009C77F6CF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2293DA74-1D02-4894-A43E-96009C77F6CF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2293DA74-1D02-4894-A43E-96009C77F6CF}.Release|Any CPU.Build.0 = Release|Any CPU - {9D635AAD-8CED-84C7-CB46-7BA1776B4589}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9D635AAD-8CED-84C7-CB46-7BA1776B4589}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9D635AAD-8CED-84C7-CB46-7BA1776B4589}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9D635AAD-8CED-84C7-CB46-7BA1776B4589}.Release|Any CPU.Build.0 = Release|Any CPU - {7A861A6A-4CC6-4A7E-B61B-180FA4A26B48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7A861A6A-4CC6-4A7E-B61B-180FA4A26B48}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7A861A6A-4CC6-4A7E-B61B-180FA4A26B48}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7A861A6A-4CC6-4A7E-B61B-180FA4A26B48}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {2ACBA931-65B6-4531-9884-67666C7D36B2} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {0CAC3FB4-ED0C-4C64-A6A9-1164C0D9AF42} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {55BC4BE0-EAD8-4804-9C69-FC6E934581A7} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {CBB7206D-0A18-4597-A1DF-89608B7A9004} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {E7E5A633-ABE6-43B7-BB9B-6F08C4ECC087} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {1EB913C6-1AB1-43C2-BBEE-DAFDE174C4D1} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {7CA21F0A-CA3B-4144-B68B-68FCD7561F40} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {D5E2B355-7240-4CDE-9A7B-E0AF6EBEF504} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {55E17483-47D8-4AA1-95A9-178932E1D487} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {E4ABFA93-D645-420C-B509-6645CDE6EB54} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {85CE3827-6AAF-42BA-BE18-511E3276F65B} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {FC7C8508-12A6-4414-BC69-4D0D5A5B61E1} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {7CDCDE32-B3FD-48C4-B1AD-21DA3164437E} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {947C909E-C857-4E4E-A03E-243B4004884C} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {0873D6FA-A9F7-4A00-BDC7-6AB5C5050A3D} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {0BC7063D-5EEA-44AD-8000-BB0BAB195ED5} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {F260CA19-974D-4015-8B29-6AFB56AC8AAF} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {A39FCEBC-7CCD-483F-8164-7D3FAFD56564} = {8F1D0581-0DB1-4A66-AF2F-5DA6953333F9} - {FD6D1D03-23E3-42A5-AA21-47002EDBD841} = {29F0A638-CEF7-404D-B6E2-87048B7F85B9} - {4DA593C0-C4CA-4CD9-AC92-A7CDBB720B17} = {FD6D1D03-23E3-42A5-AA21-47002EDBD841} - {0600420B-2601-42FD-BE2A-D455E465B843} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {5853FD1A-4FA7-4B33-B01C-AC7C3D370FDE} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {0473A36C-404C-4E77-B63F-AA7593385FD3} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {188B5200-BE59-4025-AEF3-CFE21B401CED} = {F4E22855-60E1-4B10-A0B1-90158DD8D79F} - {022533DD-BB75-4E25-A41E-98464EF216B4} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {032B3C6B-975D-423C-9FED-0F3D60BC5831} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {2293DA74-1D02-4894-A43E-96009C77F6CF} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {9D635AAD-8CED-84C7-CB46-7BA1776B4589} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - {7A861A6A-4CC6-4A7E-B61B-180FA4A26B48} = {5BED55CF-2757-46F0-98E9-063F63DD2BCD} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {08484504-7B02-4898-B0AD-51F03D2767E6} - EndGlobalSection -EndGlobal diff --git a/Feliz.slnx b/Feliz.slnx new file mode 100644 index 00000000..66bf6b70 --- /dev/null +++ b/Feliz.slnx @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/Program.fs b/build/Program.fs index dc78e0f5..5dace7ae 100644 --- a/build/Program.fs +++ b/build/Program.fs @@ -10,10 +10,10 @@ module Constants = let TestRoot = "./tests" [] - let MainSlnFile = "./Feliz.sln" + let MainSlnFile = "./Feliz.slnx" [] - let PackSlnFile = "./Feliz.Pack.sln" + let PackSlnFile = "./Feliz.Pack.slnx" [] let OutputDir = "./dist" @@ -30,66 +30,59 @@ module Utility = open System let inline printGreenfn fmt = - Printf.kprintf (fun s -> - let oldColor = Console.ForegroundColor - Console.ForegroundColor <- ConsoleColor.Green - Console.WriteLine s - Console.ForegroundColor <- oldColor - ) fmt + Printf.kprintf + (fun s -> + let oldColor = Console.ForegroundColor + Console.ForegroundColor <- ConsoleColor.Green + Console.WriteLine s + Console.ForegroundColor <- oldColor + ) + fmt let inline printRedfn fmt = - Printf.kprintf (fun s -> - let oldColor = Console.ForegroundColor - Console.ForegroundColor <- ConsoleColor.Red - Console.WriteLine s - Console.ForegroundColor <- oldColor - ) fmt + Printf.kprintf + (fun s -> + let oldColor = Console.ForegroundColor + Console.ForegroundColor <- ConsoleColor.Red + Console.WriteLine s + Console.ForegroundColor <- oldColor + ) + fmt -module Setup = +module Setup = - let dotnetToolRestore() = + let dotnetToolRestore () = let args = CmdLine.Empty |> CmdLine.append "tool" |> CmdLine.append "restore" |> CmdLine.toString - Command.Run( - "dotnet", - args - ) + Command.Run("dotnet", args) - let npmInstall() = - let args = - CmdLine.Empty - |> CmdLine.append "ci" - |> CmdLine.toString + let npmInstall () = + let args = CmdLine.Empty |> CmdLine.append "ci" |> CmdLine.toString - Command.Run( - "npm", - args - ) + Command.Run("npm", args) - let dotnetRestore() = + let dotnetRestore () = let args = CmdLine.Empty |> CmdLine.append "restore" |> CmdLine.append MainSlnFile |> CmdLine.toString - Command.Run( - "dotnet", - args - ) + Command.Run("dotnet", args) - let all() = + let all () = printGreenfn "Restoring dotnet tools" - dotnetToolRestore() + dotnetToolRestore () printGreenfn "Restoring npm packages" - npmInstall() + npmInstall () printGreenfn "Restoring dotnet packages" - dotnetRestore() + dotnetRestore () + module Tests = open System @@ -98,11 +91,13 @@ module Tests = let hasMatchingFsproj dir (filterOpt: string option) = let fsprojFiles = Directory.GetFiles(dir, "*.fsproj") + match filterOpt with | Some substr -> fsprojFiles |> Array.exists (fun path -> let projName = Path.GetFileNameWithoutExtension(path) + projName .Replace(".tests", "", StringComparison.OrdinalIgnoreCase) // do this before ".test", or it will keep the "s".abs .Replace(".test", "", StringComparison.OrdinalIgnoreCase) @@ -112,15 +107,19 @@ module Tests = let hasTestScriptInPackageJson dir = let packageJsonPath = Path.Combine(dir, "package.json") + if File.Exists(packageJsonPath) then try let json = File.ReadAllText(packageJsonPath) let doc = JsonDocument.Parse(json) + match doc.RootElement.TryGetProperty("scripts") with | true, scripts when scripts.TryGetProperty("test") |> fst -> true | _ -> false - with _ -> false - else false + with _ -> + false + else + false let findValidNPMTestFolders root filteropt = Directory.GetDirectories(root) @@ -131,47 +130,37 @@ module Tests = |> Array.filter (fun dir -> hasMatchingFsproj dir filteropt) let runNpmTest (workingDir: string) = - let args = - CmdLine.Empty - |> CmdLine.append "test" - |> CmdLine.toString + let args = CmdLine.Empty |> CmdLine.append "test" |> CmdLine.toString - Command.Run( - "npm", - args, - workingDir - ) + Command.Run("npm", args, workingDir) let runNETTest (workingDir: string) = - let args = - CmdLine.Empty - |> CmdLine.append "test" - |> CmdLine.toString + let args = CmdLine.Empty |> CmdLine.append "test" |> CmdLine.toString - Command.Run( - "dotnet", - args, - workingDir - ) + Command.Run("dotnet", args, workingDir) let runAll (filteropt: string option) = match filteropt with - | Some filter -> - printGreenfn "Running tests in folder matching %s" filter - | None -> - printGreenfn "Running tests in all folders" + | Some filter -> printGreenfn "Running tests in folder matching %s" filter + | None -> printGreenfn "Running tests in all folders" + let npmTestFolders = findValidNPMTestFolders TestRoot filteropt + for folder in npmTestFolders do let folderName = Path.GetFileName(folder) printGreenfn "Running tests in %s" folderName runNpmTest folder printGreenfn "Finished running tests in %s" folderName - let netTestFolders = findValidNETTestFolders TestRoot filteropt |> Array.except npmTestFolders + + let netTestFolders = + findValidNETTestFolders TestRoot filteropt |> Array.except npmTestFolders + for folder in netTestFolders do let folderName = Path.GetFileName(folder) printGreenfn "Running tests in %s" folderName runNETTest folder printGreenfn "Finished running tests in %s" folderName + if npmTestFolders.Length = 0 && netTestFolders.Length = 0 then printRedfn "No test projects found matching the given filter." failwith "No test projects found." @@ -183,28 +172,29 @@ module Pack = open System.IO open System.Text.Json - - let cleanOutputDir(path: string) = + + let cleanOutputDir (path: string) = if Directory.Exists(path) then printGreenfn "Cleaning output directory: %s" path Directory.Delete(path, true) - let checkPackedFiles() = + let checkPackedFiles () = let files = Directory.GetFiles(OutputDir, "*.nupkg") + if files.Length = 0 then failwithf "No .nupkg files found in %s" OutputDir else printGreenfn "Found %d .nupkg files in %s" files.Length OutputDir - let pack() = + let pack () = let SlnFullPath = Path.GetFullPath PackSlnFile let OutputDirFullPath = Path.GetFullPath OutputDir printGreenfn "Packing solution: %s" SlnFullPath - cleanOutputDir(OutputDirFullPath) + cleanOutputDir (OutputDirFullPath) let args = CmdLine.Empty @@ -213,10 +203,7 @@ module Pack = |> CmdLine.appendPrefix "-o" OutputDirFullPath |> CmdLine.toString - Command.Run( - "dotnet", - args - ) + Command.Run("dotnet", args) module Release = @@ -225,13 +212,14 @@ module Release = open System.IO - let release(apiKey: string) = + let release (apiKey: string) = if String.IsNullOrWhiteSpace(apiKey) then printRedfn "%s key not found in environment variables" NugetAPIKeyEnvVariable failwithf "%s key not found in environment variables" NugetAPIKeyEnvVariable - + let files = Directory.GetFiles(OutputDir, "*.nupkg") + if files.Length = 0 then printRedfn "No .nupkg files found in %s" OutputDir failwithf "No .nupkg files found in %s" OutputDir @@ -247,48 +235,42 @@ module Release = |> CmdLine.appendPrefix "-s" NugetDefaultPushSource |> CmdLine.append "--skip-duplicate" |> CmdLine.toString - - Command.Run( - "dotnet", - args, - workingDirectory = Path.GetFullPath OutputDir - ) + + Command.Run("dotnet", args, workingDirectory = Path.GetFullPath OutputDir) [] let main args = let argv = args |> Array.map (fun x -> x.ToLower()) |> Array.toList match argv with - | "setup" :: _ -> - Setup.all() + | "setup" :: _ -> Setup.all () | "test" :: a | "tests" :: a -> match a with - | filter :: _ -> - Tests.runAll (Some filter) - | [] -> - Tests.runAll None - | "pack" :: _ -> - Pack.pack() + | filter :: _ -> Tests.runAll (Some filter) + | [] -> Tests.runAll None + | "pack" :: _ -> Pack.pack () | "release" :: a -> let apiKey = - match a with + match a with | apiKey :: _ -> apiKey | [] -> System.Environment.GetEnvironmentVariable(NugetAPIKeyEnvVariable) - Release.release(apiKey) + + Release.release (apiKey) | "release-pipeline" :: a -> let apiKey = - match a with + match a with | apiKey :: _ -> apiKey | [] -> System.Environment.GetEnvironmentVariable(NugetAPIKeyEnvVariable) - Setup.all() + + Setup.all () Tests.runAll None - Pack.pack() - Release.release(apiKey) + Pack.pack () + Release.release (apiKey) | "develop" :: _ -> // Placeholder for develop command printfn "Develop command is not implemented yet." - | _ -> - printfn "Unknown command." + | _ -> printfn "Unknown command." + 0 diff --git a/docs/docs/ecosystem/06_Testing/Vitest.mdx b/docs/docs/ecosystem/06_Testing/Vitest.mdx index 0cd152c7..bd7ac2e6 100644 --- a/docs/docs/ecosystem/06_Testing/Vitest.mdx +++ b/docs/docs/ecosystem/06_Testing/Vitest.mdx @@ -33,6 +33,8 @@ Vitest integrates well with the vite bundler and provides a fast and reliable te The bindings for the Vitest ecosystem are developed and maintained by the [Fable Hub](https://github.com/fable-hub/Feliz) and used for testing in the Feliz project. +Vitest 5 requires Node.js 22.12 or newer and Vite 6.4 or newer. Install a compatible `vite` alongside `vitest` in applications, and pass `--config` explicitly when the Vitest config lives above the directory where the test command runs. + :::info The [Feliz template](../../api-docs/GettingStarted.mdx#template-nuget) also ships with Vitest preconfigured. You can get started with Vitest right away when creating a new Feliz project using the template. ::: @@ -50,3 +52,18 @@ describe "FragmentComponent" <| fun _ -> expect(second).toHaveTextContent "World" } ``` + +For data-driven tests, `test.for` keeps each F# record as one typed case. A mock callback can be created without an implementation: + +```fsharp +(Vitest.Test.forCases [| + {| input = 1; expected = 2 |} + {| input = 4; expected = 5 |} +|]).run("increments $input to $expected", fun case -> + Vitest.expect(case.input + 1).toBe(case.expected) +) + +let callback = Vitest.vi.fn() +callback 42 +Vitest.expect(callback).toHaveBeenCalledWith([| box 42 |]) +``` diff --git a/docs/docs/feliz-docs/Examples/Feliz/ConditionalRendering.fs b/docs/docs/feliz-docs/Examples/Feliz/ConditionalRendering.fs index b660b550..32702196 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ConditionalRendering.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ConditionalRendering.fs @@ -9,32 +9,32 @@ type ConditionalRendering = [] static member Item(text: string, count: int) = let isMany = count > 5 + Html.li [ prop.style [ - style.display.flex; - style.justifyContent.spaceBetween; + style.display.flex + style.justifyContent.spaceBetween style.alignItems.center ] prop.children [ Html.div [ Html.text text - if not isMany then Html.text " ⚠️" - ] + if not isMany then + Html.text " ⚠️" + ] Html.small [ - prop.className [ - if isMany then "text-green-500" else "text-red-500" - ] + prop.className [ if isMany then "text-green-500" else "text-red-500" ] prop.textf "%d left in store" count ] - ] + ] ] [] static member OutOfStock(text: string) = Html.li [ prop.style [ - style.display.flex; - style.justifyContent.spaceBetween; + style.display.flex + style.justifyContent.spaceBetween style.alignItems.center ] prop.children [ @@ -60,7 +60,7 @@ type ConditionalRendering = "Raspberry", Some 20 ] - Html.ul [ + Html.ul [ for text, count in data do match count with | Some count -> ConditionalRendering.Item(text, count) diff --git a/docs/docs/feliz-docs/Examples/Feliz/FSharp.fs b/docs/docs/feliz-docs/Examples/Feliz/FSharp.fs index 55809099..fb529e10 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/FSharp.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/FSharp.fs @@ -9,25 +9,28 @@ type ISize = | Medium | Large -type Button = +type Button = [] static member Example(text: string, onClick: Browser.Types.MouseEvent -> unit, ?size: ISize) = let size = defaultArg size Medium + let sizeClass = match size with | Small -> "sm" | Medium -> "" | Large -> "lg" + Html.button [ prop.text text prop.onClick onClick - prop.className [ "fsharp-btn"; sizeClass] + prop.className [ "fsharp-btn"; sizeClass ] ] [] static member Example() = - let fn = fun _ -> Browser.Dom.console.log("Button clicked!") + let fn = fun _ -> Browser.Dom.console.log ("Button clicked!") + Html.div [ prop.style [ style.display.flex diff --git a/docs/docs/feliz-docs/Examples/Feliz/Html.fs b/docs/docs/feliz-docs/Examples/Feliz/Html.fs index 33df5f28..0d289ce8 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/Html.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/Html.fs @@ -3,14 +3,14 @@ module Example.Html open Feliz [] -let Example() = - Html.div [ +let Example () = + Html.div [ prop.id "main-container" prop.children [ Html.h1 "Hello, Feliz!" Html.p "This is a simple example of using Feliz to create HTML elements in F#." Html.button [ - prop.onClick (fun _ -> Browser.Dom.window.alert("Button clicked!")) + prop.onClick (fun _ -> Browser.Dom.window.alert ("Button clicked!")) prop.text "Submit" prop.style [ style.color.whiteSmoke diff --git a/docs/docs/feliz-docs/Examples/Feliz/Overloads.fs b/docs/docs/feliz-docs/Examples/Feliz/Overloads.fs index d2bdbac3..2402bf12 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/Overloads.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/Overloads.fs @@ -3,8 +3,8 @@ module Example.Overloads open Feliz [] -let Example() = - Html.div [ +let Example () = + Html.div [ Html.div "Test" // overload 1: single child `ReactElement`, also works for float/int Html.div [ // overload 2: list of properties `IProp list` prop.id "my-div" diff --git a/docs/docs/feliz-docs/Examples/Feliz/PassingProps.fs b/docs/docs/feliz-docs/Examples/Feliz/PassingProps.fs index 23ac484a..5d8f9c5c 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/PassingProps.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/PassingProps.fs @@ -9,6 +9,7 @@ type Components = [] static member MyButton(children: ReactElement, onClick: unit -> unit, ?props: IReactProperty list) = let props = defaultArg props [] + Html.button [ prop.style [ style.backgroundColor.skyBlue @@ -17,27 +18,29 @@ type Components = style.textAlign.center style.textDecoration.none style.display.flex - style.margin(4,2) + style.margin (4, 2) style.cursor.pointer ] - prop.onClick (fun _ -> onClick()) + prop.onClick (fun _ -> onClick ()) prop.children children yield! props // same as `...props` in JSX. Can overwrite existing props ] [] -let Example() = - Html.div [ - Components.MyButton(Html.text "Click Me", (fun () -> Browser.Dom.console.log("Button clicked!"))) +let Example () = + Html.div [ + Components.MyButton(Html.text "Click Me", (fun () -> Browser.Dom.console.log ("Button clicked!"))) Components.MyButton( - Html.div [ - Html.span "Custom Styled Button" - Html.i " 🚀" - ], - (fun () -> Browser.Dom.console.log("Custom button clicked!")), - [ - prop.style [ style.backgroundColor.orange; style.fontWeight.bold; style.color.black; style.padding 8 ] + Html.div [ Html.span "Custom Styled Button"; Html.i " 🚀" ], + (fun () -> Browser.Dom.console.log ("Custom button clicked!")), + [ + prop.style [ + style.backgroundColor.orange + style.fontWeight.bold + style.color.black + style.padding 8 + ] prop.title "This is a custom styled button" ] ) diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponent.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponent.fs index b28c8c1b..7e8df5bc 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponent.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponent.fs @@ -5,21 +5,14 @@ open Feliz [] let Component (text: string, count: int) = Html.div [ - for i in 1 .. count do - Html.p [ - prop.key i - prop.text (sprintf "%d: %s" i text) - ] + for i in 1..count do + Html.p [ prop.key i; prop.text (sprintf "%d: %s" i text) ] ] [] let ComponentMemo (text: string) (count: int) = Html.div [ - for i in 1 .. count do - Html.p [ - prop.key i - prop.text (sprintf "%d: %s" i text) - ] + for i in 1..count do + Html.p [ prop.key i; prop.text (sprintf "%d: %s" i text) ] ] - diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentImport.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentImport.fs index 0ac0d730..4d3a2abf 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentImport.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentImport.fs @@ -3,14 +3,11 @@ module Examples.Feliz.ReactComponentImport open Feliz -type Component = +type Component = [] static member Counter(?init: int) = React.Imported() [] static member Example() = - Html.div [ - Component.Counter() - Component.Counter(10) - ] + Html.div [ Component.Counter(); Component.Counter(10) ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/AnonymRecordType.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/AnonymRecordType.fs index f34b2f00..478e4902 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/AnonymRecordType.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/AnonymRecordType.fs @@ -3,10 +3,7 @@ module Example.ReactComponentTransform.AnonymRecordType open Feliz open Feliz.JSX -type Props = {| - text: string - count: int -|} +type Props = {| text: string; count: int |} [] let Component (anoRecordType: Props) = diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Curried.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Curried.fs index 54730d6a..e17d8e46 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Curried.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Curried.fs @@ -5,7 +5,4 @@ open Feliz.JSX [] let Component (text: string) (count: int) = - Html.div [ - Html.text text - Html.text count - ] + Html.div [ Html.text text; Html.text count ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/RecordType.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/RecordType.fs index b0f45111..0ceafa3c 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/RecordType.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/RecordType.fs @@ -1,16 +1,10 @@ module Example.ReactComponentTransform.RecordType -type Props = { - text: string - count: int -} +type Props = { text: string; count: int } open Feliz open Feliz.JSX [] let Component (recordType: Props) = - Html.div [ - Html.text recordType.text - Html.text recordType.count - ] + Html.div [ Html.text recordType.text; Html.text recordType.count ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Tupled.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Tupled.fs index 6bde304b..9483b012 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Tupled.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactComponentTransform/Tupled.fs @@ -4,8 +4,5 @@ open Feliz open Feliz.JSX [] -let Component(text: string, count: int) = - Html.div [ - Html.text text - Html.text count - ] +let Component (text: string, count: int) = + Html.div [ Html.text text; Html.text count ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponent.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponent.fs index bb1eaa7d..ef606246 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponent.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponent.fs @@ -3,26 +3,27 @@ module Examples.Feliz.ReactLazyComponent open Feliz [] -let private LazyLists(list: int list option) = Examples.Feliz.RenderingLists.RenderingLists.Example(?list = list) +let private LazyLists (list: int list option) = + Examples.Feliz.RenderingLists.RenderingLists.Example(?list = list) [] let private LazyListsNoArg = Examples.Feliz.RenderingLists.RenderingLists.Example [] type Examples = - + [] - static member LazyList(?list: int list) = Examples.Feliz.RenderingLists.RenderingLists.Example(?list = list) + static member LazyList(?list: int list) = + Examples.Feliz.RenderingLists.RenderingLists.Example(?list = list) [] static member Main() = Html.div [ Html.h1 "ReactLazyComponent Example" Html.h2 "With argument" - LazyLists(Some [1;2;3;4;5]) + LazyLists(Some [ 1; 2; 3; 4; 5 ]) Html.h2 "Without argument" LazyListsNoArg() Html.h2 "Using static member" - Examples.LazyList([10;20;30]) + Examples.LazyList([ 10; 20; 30 ]) ] - diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponentPath.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponentPath.fs index fc00e40e..7fc5e918 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponentPath.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactLazyComponentPath.fs @@ -3,26 +3,28 @@ module Examples.Feliz.ReactLazyComponentPath open Feliz [] -let private LazyLists(list: int list option) = React.DynamicImported "./RenderingLists" +let private LazyLists (list: int list option) = + React.DynamicImported "./RenderingLists" [] -let private LazyListsNoArg() = React.DynamicImported "./RenderingLists" +let private LazyListsNoArg () = + React.DynamicImported "./RenderingLists" [] type Examples = - + [] - static member LazyList(?list: int list) = React.DynamicImported "./RenderingLists" + static member LazyList(?list: int list) = + React.DynamicImported "./RenderingLists" [] static member Main() = Html.div [ Html.h1 "ReactLazyComponent Example" Html.h2 "With argument" - LazyLists(Some [1;2;3;4;5]) + LazyLists(Some [ 1; 2; 3; 4; 5 ]) Html.h2 "Without argument" LazyListsNoArg() Html.h2 "Using static member" - Examples.LazyList([10;20;30]) + Examples.LazyList([ 10; 20; 30 ]) ] - diff --git a/docs/docs/feliz-docs/Examples/Feliz/ReactMemoComponentAreEqualFn.fs b/docs/docs/feliz-docs/Examples/Feliz/ReactMemoComponentAreEqualFn.fs index 5bb5841c..14aff156 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/ReactMemoComponentAreEqualFn.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/ReactMemoComponentAreEqualFn.fs @@ -7,9 +7,10 @@ open Feliz let MemoFsEqualsButFunctions (values: int list, fn: int -> int) = let renderCount = React.useRef 0 renderCount.current <- renderCount.current + 1 - Html.div [ - prop.testId "memo-fs-bf-count"; - prop.text (string renderCount.current) + + Html.div [ + prop.testId "memo-fs-bf-count" + prop.text (string renderCount.current) ] // This will rerender when parent renders due to function property change @@ -17,9 +18,10 @@ let MemoFsEqualsButFunctions (values: int list, fn: int -> int) = let MemoFsEquals (values: int list, fn: int -> int) = let renderCount = React.useRef 0 renderCount.current <- renderCount.current + 1 - Html.div [ - prop.testId "memo2-fs-bf-count"; - prop.text (string renderCount.current) + + Html.div [ + prop.testId "memo2-fs-bf-count" + prop.text (string renderCount.current) ] // This will alway rerender when parent renders @@ -27,23 +29,25 @@ let MemoFsEquals (values: int list, fn: int -> int) = let ComparisonComponent (values: int list, fn: int -> int) = let renderCount = React.useRef 0 renderCount.current <- renderCount.current + 1 - Html.div [ - prop.testId "fs-bf-count"; - prop.text (string renderCount.current) + + Html.div [ + prop.testId "fs-bf-count" + prop.text (string renderCount.current) ] [] -let ParentWithFnFsButFunctions() = +let ParentWithFnFsButFunctions () = let state, setState = React.useState 0 let fn = fun x -> x + state // New function instance on each render let values = [ 1; 2 ] // New list instance on each render + Html.div [ - Html.button [ - prop.testId "btn-fn-bf"; - prop.onClick (fun _ -> setState(state + 1)); - prop.text "Trigger Rerender by changing state of parent!" + Html.button [ + prop.testId "btn-fn-bf" + prop.onClick (fun _ -> setState (state + 1)) + prop.text "Trigger Rerender by changing state of parent!" ] - MemoFsEqualsButFunctions (values, fn) - MemoFsEquals (values, fn) - ComparisonComponent (values, fn) + MemoFsEqualsButFunctions(values, fn) + MemoFsEquals(values, fn) + ComparisonComponent(values, fn) ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/RenderingLists.fs b/docs/docs/feliz-docs/Examples/Feliz/RenderingLists.fs index 2ad5428b..9d0e3853 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/RenderingLists.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/RenderingLists.fs @@ -7,26 +7,19 @@ type RenderingLists = [] static member Example(?list: int list) = - let items = defaultArg list [ 0 .. 5 ] //any list/seq/array + let items = defaultArg list [ 0..5 ] //any list/seq/array Html.div [ Html.h2 "List rendering using for loop" Html.ul [ Html.li "Static item 1" for item in items do // f# for loop, nicely combinable with other children - Html.li [ - prop.key item - prop.text (sprintf "Item %i" item) - ] + Html.li [ prop.key item; prop.text (sprintf "Item %i" item) ] ] Html.h2 "List rendering using List.map" items // f# pipe style - |> List.map (fun item -> - Html.li [ - prop.key item - prop.text (sprintf "Item %i" item) - ]) + |> List.map (fun item -> Html.li [ prop.key item; prop.text (sprintf "Item %i" item) ]) |> Html.ol ] diff --git a/docs/docs/feliz-docs/Examples/Feliz/Styling.fs b/docs/docs/feliz-docs/Examples/Feliz/Styling.fs index f6ba28d7..445ceea7 100644 --- a/docs/docs/feliz-docs/Examples/Feliz/Styling.fs +++ b/docs/docs/feliz-docs/Examples/Feliz/Styling.fs @@ -3,8 +3,8 @@ module Example.Styling open Feliz [] -let Example() = - Html.div [ +let Example () = + Html.div [ prop.style [ style.display.flex style.width (length.percent 100) @@ -12,7 +12,7 @@ let Example() = style.alignItems.center style.height 40 // overload for px style.backgroundColor.dodgerBlue - style.color (color.rgba(255, 255, 255, 0.9)) + style.color (color.rgba (255, 255, 255, 0.9)) style.borderRadius 99 style.border (2, borderStyle.solid, color.white) style.fontWeight.bold diff --git a/docs/docs/feliz-docs/Examples/Guides/Async.fs b/docs/docs/feliz-docs/Examples/Guides/Async.fs index 962182ef..c2e2c5b0 100644 --- a/docs/docs/feliz-docs/Examples/Guides/Async.fs +++ b/docs/docs/feliz-docs/Examples/Guides/Async.fs @@ -1,19 +1,18 @@ module Examples.Guides.Async -let nativeJsPromiseMock() = promise { +let nativeJsPromiseMock () = promise { do! Promise.sleep 2000 - return [1;2;3;4;5] + return [ 1; 2; 3; 4; 5 ] } -open Fable.Core // contains `Async.AwaitPromise` and `Async.StartAsPromise` +open Fable.Core // contains `Async.AwaitPromise` and `Async.StartAsPromise` -let fetchData(setLoading: bool -> unit, setErrorMsg: System.Exception option -> unit, setData: list -> unit) = +let fetchData (setLoading: bool -> unit, setErrorMsg: System.Exception option -> unit, setData: list -> unit) = async { - setLoading true + setLoading true + try - let! data = - nativeJsPromiseMock() - |> Async.AwaitPromise // transform js promise to f# async + let! data = nativeJsPromiseMock () |> Async.AwaitPromise // transform js promise to f# async setLoading false // set loading to false AFTER data is fetched setData data with err -> diff --git a/docs/docs/feliz-docs/Examples/Guides/BrowserTypesEvents.fs b/docs/docs/feliz-docs/Examples/Guides/BrowserTypesEvents.fs index 559ce40f..982d996d 100644 --- a/docs/docs/feliz-docs/Examples/Guides/BrowserTypesEvents.fs +++ b/docs/docs/feliz-docs/Examples/Guides/BrowserTypesEvents.fs @@ -3,22 +3,24 @@ module Examples.Guides.BrowserTypesEvents open Browser.Types // for MouseEvent and File types open Fable.Core.JsInterop // only used for `?` operator -let myButtonOnClick(e: MouseEvent) = - Browser.Dom.console.log("Button clicked at coordinates:", e.clientX, e.clientY) +let myButtonOnClick (e: MouseEvent) = + Browser.Dom.console.log ("Button clicked at coordinates:", e.clientX, e.clientY) -let fileUpload(file: File, setData, setLoading) = +let fileUpload (file: File, setData, setLoading) = if isNull file then () else promise { // `.text()` is inherited from the `Blob` type: https://developer.mozilla.org/en-US/docs/Web/API/Blob - let! (text: string) = file?text() - let values: string [] [] = + let! (text: string) = file?text () + + let values: string[][] = text.Split([| "\r\n"; "\n" |], System.StringSplitOptions.None) |> Array.map (fun line -> line.Split([| "\t" |], System.StringSplitOptions.None) |> Array.map (fun value -> value.Trim()) ) + do! setData file.name values } |> Promise.catch (fun ex -> diff --git a/docs/docs/feliz-docs/Examples/Guides/BrowserTypesGlobalNamespaces.fs b/docs/docs/feliz-docs/Examples/Guides/BrowserTypesGlobalNamespaces.fs index 929a1198..3636ccb6 100644 --- a/docs/docs/feliz-docs/Examples/Guides/BrowserTypesGlobalNamespaces.fs +++ b/docs/docs/feliz-docs/Examples/Guides/BrowserTypesGlobalNamespaces.fs @@ -2,10 +2,10 @@ module Examples.Guides.BrowserTypesGlobalNamespaces open Browser.Dom -let getandSetWindowDimensions() = +let getandSetWindowDimensions () = let width = window.innerWidth let height = window.innerHeight - console.log("Window dimensions:", width, height) - let newDiv = document.createElement("div") + console.log ("Window dimensions:", width, height) + let newDiv = document.createElement ("div") newDiv.textContent <- sprintf "Window dimensions: %A x %A" width height document.body.appendChild newDiv |> ignore diff --git a/docs/docs/feliz-docs/Examples/Guides/FablePromise.fs b/docs/docs/feliz-docs/Examples/Guides/FablePromise.fs index e25b2a96..54a17159 100644 --- a/docs/docs/feliz-docs/Examples/Guides/FablePromise.fs +++ b/docs/docs/feliz-docs/Examples/Guides/FablePromise.fs @@ -1,26 +1,25 @@ module Examples.Guides.FablePromise -let fetchDataMock = fun () -> - promise { +let fetchDataMock = + fun () -> promise { do! Promise.sleep 2000 - return [1;2;3;4;5] + return [ 1; 2; 3; 4; 5 ] } -let fetchData(setLoading: bool -> unit, setErrorMsg: System.Exception option -> unit, setData: list -> unit) = +let fetchData (setLoading: bool -> unit, setErrorMsg: System.Exception option -> unit, setData: list -> unit) = // f# computational expression (CE), `promise { ... }` promise { - setLoading true + setLoading true // `let!` is alike to `let data = await ...` in JS/TS - let! data = fetchDataMock() + let! data = fetchDataMock () setLoading false // set loading to false AFTER data is fetched return data } |> Promise.map (fun data -> // could have been done inside the CE too, this is just for demonstration setData data ) - |> Promise.catch (fun err -> + |> Promise.catch (fun err -> // handle error here setLoading false setErrorMsg (Some err) ) - diff --git a/docs/docs/feliz-docs/Examples/Guides/FelizStyleBindings.fs b/docs/docs/feliz-docs/Examples/Guides/FelizStyleBindings.fs index 1b0c7624..fbbc6f46 100644 --- a/docs/docs/feliz-docs/Examples/Guides/FelizStyleBindings.fs +++ b/docs/docs/feliz-docs/Examples/Guides/FelizStyleBindings.fs @@ -7,12 +7,12 @@ open Feliz module Helper = let inline mkProperty<'t> (key: string, value: obj) : 't = (key, box value) |> unbox<'t> -type FloatingFocusManagerProps = - interface end +type FloatingFocusManagerProps = interface end [] type floatingFocusManager = - static member inline prop (prop: IReactProperty) = prop |> unbox + static member inline prop(prop: IReactProperty) = + prop |> unbox static member inline children(value: seq) = Helper.mkProperty("children", value) @@ -25,7 +25,7 @@ type floatingFocusManager = static member inline initialFocus(obj: obj) = Helper.mkProperty("initialFocus", obj) - + static member inline returnFocus(value: bool) = Helper.mkProperty("returnFocus", value) @@ -36,28 +36,31 @@ type floatingFocusManager = [] type FloatingUi = - static member inline FloatingFocusManager(props: seq) = ReactLegacy.createElement(unbox (import "FloatingFocusManager" "@floating-ui/react"), createObj !!props) + static member inline FloatingFocusManager(props: seq) = + ReactLegacy.createElement ( + unbox(import "FloatingFocusManager" "@floating-ui/react"), + createObj !!props + ) - static member inline FloatingFocusManager(children: seq) = ReactLegacy.createElement(unbox (import "FloatingFocusManager" "@floating-ui/react"), {|children = children|}) + static member inline FloatingFocusManager(children: seq) = + ReactLegacy.createElement ( + unbox(import "FloatingFocusManager" "@floating-ui/react"), + {| children = children |} + ) module App = [] - let Example() = + let Example () = FloatingUi.FloatingFocusManager [ floatingFocusManager.disabled false floatingFocusManager.returnFocus true floatingFocusManager.prop <| prop.id "my-focus-manager" floatingFocusManager.prop <| prop.key "my-focus-manager" floatingFocusManager.guards true - floatingFocusManager.children [ - Html.div "Hello from Feliz!" - ] + floatingFocusManager.children [ Html.div "Hello from Feliz!" ] ] [] - let Example1() = - FloatingUi.FloatingFocusManager [ - Html.div "Hello from Feliz!" - ] - + let Example1 () = + FloatingUi.FloatingFocusManager [ Html.div "Hello from Feliz!" ] diff --git a/docs/docs/feliz-docs/Examples/Guides/JSXModule.fs b/docs/docs/feliz-docs/Examples/Guides/JSXModule.fs index b262bf26..62a43e39 100644 --- a/docs/docs/feliz-docs/Examples/Guides/JSXModule.fs +++ b/docs/docs/feliz-docs/Examples/Guides/JSXModule.fs @@ -4,8 +4,8 @@ open Feliz open Feliz.JSX [] -let TestComponent() = - let counter, setCounter = React.useState(0) +let TestComponent () = + let counter, setCounter = React.useState (0) Html.div [ prop.id "my-div" @@ -17,17 +17,14 @@ let TestComponent() = Html.h1 "Counter - Reactivity Test" Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCounter(counter + 1)) + prop.onClick (fun _ -> setCounter (counter + 1)) ] Html.ul [ if counter = 0 then Html.li "No items" else for i in 1..counter do - Html.li [ - prop.key i - prop.text (sprintf "Item %d" i) - ] + Html.li [ prop.key i; prop.text (sprintf "Item %d" i) ] ] ] ] diff --git a/docs/docs/feliz-docs/Examples/Guides/JSXModuleAlias.fs b/docs/docs/feliz-docs/Examples/Guides/JSXModuleAlias.fs index ee558c6b..fc93fa68 100644 --- a/docs/docs/feliz-docs/Examples/Guides/JSXModuleAlias.fs +++ b/docs/docs/feliz-docs/Examples/Guides/JSXModuleAlias.fs @@ -5,8 +5,8 @@ open Feliz type JSX = Feliz.JSX.Html [] -let TestComponent() = - let counter, setCounter = React.useState(0) +let TestComponent () = + let counter, setCounter = React.useState (0) JSX.div [ prop.id "my-div" @@ -18,17 +18,14 @@ let TestComponent() = JSX.h1 "Counter - Reactivity Test" JSX.button [ prop.text "Increment" - prop.onClick (fun _ -> setCounter(counter + 1)) + prop.onClick (fun _ -> setCounter (counter + 1)) ] Html.ul [ if counter = 0 then Html.li "No items" else for i in 1..counter do - Html.li [ - prop.key i - prop.text (sprintf "Item %d" i) - ] + Html.li [ prop.key i; prop.text (sprintf "Item %d" i) ] ] ] ] diff --git a/docs/docs/feliz-docs/Examples/Guides/JSXTemplate.fs b/docs/docs/feliz-docs/Examples/Guides/JSXTemplate.fs index 3ffa349e..ad96e235 100644 --- a/docs/docs/feliz-docs/Examples/Guides/JSXTemplate.fs +++ b/docs/docs/feliz-docs/Examples/Guides/JSXTemplate.fs @@ -5,29 +5,32 @@ open Feliz.JSX [] -let TestComponent() = - let counter, setCounter = React.useState(0) +let TestComponent () = + let counter, setCounter = React.useState (0) - let ChildList = + let ChildList = if counter = 0 then - Html.jsx $""" + Html.jsx + $"""
  • No items
  • """ else React.Fragment [ for i in 1..counter do - Html.jsx $""" + Html.jsx + $"""
  • Item {i}
  • """ ] - Html.jsx + + Html.jsx $"""

    Hello from JSX Template!

    This is a paragraph inside a div.

    Counter - Reactivity Test

    - +
      {ChildList}
    diff --git a/docs/docs/feliz-docs/Examples/Guides/POJO.fs b/docs/docs/feliz-docs/Examples/Guides/POJO.fs index 927a6207..9f9fc6a0 100644 --- a/docs/docs/feliz-docs/Examples/Guides/POJO.fs +++ b/docs/docs/feliz-docs/Examples/Guides/POJO.fs @@ -17,11 +17,11 @@ let Pojo_RecordType: POJORecord = { // Anonymous records are transpiled to plain JS objects! -let Pojo_AnonymousRecordType = {| - name = "Fable"; - version = 4; - isAwesome = true; - noTypeReference = true +let Pojo_AnonymousRecordType = {| + name = "Fable" + version = 4 + isAwesome = true + noTypeReference = true |} // You can also write type references for anonymous records. @@ -31,7 +31,7 @@ type POJOAnonymousRecord = {| isAwesome: bool |} -let Pojo_AnonymousRecordTypeWithType : POJOAnonymousRecord = {| +let Pojo_AnonymousRecordTypeWithType: POJOAnonymousRecord = {| name = "Fable" version = 4 isAwesome = true @@ -54,12 +54,6 @@ open Fable.Core [] [] // do not generate code for this with Fable -type Options - [] // pass all parameters as a single JS object - [] // ... and return only the parameters after transpilation to JS. - ( - searchTerm: string, - ?isCaseSensitive: bool - ) = +type Options [] (searchTerm: string, ?isCaseSensitive: bool) = member val searchTerm: string = jsNative with get, set member val isCaseSensitive: bool option = jsNative with get, set diff --git a/docs/docs/feliz-docs/Examples/Guides/UnboxStringEnum.fs b/docs/docs/feliz-docs/Examples/Guides/UnboxStringEnum.fs index 7951f2fd..2c5624e7 100644 --- a/docs/docs/feliz-docs/Examples/Guides/UnboxStringEnum.fs +++ b/docs/docs/feliz-docs/Examples/Guides/UnboxStringEnum.fs @@ -14,8 +14,8 @@ type Theme = let setTheme (theme: Theme) = // We can do either `unbox theme` or `unbox theme` // `unbox theme` works because the compiler can infer the target type from the context of the function call - Browser.Dom.document.documentElement.setAttribute("data-theme", unbox theme) - Browser.Dom.window.localStorage.setItem("theme", unbox theme) + Browser.Dom.document.documentElement.setAttribute ("data-theme", unbox theme) + Browser.Dom.window.localStorage.setItem ("theme", unbox theme) // We can also use the `!!` operator to unbox. It works the same way as `unbox` by type inference // It can be used after `open Fable.Core.JsInterop`. - Browser.Dom.window.sessionStorage.setItem("theme", !!theme) + Browser.Dom.window.sessionStorage.setItem ("theme", !!theme) diff --git a/docs/docs/feliz-docs/Examples/React/CodeSplitting.fs b/docs/docs/feliz-docs/Examples/React/CodeSplitting.fs index 8d6e7c47..9b4fb3d8 100644 --- a/docs/docs/feliz-docs/Examples/React/CodeSplitting.fs +++ b/docs/docs/feliz-docs/Examples/React/CodeSplitting.fs @@ -3,23 +3,20 @@ module Example.CodeSplitting open Fable.Core open Feliz -let MyNonCodeSplitComponent() = - Html.div [ - prop.text "I was loaded synchronously!" - ] +let MyNonCodeSplitComponent () = + Html.div [ prop.text "I was loaded synchronously!" ] -let asyncComponent : JS.Promise ReactElement> = JsInterop.importDynamic "./Counter.fs" +let asyncComponent: JS.Promise ReactElement> = + JsInterop.importDynamic "./Counter.fs" -let LazyLoadComponent: LazyComponent = - React.lazy'(fun () -> - promise { - do! Promise.sleep 2000 - return! JsInterop.importDynamic "./Counter.fs" - } - ) +let LazyLoadComponent: LazyComponent = + React.lazy' (fun () -> promise { + do! Promise.sleep 2000 + return! JsInterop.importDynamic "./Counter.fs" + }) [] -let CodeSplitting(delay: int option) = +let CodeSplitting (delay: int option) = Html.div [ prop.children [ @@ -29,14 +26,8 @@ let CodeSplitting(delay: int option) = prop.text $"I will be loaded after {delay.Value} milliseconds!" ] React.Suspense( - [ - Html.div [ - React.lazyRender(LazyLoadComponent, ()) - ] - ], - Html.div [ - prop.text "Loading..." - ] + [ Html.div [ React.lazyRender (LazyLoadComponent, ()) ] ], + Html.div [ prop.text "Loading..." ] ) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/Counter.fs b/docs/docs/feliz-docs/Examples/React/Counter.fs index fac4ceb0..b69de7b8 100644 --- a/docs/docs/feliz-docs/Examples/React/Counter.fs +++ b/docs/docs/feliz-docs/Examples/React/Counter.fs @@ -8,13 +8,13 @@ type Counter = [] static member Counter() = - + let (count, setCount) = React.useState 0 Html.div [ Html.h1 count Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/DateTime.fs b/docs/docs/feliz-docs/Examples/React/DateTime.fs index 28f331df..4641136f 100644 --- a/docs/docs/feliz-docs/Examples/React/DateTime.fs +++ b/docs/docs/feliz-docs/Examples/React/DateTime.fs @@ -10,7 +10,7 @@ type Main = [] static member SwitchingBetweenDateAndDateTime() = let (date, setDate) = React.useState(None) - let (dateAndTime, toggleDateAndTime) = React.useState(false) + let (dateAndTime, toggleDateAndTime) = React.useState (false) let formattedDate = match date with @@ -22,26 +22,26 @@ type Main = if dateAndTime then Html.input [ - prop.value(date, includeTime=dateAndTime) + prop.value (date, includeTime = dateAndTime) prop.type'.dateTimeLocal - prop.onChange (fun newValue -> setDate(Some newValue)) + prop.onChange (fun newValue -> setDate (Some newValue)) ] else Html.input [ - prop.value(date, includeTime=dateAndTime) + prop.value (date, includeTime = dateAndTime) prop.type'.date - prop.onChange (fun newValue -> setDate(Some newValue)) + prop.onChange (fun newValue -> setDate (Some newValue)) ] Html.button [ prop.text "Reset selected date" prop.disabled date.IsNone - prop.onClick (fun _ -> setDate(None)) + prop.onClick (fun _ -> setDate (None)) ] Html.button [ prop.text "Toggle date and time" prop.disabled date.IsNone - prop.onClick (fun _ -> toggleDateAndTime(not dateAndTime)) + prop.onClick (fun _ -> toggleDateAndTime (not dateAndTime)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/EffectfulCounter.fs b/docs/docs/feliz-docs/Examples/React/EffectfulCounter.fs index a662a730..998545ca 100644 --- a/docs/docs/feliz-docs/Examples/React/EffectfulCounter.fs +++ b/docs/docs/feliz-docs/Examples/React/EffectfulCounter.fs @@ -3,15 +3,15 @@ module Example.EffectfulCounter open Feliz [] -let TabCounter() = - let (count, setCount) = React.useState(0) +let TabCounter () = + let (count, setCount) = React.useState (0) // execute this effect on every render cycle - React.useEffect(fun () -> Browser.Dom.document.title <- sprintf "Count = %d" count) + React.useEffect (fun () -> Browser.Dom.document.title <- sprintf "Count = %d" count) Html.div [ Html.h1 count Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/EffectfulWithDependency.fs b/docs/docs/feliz-docs/Examples/React/EffectfulWithDependency.fs index f271ce0e..886e7778 100644 --- a/docs/docs/feliz-docs/Examples/React/EffectfulWithDependency.fs +++ b/docs/docs/feliz-docs/Examples/React/EffectfulWithDependency.fs @@ -5,20 +5,20 @@ open Feliz let rnd = System.Random() [] -let EffectsUsingDependencies() = - let (isLoading, setLoading) = React.useState(false) - let (content, setContent) = React.useState("") - let (userId, setUserId) = React.useState(0) - let (textColor, setTextColor) = React.useState(color.red) +let EffectsUsingDependencies () = + let (isLoading, setLoading) = React.useState (false) + let (content, setContent) = React.useState ("") + let (userId, setUserId) = React.useState (0) + let (textColor, setTextColor) = React.useState (color.red) - let loadData() = async { + let loadData () = async { setLoading true do! Async.Sleep 1500 setLoading false setContent (sprintf "User %d" userId) } - React.useEffect(loadData >> Async.StartImmediate, [| box userId |]) + React.useEffect (loadData >> Async.StartImmediate, [| box userId |]) Html.div [ Html.h1 [ @@ -28,16 +28,16 @@ let EffectsUsingDependencies() = Html.button [ prop.text "Red" - prop.onClick (fun _ -> setTextColor(color.red)) + prop.onClick (fun _ -> setTextColor (color.red)) ] Html.button [ prop.text "Blue" - prop.onClick (fun _ -> setTextColor(color.blue)) + prop.onClick (fun _ -> setTextColor (color.blue)) ] Html.button [ prop.text "Update User ID" - prop.onClick (fun _ -> setUserId(rnd.Next(1, 100))) + prop.onClick (fun _ -> setUserId (rnd.Next(1, 100))) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/ElmishCounter.fs b/docs/docs/feliz-docs/Examples/React/ElmishCounter.fs index dcaa74b1..bb20d2a1 100644 --- a/docs/docs/feliz-docs/Examples/React/ElmishCounter.fs +++ b/docs/docs/feliz-docs/Examples/React/ElmishCounter.fs @@ -9,9 +9,9 @@ type Msg = | Increment | Decrement -type State = { Count : int } +type State = { Count: int } -let init() = { Count = 0 }, Cmd.none +let init () = { Count = 0 }, Cmd.none let update msg state = match msg with @@ -23,8 +23,9 @@ type Main = [] static member Main() = - - let state, dispatch = React.useElmish(init, update, [| |]) + + let state, dispatch = React.useElmish (init, update, [||]) + Html.div [ Html.h1 state.Count Html.button [ diff --git a/docs/docs/feliz-docs/Examples/React/ElmishCounterSubscription.fs b/docs/docs/feliz-docs/Examples/React/ElmishCounterSubscription.fs index f61286a7..86239127 100644 --- a/docs/docs/feliz-docs/Examples/React/ElmishCounterSubscription.fs +++ b/docs/docs/feliz-docs/Examples/React/ElmishCounterSubscription.fs @@ -11,9 +11,9 @@ type Msg = | Increment | Decrement -type State = { Count : int } +type State = { Count: int } -let init() = { Count = 0 }, Cmd.none +let init () = { Count = 0 }, Cmd.none let update msg state = match msg with @@ -25,26 +25,30 @@ type Main = [] static member Main() = - - let localCount, setLocalCount = React.useState(0) - let state, dispatch = React.useElmish(init, update, [| |]) - let subscriptionId = React.useRef(0) - let subscribeToTimer() = + let localCount, setLocalCount = React.useState (0) + let state, dispatch = React.useElmish (init, update, [||]) + let subscriptionId = React.useRef (0) + + let subscribeToTimer () = // start the ticking - let rec loop = fun () -> - // dispatch Increment every second - dispatch Increment - console.log("Incremented count") - let id = setTimeout loop 1000 - subscriptionId.current <- id + let rec loop = + fun () -> + // dispatch Increment every second + dispatch Increment + console.log ("Incremented count") + let id = setTimeout loop 1000 + subscriptionId.current <- id - loop() + loop () // return IDisposable with cleanup code - { new IDisposable with member this.Dispose() = clearTimeout(subscriptionId.current) } + { + new IDisposable with + member this.Dispose() = clearTimeout (subscriptionId.current) + } - React.useEffect(subscribeToTimer, [| |]) + React.useEffect (subscribeToTimer, [||]) Html.div [ Html.h1 (state.Count + localCount) @@ -60,6 +64,6 @@ type Main = Html.button [ prop.text "Increment local state" - prop.onClick (fun _ -> setLocalCount(localCount + 1)) + prop.onClick (fun _ -> setLocalCount (localCount + 1)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/FocusInput.fs b/docs/docs/feliz-docs/Examples/React/FocusInput.fs index 0d58f141..47542fd1 100644 --- a/docs/docs/feliz-docs/Examples/React/FocusInput.fs +++ b/docs/docs/feliz-docs/Examples/React/FocusInput.fs @@ -4,25 +4,22 @@ open Feliz open Browser.Types [] -let FullFocusInputExample() = +let FullFocusInputExample () = // obtain a reference - let inputRef = React.useRef(None) + let inputRef = React.useRef (None) - let focusTextInput() = + let focusTextInput () = match inputRef.current with | None -> () | Some element -> let inputElement = unbox element - inputElement.focus() + inputElement.focus () Html.div [ - Html.input [ - prop.ref inputRef - prop.type'.text - ] + Html.input [ prop.ref inputRef; prop.type'.text ] Html.button [ - prop.onClick (fun _ -> focusTextInput()) + prop.onClick (fun _ -> focusTextInput ()) prop.text "Focus Input" ] ] diff --git a/docs/docs/feliz-docs/Examples/React/Fragment.fs b/docs/docs/feliz-docs/Examples/React/Fragment.fs index 4d21ceca..7e4dd4a8 100644 --- a/docs/docs/feliz-docs/Examples/React/Fragment.fs +++ b/docs/docs/feliz-docs/Examples/React/Fragment.fs @@ -3,10 +3,14 @@ module Example.Fragment open Feliz [] -let FragmentDemo() = +let FragmentDemo () = React.Fragment [ Html.h3 [ prop.text "This is a heading inside a fragment" ] - Html.p [ prop.text "Fragments let you group multiple elements without adding extra nodes to the DOM." ] + Html.p [ + prop.text "Fragments let you group multiple elements without adding extra nodes to the DOM." + ] Html.button [ prop.text "Click me" ] - Html.p [ prop.text "Rightclick and inspect me to see I do not have a parent." ] + Html.p [ + prop.text "Rightclick and inspect me to see I do not have a parent." + ] ] diff --git a/docs/docs/feliz-docs/Examples/React/Greeting.fs b/docs/docs/feliz-docs/Examples/React/Greeting.fs index 6c2e4dac..11f7d695 100644 --- a/docs/docs/feliz-docs/Examples/React/Greeting.fs +++ b/docs/docs/feliz-docs/Examples/React/Greeting.fs @@ -3,7 +3,7 @@ module Example.Greeting open Feliz [] -let Greeting(name: string option) : ReactElement = +let Greeting (name: string option) : ReactElement = Html.div [ Html.span "Hello, " Html.span (Option.defaultValue "World" name) diff --git a/docs/docs/feliz-docs/Examples/React/Greetings.fs b/docs/docs/feliz-docs/Examples/React/Greetings.fs index 01fc6536..bf2f1479 100644 --- a/docs/docs/feliz-docs/Examples/React/Greetings.fs +++ b/docs/docs/feliz-docs/Examples/React/Greetings.fs @@ -3,11 +3,8 @@ module Example.Greetings open Feliz [] // true defines this as default export -let Greetings() = +let Greetings () = Html.div [ prop.className "content" - prop.children [ - Greeting.Greeting (Some "John") - Greeting.Greeting None - ] + prop.children [ Greeting.Greeting(Some "John"); Greeting.Greeting None ] ] diff --git a/docs/docs/feliz-docs/Examples/React/HoverAnimations.fs b/docs/docs/feliz-docs/Examples/React/HoverAnimations.fs index b1d93b72..efda06b9 100644 --- a/docs/docs/feliz-docs/Examples/React/HoverAnimations.fs +++ b/docs/docs/feliz-docs/Examples/React/HoverAnimations.fs @@ -9,7 +9,8 @@ type Main = [] static member AnimationsOnHover(content: ReactElement list) = - let (hovered, setHovered) = React.useState(false) + let (hovered, setHovered) = React.useState (false) + Html.div [ prop.style [ style.padding 10 @@ -26,8 +27,8 @@ type Main = style.backgroundColor.limeGreen style.color.white ] - prop.onMouseEnter (fun _ -> setHovered(true)) - prop.onMouseLeave (fun _ -> setHovered(false)) + prop.onMouseEnter (fun _ -> setHovered (true)) + prop.onMouseLeave (fun _ -> setHovered (false)) prop.children content ] diff --git a/docs/docs/feliz-docs/Examples/React/ImperativeHandle.fs b/docs/docs/feliz-docs/Examples/React/ImperativeHandle.fs index 7b2bc0e3..cc35ce27 100644 --- a/docs/docs/feliz-docs/Examples/React/ImperativeHandle.fs +++ b/docs/docs/feliz-docs/Examples/React/ImperativeHandle.fs @@ -3,14 +3,17 @@ module Example.ImperativeHandle open Feliz [] -let ForwardRefImperativeChild(ref: IRefValue<{| focus: unit -> unit |} option>) = - let divText,setDivText = React.useState "" - let inputRef = React.useInputRef() +let ForwardRefImperativeChild (ref: IRefValue<{| focus: unit -> unit |} option>) = + let divText, setDivText = React.useState "" + let inputRef = React.useInputRef () - React.useImperativeHandle(ref, fun () -> - inputRef.current - |> Option.map(fun innerRef -> - {| focus = fun () -> setDivText innerRef.className |}) + React.useImperativeHandle ( + ref, + fun () -> + inputRef.current + |> Option.map (fun innerRef -> {| + focus = fun () -> setDivText innerRef.className + |}) ) Html.div [ @@ -19,21 +22,17 @@ let ForwardRefImperativeChild(ref: IRefValue<{| focus: unit -> unit |} option>) prop.type'.text prop.ref inputRef ] - Html.div [ - prop.text divText - ] + Html.div [ prop.text divText ] ] [] -let ForwardRefImperativeParent() = +let ForwardRefImperativeParent () = let ref = React.useRef<{| focus: unit -> unit |} option>(None) Html.div [ ForwardRefImperativeChild(ref) Html.button [ prop.text "Focus Input" - prop.onClick <| fun ev -> - ref.current - |> Option.iter (fun elem -> elem.focus()) + prop.onClick <| fun ev -> ref.current |> Option.iter (fun elem -> elem.focus ()) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/MemoAttribute.fs b/docs/docs/feliz-docs/Examples/React/MemoAttribute.fs index f6bfbecf..e466de70 100644 --- a/docs/docs/feliz-docs/Examples/React/MemoAttribute.fs +++ b/docs/docs/feliz-docs/Examples/React/MemoAttribute.fs @@ -5,32 +5,33 @@ open Browser.Dom [] let RenderTextWithEffect (text: string) = - React.useEffect (fun () -> console.log("Rerender!", text) ) - Html.div [ - prop.text text; - prop.testId "memo-attribute" - ] + React.useEffect (fun () -> console.log ("Rerender!", text)) + Html.div [ prop.text text; prop.testId "memo-attribute" ] [] let Main () = - let isDark, setIsDark = React.useState(false) - let text, setText = React.useState("Hello, world!") + let isDark, setIsDark = React.useState (false) + let text, setText = React.useState ("Hello, world!") let fgColor = if isDark then color.white else color.black let bgColor = if isDark then color.black else color.white + Html.div [ - prop.style [style.border(1, borderStyle.solid, fgColor); style.padding 20; style.color fgColor; style.backgroundColor bgColor] + prop.style [ + style.border (1, borderStyle.solid, fgColor) + style.padding 20 + style.color fgColor + style.backgroundColor bgColor + ] prop.children [ Html.h3 "Check the output in the browser console" - Html.p "The child component below is memoized using the [] attribute. It only rerenders when its props change." + Html.p + "The child component below is memoized using the [] attribute. It only rerenders when its props change." Html.button [ prop.text "Toggle Dark Mode" - prop.onClick (fun _ -> setIsDark(not isDark)) - ] - Html.input [ - prop.value text - prop.onChange setText + prop.onClick (fun _ -> setIsDark (not isDark)) ] + Html.input [ prop.value text; prop.onChange setText ] RenderTextWithEffect(text) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmit.fs b/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmit.fs index 5c845f88..61374d2e 100644 --- a/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmit.fs +++ b/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmit.fs @@ -7,47 +7,53 @@ open Browser.Dom prevProps.fruits.length === nextProps.fruits.length && prevProps.fruits.every((value, index) => value === nextProps.fruits[index] - )" -)>] -let RenderTextWithEffect (fruits: string []) = - React.useEffect (fun () -> console.log("Rerender!") ) - Html.div [ - prop.text (fruits |> String.concat ", "); - prop.testId "memo-attribute" + )")>] +let RenderTextWithEffect (fruits: string[]) = + React.useEffect (fun () -> console.log ("Rerender!")) + + Html.div [ + prop.text (fruits |> String.concat ", ") + prop.testId "memo-attribute" ] [] let Main () = - let isDark, setIsDark = React.useState(false) - let input, setInput = React.useState("") - // This will stay the same array if it does not change - let fruits, setFruits = React.useState([|"apple"; "orange"; "banana"|]) + let isDark, setIsDark = React.useState (false) + let input, setInput = React.useState ("") + // This will stay the same array if it does not change + let fruits, setFruits = React.useState ([| "apple"; "orange"; "banana" |]) // This creates a new array reference on every render, triggering a rerender of the child component, without custom equality check - let sortedFruits = - fruits - |> Array.sort - let isValidInput = System.String.IsNullOrEmpty input |> not && fruits |> Array.contains input |> not + let sortedFruits = fruits |> Array.sort + + let isValidInput = + System.String.IsNullOrEmpty input |> not + && fruits |> Array.contains input |> not + let fgColor = if isDark then color.white else color.black let bgColor = if isDark then color.black else color.white + Html.div [ - prop.style [style.border(1, borderStyle.solid, fgColor); style.padding 20; style.color fgColor; style.backgroundColor bgColor] + prop.style [ + style.border (1, borderStyle.solid, fgColor) + style.padding 20 + style.color fgColor + style.backgroundColor bgColor + ] prop.children [ Html.h3 "Check the output in the browser console" - Html.p "The child component below is memoized using the [] attribute. It only rerenders when the areEqual function returns false." + Html.p + "The child component below is memoized using the [] attribute. It only rerenders when the areEqual function returns false." Html.button [ prop.text "Toggle Dark Mode" - prop.onClick (fun _ -> setIsDark(not isDark)) - ] - Html.input [ - prop.value input - prop.onChange setInput + prop.onClick (fun _ -> setIsDark (not isDark)) ] + Html.input [ prop.value input; prop.onChange setInput ] Html.button [ prop.text "Change Fruits Array" prop.disabled (not isValidInput) prop.onClick (fun _ -> if isValidInput then - [|yield! fruits; input|] |> setFruits + [| yield! fruits; input |] |> setFruits setInput "" ) ] diff --git a/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmitFnName.fs b/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmitFnName.fs index dff4be9a..59ac50b3 100644 --- a/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmitFnName.fs +++ b/docs/docs/feliz-docs/Examples/React/MemoAttributeAreEqualEmitFnName.fs @@ -3,49 +3,55 @@ module Example.MemoAttributeAreEqualEmitFnName open Feliz open Browser.Dom -let areEqualFn prop1 prop2 = - prop1 = prop2 +let areEqualFn prop1 prop2 = prop1 = prop2 [] // or "areEqualFn" -let RenderTextWithEffect (fruits: string []) = - React.useEffect (fun () -> console.log("Rerender!") ) - Html.div [ - prop.text (fruits |> String.concat ", "); - prop.testId "memo-attribute" +let RenderTextWithEffect (fruits: string[]) = + React.useEffect (fun () -> console.log ("Rerender!")) + + Html.div [ + prop.text (fruits |> String.concat ", ") + prop.testId "memo-attribute" ] [] let Main () = - let isDark, setIsDark = React.useState(false) - let input, setInput = React.useState("") - // This will stay the same array if it does not change - let fruits, setFruits = React.useState([|"apple"; "orange"; "banana"|]) + let isDark, setIsDark = React.useState (false) + let input, setInput = React.useState ("") + // This will stay the same array if it does not change + let fruits, setFruits = React.useState ([| "apple"; "orange"; "banana" |]) // This creates a new array reference on every render, triggering a rerender of the child component, without custom equality check - let sortedFruits = - fruits - |> Array.sort - let isValidInput = System.String.IsNullOrEmpty input |> not && fruits |> Array.contains input |> not + let sortedFruits = fruits |> Array.sort + + let isValidInput = + System.String.IsNullOrEmpty input |> not + && fruits |> Array.contains input |> not + let fgColor = if isDark then color.white else color.black let bgColor = if isDark then color.black else color.white + Html.div [ - prop.style [style.border(1, borderStyle.solid, fgColor); style.padding 20; style.color fgColor; style.backgroundColor bgColor] + prop.style [ + style.border (1, borderStyle.solid, fgColor) + style.padding 20 + style.color fgColor + style.backgroundColor bgColor + ] prop.children [ Html.h3 "Check the output in the browser console" - Html.p "The child component below is memoized using the [] attribute. It only rerenders when the areEqual function returns false." + Html.p + "The child component below is memoized using the [] attribute. It only rerenders when the areEqual function returns false." Html.button [ prop.text "Toggle Dark Mode" - prop.onClick (fun _ -> setIsDark(not isDark)) - ] - Html.input [ - prop.value input - prop.onChange setInput + prop.onClick (fun _ -> setIsDark (not isDark)) ] + Html.input [ prop.value input; prop.onChange setInput ] Html.button [ prop.text "Change Fruits Array" prop.disabled (not isValidInput) prop.onClick (fun _ -> if isValidInput then - [|yield! fruits; input|] |> setFruits + [| yield! fruits; input |] |> setFruits setInput "" ) ] diff --git a/docs/docs/feliz-docs/Examples/React/MemoFunction.fs b/docs/docs/feliz-docs/Examples/React/MemoFunction.fs index 49a5aeb7..8f2ad16c 100644 --- a/docs/docs/feliz-docs/Examples/React/MemoFunction.fs +++ b/docs/docs/feliz-docs/Examples/React/MemoFunction.fs @@ -5,35 +5,33 @@ open Browser.Dom [] let RenderTextWithEffect (text: string) = - React.useEffect (fun () -> console.log("Rerender!", text) ) - Html.div [ - prop.text text; - prop.testId "memo-attribute" - ] + React.useEffect (fun () -> console.log ("Rerender!", text)) + Html.div [ prop.text text; prop.testId "memo-attribute" ] let MemoFunction = - React.memo<{|text: string|}> (fun props -> - RenderTextWithEffect(props.text) - ) + React.memo<{| text: string |}>(fun props -> RenderTextWithEffect(props.text)) [] let Main () = - let isDark, setIsDark = React.useState(false) - let text, setText = React.useState("Hello, world!") + let isDark, setIsDark = React.useState (false) + let text, setText = React.useState ("Hello, world!") let fgColor = if isDark then color.white else color.black let bgColor = if isDark then color.black else color.white + Html.div [ - prop.style [style.border(1, borderStyle.solid, fgColor); style.padding 20; style.color fgColor; style.backgroundColor bgColor] + prop.style [ + style.border (1, borderStyle.solid, fgColor) + style.padding 20 + style.color fgColor + style.backgroundColor bgColor + ] prop.children [ Html.h3 "Check the output in the browser console" Html.button [ prop.text "Toggle Dark Mode" - prop.onClick (fun _ -> setIsDark(not isDark)) - ] - Html.input [ - prop.value text - prop.onChange setText + prop.onClick (fun _ -> setIsDark (not isDark)) ] - React.memoRender(MemoFunction, {| text = text |}) + Html.input [ prop.value text; prop.onChange setText ] + React.memoRender (MemoFunction, {| text = text |}) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/MemoFunctionAreEqual.fs b/docs/docs/feliz-docs/Examples/React/MemoFunctionAreEqual.fs index 86fff520..3ab429b7 100644 --- a/docs/docs/feliz-docs/Examples/React/MemoFunctionAreEqual.fs +++ b/docs/docs/feliz-docs/Examples/React/MemoFunctionAreEqual.fs @@ -4,37 +4,43 @@ open Feliz open Browser.Dom [] -let RenderArrayWithEffect (fruitArray: string []) = - React.useEffect (fun () -> console.log("Rerender!", fruitArray) ) - Html.div [ - prop.text (String.concat ", " fruitArray); - prop.testId "memo-attribute" +let RenderArrayWithEffect (fruitArray: string[]) = + React.useEffect (fun () -> console.log ("Rerender!", fruitArray)) + + Html.div [ + prop.text (String.concat ", " fruitArray) + prop.testId "memo-attribute" ] let MemoFunction = - React.memo<{|fruitArray: string[]|}> ( - (fun props -> - RenderArrayWithEffect(props.fruitArray)), + React.memo<{| fruitArray: string[] |}>( + (fun props -> RenderArrayWithEffect(props.fruitArray)), (fun prevProps nextProps -> - prevProps.fruitArray.Length = nextProps.fruitArray.Length && - prevProps.fruitArray |> Array.forall2 (=) nextProps.fruitArray + prevProps.fruitArray.Length = nextProps.fruitArray.Length + && prevProps.fruitArray |> Array.forall2 (=) nextProps.fruitArray ) ) [] let Main () = - let isDark, setIsDark = React.useState(false) + let isDark, setIsDark = React.useState (false) let fruits = [| "Apple"; "Banana"; "Orange" |] let fgColor = if isDark then color.white else color.black let bgColor = if isDark then color.black else color.white + Html.div [ - prop.style [style.border(1, borderStyle.solid, fgColor); style.padding 20; style.color fgColor; style.backgroundColor bgColor] + prop.style [ + style.border (1, borderStyle.solid, fgColor) + style.padding 20 + style.color fgColor + style.backgroundColor bgColor + ] prop.children [ Html.h3 "Check the output in the browser console" Html.button [ prop.text "Toggle Dark Mode" - prop.onClick (fun _ -> setIsDark(not isDark)) + prop.onClick (fun _ -> setIsDark (not isDark)) ] - React.memoRender(MemoFunction, {| fruitArray = fruits |}) + React.memoRender (MemoFunction, {| fruitArray = fruits |}) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/MultipleStateVariables.fs b/docs/docs/feliz-docs/Examples/React/MultipleStateVariables.fs index a5a11270..6ce07831 100644 --- a/docs/docs/feliz-docs/Examples/React/MultipleStateVariables.fs +++ b/docs/docs/feliz-docs/Examples/React/MultipleStateVariables.fs @@ -3,28 +3,25 @@ module Example.MultipleStateVariables open Feliz [] -let MultipleVariables() = - let (count, setCount) = React.useState(0) - let (textColor, setTextColor) = React.useState(color.red) +let MultipleVariables () = + let (count, setCount) = React.useState (0) + let (textColor, setTextColor) = React.useState (color.red) Html.div [ - Html.h1 [ - prop.style [ style.color textColor ] - prop.text count - ] + Html.h1 [ prop.style [ style.color textColor ]; prop.text count ] Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] Html.button [ prop.text "Red" - prop.onClick (fun _ -> setTextColor(color.red)) + prop.onClick (fun _ -> setTextColor (color.red)) ] Html.button [ prop.text "Blue" - prop.onClick (fun _ -> setTextColor(color.blue)) + prop.onClick (fun _ -> setTextColor (color.blue)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/Portal.fs b/docs/docs/feliz-docs/Examples/React/Portal.fs index c3808a55..21396378 100644 --- a/docs/docs/feliz-docs/Examples/React/Portal.fs +++ b/docs/docs/feliz-docs/Examples/React/Portal.fs @@ -4,11 +4,11 @@ open Feliz open Browser.Dom [] -let Portal(content: ReactElement) = - ReactDOM.createPortal(content, document.body) +let Portal (content: ReactElement) = + ReactDOM.createPortal (content, document.body) [] -let PortalsPopup() = +let PortalsPopup () = Html.div [ prop.style [ style.position.fixedRelativeToWindow @@ -26,13 +26,11 @@ let PortalsPopup() = ] [] -let PortalsContainer() = - let showBanner, setShowBanner = React.useState(true) +let PortalsContainer () = + let showBanner, setShowBanner = React.useState (true) + Html.div [ - prop.style [ - style.padding 10 - style.overflow.hidden - ] + prop.style [ style.padding 10; style.overflow.hidden ] prop.children [ Html.button [ prop.text "Toggle Popup" diff --git a/docs/docs/feliz-docs/Examples/React/StrictMode.fs b/docs/docs/feliz-docs/Examples/React/StrictMode.fs index a2133653..c942ee66 100644 --- a/docs/docs/feliz-docs/Examples/React/StrictMode.fs +++ b/docs/docs/feliz-docs/Examples/React/StrictMode.fs @@ -3,8 +3,10 @@ module Example.StrictMode open Feliz [] -let StrictModeDemo() = +let StrictModeDemo () = React.StrictMode [ Html.h3 [ prop.text "This is rendered inside React.StrictMode" ] - Html.p [ prop.text "StrictMode helps highlight potential problems in your application during development." ] + Html.p [ + prop.text "StrictMode helps highlight potential problems in your application during development." + ] ] diff --git a/docs/docs/feliz-docs/Examples/React/Suspense.fs b/docs/docs/feliz-docs/Examples/React/Suspense.fs index 65652c99..cb13c010 100644 --- a/docs/docs/feliz-docs/Examples/React/Suspense.fs +++ b/docs/docs/feliz-docs/Examples/React/Suspense.fs @@ -4,31 +4,32 @@ open Feliz open Fable.Core /// Lazy load with delay to simulate large component -/// +/// /// Note: Prefer using `[]` instead of this approach! let LazyHello: LazyComponent = - React.lazy'(fun () -> - promise { - do! Promise.sleep 2000 - return! JsInterop.importDynamic "./Counter" - } - ) + React.lazy' (fun () -> promise { + do! Promise.sleep 2000 + return! JsInterop.importDynamic "./Counter" + }) [] -let SuspenseDemo() = - let load, setLoad = React.useState(false) +let SuspenseDemo () = + let load, setLoad = React.useState (false) + Html.div [ Html.h3 [ prop.text "Suspense Example" ] - Html.p "Loading the component will take 2 seconds. Then the component will be cached and future reruns will be instant." + Html.p + "Loading the component will take 2 seconds. Then the component will be cached and future reruns will be instant." if load then - React.Suspense([ - React.lazyRender(LazyHello, ()) - ], - Html.div [ prop.text "Loading..." ] - ) + React.Suspense([ React.lazyRender (LazyHello, ()) ], Html.div [ prop.text "Loading..." ]) else Html.button [ - prop.text (if load then "Hide Lazy Component" else "Load Lazy Component") - prop.onClick (fun _ -> setLoad(not load)) + prop.text ( + if load then + "Hide Lazy Component" + else + "Load Lazy Component" + ) + prop.onClick (fun _ -> setLoad (not load)) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseCallback.fs b/docs/docs/feliz-docs/Examples/React/UseCallback.fs index 6d007674..7ca872e0 100644 --- a/docs/docs/feliz-docs/Examples/React/UseCallback.fs +++ b/docs/docs/feliz-docs/Examples/React/UseCallback.fs @@ -4,40 +4,45 @@ open Feliz [] // memoizes component to prevent rerender whenever parent rerenders -let ChildComponent(onClick: unit -> unit) = - let renderCount = React.useRef(0) - React.useEffect(fun () -> - renderCount.current <- renderCount.current + 1 - ) +let ChildComponent (onClick: unit -> unit) = + let renderCount = React.useRef (0) + React.useEffect (fun () -> renderCount.current <- renderCount.current + 1) + Html.div [ Html.button [ prop.text "Child Button" - prop.onClick (fun _ -> onClick()) + prop.onClick (fun _ -> onClick ()) ] Html.p [ prop.text $"Child rendered {renderCount.current} times" ] ] [] -let UseCallback() = - let count, setCount = React.useState(0) - let theme, setTheme = React.useState("light") +let UseCallback () = + let count, setCount = React.useState (0) + let theme, setTheme = React.useState ("light") // Memoize the callback so ChildComponent only rerenders when count changes - let increment = React.useCallback((fun () -> setCount(count + 1)), [| box count |]) + let increment = + React.useCallback ((fun () -> setCount (count + 1)), [| box count |]) Html.div [ Html.button [ prop.text "Toggle Theme" - prop.onClick (fun _ -> - if theme = "light" then setTheme("dark") - else setTheme("light")) + prop.onClick (fun _ -> + if theme = "light" then + setTheme ("dark") + else + setTheme ("light") + ) ] Html.div theme Html.button [ prop.text $"Increment" - prop.onClick (fun _ -> increment()) + prop.onClick (fun _ -> increment ()) ] Html.div count - Html.p [ prop.text "The increment function is memoized using useCallback and passed to the child." ] + Html.p [ + prop.text "The increment function is memoized using useCallback and passed to the child." + ] ChildComponent increment ] diff --git a/docs/docs/feliz-docs/Examples/React/UseCancellationTokenHook.fs b/docs/docs/feliz-docs/Examples/React/UseCancellationTokenHook.fs index 496bbe18..8f151444 100644 --- a/docs/docs/feliz-docs/Examples/React/UseCancellationTokenHook.fs +++ b/docs/docs/feliz-docs/Examples/React/UseCancellationTokenHook.fs @@ -7,7 +7,7 @@ open Fable.Core type Main = [] - static member private UseToken (failedCallback: unit -> unit) = + static member private UseToken(failedCallback: unit -> unit) = let token = FsReact.useCancellationToken () React.useEffect (fun () -> @@ -15,12 +15,13 @@ type Main = do! Async.Sleep 4000 failedCallback () } - |> fun a -> Async.StartImmediate(a, token.current)) + |> fun a -> Async.StartImmediate(a, token.current) + ) Html.none [] - static member Main () = + static member Main() = let renderChild, setRenderChild = React.useState true let resultText, setResultText = React.useState "Pending..." @@ -41,7 +42,8 @@ type Main = setResultText "Disposed" setRenderChild false } - |> Async.StartImmediate) + |> Async.StartImmediate + ) ] Html.button [ @@ -52,6 +54,7 @@ type Main = setResultText "Pending..." setRenderChild true } - |> Async.StartImmediate) + |> Async.StartImmediate + ) ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseContext.fs b/docs/docs/feliz-docs/Examples/React/UseContext.fs index 10f2b581..a2580570 100644 --- a/docs/docs/feliz-docs/Examples/React/UseContext.fs +++ b/docs/docs/feliz-docs/Examples/React/UseContext.fs @@ -4,39 +4,41 @@ open Feliz // Define a context for shared state // This can should be placed in a separate file for reuse -let CounterContext = React.createContext(None: (int * (int -> unit)) option) +let CounterContext = React.createContext (None: (int * (int -> unit)) option) [] -let CounterProvider(children: ReactElement list) = - let count, setCount = React.useState(0) +let CounterProvider (children: ReactElement list) = + let count, setCount = React.useState (0) CounterContext.Provider(Some(count, setCount), children) [] -let CounterDisplay() = - let ctx = React.useContext(CounterContext) +let CounterDisplay () = + let ctx = React.useContext (CounterContext) + match ctx with | Some(count, _) -> Html.p [ prop.text $"Current count: {count}" ] | None -> Html.p [ prop.text "No context available" ] [] -let CounterControls() = - let ctx = React.useContext(CounterContext) +let CounterControls () = + let ctx = React.useContext (CounterContext) + match ctx with | Some(count, setCount) -> Html.div [ Html.button [ prop.text "+" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] Html.button [ prop.text "-" - prop.onClick (fun _ -> setCount(count - 1)) + prop.onClick (fun _ -> setCount (count - 1)) ] ] | None -> Html.p [ prop.text "No context available" ] [] -let UseContext() = +let UseContext () = CounterProvider [ Html.h3 [ prop.text "Shared Counter" ] CounterDisplay() diff --git a/docs/docs/feliz-docs/Examples/React/UseDebugValue.fs b/docs/docs/feliz-docs/Examples/React/UseDebugValue.fs index 6b1af482..f5dc188c 100644 --- a/docs/docs/feliz-docs/Examples/React/UseDebugValue.fs +++ b/docs/docs/feliz-docs/Examples/React/UseDebugValue.fs @@ -4,20 +4,29 @@ open Feliz // Custom hook that uses useDebugValue [] -let useOnlineStatus() = - let isOnline, setIsOnline = React.useState(true) - React.useDebugValue(if isOnline then "Online" else "Offline") +let useOnlineStatus () = + let isOnline, setIsOnline = React.useState (true) + React.useDebugValue (if isOnline then "Online" else "Offline") // Simulate status change for demo - React.useEffect((fun () -> - let timer = Fable.Core.JS.setTimeout (fun _ -> setIsOnline(not isOnline)) 2000 - fun () -> Fable.Core.JS.clearTimeout timer - ), [| box isOnline |]) + React.useEffect ( + (fun () -> + let timer = Fable.Core.JS.setTimeout (fun _ -> setIsOnline (not isOnline)) 2000 + fun () -> Fable.Core.JS.clearTimeout timer + ), + [| box isOnline |] + ) + isOnline [] -let UseDebugValue() = - let isOnline = useOnlineStatus() +let UseDebugValue () = + let isOnline = useOnlineStatus () + Html.div [ - Html.p [ prop.text $"""Status: {(if isOnline then "Online" else "Offline")}""" ] - Html.p [ prop.text "Open React DevTools to see the debug value for this hook." ] + Html.p [ + prop.text $"""Status: {(if isOnline then "Online" else "Offline")}""" + ] + Html.p [ + prop.text "Open React DevTools to see the debug value for this hook." + ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseEffect.fs b/docs/docs/feliz-docs/Examples/React/UseEffect.fs index 7b32c69f..368ac853 100644 --- a/docs/docs/feliz-docs/Examples/React/UseEffect.fs +++ b/docs/docs/feliz-docs/Examples/React/UseEffect.fs @@ -3,18 +3,24 @@ module Example.UseEffect open Feliz [] -let UseEffect() = - let count, setCount = React.useState(0) +let UseEffect () = + let count, setCount = React.useState (0) // useEffect: run side effect when count changes - React.useEffect((fun () -> - Fable.Core.JS.console.log($"Count changed to {count}") - // Optional cleanup function - fun () -> Fable.Core.JS.console.log("Cleanup effect") - ), [| box count |]) + React.useEffect ( + (fun () -> + Fable.Core.JS.console.log ($"Count changed to {count}") + // Optional cleanup function + fun () -> Fable.Core.JS.console.log ("Cleanup effect") + ), + [| box count |] + ) + Html.div [ Html.button [ prop.text $"Clicked {count} times" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) + ] + Html.p [ + prop.text "Open the browser console to see useEffect logs when count changes." ] - Html.p [ prop.text "Open the browser console to see useEffect logs when count changes." ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseEffectDisposable.fs b/docs/docs/feliz-docs/Examples/React/UseEffectDisposable.fs index 59618a2a..03c99309 100644 --- a/docs/docs/feliz-docs/Examples/React/UseEffectDisposable.fs +++ b/docs/docs/feliz-docs/Examples/React/UseEffectDisposable.fs @@ -3,20 +3,26 @@ module Example.UseEffectDisposable open Feliz [] -let UseEffect() = - let count, setCount = React.useState(0) +let UseEffect () = + let count, setCount = React.useState (0) // useEffect: run side effect when count changes - React.useEffect((fun () -> - Fable.Core.JS.console.log($"Count changed to {count}") - // Optional cleanup function - FsReact.createDisposable(fun () -> Fable.Core.JS.console.log("Cleanup effect")) + React.useEffect ( + (fun () -> + Fable.Core.JS.console.log ($"Count changed to {count}") + // Optional cleanup function + FsReact.createDisposable (fun () -> Fable.Core.JS.console.log ("Cleanup effect")) // same as: // { new System.IDisposable with member this.Dispose() = Fable.Core.JS.console.log("Cleanup effect") } - ), [| box count |]) + ), + [| box count |] + ) + Html.div [ Html.button [ prop.text $"Clicked {count} times" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) + ] + Html.p [ + prop.text "Open the browser console to see useEffect logs when count changes." ] - Html.p [ prop.text "Open the browser console to see useEffect logs when count changes." ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseEffectOnce.fs b/docs/docs/feliz-docs/Examples/React/UseEffectOnce.fs index 20d220b5..c032d235 100644 --- a/docs/docs/feliz-docs/Examples/React/UseEffectOnce.fs +++ b/docs/docs/feliz-docs/Examples/React/UseEffectOnce.fs @@ -3,23 +3,21 @@ module Example.UseEffectOnce open Feliz [] -let EffectWithAsyncOnce() = - let (isLoading, setLoading) = React.useState(false) - let (content, setContent) = React.useState("") +let EffectWithAsyncOnce () = + let (isLoading, setLoading) = React.useState (false) + let (content, setContent) = React.useState ("") - let loadData() = async { + let loadData () = async { setLoading true do! Async.Sleep 1500 setLoading false setContent "Lorem ipsum dolor sit amet, consectetur adipiscing elit." } - React.useEffectOnce(loadData >> Async.StartImmediate) + React.useEffectOnce (loadData >> Async.StartImmediate) Html.div [ Html.p "Refresh this component to see the load effect run once" Html.p "This simulates loading data on mount" - if isLoading - then Html.h1 "Loading..." - else Html.h1 content + if isLoading then Html.h1 "Loading..." else Html.h1 content ] diff --git a/docs/docs/feliz-docs/Examples/React/UseId.fs b/docs/docs/feliz-docs/Examples/React/UseId.fs index 72020765..17d601a5 100644 --- a/docs/docs/feliz-docs/Examples/React/UseId.fs +++ b/docs/docs/feliz-docs/Examples/React/UseId.fs @@ -3,16 +3,11 @@ module Example.UseId open Feliz [] -let UseId() = - let id: string = React.useId() +let UseId () = + let id: string = React.useId () + Html.div [ - Html.label [ - prop.htmlFor id - prop.text "Enter your name:" - ] - Html.input [ - prop.id id - prop.type'.text - ] + Html.label [ prop.htmlFor id; prop.text "Enter your name:" ] + Html.input [ prop.id id; prop.type'.text ] Html.p [ prop.text $"Generated id: {id}" ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseImperativeHandle.fs b/docs/docs/feliz-docs/Examples/React/UseImperativeHandle.fs index 71bbb5b4..a61335ca 100644 --- a/docs/docs/feliz-docs/Examples/React/UseImperativeHandle.fs +++ b/docs/docs/feliz-docs/Examples/React/UseImperativeHandle.fs @@ -4,20 +4,27 @@ open Feliz open Fable.Core.JsInterop -type FancyInputController = {| - focus: unit -> unit -|} +type FancyInputController = {| focus: unit -> unit |} [] -let FancyInput(inputRef: IRefValue) = - let localRef = React.useInputRef() - React.useImperativeHandle(inputRef, (fun () -> - {| focus = fun () -> - match localRef.current with - | Some el -> el?focus() - | None -> () - |} |> Some - ), [||]) +let FancyInput (inputRef: IRefValue) = + let localRef = React.useInputRef () + + React.useImperativeHandle ( + inputRef, + (fun () -> + {| + focus = + fun () -> + match localRef.current with + | Some el -> el?focus () + | None -> () + |} + |> Some + ), + [||] + ) + Html.input [ prop.ref localRef prop.type'.text @@ -25,15 +32,16 @@ let FancyInput(inputRef: IRefValue) = ] [] -let UseImperativeHandle() = - let fancyInputRef = React.useRef(None) +let UseImperativeHandle () = + let fancyInputRef = React.useRef (None) + Html.div [ FancyInput fancyInputRef Html.button [ prop.text "Focus the input" prop.onClick (fun _ -> match fancyInputRef.current with - | Some api -> api.focus() + | Some api -> api.focus () | None -> () ) ] diff --git a/docs/docs/feliz-docs/Examples/React/UseInputRef.fs b/docs/docs/feliz-docs/Examples/React/UseInputRef.fs index b83bf69b..932392c2 100644 --- a/docs/docs/feliz-docs/Examples/React/UseInputRef.fs +++ b/docs/docs/feliz-docs/Examples/React/UseInputRef.fs @@ -3,9 +3,10 @@ module Example.UseInputRef open Feliz [] -let UseRef() = - let inputRef = React.useInputRef() - let value, setValue = React.useState("") +let UseRef () = + let inputRef = React.useInputRef () + let value, setValue = React.useState ("") + Html.div [ Html.input [ prop.ref inputRef @@ -18,7 +19,7 @@ let UseRef() = prop.text "Focus input" prop.onClick (fun _ -> match inputRef.current with - | Some el -> el.focus() + | Some el -> el.focus () | None -> () ) ] diff --git a/docs/docs/feliz-docs/Examples/React/UseLayoutEffect.fs b/docs/docs/feliz-docs/Examples/React/UseLayoutEffect.fs index d8d2cb2f..188ffdc3 100644 --- a/docs/docs/feliz-docs/Examples/React/UseLayoutEffect.fs +++ b/docs/docs/feliz-docs/Examples/React/UseLayoutEffect.fs @@ -4,23 +4,30 @@ open Feliz [] -let Tooltip() = - let tooltipRef = React.useElementRef() - let tooltipHeight, setTooltipHeight = React.useState(0) - let padding, setPadding = React.useState(10) +let Tooltip () = + let tooltipRef = React.useElementRef () + let tooltipHeight, setTooltipHeight = React.useState (0) + let padding, setPadding = React.useState (10) - React.useLayoutEffect((fun () -> - match tooltipRef.current with - | Some el -> - let rect = el.getBoundingClientRect() - setTooltipHeight(int rect.height) - | None -> () - ), [| box padding |]) + React.useLayoutEffect ( + (fun () -> + match tooltipRef.current with + | Some el -> + let rect = el.getBoundingClientRect () + setTooltipHeight (int rect.height) + | None -> () + ), + [| box padding |] + ) Html.div [ Html.div [ prop.ref tooltipRef - prop.style [ style.backgroundColor.lightYellow; style.color.black; style.padding padding ] + prop.style [ + style.backgroundColor.lightYellow + style.color.black + style.padding padding + ] prop.text "This is a tooltip." ] Html.p [ prop.text $"Measured tooltip height: {tooltipHeight}px" ] diff --git a/docs/docs/feliz-docs/Examples/React/UseMemo.fs b/docs/docs/feliz-docs/Examples/React/UseMemo.fs index c6d984a8..82fba4f2 100644 --- a/docs/docs/feliz-docs/Examples/React/UseMemo.fs +++ b/docs/docs/feliz-docs/Examples/React/UseMemo.fs @@ -5,46 +5,57 @@ open Fable.Core open Fable.Core.JS [] -type Theme = Light | Dark +type Theme = + | Light + | Dark type IPerformance = abstract now: unit -> int [] -let performance : IPerformance = jsNative +let performance: IPerformance = jsNative let artificiallySlowMultiply (numbers: int list) (factor: int) = - let startTime = performance.now() - while performance.now() - startTime < 500 do + let startTime = performance.now () + + while performance.now () - startTime < 500 do () // Busy wait for 500ms to simulate a heavy computation numbers |> List.map (fun n -> n * factor) - + [] -let UseMemo() = - let theme, setTheme = React.useState(Theme.Light) - let numbers, setNumbers = React.useState([1 .. 10]) - let factor, setFactor = React.useState(2) +let UseMemo () = + let theme, setTheme = React.useState (Theme.Light) + let numbers, setNumbers = React.useState ([ 1..10 ]) + let factor, setFactor = React.useState (2) // useMemo: memoize expensive calculation - let multiplied = React.useMemo((fun () -> artificiallySlowMultiply numbers factor), [| box numbers; box factor |]) + let multiplied = + React.useMemo ((fun () -> artificiallySlowMultiply numbers factor), [| box numbers; box factor |]) Html.div [ prop.style [ match theme with - | Theme.Light -> style.backgroundColor.white; style.color.black - | Theme.Dark -> style.backgroundColor.black; style.color.white + | Theme.Light -> + style.backgroundColor.white + style.color.black + | Theme.Dark -> + style.backgroundColor.black + style.color.white ] prop.children [ Html.button [ prop.text "Switch theme" - prop.onClick (fun _ -> setTheme(if theme = Theme.Light then Theme.Dark else Theme.Light)) + prop.onClick (fun _ -> setTheme (if theme = Theme.Light then Theme.Dark else Theme.Light)) ] Html.button [ prop.textf "Increment factor: %d" factor - prop.onClick (fun _ -> setFactor(factor + 1)) + prop.onClick (fun _ -> setFactor (factor + 1)) + ] + Html.p [ + prop.text + "The multiplied list is memoized and only recalculated when numbers or factor change. You can change theme without retriggering calculation" ] - Html.p [ prop.text "The multiplied list is memoized and only recalculated when numbers or factor change. You can change theme without retriggering calculation" ] Html.p [ prop.textf "Multiplied: %A" multiplied ] ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseReducer.fs b/docs/docs/feliz-docs/Examples/React/UseReducer.fs index 8b0a4ad8..ade3f88a 100644 --- a/docs/docs/feliz-docs/Examples/React/UseReducer.fs +++ b/docs/docs/feliz-docs/Examples/React/UseReducer.fs @@ -2,9 +2,11 @@ module Example.UseReducer open Feliz -type State = { Count : int } +type State = { Count: int } -type Msg = Increment | Decrement +type Msg = + | Increment + | Decrement let initialState = { Count = 0 } @@ -15,8 +17,9 @@ let update (state: State) (msg: Msg) = [] -let UseReducer() = - let (state, dispatch) = React.useReducer(update, initialState) +let UseReducer () = + let (state, dispatch) = React.useReducer (update, initialState) + Html.div [ Html.p [ prop.text $"Count: {state.Count}" ] Html.button [ @@ -27,5 +30,7 @@ let UseReducer() = prop.text "-" prop.onClick (fun _ -> dispatch Decrement) ] - Html.p [ prop.text "useReducer is useful for complex state logic." ] + Html.p [ + prop.text "useReducer is useful for complex state logic." + ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseRef.fs b/docs/docs/feliz-docs/Examples/React/UseRef.fs index e111b286..61f349c8 100644 --- a/docs/docs/feliz-docs/Examples/React/UseRef.fs +++ b/docs/docs/feliz-docs/Examples/React/UseRef.fs @@ -4,9 +4,10 @@ open Feliz open Fable.Core [] -let UseRef() = - let timeoutRef = React.useRef(None) - let message, setMessage = React.useState("No timeout started.") +let UseRef () = + let timeoutRef = React.useRef (None) + let message, setMessage = React.useState ("No timeout started.") + Html.div [ Html.button [ prop.text "Start Timeout" @@ -16,15 +17,16 @@ let UseRef() = | Some id -> JS.clearTimeout id | None -> () // Start a new timeout - let id = - JS.setTimeout - (fun _ -> + let id = + JS.setTimeout + (fun _ -> timeoutRef.current <- None - setMessage("Timeout finished!") - ) + setMessage ("Timeout finished!") + ) 3000 + timeoutRef.current <- Some id - setMessage("Timeout started. Will finish in 3 seconds.") + setMessage ("Timeout started. Will finish in 3 seconds.") ) ] Html.button [ @@ -34,8 +36,8 @@ let UseRef() = | Some id -> JS.clearTimeout id timeoutRef.current <- None - setMessage("Timeout cancelled.") - | None -> setMessage("No timeout to cancel.") + setMessage ("Timeout cancelled.") + | None -> setMessage ("No timeout to cancel.") ) ] Html.p [ prop.text message ] diff --git a/docs/docs/feliz-docs/Examples/React/UseStateWithUpdater.fs b/docs/docs/feliz-docs/Examples/React/UseStateWithUpdater.fs index 428e01f2..fc7771eb 100644 --- a/docs/docs/feliz-docs/Examples/React/UseStateWithUpdater.fs +++ b/docs/docs/feliz-docs/Examples/React/UseStateWithUpdater.fs @@ -3,15 +3,16 @@ module Example.UseStateWithUpdater open Feliz [] -let UseStateWithUpdater() = - let results, setResults = React.useStateWithUpdater([]: string list) +let UseStateWithUpdater () = + let results, setResults = React.useStateWithUpdater ([]: string list) let asyncAddResult (text: string) (sleep: int) = async { do! Async.Sleep sleep // Use the updater function to append to the list setResults (fun current -> current @ [ text ]) - } |> Async.StartImmediate + } + |> Async.StartImmediate Html.div [ if results.IsEmpty then @@ -27,8 +28,5 @@ let UseStateWithUpdater() = ] else for i in 0 .. results.Length - 1 do - Html.div [ - prop.key i - prop.text results.[i] - ] + Html.div [ prop.key i; prop.text results.[i] ] ] diff --git a/docs/docs/feliz-docs/Examples/React/UseSyncExternalStore.fs b/docs/docs/feliz-docs/Examples/React/UseSyncExternalStore.fs index 5f6013ba..6e528d03 100644 --- a/docs/docs/feliz-docs/Examples/React/UseSyncExternalStore.fs +++ b/docs/docs/feliz-docs/Examples/React/UseSyncExternalStore.fs @@ -3,20 +3,18 @@ module Example.UseSyncExternalStore open Feliz open Browser -let getSnapshot() = - window.innerWidth +let getSnapshot () = window.innerWidth -let getServerSnapshot() = - 1024.0 // Default server width +let getServerSnapshot () = 1024.0 // Default server width let subscribe callback = - let handler = fun (_: Browser.Types.Event) -> callback() - window.addEventListener("resize", handler) - fun () -> window.removeEventListener("resize", handler) + let handler = fun (_: Browser.Types.Event) -> callback () + window.addEventListener ("resize", handler) + fun () -> window.removeEventListener ("resize", handler) [] -let UseSyncExternalStoreDisposable() = - let currentWidth = React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) +let UseSyncExternalStoreDisposable () = + let currentWidth = + React.useSyncExternalStore (subscribe, getSnapshot, getServerSnapshot) Html.h3 $"Window width: {currentWidth}px" - \ No newline at end of file diff --git a/docs/docs/feliz-docs/Examples/React/UseSyncExternalStoreDisposable.fs b/docs/docs/feliz-docs/Examples/React/UseSyncExternalStoreDisposable.fs index 8b770f5b..fc2ee4cc 100644 --- a/docs/docs/feliz-docs/Examples/React/UseSyncExternalStoreDisposable.fs +++ b/docs/docs/feliz-docs/Examples/React/UseSyncExternalStoreDisposable.fs @@ -3,23 +3,21 @@ module Example.UseSyncExternalStoreDisposable open Feliz open Browser -let getSnapshot() = - window.innerWidth +let getSnapshot () = window.innerWidth -let getServerSnapshot() = - 1024.0 // Default server width +let getServerSnapshot () = 1024.0 // Default server width let subscribe callback = - let handler = fun (_: Browser.Types.Event) -> callback() - window.addEventListener("resize", handler) + let handler = fun (_: Browser.Types.Event) -> callback () + window.addEventListener ("resize", handler) // Feliz helper to create IDisposable - FsReact.createDisposable(fun () -> window.removeEventListener("resize", handler)) - // same as: - // { new IDisposable with member _.Dispose() = window.removeEventListener("resize", handler)} + FsReact.createDisposable (fun () -> window.removeEventListener ("resize", handler)) +// same as: +// { new IDisposable with member _.Dispose() = window.removeEventListener("resize", handler)} [] -let UseSyncExternalStoreDisposable() = - let currentWidth = React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) +let UseSyncExternalStoreDisposable () = + let currentWidth = + React.useSyncExternalStore (subscribe, getSnapshot, getServerSnapshot) Html.h3 $"Window width: {currentWidth}px" - \ No newline at end of file diff --git a/docs/docs/feliz-docs/Examples/ReactDOM/CreatePortal.fs b/docs/docs/feliz-docs/Examples/ReactDOM/CreatePortal.fs index ac7813cb..c64d4f5b 100644 --- a/docs/docs/feliz-docs/Examples/ReactDOM/CreatePortal.fs +++ b/docs/docs/feliz-docs/Examples/ReactDOM/CreatePortal.fs @@ -4,7 +4,7 @@ open Feliz open Fable.Core.JsInterop [] -let Modal(close: _ -> unit) = +let Modal (close: _ -> unit) = Html.div [ prop.style [ style.position.fixedRelativeToWindow @@ -27,7 +27,7 @@ let Modal(close: _ -> unit) = style.padding 20 style.borderRadius 8 ] - prop.onClick (fun e -> e.stopPropagation()) // Prevent closing when clicking inside the modal + prop.onClick (fun e -> e.stopPropagation ()) // Prevent closing when clicking inside the modal prop.children [ Html.div "This is a modal rendered using a portal!" Html.div [ @@ -35,10 +35,7 @@ let Modal(close: _ -> unit) = Html.code "document.body" Html.text "." ] - Html.button [ - prop.text "Close" - prop.onClick close - ] + Html.button [ prop.text "Close"; prop.onClick close ] ] ] ] @@ -46,17 +43,16 @@ let Modal(close: _ -> unit) = [] -let PortalDemo() = - let show, setShow = React.useState(false) +let PortalDemo () = + let show, setShow = React.useState (false) + Html.div [ - Html.p "This example demonstrates React portals. Click the button to open a modal rendered outside this components DOM hierarchy." + Html.p + "This example demonstrates React portals. Click the button to open a modal rendered outside this components DOM hierarchy." Html.button [ prop.text (if show then "Hide Portal" else "Show Portal") - prop.onClick (fun _ -> setShow(not show)) + prop.onClick (fun _ -> setShow (not show)) ] if show then - ReactDOM.createPortal( - Modal(fun _ -> setShow(false)), - Browser.Dom.document.body - ) + ReactDOM.createPortal (Modal(fun _ -> setShow (false)), Browser.Dom.document.body) ] diff --git a/docs/docs/feliz-docs/Examples/ReactDOM/CreateRoot.fs b/docs/docs/feliz-docs/Examples/ReactDOM/CreateRoot.fs index a6a01538..5edf08b4 100644 --- a/docs/docs/feliz-docs/Examples/ReactDOM/CreateRoot.fs +++ b/docs/docs/feliz-docs/Examples/ReactDOM/CreateRoot.fs @@ -5,8 +5,7 @@ open Fable.Core.JsInterop [] -let private App () = - Html.h1 "Hello, Feliz!" +let private App () = Html.h1 "Hello, Feliz!" let private root = ReactDOM.createRoot (Browser.Dom.document.getElementById "root") root.render (App()) diff --git a/docs/docs/feliz-docs/Examples/ReactDOM/HydrateRoot.fs b/docs/docs/feliz-docs/Examples/ReactDOM/HydrateRoot.fs index 385dcf0a..e1237944 100644 --- a/docs/docs/feliz-docs/Examples/ReactDOM/HydrateRoot.fs +++ b/docs/docs/feliz-docs/Examples/ReactDOM/HydrateRoot.fs @@ -4,7 +4,4 @@ open Feliz open Fable.Core.JsInterop // This example assumes you have server-rendered HTML with id "root" in your HTML -ReactDOM.hydrateRoot( - Browser.Dom.document.getElementById("root"), - Example.UseId.UseId() -) +ReactDOM.hydrateRoot (Browser.Dom.document.getElementById ("root"), Example.UseId.UseId()) diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/CodeSplitting.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/CodeSplitting.fs index c57f6e97..057588d6 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/CodeSplitting.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/CodeSplitting.fs @@ -3,15 +3,14 @@ module Example.CodeSplitting open Fable.Core open Feliz -let MyNonCodeSplitComponent() = - Html.div [ - prop.text "I was loaded synchronously!" - ] +let MyNonCodeSplitComponent () = + Html.div [ prop.text "I was loaded synchronously!" ] -let asyncComponent : JS.Promise ReactElement> = JsInterop.importDynamic "./Counter.fs" +let asyncComponent: JS.Promise ReactElement> = + JsInterop.importDynamic "./Counter.fs" [] -let CodeSplitting(delay: int option) = +let CodeSplitting (delay: int option) = Html.div [ prop.children [ @@ -20,21 +19,21 @@ let CodeSplitting(delay: int option) = Html.div [ prop.text $"I will be loaded after {delay.Value} milliseconds!" ] - React.suspense( + React.suspense ( [ Html.div [ - React.lazy'((fun () -> - promise { + React.lazy' ( + (fun () -> promise { if delay.IsSome then do! Promise.sleep (delay.Value) + return! asyncComponent - } - ),()) + }), + () + ) ] - ], - Html.div [ - prop.text "Loading..." - ] + ], + Html.div [ prop.text "Loading..." ] ) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Counter.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Counter.fs index c3040d96..56250688 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Counter.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Counter.fs @@ -8,13 +8,13 @@ type Counter = [] static member Counter() = - + let (count, setCount) = React.useState 0 Html.div [ Html.h1 count Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/DateTime.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/DateTime.fs index 28f331df..4641136f 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/DateTime.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/DateTime.fs @@ -10,7 +10,7 @@ type Main = [] static member SwitchingBetweenDateAndDateTime() = let (date, setDate) = React.useState(None) - let (dateAndTime, toggleDateAndTime) = React.useState(false) + let (dateAndTime, toggleDateAndTime) = React.useState (false) let formattedDate = match date with @@ -22,26 +22,26 @@ type Main = if dateAndTime then Html.input [ - prop.value(date, includeTime=dateAndTime) + prop.value (date, includeTime = dateAndTime) prop.type'.dateTimeLocal - prop.onChange (fun newValue -> setDate(Some newValue)) + prop.onChange (fun newValue -> setDate (Some newValue)) ] else Html.input [ - prop.value(date, includeTime=dateAndTime) + prop.value (date, includeTime = dateAndTime) prop.type'.date - prop.onChange (fun newValue -> setDate(Some newValue)) + prop.onChange (fun newValue -> setDate (Some newValue)) ] Html.button [ prop.text "Reset selected date" prop.disabled date.IsNone - prop.onClick (fun _ -> setDate(None)) + prop.onClick (fun _ -> setDate (None)) ] Html.button [ prop.text "Toggle date and time" prop.disabled date.IsNone - prop.onClick (fun _ -> toggleDateAndTime(not dateAndTime)) + prop.onClick (fun _ -> toggleDateAndTime (not dateAndTime)) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulCounter.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulCounter.fs index a662a730..998545ca 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulCounter.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulCounter.fs @@ -3,15 +3,15 @@ module Example.EffectfulCounter open Feliz [] -let TabCounter() = - let (count, setCount) = React.useState(0) +let TabCounter () = + let (count, setCount) = React.useState (0) // execute this effect on every render cycle - React.useEffect(fun () -> Browser.Dom.document.title <- sprintf "Count = %d" count) + React.useEffect (fun () -> Browser.Dom.document.title <- sprintf "Count = %d" count) Html.div [ Html.h1 count Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulOnce.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulOnce.fs index d9f2e20b..3543cb13 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulOnce.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulOnce.fs @@ -3,21 +3,19 @@ module Example.EffectfulOnce open Feliz [] -let EffectWithAsyncOnce() = - let (isLoading, setLoading) = React.useState(false) - let (content, setContent) = React.useState("") +let EffectWithAsyncOnce () = + let (isLoading, setLoading) = React.useState (false) + let (content, setContent) = React.useState ("") - let loadData() = async { + let loadData () = async { setLoading true do! Async.Sleep 1500 setLoading false setContent "Content" } - React.useEffect(loadData >> Async.StartImmediate, [| |]) + React.useEffect (loadData >> Async.StartImmediate, [||]) Html.div [ - if isLoading - then Html.h1 "Loading..." - else Html.h1 content + if isLoading then Html.h1 "Loading..." else Html.h1 content ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulTimer.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulTimer.fs index e62a499c..173b3c1a 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulTimer.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulTimer.fs @@ -5,19 +5,28 @@ open Feliz open Fable.Core.JS [] -let EffectfulTimer() = - let (paused, setPaused) = React.useState(false) +let EffectfulTimer () = + let (paused, setPaused) = React.useState (false) // using useStateWithUpdater instead of useState // to avoid stale closures in React.useEffect - let (value, setValue) = React.useStateWithUpdater(0) + let (value, setValue) = React.useStateWithUpdater (0) - let subscribeToTimer() = + let subscribeToTimer () = // start the timer - let subscriptionId = setInterval (fun _ -> if not paused then setValue (fun prev -> prev + 1)) 1000 + let subscriptionId = + setInterval + (fun _ -> + if not paused then + setValue (fun prev -> prev + 1) + ) + 1000 // return IDisposable with cleanup code that stops the timer - { new IDisposable with member this.Dispose() = clearInterval(subscriptionId) } + { + new IDisposable with + member this.Dispose() = clearInterval (subscriptionId) + } - React.useEffect(subscribeToTimer, [| box paused |]) + React.useEffect (subscribeToTimer, [| box paused |]) Html.div [ Html.h1 value @@ -30,7 +39,7 @@ let EffectfulTimer() = style.backgroundColor "green" ] - prop.onClick (fun _ -> setPaused(not paused)) + prop.onClick (fun _ -> setPaused (not paused)) prop.text (if paused then "Resume" else "Pause") ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulWithDependency.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulWithDependency.fs index f271ce0e..886e7778 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulWithDependency.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/EffectfulWithDependency.fs @@ -5,20 +5,20 @@ open Feliz let rnd = System.Random() [] -let EffectsUsingDependencies() = - let (isLoading, setLoading) = React.useState(false) - let (content, setContent) = React.useState("") - let (userId, setUserId) = React.useState(0) - let (textColor, setTextColor) = React.useState(color.red) +let EffectsUsingDependencies () = + let (isLoading, setLoading) = React.useState (false) + let (content, setContent) = React.useState ("") + let (userId, setUserId) = React.useState (0) + let (textColor, setTextColor) = React.useState (color.red) - let loadData() = async { + let loadData () = async { setLoading true do! Async.Sleep 1500 setLoading false setContent (sprintf "User %d" userId) } - React.useEffect(loadData >> Async.StartImmediate, [| box userId |]) + React.useEffect (loadData >> Async.StartImmediate, [| box userId |]) Html.div [ Html.h1 [ @@ -28,16 +28,16 @@ let EffectsUsingDependencies() = Html.button [ prop.text "Red" - prop.onClick (fun _ -> setTextColor(color.red)) + prop.onClick (fun _ -> setTextColor (color.red)) ] Html.button [ prop.text "Blue" - prop.onClick (fun _ -> setTextColor(color.blue)) + prop.onClick (fun _ -> setTextColor (color.blue)) ] Html.button [ prop.text "Update User ID" - prop.onClick (fun _ -> setUserId(rnd.Next(1, 100))) + prop.onClick (fun _ -> setUserId (rnd.Next(1, 100))) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounter.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounter.fs index dcaa74b1..bb20d2a1 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounter.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounter.fs @@ -9,9 +9,9 @@ type Msg = | Increment | Decrement -type State = { Count : int } +type State = { Count: int } -let init() = { Count = 0 }, Cmd.none +let init () = { Count = 0 }, Cmd.none let update msg state = match msg with @@ -23,8 +23,9 @@ type Main = [] static member Main() = - - let state, dispatch = React.useElmish(init, update, [| |]) + + let state, dispatch = React.useElmish (init, update, [||]) + Html.div [ Html.h1 state.Count Html.button [ diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounterSubscription.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounterSubscription.fs index f61286a7..86239127 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounterSubscription.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ElmishCounterSubscription.fs @@ -11,9 +11,9 @@ type Msg = | Increment | Decrement -type State = { Count : int } +type State = { Count: int } -let init() = { Count = 0 }, Cmd.none +let init () = { Count = 0 }, Cmd.none let update msg state = match msg with @@ -25,26 +25,30 @@ type Main = [] static member Main() = - - let localCount, setLocalCount = React.useState(0) - let state, dispatch = React.useElmish(init, update, [| |]) - let subscriptionId = React.useRef(0) - let subscribeToTimer() = + let localCount, setLocalCount = React.useState (0) + let state, dispatch = React.useElmish (init, update, [||]) + let subscriptionId = React.useRef (0) + + let subscribeToTimer () = // start the ticking - let rec loop = fun () -> - // dispatch Increment every second - dispatch Increment - console.log("Incremented count") - let id = setTimeout loop 1000 - subscriptionId.current <- id + let rec loop = + fun () -> + // dispatch Increment every second + dispatch Increment + console.log ("Incremented count") + let id = setTimeout loop 1000 + subscriptionId.current <- id - loop() + loop () // return IDisposable with cleanup code - { new IDisposable with member this.Dispose() = clearTimeout(subscriptionId.current) } + { + new IDisposable with + member this.Dispose() = clearTimeout (subscriptionId.current) + } - React.useEffect(subscribeToTimer, [| |]) + React.useEffect (subscribeToTimer, [||]) Html.div [ Html.h1 (state.Count + localCount) @@ -60,6 +64,6 @@ type Main = Html.button [ prop.text "Increment local state" - prop.onClick (fun _ -> setLocalCount(localCount + 1)) + prop.onClick (fun _ -> setLocalCount (localCount + 1)) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/FocusInput.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/FocusInput.fs index 0d58f141..47542fd1 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/FocusInput.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/FocusInput.fs @@ -4,25 +4,22 @@ open Feliz open Browser.Types [] -let FullFocusInputExample() = +let FullFocusInputExample () = // obtain a reference - let inputRef = React.useRef(None) + let inputRef = React.useRef (None) - let focusTextInput() = + let focusTextInput () = match inputRef.current with | None -> () | Some element -> let inputElement = unbox element - inputElement.focus() + inputElement.focus () Html.div [ - Html.input [ - prop.ref inputRef - prop.type'.text - ] + Html.input [ prop.ref inputRef; prop.type'.text ] Html.button [ - prop.onClick (fun _ -> focusTextInput()) + prop.onClick (fun _ -> focusTextInput ()) prop.text "Focus Input" ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ForwardRef.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ForwardRef.fs index c7885d2a..94ee5f54 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ForwardRef.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ForwardRef.fs @@ -2,22 +2,18 @@ module Example.ForwardRef open Feliz -let ForwardRefChild = React.forwardRef(fun ((), ref) -> - Html.input [ - prop.type'.text - prop.ref ref - ]) +let ForwardRefChild = + React.forwardRef (fun ((), ref) -> Html.input [ prop.type'.text; prop.ref ref ]) [] -let ForwardRefParent() = - let inputRef = React.useInputRef() +let ForwardRefParent () = + let inputRef = React.useInputRef () Html.div [ ForwardRefChild((), inputRef) Html.button [ prop.text "Focus Input" - prop.onClick <| fun ev -> - inputRef.current - |> Option.iter (fun elem -> elem.focus()) + prop.onClick + <| fun ev -> inputRef.current |> Option.iter (fun elem -> elem.focus ()) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greeting.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greeting.fs index 6c2e4dac..11f7d695 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greeting.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greeting.fs @@ -3,7 +3,7 @@ module Example.Greeting open Feliz [] -let Greeting(name: string option) : ReactElement = +let Greeting (name: string option) : ReactElement = Html.div [ Html.span "Hello, " Html.span (Option.defaultValue "World" name) diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greetings.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greetings.fs index 01fc6536..bf2f1479 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greetings.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Greetings.fs @@ -3,11 +3,8 @@ module Example.Greetings open Feliz [] // true defines this as default export -let Greetings() = +let Greetings () = Html.div [ prop.className "content" - prop.children [ - Greeting.Greeting (Some "John") - Greeting.Greeting None - ] + prop.children [ Greeting.Greeting(Some "John"); Greeting.Greeting None ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/HoverAnimations.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/HoverAnimations.fs index b1d93b72..efda06b9 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/HoverAnimations.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/HoverAnimations.fs @@ -9,7 +9,8 @@ type Main = [] static member AnimationsOnHover(content: ReactElement list) = - let (hovered, setHovered) = React.useState(false) + let (hovered, setHovered) = React.useState (false) + Html.div [ prop.style [ style.padding 10 @@ -26,8 +27,8 @@ type Main = style.backgroundColor.limeGreen style.color.white ] - prop.onMouseEnter (fun _ -> setHovered(true)) - prop.onMouseLeave (fun _ -> setHovered(false)) + prop.onMouseEnter (fun _ -> setHovered (true)) + prop.onMouseLeave (fun _ -> setHovered (false)) prop.children content ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ImperativeHandle.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ImperativeHandle.fs index b4a9600f..fdcfa612 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ImperativeHandle.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/ImperativeHandle.fs @@ -2,37 +2,38 @@ module Example.ImperativeHandle open Feliz -let ForwardRefImperativeChild = React.forwardRef(fun ((), ref) -> - let divText,setDivText = React.useState "" - let inputRef = React.useInputRef() +let ForwardRefImperativeChild = + React.forwardRef (fun ((), ref) -> + let divText, setDivText = React.useState "" + let inputRef = React.useInputRef () - React.useImperativeHandle(ref, fun () -> - inputRef.current - |> Option.map(fun innerRef -> - {| focus = fun () -> setDivText innerRef.className |}) - ) + React.useImperativeHandle ( + ref, + fun () -> + inputRef.current + |> Option.map (fun innerRef -> {| + focus = fun () -> setDivText innerRef.className + |}) + ) - Html.div [ - Html.input [ - prop.className "Howdy!" - prop.type'.text - prop.ref inputRef - ] Html.div [ - prop.text divText + Html.input [ + prop.className "Howdy!" + prop.type'.text + prop.ref inputRef + ] + Html.div [ prop.text divText ] ] - ]) + ) [] -let ForwardRefImperativeParent() = +let ForwardRefImperativeParent () = let ref = React.useRef<{| focus: unit -> unit |} option>(None) Html.div [ ForwardRefImperativeChild((), ref) Html.button [ prop.text "Focus Input" - prop.onClick <| fun ev -> - ref.current - |> Option.iter (fun elem -> elem.focus()) + prop.onClick <| fun ev -> ref.current |> Option.iter (fun elem -> elem.focus ()) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/MultipleStateVariables.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/MultipleStateVariables.fs index a5a11270..6ce07831 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/MultipleStateVariables.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/MultipleStateVariables.fs @@ -3,28 +3,25 @@ module Example.MultipleStateVariables open Feliz [] -let MultipleVariables() = - let (count, setCount) = React.useState(0) - let (textColor, setTextColor) = React.useState(color.red) +let MultipleVariables () = + let (count, setCount) = React.useState (0) + let (textColor, setTextColor) = React.useState (color.red) Html.div [ - Html.h1 [ - prop.style [ style.color textColor ] - prop.text count - ] + Html.h1 [ prop.style [ style.color textColor ]; prop.text count ] Html.button [ prop.text "Increment" - prop.onClick (fun _ -> setCount(count + 1)) + prop.onClick (fun _ -> setCount (count + 1)) ] Html.button [ prop.text "Red" - prop.onClick (fun _ -> setTextColor(color.red)) + prop.onClick (fun _ -> setTextColor (color.red)) ] Html.button [ prop.text "Blue" - prop.onClick (fun _ -> setTextColor(color.blue)) + prop.onClick (fun _ -> setTextColor (color.blue)) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Portal.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Portal.fs index c3808a55..21396378 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Portal.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/Portal.fs @@ -4,11 +4,11 @@ open Feliz open Browser.Dom [] -let Portal(content: ReactElement) = - ReactDOM.createPortal(content, document.body) +let Portal (content: ReactElement) = + ReactDOM.createPortal (content, document.body) [] -let PortalsPopup() = +let PortalsPopup () = Html.div [ prop.style [ style.position.fixedRelativeToWindow @@ -26,13 +26,11 @@ let PortalsPopup() = ] [] -let PortalsContainer() = - let showBanner, setShowBanner = React.useState(true) +let PortalsContainer () = + let showBanner, setShowBanner = React.useState (true) + Html.div [ - prop.style [ - style.padding 10 - style.overflow.hidden - ] + prop.style [ style.padding 10; style.overflow.hidden ] prop.children [ Html.button [ prop.text "Toggle Popup" diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseCancellationTokenHook.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseCancellationTokenHook.fs index 6d979d9f..229f4074 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseCancellationTokenHook.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseCancellationTokenHook.fs @@ -7,7 +7,7 @@ open Fable.Core type Main = [] - static member private UseToken (failedCallback: unit -> unit) = + static member private UseToken(failedCallback: unit -> unit) = let token = React.useCancellationToken () React.useEffect (fun () -> @@ -15,12 +15,13 @@ type Main = do! Async.Sleep 4000 failedCallback () } - |> fun a -> Async.StartImmediate(a, token.current)) + |> fun a -> Async.StartImmediate(a, token.current) + ) Html.none [] - static member Main () = + static member Main() = let renderChild, setRenderChild = React.useState true let resultText, setResultText = React.useState "Pending..." @@ -41,7 +42,8 @@ type Main = setResultText "Disposed" setRenderChild false } - |> Async.StartImmediate) + |> Async.StartImmediate + ) ] Html.button [ @@ -52,6 +54,7 @@ type Main = setResultText "Pending..." setRenderChild true } - |> Async.StartImmediate) + |> Async.StartImmediate + ) ] ] diff --git a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseReducer.fs b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseReducer.fs index 741757de..75540434 100644 --- a/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseReducer.fs +++ b/docs/versioned_docs/version-2.9.0/feliz-docs/Examples/React/UseReducer.fs @@ -2,19 +2,23 @@ module Example.UseReducer open Feliz -type State = { Count : int } +type State = { Count: int } -type Msg = Increment | Decrement +type Msg = + | Increment + | Decrement let initialState = { Count = 0 } -let update (state: State) = function +let update (state: State) = + function | Increment -> { state with Count = state.Count + 1 } | Decrement -> { state with Count = state.Count - 1 } [] -let Counter() = - let (state, dispatch) = React.useReducer(update, initialState) +let Counter () = + let (state, dispatch) = React.useReducer (update, initialState) + Html.div [ Html.button [ prop.onClick (fun _ -> dispatch Increment) diff --git a/package-lock.json b/package-lock.json index fb1140fe..1377cfe4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,11 +21,12 @@ "@testing-library/user-event": "^14.6.1", "@types/node": "^22.15.3", "@types/react": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "jsdom": "^26.1.0", "test-counter": "file:./tests/test-counter/test-counter-0.0.0.tgz", "typescript": "^5.8.3", - "vitest": "^3.1.2" + "vite": "^8.3.1", + "vitest": "^5.0.2" } }, "docs": { @@ -1310,34 +1311,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-transform-react-pure-annotations": { "version": "7.27.1", "license": "MIT", @@ -3470,429 +3443,6 @@ "node": ">=18.0" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz", - "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz", - "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz", - "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz", - "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz", - "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz", - "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz", - "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz", - "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz", - "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz", - "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz", - "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz", - "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz", - "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz", - "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz", - "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz", - "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz", - "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz", - "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz", - "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz", - "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz", - "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz", - "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz", - "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz", - "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.3", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, "node_modules/@hapi/hoek": { "version": "9.3.0", "license": "BSD-3-Clause" @@ -3961,7 +3511,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -4054,6 +3606,16 @@ "node": ">= 8" } }, + "node_modules/@oxc-project/types": { + "version": "0.151.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.151.0.tgz", + "integrity": "sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, "node_modules/@pnpm/config.env-replace": { "version": "1.1.0", "license": "MIT", @@ -4091,10 +3653,10 @@ "version": "1.0.0-next.29", "license": "MIT" }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.5.tgz", - "integrity": "sha512-8c1vW4ocv3UOMp9K+gToY5zL2XiiVw3k7f1ksf4yO1FlDFQ1C2u72iACFnSOceJFsWskc2WZNqeRhFRPzv+wtQ==", + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.11.tgz", + "integrity": "sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==", "cpu": [ "arm" ], @@ -4103,12 +3665,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.5.tgz", - "integrity": "sha512-mQGfsIEFcu21mvqkEKKu2dYmtuSZOBMmAl5CFlPGLY94Vlcm+zWApK7F/eocsNzp8tKmbeBP8yXyAbx0XHsFNA==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.11.tgz", + "integrity": "sha512-z6cTycz+iJ4PVkuL4HHW4DfTfoeU/2nqYYuSOrTmH7yHK5Y0LCOnA03V4ZNxavyVaU1oOqUgIg2klN/s+USGOA==", "cpu": [ "arm64" ], @@ -4117,12 +3682,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.5.tgz", - "integrity": "sha512-takF3CR71mCAGA+v794QUZ0b6ZSrgJkArC+gUiG6LB6TQty9T0Mqh3m2ImRBOxS2IeYBo4lKWIieSvnEk2OQWA==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.11.tgz", + "integrity": "sha512-jShvqNtP6vDC6/A5JOAzbVV+DkgHqhl/ScVCJEbt+TUY6QYz7YnXcrg3sLtFBniro0f/Ld50ZwCWA6f7KYD1nQ==", "cpu": [ "arm64" ], @@ -4131,12 +3699,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.5.tgz", - "integrity": "sha512-W901Pla8Ya95WpxDn//VF9K9u2JbocwV/v75TE0YIHNTbhqUTv9w4VuQ9MaWlNOkkEfFwkdNhXgcLqPSmHy0fA==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.11.tgz", + "integrity": "sha512-f2i2xiNWq1Z1l2++q2fuhZRdLAT3aqxD6vRNm1RAxpUoBcdqNB3C0s1Bt+K+PbEx2F5F4gQp6hqKkphCY/xF9w==", "cpu": [ "x64" ], @@ -4145,26 +3716,15 @@ "optional": true, "os": [ "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.5.tgz", - "integrity": "sha512-QofO7i7JycsYOWxe0GFqhLmF6l1TqBswJMvICnRUjqCx8b47MTo46W8AoeQwiokAx3zVryVnxtBMcGcnX12LvA==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.5.tgz", - "integrity": "sha512-jr21b/99ew8ujZubPo9skbrItHEIE50WdV86cdSoRkKtmWa+DDr6fu2c/xyRT0F/WazZpam6kk7IHBerSL7LDQ==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.11.tgz", + "integrity": "sha512-4Ir5FSOKIAMr4r0kExpt1s3bMgzJU3rA45AYOHtQpls0oNeqcYBKrWMlckrYH4KCfGLfkfn1tN1dmZPMVsdXow==", "cpu": [ "x64" ], @@ -4173,26 +3733,15 @@ "optional": true, "os": [ "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.5.tgz", - "integrity": "sha512-PsNAbcyv9CcecAUagQefwX8fQn9LQ4nZkpDboBOttmyffnInRy8R8dSg6hxxl2Re5QhHBf6FYIDhIj5v982ATQ==", - "cpu": [ - "arm" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.5.tgz", - "integrity": "sha512-Fw4tysRutyQc/wwkmcyoqFtJhh0u31K+Q6jYjeicsGJJ7bbEq8LwPWV/w0cnzOqR2m694/Af6hpFayLJZkG2VQ==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.11.tgz", + "integrity": "sha512-/gnRDM+39BROzAN/k1OZjDPnDMcZxB/0EUxKjONO5yVkNEvlsoMDrxGNKgZi/ttFriS2gwlDNzB65pvNbFOXIQ==", "cpu": [ "arm" ], @@ -4201,12 +3750,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.5.tgz", - "integrity": "sha512-a+3wVnAYdQClOTlyapKmyI6BLPAFYs0JM8HRpgYZQO02rMR09ZcV9LbQB+NL6sljzG38869YqThrRnfPMCDtZg==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.11.tgz", + "integrity": "sha512-PFaK8HwvAHbaKbBcDNQihjMKYvFnA5hiENx/l5tphTDz1E0WFp32l0A7aq7lyUwGsRw/xSrNIy/gIK4thrSCrw==", "cpu": [ "arm64" ], @@ -4215,12 +3767,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.5.tgz", - "integrity": "sha512-AvttBOMwO9Pcuuf7m9PkC1PUIKsfaAJ4AYhy944qeTJgQOqJYJ9oVl2nYgY7Rk0mkbsuOpCAYSs6wLYB2Xiw0Q==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.11.tgz", + "integrity": "sha512-AskzJUIKRLPxkruR1wLKewGbOw+EYfU/9lOrBFj4AFrEA8hPpKFnODWNu2WLaNs0QNkEb9QIJufmVZZIL/bJlg==", "cpu": [ "arm64" ], @@ -4229,26 +3784,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.5.tgz", - "integrity": "sha512-DkDk8pmXQV2wVrF6oq5tONK6UHLz/XcEVow4JTTerdeV1uqPeHxwcg7aFsfnSm9L+OO8WJsWotKM2JJPMWrQtA==", - "cpu": [ - "loong64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.5.tgz", - "integrity": "sha512-W/b9ZN/U9+hPQVvlGwjzi+Wy4xdoH2I8EjaCkMvzpI7wJUs8sWJ03Rq96jRnHkSrcHTpQe8h5Tg3ZzUPGauvAw==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.11.tgz", + "integrity": "sha512-qlUGAheh2yh8afH7QBgx0PrRHN85hKnNd78x8MeMhXivuevgd8vgf6/CstOzmNKY/lLTHvNTrPy98cLnAugzJw==", "cpu": [ "ppc64" ], @@ -4257,40 +3801,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.5.tgz", - "integrity": "sha512-sjQLr9BW7R/ZiXnQiWPkErNfLMkkWIoCz7YMn27HldKsADEKa5WYdobaa1hmN6slu9oWQbB6/jFpJ+P2IkVrmw==", - "cpu": [ - "riscv64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.5.tgz", - "integrity": "sha512-hq3jU/kGyjXWTvAh2awn8oHroCbrPm8JqM7RUpKjalIRWWXE01CQOf/tUNWNHjmbMHg/hmNCwc/Pz3k1T/j/Lg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.5.tgz", - "integrity": "sha512-gn8kHOrku8D4NGHMK1Y7NA7INQTRdVOntt1OCYypZPRt6skGbddska44K8iocdpxHTMMNui5oH4elPH4QOLrFQ==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.11.tgz", + "integrity": "sha512-secpEad+0vCbSfn8upFySkDskv+bGPk3THSDS9Y89yc4rb4kzqHp8Dmyd9BkQW4SnhNXBZCl/6CrO//hZahNJQ==", "cpu": [ "s390x" ], @@ -4299,12 +3818,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz", - "integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.11.tgz", + "integrity": "sha512-mOVBT3dPpkWm8XBWPmU4bf+U6dYDLeMo/9ojUmis4N0L5uu10qra5vOyngZ7/PSdoE4G9KvRt4bloRxNjLas7A==", "cpu": [ "x64" ], @@ -4313,12 +3835,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.5.tgz", - "integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.11.tgz", + "integrity": "sha512-Is78i9A8Ui4SqcxUwFJ9uMmjDn58IbVTjFWYdQestFEgeuEmHMLGNriXnVJKkwG2YiZjw8cP0zCTyDMdDGtOOg==", "cpu": [ "x64" ], @@ -4327,64 +3852,49 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.5.tgz", - "integrity": "sha512-QoFqB6+/9Rly/RiPjaomPLmR/13cgkIGfA40LHly9zcH1S0bN2HVFYk3a1eAyHQyjs3ZJYlXvIGtcCs5tko9Cw==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.5.tgz", - "integrity": "sha512-w0cDWVR6MlTstla1cIfOGyl8+qb93FlAVutcor14Gf5Md5ap5ySfQ7R9S/NjNaMLSFdUnKGEasmVnu3lCMqB7w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.52.5", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.5.tgz", - "integrity": "sha512-Aufdpzp7DpOTULJCuvzqcItSGDH73pF3ko/f+ckJhxQyHtp67rHw3HMNxoIdDMUITJESNE6a8uh4Lo4SLouOUg==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.11.tgz", + "integrity": "sha512-dUCXneZ87INUMyQ0D+C0HrEBNUPNXHaPmU5GTjyKTJEiussw9Kaj5Ln8UztPe4epV/ffvgNBEadksdYhmW6xJA==", "cpu": [ - "ia32" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "win32" - ] + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.52.5", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.11.tgz", + "integrity": "sha512-jByxb6qfd+bH1xUd0qnfFnb17i9sWBPY2tOavJ0l3tdr3OTu+Kvtm8cd/JV5nFt657b1VqGltxg9olOEfofXWw==", "cpu": [ - "x64" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.52.5", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.11.tgz", + "integrity": "sha512-/PzKqzAJ03i19oy2ItPvyvaVjOjBCNnfaJs8yvUdGBKmiESgnrJSQ2awd81QzFbbnAmu7YO9ZnJrDCb9VSJPRA==", "cpu": [ "x64" ], @@ -4393,7 +3903,17 @@ "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" }, "node_modules/@sideway/address": { "version": "4.1.5", @@ -4788,43 +4308,6 @@ "license": "MIT", "peer": true }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.20.7" - } - }, "node_modules/@types/body-parser": { "version": "1.19.6", "license": "MIT", @@ -4840,6 +4323,17 @@ "@types/node": "*" } }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, "node_modules/@types/connect": { "version": "3.4.38", "license": "MIT", @@ -4862,6 +4356,13 @@ "@types/ms": "*" } }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/eslint": { "version": "9.6.1", "license": "MIT", @@ -5122,52 +4623,53 @@ "license": "ISC" }, "node_modules/@vitejs/plugin-react": { - "version": "4.4.1", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.1.tgz", + "integrity": "sha512-yxLaQV9gkhS8ezJqCM6+ndU7mDY6gqAg75NQ+0IjwEI8IYOmQCgkRwHKVSfWXW076DsqMo0Dk+0FK1U+M5RgFw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.26.10", - "@babel/plugin-transform-react-jsx-self": "^7.25.9", - "@babel/plugin-transform-react-jsx-source": "^7.25.9", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" + "@rolldown/pluginutils": "^1.0.1" }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" - } - }, - "node_modules/@vitest/expect": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "3.1.2", - "@vitest/utils": "3.1.2", - "chai": "^5.2.0", - "tinyrainbow": "^2.0.0" + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.145.0", + "vite": "^8.0.0" }, - "funding": { - "url": "https://opencollective.com/vitest" + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } } }, "node_modules/@vitest/mocker": { - "version": "3.1.2", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.2.tgz", + "integrity": "sha512-Z5FS00Q1SJHkB35xATsmWGdQ5WA1/0MV3CDjqyv7GavHv1OfOj145MNfHOlHk7QLes21dKFDHr8EO2zvL+9WGA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "3.1.2", + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.0.2", "estree-walker": "^3.0.3", - "magic-string": "^0.30.17" + "magic-string": "^1.2.3" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "msw": "^2.4.9", - "vite": "^5.0.0 || ^6.0.0" + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "msw": { @@ -5178,62 +4680,12 @@ } } }, - "node_modules/@vitest/pretty-format": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "3.1.2", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.1.2", - "magic-string": "^0.30.17", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/@vitest/spy": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyspy": "^3.0.2" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "3.1.2", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.2.tgz", + "integrity": "sha512-Ijc7T1nT9efNb5LxvjaBrEqw3f/QwUv5EE0nKqZxgqsaV/FxAAZ8baGylA8X/Z2oS4Lp+K74Jr6dTJsDKxJDeg==", "dev": true, "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.1.2", - "loupe": "^3.1.3", - "tinyrainbow": "^2.0.0" - }, "funding": { "url": "https://opencollective.com/vitest" } @@ -5647,6 +5099,8 @@ }, "node_modules/assertion-error": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, "license": "MIT", "engines": { @@ -5924,14 +5378,6 @@ "node": ">= 0.8" } }, - "node_modules/cac": { - "version": "6.7.14", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/cacheable-lookup": { "version": "7.0.0", "license": "MIT", @@ -6058,18 +5504,13 @@ } }, "node_modules/chai": { - "version": "5.2.0", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", "dev": true, "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/chalk": { @@ -6125,14 +5566,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/check-error": { - "version": "2.1.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, "node_modules/cheerio": { "version": "1.0.0-rc.12", "license": "MIT", @@ -7106,14 +6539,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/deep-eql": { - "version": "5.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/deep-extend": { "version": "0.6.0", "license": "MIT", @@ -7204,6 +6629,16 @@ "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/detect-node": { "version": "2.1.0", "license": "MIT" @@ -7498,45 +6933,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/esbuild": { - "version": "0.25.3", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.3", - "@esbuild/android-arm": "0.25.3", - "@esbuild/android-arm64": "0.25.3", - "@esbuild/android-x64": "0.25.3", - "@esbuild/darwin-arm64": "0.25.3", - "@esbuild/darwin-x64": "0.25.3", - "@esbuild/freebsd-arm64": "0.25.3", - "@esbuild/freebsd-x64": "0.25.3", - "@esbuild/linux-arm": "0.25.3", - "@esbuild/linux-arm64": "0.25.3", - "@esbuild/linux-ia32": "0.25.3", - "@esbuild/linux-loong64": "0.25.3", - "@esbuild/linux-mips64el": "0.25.3", - "@esbuild/linux-ppc64": "0.25.3", - "@esbuild/linux-riscv64": "0.25.3", - "@esbuild/linux-s390x": "0.25.3", - "@esbuild/linux-x64": "0.25.3", - "@esbuild/netbsd-arm64": "0.25.3", - "@esbuild/netbsd-x64": "0.25.3", - "@esbuild/openbsd-arm64": "0.25.3", - "@esbuild/openbsd-x64": "0.25.3", - "@esbuild/sunos-x64": "0.25.3", - "@esbuild/win32-arm64": "0.25.3", - "@esbuild/win32-ia32": "0.25.3", - "@esbuild/win32-x64": "0.25.3" - } - }, "node_modules/escalade": { "version": "3.2.0", "license": "MIT", @@ -7768,7 +7164,9 @@ } }, "node_modules/expect-type": { - "version": "1.2.1", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -7931,6 +7329,8 @@ }, "node_modules/fdir": { "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, "license": "MIT", "engines": { @@ -9536,66 +8936,327 @@ "json5": "lib/cli.js" }, "engines": { - "node": ">=6" + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/latest-version": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "package-json": "^8.1.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/launch-editor": { + "version": "2.10.0", + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.8.1" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/jsonfile": { - "version": "6.1.0", - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/keyv": { - "version": "4.5.4", - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/kind-of": { - "version": "6.0.3", - "license": "MIT", + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.10.0" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/kleur": { - "version": "3.0.3", - "license": "MIT", + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/latest-version": { - "version": "7.0.0", - "license": "MIT", - "dependencies": { - "package-json": "^8.1.0" + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=14.16" + "node": ">= 12.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/launch-editor": { - "version": "2.10.0", - "license": "MIT", - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.8.1" + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/leven": { - "version": "3.1.0", - "license": "MIT", + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=6" + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/lilconfig": { @@ -9678,11 +9339,6 @@ "loose-envify": "cli.js" } }, - "node_modules/loupe": { - "version": "3.1.3", - "dev": true, - "license": "MIT" - }, "node_modules/lower-case": { "version": "2.0.2", "license": "MIT", @@ -9730,11 +9386,13 @@ } }, "node_modules/magic-string": { - "version": "0.30.17", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.2.tgz", + "integrity": "sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" + "@jridgewell/sourcemap-codec": "^1.6.0" } }, "node_modules/markdown-extensions": { @@ -11895,7 +11553,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.11", + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "funding": [ { "type": "github", @@ -12111,6 +11771,20 @@ "version": "1.1.2", "license": "MIT" }, + "node_modules/obug": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", + "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/on-finished": { "version": "2.4.1", "license": "MIT", @@ -12422,25 +12096,14 @@ "node": ">=8" } }, - "node_modules/pathe": { - "version": "2.0.3", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, "node_modules/picocolors": { "version": "1.1.1", "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.3", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -12464,7 +12127,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "funding": [ { "type": "opencollective", @@ -12481,7 +12146,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -14181,14 +13846,6 @@ "react": ">=18" } }, - "node_modules/react-refresh": { - "version": "0.17.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-router": { "version": "5.3.4", "license": "MIT", @@ -14758,44 +14415,38 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rollup": { - "version": "4.52.5", + "node_modules/rolldown": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.11.tgz", + "integrity": "sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.8" + "@oxc-project/types": "=0.151.0", + "@rolldown/pluginutils": "^1.0.0" }, "bin": { - "rollup": "dist/bin/rollup" + "rolldown": "bin/cli.mjs" }, "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" + "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.52.5", - "@rollup/rollup-android-arm64": "4.52.5", - "@rollup/rollup-darwin-arm64": "4.52.5", - "@rollup/rollup-darwin-x64": "4.52.5", - "@rollup/rollup-freebsd-arm64": "4.52.5", - "@rollup/rollup-freebsd-x64": "4.52.5", - "@rollup/rollup-linux-arm-gnueabihf": "4.52.5", - "@rollup/rollup-linux-arm-musleabihf": "4.52.5", - "@rollup/rollup-linux-arm64-gnu": "4.52.5", - "@rollup/rollup-linux-arm64-musl": "4.52.5", - "@rollup/rollup-linux-loong64-gnu": "4.52.5", - "@rollup/rollup-linux-ppc64-gnu": "4.52.5", - "@rollup/rollup-linux-riscv64-gnu": "4.52.5", - "@rollup/rollup-linux-riscv64-musl": "4.52.5", - "@rollup/rollup-linux-s390x-gnu": "4.52.5", - "@rollup/rollup-linux-x64-gnu": "4.52.5", - "@rollup/rollup-linux-x64-musl": "4.52.5", - "@rollup/rollup-openharmony-arm64": "4.52.5", - "@rollup/rollup-win32-arm64-msvc": "4.52.5", - "@rollup/rollup-win32-ia32-msvc": "4.52.5", - "@rollup/rollup-win32-x64-gnu": "4.52.5", - "@rollup/rollup-win32-x64-msvc": "4.52.5", - "fsevents": "~2.3.2" + "@rolldown/binding-android-arm-eabi": "1.2.11", + "@rolldown/binding-android-arm64": "1.2.11", + "@rolldown/binding-darwin-arm64": "1.2.11", + "@rolldown/binding-darwin-x64": "1.2.11", + "@rolldown/binding-freebsd-x64": "1.2.11", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.11", + "@rolldown/binding-linux-arm64-gnu": "1.2.11", + "@rolldown/binding-linux-arm64-musl": "1.2.11", + "@rolldown/binding-linux-ppc64-gnu": "1.2.11", + "@rolldown/binding-linux-s390x-gnu": "1.2.11", + "@rolldown/binding-linux-x64-gnu": "1.2.11", + "@rolldown/binding-linux-x64-musl": "1.2.11", + "@rolldown/binding-openharmony-arm64": "1.2.11", + "@rolldown/binding-win32-arm64-msvc": "1.2.11", + "@rolldown/binding-win32-x64-msvc": "1.2.11" } }, "node_modules/rrweb-cssom": { @@ -15233,11 +14884,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/siginfo": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/signal-exit": { "version": "3.0.7", "license": "ISC" @@ -15397,11 +15043,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/stackback": { - "version": "0.0.2", - "dev": true, - "license": "MIT" - }, "node_modules/statuses": { "version": "2.0.1", "license": "MIT", @@ -15721,22 +15362,34 @@ "license": "MIT" }, "node_modules/tinybench": { - "version": "2.9.0", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.0.tgz", + "integrity": "sha512-78U2TlB2CnVenajOFzf3BKSm0J6oz5L0NV7g32LCPccvYc0lbWvys4d3uUUCS2B1N8PAf2+aekR8i1KbC3HO7Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } }, "node_modules/tinyexec": { - "version": "0.3.2", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=18" + } }, "node_modules/tinyglobby": { - "version": "0.2.15", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", - "picomatch": "^4.0.3" + "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" @@ -15752,22 +15405,6 @@ "node": "^18.0.0 || >=20.0.0" } }, - "node_modules/tinyrainbow": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "3.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/tldts": { "version": "6.1.86", "dev": true, @@ -16346,22 +15983,23 @@ } }, "node_modules/vite": { - "version": "6.3.4", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz", + "integrity": "sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.9", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -16370,14 +16008,15 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" @@ -16386,13 +16025,16 @@ "@types/node": { "optional": true }, - "jiti": { + "@vitejs/devtools": { "optional": true }, - "less": { + "esbuild": { "optional": true }, - "lightningcss": { + "jiti": { + "optional": true + }, + "less": { "optional": true }, "sass": { @@ -16418,83 +16060,73 @@ } } }, - "node_modules/vite-node": { - "version": "3.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.4.0", - "es-module-lexer": "^1.6.0", - "pathe": "^2.0.3", - "vite": "^5.0.0 || ^6.0.0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/vitest": { - "version": "3.1.2", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.2.tgz", + "integrity": "sha512-7MQrx9pDv5aHiUcovIb/70Ys3tgtkUVgCtledvKdCmEO+/1Dicq5ZqoSxOW034m03oqC+oHOKui2dM6qtMLoJg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "3.1.2", - "@vitest/mocker": "3.1.2", - "@vitest/pretty-format": "^3.1.2", - "@vitest/runner": "3.1.2", - "@vitest/snapshot": "3.1.2", - "@vitest/spy": "3.1.2", - "@vitest/utils": "3.1.2", - "chai": "^5.2.0", - "debug": "^4.4.0", - "expect-type": "^1.2.1", - "magic-string": "^0.30.17", - "pathe": "^2.0.3", - "std-env": "^3.9.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.2", - "tinyglobby": "^0.2.13", - "tinypool": "^1.0.2", - "tinyrainbow": "^2.0.0", - "vite": "^5.0.0 || ^6.0.0", - "vite-node": "3.1.2", - "why-is-node-running": "^2.3.0" + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.0.2", + "chai": "^6.2.2", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.2.3", + "obug": "^2.1.4", + "picomatch": "^4.0.7", + "std-env": "^4.2.0", + "tinybench": "^6.1.4", + "tinyexec": "^1.3.0", + "tinyglobby": "^0.2.17", + "why-is-node-running": "^3.2.1" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/debug": "^4.1.12", - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.1.2", - "@vitest/ui": "3.1.2", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.0.2", + "@vitest/browser-preview": "5.0.2", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.0.2", + "@vitest/coverage-v8": "5.0.2", + "@vitest/ui": "5.0.2", "happy-dom": "*", - "jsdom": "*" + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { "optional": true }, - "@types/debug": { + "@opentelemetry/api": { "optional": true }, "@types/node": { "optional": true }, - "@vitest/browser": { + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { "optional": true }, "@vitest/ui": { @@ -16505,6 +16137,9 @@ }, "jsdom": { "optional": true + }, + "vite": { + "optional": false } } }, @@ -16516,6 +16151,20 @@ "resolved": "tests/Vitest", "link": true }, + "node_modules/vitest/node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vitest/node_modules/std-env": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", + "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", + "dev": true, + "license": "MIT" + }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", "dev": true, @@ -16920,18 +16569,16 @@ } }, "node_modules/why-is-node-running": { - "version": "2.3.0", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.2.tgz", + "integrity": "sha512-NKUzAelcoCXhXL4dJzKIwXeR8iEVqsA0Lq6Vnd0UXvgaKbzVo4ZTHROF2Jidrv+SgxOQ03fMinnNhzZATxOD3A==", "dev": true, "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, "bin": { "why-is-node-running": "cli.js" }, "engines": { - "node": ">=8" + "node": ">=20.11" } }, "node_modules/widest-line": { diff --git a/package.json b/package.json index 3f5758a4..804487dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "feliz-packages", "private": true, + "type": "module", "scripts": { "publish-docs": "npm run build && node publish.js", "start": "dotnet tool restore && dotnet fable watch docs --noCache --exclude Feliz.CompilerPlugins --run webpack-dev-server", @@ -20,9 +21,10 @@ "@testing-library/user-event": "^14.6.1", "@types/node": "^22.15.3", "@types/react": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "jsdom": "^26.1.0", - "vitest": "^3.1.2", + "vite": "^8.3.1", + "vitest": "^5.0.2", "test-counter": "file:./tests/test-counter/test-counter-0.0.0.tgz" }, "dependencies": { diff --git a/playground/package-lock.json b/playground/package-lock.json index 066eb25d..891cfcc7 100644 --- a/playground/package-lock.json +++ b/playground/package-lock.json @@ -15,329 +15,39 @@ "@eslint/js": "^9.25.0", "@types/react": "^19.1.2", "@types/react-dom": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "globals": "^16.0.0", "typescript": "~5.8.3", - "vite": "^6.3.5" + "vite": "^8.3.1" } }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.2.tgz", - "integrity": "sha512-TUtMJYRPyUb/9aU8f3K0mjmjf6M9N5Woshn2CS6nqJSeJtTtQcpLUXjGt9vbF8ZGff0El99sWkLgzwW3VXnxZQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.1.tgz", - "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", + "node_modules/@eslint/js": { + "version": "9.27.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.27.0.tgz", + "integrity": "sha512-G5JD9Tu5HJEu4z2Uo4aHY2sLV64B7CDMXxFzqzjl3NKd6RVzSXNoE80jk7Y0lJkTTkjiIhBAqmlYwjuBY3tvpA==", "dev": true, "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.1", - "@babel/helper-compilation-targets": "^7.27.1", - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helpers": "^7.27.1", - "@babel/parser": "^7.27.1", - "@babel/template": "^7.27.1", - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, "engines": { - "node": ">=6.9.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.1.tgz", - "integrity": "sha512-UnJfnIpc/+JO0/+KRVQNGU+y5taA5vCbwN8+azkX6beii/ZF+enZJSOKo11ZSzGJjlNfJHfQtmQT8H+9TXPG2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.27.1", - "@babel/types": "^7.27.1", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.1.tgz", - "integrity": "sha512-9yHn519/8KvTU5BjTVEEeIM3w9/2yXNKoD82JifINImhpKkARMJKPP59kLo+BafpdN5zgNeIcS4jsGDmd3l58g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.1.tgz", - "integrity": "sha512-FCvFTm0sWV8Fxhpp2McP5/W53GPllQ9QeQ7SiqGWjMf/LVG07lFa5+pgK05IRhVwtvafT22KF+ZSnM9I545CvQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.2.tgz", - "integrity": "sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.1" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", - "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", - "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.1.tgz", - "integrity": "sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.1", - "@babel/parser": "^7.27.1", - "@babel/template": "^7.27.1", - "@babel/types": "^7.27.1", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/types": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.1.tgz", - "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" + "url": "https://eslint.org/donate" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz", - "integrity": "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==", - "cpu": [ - "ppc64" - ], + "node_modules/@oxc-project/types": { + "version": "0.151.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.151.0.tgz", + "integrity": "sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" + "funding": { + "url": "https://github.com/sponsors/oxc-project" } }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.4.tgz", - "integrity": "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==", + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.11.tgz", + "integrity": "sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==", "cpu": [ "arm" ], @@ -348,13 +58,13 @@ "android" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.4.tgz", - "integrity": "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.11.tgz", + "integrity": "sha512-z6cTycz+iJ4PVkuL4HHW4DfTfoeU/2nqYYuSOrTmH7yHK5Y0LCOnA03V4ZNxavyVaU1oOqUgIg2klN/s+USGOA==", "cpu": [ "arm64" ], @@ -365,30 +75,13 @@ "android" ], "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.4.tgz", - "integrity": "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.4.tgz", - "integrity": "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.11.tgz", + "integrity": "sha512-jShvqNtP6vDC6/A5JOAzbVV+DkgHqhl/ScVCJEbt+TUY6QYz7YnXcrg3sLtFBniro0f/Ld50ZwCWA6f7KYD1nQ==", "cpu": [ "arm64" ], @@ -399,13 +92,13 @@ "darwin" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.4.tgz", - "integrity": "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.11.tgz", + "integrity": "sha512-f2i2xiNWq1Z1l2++q2fuhZRdLAT3aqxD6vRNm1RAxpUoBcdqNB3C0s1Bt+K+PbEx2F5F4gQp6hqKkphCY/xF9w==", "cpu": [ "x64" ], @@ -416,30 +109,13 @@ "darwin" ], "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.4.tgz", - "integrity": "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.4.tgz", - "integrity": "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.11.tgz", + "integrity": "sha512-4Ir5FSOKIAMr4r0kExpt1s3bMgzJU3rA45AYOHtQpls0oNeqcYBKrWMlckrYH4KCfGLfkfn1tN1dmZPMVsdXow==", "cpu": [ "x64" ], @@ -450,13 +126,13 @@ "freebsd" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.4.tgz", - "integrity": "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.11.tgz", + "integrity": "sha512-/gnRDM+39BROzAN/k1OZjDPnDMcZxB/0EUxKjONO5yVkNEvlsoMDrxGNKgZi/ttFriS2gwlDNzB65pvNbFOXIQ==", "cpu": [ "arm" ], @@ -467,13 +143,13 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.4.tgz", - "integrity": "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.11.tgz", + "integrity": "sha512-PFaK8HwvAHbaKbBcDNQihjMKYvFnA5hiENx/l5tphTDz1E0WFp32l0A7aq7lyUwGsRw/xSrNIy/gIK4thrSCrw==", "cpu": [ "arm64" ], @@ -484,166 +160,13 @@ "linux" ], "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.4.tgz", - "integrity": "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.4.tgz", - "integrity": "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.4.tgz", - "integrity": "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.4.tgz", - "integrity": "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.4.tgz", - "integrity": "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.4.tgz", - "integrity": "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.4.tgz", - "integrity": "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.4.tgz", - "integrity": "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.4.tgz", - "integrity": "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.4.tgz", - "integrity": "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.11.tgz", + "integrity": "sha512-AskzJUIKRLPxkruR1wLKewGbOw+EYfU/9lOrBFj4AFrEA8hPpKFnODWNu2WLaNs0QNkEb9QIJufmVZZIL/bJlg==", "cpu": [ "arm64" ], @@ -651,321 +174,16 @@ "license": "MIT", "optional": true, "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.4.tgz", - "integrity": "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.4.tgz", - "integrity": "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.4.tgz", - "integrity": "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.4.tgz", - "integrity": "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" + "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.4.tgz", - "integrity": "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint/js": { - "version": "9.27.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.27.0.tgz", - "integrity": "sha512-G5JD9Tu5HJEu4z2Uo4aHY2sLV64B7CDMXxFzqzjl3NKd6RVzSXNoE80jk7Y0lJkTTkjiIhBAqmlYwjuBY3tvpA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", - "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.41.0.tgz", - "integrity": "sha512-KxN+zCjOYHGwCl4UCtSfZ6jrq/qi88JDUtiEFk8LELEHq2Egfc/FgW+jItZiOLRuQfb/3xJSgFuNPC9jzggX+A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.41.0.tgz", - "integrity": "sha512-yDvqx3lWlcugozax3DItKJI5j05B0d4Kvnjx+5mwiUpWramVvmAByYigMplaoAQ3pvdprGCTCE03eduqE/8mPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.41.0.tgz", - "integrity": "sha512-2KOU574vD3gzcPSjxO0eyR5iWlnxxtmW1F5CkNOHmMlueKNCQkxR6+ekgWyVnz6zaZihpUNkGxjsYrkTJKhkaw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.41.0.tgz", - "integrity": "sha512-gE5ACNSxHcEZyP2BA9TuTakfZvULEW4YAOtxl/A/YDbIir/wPKukde0BNPlnBiP88ecaN4BJI2TtAd+HKuZPQQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.41.0.tgz", - "integrity": "sha512-GSxU6r5HnWij7FoSo7cZg3l5GPg4HFLkzsFFh0N/b16q5buW1NAWuCJ+HMtIdUEi6XF0qH+hN0TEd78laRp7Dg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.41.0.tgz", - "integrity": "sha512-KGiGKGDg8qLRyOWmk6IeiHJzsN/OYxO6nSbT0Vj4MwjS2XQy/5emsmtoqLAabqrohbgLWJ5GV3s/ljdrIr8Qjg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.41.0.tgz", - "integrity": "sha512-46OzWeqEVQyX3N2/QdiU/CMXYDH/lSHpgfBkuhl3igpZiaB3ZIfSjKuOnybFVBQzjsLwkus2mjaESy8H41SzvA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.41.0.tgz", - "integrity": "sha512-lfgW3KtQP4YauqdPpcUZHPcqQXmTmH4nYU0cplNeW583CMkAGjtImw4PKli09NFi2iQgChk4e9erkwlfYem6Lg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.41.0.tgz", - "integrity": "sha512-nn8mEyzMbdEJzT7cwxgObuwviMx6kPRxzYiOl6o/o+ChQq23gfdlZcUNnt89lPhhz3BYsZ72rp0rxNqBSfqlqw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.41.0.tgz", - "integrity": "sha512-l+QK99je2zUKGd31Gh+45c4pGDAqZSuWQiuRFCdHYC2CSiO47qUWsCcenrI6p22hvHZrDje9QjwSMAFL3iwXwQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.41.0.tgz", - "integrity": "sha512-WbnJaxPv1gPIm6S8O/Wg+wfE/OzGSXlBMbOe4ie+zMyykMOeqmgD1BhPxZQuDqwUN+0T/xOFtL2RUWBspnZj3w==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.41.0.tgz", - "integrity": "sha512-eRDWR5t67/b2g8Q/S8XPi0YdbKcCs4WQ8vklNnUYLaSWF+Cbv2axZsp4jni6/j7eKvMLYCYdcsv8dcU+a6QNFg==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.11.tgz", + "integrity": "sha512-qlUGAheh2yh8afH7QBgx0PrRHN85hKnNd78x8MeMhXivuevgd8vgf6/CstOzmNKY/lLTHvNTrPy98cLnAugzJw==", "cpu": [ "ppc64" ], @@ -974,40 +192,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.41.0.tgz", - "integrity": "sha512-TWrZb6GF5jsEKG7T1IHwlLMDRy2f3DPqYldmIhnA2DVqvvhY2Ai184vZGgahRrg8k9UBWoSlHv+suRfTN7Ua4A==", - "cpu": [ - "riscv64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.41.0.tgz", - "integrity": "sha512-ieQljaZKuJpmWvd8gW87ZmSFwid6AxMDk5bhONJ57U8zT77zpZ/TPKkU9HpnnFrM4zsgr4kiGuzbIbZTGi7u9A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.41.0.tgz", - "integrity": "sha512-/L3pW48SxrWAlVsKCN0dGLB2bi8Nv8pr5S5ocSM+S0XCn5RCVCXqi8GVtHFsOBBCSeR+u9brV2zno5+mg3S4Aw==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.11.tgz", + "integrity": "sha512-secpEad+0vCbSfn8upFySkDskv+bGPk3THSDS9Y89yc4rb4kzqHp8Dmyd9BkQW4SnhNXBZCl/6CrO//hZahNJQ==", "cpu": [ "s390x" ], @@ -1016,12 +209,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.41.0.tgz", - "integrity": "sha512-XMLeKjyH8NsEDCRptf6LO8lJk23o9wvB+dJwcXMaH6ZQbbkHu2dbGIUindbMtRN6ux1xKi16iXWu6q9mu7gDhQ==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.11.tgz", + "integrity": "sha512-mOVBT3dPpkWm8XBWPmU4bf+U6dYDLeMo/9ojUmis4N0L5uu10qra5vOyngZ7/PSdoE4G9KvRt4bloRxNjLas7A==", "cpu": [ "x64" ], @@ -1030,12 +226,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.41.0.tgz", - "integrity": "sha512-m/P7LycHZTvSQeXhFmgmdqEiTqSV80zn6xHaQ1JSqwCtD1YGtwEK515Qmy9DcB2HK4dOUVypQxvhVSy06cJPEg==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.11.tgz", + "integrity": "sha512-Is78i9A8Ui4SqcxUwFJ9uMmjDn58IbVTjFWYdQestFEgeuEmHMLGNriXnVJKkwG2YiZjw8cP0zCTyDMdDGtOOg==", "cpu": [ "x64" ], @@ -1044,12 +243,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.41.0.tgz", - "integrity": "sha512-4yodtcOrFHpbomJGVEqZ8fzD4kfBeCbpsUy5Pqk4RluXOdsWdjLnjhiKy2w3qzcASWd04fp52Xz7JKarVJ5BTg==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.11.tgz", + "integrity": "sha512-dUCXneZ87INUMyQ0D+C0HrEBNUPNXHaPmU5GTjyKTJEiussw9Kaj5Ln8UztPe4epV/ffvgNBEadksdYhmW6xJA==", "cpu": [ "arm64" ], @@ -1057,27 +259,33 @@ "license": "MIT", "optional": true, "os": [ - "win32" - ] + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.41.0.tgz", - "integrity": "sha512-tmazCrAsKzdkXssEc65zIE1oC6xPHwfy9d5Ta25SRCDOZS+I6RypVVShWALNuU9bxIfGA0aqrmzlzoM5wO5SPQ==", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.11.tgz", + "integrity": "sha512-jByxb6qfd+bH1xUd0qnfFnb17i9sWBPY2tOavJ0l3tdr3OTu+Kvtm8cd/JV5nFt657b1VqGltxg9olOEfofXWw==", "cpu": [ - "ia32" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.41.0.tgz", - "integrity": "sha512-h1J+Yzjo/X+0EAvR2kIXJDuTuyT7drc+t2ALY0nIcGPbTatNOf0VWdhEA2Z4AAjv6X1NJV7SYo5oCTYRJhSlVA==", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.11.tgz", + "integrity": "sha512-/PzKqzAJ03i19oy2ItPvyvaVjOjBCNnfaJs8yvUdGBKmiESgnrJSQ2awd81QzFbbnAmu7YO9ZnJrDCb9VSJPRA==", "cpu": [ "x64" ], @@ -1086,57 +294,15 @@ "optional": true, "os": [ "win32" - ] - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", - "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.20.7" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@types/estree": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", - "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "dev": true, "license": "MIT" }, @@ -1161,85 +327,34 @@ } }, "node_modules/@vitejs/plugin-react": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz", - "integrity": "sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.1.tgz", + "integrity": "sha512-yxLaQV9gkhS8ezJqCM6+ndU7mDY6gqAg75NQ+0IjwEI8IYOmQCgkRwHKVSfWXW076DsqMo0Dk+0FK1U+M5RgFw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.26.10", - "@babel/plugin-transform-react-jsx-self": "^7.25.9", - "@babel/plugin-transform-react-jsx-source": "^7.25.9", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" + "@rolldown/pluginutils": "^1.0.1" }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" - } - }, - "node_modules/browserslist": { - "version": "4.24.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.5.tgz", - "integrity": "sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001716", - "electron-to-chromium": "^1.5.149", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" - }, - "bin": { - "browserslist": "cli.js" + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.145.0", + "vite": "^8.0.0" }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001718", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001718.tgz", - "integrity": "sha512-AflseV1ahcSunK53NfEs9gFWgOEmzr0f+kaMFA4xiLZlr9Hzt7HxcSpIFcnNCUkz6R6dWKa54rUz3HUmI3nVcw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + "babel-plugin-react-compiler": { + "optional": true }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" + "oxc-transform-react": { + "optional": true } - ], - "license": "CC-BY-4.0" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + } }, "node_modules/csstype": { "version": "3.1.3", @@ -1248,92 +363,32 @@ "dev": true, "license": "MIT" }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, "node_modules/detect-libc": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz", - "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "dev": true, "license": "Apache-2.0", - "optional": true, - "peer": true, "engines": { "node": ">=8" } }, - "node_modules/electron-to-chromium": { - "version": "1.5.155", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.155.tgz", - "integrity": "sha512-ps5KcGGmwL8VaeJlvlDlu4fORQpv3+GIcF5I3f9tUKUlJ/wsysh6HU8P5L1XWRYeXfA0oJd4PyM8ds8zTFf6Ng==", + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, - "license": "ISC" - }, - "node_modules/esbuild": { - "version": "0.25.4", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.4.tgz", - "integrity": "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==", - "dev": true, - "hasInstallScript": true, "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, "engines": { - "node": ">=18" + "node": ">=12.0.0" }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.4", - "@esbuild/android-arm": "0.25.4", - "@esbuild/android-arm64": "0.25.4", - "@esbuild/android-x64": "0.25.4", - "@esbuild/darwin-arm64": "0.25.4", - "@esbuild/darwin-x64": "0.25.4", - "@esbuild/freebsd-arm64": "0.25.4", - "@esbuild/freebsd-x64": "0.25.4", - "@esbuild/linux-arm": "0.25.4", - "@esbuild/linux-arm64": "0.25.4", - "@esbuild/linux-ia32": "0.25.4", - "@esbuild/linux-loong64": "0.25.4", - "@esbuild/linux-mips64el": "0.25.4", - "@esbuild/linux-ppc64": "0.25.4", - "@esbuild/linux-riscv64": "0.25.4", - "@esbuild/linux-s390x": "0.25.4", - "@esbuild/linux-x64": "0.25.4", - "@esbuild/netbsd-arm64": "0.25.4", - "@esbuild/netbsd-x64": "0.25.4", - "@esbuild/openbsd-arm64": "0.25.4", - "@esbuild/openbsd-x64": "0.25.4", - "@esbuild/sunos-x64": "0.25.4", - "@esbuild/win32-arm64": "0.25.4", - "@esbuild/win32-ia32": "0.25.4", - "@esbuild/win32-x64": "0.25.4" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, "node_modules/fsevents": { @@ -1351,16 +406,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/globals": { "version": "16.1.0", "resolved": "https://registry.npmjs.org/globals/-/globals-16.1.0.tgz", @@ -1374,59 +419,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jiti": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", - "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/lightningcss": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz", - "integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", "dev": true, "license": "MPL-2.0", - "optional": true, - "peer": true, "dependencies": { "detect-libc": "^2.0.3" }, @@ -1438,22 +436,44 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "lightningcss-darwin-arm64": "1.30.1", - "lightningcss-darwin-x64": "1.30.1", - "lightningcss-freebsd-x64": "1.30.1", - "lightningcss-linux-arm-gnueabihf": "1.30.1", - "lightningcss-linux-arm64-gnu": "1.30.1", - "lightningcss-linux-arm64-musl": "1.30.1", - "lightningcss-linux-x64-gnu": "1.30.1", - "lightningcss-linux-x64-musl": "1.30.1", - "lightningcss-win32-arm64-msvc": "1.30.1", - "lightningcss-win32-x64-msvc": "1.30.1" + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/lightningcss-darwin-arm64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz", - "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", "cpu": [ "arm64" ], @@ -1463,7 +483,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1473,9 +492,9 @@ } }, "node_modules/lightningcss-darwin-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz", - "integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", "cpu": [ "x64" ], @@ -1485,7 +504,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1495,9 +513,9 @@ } }, "node_modules/lightningcss-freebsd-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz", - "integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", "cpu": [ "x64" ], @@ -1507,7 +525,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1517,9 +534,9 @@ } }, "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz", - "integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", "cpu": [ "arm" ], @@ -1529,7 +546,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1539,9 +555,9 @@ } }, "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz", - "integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", "cpu": [ "arm64" ], @@ -1551,7 +567,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1561,9 +576,9 @@ } }, "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz", - "integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", "cpu": [ "arm64" ], @@ -1573,7 +588,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1583,9 +597,9 @@ } }, "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz", - "integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", "cpu": [ "x64" ], @@ -1595,7 +609,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1605,9 +618,9 @@ } }, "node_modules/lightningcss-linux-x64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz", - "integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", "cpu": [ "x64" ], @@ -1617,7 +630,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1627,9 +639,9 @@ } }, "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz", - "integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", "cpu": [ "arm64" ], @@ -1639,7 +651,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1649,9 +660,9 @@ } }, "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz", - "integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==", + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", "cpu": [ "x64" ], @@ -1661,7 +672,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -1670,27 +680,10 @@ "url": "https://opencollective.com/parcel" } }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "dev": true, "funding": [ { @@ -1706,13 +699,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -1720,10 +706,23 @@ "dev": true, "license": "ISC" }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/postcss": { - "version": "8.5.3", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", - "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "dev": true, "funding": [ { @@ -1741,7 +740,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.8", + "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -1770,54 +769,38 @@ "react": "^19.1.0" } }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/rollup": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.41.0.tgz", - "integrity": "sha512-HqMFpUbWlf/tvcxBFNKnJyzc7Lk+XO3FGc3pbNBLqEbOz0gPLRgcrlS3UF4MfUrVlstOaP/q0kM6GVvi+LrLRg==", + "node_modules/rolldown": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.11.tgz", + "integrity": "sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "1.0.7" + "@oxc-project/types": "=0.151.0", + "@rolldown/pluginutils": "^1.0.0" }, "bin": { - "rollup": "dist/bin/rollup" + "rolldown": "bin/cli.mjs" }, "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" + "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.41.0", - "@rollup/rollup-android-arm64": "4.41.0", - "@rollup/rollup-darwin-arm64": "4.41.0", - "@rollup/rollup-darwin-x64": "4.41.0", - "@rollup/rollup-freebsd-arm64": "4.41.0", - "@rollup/rollup-freebsd-x64": "4.41.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.41.0", - "@rollup/rollup-linux-arm-musleabihf": "4.41.0", - "@rollup/rollup-linux-arm64-gnu": "4.41.0", - "@rollup/rollup-linux-arm64-musl": "4.41.0", - "@rollup/rollup-linux-loongarch64-gnu": "4.41.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.41.0", - "@rollup/rollup-linux-riscv64-gnu": "4.41.0", - "@rollup/rollup-linux-riscv64-musl": "4.41.0", - "@rollup/rollup-linux-s390x-gnu": "4.41.0", - "@rollup/rollup-linux-x64-gnu": "4.41.0", - "@rollup/rollup-linux-x64-musl": "4.41.0", - "@rollup/rollup-win32-arm64-msvc": "4.41.0", - "@rollup/rollup-win32-ia32-msvc": "4.41.0", - "@rollup/rollup-win32-x64-msvc": "4.41.0", - "fsevents": "~2.3.2" + "@rolldown/binding-android-arm-eabi": "1.2.11", + "@rolldown/binding-android-arm64": "1.2.11", + "@rolldown/binding-darwin-arm64": "1.2.11", + "@rolldown/binding-darwin-x64": "1.2.11", + "@rolldown/binding-freebsd-x64": "1.2.11", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.11", + "@rolldown/binding-linux-arm64-gnu": "1.2.11", + "@rolldown/binding-linux-arm64-musl": "1.2.11", + "@rolldown/binding-linux-ppc64-gnu": "1.2.11", + "@rolldown/binding-linux-s390x-gnu": "1.2.11", + "@rolldown/binding-linux-x64-gnu": "1.2.11", + "@rolldown/binding-linux-x64-musl": "1.2.11", + "@rolldown/binding-openharmony-arm64": "1.2.11", + "@rolldown/binding-win32-arm64-msvc": "1.2.11", + "@rolldown/binding-win32-x64-msvc": "1.2.11" } }, "node_modules/scheduler": { @@ -1826,16 +809,6 @@ "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", "license": "MIT" }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -1847,14 +820,14 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", - "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" + "fdir": "^6.5.0", + "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" @@ -1863,34 +836,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.4.4", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", - "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/typescript": { "version": "5.8.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", @@ -1905,56 +850,24 @@ "node": ">=14.17" } }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, "node_modules/vite": { - "version": "6.3.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz", - "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz", + "integrity": "sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.9", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -1963,14 +876,15 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" @@ -1979,13 +893,16 @@ "@types/node": { "optional": true }, - "jiti": { + "@vitejs/devtools": { "optional": true }, - "less": { + "esbuild": { + "optional": true + }, + "jiti": { "optional": true }, - "lightningcss": { + "less": { "optional": true }, "sass": { @@ -2010,41 +927,6 @@ "optional": true } } - }, - "node_modules/vite/node_modules/fdir": { - "version": "6.4.4", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", - "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/vite/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" } } } diff --git a/playground/package.json b/playground/package.json index df187855..d8f6493b 100644 --- a/playground/package.json +++ b/playground/package.json @@ -17,9 +17,9 @@ "@eslint/js": "^9.25.0", "@types/react": "^19.1.2", "@types/react-dom": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "globals": "^16.0.0", "typescript": "~5.8.3", - "vite": "^6.3.5" + "vite": "^8.3.1" } } diff --git a/playground/src/App.fs b/playground/src/App.fs index d7a86080..64607be9 100644 --- a/playground/src/App.fs +++ b/playground/src/App.fs @@ -7,7 +7,4 @@ open Fable.Core.JsInterop open Shared [] -let App() = - Html.div [ - Components.Main() - ] +let App () = Html.div [ Components.Main() ] diff --git a/playground/src/Shared.fs b/playground/src/Shared.fs index ad7a77c2..8bff71fe 100644 --- a/playground/src/Shared.fs +++ b/playground/src/Shared.fs @@ -1,10 +1,9 @@ module Shared -type TestRecord = - { - Name: string - Age: int - } +type TestRecord = { + Name: string + Age: int +} with member this.Greet() = sprintf "Hello, my name is %s and I am %i years old." this.Name this.Age diff --git a/playground/src/UseElmishExample.fs b/playground/src/UseElmishExample.fs index 94a0d3bb..3cddfda9 100644 --- a/playground/src/UseElmishExample.fs +++ b/playground/src/UseElmishExample.fs @@ -61,9 +61,10 @@ module CleanupHarness = addEventListener "my-custom-event" handler - { new System.IDisposable with - member _.Dispose() = - removeEventListener "my-custom-event" handler + { + new System.IDisposable with + member _.Dispose() = + removeEventListener "my-custom-event" handler } ) ] diff --git a/src/Feliz.CompilerPlugins/Hook.fs b/src/Feliz.CompilerPlugins/Hook.fs index f267dcf7..048fb5b6 100644 --- a/src/Feliz.CompilerPlugins/Hook.fs +++ b/src/Feliz.CompilerPlugins/Hook.fs @@ -11,6 +11,7 @@ type HookAttribute() = /// Transforms call-site into createElement calls override _.TransformCall(compiler, memb, expr) = let membArgs = memb.CurriedParameterGroups |> List.concat + match expr with | Fable.Call(callee, info, typeInfo, range) -> let callee = @@ -18,36 +19,37 @@ type HookAttribute() = | Fable.Expr.IdentExpr ident -> if not (ident.Name.StartsWith "use") then Fable.Expr.IdentExpr { ident with Name = "use" + ident.Name } - else + else callee | Fable.Expr.Import(importInfo, fableType, sourceLocation) -> // apply prefix "use" from hook imports from different modules/files - let selector = + let selector = if not (importInfo.Selector.StartsWith "use") then "use" + importInfo.Selector - else + else importInfo.Selector + let modifiedImportInfo = { importInfo with Selector = selector } Fable.Expr.Import(modifiedImportInfo, fableType, sourceLocation) - | _ -> - callee + | _ -> callee Fable.Call(callee, info, typeInfo, range) - | _ -> - expr + | _ -> expr override this.Transform(compiler, file, decl) = let info = compiler.GetMember(decl.MemberRef) + if info.IsValue || info.IsGetter || info.IsSetter then // Invalid attribute usage - let errorMessage = sprintf "Expecting a function declation for %s when using []" decl.Name - compiler.LogWarning(errorMessage, ?range=decl.Body.Range) + let errorMessage = + sprintf "Expecting a function declation for %s when using []" decl.Name + + compiler.LogWarning(errorMessage, ?range = decl.Body.Range) decl + else if not (decl.Name.StartsWith "use") then + // only apply "use" prefix if the declaration doesn't already have it + { decl with Name = "use" + decl.Name } else - if not (decl.Name.StartsWith "use") then - // only apply "use" prefix if the declaration doesn't already have it - { decl with Name = "use" + decl.Name } - else - // hook function already start with "use", keep it as-is - decl \ No newline at end of file + // hook function already start with "use", keep it as-is + decl diff --git a/src/Feliz.CompilerPlugins/PathUtils.fs b/src/Feliz.CompilerPlugins/PathUtils.fs index 3849f322..711449f4 100644 --- a/src/Feliz.CompilerPlugins/PathUtils.fs +++ b/src/Feliz.CompilerPlugins/PathUtils.fs @@ -4,23 +4,26 @@ module Feliz.PathUtils open System open System.IO -let isRelativeImport (path: string) = - path.StartsWith(".") +let isRelativeImport (path: string) = path.StartsWith(".") /// Resolve relative import path based on F# source file path. -/// +/// /// This function is used on [] to resolve the relative importPath /// based on the F# source file location. let resolveReactComponentPaths (fsharpPath: string) (reactImport: string) = - if isRelativeImport(reactImport) |> not then + if isRelativeImport (reactImport) |> not then reactImport else - let norm (s:string) = if String.IsNullOrEmpty(s) then s else s.Replace("\\", "/") + let norm (s: string) = + if String.IsNullOrEmpty(s) then s else s.Replace("\\", "/") + let original = norm fsharpPath + let dir = match Path.GetDirectoryName(original) with - | null | "" -> "." + | null + | "" -> "." | d -> norm d /// Append import path to f# source file directory, some examples: @@ -28,12 +31,15 @@ let resolveReactComponentPaths (fsharpPath: string) (reactImport: string) = /// Exmp2: "./NestedFolder/./JsNative/Counter" /// Exmp3: "./NestedFolder/../Counter" /// Exmp4: "./NestedFolder1/NestedFolder2/NestedFolder3/../../Counter" - let combined = sprintf "%s/%s" (dir.TrimEnd('/')) ((norm reactImport).TrimStart('/')) - let parts = combined.Split([| '/' |], StringSplitOptions.RemoveEmptyEntries) |> Array.toList + let combined = + sprintf "%s/%s" (dir.TrimEnd('/')) ((norm reactImport).TrimStart('/')) + + let parts = + combined.Split([| '/' |], StringSplitOptions.RemoveEmptyEntries) |> Array.toList /// Core logic: /// 1. Remove all "." segments - /// 2. For ".." segments, pop the last valid segment from the stack if possible; otherwise, keep the ".." + /// 2. For ".." segments, pop the last valid segment from the stack if possible; otherwise, keep the ".." /// Example: /// combined path: "./NestedFolder1/NestedFolder2/NestedFolder3/../../Counter" /// stack: [], segments: ["."; "NestedFolder1"; "NestedFolder2"; "NestedFolder3"; ".."; ".."; "Counter"] # rmv "." @@ -47,15 +53,15 @@ let resolveReactComponentPaths (fsharpPath: string) (reactImport: string) = let rec normalize stack segments = match segments with | [] -> stack - | "."::xs -> normalize stack xs - | ".."::xs -> + | "." :: xs -> normalize stack xs + | ".." :: xs -> match List.rev stack with - | [] -> normalize (".."::stack) xs - | h::_ when h = ".." -> normalize (".."::stack) xs // last stack is also "..", cannot pop + | [] -> normalize (".." :: stack) xs + | h :: _ when h = ".." -> normalize (".." :: stack) xs // last stack is also "..", cannot pop | _ -> // last stack is path segment, can pop - let popped = List.rev stack |> List.tail |> List.rev + let popped = List.rev stack |> List.tail |> List.rev normalize popped xs - | x::xs -> normalize (stack @ [x]) xs + | x :: xs -> normalize (stack @ [ x ]) xs let normalized = normalize [] parts let result = String.Join("/", normalized) @@ -65,7 +71,11 @@ let resolveReactComponentPaths (fsharpPath: string) (reactImport: string) = // doesn't start with ".."; otherwise return as-is. let startedWithDot = original.StartsWith("./") - if result = "" then if startedWithDot then "./" else "." - elif result.StartsWith("..") then result - elif startedWithDot then "./" + result - else result + if result = "" then + if startedWithDot then "./" else "." + elif result.StartsWith("..") then + result + elif startedWithDot then + "./" + result + else + result diff --git a/src/Feliz.CompilerPlugins/PrimitiveElementWithChildren.fs b/src/Feliz.CompilerPlugins/PrimitiveElementWithChildren.fs index b5a43b74..3a13b3f5 100644 --- a/src/Feliz.CompilerPlugins/PrimitiveElementWithChildren.fs +++ b/src/Feliz.CompilerPlugins/PrimitiveElementWithChildren.fs @@ -53,4 +53,4 @@ open Fable.AST // | _ -> // expr // -// override this.Transform(logger, decl) = decl \ No newline at end of file +// override this.Transform(logger, decl) = decl diff --git a/src/Feliz.CompilerPlugins/StringSyntax.fs b/src/Feliz.CompilerPlugins/StringSyntax.fs index d35abc3a..b39e8964 100644 --- a/src/Feliz.CompilerPlugins/StringSyntax.fs +++ b/src/Feliz.CompilerPlugins/StringSyntax.fs @@ -1,14 +1,18 @@ -#if !NET7_0_OR_GREATER +#if !NET7_0_OR_GREATER namespace System.Diagnostics.CodeAnalysis + open System /// /// Backport of StringSyntaxAttribute from .NET 7+ for use in earlier framework versions. /// Specifies the syntax used in a string for enhanced IDE support (e.g., syntax highlighting, autocomplete). /// -[] +[] type internal StringSyntaxAttribute - /// /// Initializes a new instance of the class with the identifier of the syntax used. /// @@ -22,7 +26,7 @@ type internal StringSyntaxAttribute /// Initializes a new instance of the class with the identifier of the syntax used. /// /// The syntax identifier. - new (syntax: string) = StringSyntaxAttribute(syntax, [||]) + new(syntax: string) = StringSyntaxAttribute(syntax, [||]) /// Gets the identifier of the syntax used. member val public Syntax = syntax with get diff --git a/src/Feliz.Delay/Delay.fs b/src/Feliz.Delay/Delay.fs index 40f7429b..613c3eb3 100644 --- a/src/Feliz.Delay/Delay.fs +++ b/src/Feliz.Delay/Delay.fs @@ -7,7 +7,7 @@ open System.ComponentModel [] module Delay = - [] + [] module Types = type IDelayProperty = interface end type IDelaySuspenseProperty = interface end @@ -17,119 +17,133 @@ module Delay = abstract children: ReactElement abstract waitFor: int option abstract fallback: ReactElement option - + [] type DelaySuspenseProps = abstract children: ReactElement list abstract delay: DelayProps option - [] + [] module Interop = [] let inline mkDelayAttr (key: string) (value: obj) = unbox(key, value) [] - let inline mkDelaySuspenseAttr (key: string) (value: obj) = unbox(key, value) - + let inline mkDelaySuspenseAttr (key: string) (value: obj) = + unbox(key, value) + [] [] - let DelayComp(input: DelayProps) = - let ct = FsReact.useCancellationToken() + let DelayComp (input: DelayProps) = + let ct = FsReact.useCancellationToken () let timeElapsed, setTimeElapsed = React.useState false - let setTimeElapsed = React.useCallback(setTimeElapsed) + let setTimeElapsed = React.useCallback (setTimeElapsed) - React.useEffectOnce(fun () -> + React.useEffectOnce (fun () -> async { - do! Async.Sleep (Option.defaultValue 100 input.waitFor) + do! Async.Sleep(Option.defaultValue 100 input.waitFor) printfn "setTimeElapsed called" setTimeElapsed true } |> fun a -> Async.StartImmediate(a, ct.current) ) - if timeElapsed then input.children - else Option.defaultValue Html.none input.fallback - + if timeElapsed then + input.children + else + Option.defaultValue Html.none input.fallback + [] - #if FABLE_COMPILER +#if FABLE_COMPILER let inline delaySuspenseComp (input: DelaySuspenseProps) = - #else +#else let delaySuspenseComp (input: DelaySuspenseProps) = - #endif - #if DEBUG - if input.children.IsEmpty then - JS.console.error("No elements provided to React.delayedSuspense!", input) - #endif +#endif +#if DEBUG + if input.children.IsEmpty then + JS.console.error ("No elements provided to React.delayedSuspense!", input) +#endif - Option.defaultValue (unbox {| children = Html.none |}) input.delay + Option.defaultValue (unbox {| children = Html.none |}) input.delay |> fun delayProps -> React.Suspense(input.children, fallback = DelayComp delayProps) [] type delay = /// Element that will be displayed after the delay. - static member inline children (element: ReactElement) = Interop.mkDelayAttr "children" element + static member inline children(element: ReactElement) = Interop.mkDelayAttr "children" element + /// Elements that will be displayed after the delay. - static member inline children (elements: ReactElement list) = Interop.mkDelayAttr "children" (React.Fragment elements) - + static member inline children(elements: ReactElement list) = + Interop.mkDelayAttr "children" (React.Fragment elements) + /// Time in ms to wait before displaying the children. /// /// Defaults to 100 ms. - static member inline waitFor (value: int) = Interop.mkDelayAttr "waitFor" value - + static member inline waitFor(value: int) = Interop.mkDelayAttr "waitFor" value + /// Element to render for the duration of the delay. /// /// Defaults to Html.none. - static member inline fallback (element: ReactElement) = Interop.mkDelayAttr "fallback" element + static member inline fallback(element: ReactElement) = Interop.mkDelayAttr "fallback" element + /// Elements to render for the duration of the delay. /// /// Defaults to Html.none. - static member inline fallback (elements: ReactElement list) = Interop.mkDelayAttr "fallback" (React.Fragment elements) + static member inline fallback(elements: ReactElement list) = + Interop.mkDelayAttr "fallback" (React.Fragment elements) [] type delaySuspense = /// The elements to render when the suspense and delay resolves. - static member inline children (elements: ReactElement list) = Interop.mkDelaySuspenseAttr "children" elements - + static member inline children(elements: ReactElement list) = + Interop.mkDelaySuspenseAttr "children" elements + /// Properties to forward to the delay fallback component. - static member inline delay (properties: IDelayProperty list) = Interop.mkDelaySuspenseAttr "delay" (createObj !!properties) + static member inline delay(properties: IDelayProperty list) = + Interop.mkDelaySuspenseAttr "delay" (createObj !!properties) + /// Properties to forward to the delay fallback component. - static member inline delay (elements: ReactElement list) = delaySuspense.delay [ delay.children elements ] + static member inline delay(elements: ReactElement list) = + delaySuspense.delay [ delay.children elements ] type React with /// /// Delays rendering the children of this component for a given period of time. - /// + /// /// Optionally renders a provided component instead for that duration. /// /// The properties for the React.delay component. - static member inline delay (properties: IDelayProperty list) = DelayComp (unbox(createObj !!properties)) + static member inline delay(properties: IDelayProperty list) = + DelayComp(unbox(createObj !!properties)) + /// /// Delays rendering the children of this component for 100ms, rendering nothing for the duration. /// /// The components to render inside the React.delay component. - static member inline delay (children: ReactElement list) = React.delay [ delay.children children ] - + static member inline delay(children: ReactElement list) = React.delay [ delay.children children ] + /// /// React.suspense that uses the React.delay component as the fallback. /// /// The properties for the React.delaySuspense component. - static member inline delaySuspense (properties: IDelaySuspenseProperty list) = delaySuspenseComp (unbox(createObj !!properties)) + static member inline delaySuspense(properties: IDelaySuspenseProperty list) = + delaySuspenseComp (unbox(createObj !!properties)) + /// /// React.suspense that uses the React.delay component as the fallback. /// /// The components to render inside the React.suspense component. - static member inline delaySuspense (children: ReactElement list) = + static member inline delaySuspense(children: ReactElement list) = React.delaySuspense [ delaySuspense.children children ] + /// /// React.suspense that uses the React.delay component as the fallback. /// /// The components to render inside the React.suspense component. /// The fallback component to render *after* the delay. - static member inline delaySuspense (children: ReactElement list, fallback: ReactElement) = + static member inline delaySuspense(children: ReactElement list, fallback: ReactElement) = React.delaySuspense [ - delaySuspense.children children + delaySuspense.children children - delaySuspense.delay [ - fallback - ] + delaySuspense.delay [ fallback ] ] diff --git a/src/Feliz.Delay/Templates.fs b/src/Feliz.Delay/Templates.fs index 3d44e0e1..b4ce066a 100644 --- a/src/Feliz.Delay/Templates.fs +++ b/src/Feliz.Delay/Templates.fs @@ -4,7 +4,7 @@ open Fable.Core open Feliz open Feliz.Delay -[] +[] module React = type Templates = /// @@ -13,7 +13,7 @@ module React = /// The properties for the React.delay component. /// /// The components to render inside the React.delay component. - /// + /// /// This will override a declaration of delay.children in the template. /// static member inline delay (properties: IDelayProperty list) (children: ReactElement list) = @@ -28,7 +28,7 @@ module React = /// /// The properties for the React.delay component. /// The components to render inside the React.suspense component. - static member inline delaySuspense (delayProperties: IDelayProperty list) (children: ReactElement list) = + static member inline delaySuspense (delayProperties: IDelayProperty list) (children: ReactElement list) = React.delaySuspense [ delaySuspense.children children diff --git a/src/Feliz.Kawaii/Kawaii.fs b/src/Feliz.Kawaii/Kawaii.fs index 357554aa..fb6344d4 100644 --- a/src/Feliz.Kawaii/Kawaii.fs +++ b/src/Feliz.Kawaii/Kawaii.fs @@ -14,27 +14,38 @@ type Mood = | [] KO type Kawaii = - [] - static member Backpack(?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Browser (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Cat(?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Chocolate (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member CreditCard (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member File(?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Folder(?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Ghost(?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member IceCream (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Mug (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member Planet (?size:int, ?color:string, ?mood: Mood) = React.Imported() - [] - static member SpeechBubble (?size:int, ?color:string, ?mood: Mood) = React.Imported() + [] + static member Backpack(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Browser(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Cat(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Chocolate(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member CreditCard(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member File(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Folder(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Ghost(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member IceCream(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Mug(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member Planet(?size: int, ?color: string, ?mood: Mood) = React.Imported() + + [] + static member SpeechBubble(?size: int, ?color: string, ?mood: Mood) = React.Imported() diff --git a/src/Feliz.Listeners/Listener.fs b/src/Feliz.Listeners/Listener.fs index 281befd0..854d9e8d 100644 --- a/src/Feliz.Listeners/Listener.fs +++ b/src/Feliz.Listeners/Listener.fs @@ -22,15 +22,13 @@ module Impl = let mutable passive = false try - if isWindowDefined() && isWindowListenerFunction() then - let options = - jsOptions(fun o -> - o.passive <- true - ) - - window.addEventListener("testPassiveEventSupport", ignore, options) - window.removeEventListener("testPassiveEventSupport", ignore) - with _ -> () + if isWindowDefined () && isWindowListenerFunction () then + let options = jsOptions(fun o -> o.passive <- true) + + window.addEventListener ("testPassiveEventSupport", ignore, options) + window.removeEventListener ("testPassiveEventSupport", ignore) + with _ -> + () passive @@ -45,461 +43,1232 @@ module Impl = o.once <- options.once o.passive <- false ) - else options) + else + options + ) let createRemoveOptions (maybeOptions: AddEventListenerOptions option) = maybeOptions |> Option.bind (fun options -> - if options.capture then - Some (jsOptions(fun o -> o.capture <- true)) - else None) + if options.capture then + Some(jsOptions(fun o -> o.capture <- true)) + else + None + ) -[] +[] module React = [] type useListener = - static member inline on (eventType: string, action: #Event -> unit, ?options: AddEventListenerOptions) = - let addOptions = React.useMemo((fun () -> Impl.adjustPassive options), [| options |]) - let removeOptions = React.useMemo((fun () -> Impl.createRemoveOptions options), [| options |]) - let fn = React.useMemo((fun () -> unbox<#Event> >> action), [| action |]) - - let listener = React.useCallback(fun () -> - match addOptions with - | Some options -> document.addEventListener(eventType, fn, options) - | None -> document.addEventListener(eventType, fn) - - FsReact.createDisposable(fun () -> - match removeOptions with - | Some options -> document.removeEventListener(eventType, fn, options) - | None -> document.removeEventListener(eventType, fn) + static member inline on(eventType: string, action: #Event -> unit, ?options: AddEventListenerOptions) = + let addOptions = + React.useMemo ((fun () -> Impl.adjustPassive options), [| options |]) + + let removeOptions = + React.useMemo ((fun () -> Impl.createRemoveOptions options), [| options |]) + + let fn = React.useMemo ((fun () -> unbox<#Event> >> action), [| action |]) + + let listener = + React.useCallback (fun () -> + match addOptions with + | Some options -> document.addEventListener (eventType, fn, options) + | None -> document.addEventListener (eventType, fn) + + FsReact.createDisposable (fun () -> + match removeOptions with + | Some options -> document.removeEventListener (eventType, fn, options) + | None -> document.removeEventListener (eventType, fn) + ) ) - ) - - React.useEffect(listener) - - static member inline onAbort (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("abort", action, ?options = options) - static member inline onAbort (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("abort", action, ?options = options) - static member inline onAnimationCancel (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("animationcancel", action, ?options = options) - static member inline onAnimationEnd (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("animationend", action, ?options = options) - static member inline onAnimationIteration (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("animationiteration", action, ?options = options) - static member inline onAnimationStart (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("animationstart", action, ?options = options) - static member inline onAuxClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("onauxclick", action, ?options = options) - static member inline onBlur (action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("blur", action, ?options = options) - static member inline onCancel (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("oncancel", action, ?options = options) - static member inline onCanPlay (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("canplay", action, ?options = options) - static member inline onCanPlayThrough (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("canplaythrough", action, ?options = options) - static member inline onChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("change", action, ?options = options) - static member inline onClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("click", action, ?options = options) - static member inline onClose (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("onclose", action, ?options = options) - static member inline onContextMenu (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("contextmenu", action, ?options = options) - static member inline onCopy (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("copy", action, ?options = options) - static member inline onCueChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("oncuechange", action, ?options = options) - static member inline onCut (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("cut", action, ?options = options) - static member inline onDblClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dblClick", action, ?options = options) - static member inline onDOMContentLoaded (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("DOMContentLoaded", action, ?options = options) - static member inline onDrag (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("drag", action, ?options = options) - static member inline onDragEnd (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragend", action, ?options = options) - static member inline onDragEnter (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragenter", action, ?options = options) - static member inline onDragExit (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragexit", action, ?options = options) - static member inline onDragLeave (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragleave", action, ?options = options) - static member inline onDragOver (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragover", action, ?options = options) - static member inline onDragStart (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("dragstart", action, ?options = options) - static member inline onDrop (action: DragEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("drop", action, ?options = options) - static member inline onDurationChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("durationchange", action, ?options = options) - static member inline onEmptied (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("emptied", action, ?options = options) - static member inline onEnded (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("ended", action, ?options = options) - static member inline onError (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("error", action, ?options = options) - static member inline onError (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("error", action, ?options = options) - static member inline onFocus (action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("focus", action, ?options = options) - static member inline onFormData (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("formdata", action, ?options = options) - static member inline onFullscreenChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("fullscreenchange", action, ?options = options) - static member inline onFullscreenError (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("fullscreenerror", action, ?options = options) - static member inline onGotPointerCapture (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("gotPointercapture", action, ?options = options) - static member inline onInput (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("input", action, ?options = options) - static member inline onInvalid (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("invalid", action, ?options = options) - static member inline onKeyDown (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("keydown", action, ?options = options) - static member inline onKeyPress (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("keypress", action, ?options = options) - static member inline onKeyUp (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("keyup", action, ?options = options) - static member inline onLoad (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("load", action, ?options = options) - static member inline onLoad (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("load", action, ?options = options) - static member inline onLoadedData (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("loadeddata", action, ?options = options) - static member inline onLoadedMetadata (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("loadedmetadata", action, ?options = options) - static member inline onLoadEnd (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("loadend", action, ?options = options) - static member inline onLoadStart (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("loadstart", action, ?options = options) - static member inline onLostPointerCapture (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("lostpointercapture", action, ?options = options) - static member inline onMouseDown (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mousedown", action, ?options = options) - static member inline onMouseEnter (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mouseenter", action, ?options = options) - static member inline onMouseLeave (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mouseleave", action, ?options = options) - static member inline onMouseMove (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mousemove", action, ?options = options) - static member inline onMouseOut (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mouseout", action, ?options = options) - static member inline onMouseOver (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mouseover", action, ?options = options) - static member inline onMouseUp (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("mouseup", action, ?options = options) - static member inline onPaste (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("paste", action, ?options = options) - static member inline onPause (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("pause", action, ?options = options) - static member inline onPlay (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("play", action, ?options = options) - static member inline onPlaying (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("playing", action, ?options = options) - static member inline onPointerCancel (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointercancel", action, ?options = options) - static member inline onPointerDown (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerdown", action, ?options = options) - static member inline onPointerEnter (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerenter", action, ?options = options) - static member inline onPointerLeave (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerleave", action, ?options = options) - static member inline onPointerMove (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointermove", action, ?options = options) - static member inline onPointerOut (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerout", action, ?options = options) - static member inline onPointerOver (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerover", action, ?options = options) - static member inline onPointerUp (action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("pointerup", action, ?options = options) - static member inline onProgress (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("progress", action, ?options = options) - static member inline onRateChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("ratechange", action, ?options = options) - static member inline onReadyStateChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("readystatechange", action, ?options = options) - static member inline onReset (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("reset", action, ?options = options) - static member inline onResize (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("resize", action, ?options = options) - static member inline onScroll (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("scroll", action, ?options = options) - static member inline onSeeked (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("seeked", action, ?options = options) - static member inline onSeeking (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("seeking", action, ?options = options) - static member inline onSelect (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("select", action, ?options = options) - static member inline onSelectionChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("selectionchange", action, ?options = options) - static member inline onSelectStart (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("selectstart", action, ?options = options) - static member inline onStalled (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("stalled", action, ?options = options) - static member inline onSubmit (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("submit", action, ?options = options) - static member inline onSuspend (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("suspend", action, ?options = options) - static member inline onTimeUpdate (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("timeupdate", action, ?options = options) - static member inline onTouchCancel (action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("touchcancel", action, ?options = options) - static member inline onTouchEnd (action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("touchend", action, ?options = options) - static member inline onTouchMove (action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("touchmove", action, ?options = options) - static member inline onTouchStart (action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("touchstart", action, ?options = options) - static member inline onTransitionCancel (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("transitioncancel", action, ?options = options) - static member inline onTransitionEnd (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("transitionend", action, ?options = options) - static member inline onTransitionRun (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("transitionrun", action, ?options = options) - static member inline onTransitionStart (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("transitionstart", action, ?options = options) - static member inline onVisibilityChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("visibilitychange", action, ?options = options) - static member inline onVolumeChange (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("volumechange", action, ?options = options) - static member inline onWaiting (action: Event -> unit, ?options: AddEventListenerOptions) = useListener.on("waiting", action, ?options = options) - static member inline onWheel (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useListener.on("wheel", action, ?options = options) + + React.useEffect (listener) + + static member inline onAbort(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("abort", action, ?options = options) + + static member inline onAbort(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("abort", action, ?options = options) + + static member inline onAnimationCancel(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("animationcancel", action, ?options = options) + + static member inline onAnimationEnd(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("animationend", action, ?options = options) + + static member inline onAnimationIteration(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("animationiteration", action, ?options = options) + + static member inline onAnimationStart(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("animationstart", action, ?options = options) + + static member inline onAuxClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("onauxclick", action, ?options = options) + + static member inline onBlur(action: FocusEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("blur", action, ?options = options) + + static member inline onCancel(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("oncancel", action, ?options = options) + + static member inline onCanPlay(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("canplay", action, ?options = options) + + static member inline onCanPlayThrough(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("canplaythrough", action, ?options = options) + + static member inline onChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("change", action, ?options = options) + + static member inline onClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("click", action, ?options = options) + + static member inline onClose(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("onclose", action, ?options = options) + + static member inline onContextMenu(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("contextmenu", action, ?options = options) + + static member inline onCopy(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("copy", action, ?options = options) + + static member inline onCueChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("oncuechange", action, ?options = options) + + static member inline onCut(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("cut", action, ?options = options) + + static member inline onDblClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dblClick", action, ?options = options) + + static member inline onDOMContentLoaded(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("DOMContentLoaded", action, ?options = options) + + static member inline onDrag(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("drag", action, ?options = options) + + static member inline onDragEnd(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragend", action, ?options = options) + + static member inline onDragEnter(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragenter", action, ?options = options) + + static member inline onDragExit(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragexit", action, ?options = options) + + static member inline onDragLeave(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragleave", action, ?options = options) + + static member inline onDragOver(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragover", action, ?options = options) + + static member inline onDragStart(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("dragstart", action, ?options = options) + + static member inline onDrop(action: DragEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("drop", action, ?options = options) + + static member inline onDurationChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("durationchange", action, ?options = options) + + static member inline onEmptied(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("emptied", action, ?options = options) + + static member inline onEnded(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("ended", action, ?options = options) + + static member inline onError(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("error", action, ?options = options) + + static member inline onError(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("error", action, ?options = options) + + static member inline onFocus(action: FocusEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("focus", action, ?options = options) + + static member inline onFormData(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("formdata", action, ?options = options) + + static member inline onFullscreenChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("fullscreenchange", action, ?options = options) + + static member inline onFullscreenError(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("fullscreenerror", action, ?options = options) + + static member inline onGotPointerCapture(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("gotPointercapture", action, ?options = options) + + static member inline onInput(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("input", action, ?options = options) + + static member inline onInvalid(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("invalid", action, ?options = options) + + static member inline onKeyDown(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("keydown", action, ?options = options) + + static member inline onKeyPress(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("keypress", action, ?options = options) + + static member inline onKeyUp(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("keyup", action, ?options = options) + + static member inline onLoad(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("load", action, ?options = options) + + static member inline onLoad(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("load", action, ?options = options) + + static member inline onLoadedData(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("loadeddata", action, ?options = options) + + static member inline onLoadedMetadata(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("loadedmetadata", action, ?options = options) + + static member inline onLoadEnd(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("loadend", action, ?options = options) + + static member inline onLoadStart(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("loadstart", action, ?options = options) + + static member inline onLostPointerCapture(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("lostpointercapture", action, ?options = options) + + static member inline onMouseDown(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mousedown", action, ?options = options) + + static member inline onMouseEnter(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mouseenter", action, ?options = options) + + static member inline onMouseLeave(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mouseleave", action, ?options = options) + + static member inline onMouseMove(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mousemove", action, ?options = options) + + static member inline onMouseOut(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mouseout", action, ?options = options) + + static member inline onMouseOver(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mouseover", action, ?options = options) + + static member inline onMouseUp(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("mouseup", action, ?options = options) + + static member inline onPaste(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("paste", action, ?options = options) + + static member inline onPause(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pause", action, ?options = options) + + static member inline onPlay(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("play", action, ?options = options) + + static member inline onPlaying(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("playing", action, ?options = options) + + static member inline onPointerCancel(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointercancel", action, ?options = options) + + static member inline onPointerDown(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerdown", action, ?options = options) + + static member inline onPointerEnter(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerenter", action, ?options = options) + + static member inline onPointerLeave(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerleave", action, ?options = options) + + static member inline onPointerMove(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointermove", action, ?options = options) + + static member inline onPointerOut(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerout", action, ?options = options) + + static member inline onPointerOver(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerover", action, ?options = options) + + static member inline onPointerUp(action: PointerEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("pointerup", action, ?options = options) + + static member inline onProgress(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("progress", action, ?options = options) + + static member inline onRateChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("ratechange", action, ?options = options) + + static member inline onReadyStateChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("readystatechange", action, ?options = options) + + static member inline onReset(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("reset", action, ?options = options) + + static member inline onResize(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("resize", action, ?options = options) + + static member inline onScroll(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("scroll", action, ?options = options) + + static member inline onSeeked(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("seeked", action, ?options = options) + + static member inline onSeeking(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("seeking", action, ?options = options) + + static member inline onSelect(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("select", action, ?options = options) + + static member inline onSelectionChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("selectionchange", action, ?options = options) + + static member inline onSelectStart(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("selectstart", action, ?options = options) + + static member inline onStalled(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("stalled", action, ?options = options) + + static member inline onSubmit(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("submit", action, ?options = options) + + static member inline onSuspend(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("suspend", action, ?options = options) + + static member inline onTimeUpdate(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("timeupdate", action, ?options = options) + + static member inline onTouchCancel(action: TouchEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("touchcancel", action, ?options = options) + + static member inline onTouchEnd(action: TouchEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("touchend", action, ?options = options) + + static member inline onTouchMove(action: TouchEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("touchmove", action, ?options = options) + + static member inline onTouchStart(action: TouchEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("touchstart", action, ?options = options) + + static member inline onTransitionCancel(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("transitioncancel", action, ?options = options) + + static member inline onTransitionEnd(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("transitionend", action, ?options = options) + + static member inline onTransitionRun(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("transitionrun", action, ?options = options) + + static member inline onTransitionStart(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("transitionstart", action, ?options = options) + + static member inline onVisibilityChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("visibilitychange", action, ?options = options) + + static member inline onVolumeChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("volumechange", action, ?options = options) + + static member inline onWaiting(action: Event -> unit, ?options: AddEventListenerOptions) = + useListener.on ("waiting", action, ?options = options) + + static member inline onWheel(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useListener.on ("wheel", action, ?options = options) /// Invokes the callback when a click event is not within the given element. /// /// Uses separate handlers for touch and mouse events. /// /// This listener is passive by default. - static member inline onClickAway (elemRef: IRefValue<#HTMLElement option>, callback: MouseEvent -> unit, touchCallback: TouchEvent -> unit, ?options: AddEventListenerOptions) = + static member inline onClickAway + ( + elemRef: IRefValue<#HTMLElement option>, + callback: MouseEvent -> unit, + touchCallback: TouchEvent -> unit, + ?options: AddEventListenerOptions + ) = let options = Option.defaultValue Impl.defaultPassive options - useListener.onMouseDown((fun ev -> - match elemRef.current with - | Some elem when not (elem.contains(unbox ev.target)) -> - callback ev - | _ -> () - ), options) - - useListener.onTouchStart((fun ev -> - match elemRef.current with - | Some elem when not (elem.contains(unbox ev.target)) -> - touchCallback ev - | _ -> () - ), options) - + useListener.onMouseDown ( + (fun ev -> + match elemRef.current with + | Some elem when not (elem.contains (unbox ev.target)) -> callback ev + | _ -> () + ), + options + ) + + useListener.onTouchStart ( + (fun ev -> + match elemRef.current with + | Some elem when not (elem.contains (unbox ev.target)) -> touchCallback ev + | _ -> () + ), + options + ) + /// Invokes the callback when a click event is not within the given element. /// /// Shares a common callback for both touch and mouse events. /// /// This listener is passive by default. - static member inline onClickAway (elemRef: IRefValue<#HTMLElement option>, callback: UIEvent -> unit, ?options: AddEventListenerOptions) = + static member inline onClickAway + (elemRef: IRefValue<#HTMLElement option>, callback: UIEvent -> unit, ?options: AddEventListenerOptions) + = let options = Option.defaultValue Impl.defaultPassive options - useListener.onMouseDown((fun ev -> - match elemRef.current with - | Some elem when not (elem.contains(unbox ev.target)) -> - callback ev - | _ -> () - ), options) + useListener.onMouseDown ( + (fun ev -> + match elemRef.current with + | Some elem when not (elem.contains (unbox ev.target)) -> callback ev + | _ -> () + ), + options + ) - useListener.onTouchStart((fun ev -> - match elemRef.current with - | Some elem when not (elem.contains(unbox ev.target)) -> - callback ev - | _ -> () - ), options) + useListener.onTouchStart ( + (fun ev -> + match elemRef.current with + | Some elem when not (elem.contains (unbox ev.target)) -> callback ev + | _ -> () + ), + options + ) [] type useElementListener = - static member inline on (elemRef: IRefValue<#HTMLElement option>, eventType: string, action: #Event -> unit, ?options: AddEventListenerOptions) = - let addOptions = React.useMemo((fun () -> Impl.adjustPassive options), [| options |]) - let removeOptions = React.useMemo((fun () -> Impl.createRemoveOptions options), [| options |]) - let fn = React.useMemo((fun () -> unbox<#Event> >> action), [| action |]) + static member inline on + ( + elemRef: IRefValue<#HTMLElement option>, + eventType: string, + action: #Event -> unit, + ?options: AddEventListenerOptions + ) = + let addOptions = + React.useMemo ((fun () -> Impl.adjustPassive options), [| options |]) - let listener = React.useCallback(fun () -> - elemRef.current |> Option.iter(fun elem -> - match addOptions with - | Some options -> elem.addEventListener(eventType, fn, options) - | None -> elem.addEventListener(eventType, fn) + let removeOptions = + React.useMemo ((fun () -> Impl.createRemoveOptions options), [| options |]) + + let fn = React.useMemo ((fun () -> unbox<#Event> >> action), [| action |]) + + let listener = + React.useCallback (fun () -> + elemRef.current + |> Option.iter (fun elem -> + match addOptions with + | Some options -> elem.addEventListener (eventType, fn, options) + | None -> elem.addEventListener (eventType, fn) + ) + + FsReact.createDisposable (fun () -> + elemRef.current + |> Option.iter (fun elem -> + match removeOptions with + | Some options -> elem.removeEventListener (eventType, fn, options) + | None -> elem.removeEventListener (eventType, fn) + ) + ) ) - - FsReact.createDisposable(fun () -> - elemRef.current |> Option.iter(fun elem -> - match removeOptions with - | Some options -> elem.removeEventListener(eventType, fn, options) - | None -> elem.removeEventListener(eventType, fn) - )) - ) - React.useEffect(listener) - - static member inline onAbort (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "abort", action, ?options = options) - static member inline onAbort (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "abort", action, ?options = options) - static member inline onAnimationCancel (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "animationcancel", action, ?options = options) - static member inline onAnimationEnd (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "animationend", action, ?options = options) - static member inline onAnimationIteration (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "animationiteration", action, ?options = options) - static member inline onAnimationStart (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "animationstart", action, ?options = options) - static member inline onAuxClick (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "onauxclick", action, ?options = options) - static member inline onBlur (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "blur", action, ?options = options) - static member inline onCancel (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "oncancel", action, ?options = options) - static member inline onCanPlay (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "canplay", action, ?options = options) - static member inline onCanPlayThrough (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "canplaythrough", action, ?options = options) - static member inline onChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "change", action, ?options = options) - static member inline onClick (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "click", action, ?options = options) - static member inline onClose (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "onclose", action, ?options = options) - static member inline onContextMenu (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "contextmenu", action, ?options = options) - static member inline onCopy (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "copy", action, ?options = options) - static member inline onCueChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "oncuechange", action, ?options = options) - static member inline onCut (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "cut", action, ?options = options) - static member inline onDblClick (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dblClick", action, ?options = options) - static member inline onDOMContentLoaded (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "DOMContentLoaded", action, ?options = options) - static member inline onDrag (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "drag", action, ?options = options) - static member inline onDragEnd (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragend", action, ?options = options) - static member inline onDragEnter (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragenter", action, ?options = options) - static member inline onDragExit (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragexit", action, ?options = options) - static member inline onDragLeave (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragleave", action, ?options = options) - static member inline onDragOver (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragover", action, ?options = options) - static member inline onDragStart (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "dragstart", action, ?options = options) - static member inline onDrop (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "drop", action, ?options = options) - static member inline onDurationChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "durationchange", action, ?options = options) - static member inline onEmptied (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "emptied", action, ?options = options) - static member inline onEnded (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "ended", action, ?options = options) - static member inline onError (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "error", action, ?options = options) - static member inline onError (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "error", action, ?options = options) - static member inline onFocus (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "focus", action, ?options = options) - static member inline onFocusIn (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "focusin", action, ?options = options) - static member inline onFocusOut (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "focusout", action, ?options = options) - static member inline onFormData (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "formdata", action, ?options = options) - static member inline onFullscreenChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "fullscreenchange", action, ?options = options) - static member inline onFullscreenError (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "fullscreenerror", action, ?options = options) - static member inline onGotPointerCapture (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "gotPointercapture", action, ?options = options) - static member inline onInput (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "input", action, ?options = options) - static member inline onInvalid (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "invalid", action, ?options = options) - static member inline onKeyDown (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "keydown", action, ?options = options) - static member inline onKeyPress (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "keypress", action, ?options = options) - static member inline onKeyUp (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "keyup", action, ?options = options) - static member inline onLoad (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "load", action, ?options = options) - static member inline onLoad (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "load", action, ?options = options) - static member inline onLoadedData (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "loadeddata", action, ?options = options) - static member inline onLoadedMetadata (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "loadedmetadata", action, ?options = options) - static member inline onLoadEnd (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "loadend", action, ?options = options) - static member inline onLoadStart (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "loadstart", action, ?options = options) - static member inline onLostPointerCapture (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "lostpointercapture", action, ?options = options) - static member inline onMouseDown (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mousedown", action, ?options = options) - static member inline onMouseEnter (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mouseenter", action, ?options = options) - static member inline onMouseLeave (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mouseleave", action, ?options = options) - static member inline onMouseMove (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mousemove", action, ?options = options) - static member inline onMouseOut (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mouseout", action, ?options = options) - static member inline onMouseOver (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mouseover", action, ?options = options) - static member inline onMouseUp (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "mouseup", action, ?options = options) - static member inline onPaste (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "paste", action, ?options = options) - static member inline onPause (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pause", action, ?options = options) - static member inline onPlay (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "play", action, ?options = options) - static member inline onPlaying (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "playing", action, ?options = options) - static member inline onPointerCancel (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointercancel", action, ?options = options) - static member inline onPointerDown (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerdown", action, ?options = options) - static member inline onPointerEnter (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerenter", action, ?options = options) - static member inline onPointerLeave (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerleave", action, ?options = options) - static member inline onPointerMove (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointermove", action, ?options = options) - static member inline onPointerOut (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerout", action, ?options = options) - static member inline onPointerOver (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerover", action, ?options = options) - static member inline onPointerUp (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "pointerup", action, ?options = options) - static member inline onProgress (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "progress", action, ?options = options) - static member inline onRateChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "ratechange", action, ?options = options) - static member inline onReadyStateChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "readystatechange", action, ?options = options) - static member inline onReset (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "reset", action, ?options = options) - static member inline onResize (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "resize", action, ?options = options) - static member inline onScroll (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "scroll", action, ?options = options) - static member inline onSeeked (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "seeked", action, ?options = options) - static member inline onSeeking (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "seeking", action, ?options = options) - static member inline onSelect (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "select", action, ?options = options) - static member inline onSelectionChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "selectionchange", action, ?options = options) - static member inline onSelectStart (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "selectstart", action, ?options = options) - static member inline onStalled (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "stalled", action, ?options = options) - static member inline onSubmit (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "submit", action, ?options = options) - static member inline onSuspend (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "suspend", action, ?options = options) - static member inline onTimeUpdate (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "timeupdate", action, ?options = options) - static member inline onTouchCancel (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "touchcancel", action, ?options = options) - static member inline onTouchEnd (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "touchend", action, ?options = options) - static member inline onTouchMove (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "touchmove", action, ?options = options) - static member inline onTouchStart (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "touchstart", action, ?options = options) - static member inline onTransitionCancel (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "transitioncancel", action, ?options = options) - static member inline onTransitionEnd (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "transitionend", action, ?options = options) - static member inline onTransitionRun (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "transitionrun", action, ?options = options) - static member inline onTransitionStart (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "transitionstart", action, ?options = options) - static member inline onVisibilityChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "visibilitychange", action, ?options = options) - static member inline onVolumeChange (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "volumechange", action, ?options = options) - static member inline onWaiting (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "waiting", action, ?options = options) - static member inline onWheel (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useElementListener.on(elemRef, "wheel", action, ?options = options) + React.useEffect (listener) + + static member inline onAbort + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "abort", action, ?options = options) + + static member inline onAbort + (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "abort", action, ?options = options) + + static member inline onAnimationCancel + (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "animationcancel", action, ?options = options) + + static member inline onAnimationEnd + (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "animationend", action, ?options = options) + + static member inline onAnimationIteration + (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "animationiteration", action, ?options = options) + + static member inline onAnimationStart + (elemRef: IRefValue<#HTMLElement option>, action: AnimationEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "animationstart", action, ?options = options) + + static member inline onAuxClick + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "onauxclick", action, ?options = options) + + static member inline onBlur + (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "blur", action, ?options = options) + + static member inline onCancel + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "oncancel", action, ?options = options) + + static member inline onCanPlay + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "canplay", action, ?options = options) + + static member inline onCanPlayThrough + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "canplaythrough", action, ?options = options) + + static member inline onChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "change", action, ?options = options) + + static member inline onClick + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "click", action, ?options = options) + + static member inline onClose + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "onclose", action, ?options = options) + + static member inline onContextMenu + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "contextmenu", action, ?options = options) + + static member inline onCopy + (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "copy", action, ?options = options) + + static member inline onCueChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "oncuechange", action, ?options = options) + + static member inline onCut + (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "cut", action, ?options = options) + + static member inline onDblClick + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dblClick", action, ?options = options) + + static member inline onDOMContentLoaded + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "DOMContentLoaded", action, ?options = options) + + static member inline onDrag + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "drag", action, ?options = options) + + static member inline onDragEnd + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragend", action, ?options = options) + + static member inline onDragEnter + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragenter", action, ?options = options) + + static member inline onDragExit + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragexit", action, ?options = options) + + static member inline onDragLeave + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragleave", action, ?options = options) + + static member inline onDragOver + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragover", action, ?options = options) + + static member inline onDragStart + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "dragstart", action, ?options = options) + + static member inline onDrop + (elemRef: IRefValue<#HTMLElement option>, action: DragEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "drop", action, ?options = options) + + static member inline onDurationChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "durationchange", action, ?options = options) + + static member inline onEmptied + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "emptied", action, ?options = options) + + static member inline onEnded + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "ended", action, ?options = options) + + static member inline onError + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "error", action, ?options = options) + + static member inline onError + (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "error", action, ?options = options) + + static member inline onFocus + (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "focus", action, ?options = options) + + static member inline onFocusIn + (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "focusin", action, ?options = options) + + static member inline onFocusOut + (elemRef: IRefValue<#HTMLElement option>, action: FocusEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "focusout", action, ?options = options) + + static member inline onFormData + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "formdata", action, ?options = options) + + static member inline onFullscreenChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "fullscreenchange", action, ?options = options) + + static member inline onFullscreenError + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "fullscreenerror", action, ?options = options) + + static member inline onGotPointerCapture + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "gotPointercapture", action, ?options = options) + + static member inline onInput + (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "input", action, ?options = options) + + static member inline onInvalid + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "invalid", action, ?options = options) + + static member inline onKeyDown + (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "keydown", action, ?options = options) + + static member inline onKeyPress + (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "keypress", action, ?options = options) + + static member inline onKeyUp + (elemRef: IRefValue<#HTMLElement option>, action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "keyup", action, ?options = options) + + static member inline onLoad + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "load", action, ?options = options) + + static member inline onLoad + (elemRef: IRefValue<#HTMLElement option>, action: UIEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "load", action, ?options = options) + + static member inline onLoadedData + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "loadeddata", action, ?options = options) + + static member inline onLoadedMetadata + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "loadedmetadata", action, ?options = options) + + static member inline onLoadEnd + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "loadend", action, ?options = options) + + static member inline onLoadStart + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "loadstart", action, ?options = options) + + static member inline onLostPointerCapture + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "lostpointercapture", action, ?options = options) + + static member inline onMouseDown + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mousedown", action, ?options = options) + + static member inline onMouseEnter + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mouseenter", action, ?options = options) + + static member inline onMouseLeave + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mouseleave", action, ?options = options) + + static member inline onMouseMove + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mousemove", action, ?options = options) + + static member inline onMouseOut + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mouseout", action, ?options = options) + + static member inline onMouseOver + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mouseover", action, ?options = options) + + static member inline onMouseUp + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "mouseup", action, ?options = options) + + static member inline onPaste + (elemRef: IRefValue<#HTMLElement option>, action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "paste", action, ?options = options) + + static member inline onPause + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pause", action, ?options = options) + + static member inline onPlay + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "play", action, ?options = options) + + static member inline onPlaying + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "playing", action, ?options = options) + + static member inline onPointerCancel + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointercancel", action, ?options = options) + + static member inline onPointerDown + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerdown", action, ?options = options) + + static member inline onPointerEnter + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerenter", action, ?options = options) + + static member inline onPointerLeave + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerleave", action, ?options = options) + + static member inline onPointerMove + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointermove", action, ?options = options) + + static member inline onPointerOut + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerout", action, ?options = options) + + static member inline onPointerOver + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerover", action, ?options = options) + + static member inline onPointerUp + (elemRef: IRefValue<#HTMLElement option>, action: PointerEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "pointerup", action, ?options = options) + + static member inline onProgress + (elemRef: IRefValue<#HTMLElement option>, action: ProgressEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "progress", action, ?options = options) + + static member inline onRateChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "ratechange", action, ?options = options) + + static member inline onReadyStateChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "readystatechange", action, ?options = options) + + static member inline onReset + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "reset", action, ?options = options) + + static member inline onResize + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "resize", action, ?options = options) + + static member inline onScroll + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "scroll", action, ?options = options) + + static member inline onSeeked + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "seeked", action, ?options = options) + + static member inline onSeeking + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "seeking", action, ?options = options) + + static member inline onSelect + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "select", action, ?options = options) + + static member inline onSelectionChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "selectionchange", action, ?options = options) + + static member inline onSelectStart + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "selectstart", action, ?options = options) + + static member inline onStalled + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "stalled", action, ?options = options) + + static member inline onSubmit + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "submit", action, ?options = options) + + static member inline onSuspend + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "suspend", action, ?options = options) + + static member inline onTimeUpdate + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "timeupdate", action, ?options = options) + + static member inline onTouchCancel + (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "touchcancel", action, ?options = options) + + static member inline onTouchEnd + (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "touchend", action, ?options = options) + + static member inline onTouchMove + (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "touchmove", action, ?options = options) + + static member inline onTouchStart + (elemRef: IRefValue<#HTMLElement option>, action: TouchEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "touchstart", action, ?options = options) + + static member inline onTransitionCancel + (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useElementListener.on (elemRef, "transitioncancel", action, ?options = options) + + static member inline onTransitionEnd + (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useElementListener.on (elemRef, "transitionend", action, ?options = options) + + static member inline onTransitionRun + (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useElementListener.on (elemRef, "transitionrun", action, ?options = options) + + static member inline onTransitionStart + (elemRef: IRefValue<#HTMLElement option>, action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useElementListener.on (elemRef, "transitionstart", action, ?options = options) + + static member inline onVisibilityChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "visibilitychange", action, ?options = options) + + static member inline onVolumeChange + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "volumechange", action, ?options = options) + + static member inline onWaiting + (elemRef: IRefValue<#HTMLElement option>, action: Event -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "waiting", action, ?options = options) + + static member inline onWheel + (elemRef: IRefValue<#HTMLElement option>, action: MouseEvent -> unit, ?options: AddEventListenerOptions) + = + useElementListener.on (elemRef, "wheel", action, ?options = options) [] type useStyle = - static member inline onCustom (elemRef: IRefValue<#HTMLElement option>) (styles: IStyleAttribute list) (resolver: #HTMLElement option -> bool) = - let isTrue,setIsTrue = React.useState false - - useElementListener.onChange(elemRef, (fun _ -> - elemRef.current - |> resolver - |> setIsTrue - ), Impl.defaultPassive) - - React.useMemo((fun () -> - if isTrue then styles - else [] - ), [| isTrue :> obj; styles :> obj |]) + static member inline onCustom + (elemRef: IRefValue<#HTMLElement option>) + (styles: IStyleAttribute list) + (resolver: #HTMLElement option -> bool) + = + let isTrue, setIsTrue = React.useState false - static member inline onClick (elemRef: IRefValue<#HTMLElement option>) (styles: IStyleAttribute list) = - let isClicked,setIsClicked = React.useState false - - useElementListener.onClick(elemRef, (fun _ -> setIsClicked (not isClicked)), Impl.defaultPassive) - - React.useMemo((fun () -> - if isClicked then styles - else [] - ), [| isClicked :> obj; styles :> obj |]) - - static member inline onDisabled< ^elem when ^elem :> HTMLElement and ^elem : (member disabled : bool)> (elemRef: IRefValue< ^elem option>) (styles: IStyleAttribute list) = - useStyle.onCustom elemRef styles (fun elem -> - elem - |> Option.map (fun e -> e?disabled) - |> Option.defaultValue false + useElementListener.onChange ( + elemRef, + (fun _ -> elemRef.current |> resolver |> setIsTrue), + Impl.defaultPassive ) + React.useMemo ((fun () -> if isTrue then styles else []), [| isTrue :> obj; styles :> obj |]) + + static member inline onClick (elemRef: IRefValue<#HTMLElement option>) (styles: IStyleAttribute list) = + let isClicked, setIsClicked = React.useState false + + useElementListener.onClick (elemRef, (fun _ -> setIsClicked (not isClicked)), Impl.defaultPassive) + + React.useMemo ((fun () -> if isClicked then styles else []), [| isClicked :> obj; styles :> obj |]) + + static member inline onDisabled< ^elem when ^elem :> HTMLElement and ^elem: (member disabled: bool)> + (elemRef: IRefValue<^elem option>) + (styles: IStyleAttribute list) + = + useStyle.onCustom + elemRef + styles + (fun elem -> elem |> Option.map (fun e -> e?disabled) |> Option.defaultValue false) + static member inline onFocus (elemRef: IRefValue<#HTMLElement option>) (styles: IStyleAttribute list) = - let isFocused,setIsFocused = React.useState false - - useElementListener.onFocusIn(elemRef, (fun _ -> setIsFocused true), Impl.defaultPassive) - useElementListener.onFocusOut(elemRef, (fun _ -> setIsFocused false), Impl.defaultPassive) + let isFocused, setIsFocused = React.useState false - React.useMemo((fun () -> - if isFocused then styles - else [] - ), [| isFocused :> obj; styles :> obj |]) + useElementListener.onFocusIn (elemRef, (fun _ -> setIsFocused true), Impl.defaultPassive) + useElementListener.onFocusOut (elemRef, (fun _ -> setIsFocused false), Impl.defaultPassive) + + React.useMemo ((fun () -> if isFocused then styles else []), [| isFocused :> obj; styles :> obj |]) static member inline onHover (elemRef: IRefValue<#HTMLElement option>) (styles: IStyleAttribute list) = - let isHovered,setIsHovered = React.useState false - - useElementListener.onMouseEnter(elemRef, (fun _ -> setIsHovered true), Impl.defaultPassive) - useElementListener.onMouseLeave(elemRef, (fun _ -> setIsHovered false), Impl.defaultPassive) - - React.useMemo((fun () -> - if isHovered then styles - else [] - ), [| isHovered :> obj; styles :> obj |]) - - static member inline onInvalid< ^elem when ^elem :> HTMLElement and ^elem : (member validity : ValidityState)> (elemRef: IRefValue< ^elem option>) (styles: IStyleAttribute list) = - useStyle.onCustom elemRef styles (fun elem -> - elem - |> Option.map (fun e -> - JS.console.log(e?validity?valid) - not e?validity?valid) - |> Option.defaultValue false - ) + let isHovered, setIsHovered = React.useState false - static member inline onValid< ^elem when ^elem :> HTMLElement and ^elem : (member validity : ValidityState)> (elemRef: IRefValue< ^elem option>) (styles: IStyleAttribute list) = - useStyle.onCustom elemRef styles (fun elem -> - elem - |> Option.map (fun e -> - JS.console.log(e?validity?valid) - e?validity?valid) - |> Option.defaultValue false - ) + useElementListener.onMouseEnter (elemRef, (fun _ -> setIsHovered true), Impl.defaultPassive) + useElementListener.onMouseLeave (elemRef, (fun _ -> setIsHovered false), Impl.defaultPassive) + + React.useMemo ((fun () -> if isHovered then styles else []), [| isHovered :> obj; styles :> obj |]) + + static member inline onInvalid< ^elem when ^elem :> HTMLElement and ^elem: (member validity: ValidityState)> + (elemRef: IRefValue<^elem option>) + (styles: IStyleAttribute list) + = + useStyle.onCustom + elemRef + styles + (fun elem -> + elem + |> Option.map (fun e -> + JS.console.log (e?validity?valid) + not e?validity?valid + ) + |> Option.defaultValue false + ) + + static member inline onValid< ^elem when ^elem :> HTMLElement and ^elem: (member validity: ValidityState)> + (elemRef: IRefValue<^elem option>) + (styles: IStyleAttribute list) + = + useStyle.onCustom + elemRef + styles + (fun elem -> + elem + |> Option.map (fun e -> + JS.console.log (e?validity?valid) + e?validity?valid + ) + |> Option.defaultValue false + ) [] type useWindowListener = - static member inline on (eventType: string, action: #Event -> unit, ?options: AddEventListenerOptions) = - let addOptions = React.useMemo((fun () -> Impl.adjustPassive options), [| options |]) - let removeOptions = React.useMemo((fun () -> Impl.createRemoveOptions options), [| options |]) - let fn = React.useMemo((fun () -> unbox<#Event> >> action), [| action |]) - - let listener = React.useCallback(fun () -> - match addOptions with - | Some options -> window.addEventListener(eventType, fn, options) - | None -> window.addEventListener(eventType, fn) - - FsReact.createDisposable(fun () -> - match removeOptions with - | Some options -> window.removeEventListener(eventType, fn, options) - | None -> window.removeEventListener(eventType, fn) + static member inline on(eventType: string, action: #Event -> unit, ?options: AddEventListenerOptions) = + let addOptions = + React.useMemo ((fun () -> Impl.adjustPassive options), [| options |]) + + let removeOptions = + React.useMemo ((fun () -> Impl.createRemoveOptions options), [| options |]) + + let fn = React.useMemo ((fun () -> unbox<#Event> >> action), [| action |]) + + let listener = + React.useCallback (fun () -> + match addOptions with + | Some options -> window.addEventListener (eventType, fn, options) + | None -> window.addEventListener (eventType, fn) + + FsReact.createDisposable (fun () -> + match removeOptions with + | Some options -> window.removeEventListener (eventType, fn, options) + | None -> window.removeEventListener (eventType, fn) + ) ) - ) - - React.useEffect(listener) - - static member inline onAbort (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("abort", action, ?options = options) - static member inline onAbort (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("abort", action, ?options = options) - static member inline onAnimationCancel (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("animationcancel", action, ?options = options) - static member inline onAnimationEnd (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("animationend", action, ?options = options) - static member inline onAnimationIteration (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("animationiteration", action, ?options = options) - static member inline onAnimationStart (action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("animationstart", action, ?options = options) - static member inline onAuxClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("onauxclick", action, ?options = options) - static member inline onAfterPrint (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("afterprint", action, ?options = options) - static member inline onBeforeInstallPrompt (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("beforeinstallprompt", action, ?options = options) - static member inline onBeforePrint (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("beforeprint", action, ?options = options) - static member inline onBeforeUnload (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("beforeunload", action, ?options = options) - static member inline onBlur (action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("blur", action, ?options = options) - static member inline onChange (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("change", action, ?options = options) - static member inline onClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("click", action, ?options = options) - static member inline onClipboardChange (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("clipboardchange", action, ?options = options) - static member inline onClose (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("onclose", action, ?options = options) - static member inline onContextMenu (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("contextmenu", action, ?options = options) - static member inline onCopy (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("copy", action, ?options = options) - static member inline onCut (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("cut", action, ?options = options) - static member inline onDblClick (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("dblClick", action, ?options = options) - static member inline onDeviceMotion (action: DeviceMotionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("devicemotion", action, ?options = options) - static member inline onDeviceOrientation (action: DeviceOrientationEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("deviceorientation", action, ?options = options) - static member inline onDOMContentLoaded (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("DOMContentLoaded", action, ?options = options) - static member inline onDurationChange (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("durationchange", action, ?options = options) - static member inline onError (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("error", action, ?options = options) - static member inline onError (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("error", action, ?options = options) - static member inline onFocus (action: FocusEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("focus", action, ?options = options) - static member inline onHashChange (action: HashChangeEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("hashchange", action, ?options = options) - static member inline onInput (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("input", action, ?options = options) - static member inline onInvalid (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("invalid", action, ?options = options) - static member inline onKeyDown (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("keydown", action, ?options = options) - static member inline onKeyPress (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("keypress", action, ?options = options) - static member inline onKeyUp (action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("keyup", action, ?options = options) - static member inline onLanguageChange (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("languagechange", action, ?options = options) - static member inline onLoad (action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("load", action, ?options = options) - static member inline onLoad (action: UIEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("load", action, ?options = options) - static member inline onMessage (action: MessageEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("message", action, ?options = options) - static member inline onMessageError (action: MessageEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("message", action, ?options = options) - static member inline onMouseDown (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mousedown", action, ?options = options) - static member inline onMouseEnter (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mouseenter", action, ?options = options) - static member inline onMouseLeave (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mouseleave", action, ?options = options) - static member inline onMouseMove (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mousemove", action, ?options = options) - static member inline onMouseOut (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mouseout", action, ?options = options) - static member inline onMouseOver (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mouseover", action, ?options = options) - static member inline onMouseUp (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("mouseup", action, ?options = options) - static member inline onOffline (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("offline", action, ?options = options) - static member inline onOnline (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("online", action, ?options = options) - static member inline onOrientationChange (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("orientationchange", action, ?options = options) - static member inline onPageHide (action: PageTransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("onPageHide", action, ?options = options) - static member inline onPageShow (action: PageTransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("onPageShow", action, ?options = options) - static member inline onPaste (action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("paste", action, ?options = options) - static member inline onPopState (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("popstate", action, ?options = options) - static member inline onRejectionHandled (action: PromiseRejectionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("rejectionhandled", action, ?options = options) - static member inline onReset (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("reset", action, ?options = options) - static member inline onResize (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("resize", action, ?options = options) - static member inline onScroll (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("scroll", action, ?options = options) - static member inline onSelect (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("select", action, ?options = options) - static member inline onSelectionChange (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("selectionchange", action, ?options = options) - static member inline onSelectStart (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("selectstart", action, ?options = options) - static member inline onStorage (action: StorageEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("storage", action, ?options = options) - static member inline onSubmit (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("submit", action, ?options = options) - static member inline onTransitionCancel (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("transitioncancel", action, ?options = options) - static member inline onTransitionEnd (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("transitionend", action, ?options = options) - static member inline onTransitionRun (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("transitionrun", action, ?options = options) - static member inline onTransitionStart (action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("transitionstart", action, ?options = options) - static member inline onUnhandledRejection (action: PromiseRejectionEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("unhandledrejection", action, ?options = options) - static member inline onUnload (action: Event -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("unload", action, ?options = options) - static member inline onWheel (action: MouseEvent -> unit, ?options: AddEventListenerOptions) = useWindowListener.on("wheel", action, ?options = options) + + React.useEffect (listener) + + static member inline onAbort(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("abort", action, ?options = options) + + static member inline onAbort(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("abort", action, ?options = options) + + static member inline onAnimationCancel(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("animationcancel", action, ?options = options) + + static member inline onAnimationEnd(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("animationend", action, ?options = options) + + static member inline onAnimationIteration(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("animationiteration", action, ?options = options) + + static member inline onAnimationStart(action: AnimationEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("animationstart", action, ?options = options) + + static member inline onAuxClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("onauxclick", action, ?options = options) + + static member inline onAfterPrint(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("afterprint", action, ?options = options) + + static member inline onBeforeInstallPrompt(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("beforeinstallprompt", action, ?options = options) + + static member inline onBeforePrint(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("beforeprint", action, ?options = options) + + static member inline onBeforeUnload(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("beforeunload", action, ?options = options) + + static member inline onBlur(action: FocusEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("blur", action, ?options = options) + + static member inline onChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("change", action, ?options = options) + + static member inline onClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("click", action, ?options = options) + + static member inline onClipboardChange(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("clipboardchange", action, ?options = options) + + static member inline onClose(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("onclose", action, ?options = options) + + static member inline onContextMenu(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("contextmenu", action, ?options = options) + + static member inline onCopy(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("copy", action, ?options = options) + + static member inline onCut(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("cut", action, ?options = options) + + static member inline onDblClick(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("dblClick", action, ?options = options) + + static member inline onDeviceMotion(action: DeviceMotionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("devicemotion", action, ?options = options) + + static member inline onDeviceOrientation + (action: DeviceOrientationEvent -> unit, ?options: AddEventListenerOptions) + = + useWindowListener.on ("deviceorientation", action, ?options = options) + + static member inline onDOMContentLoaded(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("DOMContentLoaded", action, ?options = options) + + static member inline onDurationChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("durationchange", action, ?options = options) + + static member inline onError(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("error", action, ?options = options) + + static member inline onError(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("error", action, ?options = options) + + static member inline onFocus(action: FocusEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("focus", action, ?options = options) + + static member inline onHashChange(action: HashChangeEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("hashchange", action, ?options = options) + + static member inline onInput(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("input", action, ?options = options) + + static member inline onInvalid(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("invalid", action, ?options = options) + + static member inline onKeyDown(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("keydown", action, ?options = options) + + static member inline onKeyPress(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("keypress", action, ?options = options) + + static member inline onKeyUp(action: KeyboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("keyup", action, ?options = options) + + static member inline onLanguageChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("languagechange", action, ?options = options) + + static member inline onLoad(action: ProgressEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("load", action, ?options = options) + + static member inline onLoad(action: UIEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("load", action, ?options = options) + + static member inline onMessage(action: MessageEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("message", action, ?options = options) + + static member inline onMessageError(action: MessageEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("message", action, ?options = options) + + static member inline onMouseDown(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mousedown", action, ?options = options) + + static member inline onMouseEnter(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mouseenter", action, ?options = options) + + static member inline onMouseLeave(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mouseleave", action, ?options = options) + + static member inline onMouseMove(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mousemove", action, ?options = options) + + static member inline onMouseOut(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mouseout", action, ?options = options) + + static member inline onMouseOver(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mouseover", action, ?options = options) + + static member inline onMouseUp(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("mouseup", action, ?options = options) + + static member inline onOffline(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("offline", action, ?options = options) + + static member inline onOnline(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("online", action, ?options = options) + + static member inline onOrientationChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("orientationchange", action, ?options = options) + + static member inline onPageHide(action: PageTransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("onPageHide", action, ?options = options) + + static member inline onPageShow(action: PageTransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("onPageShow", action, ?options = options) + + static member inline onPaste(action: ClipboardEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("paste", action, ?options = options) + + static member inline onPopState(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("popstate", action, ?options = options) + + static member inline onRejectionHandled + (action: PromiseRejectionEvent -> unit, ?options: AddEventListenerOptions) + = + useWindowListener.on ("rejectionhandled", action, ?options = options) + + static member inline onReset(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("reset", action, ?options = options) + + static member inline onResize(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("resize", action, ?options = options) + + static member inline onScroll(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("scroll", action, ?options = options) + + static member inline onSelect(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("select", action, ?options = options) + + static member inline onSelectionChange(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("selectionchange", action, ?options = options) + + static member inline onSelectStart(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("selectstart", action, ?options = options) + + static member inline onStorage(action: StorageEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("storage", action, ?options = options) + + static member inline onSubmit(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("submit", action, ?options = options) + + static member inline onTransitionCancel(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("transitioncancel", action, ?options = options) + + static member inline onTransitionEnd(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("transitionend", action, ?options = options) + + static member inline onTransitionRun(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("transitionrun", action, ?options = options) + + static member inline onTransitionStart(action: TransitionEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("transitionstart", action, ?options = options) + + static member inline onUnhandledRejection + (action: PromiseRejectionEvent -> unit, ?options: AddEventListenerOptions) + = + useWindowListener.on ("unhandledrejection", action, ?options = options) + + static member inline onUnload(action: Event -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("unload", action, ?options = options) + + static member inline onWheel(action: MouseEvent -> unit, ?options: AddEventListenerOptions) = + useWindowListener.on ("wheel", action, ?options = options) diff --git a/src/Feliz.Listeners/PromiseRejectionEvent.fs b/src/Feliz.Listeners/PromiseRejectionEvent.fs index 9d4196ce..9f607ed9 100644 --- a/src/Feliz.Listeners/PromiseRejectionEvent.fs +++ b/src/Feliz.Listeners/PromiseRejectionEvent.fs @@ -7,4 +7,4 @@ type PromiseRejectionEvent = inherit Event abstract promise: JS.Promise - abstract reason: obj \ No newline at end of file + abstract reason: obj diff --git a/src/Feliz.Markdown/Markdown.fs b/src/Feliz.Markdown/Markdown.fs index 4f595c53..fc500015 100644 --- a/src/Feliz.Markdown/Markdown.fs +++ b/src/Feliz.Markdown/Markdown.fs @@ -7,51 +7,51 @@ open Feliz type IMarkdownRenderer = interface end type ICodeProperties = - abstract isInline : bool - abstract className : string - abstract children: ReactElement [] + abstract isInline: bool + abstract className: string + abstract children: ReactElement[] type ITextProperties = abstract children: string type IParagraphProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type ILinkProperties = abstract href: string - abstract children: ReactElement [] + abstract children: ReactElement[] type IHeadingProperties = abstract level: int - abstract children: ReactElement [] + abstract children: ReactElement[] type ITableProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type ITableHeadProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type ITableBodyProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type ITableRowProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type ITableCellProperties = abstract isHeader: bool - abstract children: ReactElement [] + abstract children: ReactElement[] type IListProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type IListItemProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] type IPluginsProperties = - abstract children: ReactElement [] + abstract children: ReactElement[] -type IPreProperties = - abstract children: ReactElement [] +type IPreProperties = + abstract children: ReactElement[] type IComponent = interface end @@ -59,37 +59,74 @@ type IComponent = interface end module markdown = [] type renderers = - static member inline code (render: ICodeProperties -> Fable.React.ReactElement) = - unbox (PropHelper.mkAttr "code" render) + static member inline code(render: ICodeProperties -> Fable.React.ReactElement) = + unbox(PropHelper.mkAttr "code" render) [] type components = - static member inline p(render: IParagraphProperties -> ReactElement) = unbox (PropHelper.mkAttr "p" render) - static member inline a(render: ILinkProperties -> ReactElement) = unbox (PropHelper.mkAttr "a" render) - static member inline h1(render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h1" render) - static member inline h2(render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h2" render) - static member inline h3 (render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h3" render) - static member inline h4(render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h4" render) - static member inline h5 (render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h5" render) - static member inline h6(render: IHeadingProperties -> ReactElement) = unbox (PropHelper.mkAttr "h6" render) - static member inline table(render: ITableProperties -> ReactElement) = unbox (PropHelper.mkAttr "table" render) - static member inline thead(render: ITableHeadProperties -> ReactElement) = unbox (PropHelper.mkAttr "thead" render) - static member inline tbody(render: ITableBodyProperties -> ReactElement) = unbox (PropHelper.mkAttr "tbody" render) - static member inline trow(render: ITableRowProperties -> ReactElement) = unbox (PropHelper.mkAttr "trow" render) - static member inline tcell(render: ITableCellProperties -> ReactElement) = unbox (PropHelper.mkAttr "tcell" render) - static member inline ol(render: IListProperties -> ReactElement) = unbox (PropHelper.mkAttr "ol" render) - static member inline ul(render: IListProperties -> ReactElement) = unbox (PropHelper.mkAttr "ul" render) - static member inline li(render: IListProperties -> ReactElement) = unbox (PropHelper.mkAttr "li" render) - static member inline code(render: ICodeProperties -> ReactElement) = - let renderInternal (props: obj) = - let inputs = createObj [ - "className" ==> emitJsExpr props "$0.className || \"\"" - "children" ==> emitJsExpr props "$0.children || []" - "isInline" ==> emitJsExpr props "$0.inline || false" - ] + static member inline p(render: IParagraphProperties -> ReactElement) = + unbox(PropHelper.mkAttr "p" render) + + static member inline a(render: ILinkProperties -> ReactElement) = + unbox(PropHelper.mkAttr "a" render) + + static member inline h1(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h1" render) + + static member inline h2(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h2" render) + + static member inline h3(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h3" render) + + static member inline h4(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h4" render) + + static member inline h5(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h5" render) + + static member inline h6(render: IHeadingProperties -> ReactElement) = + unbox(PropHelper.mkAttr "h6" render) + + static member inline table(render: ITableProperties -> ReactElement) = + unbox(PropHelper.mkAttr "table" render) + + static member inline thead(render: ITableHeadProperties -> ReactElement) = + unbox(PropHelper.mkAttr "thead" render) + + static member inline tbody(render: ITableBodyProperties -> ReactElement) = + unbox(PropHelper.mkAttr "tbody" render) + + static member inline trow(render: ITableRowProperties -> ReactElement) = + unbox(PropHelper.mkAttr "trow" render) + + static member inline tcell(render: ITableCellProperties -> ReactElement) = + unbox(PropHelper.mkAttr "tcell" render) + + static member inline ol(render: IListProperties -> ReactElement) = + unbox(PropHelper.mkAttr "ol" render) + + static member inline ul(render: IListProperties -> ReactElement) = + unbox(PropHelper.mkAttr "ul" render) + + static member inline li(render: IListProperties -> ReactElement) = + unbox(PropHelper.mkAttr "li" render) + + static member inline code(render: ICodeProperties -> ReactElement) = + let renderInternal (props: obj) = + let inputs = + createObj [ + "className" ==> emitJsExpr props "$0.className || \"\"" + "children" ==> emitJsExpr props "$0.children || []" + "isInline" ==> emitJsExpr props "$0.inline || false" + ] + render (unbox inputs) - unbox (PropHelper.mkAttr "code" renderInternal) - static member inline pre(render: ICodeProperties -> ReactElement) = unbox (PropHelper.mkAttr "pre" render) + + unbox(PropHelper.mkAttr "code" renderInternal) + + static member inline pre(render: ICodeProperties -> ReactElement) = + unbox(PropHelper.mkAttr "pre" render) type INodeType = interface end @@ -126,12 +163,16 @@ type nodeTypes = [] type markdown = - /// The Markdown source to parse + /// The Markdown source to parse [] - static member inline source (value: string) = PropHelper.mkAttr "children" value + static member inline source(value: string) = PropHelper.mkAttr "children" value + /// The Markdown source to parse - static member inline children (value: string) = PropHelper.mkAttr "children" value - static member inline components(components: IComponent list) = PropHelper.mkAttr "components" (createObj !!components) + static member inline children(value: string) = PropHelper.mkAttr "children" value + + static member inline components(components: IComponent list) = + PropHelper.mkAttr "components" (createObj !!components) + /// Setting to `false` will cause HTML to be rendered (see notes below about proper HTML support). Be aware that setting this to false might cause security issues if the input is user-generated. Use at your own risk. (default: `true`). static member inline escapeHtml(value: bool) = PropHelper.mkAttr "escapeHtml" value /// Setting to `true` will skip inlined and blocks of HTML (default: `false`). @@ -140,30 +181,41 @@ type markdown = static member inline sourcePosition(value: bool) = PropHelper.mkAttr "sourcePos" value /// Setting to `true` will pass a sourcePosition property to all renderers with structured source position information (default: `false`). static member inline rawSourcePosition(value: bool) = PropHelper.mkAttr "rawSourcePos" value + /// Setting to `true` will pass index and parentChildCount props to all renderers (default: `false`). - static member inline includeNodeIndex (value: bool) = PropHelper.mkAttr "includeNodeIndex" value + static member inline includeNodeIndex(value: bool) = + PropHelper.mkAttr "includeNodeIndex" value + /// Defines which types of nodes should be allowed (rendered). (default: all types). - static member inline allowedTypes (types: INodeType list) = PropHelper.mkAttr "allowedTypes" (Array.ofList types) + static member inline allowedTypes(types: INodeType list) = + PropHelper.mkAttr "allowedTypes" (Array.ofList types) + /// Defines which types of nodes should be allowed (rendered). (default: all types). - static member inline allowedTypes (types: INodeType array) = PropHelper.mkAttr "allowedTypes" types + static member inline allowedTypes(types: INodeType array) = PropHelper.mkAttr "allowedTypes" types + /// Defines which types of nodes should be disallowed (not rendered). (default: none). - static member inline disallowedTypes (types: INodeType list) = PropHelper.mkAttr "disallowedTypes" (Array.ofList types) + static member inline disallowedTypes(types: INodeType list) = + PropHelper.mkAttr "disallowedTypes" (Array.ofList types) + /// Defines which types of nodes should be disallowed (not rendered). (default: none). - static member inline disallowedTypes (types: INodeType array) = PropHelper.mkAttr "disallowedTypes" types + static member inline disallowedTypes(types: INodeType array) = + PropHelper.mkAttr "disallowedTypes" types + [] - static member inline renderers (renderers: IMarkdownRenderer list) = + static member inline renderers(renderers: IMarkdownRenderer list) = PropHelper.mkAttr "renderers" (createObj !!renderers) - + [] type Markdown = - static member inline markdown (properties: seq) = + static member inline markdown(properties: seq) = ReactLegacy.createElement ( - ``type`` = unbox (importDefault "react-markdown"), + ``type`` = unbox(importDefault "react-markdown"), props = Fable.Core.JsInterop.createObj !!properties ) - static member inline markdown (sourceMarkdown: string) = + + static member inline markdown(sourceMarkdown: string) = ReactLegacy.createElement ( - ``type`` = unbox (importDefault "react-markdown"), + ``type`` = unbox(importDefault "react-markdown"), children = unbox sourceMarkdown ) diff --git a/src/Feliz.PigeonMaps/Map.fs b/src/Feliz.PigeonMaps/Map.fs index c662921e..c44007fd 100644 --- a/src/Feliz.PigeonMaps/Map.fs +++ b/src/Feliz.PigeonMaps/Map.fs @@ -10,94 +10,148 @@ type map = /// Coordinates of the map center in the format [lat, lng]. Use if the component is controlled, e.g. you'll be listening to onBoundsChanged and passing a new center when the bounds change. static member inline center(latitude: float, longitude: float) = PropHelper.mkAttr "center" (ResizeArray [| latitude; longitude |]) + /// Current zoom level, e.g. 12, use for controlled components and update when onBoundsChanged give you a new value. static member inline zoom(value: int) = PropHelper.mkAttr "zoom" value /// Current zoom level, e.g. 12, use for controlled components and update when onBoundsChanged give you a new value. static member inline zoom(value: float) = PropHelper.mkAttr "zoom" value - static member inline provider (handler: (float -> float -> float -> int -> string)) = - let uncurried = System.Func(fun x y z dpr -> handler x y z dpr) + + static member inline provider(handler: (float -> float -> float -> int -> string)) = + let uncurried = + System.Func(fun x y z dpr -> handler x y z dpr) + PropHelper.mkAttr "provider" uncurried + /// Height of the component in pixels. Defaults to 100% of the parent div if not set. static member inline height(value: int) = PropHelper.mkAttr "height" value /// Width of the component in pixels. Defaults to 100% of the parent div if not set. static member inline width(value: int) = PropHelper.mkAttr "width" value /// Enables or disables animations while spanning from place to another or while zooming in or out. - static member inline animate (value: bool) = PropHelper.mkAttr "animate" value + static member inline animate(value: bool) = PropHelper.mkAttr "animate" value /// Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events, Defaults to true. - static member inline zoomSnap (value: bool) = PropHelper.mkAttr "zoomSpan" value + static member inline zoomSnap(value: bool) = PropHelper.mkAttr "zoomSpan" value /// What to show as an attribution. React element or false to hide. - static member inline attribution (value: bool) = PropHelper.mkAttr "attribution" value + static member inline attribution(value: bool) = PropHelper.mkAttr "attribution" value /// What to show as an attribution. React element or false to hide. - static member inline attribution (value: string) = PropHelper.mkAttr "attribution" value + static member inline attribution(value: string) = PropHelper.mkAttr "attribution" value /// What to show as an attribution. React element or false to hide. - static member inline attribution (value: Fable.React.ReactElement) = PropHelper.mkAttr "attribution" value + static member inline attribution(value: Fable.React.ReactElement) = PropHelper.mkAttr "attribution" value + /// Prefix before attribution. React element or false to hide. - static member inline attributionPrefix (value: bool) = PropHelper.mkAttr "attributionPrefix" value + static member inline attributionPrefix(value: bool) = + PropHelper.mkAttr "attributionPrefix" value + /// Prefix before attribution. React element or false to hide. - static member inline attributionPrefix (value: string) = PropHelper.mkAttr "attributionPrefix" value + static member inline attributionPrefix(value: string) = + PropHelper.mkAttr "attributionPrefix" value + /// Prefix before attribution. React element or false to hide. - static member inline attributionPrefix (value: Fable.React.ReactElement) = PropHelper.mkAttr "attributionPrefix" value + static member inline attributionPrefix(value: Fable.React.ReactElement) = + PropHelper.mkAttr "attributionPrefix" value + /// The lowest zoom level possible. Defaults to 1. - static member inline minZoom (value: int) = PropHelper.mkAttr "minZoom" value + static member inline minZoom(value: int) = PropHelper.mkAttr "minZoom" value /// The highest zoom level possible. Defaults to 18. - static member inline maxZoom (value: int) = PropHelper.mkAttr "maxZoom" value + static member inline maxZoom(value: int) = PropHelper.mkAttr "maxZoom" value + /// An array of devicePixelRatios that your tile provider supports. Defaults to []. Pass an array like [1, 2] and the numbers here will be sent to provider as the 4th argument. The responses will be combined into an attribute, which modern browsers use to select tiles with the [right resolution](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Same_size_different_resolutions). - static member inline devicePixelRatios(values: int list) = PropHelper.mkAttr "dprs" (Array.ofList values) + static member inline devicePixelRatios(values: int list) = + PropHelper.mkAttr "dprs" (Array.ofList values) + /// An array of devicePixelRatios that your tile provider supports. Defaults to []. Pass an array like [1, 2] and the numbers here will be sent to provider as the 4th argument. The responses will be combined into an attribute, which modern browsers use to select tiles with the [right resolution](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Resolution_switching_Same_size_different_resolutions). - static member inline devicePixelRatios([]values: int []) = PropHelper.mkAttr "dprs" values + static member inline devicePixelRatios([] values: int[]) = PropHelper.mkAttr "dprs" values + /// Defines the children of the component. Alias for `map.markers`. - static member inline children (children: IMapMarker list) = prop.children (unbox children) + static member inline children(children: IMapMarker list) = + prop.children (unbox children) + /// Defines the map markers - static member inline markers (children: IMapMarker list) = prop.children (unbox children) + static member inline markers(children: IMapMarker list) = + prop.children (unbox children) + /// Can the user interact with the map with the mouse? Defaults to true. - static member inline mouseEvents (value: bool) = PropHelper.mkAttr "mouseEvents" value + static member inline mouseEvents(value: bool) = PropHelper.mkAttr "mouseEvents" value /// Can the user interact with the map by touching it? Defaults to true. - static member inline touchEvents (value: bool) = PropHelper.mkAttr "touchEvents" value + static member inline touchEvents(value: bool) = PropHelper.mkAttr "touchEvents" value /// Zooming with the mouse wheel only works when you hold down the meta (cmd/win) key. Defaults to false. - static member inline metaWheelZoom (value: bool) = PropHelper.mkAttr "metaWheelZoom" value + static member inline metaWheelZoom(value: bool) = PropHelper.mkAttr "metaWheelZoom" value + /// Warning text to show if scrolling on a map with metaWheelZoom enabled, but without the meta key. Defaults to Use META+wheel to zoom!, where META is automatically replaced with either "⌘" or "⊞", depending on Mac vs non-Mac. Set to null to disable. - static member inline metaWheelZoomWarning (value: string) = PropHelper.mkAttr "metaWheelZoomWarning" value + static member inline metaWheelZoomWarning(value: string) = + PropHelper.mkAttr "metaWheelZoomWarning" value + /// Moving the map requires touching with two fingers. Defaults to false. - static member inline twoFingerDrag (value: bool) = PropHelper.mkAttr "twoFingerDrag" value + static member inline twoFingerDrag(value: bool) = PropHelper.mkAttr "twoFingerDrag" value + /// Warning to show when twoFingerDrag and you try to move the map with one finger. Defaults to Use two fingers to move the map. Set to null to disable. - static member inline twoFingerDragWarning (value: string) = PropHelper.mkAttr "twoFingerDragWarning" value + static member inline twoFingerDragWarning(value: string) = + PropHelper.mkAttr "twoFingerDragWarning" value + /// The z-index value for the meta warning. Defaults to 100 - static member inline warningZIndex (value: int) = PropHelper.mkAttr "warningZIndex" value - static member inline onAnimationStart (handler: unit -> unit) = PropHelper.mkAttr "onAnimationStart" handler + static member inline warningZIndex(value: int) = PropHelper.mkAttr "warningZIndex" value + + static member inline onAnimationStart(handler: unit -> unit) = + PropHelper.mkAttr "onAnimationStart" handler + [] - static member inline onAnimationEnd (handler: unit -> unit) = PropHelper.mkAttr "onAnimationEnd" handler - static member inline onAnimationStop (handler: unit -> unit) = PropHelper.mkAttr "onAnimationStop" handler - static member inline onClick (handler: IMapMouseEvent -> unit) = PropHelper.mkAttr "onClick" handler - static member inline onBoundsChanged (handler: IMapBoundsChangedArgs -> unit) = PropHelper.mkAttr "onBoundsChanged" handler + static member inline onAnimationEnd(handler: unit -> unit) = + PropHelper.mkAttr "onAnimationEnd" handler + + static member inline onAnimationStop(handler: unit -> unit) = + PropHelper.mkAttr "onAnimationStop" handler + + static member inline onClick(handler: IMapMouseEvent -> unit) = PropHelper.mkAttr "onClick" handler + + static member inline onBoundsChanged(handler: IMapBoundsChangedArgs -> unit) = + PropHelper.mkAttr "onBoundsChanged" handler module map = [] let internal fromCharCode (n: float) : string = jsNative type provider = - static member openStreetMap : IReactProperty = - "provider" ==> fun x y z dpr -> + static member openStreetMap: IReactProperty = + "provider" + ==> fun x y z dpr -> let s = fromCharCode (x + y + z) - "https://" + s + ".tile.openstreetmap.org/" + - (unbox z) + "/" + (unbox x) + - "/" + (unbox y) + ".png" + "https://" + + s + + ".tile.openstreetmap.org/" + + (unbox z) + + "/" + + (unbox x) + + "/" + + (unbox y) + + ".png" |> unbox - static member stamenToner : IReactProperty = - "provider" ==> fun x y z dpr -> + static member stamenToner: IReactProperty = + "provider" + ==> fun x y z dpr -> let size = if dpr >= 2 then "@2x" else "" - "https://stamen-tiles.a.ssl.fastly.net/toner/" + - (unbox z) + "/" + (unbox x) + "/" + - (unbox y) + size + ".png" + "https://stamen-tiles.a.ssl.fastly.net/toner/" + + (unbox z) + + "/" + + (unbox x) + + "/" + + (unbox y) + + size + + ".png" |> unbox - static member stamenTerrain : IReactProperty = - "provider" ==> fun x y z dpr -> + static member stamenTerrain: IReactProperty = + "provider" + ==> fun x y z dpr -> let size = if dpr >= 2 then "@2x" else "" - "https://stamen-tiles.a.ssl.fastly.net/terrain/" + - (unbox z) + "/" + (unbox x) + "/" + - (unbox y) + size + ".png" + "https://stamen-tiles.a.ssl.fastly.net/terrain/" + + (unbox z) + + "/" + + (unbox x) + + "/" + + (unbox y) + + size + + ".png" |> unbox diff --git a/src/Feliz.PigeonMaps/Marker.fs b/src/Feliz.PigeonMaps/Marker.fs index 04f52a62..bbee9dca 100644 --- a/src/Feliz.PigeonMaps/Marker.fs +++ b/src/Feliz.PigeonMaps/Marker.fs @@ -8,42 +8,43 @@ open Fable.Core.JsInterop type marker = static member inline anchor(latitude: float, longitude: float) = PropHelper.mkAttr "anchor" [| latitude; longitude |] - static member inline offsetLeft (offset: int) = - PropHelper.mkAttr "offsetLeft" offset - static member inline offsetTop (offset: int) = - PropHelper.mkAttr "offsetTop" offset - static member inline onClick (handler: MarkerClickEventArgs -> unit) = - PropHelper.mkAttr "onClick" handler - static member inline onMouseOver (handler: MarkerClickEventArgs -> unit) = - PropHelper.mkAttr "onMouseOver" handler - static member inline onMouseOut (handler: MarkerClickEventArgs -> unit) = - PropHelper.mkAttr "onMouseOut" handler - static member inline onContextMenu (handler: MarkerClickEventArgs -> unit) = + + static member inline offsetLeft(offset: int) = PropHelper.mkAttr "offsetLeft" offset + static member inline offsetTop(offset: int) = PropHelper.mkAttr "offsetTop" offset + static member inline onClick(handler: MarkerClickEventArgs -> unit) = PropHelper.mkAttr "onClick" handler + static member inline onMouseOver(handler: MarkerClickEventArgs -> unit) = PropHelper.mkAttr "onMouseOver" handler + static member inline onMouseOut(handler: MarkerClickEventArgs -> unit) = PropHelper.mkAttr "onMouseOut" handler + + static member inline onContextMenu(handler: MarkerClickEventArgs -> unit) = PropHelper.mkAttr "onContextMenu" handler - static member inline render (handler: IMarkerRenderProperties -> Fable.React.ReactElement) = + + static member inline render(handler: IMarkerRenderProperties -> Fable.React.ReactElement) = PropHelper.mkAttr "render" handler - static member inline render (handler: IMarkerRenderProperties -> Fable.React.ReactElement list) = + + static member inline render(handler: IMarkerRenderProperties -> Fable.React.ReactElement list) = PropHelper.mkAttr "render" (handler >> React.Fragment) [] type marker<'t> = static member inline anchor(latitude: float, longitude: float) = PropHelper.mkAttr "anchor" [| latitude; longitude |] - static member inline payload (value: 't) = - PropHelper.mkAttr "payload" value - static member inline onClick (handler: MarkerClickEventArgs<'t> -> unit) = - PropHelper.mkAttr "onClick" handler - static member inline onMouseOver (handler: MarkerClickEventArgs<'t> -> unit) = + + static member inline payload(value: 't) = PropHelper.mkAttr "payload" value + static member inline onClick(handler: MarkerClickEventArgs<'t> -> unit) = PropHelper.mkAttr "onClick" handler + + static member inline onMouseOver(handler: MarkerClickEventArgs<'t> -> unit) = PropHelper.mkAttr "onMouseOver" handler - static member inline onMouseOut (handler: MarkerClickEventArgs<'t> -> unit) = - PropHelper.mkAttr "onMouseOut" handler - static member inline onContextMenu (handler: MarkerClickEventArgs<'t> -> unit) = + + static member inline onMouseOut(handler: MarkerClickEventArgs<'t> -> unit) = PropHelper.mkAttr "onMouseOut" handler + + static member inline onContextMenu(handler: MarkerClickEventArgs<'t> -> unit) = PropHelper.mkAttr "onContextMenu" handler - static member inline render (handler: IMarkerRenderProperties -> Fable.React.ReactElement) = + + static member inline render(handler: IMarkerRenderProperties -> Fable.React.ReactElement) = PropHelper.mkAttr "render" handler - static member inline render (handler: IMarkerRenderProperties -> Fable.React.ReactElement list) = + + static member inline render(handler: IMarkerRenderProperties -> Fable.React.ReactElement list) = PropHelper.mkAttr "render" (handler >> React.Fragment) - static member inline offsetLeft (offset: int) = - PropHelper.mkAttr "offsetLeft" offset - static member inline offsetTop (offset: int) = - PropHelper.mkAttr "offsetTop" offset + + static member inline offsetLeft(offset: int) = PropHelper.mkAttr "offsetLeft" offset + static member inline offsetTop(offset: int) = PropHelper.mkAttr "offsetTop" offset diff --git a/src/Feliz.PigeonMaps/PigeonMaps.fs b/src/Feliz.PigeonMaps/PigeonMaps.fs index b1e5ebea..5ae02a8e 100644 --- a/src/Feliz.PigeonMaps/PigeonMaps.fs +++ b/src/Feliz.PigeonMaps/PigeonMaps.fs @@ -6,26 +6,30 @@ open Fable.Core.JsInterop module Interop = /// Creates a map marker internally (which is actually `ReactElement`) - let createMarker : obj -> IMapMarker = import "createMarker" "./Marker.js" + let createMarker: obj -> IMapMarker = import "createMarker" "./Marker.js" + [] let objectAssign (x: obj) (y: obj) = jsNative [] type PigeonMaps = - static member inline map (properties: IReactProperty list) = + static member inline map(properties: IReactProperty list) = // use defaults with center at Madrid and zoom at the whole world // this is because pigeon maps throws an exception when center isn't provided - let defaults = createObj [ - "center" ==> [| 40.416775; -3.703790 |] - "zoom" ==> 3 - unbox map.provider.openStreetMap - ] - ReactLegacy.createElement( + let defaults = + createObj [ + "center" ==> [| 40.416775; -3.703790 |] + "zoom" ==> 3 + unbox map.provider.openStreetMap + ] + + ReactLegacy.createElement ( (import "Map" "pigeon-maps" |> unbox), props = Interop.objectAssign defaults (createObj !!properties) ) - static member inline marker (properties: IReactProperty list) = + + static member inline marker(properties: IReactProperty list) = Interop.createMarker (createObj !!properties) - static member inline zoomControl (properties: IReactProperty list) = + static member inline zoomControl(properties: IReactProperty list) = ReactLegacy.createElement (import "ZoomControl" "pigeon-maps" |> unbox, createObj !!properties) diff --git a/src/Feliz.PigeonMaps/Types.fs b/src/Feliz.PigeonMaps/Types.fs index 07234321..1642265f 100644 --- a/src/Feliz.PigeonMaps/Types.fs +++ b/src/Feliz.PigeonMaps/Types.fs @@ -4,36 +4,36 @@ open Fable.Core [] type MarkerClickEventArgs = - abstract anchor : float * float + abstract anchor: float * float [] type MarkerClickEventArgs<'t> = - abstract anchor : float * float + abstract anchor: float * float abstract payload: 't type IMapMarker = interface end [] type IMapMouseEvent = - abstract latLng : (float * float) - abstract pixel : (float * float) - abstract event : Browser.Types.MouseEvent + abstract latLng: (float * float) + abstract pixel: (float * float) + abstract event: Browser.Types.MouseEvent [] type IMapBounds = /// North-East Bounds - abstract ne : (float * float) + abstract ne: (float * float) /// South-West bounds - abstract sw : (float * float) + abstract sw: (float * float) [] type IMapBoundsChangedArgs = - abstract zoom : float - abstract initial : bool - abstract center : (float * float) - abstract bounds : IMapBounds + abstract zoom: float + abstract initial: bool + abstract center: (float * float) + abstract bounds: IMapBounds [] type IMarkerRenderProperties = - abstract anchor : float * float - abstract hovered : bool \ No newline at end of file + abstract anchor: float * float + abstract hovered: bool diff --git a/src/Feliz.Popover/Popover.fs b/src/Feliz.Popover/Popover.fs index 194a924c..5897cf69 100644 --- a/src/Feliz.Popover/Popover.fs +++ b/src/Feliz.Popover/Popover.fs @@ -13,42 +13,51 @@ type IPopoverProperty = interface end [] type popover = /// The popover content. - static member inline body (content: ReactElement list) = - unbox ("body", React.Fragment content) + static member inline body(content: ReactElement list) = + unbox("body", React.Fragment content) + /// Determines Whether or not the popover is rendered. static member inline isOpen(value: bool) = - unbox ("isOpen", value) + unbox("isOpen", value) + /// A callback function executed every time the user does an action (mousedown or touchstart) outside the DOM tree of both Popover and Target. A canonical use-case is to automatically close the Popover on any external user action. - static member inline onOuterAction (handler: unit -> unit) = - unbox ("onOuterAction", fun _ -> handler()) + static member inline onOuterAction(handler: unit -> unit) = + unbox("onOuterAction", fun _ -> handler ()) + /// The polling speed (AKA time between each poll) in milliseconds for checking if a layout refresh is required. This polling is required because it is the only robust way to track the position of a target in the DOM. Defaults to 200. Set to a falsey value to disable. - static member inline refreshIntervalMs (value: int) = - unbox ("refreshIntervalMs", value) + static member inline refreshIntervalMs(value: int) = + unbox("refreshIntervalMs", value) + /// The polling speed (AKA time between each poll) in milliseconds for checking if a layout refresh is required. This polling is required because it is the only robust way to track the position of a target in the DOM. Defaults to 200. Set to a falsey value to disable. - static member inline refreshIntervalMs (value: bool) = - unbox ("refreshIntervalMs", value) + static member inline refreshIntervalMs(value: bool) = + unbox("refreshIntervalMs", value) + /// The amount of time in milliseconds that it takes to complete the enter and exit animation. Defaults to '500'. - static member inline enterExitTransitionDurationMs (value: int) = - unbox ("enterExitTransitionDurationMs", value) + static member inline enterExitTransitionDurationMs(value: int) = + unbox("enterExitTransitionDurationMs", value) + /// The amount of time in milliseconds that it takes to complete the enter and exit animation. Defaults to '500'. - static member inline enterExitTransitionDurationMs (value: bool) = - unbox ("enterExitTransitionDurationMs", value) + static member inline enterExitTransitionDurationMs(value: bool) = + unbox("enterExitTransitionDurationMs", value) + /// Defines the size of the tip pointer. Use .01 to disable tip. Defaults to '7'. - static member inline tipSize (value: float) = - unbox ("tipSize", value) + static member inline tipSize(value: float) = + unbox("tipSize", value) + /// Disables the tip of the popover. When this option is used, then `popover.tipSize` should be omitted. - static member inline disableTip = - unbox ("tipSize", 0.01) + static member inline disableTip = unbox("tipSize", 0.01) + /// The content that this popover will orient itself around. - static member inline children (children: ReactElement list) = - unbox ("children", React.KeyedFragment("popoverChildren", children)) + static member inline children(children: ReactElement list) = + unbox("children", React.KeyedFragment("popoverChildren", children)) [] type Popover = - static member inline popover (properties: IPopoverProperty list) = + static member inline popover(properties: IPopoverProperty list) = let defaults = createObj [ "body" ==> Html.none ] - ReactLegacy.createElement( - (importDefault "react-popover" |> unbox), + + ReactLegacy.createElement ( + (importDefault "react-popover" |> unbox), props = Interop.objectAssign defaults (createObj !!properties) ) @@ -57,42 +66,42 @@ module popover = [] type preferPlace = /// Prefer an explicit side. - static member inline above = unbox ("preferPlace", "above") + static member inline above = unbox("preferPlace", "above") /// Prefer an explicit side. - static member inline right = unbox ("preferPlace", "right") + static member inline right = unbox("preferPlace", "right") /// Prefer an explicit side. - static member inline below = unbox ("preferPlace", "below") + static member inline below = unbox("preferPlace", "below") /// Prefer an explicit side. - static member inline left = unbox ("preferPlace", "left") + static member inline left = unbox("preferPlace", "left") /// Prefer an orientation. - static member inline row = unbox ("preferPlace", "row") + static member inline row = unbox("preferPlace", "row") /// Prefer an orientation. - static member inline column = unbox ("preferPlace", "column") + static member inline column = unbox("preferPlace", "column") /// Prefer an order. - static member inline atStart = unbox ("preferPlace", "start") + static member inline atStart = unbox("preferPlace", "start") /// Prefer an order. - static member inline atEnd = unbox ("preferPlace", "end") + static member inline atEnd = unbox("preferPlace", "end") /// No preference, automatic resolution. This is the default. - static member inline auto = unbox ("preferPlace", null) + static member inline auto = unbox("preferPlace", null) /// Like `preferPlace` except that the given place is a requirement. The resolver becomes scoped or disabled. It is scoped if the place is an orientation or order but disabled if it is a side. For example place: "row" scopes the resolver to above or below placement but place: "above" removes any need for the resolver. [] type place = /// Prefer an explicit side. - static member inline above = unbox ("place", "above") + static member inline above = unbox("place", "above") /// Prefer an explicit side. - static member inline right = unbox ("place", "right") + static member inline right = unbox("place", "right") /// Prefer an explicit side. - static member inline below = unbox ("place", "below") + static member inline below = unbox("place", "below") /// Prefer an explicit side. - static member inline left = unbox ("place", "left") + static member inline left = unbox("place", "left") /// Prefer an orientation. - static member inline row = unbox ("place", "row") + static member inline row = unbox("place", "row") /// Prefer an orientation. - static member inline column = unbox ("place", "column") + static member inline column = unbox("place", "column") /// Prefer an order. - static member inline atStart = unbox ("place", "start") + static member inline atStart = unbox("place", "start") /// Prefer an order. - static member inline atEnd = unbox ("place", "end") + static member inline atEnd = unbox("place", "end") /// No preference, automatic resolution. This is the default. - static member inline auto = unbox ("place", null) + static member inline auto = unbox("place", null) diff --git a/src/Feliz.Recharts/Area.fs b/src/Feliz.Recharts/Area.fs index 67aa7cd5..e59dc8df 100644 --- a/src/Feliz.Recharts/Area.fs +++ b/src/Feliz.Recharts/Area.fs @@ -7,37 +7,53 @@ open Fable.Core.JsInterop [] type area = - static member inline dataKey (value: string) = Interop.mkAreaAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkAreaAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkAreaAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkAreaAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkAreaAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkAreaAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkAreaAttr "dataKey" f - static member inline stroke (color: string) = Interop.mkAreaAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkAreaAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkAreaAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkAreaAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkAreaAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkAreaAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkAreaAttr "fillOpacity" value + static member inline dataKey(value: string) = Interop.mkAreaAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkAreaAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkAreaAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkAreaAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkAreaAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkAreaAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkAreaAttr "dataKey" f + static member inline stroke(color: string) = Interop.mkAreaAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkAreaAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkAreaAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkAreaAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkAreaAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkAreaAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkAreaAttr "fillOpacity" value /// Whether to connect a graph area across null points. Default is `false`. - static member inline connectNulls (value: bool) = Interop.mkAreaAttr "connectNulls" value + static member inline connectNulls(value: bool) = Interop.mkAreaAttr "connectNulls" value /// The unit of data. This option will be used in tooltip. - static member inline unit (value: string) = Interop.mkAreaAttr "unit" value + static member inline unit(value: string) = Interop.mkAreaAttr "unit" value /// The name of data. This option will be used in tooltip and legend to represent a area. If no value was set to this option, the value of `dataKey` will be used alternatively. - static member inline name (value: string) = Interop.mkAreaAttr "name" value + static member inline name(value: string) = Interop.mkAreaAttr "name" value /// The unique id of this component, which will be used to generate unique clip path id internally. static member inline id(value: string) = Interop.mkAreaAttr "id" value + /// If set false, animation of area will be disabled. - static member inline isAnimationActive (value: bool) = Interop.mkAreaAttr "isAnimationActive" value + static member inline isAnimationActive(value: bool) = + Interop.mkAreaAttr "isAnimationActive" value + /// Specifies when the animation should begin, the unit of this option is ms. - static member inline animationBegin (value: int) = Interop.mkAreaAttr "animationBegin" value + static member inline animationBegin(value: int) = + Interop.mkAreaAttr "animationBegin" value + /// Specifies the duration of animation, the unit of this option is ms. Default is `1500ms`. - static member inline animationDuration (value: int) = Interop.mkAreaAttr "animationDuration" value + static member inline animationDuration(value: int) = + Interop.mkAreaAttr "animationDuration" value + /// Specifies the duration of animation. Default is `1500ms`. - static member inline animationDuration (value: TimeSpan) = Interop.mkAreaAttr "animationDuration" value.TotalMilliseconds - static member inline strokeDasharray([] values: int []) = Interop.mkAreaAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") + static member inline animationDuration(value: TimeSpan) = + Interop.mkAreaAttr "animationDuration" value.TotalMilliseconds + + static member inline strokeDasharray([] values: int[]) = + Interop.mkAreaAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") + static member inline monotone = Interop.mkAreaAttr "type" "monotone" static member inline basis = Interop.mkAreaAttr "type" "basis" static member inline basisClosed = Interop.mkAreaAttr "type" "basisClosed" diff --git a/src/Feliz.Recharts/AreaChart.fs b/src/Feliz.Recharts/AreaChart.fs index 12ae18f5..fbdbb6bf 100644 --- a/src/Feliz.Recharts/AreaChart.fs +++ b/src/Feliz.Recharts/AreaChart.fs @@ -7,71 +7,90 @@ open Fable.Core.JsInterop [] type areaChart = /// If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush. - static member inline syncId (value: string) = Interop.mkAreaChartAttr "syncId" value + static member inline syncId(value: string) = Interop.mkAreaChartAttr "syncId" value /// The width of chart container. - static member inline width (value: int) = Interop.mkAreaChartAttr "width" value + static member inline width(value: int) = Interop.mkAreaChartAttr "width" value /// The height of chart container. - static member inline height (value: int) = Interop.mkAreaChartAttr "height" value + static member inline height(value: int) = Interop.mkAreaChartAttr "height" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkAreaChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkAreaChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkAreaChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkAreaChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkAreaChartAttr "data" values + static member inline data(values: 'a array) = Interop.mkAreaChartAttr "data" values + /// The base value of area. - static member inline baseValue (value: int) = Interop.mkAreaChartAttr "baseValue" value + static member inline baseValue(value: int) = + Interop.mkAreaChartAttr "baseValue" value + /// The base value of area. - static member inline baseValue (value: float) = Interop.mkAreaChartAttr "baseValue" value - static member inline children (elements: ReactElement list) = unbox (prop.children elements) + static member inline baseValue(value: float) = + Interop.mkAreaChartAttr "baseValue" value + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkAreaChartAttr "margin" margin - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkAreaChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkAreaChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkAreaChartAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkAreaChartAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkAreaChartAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkAreaChartAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkAreaChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkAreaChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkAreaChartAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkAreaChartAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkAreaChartAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkAreaChartAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs module areaChart = /// The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. Default is `none`. @@ -93,4 +112,4 @@ module areaChart = [] type layout = static member inline horizontal = Interop.mkAreaChartAttr "layout" "horizontal" - static member inline vertical = Interop.mkAreaChartAttr "layout" "vertical" \ No newline at end of file + static member inline vertical = Interop.mkAreaChartAttr "layout" "vertical" diff --git a/src/Feliz.Recharts/Bar.fs b/src/Feliz.Recharts/Bar.fs index 1549b1e8..f7b55ee7 100644 --- a/src/Feliz.Recharts/Bar.fs +++ b/src/Feliz.Recharts/Bar.fs @@ -9,71 +9,95 @@ open Fable.Core.JsInterop type bar = static member inline name(value: string) = Interop.mkBarAttr "name" value static member inline name(value: int) = Interop.mkBarAttr "name" value - static member inline dataKey (value: string) = Interop.mkBarAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkBarAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkBarAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkBarAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkBarAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkBarAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkBarAttr "dataKey" f - static member inline stroke (color: string) = Interop.mkBarAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkBarAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkBarAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkBarAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkBarAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkBarAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkBarAttr "fillOpacity" value - static member inline stackId (value: string) = Interop.mkBarAttr "stackId" value - static member inline xAxisId (value: string) = Interop.mkBarAttr "xAxisId" value - static member inline yAxisId (value: string) = Interop.mkBarAttr "yAxisId" value - static member inline xAxisId (value: int) = Interop.mkBarAttr "xAxisId" value - static member inline yAxisId (value: int) = Interop.mkBarAttr "yAxisId" value - static member inline children (elements: ReactElement list) = Interop.mkBarAttr "children" (prop.children elements) - static member inline children (elements: ReactElement seq) = Interop.mkBarAttr "children" (prop.children elements) - static member inline isAnimationActive (value: bool) = Interop.mkBarAttr "isAnimationActive" value - static member inline barSize (value: int) = Interop.mkBarAttr "barSize" value - static member inline maxBarSize (value: int) = Interop.mkBarAttr "maxBarSize" value - static member inline minPointSize (value: int) = Interop.mkBarAttr "minPointSize" value - static member inline unit (value: string) = Interop.mkBarAttr "unit" value - static member inline unit (value: int) = Interop.mkBarAttr "unit" value - static member inline animationDuration (value: int) = Interop.mkBarAttr "animationDuration" value + static member inline dataKey(value: string) = Interop.mkBarAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkBarAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkBarAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkBarAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkBarAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkBarAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkBarAttr "dataKey" f + static member inline stroke(color: string) = Interop.mkBarAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkBarAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkBarAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkBarAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkBarAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkBarAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkBarAttr "fillOpacity" value + static member inline stackId(value: string) = Interop.mkBarAttr "stackId" value + static member inline xAxisId(value: string) = Interop.mkBarAttr "xAxisId" value + static member inline yAxisId(value: string) = Interop.mkBarAttr "yAxisId" value + static member inline xAxisId(value: int) = Interop.mkBarAttr "xAxisId" value + static member inline yAxisId(value: int) = Interop.mkBarAttr "yAxisId" value + + static member inline children(elements: ReactElement list) = + Interop.mkBarAttr "children" (prop.children elements) + + static member inline children(elements: ReactElement seq) = + Interop.mkBarAttr "children" (prop.children elements) + + static member inline isAnimationActive(value: bool) = + Interop.mkBarAttr "isAnimationActive" value + + static member inline barSize(value: int) = Interop.mkBarAttr "barSize" value + static member inline maxBarSize(value: int) = Interop.mkBarAttr "maxBarSize" value + static member inline minPointSize(value: int) = Interop.mkBarAttr "minPointSize" value + static member inline unit(value: string) = Interop.mkBarAttr "unit" value + static member inline unit(value: int) = Interop.mkBarAttr "unit" value + + static member inline animationDuration(value: int) = + Interop.mkBarAttr "animationDuration" value + /// Specifies the duration of animation. Default is `1500ms`. - static member inline animationDuration (value: TimeSpan) = Interop.mkBarAttr "animationDuration" value.TotalMilliseconds - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkBarAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline animationDuration(value: TimeSpan) = + Interop.mkBarAttr "animationDuration" value.TotalMilliseconds + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkBarAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs module bar = [] diff --git a/src/Feliz.Recharts/BarChart.fs b/src/Feliz.Recharts/BarChart.fs index cd08e7f0..3a69dd53 100644 --- a/src/Feliz.Recharts/BarChart.fs +++ b/src/Feliz.Recharts/BarChart.fs @@ -7,11 +7,12 @@ open Fable.Core.JsInterop [] type barChart = /// If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush. - static member inline syncId (value: string) = Interop.mkBarChartAttr "syncId" value + static member inline syncId(value: string) = Interop.mkBarChartAttr "syncId" value /// The width of chart container. - static member inline width (value: int) = Interop.mkBarChartAttr "width" value + static member inline width(value: int) = Interop.mkBarChartAttr "width" value /// The height of chart container. - static member inline height (value: int) = Interop.mkBarChartAttr "height" value + static member inline height(value: int) = Interop.mkBarChartAttr "height" value + /// The source data, in which each element is an object. /// /// Format @@ -19,7 +20,9 @@ type barChart = /// [{ name: 'a', value: 12 }] /// [{ name: 'a', value: [5, 12] }] ///``` - static member inline data (values: seq<'a>) = Interop.mkBarChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkBarChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. /// /// Format @@ -27,7 +30,9 @@ type barChart = /// [{ name: 'a', value: 12 }] /// [{ name: 'a', value: [5, 12] }] ///``` - static member inline data (values: 'a list) = Interop.mkBarChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkBarChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. /// /// Format @@ -35,76 +40,104 @@ type barChart = /// [{ name: 'a', value: 12 }] /// [{ name: 'a', value: [5, 12] }] ///``` - static member inline data (values: 'a array) = Interop.mkBarChartAttr "data" values - static member inline children (elements: ReactElement list) = unbox (prop.children elements) + static member inline data(values: 'a array) = Interop.mkBarChartAttr "data" values + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkBarChartAttr "margin" margin + /// The gap between two bar categories. - static member inline barCategoryGap (value: int) = Interop.mkBarChartAttr "barCategoryGap" value + static member inline barCategoryGap(value: int) = + Interop.mkBarChartAttr "barCategoryGap" value + /// The gap between two bar categories - static member inline barCategoryGap (value: float) = Interop.mkBarChartAttr "barCategoryGap" value + static member inline barCategoryGap(value: float) = + Interop.mkBarChartAttr "barCategoryGap" value + /// The gap between two bar categories - static member inline barCategoryGapPercentage (value: int) = Interop.mkBarChartAttr "barCategoryGap" (unboxvalue + "%") + static member inline barCategoryGapPercentage(value: int) = + Interop.mkBarChartAttr "barCategoryGap" (unbox value + "%") + /// The gap between two bars in the same category. Default is 4. - static member inline barGap (value: int) = Interop.mkBarChartAttr "barGap" value - static member inline barGap (value: float) = Interop.mkBarChartAttr "barGap" value + static member inline barGap(value: int) = Interop.mkBarChartAttr "barGap" value + static member inline barGap(value: float) = Interop.mkBarChartAttr "barGap" value + /// The gap between two bars in the same category. - static member inline barGapPercentage (value: int) = Interop.mkBarChartAttr "barGap" (unboxvalue + "%") - static member inline barGapPercentage (value: float) = Interop.mkBarChartAttr "barGap" (unboxvalue + "%") - static member inline barSize (value: int) = Interop.mkBarChartAttr "barSize" value - static member inline barSize (value: float) = Interop.mkBarChartAttr "barSize" value + static member inline barGapPercentage(value: int) = + Interop.mkBarChartAttr "barGap" (unbox value + "%") + + static member inline barGapPercentage(value: float) = + Interop.mkBarChartAttr "barGap" (unbox value + "%") + + static member inline barSize(value: int) = Interop.mkBarChartAttr "barSize" value + static member inline barSize(value: float) = Interop.mkBarChartAttr "barSize" value + /// The maximum width of all the bars in a horizontal BarChart, or maximum height in a vertical BarChart. - static member inline maxBarSize (value: int) = Interop.mkBarChartAttr "maxBarSize" value + static member inline maxBarSize(value: int) = + Interop.mkBarChartAttr "maxBarSize" value + /// If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.) - static member inline reverseStackOrder (value: bool) = Interop.mkBarChartAttr "reverseStackOrder" value - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarChartAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkBarChartAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarChartAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkBarChartAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline style (properties: #IStyleAttribute list) = Interop.mkBarChartAttr "style" (createObj !!properties) + static member inline reverseStackOrder(value: bool) = + Interop.mkBarChartAttr "reverseStackOrder" value + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarChartAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkBarChartAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarChartAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkBarChartAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline style(properties: #IStyleAttribute list) = + Interop.mkBarChartAttr "style" (createObj !!properties) module barChart = /// The layout of area in the chart. diff --git a/src/Feliz.Recharts/Brush.fs b/src/Feliz.Recharts/Brush.fs index d53a7147..b509c755 100644 --- a/src/Feliz.Recharts/Brush.fs +++ b/src/Feliz.Recharts/Brush.fs @@ -6,24 +6,32 @@ open Fable.Core.JsInterop [] type brush = - static member inline dataKey (key: string) = Interop.mkBrushAttr "dataKey" key - static member inline dataKey (key: int) = Interop.mkBrushAttr "dataKey" key - static member inline dataKey (f: 'a -> string) = Interop.mkBrushAttr "dataKey" (f (unbox null)) - static member inline stroke (color: string) = Interop.mkBrushAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkBrushAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkBrushAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkBrushAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkBrushAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkBrushAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkBrushAttr "fillOpacity" value + static member inline dataKey(key: string) = Interop.mkBrushAttr "dataKey" key + static member inline dataKey(key: int) = Interop.mkBrushAttr "dataKey" key + + static member inline dataKey(f: 'a -> string) = + Interop.mkBrushAttr "dataKey" (f (unbox null)) + + static member inline stroke(color: string) = Interop.mkBrushAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkBrushAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkBrushAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkBrushAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkBrushAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkBrushAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkBrushAttr "fillOpacity" value /// The height of brush. Default is 40. - static member inline height (value: int) = Interop.mkBrushAttr "height" value + static member inline height(value: int) = Interop.mkBrushAttr "height" value /// The width of brush. - static member inline width (value: int) = Interop.mkBrushAttr "width" value + static member inline width(value: int) = Interop.mkBrushAttr "width" value /// The default start index of brush. If the option is not set, the start index will be 0. - static member inline startIndex (index: int) = Interop.mkBrushAttr "startIndex" index + static member inline startIndex(index: int) = Interop.mkBrushAttr "startIndex" index /// The default end index of brush. If the option is not set, the end index will be calculated by the length of data. - static member inline endIndex (index: int) = Interop.mkBrushAttr "endIndex" index + static member inline endIndex(index: int) = Interop.mkBrushAttr "endIndex" index /// The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default 1. static member inline gap(value: int) = Interop.mkBrushAttr "gap" value /// The data with gap of refreshing chart. If the option is not set, the chart will be refreshed every time. Default 1. @@ -35,4 +43,4 @@ type brush = /// The x-coordinate of brush. static member inline x(value: float) = Interop.mkBrushAttr "x" value /// The y-coordinate of brush. - static member inline y(value: float) = Interop.mkBrushAttr "y" value \ No newline at end of file + static member inline y(value: float) = Interop.mkBrushAttr "y" value diff --git a/src/Feliz.Recharts/CartesianGrid.fs b/src/Feliz.Recharts/CartesianGrid.fs index 50a6640b..f58c0ab6 100644 --- a/src/Feliz.Recharts/CartesianGrid.fs +++ b/src/Feliz.Recharts/CartesianGrid.fs @@ -7,14 +7,26 @@ open Fable.Core.JsInterop [] type cartesianGrid = - static member inline strokeDasharray([] values: int []) = Interop.mkCartesianGridAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") - static member inline stroke (value: string) = Interop.mkCartesianGridAttr "stroke" value - static member inline strokeOpacity (opacity: int) = Interop.mkCartesianGridAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkCartesianGridAttr "strokeOpacity" opacity + static member inline strokeDasharray([] values: int[]) = + Interop.mkCartesianGridAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") + + static member inline stroke(value: string) = + Interop.mkCartesianGridAttr "stroke" value + + static member inline strokeOpacity(opacity: int) = + Interop.mkCartesianGridAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkCartesianGridAttr "strokeOpacity" opacity + /// When set to false, no horizontal grid lines will be drawn. Default is `true`. - static member inline horizontal (value: bool) = Interop.mkCartesianGridAttr "horizontal" value + static member inline horizontal(value: bool) = + Interop.mkCartesianGridAttr "horizontal" value + /// When set to false, no v grid lines will be drawn. Default is `true`. - static member inline vertical (value: bool) = Interop.mkCartesianGridAttr "vertical" value + static member inline vertical(value: bool) = + Interop.mkCartesianGridAttr "vertical" value + /// The x-coordinate of grid. static member inline x(value: int) = Interop.mkCartesianGridAttr "x" value /// The x-coordinate of grid. @@ -22,4 +34,4 @@ type cartesianGrid = /// The y-coordinate of grid. static member inline y(value: int) = Interop.mkCartesianGridAttr "y" value /// The y-coordinate of grid. - static member inline y(value: float) = Interop.mkCartesianGridAttr "y" value \ No newline at end of file + static member inline y(value: float) = Interop.mkCartesianGridAttr "y" value diff --git a/src/Feliz.Recharts/Cell.fs b/src/Feliz.Recharts/Cell.fs index 2f5230b2..792ab89b 100644 --- a/src/Feliz.Recharts/Cell.fs +++ b/src/Feliz.Recharts/Cell.fs @@ -8,14 +8,21 @@ open Fable.Core.JsInterop /// Cell can be wrapped by Pie, Bar, or RadialBar to specify attributes of each child. In Pie , for example, we can specify the attributes of each child node through data, but the props of Cell have higher priority. [] type cell = - static member inline key (value: string) = Interop.mkCellAttr "key" value - static member inline key (value: Guid) = Interop.mkCellAttr "key" (string value) - static member inline stroke (color: string) = Interop.mkCellAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkCellAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkCellAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkCellAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkCellAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkCellAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkCellAttr "fillOpacity" value - static member inline cursor (value: string) = Interop.mkCellAttr "cursor" value - static member inline onClick (eventHandler: Browser.Types.MouseEvent -> unit) = Interop.mkCellAttr "onClick" eventHandler + static member inline key(value: string) = Interop.mkCellAttr "key" value + static member inline key(value: Guid) = Interop.mkCellAttr "key" (string value) + static member inline stroke(color: string) = Interop.mkCellAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkCellAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkCellAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkCellAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkCellAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkCellAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkCellAttr "fillOpacity" value + static member inline cursor(value: string) = Interop.mkCellAttr "cursor" value + + static member inline onClick(eventHandler: Browser.Types.MouseEvent -> unit) = + Interop.mkCellAttr "onClick" eventHandler diff --git a/src/Feliz.Recharts/ComposedChart.fs b/src/Feliz.Recharts/ComposedChart.fs index f5a03db6..df064ae0 100644 --- a/src/Feliz.Recharts/ComposedChart.fs +++ b/src/Feliz.Recharts/ComposedChart.fs @@ -7,86 +7,129 @@ open Fable.Core.JsInterop [] type composedChart = /// If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush. - static member inline syncId (value: string) = Interop.mkComposedChartAttr "syncId" value + static member inline syncId(value: string) = + Interop.mkComposedChartAttr "syncId" value + /// The width of chart container. - static member inline width (value: int) = Interop.mkComposedChartAttr "width" value + static member inline width(value: int) = + Interop.mkComposedChartAttr "width" value + /// The height of chart container. - static member inline height (value: int) = Interop.mkComposedChartAttr "height" value + static member inline height(value: int) = + Interop.mkComposedChartAttr "height" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkComposedChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkComposedChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkComposedChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkComposedChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkComposedChartAttr "data" values - static member inline children (elements: ReactElement list) = unbox (prop.children elements) + static member inline data(values: 'a array) = + Interop.mkComposedChartAttr "data" values + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkComposedChartAttr "margin" margin + /// The gap between two bar categories. - static member inline barCategoryGap (value: int) = Interop.mkComposedChartAttr "barCategoryGap" value + static member inline barCategoryGap(value: int) = + Interop.mkComposedChartAttr "barCategoryGap" value + /// The gap between two bar categories - static member inline barCategoryGap (value: float) = Interop.mkComposedChartAttr "barCategoryGap" value + static member inline barCategoryGap(value: float) = + Interop.mkComposedChartAttr "barCategoryGap" value + /// The gap between two bar categories - static member inline barCategoryGapPercentage (value: int) = Interop.mkComposedChartAttr "barCategoryGap" (unboxvalue + "%") + static member inline barCategoryGapPercentage(value: int) = + Interop.mkComposedChartAttr "barCategoryGap" (unbox value + "%") + /// The gap between two bars in the same category. Default is 4. - static member inline barGap (value: int) = Interop.mkComposedChartAttr "barGap" value - static member inline barGap (value: float) = Interop.mkComposedChartAttr "barGap" value + static member inline barGap(value: int) = + Interop.mkComposedChartAttr "barGap" value + + static member inline barGap(value: float) = + Interop.mkComposedChartAttr "barGap" value + /// The gap between two bars in the same category. - static member inline barGapPercentage (value: int) = Interop.mkComposedChartAttr "barGap" (unboxvalue + "%") - static member inline barGapPercentage (value: float) = Interop.mkComposedChartAttr "barGap" (unboxvalue + "%") - static member inline barSize (value: int) = Interop.mkComposedChartAttr "barSize" value - static member inline barSize (value: float) = Interop.mkComposedChartAttr "barSize" value + static member inline barGapPercentage(value: int) = + Interop.mkComposedChartAttr "barGap" (unbox value + "%") + + static member inline barGapPercentage(value: float) = + Interop.mkComposedChartAttr "barGap" (unbox value + "%") + + static member inline barSize(value: int) = + Interop.mkComposedChartAttr "barSize" value + + static member inline barSize(value: float) = + Interop.mkComposedChartAttr "barSize" value + /// If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.) - static member inline reverseStackOrder (value: bool) = Interop.mkComposedChartAttr "reverseStackOrder" value - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkComposedChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkComposedChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkComposedChartAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkComposedChartAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkComposedChartAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkComposedChartAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline reverseStackOrder(value: bool) = + Interop.mkComposedChartAttr "reverseStackOrder" value + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkComposedChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkComposedChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkComposedChartAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkComposedChartAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkComposedChartAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkComposedChartAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + [] module composedChart = /// The layout of area in the chart. [] type layout = static member inline horizontal = Interop.mkComposedChartAttr "layout" "horizontal" - static member inline vertical = Interop.mkComposedChartAttr "layout" "vertical" \ No newline at end of file + static member inline vertical = Interop.mkComposedChartAttr "layout" "vertical" diff --git a/src/Feliz.Recharts/ErrorBar.fs b/src/Feliz.Recharts/ErrorBar.fs index e9ad3f4f..85f8d4a6 100644 --- a/src/Feliz.Recharts/ErrorBar.fs +++ b/src/Feliz.Recharts/ErrorBar.fs @@ -7,9 +7,14 @@ open Fable.Core.JsInterop [] type errorBar = - static member inline dataKey (value: string) = Interop.mkErrorBarAttr "dataKey" value - static member inline dataKey (value: int) = Interop.mkErrorBarAttr "dataKey" value - static member inline width (value: int) = Interop.mkErrorBarAttr "width" value - static member inline strokeWidth (value: int) = Interop.mkErrorBarAttr "strokeWidth" value - static member inline stroke (color: string) = Interop.mkErrorBarAttr "stroke" color - static member inline direction (value: string) = Interop.mkErrorBarAttr "direction" value \ No newline at end of file + static member inline dataKey(value: string) = Interop.mkErrorBarAttr "dataKey" value + static member inline dataKey(value: int) = Interop.mkErrorBarAttr "dataKey" value + static member inline width(value: int) = Interop.mkErrorBarAttr "width" value + + static member inline strokeWidth(value: int) = + Interop.mkErrorBarAttr "strokeWidth" value + + static member inline stroke(color: string) = Interop.mkErrorBarAttr "stroke" color + + static member inline direction(value: string) = + Interop.mkErrorBarAttr "direction" value diff --git a/src/Feliz.Recharts/Funnel.fs b/src/Feliz.Recharts/Funnel.fs index 63e4eefb..bc6c04fd 100644 --- a/src/Feliz.Recharts/Funnel.fs +++ b/src/Feliz.Recharts/Funnel.fs @@ -8,75 +8,98 @@ open Fable.Core.JsInterop [] type funnel = /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkFunnelAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkFunnelAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkFunnelAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkFunnelAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkFunnelAttr "data" values - static member inline dataKey (value: string) = Interop.mkFunnelAttr "dataKey" value - static member inline dataKey (value: int) = Interop.mkFunnelAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkFunnelAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkFunnelAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkFunnelAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkFunnelAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkFunnelAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkFunnelAttr "dataKey" f - static member inline nameKey (value: string) = Interop.mkFunnelAttr "nameKey" value - static member inline trapezoids (?x: int, ?y: int, ?upperWidth: int, ?lowerWidth: int, ?height: int) = - let coordinates = - createObj [ + static member inline data(values: 'a array) = Interop.mkFunnelAttr "data" values + static member inline dataKey(value: string) = Interop.mkFunnelAttr "dataKey" value + static member inline dataKey(value: int) = Interop.mkFunnelAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkFunnelAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkFunnelAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkFunnelAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkFunnelAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkFunnelAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkFunnelAttr "dataKey" f + static member inline nameKey(value: string) = Interop.mkFunnelAttr "nameKey" value + + static member inline trapezoids(?x: int, ?y: int, ?upperWidth: int, ?lowerWidth: int, ?height: int) = + let coordinates = + createObj [ "x" ==> Option.defaultValue 0 x "y" ==> Option.defaultValue 0 y "upperWidth" ==> Option.defaultValue 0 upperWidth - "lowerWidth" ==> Option.defaultValue 0 lowerWidth - "height" ==> Option.defaultValue 0 height ] - + "lowerWidth" ==> Option.defaultValue 0 lowerWidth + "height" ==> Option.defaultValue 0 height + ] + Interop.mkFunnelAttr "trapezoids" coordinates - static member inline isAnimationActive (value: bool) = Interop.mkFunnelAttr "isAnimationActive" value + + static member inline isAnimationActive(value: bool) = + Interop.mkFunnelAttr "isAnimationActive" value + /// Specifies when the animation should begin, the unit of this option is ms. - static member inline animationBegin (value: int) = Interop.mkFunnelAttr "animationBegin" value + static member inline animationBegin(value: int) = + Interop.mkFunnelAttr "animationBegin" value + /// Specifies the duration of animation, the unit of this option is ms. Default is `1500ms`. - static member inline animationDuration (value: int) = Interop.mkFunnelAttr "animationDuration" value + static member inline animationDuration(value: int) = + Interop.mkFunnelAttr "animationDuration" value + /// Specifies the duration of animation. Default is `1500ms`. - static member inline animationDuration (value: TimeSpan) = Interop.mkFunnelAttr "animationDuration" value.TotalMilliseconds - static member inline id (value: string) = Interop.mkFunnelAttr "id" value - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkFunnelAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkFunnelAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkFunnelAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkFunnelAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkFunnelAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkFunnelAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - -module funnel = + static member inline animationDuration(value: TimeSpan) = + Interop.mkFunnelAttr "animationDuration" value.TotalMilliseconds + + static member inline id(value: string) = Interop.mkFunnelAttr "id" value + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkFunnelAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkFunnelAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkFunnelAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkFunnelAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkFunnelAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkFunnelAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + +module funnel = [] type legendType = static member inline line = Interop.mkFunnelAttr "legendType" "line" diff --git a/src/Feliz.Recharts/Interop.fs b/src/Feliz.Recharts/Interop.fs index 336cd92b..4f2700cf 100644 --- a/src/Feliz.Recharts/Interop.fs +++ b/src/Feliz.Recharts/Interop.fs @@ -2,14 +2,13 @@ namespace Feliz.Recharts open Fable.Core -[] +[] module Interop = [] let internal objectKeys (x: obj) = jsNative + let objectHas (keys: string list) (x: obj) = - objectKeys(x) - |> Seq.toList - |> (=) keys + objectKeys (x) |> Seq.toList |> (=) keys let inline mkLineChartAttr (key: string) (value: obj) : ILineChartProperty = unbox (key, value) let inline mkLineAttr (key: string) (value: obj) : ILineProperty = unbox (key, value) @@ -18,7 +17,7 @@ module Interop = let inline mkBarAttr (key: string) (value: obj) : IBarProperty = unbox (key, value) let inline mkRadarAttr (key: string) (value: obj) : IRadarProperty = unbox (key, value) let inline mkScatterAttr (key: string) (value: obj) : IScatterProperty = unbox (key, value) - let inline mkScatterChartAttr (key: string) (value: obj): IScatterChartProperty = unbox (key, value) + let inline mkScatterChartAttr (key: string) (value: obj) : IScatterChartProperty = unbox (key, value) let inline mkBarChartAttr (key: string) (value: obj) : IBarChartProperty = unbox (key, value) let inline mkAreaAttr (key: string) (value: obj) : IAreaProperty = unbox (key, value) let inline mkAreaChartAttr (key: string) (value: obj) : IAreaChartProperty = unbox (key, value) @@ -41,7 +40,7 @@ module Interop = let inline mkYAxisAttr (key: string) (value: obj) : IYAxisProperty = unbox (key, value) let inline mkPolarAngleAxisAttr (key: string) (value: obj) : IPolarAngleAxisProperty = unbox (key, value) let inline mkPolarRadiusAxisAttr (key: string) (value: obj) : IPolarRadiusAxisProperty = unbox (key, value) - let inline mkPolarGridAttr (key:string) (value:obj) : IPolarGridProperty = unbox(key, value) - let inline mkTooltipAttr (key:string) (value:obj) : ITooltipProperty = unbox(key, value) - let inline mkErrorBarAttr (key:string) (value:obj) : IErrorBarProperty = unbox(key, value) - let inline mkFunnelAttr (key:string) (value:obj) : IFunnelProperty = unbox(key, value) + let inline mkPolarGridAttr (key: string) (value: obj) : IPolarGridProperty = unbox (key, value) + let inline mkTooltipAttr (key: string) (value: obj) : ITooltipProperty = unbox (key, value) + let inline mkErrorBarAttr (key: string) (value: obj) : IErrorBarProperty = unbox (key, value) + let inline mkFunnelAttr (key: string) (value: obj) : IFunnelProperty = unbox (key, value) diff --git a/src/Feliz.Recharts/Label.fs b/src/Feliz.Recharts/Label.fs index f500f9f4..d7b54fbf 100644 --- a/src/Feliz.Recharts/Label.fs +++ b/src/Feliz.Recharts/Label.fs @@ -7,7 +7,7 @@ open Fable.Core.JsInterop [] module Label = - [] + [] type Position = | Top | Left @@ -31,12 +31,12 @@ module Label = [] type label = - static member inline viewBox (value: string) = Interop.mkLabelAttr "viewBox" value - static member inline viewBox (value: int) = Interop.mkLabelAttr "viewBox" value - static member inline value (value: string) = Interop.mkLabelAttr "value" value - static member inline value (value: int) = Interop.mkLabelAttr "value" value - static member inline offset (value: int) = Interop.mkLabelAttr "offset" value - static member inline id (value: string) = Interop.mkLabelAttr "id" value + static member inline viewBox(value: string) = Interop.mkLabelAttr "viewBox" value + static member inline viewBox(value: int) = Interop.mkLabelAttr "viewBox" value + static member inline value(value: string) = Interop.mkLabelAttr "value" value + static member inline value(value: int) = Interop.mkLabelAttr "value" value + static member inline offset(value: int) = Interop.mkLabelAttr "offset" value + static member inline id(value: string) = Interop.mkLabelAttr "id" value module label = [] diff --git a/src/Feliz.Recharts/LabelList.fs b/src/Feliz.Recharts/LabelList.fs index 5ed10f3e..2d0fd1fb 100644 --- a/src/Feliz.Recharts/LabelList.fs +++ b/src/Feliz.Recharts/LabelList.fs @@ -7,15 +7,24 @@ open Fable.Core.JsInterop [] type labelList = - /// Specifies data key for the label list - /// + /// Specifies data key for the label list + /// /// ie: labelList.dataKey (fun (d:{| name : string; data : int64 |}) -> d.name) - static member inline dataKey (f: 'a -> string) = Interop.mkLabelListAttr "dataKey" (System.Func<_,_> f) - static member inline style (properties: #IStyleAttribute list) = Interop.mkLabelListAttr "style" (createObj !!properties) - static member inline formatter (f: 'a -> string -> 'b -> 'c) = Interop.mkLabelListAttr "formatter" (System.Func<_,_,_,_> f) - static member inline offset (value: int) = Interop.mkLabelListAttr "offset" value - static member inline clockWise (value: string) = Interop.mkLabelListAttr "clockWise" value - static member inline id (value: string) = Interop.mkLabelListAttr "id" value + static member inline dataKey(f: 'a -> string) = + Interop.mkLabelListAttr "dataKey" (System.Func<_, _> f) + + static member inline style(properties: #IStyleAttribute list) = + Interop.mkLabelListAttr "style" (createObj !!properties) + + static member inline formatter(f: 'a -> string -> 'b -> 'c) = + Interop.mkLabelListAttr "formatter" (System.Func<_, _, _, _> f) + + static member inline offset(value: int) = Interop.mkLabelListAttr "offset" value + + static member inline clockWise(value: string) = + Interop.mkLabelListAttr "clockWise" value + + static member inline id(value: string) = Interop.mkLabelListAttr "id" value module labelList = [] @@ -33,8 +42,11 @@ module labelList = static member inline insideTopLeft = Interop.mkLabelListAttr "position" "insideTopLeft" static member inline insideBottomLeft = Interop.mkLabelListAttr "position" "insideBottomLeft" static member inline insideTopRight = Interop.mkLabelListAttr "position" "insideTopRight" - static member inline insideBottomRight = Interop.mkLabelListAttr "position" "insideBottomRight" + + static member inline insideBottomRight = + Interop.mkLabelListAttr "position" "insideBottomRight" + static member inline insideStart = Interop.mkLabelListAttr "position" "insideStart" static member inline insideEnd = Interop.mkLabelListAttr "position" "insideEnd" static member inline end' = Interop.mkLabelListAttr "position" "end" - static member inline center = Interop.mkLabelListAttr "position" "center" \ No newline at end of file + static member inline center = Interop.mkLabelListAttr "position" "center" diff --git a/src/Feliz.Recharts/Legend.fs b/src/Feliz.Recharts/Legend.fs index 63d5f1ad..43329fd8 100644 --- a/src/Feliz.Recharts/Legend.fs +++ b/src/Feliz.Recharts/Legend.fs @@ -7,57 +7,73 @@ open Fable.Core.JsInterop [] type legend = - static member inline width (value: int) = Interop.mkLegendAttr "width" value - static member inline height (value: int) = Interop.mkLegendAttr "height" value - static member inline iconSize (value: int) = Interop.mkLegendAttr "iconSize" value - static member inline chartWidth (value: int) = Interop.mkLegendAttr "chartWidth" value - static member inline chartHeight (value: int) = Interop.mkLegendAttr "chartHeight" value - static member inline margin (?top: int, ?left: int, ?right: int, ?bottom: int) = - let margin = - createObj [ + static member inline width(value: int) = Interop.mkLegendAttr "width" value + static member inline height(value: int) = Interop.mkLegendAttr "height" value + static member inline iconSize(value: int) = Interop.mkLegendAttr "iconSize" value + static member inline chartWidth(value: int) = Interop.mkLegendAttr "chartWidth" value + + static member inline chartHeight(value: int) = + Interop.mkLegendAttr "chartHeight" value + + static member inline margin(?top: int, ?left: int, ?right: int, ?bottom: int) = + let margin = + createObj [ "top" ==> Option.defaultValue 0 top "left" ==> Option.defaultValue 0 left "right" ==> Option.defaultValue 0 right - "bottom" ==> Option.defaultValue 0 bottom ] + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkLegendAttr "margin" margin - static member inline formatter (f: string -> 'a -> int -> ReactElement) = Interop.mkLegendAttr "formatter" (System.Func<_,_,_,_> f) - static member inline wrapperStyle (properties: #IStyleAttribute list) = Interop.mkLegendAttr "wrapperStyle" (createObj !!properties) - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLegendAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLegendAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLegendAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkLegendAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLegendAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLegendAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + + static member inline formatter(f: string -> 'a -> int -> ReactElement) = + Interop.mkLegendAttr "formatter" (System.Func<_, _, _, _> f) + + static member inline wrapperStyle(properties: #IStyleAttribute list) = + Interop.mkLegendAttr "wrapperStyle" (createObj !!properties) + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLegendAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLegendAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLegendAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkLegendAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLegendAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLegendAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs module legend = diff --git a/src/Feliz.Recharts/LineChart.fs b/src/Feliz.Recharts/LineChart.fs index 03cef3af..d92a35b0 100644 --- a/src/Feliz.Recharts/LineChart.fs +++ b/src/Feliz.Recharts/LineChart.fs @@ -7,66 +7,82 @@ open Fable.Core.JsInterop [] type lineChart = /// If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush. - static member inline syncId (value: string) = Interop.mkLineChartAttr "syncId" value + static member inline syncId(value: string) = Interop.mkLineChartAttr "syncId" value /// The width of chart container. - static member inline width (value: int) = Interop.mkLineChartAttr "width" value + static member inline width(value: int) = Interop.mkLineChartAttr "width" value /// The height of chart container. - static member inline height (value: int) = Interop.mkLineChartAttr "height" value + static member inline height(value: int) = Interop.mkLineChartAttr "height" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkLineChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkLineChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkLineChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkLineChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkLineChartAttr "data" values - static member inline children (elements: ReactElement list) = unbox (prop.children elements) + static member inline data(values: 'a array) = Interop.mkLineChartAttr "data" values + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkLineChartAttr "margin" margin - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLineChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLineChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLineChartAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkLineChartAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLineChartAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkLineChartAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLineChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLineChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLineChartAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkLineChartAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLineChartAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkLineChartAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs module lineChart = @@ -74,4 +90,3 @@ module lineChart = type layout = static member inline horizontal = Interop.mkLineChartAttr "layout" "horizontal" static member inline vertical = Interop.mkLineChartAttr "layout" "vertical" - diff --git a/src/Feliz.Recharts/Pie.fs b/src/Feliz.Recharts/Pie.fs index 2e56952a..78e3edf6 100644 --- a/src/Feliz.Recharts/Pie.fs +++ b/src/Feliz.Recharts/Pie.fs @@ -8,26 +8,36 @@ open Fable.Core.JsInterop [] type pie = static member inline name(value: string) = Interop.mkPieAttr "name" value - static member inline dataKey (value: string) = Interop.mkPieAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkPieAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkPieAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkPieAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkPieAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkPieAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkPieAttr "dataKey" f - static member inline stroke (color: string) = Interop.mkPieAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkPieAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkPieAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkPieAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkPieAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkPieAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkPieAttr "fillOpacity" value + static member inline dataKey(value: string) = Interop.mkPieAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkPieAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkPieAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkPieAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkPieAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkPieAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkPieAttr "dataKey" f + static member inline stroke(color: string) = Interop.mkPieAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkPieAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkPieAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkPieAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkPieAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkPieAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkPieAttr "fillOpacity" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkPieAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkPieAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkPieAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkPieAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkPieAttr "data" values + static member inline data(values: 'a array) = Interop.mkPieAttr "data" values /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. static member inline cy(value: float) = Interop.mkPieAttr "cy" value /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. @@ -40,57 +50,84 @@ type pie = static member inline innerRadius(value: int) = Interop.mkPieAttr "innerRadius" value static member inline outerRadius(value: float) = Interop.mkPieAttr "outerRadius" value static member inline outerRadius(value: int) = Interop.mkPieAttr "outerRadius" value - static member inline startAngle (value: int) = Interop.mkPieAttr "startAngle" value - static member inline startAngle (value: float) = Interop.mkPieAttr "startAngle" value - static member inline endAngle (value: int) = Interop.mkPieAttr "endAngle" value - static member inline endAngle (value: float) = Interop.mkPieAttr "endAngle" value - static member inline minAngle (value: int) = Interop.mkPieAttr "minAngle" value - static member inline minAngle (value: float) = Interop.mkPieAttr "minAngle" value + static member inline startAngle(value: int) = Interop.mkPieAttr "startAngle" value + static member inline startAngle(value: float) = Interop.mkPieAttr "startAngle" value + static member inline endAngle(value: int) = Interop.mkPieAttr "endAngle" value + static member inline endAngle(value: float) = Interop.mkPieAttr "endAngle" value + static member inline minAngle(value: int) = Interop.mkPieAttr "minAngle" value + static member inline minAngle(value: float) = Interop.mkPieAttr "minAngle" value /// The key of each sector's name. Default is `name`. - static member inline nameKey (value: string) = Interop.mkPieAttr "nameKey" value + static member inline nameKey(value: string) = Interop.mkPieAttr "nameKey" value static member inline label(value: bool) = Interop.mkPieAttr "label" value static member inline label(value: IPieLabelProperties -> ReactElement) = Interop.mkPieAttr "label" value static member inline labelLine(value: bool) = Interop.mkPieAttr "labelLine" value static member inline labelLine(value: IPieLabelProperties -> ReactElement) = Interop.mkPieAttr "labelLine" value - static member inline activeIndex (value: int) = Interop.mkPieAttr "activeIndex" value - static member inline activeIndex (value: int list) = Interop.mkPieAttr "activeIndex" (List.toArray value) - static member inline activeIndex (value: int []) = Interop.mkPieAttr "activeIndex" value + static member inline activeIndex(value: int) = Interop.mkPieAttr "activeIndex" value + + static member inline activeIndex(value: int list) = + Interop.mkPieAttr "activeIndex" (List.toArray value) + + static member inline activeIndex(value: int[]) = Interop.mkPieAttr "activeIndex" value + /// If set false, animation of area will be disabled. - static member inline isAnimationActive (value: bool) = Interop.mkPieAttr "isAnimationActive" value + static member inline isAnimationActive(value: bool) = + Interop.mkPieAttr "isAnimationActive" value + /// Specifies when the animation should begin, the unit of this option is ms. - static member inline animationBegin (value: int) = Interop.mkPieAttr "animationBegin" value + static member inline animationBegin(value: int) = + Interop.mkPieAttr "animationBegin" value + /// Specifies the duration of animation, the unit of this option is ms. Default is `1500ms`. - static member inline animationDuration (value: int) = Interop.mkPieAttr "animationDuration" value + static member inline animationDuration(value: int) = + Interop.mkPieAttr "animationDuration" value + /// Specifies the duration of animation. Default is `1500ms`. - static member inline animationDuration (value: TimeSpan) = Interop.mkPieAttr "animationDuration" value.TotalMilliseconds - static member inline children (elements: ReactElement list) = Interop.mkPieAttr "children" (prop.children elements) - static member inline children (elements: ReactElement seq) = Interop.mkPieAttr "children" (prop.children elements) + static member inline animationDuration(value: TimeSpan) = + Interop.mkPieAttr "animationDuration" value.TotalMilliseconds + + static member inline children(elements: ReactElement list) = + Interop.mkPieAttr "children" (prop.children elements) + + static member inline children(elements: ReactElement seq) = + Interop.mkPieAttr "children" (prop.children elements) module pie = [] type cy = /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. - static member inline percentage(value: float) = Interop.mkPieAttr "cy" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkPieAttr "cy" (unbox value + "%") + /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. - static member inline percentage(value: int) = Interop.mkPieAttr "cy" (unbox value + "%") + static member inline percentage(value: int) = + Interop.mkPieAttr "cy" (unbox value + "%") [] type innerRadius = - static member inline percentage(value: float) = Interop.mkPieAttr "innerRadius" (unbox value + "%") - static member inline percentage(value: int) = Interop.mkPieAttr "innerRadius" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkPieAttr "innerRadius" (unbox value + "%") + + static member inline percentage(value: int) = + Interop.mkPieAttr "innerRadius" (unbox value + "%") [] type outerRadius = - static member inline percentage(value: float) = Interop.mkPieAttr "outerRadius" (unbox value + "%") - static member inline percentage(value: int) = Interop.mkPieAttr "outerRadius" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkPieAttr "outerRadius" (unbox value + "%") + + static member inline percentage(value: int) = + Interop.mkPieAttr "outerRadius" (unbox value + "%") [] type cx = /// The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default '50%'. - static member inline percentage(value: float) = Interop.mkPieAttr "cx" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkPieAttr "cx" (unbox value + "%") + /// The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default '50%'. - static member inline percentage(value: int) = Interop.mkPieAttr "cx" (unbox value + "%") + static member inline percentage(value: int) = + Interop.mkPieAttr "cx" (unbox value + "%") [] type legendType = diff --git a/src/Feliz.Recharts/PieChart.fs b/src/Feliz.Recharts/PieChart.fs index ea1c21df..c48935df 100644 --- a/src/Feliz.Recharts/PieChart.fs +++ b/src/Feliz.Recharts/PieChart.fs @@ -7,28 +7,36 @@ open Fable.Core.JsInterop [] type pieChart = /// If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId, these two charts can sync the position tooltip, and the startIndex, endIndex of Brush. - static member inline syncId (value: string) = Interop.mkPieChartAttr "syncId" value + static member inline syncId(value: string) = Interop.mkPieChartAttr "syncId" value /// The width of chart container. - static member inline width (value: int) = Interop.mkPieChartAttr "width" value + static member inline width(value: int) = Interop.mkPieChartAttr "width" value /// The height of chart container. - static member inline height (value: int) = Interop.mkPieChartAttr "height" value + static member inline height(value: int) = Interop.mkPieChartAttr "height" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkPieChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkPieChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkPieChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkPieChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkPieChartAttr "data" values - static member inline children (elements: ReactElement list) = unbox (prop.children elements) + static member inline data(values: 'a array) = Interop.mkPieChartAttr "data" values + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` - static member inline margin (?top: int, ?right: int, ?left: int, ?bottom: int) = + static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = let margin = - createObj - [ "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom ] + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] - Interop.mkPieChartAttr "margin" margin \ No newline at end of file + Interop.mkPieChartAttr "margin" margin diff --git a/src/Feliz.Recharts/PolarAngleAxis.fs b/src/Feliz.Recharts/PolarAngleAxis.fs index 62515ffa..1fd84cd1 100644 --- a/src/Feliz.Recharts/PolarAngleAxis.fs +++ b/src/Feliz.Recharts/PolarAngleAxis.fs @@ -5,26 +5,58 @@ open Fable.Core [] type polarAngleAxis = - static member inline dataKey (value: string) = Interop.mkPolarAngleAxisAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkPolarAngleAxisAttr "dataKey" f - static member inline cx(value: float) = Interop.mkPolarAngleAxisAttr "cx" value - static member inline cy(value: float) = Interop.mkPolarAngleAxisAttr "cy" value - static member inline cx(value: int) = Interop.mkPolarAngleAxisAttr "cx" value - static member inline cy(value: int) = Interop.mkPolarAngleAxisAttr "cy" value - static member inline radius(value: float) = Interop.mkPolarAngleAxisAttr "radius" value - static member inline radius(value: int) = Interop.mkPolarAngleAxisAttr "radius" value - static member inline axisLine(value: bool) = Interop.mkPolarAngleAxisAttr "axisLine" value - static member inline tickLine(value: bool) = Interop.mkPolarAngleAxisAttr "tickLine" value - static member inline tick (tickRenderer : IXAxisTickProperties -> ReactElement) = Interop.mkPolarAngleAxisAttr "tick" tickRenderer - static member inline tick (value: bool) = Interop.mkPolarAngleAxisAttr "tick" value - static member inline tick (value: ReactElement) = Interop.mkPolarAngleAxisAttr "tick" value - static member inline tickFormatter (f: 'a -> int -> string) = Interop.mkPolarAngleAxisAttr "tickFormatter" f - static member inline allowDuplicatedCategory (value: bool) = Interop.mkPolarAngleAxisAttr "allowDuplicatedCategory" value + static member inline dataKey(value: string) = + Interop.mkPolarAngleAxisAttr "dataKey" value + + static member inline dataKey(f: 'a -> string) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline dataKey(f: 'a -> int) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline dataKey(f: 'a -> float) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline dataKey(f: 'a -> string option) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline dataKey(f: 'a -> int option) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline dataKey(f: 'a -> float option) = + Interop.mkPolarAngleAxisAttr "dataKey" f + + static member inline cx(value: float) = Interop.mkPolarAngleAxisAttr "cx" value + static member inline cy(value: float) = Interop.mkPolarAngleAxisAttr "cy" value + static member inline cx(value: int) = Interop.mkPolarAngleAxisAttr "cx" value + static member inline cy(value: int) = Interop.mkPolarAngleAxisAttr "cy" value + + static member inline radius(value: float) = + Interop.mkPolarAngleAxisAttr "radius" value + + static member inline radius(value: int) = + Interop.mkPolarAngleAxisAttr "radius" value + + static member inline axisLine(value: bool) = + Interop.mkPolarAngleAxisAttr "axisLine" value + + static member inline tickLine(value: bool) = + Interop.mkPolarAngleAxisAttr "tickLine" value + + static member inline tick(tickRenderer: IXAxisTickProperties -> ReactElement) = + Interop.mkPolarAngleAxisAttr "tick" tickRenderer + + static member inline tick(value: bool) = + Interop.mkPolarAngleAxisAttr "tick" value + + static member inline tick(value: ReactElement) = + Interop.mkPolarAngleAxisAttr "tick" value + + static member inline tickFormatter(f: 'a -> int -> string) = + Interop.mkPolarAngleAxisAttr "tickFormatter" f + + static member inline allowDuplicatedCategory(value: bool) = + Interop.mkPolarAngleAxisAttr "allowDuplicatedCategory" value module polarAngleAxis = [] @@ -40,4 +72,4 @@ module polarAngleAxis = [] type type' = static member inline number = Interop.mkPolarAngleAxisAttr "type" "number" - static member inline category = Interop.mkPolarAngleAxisAttr "type" "category" \ No newline at end of file + static member inline category = Interop.mkPolarAngleAxisAttr "type" "category" diff --git a/src/Feliz.Recharts/PolarGrid.fs b/src/Feliz.Recharts/PolarGrid.fs index 362168ed..a5e97559 100644 --- a/src/Feliz.Recharts/PolarGrid.fs +++ b/src/Feliz.Recharts/PolarGrid.fs @@ -9,12 +9,24 @@ type polarGrid = static member inline cy(value: float) = Interop.mkPolarGridAttr "cy" value static member inline cx(value: int) = Interop.mkPolarGridAttr "cx" value static member inline cy(value: int) = Interop.mkPolarGridAttr "cy" value - static member inline innerRadius(value: int) = Interop.mkPolarGridAttr "innerRadius" value - static member inline innerRadius(value: float) = Interop.mkPolarGridAttr "innerRadius" value - static member inline outerRadius(value: int) = Interop.mkPolarGridAttr "outerRadius" value - static member inline outerRadius(value: float) = Interop.mkPolarGridAttr "outerRadius" value - static member inline polarAngles(angles: float seq) = Interop.mkPolarGridAttr "polarAngles" (angles |> Seq.toArray) - static member inline polarRadius(radius: float seq) = Interop.mkPolarGridAttr "polarRadius" (radius |> Seq.toArray) + + static member inline innerRadius(value: int) = + Interop.mkPolarGridAttr "innerRadius" value + + static member inline innerRadius(value: float) = + Interop.mkPolarGridAttr "innerRadius" value + + static member inline outerRadius(value: int) = + Interop.mkPolarGridAttr "outerRadius" value + + static member inline outerRadius(value: float) = + Interop.mkPolarGridAttr "outerRadius" value + + static member inline polarAngles(angles: float seq) = + Interop.mkPolarGridAttr "polarAngles" (angles |> Seq.toArray) + + static member inline polarRadius(radius: float seq) = + Interop.mkPolarGridAttr "polarRadius" (radius |> Seq.toArray) module polarGrid = [] diff --git a/src/Feliz.Recharts/PolarRadiusAxis.fs b/src/Feliz.Recharts/PolarRadiusAxis.fs index 5468b3db..ca027672 100644 --- a/src/Feliz.Recharts/PolarRadiusAxis.fs +++ b/src/Feliz.Recharts/PolarRadiusAxis.fs @@ -5,15 +5,32 @@ open Fable.Core [] type polarRadiusAxis = - static member inline angle (value:int) = Interop.mkPolarRadiusAxisAttr "angle" value - static member inline allowDuplicatedCategory (value:bool) = Interop.mkPolarRadiusAxisAttr "allowDuplicatedCategory" value - static member inline domain (min: IAxisDomain, max: IAxisDomain) = Interop.mkPolarRadiusAxisAttr "domain" [| min; max |] - static member inline tick (value:bool) = Interop.mkPolarRadiusAxisAttr "tick" value - static member inline axisLine (value:bool) = Interop.mkPolarRadiusAxisAttr "axisLine" value - static member inline tickCount (value:int) = Interop.mkPolarRadiusAxisAttr "tickCount" value - static member inline cx(value: int) = Interop.mkPolarRadiusAxisAttr "cx" value - static member inline cy(value: int) = Interop.mkPolarRadiusAxisAttr "cy" value - static member inline tickFormatter (f: 'a -> int -> string) = Interop.mkPolarRadiusAxisAttr "tickFormatter" f + static member inline angle(value: int) = + Interop.mkPolarRadiusAxisAttr "angle" value + + static member inline allowDuplicatedCategory(value: bool) = + Interop.mkPolarRadiusAxisAttr "allowDuplicatedCategory" value + + static member inline domain(min: IAxisDomain, max: IAxisDomain) = + Interop.mkPolarRadiusAxisAttr "domain" [| min; max |] + + static member inline tick(value: bool) = + Interop.mkPolarRadiusAxisAttr "tick" value + + static member inline axisLine(value: bool) = + Interop.mkPolarRadiusAxisAttr "axisLine" value + + static member inline tickCount(value: int) = + Interop.mkPolarRadiusAxisAttr "tickCount" value + + static member inline cx(value: int) = + Interop.mkPolarRadiusAxisAttr "cx" value + + static member inline cy(value: int) = + Interop.mkPolarRadiusAxisAttr "cy" value + + static member inline tickFormatter(f: 'a -> int -> string) = + Interop.mkPolarRadiusAxisAttr "tickFormatter" f module polarRadiusAxis = [] @@ -43,4 +60,4 @@ module polarRadiusAxis = static member inline quantize = Interop.mkPolarRadiusAxisAttr "scale" "quantize" static member inline utc = Interop.mkPolarRadiusAxisAttr "scale" "utc" static member inline sequential = Interop.mkPolarRadiusAxisAttr "scale" "sequential" - static member inline threshold = Interop.mkPolarRadiusAxisAttr "scale" "threshold" \ No newline at end of file + static member inline threshold = Interop.mkPolarRadiusAxisAttr "scale" "threshold" diff --git a/src/Feliz.Recharts/Radar.fs b/src/Feliz.Recharts/Radar.fs index 2b6ea170..1d3bd1e5 100644 --- a/src/Feliz.Recharts/Radar.fs +++ b/src/Feliz.Recharts/Radar.fs @@ -8,20 +8,31 @@ open Fable.Core.JsInterop [] type radar = static member inline name(value: string) = Interop.mkRadarAttr "name" value - static member inline dataKey (value: string) = Interop.mkRadarAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkRadarAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkRadarAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkRadarAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkRadarAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkRadarAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkRadarAttr "dataKey" f - static member inline stroke (color: string) = Interop.mkRadarAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkRadarAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkRadarAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkRadarAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkRadarAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkRadarAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkRadarAttr "fillOpacity" value - static member inline children (elements: ReactElement list) = Interop.mkRadarAttr "children" (prop.children elements) - static member inline children (elements: ReactElement seq) = Interop.mkRadarAttr "children" (prop.children elements) - static member inline isAnimationActive (value: bool) = Interop.mkRadarAttr "isAnimationActive" value \ No newline at end of file + static member inline dataKey(value: string) = Interop.mkRadarAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkRadarAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkRadarAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkRadarAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkRadarAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkRadarAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkRadarAttr "dataKey" f + static member inline stroke(color: string) = Interop.mkRadarAttr "stroke" color + static member inline strokeWidth(width: int) = Interop.mkRadarAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkRadarAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkRadarAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkRadarAttr "fill" color + static member inline fillOpacity(value: int) = Interop.mkRadarAttr "fillOpacity" value + static member inline fillOpacity(value: float) = Interop.mkRadarAttr "fillOpacity" value + + static member inline children(elements: ReactElement list) = + Interop.mkRadarAttr "children" (prop.children elements) + + static member inline children(elements: ReactElement seq) = + Interop.mkRadarAttr "children" (prop.children elements) + + static member inline isAnimationActive(value: bool) = + Interop.mkRadarAttr "isAnimationActive" value diff --git a/src/Feliz.Recharts/RadarChart.fs b/src/Feliz.Recharts/RadarChart.fs index 1f7b4b2b..4ee4ad9e 100644 --- a/src/Feliz.Recharts/RadarChart.fs +++ b/src/Feliz.Recharts/RadarChart.fs @@ -6,39 +6,66 @@ open Fable.Core.JsInterop [] type radarChart = - static member inline data (values: seq<'a>) = Interop.mkRadarChartAttr "data" (Seq.toArray values) - static member inline data (values: 'a list) = Interop.mkRadarChartAttr "data" (List.toArray values) - static member inline children (elements: ReactElement list) = unbox (prop.children elements) - static member inline width (value: int) = Interop.mkRadarChartAttr "width" value - static member inline height (value: int) = Interop.mkRadarChartAttr "height" value - static member inline cy(value: float) = Interop.mkRadarChartAttr "cy" value - static member inline cy(value: int) = Interop.mkRadarChartAttr "cy" value - static member inline cx(value: float) = Interop.mkRadarChartAttr "cx" value - static member inline cx(value: int) = Interop.mkRadarChartAttr "cx" value - static member inline startAngle(value: int) = Interop.mkRadarChartAttr "startAngle" value - static member inline endAngle(value: int) = Interop.mkRadarChartAttr "endAngle" value - static member inline innerRadius(value: int) = Interop.mkRadarChartAttr "innerRadius" value - static member inline innerRadius(value: float) = Interop.mkRadarChartAttr "innerRadius" value - static member inline outerRadius(value: int) = Interop.mkRadarChartAttr "outerRadius" value - static member inline outerRadius(value: float) = Interop.mkRadarChartAttr "outerRadius" value - static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] - Interop.mkRadarChartAttr "margin" margin - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkRadarChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkRadarChartAttr "onMouseLeave" handler - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkRadarChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline data(values: seq<'a>) = + Interop.mkRadarChartAttr "data" (Seq.toArray values) + + static member inline data(values: 'a list) = + Interop.mkRadarChartAttr "data" (List.toArray values) + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + + static member inline width(value: int) = Interop.mkRadarChartAttr "width" value + static member inline height(value: int) = Interop.mkRadarChartAttr "height" value + static member inline cy(value: float) = Interop.mkRadarChartAttr "cy" value + static member inline cy(value: int) = Interop.mkRadarChartAttr "cy" value + static member inline cx(value: float) = Interop.mkRadarChartAttr "cx" value + static member inline cx(value: int) = Interop.mkRadarChartAttr "cx" value + + static member inline startAngle(value: int) = + Interop.mkRadarChartAttr "startAngle" value + + static member inline endAngle(value: int) = + Interop.mkRadarChartAttr "endAngle" value + + static member inline innerRadius(value: int) = + Interop.mkRadarChartAttr "innerRadius" value + + static member inline innerRadius(value: float) = + Interop.mkRadarChartAttr "innerRadius" value + + static member inline outerRadius(value: int) = + Interop.mkRadarChartAttr "outerRadius" value + + static member inline outerRadius(value: float) = + Interop.mkRadarChartAttr "outerRadius" value + + static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] + + Interop.mkRadarChartAttr "margin" margin + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkRadarChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkRadarChartAttr "onMouseLeave" handler + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkRadarChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs diff --git a/src/Feliz.Recharts/RadialBar.fs b/src/Feliz.Recharts/RadialBar.fs index 51bf381a..90ecfc48 100644 --- a/src/Feliz.Recharts/RadialBar.fs +++ b/src/Feliz.Recharts/RadialBar.fs @@ -7,39 +7,54 @@ open Feliz.Recharts [] type radialBar = - static member inline minAngle(value: int) = Interop.mkRadialBarAttr "minAngle" value - static member inline minAngle(value: float) = Interop.mkRadialBarAttr "minAngle" value - static member inline isAnimationActive (value: bool) = Interop.mkRadialBarAttr "isAnimationActive" value - static member inline children (elements: ReactElement seq) = Interop.mkRadialBarAttr "children" (prop.children elements) - static member inline children (elements: ReactElement list) = Interop.mkRadialBarAttr "children" (prop.children elements) - - static member inline dataKey (value: string) = Interop.mkRadialBarAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkRadialBarAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkRadialBarAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkRadialBarAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkRadialBarAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkRadialBarAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkRadialBarAttr "dataKey" f - - static member inline stroke (color: string) = Interop.mkRadialBarAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkRadialBarAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkRadialBarAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkRadialBarAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkRadialBarAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkRadialBarAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkRadialBarAttr "fillOpacity" value + static member inline minAngle(value: int) = + Interop.mkRadialBarAttr "minAngle" value + + static member inline minAngle(value: float) = + Interop.mkRadialBarAttr "minAngle" value + + static member inline isAnimationActive(value: bool) = + Interop.mkRadialBarAttr "isAnimationActive" value + + static member inline children(elements: ReactElement seq) = + Interop.mkRadialBarAttr "children" (prop.children elements) + + static member inline children(elements: ReactElement list) = + Interop.mkRadialBarAttr "children" (prop.children elements) + + static member inline dataKey(value: string) = Interop.mkRadialBarAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkRadialBarAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkRadialBarAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkRadialBarAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkRadialBarAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkRadialBarAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkRadialBarAttr "dataKey" f + + static member inline stroke(color: string) = Interop.mkRadialBarAttr "stroke" color + + static member inline strokeWidth(width: int) = + Interop.mkRadialBarAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkRadialBarAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkRadialBarAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkRadialBarAttr "fill" color + + static member inline fillOpacity(value: int) = + Interop.mkRadialBarAttr "fillOpacity" value + + static member inline fillOpacity(value: float) = + Interop.mkRadialBarAttr "fillOpacity" value static member inline label(value: bool) = Interop.mkRadialBarAttr "label" value - static member inline label(?position:Label.Position,?fill:string) = - let label = createObj [ - "position" ==> position - "fill" ==> fill - ] + + static member inline label(?position: Label.Position, ?fill: string) = + let label = createObj [ "position" ==> position; "fill" ==> fill ] Interop.mkRadialBarAttr "label" label - static member inline label(?position:label.position,?fill:string) = - let label = createObj [ - "position" ==> position - "fill" ==> fill - ] - Interop.mkRadialBarAttr "label" label \ No newline at end of file + static member inline label(?position: label.position, ?fill: string) = + let label = createObj [ "position" ==> position; "fill" ==> fill ] + Interop.mkRadialBarAttr "label" label diff --git a/src/Feliz.Recharts/RadialBarChart.fs b/src/Feliz.Recharts/RadialBarChart.fs index 0be75a1a..b7bc9921 100644 --- a/src/Feliz.Recharts/RadialBarChart.fs +++ b/src/Feliz.Recharts/RadialBarChart.fs @@ -7,75 +7,131 @@ open Feliz.Recharts [] type radialBarChart = - static member inline data (values: 'a list) = Interop.mkRadialBarChartAttr "data" (List.toArray values) - static member inline children (elements: ReactElement list) = Interop.mkRadialBarChartAttr "children" (prop.children elements) - static member inline width (value: int) = Interop.mkRadialBarChartAttr "width" value - static member inline height (value: int) = Interop.mkRadialBarChartAttr "height" value - static member inline barGap (value: int) = Interop.mkRadialBarChartAttr "barGap" value - static member inline barGap (value: float) = Interop.mkRadialBarChartAttr "barGap" value - static member inline barSize (value: int) = Interop.mkRadialBarChartAttr "barSize" value - static member inline barSize (value: float) = Interop.mkRadialBarChartAttr "barSize" value - static member inline barCategoryGap (value: int) = Interop.mkRadialBarChartAttr "barCategoryGap" value - static member inline barCategoryGap (value: float) = Interop.mkRadialBarChartAttr "barCategoryGap" value - static member inline cy(value: float) = Interop.mkRadialBarChartAttr "cy" value - static member inline cy(value: int) = Interop.mkRadialBarChartAttr "cy" value - static member inline cx(value: float) = Interop.mkRadialBarChartAttr "cx" value - static member inline cx(value: int) = Interop.mkRadialBarChartAttr "cx" value - static member inline startAngle(value: int) = Interop.mkRadialBarChartAttr "startAngle" value - static member inline endAngle(value: int) = Interop.mkRadialBarChartAttr "endAngle" value - static member inline innerRadius(value: int) = Interop.mkRadialBarChartAttr "innerRadius" value - static member inline innerRadius(value: float) = Interop.mkRadialBarChartAttr "innerRadius" value - static member inline outerRadius(value: int) = Interop.mkRadialBarChartAttr "outerRadius" value - static member inline outerRadius(value: float) = Interop.mkRadialBarChartAttr "outerRadius" value - static member inline clockWise = Interop.mkRadialBarChartAttr "clockWise" true - static member inline background(value:bool) = Interop.mkRadialBarChartAttr "background" value - static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] - Interop.mkRadialBarChartAttr "margin" margin - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkRadialBarChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkRadialBarChartAttr "onMouseLeave" handler - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkRadialBarChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + static member inline data(values: 'a list) = + Interop.mkRadialBarChartAttr "data" (List.toArray values) + + static member inline children(elements: ReactElement list) = + Interop.mkRadialBarChartAttr "children" (prop.children elements) + + static member inline width(value: int) = + Interop.mkRadialBarChartAttr "width" value + + static member inline height(value: int) = + Interop.mkRadialBarChartAttr "height" value + + static member inline barGap(value: int) = + Interop.mkRadialBarChartAttr "barGap" value + + static member inline barGap(value: float) = + Interop.mkRadialBarChartAttr "barGap" value + + static member inline barSize(value: int) = + Interop.mkRadialBarChartAttr "barSize" value + + static member inline barSize(value: float) = + Interop.mkRadialBarChartAttr "barSize" value + + static member inline barCategoryGap(value: int) = + Interop.mkRadialBarChartAttr "barCategoryGap" value + + static member inline barCategoryGap(value: float) = + Interop.mkRadialBarChartAttr "barCategoryGap" value + + static member inline cy(value: float) = Interop.mkRadialBarChartAttr "cy" value + static member inline cy(value: int) = Interop.mkRadialBarChartAttr "cy" value + static member inline cx(value: float) = Interop.mkRadialBarChartAttr "cx" value + static member inline cx(value: int) = Interop.mkRadialBarChartAttr "cx" value + + static member inline startAngle(value: int) = + Interop.mkRadialBarChartAttr "startAngle" value + + static member inline endAngle(value: int) = + Interop.mkRadialBarChartAttr "endAngle" value + + static member inline innerRadius(value: int) = + Interop.mkRadialBarChartAttr "innerRadius" value + + static member inline innerRadius(value: float) = + Interop.mkRadialBarChartAttr "innerRadius" value + + static member inline outerRadius(value: int) = + Interop.mkRadialBarChartAttr "outerRadius" value + + static member inline outerRadius(value: float) = + Interop.mkRadialBarChartAttr "outerRadius" value + + static member inline clockWise = Interop.mkRadialBarChartAttr "clockWise" true + + static member inline background(value: bool) = + Interop.mkRadialBarChartAttr "background" value + + static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] + + Interop.mkRadialBarChartAttr "margin" margin + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkRadialBarChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkRadialBarChartAttr "onMouseLeave" handler + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkRadialBarChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs module radialBarChart = [] type cy = /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. - static member inline percentage(value: float) = Interop.mkRadialBarChartAttr "cy" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkRadialBarChartAttr "cy" (unbox value + "%") + /// The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. - static member inline percentage(value: int) = Interop.mkRadialBarChartAttr "cy" (unbox value + "%") + static member inline percentage(value: int) = + Interop.mkRadialBarChartAttr "cy" (unbox value + "%") [] type innerRadius = - static member inline percentage(value: float) = Interop.mkRadialBarChartAttr "innerRadius" (unbox value + "%") - static member inline percentage(value: int) = Interop.mkRadialBarChartAttr "innerRadius" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkRadialBarChartAttr "innerRadius" (unbox value + "%") + + static member inline percentage(value: int) = + Interop.mkRadialBarChartAttr "innerRadius" (unbox value + "%") [] type outerRadius = - static member inline percentage(value: float) = Interop.mkRadialBarChartAttr "outerRadius" (unbox value + "%") - static member inline percentage(value: int) = Interop.mkRadialBarChartAttr "outerRadius" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkRadialBarChartAttr "outerRadius" (unbox value + "%") + + static member inline percentage(value: int) = + Interop.mkRadialBarChartAttr "outerRadius" (unbox value + "%") [] type cx = /// The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default '50%'. - static member inline percentage(value: float) = Interop.mkRadialBarChartAttr "cx" (unbox value + "%") + static member inline percentage(value: float) = + Interop.mkRadialBarChartAttr "cx" (unbox value + "%") + /// The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default '50%'. - static member inline percentage(value: int) = Interop.mkRadialBarChartAttr "cx" (unbox value + "%") + static member inline percentage(value: int) = + Interop.mkRadialBarChartAttr "cx" (unbox value + "%") [] type legendType = @@ -97,4 +153,4 @@ module radialBarChart = static member inline easeIn = Interop.mkRadialBarChartAttr "animationEasing" "ease-in" static member inline easeOut = Interop.mkRadialBarChartAttr "animationEasing" "ease-out" static member inline easeInOut = Interop.mkRadialBarChartAttr "animationEasing" "ease-in-out" - static member inline linear = Interop.mkRadialBarChartAttr "animationEasing" "linear" \ No newline at end of file + static member inline linear = Interop.mkRadialBarChartAttr "animationEasing" "linear" diff --git a/src/Feliz.Recharts/ReferenceArea.fs b/src/Feliz.Recharts/ReferenceArea.fs index 3d50022c..e023d3e4 100644 --- a/src/Feliz.Recharts/ReferenceArea.fs +++ b/src/Feliz.Recharts/ReferenceArea.fs @@ -7,69 +7,99 @@ open Fable.Core.JsInterop [] type referenceArea = /// The id of x-axis which is corresponding to the data. - static member inline xAxisId (value: string) = Interop.mkReferenceAreaAttr "xAxisId" value + static member inline xAxisId(value: string) = + Interop.mkReferenceAreaAttr "xAxisId" value + /// The id of x-axis which is corresponding to the data. - static member inline xAxisId (value: int) = Interop.mkReferenceAreaAttr "xAxisId" value + static member inline xAxisId(value: int) = + Interop.mkReferenceAreaAttr "xAxisId" value + /// The id of y-axis which is corresponding to the data. - static member inline yAxisId (value: string) = Interop.mkReferenceAreaAttr "yAxisId" value - static member inline stroke (value: string) = Interop.mkReferenceAreaAttr "stroke" value - static member inline strokeOpacity (value: int) = Interop.mkReferenceAreaAttr "strokeOpacity" value - static member inline strokeOpacity (value: float) = Interop.mkReferenceAreaAttr "strokeOpacity" value - static member inline fill (value: string) = Interop.mkReferenceAreaAttr "fill" value - static member inline fillOpacity (value: int) = Interop.mkReferenceAreaAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkReferenceAreaAttr "fillOpacity" value + static member inline yAxisId(value: string) = + Interop.mkReferenceAreaAttr "yAxisId" value + + static member inline stroke(value: string) = + Interop.mkReferenceAreaAttr "stroke" value + + static member inline strokeOpacity(value: int) = + Interop.mkReferenceAreaAttr "strokeOpacity" value + + static member inline strokeOpacity(value: float) = + Interop.mkReferenceAreaAttr "strokeOpacity" value + + static member inline fill(value: string) = + Interop.mkReferenceAreaAttr "fill" value + + static member inline fillOpacity(value: int) = + Interop.mkReferenceAreaAttr "fillOpacity" value + + static member inline fillOpacity(value: float) = + Interop.mkReferenceAreaAttr "fillOpacity" value + /// The id of y-axis which is corresponding to the data. - static member inline yAxisId (value: int) = Interop.mkReferenceAreaAttr "yAxisId" value + static member inline yAxisId(value: int) = + Interop.mkReferenceAreaAttr "yAxisId" value + /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x1 (value: int) = Interop.mkReferenceAreaAttr "x1" value + static member inline x1(value: int) = Interop.mkReferenceAreaAttr "x1" value /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x1 (value: float) = Interop.mkReferenceAreaAttr "x1" value + static member inline x1(value: float) = Interop.mkReferenceAreaAttr "x1" value /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x1 (value: string) = Interop.mkReferenceAreaAttr "x1" value + static member inline x1(value: string) = Interop.mkReferenceAreaAttr "x1" value /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x2 (value: int) = Interop.mkReferenceAreaAttr "x2" value + static member inline x2(value: int) = Interop.mkReferenceAreaAttr "x2" value /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x2 (value: float) = Interop.mkReferenceAreaAttr "x2" value + static member inline x2(value: float) = Interop.mkReferenceAreaAttr "x2" value /// A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. /// If the specified x-axis is a category axis, the value of x must be one of the categorys. /// If one of x1 or x2 is invalidate, the area will cover along x-axis. - static member inline x2 (value: string) = Interop.mkReferenceAreaAttr "x2" value + static member inline x2(value: string) = Interop.mkReferenceAreaAttr "x2" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y1 (value: int) = Interop.mkReferenceAreaAttr "y1" value + static member inline y1(value: int) = Interop.mkReferenceAreaAttr "y1" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y1 (value: float) = Interop.mkReferenceAreaAttr "y1" value + static member inline y1(value: float) = Interop.mkReferenceAreaAttr "y1" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y1 (value: string) = Interop.mkReferenceAreaAttr "y1" value + static member inline y1(value: string) = Interop.mkReferenceAreaAttr "y1" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y2 (value: int) = Interop.mkReferenceAreaAttr "y2" value + static member inline y2(value: int) = Interop.mkReferenceAreaAttr "y2" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y2 (value: float) = Interop.mkReferenceAreaAttr "y2" value + static member inline y2(value: float) = Interop.mkReferenceAreaAttr "y2" value /// A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. /// If the specified y-axis is a category axis, the value of y must be one of the categorys. /// If one of y1 or y2 is invalidate, the area will cover along y-axis. - static member inline y2 (value: string) = Interop.mkReferenceAreaAttr "y2" value - static member inline alwaysShow (value: bool) = Interop.mkReferenceAreaAttr "alwaysShow" value - static member inline inFront (value: bool) = Interop.mkReferenceAreaAttr "inFront" value - static member inline label (value: string) = Interop.mkReferenceAreaAttr "label" value - static member inline label (value: int) = Interop.mkReferenceAreaAttr "label" value - static member inline label (value: float) = Interop.mkReferenceAreaAttr "label" value + static member inline y2(value: string) = Interop.mkReferenceAreaAttr "y2" value + + static member inline alwaysShow(value: bool) = + Interop.mkReferenceAreaAttr "alwaysShow" value + + static member inline inFront(value: bool) = + Interop.mkReferenceAreaAttr "inFront" value + + static member inline label(value: string) = + Interop.mkReferenceAreaAttr "label" value + + static member inline label(value: int) = + Interop.mkReferenceAreaAttr "label" value + + static member inline label(value: float) = + Interop.mkReferenceAreaAttr "label" value diff --git a/src/Feliz.Recharts/ReferenceDot.fs b/src/Feliz.Recharts/ReferenceDot.fs index 684b6553..de40acbe 100644 --- a/src/Feliz.Recharts/ReferenceDot.fs +++ b/src/Feliz.Recharts/ReferenceDot.fs @@ -6,19 +6,44 @@ open Fable.Core.JsInterop [] type referenceDot = - static member inline xAxisId(value: string) = Interop.mkReferenceDotAttr "xAxisId" value - static member inline xAxisId(value: int) = Interop.mkReferenceDotAttr "xAxisId" value - static member inline xAxisId(value: float) = Interop.mkReferenceDotAttr "xAxisId" value - static member inline yAxisId(value: string) = Interop.mkReferenceDotAttr "yAxisId" value - static member inline yAxisId(value: int) = Interop.mkReferenceDotAttr "yAxisId" value - static member inline yAxisId(value: float) = Interop.mkReferenceDotAttr "yAxisId" value - static member inline stroke (color: string) = Interop.mkReferenceDotAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkReferenceDotAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkReferenceDotAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkReferenceDotAttr "strokeOpacity" opacity - static member inline fill (color: string) = Interop.mkReferenceDotAttr "fill" color - static member inline fillOpacity (value: int) = Interop.mkReferenceDotAttr "fillOpacity" value - static member inline fillOpacity (value: float) = Interop.mkReferenceDotAttr "fillOpacity" value + static member inline xAxisId(value: string) = + Interop.mkReferenceDotAttr "xAxisId" value + + static member inline xAxisId(value: int) = + Interop.mkReferenceDotAttr "xAxisId" value + + static member inline xAxisId(value: float) = + Interop.mkReferenceDotAttr "xAxisId" value + + static member inline yAxisId(value: string) = + Interop.mkReferenceDotAttr "yAxisId" value + + static member inline yAxisId(value: int) = + Interop.mkReferenceDotAttr "yAxisId" value + + static member inline yAxisId(value: float) = + Interop.mkReferenceDotAttr "yAxisId" value + + static member inline stroke(color: string) = + Interop.mkReferenceDotAttr "stroke" color + + static member inline strokeWidth(width: int) = + Interop.mkReferenceDotAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkReferenceDotAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkReferenceDotAttr "strokeOpacity" opacity + + static member inline fill(color: string) = Interop.mkReferenceDotAttr "fill" color + + static member inline fillOpacity(value: int) = + Interop.mkReferenceDotAttr "fillOpacity" value + + static member inline fillOpacity(value: float) = + Interop.mkReferenceDotAttr "fillOpacity" value + static member inline x(value: string) = Interop.mkReferenceDotAttr "x" value static member inline x(value: int) = Interop.mkReferenceDotAttr "x" value static member inline x(value: float) = Interop.mkReferenceDotAttr "x" value @@ -27,8 +52,18 @@ type referenceDot = static member inline y(value: float) = Interop.mkReferenceDotAttr "y" value static member inline r(value: int) = Interop.mkReferenceDotAttr "r" value static member inline r(value: float) = Interop.mkReferenceDotAttr "r" value - static member inline alwaysShow (value: bool) = Interop.mkReferenceDotAttr "alwaysShow" value - static member inline inFront (value: bool) = Interop.mkReferenceDotAttr "inFront" value - static member inline label (value: string) = Interop.mkReferenceDotAttr "label" value - static member inline label (value: int) = Interop.mkReferenceDotAttr "label" value - static member inline label (value: float) = Interop.mkReferenceDotAttr "label" value \ No newline at end of file + + static member inline alwaysShow(value: bool) = + Interop.mkReferenceDotAttr "alwaysShow" value + + static member inline inFront(value: bool) = + Interop.mkReferenceDotAttr "inFront" value + + static member inline label(value: string) = + Interop.mkReferenceDotAttr "label" value + + static member inline label(value: int) = + Interop.mkReferenceDotAttr "label" value + + static member inline label(value: float) = + Interop.mkReferenceDotAttr "label" value diff --git a/src/Feliz.Recharts/ReferenceLine.fs b/src/Feliz.Recharts/ReferenceLine.fs index 63e42712..10cac4df 100644 --- a/src/Feliz.Recharts/ReferenceLine.fs +++ b/src/Feliz.Recharts/ReferenceLine.fs @@ -7,18 +7,36 @@ open Fable.Core.JsInterop [] type referenceLine = /// The id of x-axis which is corresponding to the data. - static member inline xAxisId (value: string) = Interop.mkReferenceLineAttr "xAxisId" value + static member inline xAxisId(value: string) = + Interop.mkReferenceLineAttr "xAxisId" value + /// The id of x-axis which is corresponding to the data. - static member inline xAxisId (value: int) = Interop.mkReferenceLineAttr "xAxisId" value + static member inline xAxisId(value: int) = + Interop.mkReferenceLineAttr "xAxisId" value + /// The id of y-axis which is corresponding to the data. - static member inline yAxisId (value: string) = Interop.mkReferenceLineAttr "yAxisId" value - static member inline stroke (color: string) = Interop.mkReferenceLineAttr "stroke" color - static member inline strokeWidth (width: int) = Interop.mkReferenceLineAttr "strokeWidth" width - static member inline strokeOpacity (opacity: int) = Interop.mkReferenceLineAttr "strokeOpacity" opacity - static member inline strokeOpacity (opacity: float) = Interop.mkReferenceLineAttr "strokeOpacity" opacity - static member inline strokeDasharray([] values: int []) = Interop.mkReferenceLineAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") + static member inline yAxisId(value: string) = + Interop.mkReferenceLineAttr "yAxisId" value + + static member inline stroke(color: string) = + Interop.mkReferenceLineAttr "stroke" color + + static member inline strokeWidth(width: int) = + Interop.mkReferenceLineAttr "strokeWidth" width + + static member inline strokeOpacity(opacity: int) = + Interop.mkReferenceLineAttr "strokeOpacity" opacity + + static member inline strokeOpacity(opacity: float) = + Interop.mkReferenceLineAttr "strokeOpacity" opacity + + static member inline strokeDasharray([] values: int[]) = + Interop.mkReferenceLineAttr "strokeDasharray" (values |> Array.map string |> String.concat " ") + /// The id of y-axis which is corresponding to the data. - static member inline yAxisId (value: int) = Interop.mkReferenceLineAttr "yAxisId" value + static member inline yAxisId(value: int) = + Interop.mkReferenceLineAttr "yAxisId" value + /// If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn. static member inline x(value: string) = Interop.mkReferenceLineAttr "x" value /// If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn. @@ -31,18 +49,32 @@ type referenceLine = static member inline y(value: int) = Interop.mkReferenceLineAttr "y" value /// If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn. static member inline y(value: float) = Interop.mkReferenceLineAttr "y" value + /// If the corresponding axis is a number axis and this option is set true, the value of reference line will be take into account when calculate the domain of corresponding axis, so that the reference line will always show. /// /// Default is `false`. /// /// See example at [A LineChart with alwaysShow ReferenceLine](https://jsfiddle.net/alidingling/uqtuc1mp/) - static member inline alwaysShow(value: bool) = Interop.mkReferenceLineAttr "alwaysShow" value + static member inline alwaysShow(value: bool) = + Interop.mkReferenceLineAttr "alwaysShow" value + /// If set true, the line will be rendered in front of bars in BarChart, etc. /// /// Default is `false`. - static member inline isFront (value: bool) = Interop.mkReferenceLineAttr "isFront" value - static member inline label(value: string) = Interop.mkReferenceLineAttr "label" value - static member inline label(value: int) = Interop.mkReferenceLineAttr "label" value - static member inline label(value: float) = Interop.mkReferenceLineAttr "label" value - static member inline label(value: ReactElement) = Interop.mkReferenceLineAttr "label" value - static member inline label(value: ILabelProperties -> ReactElement) = Interop.mkReferenceLineAttr "label" value \ No newline at end of file + static member inline isFront(value: bool) = + Interop.mkReferenceLineAttr "isFront" value + + static member inline label(value: string) = + Interop.mkReferenceLineAttr "label" value + + static member inline label(value: int) = + Interop.mkReferenceLineAttr "label" value + + static member inline label(value: float) = + Interop.mkReferenceLineAttr "label" value + + static member inline label(value: ReactElement) = + Interop.mkReferenceLineAttr "label" value + + static member inline label(value: ILabelProperties -> ReactElement) = + Interop.mkReferenceLineAttr "label" value diff --git a/src/Feliz.Recharts/ResponsiveContainer.fs b/src/Feliz.Recharts/ResponsiveContainer.fs index e6ea1d29..a5ab3e97 100644 --- a/src/Feliz.Recharts/ResponsiveContainer.fs +++ b/src/Feliz.Recharts/ResponsiveContainer.fs @@ -7,42 +7,76 @@ open Feliz.Styles [] type responsiveContainer = /// The percentage value of the chart's width or a fixed width. Default is 100%. - static member inline width (value: int) = Interop.mkResponsiveContainerAttr "width" value + static member inline width(value: int) = + Interop.mkResponsiveContainerAttr "width" value + /// The percentage value of the chart's width or a fixed width. Default is 100%. - static member inline width (value: float) = Interop.mkResponsiveContainerAttr "width" value + static member inline width(value: float) = + Interop.mkResponsiveContainerAttr "width" value + /// The percentage value of the chart's width or a fixed width. Default is 100%. - static member inline width (value: ICssUnit) = - if value = length.percent(100) || value = length.perc(100.0) then - Interop.mkResponsiveContainerAttr "width" (length.percent(99)) + static member inline width(value: ICssUnit) = + if value = length.percent (100) || value = length.perc (100.0) then + Interop.mkResponsiveContainerAttr "width" (length.percent (99)) else Interop.mkResponsiveContainerAttr "width" value + /// The percentage value of the chart's width or a fixed height. Default is 100%. - static member inline height (value: int) = Interop.mkResponsiveContainerAttr "height" value + static member inline height(value: int) = + Interop.mkResponsiveContainerAttr "height" value + /// The percentage value of the chart's width or a fixed height. Default is 100%. - static member inline height (value: float) = Interop.mkResponsiveContainerAttr "height" value + static member inline height(value: float) = + Interop.mkResponsiveContainerAttr "height" value + /// The percentage value of the chart's width or a fixed height. Default is 100%. - static member inline height (value: ICssUnit) = Interop.mkResponsiveContainerAttr "height" value + static member inline height(value: ICssUnit) = + Interop.mkResponsiveContainerAttr "height" value + /// Width / height. If specified, the height will be calculated by width / aspect. - static member inline aspect (value: float) = Interop.mkResponsiveContainerAttr "aspect" value + static member inline aspect(value: float) = + Interop.mkResponsiveContainerAttr "aspect" value + /// width / height. If specified, the height will be calculated by width / aspect. - static member inline aspect (value: int) = Interop.mkResponsiveContainerAttr "aspect" value + static member inline aspect(value: int) = + Interop.mkResponsiveContainerAttr "aspect" value + /// The chart that should become responsive - static member inline chart (chart: ReactElement) = Interop.mkResponsiveContainerAttr "children" chart + static member inline chart(chart: ReactElement) = + Interop.mkResponsiveContainerAttr "children" chart + /// The minimum width of the container - static member inline minWidth (value: int) = Interop.mkResponsiveContainerAttr "minWidth" value + static member inline minWidth(value: int) = + Interop.mkResponsiveContainerAttr "minWidth" value + /// The minimum width of the container - static member inline minWidth (value: float) = Interop.mkResponsiveContainerAttr "minWidth" value + static member inline minWidth(value: float) = + Interop.mkResponsiveContainerAttr "minWidth" value + /// The minimum width of the container - static member inline minWidth (value: ICssUnit) = Interop.mkResponsiveContainerAttr "minWidth" value + static member inline minWidth(value: ICssUnit) = + Interop.mkResponsiveContainerAttr "minWidth" value + /// The minimum height of the container. - static member inline minHeight (value: int) = Interop.mkResponsiveContainerAttr "minHeight" value + static member inline minHeight(value: int) = + Interop.mkResponsiveContainerAttr "minHeight" value + /// The minimum height of the container. - static member inline minHeight (value: float) = Interop.mkResponsiveContainerAttr "minHeight" value + static member inline minHeight(value: float) = + Interop.mkResponsiveContainerAttr "minHeight" value + /// The minimum height of the container. - static member inline minHeight (value: ICssUnit) = Interop.mkResponsiveContainerAttr "minHeight" value + static member inline minHeight(value: ICssUnit) = + Interop.mkResponsiveContainerAttr "minHeight" value + /// If specified a positive number, debounced function will be used to handle the resize event. - static member inline debounce (value: int) = Interop.mkResponsiveContainerAttr "debounce" value + static member inline debounce(value: int) = + Interop.mkResponsiveContainerAttr "debounce" value + /// If specified a positive number, debounced function will be used to handle the resize event. - static member inline debounce (value: float) = Interop.mkResponsiveContainerAttr "debounce" value + static member inline debounce(value: float) = + Interop.mkResponsiveContainerAttr "debounce" value + /// If specified a positive number, debounced function will be used to handle the resize event. - static member inline debounce (value: ICssUnit) = Interop.mkResponsiveContainerAttr "debounce" value \ No newline at end of file + static member inline debounce(value: ICssUnit) = + Interop.mkResponsiveContainerAttr "debounce" value diff --git a/src/Feliz.Recharts/ScatterChart.fs b/src/Feliz.Recharts/ScatterChart.fs index 8ac0499a..dae21430 100644 --- a/src/Feliz.Recharts/ScatterChart.fs +++ b/src/Feliz.Recharts/ScatterChart.fs @@ -8,72 +8,92 @@ open Fable.Core.JsInterop [] type scatterChart = /// The width of chart container. - static member inline width (value: int) = Interop.mkScatterChartAttr "width" value + static member inline width(value: int) = + Interop.mkScatterChartAttr "width" value + /// The height of chart container. - static member inline height (value: int) = Interop.mkScatterChartAttr "height" value + static member inline height(value: int) = + Interop.mkScatterChartAttr "height" value + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkScatterChartAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkScatterChartAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkScatterChartAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkScatterChartAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkScatterChartAttr "data" values - static member inline children (elements: ReactElement list) = unbox (prop.children elements) - + static member inline data(values: 'a array) = + Interop.mkScatterChartAttr "data" values + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + /// The sizes of whitespace around the container. /// /// Default value `{ top: 5, right: 5, bottom: 5, left: 5 }` static member inline margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkScatterChartAttr "margin" margin - static member inline onClick (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkScatterChartAttr "onClick" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseEnter (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkScatterChartAttr "onMouseEnter" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseMove (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkScatterChartAttr "onMouseMove" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseLeave (handler: unit -> unit) = Interop.mkScatterChartAttr "onMouseLeave" handler - static member inline onMouseUp (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkScatterChartAttr "onMouseUp" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs - - static member inline onMouseDown (handler: ChartMouseEvent<'label, 'payload> -> unit) = - Interop.mkScatterChartAttr "onMouseDown" <| - fun eventArgs -> - if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs - then ignore() - else handler eventArgs + + static member inline onClick(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkScatterChartAttr "onClick" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseEnter(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkScatterChartAttr "onMouseEnter" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseMove(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkScatterChartAttr "onMouseMove" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseLeave(handler: unit -> unit) = + Interop.mkScatterChartAttr "onMouseLeave" handler + + static member inline onMouseUp(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkScatterChartAttr "onMouseUp" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs + + static member inline onMouseDown(handler: ChartMouseEvent<'label, 'payload> -> unit) = + Interop.mkScatterChartAttr "onMouseDown" + <| fun eventArgs -> + if isNullOrUndefined eventArgs || Interop.objectHas [ "isTooltipActive" ] eventArgs then + ignore () + else + handler eventArgs [] type scatter = - static member inline name (value : string) = Interop.mkScatterAttr "name" value - static member inline xAxisId (value: string) = Interop.mkScatterAttr "xAxisId" value - static member inline yAxisId (value: string) = Interop.mkScatterAttr "yAxisId" value - static member inline xAxisId (value: int) = Interop.mkScatterAttr "xAxisId" value - static member inline yAxisId (value: int) = Interop.mkScatterAttr "yAxisId" value + static member inline name(value: string) = Interop.mkScatterAttr "name" value + static member inline xAxisId(value: string) = Interop.mkScatterAttr "xAxisId" value + static member inline yAxisId(value: string) = Interop.mkScatterAttr "yAxisId" value + static member inline xAxisId(value: int) = Interop.mkScatterAttr "xAxisId" value + static member inline yAxisId(value: int) = Interop.mkScatterAttr "yAxisId" value ///// The source data, in which each element is an object. //static member inline points (points: seq<'a>) = Interop.mkScatterAttr "points" (Seq.toArray points) ///// The source data, in which each element is an object. @@ -81,28 +101,44 @@ type scatter = ///// The source data, in which each element is an object. //static member inline porints (points: 'a array) = Interop.mkScatterAttr "points" points ///// If set false, animation of area will be disabled. - static member inline isAnimationActive (value: bool) = Interop.mkScatterAttr "isAnimationActive" value + static member inline isAnimationActive(value: bool) = + Interop.mkScatterAttr "isAnimationActive" value + /// Specifies when the animation should begin, the unit of this option is ms. - static member inline animationBegin (value: int) = Interop.mkScatterAttr "animationBegin" value + static member inline animationBegin(value: int) = + Interop.mkScatterAttr "animationBegin" value + /// Specifies the duration of animation, the unit of this option is ms. Default is `1500ms`. - static member inline animationDuration (value: int) = Interop.mkScatterAttr "animationDuration" value + static member inline animationDuration(value: int) = + Interop.mkScatterAttr "animationDuration" value + /// Specifies the duration of animation. Default is `1500ms`. - static member inline animationDuration (value: TimeSpan) = Interop.mkScatterAttr "animationDuration" value.TotalMilliseconds + static member inline animationDuration(value: TimeSpan) = + Interop.mkScatterAttr "animationDuration" value.TotalMilliseconds + /// The source data, in which each element is an object. - static member inline data (values: seq<'a>) = Interop.mkScatterAttr "data" (Seq.toArray values) + static member inline data(values: seq<'a>) = + Interop.mkScatterAttr "data" (Seq.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a list) = Interop.mkScatterAttr "data" (List.toArray values) + static member inline data(values: 'a list) = + Interop.mkScatterAttr "data" (List.toArray values) + /// The source data, in which each element is an object. - static member inline data (values: 'a array) = Interop.mkScatterAttr "data" values - static member inline fill (color: string) = Interop.mkScatterAttr "fill" color - static member inline children (elements: ReactElement list) = unbox (prop.children elements) - static member inline margin (?top: int, ?right: int, ?bottom: int, ?left: int) = - let margin = - createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "bottom" ==> Option.defaultValue 0 bottom - "left" ==> Option.defaultValue 0 left ] + static member inline data(values: 'a array) = Interop.mkScatterAttr "data" values + static member inline fill(color: string) = Interop.mkScatterAttr "fill" color + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + + static member inline margin(?top: int, ?right: int, ?bottom: int, ?left: int) = + let margin = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "bottom" ==> Option.defaultValue 0 bottom + "left" ==> Option.defaultValue 0 left + ] Interop.mkScatterAttr "margin" margin @@ -130,5 +166,3 @@ module scatter = static member inline easeOut = Interop.mkScatterAttr "animationEasing" "ease-out" static member inline easeInOut = Interop.mkScatterAttr "animationEasing" "ease-in-out" static member inline linear = Interop.mkScatterAttr "animationEasing" "linear" - - diff --git a/src/Feliz.Recharts/Text.fs b/src/Feliz.Recharts/Text.fs index 5b1c9214..1b9b7bf7 100644 --- a/src/Feliz.Recharts/Text.fs +++ b/src/Feliz.Recharts/Text.fs @@ -7,9 +7,9 @@ open Fable.Core.JsInterop [] type text = - static member inline scaleToFit (value: bool) = Interop.mkTextAttr "scaleToFit" value - static member inline angle (value: int) = Interop.mkTextAttr "angle" value - static member inline width (value: int) = Interop.mkTextAttr "width" value + static member inline scaleToFit(value: bool) = Interop.mkTextAttr "scaleToFit" value + static member inline angle(value: int) = Interop.mkTextAttr "angle" value + static member inline width(value: int) = Interop.mkTextAttr "width" value module text = @@ -24,4 +24,4 @@ module text = type verticalAnchor = static member inline start = Interop.mkTextAttr "verticalAnchor" "start" static member inline middle = Interop.mkTextAttr "verticalAnchor" "middle" - static member inline end' = Interop.mkTextAttr "verticalAnchor" "end" \ No newline at end of file + static member inline end' = Interop.mkTextAttr "verticalAnchor" "end" diff --git a/src/Feliz.Recharts/Tooltip.fs b/src/Feliz.Recharts/Tooltip.fs index 9d3fa307..c8b5c41e 100644 --- a/src/Feliz.Recharts/Tooltip.fs +++ b/src/Feliz.Recharts/Tooltip.fs @@ -8,37 +8,52 @@ open Fable.Core.JsInterop [] type tooltip = - static member inline separator (value: string) = Interop.mkTooltipAttr "separator" value - static member inline offset (value: int) = Interop.mkTooltipAttr "offset" value - static member inline filterNull (value: bool) = Interop.mkTooltipAttr "filterNull" value - static member inline cursor (value: bool) = Interop.mkTooltipAttr "cursor" value - /// Specifies how the text in the tooltip should be formatted - /// + static member inline separator(value: string) = Interop.mkTooltipAttr "separator" value + static member inline offset(value: int) = Interop.mkTooltipAttr "offset" value + + static member inline filterNull(value: bool) = + Interop.mkTooltipAttr "filterNull" value + + static member inline cursor(value: bool) = Interop.mkTooltipAttr "cursor" value + + /// Specifies how the text in the tooltip should be formatted + /// /// ie: tooltip.formatter (fun value _ _ -> $"{value}%%") /// ie: tooltip.formatter (fun _ _ _ -> data), as long as "data" is a string - static member inline formatter(f: 'a->string->'b->'c) = Interop.mkTooltipAttr "formatter" (System.Func<_,_,_,_> f) - static member inline wrapperStyle (properties: #IStyleAttribute list) = Interop.mkTooltipAttr "wrapperStyle" (createObj !!properties) - static member inline itemStyle (properties: #IStyleAttribute list) = Interop.mkTooltipAttr "itemStyle" (createObj !!properties) - static member inline labelStyle (properties: #IStyleAttribute list) = Interop.mkTooltipAttr "labelStyle" (createObj !!properties) + static member inline formatter(f: 'a -> string -> 'b -> 'c) = + Interop.mkTooltipAttr "formatter" (System.Func<_, _, _, _> f) + + static member inline wrapperStyle(properties: #IStyleAttribute list) = + Interop.mkTooltipAttr "wrapperStyle" (createObj !!properties) + + static member inline itemStyle(properties: #IStyleAttribute list) = + Interop.mkTooltipAttr "itemStyle" (createObj !!properties) + + static member inline labelStyle(properties: #IStyleAttribute list) = + Interop.mkTooltipAttr "labelStyle" (createObj !!properties) + /// The position of the tooltip in relation to the chart. /// /// Takes a tuple of (x : int, y : int) /// Default value depends on the position of the mouse. - static member inline position (?x: int, ?y: int) = - let position = - match x, y with + static member inline position(?x: int, ?y: int) = + let position = + match x, y with | None, None -> createObj [ "x" ==> 0; "y" ==> 0 ] | None, Some _ -> createObj [ "x" ==> 0; "y" ==> 0 ] | Some _, None -> createObj [ "x" ==> 0; "y" ==> 0 ] | Some x, Some y -> createObj [ "x" ==> x; "y" ==> y ] + Interop.mkTooltipAttr "position" position static member inline cursor(?stroke: string, ?strokeWidth: int) = - let cursor = createObj [ - "stroke" ==> Option.defaultValue "" stroke - "strokeWidth" ==> Option.defaultValue 0 strokeWidth - ] + let cursor = + createObj [ + "stroke" ==> Option.defaultValue "" stroke + "strokeWidth" ==> Option.defaultValue 0 strokeWidth + ] Interop.mkTooltipAttr "cursor" cursor - static member inline active (value: bool) = Interop.mkTooltipAttr "active" value - static member inline content (render: ITooltipProperty list -> ReactElement) = Interop.mkTooltipAttr "content" render + + static member inline active(value: bool) = Interop.mkTooltipAttr "active" value + static member inline content(render: ITooltipProperty list -> ReactElement) = Interop.mkTooltipAttr "content" render diff --git a/src/Feliz.Recharts/Types.fs b/src/Feliz.Recharts/Types.fs index 88fab556..5eb21de0 100644 --- a/src/Feliz.Recharts/Types.fs +++ b/src/Feliz.Recharts/Types.fs @@ -4,108 +4,108 @@ open Fable.Core [] type IDotProperties<'a> = - abstract cy : float - abstract cx : float - abstract dataKey : string - abstract height : float - abstract key : string - abstract index : int - abstract stroke : string - abstract fill : string - abstract value : float - abstract payload : 'a + abstract cy: float + abstract cx: float + abstract dataKey: string + abstract height: float + abstract key: string + abstract index: int + abstract stroke: string + abstract fill: string + abstract value: float + abstract payload: 'a type IAxisDomain = interface end [] type domain = - static member inline min : IAxisDomain = unbox "dataMin" - static member inline max : IAxisDomain = unbox "dataMax" - static member inline auto : IAxisDomain = unbox "auto" - static member inline constant (value: int) : IAxisDomain = unbox value - static member inline calculate (f: float -> float) : IAxisDomain = unbox f - static member inline calculate (f: int -> int) : IAxisDomain = unbox f - static member inline calculate (f: int -> float) : IAxisDomain = unbox f - static member inline calculate (f: float -> int) : IAxisDomain = unbox f + static member inline min: IAxisDomain = unbox "dataMin" + static member inline max: IAxisDomain = unbox "dataMax" + static member inline auto: IAxisDomain = unbox "auto" + static member inline constant(value: int) : IAxisDomain = unbox value + static member inline calculate(f: float -> float) : IAxisDomain = unbox f + static member inline calculate(f: int -> int) : IAxisDomain = unbox f + static member inline calculate(f: int -> float) : IAxisDomain = unbox f + static member inline calculate(f: float -> int) : IAxisDomain = unbox f [] type ILabelProperties = - abstract index : int - abstract offset : int - abstract x : float - abstract y : float - abstract value : float + abstract index: int + abstract offset: int + abstract x: float + abstract y: float + abstract value: float [] type IXAxisTickPayload = - abstract index : int - abstract isShow : bool - abstract coordinate : float - abstract tickCoord : float - abstract offset : float + abstract index: int + abstract isShow: bool + abstract coordinate: float + abstract tickCoord: float + abstract offset: float [] type IXAxisTickProperties = - abstract fill : string - abstract index : int - abstract height : float - abstract stroke : string - abstract textAnchor : string - abstract verticalAnchor : string - abstract visibleTicksCount : int - abstract width : float - abstract x : float - abstract y : float + abstract fill: string + abstract index: int + abstract height: float + abstract stroke: string + abstract textAnchor: string + abstract verticalAnchor: string + abstract visibleTicksCount: int + abstract width: float + abstract x: float + abstract y: float [] type ITickItem = - abstract value : obj - abstract coordinate : float - abstract index : int + abstract value: obj + abstract coordinate: float + abstract index: int [] type IPolarAngleAxisTickProperties = - abstract angleAxisId : string - abstract cx : float + abstract angleAxisId: string + abstract cx: float abstract cy: float abstract radius: float - abstract axisLineType : string - abstract orientation : string - abstract ticks : ITickItem array + abstract axisLineType: string + abstract orientation: string + abstract ticks: ITickItem array [] type IPieLabelProperties = - abstract cy : float - abstract cx : float - abstract midAngle : float - abstract innerRadius : float - abstract outerRadius : float - abstract percent : float - abstract index : int + abstract cy: float + abstract cx: float + abstract midAngle: float + abstract innerRadius: float + abstract outerRadius: float + abstract percent: float + abstract index: int [] type ChartCoordinate = - abstract x : float - abstract y : float + abstract x: float + abstract y: float [] type ChartDataPoint<'payload> = abstract payload: 'payload - abstract color : string - abstract fill : string - abstract strokeWidth : float - abstract value : float - abstract dataKey : string - abstract name : string + abstract color: string + abstract fill: string + abstract strokeWidth: float + abstract value: float + abstract dataKey: string + abstract name: string [] type ChartMouseEvent<'label, 'payload> = - abstract activeCoordinate : ChartCoordinate - abstract activeLabel : 'label - abstract activePayload : ChartDataPoint<'payload> array - abstract activeTooltipIndex : int - abstract chartX : int - abstract chartY : int + abstract activeCoordinate: ChartCoordinate + abstract activeLabel: 'label + abstract activePayload: ChartDataPoint<'payload> array + abstract activeTooltipIndex: int + abstract chartX: int + abstract chartY: int [] type IAreaProperty = interface end @@ -220,4 +220,3 @@ type IErrorBarProperty = interface end [] type ITextProperty = interface end - diff --git a/src/Feliz.Recharts/XAxis.fs b/src/Feliz.Recharts/XAxis.fs index 0812e7b6..fb9f0660 100644 --- a/src/Feliz.Recharts/XAxis.fs +++ b/src/Feliz.Recharts/XAxis.fs @@ -7,77 +7,101 @@ open Fable.Core.JsInterop [] type xAxis = /// The key of data displayed in the x-axis. - static member inline dataKey (value: string) = Interop.mkXAxisAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkXAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkXAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkXAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkXAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkXAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(value: string) = Interop.mkXAxisAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkXAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkXAxisAttr "dataKey" f /// If set true, the axis do not display in the chart. - static member inline hide (value: bool) = Interop.mkXAxisAttr "hide" value + static member inline hide(value: bool) = Interop.mkXAxisAttr "hide" value /// The unique id of x-axis. - static member inline xAxisId (value: int) = Interop.mkXAxisAttr "xAxisId" value + static member inline xAxisId(value: int) = Interop.mkXAxisAttr "xAxisId" value /// The unique id of x-axis. - static member inline xAxisId (value: string) = Interop.mkXAxisAttr "xAxisId" value + static member inline xAxisId(value: string) = Interop.mkXAxisAttr "xAxisId" value /// Sets the type of the axis to `number` static member inline number = Interop.mkXAxisAttr "type" "number" /// Sets the type of the axis to `category` static member inline category = Interop.mkXAxisAttr "type" "category" /// If set true, flips ticks around the axis line, displaying the labels inside the chart instead of outside. /// Default is `false`. - static member inline mirror (value: bool) = Interop.mkXAxisAttr "mirror" value + static member inline mirror(value: bool) = Interop.mkXAxisAttr "mirror" value + /// Allow the ticks of XAxis to be decimals or not. Default is `true`. - static member inline allowDecimals (value: bool) = Interop.mkXAxisAttr "allowDecimals" value + static member inline allowDecimals(value: bool) = + Interop.mkXAxisAttr "allowDecimals" value + /// When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default is `false`. - static member inline allowDataOverflow (value: bool) = Interop.mkXAxisAttr "allowDataOverflow" value + static member inline allowDataOverflow(value: bool) = + Interop.mkXAxisAttr "allowDataOverflow" value + /// Allow the axis has duplicated categorys or not when the type of axis is "category". - static member inline allowDuplicatedCategory (value: bool) = Interop.mkXAxisAttr "allowDuplicatedCategory" value + static member inline allowDuplicatedCategory(value: bool) = + Interop.mkXAxisAttr "allowDuplicatedCategory" value + /// The count of axis ticks. Not used if 'type' is 'category'. Default is `5`. - static member inline tickCount (value: int) = Interop.mkXAxisAttr "tickCount" value - static member inline domain (min : IAxisDomain, max: IAxisDomain) = Interop.mkXAxisAttr "domain" [| min; max |] - static member inline interval (value: int) = Interop.mkXAxisAttr "interval" value - static member inline angle (value: float) = Interop.mkXAxisAttr "angle" value + static member inline tickCount(value: int) = Interop.mkXAxisAttr "tickCount" value + + static member inline domain(min: IAxisDomain, max: IAxisDomain) = + Interop.mkXAxisAttr "domain" [| min; max |] + + static member inline interval(value: int) = Interop.mkXAxisAttr "interval" value + static member inline angle(value: float) = Interop.mkXAxisAttr "angle" value + /// Specify the padding of x-axis. Default is `xAxis.padding(left=0, right=0)`. static member inline padding(?top: int, ?right: int, ?left: int, ?bottom: int) = - let padding = createObj [ - "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom - ] + let padding = + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkXAxisAttr "padding" padding - static member inline tickMargin (value: int) = Interop.mkXAxisAttr "tickMargin" value - static member inline tickMargin (value: float) = Interop.mkXAxisAttr "tickMargin" value - static member inline tickLine (value: bool) = Interop.mkXAxisAttr "tickLine" value - static member inline unit (value: string) = Interop.mkXAxisAttr "unit" value - static member inline name (value: string) = Interop.mkXAxisAttr "name" value - static member inline tick (tickRenderer : IXAxisTickProperties -> ReactElement) = Interop.mkXAxisAttr "tick" tickRenderer - static member inline tick (value : obj) = Interop.mkXAxisAttr "tick" value - static member inline height (value: int) = Interop.mkXAxisAttr "height" value - static member inline height (value: float) = Interop.mkXAxisAttr "height" value - static member inline width (value: int) = Interop.mkXAxisAttr "width" value - static member inline width (value: float) = Interop.mkXAxisAttr "width" value - static member inline reversed (value: bool) = Interop.mkXAxisAttr "reversed" value + + static member inline tickMargin(value: int) = Interop.mkXAxisAttr "tickMargin" value + static member inline tickMargin(value: float) = Interop.mkXAxisAttr "tickMargin" value + static member inline tickLine(value: bool) = Interop.mkXAxisAttr "tickLine" value + static member inline unit(value: string) = Interop.mkXAxisAttr "unit" value + static member inline name(value: string) = Interop.mkXAxisAttr "name" value + + static member inline tick(tickRenderer: IXAxisTickProperties -> ReactElement) = + Interop.mkXAxisAttr "tick" tickRenderer + + static member inline tick(value: obj) = Interop.mkXAxisAttr "tick" value + static member inline height(value: int) = Interop.mkXAxisAttr "height" value + static member inline height(value: float) = Interop.mkXAxisAttr "height" value + static member inline width(value: int) = Interop.mkXAxisAttr "width" value + static member inline width(value: float) = Interop.mkXAxisAttr "width" value + static member inline reversed(value: bool) = Interop.mkXAxisAttr "reversed" value static member inline label(value: int) = Interop.mkXAxisAttr "label" value + static member inline label(?value: string, ?angle: int, ?position: Label.Position) = - let label = createObj [ - "value" ==> value - "angle" ==> angle - "position" ==> position - ] + let label = + createObj [ + "value" ==> value + "angle" ==> angle + "position" ==> position + ] + Interop.mkXAxisAttr "label" label + static member inline label(?value: string, ?angle: int, ?position: label.position) = - let label = createObj [ - "value" ==> value - "angle" ==> angle - "position" ==> position - ] + let label = + createObj [ + "value" ==> value + "angle" ==> angle + "position" ==> position + ] + Interop.mkXAxisAttr "label" label - static member inline children (elements: ReactElement list) = unbox (prop.children elements) - + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + module xAxis = /// The orientation of axis. Default is `bottom`. [] @@ -90,7 +114,7 @@ module xAxis = static member inline preserveStart = Interop.mkXAxisAttr "interval" "preserveStart" static member inline preserveEnd = Interop.mkXAxisAttr "interval" "preserveEnd" static member inline preserveStartEnd = Interop.mkXAxisAttr "interval" "preserveStartEnd" - + [] type textAnchor = static member inline textAnchorStart = Interop.mkXAxisAttr "textAnchor" "start" @@ -118,4 +142,4 @@ module xAxis = static member inline quantize = Interop.mkXAxisAttr "scale" "quantize" static member inline utc = Interop.mkXAxisAttr "scale" "utc" static member inline sequential = Interop.mkXAxisAttr "scale" "sequential" - static member inline threshold = Interop.mkXAxisAttr "scale" "threshold" \ No newline at end of file + static member inline threshold = Interop.mkXAxisAttr "scale" "threshold" diff --git a/src/Feliz.Recharts/YAxis.fs b/src/Feliz.Recharts/YAxis.fs index 343d7947..aad33936 100644 --- a/src/Feliz.Recharts/YAxis.fs +++ b/src/Feliz.Recharts/YAxis.fs @@ -6,72 +6,93 @@ open Fable.Core.JsInterop [] type yAxis = - static member inline minTickGap(value : int) = Interop.mkYAxisAttr "minTickGap" value + static member inline minTickGap(value: int) = Interop.mkYAxisAttr "minTickGap" value /// The key of data displayed in the y-axis. - static member inline dataKey (value: string) = Interop.mkYAxisAttr "dataKey" value - static member inline dataKey (f: 'a -> string) = Interop.mkYAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int) = Interop.mkYAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float) = Interop.mkYAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> string option) = Interop.mkYAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> int option) = Interop.mkYAxisAttr "dataKey" f - static member inline dataKey (f: 'a -> float option) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(value: string) = Interop.mkYAxisAttr "dataKey" value + static member inline dataKey(f: 'a -> string) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> int) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> float) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> string option) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> int option) = Interop.mkYAxisAttr "dataKey" f + static member inline dataKey(f: 'a -> float option) = Interop.mkYAxisAttr "dataKey" f /// If set true, the axis do not display in the chart. - static member inline hide (value: bool) = Interop.mkYAxisAttr "hide" value + static member inline hide(value: bool) = Interop.mkYAxisAttr "hide" value /// The unique id of y-axis. - static member inline yAxisId (value: int) = Interop.mkYAxisAttr "yAxisId" value + static member inline yAxisId(value: int) = Interop.mkYAxisAttr "yAxisId" value /// The unique id of y-axis. - static member inline yAxisId (value: string) = Interop.mkYAxisAttr "yAxisId" value + static member inline yAxisId(value: string) = Interop.mkYAxisAttr "yAxisId" value /// Sets the type of the axis to `number` static member inline number = Interop.mkYAxisAttr "type" "number" /// Sets the type of the axis to `category` static member inline category = Interop.mkYAxisAttr "type" "category" + /// Allow the ticks of XAxis to be decimals or not. Default is `true`. - static member inline allowDecimals (value: bool) = Interop.mkYAxisAttr "allowDecimals" value + static member inline allowDecimals(value: bool) = + Interop.mkYAxisAttr "allowDecimals" value + /// When domain of the axis is specified and the type of the axis is 'number', if allowDataOverflow is set to be false, the domain will be adjusted when the minimum value of data is smaller than domain[0] or the maximum value of data is greater than domain[1] so that the axis displays all data values. If set to true, graphic elements (line, area, bars) will be clipped to conform to the specified domain. Default is `false`. - static member inline allowDataOverflow (value: bool) = Interop.mkYAxisAttr "allowDataOverflow" value + static member inline allowDataOverflow(value: bool) = + Interop.mkYAxisAttr "allowDataOverflow" value + /// Allow the axis has duplicated categorys or not when the type of axis is "category". - static member inline allowDuplicatedCategory (value: bool) = Interop.mkYAxisAttr "allowDuplicatedCategory" value + static member inline allowDuplicatedCategory(value: bool) = + Interop.mkYAxisAttr "allowDuplicatedCategory" value + /// The count of axis ticks. Not used if 'type' is 'category'. Default is `5`. - static member inline tickCount (value: int) = Interop.mkYAxisAttr "tickCount" value - static member inline tickFormatter (f: int -> string) = Interop.mkYAxisAttr "tickFormatter" f - static member inline domain (min: IAxisDomain, max: IAxisDomain) = Interop.mkYAxisAttr "domain" [| min; max |] - static member inline interval (value: int) = Interop.mkYAxisAttr "interval" value + static member inline tickCount(value: int) = Interop.mkYAxisAttr "tickCount" value + static member inline tickFormatter(f: int -> string) = Interop.mkYAxisAttr "tickFormatter" f + + static member inline domain(min: IAxisDomain, max: IAxisDomain) = + Interop.mkYAxisAttr "domain" [| min; max |] + + static member inline interval(value: int) = Interop.mkYAxisAttr "interval" value + /// Specify the padding of y-axis. Default is `yAxis.padding(top=0, bottom=0)`. - static member inline padding (?top: int, ?right: int, ?left: int, ?bottom: int) = + static member inline padding(?top: int, ?right: int, ?left: int, ?bottom: int) = let padding = - createObj - [ "top" ==> Option.defaultValue 0 top - "right" ==> Option.defaultValue 0 right - "left" ==> Option.defaultValue 0 left - "bottom" ==> Option.defaultValue 0 bottom ] + createObj [ + "top" ==> Option.defaultValue 0 top + "right" ==> Option.defaultValue 0 right + "left" ==> Option.defaultValue 0 left + "bottom" ==> Option.defaultValue 0 bottom + ] Interop.mkYAxisAttr "padding" padding - static member inline unit (value: string) = Interop.mkYAxisAttr "unit" value - static member inline name (value: string) = Interop.mkYAxisAttr "name" value - static member inline height (value: int) = Interop.mkYAxisAttr "height" value - static member inline height (value: float) = Interop.mkYAxisAttr "height" value - static member inline width (value: int) = Interop.mkYAxisAttr "width" value - static member inline width (value: float) = Interop.mkYAxisAttr "width" value - static member inline reversed (value: bool) = Interop.mkYAxisAttr "reversed" value + + static member inline unit(value: string) = Interop.mkYAxisAttr "unit" value + static member inline name(value: string) = Interop.mkYAxisAttr "name" value + static member inline height(value: int) = Interop.mkYAxisAttr "height" value + static member inline height(value: float) = Interop.mkYAxisAttr "height" value + static member inline width(value: int) = Interop.mkYAxisAttr "width" value + static member inline width(value: float) = Interop.mkYAxisAttr "width" value + static member inline reversed(value: bool) = Interop.mkYAxisAttr "reversed" value static member inline label(value: int) = Interop.mkYAxisAttr "label" value + static member inline label(?value: string, ?angle: int, ?position: Label.Position) = - let label = createObj [ - "value" ==> value - "angle" ==> angle - "position" ==> position - ] + let label = + createObj [ + "value" ==> value + "angle" ==> angle + "position" ==> position + ] + Interop.mkYAxisAttr "label" label + static member inline label(?value: string, ?angle: int, ?position: label.position) = - let label = createObj [ - "value" ==> value - "angle" ==> angle - "position" ==> position - ] + let label = + createObj [ + "value" ==> value + "angle" ==> angle + "position" ==> position + ] + Interop.mkYAxisAttr "label" label - static member inline children (elements: ReactElement list) = unbox (prop.children elements) - + + static member inline children(elements: ReactElement list) = + unbox(prop.children elements) + module yAxis = /// The orientation of axis. Default is `left`. [] diff --git a/src/Feliz.RoughViz/BarChart.fs b/src/Feliz.RoughViz/BarChart.fs index 79dfe5dc..a3ffd981 100644 --- a/src/Feliz.RoughViz/BarChart.fs +++ b/src/Feliz.RoughViz/BarChart.fs @@ -9,68 +9,126 @@ type barChart = static member data(points: (string * float) seq) = let labels = [| for (label, value) in points -> label |] let values = [| for (label, value) in points -> value |] - let result = toPlainJsObj {| labels = labels; values = values; |} - unbox ("data", result) + let result = toPlainJsObj {| labels = labels; values = values |} + unbox("data", result) /// Color for each bar. Default is "skyblue" - static member inline color(colorName: string) = unbox ("color", colorName) - static member inline height(value: int) = unbox ("height", value) - static member inline height(value: float) = unbox ("height", value) - static member inline axisFontSize(fontSize: string) = unbox ("axisFontSize", fontSize) - static member inline axisFontSize(fontSize: int) = unbox ("axisFontSize", unbox fontSize + "px") - static member inline axisFontSize(fontSize: float) = unbox ("axisFontSize", unbox fontSize + "px") + static member inline color(colorName: string) = + unbox("color", colorName) + + static member inline height(value: int) = + unbox("height", value) + + static member inline height(value: float) = + unbox("height", value) + + static member inline axisFontSize(fontSize: string) = + unbox("axisFontSize", fontSize) + + static member inline axisFontSize(fontSize: int) = + unbox("axisFontSize", unbox fontSize + "px") + + static member inline axisFontSize(fontSize: float) = + unbox("axisFontSize", unbox fontSize + "px") + /// Roughness for x & y axes. Default = 0.0 - static member inline axisRoughness(roughness: float) = unbox ("axisRoughness", roughness) + static member inline axisRoughness(roughness: float) = + unbox("axisRoughness", roughness) + /// Stroke-width for x & y axes. Default = 0.5 - static member inline axisStrokeWidth(strokeWidth: float) = unbox ("axisStrokeWidth", strokeWidth) + static member inline axisStrokeWidth(strokeWidth: float) = + unbox("axisStrokeWidth", strokeWidth) + /// Chart bowing. Default = 0 - static member inline bowing(value: float) = unbox ("bowing", value) + static member inline bowing(value: float) = + unbox("bowing", value) + /// Weight of inner paths' color. Default: 0.5 - static member inline fillWeight(value: float) = unbox ("fillWeight", value) + static member inline fillWeight(value: float) = + unbox("fillWeight", value) + /// Font family to use - static member inline font(fontFamily: string) = unbox ("font", fontFamily) + static member inline font(fontFamily: string) = + unbox("font", fontFamily) + /// Color for each bar on hover - static member inline highlight(colorName: string) = unbox ("highlight", colorName) + static member inline highlight(colorName: string) = + unbox("highlight", colorName) + /// Color of bars' stroke. Default: black. - static member inline stroke(colorName: string) = unbox ("stroke", colorName) - static member inline strokeWidth(width: int) = unbox ("strokeWidth", width) - static member inline innerStrokeWidth(width: int) = unbox ("innerStrokeWidth", width) - static member inline title(chartTitle: string) = unbox ("title", chartTitle) - static member inline titleFontSize(fontSize:int) = unbox ("titleFontSize", unbox fontSize + "px") - static member inline titleFontSize(fontSize:float) = unbox ("titleFontSize", unbox fontSize + "px") - static member inline titleFontSize(fontSize: string) = unbox ("titleFontSize", fontSize) - static member inline tooltipFontSize(fontSize:int) = unbox ("tooltipFontSize", unbox fontSize + "px") - static member inline tooltipFontSize(fontSize:float) = unbox ("tooltipFontSize", unbox fontSize + "px") - static member inline tooltipFontSize(fontSize: string) = unbox ("tooltipFontSize", fontSize) - static member inline xLabel(label: string) = unbox ("xLabel", label) - static member inline yLabel(label: string) = unbox ("yLabel", label) - static member inline roughness(value: int) = unbox ("roughness", abs value) + static member inline stroke(colorName: string) = + unbox("stroke", colorName) + + static member inline strokeWidth(width: int) = + unbox("strokeWidth", width) + + static member inline innerStrokeWidth(width: int) = + unbox("innerStrokeWidth", width) + + static member inline title(chartTitle: string) = + unbox("title", chartTitle) + + static member inline titleFontSize(fontSize: int) = + unbox("titleFontSize", unbox fontSize + "px") + + static member inline titleFontSize(fontSize: float) = + unbox("titleFontSize", unbox fontSize + "px") + + static member inline titleFontSize(fontSize: string) = + unbox("titleFontSize", fontSize) + + static member inline tooltipFontSize(fontSize: int) = + unbox("tooltipFontSize", unbox fontSize + "px") + + static member inline tooltipFontSize(fontSize: float) = + unbox("tooltipFontSize", unbox fontSize + "px") + + static member inline tooltipFontSize(fontSize: string) = + unbox("tooltipFontSize", fontSize) + + static member inline xLabel(label: string) = + unbox("xLabel", label) + + static member inline yLabel(label: string) = + unbox("yLabel", label) + + static member inline roughness(value: int) = + unbox("roughness", abs value) + /// Whether or not chart is interactive. True by default. - static member inline interactive (value: bool) = unbox ("interactive", value) + static member inline interactive(value: bool) = + unbox("interactive", value) + /// Chart simplification. Default is 0.2 - static member inline simplification(value: float) = unbox ("simplification", value) + static member inline simplification(value: float) = + unbox("simplification", value) + /// Padding between bars. Default: 0.1. - static member inline padding(value: float) = unbox("padding", value) + static member inline padding(value: float) = + unbox("padding", value) + /// Margin of the chart. By default => margin(top=50, right=20, left=100, bottom=70) static member margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 50 top - "right" ==> Option.defaultValue 20 right - "left" ==> Option.defaultValue 100 left - "bottom" ==> Option.defaultValue 70 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 50 top + "right" ==> Option.defaultValue 20 right + "left" ==> Option.defaultValue 100 left + "bottom" ==> Option.defaultValue 70 bottom + ] - unbox ("margin", margin) + unbox("margin", margin) - static member inline barClicked (handler: int -> unit) = unbox("barClicked", handler) + static member inline barClicked(handler: int -> unit) = + unbox("barClicked", handler) [] module barChart = [] type fillStyle = - static member inline hachure = unbox ("fillStyle", "hachure") - static member inline crossHatch = unbox ("fillStyle", "cross-hatch") - static member inline zigzag = unbox ("fillStyle", "zigzag") - static member inline dashed = unbox ("fillStyle", "dashed") - static member inline solid = unbox ("fillStyle", "solid") - static member inline zigzagLine = unbox ("fillStyle", "zigzag-line") \ No newline at end of file + static member inline hachure = unbox("fillStyle", "hachure") + static member inline crossHatch = unbox("fillStyle", "cross-hatch") + static member inline zigzag = unbox("fillStyle", "zigzag") + static member inline dashed = unbox("fillStyle", "dashed") + static member inline solid = unbox("fillStyle", "solid") + static member inline zigzagLine = unbox("fillStyle", "zigzag-line") diff --git a/src/Feliz.RoughViz/PieChart.fs b/src/Feliz.RoughViz/PieChart.fs index 974f14a2..10771873 100644 --- a/src/Feliz.RoughViz/PieChart.fs +++ b/src/Feliz.RoughViz/PieChart.fs @@ -9,56 +9,97 @@ type pieChart = static member data(points: (string * float) seq) = let labels = [| for (label, value) in points -> label |] let values = [| for (label, value) in points -> value |] - let result = toPlainJsObj {| labels = labels; values = values; |} - unbox ("data", result) + let result = toPlainJsObj {| labels = labels; values = values |} + unbox("data", result) /// Array of colors for each arc. Default: ['coral', 'skyblue', '#66c2a5', 'tan', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', 'tan', 'orange']. - static member inline colors(colorNames: string[]) = unbox ("colors", colorNames) - static member inline height(value: int) = unbox ("height", value) - static member inline height(value: float) = unbox ("height", value) + static member inline colors(colorNames: string[]) = + unbox("colors", colorNames) + + static member inline height(value: int) = + unbox("height", value) + + static member inline height(value: float) = + unbox("height", value) + /// Chart bowing. Default = 0 - static member inline bowing(value: float) = unbox ("bowing", value) + static member inline bowing(value: float) = + unbox("bowing", value) + /// Weight of inner paths' color. Default: 0.5 - static member inline fillWeight(value: float) = unbox ("fillWeight", value) + static member inline fillWeight(value: float) = + unbox("fillWeight", value) + /// Font family to use - static member inline font(fontFamily: string) = unbox ("font", fontFamily) + static member inline font(fontFamily: string) = + unbox("font", fontFamily) + /// Color for each bar on hover - static member inline highlight(colorName: string) = unbox ("highlight", colorName) - static member inline strokeWidth(width: int) = unbox ("strokeWidth", width) - static member inline title(chartTitle: string) = unbox ("title", chartTitle) - static member inline titleFontSize(fontSize:int) = unbox ("titleFontSize", unbox fontSize + "px") - static member inline titleFontSize(fontSize:float) = unbox ("titleFontSize", unbox fontSize + "px") - static member inline titleFontSize(fontSize: string) = unbox ("titleFontSize", fontSize) - static member inline tooltipFontSize(fontSize:int) = unbox ("tooltipFontSize", unbox fontSize + "px") - static member inline tooltipFontSize(fontSize:float) = unbox ("tooltipFontSize", unbox fontSize + "px") - static member inline tooltipFontSize(fontSize: string) = unbox ("tooltipFontSize", fontSize) - static member inline roughness(value: int) = unbox ("roughness", abs value) + static member inline highlight(colorName: string) = + unbox("highlight", colorName) + + static member inline strokeWidth(width: int) = + unbox("strokeWidth", width) + + static member inline title(chartTitle: string) = + unbox("title", chartTitle) + + static member inline titleFontSize(fontSize: int) = + unbox("titleFontSize", unbox fontSize + "px") + + static member inline titleFontSize(fontSize: float) = + unbox("titleFontSize", unbox fontSize + "px") + + static member inline titleFontSize(fontSize: string) = + unbox("titleFontSize", fontSize) + + static member inline tooltipFontSize(fontSize: int) = + unbox("tooltipFontSize", unbox fontSize + "px") + + static member inline tooltipFontSize(fontSize: float) = + unbox("tooltipFontSize", unbox fontSize + "px") + + static member inline tooltipFontSize(fontSize: string) = + unbox("tooltipFontSize", fontSize) + + static member inline roughness(value: int) = + unbox("roughness", abs value) + /// Whether or not chart is interactive. True by default. - static member inline interactive (value: bool) = unbox ("interactive", value) + static member inline interactive(value: bool) = + unbox("interactive", value) + /// Whether or not to add legend. Default: 'true'. - static member inline legend (value: bool) = unbox ("legend", value) + static member inline legend(value: bool) = + unbox("legend", value) + /// Chart simplification. Default is 0.2. - static member inline simplification(value: float) = unbox ("simplification", value) + static member inline simplification(value: float) = + unbox("simplification", value) + /// Padding between bars. Default: 0.1. - static member inline padding(value: float) = unbox("padding", value) + static member inline padding(value: float) = + unbox("padding", value) + /// Margin of the chart. By default => margin(top=50, right=20, left=100, bottom=70) static member margin(?top: int, ?right: int, ?left: int, ?bottom: int) = - let margin = createObj [ - "top" ==> Option.defaultValue 50 top - "right" ==> Option.defaultValue 20 right - "left" ==> Option.defaultValue 100 left - "bottom" ==> Option.defaultValue 70 bottom - ] + let margin = + createObj [ + "top" ==> Option.defaultValue 50 top + "right" ==> Option.defaultValue 20 right + "left" ==> Option.defaultValue 100 left + "bottom" ==> Option.defaultValue 70 bottom + ] - unbox ("margin", margin) + unbox("margin", margin) [] module pieChart = [] type fillStyle = - static member inline hachure = unbox ("fillStyle", "hachure") - static member inline crossHatch = unbox ("fillStyle", "cross-hatch") - static member inline zigzag = unbox ("fillStyle", "zigzag") - static member inline dashed = unbox ("fillStyle", "dashed") - static member inline solid = unbox ("fillStyle", "solid") - static member inline zigzagLine = unbox ("fillStyle", "zigzag-line") \ No newline at end of file + static member inline hachure = unbox("fillStyle", "hachure") + static member inline crossHatch = unbox("fillStyle", "cross-hatch") + static member inline zigzag = unbox("fillStyle", "zigzag") + static member inline dashed = unbox("fillStyle", "dashed") + static member inline solid = unbox("fillStyle", "solid") + static member inline zigzagLine = unbox("fillStyle", "zigzag-line") diff --git a/src/Feliz.RoughViz/RoughViz.fs b/src/Feliz.RoughViz/RoughViz.fs index 617bc7c8..8af34f62 100644 --- a/src/Feliz.RoughViz/RoughViz.fs +++ b/src/Feliz.RoughViz/RoughViz.fs @@ -7,24 +7,31 @@ open Fable.Core.JsInterop open Browser.Types type IResizeObserver = - abstract observe : HTMLElement -> unit - abstract unobserve : HTMLElement -> unit + abstract observe: HTMLElement -> unit + abstract unobserve: HTMLElement -> unit type IContentRect = - abstract width : float - abstract height : float + abstract width: float + abstract height: float type IObserverEntry = - abstract contentRect : IContentRect + abstract contentRect: IContentRect module internal Interop = [] let objectAssign (x: obj) (y: obj) = jsNative - let createBarChart (config: obj) : unit = import "createBarChart" "./createChart.js" - let createHorizontalBarChart (config: obj) : unit = import "createHorizontalBarChart" "./createChart.js" - let createPieChart (config: obj) : unit = import "createPieChart" "./createChart.js" + + let createBarChart (config: obj) : unit = + import "createBarChart" "./createChart.js" + + let createHorizontalBarChart (config: obj) : unit = + import "createHorizontalBarChart" "./createChart.js" + + let createPieChart (config: obj) : unit = + import "createPieChart" "./createChart.js" + [] - let createResizeObserver(handler: IObserverEntry array -> unit) : IResizeObserver = jsNative + let createResizeObserver (handler: IObserverEntry array -> unit) : IResizeObserver = jsNative [] module RoughViz = @@ -35,75 +42,101 @@ module RoughViz = | Pie [] - let private buildChart (props: {| chartType: ChartType; config: obj list |}) = - let elementId = React.useRef("RoughViz" + (Guid.NewGuid().ToString().Substring(10))) - let rerendered, setRerendered = React.useState(false) - let elementRef = React.useElementRef() - let parentWidth, setParentWidth = React.useState(None) - let observer = React.useRef(Interop.createResizeObserver(fun entries -> - for entry in entries do setParentWidth(Some entry.contentRect.width) + let private buildChart + (props: + {| + chartType: ChartType + config: obj list + |}) + = + let elementId = + React.useRef ("RoughViz" + (Guid.NewGuid().ToString().Substring(10))) + + let rerendered, setRerendered = React.useState (false) + let elementRef = React.useElementRef () + let parentWidth, setParentWidth = React.useState (None) + + let observer = + React.useRef ( + Interop.createResizeObserver (fun entries -> + for entry in entries do + setParentWidth (Some entry.contentRect.width) + ) ) - ) - - React.useEffect((fun () -> - match elementRef.current with - | None -> () - | Some element -> - let emptyData = toPlainJsObj {| labels = [||]; values = [||] |} - let defaultConfig = toPlainJsObj {| element = "#" + elementId.current; data = emptyData; width = element.clientWidth |} - let config = Interop.objectAssign defaultConfig (createObj (unbox props.config)) - - match props.chartType with - | Bar -> Interop.createBarChart config - | HorizontalBar -> Interop.createHorizontalBarChart config - | Pie -> Interop.createPieChart config - observer.current.observe element - - FsReact.createDisposable(fun () -> + React.useEffect ( + (fun () -> match elementRef.current with | None -> () | Some element -> - observer.current.unobserve element - while not (isNullOrUndefined element.firstChild) do - element.removeChild(element.firstChild) - |> ignore + let emptyData = toPlainJsObj {| labels = [||]; values = [||] |} + + let defaultConfig = + toPlainJsObj {| + element = "#" + elementId.current + data = emptyData + width = element.clientWidth + |} + + let config = Interop.objectAssign defaultConfig (createObj (unbox props.config)) + + match props.chartType with + | Bar -> Interop.createBarChart config + | HorizontalBar -> Interop.createHorizontalBarChart config + | Pie -> Interop.createPieChart config + + observer.current.observe element + + FsReact.createDisposable (fun () -> + match elementRef.current with + | None -> () + | Some element -> + observer.current.unobserve element + + while not (isNullOrUndefined element.firstChild) do + element.removeChild (element.firstChild) |> ignore ) ), [| box rerendered; box props |] ) - React.useEffect((fun () -> - parentWidth |> Option.iter (fun _ -> setRerendered(not rerendered)) - ), + React.useEffect ( + (fun () -> parentWidth |> Option.iter (fun _ -> setRerendered (not rerendered))), [| box parentWidth |] ) - React.useEffect((fun () -> - match elementRef.current with - | None -> () - | Some _ -> - let pairs = unbox<(string * obj) list> props.config - let barClickedHandler = pairs |> List.tryFind (fun (key, value) -> key = "barClicked") - match barClickedHandler with - | None -> () - | Some (key, barClicked) -> - let handler = unbox unit> barClicked - let bars = Browser.Dom.document.getElementsByClassName(elementId.current) - for barIndex in [0 .. bars.length - 1] do - let barHtml = unbox bars.[barIndex] - barHtml.addEventListener("click", fun _ -> handler barIndex) + React.useEffect ( + (fun () -> + match elementRef.current with + | None -> () + | Some _ -> + let pairs = unbox<(string * obj) list> props.config + + let barClickedHandler = + pairs |> List.tryFind (fun (key, value) -> key = "barClicked") + + match barClickedHandler with + | None -> () + | Some(key, barClicked) -> + let handler = unbox unit> barClicked + let bars = Browser.Dom.document.getElementsByClassName (elementId.current) + + for barIndex in [ 0 .. bars.length - 1 ] do + let barHtml = unbox bars.[barIndex] + barHtml.addEventListener ("click", fun _ -> handler barIndex) - FsReact.createDisposable(fun () -> - let bars = Browser.Dom.document.getElementsByClassName(elementId.current) - for barIndex in [0 .. bars.length - 1] do - let barHtml = unbox bars.[barIndex] - barHtml.removeEventListener("click", fun _ -> ()) |> ignore - )), + FsReact.createDisposable (fun () -> + let bars = Browser.Dom.document.getElementsByClassName (elementId.current) + + for barIndex in [ 0 .. bars.length - 1 ] do + let barHtml = unbox bars.[barIndex] + barHtml.removeEventListener ("click", fun _ -> ()) |> ignore + ) + ), [| box rerendered; box props |] - ); + ) Html.div [ prop.id elementId.current @@ -111,8 +144,20 @@ module RoughViz = prop.style [ style.width (length.percent 100) ] ] - let barChart (properties: IBarChartProperty list) = buildChart {| chartType = Bar; config = unbox properties |} - - let horizontalBarChart (properties: IBarChartProperty list) = buildChart {| chartType = HorizontalBar; config = unbox properties |} - - let pieChart (properties: IPieChartProperty list) = buildChart {| chartType = Pie; config = unbox properties |} + let barChart (properties: IBarChartProperty list) = + buildChart {| + chartType = Bar + config = unbox properties + |} + + let horizontalBarChart (properties: IBarChartProperty list) = + buildChart {| + chartType = HorizontalBar + config = unbox properties + |} + + let pieChart (properties: IPieChartProperty list) = + buildChart {| + chartType = Pie + config = unbox properties + |} diff --git a/src/Feliz.SelectSearch/SelectSearch.fs b/src/Feliz.SelectSearch/SelectSearch.fs index 1221488e..5a1d69ad 100644 --- a/src/Feliz.SelectSearch/SelectSearch.fs +++ b/src/Feliz.SelectSearch/SelectSearch.fs @@ -7,7 +7,11 @@ open Fable.Core.JsInterop type ISelectSearchAttribute = interface end -type SelectItem = { value: string; name: string; disabled: bool } +type SelectItem = { + value: string + name: string + disabled: bool +} type SelectGroup = { name: string; items: SelectItem list } @@ -19,60 +23,71 @@ type SelectOption = module Interop = [] let objectEntries (x: obj) : (string * obj) array = jsNative + [] let objectAssign (x: obj) (y: obj) : obj = jsNative + [] let isArray (x: obj) : bool = jsNative + let createDefaultFilter (predicate: SelectItem -> string -> bool) = - System.Func<_,_>(fun (selectItems: obj[]) -> fun (searchQuery: string) -> - if String.IsNullOrWhiteSpace searchQuery then - selectItems - else - selectItems - |> Array.filter (fun jsItem -> - let isGroup = jsItem?``type`` = "group" - let item = { - name = jsItem?name - value = jsItem?value - disabled = jsItem?disabled - } - isGroup || predicate item searchQuery - ) - |> Array.map (fun jsItem -> - let isGroup = jsItem?``type`` = "group" - if isGroup then - // return a new group with filtered items - let groupItems : obj[] = jsItem?items - let filteredItems = - groupItems - |> Array.filter (fun groupItem -> - let item = { - name = groupItem?name - value = groupItem?value - disabled = groupItem?disabled - } - - predicate item searchQuery - ) - objectAssign jsItem (createObj [ "items" ==> filteredItems ]) - else - jsItem - ) + System.Func<_, _>(fun (selectItems: obj[]) -> + fun (searchQuery: string) -> + if String.IsNullOrWhiteSpace searchQuery then + selectItems + else + selectItems + |> Array.filter (fun jsItem -> + let isGroup = jsItem?``type`` = "group" + + let item = { + name = jsItem?name + value = jsItem?value + disabled = jsItem?disabled + } + + isGroup || predicate item searchQuery + ) + |> Array.map (fun jsItem -> + let isGroup = jsItem?``type`` = "group" + + if isGroup then + // return a new group with filtered items + let groupItems: obj[] = jsItem?items + + let filteredItems = + groupItems + |> Array.filter (fun groupItem -> + let item = { + name = groupItem?name + value = groupItem?value + disabled = groupItem?disabled + } + + predicate item searchQuery + ) + + objectAssign jsItem (createObj [ "items" ==> filteredItems ]) + else + jsItem + ) ) // provide a default filtering option // when search is enabled with case-insensitive matching // that takes groups into account let defaultProps = {| - filterOptions = createDefaultFilter (fun item query -> - item.name.ToLower().Contains(query.Trim().ToLower()) - ) + filterOptions = createDefaultFilter (fun item query -> item.name.ToLower().Contains(query.Trim().ToLower())) |} [] type SelectSearch() = - static member inline selectSearch (properties: ISelectSearchAttribute list) = + static member inline selectSearch(properties: ISelectSearchAttribute list) = let inputProperties = createObj !!properties - ReactLegacy.createElement (importDefault "react-select-search" |> unbox, Interop.objectAssign Interop.defaultProps inputProperties) + + ReactLegacy.createElement ( + importDefault "react-select-search" |> unbox, + Interop.objectAssign Interop.defaultProps inputProperties + ) type OptionRendererProps = { attributes: IReactProperty seq @@ -94,36 +109,36 @@ type ValueRendererProps = { type selectSearch = /// Sets the options of the select control - static member options (items: seq) = + static member options(items: seq) = let selectOptions = [| - for item in items -> createObj [ - "value" ==> item.value - "name" ==> item.name - "disabled" ==> item.disabled - ] + for item in items -> + createObj [ + "value" ==> item.value + "name" ==> item.name + "disabled" ==> item.disabled + ] |] - unbox ("options", selectOptions) + unbox("options", selectOptions) /// Sets the options of the select control - static member options (groups: seq) = + static member options(groups: seq) = let selectOptions = [| - for group in groups -> createObj [ - "type" ==> "group" - "name" ==> group.name - "items" ==> [| - for item in group.items -> createObj [ - "value" ==> item.value - "name" ==> item.name - ] - |] - ] + for group in groups -> + createObj [ + "type" ==> "group" + "name" ==> group.name + "items" + ==> [| + for item in group.items -> createObj [ "value" ==> item.value; "name" ==> item.name ] + |] + ] |] - unbox ("options", selectOptions) + unbox("options", selectOptions) /// Sets the options of the select control - static member options (mixedOptions: seq) = + static member options(mixedOptions: seq) = let selectOptions = [| for option in mixedOptions -> match option with @@ -137,129 +152,176 @@ type selectSearch = createObj [ "type" ==> "group" "name" ==> group.name - "items" ==> [| - for item in group.items -> createObj [ - "value" ==> item.value - "name" ==> item.name - "disabled" ==> item.disabled - ] + "items" + ==> [| + for item in group.items -> + createObj [ + "value" ==> item.value + "name" ==> item.name + "disabled" ==> item.disabled + ] |] ] |] - unbox ("options", selectOptions) + unbox("options", selectOptions) /// Number of ms to wait until calling get options when searching - static member inline debounce(debounceValue: int) = unbox ("debounce", debounceValue) + static member inline debounce(debounceValue: int) = + unbox("debounce", debounceValue) + /// Sets the currently selected value when in controlled mode - static member inline value(currentValue: string) = unbox ("value", currentValue) + static member inline value(currentValue: string) = + unbox("value", currentValue) + /// Sets the currently selected values when in controlled mode and multiple is enabled - static member inline value(currentValues: string[]) = unbox ("value", currentValues) + static member inline value(currentValues: string[]) = + unbox("value", currentValues) + /// Sets the currently selected values when in controlled mode and multiple is enabled - static member inline value(currentValues: string list) = unbox ("value", Array.ofList currentValues) + static member inline value(currentValues: string list) = + unbox("value", Array.ofList currentValues) + /// Set to true if you want to allow multiple selected options. False by default - static member inline multiple(selectingMultipleValues: bool) = unbox ("multiple", selectingMultipleValues) + static member inline multiple(selectingMultipleValues: bool) = + unbox("multiple", selectingMultipleValues) + /// Set to true to enable search functionality. False by default - static member inline search(searchable: bool) = unbox ("search", searchable) + static member inline search(searchable: bool) = + unbox("search", searchable) + /// Disables all functionality - static member inline disabled(disableControl: bool) = unbox ("disabled", disableControl) + static member inline disabled(disableControl: bool) = + unbox("disabled", disableControl) + /// The selectbox will blur by default when selecting an option. Set this to false to prevent this behavior. True by default - static member inline closeOnSelect(closeMenuOnSelect: bool) = unbox ("closeOnSelect", closeMenuOnSelect) + static member inline closeOnSelect(closeMenuOnSelect: bool) = + unbox("closeOnSelect", closeMenuOnSelect) + /// Displayed if no option is selected and/or when search field is focused with empty value. - static member inline placeholder (text: string) = unbox ("placeholder", text) + static member inline placeholder(text: string) = + unbox("placeholder", text) + /// HTML ID on the top level element - static member inline id (elementIdentifier: string) = unbox ("id", elementIdentifier) + static member inline id(elementIdentifier: string) = + unbox("id", elementIdentifier) + /// Autofocus on select - static member inline autoFocus (autoFocusOnSelect: bool) = unbox("authoFocus", autoFocusOnSelect) + static member inline autoFocus(autoFocusOnSelect: bool) = + unbox("authoFocus", autoFocusOnSelect) + /// Set empty message for empty options list - static member inline emptyMessage (message: string) = unbox ("emptyMessage", message) + static member inline emptyMessage(message: string) = + unbox("emptyMessage", message) + /// Set empty message for empty options list - static member inline emptyMessage (message: unit -> ReactElement) = unbox ("emptyMessage", message) + static member inline emptyMessage(message: unit -> ReactElement) = + unbox("emptyMessage", message) + /// Function to receive and handle value changes. - static member inline onChange (handler: string -> unit) = + static member inline onChange(handler: string -> unit) = let internalHandler (values: obj) = if Interop.isArray values then let unboxed = unbox values - if (unboxed.Length > 0) - then handler unboxed.[0] + + if (unboxed.Length > 0) then + handler unboxed.[0] else let unboxed = unbox values - if not (String.IsNullOrWhiteSpace unboxed) - then handler unboxed - unbox ("onChange", handler) + + if not (String.IsNullOrWhiteSpace unboxed) then + handler unboxed + + unbox("onChange", handler) + /// Function to receive and handle value changes. Use this overload when multiple is set to true - static member inline onChange (handler: string list -> unit) = + static member inline onChange(handler: string list -> unit) = let internalHandler (values: obj) = if Interop.isArray values then - handler(Array.toList (unbox values)) + handler (Array.toList (unbox values)) else - handler([ unbox values ]) - unbox ("onChange", internalHandler) + handler ([ unbox values ]) + + unbox("onChange", internalHandler) + /// Focus callback. - static member inline onFocus(handler: unit -> unit) = unbox ("onFocus", handler) + static member inline onFocus(handler: unit -> unit) = + unbox("onFocus", handler) + /// Blur callback. - static member inline onBlur(handler: unit -> unit) = unbox ("onBlur", handler) + static member inline onBlur(handler: unit -> unit) = + unbox("onBlur", handler) + /// Allows you to customize how each option is rendered - static member inline renderOption (renderer: OptionRendererProps -> ReactElement) = - let internalHandler = System.Func(fun props option snapshot classname -> - let entries = Interop.objectEntries props - renderer { - attributes = unbox (Seq.toArray entries) - className = classname - option = { name = option?name; value = option?value; disabled = option?disabled } - selected = unbox (snapshot?selected) - highlighted = unbox (snapshot?highlighted) - } - ) + static member inline renderOption(renderer: OptionRendererProps -> ReactElement) = + let internalHandler = + System.Func(fun props option snapshot classname -> + let entries = Interop.objectEntries props - unbox ("renderOption", internalHandler) + renderer { + attributes = unbox (Seq.toArray entries) + className = classname + option = { + name = option?name + value = option?value + disabled = option?disabled + } + selected = unbox (snapshot?selected) + highlighted = unbox (snapshot?highlighted) + } + ) + + unbox("renderOption", internalHandler) /// Allows you to customize how the group header is render using the group name - static member inline renderGroupHeader(renderer : string -> ReactElement) = - unbox ("renderGroupHeader", renderer) + static member inline renderGroupHeader(renderer: string -> ReactElement) = + unbox("renderGroupHeader", renderer) /// Allows you to customize how the search bar is rendered static member inline renderValue(renderer: ValueRendererProps -> ReactElement) = - let internalHandler = System.Func(fun props snapshot selectedValue -> - let entries = Interop.objectEntries props - let values = - if Interop.isArray (unbox(snapshot?value)) then - Array.toList (unbox (snapshot?value)) - elif String.IsNullOrWhiteSpace (unbox(snapshot?value)) then - [] - else - [unbox (snapshot?value)] - - renderer { - attributes = unbox entries - focus = unbox(snapshot?focus) - disabled = unbox(snapshot?disabled) - fetching = unbox(snapshot?fetching) - search = unbox(snapshot?search) - displayValue = unbox(snapshot?displayValue) - values = values - } - ) + let internalHandler = + System.Func(fun props snapshot selectedValue -> + let entries = Interop.objectEntries props - unbox ("renderValue", internalHandler) + let values = + if Interop.isArray (unbox (snapshot?value)) then + Array.toList (unbox(snapshot?value)) + elif String.IsNullOrWhiteSpace(unbox (snapshot?value)) then + [] + else + [ unbox(snapshot?value) ] + + renderer { + attributes = unbox entries + focus = unbox (snapshot?focus) + disabled = unbox (snapshot?disabled) + fetching = unbox (snapshot?fetching) + search = unbox (snapshot?search) + displayValue = unbox (snapshot?displayValue) + values = values + } + ) + + unbox("renderValue", internalHandler) /// /// When search is enabled, this function allows to define how items are filtered. /// By default, the built-in filtering checks whether the name of the select item contains input query (case-insensitive) /// - static member filterOptions (predicate: SelectItem -> string -> bool) = - unbox ("filterOptions", Interop.createDefaultFilter predicate) + static member filterOptions(predicate: SelectItem -> string -> bool) = + unbox("filterOptions", Interop.createDefaultFilter predicate) module selectSearch = importSideEffects "./SelectSearch.css" + /// This property controls when the options list should be rendered. type printOptions = - static member inline auto = unbox ("printOptions", "auto") - static member inline always = unbox ("printOptions", "always") - static member inline never = unbox ("printOptions", "never") - static member inline onFocus = unbox ("printOptions", "on-focus") + static member inline auto = unbox("printOptions", "auto") + static member inline always = unbox("printOptions", "always") + static member inline never = unbox("printOptions", "never") + static member inline onFocus = unbox("printOptions", "on-focus") + /// Disables/Enables autoComplete functionality in search field. type autoComplete = - static member inline on = unbox ("autoComplete", "on") - static member inline off = unbox ("autoComplete", "off") - + static member inline on = unbox("autoComplete", "on") + static member inline off = unbox("autoComplete", "off") diff --git a/src/Feliz.Template/Content/package-lock.json b/src/Feliz.Template/Content/package-lock.json index bff90906..4dd9c9b4 100644 --- a/src/Feliz.Template/Content/package-lock.json +++ b/src/Feliz.Template/Content/package-lock.json @@ -1,14 +1,16 @@ { "name": "Content", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { + "version": "0.1.0", "dependencies": { - "@tailwindcss/vite": "^4.1.14", + "@tailwindcss/vite": "^4.3.3", "react": "^19.1.0", "react-dom": "^19.1.0", - "tailwindcss": "^4.1.14" + "tailwindcss": "^4.3.3" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", @@ -16,13 +18,14 @@ "@testing-library/user-event": "^14.6.1", "@types/node": "^22.15.3", "@types/react": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "jsdom": "^26.1.0", - "vite": "^6.3.5", - "vitest": "^3.1.2" + "vite": "^8.3.1", + "vitest": "^5.0.2" }, "engines": { - "node": ">=20" + "node": ">=22.12", + "npm": ">=10" } }, "node_modules/@adobe/css-tools": { @@ -59,6 +62,7 @@ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", @@ -68,225 +72,17 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/compat-data": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", - "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz", - "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.3", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.4", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.4", - "@babel/types": "^7.28.4", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", - "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.28.3", - "@babel/types": "^7.28.2", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", - "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-validator-identifier": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", - "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", - "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.4" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", - "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", - "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/runtime": { "version": "7.28.4", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", @@ -297,54 +93,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", - "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.3", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.4", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", - "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@csstools/color-helpers": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.1.0.tgz", @@ -460,60 +208,66 @@ "node": ">=18" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.10.tgz", - "integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==", - "cpu": [ - "ppc64" - ], + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.10.tgz", - "integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==", - "cpu": [ - "arm" - ], + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.10.tgz", - "integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==", - "cpu": [ - "arm64" - ], + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "license": "MIT", - "optional": true, - "os": [ - "android" - ], "engines": { - "node": ">=18" + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.151.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.151.0.tgz", + "integrity": "sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" } }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.10.tgz", - "integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==", + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.11.tgz", + "integrity": "sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==", "cpu": [ - "x64" + "arm" ], "license": "MIT", "optional": true, @@ -521,31 +275,31 @@ "android" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.10.tgz", - "integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.11.tgz", + "integrity": "sha512-z6cTycz+iJ4PVkuL4HHW4DfTfoeU/2nqYYuSOrTmH7yHK5Y0LCOnA03V4ZNxavyVaU1oOqUgIg2klN/s+USGOA==", "cpu": [ "arm64" ], "license": "MIT", "optional": true, "os": [ - "darwin" + "android" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.10.tgz", - "integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.11.tgz", + "integrity": "sha512-jShvqNtP6vDC6/A5JOAzbVV+DkgHqhl/ScVCJEbt+TUY6QYz7YnXcrg3sLtFBniro0f/Ld50ZwCWA6f7KYD1nQ==", "cpu": [ - "x64" + "arm64" ], "license": "MIT", "optional": true, @@ -553,29 +307,29 @@ "darwin" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.10.tgz", - "integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.11.tgz", + "integrity": "sha512-f2i2xiNWq1Z1l2++q2fuhZRdLAT3aqxD6vRNm1RAxpUoBcdqNB3C0s1Bt+K+PbEx2F5F4gQp6hqKkphCY/xF9w==", "cpu": [ - "arm64" + "x64" ], "license": "MIT", "optional": true, "os": [ - "freebsd" + "darwin" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.10.tgz", - "integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.11.tgz", + "integrity": "sha512-4Ir5FSOKIAMr4r0kExpt1s3bMgzJU3rA45AYOHtQpls0oNeqcYBKrWMlckrYH4KCfGLfkfn1tN1dmZPMVsdXow==", "cpu": [ "x64" ], @@ -585,13 +339,13 @@ "freebsd" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.10.tgz", - "integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.11.tgz", + "integrity": "sha512-/gnRDM+39BROzAN/k1OZjDPnDMcZxB/0EUxKjONO5yVkNEvlsoMDrxGNKgZi/ttFriS2gwlDNzB65pvNbFOXIQ==", "cpu": [ "arm" ], @@ -601,13 +355,13 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.10.tgz", - "integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.11.tgz", + "integrity": "sha512-PFaK8HwvAHbaKbBcDNQihjMKYvFnA5hiENx/l5tphTDz1E0WFp32l0A7aq7lyUwGsRw/xSrNIy/gIK4thrSCrw==", "cpu": [ "arm64" ], @@ -617,15 +371,15 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.10.tgz", - "integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.11.tgz", + "integrity": "sha512-AskzJUIKRLPxkruR1wLKewGbOw+EYfU/9lOrBFj4AFrEA8hPpKFnODWNu2WLaNs0QNkEb9QIJufmVZZIL/bJlg==", "cpu": [ - "ia32" + "arm64" ], "license": "MIT", "optional": true, @@ -633,15 +387,15 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.10.tgz", - "integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.11.tgz", + "integrity": "sha512-qlUGAheh2yh8afH7QBgx0PrRHN85hKnNd78x8MeMhXivuevgd8vgf6/CstOzmNKY/lLTHvNTrPy98cLnAugzJw==", "cpu": [ - "loong64" + "ppc64" ], "license": "MIT", "optional": true, @@ -649,15 +403,15 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.10.tgz", - "integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.11.tgz", + "integrity": "sha512-secpEad+0vCbSfn8upFySkDskv+bGPk3THSDS9Y89yc4rb4kzqHp8Dmyd9BkQW4SnhNXBZCl/6CrO//hZahNJQ==", "cpu": [ - "mips64el" + "s390x" ], "license": "MIT", "optional": true, @@ -665,15 +419,15 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.10.tgz", - "integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.11.tgz", + "integrity": "sha512-mOVBT3dPpkWm8XBWPmU4bf+U6dYDLeMo/9ojUmis4N0L5uu10qra5vOyngZ7/PSdoE4G9KvRt4bloRxNjLas7A==", "cpu": [ - "ppc64" + "x64" ], "license": "MIT", "optional": true, @@ -681,15 +435,15 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.10.tgz", - "integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.11.tgz", + "integrity": "sha512-Is78i9A8Ui4SqcxUwFJ9uMmjDn58IbVTjFWYdQestFEgeuEmHMLGNriXnVJKkwG2YiZjw8cP0zCTyDMdDGtOOg==", "cpu": [ - "riscv64" + "x64" ], "license": "MIT", "optional": true, @@ -697,582 +451,105 @@ "linux" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.10.tgz", - "integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.11.tgz", + "integrity": "sha512-dUCXneZ87INUMyQ0D+C0HrEBNUPNXHaPmU5GTjyKTJEiussw9Kaj5Ln8UztPe4epV/ffvgNBEadksdYhmW6xJA==", "cpu": [ - "s390x" + "arm64" ], "license": "MIT", "optional": true, "os": [ - "linux" + "openharmony" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.10.tgz", - "integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.11.tgz", + "integrity": "sha512-jByxb6qfd+bH1xUd0qnfFnb17i9sWBPY2tOavJ0l3tdr3OTu+Kvtm8cd/JV5nFt657b1VqGltxg9olOEfofXWw==", "cpu": [ - "x64" + "arm64" ], "license": "MIT", "optional": true, "os": [ - "linux" + "win32" ], "engines": { - "node": ">=18" + "node": "^20.19.0 || >=22.12.0" } }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.10.tgz", - "integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.11.tgz", + "integrity": "sha512-/PzKqzAJ03i19oy2ItPvyvaVjOjBCNnfaJs8yvUdGBKmiESgnrJSQ2awd81QzFbbnAmu7YO9ZnJrDCb9VSJPRA==", "cpu": [ - "arm64" + "x64" ], "license": "MIT", "optional": true, "os": [ - "netbsd" + "win32" ], "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.10.tgz", - "integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.10.tgz", - "integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.10.tgz", - "integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.10.tgz", - "integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.10.tgz", - "integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.10.tgz", - "integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.10.tgz", - "integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.10.tgz", - "integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "node": "^20.19.0 || >=22.12.0" } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.27", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", - "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", - "dev": true, + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "license": "MIT" }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.4.tgz", - "integrity": "sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.4.tgz", - "integrity": "sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.4.tgz", - "integrity": "sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.4.tgz", - "integrity": "sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.4.tgz", - "integrity": "sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.4.tgz", - "integrity": "sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.4.tgz", - "integrity": "sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.4.tgz", - "integrity": "sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.4.tgz", - "integrity": "sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.4.tgz", - "integrity": "sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz", - "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz", - "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz", - "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz", - "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz", - "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==", - "cpu": [ - "s390x" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz", - "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz", - "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz", - "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz", - "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz", - "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz", - "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz", - "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/@tailwindcss/node": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.14.tgz", - "integrity": "sha512-hpz+8vFk3Ic2xssIA3e01R6jkmsAhvkQdXlEbRTk6S10xDAtiQiM3FyvZVGsucefq764euO/b8WUW9ysLdThHw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", "license": "MIT", "dependencies": { - "@jridgewell/remapping": "^2.3.4", - "enhanced-resolve": "^5.18.3", - "jiti": "^2.6.0", - "lightningcss": "1.30.1", - "magic-string": "^0.30.19", + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", "source-map-js": "^1.2.1", - "tailwindcss": "4.1.14" + "tailwindcss": "4.3.3" } }, "node_modules/@tailwindcss/oxide": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.14.tgz", - "integrity": "sha512-23yx+VUbBwCg2x5XWdB8+1lkPajzLmALEfMb51zZUBYaYVPDQvBSD/WYDqiVyBIo2BZFa3yw1Rpy3G2Jp+K0dw==", - "hasInstallScript": true, + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.4", - "tar": "^7.5.1" - }, "engines": { - "node": ">= 10" + "node": ">= 20" }, "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.1.14", - "@tailwindcss/oxide-darwin-arm64": "4.1.14", - "@tailwindcss/oxide-darwin-x64": "4.1.14", - "@tailwindcss/oxide-freebsd-x64": "4.1.14", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.14", - "@tailwindcss/oxide-linux-arm64-gnu": "4.1.14", - "@tailwindcss/oxide-linux-arm64-musl": "4.1.14", - "@tailwindcss/oxide-linux-x64-gnu": "4.1.14", - "@tailwindcss/oxide-linux-x64-musl": "4.1.14", - "@tailwindcss/oxide-wasm32-wasi": "4.1.14", - "@tailwindcss/oxide-win32-arm64-msvc": "4.1.14", - "@tailwindcss/oxide-win32-x64-msvc": "4.1.14" + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" } }, "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.14.tgz", - "integrity": "sha512-a94ifZrGwMvbdeAxWoSuGcIl6/DOP5cdxagid7xJv6bwFp3oebp7y2ImYsnZBMTwjn5Ev5xESvS3FFYUGgPODQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", "cpu": [ "arm64" ], @@ -1282,13 +559,13 @@ "android" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.14.tgz", - "integrity": "sha512-HkFP/CqfSh09xCnrPJA7jud7hij5ahKyWomrC3oiO2U9i0UjP17o9pJbxUN0IJ471GTQQmzwhp0DEcpbp4MZTA==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", "cpu": [ "arm64" ], @@ -1298,13 +575,13 @@ "darwin" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.14.tgz", - "integrity": "sha512-eVNaWmCgdLf5iv6Qd3s7JI5SEFBFRtfm6W0mphJYXgvnDEAZ5sZzqmI06bK6xo0IErDHdTA5/t7d4eTfWbWOFw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", "cpu": [ "x64" ], @@ -1314,13 +591,13 @@ "darwin" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.14.tgz", - "integrity": "sha512-QWLoRXNikEuqtNb0dhQN6wsSVVjX6dmUFzuuiL09ZeXju25dsei2uIPl71y2Ic6QbNBsB4scwBoFnlBfabHkEw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", "cpu": [ "x64" ], @@ -1330,13 +607,13 @@ "freebsd" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.14.tgz", - "integrity": "sha512-VB4gjQni9+F0VCASU+L8zSIyjrLLsy03sjcR3bM0V2g4SNamo0FakZFKyUQ96ZVwGK4CaJsc9zd/obQy74o0Fw==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", "cpu": [ "arm" ], @@ -1346,13 +623,13 @@ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.14.tgz", - "integrity": "sha512-qaEy0dIZ6d9vyLnmeg24yzA8XuEAD9WjpM5nIM1sUgQ/Zv7cVkharPDQcmm/t/TvXoKo/0knI3me3AGfdx6w1w==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", "cpu": [ "arm64" ], @@ -1362,13 +639,13 @@ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.14.tgz", - "integrity": "sha512-ISZjT44s59O8xKsPEIesiIydMG/sCXoMBCqsphDm/WcbnuWLxxb+GcvSIIA5NjUw6F8Tex7s5/LM2yDy8RqYBQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", "cpu": [ "arm64" ], @@ -1378,13 +655,13 @@ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.14.tgz", - "integrity": "sha512-02c6JhLPJj10L2caH4U0zF8Hji4dOeahmuMl23stk0MU1wfd1OraE7rOloidSF8W5JTHkFdVo/O7uRUJJnUAJg==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", "cpu": [ "x64" ], @@ -1394,13 +671,13 @@ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.14.tgz", - "integrity": "sha512-TNGeLiN1XS66kQhxHG/7wMeQDOoL0S33x9BgmydbrWAb9Qw0KYdd8o1ifx4HOGDWhVmJ+Ul+JQ7lyknQFilO3Q==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", "cpu": [ "x64" ], @@ -1410,13 +687,13 @@ "linux" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.14.tgz", - "integrity": "sha512-uZYAsaW/jS/IYkd6EWPJKW/NlPNSkWkBlaeVBi/WsFQNP05/bzkebUL8FH1pdsqx4f2fH/bWFcUABOM9nfiJkQ==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", "bundleDependencies": [ "@napi-rs/wasm-runtime", "@emnapi/core", @@ -1431,21 +708,21 @@ "license": "MIT", "optional": true, "dependencies": { - "@emnapi/core": "^1.5.0", - "@emnapi/runtime": "^1.5.0", - "@emnapi/wasi-threads": "^1.1.0", - "@napi-rs/wasm-runtime": "^1.0.5", - "@tybys/wasm-util": "^0.10.1", - "tslib": "^2.4.0" + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.14.tgz", - "integrity": "sha512-Az0RnnkcvRqsuoLH2Z4n3JfAef0wElgzHD5Aky/e+0tBUxUhIeIqFBTMNQvmMRSP15fWwmvjBxZ3Q8RhsDnxAA==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", "cpu": [ "arm64" ], @@ -1455,13 +732,13 @@ "win32" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.14.tgz", - "integrity": "sha512-ttblVGHgf68kEE4om1n/n44I0yGPkCPbLsqzjvybhpwa6mKKtgFfAzy6btc3HRmuW7nHe0OOrSeNP9sQmmH9XA==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", "cpu": [ "x64" ], @@ -1471,21 +748,21 @@ "win32" ], "engines": { - "node": ">= 10" + "node": ">= 20" } }, "node_modules/@tailwindcss/vite": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.14.tgz", - "integrity": "sha512-BoFUoU0XqgCUS1UXWhmDJroKKhNXeDzD7/XwabjkDIAbMnc4ULn5e2FuEuBbhZ6ENZoSYzKlzvZ44Yr6EUDUSA==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz", + "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==", "license": "MIT", "dependencies": { - "@tailwindcss/node": "4.1.14", - "@tailwindcss/oxide": "4.1.14", - "tailwindcss": "4.1.14" + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "tailwindcss": "4.3.3" }, "peerDependencies": { - "vite": "^5.2.0 || ^6 || ^7" + "vite": "^5.2.0 || ^6 || ^7 || ^8" } }, "node_modules/@testing-library/dom": { @@ -1586,59 +863,15 @@ "license": "MIT", "peer": true }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, "node_modules/@types/chai": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", - "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", "dev": true, "license": "MIT", "dependencies": { - "@types/deep-eql": "*" + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" } }, "node_modules/@types/deep-eql": { @@ -1652,6 +885,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, "license": "MIT" }, "node_modules/@types/node": { @@ -1675,137 +909,79 @@ } }, "node_modules/@vitejs/plugin-react": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", - "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.1.tgz", + "integrity": "sha512-yxLaQV9gkhS8ezJqCM6+ndU7mDY6gqAg75NQ+0IjwEI8IYOmQCgkRwHKVSfWXW076DsqMo0Dk+0FK1U+M5RgFw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/core": "^7.28.0", - "@babel/plugin-transform-react-jsx-self": "^7.27.1", - "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-beta.27", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" + "@rolldown/pluginutils": "^1.0.1" }, "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" - } - }, - "node_modules/@vitest/expect": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz", - "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/mocker": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz", - "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "3.2.4", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.17" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.145.0", + "vite": "^8.0.0" }, "peerDependenciesMeta": { - "msw": { + "@rolldown/plugin-babel": { "optional": true }, - "vite": { + "babel-plugin-react-compiler": { "optional": true - } - } - }, - "node_modules/@vitest/pretty-format": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", - "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz", - "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "3.2.4", - "pathe": "^2.0.3", - "strip-literal": "^3.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + }, + "oxc-transform-react": { + "optional": true + } } }, - "node_modules/@vitest/snapshot": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz", - "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==", + "node_modules/@vitest/mocker": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.2.tgz", + "integrity": "sha512-Z5FS00Q1SJHkB35xATsmWGdQ5WA1/0MV3CDjqyv7GavHv1OfOj145MNfHOlHk7QLes21dKFDHr8EO2zvL+9WGA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "3.2.4", - "magic-string": "^0.30.17", - "pathe": "^2.0.3" + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.0.2", + "estree-walker": "^3.0.3", + "magic-string": "^1.2.3" }, "funding": { "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } } }, - "node_modules/@vitest/spy": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", - "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "node_modules/@vitest/mocker/node_modules/magic-string": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.2.tgz", + "integrity": "sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==", "dev": true, "license": "MIT", "dependencies": { - "tinyspy": "^4.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "@jridgewell/sourcemap-codec": "^1.6.0" } }, - "node_modules/@vitest/utils": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz", - "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==", + "node_modules/@vitest/spy": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.2.tgz", + "integrity": "sha512-Ijc7T1nT9efNb5LxvjaBrEqw3f/QwUv5EE0nKqZxgqsaV/FxAAZ8baGylA8X/Z2oS4Lp+K74Jr6dTJsDKxJDeg==", "dev": true, "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.2.4", - "loupe": "^3.1.4", - "tinyrainbow": "^2.0.0" - }, "funding": { "url": "https://opencollective.com/vitest" } @@ -1865,124 +1041,16 @@ "node": ">=12" } }, - "node_modules/baseline-browser-mapping": { - "version": "2.8.10", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.10.tgz", - "integrity": "sha512-uLfgBi+7IBNay8ECBO2mVMGZAc1VgZWEChxm4lv+TobGdG82LnXMjuNGo/BSSZZL4UmkWhxEHP2f5ziLNwGWMA==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.js" - } - }, - "node_modules/browserslist": { - "version": "4.26.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz", - "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.8.9", - "caniuse-lite": "^1.0.30001746", - "electron-to-chromium": "^1.5.227", - "node-releases": "^2.0.21", - "update-browserslist-db": "^1.1.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001747", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001747.tgz", - "integrity": "sha512-mzFa2DGIhuc5490Nd/G31xN1pnBnYMadtkyTjefPI7wzypqgCEpeWu9bJr0OnDsyKrW75zA9ZAt7pbQFmwLsQg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, "node_modules/chai": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", - "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", "dev": true, "license": "MIT", - "engines": { - "node": ">= 16" - } - }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "license": "BlueOak-1.0.0", "engines": { "node": ">=18" } }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, "node_modules/css.escape": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", @@ -2050,16 +1118,6 @@ "dev": true, "license": "MIT" }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -2071,9 +1129,9 @@ } }, "node_modules/detect-libc": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.1.tgz", - "integrity": "sha512-ecqj/sy1jcK1uWrwpR67UhYrIFQ+5WlGxth34WquCbamhFA6hkkwiu37o6J5xCHdo1oixJRfVRw+ywV+Hq/0Aw==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "license": "Apache-2.0", "engines": { "node": ">=8" @@ -2087,21 +1145,14 @@ "license": "MIT", "peer": true }, - "node_modules/electron-to-chromium": { - "version": "1.5.230", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.230.tgz", - "integrity": "sha512-A6A6Fd3+gMdaed9wX83CvHYJb4UuapPD5X5SLq72VZJzxHSY0/LUweGXRWmQlh2ln7KV7iw7jnwXK7dlPoOnHQ==", - "dev": true, - "license": "ISC" - }, "node_modules/enhanced-resolve": { - "version": "5.18.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", - "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", + "version": "5.25.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz", + "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==", "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "tapable": "^2.3.3" }, "engines": { "node": ">=10.13.0" @@ -2121,63 +1172,12 @@ } }, "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==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", "dev": true, "license": "MIT" }, - "node_modules/esbuild": { - "version": "0.25.10", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz", - "integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.10", - "@esbuild/android-arm": "0.25.10", - "@esbuild/android-arm64": "0.25.10", - "@esbuild/android-x64": "0.25.10", - "@esbuild/darwin-arm64": "0.25.10", - "@esbuild/darwin-x64": "0.25.10", - "@esbuild/freebsd-arm64": "0.25.10", - "@esbuild/freebsd-x64": "0.25.10", - "@esbuild/linux-arm": "0.25.10", - "@esbuild/linux-arm64": "0.25.10", - "@esbuild/linux-ia32": "0.25.10", - "@esbuild/linux-loong64": "0.25.10", - "@esbuild/linux-mips64el": "0.25.10", - "@esbuild/linux-ppc64": "0.25.10", - "@esbuild/linux-riscv64": "0.25.10", - "@esbuild/linux-s390x": "0.25.10", - "@esbuild/linux-x64": "0.25.10", - "@esbuild/netbsd-arm64": "0.25.10", - "@esbuild/netbsd-x64": "0.25.10", - "@esbuild/openbsd-arm64": "0.25.10", - "@esbuild/openbsd-x64": "0.25.10", - "@esbuild/openharmony-arm64": "0.25.10", - "@esbuild/sunos-x64": "0.25.10", - "@esbuild/win32-arm64": "0.25.10", - "@esbuild/win32-ia32": "0.25.10", - "@esbuild/win32-x64": "0.25.10" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/estree-walker": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", @@ -2189,9 +1189,9 @@ } }, "node_modules/expect-type": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz", - "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2229,16 +1229,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -2317,9 +1307,9 @@ "license": "MIT" }, "node_modules/jiti": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", - "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", "license": "MIT", "bin": { "jiti": "lib/jiti-cli.mjs" @@ -2330,7 +1320,8 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/jsdom": { "version": "26.1.0", @@ -2372,36 +1363,10 @@ } } }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/lightningcss": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz", - "integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", "license": "MPL-2.0", "dependencies": { "detect-libc": "^2.0.3" @@ -2414,22 +1379,43 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "lightningcss-darwin-arm64": "1.30.1", - "lightningcss-darwin-x64": "1.30.1", - "lightningcss-freebsd-x64": "1.30.1", - "lightningcss-linux-arm-gnueabihf": "1.30.1", - "lightningcss-linux-arm64-gnu": "1.30.1", - "lightningcss-linux-arm64-musl": "1.30.1", - "lightningcss-linux-x64-gnu": "1.30.1", - "lightningcss-linux-x64-musl": "1.30.1", - "lightningcss-win32-arm64-msvc": "1.30.1", - "lightningcss-win32-x64-msvc": "1.30.1" + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/lightningcss-darwin-arm64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz", - "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", "cpu": [ "arm64" ], @@ -2447,9 +1433,9 @@ } }, "node_modules/lightningcss-darwin-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz", - "integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", "cpu": [ "x64" ], @@ -2467,9 +1453,9 @@ } }, "node_modules/lightningcss-freebsd-x64": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz", - "integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", "cpu": [ "x64" ], @@ -2487,9 +1473,9 @@ } }, "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz", - "integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", "cpu": [ "arm" ], @@ -2507,9 +1493,9 @@ } }, "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz", - "integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", "cpu": [ "arm64" ], @@ -2527,9 +1513,9 @@ } }, "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz", - "integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", "cpu": [ "arm64" ], @@ -2547,9 +1533,9 @@ } }, "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz", - "integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", "cpu": [ "x64" ], @@ -2567,9 +1553,9 @@ } }, "node_modules/lightningcss-linux-x64-musl": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz", - "integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", "cpu": [ "x64" ], @@ -2587,9 +1573,9 @@ } }, "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz", - "integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", "cpu": [ "arm64" ], @@ -2607,9 +1593,9 @@ } }, "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz", - "integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==", + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", "cpu": [ "x64" ], @@ -2626,23 +1612,6 @@ "url": "https://opencollective.com/parcel" } }, - "node_modules/loupe": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", - "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, "node_modules/lz-string": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", @@ -2655,9 +1624,9 @@ } }, "node_modules/magic-string": { - "version": "0.30.19", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", - "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" @@ -2673,27 +1642,6 @@ "node": ">=4" } }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minizlib": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", - "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", - "license": "MIT", - "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -2702,9 +1650,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "funding": [ { "type": "github", @@ -2719,13 +1667,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/node-releases": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.21.tgz", - "integrity": "sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw==", - "dev": true, - "license": "MIT" - }, "node_modules/nwsapi": { "version": "2.2.22", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.22.tgz", @@ -2733,6 +1674,20 @@ "dev": true, "license": "MIT" }, + "node_modules/obug": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", + "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/parse5": { "version": "7.3.0", "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", @@ -2746,23 +1701,6 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -2770,9 +1708,9 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "license": "MIT", "engines": { "node": ">=12" @@ -2782,9 +1720,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "funding": [ { "type": "opencollective", @@ -2801,7 +1739,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.11", + "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -2864,16 +1802,6 @@ "license": "MIT", "peer": true }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", @@ -2888,45 +1816,37 @@ "node": ">=8" } }, - "node_modules/rollup": { - "version": "4.52.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.4.tgz", - "integrity": "sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==", + "node_modules/rolldown": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.11.tgz", + "integrity": "sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==", "license": "MIT", "dependencies": { - "@types/estree": "1.0.8" + "@oxc-project/types": "=0.151.0", + "@rolldown/pluginutils": "^1.0.0" }, "bin": { - "rollup": "dist/bin/rollup" + "rolldown": "bin/cli.mjs" }, "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" + "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.52.4", - "@rollup/rollup-android-arm64": "4.52.4", - "@rollup/rollup-darwin-arm64": "4.52.4", - "@rollup/rollup-darwin-x64": "4.52.4", - "@rollup/rollup-freebsd-arm64": "4.52.4", - "@rollup/rollup-freebsd-x64": "4.52.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.52.4", - "@rollup/rollup-linux-arm-musleabihf": "4.52.4", - "@rollup/rollup-linux-arm64-gnu": "4.52.4", - "@rollup/rollup-linux-arm64-musl": "4.52.4", - "@rollup/rollup-linux-loong64-gnu": "4.52.4", - "@rollup/rollup-linux-ppc64-gnu": "4.52.4", - "@rollup/rollup-linux-riscv64-gnu": "4.52.4", - "@rollup/rollup-linux-riscv64-musl": "4.52.4", - "@rollup/rollup-linux-s390x-gnu": "4.52.4", - "@rollup/rollup-linux-x64-gnu": "4.52.4", - "@rollup/rollup-linux-x64-musl": "4.52.4", - "@rollup/rollup-openharmony-arm64": "4.52.4", - "@rollup/rollup-win32-arm64-msvc": "4.52.4", - "@rollup/rollup-win32-ia32-msvc": "4.52.4", - "@rollup/rollup-win32-x64-gnu": "4.52.4", - "@rollup/rollup-win32-x64-msvc": "4.52.4", - "fsevents": "~2.3.2" + "@rolldown/binding-android-arm-eabi": "1.2.11", + "@rolldown/binding-android-arm64": "1.2.11", + "@rolldown/binding-darwin-arm64": "1.2.11", + "@rolldown/binding-darwin-x64": "1.2.11", + "@rolldown/binding-freebsd-x64": "1.2.11", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.11", + "@rolldown/binding-linux-arm64-gnu": "1.2.11", + "@rolldown/binding-linux-arm64-musl": "1.2.11", + "@rolldown/binding-linux-ppc64-gnu": "1.2.11", + "@rolldown/binding-linux-s390x-gnu": "1.2.11", + "@rolldown/binding-linux-x64-gnu": "1.2.11", + "@rolldown/binding-linux-x64-musl": "1.2.11", + "@rolldown/binding-openharmony-arm64": "1.2.11", + "@rolldown/binding-win32-arm64-msvc": "1.2.11", + "@rolldown/binding-win32-x64-msvc": "1.2.11" } }, "node_modules/rrweb-cssom": { @@ -2962,23 +1882,6 @@ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "license": "MIT" }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -2988,17 +1891,10 @@ "node": ">=0.10.0" } }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, "node_modules/std-env": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz", - "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", + "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", "dev": true, "license": "MIT" }, @@ -3015,26 +1911,6 @@ "node": ">=8" } }, - "node_modules/strip-literal": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", - "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/strip-literal/node_modules/js-tokens": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", - "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", - "dev": true, - "license": "MIT" - }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -3043,107 +1919,58 @@ "license": "MIT" }, "node_modules/tailwindcss": { - "version": "4.1.14", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.14.tgz", - "integrity": "sha512-b7pCxjGO98LnxVkKjaZSDeNuljC4ueKUddjENJOADtubtdo8llTaJy7HwBMeLNSSo2N5QIAgklslK1+Ir8r6CA==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", "license": "MIT" }, "node_modules/tapable": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", - "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/tar": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz", - "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==", - "license": "ISC", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.1.0", - "yallist": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, "engines": { - "node": ">=12.0.0" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", + "node_modules/tinybench": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.0.tgz", + "integrity": "sha512-78U2TlB2CnVenajOFzf3BKSm0J6oz5L0NV7g32LCPccvYc0lbWvys4d3uUUCS2B1N8PAf2+aekR8i1KbC3HO7Q==", "dev": true, "license": "MIT", "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": ">=20.0.0" } }, - "node_modules/tinyrainbow": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", - "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", "dev": true, "license": "MIT", "engines": { - "node": ">=14.0.0" + "node": ">=18" } }, - "node_modules/tinyspy": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", - "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", - "dev": true, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, "engines": { - "node": ">=14.0.0" + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" } }, "node_modules/tldts": { @@ -3199,55 +2026,23 @@ "devOptional": true, "license": "MIT" }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, "node_modules/vite": { - "version": "6.3.6", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.6.tgz", - "integrity": "sha512-0msEVHJEScQbhkbVTb/4iHZdJ6SXp/AvxL2sjwYQFfBqleHtnCqv1J3sa9zbWz/6kW1m9Tfzn92vW+kZ1WV6QA==", + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz", + "integrity": "sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==", "license": "MIT", "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.9", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -3256,14 +2051,15 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" @@ -3272,13 +2068,16 @@ "@types/node": { "optional": true }, - "jiti": { + "@vitejs/devtools": { "optional": true }, - "less": { + "esbuild": { + "optional": true + }, + "jiti": { "optional": true }, - "lightningcss": { + "less": { "optional": true }, "sass": { @@ -3304,89 +2103,322 @@ } } }, - "node_modules/vite-node": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", - "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", - "dev": true, - "license": "MIT", + "node_modules/vite/node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "license": "MPL-2.0", "dependencies": { - "cac": "^6.7.14", - "debug": "^4.4.1", - "es-module-lexer": "^1.7.0", - "pathe": "^2.0.3", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + "detect-libc": "^2.0.3" }, - "bin": { - "vite-node": "vite-node.mjs" + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/vite/node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": ">= 12.0.0" }, "funding": { - "url": "https://opencollective.com/vitest" + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, "node_modules/vitest": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz", - "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.2.tgz", + "integrity": "sha512-7MQrx9pDv5aHiUcovIb/70Ys3tgtkUVgCtledvKdCmEO+/1Dicq5ZqoSxOW034m03oqC+oHOKui2dM6qtMLoJg==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", - "@vitest/expect": "3.2.4", - "@vitest/mocker": "3.2.4", - "@vitest/pretty-format": "^3.2.4", - "@vitest/runner": "3.2.4", - "@vitest/snapshot": "3.2.4", - "@vitest/spy": "3.2.4", - "@vitest/utils": "3.2.4", - "chai": "^5.2.0", - "debug": "^4.4.1", - "expect-type": "^1.2.1", - "magic-string": "^0.30.17", - "pathe": "^2.0.3", - "picomatch": "^4.0.2", - "std-env": "^3.9.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.2", - "tinyglobby": "^0.2.14", - "tinypool": "^1.1.1", - "tinyrainbow": "^2.0.0", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", - "vite-node": "3.2.4", - "why-is-node-running": "^2.3.0" + "@vitest/mocker": "5.0.2", + "chai": "^6.2.2", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.2.3", + "obug": "^2.1.4", + "picomatch": "^4.0.7", + "std-env": "^4.2.0", + "tinybench": "^6.1.4", + "tinyexec": "^1.3.0", + "tinyglobby": "^0.2.17", + "why-is-node-running": "^3.2.1" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/debug": "^4.1.12", - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.2.4", - "@vitest/ui": "3.2.4", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.0.2", + "@vitest/browser-preview": "5.0.2", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.0.2", + "@vitest/coverage-v8": "5.0.2", + "@vitest/ui": "5.0.2", "happy-dom": "*", - "jsdom": "*" + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { "optional": true }, - "@types/debug": { + "@opentelemetry/api": { "optional": true }, "@types/node": { "optional": true }, - "@vitest/browser": { + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { "optional": true }, "@vitest/ui": { @@ -3397,9 +2429,22 @@ }, "jsdom": { "optional": true + }, + "vite": { + "optional": false } } }, + "node_modules/vitest/node_modules/magic-string": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.2.tgz", + "integrity": "sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", @@ -3461,20 +2506,16 @@ } }, "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.2.tgz", + "integrity": "sha512-NKUzAelcoCXhXL4dJzKIwXeR8iEVqsA0Lq6Vnd0UXvgaKbzVo4ZTHROF2Jidrv+SgxOQ03fMinnNhzZATxOD3A==", "dev": true, "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, "bin": { "why-is-node-running": "cli.js" }, "engines": { - "node": ">=8" + "node": ">=20.11" } }, "node_modules/ws": { @@ -3515,13 +2556,6 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true, "license": "MIT" - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" } } } diff --git a/src/Feliz.Template/Content/package.json b/src/Feliz.Template/Content/package.json index 860f5af8..6f156578 100644 --- a/src/Feliz.Template/Content/package.json +++ b/src/Feliz.Template/Content/package.json @@ -9,10 +9,10 @@ "test": "npm run clean && npm run transpile -- --watch --run vitest" }, "dependencies": { - "@tailwindcss/vite": "^4.1.14", + "@tailwindcss/vite": "^4.3.3", "react": "^19.1.0", "react-dom": "^19.1.0", - "tailwindcss": "^4.1.14" + "tailwindcss": "^4.3.3" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", @@ -20,13 +20,13 @@ "@testing-library/user-event": "^14.6.1", "@types/node": "^22.15.3", "@types/react": "^19.1.2", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "^6.1.1", "jsdom": "^26.1.0", - "vite": "^6.3.5", - "vitest": "^3.1.2" + "vite": "^8.3.1", + "vitest": "^5.0.2" }, "engines": { - "node": ">=20", + "node": ">=22.12", "npm": ">=10" } } diff --git a/src/Feliz.Template/Content/src/Components.fs b/src/Feliz.Template/Content/src/Components.fs index f6a4806c..d1ea7843 100644 --- a/src/Feliz.Template/Content/src/Components.fs +++ b/src/Feliz.Template/Content/src/Components.fs @@ -24,7 +24,10 @@ type Components = Html.div [ prop.className "container flex flex-col gap-2 [&_h1]:text-4xl items-center mx-auto pt-12" prop.children [ - Html.img [ prop.src ComponentsHelper.Logo; prop.className "w-48 h-48" ] + Html.img [ + prop.src ComponentsHelper.Logo + prop.className "w-48 h-48" + ] Html.h1 [ prop.testId "counter-display"; prop.text count ] Html.button [ prop.testId "inc-btn" @@ -36,4 +39,4 @@ type Components = ] ] ] - ] + ] \ No newline at end of file diff --git a/src/Feliz.Template/Content/src/Components.test.fs b/src/Feliz.Template/Content/src/Components.test.fs index 4dfe16be..e32aa9ee 100644 --- a/src/Feliz.Template/Content/src/Components.test.fs +++ b/src/Feliz.Template/Content/src/Components.test.fs @@ -14,14 +14,14 @@ Vitest.describe ( let text = ele.getByTestId ("counter-display") - Vitest.expect(text).toBeInTheDocument () - Vitest.expect(text).toHaveTextContent ("0") + Vitest.expect(text).toBeInTheDocument() + Vitest.expect(text).toHaveTextContent("0") let btn = ele.getByTestId ("inc-btn") do! UserEvent.userEvent.click (btn) - Vitest.expect(text).toHaveTextContent ("1") + Vitest.expect(text).toHaveTextContent("1") } ) -) +) \ No newline at end of file diff --git a/src/Feliz.Template/Content/src/Main.fs b/src/Feliz.Template/Content/src/Main.fs index 758459e7..036d0618 100644 --- a/src/Feliz.Template/Content/src/Main.fs +++ b/src/Feliz.Template/Content/src/Main.fs @@ -7,4 +7,4 @@ open Browser.Dom Fable.Core.JsInterop.importSideEffects "./tailwind.css" let root = ReactDOM.createRoot (document.getElementById "feliz-app") -root.render (Components.Counter()) +root.render (Components.Counter()) \ No newline at end of file diff --git a/src/Feliz.UseDeferred/UseDeferred.fs b/src/Feliz.UseDeferred/UseDeferred.fs index cd052049..6dc4370b 100644 --- a/src/Feliz.UseDeferred/UseDeferred.fs +++ b/src/Feliz.UseDeferred/UseDeferred.fs @@ -11,17 +11,20 @@ type Deferred<'T> = [] module Deferred = /// Returns whether the `Deferred<'T>` value has been started or not. - let hasNotStartedYet = function + let hasNotStartedYet = + function | Deferred.HasNotStartedYet -> true | _ -> false /// Returns whether the `Deferred<'T>` value has been resolved or not. - let resolved = function + let resolved = + function | Deferred.Resolved _ -> true | _ -> false /// Returns whether the `Deferred<'T>` value is in progress or not. - let inProgress = function + let inProgress = + function | Deferred.InProgress -> true | _ -> false @@ -32,8 +35,10 @@ module Deferred = | Deferred.InProgress -> Deferred.InProgress | Deferred.Failed error -> Deferred.Failed error | Deferred.Resolved value -> - try Deferred.Resolved (transform value) - with error -> Deferred.Failed error + try + Deferred.Resolved(transform value) + with error -> + Deferred.Failed error let iter (perform: 'T -> unit) (deferred: Deferred<'T>) : unit = match deferred with @@ -41,7 +46,8 @@ module Deferred = | _ -> () /// Verifies that a `Deferred<'T>` value is resolved and the resolved data satisfies a given requirement. - let exists (predicate: 'T -> bool) = function + let exists (predicate: 'T -> bool) = + function | Deferred.Resolved value -> predicate value | _ -> false @@ -52,8 +58,10 @@ module Deferred = | Deferred.InProgress -> Deferred.InProgress | Deferred.Failed error -> Deferred.Failed error | Deferred.Resolved value -> - try transform value - with error -> Deferred.Failed error + try + transform value + with error -> + Deferred.Failed error open Feliz @@ -62,79 +70,91 @@ module ReactHookExtensions = type React with [] static member useDeferred(operation: Async<'T>, dependencies: obj array) = - let (deferred, setDeferred) = React.useState(Deferred.HasNotStartedYet) - let token = FsReact.useCancellationToken() + let (deferred, setDeferred) = React.useState (Deferred.HasNotStartedYet) + let token = FsReact.useCancellationToken () + let executeOperation = async { try - do setDeferred(Deferred<'T>.InProgress) + do setDeferred (Deferred<'T>.InProgress) let! output = operation - do setDeferred(Deferred<'T>.Resolved output) + do setDeferred (Deferred<'T>.Resolved output) with error -> - #if DEBUG - Browser.Dom.console.log(error) - #endif - do setDeferred(Deferred<'T>.Failed error) +#if DEBUG + Browser.Dom.console.log (error) +#endif + do setDeferred (Deferred<'T>.Failed error) } - React.useEffect((fun () -> Async.StartImmediate(executeOperation, token.current)), dependencies) + React.useEffect ((fun () -> Async.StartImmediate(executeOperation, token.current)), dependencies) deferred [] static member useDeferredCallback(operation: 'TIn -> Async<'TOut>, setDeferred: Deferred<'TOut> -> unit) = - let cancellationToken = React.useRef(new System.Threading.CancellationTokenSource()) + let cancellationToken = + React.useRef (new System.Threading.CancellationTokenSource()) + let executeOperation arg = async { try - do setDeferred(Deferred<'TOut>.InProgress) + do setDeferred (Deferred<'TOut>.InProgress) let! output = operation arg - do setDeferred(Deferred<'TOut>.Resolved output) + do setDeferred (Deferred<'TOut>.Resolved output) with error -> - #if DEBUG - Browser.Dom.console.log(error) - #endif - do setDeferred(Deferred<'TOut>.Failed error) +#if DEBUG + Browser.Dom.console.log (error) +#endif + do setDeferred (Deferred<'TOut>.Failed error) } - React.useEffectOnce(fun () -> - FsReact.createDisposable(fun () -> cancellationToken.current.Cancel()) - ) + React.useEffectOnce (fun () -> FsReact.createDisposable (fun () -> cancellationToken.current.Cancel())) - let start = React.useCallback(fun arg -> - if not cancellationToken.current.IsCancellationRequested - then Async.StartImmediate(executeOperation arg, cancellationToken.current.Token) - ) + let start = + React.useCallback (fun arg -> + if not cancellationToken.current.IsCancellationRequested then + Async.StartImmediate(executeOperation arg, cancellationToken.current.Token) + ) start [] - static member useDeferredParallel<'T, 'U, 'Key when 'Key : comparison>(deferred: Deferred<'T>, map: 'T -> ('Key * Async<'U>) list) = - let (data, setData) = React.useStateWithUpdater(Map.empty) - let addData = React.useCallback(fun (key, value) -> setData(fun prev -> Map.add key value prev)) - let token = FsReact.useCancellationToken() + static member useDeferredParallel<'T, 'U, 'Key when 'Key: comparison> + (deferred: Deferred<'T>, map: 'T -> ('Key * Async<'U>) list) + = + let (data, setData) = React.useStateWithUpdater (Map.empty) + + let addData = + React.useCallback (fun (key, value) -> setData (fun prev -> Map.add key value prev)) + + let token = FsReact.useCancellationToken () + let mapKeyedOperatons (operations: ('Key * Async<'U>) list) = [ for (key, operation) in operations do async { try - do addData(key, Deferred.InProgress) + do addData (key, Deferred.InProgress) let! output = operation - do addData(key, Deferred.Resolved output) + do addData (key, Deferred.Resolved output) with error -> - #if DEBUG - Browser.Dom.console.log(error) - #endif - do addData(key, Deferred.Failed error) +#if DEBUG + Browser.Dom.console.log (error) +#endif + do addData (key, Deferred.Failed error) } ] - let start = React.useCallback(fun operations -> - Fable.Core.JS.setTimeout(fun () -> - Async.StartImmediate(Async.Parallel(mapKeyedOperatons operations) |> Async.Ignore, token.current) - ) 0 |> ignore - ) - - React.useEffect(fun () -> - deferred - |> Deferred.iter (fun data -> start(map data)) - , [| box deferred |]) + let start = + React.useCallback (fun operations -> + Fable.Core.JS.setTimeout + (fun () -> + Async.StartImmediate( + Async.Parallel(mapKeyedOperatons operations) |> Async.Ignore, + token.current + ) + ) + 0 + |> ignore + ) + + React.useEffect ((fun () -> deferred |> Deferred.iter (fun data -> start (map data))), [| box deferred |]) Map.toList data diff --git a/src/Feliz.UseElmish/UseElmish.fs b/src/Feliz.UseElmish/UseElmish.fs index a2cec8b5..2d5a7caf 100644 --- a/src/Feliz.UseElmish/UseElmish.fs +++ b/src/Feliz.UseElmish/UseElmish.fs @@ -110,8 +110,8 @@ module private Util = let mutable disposed = false let mutable trackedDisposableRef: IDisposable option = None - let trackedDisposable = - { new IDisposable with + let trackedDisposable = { + new IDisposable with member _.Dispose() = if not disposed then disposed <- true @@ -124,7 +124,7 @@ module private Util = subscriptionDisposable.Dispose() with ex -> reportDisposeError "Unable to dispose subscription." ex - } + } trackedDisposableRef <- Some trackedDisposable trackedSubscriptionDisposables.Add trackedDisposable diff --git a/src/Feliz.UseMediaQuery/UseMediaQuery.fs b/src/Feliz.UseMediaQuery/UseMediaQuery.fs index 0a7b2b99..55d727d3 100644 --- a/src/Feliz.UseMediaQuery/UseMediaQuery.fs +++ b/src/Feliz.UseMediaQuery/UseMediaQuery.fs @@ -40,29 +40,32 @@ let private makeQueries breakpoints = [] module UseMediaQueryExtension = - [] - let private addListener mqList fn = jsNative + [] + let private addListener mqList fn = jsNative - [] - let private removeListener mqList fn = jsNative + [] + let private removeListener mqList fn = jsNative - type React with + type React with /// A hook for media queries, this hook will force a component /// to re-render when the specified media query changes. [] - static member useMediaQuery (mediaQuery: string) = - let (mq: bool), setMq = React.useState(fun () -> window.matchMedia(mediaQuery).matches) + static member useMediaQuery(mediaQuery: string) = + let (mq: bool), setMq = + React.useState (fun () -> window.matchMedia(mediaQuery).matches) - React.useEffect(fun () -> - let mediaQueryList = window.matchMedia(mediaQuery) - let handler = fun () -> setMq mediaQueryList.matches + React.useEffect ( + fun () -> + let mediaQueryList = window.matchMedia (mediaQuery) + let handler = fun () -> setMq mediaQueryList.matches - handler() + handler () - addListener mediaQueryList handler + addListener mediaQueryList handler - FsReact.createDisposable(fun () -> removeListener mediaQueryList handler) - , [| mediaQuery :> obj |]) + FsReact.createDisposable (fun () -> removeListener mediaQueryList handler) + , [| mediaQuery :> obj |] + ) mq diff --git a/src/Feliz/Helper/DateParsing.fs b/src/Feliz/Helper/DateParsing.fs index 2c1bb310..1374bd09 100644 --- a/src/Feliz/Helper/DateParsing.fs +++ b/src/Feliz/Helper/DateParsing.fs @@ -1,52 +1,54 @@ -module [] Feliz.DateParsing +[] +module Feliz.DateParsing open System let (|Between|_|) (x: int) (y: int) (input: int) = - if input >= x && input <= y - then Some() - else None + if input >= x && input <= y then Some() else None + let isLeapYear (year: int) = DateTime.IsLeapYear(year) let (|Int|_|) (input: string) = - try (Some (int input)) - with _ -> None + try + (Some(int input)) + with _ -> + None + /// Parses a specific yyyy-MM-dd or yyyy-MM-ddTHH:mm date format that comes out of an input element with type="date" let parse (input: string) : Option = try - if String.IsNullOrWhiteSpace input then None - else - let parts = input.Split('-') - let year, month, day, hour, minute = - match parts with - | [| Int year; Int month |] -> year, month, 1, 0, 0 - | [| Int year; Int month; Int day |] -> year, month, day, 0, 0 - | [| Int year; Int month; day |] -> - if day.Contains("T") then - match day.Split('T') with - | [| Int parsedDay; time |] -> - match time.Split ':' with - | [| Int hour; Int minute |] -> - match hour, minute with - | Between 0 59, Between 0 59 -> year, month, parsedDay, hour, minute - | _ -> - -1, 1, 1, 0, 0 - | _ -> - -1, 1, 1, 0, 0 - | _ -> - -1, 1, 1, 0, 0 - else - -1, 1, 1, 0, 0 - | _ -> - -1, 1, 1, 0, 0 - if year <= 0 then + if String.IsNullOrWhiteSpace input then None else - match month, day with - | 2, Between 1 29 when isLeapYear year -> Some (DateTime(year, month, day, hour, minute, 0)) - | 2, Between 1 28 when not (isLeapYear year) -> Some (DateTime(year, month, day, hour, minute, 0)) - | (1 | 3 | 5 | 7 | 8 | 10 | 12), Between 1 31 -> Some (DateTime(year, month, day, hour, minute, 0)) - | (4 | 6 | 9 | 11), Between 1 30 -> Some (DateTime(year, month, day, hour, minute, 0)) - | _ -> None - with - | _ -> None + let parts = input.Split('-') + + let year, month, day, hour, minute = + match parts with + | [| Int year; Int month |] -> year, month, 1, 0, 0 + | [| Int year; Int month; Int day |] -> year, month, day, 0, 0 + | [| Int year; Int month; day |] -> + if day.Contains("T") then + match day.Split('T') with + | [| Int parsedDay; time |] -> + match time.Split ':' with + | [| Int hour; Int minute |] -> + match hour, minute with + | Between 0 59, Between 0 59 -> year, month, parsedDay, hour, minute + | _ -> -1, 1, 1, 0, 0 + | _ -> -1, 1, 1, 0, 0 + | _ -> -1, 1, 1, 0, 0 + else + -1, 1, 1, 0, 0 + | _ -> -1, 1, 1, 0, 0 + + if year <= 0 then + None + else + match month, day with + | 2, Between 1 29 when isLeapYear year -> Some(DateTime(year, month, day, hour, minute, 0)) + | 2, Between 1 28 when not (isLeapYear year) -> Some(DateTime(year, month, day, hour, minute, 0)) + | (1 | 3 | 5 | 7 | 8 | 10 | 12), Between 1 31 -> Some(DateTime(year, month, day, hour, minute, 0)) + | (4 | 6 | 9 | 11), Between 1 30 -> Some(DateTime(year, month, day, hour, minute, 0)) + | _ -> None + with _ -> + None diff --git a/src/Feliz/Helper/Helpers.fs b/src/Feliz/Helper/Helpers.fs index 41e98b55..89fa5af2 100644 --- a/src/Feliz/Helper/Helpers.fs +++ b/src/Feliz/Helper/Helpers.fs @@ -8,8 +8,11 @@ open Fable.Core.JsInterop [] [] module Helpers = - let optDispose (disposeOption: #IDisposable option) = - { new IDisposable with member _.Dispose () = disposeOption |> Option.iter (fun d -> d.Dispose()) } + let optDispose (disposeOption: #IDisposable option) = { + new IDisposable with + member _.Dispose() = + disposeOption |> Option.iter (fun d -> d.Dispose()) + } [] module Interop = @@ -26,4 +29,3 @@ module Interop = props?key <- f props props | None -> props - diff --git a/src/Feliz/Helper/StringSyntax.fs b/src/Feliz/Helper/StringSyntax.fs index fc71ca1c..6a3a7a3f 100644 --- a/src/Feliz/Helper/StringSyntax.fs +++ b/src/Feliz/Helper/StringSyntax.fs @@ -2,13 +2,17 @@ namespace System.Diagnostics.CodeAnalysis #if !NET7_0_OR_GREATER open System + /// /// Backport of StringSyntaxAttribute from .NET 7+ for use in earlier framework versions. /// Specifies the syntax used in a string for enhanced IDE support (e.g., syntax highlighting, autocomplete). /// -[] +[] type internal StringSyntaxAttribute - /// /// Initializes a new instance of the class with the identifier of the syntax used. /// @@ -22,7 +26,7 @@ type internal StringSyntaxAttribute /// Initializes a new instance of the class with the identifier of the syntax used. /// /// The syntax identifier. - new (syntax: string) = StringSyntaxAttribute(syntax, [||]) + new(syntax: string) = StringSyntaxAttribute(syntax, [||]) /// Gets the identifier of the syntax used. member val public Syntax = syntax with get diff --git a/src/Feliz/Html.fs b/src/Feliz/Html.fs index 0851dfd0..b31f2707 100644 --- a/src/Feliz/Html.fs +++ b/src/Feliz/Html.fs @@ -4,17 +4,20 @@ open Fable.React open Fable.Core open Fable.Core.JsInterop open System + module HtmlHelper = - + let inline createElementWithChild (tag: string) (children: obj) = - ReactLegacy.createElement(tag, children = unbox children) + ReactLegacy.createElement (tag, children = unbox children) let inline createElementWithChildren (tag: string) (children: seq) = - ReactLegacy.createElement(tag, children = children) + ReactLegacy.createElement (tag, children = children) /// This function changes the order of the input array. Last item replaces children key, then we remove the last item. let extractByKeyFast (key: string) (arr: seq<(string * obj)>) : (string * obj)[] * (string * obj) option = - Fable.Core.JsInterop.emitJsStatement (arr, key) """const arrNext_ = Array.from($0); + Fable.Core.JsInterop.emitJsStatement + (arr, key) + """const arrNext_ = Array.from($0); for (let i = 0; i < arrNext_.length; i++) { if (arrNext_[i][0] === $1) { const item = arrNext_[i]; @@ -27,839 +30,1694 @@ module HtmlHelper = let createElement (name: string) (props: IReactProperty list) : ReactElement = - match unbox<(string*obj) list> props |> extractByKeyFast "children" with - | props, Some (_, children) -> - ReactLegacy.createElement( - name, - Fable.Core.JsInterop.createObj props, - unbox children - ) - | props, None -> - ReactLegacy.createElement( - name, - Fable.Core.JsInterop.createObj props - ) + match unbox<(string * obj) list> props |> extractByKeyFast "children" with + | props, Some(_, children) -> + ReactLegacy.createElement (name, Fable.Core.JsInterop.createObj props, unbox children) + | props, None -> ReactLegacy.createElement (name, Fable.Core.JsInterop.createObj props) [] type Html = static member inline a xs = HtmlHelper.createElement "a" xs - static member inline a (children: #seq) = HtmlHelper.createElementWithChildren "a" children + + static member inline a(children: #seq) = + HtmlHelper.createElementWithChildren "a" children static member inline abbr xs = HtmlHelper.createElement "abbr" xs - static member inline abbr (value: float) = HtmlHelper.createElementWithChild "abbr" value - static member inline abbr (value: int) = HtmlHelper.createElementWithChild "abbr" value - static member inline abbr (value: ReactElement) = HtmlHelper.createElementWithChild "abbr" value - static member inline abbr (value: string) = HtmlHelper.createElementWithChild "abbr" value - static member inline abbr (children: #seq) = HtmlHelper.createElementWithChildren "abbr" children + + static member inline abbr(value: float) = + HtmlHelper.createElementWithChild "abbr" value + + static member inline abbr(value: int) = + HtmlHelper.createElementWithChild "abbr" value + + static member inline abbr(value: ReactElement) = + HtmlHelper.createElementWithChild "abbr" value + + static member inline abbr(value: string) = + HtmlHelper.createElementWithChild "abbr" value + + static member inline abbr(children: #seq) = + HtmlHelper.createElementWithChildren "abbr" children static member inline address xs = HtmlHelper.createElement "address" xs - static member inline address (value: float) = HtmlHelper.createElementWithChild "address" value - static member inline address (value: int) = HtmlHelper.createElementWithChild "address" value - static member inline address (value: ReactElement) = HtmlHelper.createElementWithChild "address" value - static member inline address (value: string) = HtmlHelper.createElementWithChild "address" value - static member inline address (children: #seq) = HtmlHelper.createElementWithChildren "address" children + + static member inline address(value: float) = + HtmlHelper.createElementWithChild "address" value + + static member inline address(value: int) = + HtmlHelper.createElementWithChild "address" value + + static member inline address(value: ReactElement) = + HtmlHelper.createElementWithChild "address" value + + static member inline address(value: string) = + HtmlHelper.createElementWithChild "address" value + + static member inline address(children: #seq) = + HtmlHelper.createElementWithChildren "address" children static member inline anchor xs = HtmlHelper.createElement "a" xs - static member inline anchor (children: #seq) = HtmlHelper.createElementWithChildren "a" children + + static member inline anchor(children: #seq) = + HtmlHelper.createElementWithChildren "a" children static member inline animate xs = HtmlHelper.createElement "animate" xs - static member inline animateMotion xs = HtmlHelper.createElement "animateMotion" xs - static member inline animateMotion (children: #seq) = HtmlHelper.createElementWithChildren "animateMotion" children + static member inline animateMotion xs = + HtmlHelper.createElement "animateMotion" xs + + static member inline animateMotion(children: #seq) = + HtmlHelper.createElementWithChildren "animateMotion" children - static member inline animateTransform xs = HtmlHelper.createElement "animateTransform" xs - static member inline animateTransform (children: #seq) = HtmlHelper.createElementWithChildren "animateTransform" children + static member inline animateTransform xs = + HtmlHelper.createElement "animateTransform" xs + + static member inline animateTransform(children: #seq) = + HtmlHelper.createElementWithChildren "animateTransform" children static member inline area xs = HtmlHelper.createElement "area" xs static member inline article xs = HtmlHelper.createElement "article" xs - static member inline article (children: #seq) = HtmlHelper.createElementWithChildren "article" children + + static member inline article(children: #seq) = + HtmlHelper.createElementWithChildren "article" children static member inline aside xs = HtmlHelper.createElement "aside" xs - static member inline aside (children: #seq) = HtmlHelper.createElementWithChildren "aside" children + + static member inline aside(children: #seq) = + HtmlHelper.createElementWithChildren "aside" children static member inline audio xs = HtmlHelper.createElement "audio" xs - static member inline audio (children: #seq) = HtmlHelper.createElementWithChildren "audio" children + + static member inline audio(children: #seq) = + HtmlHelper.createElementWithChildren "audio" children static member inline b xs = HtmlHelper.createElement "b" xs - static member inline b (value: float) = HtmlHelper.createElementWithChild "b" value - static member inline b (value: int) = HtmlHelper.createElementWithChild "b" value - static member inline b (value: ReactElement) = HtmlHelper.createElementWithChild "b" value - static member inline b (value: string) = HtmlHelper.createElementWithChild "b" value - static member inline b (children: #seq) = HtmlHelper.createElementWithChildren "b" children + + static member inline b(value: float) = + HtmlHelper.createElementWithChild "b" value + + static member inline b(value: int) = + HtmlHelper.createElementWithChild "b" value + + static member inline b(value: ReactElement) = + HtmlHelper.createElementWithChild "b" value + + static member inline b(value: string) = + HtmlHelper.createElementWithChild "b" value + + static member inline b(children: #seq) = + HtmlHelper.createElementWithChildren "b" children static member inline base' xs = HtmlHelper.createElement "base" xs static member inline bdi xs = HtmlHelper.createElement "bdi" xs - static member inline bdi (value: float) = HtmlHelper.createElementWithChild "bdi" value - static member inline bdi (value: int) = HtmlHelper.createElementWithChild "bdi" value - static member inline bdi (value: ReactElement) = HtmlHelper.createElementWithChild "bdi" value - static member inline bdi (value: string) = HtmlHelper.createElementWithChild "bdi" value - static member inline bdi (children: #seq) = HtmlHelper.createElementWithChildren "bdi" children + + static member inline bdi(value: float) = + HtmlHelper.createElementWithChild "bdi" value + + static member inline bdi(value: int) = + HtmlHelper.createElementWithChild "bdi" value + + static member inline bdi(value: ReactElement) = + HtmlHelper.createElementWithChild "bdi" value + + static member inline bdi(value: string) = + HtmlHelper.createElementWithChild "bdi" value + + static member inline bdi(children: #seq) = + HtmlHelper.createElementWithChildren "bdi" children static member inline bdo xs = HtmlHelper.createElement "bdo" xs - static member inline bdo (value: float) = HtmlHelper.createElementWithChild "bdo" value - static member inline bdo (value: int) = HtmlHelper.createElementWithChild "bdo" value - static member inline bdo (value: ReactElement) = HtmlHelper.createElementWithChild "bdo" value - static member inline bdo (value: string) = HtmlHelper.createElementWithChild "bdo" value - static member inline bdo (children: #seq) = HtmlHelper.createElementWithChildren "bdo" children - - static member inline blockquote xs = HtmlHelper.createElement "blockquote" xs - static member inline blockquote (value: float) = HtmlHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: int) = HtmlHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: ReactElement) = HtmlHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: string) = HtmlHelper.createElementWithChild "blockquote" value - static member inline blockquote (children: #seq) = HtmlHelper.createElementWithChildren "blockquote" children + + static member inline bdo(value: float) = + HtmlHelper.createElementWithChild "bdo" value + + static member inline bdo(value: int) = + HtmlHelper.createElementWithChild "bdo" value + + static member inline bdo(value: ReactElement) = + HtmlHelper.createElementWithChild "bdo" value + + static member inline bdo(value: string) = + HtmlHelper.createElementWithChild "bdo" value + + static member inline bdo(children: #seq) = + HtmlHelper.createElementWithChildren "bdo" children + + static member inline blockquote xs = + HtmlHelper.createElement "blockquote" xs + + static member inline blockquote(value: float) = + HtmlHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: int) = + HtmlHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: ReactElement) = + HtmlHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: string) = + HtmlHelper.createElementWithChild "blockquote" value + + static member inline blockquote(children: #seq) = + HtmlHelper.createElementWithChildren "blockquote" children static member inline body xs = HtmlHelper.createElement "body" xs - static member inline body (value: float) = HtmlHelper.createElementWithChild "body" value - static member inline body (value: int) = HtmlHelper.createElementWithChild "body" value - static member inline body (value: ReactElement) = HtmlHelper.createElementWithChild "body" value - static member inline body (value: string) = HtmlHelper.createElementWithChild "body" value - static member inline body (children: #seq) = HtmlHelper.createElementWithChildren "body" children + + static member inline body(value: float) = + HtmlHelper.createElementWithChild "body" value + + static member inline body(value: int) = + HtmlHelper.createElementWithChild "body" value + + static member inline body(value: ReactElement) = + HtmlHelper.createElementWithChild "body" value + + static member inline body(value: string) = + HtmlHelper.createElementWithChild "body" value + + static member inline body(children: #seq) = + HtmlHelper.createElementWithChildren "body" children static member inline br xs = HtmlHelper.createElement "br" xs static member inline button xs = HtmlHelper.createElement "button" xs - static member inline button (children: #seq) = HtmlHelper.createElementWithChildren "button" children + + static member inline button(children: #seq) = + HtmlHelper.createElementWithChildren "button" children static member inline canvas xs = HtmlHelper.createElement "canvas" xs static member inline caption xs = HtmlHelper.createElement "caption" xs - static member inline caption (value: float) = HtmlHelper.createElementWithChild "caption" value - static member inline caption (value: int) = HtmlHelper.createElementWithChild "caption" value - static member inline caption (value: ReactElement) = HtmlHelper.createElementWithChild "caption" value - static member inline caption (value: string) = HtmlHelper.createElementWithChild "caption" value - static member inline caption (children: #seq) = HtmlHelper.createElementWithChildren "caption" children + + static member inline caption(value: float) = + HtmlHelper.createElementWithChild "caption" value + + static member inline caption(value: int) = + HtmlHelper.createElementWithChild "caption" value + + static member inline caption(value: ReactElement) = + HtmlHelper.createElementWithChild "caption" value + + static member inline caption(value: string) = + HtmlHelper.createElementWithChild "caption" value + + static member inline caption(children: #seq) = + HtmlHelper.createElementWithChildren "caption" children static member inline cite xs = HtmlHelper.createElement "cite" xs - static member inline cite (value: float) = HtmlHelper.createElementWithChild "cite" value - static member inline cite (value: int) = HtmlHelper.createElementWithChild "cite" value - static member inline cite (value: ReactElement) = HtmlHelper.createElementWithChild "cite" value - static member inline cite (value: string) = HtmlHelper.createElementWithChild "cite" value - static member inline cite (children: #seq) = HtmlHelper.createElementWithChildren "cite" children + + static member inline cite(value: float) = + HtmlHelper.createElementWithChild "cite" value + + static member inline cite(value: int) = + HtmlHelper.createElementWithChild "cite" value + + static member inline cite(value: ReactElement) = + HtmlHelper.createElementWithChild "cite" value + + static member inline cite(value: string) = + HtmlHelper.createElementWithChild "cite" value + + static member inline cite(children: #seq) = + HtmlHelper.createElementWithChildren "cite" children + [] static member inline circle xs = HtmlHelper.createElement "circle" xs + [] - static member inline circle (children: #seq) = HtmlHelper.createElementWithChildren "circle" children + static member inline circle(children: #seq) = + HtmlHelper.createElementWithChildren "circle" children + [] static member inline clipPath xs = HtmlHelper.createElement "clipPath" xs + [] - static member inline clipPath (children: #seq) = HtmlHelper.createElementWithChildren "clipPath" children + static member inline clipPath(children: #seq) = + HtmlHelper.createElementWithChildren "clipPath" children static member inline code xs = HtmlHelper.createElement "code" xs - static member inline code (value: bool) = HtmlHelper.createElementWithChild "code" value - static member inline code (value: float) = HtmlHelper.createElementWithChild "code" value - static member inline code (value: int) = HtmlHelper.createElementWithChild "code" value - static member inline code (value: ReactElement) = HtmlHelper.createElementWithChild "code" value - static member inline code (value: string) = HtmlHelper.createElementWithChild "code" value - static member inline code (children: #seq) = HtmlHelper.createElementWithChildren "code" children + + static member inline code(value: bool) = + HtmlHelper.createElementWithChild "code" value + + static member inline code(value: float) = + HtmlHelper.createElementWithChild "code" value + + static member inline code(value: int) = + HtmlHelper.createElementWithChild "code" value + + static member inline code(value: ReactElement) = + HtmlHelper.createElementWithChild "code" value + + static member inline code(value: string) = + HtmlHelper.createElementWithChild "code" value + + static member inline code(children: #seq) = + HtmlHelper.createElementWithChildren "code" children static member inline col xs = HtmlHelper.createElement "col" xs static member inline colgroup xs = HtmlHelper.createElement "colgroup" xs - static member inline colgroup (children: #seq) = HtmlHelper.createElementWithChildren "colgroup" children + + static member inline colgroup(children: #seq) = + HtmlHelper.createElementWithChildren "colgroup" children [] - static member inline content (value: float) : ReactElement = unbox value + static member inline content(value: float) : ReactElement = unbox value + [] - static member inline content (value: int) : ReactElement = unbox value + static member inline content(value: int) : ReactElement = unbox value + [] - static member inline content (value: string) : ReactElement = unbox value + static member inline content(value: string) : ReactElement = unbox value static member inline data xs = HtmlHelper.createElement "data" xs - static member inline data (value: float) = HtmlHelper.createElementWithChild "data" value - static member inline data (value: int) = HtmlHelper.createElementWithChild "data" value - static member inline data (value: ReactElement) = HtmlHelper.createElementWithChild "data" value - static member inline data (value: string) = HtmlHelper.createElementWithChild "data" value - static member inline data (children: #seq) = HtmlHelper.createElementWithChildren "data" children + + static member inline data(value: float) = + HtmlHelper.createElementWithChild "data" value + + static member inline data(value: int) = + HtmlHelper.createElementWithChild "data" value + + static member inline data(value: ReactElement) = + HtmlHelper.createElementWithChild "data" value + + static member inline data(value: string) = + HtmlHelper.createElementWithChild "data" value + + static member inline data(children: #seq) = + HtmlHelper.createElementWithChildren "data" children static member inline datalist xs = HtmlHelper.createElement "datalist" xs - static member inline datalist (value: float) = HtmlHelper.createElementWithChild "datalist" value - static member inline datalist (value: int) = HtmlHelper.createElementWithChild "datalist" value - static member inline datalist (value: ReactElement) = HtmlHelper.createElementWithChild "datalist" value - static member inline datalist (value: string) = HtmlHelper.createElementWithChild "datalist" value - static member inline datalist (children: #seq) = HtmlHelper.createElementWithChildren "datalist" children + + static member inline datalist(value: float) = + HtmlHelper.createElementWithChild "datalist" value + + static member inline datalist(value: int) = + HtmlHelper.createElementWithChild "datalist" value + + static member inline datalist(value: ReactElement) = + HtmlHelper.createElementWithChild "datalist" value + + static member inline datalist(value: string) = + HtmlHelper.createElementWithChild "datalist" value + + static member inline datalist(children: #seq) = + HtmlHelper.createElementWithChildren "datalist" children static member inline dd xs = HtmlHelper.createElement "dd" xs - static member inline dd (value: float) = HtmlHelper.createElementWithChild "dd" value - static member inline dd (value: int) = HtmlHelper.createElementWithChild "dd" value - static member inline dd (value: ReactElement) = HtmlHelper.createElementWithChild "dd" value - static member inline dd (value: string) = HtmlHelper.createElementWithChild "dd" value - static member inline dd (children: #seq) = HtmlHelper.createElementWithChildren "dd" children + + static member inline dd(value: float) = + HtmlHelper.createElementWithChild "dd" value + + static member inline dd(value: int) = + HtmlHelper.createElementWithChild "dd" value + + static member inline dd(value: ReactElement) = + HtmlHelper.createElementWithChild "dd" value + + static member inline dd(value: string) = + HtmlHelper.createElementWithChild "dd" value + + static member inline dd(children: #seq) = + HtmlHelper.createElementWithChildren "dd" children + [] static member inline defs xs = HtmlHelper.createElement "defs" xs + [] - static member inline defs (children: #seq) = HtmlHelper.createElementWithChildren "defs" children + static member inline defs(children: #seq) = + HtmlHelper.createElementWithChildren "defs" children + static member inline del xs = HtmlHelper.createElement "del" xs - static member inline del (value: float) = HtmlHelper.createElementWithChild "del" value - static member inline del (value: int) = HtmlHelper.createElementWithChild "del" value - static member inline del (value: ReactElement) = HtmlHelper.createElementWithChild "del" value - static member inline del (value: string) = HtmlHelper.createElementWithChild "del" value - static member inline del (children: #seq) = HtmlHelper.createElementWithChildren "del" children + + static member inline del(value: float) = + HtmlHelper.createElementWithChild "del" value + + static member inline del(value: int) = + HtmlHelper.createElementWithChild "del" value + + static member inline del(value: ReactElement) = + HtmlHelper.createElementWithChild "del" value + + static member inline del(value: string) = + HtmlHelper.createElementWithChild "del" value + + static member inline del(children: #seq) = + HtmlHelper.createElementWithChildren "del" children static member inline details xs = HtmlHelper.createElement "details" xs - static member inline details (children: #seq) = HtmlHelper.createElementWithChildren "details" children + + static member inline details(children: #seq) = + HtmlHelper.createElementWithChildren "details" children [] static member inline desc xs = HtmlHelper.createElement "desc" xs + [] - static member inline desc (value: float) = HtmlHelper.createElementWithChild "desc" value + static member inline desc(value: float) = + HtmlHelper.createElementWithChild "desc" value + [] - static member inline desc (value: int) = HtmlHelper.createElementWithChild "desc" value + static member inline desc(value: int) = + HtmlHelper.createElementWithChild "desc" value + [] - static member inline desc (value: string) = HtmlHelper.createElementWithChild "desc" value + static member inline desc(value: string) = + HtmlHelper.createElementWithChild "desc" value static member inline dfn xs = HtmlHelper.createElement "ins" xs - static member inline dfn (value: float) = HtmlHelper.createElementWithChild "dfn" value - static member inline dfn (value: int) = HtmlHelper.createElementWithChild "dfn" value - static member inline dfn (value: ReactElement) = HtmlHelper.createElementWithChild "dfn" value - static member inline dfn (value: string) = HtmlHelper.createElementWithChild "dfn" value - static member inline dfn (children: #seq) = HtmlHelper.createElementWithChildren "dfn" children + + static member inline dfn(value: float) = + HtmlHelper.createElementWithChild "dfn" value + + static member inline dfn(value: int) = + HtmlHelper.createElementWithChild "dfn" value + + static member inline dfn(value: ReactElement) = + HtmlHelper.createElementWithChild "dfn" value + + static member inline dfn(value: string) = + HtmlHelper.createElementWithChild "dfn" value + + static member inline dfn(children: #seq) = + HtmlHelper.createElementWithChildren "dfn" children static member inline dialog xs = HtmlHelper.createElement "dialog" xs - static member inline dialog (value: float) = HtmlHelper.createElementWithChild "dialog" value - static member inline dialog (value: int) = HtmlHelper.createElementWithChild "dialog" value - static member inline dialog (value: ReactElement) = HtmlHelper.createElementWithChild "dialog" value - static member inline dialog (value: string) = HtmlHelper.createElementWithChild "dialog" value - static member inline dialog (children: #seq) = HtmlHelper.createElementWithChildren "dialog" children + + static member inline dialog(value: float) = + HtmlHelper.createElementWithChild "dialog" value + + static member inline dialog(value: int) = + HtmlHelper.createElementWithChild "dialog" value + + static member inline dialog(value: ReactElement) = + HtmlHelper.createElementWithChild "dialog" value + + static member inline dialog(value: string) = + HtmlHelper.createElementWithChild "dialog" value + + static member inline dialog(children: #seq) = + HtmlHelper.createElementWithChildren "dialog" children /// The `
    ` tag defines a division or a section in an HTML document static member inline div xs = HtmlHelper.createElement "div" xs - static member inline div (value: float) = HtmlHelper.createElementWithChild "div" value - static member inline div (value: int) = HtmlHelper.createElementWithChild "div" value - static member inline div (value: ReactElement) = HtmlHelper.createElementWithChild "div" value - static member inline div (value: string) = HtmlHelper.createElementWithChild "div" value - static member inline div (children: #seq) = HtmlHelper.createElementWithChildren "div" children + + static member inline div(value: float) = + HtmlHelper.createElementWithChild "div" value + + static member inline div(value: int) = + HtmlHelper.createElementWithChild "div" value + + static member inline div(value: ReactElement) = + HtmlHelper.createElementWithChild "div" value + + static member inline div(value: string) = + HtmlHelper.createElementWithChild "div" value + + static member inline div(children: #seq) = + HtmlHelper.createElementWithChildren "div" children static member inline dl xs = HtmlHelper.createElement "dl" xs - static member inline dl (children: #seq) = HtmlHelper.createElementWithChildren "dl" children + + static member inline dl(children: #seq) = + HtmlHelper.createElementWithChildren "dl" children static member inline dt xs = HtmlHelper.createElement "dt" xs - static member inline dt (value: float) = HtmlHelper.createElementWithChild "dt" value - static member inline dt (value: int) = HtmlHelper.createElementWithChild "dt" value - static member inline dt (value: ReactElement) = HtmlHelper.createElementWithChild "dt" value - static member inline dt (value: string) = HtmlHelper.createElementWithChild "dt" value - static member inline dt (children: #seq) = HtmlHelper.createElementWithChildren "dt" children + + static member inline dt(value: float) = + HtmlHelper.createElementWithChild "dt" value + + static member inline dt(value: int) = + HtmlHelper.createElementWithChild "dt" value + + static member inline dt(value: ReactElement) = + HtmlHelper.createElementWithChild "dt" value + + static member inline dt(value: string) = + HtmlHelper.createElementWithChild "dt" value + + static member inline dt(children: #seq) = + HtmlHelper.createElementWithChildren "dt" children [] static member inline ellipse xs = HtmlHelper.createElement "ellipse" xs + [] - static member inline ellipse (children: #seq) = HtmlHelper.createElementWithChildren "ellipse" children + static member inline ellipse(children: #seq) = + HtmlHelper.createElementWithChildren "ellipse" children static member inline em xs = HtmlHelper.createElement "em" xs - static member inline em (value: float) = HtmlHelper.createElementWithChild "em" value - static member inline em (value: int) = HtmlHelper.createElementWithChild "em" value - static member inline em (value: ReactElement) = HtmlHelper.createElementWithChild "em" value - static member inline em (value: string) = HtmlHelper.createElementWithChild "em" value - static member inline em (children: #seq) = HtmlHelper.createElementWithChildren "em" children + + static member inline em(value: float) = + HtmlHelper.createElementWithChild "em" value + + static member inline em(value: int) = + HtmlHelper.createElementWithChild "em" value + + static member inline em(value: ReactElement) = + HtmlHelper.createElementWithChild "em" value + + static member inline em(value: string) = + HtmlHelper.createElementWithChild "em" value + + static member inline em(children: #seq) = + HtmlHelper.createElementWithChildren "em" children static member inline embed xs = HtmlHelper.createElement "embed" xs + [] static member inline feBlend xs = HtmlHelper.createElement "feBlend" xs + [] - static member inline feBlend (children: #seq) = HtmlHelper.createElementWithChildren "feBlend" children + static member inline feBlend(children: #seq) = + HtmlHelper.createElementWithChildren "feBlend" children + [] - static member inline feColorMatrix xs = HtmlHelper.createElement "feColorMatrix" xs + static member inline feColorMatrix xs = + HtmlHelper.createElement "feColorMatrix" xs + [] - static member inline feColorMatrix (children: #seq) = HtmlHelper.createElementWithChildren "feColorMatrix" children + static member inline feColorMatrix(children: #seq) = + HtmlHelper.createElementWithChildren "feColorMatrix" children + [] - static member inline feComponentTransfer xs = HtmlHelper.createElement "feComponentTransfer" xs + static member inline feComponentTransfer xs = + HtmlHelper.createElement "feComponentTransfer" xs + [] - static member inline feComponentTransfer (children: #seq) = HtmlHelper.createElementWithChildren "feComponentTransfer" children + static member inline feComponentTransfer(children: #seq) = + HtmlHelper.createElementWithChildren "feComponentTransfer" children + [] - static member inline feComposite xs = HtmlHelper.createElement "feComposite" xs + static member inline feComposite xs = + HtmlHelper.createElement "feComposite" xs + [] - static member inline feComposite (children: #seq) = HtmlHelper.createElementWithChildren "feComposite" children + static member inline feComposite(children: #seq) = + HtmlHelper.createElementWithChildren "feComposite" children + [] - static member inline feConvolveMatrix xs = HtmlHelper.createElement "feConvolveMatrix" xs + static member inline feConvolveMatrix xs = + HtmlHelper.createElement "feConvolveMatrix" xs + [] - static member inline feConvolveMatrix (children: #seq) = HtmlHelper.createElementWithChildren "feConvolveMatrix" children + static member inline feConvolveMatrix(children: #seq) = + HtmlHelper.createElementWithChildren "feConvolveMatrix" children + [] - static member inline feDiffuseLighting xs = HtmlHelper.createElement "feDiffuseLighting" xs + static member inline feDiffuseLighting xs = + HtmlHelper.createElement "feDiffuseLighting" xs + [] - static member inline feDiffuseLighting (children: #seq) = HtmlHelper.createElementWithChildren "feDiffuseLighting" children + static member inline feDiffuseLighting(children: #seq) = + HtmlHelper.createElementWithChildren "feDiffuseLighting" children + [] - static member inline feDisplacementMap xs = HtmlHelper.createElement "feDisplacementMap" xs + static member inline feDisplacementMap xs = + HtmlHelper.createElement "feDisplacementMap" xs + [] - static member inline feDisplacementMap (children: #seq) = HtmlHelper.createElementWithChildren "feDisplacementMap" children + static member inline feDisplacementMap(children: #seq) = + HtmlHelper.createElementWithChildren "feDisplacementMap" children + [] - static member inline feDistantLight xs = HtmlHelper.createElement "feDistantLight" xs + static member inline feDistantLight xs = + HtmlHelper.createElement "feDistantLight" xs + [] - static member inline feDistantLight (children: #seq) = HtmlHelper.createElementWithChildren "feDistantLight" children + static member inline feDistantLight(children: #seq) = + HtmlHelper.createElementWithChildren "feDistantLight" children + [] - static member inline feDropShadow xs = HtmlHelper.createElement "feDropShadow" xs + static member inline feDropShadow xs = + HtmlHelper.createElement "feDropShadow" xs + [] - static member inline feDropShadow (children: #seq) = HtmlHelper.createElementWithChildren "feDropShadow" children + static member inline feDropShadow(children: #seq) = + HtmlHelper.createElementWithChildren "feDropShadow" children + [] static member inline feFlood xs = HtmlHelper.createElement "feFlood" xs + [] - static member inline feFlood (children: #seq) = HtmlHelper.createElementWithChildren "feFlood" children + static member inline feFlood(children: #seq) = + HtmlHelper.createElementWithChildren "feFlood" children + [] static member inline feFuncA xs = HtmlHelper.createElement "feFuncA" xs + [] - static member inline feFuncA (children: #seq) = HtmlHelper.createElementWithChildren "feFuncA" children + static member inline feFuncA(children: #seq) = + HtmlHelper.createElementWithChildren "feFuncA" children + [] static member inline feFuncB xs = HtmlHelper.createElement "feFuncB" xs + [] - static member inline feFuncB (children: #seq) = HtmlHelper.createElementWithChildren "feFuncB" children + static member inline feFuncB(children: #seq) = + HtmlHelper.createElementWithChildren "feFuncB" children + [] static member inline feFuncG xs = HtmlHelper.createElement "feFuncG" xs + [] - static member inline feFuncG (children: #seq) = HtmlHelper.createElementWithChildren "feFuncG" children + static member inline feFuncG(children: #seq) = + HtmlHelper.createElementWithChildren "feFuncG" children + [] static member inline feFuncR xs = HtmlHelper.createElement "feFuncR" xs + [] - static member inline feFuncR (children: #seq) = HtmlHelper.createElementWithChildren "feFuncR" children + static member inline feFuncR(children: #seq) = + HtmlHelper.createElementWithChildren "feFuncR" children + [] - static member inline feGaussianBlur xs = HtmlHelper.createElement "feGaussianBlur" xs + static member inline feGaussianBlur xs = + HtmlHelper.createElement "feGaussianBlur" xs + [] - static member inline feGaussianBlur (children: #seq) = HtmlHelper.createElementWithChildren "feGaussianBlur" children + static member inline feGaussianBlur(children: #seq) = + HtmlHelper.createElementWithChildren "feGaussianBlur" children + [] static member inline feImage xs = HtmlHelper.createElement "feImage" xs + [] - static member inline feImage (children: #seq) = HtmlHelper.createElementWithChildren "feImage" children + static member inline feImage(children: #seq) = + HtmlHelper.createElementWithChildren "feImage" children + [] static member inline feMerge xs = HtmlHelper.createElement "feMerge" xs + [] - static member inline feMerge (children: #seq) = HtmlHelper.createElementWithChildren "feMerge" children + static member inline feMerge(children: #seq) = + HtmlHelper.createElementWithChildren "feMerge" children + [] - static member inline feMergeNode xs = HtmlHelper.createElement "feMergeNode" xs + static member inline feMergeNode xs = + HtmlHelper.createElement "feMergeNode" xs + [] - static member inline feMergeNode (children: #seq) = HtmlHelper.createElementWithChildren "feMergeNode" children + static member inline feMergeNode(children: #seq) = + HtmlHelper.createElementWithChildren "feMergeNode" children + [] - static member inline feMorphology xs = HtmlHelper.createElement "feMorphology" xs + static member inline feMorphology xs = + HtmlHelper.createElement "feMorphology" xs + [] - static member inline feMorphology (children: #seq) = HtmlHelper.createElementWithChildren "feMorphology" children + static member inline feMorphology(children: #seq) = + HtmlHelper.createElementWithChildren "feMorphology" children + [] static member inline feOffset xs = HtmlHelper.createElement "feOffset" xs + [] - static member inline feOffset (children: #seq) = HtmlHelper.createElementWithChildren "feOffset" children + static member inline feOffset(children: #seq) = + HtmlHelper.createElementWithChildren "feOffset" children + [] - static member inline fePointLight xs = HtmlHelper.createElement "fePointLight" xs + static member inline fePointLight xs = + HtmlHelper.createElement "fePointLight" xs + [] - static member inline fePointLight (children: #seq) = HtmlHelper.createElementWithChildren "fePointLight" children + static member inline fePointLight(children: #seq) = + HtmlHelper.createElementWithChildren "fePointLight" children + [] - static member inline feSpecularLighting xs = HtmlHelper.createElement "feSpecularLighting" xs + static member inline feSpecularLighting xs = + HtmlHelper.createElement "feSpecularLighting" xs + [] - static member inline feSpecularLighting (children: #seq) = HtmlHelper.createElementWithChildren "feSpecularLighting" children + static member inline feSpecularLighting(children: #seq) = + HtmlHelper.createElementWithChildren "feSpecularLighting" children + [] - static member inline feSpotLight xs = HtmlHelper.createElement "feSpotLight" xs + static member inline feSpotLight xs = + HtmlHelper.createElement "feSpotLight" xs + [] - static member inline feSpotLight (children: #seq) = HtmlHelper.createElementWithChildren "feSpotLight" children + static member inline feSpotLight(children: #seq) = + HtmlHelper.createElementWithChildren "feSpotLight" children + [] static member inline feTile xs = HtmlHelper.createElement "feTile" xs + [] - static member inline feTile (children: #seq) = HtmlHelper.createElementWithChildren "feTile" children + static member inline feTile(children: #seq) = + HtmlHelper.createElementWithChildren "feTile" children + [] - static member inline feTurbulence xs = HtmlHelper.createElement "feTurbulence" xs + static member inline feTurbulence xs = + HtmlHelper.createElement "feTurbulence" xs + [] - static member inline feTurbulence (children: #seq) = HtmlHelper.createElementWithChildren "feTurbulence" children + static member inline feTurbulence(children: #seq) = + HtmlHelper.createElementWithChildren "feTurbulence" children + static member inline fieldSet xs = HtmlHelper.createElement "fieldset" xs - static member inline fieldSet (children: #seq) = HtmlHelper.createElementWithChildren "fieldset" children - static member inline figcaption xs = HtmlHelper.createElement "figcaption" xs - static member inline figcaption (children: #seq) = HtmlHelper.createElementWithChildren "figcaption" children + static member inline fieldSet(children: #seq) = + HtmlHelper.createElementWithChildren "fieldset" children + + static member inline figcaption xs = + HtmlHelper.createElement "figcaption" xs + + static member inline figcaption(children: #seq) = + HtmlHelper.createElementWithChildren "figcaption" children static member inline figure xs = HtmlHelper.createElement "figure" xs - static member inline figure (children: #seq) = HtmlHelper.createElementWithChildren "figure" children + + static member inline figure(children: #seq) = + HtmlHelper.createElementWithChildren "figure" children + [] static member inline filter xs = HtmlHelper.createElement "filter" xs + [] - static member inline filter (children: #seq) = HtmlHelper.createElementWithChildren "filter" children + static member inline filter(children: #seq) = + HtmlHelper.createElementWithChildren "filter" children static member inline footer xs = HtmlHelper.createElement "footer" xs - static member inline footer (children: #seq) = HtmlHelper.createElementWithChildren "footer" children + + static member inline footer(children: #seq) = + HtmlHelper.createElementWithChildren "footer" children + [] - static member inline foreignObject xs = HtmlHelper.createElement "foreignObject" xs + static member inline foreignObject xs = + HtmlHelper.createElement "foreignObject" xs + [] - static member inline foreignObject (children: #seq) = HtmlHelper.createElementWithChildren "foreignObject" children + static member inline foreignObject(children: #seq) = + HtmlHelper.createElementWithChildren "foreignObject" children static member inline form xs = HtmlHelper.createElement "form" xs - static member inline form (children: #seq) = HtmlHelper.createElementWithChildren "form" children + + static member inline form(children: #seq) = + HtmlHelper.createElementWithChildren "form" children // [] // static member inline fragment xs = Fable.React.Helpers.fragment [] xs [] static member inline g xs = HtmlHelper.createElement "g" xs + [] - static member inline g (children: #seq) = HtmlHelper.createElementWithChildren "g" children + static member inline g(children: #seq) = + HtmlHelper.createElementWithChildren "g" children static member inline h1 xs = HtmlHelper.createElement "h1" xs - static member inline h1 (value: float) = HtmlHelper.createElementWithChild "h1" value - static member inline h1 (value: int) = HtmlHelper.createElementWithChild "h1" value - static member inline h1 (value: ReactElement) = HtmlHelper.createElementWithChild "h1" value - static member inline h1 (value: string) = HtmlHelper.createElementWithChild "h1" value - static member inline h1 (children: #seq) = HtmlHelper.createElementWithChildren "h1" children + + static member inline h1(value: float) = + HtmlHelper.createElementWithChild "h1" value + + static member inline h1(value: int) = + HtmlHelper.createElementWithChild "h1" value + + static member inline h1(value: ReactElement) = + HtmlHelper.createElementWithChild "h1" value + + static member inline h1(value: string) = + HtmlHelper.createElementWithChild "h1" value + + static member inline h1(children: #seq) = + HtmlHelper.createElementWithChildren "h1" children + static member inline h2 xs = HtmlHelper.createElement "h2" xs - static member inline h2 (value: float) = HtmlHelper.createElementWithChild "h2" value - static member inline h2 (value: int) = HtmlHelper.createElementWithChild "h2" value - static member inline h2 (value: ReactElement) = HtmlHelper.createElementWithChild "h2" value - static member inline h2 (value: string) = HtmlHelper.createElementWithChild "h2" value - static member inline h2 (children: #seq) = HtmlHelper.createElementWithChildren "h2" children + + static member inline h2(value: float) = + HtmlHelper.createElementWithChild "h2" value + + static member inline h2(value: int) = + HtmlHelper.createElementWithChild "h2" value + + static member inline h2(value: ReactElement) = + HtmlHelper.createElementWithChild "h2" value + + static member inline h2(value: string) = + HtmlHelper.createElementWithChild "h2" value + + static member inline h2(children: #seq) = + HtmlHelper.createElementWithChildren "h2" children static member inline h3 xs = HtmlHelper.createElement "h3" xs - static member inline h3 (value: float) = HtmlHelper.createElementWithChild "h3" value - static member inline h3 (value: int) = HtmlHelper.createElementWithChild "h3" value - static member inline h3 (value: ReactElement) = HtmlHelper.createElementWithChild "h3" value - static member inline h3 (value: string) = HtmlHelper.createElementWithChild "h3" value - static member inline h3 (children: #seq) = HtmlHelper.createElementWithChildren "h3" children + + static member inline h3(value: float) = + HtmlHelper.createElementWithChild "h3" value + + static member inline h3(value: int) = + HtmlHelper.createElementWithChild "h3" value + + static member inline h3(value: ReactElement) = + HtmlHelper.createElementWithChild "h3" value + + static member inline h3(value: string) = + HtmlHelper.createElementWithChild "h3" value + + static member inline h3(children: #seq) = + HtmlHelper.createElementWithChildren "h3" children static member inline h4 xs = HtmlHelper.createElement "h4" xs - static member inline h4 (value: float) = HtmlHelper.createElementWithChild "h4" value - static member inline h4 (value: int) = HtmlHelper.createElementWithChild "h4" value - static member inline h4 (value: ReactElement) = HtmlHelper.createElementWithChild "h4" value - static member inline h4 (value: string) = HtmlHelper.createElementWithChild "h4" value - static member inline h4 (children: #seq) = HtmlHelper.createElementWithChildren "h4" children + + static member inline h4(value: float) = + HtmlHelper.createElementWithChild "h4" value + + static member inline h4(value: int) = + HtmlHelper.createElementWithChild "h4" value + + static member inline h4(value: ReactElement) = + HtmlHelper.createElementWithChild "h4" value + + static member inline h4(value: string) = + HtmlHelper.createElementWithChild "h4" value + + static member inline h4(children: #seq) = + HtmlHelper.createElementWithChildren "h4" children static member inline h5 xs = HtmlHelper.createElement "h5" xs - static member inline h5 (value: float) = HtmlHelper.createElementWithChild "h5" value - static member inline h5 (value: int) = HtmlHelper.createElementWithChild "h5" value - static member inline h5 (value: ReactElement) = HtmlHelper.createElementWithChild "h5" value - static member inline h5 (value: string) = HtmlHelper.createElementWithChild "h5" value - static member inline h5 (children: #seq) = HtmlHelper.createElementWithChildren "h5" children + + static member inline h5(value: float) = + HtmlHelper.createElementWithChild "h5" value + + static member inline h5(value: int) = + HtmlHelper.createElementWithChild "h5" value + + static member inline h5(value: ReactElement) = + HtmlHelper.createElementWithChild "h5" value + + static member inline h5(value: string) = + HtmlHelper.createElementWithChild "h5" value + + static member inline h5(children: #seq) = + HtmlHelper.createElementWithChildren "h5" children static member inline h6 xs = HtmlHelper.createElement "h6" xs - static member inline h6 (value: float) = HtmlHelper.createElementWithChild "h6" value - static member inline h6 (value: int) = HtmlHelper.createElementWithChild "h6" value - static member inline h6 (value: ReactElement) = HtmlHelper.createElementWithChild "h6" value - static member inline h6 (value: string) = HtmlHelper.createElementWithChild "h6" value - static member inline h6 (children: #seq) = HtmlHelper.createElementWithChildren "h6" children + + static member inline h6(value: float) = + HtmlHelper.createElementWithChild "h6" value + + static member inline h6(value: int) = + HtmlHelper.createElementWithChild "h6" value + + static member inline h6(value: ReactElement) = + HtmlHelper.createElementWithChild "h6" value + + static member inline h6(value: string) = + HtmlHelper.createElementWithChild "h6" value + + static member inline h6(children: #seq) = + HtmlHelper.createElementWithChildren "h6" children static member inline head xs = HtmlHelper.createElement "head" xs - static member inline head (children: #seq) = HtmlHelper.createElementWithChildren "head" children + + static member inline head(children: #seq) = + HtmlHelper.createElementWithChildren "head" children static member inline header xs = HtmlHelper.createElement "header" xs - static member inline header (children: #seq) = HtmlHelper.createElementWithChildren "header" children + + static member inline header(children: #seq) = + HtmlHelper.createElementWithChildren "header" children static member inline hr xs = HtmlHelper.createElement "hr" xs static member inline html xs = HtmlHelper.createElement "html" xs - static member inline html (children: #seq) = HtmlHelper.createElementWithChildren "html" children + + static member inline html(children: #seq) = + HtmlHelper.createElementWithChildren "html" children static member inline i xs = HtmlHelper.createElement "i" xs - static member inline i (value: float) = HtmlHelper.createElementWithChild "i" value - static member inline i (value: int) = HtmlHelper.createElementWithChild "i" value - static member inline i (value: ReactElement) = HtmlHelper.createElementWithChild "i" value - static member inline i (value: string) = HtmlHelper.createElementWithChild "i" value - static member inline i (children: #seq) = HtmlHelper.createElementWithChildren "i" children + + static member inline i(value: float) = + HtmlHelper.createElementWithChild "i" value + + static member inline i(value: int) = + HtmlHelper.createElementWithChild "i" value + + static member inline i(value: ReactElement) = + HtmlHelper.createElementWithChild "i" value + + static member inline i(value: string) = + HtmlHelper.createElementWithChild "i" value + + static member inline i(children: #seq) = + HtmlHelper.createElementWithChildren "i" children static member inline iframe xs = HtmlHelper.createElement "iframe" xs static member inline img xs = HtmlHelper.createElement "img" xs /// SVG Image element, not to be confused with HTML img alias. static member inline image xs = HtmlHelper.createElement "image" xs + /// SVG Image element, not to be confused with HTML img alias. - static member inline image (children: #seq) = HtmlHelper.createElementWithChildren "image" children + static member inline image(children: #seq) = + HtmlHelper.createElementWithChildren "image" children static member inline input xs = HtmlHelper.createElement "input" xs static member inline ins xs = HtmlHelper.createElement "ins" xs - static member inline ins (value: float) = HtmlHelper.createElementWithChild "ins" value - static member inline ins (value: int) = HtmlHelper.createElementWithChild "ins" value - static member inline ins (value: ReactElement) = HtmlHelper.createElementWithChild "ins" value - static member inline ins (value: string) = HtmlHelper.createElementWithChild "ins" value - static member inline ins (children: #seq) = HtmlHelper.createElementWithChildren "ins" children + + static member inline ins(value: float) = + HtmlHelper.createElementWithChild "ins" value + + static member inline ins(value: int) = + HtmlHelper.createElementWithChild "ins" value + + static member inline ins(value: ReactElement) = + HtmlHelper.createElementWithChild "ins" value + + static member inline ins(value: string) = + HtmlHelper.createElementWithChild "ins" value + + static member inline ins(children: #seq) = + HtmlHelper.createElementWithChildren "ins" children static member inline kbd xs = HtmlHelper.createElement "kbd" xs - static member inline kbd (value: float) = HtmlHelper.createElementWithChild "kbd" value - static member inline kbd (value: int) = HtmlHelper.createElementWithChild "kbd" value - static member inline kbd (value: ReactElement) = HtmlHelper.createElementWithChild "kbd" value - static member inline kbd (value: string) = HtmlHelper.createElementWithChild "kbd" value - static member inline kbd (children: #seq) = HtmlHelper.createElementWithChildren "kbd" children + + static member inline kbd(value: float) = + HtmlHelper.createElementWithChild "kbd" value + + static member inline kbd(value: int) = + HtmlHelper.createElementWithChild "kbd" value + + static member inline kbd(value: ReactElement) = + HtmlHelper.createElementWithChild "kbd" value + + static member inline kbd(value: string) = + HtmlHelper.createElementWithChild "kbd" value + + static member inline kbd(children: #seq) = + HtmlHelper.createElementWithChildren "kbd" children static member inline label xs = HtmlHelper.createElement "label" xs - static member inline label (children: #seq) = HtmlHelper.createElementWithChildren "label" children + + static member inline label(children: #seq) = + HtmlHelper.createElementWithChildren "label" children static member inline legend xs = HtmlHelper.createElement "legend" xs - static member inline legend (value: float) = HtmlHelper.createElementWithChild "legend" value - static member inline legend (value: int) = HtmlHelper.createElementWithChild "legend" value - static member inline legend (value: ReactElement) = HtmlHelper.createElementWithChild "legend" value - static member inline legend (value: string) = HtmlHelper.createElementWithChild "legend" value - static member inline legend (children: #seq) = HtmlHelper.createElementWithChildren "legend" children + + static member inline legend(value: float) = + HtmlHelper.createElementWithChild "legend" value + + static member inline legend(value: int) = + HtmlHelper.createElementWithChild "legend" value + + static member inline legend(value: ReactElement) = + HtmlHelper.createElementWithChild "legend" value + + static member inline legend(value: string) = + HtmlHelper.createElementWithChild "legend" value + + static member inline legend(children: #seq) = + HtmlHelper.createElementWithChildren "legend" children static member inline li xs = HtmlHelper.createElement "li" xs - static member inline li (value: float) = HtmlHelper.createElementWithChild "li" value - static member inline li (value: int) = HtmlHelper.createElementWithChild "li" value - static member inline li (value: ReactElement) = HtmlHelper.createElementWithChild "li" value - static member inline li (value: string) = HtmlHelper.createElementWithChild "li" value - static member inline li (children: #seq) = HtmlHelper.createElementWithChildren "li" children + + static member inline li(value: float) = + HtmlHelper.createElementWithChild "li" value + + static member inline li(value: int) = + HtmlHelper.createElementWithChild "li" value + + static member inline li(value: ReactElement) = + HtmlHelper.createElementWithChild "li" value + + static member inline li(value: string) = + HtmlHelper.createElementWithChild "li" value + + static member inline li(children: #seq) = + HtmlHelper.createElementWithChildren "li" children + [] static member inline line xs = HtmlHelper.createElement "line" xs + [] - static member inline line (children: #seq) = HtmlHelper.createElementWithChildren "line" children + static member inline line(children: #seq) = + HtmlHelper.createElementWithChildren "line" children + [] - static member inline linearGradient xs = HtmlHelper.createElement "linearGradient" xs + static member inline linearGradient xs = + HtmlHelper.createElement "linearGradient" xs + [] - static member inline linearGradient (children: #seq) = HtmlHelper.createElementWithChildren "linearGradient" children + static member inline linearGradient(children: #seq) = + HtmlHelper.createElementWithChildren "linearGradient" children static member inline link xs = HtmlHelper.createElement "link" xs static member inline listItem xs = HtmlHelper.createElement "li" xs - static member inline listItem (value: float) = HtmlHelper.createElementWithChild "li" value - static member inline listItem (value: int) = HtmlHelper.createElementWithChild "li" value - static member inline listItem (value: ReactElement) = HtmlHelper.createElementWithChild "li" value - static member inline listItem (value: string) = HtmlHelper.createElementWithChild "li" value - static member inline listItem (children: #seq) = HtmlHelper.createElementWithChildren "li" children + + static member inline listItem(value: float) = + HtmlHelper.createElementWithChild "li" value + + static member inline listItem(value: int) = + HtmlHelper.createElementWithChild "li" value + + static member inline listItem(value: ReactElement) = + HtmlHelper.createElementWithChild "li" value + + static member inline listItem(value: string) = + HtmlHelper.createElementWithChild "li" value + + static member inline listItem(children: #seq) = + HtmlHelper.createElementWithChildren "li" children static member inline main xs = HtmlHelper.createElement "main" xs - static member inline main (children: #seq) = HtmlHelper.createElementWithChildren "main" children + + static member inline main(children: #seq) = + HtmlHelper.createElementWithChildren "main" children static member inline map xs = HtmlHelper.createElement "map" xs - static member inline map (children: #seq) = HtmlHelper.createElementWithChildren "map" children + + static member inline map(children: #seq) = + HtmlHelper.createElementWithChildren "map" children static member inline mark xs = HtmlHelper.createElement "mark" xs - static member inline mark (value: float) = HtmlHelper.createElementWithChild "mark" value - static member inline mark (value: int) = HtmlHelper.createElementWithChild "mark" value - static member inline mark (value: ReactElement) = HtmlHelper.createElementWithChild "mark" value - static member inline mark (value: string) = HtmlHelper.createElementWithChild "mark" value - static member inline mark (children: #seq) = HtmlHelper.createElementWithChildren "mark" children + + static member inline mark(value: float) = + HtmlHelper.createElementWithChild "mark" value + + static member inline mark(value: int) = + HtmlHelper.createElementWithChild "mark" value + + static member inline mark(value: ReactElement) = + HtmlHelper.createElementWithChild "mark" value + + static member inline mark(value: string) = + HtmlHelper.createElementWithChild "mark" value + + static member inline mark(children: #seq) = + HtmlHelper.createElementWithChildren "mark" children + [] static member inline marker xs = HtmlHelper.createElement "marker" xs + [] - static member inline marker (children: #seq) = HtmlHelper.createElementWithChildren "marker" children + static member inline marker(children: #seq) = + HtmlHelper.createElementWithChildren "marker" children + [] static member inline mask xs = HtmlHelper.createElement "mask" xs + [] - static member inline mask (children: #seq) = HtmlHelper.createElementWithChildren "mask" children + static member inline mask(children: #seq) = + HtmlHelper.createElementWithChildren "mask" children static member inline meta xs = HtmlHelper.createElement "meta" xs static member inline metadata xs = HtmlHelper.createElement "metadata" xs - static member inline metadata (children: #seq) = HtmlHelper.createElementWithChildren "metadata" children + + static member inline metadata(children: #seq) = + HtmlHelper.createElementWithChildren "metadata" children static member inline menu xs = HtmlHelper.createElement "menu" xs - static member inline menu(children: #seq) = HtmlHelper.createElementWithChildren "menu" children + + static member inline menu(children: #seq) = + HtmlHelper.createElementWithChildren "menu" children static member inline meter xs = HtmlHelper.createElement "meter" xs - static member inline meter (value: float) = HtmlHelper.createElementWithChild "meter" value - static member inline meter (value: int) = HtmlHelper.createElementWithChild "meter" value - static member inline meter (value: ReactElement) = HtmlHelper.createElementWithChild "meter" value - static member inline meter (value: string) = HtmlHelper.createElementWithChild "meter" value - static member inline meter (children: #seq) = HtmlHelper.createElementWithChildren "meter" children + + static member inline meter(value: float) = + HtmlHelper.createElementWithChild "meter" value + + static member inline meter(value: int) = + HtmlHelper.createElementWithChild "meter" value + + static member inline meter(value: ReactElement) = + HtmlHelper.createElementWithChild "meter" value + + static member inline meter(value: string) = + HtmlHelper.createElementWithChild "meter" value + + static member inline meter(children: #seq) = + HtmlHelper.createElementWithChildren "meter" children + [] static member inline mpath xs = HtmlHelper.createElement "mpath" xs + [] - static member inline mpath (children: #seq) = HtmlHelper.createElementWithChildren "mpath" children + static member inline mpath(children: #seq) = + HtmlHelper.createElementWithChildren "mpath" children + static member inline nav xs = HtmlHelper.createElement "nav" xs - static member inline nav (children: #seq) = HtmlHelper.createElementWithChildren "nav" children + + static member inline nav(children: #seq) = + HtmlHelper.createElementWithChildren "nav" children /// The empty element, renders nothing on screen - static member inline none : ReactElement = unbox null + static member inline none: ReactElement = unbox null static member inline noscript xs = HtmlHelper.createElement "noscript" xs - static member inline noscript (children: #seq) = HtmlHelper.createElementWithChildren "noscript" children + + static member inline noscript(children: #seq) = + HtmlHelper.createElementWithChildren "noscript" children static member inline object xs = HtmlHelper.createElement "object" xs - static member inline object (children: #seq) = HtmlHelper.createElementWithChildren "object" children + + static member inline object(children: #seq) = + HtmlHelper.createElementWithChildren "object" children static member inline ol xs = HtmlHelper.createElement "ol" xs - static member inline ol (children: #seq) = HtmlHelper.createElementWithChildren "ol" children + + static member inline ol(children: #seq) = + HtmlHelper.createElementWithChildren "ol" children static member inline option xs = HtmlHelper.createElement "option" xs - static member inline option (value: float) = HtmlHelper.createElementWithChild "option" value - static member inline option (value: int) = HtmlHelper.createElementWithChild "option" value - static member inline option (value: ReactElement) = HtmlHelper.createElementWithChild "option" value - static member inline option (value: string) = HtmlHelper.createElementWithChild "option" value - static member inline option (children: #seq) = HtmlHelper.createElementWithChildren "option" children + + static member inline option(value: float) = + HtmlHelper.createElementWithChild "option" value + + static member inline option(value: int) = + HtmlHelper.createElementWithChild "option" value + + static member inline option(value: ReactElement) = + HtmlHelper.createElementWithChild "option" value + + static member inline option(value: string) = + HtmlHelper.createElementWithChild "option" value + + static member inline option(children: #seq) = + HtmlHelper.createElementWithChildren "option" children static member inline optgroup xs = HtmlHelper.createElement "optgroup" xs - static member inline optgroup (children: #seq) = HtmlHelper.createElementWithChildren "optgroup" children + + static member inline optgroup(children: #seq) = + HtmlHelper.createElementWithChildren "optgroup" children static member inline orderedList xs = HtmlHelper.createElement "ol" xs - static member inline orderedList (children: #seq) = HtmlHelper.createElementWithChildren "ol" children + + static member inline orderedList(children: #seq) = + HtmlHelper.createElementWithChildren "ol" children static member inline output xs = HtmlHelper.createElement "output" xs - static member inline output (value: float) = HtmlHelper.createElementWithChild "output" value - static member inline output (value: int) = HtmlHelper.createElementWithChild "output" value - static member inline output (value: ReactElement) = HtmlHelper.createElementWithChild "output" value - static member inline output (value: string) = HtmlHelper.createElementWithChild "output" value - static member inline output (children: #seq) = HtmlHelper.createElementWithChildren "output" children + + static member inline output(value: float) = + HtmlHelper.createElementWithChild "output" value + + static member inline output(value: int) = + HtmlHelper.createElementWithChild "output" value + + static member inline output(value: ReactElement) = + HtmlHelper.createElementWithChild "output" value + + static member inline output(value: string) = + HtmlHelper.createElementWithChild "output" value + + static member inline output(children: #seq) = + HtmlHelper.createElementWithChildren "output" children static member inline p xs = HtmlHelper.createElement "p" xs - static member inline p (value: float) = HtmlHelper.createElementWithChild "p" value - static member inline p (value: int) = HtmlHelper.createElementWithChild "p" value - static member inline p (value: ReactElement) = HtmlHelper.createElementWithChild "p" value - static member inline p (value: string) = HtmlHelper.createElementWithChild "p" value - static member inline p (children: #seq) = HtmlHelper.createElementWithChildren "p" children + + static member inline p(value: float) = + HtmlHelper.createElementWithChild "p" value + + static member inline p(value: int) = + HtmlHelper.createElementWithChild "p" value + + static member inline p(value: ReactElement) = + HtmlHelper.createElementWithChild "p" value + + static member inline p(value: string) = + HtmlHelper.createElementWithChild "p" value + + static member inline p(children: #seq) = + HtmlHelper.createElementWithChildren "p" children static member inline paragraph xs = HtmlHelper.createElement "p" xs - static member inline paragraph (value: float) = HtmlHelper.createElementWithChild "p" value - static member inline paragraph (value: int) = HtmlHelper.createElementWithChild "p" value - static member inline paragraph (value: ReactElement) = HtmlHelper.createElementWithChild "p" value - static member inline paragraph (value: string) = HtmlHelper.createElementWithChild "p" value - static member inline paragraph (children: #seq) = HtmlHelper.createElementWithChildren "p" children + + static member inline paragraph(value: float) = + HtmlHelper.createElementWithChild "p" value + + static member inline paragraph(value: int) = + HtmlHelper.createElementWithChild "p" value + + static member inline paragraph(value: ReactElement) = + HtmlHelper.createElementWithChild "p" value + + static member inline paragraph(value: string) = + HtmlHelper.createElementWithChild "p" value + + static member inline paragraph(children: #seq) = + HtmlHelper.createElementWithChildren "p" children static member inline param xs = HtmlHelper.createElement "param" xs + [] static member inline path xs = HtmlHelper.createElement "path" xs + [] - static member inline path (children: #seq) = HtmlHelper.createElementWithChildren "path" children + static member inline path(children: #seq) = + HtmlHelper.createElementWithChildren "path" children + [] static member inline pattern xs = HtmlHelper.createElement "pattern" xs + [] - static member inline pattern (children: #seq) = HtmlHelper.createElementWithChildren "pattern" children + static member inline pattern(children: #seq) = + HtmlHelper.createElementWithChildren "pattern" children + static member inline picture xs = HtmlHelper.createElement "picture" xs - static member inline picture (children: #seq) = HtmlHelper.createElementWithChildren "picture" children + + static member inline picture(children: #seq) = + HtmlHelper.createElementWithChildren "picture" children + [] static member inline polygon xs = HtmlHelper.createElement "polygon" xs + [] - static member inline polygon (children: #seq) = HtmlHelper.createElementWithChildren "polygon" children + static member inline polygon(children: #seq) = + HtmlHelper.createElementWithChildren "polygon" children + [] static member inline polyline xs = HtmlHelper.createElement "polyline" xs + [] - static member inline polyline (children: #seq) = HtmlHelper.createElementWithChildren "polyline" children + static member inline polyline(children: #seq) = + HtmlHelper.createElementWithChildren "polyline" children + static member inline pre xs = HtmlHelper.createElement "pre" xs - static member inline pre (value: bool) = HtmlHelper.createElementWithChild "pre" value - static member inline pre (value: float) = HtmlHelper.createElementWithChild "pre" value - static member inline pre (value: int) = HtmlHelper.createElementWithChild "pre" value - static member inline pre (value: ReactElement) = HtmlHelper.createElementWithChild "pre" value - static member inline pre (value: string) = HtmlHelper.createElementWithChild "pre" value - static member inline pre (children: #seq) = HtmlHelper.createElementWithChildren "pre" children + + static member inline pre(value: bool) = + HtmlHelper.createElementWithChild "pre" value + + static member inline pre(value: float) = + HtmlHelper.createElementWithChild "pre" value + + static member inline pre(value: int) = + HtmlHelper.createElementWithChild "pre" value + + static member inline pre(value: ReactElement) = + HtmlHelper.createElementWithChild "pre" value + + static member inline pre(value: string) = + HtmlHelper.createElementWithChild "pre" value + + static member inline pre(children: #seq) = + HtmlHelper.createElementWithChildren "pre" children static member inline progress xs = HtmlHelper.createElement "progress" xs - static member inline progress (children: #seq) = HtmlHelper.createElementWithChildren "progress" children + + static member inline progress(children: #seq) = + HtmlHelper.createElementWithChildren "progress" children static member inline q xs = HtmlHelper.createElement "q" xs - static member inline q (children: #seq) = HtmlHelper.createElementWithChildren "q" children + + static member inline q(children: #seq) = + HtmlHelper.createElementWithChildren "q" children + [] - static member inline radialGradient xs = HtmlHelper.createElement "radialGradient" xs + static member inline radialGradient xs = + HtmlHelper.createElement "radialGradient" xs + [] - static member inline radialGradient (children: #seq) = HtmlHelper.createElementWithChildren "radialGradient" children + static member inline radialGradient(children: #seq) = + HtmlHelper.createElementWithChildren "radialGradient" children static member inline rb xs = HtmlHelper.createElement "rb" xs - static member inline rb (value: float) = HtmlHelper.createElementWithChild "rb" value - static member inline rb (value: int) = HtmlHelper.createElementWithChild "rb" value - static member inline rb (value: ReactElement) = HtmlHelper.createElementWithChild "rb" value - static member inline rb (value: string) = HtmlHelper.createElementWithChild "rb" value - static member inline rb (children: #seq) = HtmlHelper.createElementWithChildren "rb" children + + static member inline rb(value: float) = + HtmlHelper.createElementWithChild "rb" value + + static member inline rb(value: int) = + HtmlHelper.createElementWithChild "rb" value + + static member inline rb(value: ReactElement) = + HtmlHelper.createElementWithChild "rb" value + + static member inline rb(value: string) = + HtmlHelper.createElementWithChild "rb" value + + static member inline rb(children: #seq) = + HtmlHelper.createElementWithChildren "rb" children + [] static member inline rect xs = HtmlHelper.createElement "rect" xs + [] - static member inline rect (children: #seq) = HtmlHelper.createElementWithChildren "rect" children + static member inline rect(children: #seq) = + HtmlHelper.createElementWithChildren "rect" children static member inline rp xs = HtmlHelper.createElement "rp" xs - static member inline rp (value: float) = HtmlHelper.createElementWithChild "rp" value - static member inline rp (value: int) = HtmlHelper.createElementWithChild "rp" value - static member inline rp (value: ReactElement) = HtmlHelper.createElementWithChild "rp" value - static member inline rp (value: string) = HtmlHelper.createElementWithChild "rp" value - static member inline rp (children: #seq) = HtmlHelper.createElementWithChildren "rp" children + + static member inline rp(value: float) = + HtmlHelper.createElementWithChild "rp" value + + static member inline rp(value: int) = + HtmlHelper.createElementWithChild "rp" value + + static member inline rp(value: ReactElement) = + HtmlHelper.createElementWithChild "rp" value + + static member inline rp(value: string) = + HtmlHelper.createElementWithChild "rp" value + + static member inline rp(children: #seq) = + HtmlHelper.createElementWithChildren "rp" children static member inline rt xs = HtmlHelper.createElement "rt" xs - static member inline rt (value: float) = HtmlHelper.createElementWithChild "rt" value - static member inline rt (value: int) = HtmlHelper.createElementWithChild "rt" value - static member inline rt (value: ReactElement) = HtmlHelper.createElementWithChild "rt" value - static member inline rt (value: string) = HtmlHelper.createElementWithChild "rt" value - static member inline rt (children: #seq) = HtmlHelper.createElementWithChildren "rt" children + + static member inline rt(value: float) = + HtmlHelper.createElementWithChild "rt" value + + static member inline rt(value: int) = + HtmlHelper.createElementWithChild "rt" value + + static member inline rt(value: ReactElement) = + HtmlHelper.createElementWithChild "rt" value + + static member inline rt(value: string) = + HtmlHelper.createElementWithChild "rt" value + + static member inline rt(children: #seq) = + HtmlHelper.createElementWithChildren "rt" children static member inline rtc xs = HtmlHelper.createElement "rtc" xs - static member inline rtc (value: float) = HtmlHelper.createElementWithChild "rtc" value - static member inline rtc (value: int) = HtmlHelper.createElementWithChild "rtc" value - static member inline rtc (value: ReactElement) = HtmlHelper.createElementWithChild "rtc" value - static member inline rtc (value: string) = HtmlHelper.createElementWithChild "rtc" value - static member inline rtc (children: #seq) = HtmlHelper.createElementWithChildren "rtc" children + + static member inline rtc(value: float) = + HtmlHelper.createElementWithChild "rtc" value + + static member inline rtc(value: int) = + HtmlHelper.createElementWithChild "rtc" value + + static member inline rtc(value: ReactElement) = + HtmlHelper.createElementWithChild "rtc" value + + static member inline rtc(value: string) = + HtmlHelper.createElementWithChild "rtc" value + + static member inline rtc(children: #seq) = + HtmlHelper.createElementWithChildren "rtc" children static member inline ruby xs = HtmlHelper.createElement "ruby" xs - static member inline ruby (value: float) = HtmlHelper.createElementWithChild "ruby" value - static member inline ruby (value: int) = HtmlHelper.createElementWithChild "ruby" value - static member inline ruby (value: ReactElement) = HtmlHelper.createElementWithChild "ruby" value - static member inline ruby (value: string) = HtmlHelper.createElementWithChild "ruby" value - static member inline ruby (children: #seq) = HtmlHelper.createElementWithChildren "ruby" children + + static member inline ruby(value: float) = + HtmlHelper.createElementWithChild "ruby" value + + static member inline ruby(value: int) = + HtmlHelper.createElementWithChild "ruby" value + + static member inline ruby(value: ReactElement) = + HtmlHelper.createElementWithChild "ruby" value + + static member inline ruby(value: string) = + HtmlHelper.createElementWithChild "ruby" value + + static member inline ruby(children: #seq) = + HtmlHelper.createElementWithChildren "ruby" children static member inline s xs = HtmlHelper.createElement "s" xs - static member inline s (value: float) = HtmlHelper.createElementWithChild "s" value - static member inline s (value: int) = HtmlHelper.createElementWithChild "s" value - static member inline s (value: ReactElement) = HtmlHelper.createElementWithChild "s" value - static member inline s (value: string) = HtmlHelper.createElementWithChild "s" value - static member inline s (children: #seq) = HtmlHelper.createElementWithChildren "s" children + + static member inline s(value: float) = + HtmlHelper.createElementWithChild "s" value + + static member inline s(value: int) = + HtmlHelper.createElementWithChild "s" value + + static member inline s(value: ReactElement) = + HtmlHelper.createElementWithChild "s" value + + static member inline s(value: string) = + HtmlHelper.createElementWithChild "s" value + + static member inline s(children: #seq) = + HtmlHelper.createElementWithChildren "s" children static member inline samp xs = HtmlHelper.createElement "samp" xs - static member inline samp (value: float) = HtmlHelper.createElementWithChild "samp" value - static member inline samp (value: int) = HtmlHelper.createElementWithChild "samp" value - static member inline samp (value: ReactElement) = HtmlHelper.createElementWithChild "samp" value - static member inline samp (value: string) = HtmlHelper.createElementWithChild "samp" value - static member inline samp (children: #seq) = HtmlHelper.createElementWithChildren "samp" children + + static member inline samp(value: float) = + HtmlHelper.createElementWithChild "samp" value + + static member inline samp(value: int) = + HtmlHelper.createElementWithChild "samp" value + + static member inline samp(value: ReactElement) = + HtmlHelper.createElementWithChild "samp" value + + static member inline samp(value: string) = + HtmlHelper.createElementWithChild "samp" value + + static member inline samp(children: #seq) = + HtmlHelper.createElementWithChildren "samp" children static member inline script xs = HtmlHelper.createElement "script" xs - static member inline script (children: #seq) = HtmlHelper.createElementWithChildren "script" children + + static member inline script(children: #seq) = + HtmlHelper.createElementWithChildren "script" children static member inline section xs = HtmlHelper.createElement "section" xs - static member inline section (children: #seq) = HtmlHelper.createElementWithChildren "section" children + + static member inline section(children: #seq) = + HtmlHelper.createElementWithChildren "section" children static member inline select xs = HtmlHelper.createElement "select" xs - static member inline select (children: #seq) = HtmlHelper.createElementWithChildren "select" children + + static member inline select(children: #seq) = + HtmlHelper.createElementWithChildren "select" children + [] static member inline set xs = HtmlHelper.createElement "set" xs + [] - static member inline set (children: #seq) = HtmlHelper.createElementWithChildren "set" children + static member inline set(children: #seq) = + HtmlHelper.createElementWithChildren "set" children static member inline small xs = HtmlHelper.createElement "small" xs - static member inline small (value: float) = HtmlHelper.createElementWithChild "small" value - static member inline small (value: int) = HtmlHelper.createElementWithChild "small" value - static member inline small (value: ReactElement) = HtmlHelper.createElementWithChild "small" value - static member inline small (value: string) = HtmlHelper.createElementWithChild "small" value - static member inline small (children: #seq) = HtmlHelper.createElementWithChildren "small" children + + static member inline small(value: float) = + HtmlHelper.createElementWithChild "small" value + + static member inline small(value: int) = + HtmlHelper.createElementWithChild "small" value + + static member inline small(value: ReactElement) = + HtmlHelper.createElementWithChild "small" value + + static member inline small(value: string) = + HtmlHelper.createElementWithChild "small" value + + static member inline small(children: #seq) = + HtmlHelper.createElementWithChildren "small" children static member inline source xs = HtmlHelper.createElement "source" xs static member inline span xs = HtmlHelper.createElement "span" xs - static member inline span (value: float) = HtmlHelper.createElementWithChild "span" value - static member inline span (value: int) = HtmlHelper.createElementWithChild "span" value - static member inline span (value: ReactElement) = HtmlHelper.createElementWithChild "span" value - static member inline span (value: string) = HtmlHelper.createElementWithChild "span" value - static member inline span (children: #seq) = HtmlHelper.createElementWithChildren "span" children + + static member inline span(value: float) = + HtmlHelper.createElementWithChild "span" value + + static member inline span(value: int) = + HtmlHelper.createElementWithChild "span" value + + static member inline span(value: ReactElement) = + HtmlHelper.createElementWithChild "span" value + + static member inline span(value: string) = + HtmlHelper.createElementWithChild "span" value + + static member inline span(children: #seq) = + HtmlHelper.createElementWithChildren "span" children + [] static member inline stop xs = HtmlHelper.createElement "stop" xs + [] - static member inline stop (children: #seq) = HtmlHelper.createElementWithChildren "stop" children + static member inline stop(children: #seq) = + HtmlHelper.createElementWithChildren "stop" children static member inline strong xs = HtmlHelper.createElement "strong" xs - static member inline strong (value: float) = HtmlHelper.createElementWithChild "strong" value - static member inline strong (value: int) = HtmlHelper.createElementWithChild "strong" value - static member inline strong (value: ReactElement) = HtmlHelper.createElementWithChild "strong" value - static member inline strong (value: string) = HtmlHelper.createElementWithChild "strong" value - static member inline strong (children: #seq) = HtmlHelper.createElementWithChildren "strong" children + + static member inline strong(value: float) = + HtmlHelper.createElementWithChild "strong" value + + static member inline strong(value: int) = + HtmlHelper.createElementWithChild "strong" value + + static member inline strong(value: ReactElement) = + HtmlHelper.createElementWithChild "strong" value + + static member inline strong(value: string) = + HtmlHelper.createElementWithChild "strong" value + + static member inline strong(children: #seq) = + HtmlHelper.createElementWithChildren "strong" children static member inline style xs = HtmlHelper.createElement "style" xs - static member inline style (value: string) = HtmlHelper.createElementWithChild "style" value + + static member inline style(value: string) = + HtmlHelper.createElementWithChild "style" value static member inline sub xs = HtmlHelper.createElement "sub" xs - static member inline sub (value: float) = HtmlHelper.createElementWithChild "sub" value - static member inline sub (value: int) = HtmlHelper.createElementWithChild "sub" value - static member inline sub (value: ReactElement) = HtmlHelper.createElementWithChild "sub" value - static member inline sub (value: string) = HtmlHelper.createElementWithChild "sub" value - static member inline sub (children: #seq) = HtmlHelper.createElementWithChildren "sub" children + + static member inline sub(value: float) = + HtmlHelper.createElementWithChild "sub" value + + static member inline sub(value: int) = + HtmlHelper.createElementWithChild "sub" value + + static member inline sub(value: ReactElement) = + HtmlHelper.createElementWithChild "sub" value + + static member inline sub(value: string) = + HtmlHelper.createElementWithChild "sub" value + + static member inline sub(children: #seq) = + HtmlHelper.createElementWithChildren "sub" children static member inline summary xs = HtmlHelper.createElement "summary" xs - static member inline summary (value: float) = HtmlHelper.createElementWithChild "summary" value - static member inline summary (value: int) = HtmlHelper.createElementWithChild "summary" value - static member inline summary (value: ReactElement) = HtmlHelper.createElementWithChild "summary" value - static member inline summary (value: string) = HtmlHelper.createElementWithChild "summary" value - static member inline summary (children: #seq) = HtmlHelper.createElementWithChildren "summary" children + + static member inline summary(value: float) = + HtmlHelper.createElementWithChild "summary" value + + static member inline summary(value: int) = + HtmlHelper.createElementWithChild "summary" value + + static member inline summary(value: ReactElement) = + HtmlHelper.createElementWithChild "summary" value + + static member inline summary(value: string) = + HtmlHelper.createElementWithChild "summary" value + + static member inline summary(children: #seq) = + HtmlHelper.createElementWithChildren "summary" children static member inline sup xs = HtmlHelper.createElement "sup" xs - static member inline sup (value: float) = HtmlHelper.createElementWithChild "sup" value - static member inline sup (value: int) = HtmlHelper.createElementWithChild "sup" value - static member inline sup (value: ReactElement) = HtmlHelper.createElementWithChild "sup" value - static member inline sup (value: string) = HtmlHelper.createElementWithChild "sup" value - static member inline sup (children: #seq) = HtmlHelper.createElementWithChildren "sup" children + + static member inline sup(value: float) = + HtmlHelper.createElementWithChild "sup" value + + static member inline sup(value: int) = + HtmlHelper.createElementWithChild "sup" value + + static member inline sup(value: ReactElement) = + HtmlHelper.createElementWithChild "sup" value + + static member inline sup(value: string) = + HtmlHelper.createElementWithChild "sup" value + + static member inline sup(children: #seq) = + HtmlHelper.createElementWithChildren "sup" children [] static member inline svg xs = HtmlHelper.createElement "svg" xs + [] - static member inline svg (children: #seq) = HtmlHelper.createElementWithChildren "svg" children + static member inline svg(children: #seq) = + HtmlHelper.createElementWithChildren "svg" children + [] static member inline switch xs = HtmlHelper.createElement "switch" xs + [] - static member inline switch (children: #seq) = HtmlHelper.createElementWithChildren "switch" children + static member inline switch(children: #seq) = + HtmlHelper.createElementWithChildren "switch" children + [] static member inline symbol xs = HtmlHelper.createElement "symbol" xs + [] - static member inline symbol (children: #seq) = HtmlHelper.createElementWithChildren "symbol" children + static member inline symbol(children: #seq) = + HtmlHelper.createElementWithChildren "symbol" children static member inline table xs = HtmlHelper.createElement "table" xs - static member inline table (children: #seq) = HtmlHelper.createElementWithChildren "table" children + + static member inline table(children: #seq) = + HtmlHelper.createElementWithChildren "table" children static member inline tableBody xs = HtmlHelper.createElement "tbody" xs - static member inline tableBody (children: #seq) = HtmlHelper.createElementWithChildren "tbody" children + + static member inline tableBody(children: #seq) = + HtmlHelper.createElementWithChildren "tbody" children static member inline tableCell xs = HtmlHelper.createElement "td" xs - static member inline tableCell (children: #seq) = HtmlHelper.createElementWithChildren "td" children + + static member inline tableCell(children: #seq) = + HtmlHelper.createElementWithChildren "td" children static member inline tableHeader xs = HtmlHelper.createElement "th" xs - static member inline tableHeader (children: #seq) = HtmlHelper.createElementWithChildren "th" children + + static member inline tableHeader(children: #seq) = + HtmlHelper.createElementWithChildren "th" children static member inline tableRow xs = HtmlHelper.createElement "tr" xs - static member inline tableRow (children: #seq) = HtmlHelper.createElementWithChildren "tr" children + + static member inline tableRow(children: #seq) = + HtmlHelper.createElementWithChildren "tr" children static member inline tbody xs = HtmlHelper.createElement "tbody" xs - static member inline tbody (children: #seq) = HtmlHelper.createElementWithChildren "tbody" children + + static member inline tbody(children: #seq) = + HtmlHelper.createElementWithChildren "tbody" children static member inline td xs = HtmlHelper.createElement "td" xs - static member inline td (value: float) = HtmlHelper.createElementWithChild "td" value - static member inline td (value: int) = HtmlHelper.createElementWithChild "td" value - static member inline td (value: ReactElement) = HtmlHelper.createElementWithChild "td" value - static member inline td (value: string) = HtmlHelper.createElementWithChild "td" value - static member inline td (children: #seq) = HtmlHelper.createElementWithChildren "td" children + + static member inline td(value: float) = + HtmlHelper.createElementWithChild "td" value + + static member inline td(value: int) = + HtmlHelper.createElementWithChild "td" value + + static member inline td(value: ReactElement) = + HtmlHelper.createElementWithChild "td" value + + static member inline td(value: string) = + HtmlHelper.createElementWithChild "td" value + + static member inline td(children: #seq) = + HtmlHelper.createElementWithChildren "td" children static member inline template xs = HtmlHelper.createElement "template" xs - static member inline template (children: #seq) = HtmlHelper.createElementWithChildren "template" children + + static member inline template(children: #seq) = + HtmlHelper.createElementWithChildren "template" children [ SVG elements. Use Svg.text instead">] static member inline text xs = HtmlHelper.createElement "text" xs - static member inline text (value: float) : ReactElement = unbox value - static member inline text (value: int) : ReactElement = unbox value - static member inline text (value: string) : ReactElement = unbox value - static member inline text (value: bool) : ReactElement = unbox value - static member inline text (value: System.Guid) : ReactElement = unbox (string value) + + static member inline text(value: float) : ReactElement = unbox value + static member inline text(value: int) : ReactElement = unbox value + static member inline text(value: string) : ReactElement = unbox value + static member inline text(value: bool) : ReactElement = unbox value + static member inline text(value: System.Guid) : ReactElement = unbox (string value) static member inline textf fmt = Printf.kprintf Html.text fmt static member inline textarea xs = HtmlHelper.createElement "textarea" xs - static member inline textarea (children: #seq) = HtmlHelper.createElementWithChildren "textarea" children + + static member inline textarea(children: #seq) = + HtmlHelper.createElementWithChildren "textarea" children + [] static member inline textPath xs = HtmlHelper.createElement "textPath" xs + [] - static member inline textPath (children: #seq) = HtmlHelper.createElementWithChildren "textPath" children + static member inline textPath(children: #seq) = + HtmlHelper.createElementWithChildren "textPath" children static member inline tfoot xs = HtmlHelper.createElement "tfoot" xs - static member inline tfoot (children: #seq) = HtmlHelper.createElementWithChildren "tfoot" children + + static member inline tfoot(children: #seq) = + HtmlHelper.createElementWithChildren "tfoot" children static member inline th xs = HtmlHelper.createElement "th" xs - static member inline th (value: float) = HtmlHelper.createElementWithChild "th" value - static member inline th (value: int) = HtmlHelper.createElementWithChild "th" value - static member inline th (value: ReactElement) = HtmlHelper.createElementWithChild "th" value - static member inline th (value: string) = HtmlHelper.createElementWithChild "th" value - static member inline th (children: #seq) = HtmlHelper.createElementWithChildren "th" children + + static member inline th(value: float) = + HtmlHelper.createElementWithChild "th" value + + static member inline th(value: int) = + HtmlHelper.createElementWithChild "th" value + + static member inline th(value: ReactElement) = + HtmlHelper.createElementWithChild "th" value + + static member inline th(value: string) = + HtmlHelper.createElementWithChild "th" value + + static member inline th(children: #seq) = + HtmlHelper.createElementWithChildren "th" children static member inline thead xs = HtmlHelper.createElement "thead" xs - static member inline thead (children: #seq) = HtmlHelper.createElementWithChildren "thead" children + + static member inline thead(children: #seq) = + HtmlHelper.createElementWithChildren "thead" children static member inline time xs = HtmlHelper.createElement "time" xs - static member inline time (children: #seq) = HtmlHelper.createElementWithChildren "time" children + + static member inline time(children: #seq) = + HtmlHelper.createElementWithChildren "time" children + static member inline title xs = HtmlHelper.createElement "title" xs - static member inline title (value: float) = HtmlHelper.createElementWithChild "title" value - static member inline title (value: int) = HtmlHelper.createElementWithChild "title" value - static member inline title (value: ReactElement) = HtmlHelper.createElementWithChild "title" value - static member inline title (value: string) = HtmlHelper.createElementWithChild "title" value - static member inline title (children: #seq) = HtmlHelper.createElementWithChildren "title" children + + static member inline title(value: float) = + HtmlHelper.createElementWithChild "title" value + + static member inline title(value: int) = + HtmlHelper.createElementWithChild "title" value + + static member inline title(value: ReactElement) = + HtmlHelper.createElementWithChild "title" value + + static member inline title(value: string) = + HtmlHelper.createElementWithChild "title" value + + static member inline title(children: #seq) = + HtmlHelper.createElementWithChildren "title" children + static member inline tr xs = HtmlHelper.createElement "tr" xs - static member inline tr (children: #seq) = HtmlHelper.createElementWithChildren "tr" children + + static member inline tr(children: #seq) = + HtmlHelper.createElementWithChildren "tr" children static member inline track xs = HtmlHelper.createElement "track" xs + [] static member inline tspan xs = HtmlHelper.createElement "tspan" xs + [] - static member inline tspan (children: #seq) = HtmlHelper.createElementWithChildren "tspan" children + static member inline tspan(children: #seq) = + HtmlHelper.createElementWithChildren "tspan" children static member inline u xs = HtmlHelper.createElement "u" xs - static member inline u (value: float) = HtmlHelper.createElementWithChild "u" value - static member inline u (value: int) = HtmlHelper.createElementWithChild "u" value - static member inline u (value: ReactElement) = HtmlHelper.createElementWithChild "u" value - static member inline u (value: string) = HtmlHelper.createElementWithChild "u" value - static member inline u (children: #seq) = HtmlHelper.createElementWithChildren "u" children + + static member inline u(value: float) = + HtmlHelper.createElementWithChild "u" value + + static member inline u(value: int) = + HtmlHelper.createElementWithChild "u" value + + static member inline u(value: ReactElement) = + HtmlHelper.createElementWithChild "u" value + + static member inline u(value: string) = + HtmlHelper.createElementWithChild "u" value + + static member inline u(children: #seq) = + HtmlHelper.createElementWithChildren "u" children static member inline ul xs = HtmlHelper.createElement "ul" xs - static member inline ul (children: #seq) = HtmlHelper.createElementWithChildren "ul" children + + static member inline ul(children: #seq) = + HtmlHelper.createElementWithChildren "ul" children static member inline unorderedList xs = HtmlHelper.createElement "ul" xs - static member inline unorderedList (children: #seq) = HtmlHelper.createElementWithChildren "ul" children + + static member inline unorderedList(children: #seq) = + HtmlHelper.createElementWithChildren "ul" children + [] static member inline use' xs = HtmlHelper.createElement "use" xs + [] - static member inline use' (children: #seq) = HtmlHelper.createElementWithChildren "use" children + static member inline use'(children: #seq) = + HtmlHelper.createElementWithChildren "use" children + static member inline var xs = HtmlHelper.createElement "var" xs - static member inline var (value: float) = HtmlHelper.createElementWithChild "var" value - static member inline var (value: int) = HtmlHelper.createElementWithChild "var" value - static member inline var (value: ReactElement) = HtmlHelper.createElementWithChild "var" value - static member inline var (value: string) = HtmlHelper.createElementWithChild "var" value - static member inline var (children: #seq) = HtmlHelper.createElementWithChildren "var" children + + static member inline var(value: float) = + HtmlHelper.createElementWithChild "var" value + + static member inline var(value: int) = + HtmlHelper.createElementWithChild "var" value + + static member inline var(value: ReactElement) = + HtmlHelper.createElementWithChild "var" value + + static member inline var(value: string) = + HtmlHelper.createElementWithChild "var" value + + static member inline var(children: #seq) = + HtmlHelper.createElementWithChildren "var" children static member inline video xs = HtmlHelper.createElement "video" xs - static member inline video (children: #seq) = HtmlHelper.createElementWithChildren "video" children + + static member inline video(children: #seq) = + HtmlHelper.createElementWithChildren "video" children + [] static member inline view xs = HtmlHelper.createElement "view" xs + [] - static member inline view (children: #seq) = HtmlHelper.createElementWithChildren "view" children + static member inline view(children: #seq) = + HtmlHelper.createElementWithChildren "view" children static member inline wbr xs = HtmlHelper.createElement "wbr" xs diff --git a/src/Feliz/JSX.fs b/src/Feliz/JSX.fs index aa71feba..aaf7a72d 100644 --- a/src/Feliz/JSX.fs +++ b/src/Feliz/JSX.fs @@ -7,7 +7,7 @@ open Feliz module JSXHelper = let inline createElementWithChild (tag: string) (children: obj) : ReactElement = - JSX.create tag ["children" ==> children] |> unbox + JSX.create tag [ "children" ==> children ] |> unbox let inline createElement (name: string) (props: IReactProperty list) : ReactElement = JSX.create name !!props |> unbox @@ -17,821 +17,1680 @@ open System.Diagnostics.CodeAnalysis [] type Html = - static member inline jsx ([] template: string) : ReactElement = JSX.jsx template |> unbox + static member inline jsx([] template: string) : ReactElement = JSX.jsx template |> unbox static member inline a xs = JSXHelper.createElement "a" xs - static member inline a (children: #seq) = JSXHelper.createElementWithChild "a" children + + static member inline a(children: #seq) = + JSXHelper.createElementWithChild "a" children static member inline abbr xs = JSXHelper.createElement "abbr" xs - static member inline abbr (value: float) = JSXHelper.createElementWithChild "abbr" value - static member inline abbr (value: int) = JSXHelper.createElementWithChild "abbr" value - static member inline abbr (value: ReactElement) = JSXHelper.createElementWithChild "abbr" value - static member inline abbr (value: string) = JSXHelper.createElementWithChild "abbr" value - static member inline abbr (children: #seq) = JSXHelper.createElementWithChild "abbr" children + + static member inline abbr(value: float) = + JSXHelper.createElementWithChild "abbr" value + + static member inline abbr(value: int) = + JSXHelper.createElementWithChild "abbr" value + + static member inline abbr(value: ReactElement) = + JSXHelper.createElementWithChild "abbr" value + + static member inline abbr(value: string) = + JSXHelper.createElementWithChild "abbr" value + + static member inline abbr(children: #seq) = + JSXHelper.createElementWithChild "abbr" children static member inline address xs = JSXHelper.createElement "address" xs - static member inline address (value: float) = JSXHelper.createElementWithChild "address" value - static member inline address (value: int) = JSXHelper.createElementWithChild "address" value - static member inline address (value: ReactElement) = JSXHelper.createElementWithChild "address" value - static member inline address (value: string) = JSXHelper.createElementWithChild "address" value - static member inline address (children: #seq) = JSXHelper.createElementWithChild "address" children + + static member inline address(value: float) = + JSXHelper.createElementWithChild "address" value + + static member inline address(value: int) = + JSXHelper.createElementWithChild "address" value + + static member inline address(value: ReactElement) = + JSXHelper.createElementWithChild "address" value + + static member inline address(value: string) = + JSXHelper.createElementWithChild "address" value + + static member inline address(children: #seq) = + JSXHelper.createElementWithChild "address" children static member inline anchor xs = JSXHelper.createElement "a" xs - static member inline anchor (children: #seq) = JSXHelper.createElementWithChild "a" children + + static member inline anchor(children: #seq) = + JSXHelper.createElementWithChild "a" children static member inline animate xs = JSXHelper.createElement "animate" xs - static member inline animateMotion xs = JSXHelper.createElement "animateMotion" xs - static member inline animateMotion (children: #seq) = JSXHelper.createElementWithChild "animateMotion" children + static member inline animateMotion xs = + JSXHelper.createElement "animateMotion" xs - static member inline animateTransform xs = JSXHelper.createElement "animateTransform" xs - static member inline animateTransform (children: #seq) = JSXHelper.createElementWithChild "animateTransform" children + static member inline animateMotion(children: #seq) = + JSXHelper.createElementWithChild "animateMotion" children + + static member inline animateTransform xs = + JSXHelper.createElement "animateTransform" xs + + static member inline animateTransform(children: #seq) = + JSXHelper.createElementWithChild "animateTransform" children static member inline area xs = JSXHelper.createElement "area" xs static member inline article xs = JSXHelper.createElement "article" xs - static member inline article (children: #seq) = JSXHelper.createElementWithChild "article" children + + static member inline article(children: #seq) = + JSXHelper.createElementWithChild "article" children static member inline aside xs = JSXHelper.createElement "aside" xs - static member inline aside (children: #seq) = JSXHelper.createElementWithChild "aside" children + + static member inline aside(children: #seq) = + JSXHelper.createElementWithChild "aside" children static member inline audio xs = JSXHelper.createElement "audio" xs - static member inline audio (children: #seq) = JSXHelper.createElementWithChild "audio" children + + static member inline audio(children: #seq) = + JSXHelper.createElementWithChild "audio" children static member inline b xs = JSXHelper.createElement "b" xs - static member inline b (value: float) = JSXHelper.createElementWithChild "b" value - static member inline b (value: int) = JSXHelper.createElementWithChild "b" value - static member inline b (value: ReactElement) = JSXHelper.createElementWithChild "b" value - static member inline b (value: string) = JSXHelper.createElementWithChild "b" value - static member inline b (children: #seq) = JSXHelper.createElementWithChild "b" children + + static member inline b(value: float) = + JSXHelper.createElementWithChild "b" value + + static member inline b(value: int) = + JSXHelper.createElementWithChild "b" value + + static member inline b(value: ReactElement) = + JSXHelper.createElementWithChild "b" value + + static member inline b(value: string) = + JSXHelper.createElementWithChild "b" value + + static member inline b(children: #seq) = + JSXHelper.createElementWithChild "b" children static member inline base' xs = JSXHelper.createElement "base" xs static member inline bdi xs = JSXHelper.createElement "bdi" xs - static member inline bdi (value: float) = JSXHelper.createElementWithChild "bdi" value - static member inline bdi (value: int) = JSXHelper.createElementWithChild "bdi" value - static member inline bdi (value: ReactElement) = JSXHelper.createElementWithChild "bdi" value - static member inline bdi (value: string) = JSXHelper.createElementWithChild "bdi" value - static member inline bdi (children: #seq) = JSXHelper.createElementWithChild "bdi" children + + static member inline bdi(value: float) = + JSXHelper.createElementWithChild "bdi" value + + static member inline bdi(value: int) = + JSXHelper.createElementWithChild "bdi" value + + static member inline bdi(value: ReactElement) = + JSXHelper.createElementWithChild "bdi" value + + static member inline bdi(value: string) = + JSXHelper.createElementWithChild "bdi" value + + static member inline bdi(children: #seq) = + JSXHelper.createElementWithChild "bdi" children static member inline bdo xs = JSXHelper.createElement "bdo" xs - static member inline bdo (value: float) = JSXHelper.createElementWithChild "bdo" value - static member inline bdo (value: int) = JSXHelper.createElementWithChild "bdo" value - static member inline bdo (value: ReactElement) = JSXHelper.createElementWithChild "bdo" value - static member inline bdo (value: string) = JSXHelper.createElementWithChild "bdo" value - static member inline bdo (children: #seq) = JSXHelper.createElementWithChild "bdo" children + + static member inline bdo(value: float) = + JSXHelper.createElementWithChild "bdo" value + + static member inline bdo(value: int) = + JSXHelper.createElementWithChild "bdo" value + + static member inline bdo(value: ReactElement) = + JSXHelper.createElementWithChild "bdo" value + + static member inline bdo(value: string) = + JSXHelper.createElementWithChild "bdo" value + + static member inline bdo(children: #seq) = + JSXHelper.createElementWithChild "bdo" children static member inline blockquote xs = JSXHelper.createElement "blockquote" xs - static member inline blockquote (value: float) = JSXHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: int) = JSXHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: ReactElement) = JSXHelper.createElementWithChild "blockquote" value - static member inline blockquote (value: string) = JSXHelper.createElementWithChild "blockquote" value - static member inline blockquote (children: #seq) = JSXHelper.createElementWithChild "blockquote" children + + static member inline blockquote(value: float) = + JSXHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: int) = + JSXHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: ReactElement) = + JSXHelper.createElementWithChild "blockquote" value + + static member inline blockquote(value: string) = + JSXHelper.createElementWithChild "blockquote" value + + static member inline blockquote(children: #seq) = + JSXHelper.createElementWithChild "blockquote" children static member inline body xs = JSXHelper.createElement "body" xs - static member inline body (value: float) = JSXHelper.createElementWithChild "body" value - static member inline body (value: int) = JSXHelper.createElementWithChild "body" value - static member inline body (value: ReactElement) = JSXHelper.createElementWithChild "body" value - static member inline body (value: string) = JSXHelper.createElementWithChild "body" value - static member inline body (children: #seq) = JSXHelper.createElementWithChild "body" children + + static member inline body(value: float) = + JSXHelper.createElementWithChild "body" value + + static member inline body(value: int) = + JSXHelper.createElementWithChild "body" value + + static member inline body(value: ReactElement) = + JSXHelper.createElementWithChild "body" value + + static member inline body(value: string) = + JSXHelper.createElementWithChild "body" value + + static member inline body(children: #seq) = + JSXHelper.createElementWithChild "body" children static member inline br xs = JSXHelper.createElement "br" xs static member inline button xs = JSXHelper.createElement "button" xs - static member inline button (children: #seq) = JSXHelper.createElementWithChild "button" children + + static member inline button(children: #seq) = + JSXHelper.createElementWithChild "button" children static member inline canvas xs = JSXHelper.createElement "canvas" xs static member inline caption xs = JSXHelper.createElement "caption" xs - static member inline caption (value: float) = JSXHelper.createElementWithChild "caption" value - static member inline caption (value: int) = JSXHelper.createElementWithChild "caption" value - static member inline caption (value: ReactElement) = JSXHelper.createElementWithChild "caption" value - static member inline caption (value: string) = JSXHelper.createElementWithChild "caption" value - static member inline caption (children: #seq) = JSXHelper.createElementWithChild "caption" children + + static member inline caption(value: float) = + JSXHelper.createElementWithChild "caption" value + + static member inline caption(value: int) = + JSXHelper.createElementWithChild "caption" value + + static member inline caption(value: ReactElement) = + JSXHelper.createElementWithChild "caption" value + + static member inline caption(value: string) = + JSXHelper.createElementWithChild "caption" value + + static member inline caption(children: #seq) = + JSXHelper.createElementWithChild "caption" children static member inline cite xs = JSXHelper.createElement "cite" xs - static member inline cite (value: float) = JSXHelper.createElementWithChild "cite" value - static member inline cite (value: int) = JSXHelper.createElementWithChild "cite" value - static member inline cite (value: ReactElement) = JSXHelper.createElementWithChild "cite" value - static member inline cite (value: string) = JSXHelper.createElementWithChild "cite" value - static member inline cite (children: #seq) = JSXHelper.createElementWithChild "cite" children + + static member inline cite(value: float) = + JSXHelper.createElementWithChild "cite" value + + static member inline cite(value: int) = + JSXHelper.createElementWithChild "cite" value + + static member inline cite(value: ReactElement) = + JSXHelper.createElementWithChild "cite" value + + static member inline cite(value: string) = + JSXHelper.createElementWithChild "cite" value + + static member inline cite(children: #seq) = + JSXHelper.createElementWithChild "cite" children + [] static member inline circle xs = JSXHelper.createElement "circle" xs + [] - static member inline circle (children: #seq) = JSXHelper.createElementWithChild "circle" children + static member inline circle(children: #seq) = + JSXHelper.createElementWithChild "circle" children + [] static member inline clipPath xs = JSXHelper.createElement "clipPath" xs + [] - static member inline clipPath (children: #seq) = JSXHelper.createElementWithChild "clipPath" children + static member inline clipPath(children: #seq) = + JSXHelper.createElementWithChild "clipPath" children static member inline code xs = JSXHelper.createElement "code" xs - static member inline code (value: bool) = JSXHelper.createElementWithChild "code" value - static member inline code (value: float) = JSXHelper.createElementWithChild "code" value - static member inline code (value: int) = JSXHelper.createElementWithChild "code" value - static member inline code (value: ReactElement) = JSXHelper.createElementWithChild "code" value - static member inline code (value: string) = JSXHelper.createElementWithChild "code" value - static member inline code (children: #seq) = JSXHelper.createElementWithChild "code" children + + static member inline code(value: bool) = + JSXHelper.createElementWithChild "code" value + + static member inline code(value: float) = + JSXHelper.createElementWithChild "code" value + + static member inline code(value: int) = + JSXHelper.createElementWithChild "code" value + + static member inline code(value: ReactElement) = + JSXHelper.createElementWithChild "code" value + + static member inline code(value: string) = + JSXHelper.createElementWithChild "code" value + + static member inline code(children: #seq) = + JSXHelper.createElementWithChild "code" children static member inline col xs = JSXHelper.createElement "col" xs static member inline colgroup xs = JSXHelper.createElement "colgroup" xs - static member inline colgroup (children: #seq) = JSXHelper.createElementWithChild "colgroup" children + + static member inline colgroup(children: #seq) = + JSXHelper.createElementWithChild "colgroup" children [] - static member inline content (value: float) : ReactElement = unbox value + static member inline content(value: float) : ReactElement = unbox value + [] - static member inline content (value: int) : ReactElement = unbox value + static member inline content(value: int) : ReactElement = unbox value + [] - static member inline content (value: string) : ReactElement = unbox value + static member inline content(value: string) : ReactElement = unbox value static member inline data xs = JSXHelper.createElement "data" xs - static member inline data (value: float) = JSXHelper.createElementWithChild "data" value - static member inline data (value: int) = JSXHelper.createElementWithChild "data" value - static member inline data (value: ReactElement) = JSXHelper.createElementWithChild "data" value - static member inline data (value: string) = JSXHelper.createElementWithChild "data" value - static member inline data (children: #seq) = JSXHelper.createElementWithChild "data" children + + static member inline data(value: float) = + JSXHelper.createElementWithChild "data" value + + static member inline data(value: int) = + JSXHelper.createElementWithChild "data" value + + static member inline data(value: ReactElement) = + JSXHelper.createElementWithChild "data" value + + static member inline data(value: string) = + JSXHelper.createElementWithChild "data" value + + static member inline data(children: #seq) = + JSXHelper.createElementWithChild "data" children static member inline datalist xs = JSXHelper.createElement "datalist" xs - static member inline datalist (value: float) = JSXHelper.createElementWithChild "datalist" value - static member inline datalist (value: int) = JSXHelper.createElementWithChild "datalist" value - static member inline datalist (value: ReactElement) = JSXHelper.createElementWithChild "datalist" value - static member inline datalist (value: string) = JSXHelper.createElementWithChild "datalist" value - static member inline datalist (children: #seq) = JSXHelper.createElementWithChild "datalist" children + + static member inline datalist(value: float) = + JSXHelper.createElementWithChild "datalist" value + + static member inline datalist(value: int) = + JSXHelper.createElementWithChild "datalist" value + + static member inline datalist(value: ReactElement) = + JSXHelper.createElementWithChild "datalist" value + + static member inline datalist(value: string) = + JSXHelper.createElementWithChild "datalist" value + + static member inline datalist(children: #seq) = + JSXHelper.createElementWithChild "datalist" children static member inline dd xs = JSXHelper.createElement "dd" xs - static member inline dd (value: float) = JSXHelper.createElementWithChild "dd" value - static member inline dd (value: int) = JSXHelper.createElementWithChild "dd" value - static member inline dd (value: ReactElement) = JSXHelper.createElementWithChild "dd" value - static member inline dd (value: string) = JSXHelper.createElementWithChild "dd" value - static member inline dd (children: #seq) = JSXHelper.createElementWithChild "dd" children + + static member inline dd(value: float) = + JSXHelper.createElementWithChild "dd" value + + static member inline dd(value: int) = + JSXHelper.createElementWithChild "dd" value + + static member inline dd(value: ReactElement) = + JSXHelper.createElementWithChild "dd" value + + static member inline dd(value: string) = + JSXHelper.createElementWithChild "dd" value + + static member inline dd(children: #seq) = + JSXHelper.createElementWithChild "dd" children + [] static member inline defs xs = JSXHelper.createElement "defs" xs + [] - static member inline defs (children: #seq) = JSXHelper.createElementWithChild "defs" children + static member inline defs(children: #seq) = + JSXHelper.createElementWithChild "defs" children + static member inline del xs = JSXHelper.createElement "del" xs - static member inline del (value: float) = JSXHelper.createElementWithChild "del" value - static member inline del (value: int) = JSXHelper.createElementWithChild "del" value - static member inline del (value: ReactElement) = JSXHelper.createElementWithChild "del" value - static member inline del (value: string) = JSXHelper.createElementWithChild "del" value - static member inline del (children: #seq) = JSXHelper.createElementWithChild "del" children + + static member inline del(value: float) = + JSXHelper.createElementWithChild "del" value + + static member inline del(value: int) = + JSXHelper.createElementWithChild "del" value + + static member inline del(value: ReactElement) = + JSXHelper.createElementWithChild "del" value + + static member inline del(value: string) = + JSXHelper.createElementWithChild "del" value + + static member inline del(children: #seq) = + JSXHelper.createElementWithChild "del" children static member inline details xs = JSXHelper.createElement "details" xs - static member inline details (children: #seq) = JSXHelper.createElementWithChild "details" children + + static member inline details(children: #seq) = + JSXHelper.createElementWithChild "details" children [] static member inline desc xs = JSXHelper.createElement "desc" xs + [] - static member inline desc (value: float) = JSXHelper.createElementWithChild "desc" value + static member inline desc(value: float) = + JSXHelper.createElementWithChild "desc" value + [] - static member inline desc (value: int) = JSXHelper.createElementWithChild "desc" value + static member inline desc(value: int) = + JSXHelper.createElementWithChild "desc" value + [] - static member inline desc (value: string) = JSXHelper.createElementWithChild "desc" value + static member inline desc(value: string) = + JSXHelper.createElementWithChild "desc" value static member inline dfn xs = JSXHelper.createElement "ins" xs - static member inline dfn (value: float) = JSXHelper.createElementWithChild "dfn" value - static member inline dfn (value: int) = JSXHelper.createElementWithChild "dfn" value - static member inline dfn (value: ReactElement) = JSXHelper.createElementWithChild "dfn" value - static member inline dfn (value: string) = JSXHelper.createElementWithChild "dfn" value - static member inline dfn (children: #seq) = JSXHelper.createElementWithChild "dfn" children + + static member inline dfn(value: float) = + JSXHelper.createElementWithChild "dfn" value + + static member inline dfn(value: int) = + JSXHelper.createElementWithChild "dfn" value + + static member inline dfn(value: ReactElement) = + JSXHelper.createElementWithChild "dfn" value + + static member inline dfn(value: string) = + JSXHelper.createElementWithChild "dfn" value + + static member inline dfn(children: #seq) = + JSXHelper.createElementWithChild "dfn" children static member inline dialog xs = JSXHelper.createElement "dialog" xs - static member inline dialog (value: float) = JSXHelper.createElementWithChild "dialog" value - static member inline dialog (value: int) = JSXHelper.createElementWithChild "dialog" value - static member inline dialog (value: ReactElement) = JSXHelper.createElementWithChild "dialog" value - static member inline dialog (value: string) = JSXHelper.createElementWithChild "dialog" value - static member inline dialog (children: #seq) = JSXHelper.createElementWithChild "dialog" children + + static member inline dialog(value: float) = + JSXHelper.createElementWithChild "dialog" value + + static member inline dialog(value: int) = + JSXHelper.createElementWithChild "dialog" value + + static member inline dialog(value: ReactElement) = + JSXHelper.createElementWithChild "dialog" value + + static member inline dialog(value: string) = + JSXHelper.createElementWithChild "dialog" value + + static member inline dialog(children: #seq) = + JSXHelper.createElementWithChild "dialog" children /// The `
    ` tag defines a division or a section in an HTML document static member inline div xs = JSXHelper.createElement "div" xs - static member inline div (value: float) = JSXHelper.createElementWithChild "div" value - static member inline div (value: int) = JSXHelper.createElementWithChild "div" value - static member inline div (value: ReactElement) = JSXHelper.createElementWithChild "div" value - static member inline div (value: string) = JSXHelper.createElementWithChild "div" value - static member inline div (children: #seq) = JSXHelper.createElementWithChild "div" children + + static member inline div(value: float) = + JSXHelper.createElementWithChild "div" value + + static member inline div(value: int) = + JSXHelper.createElementWithChild "div" value + + static member inline div(value: ReactElement) = + JSXHelper.createElementWithChild "div" value + + static member inline div(value: string) = + JSXHelper.createElementWithChild "div" value + + static member inline div(children: #seq) = + JSXHelper.createElementWithChild "div" children static member inline dl xs = JSXHelper.createElement "dl" xs - static member inline dl (children: #seq) = JSXHelper.createElementWithChild "dl" children + + static member inline dl(children: #seq) = + JSXHelper.createElementWithChild "dl" children static member inline dt xs = JSXHelper.createElement "dt" xs - static member inline dt (value: float) = JSXHelper.createElementWithChild "dt" value - static member inline dt (value: int) = JSXHelper.createElementWithChild "dt" value - static member inline dt (value: ReactElement) = JSXHelper.createElementWithChild "dt" value - static member inline dt (value: string) = JSXHelper.createElementWithChild "dt" value - static member inline dt (children: #seq) = JSXHelper.createElementWithChild "dt" children + + static member inline dt(value: float) = + JSXHelper.createElementWithChild "dt" value + + static member inline dt(value: int) = + JSXHelper.createElementWithChild "dt" value + + static member inline dt(value: ReactElement) = + JSXHelper.createElementWithChild "dt" value + + static member inline dt(value: string) = + JSXHelper.createElementWithChild "dt" value + + static member inline dt(children: #seq) = + JSXHelper.createElementWithChild "dt" children [] static member inline ellipse xs = JSXHelper.createElement "ellipse" xs + [] - static member inline ellipse (children: #seq) = JSXHelper.createElementWithChild "ellipse" children + static member inline ellipse(children: #seq) = + JSXHelper.createElementWithChild "ellipse" children static member inline em xs = JSXHelper.createElement "em" xs - static member inline em (value: float) = JSXHelper.createElementWithChild "em" value - static member inline em (value: int) = JSXHelper.createElementWithChild "em" value - static member inline em (value: ReactElement) = JSXHelper.createElementWithChild "em" value - static member inline em (value: string) = JSXHelper.createElementWithChild "em" value - static member inline em (children: #seq) = JSXHelper.createElementWithChild "em" children + + static member inline em(value: float) = + JSXHelper.createElementWithChild "em" value + + static member inline em(value: int) = + JSXHelper.createElementWithChild "em" value + + static member inline em(value: ReactElement) = + JSXHelper.createElementWithChild "em" value + + static member inline em(value: string) = + JSXHelper.createElementWithChild "em" value + + static member inline em(children: #seq) = + JSXHelper.createElementWithChild "em" children static member inline embed xs = JSXHelper.createElement "embed" xs + [] static member inline feBlend xs = JSXHelper.createElement "feBlend" xs + [] - static member inline feBlend (children: #seq) = JSXHelper.createElementWithChild "feBlend" children + static member inline feBlend(children: #seq) = + JSXHelper.createElementWithChild "feBlend" children + [] - static member inline feColorMatrix xs = JSXHelper.createElement "feColorMatrix" xs + static member inline feColorMatrix xs = + JSXHelper.createElement "feColorMatrix" xs + [] - static member inline feColorMatrix (children: #seq) = JSXHelper.createElementWithChild "feColorMatrix" children + static member inline feColorMatrix(children: #seq) = + JSXHelper.createElementWithChild "feColorMatrix" children + [] - static member inline feComponentTransfer xs = JSXHelper.createElement "feComponentTransfer" xs + static member inline feComponentTransfer xs = + JSXHelper.createElement "feComponentTransfer" xs + [] - static member inline feComponentTransfer (children: #seq) = JSXHelper.createElementWithChild "feComponentTransfer" children + static member inline feComponentTransfer(children: #seq) = + JSXHelper.createElementWithChild "feComponentTransfer" children + [] - static member inline feComposite xs = JSXHelper.createElement "feComposite" xs + static member inline feComposite xs = + JSXHelper.createElement "feComposite" xs + [] - static member inline feComposite (children: #seq) = JSXHelper.createElementWithChild "feComposite" children + static member inline feComposite(children: #seq) = + JSXHelper.createElementWithChild "feComposite" children + [] - static member inline feConvolveMatrix xs = JSXHelper.createElement "feConvolveMatrix" xs + static member inline feConvolveMatrix xs = + JSXHelper.createElement "feConvolveMatrix" xs + [] - static member inline feConvolveMatrix (children: #seq) = JSXHelper.createElementWithChild "feConvolveMatrix" children + static member inline feConvolveMatrix(children: #seq) = + JSXHelper.createElementWithChild "feConvolveMatrix" children + [] - static member inline feDiffuseLighting xs = JSXHelper.createElement "feDiffuseLighting" xs + static member inline feDiffuseLighting xs = + JSXHelper.createElement "feDiffuseLighting" xs + [] - static member inline feDiffuseLighting (children: #seq) = JSXHelper.createElementWithChild "feDiffuseLighting" children + static member inline feDiffuseLighting(children: #seq) = + JSXHelper.createElementWithChild "feDiffuseLighting" children + [] - static member inline feDisplacementMap xs = JSXHelper.createElement "feDisplacementMap" xs + static member inline feDisplacementMap xs = + JSXHelper.createElement "feDisplacementMap" xs + [] - static member inline feDisplacementMap (children: #seq) = JSXHelper.createElementWithChild "feDisplacementMap" children + static member inline feDisplacementMap(children: #seq) = + JSXHelper.createElementWithChild "feDisplacementMap" children + [] - static member inline feDistantLight xs = JSXHelper.createElement "feDistantLight" xs + static member inline feDistantLight xs = + JSXHelper.createElement "feDistantLight" xs + [] - static member inline feDistantLight (children: #seq) = JSXHelper.createElementWithChild "feDistantLight" children + static member inline feDistantLight(children: #seq) = + JSXHelper.createElementWithChild "feDistantLight" children + [] - static member inline feDropShadow xs = JSXHelper.createElement "feDropShadow" xs + static member inline feDropShadow xs = + JSXHelper.createElement "feDropShadow" xs + [] - static member inline feDropShadow (children: #seq) = JSXHelper.createElementWithChild "feDropShadow" children + static member inline feDropShadow(children: #seq) = + JSXHelper.createElementWithChild "feDropShadow" children + [] static member inline feFlood xs = JSXHelper.createElement "feFlood" xs + [] - static member inline feFlood (children: #seq) = JSXHelper.createElementWithChild "feFlood" children + static member inline feFlood(children: #seq) = + JSXHelper.createElementWithChild "feFlood" children + [] static member inline feFuncA xs = JSXHelper.createElement "feFuncA" xs + [] - static member inline feFuncA (children: #seq) = JSXHelper.createElementWithChild "feFuncA" children + static member inline feFuncA(children: #seq) = + JSXHelper.createElementWithChild "feFuncA" children + [] static member inline feFuncB xs = JSXHelper.createElement "feFuncB" xs + [] - static member inline feFuncB (children: #seq) = JSXHelper.createElementWithChild "feFuncB" children + static member inline feFuncB(children: #seq) = + JSXHelper.createElementWithChild "feFuncB" children + [] static member inline feFuncG xs = JSXHelper.createElement "feFuncG" xs + [] - static member inline feFuncG (children: #seq) = JSXHelper.createElementWithChild "feFuncG" children + static member inline feFuncG(children: #seq) = + JSXHelper.createElementWithChild "feFuncG" children + [] static member inline feFuncR xs = JSXHelper.createElement "feFuncR" xs + [] - static member inline feFuncR (children: #seq) = JSXHelper.createElementWithChild "feFuncR" children + static member inline feFuncR(children: #seq) = + JSXHelper.createElementWithChild "feFuncR" children + [] - static member inline feGaussianBlur xs = JSXHelper.createElement "feGaussianBlur" xs + static member inline feGaussianBlur xs = + JSXHelper.createElement "feGaussianBlur" xs + [] - static member inline feGaussianBlur (children: #seq) = JSXHelper.createElementWithChild "feGaussianBlur" children + static member inline feGaussianBlur(children: #seq) = + JSXHelper.createElementWithChild "feGaussianBlur" children + [] static member inline feImage xs = JSXHelper.createElement "feImage" xs + [] - static member inline feImage (children: #seq) = JSXHelper.createElementWithChild "feImage" children + static member inline feImage(children: #seq) = + JSXHelper.createElementWithChild "feImage" children + [] static member inline feMerge xs = JSXHelper.createElement "feMerge" xs + [] - static member inline feMerge (children: #seq) = JSXHelper.createElementWithChild "feMerge" children + static member inline feMerge(children: #seq) = + JSXHelper.createElementWithChild "feMerge" children + [] - static member inline feMergeNode xs = JSXHelper.createElement "feMergeNode" xs + static member inline feMergeNode xs = + JSXHelper.createElement "feMergeNode" xs + [] - static member inline feMergeNode (children: #seq) = JSXHelper.createElementWithChild "feMergeNode" children + static member inline feMergeNode(children: #seq) = + JSXHelper.createElementWithChild "feMergeNode" children + [] - static member inline feMorphology xs = JSXHelper.createElement "feMorphology" xs + static member inline feMorphology xs = + JSXHelper.createElement "feMorphology" xs + [] - static member inline feMorphology (children: #seq) = JSXHelper.createElementWithChild "feMorphology" children + static member inline feMorphology(children: #seq) = + JSXHelper.createElementWithChild "feMorphology" children + [] static member inline feOffset xs = JSXHelper.createElement "feOffset" xs + [] - static member inline feOffset (children: #seq) = JSXHelper.createElementWithChild "feOffset" children + static member inline feOffset(children: #seq) = + JSXHelper.createElementWithChild "feOffset" children + [] - static member inline fePointLight xs = JSXHelper.createElement "fePointLight" xs + static member inline fePointLight xs = + JSXHelper.createElement "fePointLight" xs + [] - static member inline fePointLight (children: #seq) = JSXHelper.createElementWithChild "fePointLight" children + static member inline fePointLight(children: #seq) = + JSXHelper.createElementWithChild "fePointLight" children + [] - static member inline feSpecularLighting xs = JSXHelper.createElement "feSpecularLighting" xs + static member inline feSpecularLighting xs = + JSXHelper.createElement "feSpecularLighting" xs + [] - static member inline feSpecularLighting (children: #seq) = JSXHelper.createElementWithChild "feSpecularLighting" children + static member inline feSpecularLighting(children: #seq) = + JSXHelper.createElementWithChild "feSpecularLighting" children + [] - static member inline feSpotLight xs = JSXHelper.createElement "feSpotLight" xs + static member inline feSpotLight xs = + JSXHelper.createElement "feSpotLight" xs + [] - static member inline feSpotLight (children: #seq) = JSXHelper.createElementWithChild "feSpotLight" children + static member inline feSpotLight(children: #seq) = + JSXHelper.createElementWithChild "feSpotLight" children + [] static member inline feTile xs = JSXHelper.createElement "feTile" xs + [] - static member inline feTile (children: #seq) = JSXHelper.createElementWithChild "feTile" children + static member inline feTile(children: #seq) = + JSXHelper.createElementWithChild "feTile" children + [] - static member inline feTurbulence xs = JSXHelper.createElement "feTurbulence" xs + static member inline feTurbulence xs = + JSXHelper.createElement "feTurbulence" xs + [] - static member inline feTurbulence (children: #seq) = JSXHelper.createElementWithChild "feTurbulence" children + static member inline feTurbulence(children: #seq) = + JSXHelper.createElementWithChild "feTurbulence" children + static member inline fieldSet xs = JSXHelper.createElement "fieldset" xs - static member inline fieldSet (children: #seq) = JSXHelper.createElementWithChild "fieldset" children + + static member inline fieldSet(children: #seq) = + JSXHelper.createElementWithChild "fieldset" children static member inline figcaption xs = JSXHelper.createElement "figcaption" xs - static member inline figcaption (children: #seq) = JSXHelper.createElementWithChild "figcaption" children + + static member inline figcaption(children: #seq) = + JSXHelper.createElementWithChild "figcaption" children static member inline figure xs = JSXHelper.createElement "figure" xs - static member inline figure (children: #seq) = JSXHelper.createElementWithChild "figure" children + + static member inline figure(children: #seq) = + JSXHelper.createElementWithChild "figure" children + [] static member inline filter xs = JSXHelper.createElement "filter" xs + [] - static member inline filter (children: #seq) = JSXHelper.createElementWithChild "filter" children + static member inline filter(children: #seq) = + JSXHelper.createElementWithChild "filter" children static member inline footer xs = JSXHelper.createElement "footer" xs - static member inline footer (children: #seq) = JSXHelper.createElementWithChild "footer" children + + static member inline footer(children: #seq) = + JSXHelper.createElementWithChild "footer" children + [] - static member inline foreignObject xs = JSXHelper.createElement "foreignObject" xs + static member inline foreignObject xs = + JSXHelper.createElement "foreignObject" xs + [] - static member inline foreignObject (children: #seq) = JSXHelper.createElementWithChild "foreignObject" children + static member inline foreignObject(children: #seq) = + JSXHelper.createElementWithChild "foreignObject" children static member inline form xs = JSXHelper.createElement "form" xs - static member inline form (children: #seq) = JSXHelper.createElementWithChild "form" children + + static member inline form(children: #seq) = + JSXHelper.createElementWithChild "form" children // [] // static member inline fragment xs = Fable.React.Helpers.fragment [] xs [] static member inline g xs = JSXHelper.createElement "g" xs + [] - static member inline g (children: #seq) = JSXHelper.createElementWithChild "g" children + static member inline g(children: #seq) = + JSXHelper.createElementWithChild "g" children static member inline h1 xs = JSXHelper.createElement "h1" xs - static member inline h1 (value: float) = JSXHelper.createElementWithChild "h1" value - static member inline h1 (value: int) = JSXHelper.createElementWithChild "h1" value - static member inline h1 (value: ReactElement) = JSXHelper.createElementWithChild "h1" value - static member inline h1 (value: string) = JSXHelper.createElementWithChild "h1" value - static member inline h1 (children: #seq) = JSXHelper.createElementWithChild "h1" children + + static member inline h1(value: float) = + JSXHelper.createElementWithChild "h1" value + + static member inline h1(value: int) = + JSXHelper.createElementWithChild "h1" value + + static member inline h1(value: ReactElement) = + JSXHelper.createElementWithChild "h1" value + + static member inline h1(value: string) = + JSXHelper.createElementWithChild "h1" value + + static member inline h1(children: #seq) = + JSXHelper.createElementWithChild "h1" children + static member inline h2 xs = JSXHelper.createElement "h2" xs - static member inline h2 (value: float) = JSXHelper.createElementWithChild "h2" value - static member inline h2 (value: int) = JSXHelper.createElementWithChild "h2" value - static member inline h2 (value: ReactElement) = JSXHelper.createElementWithChild "h2" value - static member inline h2 (value: string) = JSXHelper.createElementWithChild "h2" value - static member inline h2 (children: #seq) = JSXHelper.createElementWithChild "h2" children + + static member inline h2(value: float) = + JSXHelper.createElementWithChild "h2" value + + static member inline h2(value: int) = + JSXHelper.createElementWithChild "h2" value + + static member inline h2(value: ReactElement) = + JSXHelper.createElementWithChild "h2" value + + static member inline h2(value: string) = + JSXHelper.createElementWithChild "h2" value + + static member inline h2(children: #seq) = + JSXHelper.createElementWithChild "h2" children static member inline h3 xs = JSXHelper.createElement "h3" xs - static member inline h3 (value: float) = JSXHelper.createElementWithChild "h3" value - static member inline h3 (value: int) = JSXHelper.createElementWithChild "h3" value - static member inline h3 (value: ReactElement) = JSXHelper.createElementWithChild "h3" value - static member inline h3 (value: string) = JSXHelper.createElementWithChild "h3" value - static member inline h3 (children: #seq) = JSXHelper.createElementWithChild "h3" children + + static member inline h3(value: float) = + JSXHelper.createElementWithChild "h3" value + + static member inline h3(value: int) = + JSXHelper.createElementWithChild "h3" value + + static member inline h3(value: ReactElement) = + JSXHelper.createElementWithChild "h3" value + + static member inline h3(value: string) = + JSXHelper.createElementWithChild "h3" value + + static member inline h3(children: #seq) = + JSXHelper.createElementWithChild "h3" children static member inline h4 xs = JSXHelper.createElement "h4" xs - static member inline h4 (value: float) = JSXHelper.createElementWithChild "h4" value - static member inline h4 (value: int) = JSXHelper.createElementWithChild "h4" value - static member inline h4 (value: ReactElement) = JSXHelper.createElementWithChild "h4" value - static member inline h4 (value: string) = JSXHelper.createElementWithChild "h4" value - static member inline h4 (children: #seq) = JSXHelper.createElementWithChild "h4" children + + static member inline h4(value: float) = + JSXHelper.createElementWithChild "h4" value + + static member inline h4(value: int) = + JSXHelper.createElementWithChild "h4" value + + static member inline h4(value: ReactElement) = + JSXHelper.createElementWithChild "h4" value + + static member inline h4(value: string) = + JSXHelper.createElementWithChild "h4" value + + static member inline h4(children: #seq) = + JSXHelper.createElementWithChild "h4" children static member inline h5 xs = JSXHelper.createElement "h5" xs - static member inline h5 (value: float) = JSXHelper.createElementWithChild "h5" value - static member inline h5 (value: int) = JSXHelper.createElementWithChild "h5" value - static member inline h5 (value: ReactElement) = JSXHelper.createElementWithChild "h5" value - static member inline h5 (value: string) = JSXHelper.createElementWithChild "h5" value - static member inline h5 (children: #seq) = JSXHelper.createElementWithChild "h5" children + + static member inline h5(value: float) = + JSXHelper.createElementWithChild "h5" value + + static member inline h5(value: int) = + JSXHelper.createElementWithChild "h5" value + + static member inline h5(value: ReactElement) = + JSXHelper.createElementWithChild "h5" value + + static member inline h5(value: string) = + JSXHelper.createElementWithChild "h5" value + + static member inline h5(children: #seq) = + JSXHelper.createElementWithChild "h5" children static member inline h6 xs = JSXHelper.createElement "h6" xs - static member inline h6 (value: float) = JSXHelper.createElementWithChild "h6" value - static member inline h6 (value: int) = JSXHelper.createElementWithChild "h6" value - static member inline h6 (value: ReactElement) = JSXHelper.createElementWithChild "h6" value - static member inline h6 (value: string) = JSXHelper.createElementWithChild "h6" value - static member inline h6 (children: #seq) = JSXHelper.createElementWithChild "h6" children + + static member inline h6(value: float) = + JSXHelper.createElementWithChild "h6" value + + static member inline h6(value: int) = + JSXHelper.createElementWithChild "h6" value + + static member inline h6(value: ReactElement) = + JSXHelper.createElementWithChild "h6" value + + static member inline h6(value: string) = + JSXHelper.createElementWithChild "h6" value + + static member inline h6(children: #seq) = + JSXHelper.createElementWithChild "h6" children static member inline head xs = JSXHelper.createElement "head" xs - static member inline head (children: #seq) = JSXHelper.createElementWithChild "head" children + + static member inline head(children: #seq) = + JSXHelper.createElementWithChild "head" children static member inline header xs = JSXHelper.createElement "header" xs - static member inline header (children: #seq) = JSXHelper.createElementWithChild "header" children + + static member inline header(children: #seq) = + JSXHelper.createElementWithChild "header" children static member inline hr xs = JSXHelper.createElement "hr" xs static member inline html xs = JSXHelper.createElement "html" xs - static member inline html (children: #seq) = JSXHelper.createElementWithChild "html" children + + static member inline html(children: #seq) = + JSXHelper.createElementWithChild "html" children static member inline i xs = JSXHelper.createElement "i" xs - static member inline i (value: float) = JSXHelper.createElementWithChild "i" value - static member inline i (value: int) = JSXHelper.createElementWithChild "i" value - static member inline i (value: ReactElement) = JSXHelper.createElementWithChild "i" value - static member inline i (value: string) = JSXHelper.createElementWithChild "i" value - static member inline i (children: #seq) = JSXHelper.createElementWithChild "i" children + + static member inline i(value: float) = + JSXHelper.createElementWithChild "i" value + + static member inline i(value: int) = + JSXHelper.createElementWithChild "i" value + + static member inline i(value: ReactElement) = + JSXHelper.createElementWithChild "i" value + + static member inline i(value: string) = + JSXHelper.createElementWithChild "i" value + + static member inline i(children: #seq) = + JSXHelper.createElementWithChild "i" children static member inline iframe xs = JSXHelper.createElement "iframe" xs static member inline img xs = JSXHelper.createElement "img" xs /// SVG Image element, not to be confused with HTML img alias. static member inline image xs = JSXHelper.createElement "image" xs + /// SVG Image element, not to be confused with HTML img alias. - static member inline image (children: #seq) = JSXHelper.createElementWithChild "image" children + static member inline image(children: #seq) = + JSXHelper.createElementWithChild "image" children static member inline input xs = JSXHelper.createElement "input" xs static member inline ins xs = JSXHelper.createElement "ins" xs - static member inline ins (value: float) = JSXHelper.createElementWithChild "ins" value - static member inline ins (value: int) = JSXHelper.createElementWithChild "ins" value - static member inline ins (value: ReactElement) = JSXHelper.createElementWithChild "ins" value - static member inline ins (value: string) = JSXHelper.createElementWithChild "ins" value - static member inline ins (children: #seq) = JSXHelper.createElementWithChild "ins" children + + static member inline ins(value: float) = + JSXHelper.createElementWithChild "ins" value + + static member inline ins(value: int) = + JSXHelper.createElementWithChild "ins" value + + static member inline ins(value: ReactElement) = + JSXHelper.createElementWithChild "ins" value + + static member inline ins(value: string) = + JSXHelper.createElementWithChild "ins" value + + static member inline ins(children: #seq) = + JSXHelper.createElementWithChild "ins" children static member inline kbd xs = JSXHelper.createElement "kbd" xs - static member inline kbd (value: float) = JSXHelper.createElementWithChild "kbd" value - static member inline kbd (value: int) = JSXHelper.createElementWithChild "kbd" value - static member inline kbd (value: ReactElement) = JSXHelper.createElementWithChild "kbd" value - static member inline kbd (value: string) = JSXHelper.createElementWithChild "kbd" value - static member inline kbd (children: #seq) = JSXHelper.createElementWithChild "kbd" children + + static member inline kbd(value: float) = + JSXHelper.createElementWithChild "kbd" value + + static member inline kbd(value: int) = + JSXHelper.createElementWithChild "kbd" value + + static member inline kbd(value: ReactElement) = + JSXHelper.createElementWithChild "kbd" value + + static member inline kbd(value: string) = + JSXHelper.createElementWithChild "kbd" value + + static member inline kbd(children: #seq) = + JSXHelper.createElementWithChild "kbd" children static member inline label xs = JSXHelper.createElement "label" xs - static member inline label (children: #seq) = JSXHelper.createElementWithChild "label" children + + static member inline label(children: #seq) = + JSXHelper.createElementWithChild "label" children static member inline legend xs = JSXHelper.createElement "legend" xs - static member inline legend (value: float) = JSXHelper.createElementWithChild "legend" value - static member inline legend (value: int) = JSXHelper.createElementWithChild "legend" value - static member inline legend (value: ReactElement) = JSXHelper.createElementWithChild "legend" value - static member inline legend (value: string) = JSXHelper.createElementWithChild "legend" value - static member inline legend (children: #seq) = JSXHelper.createElementWithChild "legend" children + + static member inline legend(value: float) = + JSXHelper.createElementWithChild "legend" value + + static member inline legend(value: int) = + JSXHelper.createElementWithChild "legend" value + + static member inline legend(value: ReactElement) = + JSXHelper.createElementWithChild "legend" value + + static member inline legend(value: string) = + JSXHelper.createElementWithChild "legend" value + + static member inline legend(children: #seq) = + JSXHelper.createElementWithChild "legend" children static member inline li xs = JSXHelper.createElement "li" xs - static member inline li (value: float) = JSXHelper.createElementWithChild "li" value - static member inline li (value: int) = JSXHelper.createElementWithChild "li" value - static member inline li (value: ReactElement) = JSXHelper.createElementWithChild "li" value - static member inline li (value: string) = JSXHelper.createElementWithChild "li" value - static member inline li (children: #seq) = JSXHelper.createElementWithChild "li" children + + static member inline li(value: float) = + JSXHelper.createElementWithChild "li" value + + static member inline li(value: int) = + JSXHelper.createElementWithChild "li" value + + static member inline li(value: ReactElement) = + JSXHelper.createElementWithChild "li" value + + static member inline li(value: string) = + JSXHelper.createElementWithChild "li" value + + static member inline li(children: #seq) = + JSXHelper.createElementWithChild "li" children + [] static member inline line xs = JSXHelper.createElement "line" xs + [] - static member inline line (children: #seq) = JSXHelper.createElementWithChild "line" children + static member inline line(children: #seq) = + JSXHelper.createElementWithChild "line" children + [] - static member inline linearGradient xs = JSXHelper.createElement "linearGradient" xs + static member inline linearGradient xs = + JSXHelper.createElement "linearGradient" xs + [] - static member inline linearGradient (children: #seq) = JSXHelper.createElementWithChild "linearGradient" children + static member inline linearGradient(children: #seq) = + JSXHelper.createElementWithChild "linearGradient" children static member inline link xs = JSXHelper.createElement "link" xs static member inline listItem xs = JSXHelper.createElement "li" xs - static member inline listItem (value: float) = JSXHelper.createElementWithChild "li" value - static member inline listItem (value: int) = JSXHelper.createElementWithChild "li" value - static member inline listItem (value: ReactElement) = JSXHelper.createElementWithChild "li" value - static member inline listItem (value: string) = JSXHelper.createElementWithChild "li" value - static member inline listItem (children: #seq) = JSXHelper.createElementWithChild "li" children + + static member inline listItem(value: float) = + JSXHelper.createElementWithChild "li" value + + static member inline listItem(value: int) = + JSXHelper.createElementWithChild "li" value + + static member inline listItem(value: ReactElement) = + JSXHelper.createElementWithChild "li" value + + static member inline listItem(value: string) = + JSXHelper.createElementWithChild "li" value + + static member inline listItem(children: #seq) = + JSXHelper.createElementWithChild "li" children static member inline main xs = JSXHelper.createElement "main" xs - static member inline main (children: #seq) = JSXHelper.createElementWithChild "main" children + + static member inline main(children: #seq) = + JSXHelper.createElementWithChild "main" children static member inline map xs = JSXHelper.createElement "map" xs - static member inline map (children: #seq) = JSXHelper.createElementWithChild "map" children + + static member inline map(children: #seq) = + JSXHelper.createElementWithChild "map" children static member inline mark xs = JSXHelper.createElement "mark" xs - static member inline mark (value: float) = JSXHelper.createElementWithChild "mark" value - static member inline mark (value: int) = JSXHelper.createElementWithChild "mark" value - static member inline mark (value: ReactElement) = JSXHelper.createElementWithChild "mark" value - static member inline mark (value: string) = JSXHelper.createElementWithChild "mark" value - static member inline mark (children: #seq) = JSXHelper.createElementWithChild "mark" children + + static member inline mark(value: float) = + JSXHelper.createElementWithChild "mark" value + + static member inline mark(value: int) = + JSXHelper.createElementWithChild "mark" value + + static member inline mark(value: ReactElement) = + JSXHelper.createElementWithChild "mark" value + + static member inline mark(value: string) = + JSXHelper.createElementWithChild "mark" value + + static member inline mark(children: #seq) = + JSXHelper.createElementWithChild "mark" children + [] static member inline marker xs = JSXHelper.createElement "marker" xs + [] - static member inline marker (children: #seq) = JSXHelper.createElementWithChild "marker" children + static member inline marker(children: #seq) = + JSXHelper.createElementWithChild "marker" children + [] static member inline mask xs = JSXHelper.createElement "mask" xs + [] - static member inline mask (children: #seq) = JSXHelper.createElementWithChild "mask" children + static member inline mask(children: #seq) = + JSXHelper.createElementWithChild "mask" children static member inline meta xs = JSXHelper.createElement "meta" xs static member inline metadata xs = JSXHelper.createElement "metadata" xs - static member inline metadata (children: #seq) = JSXHelper.createElementWithChild "metadata" children + + static member inline metadata(children: #seq) = + JSXHelper.createElementWithChild "metadata" children static member inline meter xs = JSXHelper.createElement "meter" xs - static member inline meter (value: float) = JSXHelper.createElementWithChild "meter" value - static member inline meter (value: int) = JSXHelper.createElementWithChild "meter" value - static member inline meter (value: ReactElement) = JSXHelper.createElementWithChild "meter" value - static member inline meter (value: string) = JSXHelper.createElementWithChild "meter" value - static member inline meter (children: #seq) = JSXHelper.createElementWithChild "meter" children + + static member inline meter(value: float) = + JSXHelper.createElementWithChild "meter" value + + static member inline meter(value: int) = + JSXHelper.createElementWithChild "meter" value + + static member inline meter(value: ReactElement) = + JSXHelper.createElementWithChild "meter" value + + static member inline meter(value: string) = + JSXHelper.createElementWithChild "meter" value + + static member inline meter(children: #seq) = + JSXHelper.createElementWithChild "meter" children + [] static member inline mpath xs = JSXHelper.createElement "mpath" xs + [] - static member inline mpath (children: #seq) = JSXHelper.createElementWithChild "mpath" children + static member inline mpath(children: #seq) = + JSXHelper.createElementWithChild "mpath" children + static member inline nav xs = JSXHelper.createElement "nav" xs - static member inline nav (children: #seq) = JSXHelper.createElementWithChild "nav" children + + static member inline nav(children: #seq) = + JSXHelper.createElementWithChild "nav" children /// The empty element, renders nothing on screen - static member inline none : ReactElement = unbox null + static member inline none: ReactElement = unbox null static member inline noscript xs = JSXHelper.createElement "noscript" xs - static member inline noscript (children: #seq) = JSXHelper.createElementWithChild "noscript" children + + static member inline noscript(children: #seq) = + JSXHelper.createElementWithChild "noscript" children static member inline object xs = JSXHelper.createElement "object" xs - static member inline object (children: #seq) = JSXHelper.createElementWithChild "object" children + + static member inline object(children: #seq) = + JSXHelper.createElementWithChild "object" children static member inline ol xs = JSXHelper.createElement "ol" xs - static member inline ol (children: #seq) = JSXHelper.createElementWithChild "ol" children + + static member inline ol(children: #seq) = + JSXHelper.createElementWithChild "ol" children static member inline option xs = JSXHelper.createElement "option" xs - static member inline option (value: float) = JSXHelper.createElementWithChild "option" value - static member inline option (value: int) = JSXHelper.createElementWithChild "option" value - static member inline option (value: ReactElement) = JSXHelper.createElementWithChild "option" value - static member inline option (value: string) = JSXHelper.createElementWithChild "option" value - static member inline option (children: #seq) = JSXHelper.createElementWithChild "option" children + + static member inline option(value: float) = + JSXHelper.createElementWithChild "option" value + + static member inline option(value: int) = + JSXHelper.createElementWithChild "option" value + + static member inline option(value: ReactElement) = + JSXHelper.createElementWithChild "option" value + + static member inline option(value: string) = + JSXHelper.createElementWithChild "option" value + + static member inline option(children: #seq) = + JSXHelper.createElementWithChild "option" children static member inline optgroup xs = JSXHelper.createElement "optgroup" xs - static member inline optgroup (children: #seq) = JSXHelper.createElementWithChild "optgroup" children + + static member inline optgroup(children: #seq) = + JSXHelper.createElementWithChild "optgroup" children static member inline orderedList xs = JSXHelper.createElement "ol" xs - static member inline orderedList (children: #seq) = JSXHelper.createElementWithChild "ol" children + + static member inline orderedList(children: #seq) = + JSXHelper.createElementWithChild "ol" children static member inline output xs = JSXHelper.createElement "output" xs - static member inline output (value: float) = JSXHelper.createElementWithChild "output" value - static member inline output (value: int) = JSXHelper.createElementWithChild "output" value - static member inline output (value: ReactElement) = JSXHelper.createElementWithChild "output" value - static member inline output (value: string) = JSXHelper.createElementWithChild "output" value - static member inline output (children: #seq) = JSXHelper.createElementWithChild "output" children + + static member inline output(value: float) = + JSXHelper.createElementWithChild "output" value + + static member inline output(value: int) = + JSXHelper.createElementWithChild "output" value + + static member inline output(value: ReactElement) = + JSXHelper.createElementWithChild "output" value + + static member inline output(value: string) = + JSXHelper.createElementWithChild "output" value + + static member inline output(children: #seq) = + JSXHelper.createElementWithChild "output" children static member inline p xs = JSXHelper.createElement "p" xs - static member inline p (value: float) = JSXHelper.createElementWithChild "p" value - static member inline p (value: int) = JSXHelper.createElementWithChild "p" value - static member inline p (value: ReactElement) = JSXHelper.createElementWithChild "p" value - static member inline p (value: string) = JSXHelper.createElementWithChild "p" value - static member inline p (children: #seq) = JSXHelper.createElementWithChild "p" children + + static member inline p(value: float) = + JSXHelper.createElementWithChild "p" value + + static member inline p(value: int) = + JSXHelper.createElementWithChild "p" value + + static member inline p(value: ReactElement) = + JSXHelper.createElementWithChild "p" value + + static member inline p(value: string) = + JSXHelper.createElementWithChild "p" value + + static member inline p(children: #seq) = + JSXHelper.createElementWithChild "p" children static member inline paragraph xs = JSXHelper.createElement "p" xs - static member inline paragraph (value: float) = JSXHelper.createElementWithChild "p" value - static member inline paragraph (value: int) = JSXHelper.createElementWithChild "p" value - static member inline paragraph (value: ReactElement) = JSXHelper.createElementWithChild "p" value - static member inline paragraph (value: string) = JSXHelper.createElementWithChild "p" value - static member inline paragraph (children: #seq) = JSXHelper.createElementWithChild "p" children + + static member inline paragraph(value: float) = + JSXHelper.createElementWithChild "p" value + + static member inline paragraph(value: int) = + JSXHelper.createElementWithChild "p" value + + static member inline paragraph(value: ReactElement) = + JSXHelper.createElementWithChild "p" value + + static member inline paragraph(value: string) = + JSXHelper.createElementWithChild "p" value + + static member inline paragraph(children: #seq) = + JSXHelper.createElementWithChild "p" children static member inline param xs = JSXHelper.createElement "param" xs + [] static member inline path xs = JSXHelper.createElement "path" xs + [] - static member inline path (children: #seq) = JSXHelper.createElementWithChild "path" children + static member inline path(children: #seq) = + JSXHelper.createElementWithChild "path" children + [] static member inline pattern xs = JSXHelper.createElement "pattern" xs + [] - static member inline pattern (children: #seq) = JSXHelper.createElementWithChild "pattern" children + static member inline pattern(children: #seq) = + JSXHelper.createElementWithChild "pattern" children + static member inline picture xs = JSXHelper.createElement "picture" xs - static member inline picture (children: #seq) = JSXHelper.createElementWithChild "picture" children + + static member inline picture(children: #seq) = + JSXHelper.createElementWithChild "picture" children + [] static member inline polygon xs = JSXHelper.createElement "polygon" xs + [] - static member inline polygon (children: #seq) = JSXHelper.createElementWithChild "polygon" children + static member inline polygon(children: #seq) = + JSXHelper.createElementWithChild "polygon" children + [] static member inline polyline xs = JSXHelper.createElement "polyline" xs + [] - static member inline polyline (children: #seq) = JSXHelper.createElementWithChild "polyline" children + static member inline polyline(children: #seq) = + JSXHelper.createElementWithChild "polyline" children + static member inline pre xs = JSXHelper.createElement "pre" xs - static member inline pre (value: bool) = JSXHelper.createElementWithChild "pre" value - static member inline pre (value: float) = JSXHelper.createElementWithChild "pre" value - static member inline pre (value: int) = JSXHelper.createElementWithChild "pre" value - static member inline pre (value: ReactElement) = JSXHelper.createElementWithChild "pre" value - static member inline pre (value: string) = JSXHelper.createElementWithChild "pre" value - static member inline pre (children: #seq) = JSXHelper.createElementWithChild "pre" children + + static member inline pre(value: bool) = + JSXHelper.createElementWithChild "pre" value + + static member inline pre(value: float) = + JSXHelper.createElementWithChild "pre" value + + static member inline pre(value: int) = + JSXHelper.createElementWithChild "pre" value + + static member inline pre(value: ReactElement) = + JSXHelper.createElementWithChild "pre" value + + static member inline pre(value: string) = + JSXHelper.createElementWithChild "pre" value + + static member inline pre(children: #seq) = + JSXHelper.createElementWithChild "pre" children static member inline progress xs = JSXHelper.createElement "progress" xs - static member inline progress (children: #seq) = JSXHelper.createElementWithChild "progress" children + + static member inline progress(children: #seq) = + JSXHelper.createElementWithChild "progress" children static member inline q xs = JSXHelper.createElement "q" xs - static member inline q (children: #seq) = JSXHelper.createElementWithChild "q" children + + static member inline q(children: #seq) = + JSXHelper.createElementWithChild "q" children + [] - static member inline radialGradient xs = JSXHelper.createElement "radialGradient" xs + static member inline radialGradient xs = + JSXHelper.createElement "radialGradient" xs + [] - static member inline radialGradient (children: #seq) = JSXHelper.createElementWithChild "radialGradient" children + static member inline radialGradient(children: #seq) = + JSXHelper.createElementWithChild "radialGradient" children static member inline rb xs = JSXHelper.createElement "rb" xs - static member inline rb (value: float) = JSXHelper.createElementWithChild "rb" value - static member inline rb (value: int) = JSXHelper.createElementWithChild "rb" value - static member inline rb (value: ReactElement) = JSXHelper.createElementWithChild "rb" value - static member inline rb (value: string) = JSXHelper.createElementWithChild "rb" value - static member inline rb (children: #seq) = JSXHelper.createElementWithChild "rb" children + + static member inline rb(value: float) = + JSXHelper.createElementWithChild "rb" value + + static member inline rb(value: int) = + JSXHelper.createElementWithChild "rb" value + + static member inline rb(value: ReactElement) = + JSXHelper.createElementWithChild "rb" value + + static member inline rb(value: string) = + JSXHelper.createElementWithChild "rb" value + + static member inline rb(children: #seq) = + JSXHelper.createElementWithChild "rb" children + [] static member inline rect xs = JSXHelper.createElement "rect" xs + [] - static member inline rect (children: #seq) = JSXHelper.createElementWithChild "rect" children + static member inline rect(children: #seq) = + JSXHelper.createElementWithChild "rect" children static member inline rp xs = JSXHelper.createElement "rp" xs - static member inline rp (value: float) = JSXHelper.createElementWithChild "rp" value - static member inline rp (value: int) = JSXHelper.createElementWithChild "rp" value - static member inline rp (value: ReactElement) = JSXHelper.createElementWithChild "rp" value - static member inline rp (value: string) = JSXHelper.createElementWithChild "rp" value - static member inline rp (children: #seq) = JSXHelper.createElementWithChild "rp" children + + static member inline rp(value: float) = + JSXHelper.createElementWithChild "rp" value + + static member inline rp(value: int) = + JSXHelper.createElementWithChild "rp" value + + static member inline rp(value: ReactElement) = + JSXHelper.createElementWithChild "rp" value + + static member inline rp(value: string) = + JSXHelper.createElementWithChild "rp" value + + static member inline rp(children: #seq) = + JSXHelper.createElementWithChild "rp" children static member inline rt xs = JSXHelper.createElement "rt" xs - static member inline rt (value: float) = JSXHelper.createElementWithChild "rt" value - static member inline rt (value: int) = JSXHelper.createElementWithChild "rt" value - static member inline rt (value: ReactElement) = JSXHelper.createElementWithChild "rt" value - static member inline rt (value: string) = JSXHelper.createElementWithChild "rt" value - static member inline rt (children: #seq) = JSXHelper.createElementWithChild "rt" children + + static member inline rt(value: float) = + JSXHelper.createElementWithChild "rt" value + + static member inline rt(value: int) = + JSXHelper.createElementWithChild "rt" value + + static member inline rt(value: ReactElement) = + JSXHelper.createElementWithChild "rt" value + + static member inline rt(value: string) = + JSXHelper.createElementWithChild "rt" value + + static member inline rt(children: #seq) = + JSXHelper.createElementWithChild "rt" children static member inline rtc xs = JSXHelper.createElement "rtc" xs - static member inline rtc (value: float) = JSXHelper.createElementWithChild "rtc" value - static member inline rtc (value: int) = JSXHelper.createElementWithChild "rtc" value - static member inline rtc (value: ReactElement) = JSXHelper.createElementWithChild "rtc" value - static member inline rtc (value: string) = JSXHelper.createElementWithChild "rtc" value - static member inline rtc (children: #seq) = JSXHelper.createElementWithChild "rtc" children + + static member inline rtc(value: float) = + JSXHelper.createElementWithChild "rtc" value + + static member inline rtc(value: int) = + JSXHelper.createElementWithChild "rtc" value + + static member inline rtc(value: ReactElement) = + JSXHelper.createElementWithChild "rtc" value + + static member inline rtc(value: string) = + JSXHelper.createElementWithChild "rtc" value + + static member inline rtc(children: #seq) = + JSXHelper.createElementWithChild "rtc" children static member inline ruby xs = JSXHelper.createElement "ruby" xs - static member inline ruby (value: float) = JSXHelper.createElementWithChild "ruby" value - static member inline ruby (value: int) = JSXHelper.createElementWithChild "ruby" value - static member inline ruby (value: ReactElement) = JSXHelper.createElementWithChild "ruby" value - static member inline ruby (value: string) = JSXHelper.createElementWithChild "ruby" value - static member inline ruby (children: #seq) = JSXHelper.createElementWithChild "ruby" children + + static member inline ruby(value: float) = + JSXHelper.createElementWithChild "ruby" value + + static member inline ruby(value: int) = + JSXHelper.createElementWithChild "ruby" value + + static member inline ruby(value: ReactElement) = + JSXHelper.createElementWithChild "ruby" value + + static member inline ruby(value: string) = + JSXHelper.createElementWithChild "ruby" value + + static member inline ruby(children: #seq) = + JSXHelper.createElementWithChild "ruby" children static member inline s xs = JSXHelper.createElement "s" xs - static member inline s (value: float) = JSXHelper.createElementWithChild "s" value - static member inline s (value: int) = JSXHelper.createElementWithChild "s" value - static member inline s (value: ReactElement) = JSXHelper.createElementWithChild "s" value - static member inline s (value: string) = JSXHelper.createElementWithChild "s" value - static member inline s (children: #seq) = JSXHelper.createElementWithChild "s" children + + static member inline s(value: float) = + JSXHelper.createElementWithChild "s" value + + static member inline s(value: int) = + JSXHelper.createElementWithChild "s" value + + static member inline s(value: ReactElement) = + JSXHelper.createElementWithChild "s" value + + static member inline s(value: string) = + JSXHelper.createElementWithChild "s" value + + static member inline s(children: #seq) = + JSXHelper.createElementWithChild "s" children static member inline samp xs = JSXHelper.createElement "samp" xs - static member inline samp (value: float) = JSXHelper.createElementWithChild "samp" value - static member inline samp (value: int) = JSXHelper.createElementWithChild "samp" value - static member inline samp (value: ReactElement) = JSXHelper.createElementWithChild "samp" value - static member inline samp (value: string) = JSXHelper.createElementWithChild "samp" value - static member inline samp (children: #seq) = JSXHelper.createElementWithChild "samp" children + + static member inline samp(value: float) = + JSXHelper.createElementWithChild "samp" value + + static member inline samp(value: int) = + JSXHelper.createElementWithChild "samp" value + + static member inline samp(value: ReactElement) = + JSXHelper.createElementWithChild "samp" value + + static member inline samp(value: string) = + JSXHelper.createElementWithChild "samp" value + + static member inline samp(children: #seq) = + JSXHelper.createElementWithChild "samp" children static member inline script xs = JSXHelper.createElement "script" xs - static member inline script (children: #seq) = JSXHelper.createElementWithChild "script" children + + static member inline script(children: #seq) = + JSXHelper.createElementWithChild "script" children static member inline section xs = JSXHelper.createElement "section" xs - static member inline section (children: #seq) = JSXHelper.createElementWithChild "section" children + + static member inline section(children: #seq) = + JSXHelper.createElementWithChild "section" children static member inline select xs = JSXHelper.createElement "select" xs - static member inline select (children: #seq) = JSXHelper.createElementWithChild "select" children + + static member inline select(children: #seq) = + JSXHelper.createElementWithChild "select" children + [] static member inline set xs = JSXHelper.createElement "set" xs + [] - static member inline set (children: #seq) = JSXHelper.createElementWithChild "set" children + static member inline set(children: #seq) = + JSXHelper.createElementWithChild "set" children static member inline small xs = JSXHelper.createElement "small" xs - static member inline small (value: float) = JSXHelper.createElementWithChild "small" value - static member inline small (value: int) = JSXHelper.createElementWithChild "small" value - static member inline small (value: ReactElement) = JSXHelper.createElementWithChild "small" value - static member inline small (value: string) = JSXHelper.createElementWithChild "small" value - static member inline small (children: #seq) = JSXHelper.createElementWithChild "small" children + + static member inline small(value: float) = + JSXHelper.createElementWithChild "small" value + + static member inline small(value: int) = + JSXHelper.createElementWithChild "small" value + + static member inline small(value: ReactElement) = + JSXHelper.createElementWithChild "small" value + + static member inline small(value: string) = + JSXHelper.createElementWithChild "small" value + + static member inline small(children: #seq) = + JSXHelper.createElementWithChild "small" children static member inline source xs = JSXHelper.createElement "source" xs static member inline span xs = JSXHelper.createElement "span" xs - static member inline span (value: float) = JSXHelper.createElementWithChild "span" value - static member inline span (value: int) = JSXHelper.createElementWithChild "span" value - static member inline span (value: ReactElement) = JSXHelper.createElementWithChild "span" value - static member inline span (value: string) = JSXHelper.createElementWithChild "span" value - static member inline span (children: #seq) = JSXHelper.createElementWithChild "span" children + + static member inline span(value: float) = + JSXHelper.createElementWithChild "span" value + + static member inline span(value: int) = + JSXHelper.createElementWithChild "span" value + + static member inline span(value: ReactElement) = + JSXHelper.createElementWithChild "span" value + + static member inline span(value: string) = + JSXHelper.createElementWithChild "span" value + + static member inline span(children: #seq) = + JSXHelper.createElementWithChild "span" children + [] static member inline stop xs = JSXHelper.createElement "stop" xs + [] - static member inline stop (children: #seq) = JSXHelper.createElementWithChild "stop" children + static member inline stop(children: #seq) = + JSXHelper.createElementWithChild "stop" children static member inline strong xs = JSXHelper.createElement "strong" xs - static member inline strong (value: float) = JSXHelper.createElementWithChild "strong" value - static member inline strong (value: int) = JSXHelper.createElementWithChild "strong" value - static member inline strong (value: ReactElement) = JSXHelper.createElementWithChild "strong" value - static member inline strong (value: string) = JSXHelper.createElementWithChild "strong" value - static member inline strong (children: #seq) = JSXHelper.createElementWithChild "strong" children + + static member inline strong(value: float) = + JSXHelper.createElementWithChild "strong" value + + static member inline strong(value: int) = + JSXHelper.createElementWithChild "strong" value + + static member inline strong(value: ReactElement) = + JSXHelper.createElementWithChild "strong" value + + static member inline strong(value: string) = + JSXHelper.createElementWithChild "strong" value + + static member inline strong(children: #seq) = + JSXHelper.createElementWithChild "strong" children static member inline style xs = JSXHelper.createElement "style" xs - static member inline style (value: string) = JSXHelper.createElementWithChild "style" value + + static member inline style(value: string) = + JSXHelper.createElementWithChild "style" value static member inline sub xs = JSXHelper.createElement "sub" xs - static member inline sub (value: float) = JSXHelper.createElementWithChild "sub" value - static member inline sub (value: int) = JSXHelper.createElementWithChild "sub" value - static member inline sub (value: ReactElement) = JSXHelper.createElementWithChild "sub" value - static member inline sub (value: string) = JSXHelper.createElementWithChild "sub" value - static member inline sub (children: #seq) = JSXHelper.createElementWithChild "sub" children + + static member inline sub(value: float) = + JSXHelper.createElementWithChild "sub" value + + static member inline sub(value: int) = + JSXHelper.createElementWithChild "sub" value + + static member inline sub(value: ReactElement) = + JSXHelper.createElementWithChild "sub" value + + static member inline sub(value: string) = + JSXHelper.createElementWithChild "sub" value + + static member inline sub(children: #seq) = + JSXHelper.createElementWithChild "sub" children static member inline summary xs = JSXHelper.createElement "summary" xs - static member inline summary (value: float) = JSXHelper.createElementWithChild "summary" value - static member inline summary (value: int) = JSXHelper.createElementWithChild "summary" value - static member inline summary (value: ReactElement) = JSXHelper.createElementWithChild "summary" value - static member inline summary (value: string) = JSXHelper.createElementWithChild "summary" value - static member inline summary (children: #seq) = JSXHelper.createElementWithChild "summary" children + + static member inline summary(value: float) = + JSXHelper.createElementWithChild "summary" value + + static member inline summary(value: int) = + JSXHelper.createElementWithChild "summary" value + + static member inline summary(value: ReactElement) = + JSXHelper.createElementWithChild "summary" value + + static member inline summary(value: string) = + JSXHelper.createElementWithChild "summary" value + + static member inline summary(children: #seq) = + JSXHelper.createElementWithChild "summary" children static member inline sup xs = JSXHelper.createElement "sup" xs - static member inline sup (value: float) = JSXHelper.createElementWithChild "sup" value - static member inline sup (value: int) = JSXHelper.createElementWithChild "sup" value - static member inline sup (value: ReactElement) = JSXHelper.createElementWithChild "sup" value - static member inline sup (value: string) = JSXHelper.createElementWithChild "sup" value - static member inline sup (children: #seq) = JSXHelper.createElementWithChild "sup" children + + static member inline sup(value: float) = + JSXHelper.createElementWithChild "sup" value + + static member inline sup(value: int) = + JSXHelper.createElementWithChild "sup" value + + static member inline sup(value: ReactElement) = + JSXHelper.createElementWithChild "sup" value + + static member inline sup(value: string) = + JSXHelper.createElementWithChild "sup" value + + static member inline sup(children: #seq) = + JSXHelper.createElementWithChild "sup" children [] static member inline svg xs = JSXHelper.createElement "svg" xs + [] - static member inline svg (children: #seq) = JSXHelper.createElementWithChild "svg" children + static member inline svg(children: #seq) = + JSXHelper.createElementWithChild "svg" children + [] static member inline switch xs = JSXHelper.createElement "switch" xs + [] - static member inline switch (children: #seq) = JSXHelper.createElementWithChild "switch" children + static member inline switch(children: #seq) = + JSXHelper.createElementWithChild "switch" children + [] static member inline symbol xs = JSXHelper.createElement "symbol" xs + [] - static member inline symbol (children: #seq) = JSXHelper.createElementWithChild "symbol" children + static member inline symbol(children: #seq) = + JSXHelper.createElementWithChild "symbol" children static member inline table xs = JSXHelper.createElement "table" xs - static member inline table (children: #seq) = JSXHelper.createElementWithChild "table" children + + static member inline table(children: #seq) = + JSXHelper.createElementWithChild "table" children static member inline tableBody xs = JSXHelper.createElement "tbody" xs - static member inline tableBody (children: #seq) = JSXHelper.createElementWithChild "tbody" children + + static member inline tableBody(children: #seq) = + JSXHelper.createElementWithChild "tbody" children static member inline tableCell xs = JSXHelper.createElement "td" xs - static member inline tableCell (children: #seq) = JSXHelper.createElementWithChild "td" children + + static member inline tableCell(children: #seq) = + JSXHelper.createElementWithChild "td" children static member inline tableHeader xs = JSXHelper.createElement "th" xs - static member inline tableHeader (children: #seq) = JSXHelper.createElementWithChild "th" children + + static member inline tableHeader(children: #seq) = + JSXHelper.createElementWithChild "th" children static member inline tableRow xs = JSXHelper.createElement "tr" xs - static member inline tableRow (children: #seq) = JSXHelper.createElementWithChild "tr" children + + static member inline tableRow(children: #seq) = + JSXHelper.createElementWithChild "tr" children static member inline tbody xs = JSXHelper.createElement "tbody" xs - static member inline tbody (children: #seq) = JSXHelper.createElementWithChild "tbody" children + + static member inline tbody(children: #seq) = + JSXHelper.createElementWithChild "tbody" children static member inline td xs = JSXHelper.createElement "td" xs - static member inline td (value: float) = JSXHelper.createElementWithChild "td" value - static member inline td (value: int) = JSXHelper.createElementWithChild "td" value - static member inline td (value: ReactElement) = JSXHelper.createElementWithChild "td" value - static member inline td (value: string) = JSXHelper.createElementWithChild "td" value - static member inline td (children: #seq) = JSXHelper.createElementWithChild "td" children + + static member inline td(value: float) = + JSXHelper.createElementWithChild "td" value + + static member inline td(value: int) = + JSXHelper.createElementWithChild "td" value + + static member inline td(value: ReactElement) = + JSXHelper.createElementWithChild "td" value + + static member inline td(value: string) = + JSXHelper.createElementWithChild "td" value + + static member inline td(children: #seq) = + JSXHelper.createElementWithChild "td" children static member inline template xs = JSXHelper.createElement "template" xs - static member inline template (children: #seq) = JSXHelper.createElementWithChild "template" children + + static member inline template(children: #seq) = + JSXHelper.createElementWithChild "template" children [ SVG elements. Use Svg.text instead">] static member inline text xs = JSXHelper.createElement "text" xs - static member inline text (value: float) : ReactElement = unbox value - static member inline text (value: int) : ReactElement = unbox value - static member inline text (value: string) : ReactElement = unbox value - static member inline text (value: Guid) : ReactElement = unbox (string value) + + static member inline text(value: float) : ReactElement = unbox value + static member inline text(value: int) : ReactElement = unbox value + static member inline text(value: string) : ReactElement = unbox value + static member inline text(value: Guid) : ReactElement = unbox (string value) static member inline textf fmt = Printf.kprintf Html.text fmt static member inline textarea xs = JSXHelper.createElement "textarea" xs - static member inline textarea (children: #seq) = JSXHelper.createElementWithChild "textarea" children + + static member inline textarea(children: #seq) = + JSXHelper.createElementWithChild "textarea" children + [] static member inline textPath xs = JSXHelper.createElement "textPath" xs + [] - static member inline textPath (children: #seq) = JSXHelper.createElementWithChild "textPath" children + static member inline textPath(children: #seq) = + JSXHelper.createElementWithChild "textPath" children static member inline tfoot xs = JSXHelper.createElement "tfoot" xs - static member inline tfoot (children: #seq) = JSXHelper.createElementWithChild "tfoot" children + + static member inline tfoot(children: #seq) = + JSXHelper.createElementWithChild "tfoot" children static member inline th xs = JSXHelper.createElement "th" xs - static member inline th (value: float) = JSXHelper.createElementWithChild "th" value - static member inline th (value: int) = JSXHelper.createElementWithChild "th" value - static member inline th (value: ReactElement) = JSXHelper.createElementWithChild "th" value - static member inline th (value: string) = JSXHelper.createElementWithChild "th" value - static member inline th (children: #seq) = JSXHelper.createElementWithChild "th" children + + static member inline th(value: float) = + JSXHelper.createElementWithChild "th" value + + static member inline th(value: int) = + JSXHelper.createElementWithChild "th" value + + static member inline th(value: ReactElement) = + JSXHelper.createElementWithChild "th" value + + static member inline th(value: string) = + JSXHelper.createElementWithChild "th" value + + static member inline th(children: #seq) = + JSXHelper.createElementWithChild "th" children static member inline thead xs = JSXHelper.createElement "thead" xs - static member inline thead (children: #seq) = JSXHelper.createElementWithChild "thead" children + + static member inline thead(children: #seq) = + JSXHelper.createElementWithChild "thead" children static member inline time xs = JSXHelper.createElement "time" xs - static member inline time (children: #seq) = JSXHelper.createElementWithChild "time" children + + static member inline time(children: #seq) = + JSXHelper.createElementWithChild "time" children + static member inline title xs = JSXHelper.createElement "title" xs - static member inline title (value: float) = JSXHelper.createElementWithChild "title" value - static member inline title (value: int) = JSXHelper.createElementWithChild "title" value - static member inline title (value: ReactElement) = JSXHelper.createElementWithChild "title" value - static member inline title (value: string) = JSXHelper.createElementWithChild "title" value - static member inline title (children: #seq) = JSXHelper.createElementWithChild "title" children + + static member inline title(value: float) = + JSXHelper.createElementWithChild "title" value + + static member inline title(value: int) = + JSXHelper.createElementWithChild "title" value + + static member inline title(value: ReactElement) = + JSXHelper.createElementWithChild "title" value + + static member inline title(value: string) = + JSXHelper.createElementWithChild "title" value + + static member inline title(children: #seq) = + JSXHelper.createElementWithChild "title" children + static member inline tr xs = JSXHelper.createElement "tr" xs - static member inline tr (children: #seq) = JSXHelper.createElementWithChild "tr" children + + static member inline tr(children: #seq) = + JSXHelper.createElementWithChild "tr" children static member inline track xs = JSXHelper.createElement "track" xs + [] static member inline tspan xs = JSXHelper.createElement "tspan" xs + [] - static member inline tspan (children: #seq) = JSXHelper.createElementWithChild "tspan" children + static member inline tspan(children: #seq) = + JSXHelper.createElementWithChild "tspan" children static member inline u xs = JSXHelper.createElement "u" xs - static member inline u (value: float) = JSXHelper.createElementWithChild "u" value - static member inline u (value: int) = JSXHelper.createElementWithChild "u" value - static member inline u (value: ReactElement) = JSXHelper.createElementWithChild "u" value - static member inline u (value: string) = JSXHelper.createElementWithChild "u" value - static member inline u (children: #seq) = JSXHelper.createElementWithChild "u" children + + static member inline u(value: float) = + JSXHelper.createElementWithChild "u" value + + static member inline u(value: int) = + JSXHelper.createElementWithChild "u" value + + static member inline u(value: ReactElement) = + JSXHelper.createElementWithChild "u" value + + static member inline u(value: string) = + JSXHelper.createElementWithChild "u" value + + static member inline u(children: #seq) = + JSXHelper.createElementWithChild "u" children static member inline ul xs = JSXHelper.createElement "ul" xs - static member inline ul (children: #seq) = JSXHelper.createElementWithChild "ul" children + + static member inline ul(children: #seq) = + JSXHelper.createElementWithChild "ul" children static member inline unorderedList xs = JSXHelper.createElement "ul" xs - static member inline unorderedList (children: #seq) = JSXHelper.createElementWithChild "ul" children + + static member inline unorderedList(children: #seq) = + JSXHelper.createElementWithChild "ul" children + [] static member inline use' xs = JSXHelper.createElement "use" xs + [] - static member inline use' (children: #seq) = JSXHelper.createElementWithChild "use" children + static member inline use'(children: #seq) = + JSXHelper.createElementWithChild "use" children + static member inline var xs = JSXHelper.createElement "var" xs - static member inline var (value: float) = JSXHelper.createElementWithChild "var" value - static member inline var (value: int) = JSXHelper.createElementWithChild "var" value - static member inline var (value: ReactElement) = JSXHelper.createElementWithChild "var" value - static member inline var (value: string) = JSXHelper.createElementWithChild "var" value - static member inline var (children: #seq) = JSXHelper.createElementWithChild "var" children + + static member inline var(value: float) = + JSXHelper.createElementWithChild "var" value + + static member inline var(value: int) = + JSXHelper.createElementWithChild "var" value + + static member inline var(value: ReactElement) = + JSXHelper.createElementWithChild "var" value + + static member inline var(value: string) = + JSXHelper.createElementWithChild "var" value + + static member inline var(children: #seq) = + JSXHelper.createElementWithChild "var" children static member inline video xs = JSXHelper.createElement "video" xs - static member inline video (children: #seq) = JSXHelper.createElementWithChild "video" children + + static member inline video(children: #seq) = + JSXHelper.createElementWithChild "video" children + [] static member inline view xs = JSXHelper.createElement "view" xs + [] - static member inline view (children: #seq) = JSXHelper.createElementWithChild "view" children + static member inline view(children: #seq) = + JSXHelper.createElementWithChild "view" children static member inline wbr xs = JSXHelper.createElement "wbr" xs diff --git a/src/Feliz/Properties.fs b/src/Feliz/Properties.fs index 17bf32d1..e742fba7 100644 --- a/src/Feliz/Properties.fs +++ b/src/Feliz/Properties.fs @@ -13,6 +13,7 @@ module PropHelper = [] let inline objectEntries (value: obj) : (string * obj)[] = jsNative + [] type AriaDropEffect = /// A duplicate of the source object will be dropped into the target. @@ -50,28 +51,30 @@ type AriaRelevant = module PropHelpers = let createClockValue (duration: System.TimeSpan) = let inline emptyZero i = - if i < 10 then "0" + (unbox i) - else unbox i + if i < 10 then "0" + (unbox i) else unbox i - [ duration.Hours - duration.Minutes - duration.Seconds ] + [ duration.Hours; duration.Minutes; duration.Seconds ] |> List.map emptyZero |> String.concat ":" |> fun res -> res + "." + (emptyZero duration.Milliseconds) let createKeySplines (values: seq) = values - |> Seq.map (fun (x1,y1,x2,y2) -> - (unbox x1) + " " + - (unbox y1) + " " + - (unbox x2) + " " + - (unbox y2)) + |> Seq.map (fun (x1, y1, x2, y2) -> + (unbox x1) + + " " + + (unbox y1) + + " " + + (unbox x2) + + " " + + (unbox y2) + ) |> String.concat "; " let createOnKey (key: IKeyboardKey, handler: KeyboardEvent -> unit) = fun (ev: KeyboardEvent) -> let (pressedKey: string, ctrl: bool, shift: bool) = unbox key + match ctrl, shift with | true, true when pressedKey.ToLower() = ev.key.ToLower() && ev.ctrlKey && ev.shiftKey -> handler ev | true, false when pressedKey.ToLower() = ev.key.ToLower() && ev.ctrlKey -> handler ev @@ -81,104 +84,112 @@ module PropHelpers = let createPointsFloat (coordinates: seq) = coordinates - |> Seq.map (fun (x,y) -> (unbox x) + "," + (unbox y)) + |> Seq.map (fun (x, y) -> (unbox x) + "," + (unbox y)) |> String.concat " " let createPointsInt (coordinates: seq) = coordinates - |> Seq.map (fun (x,y) -> (unbox x) + "," + (unbox y)) + |> Seq.map (fun (x, y) -> (unbox x) + "," + (unbox y)) |> String.concat " " let createSvgPathFloat (path: seq) = path |> Seq.map (fun (cmdType, cmds) -> - if cmds.Length = 0 then unbox cmdType + if cmds.Length = 0 then + unbox cmdType else cmds |> Seq.map (unbox> >> String.concat ",") |> String.concat " " - |> fun res -> (unbox cmdType) + " " + res) + |> fun res -> (unbox cmdType) + " " + res + ) |> String.concat System.Environment.NewLine let createSvgPathInt (path: seq) = path |> Seq.map (fun (cmdType, cmds) -> - if cmds.Length = 0 then unbox cmdType + if cmds.Length = 0 then + unbox cmdType else cmds |> Seq.map (unbox> >> String.concat ",") |> String.concat " " - |> fun res -> (unbox cmdType) + " " + res) + |> fun res -> (unbox cmdType) + " " + res + ) |> String.concat System.Environment.NewLine let dateTimeValueFunc (value: System.DateTime option) (includeTime: bool) = match value with | None -> "" | Some date -> - if includeTime - then (date.ToString("yyyy-MM-ddThh:mm")) - else (date.ToString("yyyy-MM-dd")) + if includeTime then + (date.ToString("yyyy-MM-ddThh:mm")) + else + (date.ToString("yyyy-MM-dd")) /// Represents the native Html properties. [] type prop = /// List of types the server accepts, typically a file type. - static member inline accept (value: string) = PropHelper.mkAttr "accept" value + static member inline accept(value: string) = PropHelper.mkAttr "accept" value /// List of supported charsets. - static member inline acceptCharset (value: string) = PropHelper.mkAttr "acceptCharset" value + static member inline acceptCharset(value: string) = PropHelper.mkAttr "acceptCharset" value /// Defines a keyboard shortcut to activate or add focus to the element. - static member inline accessKey (value: string) = PropHelper.mkAttr "accessKey" value + static member inline accessKey(value: string) = PropHelper.mkAttr "accessKey" value /// The URI of a program that processes the information submitted via the form. - static member inline action (value: string) = PropHelper.mkAttr "action" value + static member inline action(value: string) = PropHelper.mkAttr "action" value /// Alternative text in case an image can't be displayed. - static member inline alt (value: string) = PropHelper.mkAttr "alt" value + static member inline alt(value: string) = PropHelper.mkAttr "alt" value /// Controls the amplitude of the gamma function of a component transfer element when /// its type attribute is gamma. - static member inline amplitude (value: float) = PropHelper.mkAttr "amplitude" value + static member inline amplitude(value: float) = PropHelper.mkAttr "amplitude" value /// Controls the amplitude of the gamma function of a component transfer element when /// its type attribute is gamma. - static member inline amplitude (value: int) = PropHelper.mkAttr "amplitude" value + static member inline amplitude(value: int) = PropHelper.mkAttr "amplitude" value /// Identifies the currently active descendant of a `composite` widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-activedescendant - static member inline ariaActiveDescendant (id: string) = PropHelper.mkAttr "aria-activedescendant" id + static member inline ariaActiveDescendant(id: string) = + PropHelper.mkAttr "aria-activedescendant" id /// Indicates whether assistive technologies will present all, or only parts /// of, the changed region based on the change notifications defined by the /// `aria-relevant` attribute. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-atomic - static member inline ariaAtomic (value: bool) = PropHelper.mkAttr "aria-atomic" value + static member inline ariaAtomic(value: bool) = PropHelper.mkAttr "aria-atomic" value /// Indicates whether an element, and its subtree, are currently being /// updated. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-busy - static member inline ariaBusy (value: bool) = PropHelper.mkAttr "aria-busy" value + static member inline ariaBusy(value: bool) = PropHelper.mkAttr "aria-busy" value /// Indicates the current "checked" state of checkboxes, radio buttons, and /// other widgets. See related `aria-pressed` and `aria-selected`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-checked - static member inline ariaChecked (value: bool) = PropHelper.mkAttr "aria-checked" value + static member inline ariaChecked(value: bool) = PropHelper.mkAttr "aria-checked" value /// Identifies the element (or elements) whose contents or presence are /// controlled by the current element. See related `aria-owns`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-controls - static member inline ariaControls ([] ids: string []) = PropHelper.mkAttr "aria-controls" (String.concat " " ids) + static member inline ariaControls([] ids: string[]) = + PropHelper.mkAttr "aria-controls" (String.concat " " ids) /// Specifies a URI referencing content that describes the object. See /// related `aria-describedby`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-describedat - static member inline ariaDescribedAt (uri: string) = PropHelper.mkAttr "aria-describedat" uri + static member inline ariaDescribedAt(uri: string) = + PropHelper.mkAttr "aria-describedat" uri /// Identifies the element (or elements) that describes the object. See /// related `aria-describedat` and `aria-labelledby`. @@ -189,14 +200,15 @@ type prop = /// verbose information. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-describedby - static member inline ariaDescribedBy ([] ids: string []) = PropHelper.mkAttr "aria-describedby" (String.concat " " ids) + static member inline ariaDescribedBy([] ids: string[]) = + PropHelper.mkAttr "aria-describedby" (String.concat " " ids) /// Indicates that the element is perceivable but disabled, so it is not /// editable or otherwise operable. See related `aria-hidden` and /// `aria-readonly`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-disabled - static member inline ariaDisabled (value: bool) = PropHelper.mkAttr "aria-disabled" value + static member inline ariaDisabled(value: bool) = PropHelper.mkAttr "aria-disabled" value /// Indicates what functions can be performed when the dragged object is /// released on the drop target. This allows assistive technologies to @@ -207,20 +219,22 @@ type prop = /// dependent on the object being dragged. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-dropeffect - static member inline ariaDropEffect ([] values: AriaDropEffect []) = PropHelper.mkAttr "aria-dropeffect" (values |> unbox |> String.concat " ") + static member inline ariaDropEffect([] values: AriaDropEffect[]) = + PropHelper.mkAttr "aria-dropeffect" (values |> unbox |> String.concat " ") /// Indicates whether the element, or another grouping element it controls, /// is currently expanded or collapsed. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-expanded - static member inline ariaExpanded (value: bool) = PropHelper.mkAttr "aria-expanded" value + static member inline ariaExpanded(value: bool) = PropHelper.mkAttr "aria-expanded" value /// Identifies the next element (or elements) in an alternate reading order /// of content which, at the user's discretion, allows assistive technology /// to override the general default of reading in document source order. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-flowto - static member inline ariaFlowTo ([] ids: string []) = PropHelper.mkAttr "aria-flowto" (String.concat " " ids) + static member inline ariaFlowTo([] ids: string[]) = + PropHelper.mkAttr "aria-flowto" (String.concat " " ids) /// Indicates an element's "grabbed" state in a drag-and-drop operation. /// @@ -230,31 +244,31 @@ type prop = /// element cannot be grabbed (default). /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-grabbed - static member inline ariaGrabbed (value: bool) = PropHelper.mkAttr "aria-grabbed" value + static member inline ariaGrabbed(value: bool) = PropHelper.mkAttr "aria-grabbed" value /// Indicates that the element has a popup context menu or sub-level menu. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-haspopup - static member inline ariaHasPopup (value: bool) = PropHelper.mkAttr "aria-haspopup" value + static member inline ariaHasPopup(value: bool) = PropHelper.mkAttr "aria-haspopup" value /// Indicates that the element and all of its descendants are not visible or /// perceivable to any user as implemented by the author. See related /// `aria-disabled`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-hidden - static member inline ariaHidden (value: bool) = PropHelper.mkAttr "aria-hidden" value + static member inline ariaHidden(value: bool) = PropHelper.mkAttr "aria-hidden" value /// Indicates the entered value does not conform to the format expected by /// the application. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-invalid - static member inline ariaInvalid (value: bool) = PropHelper.mkAttr "aria-invalid" value + static member inline ariaInvalid(value: bool) = PropHelper.mkAttr "aria-invalid" value /// Defines a string value that labels the current element. See related /// `aria-labelledby`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-label - static member inline ariaLabel (value: string) = PropHelper.mkAttr "aria-label" value + static member inline ariaLabel(value: string) = PropHelper.mkAttr "aria-label" value /// Defines the hierarchical level of an element within a structure. /// @@ -265,25 +279,28 @@ type prop = /// equal to 1. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-level - static member inline ariaLevel (value: int) = PropHelper.mkAttr "aria-level" value + static member inline ariaLevel(value: int) = PropHelper.mkAttr "aria-level" value /// Identifies the element (or elements) that labels the current element. /// See related `aria-label` and `aria-describedby`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-labelledby - static member inline ariaLabelledBy ([] ids: string []) = PropHelper.mkAttr "aria-labelledby" (String.concat " " ids) + static member inline ariaLabelledBy([] ids: string[]) = + PropHelper.mkAttr "aria-labelledby" (String.concat " " ids) /// Indicates whether a text box accepts multiple lines of input or only a /// single line. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-multiline - static member inline ariaMultiLine (value: bool) = PropHelper.mkAttr "aria-multiline" value + static member inline ariaMultiLine(value: bool) = + PropHelper.mkAttr "aria-multiline" value /// Indicates that the user may select more than one item from the current /// selectable descendants. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-multiselectable - static member inline ariaMultiSelectable (value: bool) = PropHelper.mkAttr "aria-multiselectable" value + static member inline ariaMultiSelectable(value: bool) = + PropHelper.mkAttr "aria-multiselectable" value /// Identifies an element (or elements) in order to define a visual, /// functional, or contextual parent/child relationship between DOM elements @@ -291,173 +308,186 @@ type prop = /// See related `aria-controls`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-owns - static member inline ariaOwns ([] ids: string []) = PropHelper.mkAttr "aria-owns" (String.concat " " ids) + static member inline ariaOwns([] ids: string[]) = + PropHelper.mkAttr "aria-owns" (String.concat " " ids) /// Indicates the current "pressed" state of toggle buttons. See related /// `aria-checked` and `aria-selected`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-pressed - static member inline ariaPressed (value: bool) = PropHelper.mkAttr "aria-pressed" value + static member inline ariaPressed(value: bool) = PropHelper.mkAttr "aria-pressed" value /// Defines an element's number or position in the current set of listitems /// or treeitems. Not required if all elements in the set are present in the /// DOM. See related `aria-setsize`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-posinset - static member inline ariaPosInSet (value: int) = PropHelper.mkAttr "aria-posinset" value + static member inline ariaPosInSet(value: int) = PropHelper.mkAttr "aria-posinset" value /// Indicates that the element is not editable, but is otherwise operable. /// See related `aria-disabled`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-readonly - static member inline ariaReadOnly (value: bool) = PropHelper.mkAttr "aria-readonly" value + static member inline ariaReadOnly(value: bool) = PropHelper.mkAttr "aria-readonly" value /// Indicates what user agent change notifications (additions, removals, /// etc.) assistive technologies will receive within a live region. See /// related `aria-atomic`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-relevant - static member inline ariaRelevant ([] values: AriaRelevant []) = PropHelper.mkAttr "aria-relevant" (values |> unbox |> String.concat " ") + static member inline ariaRelevant([] values: AriaRelevant[]) = + PropHelper.mkAttr "aria-relevant" (values |> unbox |> String.concat " ") /// Indicates that user input is required on the element before a form may /// be submitted. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-required - static member inline ariaRequired (value: bool) = PropHelper.mkAttr "aria-required" value + static member inline ariaRequired(value: bool) = PropHelper.mkAttr "aria-required" value /// Defines a human-readable, author-localized description for the role of an element. /// /// https://www.w3.org/WAI/PF/wai-aria-1.1/states_and_properties#aria-roledescription - static member inline ariaRoleDescription (value: string) = PropHelper.mkAttr "aria-roledescription" value + static member inline ariaRoleDescription(value: string) = + PropHelper.mkAttr "aria-roledescription" value /// Indicates the current "selected" state of various widgets. See related /// `aria-checked` and `aria-pressed`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-selected - static member inline ariaSelected (value: bool) = PropHelper.mkAttr "aria-selected" value + static member inline ariaSelected(value: bool) = PropHelper.mkAttr "aria-selected" value /// Defines the maximum allowed value for a range widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemax - static member inline ariaValueMax (value: float) = PropHelper.mkAttr "aria-valuemax" value + static member inline ariaValueMax(value: float) = PropHelper.mkAttr "aria-valuemax" value /// Defines the maximum allowed value for a range widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemax - static member inline ariaValueMax (value: int) = PropHelper.mkAttr "aria-valuemax" value + static member inline ariaValueMax(value: int) = PropHelper.mkAttr "aria-valuemax" value /// Defines the minimum allowed value for a range widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemin - static member inline ariaValueMin (value: float) = PropHelper.mkAttr "aria-valuemin" value + static member inline ariaValueMin(value: float) = PropHelper.mkAttr "aria-valuemin" value /// Defines the minimum allowed value for a range widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuemin - static member inline ariaValueMin (value: int) = PropHelper.mkAttr "aria-valuemin" value + static member inline ariaValueMin(value: int) = PropHelper.mkAttr "aria-valuemin" value /// Defines the current value for a range widget. See related /// `aria-valuetext`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuenow - static member inline ariaValueNow (value: float) = PropHelper.mkAttr "aria-valuenow" value + static member inline ariaValueNow(value: float) = PropHelper.mkAttr "aria-valuenow" value /// Defines the current value for a range widget. See related /// `aria-valuetext`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuenow - static member inline ariaValueNow (value: int) = PropHelper.mkAttr "aria-valuenow" value + static member inline ariaValueNow(value: int) = PropHelper.mkAttr "aria-valuenow" value /// Defines the human readable text alternative of `aria-valuenow` for a /// range widget. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-valuetext - static member inline ariaValueText (value: string) = PropHelper.mkAttr "aria-valuetext" value + static member inline ariaValueText(value: string) = + PropHelper.mkAttr "aria-valuetext" value /// Defines the number of items in the current set of listitems or /// treeitems. Not required if all elements in the set are present in the /// DOM. See related `aria-posinset`. /// /// https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-setsize - static member inline ariaSetSize (value: int) = PropHelper.mkAttr "aria-setsize" value + static member inline ariaSetSize(value: int) = PropHelper.mkAttr "aria-setsize" value /// Indicates that the script should be executed asynchronously. - static member inline async (value: bool) = PropHelper.mkAttr "async" value + static member inline async(value: bool) = PropHelper.mkAttr "async" value /// Indicates the name of the CSS property or attribute of the target element /// that is going to be changed during an animation. - static member inline attributeName (value: string) = PropHelper.mkAttr "attributeName" value + static member inline attributeName(value: string) = PropHelper.mkAttr "attributeName" value /// Indicates whether controls in this form can by default have their values /// automatically completed by the browser. - static member inline autoComplete (value: string) = PropHelper.mkAttr "autoComplete" value + static member inline autoComplete(value: string) = PropHelper.mkAttr "autoComplete" value /// The element should be automatically focused after the page loaded. - static member inline autoFocus (value: bool) = PropHelper.mkAttr "autoFocus" value + static member inline autoFocus(value: bool) = PropHelper.mkAttr "autoFocus" value /// The audio or video should play as soon as possible. - static member inline autoPlay (value: bool) = PropHelper.mkAttr "autoPlay" value + static member inline autoPlay(value: bool) = PropHelper.mkAttr "autoPlay" value /// Specifies the direction angle for the light source on the XY plane (clockwise), /// in degrees from the x axis. - static member inline azimuth (value: float) = PropHelper.mkAttr "azimuth" value + static member inline azimuth(value: float) = PropHelper.mkAttr "azimuth" value /// Specifies the direction angle for the light source on the XY plane (clockwise), /// in degrees from the x axis. - static member inline azimuth (value: int) = PropHelper.mkAttr "azimuth" value + static member inline azimuth(value: int) = PropHelper.mkAttr "azimuth" value /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (value: float) = PropHelper.mkAttr "baseFrequency" value + static member inline baseFrequency(value: float) = PropHelper.mkAttr "baseFrequency" value /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (value: int) = PropHelper.mkAttr "baseFrequency" value + static member inline baseFrequency(value: int) = PropHelper.mkAttr "baseFrequency" value + /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (horizontal: float, vertical: float) = PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + static member inline baseFrequency(horizontal: float, vertical: float) = + PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (horizontal: float, vertical: int) = PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + static member inline baseFrequency(horizontal: float, vertical: int) = + PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (horizontal: int, vertical: float) = PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + static member inline baseFrequency(horizontal: int, vertical: float) = + PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + /// Represents the base frequency parameter for the noise function of the /// filter primitive. - static member inline baseFrequency (horizontal: int, vertical: int) = PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) + static member inline baseFrequency(horizontal: int, vertical: int) = + PropHelper.mkAttr "baseFrequency" (unbox horizontal + "," + unbox vertical) /// Defines when an animation should begin or when an element should be discarded. - static member inline begin' (value: string) = PropHelper.mkAttr "begin" value + static member inline begin'(value: string) = PropHelper.mkAttr "begin" value /// Shifts the range of the filter. After applying the kernelMatrix of the /// element to the input image to yield a number and applied the divisor attribute, the bias /// attribute is added to each component. This allows representation of values that would /// otherwise be clamped to 0 or 1. - static member inline bias (value: float) = PropHelper.mkAttr "bias" value + static member inline bias(value: float) = PropHelper.mkAttr "bias" value /// Shifts the range of the filter. After applying the kernelMatrix of the /// element to the input image to yield a number and applied the divisor attribute, the bias /// attribute is added to each component. This allows representation of values that would /// otherwise be clamped to 0 or 1. - static member inline bias (value: int) = PropHelper.mkAttr "bias" value + static member inline bias(value: int) = PropHelper.mkAttr "bias" value /// Specifies a relative offset value for an attribute that will be modified during an animation. - static member inline by (value: float) = PropHelper.mkAttr "by" value + static member inline by(value: float) = PropHelper.mkAttr "by" value /// Specifies a relative offset value for an attribute that will be modified during an animation. - static member inline by (value: int) = PropHelper.mkAttr "by" value + static member inline by(value: int) = PropHelper.mkAttr "by" value /// Specifies a relative offset value for an attribute that will be modified during an animation. - static member inline by (value: string) = PropHelper.mkAttr "by" value + static member inline by(value: string) = PropHelper.mkAttr "by" value - static member inline capture (value: bool) = PropHelper.mkAttr "capture" value + static member inline capture(value: bool) = PropHelper.mkAttr "capture" value /// This attribute declares the document's character encoding. Must be used in the meta tag. - static member inline charset (value: string) = PropHelper.mkAttr "charSet" value + static member inline charset(value: string) = PropHelper.mkAttr "charSet" value /// Children of this React element. - static member inline children (value: ReactElement) = PropHelper.mkAttr "children" [value] + static member inline children(value: ReactElement) = PropHelper.mkAttr "children" [ value ] /// Children of this React element. - static member inline children (elems: ReactElement seq) = PropHelper.mkAttr "children" elems + static member inline children(elems: ReactElement seq) = PropHelper.mkAttr "children" elems /// A URL that designates a source document or message for the information quoted. This attribute is intended to /// point to information explaining the context or the reference for the quote. - static member inline cite (value: string) = PropHelper.mkAttr "cite" value + static member inline cite(value: string) = PropHelper.mkAttr "cite" value /// Specifies a CSS class for this element. - static member inline className (value: string) = PropHelper.mkAttr "className" value + static member inline className(value: string) = PropHelper.mkAttr "className" value + /// Takes a `seq` and joins them using a space to combine the classes into a single class property. /// /// `prop.className [ "one"; "two" ]` @@ -465,110 +495,121 @@ type prop = /// is the same as /// /// `prop.className "one two"` - static member inline className (names: seq) = PropHelper.mkAttr "className" (String.concat " " names) + static member inline className(names: seq) = + PropHelper.mkAttr "className" (String.concat " " names) /// Takes a `seq` and joins them using a space to combine the classes into a single class property. /// /// `prop.classes [ "one"; "two" ]` => `prop.className "one two"` - static member inline classes (names: seq) = PropHelper.mkAttr "className" (String.concat " " names) + static member inline classes(names: seq) = + PropHelper.mkAttr "className" (String.concat " " names) /// Defines the number of columns in a textarea. - static member inline cols (value: int) = PropHelper.mkAttr "cols" value + static member inline cols(value: int) = PropHelper.mkAttr "cols" value /// Defines the number of columns a cell should span. - static member inline colSpan (value: int) = PropHelper.mkAttr "colSpan" value + static member inline colSpan(value: int) = PropHelper.mkAttr "colSpan" value /// A value associated with http-equiv or name depending on the context. - static member inline content (value: string) = PropHelper.mkAttr "content" value + static member inline content(value: string) = PropHelper.mkAttr "content" value /// Indicates whether the element's content is editable. - static member inline contentEditable (value: bool) = PropHelper.mkAttr "contentEditable" value + static member inline contentEditable(value: bool) = + PropHelper.mkAttr "contentEditable" value /// If true, the browser will offer controls to allow the user to control video playback, /// including volume, seeking, and pause/resume playback. - static member inline controls (value: bool) = PropHelper.mkAttr "controls" value + static member inline controls(value: bool) = PropHelper.mkAttr "controls" value /// Create a custom prop /// /// You generally shouldn't need to use this, if you notice a core React/Html attribute missing please submit an issue. - static member inline custom (key: string, value: 't) = PropHelper.mkAttr key value + static member inline custom(key: string, value: 't) = PropHelper.mkAttr key value /// The SVG cx attribute define the x-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cx (value: float) = PropHelper.mkAttr "cx" value + static member inline cx(value: float) = PropHelper.mkAttr "cx" value /// The SVG cx attribute define the x-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cx (value: ICssUnit) = PropHelper.mkAttr "cx" value + static member inline cx(value: ICssUnit) = PropHelper.mkAttr "cx" value /// The SVG cx attribute define the x-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cx (value: int) = PropHelper.mkAttr "cx" value + static member inline cx(value: int) = PropHelper.mkAttr "cx" value /// The SVG cy attribute define the y-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cy (value: float) = PropHelper.mkAttr "cy" value + static member inline cy(value: float) = PropHelper.mkAttr "cy" value /// The SVG cy attribute define the y-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cy (value: ICssUnit) = PropHelper.mkAttr "cy" value + static member inline cy(value: ICssUnit) = PropHelper.mkAttr "cy" value /// The SVG cy attribute define the y-axis coordinate of a center point. /// /// Three elements are using this attribute: , , and - static member inline cy (value: int) = PropHelper.mkAttr "cy" value + static member inline cy(value: int) = PropHelper.mkAttr "cy" value /// Defines a SVG path to be drawn. - static member inline d (path: seq) = - PropHelpers.createSvgPathFloat path - |> PropHelper.mkAttr "d" + static member inline d(path: seq) = + PropHelpers.createSvgPathFloat path |> PropHelper.mkAttr "d" + /// Defines a SVG path to be drawn. - static member inline d (path: seq) = - PropHelpers.createSvgPathInt path - |> PropHelper.mkAttr "d" + static member inline d(path: seq) = + PropHelpers.createSvgPathInt path |> PropHelper.mkAttr "d" + /// Defines a SVG path to be drawn. - static member inline d (path: string) = PropHelper.mkAttr "d" path + static member inline d(path: string) = PropHelper.mkAttr "d" path /// Sets the inner Html content of the element. - static member inline dangerouslySetInnerHTML (content: string) = PropHelper.mkAttr "dangerouslySetInnerHTML" (createObj [ "__html" ==> content ]) + static member inline dangerouslySetInnerHTML(content: string) = + PropHelper.mkAttr "dangerouslySetInnerHTML" (createObj [ "__html" ==> content ]) /// This attribute indicates the time and/or date of the element. - static member inline dateTime (value: string) = PropHelper.mkAttr "dateTime" value + static member inline dateTime(value: string) = PropHelper.mkAttr "dateTime" value /// Sets the DOM defaultChecked value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultChecked (value: bool) = PropHelper.mkAttr "defaultChecked" value + static member inline defaultChecked(value: bool) = + PropHelper.mkAttr "defaultChecked" value /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: bool) = PropHelper.mkAttr "defaultValue" value + static member inline defaultValue(value: bool) = PropHelper.mkAttr "defaultValue" value /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: float) = PropHelper.mkAttr "defaultValue" value + static member inline defaultValue(value: float) = PropHelper.mkAttr "defaultValue" value /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: int) = PropHelper.mkAttr "defaultValue" value + static member inline defaultValue(value: int) = PropHelper.mkAttr "defaultValue" value /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: string) = PropHelper.mkAttr "defaultValue" value + static member inline defaultValue(value: string) = PropHelper.mkAttr "defaultValue" value + /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: seq) = PropHelper.mkAttr "defaultValue" (ResizeArray value) + static member inline defaultValue(value: seq) = + PropHelper.mkAttr "defaultValue" (ResizeArray value) + /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: seq) = PropHelper.mkAttr "defaultValue" (ResizeArray value) + static member inline defaultValue(value: seq) = + PropHelper.mkAttr "defaultValue" (ResizeArray value) + /// Sets the DOM defaultValue value when initially rendered. /// /// Typically only used with uncontrolled components. - static member inline defaultValue (value: seq) = PropHelper.mkAttr "defaultValue" (ResizeArray value) + static member inline defaultValue(value: seq) = + PropHelper.mkAttr "defaultValue" (ResizeArray value) /// Indicates to a browser that the script is meant to be executed after the document /// has been parsed, but before firing DOMContentLoaded. @@ -578,22 +619,25 @@ type prop = /// /// This attribute must not be used if the src attribute is absent (i.e. for inline scripts), /// in this case it would have no effect. - static member inline defer (value: bool) = PropHelper.mkAttr "defer" value + static member inline defer(value: bool) = PropHelper.mkAttr "defer" value /// Represents the kd value in the Phong lighting model. /// /// In SVG, this can be any non-negative number. - static member inline diffuseConstant (value: float) = PropHelper.mkAttr "diffuseConstant" value + static member inline diffuseConstant(value: float) = + PropHelper.mkAttr "diffuseConstant" value + /// Represents the kd value in the Phong lighting model. /// /// In SVG, this can be any non-negative number. - static member inline diffuseConstant (value: int) = PropHelper.mkAttr "diffuseConstant" value + static member inline diffuseConstant(value: int) = + PropHelper.mkAttr "diffuseConstant" value /// Sets the directionality of the element. - static member inline dirName (value: string) = PropHelper.mkAttr "dirName" value + static member inline dirName(value: string) = PropHelper.mkAttr "dirName" value /// Indicates whether the user can interact with the element. - static member inline disabled (value: bool) = PropHelper.mkAttr "disabled" value + static member inline disabled(value: bool) = PropHelper.mkAttr "disabled" value /// Specifies the value by which the resulting number of applying the kernelMatrix /// of a element to the input image color value is divided to @@ -601,84 +645,88 @@ type prop = /// /// A divisor that is the sum of all the matrix values tends to have an evening /// effect on the overall color intensity of the result. - static member inline divisor (value: float) = PropHelper.mkAttr "divisor" value + static member inline divisor(value: float) = PropHelper.mkAttr "divisor" value /// Specifies the value by which the resulting number of applying the kernelMatrix /// of a element to the input image color value is divided to /// yield the destination color value. /// /// A divisor that is the sum of all the matrix values tends to have an evening /// effect on the overall color intensity of the result. - static member inline divisor (value: int) = PropHelper.mkAttr "divisor" value + static member inline divisor(value: int) = PropHelper.mkAttr "divisor" value /// This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. - static member inline download (value: bool) = PropHelper.mkAttr "download" value + static member inline download(value: bool) = PropHelper.mkAttr "download" value /// This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. /// The value specifies the default file name for use in labeling the resource in a local file system. - static member inline download (value: string) = PropHelper.mkAttr "download" value + static member inline download(value: string) = PropHelper.mkAttr "download" value /// Indicates whether the the element can be dragged. - static member inline draggable (value: bool) = PropHelper.mkAttr "draggable" value + static member inline draggable(value: bool) = PropHelper.mkAttr "draggable" value /// SVG attribute to indicate a shift along the x-axis on the position of an element or its content. - static member inline dx (value: float) = PropHelper.mkAttr "dx" value + static member inline dx(value: float) = PropHelper.mkAttr "dx" value /// SVG attribute to indicate a shift along the x-axis on the position of an element or its content. - static member inline dx (value: int) = PropHelper.mkAttr "dx" value + static member inline dx(value: int) = PropHelper.mkAttr "dx" value /// SVG attribute to indicate a shift along the y-axis on the position of an element or its content. - static member inline dy (value: float) = PropHelper.mkAttr "dy" value + static member inline dy(value: float) = PropHelper.mkAttr "dy" value /// SVG attribute to indicate a shift along the y-axis on the position of an element or its content. - static member inline dy (value: int) = PropHelper.mkAttr "dy" value + static member inline dy(value: int) = PropHelper.mkAttr "dy" value /// SVG attribute that specifies the direction angle for the light source from the XY plane towards /// the Z-axis, in degrees. /// /// Note that the positive Z-axis points towards the viewer of the content. - static member inline elevation (value: float) = PropHelper.mkAttr "elevation" value + static member inline elevation(value: float) = PropHelper.mkAttr "elevation" value /// SVG attribute that specifies the direction angle for the light source from the XY plane towards /// the Z-axis, in degrees. /// /// Note that the positive Z-axis points towards the viewer of the content. - static member inline elevation (value: int) = PropHelper.mkAttr "elevation" value + static member inline elevation(value: int) = PropHelper.mkAttr "elevation" value /// Defines an end value for the animation that can constrain the active duration. - static member inline end' (value: string) = PropHelper.mkAttr "end" value + static member inline end'(value: string) = PropHelper.mkAttr "end" value + /// Defines an end value for the animation that can constrain the active duration. - static member inline end' (values: seq) = PropHelper.mkAttr "end" (String.concat ";" values) + static member inline end'(values: seq) = + PropHelper.mkAttr "end" (String.concat ";" values) /// Defines the exponent of the gamma function. - static member inline exponent (value: float) = PropHelper.mkAttr "exponent" value + static member inline exponent(value: float) = PropHelper.mkAttr "exponent" value /// Defines the exponent of the gamma function. - static member inline exponent (value: int) = PropHelper.mkAttr "exponent" value + static member inline exponent(value: int) = PropHelper.mkAttr "exponent" value /// Defines the files that will be uploaded when using an input element of the file type. - static member inline files (value: FileList) = PropHelper.mkAttr "files" value + static member inline files(value: FileList) = PropHelper.mkAttr "files" value /// SVG attribute to define the opacity of the paint server (color, gradient, pattern, etc) applied to a shape. - static member inline fillOpacity (value: float) = PropHelper.mkAttr "fillOpacity" value + static member inline fillOpacity(value: float) = PropHelper.mkAttr "fillOpacity" value /// SVG attribute to define the opacity of the paint server (color, gradient, pattern, etc) applied to a shape. - static member inline fillOpacity (value: int) = PropHelper.mkAttr "fillOpacity" value + static member inline fillOpacity(value: int) = PropHelper.mkAttr "fillOpacity" value /// SVG attribute to define the size of the font from baseline to baseline when multiple /// lines of text are set solid in a multiline layout environment. - static member inline fontSize (value: float) = PropHelper.mkAttr "fontSize" value + static member inline fontSize(value: float) = PropHelper.mkAttr "fontSize" value /// SVG attribute to define the size of the font from baseline to baseline when multiple /// lines of text are set solid in a multiline layout environment. - static member inline fontSize (value: int) = PropHelper.mkAttr "fontSize" value + static member inline fontSize(value: int) = PropHelper.mkAttr "fontSize" value /// A space-separated list of other elements’ ids, indicating that those elements contributed input /// values to (or otherwise affected) the calculation. - static member inline for' (value: string) = PropHelper.mkAttr "for" value + static member inline for'(value: string) = PropHelper.mkAttr "for" value + /// A space-separated list of other elements’ ids, indicating that those elements contributed input /// values to (or otherwise affected) the calculation. - static member inline for' (ids: #seq) = PropHelper.mkAttr "for" (ids |> String.concat " ") + static member inline for'(ids: #seq) = + PropHelper.mkAttr "for" (ids |> String.concat " ") /// The
    element to associate the element with (its form owner). The value of this /// attribute must be the id of a in the same document. If this attribute is not set, the ///