@recursica/mantine-adapter 0.13.1 → 0.15.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/mantine-adapter.cjs +1 -1
  3. package/dist/mantine-adapter.cjs.map +1 -1
  4. package/dist/mantine-adapter.css +1 -1
  5. package/dist/mantine-adapter.js +1329 -1082
  6. package/dist/mantine-adapter.js.map +1 -1
  7. package/dist/src/components/HoverCard/HoverCard.d.ts +55 -3
  8. package/dist/src/components/NumberInput/NumberInput.d.ts +10 -2
  9. package/dist/src/components/Panel/Panel.d.ts +65 -3
  10. package/dist/src/components/Tooltip/Tooltip.d.ts +42 -3
  11. package/package.json +1 -1
  12. package/src/components/Card/Card.module.css +1 -0
  13. package/src/components/Card/Card.stories.tsx +48 -58
  14. package/src/components/Dropdown/Dropdown.module.css +0 -3
  15. package/src/components/HoverCard/HOVERCARD_IMPLEMENTATION_NOTES.md +77 -0
  16. package/src/components/HoverCard/HoverCard.module.css +84 -0
  17. package/src/components/HoverCard/HoverCard.stories.tsx +160 -5
  18. package/src/components/HoverCard/HoverCard.tsx +153 -4
  19. package/src/components/NumberInput/NUMBER_INPUT_IMPLEMENTATION_NOTES.md +18 -0
  20. package/src/components/NumberInput/NumberInput.module.css +250 -0
  21. package/src/components/NumberInput/NumberInput.stories.tsx +84 -4
  22. package/src/components/NumberInput/NumberInput.tsx +144 -5
  23. package/src/components/Panel/PANEL_IMPLEMENTATION_NOTES.md +106 -0
  24. package/src/components/Panel/Panel.module.css +154 -0
  25. package/src/components/Panel/Panel.stories.tsx +216 -6
  26. package/src/components/Panel/Panel.tsx +153 -4
  27. package/src/components/TextArea/TextArea.module.css +0 -3
  28. package/src/components/TextField/TextField.module.css +0 -3
  29. package/src/components/Tooltip/TOOLTIP_IMPLEMENTATION_NOTES.md +85 -0
  30. package/src/components/Tooltip/Tooltip.module.css +81 -0
  31. package/src/components/Tooltip/Tooltip.stories.tsx +154 -6
  32. package/src/components/Tooltip/Tooltip.tsx +114 -4
@@ -1,3 +1,55 @@
1
- import { default as React } from 'react';
2
- export type HoverCardProps = React.HTMLAttributes<HTMLDivElement>;
3
- export declare const HoverCard: React.FC<HoverCardProps>;
1
+ import { HoverCardProps as MantineHoverCardProps, HoverCardTargetProps as MantineHoverCardTargetProps, HoverCardDropdownProps as MantineHoverCardDropdownProps } from '@mantine/core';
2
+ import { RecursicaOverStyled } from '../../utils/filterStylingProps';
3
+ /**
4
+ * Recursica-specific props for HoverCard.
5
+ */
6
+ export interface RecursicaHoverCardProps {
7
+ /**
8
+ * Whether to display a beak (arrow) pointing from the dropdown to the target.
9
+ * This is the Recursica equivalent of Mantine's `withArrow`.
10
+ * When both `withBeak` and `withArrow` are provided, `withBeak` takes precedence.
11
+ */
12
+ withBeak?: boolean;
13
+ }
14
+ /**
15
+ * Recursica HoverCard component wrapping Mantine's composable HoverCard.
16
+ *
17
+ * Displays a dropdown panel when the user hovers over a target element.
18
+ * Uses the composable dot-notation pattern:
19
+ * ```tsx
20
+ * <HoverCard withBeak>
21
+ * <HoverCard.Target>
22
+ * <Button>Hover me</Button>
23
+ * </HoverCard.Target>
24
+ * <HoverCard.Dropdown>
25
+ * Content displayed on hover
26
+ * </HoverCard.Dropdown>
27
+ * </HoverCard>
28
+ * ```
29
+ */
30
+ export type HoverCardProps = RecursicaOverStyled<MantineHoverCardProps & RecursicaHoverCardProps>;
31
+ declare const HoverCardBase: {
32
+ ({ overStyled, withBeak, ...rest }: HoverCardProps): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ };
35
+ /**
36
+ * Wrapper for the element that triggers the hover card.
37
+ * Requires a single child element that supports ref forwarding.
38
+ */
39
+ export type HoverCardTargetProps = MantineHoverCardTargetProps;
40
+ declare const HoverCardTarget: {
41
+ (props: HoverCardTargetProps): import("react/jsx-runtime").JSX.Element;
42
+ displayName: string;
43
+ };
44
+ /** The dropdown panel displayed when hovering over the target. */
45
+ export type HoverCardDropdownProps = RecursicaOverStyled<MantineHoverCardDropdownProps>;
46
+ declare const HoverCardDropdown: {
47
+ ({ overStyled, ...rest }: HoverCardDropdownProps): import("react/jsx-runtime").JSX.Element;
48
+ displayName: string;
49
+ };
50
+ type HoverCardComponent = typeof HoverCardBase & {
51
+ Target: typeof HoverCardTarget;
52
+ Dropdown: typeof HoverCardDropdown;
53
+ };
54
+ export declare const HoverCard: HoverCardComponent;
55
+ export {};
@@ -1,3 +1,11 @@
1
1
  import { default as React } from 'react';
2
- export type NumberInputProps = React.HTMLAttributes<HTMLDivElement>;
3
- export declare const NumberInput: React.FC<NumberInputProps>;
2
+ import { NumberInputProps as MantineNumberInputProps } from '@mantine/core';
3
+ import { ReadOnlyControlProps } from '@recursica/adapter-common';
4
+ import { RecursicaOverStyled } from '../../utils/filterStylingProps';
5
+ import { RecursicaFormControlWrapperProps } from '../FormControlWrapper/FormControlWrapper';
6
+ export interface RecursicaNumberInputProps extends Omit<MantineNumberInputProps, "size" | "variant" | "radius" | "wrapperProps" | "classNames" | "styles">, Pick<RecursicaFormControlWrapperProps, "assistiveText" | "assistiveWithIcon" | "formLayout" | "labelSize" | "labelAlignment" | "labelOptionalText" | "labelWithEditIcon" | "onLabelEditClick">, ReadOnlyControlProps {
7
+ /** Enables/disables the controls to increment and decrement the value */
8
+ hideControls?: boolean;
9
+ }
10
+ export type NumberInputProps = RecursicaOverStyled<RecursicaNumberInputProps>;
11
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,65 @@
1
- import { default as React } from 'react';
2
- export type PanelProps = React.HTMLAttributes<HTMLDivElement>;
3
- export declare const Panel: React.FC<PanelProps>;
1
+ import { Drawer as MantineDrawer, DrawerProps as MantineDrawerProps } from '@mantine/core';
2
+ import { RecursicaOverStyled } from '../../utils/filterStylingProps';
3
+ export interface RecursicaPanelProps extends MantineDrawerProps {
4
+ /**
5
+ * If true, forces the header text to a single line and truncates with an ellipsis.
6
+ * Note: While the prop is named `wrapHeaderText` for backward compatibility,
7
+ * setting it to `true` actually PREVENTS wrapping (it forces truncation).
8
+ */
9
+ wrapHeaderText?: boolean;
10
+ }
11
+ /**
12
+ * Recursica Panel root props. Extends Mantine Drawer.
13
+ */
14
+ export type PanelProps = RecursicaOverStyled<RecursicaPanelProps>;
15
+ /**
16
+ * Recursica Panel component wrapping Mantine's Drawer.
17
+ *
18
+ * Panels slide in or expand from the edge of the screen to reveal
19
+ * additional content or functionality. They are commonly used to provide
20
+ * supplementary information, navigation options, or toolsets without
21
+ * cluttering the main interface.
22
+ *
23
+ * ```tsx
24
+ * <Panel opened={opened} onClose={close} title="Panel Title" position="right">
25
+ * <Panel.Body>
26
+ * Content goes here
27
+ * </Panel.Body>
28
+ * </Panel>
29
+ * ```
30
+ *
31
+ * Mantine Drawer sub-components available via dot-notation:
32
+ * - `Panel.Header` — Top section with title and close button
33
+ * - `Panel.Title` — Title text within the header
34
+ * - `Panel.CloseButton` — Close button within the header
35
+ * - `Panel.Body` — Scrollable body content area
36
+ * - `Panel.Content` — Outer content container
37
+ * - `Panel.Overlay` — Background overlay
38
+ * - `Panel.Root` — Root element for advanced composition
39
+ * - `Panel.Stack` — Stacked drawer context
40
+ */
41
+ declare const PanelBase: {
42
+ ({ overStyled, position, keepMounted, wrapHeaderText, ...rest }: PanelProps): import("react/jsx-runtime").JSX.Element;
43
+ displayName: string;
44
+ };
45
+ export type PanelFooterProps = RecursicaOverStyled<React.HTMLAttributes<HTMLDivElement>>;
46
+ /**
47
+ * Panel footer section with action buttons.
48
+ * Separated from the body by a divider. Remains fixed at the bottom.
49
+ * This is a Recursica-specific sub-component; Mantine Drawer does not
50
+ * natively provide a footer.
51
+ */
52
+ export declare const PanelFooter: import('react').ForwardRefExoticComponent<PanelFooterProps & import('react').RefAttributes<HTMLDivElement>>;
53
+ type PanelComponent = typeof PanelBase & {
54
+ Root: typeof MantineDrawer.Root;
55
+ Overlay: typeof MantineDrawer.Overlay;
56
+ Content: typeof MantineDrawer.Content;
57
+ Header: typeof MantineDrawer.Header;
58
+ Title: typeof MantineDrawer.Title;
59
+ CloseButton: typeof MantineDrawer.CloseButton;
60
+ Body: typeof MantineDrawer.Body;
61
+ Stack: typeof MantineDrawer.Stack;
62
+ Footer: typeof PanelFooter;
63
+ };
64
+ export declare const Panel: PanelComponent;
65
+ export {};
@@ -1,3 +1,42 @@
1
- import { default as React } from 'react';
2
- export type TooltipProps = React.HTMLAttributes<HTMLDivElement>;
3
- export declare const Tooltip: React.FC<TooltipProps>;
1
+ import { Tooltip as MantineTooltip, TooltipProps as MantineTooltipProps } from '@mantine/core';
2
+ import { RecursicaOverStyled } from '../../utils/filterStylingProps';
3
+ /**
4
+ * Recursica-specific props for Tooltip.
5
+ */
6
+ export interface RecursicaTooltipProps {
7
+ /**
8
+ * Whether to display a beak (arrow) pointing from the tooltip to the target.
9
+ * This is the Recursica equivalent of Mantine's `withArrow`.
10
+ * When both `withBeak` and `withArrow` are provided, `withBeak` takes precedence.
11
+ * @default true
12
+ */
13
+ withBeak?: boolean;
14
+ }
15
+ /**
16
+ * Recursica Tooltip component wrapping Mantine's Tooltip.
17
+ *
18
+ * Displays a floating label when the user hovers over or focuses a target element.
19
+ * Unlike HoverCard, Tooltip is a single component (not composable) — content is
20
+ * passed via the `label` prop, and the trigger is passed as `children`.
21
+ *
22
+ * ```tsx
23
+ * <Tooltip label="Helpful information" withBeak>
24
+ * <Button>Hover me</Button>
25
+ * </Tooltip>
26
+ * ```
27
+ *
28
+ * Static sub-components available via dot-notation:
29
+ * - `Tooltip.Floating` — Tooltip that follows the cursor
30
+ * - `Tooltip.Group` — Shared hover delay group for multiple tooltips
31
+ */
32
+ export type TooltipProps = RecursicaOverStyled<MantineTooltipProps & RecursicaTooltipProps>;
33
+ declare const TooltipBase: {
34
+ ({ overStyled, withBeak, ...rest }: TooltipProps): import("react/jsx-runtime").JSX.Element;
35
+ displayName: string;
36
+ };
37
+ type TooltipComponent = typeof TooltipBase & {
38
+ Floating: typeof MantineTooltip.Floating;
39
+ Group: typeof MantineTooltip.Group;
40
+ };
41
+ export declare const Tooltip: TooltipComponent;
42
+ export {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/borderux/recursica.git"
13
13
  },
14
- "version": "0.13.1",
14
+ "version": "0.15.0",
15
15
  "type": "module",
16
16
  "main": "./dist/mantine-adapter.cjs",
17
17
  "module": "./dist/mantine-adapter.js",
@@ -33,6 +33,7 @@
33
33
  border-bottom: var(--recursica_ui-kit_components_card_properties_divider-size)
34
34
  solid
35
35
  var(--recursica_ui-kit_components_card_properties_colors_divider-color);
36
+ composes: recursica_brand_typography_h3 from global;
36
37
  }
37
38
 
38
39
  .footer {
@@ -2,6 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { Card } from "./Card";
3
3
  import { Layer } from "@recursica/adapter-common";
4
4
  import { Button } from "../Button/Button";
5
+ import { Group } from "../Group/Group";
6
+ import { Text } from "../Text/Text";
5
7
 
6
8
  const meta: Meta<typeof Card> = {
7
9
  title: "UI-Kit/Card",
@@ -32,46 +34,33 @@ export const Default: Story = {
32
34
  args: {},
33
35
  render: ({ ...args }) => {
34
36
  return (
35
- <Layer
36
- layer={0}
37
+ <div
37
38
  style={{
38
39
  padding: "48px",
39
40
  backgroundColor: "var(--recursica_brand_palettes_neutral_050)",
40
41
  }}
41
42
  >
42
- <Card {...args}>
43
- <Card.Header>
44
- <span style={{ fontWeight: 500, fontSize: "1.125rem" }}>
45
- Customer Activity Report
46
- </span>
47
- </Card.Header>
48
- <Card.Content>
49
- <p>
50
- Card inner section content body. Notice how this acts as padded
51
- content natively based on the overarching properties. Recursica's
52
- vertical gutter governs vertical spacing between siblings in the
53
- flex container.
54
- </p>
55
- <p>Another section showing the vertical gutter spacing.</p>
56
- </Card.Content>
57
- <Card.Footer>
58
- <div
59
- style={{
60
- display: "flex",
61
- justifyContent: "space-between",
62
- alignItems: "center",
63
- marginTop: "16px",
64
- marginBottom: "8px",
65
- }}
66
- >
67
- <span style={{ color: "#868e96", fontSize: "0.75rem" }}>
68
- Generated today
69
- </span>
70
- <Button variant="solid">View Details</Button>
71
- </div>
72
- </Card.Footer>
73
- </Card>
74
- </Layer>
43
+ <Layer layer={0}>
44
+ <Card {...args}>
45
+ <Card.Header>Customer Activity Report</Card.Header>
46
+ <Card.Content>
47
+ <Text>
48
+ Card inner section content body. Notice how this acts as padded
49
+ content natively based on the overarching properties.
50
+ Recursica's vertical gutter governs vertical spacing between
51
+ siblings in the flex container.
52
+ </Text>
53
+ <Text>Another section showing the vertical gutter spacing.</Text>
54
+ </Card.Content>
55
+ <Card.Footer>
56
+ <Group justify="space-between" align="center">
57
+ <Text variant="caption">Generated today</Text>
58
+ <Button variant="solid">View Details</Button>
59
+ </Group>
60
+ </Card.Footer>
61
+ </Card>
62
+ </Layer>
63
+ </div>
75
64
  );
76
65
  },
77
66
  };
@@ -80,29 +69,26 @@ export const HeaderlessAndFooterless: Story = {
80
69
  args: {},
81
70
  render: ({ ...args }) => {
82
71
  return (
83
- <Layer
84
- layer={0}
72
+ <div
85
73
  style={{
86
74
  padding: "48px",
87
75
  backgroundColor: "var(--recursica_brand_palettes_neutral_050)",
88
76
  }}
89
77
  >
90
- <Card {...args}>
91
- <Card.Content>
92
- <span style={{ fontWeight: 500, fontSize: "1.125rem" }}>
93
- Notice
94
- </span>
95
- <p>
96
- This is a completely generic card payload dropping the Header and
97
- Footer specific elements, simply acting as a padded elevation
98
- boundary box directly mirroring native composability!
99
- </p>
100
- <Button variant="solid" mt="rec-md">
101
- Acknowledge
102
- </Button>
103
- </Card.Content>
104
- </Card>
105
- </Layer>
78
+ <Layer layer={0}>
79
+ <Card {...args}>
80
+ <Card.Content>
81
+ <Text variant="subtitle">Notice</Text>
82
+ <Text>
83
+ This is a completely generic card payload dropping the Header
84
+ and Footer specific elements, simply acting as a padded
85
+ elevation boundary box directly mirroring native composability!
86
+ </Text>
87
+ <Button variant="solid">Acknowledge</Button>
88
+ </Card.Content>
89
+ </Card>
90
+ </Layer>
91
+ </div>
106
92
  );
107
93
  },
108
94
  };
@@ -122,17 +108,21 @@ export const LayerDemonstration: Story = {
122
108
  <Layer layer={1}>
123
109
  <Card {...args}>
124
110
  <Card.Header>Layer 1 Wrapper</Card.Header>
125
- <p>Content inside layer 1 card.</p>
111
+ <Card.Content>
112
+ <Text>Content inside layer 1 card.</Text>
113
+ </Card.Content>
126
114
  </Card>
127
115
  </Layer>
128
116
 
129
117
  <Layer layer={2}>
130
118
  <Card {...args}>
131
119
  <Card.Header>Layer 2 Wrapper</Card.Header>
132
- <p>
133
- Content inside layer 2 card exposing a higher elevation drop
134
- shadow inherently cascaded.
135
- </p>
120
+ <Card.Content>
121
+ <Text>
122
+ Content inside layer 2 card exposing a higher elevation drop
123
+ shadow inherently cascaded.
124
+ </Text>
125
+ </Card.Content>
136
126
  </Card>
137
127
  </Layer>
138
128
  </div>
@@ -97,9 +97,6 @@
97
97
  );
98
98
 
99
99
  outline: none;
100
- transition:
101
- border-color 0.15s ease,
102
- background-color 0.15s ease;
103
100
  }
104
101
 
105
102
  .input::placeholder {
@@ -0,0 +1,77 @@
1
+ # HoverCard – Implementation Notes
2
+
3
+ Decisions and design tweaks strictly tailored for the UI Kit's HoverCard wrapped against `@mantine/core`. This is a living document that tracks _why_ specific logic decisions exist.
4
+
5
+ ---
6
+
7
+ ## 1. Composable API Preservation (1:1 Mapping)
8
+
9
+ **Decision:** We maintain the exact library composition API structure (`<HoverCard>`, `<HoverCard.Target>`, `<HoverCard.Dropdown>`) as a 1:1 React component mapping.
10
+
11
+ **Implementation:** Mantine's HoverCard internally manages hover detection, open/close delays, Floating UI positioning, and portal rendering. By preserving the exact sub-component tree, Recursica safely inherits all of these behaviors without reimplementation.
12
+
13
+ ---
14
+
15
+ ## 2. HoverCard.Target Pass-Through
16
+
17
+ **Decision:** `HoverCard.Target` is a transparent pass-through with no styling applied.
18
+
19
+ **Implementation:** The target wrapper exists solely to manage Mantine's ref forwarding and hover event binding for the trigger element. No `filterStylingProps` or CSS module classes are applied — the trigger's appearance is entirely controlled by whatever component the integrator places inside it (e.g., `<Button>`). This is identical to the `Menu.Target` pattern.
20
+
21
+ ---
22
+
23
+ ## 3. Token Namespace: `hover-card-popover`
24
+
25
+ **Decision:** The CSS module exclusively uses variables from the `--recursica_ui-kit_components_hover-card-popover_*` namespace.
26
+
27
+ **Implementation:** The Recursica token system defines a single shared namespace (`hover-card-popover`) for this component covering geometry (border-radius, border-size, padding, min/max-width), typography (content-text\_\*), elevation, and layer-aware colors (background, border-color, content). No tokens from other component namespaces are referenced.
28
+
29
+ ---
30
+
31
+ ## 4. Hardcoded Values
32
+
33
+ **Decision:** Two hardcoded values exist in the component.
34
+
35
+ ### `border-style: solid` (CSS module)
36
+
37
+ Mantine renders the dropdown using its `Paper` component, which does not set `border-style` natively. Without this hardcoded value, the border-width and border-color tokens would have no visible effect. This is the same pattern used in the Menu component's dropdown.
38
+
39
+ ### `arrowSize` defaulted to `16` (HoverCard.tsx)
40
+
41
+ Mantine's `arrowSize` prop is a JavaScript number used for inline style calculations: it sets `width`, `height`, and a positioning offset (`-arrowSize/2`) directly on the arrow `<div>` element. These inline styles **cannot** be overridden via CSS without `!important`, and the positioning offset has no CSS equivalent. This means the beak size cannot be fully CSS-driven — it is one of the rare cases where a design token value must be mirrored as a JS prop.
42
+
43
+ The default value `16` matches the Recursica `beak-size` token (`--recursica_ui-kit_components_hover-card-popover_properties_beak-size: 16px`). Developers can override `arrowSize` if needed, but should be aware this is a design system concern. If the token value changes, the default in `HoverCard.tsx` must also be updated.
44
+
45
+ This is documented as an open issue in `docs/COMPONENT_ISSUES.md`.
46
+
47
+ **Note:** Mantine calls this the "arrow"; Recursica calls it the "beak". The Recursica prop `withBeak` (defaulting to `true`) maps to Mantine's `withArrow`. Both `withBeak` and `withArrow` are accepted; `withBeak` takes precedence.
48
+
49
+ ---
50
+
51
+ ## 5. Minimal CSS Override Philosophy
52
+
53
+ **Decision:** The CSS module only overrides visual design tokens (colors, typography, spacing, borders, shadows). All structural layout properties are deferred to Mantine's native behavior.
54
+
55
+ **Implementation:** HoverCard is an overlay component where Mantine's native Floating UI positioning and Paper layout are already correct. We avoid setting:
56
+
57
+ - `overflow` on the dropdown (Mantine handles scroll behavior natively)
58
+ - `display`, `position`, `z-index` (Floating UI controls these)
59
+ - `pointer-events` (Mantine manages hover detection across target and dropdown)
60
+
61
+ **Rationale:** The Menu implementation demonstrated that aggressive structural resets (overflow, box-sizing) on overlay components cause layout breakage. Default to Mantine's native behavior and only override what the Recursica token system explicitly needs to control.
62
+
63
+ ---
64
+
65
+ ## 6. ClassNames Merging on Root
66
+
67
+ **Decision:** The root `HoverCard` component binds CSS module classes via `classNames` on the Mantine root, identical to the Menu pattern.
68
+
69
+ **Implementation:** The root component receives `classNames={{ dropdown: styles.dropdown }}` and merges any consumer-provided `classNames` when `overStyled` is true. This ensures our token-driven styles are applied to the dropdown panel without wrapper divs, and the consumer's classes are additive.
70
+
71
+ ---
72
+
73
+ ## 7. Default Position Override
74
+
75
+ **Decision:** Recursica defaults `position` to `"top"`. Mantine defaults to `"bottom"`.
76
+
77
+ **Implementation:** The `position="top"` default is set on the Mantine root element before the prop spread, so developer-provided `position` values still take precedence. This aligns with Recursica's design intent for overlay components to appear above their trigger by default.
@@ -0,0 +1,84 @@
1
+ /* HARDCODED VALUES:
2
+ - border-style: solid. Structural rendering rule for the dropdown border (Mantine uses Paper
3
+ which may not set border-style natively). Same pattern as Menu.
4
+ - arrowSize defaults to 16 in HoverCard.tsx. Mantine uses arrowSize for inline width/height
5
+ and positioning (-arrowSize/2) calculations that cannot be CSS-driven. The default matches
6
+ the Recursica beak-size token (16px). See COMPONENT_ISSUES.md for details.
7
+ - All structural layout (display, position, overflow) is deferred to Mantine's native
8
+ behavior. We only override visual design tokens (colors, typography, spacing, borders).
9
+ */
10
+
11
+ /* ======================================
12
+ DROPDOWN CONTAINER
13
+ ====================================== */
14
+
15
+ .dropdown {
16
+ background-color: var(
17
+ --recursica_ui-kit_components_hover-card-popover_colors_background
18
+ );
19
+ border-style: solid; /* HARDCODE: Mantine Paper does not set border-style natively */
20
+ border-width: var(
21
+ --recursica_ui-kit_components_hover-card-popover_properties_border-size
22
+ );
23
+ border-color: var(
24
+ --recursica_ui-kit_components_hover-card-popover_colors_border-color
25
+ );
26
+ border-radius: var(
27
+ --recursica_ui-kit_components_hover-card-popover_properties_border-radius
28
+ );
29
+ box-shadow: var(
30
+ --recursica_ui-kit_components_hover-card-popover_properties_elevation
31
+ );
32
+
33
+ min-width: var(
34
+ --recursica_ui-kit_components_hover-card-popover_properties_min-width
35
+ );
36
+ max-width: var(
37
+ --recursica_ui-kit_components_hover-card-popover_properties_max-width
38
+ );
39
+
40
+ padding: var(
41
+ --recursica_ui-kit_components_hover-card-popover_properties_vertical-padding
42
+ )
43
+ var(
44
+ --recursica_ui-kit_components_hover-card-popover_properties_horizontal-padding
45
+ );
46
+
47
+ /* Typography */
48
+ font-family: var(
49
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_font-family
50
+ );
51
+ font-size: var(
52
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_font-size
53
+ );
54
+ font-style: var(
55
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_font-style
56
+ );
57
+ font-weight: var(
58
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_font-weight
59
+ );
60
+ letter-spacing: var(
61
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_letter-spacing
62
+ );
63
+ line-height: var(
64
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_line-height
65
+ );
66
+ text-decoration: var(
67
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_text-decoration
68
+ );
69
+ text-transform: var(
70
+ --recursica_ui-kit_components_hover-card-popover_properties_content-text_text-transform
71
+ );
72
+
73
+ color: var(--recursica_ui-kit_components_hover-card-popover_colors_content);
74
+ }
75
+
76
+ /* ======================================
77
+ ARROW / BEAK
78
+ ====================================== */
79
+
80
+ .arrow {
81
+ border-color: var(
82
+ --recursica_ui-kit_components_hover-card-popover_colors_border-color
83
+ );
84
+ }