@appdirect/design-system 0.0.23 → 0.0.24

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 (36) hide show
  1. package/dist/Combobox/ADMultiselect.js +91 -0
  2. package/dist/Combobox/ADMultiselect.tsx +237 -0
  3. package/dist/Combobox/Select.js +13 -19
  4. package/dist/Combobox/Select.tsx +15 -44
  5. package/dist/Combobox/index.js +1 -1
  6. package/dist/Combobox/index.ts +2 -2
  7. package/dist/DESIGN.md +2 -2
  8. package/dist/DataDisplay/Pill.js +21 -79
  9. package/dist/DataDisplay/Pill.tsx +34 -116
  10. package/dist/Inputs/ColorInput.js +12 -18
  11. package/dist/Inputs/ColorInput.tsx +13 -41
  12. package/dist/Inputs/NumberInput.js +12 -36
  13. package/dist/Inputs/NumberInput.tsx +13 -72
  14. package/dist/Inputs/TextArea.js +12 -18
  15. package/dist/Inputs/TextArea.tsx +13 -41
  16. package/dist/Inputs/TextInput.js +12 -18
  17. package/dist/Inputs/TextInput.tsx +13 -41
  18. package/dist/Inputs/inputLabel.js +35 -0
  19. package/dist/Inputs/inputLabel.tsx +83 -0
  20. package/dist/Overlays/Tooltip.js +2 -2
  21. package/dist/Overlays/Tooltip.tsx +4 -1
  22. package/dist/contracts/index.json +1 -1
  23. package/dist/css/mantine.css +193 -29
  24. package/dist/css/tokens.css +58 -18
  25. package/dist/index.js +3 -3
  26. package/dist/index.ts +4 -4
  27. package/dist/stories/Combobox/{Multiselect.stories.tsx → ADMultiselect.stories.tsx} +159 -53
  28. package/dist/stories/Combobox/Select.stories.tsx +1 -1
  29. package/dist/stories/Inputs/ColorInput.stories.tsx +12 -0
  30. package/dist/stories/Inputs/NumberInput.stories.tsx +12 -0
  31. package/dist/stories/Inputs/TextArea.stories.tsx +12 -0
  32. package/dist/stories/Inputs/TextInput.stories.tsx +12 -0
  33. package/dist/stories/index.json +40 -32
  34. package/package.json +2 -2
  35. package/dist/Combobox/Multiselect.js +0 -31
  36. package/dist/Combobox/Multiselect.tsx +0 -158
@@ -1,11 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import React, { forwardRef } from 'react';
4
- import { TextInput as MantineTextInput, TextInputProps as MantineTextInputProps, ActionIcon, Group } from '@mantine/core';
5
- import { IconInfoCircle } from '@tabler/icons-react';
4
+ import { TextInput as MantineTextInput, TextInputProps as MantineTextInputProps } from '@mantine/core';
6
5
  import { ComponentSize } from '../config';
7
- import { Text } from '../Typography/Text';
8
- import { Tooltip } from '../Overlays/Tooltip';
6
+ import { getInputLabelProps } from './inputLabel';
9
7
 
10
8
  /**
11
9
  * Enhanced TextInput props extending Mantine's TextInputProps
@@ -17,7 +15,7 @@ export interface DSTextInputProps extends Omit<MantineTextInputProps, 'size' | '
17
15
  required?: boolean;
18
16
  /** Whether to show "(Optional)" text after label */
19
17
  showOptional?: boolean;
20
- /** Whether to show a help icon with a tooltip in the right section */
18
+ /** Whether to show a (?) help icon with a tooltip to the right of the label */
21
19
  hasHelpIcon?: boolean;
22
20
  /** Tooltip label shown when hovering the help icon. Also used as aria-label for a11y */
23
21
  helpIconLabel?: string;
@@ -113,40 +111,14 @@ export const TextInput = forwardRef<HTMLInputElement, DSTextInputProps>(
113
111
  ) => {
114
112
  const effectiveError = error === true ? (errorCaption ?? true) : error;
115
113
 
116
- const enhancedLabel = React.useMemo(() => {
117
- if (!label) return label;
118
- if (showOptional && !required) {
119
- return (
120
- <>
121
- {label} <Text span c="dimmed" fw="normal">(Optional)</Text>
122
- </>
123
- );
124
- }
125
- return label;
126
- }, [label, showOptional, required]);
127
-
128
- const helpIconElement = hasHelpIcon ? (
129
- <Tooltip
130
- label={helpIconLabel ?? 'Help'}
131
- position="top"
132
- withArrow
133
- >
134
- <ActionIcon
135
- variant="transparent"
136
- size="xs"
137
- aria-label={helpIconLabel ?? 'Help'}
138
- onClick={onHelpIconClick}
139
- color="gray"
140
- style={{ cursor: onHelpIconClick ? 'pointer' : 'default' }}
141
- >
142
- <IconInfoCircle size={14} aria-hidden />
143
- </ActionIcon>
144
- </Tooltip>
145
- ) : null;
146
-
147
- const composedRightSection = (helpIconElement && rightSection)
148
- ? <Group gap={4} wrap="nowrap">{rightSection}{helpIconElement}</Group>
149
- : helpIconElement || rightSection;
114
+ const labelProps = getInputLabelProps({
115
+ label,
116
+ required,
117
+ showOptional,
118
+ hasHelpIcon,
119
+ helpIconLabel,
120
+ onHelpIconClick,
121
+ });
150
122
 
151
123
  return (
152
124
  <MantineTextInput
@@ -155,8 +127,8 @@ export const TextInput = forwardRef<HTMLInputElement, DSTextInputProps>(
155
127
  radius="sm"
156
128
  required={required}
157
129
  leftSection={leftSection}
158
- rightSection={composedRightSection}
159
- label={enhancedLabel}
130
+ rightSection={rightSection}
131
+ {...labelProps}
160
132
  error={effectiveError}
161
133
  {...props}
162
134
  />
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ActionIcon } from '@mantine/core';
4
+ import { IconHelp } from '@tabler/icons-react';
5
+ import { Text } from '../Typography/Text.js';
6
+ import { Tooltip } from '../Overlays/Tooltip.js';
7
+ /**
8
+ * Shared label for DS form inputs: label, required asterisk or "(Optional)", then
9
+ * the (?) help icon, the order used by the Figma input label.
10
+ *
11
+ * Returns the props to spread onto the Mantine input. `withAsterisk` is only set
12
+ * when a help icon is shown: Mantine renders its asterisk inside the label after
13
+ * the content, which would put it behind the icon, so in that case the asterisk is
14
+ * rendered here instead. The help icon needs a label to attach to.
15
+ *
16
+ * Sizing follows Mantine core: the label font-size tracks the field `size`, set by the
17
+ * input tokens (`input.label.sizes`) on `.mantine-InputWrapper-label[data-size]`. The
18
+ * "(Optional)" text inherits it and the (?) icon is sized by the same tokens.
19
+ */
20
+ export function getInputLabelProps({ label, required, showOptional, hasHelpIcon, helpIconLabel, onHelpIconClick, }) {
21
+ if (!label)
22
+ return { label };
23
+ const optional = showOptional && !required && (_jsxs(_Fragment, { children: [' ', _jsx(Text, { span: true, fz: "inherit", c: "dimmed", fw: "normal", children: "(Optional)" })] }));
24
+ if (!hasHelpIcon) {
25
+ return optional ? { label: _jsxs(_Fragment, { children: [label, optional] }) } : { label };
26
+ }
27
+ return {
28
+ withAsterisk: false,
29
+ label: (_jsxs(_Fragment, { children: [label, required && (_jsx("span", { className: "mantine-InputWrapper-required", "aria-hidden": true, children: ' *' })), optional, ' ', _jsx(Tooltip, { label: helpIconLabel ?? 'Help', position: "top", withArrow: true, children: _jsx(ActionIcon, { variant: "transparent", size: "xs", color: "gray", "aria-label": helpIconLabel ?? 'Help', onClick: (event) => {
30
+ // The icon lives inside the <label>; don't let the click focus the field.
31
+ event.preventDefault();
32
+ onHelpIconClick?.(event);
33
+ }, children: _jsx(IconHelp, { size: 16, "aria-hidden": true }) }) })] })),
34
+ };
35
+ }
@@ -0,0 +1,83 @@
1
+ import React from 'react';
2
+ import { ActionIcon } from '@mantine/core';
3
+ import { IconHelp } from '@tabler/icons-react';
4
+ import { Text } from '../Typography/Text';
5
+ import { Tooltip } from '../Overlays/Tooltip';
6
+
7
+ export interface InputLabelOptions {
8
+ label?: React.ReactNode;
9
+ required?: boolean;
10
+ /** Show "(Optional)" after the label when the field is not required */
11
+ showOptional?: boolean;
12
+ /** Show a (?) help icon with a tooltip to the right of the label */
13
+ hasHelpIcon?: boolean;
14
+ /** Tooltip text for the help icon; also its aria-label */
15
+ helpIconLabel?: string;
16
+ /** Click handler for the help icon */
17
+ onHelpIconClick?: React.MouseEventHandler<HTMLButtonElement>;
18
+ }
19
+
20
+ /**
21
+ * Shared label for DS form inputs: label, required asterisk or "(Optional)", then
22
+ * the (?) help icon, the order used by the Figma input label.
23
+ *
24
+ * Returns the props to spread onto the Mantine input. `withAsterisk` is only set
25
+ * when a help icon is shown: Mantine renders its asterisk inside the label after
26
+ * the content, which would put it behind the icon, so in that case the asterisk is
27
+ * rendered here instead. The help icon needs a label to attach to.
28
+ *
29
+ * Sizing follows Mantine core: the label font-size tracks the field `size`, set by the
30
+ * input tokens (`input.label.sizes`) on `.mantine-InputWrapper-label[data-size]`. The
31
+ * "(Optional)" text inherits it and the (?) icon is sized by the same tokens.
32
+ */
33
+ export function getInputLabelProps({
34
+ label,
35
+ required,
36
+ showOptional,
37
+ hasHelpIcon,
38
+ helpIconLabel,
39
+ onHelpIconClick,
40
+ }: InputLabelOptions): { label: React.ReactNode; withAsterisk?: boolean } {
41
+ if (!label) return { label };
42
+
43
+ const optional = showOptional && !required && (
44
+ <>
45
+ {' '}
46
+ <Text span fz="inherit" c="dimmed" fw="normal">(Optional)</Text>
47
+ </>
48
+ );
49
+
50
+ if (!hasHelpIcon) {
51
+ return optional ? { label: <>{label}{optional}</> } : { label };
52
+ }
53
+
54
+ return {
55
+ withAsterisk: false,
56
+ label: (
57
+ <>
58
+ {label}
59
+ {required && (
60
+ <span className="mantine-InputWrapper-required" aria-hidden>
61
+ {' *'}
62
+ </span>
63
+ )}
64
+ {optional}{' '}
65
+ <Tooltip label={helpIconLabel ?? 'Help'} position="top" withArrow>
66
+ <ActionIcon
67
+ variant="transparent"
68
+ size="xs"
69
+ color="gray"
70
+ aria-label={helpIconLabel ?? 'Help'}
71
+ onClick={(event) => {
72
+ // The icon lives inside the <label>; don't let the click focus the field.
73
+ event.preventDefault();
74
+ onHelpIconClick?.(event);
75
+ }}
76
+ >
77
+ <IconHelp size={16} aria-hidden />
78
+ </ActionIcon>
79
+ </Tooltip>
80
+ </>
81
+ ),
82
+ };
83
+ }
@@ -41,7 +41,7 @@ import { Tooltip as MantineTooltip } from '@mantine/core';
41
41
  * <Button>Delayed</Button>
42
42
  * </Tooltip>
43
43
  */
44
- export const Tooltip = forwardRef(({ label, children, position = 'top', disabled = false, openDelay = 0, closeDelay = 0, keepMounted = false, width = 'auto', withArrow = true, arrowSize = 6, ...props }, ref) => {
44
+ export const Tooltip = forwardRef(({ label, children, position = 'top', disabled = false, openDelay = 0, closeDelay = 0, keepMounted = false, width = 'auto', maxWidth = 300, withArrow = true, arrowSize = 6, ...props }, ref) => {
45
45
  return (_jsx(MantineTooltip, { ref: ref, label: label, position: position, disabled: disabled, openDelay: openDelay, closeDelay: closeDelay, keepMounted: keepMounted, withArrow: withArrow, arrowSize: arrowSize,
46
46
  // Design system styling from Figma
47
47
  color: "dark", radius: "sm",
@@ -58,7 +58,7 @@ export const Tooltip = forwardRef(({ label, children, position = 'top', disabled
58
58
  borderRadius: '4px',
59
59
  border: 'none',
60
60
  width: width !== 'auto' ? width : undefined,
61
- maxWidth: width === 'auto' ? '300px' : undefined,
61
+ maxWidth: width === 'auto' ? `${maxWidth}px` : undefined,
62
62
  },
63
63
  arrow: {
64
64
  backgroundColor: '#212529',
@@ -22,6 +22,8 @@ export interface DSTooltipProps extends Omit<MantineTooltipProps, 'color' | 'rad
22
22
  keepMounted?: boolean;
23
23
  /** Custom width for tooltip */
24
24
  width?: number | 'auto';
25
+ /** Maximum width in px when `width` is 'auto' (default 300) */
26
+ maxWidth?: number;
25
27
  /** Whether to show arrow pointer */
26
28
  withArrow?: boolean;
27
29
  /** Size of arrow pointer */
@@ -78,6 +80,7 @@ export const Tooltip = forwardRef<HTMLDivElement, DSTooltipProps>(
78
80
  closeDelay = 0,
79
81
  keepMounted = false,
80
82
  width = 'auto',
83
+ maxWidth = 300,
81
84
  withArrow = true,
82
85
  arrowSize = 6,
83
86
  ...props
@@ -110,7 +113,7 @@ export const Tooltip = forwardRef<HTMLDivElement, DSTooltipProps>(
110
113
  borderRadius: '4px',
111
114
  border: 'none',
112
115
  width: width !== 'auto' ? width : undefined,
113
- maxWidth: width === 'auto' ? '300px' : undefined,
116
+ maxWidth: width === 'auto' ? `${maxWidth}px` : undefined,
114
117
  },
115
118
  arrow: {
116
119
  backgroundColor: '#212529',
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.23",
2
+ "version": "0.0.24",
3
3
  "contracts": [
4
4
  {
5
5
  "id": "Alert",
@@ -626,6 +626,16 @@
626
626
  --ad-input-label-base-font-size: var(--ad-font-sizes-sm);
627
627
  --ad-input-label-base-font-weight: var(--ad-font-weights-medium);
628
628
  --ad-input-label-base-color: var(--ad-color-text-default);
629
+ --ad-input-label-sizes-xs-font-size: var(--ad-font-sizes-xs);
630
+ --ad-input-label-sizes-xs-help-icon-size: var(--ad-icon-size-sm);
631
+ --ad-input-label-sizes-sm-font-size: var(--ad-font-sizes-sm);
632
+ --ad-input-label-sizes-sm-help-icon-size: var(--ad-icon-size-md);
633
+ --ad-input-label-sizes-md-font-size: var(--ad-font-sizes-md);
634
+ --ad-input-label-sizes-md-help-icon-size: var(--ad-icon-size-lg);
635
+ --ad-input-label-sizes-lg-font-size: var(--ad-font-sizes-lg);
636
+ --ad-input-label-sizes-lg-help-icon-size: var(--ad-icon-size-xl);
637
+ --ad-input-label-sizes-xl-font-size: var(--ad-font-sizes-xl);
638
+ --ad-input-label-sizes-xl-help-icon-size: 22px;
629
639
  --ad-input-label-required-gap: var(--ad-spacing-xxs);
630
640
  --ad-input-label-required-color: var(--ad-color-status-error);
631
641
  --ad-input-label-optional-color: var(--ad-color-text-dimmed);
@@ -634,6 +644,11 @@
634
644
  --ad-input-description-color: var(--ad-color-text-dimmed);
635
645
  --ad-input-description-font-size: var(--ad-font-sizes-xs);
636
646
  --ad-input-description-line-height: var(--ad-line-heights-md);
647
+ --ad-input-description-sizes-xs-font-size: 10px;
648
+ --ad-input-description-sizes-sm-font-size: var(--ad-font-sizes-xs);
649
+ --ad-input-description-sizes-md-font-size: var(--ad-font-sizes-sm);
650
+ --ad-input-description-sizes-lg-font-size: var(--ad-font-sizes-md);
651
+ --ad-input-description-sizes-xl-font-size: var(--ad-font-sizes-lg);
637
652
  --ad-input-field-base-font-family: var(--ad-font-family-body);
638
653
  --ad-input-field-base-bg: var(--ad-color-bg-default);
639
654
  --ad-input-field-base-fg: var(--ad-color-text-default);
@@ -660,31 +675,36 @@
660
675
  --ad-input-field-sizes-xs-font-size: var(--ad-font-sizes-xs);
661
676
  --ad-input-field-sizes-sm-height: 36px;
662
677
  --ad-input-field-sizes-sm-padding-x: var(--ad-spacing-sm);
663
- --ad-input-field-sizes-sm-font-size: var(--ad-font-sizes-xs);
678
+ --ad-input-field-sizes-sm-font-size: var(--ad-font-sizes-sm);
664
679
  --ad-input-field-sizes-md-height: 42px;
665
680
  --ad-input-field-sizes-md-padding-x: var(--ad-spacing-md);
666
- --ad-input-field-sizes-md-font-size: var(--ad-font-sizes-sm);
681
+ --ad-input-field-sizes-md-font-size: var(--ad-font-sizes-md);
667
682
  --ad-input-field-sizes-lg-height: 50px;
668
683
  --ad-input-field-sizes-lg-padding-x: var(--ad-spacing-lg);
669
- --ad-input-field-sizes-lg-font-size: var(--ad-font-sizes-md);
684
+ --ad-input-field-sizes-lg-font-size: var(--ad-font-sizes-lg);
670
685
  --ad-input-field-sizes-xl-height: 60px;
671
686
  --ad-input-field-sizes-xl-padding-x: var(--ad-spacing-xl);
672
- --ad-input-field-sizes-xl-font-size: var(--ad-font-sizes-md);
687
+ --ad-input-field-sizes-xl-font-size: var(--ad-font-sizes-xl);
673
688
  --ad-input-section-color: var(--ad-color-text-dimmed);
674
689
  --ad-input-section-padding-x: var(--ad-spacing-xs);
675
690
  --ad-input-section-sizes-xs-font-size: var(--ad-font-sizes-xs);
676
- --ad-input-section-sizes-xs-width: var(--ad-icon-size-md);
677
- --ad-input-section-sizes-sm-font-size: var(--ad-font-sizes-xs);
691
+ --ad-input-section-sizes-xs-width: var(--ad-icon-size-sm);
692
+ --ad-input-section-sizes-sm-font-size: var(--ad-font-sizes-sm);
678
693
  --ad-input-section-sizes-sm-width: var(--ad-icon-size-md);
679
- --ad-input-section-sizes-md-font-size: var(--ad-font-sizes-sm);
694
+ --ad-input-section-sizes-md-font-size: var(--ad-font-sizes-md);
680
695
  --ad-input-section-sizes-md-width: var(--ad-icon-size-lg);
681
- --ad-input-section-sizes-lg-font-size: var(--ad-font-sizes-md);
696
+ --ad-input-section-sizes-lg-font-size: var(--ad-font-sizes-lg);
682
697
  --ad-input-section-sizes-lg-width: var(--ad-icon-size-xl);
683
- --ad-input-section-sizes-xl-font-size: var(--ad-font-sizes-md);
698
+ --ad-input-section-sizes-xl-font-size: var(--ad-font-sizes-xl);
684
699
  --ad-input-section-sizes-xl-width: 22px;
685
700
  --ad-input-error-color: var(--ad-color-status-error);
686
701
  --ad-input-error-font-size: var(--ad-font-sizes-xs);
687
702
  --ad-input-error-line-height: var(--ad-line-heights-md);
703
+ --ad-input-error-sizes-xs-font-size: 10px;
704
+ --ad-input-error-sizes-sm-font-size: var(--ad-font-sizes-xs);
705
+ --ad-input-error-sizes-md-font-size: var(--ad-font-sizes-sm);
706
+ --ad-input-error-sizes-lg-font-size: var(--ad-font-sizes-md);
707
+ --ad-input-error-sizes-xl-font-size: var(--ad-font-sizes-lg);
688
708
  --ad-kbd-root-font-family: var(--ad-font-family-monospace);
689
709
  --ad-kbd-root-font-weight: var(--ad-font-weights-bold);
690
710
  --ad-kbd-root-border-radius: var(--ad-radius-sm);
@@ -1554,10 +1574,12 @@
1554
1574
  .mantine-Alert-root[data-color="default"] .mantine-Alert-icon {
1555
1575
  color: var(--ad-color-status-on-default-light);
1556
1576
  }
1577
+ .mantine-Alert-body {
1578
+ gap: var(--ad-spacing-xs);
1579
+ }
1557
1580
  .mantine-Alert-title {
1558
1581
  font-size: var(--ad-font-sizes-sm);
1559
1582
  font-weight: var(--ad-font-weights-bold);
1560
- margin-bottom: var(--ad-spacing-xs);
1561
1583
  }
1562
1584
  .mantine-Alert-message {
1563
1585
  font-size: var(--ad-font-sizes-sm);
@@ -2594,6 +2616,126 @@
2594
2616
  padding-inline: 0;
2595
2617
  justify-content: center;
2596
2618
  }
2619
+ .mantine-InputWrapper-label[data-size="xs"] {
2620
+ font-size: var(--ad-font-sizes-xs);
2621
+ }
2622
+ .mantine-InputWrapper-label[data-size="xs"] .mantine-Text-root {
2623
+ font-size: var(--ad-font-sizes-xs);
2624
+ }
2625
+ .mantine-InputWrapper-label[data-size="xs"] .mantine-ActionIcon-root {
2626
+ width: var(--ad-icon-size-sm);
2627
+ height: var(--ad-icon-size-sm);
2628
+ min-width: var(--ad-icon-size-sm);
2629
+ min-height: var(--ad-icon-size-sm);
2630
+ vertical-align: middle;
2631
+ }
2632
+ .mantine-InputWrapper-label[data-size="xs"] .mantine-ActionIcon-root svg {
2633
+ width: var(--ad-icon-size-sm);
2634
+ height: var(--ad-icon-size-sm);
2635
+ flex-shrink: 0;
2636
+ }
2637
+ .mantine-InputWrapper-label[data-size="sm"] {
2638
+ font-size: var(--ad-font-sizes-sm);
2639
+ }
2640
+ .mantine-InputWrapper-label[data-size="sm"] .mantine-Text-root {
2641
+ font-size: var(--ad-font-sizes-sm);
2642
+ }
2643
+ .mantine-InputWrapper-label[data-size="sm"] .mantine-ActionIcon-root {
2644
+ width: var(--ad-icon-size-md);
2645
+ height: var(--ad-icon-size-md);
2646
+ min-width: var(--ad-icon-size-md);
2647
+ min-height: var(--ad-icon-size-md);
2648
+ vertical-align: middle;
2649
+ }
2650
+ .mantine-InputWrapper-label[data-size="sm"] .mantine-ActionIcon-root svg {
2651
+ width: var(--ad-icon-size-md);
2652
+ height: var(--ad-icon-size-md);
2653
+ flex-shrink: 0;
2654
+ }
2655
+ .mantine-InputWrapper-label[data-size="md"] {
2656
+ font-size: var(--ad-font-sizes-md);
2657
+ }
2658
+ .mantine-InputWrapper-label[data-size="md"] .mantine-Text-root {
2659
+ font-size: var(--ad-font-sizes-md);
2660
+ }
2661
+ .mantine-InputWrapper-label[data-size="md"] .mantine-ActionIcon-root {
2662
+ width: var(--ad-icon-size-lg);
2663
+ height: var(--ad-icon-size-lg);
2664
+ min-width: var(--ad-icon-size-lg);
2665
+ min-height: var(--ad-icon-size-lg);
2666
+ vertical-align: middle;
2667
+ }
2668
+ .mantine-InputWrapper-label[data-size="md"] .mantine-ActionIcon-root svg {
2669
+ width: var(--ad-icon-size-lg);
2670
+ height: var(--ad-icon-size-lg);
2671
+ flex-shrink: 0;
2672
+ }
2673
+ .mantine-InputWrapper-label[data-size="lg"] {
2674
+ font-size: var(--ad-font-sizes-lg);
2675
+ }
2676
+ .mantine-InputWrapper-label[data-size="lg"] .mantine-Text-root {
2677
+ font-size: var(--ad-font-sizes-lg);
2678
+ }
2679
+ .mantine-InputWrapper-label[data-size="lg"] .mantine-ActionIcon-root {
2680
+ width: var(--ad-icon-size-xl);
2681
+ height: var(--ad-icon-size-xl);
2682
+ min-width: var(--ad-icon-size-xl);
2683
+ min-height: var(--ad-icon-size-xl);
2684
+ vertical-align: middle;
2685
+ }
2686
+ .mantine-InputWrapper-label[data-size="lg"] .mantine-ActionIcon-root svg {
2687
+ width: var(--ad-icon-size-xl);
2688
+ height: var(--ad-icon-size-xl);
2689
+ flex-shrink: 0;
2690
+ }
2691
+ .mantine-InputWrapper-label[data-size="xl"] {
2692
+ font-size: var(--ad-font-sizes-xl);
2693
+ }
2694
+ .mantine-InputWrapper-label[data-size="xl"] .mantine-Text-root {
2695
+ font-size: var(--ad-font-sizes-xl);
2696
+ }
2697
+ .mantine-InputWrapper-label[data-size="xl"] .mantine-ActionIcon-root {
2698
+ width: 22px;
2699
+ height: 22px;
2700
+ min-width: 22px;
2701
+ min-height: 22px;
2702
+ vertical-align: middle;
2703
+ }
2704
+ .mantine-InputWrapper-label[data-size="xl"] .mantine-ActionIcon-root svg {
2705
+ width: 22px;
2706
+ height: 22px;
2707
+ flex-shrink: 0;
2708
+ }
2709
+ .mantine-InputWrapper-description[data-size="xs"] {
2710
+ font-size: 10px;
2711
+ }
2712
+ .mantine-InputWrapper-description[data-size="sm"] {
2713
+ font-size: var(--ad-font-sizes-xs);
2714
+ }
2715
+ .mantine-InputWrapper-description[data-size="md"] {
2716
+ font-size: var(--ad-font-sizes-sm);
2717
+ }
2718
+ .mantine-InputWrapper-description[data-size="lg"] {
2719
+ font-size: var(--ad-font-sizes-md);
2720
+ }
2721
+ .mantine-InputWrapper-description[data-size="xl"] {
2722
+ font-size: var(--ad-font-sizes-lg);
2723
+ }
2724
+ .mantine-InputWrapper-error[data-size="xs"] {
2725
+ font-size: 10px;
2726
+ }
2727
+ .mantine-InputWrapper-error[data-size="sm"] {
2728
+ font-size: var(--ad-font-sizes-xs);
2729
+ }
2730
+ .mantine-InputWrapper-error[data-size="md"] {
2731
+ font-size: var(--ad-font-sizes-sm);
2732
+ }
2733
+ .mantine-InputWrapper-error[data-size="lg"] {
2734
+ font-size: var(--ad-font-sizes-md);
2735
+ }
2736
+ .mantine-InputWrapper-error[data-size="xl"] {
2737
+ font-size: var(--ad-font-sizes-lg);
2738
+ }
2597
2739
  .mantine-Input-wrapper[data-size="xs"] {
2598
2740
  --input-height: 30px;
2599
2741
  --input-fz: var(--ad-font-sizes-xs);
@@ -2604,46 +2746,46 @@
2604
2746
  }
2605
2747
  .mantine-Input-wrapper[data-size="sm"] {
2606
2748
  --input-height: 36px;
2607
- --input-fz: var(--ad-font-sizes-xs);
2749
+ --input-fz: var(--ad-font-sizes-sm);
2608
2750
  --input-padding: var(--ad-spacing-sm);
2609
2751
  }
2610
2752
  .mantine-Input-wrapper[data-size="sm"] .mantine-Input-input {
2611
- font-size: var(--ad-font-sizes-xs);
2753
+ font-size: var(--ad-font-sizes-sm);
2612
2754
  }
2613
2755
  .mantine-Input-wrapper[data-size="md"] {
2614
2756
  --input-height: 42px;
2615
- --input-fz: var(--ad-font-sizes-sm);
2757
+ --input-fz: var(--ad-font-sizes-md);
2616
2758
  --input-padding: var(--ad-spacing-md);
2617
2759
  }
2618
2760
  .mantine-Input-wrapper[data-size="md"] .mantine-Input-input {
2619
- font-size: var(--ad-font-sizes-sm);
2761
+ font-size: var(--ad-font-sizes-md);
2620
2762
  }
2621
2763
  .mantine-Input-wrapper[data-size="lg"] {
2622
2764
  --input-height: 50px;
2623
- --input-fz: var(--ad-font-sizes-md);
2765
+ --input-fz: var(--ad-font-sizes-lg);
2624
2766
  --input-padding: var(--ad-spacing-lg);
2625
2767
  }
2626
2768
  .mantine-Input-wrapper[data-size="lg"] .mantine-Input-input {
2627
- font-size: var(--ad-font-sizes-md);
2769
+ font-size: var(--ad-font-sizes-lg);
2628
2770
  }
2629
2771
  .mantine-Input-wrapper[data-size="xl"] {
2630
2772
  --input-height: 60px;
2631
- --input-fz: var(--ad-font-sizes-md);
2773
+ --input-fz: var(--ad-font-sizes-xl);
2632
2774
  --input-padding: var(--ad-spacing-xl);
2633
2775
  }
2634
2776
  .mantine-Input-wrapper[data-size="xl"] .mantine-Input-input {
2635
- font-size: var(--ad-font-sizes-md);
2777
+ font-size: var(--ad-font-sizes-xl);
2636
2778
  }
2637
2779
  .mantine-Input-wrapper[data-size="xs"] .mantine-Input-section {
2638
2780
  font-size: var(--ad-font-sizes-xs);
2639
2781
  }
2640
2782
  .mantine-Input-wrapper[data-size="xs"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
2641
- width: var(--ad-icon-size-md);
2642
- height: var(--ad-icon-size-md);
2783
+ width: var(--ad-icon-size-sm);
2784
+ height: var(--ad-icon-size-sm);
2643
2785
  flex-shrink: 0;
2644
2786
  }
2645
2787
  .mantine-Input-wrapper[data-size="sm"] .mantine-Input-section {
2646
- font-size: var(--ad-font-sizes-xs);
2788
+ font-size: var(--ad-font-sizes-sm);
2647
2789
  }
2648
2790
  .mantine-Input-wrapper[data-size="sm"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
2649
2791
  width: var(--ad-icon-size-md);
@@ -2651,7 +2793,7 @@
2651
2793
  flex-shrink: 0;
2652
2794
  }
2653
2795
  .mantine-Input-wrapper[data-size="md"] .mantine-Input-section {
2654
- font-size: var(--ad-font-sizes-sm);
2796
+ font-size: var(--ad-font-sizes-md);
2655
2797
  }
2656
2798
  .mantine-Input-wrapper[data-size="md"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
2657
2799
  width: var(--ad-icon-size-lg);
@@ -2659,7 +2801,7 @@
2659
2801
  flex-shrink: 0;
2660
2802
  }
2661
2803
  .mantine-Input-wrapper[data-size="lg"] .mantine-Input-section {
2662
- font-size: var(--ad-font-sizes-md);
2804
+ font-size: var(--ad-font-sizes-lg);
2663
2805
  }
2664
2806
  .mantine-Input-wrapper[data-size="lg"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
2665
2807
  width: var(--ad-icon-size-xl);
@@ -2667,7 +2809,7 @@
2667
2809
  flex-shrink: 0;
2668
2810
  }
2669
2811
  .mantine-Input-wrapper[data-size="xl"] .mantine-Input-section {
2670
- font-size: var(--ad-font-sizes-md);
2812
+ font-size: var(--ad-font-sizes-xl);
2671
2813
  }
2672
2814
  .mantine-Input-wrapper[data-size="xl"] .mantine-Input-section svg:not(.mantine-Combobox-chevron) {
2673
2815
  width: 22px;
@@ -2982,49 +3124,71 @@
2982
3124
  --modal-size-xl: 780px;
2983
3125
  }
2984
3126
  /* === MultiSelect === */
3127
+ .mantine-MultiSelect-input,
3128
+ .mantine-PillsInput-input {
3129
+ display: flex;
3130
+ align-items: center;
3131
+ }
3132
+ .mantine-MultiSelect-input > .mantine-PillGroup-group,
3133
+ .mantine-PillsInput-input > .mantine-PillGroup-group {
3134
+ flex: 1;
3135
+ min-width: 0;
3136
+ }
3137
+ .mantine-MultiSelect-wrapper .mantine-Pill-root,
2985
3138
  .mantine-PillsInput-root .mantine-Pill-root {
2986
3139
  background: var(--ad-color-bg-subtle);
2987
3140
  color: var(--ad-color-text-default);
2988
3141
  border-radius: 1000px;
2989
3142
  }
3143
+ .mantine-MultiSelect-wrapper .mantine-Pill-root[data-disabled],
2990
3144
  .mantine-PillsInput-root .mantine-Pill-root[data-disabled] {
2991
3145
  background: var(--ad-color-state-disabled);
2992
3146
  color: var(--ad-color-state-disabled-text);
2993
3147
  cursor: var(--ad-cursor-not-allowed);
2994
3148
  }
3149
+ .mantine-MultiSelect-wrapper[data-size="xs"] .mantine-Pill-root,
2995
3150
  .mantine-PillsInput-root[data-size="xs"] .mantine-Pill-root {
2996
3151
  height: 18px;
2997
3152
  font-size: 10px;
2998
3153
  }
2999
- .mantine-PillsInput-root[data-size="xs"] .mantine-Pill-group {
3154
+ .mantine-MultiSelect-wrapper[data-size="xs"] .mantine-PillGroup-group,
3155
+ .mantine-PillsInput-root[data-size="xs"] .mantine-PillGroup-group {
3000
3156
  gap: 6px;
3001
3157
  }
3158
+ .mantine-MultiSelect-wrapper[data-size="sm"] .mantine-Pill-root,
3002
3159
  .mantine-PillsInput-root[data-size="sm"] .mantine-Pill-root {
3003
3160
  height: 22px;
3004
3161
  font-size: 12px;
3005
3162
  }
3006
- .mantine-PillsInput-root[data-size="sm"] .mantine-Pill-group {
3163
+ .mantine-MultiSelect-wrapper[data-size="sm"] .mantine-PillGroup-group,
3164
+ .mantine-PillsInput-root[data-size="sm"] .mantine-PillGroup-group {
3007
3165
  gap: 8px;
3008
3166
  }
3167
+ .mantine-MultiSelect-wrapper[data-size="md"] .mantine-Pill-root,
3009
3168
  .mantine-PillsInput-root[data-size="md"] .mantine-Pill-root {
3010
3169
  height: 25px;
3011
3170
  font-size: 14px;
3012
3171
  }
3013
- .mantine-PillsInput-root[data-size="md"] .mantine-Pill-group {
3172
+ .mantine-MultiSelect-wrapper[data-size="md"] .mantine-PillGroup-group,
3173
+ .mantine-PillsInput-root[data-size="md"] .mantine-PillGroup-group {
3014
3174
  gap: 10px;
3015
3175
  }
3176
+ .mantine-MultiSelect-wrapper[data-size="lg"] .mantine-Pill-root,
3016
3177
  .mantine-PillsInput-root[data-size="lg"] .mantine-Pill-root {
3017
3178
  height: 28px;
3018
3179
  font-size: 16px;
3019
3180
  }
3020
- .mantine-PillsInput-root[data-size="lg"] .mantine-Pill-group {
3181
+ .mantine-MultiSelect-wrapper[data-size="lg"] .mantine-PillGroup-group,
3182
+ .mantine-PillsInput-root[data-size="lg"] .mantine-PillGroup-group {
3021
3183
  gap: 12px;
3022
3184
  }
3185
+ .mantine-MultiSelect-wrapper[data-size="xl"] .mantine-Pill-root,
3023
3186
  .mantine-PillsInput-root[data-size="xl"] .mantine-Pill-root {
3024
3187
  height: 32px;
3025
3188
  font-size: 18px;
3026
3189
  }
3027
- .mantine-PillsInput-root[data-size="xl"] .mantine-Pill-group {
3190
+ .mantine-MultiSelect-wrapper[data-size="xl"] .mantine-PillGroup-group,
3191
+ .mantine-PillsInput-root[data-size="xl"] .mantine-PillGroup-group {
3028
3192
  gap: 12px;
3029
3193
  }
3030
3194
  /* === NavLink === */