@ambita/design-system 3.0.27-311.0 → 3.0.27-331.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aux.common.js +327 -327
- package/dist/aux.common.js.map +1 -1
- package/dist/aux.umd.js +327 -327
- package/dist/aux.umd.js.map +1 -1
- package/dist/aux.umd.min.js +5 -5
- package/dist/aux.umd.min.js.map +1 -1
- package/dist/css/mixins.scss +26 -1
- package/dist/types/components/ValidationWrapper/ValidationWrapper.stories.d.ts +8 -0
- package/package.json +1 -1
package/dist/css/mixins.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$aux-focus-indicator-style: 0 0 0 3px $aux-white, 0 0 0
|
|
1
|
+
$aux-focus-indicator-style: 0 0 0 3px $aux-white, 0 0 0 6px $aux-focus;
|
|
2
2
|
|
|
3
3
|
@mixin aux-focus-indicator {
|
|
4
4
|
outline: none;
|
|
@@ -11,10 +11,17 @@ $aux-focus-indicator-style: 0 0 0 3px $aux-white, 0 0 0 7px $aux-focus;
|
|
|
11
11
|
&:focus {
|
|
12
12
|
box-shadow: $aux-focus-indicator-style;
|
|
13
13
|
}
|
|
14
|
+
|
|
14
15
|
&:focus-visible {
|
|
15
16
|
/* This has to be slightly different from the focus rule above. */
|
|
16
17
|
box-shadow: $aux-focus-indicator-style, 0 0 0 0px transparent;
|
|
17
18
|
}
|
|
19
|
+
|
|
20
|
+
.aux-validation-wrapper--haserror &:focus-visible {
|
|
21
|
+
/* This has to be slightly different from the focus rule above. */
|
|
22
|
+
box-shadow: 0 0 0px 1px #ac1631, $aux-focus-indicator-style, 0 0 0 0px transparent;
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
&:focus:not(:focus-visible) {
|
|
19
26
|
box-shadow: none;
|
|
20
27
|
}
|
|
@@ -35,3 +42,21 @@ $aux-focus-indicator-style: 0 0 0 3px $aux-white, 0 0 0 7px $aux-focus;
|
|
|
35
42
|
@include aux-visually-hidden;
|
|
36
43
|
}
|
|
37
44
|
}
|
|
45
|
+
|
|
46
|
+
@mixin aux-input-error {
|
|
47
|
+
.aux-validation-wrapper--haserror & {
|
|
48
|
+
border-color: $aux-red;
|
|
49
|
+
box-shadow: 0 0 0px 1px #ac1631;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin aux-input-radio-checkbox-error {
|
|
54
|
+
.aux-validation-wrapper--haserror input + label::before {
|
|
55
|
+
border-color: $aux-red;
|
|
56
|
+
box-shadow: 0 0 0px 1px #ac1631;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.aux-validation-wrapper--haserror input:focus-visible + label::before {
|
|
60
|
+
box-shadow: 0 0 0px 1px #ac1631, $aux-focus-indicator-style;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story } from '@storybook/vue3';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
argTypes: {};
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const ValidationWrapper: Story<import("@storybook/vue3").Args>;
|