@auronui/styles 1.2.2 → 1.3.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/components/context-menu.css +44 -0
- package/components/editable.css +136 -0
- package/components/hover-card.css +68 -0
- package/components/index.css +8 -0
- package/components/input.css +53 -10
- package/components/menubar.css +80 -0
- package/components/month-range-picker.css +154 -0
- package/components/navigation-menu.css +144 -0
- package/components/time-range-field.css +543 -0
- package/components/year-range-picker.css +155 -0
- package/dist/components/context-menu/context-menu.styles.d.ts +40 -0
- package/dist/components/context-menu/context-menu.styles.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.styles.js +11 -0
- package/dist/components/context-menu/context-menu.styles.js.map +1 -0
- package/dist/components/context-menu/index.d.ts +2 -0
- package/dist/components/context-menu/index.d.ts.map +1 -0
- package/dist/components/context-menu/index.js +2 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +3 -3
- package/dist/components/editable/editable.styles.d.ts +85 -0
- package/dist/components/editable/editable.styles.d.ts.map +1 -0
- package/dist/components/editable/editable.styles.js +15 -0
- package/dist/components/editable/editable.styles.js.map +1 -0
- package/dist/components/editable/index.d.ts +2 -0
- package/dist/components/editable/index.d.ts.map +1 -0
- package/dist/components/editable/index.js +2 -0
- package/dist/components/hover-card/hover-card.styles.d.ts +34 -0
- package/dist/components/hover-card/hover-card.styles.d.ts.map +1 -0
- package/dist/components/hover-card/hover-card.styles.js +10 -0
- package/dist/components/hover-card/hover-card.styles.js.map +1 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hover-card/index.d.ts.map +1 -0
- package/dist/components/hover-card/index.js +2 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/menubar/index.d.ts +2 -0
- package/dist/components/menubar/index.d.ts.map +1 -0
- package/dist/components/menubar/index.js +2 -0
- package/dist/components/menubar/menubar.styles.d.ts +40 -0
- package/dist/components/menubar/menubar.styles.d.ts.map +1 -0
- package/dist/components/menubar/menubar.styles.js +11 -0
- package/dist/components/menubar/menubar.styles.js.map +1 -0
- package/dist/components/month-range-picker/index.d.ts +2 -0
- package/dist/components/month-range-picker/index.d.ts.map +1 -0
- package/dist/components/month-range-picker/index.js +2 -0
- package/dist/components/month-range-picker/month-range-picker.styles.d.ts +61 -0
- package/dist/components/month-range-picker/month-range-picker.styles.d.ts.map +1 -0
- package/dist/components/month-range-picker/month-range-picker.styles.js +21 -0
- package/dist/components/month-range-picker/month-range-picker.styles.js.map +1 -0
- package/dist/components/navigation-menu/index.d.ts +2 -0
- package/dist/components/navigation-menu/index.d.ts.map +1 -0
- package/dist/components/navigation-menu/index.js +2 -0
- package/dist/components/navigation-menu/navigation-menu.styles.d.ts +76 -0
- package/dist/components/navigation-menu/navigation-menu.styles.d.ts.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.styles.js +17 -0
- package/dist/components/navigation-menu/navigation-menu.styles.js.map +1 -0
- package/dist/components/time-range-field/index.d.ts +2 -0
- package/dist/components/time-range-field/index.d.ts.map +1 -0
- package/dist/components/time-range-field/index.js +2 -0
- package/dist/components/time-range-field/time-range-field.styles.d.ts +310 -0
- package/dist/components/time-range-field/time-range-field.styles.d.ts.map +1 -0
- package/dist/components/time-range-field/time-range-field.styles.js +94 -0
- package/dist/components/time-range-field/time-range-field.styles.js.map +1 -0
- package/dist/components/year-range-picker/index.d.ts +2 -0
- package/dist/components/year-range-picker/index.d.ts.map +1 -0
- package/dist/components/year-range-picker/index.js +2 -0
- package/dist/components/year-range-picker/year-range-picker.styles.d.ts +61 -0
- package/dist/components/year-range-picker/year-range-picker.styles.d.ts.map +1 -0
- package/dist/components/year-range-picker/year-range-picker.styles.js +21 -0
- package/dist/components/year-range-picker/year-range-picker.styles.js.map +1 -0
- package/dist/index.js +9 -1
- package/package.json +33 -1
- package/src/components/context-menu/context-menu.styles.ts +13 -0
- package/src/components/context-menu/index.ts +1 -0
- package/src/components/editable/editable.styles.ts +24 -0
- package/src/components/editable/index.ts +1 -0
- package/src/components/hover-card/hover-card.styles.ts +12 -0
- package/src/components/hover-card/index.ts +1 -0
- package/src/components/index.ts +8 -0
- package/src/components/menubar/index.ts +1 -0
- package/src/components/menubar/menubar.styles.ts +13 -0
- package/src/components/month-range-picker/index.ts +1 -0
- package/src/components/month-range-picker/month-range-picker.styles.ts +30 -0
- package/src/components/navigation-menu/index.ts +1 -0
- package/src/components/navigation-menu/navigation-menu.styles.ts +19 -0
- package/src/components/time-range-field/index.ts +1 -0
- package/src/components/time-range-field/time-range-field.styles.ts +87 -0
- package/src/components/year-range-picker/index.ts +1 -0
- package/src/components/year-range-picker/year-range-picker.styles.ts +30 -0
package/dist/index.js
CHANGED
|
@@ -10,6 +10,8 @@ import { buttonVariants } from "./components/button/button.styles.js";
|
|
|
10
10
|
import { buttonGroupVariants } from "./components/button-group/button-group.styles.js";
|
|
11
11
|
import { calendarVariants } from "./components/calendar/calendar.styles.js";
|
|
12
12
|
import { calendarYearPickerVariants } from "./components/calendar-year-picker/calendar-year-picker.styles.js";
|
|
13
|
+
import { monthRangePickerVariants } from "./components/month-range-picker/month-range-picker.styles.js";
|
|
14
|
+
import { yearRangePickerVariants } from "./components/year-range-picker/year-range-picker.styles.js";
|
|
13
15
|
import { rangeCalendarVariants } from "./components/range-calendar/range-calendar.styles.js";
|
|
14
16
|
import { cardVariants } from "./components/card/card.styles.js";
|
|
15
17
|
import { checkboxVariants } from "./components/checkbox/checkbox.styles.js";
|
|
@@ -24,6 +26,9 @@ import { colorSwatchVariants } from "./components/color-swatch/color-swatch.styl
|
|
|
24
26
|
import { closeButtonVariants } from "./components/close-button/close-button.styles.js";
|
|
25
27
|
import { colorSwatchPickerVariants } from "./components/color-swatch-picker/color-swatch-picker.styles.js";
|
|
26
28
|
import { comboBoxVariants } from "./components/combo-box/combo-box.styles.js";
|
|
29
|
+
import { contextMenuVariants } from "./components/context-menu/context-menu.styles.js";
|
|
30
|
+
import { menubarVariants } from "./components/menubar/menubar.styles.js";
|
|
31
|
+
import { navigationMenuVariants } from "./components/navigation-menu/navigation-menu.styles.js";
|
|
27
32
|
import { dateInputVariants } from "./components/date-input/date-input.styles.js";
|
|
28
33
|
import { datePickerVariants } from "./components/date-picker/date-picker.styles.js";
|
|
29
34
|
import { dateRangeFieldVariants } from "./components/date-range-field/date-range-field.styles.js";
|
|
@@ -34,10 +39,12 @@ import { drawerVariants } from "./components/drawer/drawer.styles.js";
|
|
|
34
39
|
import { collapsibleVariants } from "./components/collapsible/collapsible.styles.js";
|
|
35
40
|
import { collapsibleGroupVariants } from "./components/collapsible-group/collapsible-group.styles.js";
|
|
36
41
|
import { dropdownVariants } from "./components/dropdown/dropdown.styles.js";
|
|
42
|
+
import { editableVariants } from "./components/editable/editable.styles.js";
|
|
37
43
|
import { emptyStateVariants } from "./components/empty-state/empty-state.styles.js";
|
|
38
44
|
import { errorMessageVariants } from "./components/error-message/error-message.styles.js";
|
|
39
45
|
import { fieldsetVariants } from "./components/fieldset/fieldset.styles.js";
|
|
40
46
|
import { headerVariants } from "./components/header/header.styles.js";
|
|
47
|
+
import { hoverCardVariants } from "./components/hover-card/hover-card.styles.js";
|
|
41
48
|
import { inputVariants } from "./components/input/input.styles.js";
|
|
42
49
|
import { inputOTPVariants } from "./components/input-otp/input-otp.styles.js";
|
|
43
50
|
import { kbdVariants } from "./components/kbd/kbd.styles.js";
|
|
@@ -72,6 +79,7 @@ import { tabsVariants } from "./components/tabs/tabs.styles.js";
|
|
|
72
79
|
import { textVariants } from "./components/text/text.styles.js";
|
|
73
80
|
import { textAreaVariants } from "./components/textarea/textarea.styles.js";
|
|
74
81
|
import { timeFieldVariants } from "./components/time-field/time-field.styles.js";
|
|
82
|
+
import { timeRangeFieldVariants } from "./components/time-range-field/time-range-field.styles.js";
|
|
75
83
|
import { toastVariants } from "./components/toast/toast.styles.js";
|
|
76
84
|
import { toggleButtonVariants } from "./components/toggle-button/toggle-button.styles.js";
|
|
77
85
|
import { toggleButtonGroupVariants } from "./components/toggle-button-group/toggle-button-group.styles.js";
|
|
@@ -81,4 +89,4 @@ import { aspectRatioVariants } from "./components/aspect-ratio/aspect-ratio.styl
|
|
|
81
89
|
import { splitterVariants } from "./components/splitter/splitter.styles.js";
|
|
82
90
|
import { stepperVariants } from "./components/stepper/stepper.styles.js";
|
|
83
91
|
import { treeVariants } from "./components/tree/tree.styles.js";
|
|
84
|
-
export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, aspectRatioVariants, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, collapsibleGroupVariants, collapsibleVariants, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, dateInputVariants, datePickerVariants, dateRangeFieldVariants, dateRangePickerVariants, dateTimePickerVariants, descriptionVariants, disabledClasses, drawerVariants, dropdownVariants, emptyStateVariants, errorMessageVariants, fieldsetVariants, focusRingClasses, headerVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, meterVariants, modalVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, selectVariants, separatorVariants, skeletonVariants, sliderVariants, spinnerVariants, splitterVariants, stepperVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, textAreaVariants, textVariants, timeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, treeVariants };
|
|
92
|
+
export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, aspectRatioVariants, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, collapsibleGroupVariants, collapsibleVariants, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, contextMenuVariants, dateInputVariants, datePickerVariants, dateRangeFieldVariants, dateRangePickerVariants, dateTimePickerVariants, descriptionVariants, disabledClasses, drawerVariants, dropdownVariants, editableVariants, emptyStateVariants, errorMessageVariants, fieldsetVariants, focusRingClasses, headerVariants, hoverCardVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, menubarVariants, meterVariants, modalVariants, monthRangePickerVariants, navigationMenuVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, selectVariants, separatorVariants, skeletonVariants, sliderVariants, spinnerVariants, splitterVariants, stepperVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, textAreaVariants, textVariants, timeFieldVariants, timeRangeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, treeVariants, yearRangePickerVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auronui/styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Auron core styles — adapted for Reka UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,6 +94,14 @@
|
|
|
94
94
|
"style": "./components/calendar-year-picker.css",
|
|
95
95
|
"default": "./components/calendar-year-picker.css"
|
|
96
96
|
},
|
|
97
|
+
"./month-range-picker.css": {
|
|
98
|
+
"style": "./components/month-range-picker.css",
|
|
99
|
+
"default": "./components/month-range-picker.css"
|
|
100
|
+
},
|
|
101
|
+
"./year-range-picker.css": {
|
|
102
|
+
"style": "./components/year-range-picker.css",
|
|
103
|
+
"default": "./components/year-range-picker.css"
|
|
104
|
+
},
|
|
97
105
|
"./card.css": {
|
|
98
106
|
"style": "./components/card.css",
|
|
99
107
|
"default": "./components/card.css"
|
|
@@ -174,10 +182,26 @@
|
|
|
174
182
|
"style": "./components/drawer.css",
|
|
175
183
|
"default": "./components/drawer.css"
|
|
176
184
|
},
|
|
185
|
+
"./context-menu.css": {
|
|
186
|
+
"style": "./components/context-menu.css",
|
|
187
|
+
"default": "./components/context-menu.css"
|
|
188
|
+
},
|
|
189
|
+
"./menubar.css": {
|
|
190
|
+
"style": "./components/menubar.css",
|
|
191
|
+
"default": "./components/menubar.css"
|
|
192
|
+
},
|
|
193
|
+
"./navigation-menu.css": {
|
|
194
|
+
"style": "./components/navigation-menu.css",
|
|
195
|
+
"default": "./components/navigation-menu.css"
|
|
196
|
+
},
|
|
177
197
|
"./dropdown.css": {
|
|
178
198
|
"style": "./components/dropdown.css",
|
|
179
199
|
"default": "./components/dropdown.css"
|
|
180
200
|
},
|
|
201
|
+
"./editable.css": {
|
|
202
|
+
"style": "./components/editable.css",
|
|
203
|
+
"default": "./components/editable.css"
|
|
204
|
+
},
|
|
181
205
|
"./empty-state.css": {
|
|
182
206
|
"style": "./components/empty-state.css",
|
|
183
207
|
"default": "./components/empty-state.css"
|
|
@@ -194,6 +218,10 @@
|
|
|
194
218
|
"style": "./components/header.css",
|
|
195
219
|
"default": "./components/header.css"
|
|
196
220
|
},
|
|
221
|
+
"./hover-card.css": {
|
|
222
|
+
"style": "./components/hover-card.css",
|
|
223
|
+
"default": "./components/hover-card.css"
|
|
224
|
+
},
|
|
197
225
|
"./input.css": {
|
|
198
226
|
"style": "./components/input.css",
|
|
199
227
|
"default": "./components/input.css"
|
|
@@ -338,6 +366,10 @@
|
|
|
338
366
|
"style": "./components/time-field.css",
|
|
339
367
|
"default": "./components/time-field.css"
|
|
340
368
|
},
|
|
369
|
+
"./time-range-field.css": {
|
|
370
|
+
"style": "./components/time-range-field.css",
|
|
371
|
+
"default": "./components/time-range-field.css"
|
|
372
|
+
},
|
|
341
373
|
"./toast.css": {
|
|
342
374
|
"style": "./components/toast.css",
|
|
343
375
|
"default": "./components/toast.css"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const contextMenuVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
root: "context-menu",
|
|
8
|
+
trigger: "context-menu__trigger",
|
|
9
|
+
popover: "context-menu__popover",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type ContextMenuVariants = VariantProps<typeof contextMenuVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./context-menu.styles";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const editableVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
/** Root container */
|
|
8
|
+
base: "editable",
|
|
9
|
+
/** Area wrapping both preview and input */
|
|
10
|
+
area: "editable__area",
|
|
11
|
+
/** Read-only text display */
|
|
12
|
+
preview: "editable__preview",
|
|
13
|
+
/** Editable text input */
|
|
14
|
+
input: "editable__input",
|
|
15
|
+
/** Edit (pencil) trigger button */
|
|
16
|
+
editTrigger: "editable__edit-trigger",
|
|
17
|
+
/** Submit (checkmark) trigger button */
|
|
18
|
+
submitTrigger: "editable__submit-trigger",
|
|
19
|
+
/** Cancel (×) trigger button */
|
|
20
|
+
cancelTrigger: "editable__cancel-trigger",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export type EditableVariants = VariantProps<typeof editableVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./editable.styles";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const hoverCardVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "hover-card",
|
|
8
|
+
trigger: "hover-card__trigger",
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type HoverCardVariants = VariantProps<typeof hoverCardVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./hover-card.styles";
|
package/src/components/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from "./button";
|
|
|
10
10
|
export * from "./button-group";
|
|
11
11
|
export * from "./calendar";
|
|
12
12
|
export * from "./calendar-year-picker";
|
|
13
|
+
export * from "./month-range-picker";
|
|
14
|
+
export * from "./year-range-picker";
|
|
13
15
|
export * from "./range-calendar";
|
|
14
16
|
export * from "./card";
|
|
15
17
|
export * from "./checkbox";
|
|
@@ -24,6 +26,9 @@ export * from "./color-swatch";
|
|
|
24
26
|
export * from "./close-button";
|
|
25
27
|
export * from "./color-swatch-picker";
|
|
26
28
|
export * from "./combo-box";
|
|
29
|
+
export * from "./context-menu";
|
|
30
|
+
export * from "./menubar";
|
|
31
|
+
export * from "./navigation-menu";
|
|
27
32
|
export * from "./date-input";
|
|
28
33
|
export * from "./date-picker";
|
|
29
34
|
export * from "./date-range-field";
|
|
@@ -34,10 +39,12 @@ export * from "./drawer";
|
|
|
34
39
|
export * from "./collapsible";
|
|
35
40
|
export * from "./collapsible-group";
|
|
36
41
|
export * from "./dropdown";
|
|
42
|
+
export * from "./editable";
|
|
37
43
|
export * from "./empty-state";
|
|
38
44
|
export * from "./error-message";
|
|
39
45
|
export * from "./fieldset";
|
|
40
46
|
export * from "./header";
|
|
47
|
+
export * from "./hover-card";
|
|
41
48
|
export * from "./input";
|
|
42
49
|
export * from "./input-otp";
|
|
43
50
|
export * from "./kbd";
|
|
@@ -72,6 +79,7 @@ export * from "./tabs";
|
|
|
72
79
|
export * from "./text";
|
|
73
80
|
export * from "./textarea";
|
|
74
81
|
export * from "./time-field";
|
|
82
|
+
export * from "./time-range-field";
|
|
75
83
|
export * from "./toast";
|
|
76
84
|
export * from "./toggle-button";
|
|
77
85
|
export * from "./toggle-button-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./menubar.styles";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const menubarVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
root: "menubar",
|
|
8
|
+
trigger: "menubar__trigger",
|
|
9
|
+
popover: "menubar__popover",
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type MenubarVariants = VariantProps<typeof menubarVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./month-range-picker.styles";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const monthRangePickerVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
/** Root month range picker container */
|
|
9
|
+
base: "month-range-picker",
|
|
10
|
+
/** Header containing heading and navigation */
|
|
11
|
+
header: "month-range-picker__header",
|
|
12
|
+
/** Previous/Next navigation button */
|
|
13
|
+
navButton: "month-range-picker__nav-button",
|
|
14
|
+
/** Navigation button icon */
|
|
15
|
+
navButtonIcon: "month-range-picker__nav-button-icon",
|
|
16
|
+
/** Heading text */
|
|
17
|
+
heading: "month-range-picker__heading",
|
|
18
|
+
/** Grid (table) */
|
|
19
|
+
grid: "month-range-picker__grid",
|
|
20
|
+
/** Grid body (tbody) */
|
|
21
|
+
gridBody: "month-range-picker__grid-body",
|
|
22
|
+
/** Grid row (tr) */
|
|
23
|
+
gridRow: "month-range-picker__grid-row",
|
|
24
|
+
/** Month cell (button per month) */
|
|
25
|
+
cell: "month-range-picker__cell",
|
|
26
|
+
},
|
|
27
|
+
variants: {},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type MonthRangePickerVariants = VariantProps<typeof monthRangePickerVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./navigation-menu.styles";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VariantProps } from "../../utils";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const navigationMenuVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
root: "navigation-menu",
|
|
8
|
+
list: "navigation-menu__list",
|
|
9
|
+
trigger: "navigation-menu__trigger",
|
|
10
|
+
chevron: "navigation-menu__chevron",
|
|
11
|
+
content: "navigation-menu__content",
|
|
12
|
+
viewportWrapper: "navigation-menu__viewport-wrapper",
|
|
13
|
+
viewport: "navigation-menu__viewport",
|
|
14
|
+
indicator: "navigation-menu__indicator",
|
|
15
|
+
indicatorArrow: "navigation-menu__indicator-arrow",
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export type NavigationMenuVariants = VariantProps<typeof navigationMenuVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./time-range-field.styles";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import { tv } from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const timeRangeFieldVariants = tv({
|
|
6
|
+
slots: {
|
|
7
|
+
base: "time-range-field-root",
|
|
8
|
+
mainWrapper: "time-range-field__main-wrapper",
|
|
9
|
+
inputWrapper: "time-range-field",
|
|
10
|
+
segmentList: "time-range-field__segment-list",
|
|
11
|
+
segment: "time-range-field__segment",
|
|
12
|
+
separator: "time-range-field__separator",
|
|
13
|
+
startContent: "time-range-field__start-content",
|
|
14
|
+
endContent: "time-range-field__end-content",
|
|
15
|
+
label: "time-range-field__label",
|
|
16
|
+
helperWrapper: "time-range-field__helper-wrapper",
|
|
17
|
+
description: "time-range-field__description",
|
|
18
|
+
errorMessage: "time-range-field__error-message",
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "flat",
|
|
22
|
+
size: "md",
|
|
23
|
+
color: "default",
|
|
24
|
+
fullWidth: false,
|
|
25
|
+
isInvalid: false,
|
|
26
|
+
isDisabled: false,
|
|
27
|
+
isReadonly: false,
|
|
28
|
+
hasLabel: false,
|
|
29
|
+
labelPlacement: "inside",
|
|
30
|
+
},
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
flat: { inputWrapper: "time-range-field--flat" },
|
|
34
|
+
bordered: { inputWrapper: "time-range-field--bordered" },
|
|
35
|
+
faded: { inputWrapper: "time-range-field--faded" },
|
|
36
|
+
underlined: { inputWrapper: "time-range-field--underlined" },
|
|
37
|
+
raised: { inputWrapper: "time-range-field--raised" },
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
sm: { inputWrapper: "time-range-field--sm" },
|
|
41
|
+
md: {},
|
|
42
|
+
lg: { inputWrapper: "time-range-field--lg" },
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
default: { inputWrapper: "time-range-field--default" },
|
|
46
|
+
primary: { inputWrapper: "time-range-field--primary" },
|
|
47
|
+
secondary: { inputWrapper: "time-range-field--secondary" },
|
|
48
|
+
success: { inputWrapper: "time-range-field--success" },
|
|
49
|
+
warning: { inputWrapper: "time-range-field--warning" },
|
|
50
|
+
danger: { inputWrapper: "time-range-field--danger" },
|
|
51
|
+
},
|
|
52
|
+
fullWidth: {
|
|
53
|
+
false: {},
|
|
54
|
+
true: { base: "time-range-field-root--full-width", inputWrapper: "time-range-field--full-width" },
|
|
55
|
+
},
|
|
56
|
+
isInvalid: {
|
|
57
|
+
false: {},
|
|
58
|
+
true: { base: "time-range-field-root--invalid", inputWrapper: "time-range-field--invalid" },
|
|
59
|
+
},
|
|
60
|
+
isDisabled: {
|
|
61
|
+
false: {},
|
|
62
|
+
true: { base: "time-range-field-root--disabled", inputWrapper: "time-range-field--disabled" },
|
|
63
|
+
},
|
|
64
|
+
isReadonly: {
|
|
65
|
+
false: {},
|
|
66
|
+
true: { inputWrapper: "time-range-field--readonly" },
|
|
67
|
+
},
|
|
68
|
+
hasLabel: {
|
|
69
|
+
false: {},
|
|
70
|
+
true: {},
|
|
71
|
+
},
|
|
72
|
+
labelPlacement: {
|
|
73
|
+
inside: { base: "time-range-field-root--label-inside" },
|
|
74
|
+
outside: { base: "time-range-field-root--label-outside" },
|
|
75
|
+
"outside-left": { base: "time-range-field-root--label-outside-left" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
compoundVariants: [
|
|
79
|
+
{
|
|
80
|
+
hasLabel: true,
|
|
81
|
+
labelPlacement: "inside",
|
|
82
|
+
class: { inputWrapper: "time-range-field--label-inside" },
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export type TimeRangeFieldVariants = VariantProps<typeof timeRangeFieldVariants>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./year-range-picker.styles";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {VariantProps} from "../../utils";
|
|
2
|
+
|
|
3
|
+
import {tv} from "tailwind-variants";
|
|
4
|
+
|
|
5
|
+
export const yearRangePickerVariants = tv({
|
|
6
|
+
defaultVariants: {},
|
|
7
|
+
slots: {
|
|
8
|
+
/** Root year range picker container */
|
|
9
|
+
base: "year-range-picker",
|
|
10
|
+
/** Header containing heading and navigation */
|
|
11
|
+
header: "year-range-picker__header",
|
|
12
|
+
/** Previous/Next navigation button */
|
|
13
|
+
navButton: "year-range-picker__nav-button",
|
|
14
|
+
/** Navigation button icon */
|
|
15
|
+
navButtonIcon: "year-range-picker__nav-button-icon",
|
|
16
|
+
/** Heading text */
|
|
17
|
+
heading: "year-range-picker__heading",
|
|
18
|
+
/** Grid (table) */
|
|
19
|
+
grid: "year-range-picker__grid",
|
|
20
|
+
/** Grid body (tbody) */
|
|
21
|
+
gridBody: "year-range-picker__grid-body",
|
|
22
|
+
/** Grid row (tr) */
|
|
23
|
+
gridRow: "year-range-picker__grid-row",
|
|
24
|
+
/** Year cell (button per year) */
|
|
25
|
+
cell: "year-range-picker__cell",
|
|
26
|
+
},
|
|
27
|
+
variants: {},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export type YearRangePickerVariants = VariantProps<typeof yearRangePickerVariants>;
|