@dative-gpi/foundation-shared-components 0.0.4 → 0.0.6

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.
Files changed (52) hide show
  1. package/components/FSBreadcrumbs.vue +23 -18
  2. package/components/FSButton.vue +138 -30
  3. package/components/FSCheckbox.vue +41 -26
  4. package/components/FSCol.vue +56 -16
  5. package/components/FSColor.vue +80 -0
  6. package/components/FSFadeOut.vue +11 -6
  7. package/components/FSIcon.vue +5 -3
  8. package/components/FSNumberField.vue +65 -0
  9. package/components/FSPasswordField.vue +119 -0
  10. package/components/FSRadio.vue +40 -26
  11. package/components/FSRadioGroup.vue +6 -8
  12. package/components/FSRow.vue +57 -17
  13. package/components/FSSearchField.vue +122 -0
  14. package/components/FSSlideGroup.vue +17 -13
  15. package/components/FSSpan.vue +28 -4
  16. package/components/FSSwitch.vue +45 -28
  17. package/components/FSTab.vue +36 -22
  18. package/components/FSTabs.vue +21 -12
  19. package/components/FSTag.vue +48 -31
  20. package/components/FSTagField.vue +152 -0
  21. package/components/FSTagGroup.vue +60 -0
  22. package/components/FSText.vue +78 -0
  23. package/components/FSTextField.vue +122 -13
  24. package/components/FSWrapGroup.vue +16 -13
  25. package/composables/useColors.ts +31 -39
  26. package/models/FSButtons.ts +111 -0
  27. package/models/FSTags.ts +8 -0
  28. package/models/FSTextFields.ts +17 -0
  29. package/package.json +5 -4
  30. package/styles/components/fs_breadcrumbs.scss +29 -11
  31. package/styles/components/fs_button.scss +36 -9
  32. package/styles/components/fs_checkbox.scss +3 -4
  33. package/styles/components/fs_col.scss +87 -2
  34. package/styles/components/fs_color.scss +5 -0
  35. package/styles/components/fs_icon.scss +4 -4
  36. package/styles/components/fs_password_field.scss +10 -0
  37. package/styles/components/fs_radio.scss +3 -4
  38. package/styles/components/fs_row.scss +86 -1
  39. package/styles/components/fs_span.scss +8 -3
  40. package/styles/components/fs_switch.scss +4 -4
  41. package/styles/components/fs_tabs.scss +8 -9
  42. package/styles/components/fs_tag.scss +8 -8
  43. package/styles/components/fs_tag_field.scss +10 -0
  44. package/styles/components/fs_text.scss +5 -0
  45. package/styles/components/fs_text_field.scss +46 -17
  46. package/styles/components/index.scss +18 -14
  47. package/styles/globals/fixes.scss +5 -0
  48. package/styles/globals/index.scss +4 -1
  49. package/styles/globals/overrides.scss +26 -4
  50. package/styles/globals/text_fonts.scss +48 -24
  51. package/themes/default.ts +6 -6
  52. package/defaults/FSButtons.ts +0 -63
@@ -1,11 +1,63 @@
1
1
  <template>
2
- <v-text-field
3
- class="fs-text-field"
4
- variant="outlined"
5
- hide-details
6
- v-bind="$attrs"
7
- >
8
- </v-text-field>
2
+ <FSCol>
3
+ <slot name="label">
4
+ <FSRow :wrap="false">
5
+ <FSSpan
6
+ v-if="$props.label"
7
+ class="fs-text-field-label"
8
+ font="text-overline"
9
+ :style="style"
10
+ >
11
+ {{ $props.label }}
12
+ </FSSpan>
13
+ <FSSpan
14
+ v-if="$props.label && $props.required"
15
+ class="fs-text-field-label"
16
+ style="margin-left: -8px;"
17
+ font="text-overline"
18
+ :ellipsis="false"
19
+ :style="style"
20
+ >
21
+ *
22
+ </FSSpan>
23
+ <v-spacer style="min-width: 40px;" />
24
+ <FSSpan
25
+ v-if="messages.length > 0"
26
+ class="fs-text-field-messages"
27
+ font="text-overline"
28
+ :style="style"
29
+ >
30
+ {{ messages.join(", ") }}
31
+ </FSSpan>
32
+ </FSRow>
33
+ </slot>
34
+ <v-text-field
35
+ class="fs-text-field"
36
+ variant="outlined"
37
+ hide-details
38
+ :style="style"
39
+ :type="$props.type"
40
+ :rules="$props.rules"
41
+ :readonly="!$props.editable"
42
+ :modelValue="$props.value"
43
+ @update:modelValue="(value) => $emit('update:value', value)"
44
+ v-bind="$attrs"
45
+ >
46
+ <template v-for="(_, name) in $slots" v-slot:[name]="slotData">
47
+ <slot :name="name" v-bind="slotData" />
48
+ </template>
49
+ </v-text-field>
50
+ <slot name="description">
51
+ <FSSpan
52
+ v-if="$props.description"
53
+ class="fs-text-field-description"
54
+ font="text-underline"
55
+ :style="style"
56
+ >
57
+ {{ $props.description }}
58
+ </FSSpan>
59
+ </slot>
60
+ </FSCol>
9
61
  </template>
10
62
 
11
63
  <script lang="ts">
@@ -15,20 +67,21 @@ import { useColors } from "@dative-gpi/foundation-shared-components/composables"
15
67
  import { ColorBase } from "@dative-gpi/foundation-shared-components/themes";
16
68
 
17
69
  import FSSpan from "./FSSpan.vue";
18
- import FSRow from "./FSRow.vue";
19
70
  import FSCol from "./FSCol.vue";
71
+ import FSRow from "./FSRow.vue";
20
72
 
21
73
  export default defineComponent({
22
74
  name: "FSTextField",
23
75
  components: {
24
76
  FSSpan,
25
- FSRow,
26
- FSCol
77
+ FSCol,
78
+ FSRow
27
79
  },
80
+ inheritAttrs: false,
28
81
  props: {
29
82
  label: {
30
83
  type: String,
31
- required: false,
84
+ required: true,
32
85
  default: null
33
86
  },
34
87
  description: {
@@ -36,6 +89,11 @@ export default defineComponent({
36
89
  required: false,
37
90
  default: null
38
91
  },
92
+ type: {
93
+ type: String as PropType<"text" | "password" | "number">,
94
+ required: false,
95
+ default: "text"
96
+ },
39
97
  value: {
40
98
  type: String,
41
99
  required: false,
@@ -44,7 +102,17 @@ export default defineComponent({
44
102
  color: {
45
103
  type: String as PropType<ColorBase>,
46
104
  required: false,
47
- default: null
105
+ default: ColorBase.Dark
106
+ },
107
+ required: {
108
+ type: Boolean,
109
+ required: false,
110
+ default: false
111
+ },
112
+ rules: {
113
+ type: Array as PropType<Function[]>,
114
+ required: false,
115
+ default: () => []
48
116
  },
49
117
  editable: {
50
118
  type: Boolean,
@@ -52,8 +120,49 @@ export default defineComponent({
52
120
  default: true
53
121
  }
54
122
  },
55
- setup(props, { emit }) {
123
+ emits: ["update:value"],
124
+ setup(props) {
125
+ const { color, editable } = toRefs(props);
126
+
127
+ const colors = useColors().getColors(color.value);
128
+
129
+ const errors = useColors().getColors(ColorBase.Error);
130
+ const lights = useColors().getColors(ColorBase.Light);
131
+ const darks = useColors().getColors(ColorBase.Dark);
132
+
133
+ const style = computed((): {[code: string]: string} & Partial<CSSStyleDeclaration> => {
134
+ if (!editable.value) {
135
+ return {
136
+ "--fs-text-field-cursor" : "default",
137
+ "--fs-text-field-border-color" : lights.base,
138
+ "--fs-text-field-color" : lights.dark,
139
+ "--fs-text-field-active-border-color": lights.base
140
+ };
141
+ }
142
+ return {
143
+ "--fs-text-field-cursor" : "text",
144
+ "--fs-text-field-border-color" : colors.base,
145
+ "--fs-text-field-color" : darks.base,
146
+ "--fs-text-field-active-border-color": colors.dark,
147
+ "--fs-text-field-error-color" : errors.base,
148
+ "--fs-text-field-error-border-color" : errors.base
149
+ };
150
+ });
151
+
152
+ const messages = computed(() => {
153
+ const messages = [];
154
+ for (const rule of props.rules) {
155
+ const message = rule(props.value);
156
+ if (typeof(message) === "string") {
157
+ messages.push(message);
158
+ }
159
+ }
160
+ return messages;
161
+ });
162
+
56
163
  return {
164
+ messages,
165
+ style
57
166
  };
58
167
  }
59
168
  });
@@ -4,16 +4,16 @@
4
4
  :style="style"
5
5
  v-bind="$attrs"
6
6
  >
7
- <FSRow height="hug">
7
+ <FSRow>
8
8
  <v-slide-group-item v-for="(component, index) in $slots.default()" :key="index">
9
- <component :is="component" v-bind="{ color }" />
9
+ <component :is="component" v-bind="{ color, colors, style }" />
10
10
  </v-slide-group-item>
11
11
  </FSRow>
12
12
  </v-slide-group>
13
13
  </template>
14
14
 
15
15
  <script lang="ts">
16
- import { defineComponent, PropType, toRefs } from "vue";
16
+ import { defineComponent, PropType, Ref, ref, toRefs } from "vue";
17
17
 
18
18
  import { useColors } from "@dative-gpi/foundation-shared-components/composables";
19
19
  import { ColorBase } from "@dative-gpi/foundation-shared-components/themes";
@@ -35,20 +35,23 @@ export default defineComponent({
35
35
  setup(props) {
36
36
  const { color } = toRefs(props);
37
37
 
38
- const colors = useColors().getVariants(color.value);
39
- const dark = useColors().getDark();
38
+ const colors = useColors().getColors(color.value);
40
39
 
41
- const style = {
42
- "--fs-group-light-color" : colors.light,
43
- "--fs-group-base-color" : colors.base,
44
- "--fs-group-dark-color" : colors.dark,
45
- "--fs-group-light-text" : dark.base,
46
- "--fs-group-base-text" : dark.base,
47
- "--fs-group-dark-text" : dark.dark
48
- };
40
+ const darks = useColors().getColors(ColorBase.Dark);
41
+
42
+ const style: Ref<{ [code: string]: string } & Partial<CSSStyleDeclaration>> = ref({
43
+ "--fs-group-color": darks.base,
44
+ "--fs-group-hover-background-color": colors.light,
45
+ "--fs-group-hover-color": darks.dark,
46
+ "--fs-group-disabled-color": darks.light,
47
+ "--fs-group-light": colors.light,
48
+ "--fs-group-base": colors.base,
49
+ "--fs-group-dark": colors.dark
50
+ });
49
51
 
50
52
  return {
51
53
  color,
54
+ colors,
52
55
  style
53
56
  };
54
57
  }
@@ -7,45 +7,23 @@ import { ColorBase } from "@dative-gpi/foundation-shared-components/themes";
7
7
  export const useColors = () => {
8
8
  const theme = useTheme().current.value;
9
9
 
10
- const lighten = (color: Color): Color => color.saturationv(10).value(100);
11
-
12
- const darken = (color: Color): Color => color.value(Math.max(color.value() - 30, 0));
13
-
14
- const getBackground = () => {
15
- const base = new Color(theme.colors[ColorBase.Background]);
16
-
17
- return {
18
- base: base.hex()
19
- };
20
- }
21
-
22
- const getLight = () => {
23
- const base = new Color(theme.colors[ColorBase.Light]);
24
- const light = base.value(Math.max(base.value() - 20, 0));
25
- const dark = darken(base);
26
-
27
- return {
28
- light: light.hex(),
29
- base: base.hex(),
30
- dark: dark.hex()
31
- };
10
+ const lighten = (color: ColorBase, base: Color): Color => {
11
+ switch (color) {
12
+ case ColorBase.Light:
13
+ case ColorBase.Dark: return base.value(Math.min(base.value() + 10, 100));
14
+ default: return base.saturationv(10).value(Math.min(base.value() + 10, 100));
15
+ }
32
16
  };
33
17
 
34
- const getDark = () => {
35
- const base = new Color(theme.colors[ColorBase.Dark]);
36
- const light = base.saturationv(Math.max(base.saturationv() - 80, 0)).value(Math.min(base.value() + 40, 100));
37
- const dark = darken(base);
38
-
39
- return {
40
- light: light.hex(),
41
- base: base.hex(),
42
- dark: dark.hex()
43
- };
18
+ const darken = (base: Color): Color => {
19
+ return base.value(Math.max(base.value() - 15, 0));
44
20
  };
45
21
 
46
- const getVariants = (color: ColorBase) => {
47
- const base = new Color(theme.colors[color]);
48
- const light = lighten(base);
22
+ const getColors = (color: ColorBase | String) => {
23
+ const themed = (Object as any).values(ColorBase).includes(color);
24
+
25
+ const base = themed ? new Color(theme.colors[color as ColorBase]) : new Color(color);
26
+ const light = lighten(color as ColorBase, base);
49
27
  const dark = darken(base);
50
28
 
51
29
  return {
@@ -55,10 +33,24 @@ export const useColors = () => {
55
33
  };
56
34
  };
57
35
 
36
+ const getContrasts = (color: ColorBase | string) => {
37
+ switch (color) {
38
+ case ColorBase.Light: {
39
+ const base = new Color(theme.colors[ColorBase.Dark]);
40
+ return {
41
+ light: base.hex(),
42
+ base: base.hex(),
43
+ dark: base.hex()
44
+ };
45
+ }
46
+ default: {
47
+ return getColors(color);
48
+ }
49
+ }
50
+ }
51
+
58
52
  return {
59
- getBackground,
60
- getLight,
61
- getDark,
62
- getVariants
53
+ getColors,
54
+ getContrasts
63
55
  };
64
56
  }
@@ -0,0 +1,111 @@
1
+ import { ColorBase } from "@dative-gpi/foundation-shared-components/themes";
2
+
3
+ import FSButton from "@dative-gpi/foundation-shared-components/components/FSButton.vue";
4
+
5
+ export const FSButtonsAliases = {
6
+ FSButtonSearch: FSButton,
7
+ FSButtonSearchMini: FSButton,
8
+ FSButtonSearchIcon: FSButton,
9
+ FSButtonRemove: FSButton,
10
+ FSButtonRemoveMini: FSButton,
11
+ FSButtonRemoveIcon: FSButton,
12
+ FSButtonSave: FSButton,
13
+ FSButtonSaveMini: FSButton,
14
+ FSButtonSaveIcon: FSButton,
15
+ FSButtonCancel: FSButton,
16
+ FSButtonCancelMini: FSButton,
17
+ FSButtonCancelIcon: FSButton
18
+ }
19
+
20
+ export const FSButtonsProps = {
21
+ FSButtonSearch: {
22
+ prependIcon: "mdi-magnify",
23
+ label: "Search",
24
+ variant: "standard",
25
+ color: ColorBase.Primary
26
+ },
27
+ FSButtonSearchMini: {
28
+ prependIcon: "mdi-magnify",
29
+ label: undefined,
30
+ variant: "standard",
31
+ color: ColorBase.Primary
32
+ },
33
+ FSButtonSearchIcon: {
34
+ icon: "mdi-magnify",
35
+ label: undefined,
36
+ variant: "icon",
37
+ color: ColorBase.Primary
38
+ },
39
+ FSButtonRemove: {
40
+ prependIcon: "mdi-delete-outline",
41
+ label: "Remove",
42
+ variant: "standard",
43
+ color: ColorBase.Error
44
+ },
45
+ FSButtonRemoveMini: {
46
+ prependIcon: "mdi-delete-outline",
47
+ label: undefined,
48
+ variant: "standard",
49
+ color: ColorBase.Error
50
+ },
51
+ FSButtonRemoveIcon: {
52
+ icon: "mdi-delete-outline",
53
+ label: undefined,
54
+ variant: "icon",
55
+ color: ColorBase.Error
56
+ },
57
+ FSButtonSave: {
58
+ prependIcon: "mdi-content-save-outline",
59
+ label: "Save",
60
+ variant: "standard",
61
+ color: ColorBase.Primary
62
+ },
63
+ FSButtonSaveMini: {
64
+ prependIcon: "mdi-content-save-outline",
65
+ label: undefined,
66
+ variant: "standard",
67
+ color: ColorBase.Primary
68
+ },
69
+ FSButtonSaveIcon: {
70
+ icon: "mdi-content-save-outline",
71
+ label: undefined,
72
+ variant: "icon",
73
+ color: ColorBase.Primary
74
+ },
75
+ FSButtonCancel: {
76
+ prependIcon: "mdi-cancel",
77
+ label: "Cancel",
78
+ variant: "standard",
79
+ color: ColorBase.Light
80
+ },
81
+ FSButtonCancelMini: {
82
+ prependIcon: "mdi-cancel",
83
+ label: undefined,
84
+ variant: "standard",
85
+ color: ColorBase.Light
86
+ },
87
+ FSButtonCancelIcon: {
88
+ icon: "mdi-cancel",
89
+ label: undefined,
90
+ variant: "icon",
91
+ color: ColorBase.Light
92
+ },
93
+ FSButtonDocumentation: {
94
+ prependIcon: "mdi-file-document-outline",
95
+ label: "Documentation",
96
+ variant: "standard",
97
+ color: ColorBase.Light
98
+ },
99
+ FSButtonDocumentationMini: {
100
+ prependIcon: "mdi-file-document-outline",
101
+ label: undefined,
102
+ variant: "standard",
103
+ color: ColorBase.Light
104
+ },
105
+ FSButtonDocumentationIcon: {
106
+ icon: "mdi-file-document-outline",
107
+ label: undefined,
108
+ variant: "icon",
109
+ color: ColorBase.Light
110
+ }
111
+ }
@@ -0,0 +1,8 @@
1
+ import { ColorBase } from "@dative-gpi/foundation-shared-components/themes";
2
+
3
+ export interface FSTagItem {
4
+ label: string,
5
+ variant: "standard" | "full",
6
+ color: ColorBase,
7
+ editable: boolean
8
+ }
@@ -0,0 +1,17 @@
1
+ export const TextRules = {
2
+ required: (message: string) => (value: string) => !!value || (message ?? "Required"),
3
+ minLength: (length: number, message: string) => (value: string) => value.length >= length || (message ?? `Must be at least ${length} characters`),
4
+ maxLength: (length: number, message: string) => (value: string) => value.length <= length || (message ?? `Must be at most ${length} characters`),
5
+ email: (message: string) => (value: string) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value) || (message ?? "Must be a valid email"),
6
+ digit: (message: string) => (value: string) => /(?=.*\d)/.test(value) || (message ?? "Must contain a digit"),
7
+ uppercase: (message: string) => (value: string) => /(?=.*[A-Z])/.test(value) || (message ?? "Must contain an uppercase letter"),
8
+ lowercase: (message: string) => (value: string) => /(?=.*[a-z])/.test(value) || (message ?? "Must contain a lowercase letter"),
9
+ special: (message: string) => (value: string) => /(?=.*[!@#$%^&*])/.test(value) || (message ?? "Must contain a special character")
10
+ };
11
+
12
+ export const NumberRules = {
13
+ required: (message: string) => (value: number) => !!value || (message ?? "Required"),
14
+ min: (min: number, message: string) => (value: number) => value >= min || (message ?? `Must be at least ${min}`),
15
+ max: (max: number, message: string) => (value: number) => value <= max || (message ?? `Must be at most ${max}`),
16
+ integer: (message: string) => (value: number) => Number.isInteger(value) || (message ?? "Must be an integer")
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,8 +9,9 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@dative-gpi/foundation-shared-domain": "0.0.4",
13
- "@dative-gpi/foundation-shared-services": "0.0.4",
12
+ "@dative-gpi/foundation-shared-domain": "0.0.6",
13
+ "@dative-gpi/foundation-shared-services": "0.0.6",
14
+ "@fontsource/montserrat": "^5.0.16",
14
15
  "color": "^4.2.3",
15
16
  "vue": "^3.2.0"
16
17
  },
@@ -19,5 +20,5 @@
19
20
  "sass": "^1.69.5",
20
21
  "sass-loader": "^13.3.2"
21
22
  },
22
- "gitHead": "71c09afc7831594e6cc4529c01f1ed761f856929"
23
+ "gitHead": "01028b7e6c5cf14c8092999ccacfd68d08c5d2a9"
23
24
  }
@@ -1,3 +1,25 @@
1
+ .fs-breadcrumbs-label {
2
+ cursor: pointer;
3
+ user-select: none;
4
+ color: var(--fs-breadcrumbs-color);
5
+
6
+ &--disabled {
7
+ color: var(--fs-breadcrumbs-disabled-color) !important;
8
+ }
9
+
10
+ &:hover {
11
+ text-decoration: underline;
12
+ }
13
+
14
+ &:active {
15
+ color: var(--fs-breadcrumbs-active-color) !important;
16
+ }
17
+ }
18
+
19
+ .fs-breadcrumbs-divider {
20
+ margin-bottom: 2px !important;
21
+ }
22
+
1
23
  .v-breadcrumbs {
2
24
  padding: 0 !important;
3
25
  gap: 8px !important;
@@ -6,23 +28,19 @@
6
28
  .v-breadcrumbs-item {
7
29
  padding: 0 !important;
8
30
 
31
+ &--disabled {
32
+ opacity: 1 !important;
33
+ color: var(--fs-breadcrumbs-disabled-color) !important;
34
+ }
35
+
9
36
  &:last-child > .fs-breadcrumbs-label--disabled {
10
37
  @extend .text-button;
11
38
 
12
- color: var(--fs-breadcrumbs-light-text) !important;
39
+ color: var(--fs-breadcrumbs-active-color) !important;
13
40
  }
14
41
  }
15
42
 
16
43
  .v-breadcrumbs-divider {
17
44
  padding: 0 !important;
18
- color: var(--fs-breadcrumbs-base-text) !important;
19
- }
20
-
21
- .fs-breadcrumbs-label {
22
- cursor: pointer;
23
- color: var(--fs-breadcrumbs-base-text) !important;
24
-
25
- &:hover {
26
- color: var(--fs-breadcrumbs-dark-text) !important;
27
- }
45
+ color: var(--fs-breadcrumbs-color) !important;
28
46
  }
@@ -1,19 +1,26 @@
1
1
  .fs-button {
2
2
  padding: var(--fs-button-padding) !important;
3
3
  border-radius: 4px !important;
4
+ border: 1px solid !important;
4
5
  box-shadow: none !important;
5
- border: 1px solid var(--fs-button-base-color) !important;
6
- background-color: var(--fs-button-light-color) !important;
7
- color: var(--fs-button-light-text) !important;
6
+
7
+ background-color: var(--fs-button-background-color) !important;
8
+ border-color: var(--fs-button-border-color) !important;
9
+ color: var(--fs-button-color) !important;
8
10
 
9
- &:hover {
10
- background-color: var(--fs-button-base-color) !important;
11
- color: var(--fs-button-base-text) !important;
11
+ &.fs-button--disabled {
12
+ cursor: default !important;
12
13
  }
13
14
 
14
- &:active {
15
- border-color: var(--fs-button-dark-color) !important;
16
- background-color: var(--fs-button-dark-color) !important;
15
+ &:not(.fs-button--disabled):hover {
16
+ background-color: var(--fs-button-hover-background-color) !important;
17
+ color: var(--fs-button-hover-color) !important;
18
+ }
19
+
20
+ &:not(.fs-button--disabled):active {
21
+ background-color: var(--fs-button-active-background-color) !important;
22
+ border-color: var(--fs-button-active-border-color) !important;
23
+ color: var(--fs-button-active-color) !important;
17
24
  }
18
25
 
19
26
  @include web {
@@ -25,4 +32,24 @@
25
32
  min-width: 36px !important;
26
33
  height: 36px !important;
27
34
  }
35
+ }
36
+
37
+ .fs-button-icon {
38
+ transition: color 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
39
+ color: var(--fs-button-color) !important;
40
+
41
+ &:not(.fs-button--disabled):hover {
42
+ color: var(--fs-button-hover-color) !important;
43
+ cursor: pointer !important;
44
+ }
45
+
46
+ @include web {
47
+ width: 24px !important;
48
+ height: 24px !important;
49
+ }
50
+
51
+ @include mobile {
52
+ width: 18px !important;
53
+ height: 18px !important;
54
+ }
28
55
  }
@@ -1,15 +1,14 @@
1
1
  .fs-checkbox {
2
2
  cursor: var(--fs-checkbox-cursor) !important;
3
- color: var(--fs-checkbox-base-color);
3
+ color: var(--fs-checkbox-checkbox-color) !important;
4
4
  }
5
5
 
6
6
  .fs-checkbox-label {
7
7
  cursor: var(--fs-checkbox-cursor) !important;
8
- color: var(--fs-checkbox-base-text);
9
- height: 20px !important;
8
+ color: var(--fs-checkbox-color) !important;
10
9
  user-select: none;
11
10
  }
12
11
 
13
12
  .fs-checkbox-description {
14
- color: var(--fs-checkbox-base-text);
13
+ color: var(--fs-checkbox-color) !important;
15
14
  }