@arkitektbedriftene/fe-lib 4.1.0 → 4.1.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.
|
@@ -2,6 +2,7 @@ import * as RCheckbox from "@radix-ui/react-checkbox";
|
|
|
2
2
|
import { type ComponentProps } from "react";
|
|
3
3
|
declare const Root: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>, {
|
|
4
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
5
|
+
color?: "primary" | "secondary" | undefined;
|
|
5
6
|
}, {
|
|
6
7
|
lg: "(min-width: 1200px)";
|
|
7
8
|
print: "print";
|
|
@@ -119,8 +120,9 @@ declare const Root: import("@stitches/react/types/styled-component").StyledCompo
|
|
|
119
120
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
|
|
120
121
|
export declare const Checkbox: ({ id, size, label, ...props }: {
|
|
121
122
|
label?: string | undefined;
|
|
122
|
-
} & Omit<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
123
|
+
} & Omit<RCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "color" | "css" | "size"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
123
124
|
size?: "sm" | "md" | "lg" | undefined;
|
|
125
|
+
color?: "primary" | "secondary" | undefined;
|
|
124
126
|
}, {
|
|
125
127
|
lg: "(min-width: 1200px)";
|
|
126
128
|
print: "print";
|
package/dist/ui.es.js
CHANGED
|
@@ -1097,12 +1097,8 @@ const bo = h({
|
|
|
1097
1097
|
gap: "$2",
|
|
1098
1098
|
flexShrink: 0,
|
|
1099
1099
|
color: "#fff",
|
|
1100
|
-
border: "2px solid $blue600",
|
|
1101
1100
|
backgroundColor: "transparent",
|
|
1102
1101
|
borderRadius: "$sm",
|
|
1103
|
-
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1104
|
-
backgroundColor: "$blue500"
|
|
1105
|
-
},
|
|
1106
1102
|
"&[data-disabled]": {
|
|
1107
1103
|
borderColor: "$gray200",
|
|
1108
1104
|
backgroundColor: "$gray100",
|
|
@@ -1122,10 +1118,25 @@ const bo = h({
|
|
|
1122
1118
|
width: "2rem",
|
|
1123
1119
|
height: "2rem"
|
|
1124
1120
|
}
|
|
1121
|
+
},
|
|
1122
|
+
color: {
|
|
1123
|
+
primary: {
|
|
1124
|
+
border: "2px solid $blue600",
|
|
1125
|
+
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1126
|
+
backgroundColor: "$blue500"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
secondary: {
|
|
1130
|
+
border: "2px solid $gray900",
|
|
1131
|
+
"&[data-state=checked], &[data-state=indeterminate]": {
|
|
1132
|
+
backgroundColor: "$gray800"
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1125
1135
|
}
|
|
1126
1136
|
},
|
|
1127
1137
|
defaultVariants: {
|
|
1128
|
-
size: "md"
|
|
1138
|
+
size: "md",
|
|
1139
|
+
color: "primary"
|
|
1129
1140
|
}
|
|
1130
1141
|
}), Jo = n(F.Indicator, {
|
|
1131
1142
|
"[data-icon]": {
|