@apolitical/component-library 3.0.2-ac.2 → 3.0.2
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/cards/cards.types.d.ts +0 -2
- package/form/components/form/components/fields/checkbox/checkbox.d.ts +1 -1
- package/form/components/form/components/fields/input/input.d.ts +1 -1
- package/form/components/form/form.types.d.ts +1 -1
- package/form/components/password-rules/password-rules.d.ts +1 -1
- package/form/types/index.d.ts +0 -1
- package/general/index.d.ts +0 -1
- package/index.js +18 -18
- package/index.mjs +1945 -2057
- package/layout/page-layout/page-layout.d.ts +0 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_lists.scss +5 -0
- package/styles/base/_titles.scss +14 -0
- package/styles/variables/colors/theme/_base.scss +2 -0
- package/styles/variables/colors/theme/_general.scss +0 -5
- package/form/types/password-form/helper.d.ts +0 -1
- package/form/types/password-form/index.d.ts +0 -2
- package/form/types/password-form/password-form.d.ts +0 -21
- package/general/progress-tracker/index.d.ts +0 -1
- package/general/progress-tracker/progress-tracker.d.ts +0 -9
package/styles/base/_lists.scss
CHANGED
package/styles/base/_titles.scss
CHANGED
|
@@ -5,6 +5,9 @@ $highlight: (
|
|
|
5
5
|
'height': 4,
|
|
6
6
|
'margin-top': 12,
|
|
7
7
|
'border-radius': 8,
|
|
8
|
+
'width_position_horizontal': 4,
|
|
9
|
+
'height_position_horizontal': 24,
|
|
10
|
+
'bottom_position_horizontal': 26,
|
|
8
11
|
);
|
|
9
12
|
$pre-title: (
|
|
10
13
|
'font-size': 14,
|
|
@@ -104,6 +107,17 @@ $count-icon: (
|
|
|
104
107
|
left: 50%;
|
|
105
108
|
transform: translateX(-50%);
|
|
106
109
|
}
|
|
110
|
+
} @else if $align == 'left' {
|
|
111
|
+
padding-left: px-to-rem(
|
|
112
|
+
get-map($highlight, 'height') + get-map($highlight, 'margin-top')
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
&::after {
|
|
116
|
+
width: px-to-rem(get-map($highlight, 'width_position_horizontal'));
|
|
117
|
+
height: px-to-rem(get-map($highlight, 'height_position_horizontal'));
|
|
118
|
+
bottom: px-to-rem(get-map($highlight, 'bottom_position_horizontal'));
|
|
119
|
+
max-height: 100%;
|
|
120
|
+
}
|
|
107
121
|
}
|
|
108
122
|
}
|
|
109
123
|
|
|
@@ -7,7 +7,9 @@ $base: (
|
|
|
7
7
|
background: get-map($c, 'white'),
|
|
8
8
|
highlight_bg: get-map($c, 'g300'),
|
|
9
9
|
title: get-map($c, 'n900'),
|
|
10
|
+
title_secondary: get-map($c, 'p500'),
|
|
10
11
|
subtitle: get-map($c, 'n800'),
|
|
12
|
+
subtitle_secondary: get-map($c, 'n700'),
|
|
11
13
|
text: get-map($c, 'n900'),
|
|
12
14
|
text_error: get-map($c, 'error600'),
|
|
13
15
|
text_line: get-map($c, 'g50'),
|
|
@@ -11,9 +11,4 @@ $general: (
|
|
|
11
11
|
return_to_nav_bg_before_after: get-map($c, 'b700'),
|
|
12
12
|
tooltip: get-map($c, 'white'),
|
|
13
13
|
tooltip_bg: color.adjust(get-map($c, 'n900'), $alpha: -0.1),
|
|
14
|
-
progress_tracker_line_bg: get-map($c, 'n100'),
|
|
15
|
-
progress_tracker_line_bg_active: get-map($c, 'b700'),
|
|
16
|
-
progress_tracker_dot_bg: get-map($c, 'n100'),
|
|
17
|
-
progress_tracker_dot_bg_active: get-map($c, 'white'),
|
|
18
|
-
progress_tracker_dot_bg_completed: get-map($c, 'b700'),
|
|
19
14
|
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateConditions(conditions: any): any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormValues, IFormValues } from '../../components/form/form.types';
|
|
3
|
-
interface Props {
|
|
4
|
-
/** Indicated for whether to show the current password field */
|
|
5
|
-
isPasswordChange?: boolean;
|
|
6
|
-
/** The functions being passed to the form */
|
|
7
|
-
functions: {
|
|
8
|
-
/** The function to call to create the password */
|
|
9
|
-
createPassword: (arg: IFormValues) => Promise<void>;
|
|
10
|
-
/** The function to call when onSuccess fails */
|
|
11
|
-
onCatch?: (error?: unknown) => void;
|
|
12
|
-
/** The function to call when the form submission fails */
|
|
13
|
-
onFailure?: (arg: IFormValues, arg2?: FormValues) => void;
|
|
14
|
-
/** The function to call when the form is successfully submitted */
|
|
15
|
-
onSuccess?: (arg: IFormValues) => Promise<void>;
|
|
16
|
-
/** The function to call when the cancel button is clicked */
|
|
17
|
-
onCancel?: () => void;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
declare const PasswordForm: React.FC<Props>;
|
|
21
|
-
export default PasswordForm;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProgressTracker } from './progress-tracker';
|