@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { calendarVariants } from './calendar.styles.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.calendar__cell {
|
|
2
|
+
@apply w-[calc(100cqw/7)] aspect-square text-sm cursor-default;
|
|
3
|
+
@apply rounded-md flex items-center justify-center forced-color-adjust-none no-highlight;
|
|
4
|
+
|
|
5
|
+
/* Hover state */
|
|
6
|
+
@media (hover: hover) {
|
|
7
|
+
&:hover:not([data-disabled="true"]):not([data-selected="true"]) {
|
|
8
|
+
@apply bg-neutral-200 dark:bg-neutral-700;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Selected state */
|
|
13
|
+
&[data-selected="true"] {
|
|
14
|
+
@apply bg-accent text-accent-foreground;
|
|
15
|
+
&[data-today="true"]::after {
|
|
16
|
+
@apply bg-accent-foreground;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Disabled state */
|
|
21
|
+
&[data-disabled="true"] {
|
|
22
|
+
@apply text-fgColor-muted cursor-not-allowed;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[data-today="true"] {
|
|
26
|
+
@apply relative;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-today="true"]::after {
|
|
30
|
+
@apply absolute bg-accent rounded-full -translate-x-1/2 left-1/2 bottom-1;
|
|
31
|
+
content: "";
|
|
32
|
+
width: 3px;
|
|
33
|
+
height: 3px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
declare const cardVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
default: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
secondary: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
tertiary: {
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
transparent: {
|
|
14
|
+
base: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
base: string;
|
|
19
|
+
content: string;
|
|
20
|
+
description: string;
|
|
21
|
+
footer: string;
|
|
22
|
+
header: string;
|
|
23
|
+
title: string;
|
|
24
|
+
}, undefined, {
|
|
25
|
+
variant: {
|
|
26
|
+
default: {
|
|
27
|
+
base: string;
|
|
28
|
+
};
|
|
29
|
+
secondary: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
32
|
+
tertiary: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
transparent: {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
base: string;
|
|
41
|
+
content: string;
|
|
42
|
+
description: string;
|
|
43
|
+
footer: string;
|
|
44
|
+
header: string;
|
|
45
|
+
title: string;
|
|
46
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
47
|
+
variant: {
|
|
48
|
+
default: {
|
|
49
|
+
base: string;
|
|
50
|
+
};
|
|
51
|
+
secondary: {
|
|
52
|
+
base: string;
|
|
53
|
+
};
|
|
54
|
+
tertiary: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
transparent: {
|
|
58
|
+
base: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
base: string;
|
|
63
|
+
content: string;
|
|
64
|
+
description: string;
|
|
65
|
+
footer: string;
|
|
66
|
+
header: string;
|
|
67
|
+
title: string;
|
|
68
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
69
|
+
export { cardVariants };
|
|
70
|
+
export type CardVariants = VariantProps<typeof cardVariants>;
|
|
71
|
+
//# sourceMappingURL=card.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAIpD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA4BhB,CAAC;AAEH,OAAO,EAAC,YAAY,EAAC,CAAC;AACtB,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const cardVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "default",
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "card",
|
|
9
|
+
content: "card__content",
|
|
10
|
+
description: "card__description",
|
|
11
|
+
footer: "card__footer",
|
|
12
|
+
header: "card__header",
|
|
13
|
+
title: "card__title",
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
default: {
|
|
18
|
+
base: "card--default",
|
|
19
|
+
},
|
|
20
|
+
secondary: {
|
|
21
|
+
base: "card--secondary",
|
|
22
|
+
},
|
|
23
|
+
tertiary: {
|
|
24
|
+
base: "card--tertiary",
|
|
25
|
+
},
|
|
26
|
+
transparent: {
|
|
27
|
+
base: "card--transparent",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { cardVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cardVariants } from './card.styles.js';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* Card component styles */
|
|
2
|
+
|
|
3
|
+
/* Block */
|
|
4
|
+
.card {
|
|
5
|
+
@apply relative flex flex-col gap-3 overflow-hidden p-4;
|
|
6
|
+
@apply rounded-card shadow-surface;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Element - header */
|
|
10
|
+
.card__header {
|
|
11
|
+
@apply flex flex-col;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Element - title */
|
|
15
|
+
.card__title {
|
|
16
|
+
@apply text-sm leading-6 font-medium text-foreground;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Element - description */
|
|
20
|
+
.card__description {
|
|
21
|
+
@apply text-sm leading-5 text-muted;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Element - content */
|
|
25
|
+
.card__content {
|
|
26
|
+
@apply flex flex-1 flex-col gap-1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Element - footer */
|
|
30
|
+
.card__footer {
|
|
31
|
+
@apply flex flex-row items-center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Modifier - variant */
|
|
35
|
+
|
|
36
|
+
.card--transparent {
|
|
37
|
+
@apply border-none bg-transparent shadow-none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.card--default {
|
|
41
|
+
@apply bg-surface;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.card--secondary {
|
|
45
|
+
@apply bg-surface-secondary;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.card--tertiary {
|
|
49
|
+
@apply bg-surface-tertiary;
|
|
50
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const checkboxVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
primary: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
secondary: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
base: string;
|
|
13
|
+
content: string;
|
|
14
|
+
control: string;
|
|
15
|
+
indicator: string;
|
|
16
|
+
}, undefined, {
|
|
17
|
+
variant: {
|
|
18
|
+
primary: {
|
|
19
|
+
base: string;
|
|
20
|
+
};
|
|
21
|
+
secondary: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
base: string;
|
|
27
|
+
content: string;
|
|
28
|
+
control: string;
|
|
29
|
+
indicator: string;
|
|
30
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
31
|
+
variant: {
|
|
32
|
+
primary: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
secondary: {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
base: string;
|
|
41
|
+
content: string;
|
|
42
|
+
control: string;
|
|
43
|
+
indicator: string;
|
|
44
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
45
|
+
export type CheckboxVariants = VariantProps<typeof checkboxVariants>;
|
|
46
|
+
//# sourceMappingURL=checkbox.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAoB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const checkboxVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
variant: "primary",
|
|
6
|
+
},
|
|
7
|
+
slots: {
|
|
8
|
+
base: "checkbox",
|
|
9
|
+
content: "checkbox__content",
|
|
10
|
+
control: "checkbox__control",
|
|
11
|
+
indicator: "checkbox__indicator",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
primary: {
|
|
16
|
+
base: "checkbox--primary",
|
|
17
|
+
},
|
|
18
|
+
secondary: {
|
|
19
|
+
base: "checkbox--secondary",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { checkboxVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { checkboxVariants } from './checkbox.styles.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const checkboxGroupVariants: 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
|
+
}, undefined, "checkbox-group", {
|
|
13
|
+
variant: {
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
|
+
lg: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
23
|
+
variant: {
|
|
24
|
+
primary: string;
|
|
25
|
+
secondary: string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, "checkbox-group", unknown, unknown, undefined>>;
|
|
33
|
+
export type CheckboxGroupVariants = VariantProps<typeof checkboxGroupVariants>;
|
|
34
|
+
//# sourceMappingURL=checkbox-group.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox-group/checkbox-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAiBhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const checkboxGroupVariants = tv({
|
|
4
|
+
base: "checkbox-group",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
variant: "primary",
|
|
7
|
+
size: "md",
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
primary: "checkbox-group--primary",
|
|
12
|
+
secondary: "checkbox-group--secondary",
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
sm: "checkbox-group--sm",
|
|
16
|
+
md: "checkbox-group--md",
|
|
17
|
+
lg: "checkbox-group--lg",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { checkboxGroupVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox-group/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { checkboxGroupVariants } from './checkbox-group.styles.js';
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Base checkbox styles
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
.checkbox {
|
|
6
|
+
@apply flex gap-3 outline-none no-highlight;
|
|
7
|
+
|
|
8
|
+
cursor: var(--cursor-interactive);
|
|
9
|
+
|
|
10
|
+
/* Align center when there's no description */
|
|
11
|
+
&:not(:has([data-slot="description"])) {
|
|
12
|
+
@apply items-center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Align start when there's a description */
|
|
16
|
+
&:has([data-slot="description"]) {
|
|
17
|
+
@apply items-start;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-slot="label"] {
|
|
21
|
+
@apply select-none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-slot="description"] {
|
|
25
|
+
@apply text-wrap select-none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Disabled state */
|
|
29
|
+
&:disabled,
|
|
30
|
+
&[data-disabled="true"],
|
|
31
|
+
&[aria-disabled="true"] {
|
|
32
|
+
@apply status-disabled;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Indicator styles */
|
|
36
|
+
&[data-selected="true"],
|
|
37
|
+
&[data-indeterminate="true"] {
|
|
38
|
+
.checkbox__indicator {
|
|
39
|
+
border-color: var(--accent-foreground);
|
|
40
|
+
background: var(--accent-hover);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Checkmark SVG indicator */
|
|
45
|
+
[data-slot="checkbox-default-indicator--checkmark"] {
|
|
46
|
+
@apply size-2.5 stroke-[2.5px] text-accent-foreground;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Transitions
|
|
50
|
+
*/
|
|
51
|
+
@apply transition-all duration-200 motion-reduce:transition-none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-selected="true"] [data-slot="checkbox-default-indicator--checkmark"] {
|
|
55
|
+
transition: stroke-dashoffset 150ms linear 15ms;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Invalid + Selected: checkmark icon color */
|
|
59
|
+
&[data-invalid="true"][data-selected="true"]
|
|
60
|
+
[data-slot="checkbox-default-indicator--checkmark"],
|
|
61
|
+
&[data-invalid="true"][aria-checked="true"]
|
|
62
|
+
[data-slot="checkbox-default-indicator--checkmark"],
|
|
63
|
+
&[aria-invalid="true"][data-selected="true"]
|
|
64
|
+
[data-slot="checkbox-default-indicator--checkmark"],
|
|
65
|
+
&[aria-invalid="true"][aria-checked="true"]
|
|
66
|
+
[data-slot="checkbox-default-indicator--checkmark"] {
|
|
67
|
+
@apply text-danger-foreground;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Indeterminate line indicator */
|
|
71
|
+
&[data-indeterminate="true"] {
|
|
72
|
+
[data-slot="checkbox-default-indicator--indeterminate"] {
|
|
73
|
+
@apply size-3;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Invalid + Indeterminate: indeterminate icon color */
|
|
78
|
+
&[data-indeterminate="true"][data-invalid="true"]
|
|
79
|
+
[data-slot="checkbox-default-indicator--indeterminate"],
|
|
80
|
+
&[data-indeterminate="true"][aria-invalid="true"]
|
|
81
|
+
[data-slot="checkbox-default-indicator--indeterminate"] {
|
|
82
|
+
@apply text-danger-foreground;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ==========================================================================
|
|
87
|
+
Checkbox control (the square button)
|
|
88
|
+
========================================================================== */
|
|
89
|
+
|
|
90
|
+
.checkbox__control {
|
|
91
|
+
@apply relative inline-flex size-4 shrink-0 items-center justify-center border border-field-border overflow-hidden rounded-sm bg-field shadow-field outline-none no-highlight;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Transitions
|
|
95
|
+
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
96
|
+
*/
|
|
97
|
+
transition:
|
|
98
|
+
background-color 200ms var(--ease-out),
|
|
99
|
+
transform 100ms var(--ease-out);
|
|
100
|
+
@apply motion-reduce:transition-none;
|
|
101
|
+
|
|
102
|
+
cursor: var(--cursor-interactive);
|
|
103
|
+
|
|
104
|
+
/* Add top margin when there's a description */
|
|
105
|
+
.checkbox:has([data-slot="description"]) & {
|
|
106
|
+
@apply mt-0.5;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Background indicator pseudo-element */
|
|
110
|
+
&::before {
|
|
111
|
+
@apply pointer-events-none absolute inset-0 z-0 origin-center scale-70 rounded-sm bg-accent opacity-0 content-[''];
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Transitions
|
|
115
|
+
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
116
|
+
*/
|
|
117
|
+
transition:
|
|
118
|
+
scale 100ms var(--ease-linear),
|
|
119
|
+
opacity 200ms var(--ease-linear),
|
|
120
|
+
background-color 200ms var(--ease-out);
|
|
121
|
+
@apply motion-reduce:transition-none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Interactive states */
|
|
125
|
+
/* Focus */
|
|
126
|
+
.checkbox:focus-visible &,
|
|
127
|
+
.checkbox[data-focus-visible="true"] & {
|
|
128
|
+
@apply status-focused-field;
|
|
129
|
+
border-color: var(--color-field-border-focus);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Hover */
|
|
133
|
+
.checkbox:hover &,
|
|
134
|
+
.checkbox[data-hovered="true"] & {
|
|
135
|
+
@apply border-field-border-hover;
|
|
136
|
+
|
|
137
|
+
&::before {
|
|
138
|
+
@apply bg-accent-hover;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Pressed */
|
|
143
|
+
.checkbox:active &,
|
|
144
|
+
.checkbox[data-pressed="true"] & {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Selection states */
|
|
148
|
+
/* Selected */
|
|
149
|
+
.checkbox[aria-checked="true"] &,
|
|
150
|
+
.checkbox[data-selected="true"] & {
|
|
151
|
+
@apply border-transparent text-accent-foreground;
|
|
152
|
+
|
|
153
|
+
&::before {
|
|
154
|
+
@apply scale-100 opacity-100;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Indeterminate */
|
|
159
|
+
.checkbox[data-indeterminate="true"] & {
|
|
160
|
+
@apply bg-accent text-accent-foreground border-transparent;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Indeterminate + Pressed */
|
|
164
|
+
.checkbox:active[data-indeterminate="true"] &,
|
|
165
|
+
.checkbox[data-pressed="true"][data-indeterminate="true"] & {
|
|
166
|
+
@apply bg-accent-hover;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Validation states */
|
|
170
|
+
/* Invalid (only when not selected/indeterminate) */
|
|
171
|
+
.checkbox[data-invalid="true"]:not([aria-checked="true"]):not(
|
|
172
|
+
[data-selected="true"]
|
|
173
|
+
):not([data-indeterminate="true"])
|
|
174
|
+
&,
|
|
175
|
+
.checkbox[aria-invalid="true"]:not([aria-checked="true"]):not(
|
|
176
|
+
[data-selected="true"]
|
|
177
|
+
):not([data-indeterminate="true"])
|
|
178
|
+
& {
|
|
179
|
+
@apply status-invalid-field;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Invalid + Selected */
|
|
183
|
+
.checkbox[data-invalid="true"][aria-checked="true"] &,
|
|
184
|
+
.checkbox[data-invalid="true"][data-selected="true"] &,
|
|
185
|
+
.checkbox[aria-invalid="true"][aria-checked="true"] &,
|
|
186
|
+
.checkbox[aria-invalid="true"][data-selected="true"] & {
|
|
187
|
+
@apply border-transparent bg-danger text-danger-foreground;
|
|
188
|
+
|
|
189
|
+
&::before {
|
|
190
|
+
@apply scale-100 bg-danger opacity-100;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* Invalid + Indeterminate */
|
|
195
|
+
.checkbox[data-indeterminate="true"][aria-invalid="true"] &,
|
|
196
|
+
.checkbox[data-indeterminate="true"][data-invalid="true"] & {
|
|
197
|
+
@apply bg-danger text-danger-foreground;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* ==========================================================================
|
|
202
|
+
Checkbox indicator
|
|
203
|
+
========================================================================== */
|
|
204
|
+
|
|
205
|
+
.checkbox__indicator {
|
|
206
|
+
@apply relative z-10 flex size-3 items-center justify-center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ==========================================================================
|
|
210
|
+
Checkbox content wrapper
|
|
211
|
+
========================================================================== */
|
|
212
|
+
|
|
213
|
+
.checkbox__content {
|
|
214
|
+
@apply flex flex-col gap-0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* ==========================================================================
|
|
218
|
+
Disabled modifier
|
|
219
|
+
========================================================================== */
|
|
220
|
+
|
|
221
|
+
.checkbox--disabled {
|
|
222
|
+
@apply status-disabled;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* ==========================================================================
|
|
226
|
+
Variant property definitions
|
|
227
|
+
========================================================================== */
|
|
228
|
+
|
|
229
|
+
.checkbox--primary {
|
|
230
|
+
/* Default styles */
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.checkbox--secondary .checkbox__control {
|
|
234
|
+
@apply shadow-none;
|
|
235
|
+
background-color: var(--checkbox-control-bg);
|
|
236
|
+
|
|
237
|
+
--checkbox-control-bg: var(--color-default);
|
|
238
|
+
|
|
239
|
+
/* Hover state */
|
|
240
|
+
.checkbox:hover &,
|
|
241
|
+
.checkbox[data-hovered="true"] & {
|
|
242
|
+
@apply border-field-border-hover;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Unselected state background for secondary variant */
|
|
247
|
+
.checkbox--secondary:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
248
|
+
[data-indeterminate="true"]
|
|
249
|
+
)
|
|
250
|
+
.checkbox__control {
|
|
251
|
+
background-color: var(--checkbox-control-bg);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Selected state on secondary variant */
|
|
255
|
+
.checkbox--secondary[aria-checked="true"] .checkbox__control,
|
|
256
|
+
.checkbox--secondary[data-selected="true"] .checkbox__control {
|
|
257
|
+
&::before {
|
|
258
|
+
@apply bg-accent;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Indeterminate state on secondary variant */
|
|
263
|
+
.checkbox--secondary[data-indeterminate="true"] .checkbox__control {
|
|
264
|
+
@apply bg-accent;
|
|
265
|
+
|
|
266
|
+
&::before {
|
|
267
|
+
@apply bg-accent;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const closeButtonVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, undefined, "close-button", {
|
|
7
|
+
variant: {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
11
|
+
variant: {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}, undefined, "close-button", unknown, unknown, undefined>>;
|
|
15
|
+
export type CloseButtonVariants = VariantProps<typeof closeButtonVariants>;
|
|
16
|
+
//# sourceMappingURL=close-button.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/close-button/close-button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;2DAU9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const closeButtonVariants = tv({
|
|
4
|
+
base: "close-button",
|
|
5
|
+
defaultVariants: {
|
|
6
|
+
variant: "default",
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "close-button--default",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { closeButtonVariants };
|