@bobbykim/manguito-theme 0.15.0 → 0.16.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/CHANGELOG.md +20 -0
- package/README.md +2 -0
- package/index.d.ts +9 -7
- package/index.js +9 -7
- package/index.ts +20 -10
- package/lib/collapse/Collapse.vue +10 -4
- package/lib/collapse/Collapse.vue.d.ts +7 -7
- package/lib/dropdown/DropdownContainer.vue +10 -5
- package/lib/dropdown/DropdownContainer.vue.d.ts +8 -11
- package/lib/dropdown/DropdownContent.vue +4 -1
- package/lib/dropdown/DropdownContent.vue.d.ts +3 -3
- package/lib/header/HeaderHorizontal.vue +158 -0
- package/lib/header/HeaderHorizontal.vue.d.ts +78 -0
- package/lib/header/HeaderVertical.vue +116 -0
- package/lib/header/HeaderVertical.vue.d.ts +63 -0
- package/lib/header/NavDrawer.vue +121 -0
- package/lib/header/NavDrawer.vue.d.ts +43 -0
- package/lib/header/index.types.d.ts +1 -0
- package/lib/header/index.types.ts +1 -0
- package/lib/modal/Modal.vue +19 -11
- package/lib/modal/Modal.vue.d.ts +14 -14
- package/lib/sidebar/Sidebar.vue +20 -12
- package/lib/sidebar/Sidebar.vue.d.ts +18 -18
- package/package.json +3 -3
- package/theme/index.d.ts +4 -3
- package/theme/index.js +9 -0
- package/theme/index.ts +13 -4
- package/theme/theme.d.ts +2 -1
- package/theme/theme.js +20 -0
- package/theme/theme.ts +24 -4
- package/tsconfig.json +2 -6
- package/tsconfig.ts.json +9 -0
- package/lib/collapse/index.types.d.ts +0 -3
- package/lib/collapse/index.types.ts +0 -3
- /package/lib/{collapse → header}/index.types.js +0 -0
package/theme/theme.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* @Export RDSTheme - an abstract class
|
|
5
5
|
*/
|
|
6
6
|
import type {
|
|
7
|
-
ColorPalette,
|
|
8
|
-
HeadingSize,
|
|
9
7
|
BodyText,
|
|
8
|
+
ColorPalette,
|
|
10
9
|
FontWeight,
|
|
11
|
-
|
|
10
|
+
HeadingSize,
|
|
12
11
|
OpacityRange,
|
|
13
|
-
SpacingLevel,
|
|
14
12
|
Alignment as Position,
|
|
13
|
+
Range,
|
|
14
|
+
SpacingLevel,
|
|
15
15
|
} from './theme.types.js'
|
|
16
16
|
|
|
17
17
|
export type ColorClass = {
|
|
@@ -200,6 +200,26 @@ abstract class MCLTheme {
|
|
|
200
200
|
white: 'hover:text-white',
|
|
201
201
|
transparent: 'hover:text-transparent',
|
|
202
202
|
}
|
|
203
|
+
// focus text color class
|
|
204
|
+
protected static focusTextColor: ColorClass = {
|
|
205
|
+
primary: 'focus:text-primary',
|
|
206
|
+
secondary: 'focus:text-secondary',
|
|
207
|
+
success: 'focus:text-success',
|
|
208
|
+
danger: 'focus:text-danger',
|
|
209
|
+
info: 'focus:text-info',
|
|
210
|
+
warning: 'focus:text-warning',
|
|
211
|
+
'light-1': 'focus:text-light-1',
|
|
212
|
+
'light-2': 'focus:text-light-2',
|
|
213
|
+
'light-3': 'focus:text-light-3',
|
|
214
|
+
'light-4': 'focus:text-light-4',
|
|
215
|
+
'dark-1': 'focus:text-dark-1',
|
|
216
|
+
'dark-2': 'focus:text-dark-2',
|
|
217
|
+
'dark-3': 'focus:text-dark-3',
|
|
218
|
+
'dark-4': 'focus:text-dark-4',
|
|
219
|
+
black: 'focus:text-black',
|
|
220
|
+
white: 'focus:text-white',
|
|
221
|
+
transparent: 'focus:text-transparent',
|
|
222
|
+
}
|
|
203
223
|
// disabled text color class
|
|
204
224
|
protected static disabledTextColor: ColorClass = {
|
|
205
225
|
primary: 'disabled:text-primary',
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../../tsconfig.json",
|
|
3
|
-
"include": ["./**/*.ts"],
|
|
4
|
-
"exclude": ["node_modules", "./**/*.vue.d.ts"
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"declaration": true
|
|
8
|
-
}
|
|
3
|
+
"include": ["./**/*.ts", "./**/*.vue"],
|
|
4
|
+
"exclude": ["node_modules", "./**/*.vue.d.ts"]
|
|
9
5
|
}
|
package/tsconfig.ts.json
ADDED
|
File without changes
|