@recursica/mantine-adapter 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +15 -0
- package/CHANGELOG.md +18 -0
- package/SETUP.md +78 -0
- package/USAGE.md +55 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +1897 -1575
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +4 -24
- package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +1 -6
- package/dist/src/components/AutoComplete/AutoComplete.d.ts +7 -3
- package/dist/src/components/Avatar/Avatar.d.ts +2 -6
- package/dist/src/components/Badge/Badge.d.ts +2 -5
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +1 -2
- package/dist/src/components/Button/Button.d.ts +2 -16
- package/dist/src/components/Card/Card.d.ts +4 -6
- package/dist/src/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +7 -3
- package/dist/src/components/Chip/Chip.d.ts +1 -10
- package/dist/src/components/Container/Container.d.ts +1 -11
- package/dist/src/components/DatePicker/DatePicker.d.ts +12 -2
- package/dist/src/components/Dropdown/Dropdown.d.ts +2 -4
- package/dist/src/components/Flex/Flex.d.ts +2 -11
- package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +2 -7
- package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +1 -15
- package/dist/src/components/Group/Group.d.ts +1 -10
- package/dist/src/components/HoverCard/HoverCard.d.ts +1 -11
- package/dist/src/components/Label/Label.d.ts +1 -14
- package/dist/src/components/Link/Link.d.ts +2 -11
- package/dist/src/components/Loader/Loader.d.ts +2 -7
- package/dist/src/components/Menu/Menu.d.ts +4 -3
- package/dist/src/components/Modal/Modal.d.ts +2 -1
- package/dist/src/components/NumberInput/NumberInput.d.ts +2 -4
- package/dist/src/components/Pagination/Pagination.d.ts +2 -4
- package/dist/src/components/Panel/Panel.d.ts +2 -9
- package/dist/src/components/Popover/Popover.d.ts +1 -11
- package/dist/src/components/Radio/Radio.d.ts +4 -4
- package/dist/src/components/Radio/RadioGroup.d.ts +7 -3
- package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +2 -10
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -11
- package/dist/src/components/Slider/Slider.d.ts +18 -2
- package/dist/src/components/Stack/Stack.d.ts +2 -9
- package/dist/src/components/Stepper/Stepper.d.ts +2 -4
- package/dist/src/components/Switch/Switch.d.ts +4 -4
- package/dist/src/components/Switch/SwitchGroup.d.ts +7 -3
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +2 -4
- package/dist/src/components/Text/Text.d.ts +2 -11
- package/dist/src/components/TextArea/TextArea.d.ts +2 -8
- package/dist/src/components/TextField/TextField.d.ts +7 -3
- package/dist/src/components/TimePicker/TimePicker.d.ts +2 -1
- package/dist/src/components/Timeline/Timeline.d.ts +2 -1
- package/dist/src/components/Timeline/TimelineItem.d.ts +1 -12
- package/dist/src/components/Title/Title.d.ts +1 -7
- package/dist/src/components/Toast/Toast.d.ts +1 -12
- package/dist/src/components/Tooltip/Tooltip.d.ts +1 -12
- package/dist/src/components/TransferList/TransferList.d.ts +2 -1
- package/dist/src/utils/RequireAccessibleLabel.d.ts +1 -18
- package/dist/src/utils/filterStylingProps.d.ts +1 -11
- package/dist/test.html +1 -0
- package/llms.txt +16 -0
- package/package.json +7 -3
- package/src/components/Accordion/Accordion.module.css +1 -2
- package/src/components/Accordion/Accordion.tsx +15 -28
- package/src/components/AssistiveElement/AssistiveElement.tsx +1 -6
- package/src/components/AutoComplete/AutoComplete.tsx +4 -1
- package/src/components/Avatar/Avatar.tsx +1 -5
- package/src/components/Badge/Badge.tsx +1 -4
- package/src/components/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/components/Button/Button.module.css +18 -45
- package/src/components/Button/Button.tsx +2 -16
- package/src/components/Card/Card.tsx +11 -6
- package/src/components/Checkbox/Checkbox.module.css +6 -10
- package/src/components/Checkbox/Checkbox.tsx +19 -14
- package/src/components/Checkbox/CheckboxGroup.tsx +4 -1
- package/src/components/Chip/CHIP_IMPLEMENTATION_NOTES.md +4 -1
- package/src/components/Chip/Chip.module.css +36 -28
- package/src/components/Chip/Chip.tsx +8 -15
- package/src/components/Container/Container.tsx +1 -19
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +16 -0
- package/src/components/DatePicker/DatePicker.module.css +282 -41
- package/src/components/DatePicker/DatePicker.stories.tsx +127 -4
- package/src/components/DatePicker/DatePicker.tsx +169 -5
- package/src/components/Dropdown/Dropdown.tsx +4 -4
- package/src/components/Flex/Flex.tsx +2 -13
- package/src/components/FormControlLayout/FormControlLayout.module.css +6 -18
- package/src/components/FormControlLayout/FormControlLayout.tsx +4 -8
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +1 -0
- package/src/components/FormControlWrapper/FormControlWrapper.tsx +2 -15
- package/src/components/Group/Group.tsx +2 -13
- package/src/components/HoverCard/HoverCard.tsx +1 -8
- package/src/components/Label/Label.module.css +5 -10
- package/src/components/Label/Label.tsx +1 -14
- package/src/components/Link/Link.module.css +4 -3
- package/src/components/Link/Link.stories.tsx +2 -3
- package/src/components/Link/Link.tsx +1 -10
- package/src/components/Loader/LOADER_IMPLEMENTATION_NOTES.md +1 -2
- package/src/components/Loader/Loader.module.css +4 -11
- package/src/components/Loader/Loader.tsx +1 -7
- package/src/components/Menu/Menu.tsx +5 -1
- package/src/components/Modal/Modal.tsx +3 -1
- package/src/components/NumberInput/NumberInput.tsx +4 -4
- package/src/components/Pagination/Pagination.module.css +12 -24
- package/src/components/Pagination/Pagination.stories.tsx +0 -8
- package/src/components/Pagination/Pagination.tsx +5 -4
- package/src/components/Panel/Panel.tsx +1 -8
- package/src/components/Popover/Popover.tsx +1 -8
- package/src/components/Radio/Radio.module.css +4 -10
- package/src/components/Radio/Radio.tsx +19 -14
- package/src/components/Radio/RadioGroup.tsx +4 -1
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +9 -18
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +4 -11
- package/src/components/SegmentedControl/SegmentedControl.module.css +20 -44
- package/src/components/SegmentedControl/SegmentedControl.tsx +1 -11
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +49 -0
- package/src/components/Slider/Slider.module.css +492 -86
- package/src/components/Slider/Slider.stories.tsx +159 -4
- package/src/components/Slider/Slider.tsx +275 -4
- package/src/components/Stack/Stack.tsx +2 -11
- package/src/components/Stepper/Stepper.tsx +1 -7
- package/src/components/Switch/Switch.tsx +19 -11
- package/src/components/Switch/SwitchGroup.tsx +4 -1
- package/src/components/Table/Table.tsx +3 -1
- package/src/components/Tabs/Tabs.tsx +1 -7
- package/src/components/Text/Text.tsx +2 -16
- package/src/components/TextArea/TextArea.tsx +4 -8
- package/src/components/TextField/TextField.tsx +4 -1
- package/src/components/TimePicker/TimePicker.tsx +3 -1
- package/src/components/Timeline/Timeline.tsx +4 -1
- package/src/components/Timeline/TimelineItem.tsx +1 -12
- package/src/components/Title/Title.tsx +1 -6
- package/src/components/Toast/Toast.tsx +1 -13
- package/src/components/Tooltip/Tooltip.tsx +1 -9
- package/src/components/TransferList/TransferList.tsx +3 -1
- package/src/utils/RequireAccessibleLabel.ts +1 -12
- package/src/utils/filterStylingProps.ts +7 -20
package/ARCHITECTURE.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This document describes the high-level architecture and philosophy of the `@recursica/mantine-adapter` package.
|
|
6
|
+
|
|
7
|
+
## Dependencies
|
|
8
|
+
|
|
9
|
+
- **`@mantine/core`**: The underlying UI framework.
|
|
10
|
+
- **`@recursica/adapter-common`**: Shared primitives and hooks across all framework adapters.
|
|
11
|
+
|
|
12
|
+
## Key Design Decisions
|
|
13
|
+
|
|
14
|
+
- Components map closely to Mantine's structure but enforce Recursica design tokens.
|
|
15
|
+
- We avoid over-styling; components only diverge from Mantine defaults when dictated by the Recursica design system.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0271678: Fix Button loading state loader offset caused by brand line-height
|
|
8
|
+
- 4031b12: Updated docs and finalized MCP
|
|
9
|
+
|
|
10
|
+
## 0.23.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 3cb6f89: Added Slider component
|
|
15
|
+
- fe9d24a: Added adapter tester and updated adapters
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 639ac9a: Fixed loader border issues
|
|
20
|
+
|
|
3
21
|
## 0.22.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/SETUP.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Installing `@recursica/mantine-adapter`
|
|
2
|
+
|
|
3
|
+
Follow these instructions to install and configure the Mantine Adapter in your host project.
|
|
4
|
+
|
|
5
|
+
## 1. Install Dependencies
|
|
6
|
+
|
|
7
|
+
First, install the Recursica Mantine Adapter package:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @recursica/mantine-adapter
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
This library requires the following peer dependencies. Ensure they are installed in your project:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @mantine/core@>=8.0.0 @mantine/dates@>=8.0.0 @mantine/hooks@>=8.0.0 react@>=16.8.0 react-dom@>=16.8.0
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Setup and Integration
|
|
24
|
+
|
|
25
|
+
Before consuming Recursica components, integrate the CSS and design tokens into your application:
|
|
26
|
+
|
|
27
|
+
1. **Export Theme Files**: Export theme files from [Forge Recursica](https://forge.recursica.com) into your repository to generate `recursica_variables_scoped.css` and its associated JSON files. Its suggested to put it in the root of your project.
|
|
28
|
+
2. **Integrate CSS**: Import `recursica_variables_scoped.css` and the Mantine adapter CSS `mantine-adapter.css` into your application entrypoint (e.g., `main.tsx` or `App.tsx`). **It must be loaded after the Mantine CSS imports.**
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import "@mantine/core/styles.css"; // Mantine core styles
|
|
32
|
+
import "./path/to/recursica_variables_scoped.css"; // Recursica theme variables
|
|
33
|
+
import "@recursica/mantine-adapter/style.css"; // Mantine adapter styles
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
3. **Integrate Google Fonts**: Integrating custom fonts depends on how you load fonts in your project and which fonts are specified in your `recursica_variables_scoped.css` (since it is project-dependent). We suggest loading them via Google Fonts, as shown in this example:
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
4. **Wrap App in RecursicaThemeProvider**: You must wrap your application in the `<RecursicaThemeProvider>` to correctly cascade design token properties:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { MantineProvider } from "@mantine/core";
|
|
46
|
+
import { RecursicaThemeProvider } from "@recursica/mantine-adapter";
|
|
47
|
+
|
|
48
|
+
function App() {
|
|
49
|
+
return (
|
|
50
|
+
<MantineProvider>
|
|
51
|
+
<RecursicaThemeProvider theme="light">
|
|
52
|
+
{/* Your App Components */}
|
|
53
|
+
</RecursicaThemeProvider>
|
|
54
|
+
</MantineProvider>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
5. **Configure PostCSS Plugin (Optional but Recommended)**: It is highly recommended (but optional) to install the `@recursica/recursica-postcss-vars` plugin to verify that Recursica CSS variables are properly connected in case they change.
|
|
60
|
+
|
|
61
|
+
Install the plugin as a dev dependency:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm install @recursica/recursica-postcss-vars --save-dev
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Then, configure it in your `postcss.config.js`:
|
|
68
|
+
|
|
69
|
+
```javascript
|
|
70
|
+
export default {
|
|
71
|
+
plugins: {
|
|
72
|
+
"@recursica/recursica-postcss-vars": {
|
|
73
|
+
cssPath: "./path/to/recursica_variables_scoped.css",
|
|
74
|
+
strict: process.env.NODE_ENV === "production",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
```
|
package/USAGE.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Mantine Adapter Usage Guide
|
|
2
|
+
|
|
3
|
+
This guide outlines how human developers and AI agents should consume the `mantine-adapter` library when building applications.
|
|
4
|
+
|
|
5
|
+
## 1. Setup and Integration
|
|
6
|
+
|
|
7
|
+
Before consuming the components, the application must be properly integrated with Recursica design tokens. Please refer to [SETUP.md](SETUP.md) for full installation and integration instructions.
|
|
8
|
+
|
|
9
|
+
> [!IMPORTANT]
|
|
10
|
+
> If you are an AI agent, you must verify that all setup and integration steps described in [SETUP.md](SETUP.md) are fully followed before attempting to use or customize Recursica components in the application.
|
|
11
|
+
|
|
12
|
+
## 2. Importing Components
|
|
13
|
+
|
|
14
|
+
All UI components should be imported directly from the `mantine-adapter`.
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import { Button, Stack, Container } from "@recursica/mantine-adapter";
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**Rule:** Do NOT import components directly from `@mantine/core` unless a specific exception has been documented (e.g. `Alert`, which has no planned Recursica equivalent). If you need a standard component, always check the adapter first.
|
|
21
|
+
|
|
22
|
+
## 3. Passing Design Tokens & Layout Constraints
|
|
23
|
+
|
|
24
|
+
Our components strictly separate logical structural layouts from visual design tokens.
|
|
25
|
+
|
|
26
|
+
- **DO NOT** try to inject arbitrary styling objects, generic padding/margin properties (`p`, `bg`, `fw`), or custom `classNames` directly into component JSX. The components use `filterStylingProps` to actively strip these out.
|
|
27
|
+
- **DO** use the defined logical layout properties (like `gap`, `margin`, `mt`, etc.).
|
|
28
|
+
- When passing sizes to layout wrappers (like `Stack`, `Flex`, `Group`, `Container`), use the `rec-` prefixed sizes explicitly mapped in the library (e.g., `"rec-sm"`, `"rec-default"`, `"rec-md"`, `"rec-lg"`, `"rec-xl"`).
|
|
29
|
+
|
|
30
|
+
## 4. The `overStyled` Escape Hatch
|
|
31
|
+
|
|
32
|
+
If you encounter an absolute necessity to break out of the design system (e.g., a highly custom one-off hero section where a button needs an arbitrary height and custom background), you must pass `overStyled={true}`.
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
<Button overStyled={true} bg="red" h={120}>
|
|
36
|
+
Custom Button
|
|
37
|
+
</Button>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Warning:** Using `overStyled` should be treated as technical debt. If you find yourself repeatedly needing it for a specific variant, you should instead switch context and **contribute** that variant natively into the `mantine-adapter`.
|
|
41
|
+
|
|
42
|
+
## 5. Fallback Behavior for Missing Components
|
|
43
|
+
|
|
44
|
+
If the adapter does not yet implement a required component:
|
|
45
|
+
|
|
46
|
+
1. You may try utilizing standard `recursica_variables_scoped.css` properties on the native Mantine component.
|
|
47
|
+
2. However, **this is not recommended**. The preferred approach is to pause integration, navigate into the `mantine-adapter` package, and natively build the missing wrapper component following the `CONTRIBUTING.md` guidelines.
|
|
48
|
+
|
|
49
|
+
## 6. Managing CSS Changes with PostCSS Plugin
|
|
50
|
+
|
|
51
|
+
When the `recursica-postcss-plugin` is incorporated into your build process, it helps maintain sync between your application and the Recursica design system.
|
|
52
|
+
|
|
53
|
+
- **Missing Variables**: If Recursica CSS variables are used in the application but cannot be found in `recursica_variables_scoped.css`, the plugin will throw **warnings during development** and **errors during production builds**. This typically means that tokens in the design system have been renamed or deleted.
|
|
54
|
+
- **Resolution**: When these errors occur, the developer (or AI agent) must locate the issue and reconnect the broken styling to the correct (new) CSS variables found in the updated `recursica_variables_scoped.css`. While this cannot be done automatically, the semantic naming of Recursica variables makes it relatively easy to infer intent and find the proper replacement.
|
|
55
|
+
- **New Variables**: Whenever a new version of the scoped CSS is imported, you should review if any new CSS variables have been added to the design system. If so, review these new tokens and consider integrating them into the associated components where appropriate.
|
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react"),p=require("@mantine/core"),$t=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],co=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),je={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function ze(l){const e={...l};for(const[a,r]of Object.entries(e))typeof r=="string"&&r.startsWith("rec-")&&co.has(a)&&r in je&&(e[a]=je[r]);return e}function x(l,e){if(e)return l;const a={...l};for(const r of $t)r in a&&delete a[r];for(const[r,t]of Object.entries(a))typeof t=="string"&&t.startsWith("rec-")&&co.has(r)&&t in je&&(a[r]=je[t]);return a}const vt="Accordion-module__root___Dem6d",Ct="Accordion-module__item___7ryVk",wt="Accordion-module__noDivider___Ni2tT",Pt="Accordion-module__control___b4wgX",gt="Accordion-module__label___Ss7uW",jt="Accordion-module__chevron___i-HVZ",Tt="Accordion-module__iconLeftWrapper___5oLen",At="Accordion-module__panel___Wx50w",St="Accordion-module__content___PEM9t",ee={root:vt,item:Ct,noDivider:wt,control:Pt,label:gt,chevron:jt,iconLeftWrapper:Tt,panel:At,content:St},po=function({variant:e="unstyled",overStyled:a=!1,...r}){const t=x(r,a),o={root:ee.root,item:ee.item,control:ee.control,label:ee.label,chevron:ee.chevron,panel:ee.panel,content:ee.content},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Accordion,{variant:e,className:i,classNames:o,...t})};po.displayName="Accordion";const ke=b.forwardRef(function({title:e,leftIcon:a,divider:r=!0,children:t,overStyled:o=!1,...n},i){const c=x(n,o),d=c.className,m=[r?void 0:ee.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(p.Accordion.Item,{ref:i,className:m,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(Ae,{leftIcon:a,children:e}),s.jsx(Se,{children:t})]}):t})});ke.displayName="AccordionItem";const Ae=b.forwardRef(function({leftIcon:e,children:a,overStyled:r=!1,...t},o){const n=x(t,r),i=n.className;return s.jsx(p.Accordion.Control,{ref:o,className:i,icon:e?s.jsx("span",{className:ee.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...n,children:a})});Ae.displayName="AccordionControl";const Se=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Accordion.Panel,{ref:r,className:o,...t})});Se.displayName="AccordionPanel";const Re=po;Re.Item=ke;Re.Control=Ae;Re.Panel=Se;const Rt="Label-module__root___e6HXZ",Wt="Label-module__labelText___rieFR",Lt="Label-module__required___Ggrzc",Ot="Label-module__optionalText___Y2yun",It="Label-module__actionAreaWrapper___ELoZK",Mt="Label-module__editIconWrapper___NG2xW",H={root:Rt,labelText:Wt,required:Lt,optionalText:Ot,actionAreaWrapper:It,editIconWrapper:Mt},Fe=b.forwardRef(function({labelSize:e="default",labelAlignment:a,required:r=!1,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,children:c,overStyled:d=!1,...m},_){const h=a||"left";let f;r||(t===!0?f="optional":t&&(f=t));const u=x(m,d),y=u,C={label:H.root,required:H.required},$=y.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const j=$;C.label=j.label?`${H.root} ${j.label}`:H.root,C.required=j.required?`${H.required} ${j.required}`:H.required}const w=y.className,N=w?`${H.root} ${w}`:H.root;return s.jsxs(p.Input.Label,{ref:_,className:N,classNames:C,"data-size":e,"data-alignment":h,required:r&&!o,...u,children:[s.jsx("span",{className:H.labelText,children:c}),f&&s.jsx("span",{className:H.optionalText,children:typeof f=="string"?`(${f})`:f}),n?s.jsx("span",{className:H.actionAreaWrapper,children:n}):o?s.jsx("button",{type:"button",className:H.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:i,"aria-label":"Edit",children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Fe.displayName="Label";const zt="FormControlLayout-module__root___yNDhZ",kt="FormControlLayout-module__leftSection___GBM1r",Ft="FormControlLayout-module__rightSection___bcL4v",Pe={root:zt,leftSection:kt,rightSection:Ft},te=b.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:t,leftSection:o,children:n,className:i,style:c,...d},m){const _=i?`${Pe.root} ${i}`:Pe.root,f=o!=null||e==="side-by-side";return s.jsxs("div",{ref:m,className:_,"data-form-layout":e,style:{...c,...r?{"--form-control-max-width":r}:{},...t?{"--form-control-min-width":t}:{}},...d,children:[f&&s.jsx("div",{className:Pe.leftSection,"data-size":a,children:o}),s.jsx("div",{className:Pe.rightSection,children:n})]})});te.displayName="FormControlLayout";const Bt="AssistiveElement-module__root___WhQ43",Dt="AssistiveElement-module__textWrapper___sfy5E",Et="AssistiveElement-module__iconWrapper___gObRF",Ie={root:Bt,textWrapper:Dt,iconWrapper:Et},Vt=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 16v-4"}),s.jsx("path",{d:"M12 8h.01"})]}),Gt=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),s.jsx("path",{d:"M12 9v4"}),s.jsx("path",{d:"M12 17h.01"})]}),Me=b.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:r,className:t,overStyled:o=!1,...n},i){const d=x(n,o),m=Ie.root,_=t?`${m} ${t}`:m,h=e==="error"?Gt:Vt;return s.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[a&&s.jsx("span",{className:Ie.iconWrapper,children:s.jsx(h,{})}),s.jsx("span",{className:Ie.textWrapper,children:r})]})});Me.displayName="AssistiveElement";const qt="FormControlWrapper-module__root___c-UHo",Ht="FormControlWrapper-module__inputSection___HenXk",ro={root:qt,inputSection:Ht},Te=b.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,label:c,description:d,assistiveText:m,assistiveWithIcon:_=!0,controlMaxWidth:h,controlMinWidth:f,error:u,required:y,withAsterisk:C,id:$,children:w,className:N,overStyled:j=!1,labelElement:v,...O},A){const T=b.useId(),R=$||`recursica-fc-${T}`,L=m||d,P=L?`${R}-assistive`:void 0,g=u?`${R}-error`:void 0,k=x(O,j),S=N||k.className,we=ro.root,Oe=S?`${we} ${S}`:we,q=b.isValidElement(w)?b.cloneElement(w,{...L&&!w.props["aria-describedby"]?{"aria-describedby":P}:{},...u&&!w.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):w,xt=c?s.jsx(Fe,{id:R,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,required:C??y,...v==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(te,{ref:A,className:Oe,formLayout:e,labelSize:a,controlMaxWidth:h,controlMinWidth:f,leftSection:xt,...k,children:s.jsxs("div",{className:ro.inputSection,children:[q,u&&s.jsx(Me,{id:g,assistiveVariant:"error",assistiveWithIcon:_,children:u}),!u&&L&&s.jsx(Me,{id:P,assistiveVariant:"help",assistiveWithIcon:_,children:L})]})})});Te.displayName="FormControlWrapper";const Ut="_root_1qhn7_3",Zt="_contents_1qhn7_18",ue={root:Ut,contents:Zt},mo=b.forwardRef(function({layer:l,contentsOnly:e,children:a,className:r,style:t,...o},n){const i=e?r?`${ue.root} ${ue.contents} ${r}`:`${ue.root} ${ue.contents}`:r?`${ue.root} ${r}`:ue.root;return s.jsx("div",{ref:n,className:i,style:t,...e?{}:{"data-recursica-layer":String(l)},...o,children:a})});mo.displayName="Layer";const ve=({emptyText:l="N/A"})=>s.jsx(b.Fragment,{children:l});ve.displayName="EmptyValueRenderer";ve.check=l=>l==null||l===""||Array.isArray(l)&&l.length===0;const ao="data-recursica-theme";function Yt({children:l,theme:e="light"}){return b.useEffect(()=>{const a=document.documentElement;return a.setAttribute(ao,e),()=>{a.removeAttribute(ao)}},[e]),s.jsx(s.Fragment,{children:l})}const Kt="ReadOnlyField-module__layoutOverride___9fSsG",Qt="ReadOnlyField-module__textField___qKn25",fe={layoutOverride:Kt,textField:Qt},$e=({value:l,overStyled:e=!1,...a})=>{const r=x(a,e),t=r.className;return s.jsx(p.Box,{component:"p",className:t?`${fe.textField} ${t}`:fe.textField,...r,children:l!=null?b.isValidElement(l)?l:Array.isArray(l)?l.join(", "):String(l):""})};$e.displayName="ReadOnlyTextField";const Be=b.forwardRef(function({value:e,type:a="text",emptyValueComponent:r,overStyled:t=!1,className:o,style:n,...i},c){let d=null;const m=x(i,t),_=r||ve,f=(_.check?_.check(e):ve.check(e))?s.jsx(_,{value:e}):e;switch(a){case"boolean":d=s.jsx($e,{value:e===!0?"True":e===!1?"False":f,overStyled:t});break;case"switch":d=s.jsx($e,{value:e===!0?"On":e===!1?"Off":f,overStyled:t});break;case"text":default:d=s.jsx($e,{value:f,overStyled:t});break}const u=o?`${fe.layoutOverride} ${o}`:fe.layoutOverride;return s.jsx(Te,{ref:c,overStyled:t,className:u,style:n,...m,children:d})});Be.displayName="ReadOnlyField";const K=b.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:t,readOnlyNativeProps:o,emptyValueComponent:n,activeComponent:i,overStyled:c,onLabelEditClick:d,...m},_){if(e){if(a){const h=a;return s.jsx(Te,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:s.jsx(h,{...o})})}return s.jsx(Be,{ref:_,type:r,value:t,emptyValueComponent:n,onLabelEditClick:d,overStyled:c,...m})}return s.jsx(Te,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:i})});K.displayName="WithReadOnlyWrapper";const Xt="AutoComplete-module__layoutOverride___-K9WL",Jt="AutoComplete-module__root___kANza",es="AutoComplete-module__input___g51MC",os="AutoComplete-module__section___WAbf1",ts="AutoComplete-module__dropdown___NqO3E",ss="AutoComplete-module__option___Y-Kja",F={layoutOverride:Xt,root:Jt,input:es,section:os,dropdown:ts,option:ss},_o=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,className:$,style:w,disabled:N,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,value:A,defaultValue:T,...R}=e,L=x(R,r),P=L;delete P.size,delete P.variant,delete P.radius;const g={wrapper:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option},z=P.classNames;if(z&&typeof z=="object"&&!Array.isArray(z)){const S=z;g.wrapper=S.wrapper?`${F.root} ${S.wrapper}`:F.root,g.input=S.input?`${F.input} ${S.input}`:F.input,g.section=S.section?`${F.section} ${S.section}`:F.section,g.dropdown=S.dropdown?`${F.dropdown} ${S.dropdown}`:F.dropdown,g.option=S.option?`${F.option} ${S.option}`:F.option}const k=$?`${F.layoutOverride} ${$}`:F.layoutOverride;return s.jsx(K,{className:k,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(p.Autocomplete,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...L})})});_o.displayName="AutoComplete";const rs="Avatar-module__root___fXu-J",as="Avatar-module__iconWrapper___ojly2",ns="Avatar-module__textWrapper___zp-jD",ls="Avatar-module__image___ieqGp",is="Avatar-module__placeholder___IDW7-",Z={root:rs,iconWrapper:as,textWrapper:ns,image:ls,placeholder:is},uo=b.forwardRef(function({size:e="default",variant:a="solid",icon:r,children:t,src:o,overStyled:n=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},m={default:"md",small:"sm",large:"lg"},_=x(i,n),h=_;let f="text";o?f="image":r&&(f="icon");const u={root:Z.root,image:Z.image,placeholder:Z.placeholder},y=h.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const $=y;u.root=$.root?`${Z.root} ${$.root}`:Z.root,u.image=$.image?`${Z.image} ${$.image}`:Z.image,u.placeholder=$.placeholder?`${Z.placeholder} ${$.placeholder}`:Z.placeholder}const C=h.className;return s.jsx(p.Avatar,{ref:c,className:C,classNames:u,variant:d[a],size:m[e],src:o,"data-variant":a,"data-size":e,"data-style":f,..._,children:r!=null?s.jsx("span",{className:Z.iconWrapper,"aria-hidden":!0,children:r}):t!=null?s.jsx("span",{className:Z.textWrapper,children:t}):void 0})});uo.displayName="Avatar";const cs=p.createPolymorphicComponent(uo),ds="Badge-module__root___5osNT",J={root:ds},fo=b.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...r},t){const o=x(r,a),n={root:J.root,section:J.section,label:J.label},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;n.root=m.root?`${J.root} ${m.root}`:J.root,n.section=m.section??J.section,n.label=m.label??J.label}const c=o.className,d=c?`${J.root} ${c}`:J.root;return s.jsx(p.Badge,{ref:t,variant:"filled","data-variant":e,...o,className:d,classNames:n})});fo.displayName="Badge";const ps=p.createPolymorphicComponent(fo),ms="Breadcrumb-module__root___x-9ln",_s="Breadcrumb-module__separator___qrUX-",ae={root:ms,separator:_s},bo=b.forwardRef(function({overStyled:e=!1,separator:a=">",...r},t){const o=x({separator:a,...r},e),n={root:ae.root,separator:ae.separator},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;n.root=m.root?`${ae.root} ${m.root}`:ae.root,n.separator=m.separator?`${ae.separator} ${m.separator}`:ae.separator}const c=o.className,d=c?`${ae.root} ${c}`:ae.root;return s.jsx(p.Breadcrumbs,{ref:t,...o,className:d,classNames:n})});bo.displayName="Breadcrumb";const us="Loader-module__root___6iYOP",be={root:us},De=b.forwardRef(function({variant:e="oval",size:a="default",overStyled:r=!1,...t},o){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=x(t,r),d={root:be.root},m=c.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const f=m;d.root=f.root?`${be.root} ${f.root}`:be.root}const _=c.className,h=_?`${be.root} ${_}`:be.root;return s.jsx(p.Loader,{ref:o,type:e,"data-variant":e,"data-size":i,...c,className:h,classNames:d})});De.displayName="Loader";const fs="Button-module__root___Q2R8-",bs="Button-module__loader___X-9u-",ys="Button-module__label___UJ3Zt",Ns="Button-module__labelText___rFV5p",hs="Button-module__iconWrapper___uEKPa",xs="Button-module__section___f2mKr",U={root:fs,loader:bs,label:ys,labelText:Ns,iconWrapper:hs,section:xs};function $s(l){return l==null||l===""?!1:typeof l=="string"?l.trim()!=="":!0}const yo=b.forwardRef(function({variant:e="solid",size:a="default",icon:r,children:t,overStyled:o=!1,loaderVariant:n="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},m){const _={solid:"filled",outline:"outline",text:"subtle"},h={default:"md",small:"sm"},f=x(d,o),u=f;delete u.fullWidth;const y=!!r||!!u.leftSection,C=!!u.rightSection,$=$s(t),w=(y||C)&&!$;let N="label";w?N="icon-only":(y||C)&&(N="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&w&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const j={root:U.root,section:U.section,label:U.label,loader:U.loader},v=u.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const P=v;j.root=P.root?`${U.root} ${P.root}`:U.root,j.section=P.section??U.section,j.label=P.label??U.label}const O=u.className,A=O?`${U.root} ${O}`:U.root,T=u.loaderProps,R=i??(a==="small"?"small":"default");let L=T;return c&&(L={children:s.jsx(De,{variant:n,size:R}),...T}),s.jsx(p.Button,{ref:m,className:A,classNames:j,variant:_[e],size:h[a],loaderProps:L,leftSection:r!=null?s.jsx("span",{className:U.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":e,"data-size":a,"data-content":N,...f,disabled:!!u.disabled||!!u.loading,children:s.jsx("span",{className:U.labelText,children:t})})});yo.displayName="Button";const vs=p.createPolymorphicComponent(yo),Cs="Card-module__root___c9KvZ",ws="Card-module__header___PTXf2",Ps="Card-module__footer___Mu-JC",gs="Card-module__section___BRT8H",js="Card-module__content___oFIQa",se={root:Cs,header:ws,footer:Ps,section:gs,content:js},No=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o={root:se.root},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Card,{ref:r,className:i,classNames:o,...t})});No.displayName="Card";const Ee=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${se.section} ${o}`:se.section,...t})});Ee.displayName="CardSection";const Ve=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${se.header} ${o}`:se.header,...t})});Ve.displayName="CardHeader";const Ge=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${se.footer} ${o}`:se.footer,...t})});Ge.displayName="CardFooter";const qe=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx("div",{ref:r,className:o?`${se.content} ${o}`:se.content,...t})});qe.displayName="CardContent";const ho=p.createPolymorphicComponent(No),We=ho;We.Section=Ee;We.Header=Ve;We.Footer=Ge;We.Content=qe;const Ts=ho,As="Checkbox-module__groupRoot___cBS0o",Ss="Checkbox-module__root___mY3qk",Rs="Checkbox-module__body___5yC7q",Ws="Checkbox-module__inner___rTke4",Ls="Checkbox-module__input___2kt-h",Os="Checkbox-module__icon___-O7i6",Is="Checkbox-module__labelWrapper___GpZkr",Ms="Checkbox-module__label___cwRtI",I={groupRoot:As,root:Ss,body:Rs,inner:Ws,input:Ls,icon:Os,labelWrapper:Is,label:Ms},He=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,className:w,style:N,children:j,readOnly:v,readOnlyComponent:O,emptyValueComponent:A,value:T,defaultValue:R,...L}=e,P=x(L,r),g=P;return delete g.size,s.jsx(K,{className:w,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,readOnly:v&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:R,readOnlyNativeProps:e,activeComponent:s.jsx(p.Checkbox.Group,{ref:a,...P,disabled:v||g.disabled,value:T,defaultValue:R,children:s.jsx("div",{className:I.groupRoot,"data-layout":t,children:j})})})});He.displayName="CheckboxGroup";const Ue=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,h=x(_,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:I.root,body:I.body,inner:I.inner,input:I.input,icon:I.icon,labelWrapper:I.labelWrapper,label:I.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${I.root} ${N.root}`:I.root,u.body=N.body?`${I.body} ${N.body}`:I.body,u.inner=N.inner?`${I.inner} ${N.inner}`:I.inner,u.input=N.input?`${I.input} ${N.input}`:I.input,u.icon=N.icon?`${I.icon} ${N.icon}`:I.icon,u.labelWrapper=N.labelWrapper?`${I.labelWrapper} ${N.labelWrapper}`:I.labelWrapper,u.label=N.label?`${I.label} ${N.label}`:I.label}const C=f.className,$=C?`${I.root} ${C}`:I.root;if(t&&o){const N=!!(f.checked??f.defaultChecked),j=o,v=s.jsx(j,{...e,checked:N,label:f.label});return i?s.jsx(te,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:v}):s.jsx(s.Fragment,{children:v})}const w=s.jsx(p.Checkbox,{ref:a,className:$,classNames:u,disabled:t||n,...h});return i?s.jsx(te,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});Ue.displayName="Checkbox";Ue.Group=He;const zs="Chip-module__root___f5pFk",ks="Chip-module__label___Ov9pg",Fs="Chip-module__mantineIconWrapper___KLSz6",Bs="Chip-module__innerWrapper___EnrTF",Ds="Chip-module__children___zbRAR",Es="Chip-module__leadingIcon___JBtjQ",Vs="Chip-module__removeIcon___pVju-",E={root:zs,label:ks,mantineIconWrapper:Fs,innerWrapper:Bs,children:Ds,leadingIcon:Es,removeIcon:Vs};function Gs(l){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...l,children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const xo=b.forwardRef(function({error:e=!1,icon:a,onRemove:r,removeLabel:t="Remove",children:o,overStyled:n=!1,...i},c){const d=x(i,n),m=d,_={root:E.root,label:E.label,input:E.input,iconWrapper:E.mantineIconWrapper,checkIcon:E.checkIcon},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const $=h;_.root=$.root?`${E.root} ${$.root}`:E.root,_.label=$.label?`${E.label} ${$.label}`:E.label}const f=m.className,u=f?`${E.root} ${f}`:E.root,y=e?"":void 0,C=!o&&(!!a||!!r);return s.jsx(p.Chip,{ref:c,className:u,classNames:_,...y!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...d,children:s.jsxs("span",{className:E.innerWrapper,children:[a&&s.jsx("span",{className:E.leadingIcon,"aria-hidden":!0,children:a}),s.jsx("span",{className:E.children,children:o}),r&&s.jsx("span",{role:"button",className:E.removeIcon,onClick:$=>{$.preventDefault(),$.stopPropagation(),r($)},"aria-label":t,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),$.stopPropagation(),r($))},tabIndex:0,children:s.jsx(Gs,{})})]})})});xo.displayName="Chip";const qs="Container-module__root___UVssr",ye={root:qs},$o=b.forwardRef(function({children:e,size:a,...r},t){const o={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},n=typeof a=="string"&&o[a]?o[a]:a,i={root:ye.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${ye.root} ${_.root}`:ye.root}const d=r.className,m=d?`${ye.root} ${d}`:ye.root;return s.jsx(p.Container,{ref:t,size:n,className:m,classNames:i,...r,children:e})});$o.displayName="Container";const Hs=l=>s.jsx("div",{...l,children:"DatePicker"}),Us="Dropdown-module__layoutOverride___FNcvP",Zs="Dropdown-module__root___uVyL0",Ys="Dropdown-module__input___dK4dN",Ks="Dropdown-module__section___j3MRB",Qs="Dropdown-module__dropdown___gG-Sw",Xs="Dropdown-module__option___nAGU-",B={layoutOverride:Us,root:Zs,input:Ys,section:Ks,dropdown:Qs,option:Xs},vo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",containerWidth:o,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,className:w,style:N,disabled:j,readOnly:v,readOnlyComponent:O,emptyValueComponent:A,value:T,defaultValue:R,data:L,...P}=e,g=x(P,r),z=g;delete z.size,delete z.variant,delete z.radius;const k={wrapper:B.root,input:B.input,section:B.section,dropdown:B.dropdown,option:B.option},S=z.classNames;if(S&&typeof S=="object"&&!Array.isArray(S)){const q=S;k.wrapper=q.wrapper?`${B.root} ${q.wrapper}`:B.root,k.input=q.input?`${B.input} ${q.input}`:B.input,k.section=q.section?`${B.section} ${q.section}`:B.section,k.dropdown=q.dropdown?`${B.dropdown} ${q.dropdown}`:B.dropdown,k.option=q.option?`${B.option} ${q.option}`:B.option}const we={...N||{},width:o||"100%"},Oe=w?`${B.layoutOverride} ${w}`:B.layoutOverride;return s.jsx(K,{className:Oe,style:we,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:r,formLayout:t,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,readOnly:v,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):R?String(R):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(p.Select,{ref:a,classNames:k,disabled:j,value:T,defaultValue:R,data:L||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":j?"true":void 0,"data-error":u?"true":void 0},...g})})});vo.displayName="Dropdown";const Js=l=>s.jsx("div",{...l,children:"FileInput"}),er=l=>s.jsx("div",{...l,children:"FileUpload"}),or="Flex-module__root___yYser",Ne={root:or},Co=b.forwardRef(function({children:e,gap:a="rec-default",rowGap:r,columnGap:t,...o},n){const i={root:Ne.root},c=o.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${Ne.root} ${_.root}`:Ne.root}const d=o.className,m=d?`${Ne.root} ${d}`:Ne.root;return s.jsx(p.Flex,{ref:n,className:m,classNames:i,...ze({gap:a,rowGap:r,columnGap:t,...o}),children:e})});Co.displayName="Flex";const tr=p.createPolymorphicComponent(Co),sr="Group-module__root___ftO64",he={root:sr},wo=b.forwardRef(function({children:e,gap:a="rec-default",...r},t){const o={root:he.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${he.root} ${d.root}`:he.root}const i=r.className,c=i?`${he.root} ${i}`:he.root;return s.jsx(p.Group,{ref:t,className:c,classNames:o,...ze({gap:a,...r}),children:e})});wo.displayName="Group";const rr="HoverCard-module__dropdown___FBPFW",ar="HoverCard-module__arrow___S9AkE",no={dropdown:rr,arrow:ar},Po=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={dropdown:no.dropdown,arrow:no.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:o,...t})};Po.displayName="HoverCard";const go=function(e){return s.jsx(p.HoverCard.Target,{...e})};go.displayName="HoverCardTarget";const jo=function({overStyled:e=!1,...a}){const r=x(a,e),t=r.className;return s.jsx(p.HoverCard.Dropdown,{className:t,...r})};jo.displayName="HoverCardDropdown";const Ze=Po;Ze.Target=go;Ze.Dropdown=jo;const nr="Link-module__root___I0VGE",lr="Link-module__iconWrapper___W-LlF",ir="Link-module__labelText___wSvUy",ce={root:nr,iconWrapper:lr,labelText:ir},To=b.forwardRef(function({icon:e,children:a,overStyled:r=!1,...t},o){const n=x(t,r),i=n,c={root:ce.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;c.root=h.root?`${ce.root} ${h.root}`:ce.root}const m=i.className,_=m?`${ce.root} ${m}`:ce.root;return s.jsxs(p.Anchor,{ref:o,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...n,children:[e&&s.jsx("span",{className:ce.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:ce.labelText,children:a})]})});To.displayName="Link";const cr=p.createPolymorphicComponent(To),dr="Menu-module__dropdown___j4xuA",pr="Menu-module__item___NMXha",mr="Menu-module__itemLabel___zvcqC",_r="Menu-module__itemSection___pRIcn",ur="Menu-module__divider___wPiNq",fr="Menu-module__label___4FBGa",br="Menu-module__chevron___hEEiy",de={dropdown:dr,item:pr,itemLabel:mr,itemSection:_r,divider:ur,label:fr,chevron:br},Ao=function({overStyled:e=!1,...a}){const r=x(a,e),t={dropdown:de.dropdown,item:de.item,itemLabel:de.itemLabel,itemSection:de.itemSection,divider:de.divider,label:de.label,chevron:de.chevron},o=r.classNames;if(o&&typeof o=="object"&&!Array.isArray(o)){const n=o;Object.keys(n).forEach(i=>{t[i]?t[i]=`${t[i]} ${n[i]}`:t[i]=n[i]})}return s.jsx(p.Menu,{classNames:t,...r})};Ao.displayName="Menu";const So=function(e){return s.jsx(p.Menu.Target,{...e})};So.displayName="MenuTarget";const Ro=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Dropdown,{ref:r,className:o,...t})});Ro.displayName="MenuDropdown";const Wo=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t;e||delete o.color;const n=o.className;return s.jsx(p.Menu.Item,{ref:r,className:n,...t})});Wo.displayName="MenuItem";const yr=p.createPolymorphicComponent(Wo),Lo=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Divider,{ref:r,className:o,...t})});Lo.displayName="MenuDivider";const Oo=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Label,{ref:r,className:o,...t})});Oo.displayName="MenuLabel";const Io=function(e){return s.jsx(p.Menu.Sub,{...e})};Io.displayName="MenuSub";const Mo=function(e){return s.jsx(p.Menu.Sub.Target,{...e})};Mo.displayName="MenuSubTarget";const zo=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t;e||delete o.color;const n=o.className;return s.jsx(p.Menu.Sub.Item,{ref:r,className:n,...t})});zo.displayName="MenuSubItem";const Nr=p.createPolymorphicComponent(zo),ko=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Sub.Dropdown,{ref:r,className:o,...t})});ko.displayName="MenuSubDropdown";const Le=Io;Le.Target=Mo;Le.Item=Nr;Le.Dropdown=ko;const _e=Ao;_e.Target=So;_e.Dropdown=Ro;_e.Item=yr;_e.Divider=Lo;_e.Label=Oo;_e.Sub=Le;const hr="Modal-module__root___ytPLl",xr="Modal-module__inner___SSUJE",$r="Modal-module__content___dWO-B",vr="Modal-module__header___ILG9i",Cr="Modal-module__title___A5OeE",wr="Modal-module__bodyWrapper___5CCL-",Pr="Modal-module__scrollArea___KD-hm",gr="Modal-module__footer___rro2w",jr="Modal-module__close___-ER1C",oe={root:hr,inner:xr,content:$r,header:vr,title:Cr,bodyWrapper:wr,scrollArea:Pr,footer:gr,close:jr},Fo=b.forwardRef(function({overStyled:e=!1,children:a,title:r,withCloseButton:t=!0,overlayProps:o,withOverlay:n=!0,closeButtonProps:i,...c},d){const m=x(c,e),_={root:oe.root,inner:oe.inner,content:oe.content,header:oe.header,title:oe.title,close:oe.close},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;Object.keys(f).forEach(u=>{_[u]?_[u]=`${_[u]} ${f[u]}`:_[u]=f[u]})}return s.jsxs(p.Modal.Root,{ref:d,classNames:_,...m,children:[n&&s.jsx(p.Modal.Overlay,{...o}),s.jsxs(p.Modal.Content,{children:[(r||t)&&s.jsxs(p.Modal.Header,{children:[r&&s.jsx(p.Modal.Title,{children:r}),t&&s.jsx(p.Modal.CloseButton,{...i})]}),s.jsx(Ke,{children:a})]})]})});Fo.displayName="Modal";const Ye=b.forwardRef(function({className:e,...a},r){return s.jsx("div",{ref:r,className:`${oe.footer} ${e||""}`,...a})});Ye.displayName="Modal.Footer";const Ke=b.forwardRef(function({className:e,onScroll:a,children:r,...t},o){const n=b.useRef(null),[i,c]=b.useState(!1),[d,m]=b.useState(!1),_=b.useCallback(()=>{if(n.current){const{scrollTop:y,scrollHeight:C,clientHeight:$}=n.current;c(y>0),m(Math.ceil(y+$)<C)}},[]);b.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,r]);const h=y=>{_(),a==null||a(y)};let f=null;const u=[];return b.Children.forEach(r,y=>{var C;b.isValidElement(y)&&(y.type===Ye||((C=y.type)==null?void 0:C.displayName)==="Modal.Footer")?f=y:u.push(y)}),s.jsxs(p.Modal.Body,{...t,ref:y=>{typeof o=="function"?o(y):o&&(o.current=y)},className:`${oe.bodyWrapper} ${e||""}`,children:[s.jsx("div",{ref:n,onScroll:h,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:oe.scrollArea,children:u}),f]})});Ke.displayName="Modal.Body";const re=Fo;re.Root=p.Modal.Root;re.Overlay=p.Modal.Overlay;re.Content=p.Modal.Content;re.Header=p.Modal.Header;re.Title=p.Modal.Title;re.CloseButton=p.Modal.CloseButton;re.Body=Ke;re.Footer=Ye;const Tr="NumberInput-module__layoutOverride___5-9T4",Ar="NumberInput-module__root___C6rAn",Sr="NumberInput-module__input___Ss8p7",Rr="NumberInput-module__section___MijP0",Wr="NumberInput-module__controls___8UfQ2",Lr="NumberInput-module__control___Qre9-",pe={layoutOverride:Tr,root:Ar,input:Sr,section:Rr,controls:Wr,control:Lr},Bo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,className:$,style:w,disabled:N,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,value:A,defaultValue:T,hideControls:R=!1,...L}=e,P=x(L,r),g=P;delete g.size,delete g.variant,delete g.radius;const z={wrapper:pe.root,input:pe.input,section:pe.section,controls:pe.controls,control:pe.control},k=$?`${pe.layoutOverride} ${$}`:pe.layoutOverride;return s.jsx(K,{className:k,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():T==null?void 0:T.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(p.NumberInput,{ref:a,classNames:z,disabled:N,value:A,defaultValue:T,hideControls:R,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!R?"true":void 0},...P})})});Bo.displayName="NumberInput";const Or="Pagination-module__root___ITRjt",Ir="Pagination-module__control___40yNT",Mr="Pagination-module__dots___Yl9da",zr="Pagination-module__iconWithLabel___pLM4O",kr="Pagination-module__baseIcon___Qw3bJ",D={root:Or,control:Ir,dots:Mr,iconWithLabel:zr,baseIcon:kr},Fr="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Br="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Dr="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",Er="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Vr={next:Fr,prev:Br,first:Dr,last:Er},Ce=({type:l,className:e,...a})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${D.baseIcon} ${e||""}`.trim(),...a,children:s.jsx("path",{d:Vr[l],fill:"currentColor"})}),Do=l=>s.jsxs("div",{className:D.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx(Ce,{type:"next",...l})]}),Eo=l=>s.jsxs("div",{className:D.iconWithLabel,children:[s.jsx(Ce,{type:"prev",...l}),s.jsx("span",{children:"Prev"})]}),Vo=l=>s.jsxs("div",{className:D.iconWithLabel,children:[s.jsx(Ce,{type:"first",...l}),s.jsx("span",{children:"First"})]}),Go=l=>s.jsxs("div",{className:D.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx(Ce,{type:"last",...l})]});function qo(l){const e={root:D.root,control:D.control,dots:D.dots},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${D.root} ${o.root}`:D.root,e.control=o.control?`${D.control} ${o.control}`:D.control,e.dots=o.dots?`${D.dots} ${o.dots}`:D.dots}const r=l.className;return{className:r?`${D.root} ${r}`:D.root,classNames:e}}const Ho=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=qo(t);return s.jsx(p.Pagination.Root,{ref:r,className:o.className,classNames:o.classNames,...t})});Ho.displayName="Pagination.Root";const Uo=b.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Do:void 0);return s.jsx(p.Pagination.Next,{ref:t,"data-variant":"text",icon:o,...r})});Uo.displayName="Pagination.Next";const Zo=b.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Eo:void 0);return s.jsx(p.Pagination.Previous,{ref:t,"data-variant":"text",icon:o,...r})});Zo.displayName="Pagination.Previous";const Yo=b.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Vo:void 0);return s.jsx(p.Pagination.First,{ref:t,"data-variant":"text",icon:o,...r})});Yo.displayName="Pagination.First";const Ko=b.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Go:void 0);return s.jsx(p.Pagination.Last,{ref:t,"data-variant":"text",icon:o,...r})});Ko.displayName="Pagination.Last";const Qo=b.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:r,...t},o){const n=x(t,e),i=qo(n),c=m=>{const _={"data-variant":"text"};return a?{..._,...a(m)}:_},d=r?{nextIcon:Do,previousIcon:Eo,firstIcon:Vo,lastIcon:Go}:{};return s.jsx(p.Pagination,{ref:o,className:i.className,classNames:i.classNames,getControlProps:c,...d,...n})});Qo.displayName="Pagination";const Q=Qo;Q.Root=Ho;Q.Items=p.Pagination.Items;Q.Control=p.Pagination.Control;Q.Dots=p.Pagination.Dots;Q.Next=Uo;Q.Previous=Zo;Q.First=Yo;Q.Last=Ko;Q.Icon=Ce;const Gr="Panel-module__content___wdGo-",qr="Panel-module__inner___ruA2b",Hr="Panel-module__header___o7SiC",Ur="Panel-module__title___181OP",Zr="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Yr="Panel-module__body___SEC3T",Kr="Panel-module__footer___t6-hz",ie={content:Gr,inner:qr,header:Hr,title:Ur,titleTruncate:Zr,body:Yr,footer:Kr},Xo=function({overStyled:e=!1,position:a="right",keepMounted:r=!0,wrapHeaderText:t=!1,...o}){const n=x(o,e),i={content:ie.content,header:ie.header,title:t?ie.titleTruncate:ie.title,body:ie.body,inner:ie.inner},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(m=>{i[m]?i[m]=`${i[m]} ${d[m]}`:i[m]=d[m]})}return s.jsx(p.Drawer,{position:a,keepMounted:r,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...n,classNames:i})};Xo.displayName="Panel";const Qe=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className,n=o?`${ie.footer} ${o}`:ie.footer;return s.jsx("div",{ref:r,className:n,...t})});Qe.displayName="PanelFooter";const X=Xo;X.Root=p.Drawer.Root;X.Overlay=p.Drawer.Overlay;X.Content=p.Drawer.Content;X.Header=p.Drawer.Header;X.Title=p.Drawer.Title;X.CloseButton=p.Drawer.CloseButton;X.Body=p.Drawer.Body;X.Stack=p.Drawer.Stack;X.Footer=Qe;const Qr="Popover-module__dropdown___svhS6",Xr="Popover-module__arrow___5A-0e",lo={dropdown:Qr,arrow:Xr},Jo=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={dropdown:lo.dropdown,arrow:lo.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:o,...t})};Jo.displayName="Popover";const et=function(e){return s.jsx(p.Popover.Target,{...e})};et.displayName="PopoverTarget";const ot=function({overStyled:e=!1,...a}){const r=x(a,e),t=r.className;return s.jsx(p.Popover.Dropdown,{className:t,...r})};ot.displayName="PopoverDropdown";const Xe=Jo;Xe.Target=et;Xe.Dropdown=ot;const Jr="Radio-module__groupRoot___bfUii",ea="Radio-module__root___kAjTD",oa="Radio-module__body___q2Wpj",ta="Radio-module__inner___QaTBB",sa="Radio-module__radio___MfgN-",ra="Radio-module__icon___DWznm",aa="Radio-module__labelWrapper___dB0Gi",na="Radio-module__label___vAFIP",M={groupRoot:Jr,root:ea,body:oa,inner:ta,radio:sa,icon:ra,labelWrapper:aa,label:na},Je=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,className:w,style:N,children:j,readOnly:v,readOnlyComponent:O,emptyValueComponent:A,value:T,defaultValue:R,...L}=e,P=x(L,r),g=P;return delete g.size,s.jsx(K,{className:w,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,readOnly:v&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:R,readOnlyNativeProps:e,activeComponent:s.jsx(p.Radio.Group,{ref:a,...P,disabled:v||g.disabled,value:T,defaultValue:R,children:s.jsx("div",{className:M.groupRoot,"data-layout":t,children:j})})})});Je.displayName="RadioGroup";const la=({className:l,style:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:l,style:e,children:s.jsx("circle",{cx:"8",cy:"8",r:"5"})}),eo=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,h=x(_,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:M.root,body:M.body,inner:M.inner,radio:M.radio,icon:M.icon,labelWrapper:M.labelWrapper,label:M.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${M.root} ${N.root}`:M.root,u.body=N.body?`${M.body} ${N.body}`:M.body,u.inner=N.inner?`${M.inner} ${N.inner}`:M.inner,u.radio=N.radio?`${M.radio} ${N.radio}`:M.radio,u.icon=N.icon?`${M.icon} ${N.icon}`:M.icon,u.labelWrapper=N.labelWrapper?`${M.labelWrapper} ${N.labelWrapper}`:M.labelWrapper,u.label=N.label?`${M.label} ${N.label}`:M.label}const C=f.className,$=C?`${M.root} ${C}`:M.root;if(t&&o){const N=!!(f.checked??f.defaultChecked),j=o,v=s.jsx(j,{...e,checked:N,label:f.label});return i?s.jsx(te,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:v}):s.jsx(s.Fragment,{children:v})}const w=s.jsx(p.Radio,{ref:a,icon:la,className:$,classNames:u,disabled:t||n,...h});return i?s.jsx(te,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});eo.displayName="Radio";eo.Group=Je;const tt=({checked:l,label:e})=>s.jsxs(p.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:l?"On":"Off"})]});tt.displayName="ReadOnlySwitchField";const st=({checked:l,label:e})=>s.jsxs(p.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:l?"True":"False"})]});st.displayName="ReadOnlyBooleanField";const ia="SegmentedControl-module__root___JFRhg",ca="SegmentedControl-module__label___mS17q",da="SegmentedControl-module__control___znOdQ",pa="SegmentedControl-module__indicator___ZMcJy",G={root:ia,label:ca,control:da,indicator:pa};function ma(l){const e={root:G.root,control:G.control,label:G.label,indicator:G.indicator},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${G.root} ${o.root}`:G.root,e.control=o.control?`${G.control} ${o.control}`:G.control,e.label=o.label?`${G.label} ${o.label}`:G.label,e.indicator=o.indicator?`${G.indicator} ${o.indicator}`:G.indicator}const r=l.className;return{className:r?`${G.root} ${r}`:G.root,classNames:e}}const rt=b.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:r,...t},o){const n=x(t,e),i=n;delete i.disabled;const c=ma(i);return s.jsx(p.SegmentedControl,{ref:o,className:c.className,classNames:c.classNames,orientation:a,fullWidth:r,"data-orientation":a,...n})});rt.displayName="SegmentedControl";const _a=rt,ua=l=>s.jsx("div",{...l,children:"Slider"}),fa="Stack-module__root___NUN-x",xe={root:fa},at=b.forwardRef(function({children:e,gap:a="rec-default",...r},t){const o={root:xe.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${xe.root} ${d.root}`:xe.root}const i=r.className,c=i?`${xe.root} ${i}`:xe.root;return s.jsx(p.Stack,{ref:t,className:c,classNames:o,...ze({gap:a,...r}),children:e})});at.displayName="Stack";const ba=p.createPolymorphicComponent(at),ya="Stepper-module__root___jbSYO",Na="Stepper-module__horizontal___USHT1",ha="Stepper-module__steps___4HPO6",xa="Stepper-module__step___s2nqL",$a="Stepper-module__stepBody___TBvys",va="Stepper-module__stepLabel___N6nuy",Ca="Stepper-module__stepDescription___DnDAy",wa="Stepper-module__separator___pU0No",Pa="Stepper-module__vertical___d4mOs",ga="Stepper-module__large___J18-y",ja="Stepper-module__small___Ub-zb",Ta="Stepper-module__stepIcon___YQHNq",Aa="Stepper-module__stepCompletedIcon___B9MeL",Sa="Stepper-module__verticalSeparator___frWc1",Ra="Stepper-module__content___J-h8X",V={root:ya,horizontal:Na,steps:ha,step:xa,stepBody:$a,stepLabel:va,stepDescription:Ca,separator:wa,vertical:Pa,large:ga,small:ja,stepIcon:Ta,stepCompletedIcon:Aa,verticalSeparator:Sa,content:Ra},nt=b.forwardRef(function(e,a){const{overStyled:r=!1,size:t="large",orientation:o="horizontal",className:n,style:i,...c}=e,d=x(c,r);return s.jsx(p.Stepper,{ref:a,orientation:o,className:`${V.root} ${o==="horizontal"?V.horizontal:V.vertical} ${t==="large"?V.large:V.small} ${n||""}`,style:i,"data-size":t,"data-orientation":o,classNames:{steps:V.steps,step:V.step,stepIcon:V.stepIcon,stepCompletedIcon:V.stepCompletedIcon,stepBody:V.stepBody,stepLabel:V.stepLabel,stepDescription:V.stepDescription,separator:V.separator,verticalSeparator:V.verticalSeparator,content:V.content},...d})}),Wa=Object.assign(nt,{Step:p.Stepper.Step,Completed:p.Stepper.Completed});nt.displayName="Stepper";const La="Switch-module__root___Y5Ydi",Oa="Switch-module__body___Sw9Wr",Ia="Switch-module__track___7ObdZ",Ma="Switch-module__thumb___-FTeK",za="Switch-module__labelWrapper___YSOwx",ka="Switch-module__label___LrH7V",Fa="Switch-module__thumbIconWrapper___sCY-1",Ba="Switch-module__checkIcon___ZBAQN",Da="Switch-module__closeIcon___bLLGw",Ea="Switch-module__groupRoot___-Uepi",W={root:La,body:Oa,track:Ia,thumb:Ma,labelWrapper:za,label:ka,thumbIconWrapper:Fa,checkIcon:Ba,closeIcon:Da,groupRoot:Ea},oo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,className:w,style:N,children:j,readOnly:v,readOnlyComponent:O,emptyValueComponent:A,value:T,defaultValue:R,...L}=e,P=x(L,r),g=P;return delete g.size,s.jsx(K,{className:w,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:C,id:$,readOnly:v&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:R,readOnlyNativeProps:e,activeComponent:s.jsx(p.Switch.Group,{ref:a,...P,disabled:v||g.disabled,value:T,defaultValue:R,children:s.jsx("div",{className:W.groupRoot,"data-layout":t,children:j})})})});oo.displayName="SwitchGroup";const to=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,...h}=e,f=x(h,r),u=f;delete u.size,delete u.color,delete u.radius,delete u.variant;const y={root:W.root,body:W.body,track:W.track,thumb:W.thumb,trackLabel:W.trackLabel,labelWrapper:W.labelWrapper,label:W.label},C=u.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const v=C;y.root=v.root?`${W.root} ${v.root}`:W.root,y.body=v.body?`${W.body} ${v.body}`:W.body,y.track=v.track?`${W.track} ${v.track}`:W.track,y.thumb=v.thumb?`${W.thumb} ${v.thumb}`:W.thumb,y.trackLabel=v.trackLabel?`${W.trackLabel} ${v.trackLabel}`:W.trackLabel,y.labelWrapper=v.labelWrapper?`${W.labelWrapper} ${v.labelWrapper}`:W.labelWrapper,y.label=v.label?`${W.label} ${v.label}`:W.label}const $=u.className,w=$?`${W.root} ${$}`:W.root;if(t&&o){const v=!!(u.checked??u.defaultChecked),O=o,A=s.jsx(O,{...e,checked:v,label:u.label});return c?s.jsx(te,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:A}):s.jsx(s.Fragment,{children:A})}const N=s.jsxs("div",{className:W.thumbIconWrapper,children:[s.jsx(p.CheckIcon,{className:W.checkIcon}),s.jsx(p.CloseIcon,{className:W.closeIcon})]}),j=s.jsx(p.Switch,{ref:a,className:w,classNames:y,disabled:t||n,"data-disabled":t||n||void 0,thumbIcon:i??N,...f});return c?s.jsx(te,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:j}):j});to.displayName="Switch";to.Group=oo;const Va=l=>s.jsx("div",{...l,children:"Table"}),Ga="Tabs-module__root___-VKVI",qa="Tabs-module__list___qRVME",Ha="Tabs-module__tab___IdDYc",Ua="Tabs-module__panel___08i9c",ge={root:Ga,list:qa,tab:Ha,panel:Ua},lt=b.forwardRef(function(e,a){const{variant:r="default",orientation:t="horizontal",overStyled:o=!1,className:n,...i}=e,c=x(i,o);return s.jsx(p.Tabs,{ref:a,variant:r,orientation:t,className:`${ge.root} ${n||""}`,"data-variant":r,"data-orientation":t,classNames:{list:ge.list,tab:ge.tab,panel:ge.panel},...c})});lt.displayName="Tabs";const it=b.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.List,{ref:a,...x(t,r)})});it.displayName="Tabs.List";const ct=b.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.Tab,{ref:a,...x(t,r)})});ct.displayName="Tabs.Tab";const dt=b.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.Panel,{ref:a,...x(t,r)})});dt.displayName="Tabs.Panel";const Za=Object.assign(lt,{List:it,Tab:ct,Panel:dt}),pt=b.forwardRef(function({overStyled:e=!1,variant:a="body",...r},t){const o=x(r,e),n=o.className,i=`recursica_brand_typography_${a}`,c=n?`${i} ${n}`:i;return s.jsx(p.Text,{ref:t,className:c,...o})});pt.displayName="Text";const Ya=p.createPolymorphicComponent(pt),Ka="TextArea-module__layoutOverride___4MCdm",Qa="TextArea-module__root___3dyeu",Xa="TextArea-module__input___8l36v",ne={layoutOverride:Ka,root:Qa,input:Xa},mt=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,className:$,style:w,disabled:N,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,value:A,defaultValue:T,...R}=e,L=x(R,r),P=L;delete P.size,delete P.variant,delete P.radius;const g={wrapper:ne.root,input:ne.input},z=P.classNames;if(z&&typeof z=="object"&&!Array.isArray(z)){const S=z;g.wrapper=S.wrapper?`${ne.root} ${S.wrapper}`:ne.root,g.input=S.input?`${ne.input} ${S.input}`:ne.input}const k=$?`${ne.layoutOverride} ${$}`:ne.layoutOverride;return s.jsx(K,{className:k,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(p.Textarea,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...L})})});mt.displayName="TextArea";const Ja="TextField-module__layoutOverride___SNZqc",en="TextField-module__root___2ZYkG",on="TextField-module__input___RL-My",tn="TextField-module__section___bCIJ0",Y={layoutOverride:Ja,root:en,input:on,section:tn},_t=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,className:$,style:w,disabled:N,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,value:A,defaultValue:T,...R}=e,L=x(R,r),P=L;delete P.size,delete P.variant,delete P.radius;const g={wrapper:Y.root,input:Y.input,section:Y.section},z=P.classNames;if(z&&typeof z=="object"&&!Array.isArray(z)){const S=z;g.wrapper=S.wrapper?`${Y.root} ${S.wrapper}`:Y.root,g.input=S.input?`${Y.input} ${S.input}`:Y.input,g.section=S.section?`${Y.section} ${S.section}`:Y.section}const k=$?`${Y.layoutOverride} ${$}`:Y.layoutOverride;return s.jsx(K,{className:k,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:C,readOnly:j,readOnlyComponent:v,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(p.Input,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...L})})});_t.displayName="TextField";const sn=l=>s.jsx("div",{...l,children:"TimePicker"}),rn="Timeline-module__root___LwRdZ",an="Timeline-module__item___T5xdQ",nn="Timeline-module__itemBody___XAV-E",ln="Timeline-module__itemBullet___rPXCy",cn="Timeline-module__itemTitle___GgRRW",dn="Timeline-module__itemContent___vurs-",pn="Timeline-module__description___f9sxV",mn="Timeline-module__timestamp___owiRu",le={root:rn,item:an,itemBody:nn,itemBullet:ln,itemTitle:cn,itemContent:dn,description:pn,timestamp:mn},ut=b.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:r="default",children:t,...o},n){const i=x(o,e),c={item:le.item,itemBody:le.itemBody,itemContent:le.itemContent,itemBullet:le.itemBullet,itemTitle:le.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach(h=>{c[h]?c[h]=`${c[h]} ${_[h]}`:c[h]=_[h]})}const m=a?s.jsxs(s.Fragment,{children:[t&&s.jsx("div",{className:le.description,children:t}),s.jsx("div",{className:le.timestamp,children:a})]}):t;return s.jsx(p.TimelineItem,{ref:n,classNames:c,"data-variant":r,...i,children:m})});ut.displayName="TimelineItem";const ft=b.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o={root:le.root},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;Object.keys(i).forEach(c=>{o[c]?o[c]=`${o[c]} ${i[c]}`:o[c]=i[c]})}return s.jsx(p.Timeline,{ref:r,classNames:o,...t})});ft.displayName="Timeline";const bt=ft;bt.Item=ut;const yt=b.forwardRef(function({overStyled:e=!1,order:a=1,...r},t){const o=x(r,e),n=o.className,i=`recursica_brand_typography_h${a}`,c=n?`${i} ${n}`:i;return s.jsx(p.Title,{ref:t,order:a,className:c,...o})});yt.displayName="Title";const _n="Toast-module__root___MUvfI",un="Toast-module__icon___VwvE1",fn="Toast-module__loader___8Gxd-",bn="Toast-module__title___-H6R2",yn="Toast-module__description___-QwfC",Nn="Toast-module__closeButton___vGr7g",hn="Toast-module__body___VLkXA",me={root:_n,icon:un,loader:fn,title:bn,description:yn,closeButton:Nn,body:hn},Nt=b.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:r=!0,...t},o){const n=x(t,e),i={root:me.root,body:me.body,title:me.title,description:me.description,closeButton:me.closeButton,icon:me.icon,loader:me.loader},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(m=>{i[m]?i[m]=`${i[m]} ${d[m]}`:i[m]=d[m]})}return s.jsx(p.Notification,{ref:o,withCloseButton:r,withBorder:!1,"data-variant":a,classNames:i,loading:!1,...n})});Nt.displayName="Toast";const xn="Tooltip-module__tooltip___UA7H9",$n="Tooltip-module__arrow___4zROk",io={tooltip:xn,arrow:$n},ht=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={tooltip:io.tooltip,arrow:io.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:o,...t})};ht.displayName="Tooltip";const so=ht;so.Floating=p.Tooltip.Floating;so.Group=p.Tooltip.Group;const vn=l=>s.jsx("div",{...l,children:"TransferList"});exports.Accordion=Re;exports.AccordionControl=Ae;exports.AccordionItem=ke;exports.AccordionPanel=Se;exports.AutoComplete=_o;exports.Avatar=cs;exports.Badge=ps;exports.Breadcrumb=bo;exports.Button=vs;exports.Card=Ts;exports.CardContent=qe;exports.CardFooter=Ge;exports.CardHeader=Ve;exports.CardSection=Ee;exports.Checkbox=Ue;exports.CheckboxGroup=He;exports.Chip=xo;exports.Container=$o;exports.DatePicker=Hs;exports.Dropdown=vo;exports.EmptyValueRenderer=ve;exports.FileInput=Js;exports.FileUpload=er;exports.Flex=tr;exports.FormControlLayout=te;exports.Group=wo;exports.HoverCard=Ze;exports.Label=Fe;exports.Layer=mo;exports.Link=cr;exports.Loader=De;exports.Menu=_e;exports.Modal=re;exports.NumberInput=Bo;exports.Pagination=Q;exports.Panel=X;exports.PanelFooter=Qe;exports.Popover=Xe;exports.Radio=eo;exports.RadioGroup=Je;exports.ReadOnlyBooleanField=st;exports.ReadOnlyField=Be;exports.ReadOnlySwitchField=tt;exports.ReadOnlyTextField=$e;exports.RecursicaThemeProvider=Yt;exports.SegmentedControl=_a;exports.Slider=ua;exports.Stack=ba;exports.Stepper=Wa;exports.Switch=to;exports.SwitchGroup=oo;exports.Table=Va;exports.Tabs=Za;exports.Text=Ya;exports.TextArea=mt;exports.TextField=_t;exports.TimePicker=sn;exports.Timeline=bt;exports.Title=yt;exports.Toast=Nt;exports.Tooltip=so;exports.TransferList=vn;exports.WithReadOnlyWrapper=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),b=require("react"),m=require("@mantine/core"),Vt=require("@mantine/dates"),Gt=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],Co=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ke={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function qe(l){const e={...l};for(const[a,s]of Object.entries(e))typeof s=="string"&&s.startsWith("rec-")&&Co.has(a)&&s in ke&&(e[a]=ke[s]);return e}function x(l,e){if(e)return l;const a={...l};for(const s of Gt)s in a&&delete a[s];for(const[s,r]of Object.entries(a))typeof r=="string"&&r.startsWith("rec-")&&Co.has(s)&&r in ke&&(a[s]=ke[r]);return a}const Ht="Accordion-module__root___Dem6d",qt="Accordion-module__item___7ryVk",Ut="Accordion-module__noDivider___Ni2tT",Zt="Accordion-module__control___b4wgX",Yt="Accordion-module__label___Ss7uW",Kt="Accordion-module__chevron___i-HVZ",Xt="Accordion-module__iconLeftWrapper___5oLen",Jt="Accordion-module__panel___Wx50w",Qt="Accordion-module__content___PEM9t",re={root:Ht,item:qt,noDivider:Ut,control:Zt,label:Yt,chevron:Kt,iconLeftWrapper:Xt,panel:Jt,content:Qt},wo=function({variant:e="unstyled",overStyled:a=!1,...s}){const r=x(s,a),o={root:re.root,item:re.item,control:re.control,label:re.label,chevron:re.chevron,panel:re.panel,content:re.content},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=r.className;return t.jsx(m.Accordion,{variant:e,className:i,classNames:o,...r})};wo.displayName="Accordion";const Ue=b.forwardRef(function({title:e,leftIcon:a,divider:s=!0,children:r,overStyled:o=!1,...n},i){const c=x(n,o),d=c.className,p=[s?void 0:re.noDivider,d].filter(Boolean).join(" ")||void 0;return t.jsx(m.Accordion.Item,{ref:i,className:p,...c,children:e?t.jsxs(t.Fragment,{children:[t.jsx(Me,{leftIcon:a,children:e}),t.jsx(ze,{children:r})]}):r})});Ue.displayName="AccordionItem";const Me=b.forwardRef(function({leftIcon:e,children:a,overStyled:s=!1,...r},o){const n=x(r,s),i=n.className;return t.jsx(m.Accordion.Control,{ref:o,className:i,icon:e?t.jsx("span",{className:re.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...n,children:a})});Me.displayName="AccordionControl";const ze=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Accordion.Panel,{ref:s,className:o,...r})});ze.displayName="AccordionPanel";const Fe=wo;Fe.Item=Ue;Fe.Control=Me;Fe.Panel=ze;const er="Label-module__root___e6HXZ",or="Label-module__labelText___rieFR",tr="Label-module__required___Ggrzc",rr="Label-module__optionalText___Y2yun",sr="Label-module__actionAreaWrapper___ELoZK",ar="Label-module__editIconWrapper___NG2xW",Y={root:er,labelText:or,required:tr,optionalText:rr,actionAreaWrapper:sr,editIconWrapper:ar},Ze=b.forwardRef(function({labelSize:e="default",labelAlignment:a,required:s=!1,labelOptionalText:r,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,children:c,overStyled:d=!1,...p},_){const h=a||"left";let f;s||(r===!0?f="optional":r&&(f=r));const u=x(p,d),y=u,w={label:Y.root,required:Y.required},C=y.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const S=C;w.label=S.label?`${Y.root} ${S.label}`:Y.root,w.required=S.required?`${Y.required} ${S.required}`:Y.required}const v=y.className,N=v?`${Y.root} ${v}`:Y.root;return t.jsxs(m.Input.Label,{ref:_,className:N,classNames:w,"data-size":e,"data-alignment":h,required:s&&!o,...u,children:[t.jsx("span",{className:Y.labelText,children:c}),f&&t.jsx("span",{className:Y.optionalText,children:typeof f=="string"?`(${f})`:f}),n?t.jsx("span",{className:Y.actionAreaWrapper,children:n}):o?t.jsx("button",{type:"button",className:Y.editIconWrapper,"data-replaces-asterisk":s?"true":void 0,onClick:i,"aria-label":"Edit",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Ze.displayName="Label";const nr="FormControlLayout-module__root___yNDhZ",lr="FormControlLayout-module__leftSection___GBM1r",ir="FormControlLayout-module__rightSection___bcL4v",We={root:nr,leftSection:lr,rightSection:ir},ae=b.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:s,controlMinWidth:r,leftSection:o,children:n,className:i,style:c,...d},p){const _=i?`${We.root} ${i}`:We.root,f=o!=null||e==="side-by-side";return t.jsxs("div",{ref:p,className:_,"data-form-layout":e,style:{...c,...s?{"--form-control-max-width":s}:{},...r?{"--form-control-min-width":r}:{}},...d,children:[f&&t.jsx("div",{className:We.leftSection,"data-size":a,children:o}),t.jsx("div",{className:We.rightSection,children:n})]})});ae.displayName="FormControlLayout";const cr="AssistiveElement-module__root___WhQ43",dr="AssistiveElement-module__textWrapper___sfy5E",pr="AssistiveElement-module__iconWrapper___gObRF",Ge={root:cr,textWrapper:dr,iconWrapper:pr},mr=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M12 16v-4"}),t.jsx("path",{d:"M12 8h.01"})]}),_r=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),t.jsx("path",{d:"M12 9v4"}),t.jsx("path",{d:"M12 17h.01"})]}),He=b.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:s,className:r,overStyled:o=!1,...n},i){const d=x(n,o),p=Ge.root,_=r?`${p} ${r}`:p,h=e==="error"?_r:mr;return t.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[a&&t.jsx("span",{className:Ge.iconWrapper,children:t.jsx(h,{})}),t.jsx("span",{className:Ge.textWrapper,children:s})]})});He.displayName="AssistiveElement";const ur="FormControlWrapper-module__root___c-UHo",fr="FormControlWrapper-module__inputSection___HenXk",No={root:ur,inputSection:fr},Ie=b.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:s,labelOptionalText:r,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,label:c,description:d,assistiveText:p,assistiveWithIcon:_=!0,controlMaxWidth:h,controlMinWidth:f,error:u,required:y,withAsterisk:w,id:C,children:v,className:N,overStyled:S=!1,labelElement:$,...L},A){const T=b.useId(),O=C||`recursica-fc-${T}`,R=p||d,P=R?`${O}-assistive`:void 0,g=u?`${O}-error`:void 0,M=x(L,S),j=N||M.className,_e=No.root,ue=j?`${_e} ${j}`:_e,q=b.isValidElement(v)?b.cloneElement(v,{...R&&!v.props["aria-describedby"]?{"aria-describedby":P}:{},...u&&!v.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):v,Ee=c?t.jsx(Ze,{id:O,labelAlignment:s,labelOptionalText:r,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,required:w??y,...$==="div"?{as:"div"}:{},children:c}):void 0;return t.jsx(ae,{ref:A,className:ue,formLayout:e,labelSize:a,controlMaxWidth:h,controlMinWidth:f,leftSection:Ee,...M,children:t.jsxs("div",{className:No.inputSection,children:[q,u&&t.jsx(He,{id:g,assistiveVariant:"error",assistiveWithIcon:_,children:u}),!u&&R&&t.jsx(He,{id:P,assistiveVariant:"help",assistiveWithIcon:_,children:R})]})})});Ie.displayName="FormControlWrapper";const br="_root_1qhn7_3",yr="_contents_1qhn7_18",ve={root:br,contents:yr},Po=b.forwardRef(function({layer:l,contentsOnly:e,children:a,className:s,style:r,...o},n){const i=e?s?`${ve.root} ${ve.contents} ${s}`:`${ve.root} ${ve.contents}`:s?`${ve.root} ${s}`:ve.root;return t.jsx("div",{ref:n,className:i,style:r,...e?{}:{"data-recursica-layer":String(l)},...o,children:a})});Po.displayName="Layer";const Ae=({emptyText:l="N/A"})=>t.jsx(b.Fragment,{children:l});Ae.displayName="EmptyValueRenderer";Ae.check=l=>l==null||l===""||Array.isArray(l)&&l.length===0;const ho="data-recursica-theme";function Nr({children:l,theme:e="light"}){return b.useEffect(()=>{const a=document.documentElement;return a.setAttribute(ho,e),()=>{a.removeAttribute(ho)}},[e]),t.jsx(t.Fragment,{children:l})}const hr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],xr="ReadOnlyField-module__layoutOverride___9fSsG",vr="ReadOnlyField-module__textField___qKn25",$e={layoutOverride:xr,textField:vr},Se=({value:l,overStyled:e=!1,...a})=>{const s=x(a,e),r=s.className;return t.jsx(m.Box,{component:"p",className:r?`${$e.textField} ${r}`:$e.textField,...s,children:l!=null?b.isValidElement(l)?l:Array.isArray(l)?l.join(", "):String(l):""})};Se.displayName="ReadOnlyTextField";const Ye=b.forwardRef(function({value:e,type:a="text",emptyValueComponent:s,overStyled:r=!1,className:o,style:n,...i},c){let d=null;const p=x(i,r),_=s||Ae,f=(_.check?_.check(e):Ae.check(e))?t.jsx(_,{value:e}):e;switch(a){case"boolean":d=t.jsx(Se,{value:e===!0?"True":e===!1?"False":f,overStyled:r});break;case"switch":d=t.jsx(Se,{value:e===!0?"On":e===!1?"Off":f,overStyled:r});break;case"text":default:d=t.jsx(Se,{value:f,overStyled:r});break}const u=o?`${$e.layoutOverride} ${o}`:$e.layoutOverride;return t.jsx(Ie,{ref:c,overStyled:r,className:u,style:n,...p,children:d})});Ye.displayName="ReadOnlyField";const X=b.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:s="text",readOnlyValue:r,readOnlyNativeProps:o,emptyValueComponent:n,activeComponent:i,overStyled:c,onLabelEditClick:d,...p},_){if(e){if(a){const h=a;return t.jsx(Ie,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:t.jsx(h,{...o})})}return t.jsx(Ye,{ref:_,type:s,value:r,emptyValueComponent:n,onLabelEditClick:d,overStyled:c,...p})}return t.jsx(Ie,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:i})});X.displayName="WithReadOnlyWrapper";const $r="AutoComplete-module__layoutOverride___-K9WL",Cr="AutoComplete-module__root___kANza",wr="AutoComplete-module__input___g51MC",Pr="AutoComplete-module__section___WAbf1",gr="AutoComplete-module__dropdown___NqO3E",jr="AutoComplete-module__option___Y-Kja",D={layoutOverride:$r,root:Cr,input:wr,section:Pr,dropdown:gr,option:jr},go=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,s),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:D.root,input:D.input,section:D.section,dropdown:D.dropdown,option:D.option},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${D.root} ${j.wrapper}`:D.root,g.input=j.input?`${D.input} ${j.input}`:D.input,g.section=j.section?`${D.section} ${j.section}`:D.section,g.dropdown=j.dropdown?`${D.dropdown} ${j.dropdown}`:D.dropdown,g.option=j.option?`${D.option} ${j.option}`:D.option}const M=C?`${D.layoutOverride} ${C}`:D.layoutOverride;return t.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(m.Autocomplete,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});go.displayName="AutoComplete";const Tr="Avatar-module__root___fXu-J",Sr="Avatar-module__iconWrapper___ojly2",Ar="Avatar-module__textWrapper___zp-jD",Or="Avatar-module__image___ieqGp",Rr="Avatar-module__placeholder___IDW7-",J={root:Tr,iconWrapper:Sr,textWrapper:Ar,image:Or,placeholder:Rr},jo=b.forwardRef(function({size:e="default",variant:a="solid",icon:s,children:r,src:o,overStyled:n=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},_=x(i,n),h=_;let f="text";o?f="image":s&&(f="icon");const u={root:J.root,image:J.image,placeholder:J.placeholder},y=h.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const C=y;u.root=C.root?`${J.root} ${C.root}`:J.root,u.image=C.image?`${J.image} ${C.image}`:J.image,u.placeholder=C.placeholder?`${J.placeholder} ${C.placeholder}`:J.placeholder}const w=h.className;return t.jsx(m.Avatar,{ref:c,className:w,classNames:u,variant:d[a],size:p[e],src:o,"data-variant":a,"data-size":e,"data-style":f,..._,children:s!=null?t.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:s}):r!=null?t.jsx("span",{className:J.textWrapper,children:r}):void 0})});jo.displayName="Avatar";const Wr=m.createPolymorphicComponent(jo),Lr="Badge-module__root___5osNT",te={root:Lr},To=b.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...s},r){const o=x(s,a),n={root:te.root,section:te.section,label:te.label},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;n.root=p.root?`${te.root} ${p.root}`:te.root,n.section=p.section??te.section,n.label=p.label??te.label}const c=o.className,d=c?`${te.root} ${c}`:te.root;return t.jsx(m.Badge,{ref:r,variant:"filled","data-variant":e,...o,className:d,classNames:n})});To.displayName="Badge";const kr=m.createPolymorphicComponent(To),Ir="Breadcrumb-module__root___x-9ln",Mr="Breadcrumb-module__separator___qrUX-",ce={root:Ir,separator:Mr},So=b.forwardRef(function({overStyled:e=!1,separator:a=">",...s},r){const o=x({separator:a,...s},e),n={root:ce.root,separator:ce.separator},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;n.root=p.root?`${ce.root} ${p.root}`:ce.root,n.separator=p.separator?`${ce.separator} ${p.separator}`:ce.separator}const c=o.className,d=c?`${ce.root} ${c}`:ce.root;return t.jsx(m.Breadcrumbs,{ref:r,...o,className:d,classNames:n})});So.displayName="Breadcrumb";const zr="Loader-module__root___6iYOP",we={root:zr},Ke=b.forwardRef(function({variant:e="oval",size:a="default",overStyled:s=!1,...r},o){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=x(r,s),d={root:we.root},p=c.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;d.root=f.root?`${we.root} ${f.root}`:we.root}const _=c.className,h=_?`${we.root} ${_}`:we.root;return t.jsx(m.Loader,{ref:o,type:e,"data-variant":e,"data-size":i,...c,className:h,classNames:d})});Ke.displayName="Loader";const Fr="Button-module__root___Q2R8-",Br="Button-module__loader___X-9u-",Dr="Button-module__label___UJ3Zt",Er="Button-module__labelText___rFV5p",Vr="Button-module__iconWrapper___uEKPa",Gr="Button-module__section___f2mKr",K={root:Fr,loader:Br,label:Dr,labelText:Er,iconWrapper:Vr,section:Gr};function Hr(l){return l==null||l===""?!1:typeof l=="string"?l.trim()!=="":!0}const Ao=b.forwardRef(function({variant:e="solid",size:a="default",icon:s,children:r,overStyled:o=!1,loaderVariant:n="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},p){const _={solid:"filled",outline:"outline",text:"subtle"},h={default:"md",small:"sm"},f=x(d,o),u=f;delete u.fullWidth;const y=!!s||!!u.leftSection,w=!!u.rightSection,C=Hr(r),v=(y||w)&&!C;let N="label";v?N="icon-only":(y||w)&&(N="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&v&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const S={root:K.root,section:K.section,label:K.label,loader:K.loader},$=u.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const P=$;S.root=P.root?`${K.root} ${P.root}`:K.root,S.section=P.section??K.section,S.label=P.label??K.label}const L=u.className,A=L?`${K.root} ${L}`:K.root,T=u.loaderProps,O=i??(a==="small"?"small":"default");let R=T;return c&&(R={children:t.jsx(Ke,{variant:n,size:O}),...T}),t.jsx(m.Button,{ref:p,className:A,classNames:S,variant:_[e],size:h[a],loaderProps:R,leftSection:s!=null?t.jsx("span",{className:K.iconWrapper,"aria-hidden":!0,children:s}):void 0,"data-variant":e,"data-size":a,"data-content":N,...f,disabled:!!u.disabled||!!u.loading,children:t.jsx("span",{className:K.labelText,children:r})})});Ao.displayName="Button";const qr=m.createPolymorphicComponent(Ao),Ur="Card-module__root___c9KvZ",Zr="Card-module__header___PTXf2",Yr="Card-module__footer___Mu-JC",Kr="Card-module__section___BRT8H",Xr="Card-module__content___oFIQa",ne={root:Ur,header:Zr,footer:Yr,section:Kr,content:Xr},Oo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o={root:ne.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=r.className;return t.jsx(m.Card,{ref:s,className:i,classNames:o,...r})});Oo.displayName="Card";const Xe=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Card.Section,{ref:s,className:o?`${ne.section} ${o}`:ne.section,...r})});Xe.displayName="CardSection";const Je=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Card.Section,{ref:s,className:o?`${ne.header} ${o}`:ne.header,...r})});Je.displayName="CardHeader";const Qe=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Card.Section,{ref:s,className:o?`${ne.footer} ${o}`:ne.footer,...r})});Qe.displayName="CardFooter";const eo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx("div",{ref:s,className:o?`${ne.content} ${o}`:ne.content,...r})});eo.displayName="CardContent";const Ro=m.createPolymorphicComponent(Oo),Be=Ro;Be.Section=Xe;Be.Header=Je;Be.Footer=Qe;Be.Content=eo;const Jr=Ro,Qr="Checkbox-module__groupRoot___cBS0o",es="Checkbox-module__root___mY3qk",os="Checkbox-module__body___5yC7q",ts="Checkbox-module__inner___rTke4",rs="Checkbox-module__input___2kt-h",ss="Checkbox-module__icon___-O7i6",as="Checkbox-module__labelWrapper___GpZkr",ns="Checkbox-module__label___cwRtI",z={groupRoot:Qr,root:es,body:os,inner:ts,input:rs,icon:ss,labelWrapper:as,label:ns},oo=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,s),g=P;return delete g.size,t.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(m.Checkbox.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:z.groupRoot,"data-layout":r,children:S})})})});oo.displayName="CheckboxGroup";const to=b.forwardRef(function(e,a){const{overStyled:s=!1,readOnly:r,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,h=x(_,s),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:z.root,body:z.body,inner:z.inner,input:z.input,icon:z.icon,labelWrapper:z.labelWrapper,label:z.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${z.root} ${N.root}`:z.root,u.body=N.body?`${z.body} ${N.body}`:z.body,u.inner=N.inner?`${z.inner} ${N.inner}`:z.inner,u.input=N.input?`${z.input} ${N.input}`:z.input,u.icon=N.icon?`${z.icon} ${N.icon}`:z.icon,u.labelWrapper=N.labelWrapper?`${z.labelWrapper} ${N.labelWrapper}`:z.labelWrapper,u.label=N.label?`${z.label} ${N.label}`:z.label}const w=f.className,C=w?`${z.root} ${w}`:z.root;if(r&&o){const N=!!(f.checked??f.defaultChecked),S=o,$=t.jsx(S,{...e,checked:N,label:f.label});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):t.jsx(t.Fragment,{children:$})}const v=t.jsx(m.Checkbox,{ref:a,className:C,classNames:u,disabled:r||n,...h});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});to.displayName="Checkbox";to.Group=oo;const ls="Chip-module__root___f5pFk",is="Chip-module__label___Ov9pg",cs="Chip-module__mantineIconWrapper___KLSz6",ds="Chip-module__innerWrapper___EnrTF",ps="Chip-module__children___zbRAR",ms="Chip-module__leadingIcon___JBtjQ",_s="Chip-module__removeIcon___pVju-",G={root:ls,label:is,mantineIconWrapper:cs,innerWrapper:ds,children:ps,leadingIcon:ms,removeIcon:_s};function us(l){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...l,children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Wo=b.forwardRef(function({error:e=!1,icon:a,onRemove:s,removeLabel:r="Remove",children:o,overStyled:n=!1,...i},c){const d=x(i,n),p=d,_={root:G.root,label:G.label,input:G.input,iconWrapper:G.mantineIconWrapper,checkIcon:G.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const v=h;_.root=v.root?`${G.root} ${v.root}`:G.root,_.label=v.label?`${G.label} ${v.label}`:G.label}const f=p.className,u=f?`${G.root} ${f}`:G.root,y=e?"":void 0,w=!o&&(!!a||!!s),C=p.checked!==void 0||p.defaultChecked!==void 0||s!==void 0||p.onClick!==void 0;return t.jsx(m.Chip,{ref:c,className:u,classNames:_,wrapperProps:y!==void 0?{"data-error":""}:void 0,...w?{"data-icon-only":""}:{},...C?{}:{tabIndex:-1,"aria-hidden":!0},...d,children:t.jsxs("span",{className:G.innerWrapper,children:[a&&t.jsx("span",{className:G.leadingIcon,"aria-hidden":!0,children:a}),t.jsx("span",{className:G.children,children:o}),s&&t.jsx("span",{role:"button",className:G.removeIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),s(v)},"aria-label":r,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),s(v))},tabIndex:0,children:t.jsx(us,{})})]})})});Wo.displayName="Chip";const fs="Container-module__root___UVssr",Pe={root:fs},Lo=b.forwardRef(function({children:e,size:a,...s},r){const o={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},n=typeof a=="string"&&o[a]?o[a]:a,i={root:Pe.root},c=s.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${Pe.root} ${_.root}`:Pe.root}const d=s.className,p=d?`${Pe.root} ${d}`:Pe.root;return t.jsx(m.Container,{ref:r,size:n,className:p,classNames:i,...s,children:e})});Lo.displayName="Container";const bs="DatePicker-module__layoutOverride___X9yaM",ys="DatePicker-module__root___6XvRT",Ns="DatePicker-module__input___pcSW8",hs="DatePicker-module__section___n3iWA",xs="DatePicker-module__dropdown___wjt08",vs="DatePicker-module__calendarHeader___KHxno",$s="DatePicker-module__day___U03J2",U={layoutOverride:bs,root:ys,input:Ns,section:hs,dropdown:xs,calendarHeader:vs,day:$s},ko=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,s),P=R;delete P.size,delete P.variant,delete P.radius,delete P.description;const g={wrapper:U.root,input:U.input,section:U.section,dropdown:U.dropdown,day:U.day,calendarHeader:U.calendarHeader},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${U.root} ${j.wrapper}`:U.root,g.input=j.input?`${U.input} ${j.input}`:U.input,g.section=j.section?`${U.section} ${j.section}`:U.section}const M=C?`${U.layoutOverride} ${C}`:U.layoutOverride;return t.jsx(X,{className:M,style:v,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):T?String(T):void 0,readOnlyNativeProps:e,activeComponent:t.jsx(Vt.DatePickerInput,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});ko.displayName="DatePicker";const Cs="Dropdown-module__layoutOverride___FNcvP",ws="Dropdown-module__root___uVyL0",Ps="Dropdown-module__input___dK4dN",gs="Dropdown-module__section___j3MRB",js="Dropdown-module__dropdown___gG-Sw",Ts="Dropdown-module__option___nAGU-",E={layoutOverride:Cs,root:ws,input:Ps,section:gs,dropdown:js,option:Ts},Io=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",containerWidth:o,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,disabled:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,data:R,...P}=e,g=x(P,s),W=g;delete W.size,delete W.variant,delete W.radius;const M={wrapper:E.root,input:E.input,section:E.section,dropdown:E.dropdown,option:E.option},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const q=j;M.wrapper=q.wrapper?`${E.root} ${q.wrapper}`:E.root,M.input=q.input?`${E.input} ${q.input}`:E.input,M.section=q.section?`${E.section} ${q.section}`:E.section,M.dropdown=q.dropdown?`${E.dropdown} ${q.dropdown}`:E.dropdown,M.option=q.option?`${E.option} ${q.option}`:E.option}const _e={...N||{},width:o||"100%"},ue=v?`${E.layoutOverride} ${v}`:E.layoutOverride;return t.jsx(X,{className:ue,style:_e,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:s,formLayout:r,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:t.jsx(m.Select,{ref:a,classNames:M,disabled:S,value:T,defaultValue:O,data:R||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":u?"true":void 0},...g})})});Io.displayName="Dropdown";const Ss=l=>t.jsx("div",{...l,children:"FileInput"}),As=l=>t.jsx("div",{...l,children:"FileUpload"}),Os="Flex-module__root___yYser",ge={root:Os},Mo=b.forwardRef(function({children:e,gap:a="rec-default",rowGap:s,columnGap:r,...o},n){const i={root:ge.root},c=o.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${ge.root} ${_.root}`:ge.root}const d=o.className,p=d?`${ge.root} ${d}`:ge.root;return t.jsx(m.Flex,{ref:n,className:p,classNames:i,...qe({gap:a,rowGap:s,columnGap:r,...o}),children:e})});Mo.displayName="Flex";const Rs=m.createPolymorphicComponent(Mo),Ws="Group-module__root___ftO64",je={root:Ws},zo=b.forwardRef(function({children:e,gap:a="rec-default",...s},r){const o={root:je.root},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${je.root} ${d.root}`:je.root}const i=s.className,c=i?`${je.root} ${i}`:je.root;return t.jsx(m.Group,{ref:r,className:c,classNames:o,...qe({gap:a,...s}),children:e})});zo.displayName="Group";const Ls="HoverCard-module__dropdown___FBPFW",ks="HoverCard-module__arrow___S9AkE",xo={dropdown:Ls,arrow:ks},Fo=function({overStyled:e=!1,withBeak:a=!0,...s}){const r=x(s,e),o={dropdown:xo.dropdown,arrow:xo.arrow},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{o[_]?o[_]=`${o[_]} ${p[_]}`:o[_]=p[_]})}const i=r.arrowSize??16,c=r.withArrow,d=a??c;return t.jsx(m.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:o,...r})};Fo.displayName="HoverCard";const Bo=function(e){return t.jsx(m.HoverCard.Target,{...e})};Bo.displayName="HoverCardTarget";const Do=function({overStyled:e=!1,...a}){const s=x(a,e),r=s.className;return t.jsx(m.HoverCard.Dropdown,{className:r,...s})};Do.displayName="HoverCardDropdown";const ro=Fo;ro.Target=Bo;ro.Dropdown=Do;const Is="Link-module__root___I0VGE",Ms="Link-module__iconWrapper___W-LlF",zs="Link-module__labelText___wSvUy",be={root:Is,iconWrapper:Ms,labelText:zs},Eo=b.forwardRef(function({icon:e,children:a,overStyled:s=!1,...r},o){const n=x(r,s),i=n,c={root:be.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;c.root=h.root?`${be.root} ${h.root}`:be.root}const p=i.className,_=p?`${be.root} ${p}`:be.root;return t.jsxs(m.Anchor,{ref:o,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...n,children:[e&&t.jsx("span",{className:be.iconWrapper,"aria-hidden":!0,children:e}),t.jsx("span",{className:be.labelText,children:a})]})});Eo.displayName="Link";const Fs=m.createPolymorphicComponent(Eo),Bs="Menu-module__dropdown___j4xuA",Ds="Menu-module__item___NMXha",Es="Menu-module__itemLabel___zvcqC",Vs="Menu-module__itemSection___pRIcn",Gs="Menu-module__divider___wPiNq",Hs="Menu-module__label___4FBGa",qs="Menu-module__chevron___hEEiy",ye={dropdown:Bs,item:Ds,itemLabel:Es,itemSection:Vs,divider:Gs,label:Hs,chevron:qs},Vo=function({overStyled:e=!1,...a}){const s=x(a,e),r={dropdown:ye.dropdown,item:ye.item,itemLabel:ye.itemLabel,itemSection:ye.itemSection,divider:ye.divider,label:ye.label,chevron:ye.chevron},o=s.classNames;if(o&&typeof o=="object"&&!Array.isArray(o)){const n=o;Object.keys(n).forEach(i=>{r[i]?r[i]=`${r[i]} ${n[i]}`:r[i]=n[i]})}return t.jsx(m.Menu,{classNames:r,...s})};Vo.displayName="Menu";const Go=function(e){return t.jsx(m.Menu.Target,{...e})};Go.displayName="MenuTarget";const Ho=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Menu.Dropdown,{ref:s,className:o,...r})});Ho.displayName="MenuDropdown";const qo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r;e||delete o.color;const n=o.className;return t.jsx(m.Menu.Item,{ref:s,className:n,...r})});qo.displayName="MenuItem";const Us=m.createPolymorphicComponent(qo),Uo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Menu.Divider,{ref:s,className:o,...r})});Uo.displayName="MenuDivider";const Zo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Menu.Label,{ref:s,className:o,...r})});Zo.displayName="MenuLabel";const Yo=function(e){return t.jsx(m.Menu.Sub,{...e})};Yo.displayName="MenuSub";const Ko=function(e){return t.jsx(m.Menu.Sub.Target,{...e})};Ko.displayName="MenuSubTarget";const Xo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r;e||delete o.color;const n=o.className;return t.jsx(m.Menu.Sub.Item,{ref:s,className:n,...r})});Xo.displayName="MenuSubItem";const Zs=m.createPolymorphicComponent(Xo),Jo=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className;return t.jsx(m.Menu.Sub.Dropdown,{ref:s,className:o,...r})});Jo.displayName="MenuSubDropdown";const De=Yo;De.Target=Ko;De.Item=Zs;De.Dropdown=Jo;const xe=Vo;xe.Target=Go;xe.Dropdown=Ho;xe.Item=Us;xe.Divider=Uo;xe.Label=Zo;xe.Sub=De;const Ys="Modal-module__root___ytPLl",Ks="Modal-module__inner___SSUJE",Xs="Modal-module__content___dWO-B",Js="Modal-module__header___ILG9i",Qs="Modal-module__title___A5OeE",ea="Modal-module__bodyWrapper___5CCL-",oa="Modal-module__scrollArea___KD-hm",ta="Modal-module__footer___rro2w",ra="Modal-module__close___-ER1C",se={root:Ys,inner:Ks,content:Xs,header:Js,title:Qs,bodyWrapper:ea,scrollArea:oa,footer:ta,close:ra},Qo=b.forwardRef(function({overStyled:e=!1,children:a,title:s,withCloseButton:r=!0,overlayProps:o,withOverlay:n=!0,closeButtonProps:i,...c},d){const p=x(c,e),_={root:se.root,inner:se.inner,content:se.content,header:se.header,title:se.title,close:se.close},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;Object.keys(f).forEach(u=>{_[u]?_[u]=`${_[u]} ${f[u]}`:_[u]=f[u]})}return t.jsxs(m.Modal.Root,{ref:d,classNames:_,...p,children:[n&&t.jsx(m.Modal.Overlay,{...o}),t.jsxs(m.Modal.Content,{children:[(s||r)&&t.jsxs(m.Modal.Header,{children:[s&&t.jsx(m.Modal.Title,{children:s}),r&&t.jsx(m.Modal.CloseButton,{...i})]}),t.jsx(ao,{children:a})]})]})});Qo.displayName="Modal";const so=b.forwardRef(function({className:e,...a},s){return t.jsx("div",{ref:s,className:`${se.footer} ${e||""}`,...a})});so.displayName="Modal.Footer";const ao=b.forwardRef(function({className:e,onScroll:a,children:s,...r},o){const n=b.useRef(null),[i,c]=b.useState(!1),[d,p]=b.useState(!1),_=b.useCallback(()=>{if(n.current){const{scrollTop:y,scrollHeight:w,clientHeight:C}=n.current;c(y>0),p(Math.ceil(y+C)<w)}},[]);b.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,s]);const h=y=>{_(),a==null||a(y)};let f=null;const u=[];return b.Children.forEach(s,y=>{var w;b.isValidElement(y)&&(y.type===so||((w=y.type)==null?void 0:w.displayName)==="Modal.Footer")?f=y:u.push(y)}),t.jsxs(m.Modal.Body,{...r,ref:y=>{typeof o=="function"?o(y):o&&(o.current=y)},className:`${se.bodyWrapper} ${e||""}`,children:[t.jsx("div",{ref:n,onScroll:h,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:se.scrollArea,children:u}),f]})});ao.displayName="Modal.Body";const le=Qo;le.Root=m.Modal.Root;le.Overlay=m.Modal.Overlay;le.Content=m.Modal.Content;le.Header=m.Modal.Header;le.Title=m.Modal.Title;le.CloseButton=m.Modal.CloseButton;le.Body=ao;le.Footer=so;const sa="NumberInput-module__layoutOverride___5-9T4",aa="NumberInput-module__root___C6rAn",na="NumberInput-module__input___Ss8p7",la="NumberInput-module__section___MijP0",ia="NumberInput-module__controls___8UfQ2",ca="NumberInput-module__control___Qre9-",Ne={layoutOverride:sa,root:aa,input:na,section:la,controls:ia,control:ca},et=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,hideControls:O=!1,...R}=e,P=x(R,s),g=P;delete g.size,delete g.variant,delete g.radius;const W={wrapper:Ne.root,input:Ne.input,section:Ne.section,controls:Ne.controls,control:Ne.control},M=C?`${Ne.layoutOverride} ${C}`:Ne.layoutOverride;return t.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():T==null?void 0:T.toString(),readOnlyNativeProps:e,activeComponent:t.jsx(m.NumberInput,{ref:a,classNames:W,disabled:N,value:A,defaultValue:T,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!O?"true":void 0},...P})})});et.displayName="NumberInput";const da="Pagination-module__root___ITRjt",pa="Pagination-module__control___40yNT",ma="Pagination-module__dots___Yl9da",_a="Pagination-module__iconWithLabel___pLM4O",ua="Pagination-module__baseIcon___Qw3bJ",V={root:da,control:pa,dots:ma,iconWithLabel:_a,baseIcon:ua},fa="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",ba="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",ya="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",Na="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",ha={next:fa,prev:ba,first:ya,last:Na},Oe=({type:l,className:e,...a})=>t.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${V.baseIcon} ${e||""}`.trim(),...a,children:t.jsx("path",{d:ha[l],fill:"currentColor"})}),ot=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx("span",{children:"Next"}),t.jsx(Oe,{type:"next",...l})]}),tt=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx(Oe,{type:"prev",...l}),t.jsx("span",{children:"Prev"})]}),rt=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx(Oe,{type:"first",...l}),t.jsx("span",{children:"First"})]}),st=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx("span",{children:"Last"}),t.jsx(Oe,{type:"last",...l})]});function at(l){const e={root:V.root,control:V.control,dots:V.dots},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${V.root} ${o.root}`:V.root,e.control=o.control?`${V.control} ${o.control}`:V.control,e.dots=o.dots?`${V.dots} ${o.dots}`:V.dots}const s=l.className;return{className:s?`${V.root} ${s}`:V.root,classNames:e}}const nt=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=at(r);return t.jsx(m.Pagination.Root,{ref:s,className:o.className,classNames:o.classNames,...r})});nt.displayName="Pagination.Root";const lt=b.forwardRef(function({withLabel:e,icon:a,...s},r){const o=a||(e?ot:void 0);return t.jsx(m.Pagination.Next,{ref:r,"data-variant":"text",icon:o,...s})});lt.displayName="Pagination.Next";const it=b.forwardRef(function({withLabel:e,icon:a,...s},r){const o=a||(e?tt:void 0);return t.jsx(m.Pagination.Previous,{ref:r,"data-variant":"text",icon:o,...s})});it.displayName="Pagination.Previous";const ct=b.forwardRef(function({withLabel:e,icon:a,...s},r){const o=a||(e?rt:void 0);return t.jsx(m.Pagination.First,{ref:r,"data-variant":"text",icon:o,...s})});ct.displayName="Pagination.First";const dt=b.forwardRef(function({withLabel:e,icon:a,...s},r){const o=a||(e?st:void 0);return t.jsx(m.Pagination.Last,{ref:r,"data-variant":"text",icon:o,...s})});dt.displayName="Pagination.Last";const pt=b.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:s,...r},o){const n=x(r,e),i=at(n),c=p=>{const _={"data-variant":"text"};return a?{..._,...a(p)}:_},d=s?{nextIcon:ot,previousIcon:tt,firstIcon:rt,lastIcon:st}:{};return t.jsx(m.Pagination,{ref:o,className:i.className,classNames:i.classNames,getControlProps:c,...d,...n})});pt.displayName="Pagination";const ee=pt;ee.Root=nt;ee.Items=m.Pagination.Items;ee.Control=m.Pagination.Control;ee.Dots=m.Pagination.Dots;ee.Next=lt;ee.Previous=it;ee.First=ct;ee.Last=dt;ee.Icon=Oe;const xa="Panel-module__content___wdGo-",va="Panel-module__inner___ruA2b",$a="Panel-module__header___o7SiC",Ca="Panel-module__title___181OP",wa="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Pa="Panel-module__body___SEC3T",ga="Panel-module__footer___t6-hz",me={content:xa,inner:va,header:$a,title:Ca,titleTruncate:wa,body:Pa,footer:ga},mt=function({overStyled:e=!1,position:a="right",keepMounted:s=!0,wrapHeaderText:r=!1,...o}){const n=x(o,e),i={content:me.content,header:me.header,title:r?me.titleTruncate:me.title,body:me.body,inner:me.inner},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return t.jsx(m.Drawer,{position:a,keepMounted:s,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...n,classNames:i})};mt.displayName="Panel";const no=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o=r.className,n=o?`${me.footer} ${o}`:me.footer;return t.jsx("div",{ref:s,className:n,...r})});no.displayName="PanelFooter";const oe=mt;oe.Root=m.Drawer.Root;oe.Overlay=m.Drawer.Overlay;oe.Content=m.Drawer.Content;oe.Header=m.Drawer.Header;oe.Title=m.Drawer.Title;oe.CloseButton=m.Drawer.CloseButton;oe.Body=m.Drawer.Body;oe.Stack=m.Drawer.Stack;oe.Footer=no;const ja="Popover-module__dropdown___svhS6",Ta="Popover-module__arrow___5A-0e",vo={dropdown:ja,arrow:Ta},_t=function({overStyled:e=!1,withBeak:a=!0,...s}){const r=x(s,e),o={dropdown:vo.dropdown,arrow:vo.arrow},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{o[_]?o[_]=`${o[_]} ${p[_]}`:o[_]=p[_]})}const i=r.arrowSize??16,c=r.withArrow,d=a??c;return t.jsx(m.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:o,...r})};_t.displayName="Popover";const ut=function(e){return t.jsx(m.Popover.Target,{...e})};ut.displayName="PopoverTarget";const ft=function({overStyled:e=!1,...a}){const s=x(a,e),r=s.className;return t.jsx(m.Popover.Dropdown,{className:r,...s})};ft.displayName="PopoverDropdown";const lo=_t;lo.Target=ut;lo.Dropdown=ft;const Sa="Radio-module__groupRoot___bfUii",Aa="Radio-module__root___kAjTD",Oa="Radio-module__body___q2Wpj",Ra="Radio-module__inner___QaTBB",Wa="Radio-module__radio___MfgN-",La="Radio-module__icon___DWznm",ka="Radio-module__labelWrapper___dB0Gi",Ia="Radio-module__label___vAFIP",F={groupRoot:Sa,root:Aa,body:Oa,inner:Ra,radio:Wa,icon:La,labelWrapper:ka,label:Ia},io=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,s),g=P;return delete g.size,t.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(m.Radio.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:F.groupRoot,"data-layout":r,children:S})})})});io.displayName="RadioGroup";const Ma=({className:l,style:e})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:l,style:e,children:t.jsx("circle",{cx:"8",cy:"8",r:"5"})}),co=b.forwardRef(function(e,a){const{overStyled:s=!1,readOnly:r,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,h=x(_,s),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:F.root,body:F.body,inner:F.inner,radio:F.radio,icon:F.icon,labelWrapper:F.labelWrapper,label:F.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${F.root} ${N.root}`:F.root,u.body=N.body?`${F.body} ${N.body}`:F.body,u.inner=N.inner?`${F.inner} ${N.inner}`:F.inner,u.radio=N.radio?`${F.radio} ${N.radio}`:F.radio,u.icon=N.icon?`${F.icon} ${N.icon}`:F.icon,u.labelWrapper=N.labelWrapper?`${F.labelWrapper} ${N.labelWrapper}`:F.labelWrapper,u.label=N.label?`${F.label} ${N.label}`:F.label}const w=f.className,C=w?`${F.root} ${w}`:F.root;if(r&&o){const N=!!(f.checked??f.defaultChecked),S=o,$=t.jsx(S,{...e,checked:N,label:f.label});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):t.jsx(t.Fragment,{children:$})}const v=t.jsx(m.Radio,{ref:a,icon:Ma,className:C,classNames:u,disabled:r||n,...h});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});co.displayName="Radio";co.Group=io;const bt=({checked:l,label:e})=>t.jsxs(m.Box,{component:"span",className:$e.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&t.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),t.jsx("span",{children:l?"On":"Off"})]});bt.displayName="ReadOnlySwitchField";const yt=({checked:l,label:e})=>t.jsxs(m.Box,{component:"span",className:$e.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&t.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),t.jsx("span",{children:l?"True":"False"})]});yt.displayName="ReadOnlyBooleanField";const za="SegmentedControl-module__root___JFRhg",Fa="SegmentedControl-module__label___mS17q",Ba="SegmentedControl-module__control___znOdQ",Da="SegmentedControl-module__indicator___ZMcJy",Z={root:za,label:Fa,control:Ba,indicator:Da};function Ea(l){const e={root:Z.root,control:Z.control,label:Z.label,indicator:Z.indicator},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${Z.root} ${o.root}`:Z.root,e.control=o.control?`${Z.control} ${o.control}`:Z.control,e.label=o.label?`${Z.label} ${o.label}`:Z.label,e.indicator=o.indicator?`${Z.indicator} ${o.indicator}`:Z.indicator}const s=l.className;return{className:s?`${Z.root} ${s}`:Z.root,classNames:e}}const Nt=b.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:s,...r},o){const n=x(r,e),i=n;delete i.disabled;const c=Ea(i);return t.jsx(m.SegmentedControl,{ref:o,className:c.className,classNames:c.classNames,orientation:a,fullWidth:s,"data-orientation":a,...n})});Nt.displayName="SegmentedControl";const Va=Nt,Ga="Slider-module__layoutOverride___zYPun",Ha="Slider-module__sliderContainer___y8I0J",qa="Slider-module__sliderTrackWrapper___UHpVh",Ua="Slider-module__iconWrapper___uqHpC",Za="Slider-module__sliderRoot___LI86H",Ya="Slider-module__sliderTrack___oqnlG",Ka="Slider-module__sliderBar___TI4VY",Xa="Slider-module__sliderThumb___OFn8p",Ja="Slider-module__sliderMark___1lM2B",Qa="Slider-module__minMaxGuide___TaGqz",en="Slider-module__rightGuideContainer___8dOT8",on="Slider-module__currentValue___dGV2T",tn="Slider-module__inputField___6x578",rn="Slider-module__readOnlyValue___-ZzMW",k={layoutOverride:Ga,sliderContainer:Ha,sliderTrackWrapper:qa,iconWrapper:Ua,sliderRoot:Za,sliderTrack:Ya,sliderBar:Ka,sliderThumb:Xa,sliderMark:Ja,minMaxGuide:Qa,rightGuideContainer:en,currentValue:on,inputField:tn,readOnlyValue:rn},sn=({value:l})=>t.jsx("div",{className:k.readOnlyValue,children:l}),ht=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,tooltipLabel:h,assistiveText:f,assistiveWithIcon:u,error:y,required:w,withAsterisk:C,id:v,className:N,style:S,disabled:$,readOnly:L,readOnlyComponent:A,emptyValueComponent:T,value:O,defaultValue:R,icon:P,showInput:g=!1,showMinMaxLabels:W=!0,min:M=0,max:j=100,step:_e=1,onChange:ue,onChangeEnd:q,...Ee}=e,[kt,It]=b.useState(()=>O!==void 0?O:R!==void 0?R:M),ie=O!==void 0?O:kt,[Mt,Ve]=b.useState(ie.toString());b.useEffect(()=>{Ve(ie.toString())},[ie]);const uo=B=>{O===void 0&&It(B),ue==null||ue(B)},zt=B=>{const bo=B.target.value;Ve(bo);const yo=parseFloat(bo);if(!isNaN(yo)){const Et=Math.max(M,Math.min(j,yo));uo(Et)}},Ft=()=>{Ve(ie.toString())},fo=x(Ee,s),Ce=fo;delete Ce.size,delete Ce.variant,delete Ce.radius,delete Ce.wrapperProps;const fe={root:k.sliderRoot,track:k.sliderTrack,bar:k.sliderBar,thumb:k.sliderThumb,mark:k.sliderMark,markLabel:k.sliderMarkLabel},Re=Ce.classNames;if(Re&&typeof Re=="object"&&!Array.isArray(Re)){const B=Re;fe.root=B.root?`${k.sliderRoot} ${B.root}`:k.sliderRoot,fe.track=B.track?`${k.sliderTrack} ${B.track}`:k.sliderTrack,fe.bar=B.bar?`${k.sliderBar} ${B.bar}`:k.sliderBar,fe.thumb=B.thumb?`${k.sliderThumb} ${B.thumb}`:k.sliderThumb,fe.mark=B.mark?`${k.sliderMark} ${B.mark}`:k.sliderMark,fe.markLabel=B.markLabel?`${k.sliderMarkLabel} ${B.markLabel}`:k.sliderMarkLabel}const Bt=N?`${k.layoutOverride} ${N}`:k.layoutOverride,Dt=P?t.jsx("span",{className:k.iconWrapper,"aria-hidden":!0,children:P}):null;return t.jsx(X,{ref:a,className:Bt,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:u,error:y,required:w,withAsterisk:C,id:v,readOnly:L,readOnlyComponent:A||sn,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:ie,readOnlyNativeProps:{value:ie},activeComponent:t.jsxs("div",{className:k.sliderContainer,"data-form-layout":r,"data-disabled":$?"true":void 0,"data-error":y?"true":void 0,children:[Dt,W&&t.jsx("span",{className:k.minMaxGuide,children:M}),t.jsx("div",{className:k.sliderTrackWrapper,children:t.jsx(m.Slider,{classNames:fe,disabled:$,value:ie,onChange:uo,onChangeEnd:q,min:M,max:j,step:_e,label:h,...fo})}),t.jsxs("div",{className:k.rightGuideContainer,children:[!g&&t.jsx("span",{className:k.currentValue,children:ie}),W&&t.jsx("span",{className:k.minMaxGuide,children:j})]}),g&&t.jsx("input",{type:"number",className:k.inputField,value:Mt,onChange:zt,onBlur:Ft,min:M,max:j,step:_e,disabled:$,"data-error":y?"true":void 0})]})})});ht.displayName="Slider";const an="Stack-module__root___NUN-x",Te={root:an},xt=b.forwardRef(function({children:e,gap:a="rec-default",...s},r){const o={root:Te.root},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${Te.root} ${d.root}`:Te.root}const i=s.className,c=i?`${Te.root} ${i}`:Te.root;return t.jsx(m.Stack,{ref:r,className:c,classNames:o,...qe({gap:a,...s}),children:e})});xt.displayName="Stack";const nn=m.createPolymorphicComponent(xt),ln="Stepper-module__root___jbSYO",cn="Stepper-module__horizontal___USHT1",dn="Stepper-module__steps___4HPO6",pn="Stepper-module__step___s2nqL",mn="Stepper-module__stepBody___TBvys",_n="Stepper-module__stepLabel___N6nuy",un="Stepper-module__stepDescription___DnDAy",fn="Stepper-module__separator___pU0No",bn="Stepper-module__vertical___d4mOs",yn="Stepper-module__large___J18-y",Nn="Stepper-module__small___Ub-zb",hn="Stepper-module__stepIcon___YQHNq",xn="Stepper-module__stepCompletedIcon___B9MeL",vn="Stepper-module__verticalSeparator___frWc1",$n="Stepper-module__content___J-h8X",H={root:ln,horizontal:cn,steps:dn,step:pn,stepBody:mn,stepLabel:_n,stepDescription:un,separator:fn,vertical:bn,large:yn,small:Nn,stepIcon:hn,stepCompletedIcon:xn,verticalSeparator:vn,content:$n},vt=b.forwardRef(function(e,a){const{overStyled:s=!1,size:r="large",orientation:o="horizontal",className:n,style:i,...c}=e,d=x(c,s);return t.jsx(m.Stepper,{ref:a,orientation:o,className:`${H.root} ${o==="horizontal"?H.horizontal:H.vertical} ${r==="large"?H.large:H.small} ${n||""}`,style:i,"data-size":r,"data-orientation":o,classNames:{steps:H.steps,step:H.step,stepIcon:H.stepIcon,stepCompletedIcon:H.stepCompletedIcon,stepBody:H.stepBody,stepLabel:H.stepLabel,stepDescription:H.stepDescription,separator:H.separator,verticalSeparator:H.verticalSeparator,content:H.content},...d})}),Cn=Object.assign(vt,{Step:m.Stepper.Step,Completed:m.Stepper.Completed});vt.displayName="Stepper";const wn="Switch-module__root___Y5Ydi",Pn="Switch-module__body___Sw9Wr",gn="Switch-module__track___7ObdZ",jn="Switch-module__thumb___-FTeK",Tn="Switch-module__labelWrapper___YSOwx",Sn="Switch-module__label___LrH7V",An="Switch-module__thumbIconWrapper___sCY-1",On="Switch-module__checkIcon___ZBAQN",Rn="Switch-module__closeIcon___bLLGw",Wn="Switch-module__groupRoot___-Uepi",I={root:wn,body:Pn,track:gn,thumb:jn,labelWrapper:Tn,label:Sn,thumbIconWrapper:An,checkIcon:On,closeIcon:Rn,groupRoot:Wn},po=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,s),g=P;return delete g.size,t.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(m.Switch.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:I.groupRoot,"data-layout":r,children:S})})})});po.displayName="SwitchGroup";const mo=b.forwardRef(function(e,a){const{overStyled:s=!1,readOnly:r,readOnlyComponent:o,disabled:n,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...h}=e,f=x(h,s),u=f;delete u.size,delete u.color,delete u.radius,delete u.variant;const y={root:I.root,body:I.body,track:I.track,thumb:I.thumb,trackLabel:I.trackLabel,labelWrapper:I.labelWrapper,label:I.label},w=u.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const $=w;y.root=$.root?`${I.root} ${$.root}`:I.root,y.body=$.body?`${I.body} ${$.body}`:I.body,y.track=$.track?`${I.track} ${$.track}`:I.track,y.thumb=$.thumb?`${I.thumb} ${$.thumb}`:I.thumb,y.trackLabel=$.trackLabel?`${I.trackLabel} ${$.trackLabel}`:I.trackLabel,y.labelWrapper=$.labelWrapper?`${I.labelWrapper} ${$.labelWrapper}`:I.labelWrapper,y.label=$.label?`${I.label} ${$.label}`:I.label}const C=u.className,v=C?`${I.root} ${C}`:I.root;if(r&&o){const $=!!(u.checked??u.defaultChecked),L=o,A=t.jsx(L,{...e,checked:$,label:u.label});return c?t.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:A}):t.jsx(t.Fragment,{children:A})}const N=t.jsxs("div",{className:I.thumbIconWrapper,children:[t.jsx(m.CheckIcon,{className:I.checkIcon}),t.jsx(m.CloseIcon,{className:I.closeIcon})]}),S=t.jsx(m.Switch,{ref:a,className:v,classNames:y,disabled:r||n,"data-disabled":r||n||void 0,thumbIcon:i??N,...f});return c?t.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:S}):S});mo.displayName="Switch";mo.Group=po;const Ln=l=>t.jsx("div",{...l,children:"Table"}),kn="Tabs-module__root___-VKVI",In="Tabs-module__list___qRVME",Mn="Tabs-module__tab___IdDYc",zn="Tabs-module__panel___08i9c",Le={root:kn,list:In,tab:Mn,panel:zn},$t=b.forwardRef(function(e,a){const{variant:s="default",orientation:r="horizontal",overStyled:o=!1,className:n,...i}=e,c=x(i,o);return t.jsx(m.Tabs,{ref:a,variant:s,orientation:r,className:`${Le.root} ${n||""}`,"data-variant":s,"data-orientation":r,classNames:{list:Le.list,tab:Le.tab,panel:Le.panel},...c})});$t.displayName="Tabs";const Ct=b.forwardRef(function(e,a){const{overStyled:s=!1,...r}=e;return t.jsx(m.Tabs.List,{ref:a,...x(r,s)})});Ct.displayName="Tabs.List";const wt=b.forwardRef(function(e,a){const{overStyled:s=!1,...r}=e;return t.jsx(m.Tabs.Tab,{ref:a,...x(r,s)})});wt.displayName="Tabs.Tab";const Pt=b.forwardRef(function(e,a){const{overStyled:s=!1,...r}=e;return t.jsx(m.Tabs.Panel,{ref:a,...x(r,s)})});Pt.displayName="Tabs.Panel";const Fn=Object.assign($t,{List:Ct,Tab:wt,Panel:Pt}),gt=b.forwardRef(function({overStyled:e=!1,variant:a="body",...s},r){const o=x(s,e),n=o.className,i=`recursica_brand_typography_${a}`,c=n?`${i} ${n}`:i;return t.jsx(m.Text,{ref:r,className:c,...o})});gt.displayName="Text";const Bn=m.createPolymorphicComponent(gt),Dn="TextArea-module__layoutOverride___4MCdm",En="TextArea-module__root___3dyeu",Vn="TextArea-module__input___8l36v",de={layoutOverride:Dn,root:En,input:Vn},jt=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,s),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:de.root,input:de.input},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${de.root} ${j.wrapper}`:de.root,g.input=j.input?`${de.input} ${j.input}`:de.input}const M=C?`${de.layoutOverride} ${C}`:de.layoutOverride;return t.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(m.Textarea,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});jt.displayName="TextArea";const Gn="TextField-module__layoutOverride___SNZqc",Hn="TextField-module__root___2ZYkG",qn="TextField-module__input___RL-My",Un="TextField-module__section___bCIJ0",Q={layoutOverride:Gn,root:Hn,input:qn,section:Un},Tt=b.forwardRef(function(e,a){const{overStyled:s=!1,formLayout:r="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,s),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:Q.root,input:Q.input,section:Q.section},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${Q.root} ${j.wrapper}`:Q.root,g.input=j.input?`${Q.input} ${j.input}`:Q.input,g.section=j.section?`${Q.section} ${j.section}`:Q.section}const M=C?`${Q.layoutOverride} ${C}`:Q.layoutOverride;return t.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:r,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(m.Input,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});Tt.displayName="TextField";const Zn=l=>t.jsx("div",{...l,children:"TimePicker"}),Yn="Timeline-module__root___LwRdZ",Kn="Timeline-module__item___T5xdQ",Xn="Timeline-module__itemBody___XAV-E",Jn="Timeline-module__itemBullet___rPXCy",Qn="Timeline-module__itemTitle___GgRRW",el="Timeline-module__itemContent___vurs-",ol="Timeline-module__description___f9sxV",tl="Timeline-module__timestamp___owiRu",pe={root:Yn,item:Kn,itemBody:Xn,itemBullet:Jn,itemTitle:Qn,itemContent:el,description:ol,timestamp:tl},St=b.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:s="default",children:r,...o},n){const i=x(o,e),c={item:pe.item,itemBody:pe.itemBody,itemContent:pe.itemContent,itemBullet:pe.itemBullet,itemTitle:pe.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach(h=>{c[h]?c[h]=`${c[h]} ${_[h]}`:c[h]=_[h]})}const p=a?t.jsxs(t.Fragment,{children:[r&&t.jsx("div",{className:pe.description,children:r}),t.jsx("div",{className:pe.timestamp,children:a})]}):r;return t.jsx(m.TimelineItem,{ref:n,classNames:c,"data-variant":s,...i,children:p})});St.displayName="TimelineItem";const At=b.forwardRef(function({overStyled:e=!1,...a},s){const r=x(a,e),o={root:pe.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;Object.keys(i).forEach(c=>{o[c]?o[c]=`${o[c]} ${i[c]}`:o[c]=i[c]})}return t.jsx(m.Timeline,{ref:s,classNames:o,...r})});At.displayName="Timeline";const Ot=At;Ot.Item=St;const Rt=b.forwardRef(function({overStyled:e=!1,order:a=1,...s},r){const o=x(s,e),n=o.className,i=`recursica_brand_typography_h${a}`,c=n?`${i} ${n}`:i;return t.jsx(m.Title,{ref:r,order:a,className:c,...o})});Rt.displayName="Title";const rl="Toast-module__root___MUvfI",sl="Toast-module__icon___VwvE1",al="Toast-module__loader___8Gxd-",nl="Toast-module__title___-H6R2",ll="Toast-module__description___-QwfC",il="Toast-module__closeButton___vGr7g",cl="Toast-module__body___VLkXA",he={root:rl,icon:sl,loader:al,title:nl,description:ll,closeButton:il,body:cl},Wt=b.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:s=!0,...r},o){const n=x(r,e),i={root:he.root,body:he.body,title:he.title,description:he.description,closeButton:he.closeButton,icon:he.icon,loader:he.loader},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return t.jsx(m.Notification,{ref:o,withCloseButton:s,withBorder:!1,"data-variant":a,classNames:i,loading:!1,...n})});Wt.displayName="Toast";const dl="Tooltip-module__tooltip___UA7H9",pl="Tooltip-module__arrow___4zROk",$o={tooltip:dl,arrow:pl},Lt=function({overStyled:e=!1,withBeak:a=!0,...s}){const r=x(s,e),o={tooltip:$o.tooltip,arrow:$o.arrow},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{o[_]?o[_]=`${o[_]} ${p[_]}`:o[_]=p[_]})}const i=r.arrowSize??16,c=r.withArrow,d=a??c;return t.jsx(m.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:o,...r})};Lt.displayName="Tooltip";const _o=Lt;_o.Floating=m.Tooltip.Floating;_o.Group=m.Tooltip.Group;const ml=l=>t.jsx("div",{...l,children:"TransferList"});exports.Accordion=Fe;exports.AccordionControl=Me;exports.AccordionItem=Ue;exports.AccordionPanel=ze;exports.AutoComplete=go;exports.Avatar=Wr;exports.Badge=kr;exports.Breadcrumb=So;exports.Button=qr;exports.Card=Jr;exports.CardContent=eo;exports.CardFooter=Qe;exports.CardHeader=Je;exports.CardSection=Xe;exports.Checkbox=to;exports.CheckboxGroup=oo;exports.Chip=Wo;exports.Container=Lo;exports.DatePicker=ko;exports.Dropdown=Io;exports.EmptyValueRenderer=Ae;exports.FileInput=Ss;exports.FileUpload=As;exports.Flex=Rs;exports.FormControlLayout=ae;exports.Group=zo;exports.HoverCard=ro;exports.Label=Ze;exports.Layer=Po;exports.Link=Fs;exports.Loader=Ke;exports.Menu=xe;exports.Modal=le;exports.NumberInput=et;exports.Pagination=ee;exports.Panel=oe;exports.PanelFooter=no;exports.Popover=lo;exports.RECURSICA_COMPONENTS=hr;exports.Radio=co;exports.RadioGroup=io;exports.ReadOnlyBooleanField=yt;exports.ReadOnlyField=Ye;exports.ReadOnlySwitchField=bt;exports.ReadOnlyTextField=Se;exports.RecursicaThemeProvider=Nr;exports.SegmentedControl=Va;exports.Slider=ht;exports.Stack=nn;exports.Stepper=Cn;exports.Switch=mo;exports.SwitchGroup=po;exports.Table=Ln;exports.Tabs=Fn;exports.Text=Bn;exports.TextArea=jt;exports.TextField=Tt;exports.TimePicker=Zn;exports.Timeline=Ot;exports.Title=Rt;exports.Toast=Wt;exports.Tooltip=_o;exports.TransferList=ml;exports.WithReadOnlyWrapper=X;
|
|
2
2
|
//# sourceMappingURL=mantine-adapter.cjs.map
|