@teammodlr/ui-kit 2.0.9 → 2.0.13
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/lib/components/badge/style/Badge.css.d.ts +2 -2
- package/lib/components/button/style/Button.css.d.ts +3 -3
- package/lib/components/dropdown/Dropdown.vue.d.ts +2 -8
- package/lib/components/index.d.ts +1 -0
- package/lib/index.cjs.js +4 -4
- package/lib/index.d.ts +1 -0
- package/lib/index.es.js +2741 -2942
- package/lib/style.css +1 -1
- package/lib/styles/theme.css.d.ts +20 -0
- package/lib/types/props.d.ts +1 -1
- package/package.json +1 -1
- package/src/__storybook__/argTypes.ts +1 -0
- package/src/components/badge/style/Badge.css.ts +12 -0
- package/src/components/button/examples/variants-secondary.vue +3 -0
- package/src/components/button/examples/variants.vue +3 -0
- package/src/components/button/style/Button.css.ts +67 -10
- package/src/components/checkbox/style/Checkbox.css.ts +13 -1
- package/src/components/dropdown/Dropdown.vue +24 -21
- package/src/components/dropdown/examples/basic.vue +0 -1
- package/src/components/dropdown/examples/index.stories.ts +5 -2
- package/src/components/dropdown/style/Dropdown.css.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/input/style/Input.css.ts +1 -0
- package/src/components/messageprovider/style/Message.css.ts +2 -2
- package/src/components/modal/style/Modal.css.ts +7 -5
- package/src/components/table/style/Table.css.ts +4 -4
- package/src/index.ts +1 -0
- package/src/styles/theme.css.ts +31 -10
- package/src/types/props.ts +1 -1
|
@@ -76,7 +76,7 @@ export const header = style({
|
|
|
76
76
|
justifyContent: "space-between",
|
|
77
77
|
alignItems: "flex-start",
|
|
78
78
|
padding: `${themeVars.space[4]} ${themeVars.space[4]} 0 ${themeVars.space[4]}`,
|
|
79
|
-
flexShrink: "0"
|
|
79
|
+
flexShrink: "0",
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
export const title = style({
|
|
@@ -84,7 +84,8 @@ export const title = style({
|
|
|
84
84
|
fontSize: `${themeVars.fontSize.xlarge}`,
|
|
85
85
|
fontWeight: "500",
|
|
86
86
|
display: "flex",
|
|
87
|
-
alignItems: "center"
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
color: themeVars.color.font.default
|
|
88
89
|
});
|
|
89
90
|
|
|
90
91
|
export const close = style([
|
|
@@ -102,10 +103,10 @@ export const close = style([
|
|
|
102
103
|
borderRadius: themeVars.rounded.full,
|
|
103
104
|
marginLeft: themeVars.space[2],
|
|
104
105
|
':hover': {
|
|
105
|
-
backgroundColor: themeVars.color.gray[
|
|
106
|
+
backgroundColor: themeVars.color.gray[150],
|
|
106
107
|
},
|
|
107
108
|
':focus': {
|
|
108
|
-
backgroundColor: themeVars.color.gray[
|
|
109
|
+
backgroundColor: themeVars.color.gray[150]
|
|
109
110
|
},
|
|
110
111
|
'::before': {
|
|
111
112
|
content: '""',
|
|
@@ -138,7 +139,8 @@ export const body = style({
|
|
|
138
139
|
padding: `${themeVars.space[4]}`,
|
|
139
140
|
display: "flex",
|
|
140
141
|
flexDirection: "column",
|
|
141
|
-
flexGrow: "1"
|
|
142
|
+
flexGrow: "1",
|
|
143
|
+
color: themeVars.color.font.text
|
|
142
144
|
});
|
|
143
145
|
|
|
144
146
|
export const footer = style({
|
|
@@ -27,7 +27,7 @@ export const hoverable = style({});
|
|
|
27
27
|
export const striped = style({});
|
|
28
28
|
|
|
29
29
|
globalStyle(`${striped} tbody tr:nth-child(even)`, {
|
|
30
|
-
backgroundColor: themeVars.color.gray[
|
|
30
|
+
backgroundColor: themeVars.color.gray[100],
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
globalStyle(`${table} tbody:before`, {
|
|
@@ -41,8 +41,8 @@ globalStyle(`${table} th`, {
|
|
|
41
41
|
height: vars.headerHeight,
|
|
42
42
|
padding: vars.cellPadding,
|
|
43
43
|
textAlign: "left",
|
|
44
|
-
backgroundColor: themeVars.color.gray[
|
|
45
|
-
color: themeVars.color.gray[
|
|
44
|
+
backgroundColor: themeVars.color.gray[200],
|
|
45
|
+
color: themeVars.color.gray[700],
|
|
46
46
|
fontWeight: 500,
|
|
47
47
|
fontSize: themeVars.fontSize.base,
|
|
48
48
|
marginBottom: "5px"
|
|
@@ -77,5 +77,5 @@ globalStyle(`${table} td`, {
|
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
globalStyle(`${hoverable} tr:hover td`, {
|
|
80
|
-
backgroundColor: themeVars.color.gray[
|
|
80
|
+
backgroundColor: themeVars.color.gray[150],
|
|
81
81
|
});
|
package/src/index.ts
CHANGED
package/src/styles/theme.css.ts
CHANGED
|
@@ -66,18 +66,25 @@ export const transitionsVariants = styleVariants(transitions, (transition) => ({
|
|
|
66
66
|
|
|
67
67
|
export const themeVars = createGlobalTheme(':root', {
|
|
68
68
|
color: {
|
|
69
|
+
font: {
|
|
70
|
+
default: '#1F2328',
|
|
71
|
+
muted: '#656d76',
|
|
72
|
+
subtle: '#6e7781',
|
|
73
|
+
text: '#24292f'
|
|
74
|
+
},
|
|
69
75
|
gray: {
|
|
70
76
|
50: 'hsl(0,0%,98%)',
|
|
71
|
-
100: '
|
|
72
|
-
150: '
|
|
73
|
-
200: '
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
100: '#f6f8fa',
|
|
78
|
+
150: '#f2f3f5',
|
|
79
|
+
200: '#eaeef2',
|
|
80
|
+
250: '#f3f4f6',
|
|
81
|
+
300: '#d0d7de',
|
|
82
|
+
400: '#afb8c1',
|
|
83
|
+
500: '#8c959f',
|
|
84
|
+
600: '#6e7781',
|
|
85
|
+
700: '#57606a',
|
|
86
|
+
800: '#424a53',
|
|
87
|
+
900: '#32383f',
|
|
81
88
|
},
|
|
82
89
|
blue: {
|
|
83
90
|
50: 'hsl(214,100%,96.9%)',
|
|
@@ -128,6 +135,19 @@ export const themeVars = createGlobalTheme(':root', {
|
|
|
128
135
|
900: 'hsl(164,85.7%,16.5%)',
|
|
129
136
|
},
|
|
130
137
|
primary: 'hsl(217,91.2%,59.8%)',
|
|
138
|
+
saxe: {
|
|
139
|
+
50: '#D0D4E9',
|
|
140
|
+
100: '#C1C5E2',
|
|
141
|
+
200: '#A1A8D3',
|
|
142
|
+
300: '#828CC4',
|
|
143
|
+
400: '#636FB6',
|
|
144
|
+
500: '#4B57A0',
|
|
145
|
+
600: '#3C4680',
|
|
146
|
+
700: '#2E3561',
|
|
147
|
+
800: '#1F2442',
|
|
148
|
+
900: '#14172A',
|
|
149
|
+
950: '#0E101E'
|
|
150
|
+
}
|
|
131
151
|
},
|
|
132
152
|
space: spaceScale,
|
|
133
153
|
fontSize: fontSizeScale,
|
|
@@ -142,6 +162,7 @@ globalStyle("*", {
|
|
|
142
162
|
|
|
143
163
|
globalStyle("html, body", {
|
|
144
164
|
fontFamily: fonts.INTER.name,
|
|
165
|
+
color: themeVars.color.font.default
|
|
145
166
|
});
|
|
146
167
|
|
|
147
168
|
globalStyle("strong, h1, h2, h3, h4, h5, h6", {
|
package/src/types/props.ts
CHANGED
|
@@ -2,4 +2,4 @@ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
2
2
|
|
|
3
3
|
export type Color = 'white' | 'black' | 'blue' | 'green' | 'red' | 'yellow' | 'gray';
|
|
4
4
|
|
|
5
|
-
export type Variant = 'default' | 'tertiary' | 'primary' | 'success' | 'warning' | 'error';
|
|
5
|
+
export type Variant = 'default' | 'tertiary' | 'primary' | 'dark' | 'success' | 'warning' | 'error';
|