@recursica/mui-adapter 0.5.0 → 0.7.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 +15 -0
- package/SETUP.md +77 -0
- package/USAGE.md +55 -0
- package/dist/mui-adapter.cjs +74 -1
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +6863 -205
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +43 -2
- package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +6 -2
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +12 -2
- package/dist/src/components/Avatar/Avatar.d.ts +10 -3
- package/dist/src/components/Badge/Badge.d.ts +10 -3
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +9 -3
- package/dist/src/components/Button/Button.d.ts +2 -17
- package/dist/src/components/Card/Card.d.ts +38 -3
- package/dist/src/components/Checkbox/Checkbox.d.ts +13 -2
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +18 -0
- package/dist/src/components/Checkbox/index.d.ts +5 -1
- package/dist/src/components/Chip/Chip.d.ts +9 -2
- package/dist/src/components/Container/Container.d.ts +1 -5
- package/dist/src/components/DatePicker/DatePicker.d.ts +2 -1
- package/dist/src/components/Dropdown/Dropdown.d.ts +12 -2
- package/dist/src/components/Flex/Flex.d.ts +2 -22
- package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +5 -2
- package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +9 -2
- package/dist/src/components/Group/Group.d.ts +2 -7
- package/dist/src/components/HoverCard/HoverCard.d.ts +28 -2
- package/dist/src/components/Label/Label.d.ts +6 -2
- package/dist/src/components/Link/Link.d.ts +2 -6
- package/dist/src/components/Loader/Loader.d.ts +2 -7
- package/dist/src/components/Menu/Menu.d.ts +25 -3
- package/dist/src/components/Modal/Modal.d.ts +37 -2
- package/dist/src/components/NumberInput/NumberInput.d.ts +12 -2
- package/dist/src/components/Pagination/Pagination.d.ts +12 -3
- package/dist/src/components/Pagination/Pagination.icons.d.ts +8 -0
- package/dist/src/components/Panel/Panel.d.ts +52 -3
- package/dist/src/components/Radio/Radio.d.ts +13 -3
- package/dist/src/components/Radio/RadioGroup.d.ts +9 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +5 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +4 -2
- package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +5 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +8 -0
- package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +28 -0
- package/dist/src/components/ReadOnlyField/index.d.ts +1 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +21 -3
- package/dist/src/components/Slider/Slider.d.ts +18 -2
- package/dist/src/components/Stack/Stack.d.ts +2 -5
- package/dist/src/components/Stepper/Stepper.d.ts +41 -2
- package/dist/src/components/Switch/Switch.d.ts +10 -3
- package/dist/src/components/Switch/SwitchGroup.d.ts +13 -0
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +20 -3
- package/dist/src/components/Text/Text.d.ts +2 -16
- package/dist/src/components/TextArea/TextArea.d.ts +12 -2
- package/dist/src/components/TextField/TextField.d.ts +12 -2
- package/dist/src/components/TimePicker/TimePicker.d.ts +2 -1
- package/dist/src/components/Timeline/Timeline.d.ts +15 -2
- package/dist/src/components/Timeline/TimelineItem.d.ts +18 -0
- package/dist/src/components/Title/Title.d.ts +2 -15
- package/dist/src/components/Toast/Toast.d.ts +20 -2
- package/dist/src/components/Tooltip/Tooltip.d.ts +28 -3
- package/dist/src/components/TransferList/TransferList.d.ts +2 -1
- package/dist/src/components/Typography/Typography.d.ts +1 -1
- package/dist/src/utils/RequireAccessibleLabel.d.ts +1 -18
- package/dist/src/utils/filterStylingProps.d.ts +1 -11
- package/llms.txt +16 -0
- package/package.json +14 -3
- package/src/components/Accordion/Accordion.module.css +294 -56
- package/src/components/Accordion/Accordion.stories.tsx +131 -21
- package/src/components/Accordion/Accordion.tsx +260 -5
- package/src/components/AssistiveElement/AssistiveElement.module.css +114 -20
- package/src/components/AssistiveElement/AssistiveElement.stories.tsx +60 -20
- package/src/components/AssistiveElement/AssistiveElement.tsx +81 -5
- package/src/components/Autocomplete/Autocomplete.module.css +319 -42
- package/src/components/Autocomplete/Autocomplete.stories.tsx +175 -23
- package/src/components/Autocomplete/Autocomplete.tsx +181 -6
- package/src/components/Avatar/Avatar.module.css +343 -73
- package/src/components/Avatar/Avatar.stories.tsx +94 -22
- package/src/components/Avatar/Avatar.tsx +99 -6
- package/src/components/Badge/Badge.module.css +127 -29
- package/src/components/Badge/Badge.stories.tsx +65 -22
- package/src/components/Badge/Badge.tsx +67 -6
- package/src/components/Breadcrumb/Breadcrumb.module.css +25 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +57 -22
- package/src/components/Breadcrumb/Breadcrumb.tsx +59 -6
- package/src/components/Button/Button.module.css +19 -61
- package/src/components/Button/Button.stories.tsx +24 -23
- package/src/components/Button/Button.tsx +7 -18
- package/src/components/Card/Card.module.css +154 -38
- package/src/components/Card/Card.stories.tsx +117 -19
- package/src/components/Card/Card.tsx +181 -5
- package/src/components/Checkbox/Checkbox.module.css +249 -39
- package/src/components/Checkbox/Checkbox.stories.tsx +81 -19
- package/src/components/Checkbox/Checkbox.tsx +246 -5
- package/src/components/Checkbox/CheckboxGroup.stories.tsx +139 -0
- package/src/components/Checkbox/CheckboxGroup.tsx +137 -0
- package/src/components/Checkbox/index.ts +6 -1
- package/src/components/Chip/Chip.module.css +246 -43
- package/src/components/Chip/Chip.stories.tsx +101 -21
- package/src/components/Chip/Chip.tsx +136 -6
- package/src/components/Container/Container.stories.tsx +103 -20
- package/src/components/Container/Container.tsx +1 -13
- package/src/components/DatePicker/DatePicker.stories.tsx +125 -19
- package/src/components/DatePicker/DatePicker.tsx +3 -1
- package/src/components/Dropdown/Dropdown.module.css +291 -41
- package/src/components/Dropdown/Dropdown.stories.tsx +80 -21
- package/src/components/Dropdown/Dropdown.tsx +180 -6
- package/src/components/FileInput/FileInput.stories.tsx +2 -19
- package/src/components/FileUpload/FileUpload.stories.tsx +2 -19
- package/src/components/Flex/Flex.stories.tsx +113 -20
- package/src/components/Flex/Flex.tsx +16 -26
- package/src/components/FormControlLayout/FormControlLayout.module.css +92 -0
- package/src/components/FormControlLayout/FormControlLayout.stories.tsx +67 -20
- package/src/components/FormControlLayout/FormControlLayout.tsx +69 -4
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +87 -0
- package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +116 -22
- package/src/components/FormControlWrapper/FormControlWrapper.tsx +126 -6
- package/src/components/Group/Group.stories.tsx +6 -30
- package/src/components/Group/Group.tsx +14 -9
- package/src/components/HoverCard/HoverCard.module.css +90 -22
- package/src/components/HoverCard/HoverCard.stories.tsx +158 -21
- package/src/components/HoverCard/HoverCard.tsx +147 -5
- package/src/components/Label/Label.module.css +140 -35
- package/src/components/Label/Label.stories.tsx +108 -21
- package/src/components/Label/Label.tsx +82 -5
- package/src/components/Link/Link.module.css +4 -3
- package/src/components/Link/Link.stories.tsx +2 -8
- package/src/components/Link/Link.tsx +1 -5
- package/src/components/Loader/Loader.module.css +1 -2
- package/src/components/Loader/Loader.tsx +1 -7
- package/src/components/Menu/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Menu/Menu.module.css +285 -51
- package/src/components/Menu/Menu.stories.tsx +229 -25
- package/src/components/Menu/Menu.tsx +73 -6
- package/src/components/Modal/Modal.module.css +171 -35
- package/src/components/Modal/Modal.stories.tsx +66 -22
- package/src/components/Modal/Modal.tsx +215 -5
- package/src/components/NumberInput/NumberInput.module.css +276 -42
- package/src/components/NumberInput/NumberInput.stories.tsx +83 -20
- package/src/components/NumberInput/NumberInput.tsx +136 -6
- package/src/components/Pagination/IMPLEMENTATION_NOTES.md +3 -0
- package/src/components/Pagination/Pagination.icons.tsx +66 -0
- package/src/components/Pagination/Pagination.module.css +234 -20
- package/src/components/Pagination/Pagination.stories.tsx +34 -21
- package/src/components/Pagination/Pagination.tsx +74 -6
- package/src/components/Panel/Panel.module.css +206 -38
- package/src/components/Panel/Panel.stories.tsx +214 -22
- package/src/components/Panel/Panel.tsx +130 -5
- package/src/components/Radio/Radio.module.css +235 -37
- package/src/components/Radio/Radio.stories.tsx +77 -19
- package/src/components/Radio/Radio.tsx +210 -5
- package/src/components/Radio/RadioGroup.stories.tsx +117 -0
- package/src/components/Radio/RadioGroup.tsx +125 -0
- package/src/components/ReadOnlyField/ReadOnlyBooleanField.tsx +21 -0
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +53 -15
- package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +147 -19
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +105 -5
- package/src/components/ReadOnlyField/ReadOnlySwitchField.tsx +21 -0
- package/src/components/ReadOnlyField/ReadOnlyTextField.tsx +48 -0
- package/src/components/ReadOnlyField/WithReadOnlyWrapper.tsx +93 -0
- package/src/components/ReadOnlyField/index.ts +1 -0
- package/src/components/SegmentedControl/SegmentedControl.module.css +179 -47
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +102 -20
- package/src/components/SegmentedControl/SegmentedControl.tsx +140 -6
- package/src/components/Slider/Slider.module.css +539 -86
- package/src/components/Slider/Slider.stories.tsx +157 -19
- package/src/components/Slider/Slider.tsx +283 -5
- package/src/components/Stack/Stack.stories.tsx +4 -25
- package/src/components/Stack/Stack.tsx +1 -5
- package/src/components/Stepper/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Stepper/Stepper.module.css +410 -71
- package/src/components/Stepper/Stepper.stories.tsx +146 -20
- package/src/components/Stepper/Stepper.tsx +147 -6
- package/src/components/Switch/Switch.module.css +259 -39
- package/src/components/Switch/Switch.stories.tsx +98 -19
- package/src/components/Switch/Switch.tsx +200 -6
- package/src/components/Switch/SwitchGroup.stories.tsx +132 -0
- package/src/components/Switch/SwitchGroup.tsx +120 -0
- package/src/components/Table/Table.stories.tsx +1 -19
- package/src/components/Table/Table.tsx +3 -1
- package/src/components/Tabs/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Tabs/Tabs.module.css +422 -79
- package/src/components/Tabs/Tabs.stories.tsx +156 -20
- package/src/components/Tabs/Tabs.tsx +86 -6
- package/src/components/Text/Text.stories.tsx +5 -17
- package/src/components/Text/Text.tsx +1 -15
- package/src/components/TextArea/TextArea.module.css +155 -32
- package/src/components/TextArea/TextArea.stories.tsx +80 -21
- package/src/components/TextArea/TextArea.tsx +146 -6
- package/src/components/TextField/TextField.module.css +261 -42
- package/src/components/TextField/TextField.stories.tsx +147 -20
- package/src/components/TextField/TextField.tsx +169 -6
- package/src/components/TimePicker/TimePicker.stories.tsx +2 -19
- package/src/components/TimePicker/TimePicker.tsx +3 -1
- package/src/components/Timeline/Timeline.module.css +365 -76
- package/src/components/Timeline/Timeline.stories.tsx +114 -21
- package/src/components/Timeline/Timeline.tsx +83 -5
- package/src/components/Timeline/TimelineItem.tsx +90 -0
- package/src/components/Title/Title.stories.tsx +0 -18
- package/src/components/Title/Title.tsx +1 -7
- package/src/components/Toast/Toast.module.css +166 -28
- package/src/components/Toast/Toast.stories.tsx +54 -22
- package/src/components/Toast/Toast.tsx +124 -5
- package/src/components/Tooltip/Tooltip.module.css +89 -24
- package/src/components/Tooltip/Tooltip.stories.tsx +152 -22
- package/src/components/Tooltip/Tooltip.tsx +88 -5
- package/src/components/TransferList/TransferList.stories.tsx +1 -19
- package/src/components/TransferList/TransferList.tsx +3 -1
- package/src/utils/RequireAccessibleLabel.ts +1 -12
- package/src/utils/filterStylingProps.ts +7 -20
|
@@ -1,79 +1,422 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
/*
|
|
2
|
+
Recursica Tabs CSS module natively binding to Figma variables.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.root {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
Mantine Tabs Anatomy:
|
|
11
|
+
.root
|
|
12
|
+
.list (container for tabs)
|
|
13
|
+
.tab (individual tab)
|
|
14
|
+
.panel (content)
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* ---------------------------------
|
|
18
|
+
ORIENTATION & SPACING
|
|
19
|
+
--------------------------------- */
|
|
20
|
+
|
|
21
|
+
/* Horizontal Orientation */
|
|
22
|
+
.root[data-orientation="horizontal"] {
|
|
23
|
+
--tabs-element-gap: var(
|
|
24
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_element-gap
|
|
25
|
+
);
|
|
26
|
+
--tabs-horizontal-padding: var(
|
|
27
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_horizontal-padding
|
|
28
|
+
);
|
|
29
|
+
--tabs-icon-size: var(
|
|
30
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_icon-size
|
|
31
|
+
);
|
|
32
|
+
--tabs-space-between-tabs: var(
|
|
33
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_space-between-tabs
|
|
34
|
+
);
|
|
35
|
+
--tabs-vertical-padding: var(
|
|
36
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_vertical-padding
|
|
37
|
+
);
|
|
38
|
+
--tabs-content-alignment: var(
|
|
39
|
+
--recursica_ui-kit_components_tabs_variants_orientation_horizontal_properties_tab-content-alignment
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.root[data-orientation="horizontal"] .list {
|
|
44
|
+
gap: var(--tabs-space-between-tabs);
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Vertical Orientation */
|
|
49
|
+
.root[data-orientation="vertical"] {
|
|
50
|
+
--tabs-element-gap: var(
|
|
51
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_element-gap
|
|
52
|
+
);
|
|
53
|
+
--tabs-horizontal-padding: var(
|
|
54
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_horizontal-padding
|
|
55
|
+
);
|
|
56
|
+
--tabs-icon-size: var(
|
|
57
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_icon-size
|
|
58
|
+
);
|
|
59
|
+
--tabs-space-between-tabs: var(
|
|
60
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_space-between-tabs
|
|
61
|
+
);
|
|
62
|
+
--tabs-vertical-padding: var(
|
|
63
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_vertical-padding
|
|
64
|
+
);
|
|
65
|
+
--tabs-content-alignment: var(
|
|
66
|
+
--recursica_ui-kit_components_tabs_variants_orientation_vertical_properties_tab-content-alignment
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.root[data-orientation="vertical"] .list {
|
|
71
|
+
gap: var(--tabs-space-between-tabs);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ---------------------------------
|
|
75
|
+
VARIANTS
|
|
76
|
+
--------------------------------- */
|
|
77
|
+
|
|
78
|
+
.root[data-variant="default"][data-orientation] {
|
|
79
|
+
--tabs-active-border-size: var(
|
|
80
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_active_border-size
|
|
81
|
+
) !important;
|
|
82
|
+
--tabs-inactive-border-size: var(
|
|
83
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_inactive_border-size
|
|
84
|
+
) !important;
|
|
85
|
+
--tabs-border-radius: var(
|
|
86
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_border-radius
|
|
87
|
+
) !important;
|
|
88
|
+
--tabs-border-color: var(
|
|
89
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_inactive_colors_border-color
|
|
90
|
+
) !important;
|
|
91
|
+
--tabs-color: var(
|
|
92
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_active_colors_border-color
|
|
93
|
+
) !important;
|
|
94
|
+
--tabs-hover-color: var(
|
|
95
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_hover-color
|
|
96
|
+
);
|
|
97
|
+
--tabs-hover-opacity: var(
|
|
98
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_hover-opacity
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.root[data-variant="default"][data-orientation="horizontal"] .list {
|
|
103
|
+
margin-bottom: var(
|
|
104
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_variants_orientation_horizontal_properties_tabs-content-gap
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.root[data-variant="default"][data-orientation="vertical"] .list {
|
|
109
|
+
margin-right: var(
|
|
110
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_variants_orientation_vertical_properties_tabs-content-gap
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Outline Variant */
|
|
115
|
+
.root[data-variant="outline"][data-orientation] {
|
|
116
|
+
--tabs-active-border-size: var(
|
|
117
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_active_border-size
|
|
118
|
+
) !important;
|
|
119
|
+
--tabs-inactive-border-size: var(
|
|
120
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_inactive_border-size
|
|
121
|
+
) !important;
|
|
122
|
+
--tabs-border-radius: var(
|
|
123
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_border-radius
|
|
124
|
+
) !important;
|
|
125
|
+
--tabs-border-color: var(
|
|
126
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_inactive_colors_border-color
|
|
127
|
+
) !important;
|
|
128
|
+
--tabs-color: var(
|
|
129
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_active_colors_border-color
|
|
130
|
+
) !important;
|
|
131
|
+
--tabs-hover-color: var(
|
|
132
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_hover-color
|
|
133
|
+
);
|
|
134
|
+
--tabs-hover-opacity: var(
|
|
135
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_hover-opacity
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.root[data-variant="outline"][data-orientation="horizontal"] .list {
|
|
140
|
+
margin-bottom: var(
|
|
141
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_variants_orientation_horizontal_properties_tabs-content-gap
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.root[data-variant="outline"][data-orientation="vertical"] .list {
|
|
146
|
+
margin-right: var(
|
|
147
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_variants_orientation_vertical_properties_tabs-content-gap
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Pills Variant */
|
|
152
|
+
.root[data-variant="pills"][data-orientation] {
|
|
153
|
+
--tabs-active-border-size: var(
|
|
154
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_active_border-size
|
|
155
|
+
);
|
|
156
|
+
--tabs-inactive-border-size: var(
|
|
157
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_inactive_border-size
|
|
158
|
+
);
|
|
159
|
+
--tabs-border-radius: var(
|
|
160
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_border-radius
|
|
161
|
+
);
|
|
162
|
+
--tabs-hover-color: var(
|
|
163
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_hover-color
|
|
164
|
+
);
|
|
165
|
+
--tabs-hover-opacity: var(
|
|
166
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_hover-opacity
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.root[data-variant="pills"][data-orientation="horizontal"] .list {
|
|
171
|
+
margin-bottom: var(
|
|
172
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_variants_orientation_horizontal_properties_tabs-content-gap
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.root[data-variant="pills"][data-orientation="vertical"] .list {
|
|
177
|
+
margin-right: var(
|
|
178
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_variants_orientation_vertical_properties_tabs-content-gap
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ---------------------------------
|
|
183
|
+
TAB ELEMENT
|
|
184
|
+
--------------------------------- */
|
|
185
|
+
.root .tab {
|
|
186
|
+
min-width: var(--recursica_ui-kit_components_tabs_properties_min-width);
|
|
187
|
+
max-width: var(--recursica_ui-kit_components_tabs_properties_max-width);
|
|
188
|
+
padding: var(--tabs-vertical-padding) var(--tabs-horizontal-padding);
|
|
189
|
+
gap: var(--tabs-element-gap);
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: var(--tabs-content-alignment);
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
position: relative;
|
|
195
|
+
|
|
196
|
+
/* Typography (Inactive by default) */
|
|
197
|
+
font-family: var(
|
|
198
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_font-family
|
|
199
|
+
);
|
|
200
|
+
font-size: var(
|
|
201
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_font-size
|
|
202
|
+
);
|
|
203
|
+
font-style: var(
|
|
204
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_font-style
|
|
205
|
+
);
|
|
206
|
+
font-weight: var(
|
|
207
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_font-weight
|
|
208
|
+
);
|
|
209
|
+
letter-spacing: var(
|
|
210
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_letter-spacing
|
|
211
|
+
);
|
|
212
|
+
line-height: var(
|
|
213
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_line-height
|
|
214
|
+
);
|
|
215
|
+
text-decoration: var(
|
|
216
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_text-decoration
|
|
217
|
+
);
|
|
218
|
+
text-transform: var(
|
|
219
|
+
--recursica_ui-kit_components_tabs_properties_inactive-text_text-transform
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Hover effect (moved to bottom for specificity, see end of file) */
|
|
224
|
+
|
|
225
|
+
.root .tab[data-active] {
|
|
226
|
+
font-family: var(
|
|
227
|
+
--recursica_ui-kit_components_tabs_properties_active-text_font-family
|
|
228
|
+
);
|
|
229
|
+
font-size: var(
|
|
230
|
+
--recursica_ui-kit_components_tabs_properties_active-text_font-size
|
|
231
|
+
);
|
|
232
|
+
font-style: var(
|
|
233
|
+
--recursica_ui-kit_components_tabs_properties_active-text_font-style
|
|
234
|
+
);
|
|
235
|
+
font-weight: var(
|
|
236
|
+
--recursica_ui-kit_components_tabs_properties_active-text_font-weight
|
|
237
|
+
);
|
|
238
|
+
letter-spacing: var(
|
|
239
|
+
--recursica_ui-kit_components_tabs_properties_active-text_letter-spacing
|
|
240
|
+
);
|
|
241
|
+
line-height: var(
|
|
242
|
+
--recursica_ui-kit_components_tabs_properties_active-text_line-height
|
|
243
|
+
);
|
|
244
|
+
text-decoration: var(
|
|
245
|
+
--recursica_ui-kit_components_tabs_properties_active-text_text-decoration
|
|
246
|
+
);
|
|
247
|
+
text-transform: var(
|
|
248
|
+
--recursica_ui-kit_components_tabs_properties_active-text_text-transform
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* Icon support */
|
|
253
|
+
.root .tab svg {
|
|
254
|
+
width: var(--tabs-icon-size);
|
|
255
|
+
height: var(--tabs-icon-size);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Disabled State */
|
|
259
|
+
.root .tab[data-disabled] {
|
|
260
|
+
opacity: var(--recursica_brand_states_disabled);
|
|
261
|
+
cursor: not-allowed;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* ---------------------------------
|
|
265
|
+
COLORS
|
|
266
|
+
Because colors are defined per-layer and theme via generic variable structures,
|
|
267
|
+
we rely on Mantine injecting the correct data-variant attributes, but we must
|
|
268
|
+
map the colors in our CSS. Recursica handles dark/light automatically via root.
|
|
269
|
+
--------------------------------- */
|
|
270
|
+
|
|
271
|
+
/* ---------------------------------
|
|
272
|
+
BORDER RADIUS GEOMETRY
|
|
273
|
+
--------------------------------- */
|
|
274
|
+
|
|
275
|
+
/* Pills get full radius on all sides */
|
|
276
|
+
.root[data-variant="pills"] .tab {
|
|
277
|
+
border-radius: var(--tabs-border-radius);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* Default & Outline Horizontal get top radius only so they sit flush on the panel */
|
|
281
|
+
.root[data-variant="default"][data-orientation="horizontal"]:not(
|
|
282
|
+
[data-inverted]
|
|
283
|
+
)
|
|
284
|
+
.tab,
|
|
285
|
+
.root[data-variant="outline"][data-orientation="horizontal"]:not(
|
|
286
|
+
[data-inverted]
|
|
287
|
+
)
|
|
288
|
+
.tab {
|
|
289
|
+
border-radius: var(--tabs-border-radius) var(--tabs-border-radius) 0 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* Inverted horizontal tabs hang downwards, so bottom corners are rounded */
|
|
293
|
+
.root[data-variant="default"][data-orientation="horizontal"][data-inverted]
|
|
294
|
+
.tab,
|
|
295
|
+
.root[data-variant="outline"][data-orientation="horizontal"][data-inverted]
|
|
296
|
+
.tab {
|
|
297
|
+
border-radius: 0 0 var(--tabs-border-radius) var(--tabs-border-radius);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* Default & Outline Vertical get left radius only so they sit flush against the right-side panel */
|
|
301
|
+
.root[data-variant="default"][data-orientation="vertical"] .tab,
|
|
302
|
+
.root[data-variant="outline"][data-orientation="vertical"] .tab {
|
|
303
|
+
border-radius: var(--tabs-border-radius) 0 0 var(--tabs-border-radius);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* Default Variant Colors */
|
|
307
|
+
.root[data-variant="default"] .tab {
|
|
308
|
+
background-color: var(
|
|
309
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_inactive_colors_background
|
|
310
|
+
);
|
|
311
|
+
color: var(
|
|
312
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_inactive_colors_text-color
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
.root[data-variant="default"] .tab svg {
|
|
316
|
+
color: var(
|
|
317
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_inactive_colors_icon-color
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.root[data-variant="default"] .tab[data-active] {
|
|
322
|
+
background-color: var(
|
|
323
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_active_colors_background
|
|
324
|
+
);
|
|
325
|
+
color: var(
|
|
326
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_active_colors_text-color
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
.root[data-variant="default"] .tab[data-active] svg {
|
|
330
|
+
color: var(
|
|
331
|
+
--recursica_ui-kit_components_tabs_variants_styles_default_properties_active_colors_icon-color
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* Outline Variant Colors */
|
|
336
|
+
.root[data-variant="outline"] .tab {
|
|
337
|
+
background-color: var(
|
|
338
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_inactive_colors_background
|
|
339
|
+
);
|
|
340
|
+
color: var(
|
|
341
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_inactive_colors_text-color
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
.root[data-variant="outline"] .tab svg {
|
|
345
|
+
color: var(
|
|
346
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_inactive_colors_icon-color
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.root[data-variant="outline"] .tab[data-active] {
|
|
351
|
+
background-color: var(
|
|
352
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_active_colors_background
|
|
353
|
+
);
|
|
354
|
+
color: var(
|
|
355
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_active_colors_text-color
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
.root[data-variant="outline"] .tab[data-active] svg {
|
|
359
|
+
color: var(
|
|
360
|
+
--recursica_ui-kit_components_tabs_variants_styles_outline_properties_active_colors_icon-color
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* Pills Variant Colors */
|
|
365
|
+
.root[data-variant="pills"] .tab {
|
|
366
|
+
background-color: var(
|
|
367
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_inactive_colors_background
|
|
368
|
+
);
|
|
369
|
+
color: var(
|
|
370
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_inactive_colors_text-color
|
|
371
|
+
);
|
|
372
|
+
border: var(--tabs-inactive-border-size) solid
|
|
373
|
+
var(
|
|
374
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_inactive_colors_border-color
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
.root[data-variant="pills"] .tab svg {
|
|
378
|
+
color: var(
|
|
379
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_inactive_colors_icon-color
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.root[data-variant="pills"] .tab[data-active] {
|
|
384
|
+
background-color: var(
|
|
385
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_active_colors_background
|
|
386
|
+
);
|
|
387
|
+
color: var(
|
|
388
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_active_colors_text-color
|
|
389
|
+
);
|
|
390
|
+
border: var(--tabs-active-border-size) solid
|
|
391
|
+
var(
|
|
392
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_active_colors_border-color
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
.root[data-variant="pills"] .tab[data-active] svg {
|
|
396
|
+
color: var(
|
|
397
|
+
--recursica_ui-kit_components_tabs_variants_styles_pills_properties_active_colors_icon-color
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* Content panel */
|
|
402
|
+
.root .panel {
|
|
403
|
+
/* Recursica doesn't define panel colors intrinsically, leaves it to child content */
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Hover state uses a pseudo-element to apply opacity to the background without fading the text */
|
|
407
|
+
.root[data-variant] .tab:not([data-active]):hover::before {
|
|
408
|
+
content: "";
|
|
409
|
+
position: absolute;
|
|
410
|
+
inset: 0;
|
|
411
|
+
border-radius: inherit;
|
|
412
|
+
background-color: var(--tabs-hover-color);
|
|
413
|
+
opacity: var(--tabs-hover-opacity);
|
|
414
|
+
pointer-events: none;
|
|
415
|
+
z-index: 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* Ensure tab content sits above the hover background */
|
|
419
|
+
.root .tab > * {
|
|
420
|
+
z-index: 1;
|
|
421
|
+
position: relative;
|
|
422
|
+
}
|