@arobo/styles 1.0.1
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/README.md +3 -0
- package/dist/aroboui.min.css +2 -0
- package/dist/base/base.css +8 -0
- package/dist/components/button/button.styles.d.ts +70 -0
- package/dist/components/button/button.styles.d.ts.map +1 -0
- package/dist/components/button/button.styles.js +36 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/button-group.styles.d.ts +19 -0
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -0
- package/dist/components/button-group/button-group.styles.js +16 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/button-group.css +78 -0
- package/dist/components/button.css +158 -0
- package/dist/components/calendar/calendar.styles.d.ts +40 -0
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar.styles.js +25 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/calendar.css +35 -0
- package/dist/components/card/card.styles.d.ts +71 -0
- package/dist/components/card/card.styles.d.ts.map +1 -0
- package/dist/components/card/card.styles.js +33 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card.css +50 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +46 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.styles.js +25 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +34 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +22 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/checkbox-group/index.d.ts.map +1 -0
- package/dist/components/checkbox-group/index.js +1 -0
- package/dist/components/checkbox-group.css +7 -0
- package/dist/components/checkbox.css +269 -0
- package/dist/components/close-button/close-button.styles.d.ts +16 -0
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -0
- package/dist/components/close-button/close-button.styles.js +15 -0
- package/dist/components/close-button/index.d.ts +2 -0
- package/dist/components/close-button/index.d.ts.map +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/close-button.css +65 -0
- package/dist/components/combobox/combobox.styles.d.ts +43 -0
- package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
- package/dist/components/combobox/combobox.styles.js +24 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox.css +169 -0
- package/dist/components/date-field/date-field.styles.d.ts +19 -0
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -0
- package/dist/components/date-field/date-field.styles.js +16 -0
- package/dist/components/date-field/index.d.ts +2 -0
- package/dist/components/date-field/index.d.ts.map +1 -0
- package/dist/components/date-field/index.js +1 -0
- package/dist/components/date-field.css +24 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts +43 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -0
- package/dist/components/date-input-group/date-input-group.styles.js +24 -0
- package/dist/components/date-input-group/index.d.ts +2 -0
- package/dist/components/date-input-group/index.d.ts.map +1 -0
- package/dist/components/date-input-group/index.js +1 -0
- package/dist/components/date-input-group.css +116 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +37 -0
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.styles.js +11 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker.css +32 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +49 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.styles.js +28 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-range-picker.css +28 -0
- package/dist/components/description/description.styles.d.ts +4 -0
- package/dist/components/description/description.styles.d.ts.map +1 -0
- package/dist/components/description/description.styles.js +7 -0
- package/dist/components/description/index.d.ts +2 -0
- package/dist/components/description/index.d.ts.map +1 -0
- package/dist/components/description/index.js +1 -0
- package/dist/components/description.css +4 -0
- package/dist/components/error-message/error-message.styles.d.ts +4 -0
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -0
- package/dist/components/error-message/error-message.styles.js +7 -0
- package/dist/components/error-message/index.d.ts +2 -0
- package/dist/components/error-message/index.d.ts.map +1 -0
- package/dist/components/error-message/index.js +1 -0
- package/dist/components/error-message.css +13 -0
- package/dist/components/field-error/field-error.styles.d.ts +4 -0
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -0
- package/dist/components/field-error/field-error.styles.js +7 -0
- package/dist/components/field-error/index.d.ts +2 -0
- package/dist/components/field-error/index.d.ts.map +1 -0
- package/dist/components/field-error/index.js +1 -0
- package/dist/components/field-error.css +13 -0
- package/dist/components/field-group/field-group.styles.d.ts +69 -0
- package/dist/components/field-group/field-group.styles.d.ts.map +1 -0
- package/dist/components/field-group/field-group.styles.js +25 -0
- package/dist/components/field-group/index.d.ts +2 -0
- package/dist/components/field-group/index.d.ts.map +1 -0
- package/dist/components/field-group/index.js +1 -0
- package/dist/components/field-group.css +7 -0
- package/dist/components/index.css +23 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.styles.d.ts +31 -0
- package/dist/components/input/input.styles.d.ts.map +1 -0
- package/dist/components/input/input.styles.js +21 -0
- package/dist/components/input.css +72 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/label/label.styles.d.ts +34 -0
- package/dist/components/label/label.styles.d.ts.map +1 -0
- package/dist/components/label/label.styles.js +23 -0
- package/dist/components/label.css +31 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.styles.d.ts +46 -0
- package/dist/components/popover/popover.styles.d.ts.map +1 -0
- package/dist/components/popover/popover.styles.js +12 -0
- package/dist/components/popover.css +91 -0
- package/dist/components/range-calendar/index.d.ts +2 -0
- package/dist/components/range-calendar/index.d.ts.map +1 -0
- package/dist/components/range-calendar/index.js +1 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts +43 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -0
- package/dist/components/range-calendar/range-calendar.styles.js +26 -0
- package/dist/components/range-calendar.css +83 -0
- package/dist/components/surface/index.d.ts +2 -0
- package/dist/components/surface/index.d.ts.map +1 -0
- package/dist/components/surface/index.js +1 -0
- package/dist/components/surface/surface.styles.d.ts +37 -0
- package/dist/components/surface/surface.styles.d.ts.map +1 -0
- package/dist/components/surface/surface.styles.js +35 -0
- package/dist/components/surface.css +36 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.d.ts.map +1 -0
- package/dist/components/text-field/index.js +1 -0
- package/dist/components/text-field/text-field.styles.d.ts +19 -0
- package/dist/components/text-field/text-field.styles.d.ts.map +1 -0
- package/dist/components/text-field/text-field.styles.js +16 -0
- package/dist/components/text-field.css +26 -0
- package/dist/index.css +17 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/themes/default/index.css +4 -0
- package/dist/themes/default/variables.css +157 -0
- package/dist/themes/shared/theme.css +338 -0
- package/dist/utilities/index.css +45 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/state.d.ts +17 -0
- package/dist/utils/state.d.ts.map +1 -0
- package/dist/utils/state.js +13 -0
- package/package.json +53 -0
- package/src/components/button/button.styles.ts +38 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/button-group.styles.ts +18 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/calendar/calendar.styles.ts +27 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/card/card.styles.ts +36 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/checkbox/checkbox.styles.ts +27 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox-group/checkbox-group.styles.ts +24 -0
- package/src/components/checkbox-group/index.ts +1 -0
- package/src/components/close-button/close-button.styles.ts +17 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/combobox/combobox.styles.ts +26 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/date-field/date-field.styles.ts +18 -0
- package/src/components/date-field/index.ts +1 -0
- package/src/components/date-input-group/date-input-group.styles.ts +28 -0
- package/src/components/date-input-group/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +13 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/date-range-picker/date-range-picker.styles.ts +32 -0
- package/src/components/date-range-picker/index.ts +1 -0
- package/src/components/description/description.styles.ts +9 -0
- package/src/components/description/index.ts +1 -0
- package/src/components/error-message/error-message.styles.ts +9 -0
- package/src/components/error-message/index.ts +1 -0
- package/src/components/field-error/field-error.styles.ts +9 -0
- package/src/components/field-error/index.ts +1 -0
- package/src/components/field-group/field-group.styles.ts +29 -0
- package/src/components/field-group/index.ts +1 -0
- package/src/components/index.ts +23 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.styles.ts +23 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.styles.ts +25 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.styles.ts +14 -0
- package/src/components/range-calendar/index.ts +1 -0
- package/src/components/range-calendar/range-calendar.styles.ts +28 -0
- package/src/components/surface/index.ts +1 -0
- package/src/components/surface/surface.styles.ts +37 -0
- package/src/components/text-field/index.ts +1 -0
- package/src/components/text-field/text-field.styles.ts +18 -0
- package/src/index.ts +4 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/state.ts +11 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const labelVariants = tv({
|
|
4
|
+
base: "label",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
isDisabled: false,
|
|
7
|
+
isInvalid: false,
|
|
8
|
+
isRequired: false,
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
isDisabled: {
|
|
12
|
+
true: "label--disabled",
|
|
13
|
+
},
|
|
14
|
+
isInvalid: {
|
|
15
|
+
true: "label--invalid",
|
|
16
|
+
},
|
|
17
|
+
isRequired: {
|
|
18
|
+
true: "label--required",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { labelVariants };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* Base label styles */
|
|
2
|
+
.label {
|
|
3
|
+
/* Base styling */
|
|
4
|
+
@apply text-sm font-medium text-fgColor-default;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Exclude group-level components (RadioGroup, CheckboxGroup) and radio/checkbox items
|
|
9
|
+
* to ensure asterisks only appear on atomic form field labels and group labels,
|
|
10
|
+
* not on individual options within those groups
|
|
11
|
+
*/
|
|
12
|
+
.label--required,
|
|
13
|
+
[data-required="true"]:not([role="group"]):not([role="radiogroup"]):not(
|
|
14
|
+
[role="checkboxgroup"]
|
|
15
|
+
)
|
|
16
|
+
> .label,
|
|
17
|
+
[data-required="true"]:not([data-slot="radio"]):not([data-slot="checkbox"])
|
|
18
|
+
> .label {
|
|
19
|
+
@apply after:ml-0.5 after:text-fgColor-danger after:content-['*'];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.label--disabled,
|
|
23
|
+
[data-disabled="true"] .label {
|
|
24
|
+
@apply status-disabled;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.label--invalid,
|
|
28
|
+
[data-invalid="true"] .label,
|
|
29
|
+
[aria-invalid="true"] .label {
|
|
30
|
+
@apply text-fgColor-danger;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { popoverVariants } from './popover.styles.js';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const popoverVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5
|
+
base?: import("tailwind-variants").ClassValue;
|
|
6
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
7
|
+
dialog?: import("tailwind-variants").ClassValue;
|
|
8
|
+
heading?: import("tailwind-variants").ClassValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
|
+
base?: import("tailwind-variants").ClassValue;
|
|
15
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
16
|
+
dialog?: import("tailwind-variants").ClassValue;
|
|
17
|
+
heading?: import("tailwind-variants").ClassValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {}, {
|
|
21
|
+
base: string;
|
|
22
|
+
dialog: string;
|
|
23
|
+
heading: string;
|
|
24
|
+
trigger: string;
|
|
25
|
+
}, undefined, {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
28
|
+
base?: import("tailwind-variants").ClassValue;
|
|
29
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
30
|
+
dialog?: import("tailwind-variants").ClassValue;
|
|
31
|
+
heading?: import("tailwind-variants").ClassValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
base: string;
|
|
36
|
+
dialog: string;
|
|
37
|
+
heading: string;
|
|
38
|
+
trigger: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
40
|
+
base: string;
|
|
41
|
+
dialog: string;
|
|
42
|
+
heading: string;
|
|
43
|
+
trigger: string;
|
|
44
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
45
|
+
export type PopoverVariants = VariantProps<typeof popoverVariants>;
|
|
46
|
+
//# sourceMappingURL=popover.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAO1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* Popover component styles */
|
|
2
|
+
|
|
3
|
+
/* Base popover styles */
|
|
4
|
+
.popover {
|
|
5
|
+
@apply origin-(--trigger-anchor-point) rounded-xl bg-overlay p-0 text-sm will-change-[opacity,transform];
|
|
6
|
+
@apply border border-borderColor-default;
|
|
7
|
+
box-shadow: var(--shadow-overlay);
|
|
8
|
+
|
|
9
|
+
/* Entering animations */
|
|
10
|
+
&[data-entering="true"] {
|
|
11
|
+
@apply animate-in duration-150 ease-smooth fade-in-0 zoom-in-90;
|
|
12
|
+
|
|
13
|
+
/* Placement-specific translations */
|
|
14
|
+
&[data-placement="top"] {
|
|
15
|
+
@apply slide-in-from-bottom-1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-placement="bottom"] {
|
|
19
|
+
@apply slide-in-from-top-1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[data-placement="left"] {
|
|
23
|
+
@apply slide-in-from-right-1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-placement="right"] {
|
|
27
|
+
@apply slide-in-from-left-1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Exiting animations */
|
|
32
|
+
&[data-exiting="true"] {
|
|
33
|
+
@apply animate-out duration-100 ease-smooth zoom-out-95 fade-out;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Arrow styling */
|
|
37
|
+
& [data-slot="popover-overlay-arrow"] {
|
|
38
|
+
fill: var(--overlay);
|
|
39
|
+
@apply stroke-1 stroke-borderColor-default;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Arrow rotation based on placement */
|
|
43
|
+
&[data-placement="bottom"] [data-slot="popover-overlay-arrow"] {
|
|
44
|
+
rotate: 180deg;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-placement="left"] [data-slot="popover-overlay-arrow"] {
|
|
48
|
+
rotate: -90deg;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[data-placement="right"] [data-slot="popover-overlay-arrow"] {
|
|
52
|
+
rotate: 90deg;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Popover dialog */
|
|
57
|
+
.popover__dialog {
|
|
58
|
+
@apply p-4 outline-none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Popover heading */
|
|
62
|
+
.popover__heading {
|
|
63
|
+
@apply font-medium;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Popover trigger */
|
|
67
|
+
.popover__trigger {
|
|
68
|
+
/**
|
|
69
|
+
* Transitions
|
|
70
|
+
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
71
|
+
*/
|
|
72
|
+
transition:
|
|
73
|
+
color 150ms var(--ease-smooth),
|
|
74
|
+
background-color 150ms var(--ease-smooth),
|
|
75
|
+
box-shadow 150ms var(--ease-out);
|
|
76
|
+
@apply motion-reduce:transition-none;
|
|
77
|
+
|
|
78
|
+
cursor: var(--cursor-interactive);
|
|
79
|
+
|
|
80
|
+
/* Focus state */
|
|
81
|
+
&:focus-visible:not(:focus),
|
|
82
|
+
&[data-focus-visible="true"] {
|
|
83
|
+
@apply status-focused;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Disabled state */
|
|
87
|
+
&:disabled,
|
|
88
|
+
&[aria-disabled="true"] {
|
|
89
|
+
@apply status-disabled;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/range-calendar/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { rangeCalendarVariants } from './range-calendar.styles.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const rangeCalendarVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
primary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
sm: string;
|
|
9
|
+
md: string;
|
|
10
|
+
lg: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
cell: string;
|
|
14
|
+
grid: string;
|
|
15
|
+
}, "range-calendar", {
|
|
16
|
+
variant: {
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
cell: string;
|
|
27
|
+
grid: string;
|
|
28
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
29
|
+
variant: {
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
sm: string;
|
|
35
|
+
md: string;
|
|
36
|
+
lg: string;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
cell: string;
|
|
40
|
+
grid: string;
|
|
41
|
+
}, "range-calendar", unknown, unknown, undefined>>;
|
|
42
|
+
export type RangeCalendarVariants = VariantProps<typeof rangeCalendarVariants>;
|
|
43
|
+
//# sourceMappingURL=range-calendar.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-calendar.styles.d.ts","sourceRoot":"","sources":["../../../src/components/range-calendar/range-calendar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAqBhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const rangeCalendarVariants = tv({
|
|
4
|
+
base: "range-calendar",
|
|
5
|
+
slots: {
|
|
6
|
+
cell: "range-calendar__cell",
|
|
7
|
+
grid: "range-calendar__grid",
|
|
8
|
+
},
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
variant: "primary",
|
|
11
|
+
size: "md",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
primary: "range-calendar--primary",
|
|
16
|
+
secondary: "range-calendar--secondary",
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
sm: "range-calendar--sm",
|
|
20
|
+
md: "range-calendar--md",
|
|
21
|
+
lg: "range-calendar--lg",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export { rangeCalendarVariants };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.range-calendar {
|
|
2
|
+
@apply w-[calc(9*var(--spacing)*7)] max-w-full @container;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.range-calendar__grid {
|
|
6
|
+
@apply [&_td]:px-0 [&_td]:py-px border-spacing-0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.range-calendar__cell {
|
|
10
|
+
@apply w-[calc(100cqw/7)] aspect-square text-sm cursor-default;
|
|
11
|
+
@apply rounded-md flex items-center justify-center forced-color-adjust-none no-highlight;
|
|
12
|
+
|
|
13
|
+
/* Today cell */
|
|
14
|
+
&[data-today="true"] {
|
|
15
|
+
@apply relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-today="true"]::after {
|
|
19
|
+
@apply absolute bg-accent rounded-full -translate-x-1/2 left-1/2 bottom-1;
|
|
20
|
+
content: "";
|
|
21
|
+
width: 3px;
|
|
22
|
+
height: 3px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Hover state */
|
|
26
|
+
@media (hover: hover) {
|
|
27
|
+
&:hover:not([data-disabled="true"]):not([data-selected="true"]) {
|
|
28
|
+
@apply bg-neutral-200 dark:bg-neutral-700;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Selection start & end */
|
|
33
|
+
&[data-selected="true"][data-selection-start="true"],
|
|
34
|
+
&[data-selected="true"][data-selection-end="true"] {
|
|
35
|
+
@apply bg-accent text-accent-foreground;
|
|
36
|
+
&[data-today="true"]::after {
|
|
37
|
+
@apply bg-accent-foreground;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-selected="true"][data-selection-start="true"][data-selection-end="true"] {
|
|
42
|
+
@apply rounded-md;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-selected="true"][data-selection-start="true"] {
|
|
46
|
+
@apply rounded-l-md rounded-none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-selected="true"][data-selection-end="true"] {
|
|
50
|
+
@apply rounded-r-md rounded-none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Selected state */
|
|
54
|
+
&[data-selected="true"]:not([data-selection-start="true"]):not(
|
|
55
|
+
[data-selection-end="true"]
|
|
56
|
+
) {
|
|
57
|
+
@apply rounded-none;
|
|
58
|
+
background-color: color-mix(
|
|
59
|
+
in oklab,
|
|
60
|
+
var(--color-accent) 10%,
|
|
61
|
+
var(--color-white) 90%
|
|
62
|
+
);
|
|
63
|
+
&[data-today="true"]::after {
|
|
64
|
+
@apply bg-accent;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&[data-selected="true"][data-selection-end="true"] {
|
|
69
|
+
@apply bg-accent text-accent-foreground;
|
|
70
|
+
&[data-today="true"]::after {
|
|
71
|
+
@apply bg-accent-foreground;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Disabled state */
|
|
76
|
+
&[data-disabled="true"] {
|
|
77
|
+
@apply text-fgColor-disabled cursor-not-allowed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="cell-content"] {
|
|
81
|
+
@apply w-full h-full flex items-center justify-center;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { surfaceVariants } from './surface.styles.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
effect: {
|
|
4
|
+
none: string;
|
|
5
|
+
liquid: string;
|
|
6
|
+
};
|
|
7
|
+
variant: {
|
|
8
|
+
default: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
tertiary: string;
|
|
11
|
+
transparent: string;
|
|
12
|
+
};
|
|
13
|
+
}, undefined, "surface", {
|
|
14
|
+
effect: {
|
|
15
|
+
none: string;
|
|
16
|
+
liquid: string;
|
|
17
|
+
};
|
|
18
|
+
variant: {
|
|
19
|
+
default: string;
|
|
20
|
+
secondary: string;
|
|
21
|
+
tertiary: string;
|
|
22
|
+
transparent: string;
|
|
23
|
+
};
|
|
24
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
25
|
+
effect: {
|
|
26
|
+
none: string;
|
|
27
|
+
liquid: string;
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
default: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
tertiary: string;
|
|
33
|
+
transparent: string;
|
|
34
|
+
};
|
|
35
|
+
}, undefined, "surface", unknown, unknown, undefined>>;
|
|
36
|
+
export type SurfaceVariants = VariantProps<typeof surfaceVariants>;
|
|
37
|
+
//# sourceMappingURL=surface.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface.styles.d.ts","sourceRoot":"","sources":["../../../src/components/surface/surface.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA8B1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const surfaceVariants = tv({
|
|
4
|
+
base: "surface",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
variant: "default",
|
|
7
|
+
effect: "none",
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
effect: {
|
|
11
|
+
none: "",
|
|
12
|
+
liquid: "surface--liquid",
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
default: "surface--default",
|
|
16
|
+
secondary: "surface--secondary",
|
|
17
|
+
tertiary: "surface--tertiary",
|
|
18
|
+
transparent: "surface--transparent",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: [
|
|
22
|
+
{
|
|
23
|
+
effect: "liquid",
|
|
24
|
+
variant: "transparent",
|
|
25
|
+
class: "surface--liquid-transparent",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
effect: "liquid",
|
|
29
|
+
variant: "default",
|
|
30
|
+
class: "surface--liquid-default",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { surfaceVariants };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Surface component styles */
|
|
2
|
+
|
|
3
|
+
/* Block */
|
|
4
|
+
.surface {
|
|
5
|
+
@apply relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Modifier - effect */
|
|
9
|
+
.surface--liquid {
|
|
10
|
+
@apply backdrop-blur-surface-liquid;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Modifier - variant */
|
|
14
|
+
.surface--transparent {
|
|
15
|
+
@apply bg-transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.surface--default {
|
|
19
|
+
@apply bg-surface;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.surface--secondary {
|
|
23
|
+
@apply bg-surface-secondary;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.surface--tertiary {
|
|
27
|
+
@apply bg-surface-tertiary;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.surface--liquid-default {
|
|
31
|
+
@apply bg-white/60!;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.surface--liquid-transparent {
|
|
35
|
+
@apply border border-white/5!;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { textFieldVariants } from './text-field.styles.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const textFieldVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
fullWidth: {
|
|
4
|
+
false: string;
|
|
5
|
+
true: string;
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "text-field", {
|
|
8
|
+
fullWidth: {
|
|
9
|
+
false: string;
|
|
10
|
+
true: string;
|
|
11
|
+
};
|
|
12
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
13
|
+
fullWidth: {
|
|
14
|
+
false: string;
|
|
15
|
+
true: string;
|
|
16
|
+
};
|
|
17
|
+
}, undefined, "text-field", unknown, unknown, undefined>>;
|
|
18
|
+
export type TextFieldVariants = VariantProps<typeof textFieldVariants>;
|
|
19
|
+
//# sourceMappingURL=text-field.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.styles.d.ts","sourceRoot":"","sources":["../../../src/components/text-field/text-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;yDAW5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const textFieldVariants = tv({
|
|
4
|
+
base: "text-field",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
fullWidth: false,
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
fullWidth: {
|
|
10
|
+
false: "",
|
|
11
|
+
true: "text-field--full-width",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { textFieldVariants };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Text field styles */
|
|
2
|
+
.text-field {
|
|
3
|
+
@apply flex flex-col gap-1;
|
|
4
|
+
|
|
5
|
+
&[data-invalid="true"],
|
|
6
|
+
&[aria-invalid="true"] {
|
|
7
|
+
[data-slot="description"] {
|
|
8
|
+
@apply hidden;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot="description"] {
|
|
13
|
+
@apply px-1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Full width modifier */
|
|
18
|
+
.text-field--full-width {
|
|
19
|
+
@apply w-full;
|
|
20
|
+
|
|
21
|
+
/* Automatically make Input full width when TextField is full width */
|
|
22
|
+
[data-slot="input"],
|
|
23
|
+
[data-slot="textarea"] {
|
|
24
|
+
@apply w-full;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@layer theme, base, components, utilities;
|
|
2
|
+
|
|
3
|
+
/* Base layer - Tailwind CSS v4 */
|
|
4
|
+
@import "tailwindcss";
|
|
5
|
+
@import "tw-animate-css";
|
|
6
|
+
|
|
7
|
+
/* Base styles */
|
|
8
|
+
@import "./base/base.css" layer(base);
|
|
9
|
+
|
|
10
|
+
/* Base component structures */
|
|
11
|
+
@import "./components/index.css" layer(components);
|
|
12
|
+
|
|
13
|
+
/* Default theme (variables + component customization) */
|
|
14
|
+
@import "./themes/default/index.css" layer(theme);
|
|
15
|
+
|
|
16
|
+
/* Utilities */
|
|
17
|
+
@import "./utilities/index.css";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9D,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { cn, tv } from 'tailwind-variants';
|
|
2
|
+
export { buttonVariants } from './components/button/button.styles.js';
|
|
3
|
+
export { buttonGroupVariants } from './components/button-group/button-group.styles.js';
|
|
4
|
+
export { calendarVariants } from './components/calendar/calendar.styles.js';
|
|
5
|
+
export { cardVariants } from './components/card/card.styles.js';
|
|
6
|
+
export { checkboxVariants } from './components/checkbox/checkbox.styles.js';
|
|
7
|
+
export { checkboxGroupVariants } from './components/checkbox-group/checkbox-group.styles.js';
|
|
8
|
+
export { closeButtonVariants } from './components/close-button/close-button.styles.js';
|
|
9
|
+
export { comboboxVariants } from './components/combobox/combobox.styles.js';
|
|
10
|
+
export { dateFieldVariants } from './components/date-field/date-field.styles.js';
|
|
11
|
+
export { dateInputGroupVariants } from './components/date-input-group/date-input-group.styles.js';
|
|
12
|
+
export { datePickerVariants } from './components/date-picker/date-picker.styles.js';
|
|
13
|
+
export { dateRangePickerVariants } from './components/date-range-picker/date-range-picker.styles.js';
|
|
14
|
+
export { descriptionVariants } from './components/description/description.styles.js';
|
|
15
|
+
export { errorMessageVariants } from './components/error-message/error-message.styles.js';
|
|
16
|
+
export { fieldErrorVariants } from './components/field-error/field-error.styles.js';
|
|
17
|
+
export { fieldBorderStyles, fieldGroupVariants } from './components/field-group/field-group.styles.js';
|
|
18
|
+
export { inputVariants } from './components/input/input.styles.js';
|
|
19
|
+
export { labelVariants } from './components/label/label.styles.js';
|
|
20
|
+
export { popoverVariants } from './components/popover/popover.styles.js';
|
|
21
|
+
export { rangeCalendarVariants } from './components/range-calendar/range-calendar.styles.js';
|
|
22
|
+
export { surfaceVariants } from './components/surface/surface.styles.js';
|
|
23
|
+
export { textFieldVariants } from './components/text-field/text-field.styles.js';
|
|
24
|
+
export { focusRing } from './utils/state.js';
|