@apolitical/component-library 6.6.7 → 6.6.8
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/discussion/components/form/form.helpers.d.ts +1 -1
- package/discussion/feeds/activities-feed/cache/hooks/create-poll/create-poll.hook.d.ts +2 -3
- package/discussion/feeds/activities-feed/index.d.ts +1 -0
- package/discussion/shared/interfaces/discussion.interface.d.ts +10 -8
- package/form/components/form/components/fields/checkbox/checkbox.d.ts +1 -0
- package/form/components/form/components/fields/input/input.d.ts +1 -0
- package/form/components/form/form.types.d.ts +2 -0
- package/helpers/intl.d.ts +1 -0
- package/index.js +42 -42
- package/index.mjs +4670 -4617
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/form/_fields.scss +10 -0
- package/types/common.d.ts +1 -0
- package/types/index.d.ts +1 -0
|
@@ -8,6 +8,9 @@ $field: (
|
|
|
8
8
|
'border': 1,
|
|
9
9
|
'border-radius': 8,
|
|
10
10
|
);
|
|
11
|
+
$autoresize: (
|
|
12
|
+
'height': 60,
|
|
13
|
+
);
|
|
11
14
|
$character-limit: (
|
|
12
15
|
'padding-bottom': 28,
|
|
13
16
|
);
|
|
@@ -53,7 +56,14 @@ $character-limit: (
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&.autoresize {
|
|
59
|
+
@include transition(height, 0.5s);
|
|
60
|
+
|
|
56
61
|
overflow: hidden;
|
|
62
|
+
|
|
63
|
+
&:empty {
|
|
64
|
+
// This is to override the inline styles for the height
|
|
65
|
+
height: px-to-rem(get-map($autoresize, 'height')) !important;
|
|
66
|
+
}
|
|
57
67
|
}
|
|
58
68
|
|
|
59
69
|
// Remove default styling, for consistency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IObject = Record<string, string | number>;
|
package/types/index.d.ts
CHANGED