mediacube-ui-v2 0.0.47 → 0.0.49
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/README.md +66 -19
- package/README.template.md +66 -19
- package/dist/assets/iconsSprite.svg +1 -1
- package/dist/mediacube-ui-v2.js +10076 -10063
- package/dist/mediacube-ui-v2.umd.cjs +4 -4
- package/dist/types/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +3 -3
- package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +3 -3
- package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +5 -5
- package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +3 -3
- package/dist/types/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +1 -1
- package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +3 -3
- package/dist/types/components/patterns/McTab/McTab.vue.d.ts +6 -6
- package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +3 -3
- package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +3 -3
- package/dist/types/types/styles/Icons.d.ts +0 -1
- package/package.json +4 -5
- package/dist/assets/fonts/inter/Inter-Bold.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Bold.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Italic.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Italic.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Medium.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Medium.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-Regular.woff +0 -0
- package/dist/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- package/dist/assets/fonts/inter/Inter-SemiBold.woff +0 -0
- package/dist/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/inter/inter.css +0 -44
package/README.md
CHANGED
|
@@ -94,7 +94,6 @@ TypeScript cannot handle type information for `.vue` imports by default, so we r
|
|
|
94
94
|
**SVG example:**
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
98
97
|
<svg
|
|
99
98
|
data-token-name="check"
|
|
100
99
|
width="24px"
|
|
@@ -113,24 +112,72 @@ TypeScript cannot handle type information for `.vue` imports by default, so we r
|
|
|
113
112
|
|
|
114
113
|
Make sure to specify the `data-token-name` attribute.
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
115
|
+
## Variables
|
|
116
|
+
Variables used to build DS styles. Available for use in your project
|
|
117
|
+
|
|
118
|
+
For global use:
|
|
119
|
+
```scss
|
|
120
|
+
@use mediacube-ui-v2/variables as *;
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### For each component use tokens
|
|
124
|
+
|
|
125
|
+
```scss
|
|
126
|
+
//For example
|
|
127
|
+
<style lang="scss">
|
|
128
|
+
@use 'mediacube-ui-v2/tokens/colors' as colors;
|
|
129
|
+
|
|
130
|
+
.class-name {
|
|
131
|
+
&__background {
|
|
132
|
+
background: colors.$color-red;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The following tokens are available:
|
|
139
|
+
|
|
140
|
+
- animations
|
|
141
|
+
- border-radius
|
|
142
|
+
- box-shadows
|
|
143
|
+
- colors
|
|
144
|
+
- durations
|
|
145
|
+
- easings
|
|
146
|
+
- font-families
|
|
147
|
+
- font-sizes
|
|
148
|
+
- font-weights
|
|
149
|
+
- gradients
|
|
150
|
+
- letter-spacing
|
|
151
|
+
- line-height
|
|
152
|
+
- media-queries
|
|
153
|
+
- opacities
|
|
154
|
+
- sizes
|
|
155
|
+
- spacings
|
|
156
|
+
- z-indexes
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### For each component use style helpers
|
|
160
|
+
|
|
161
|
+
```scss
|
|
162
|
+
//For example
|
|
163
|
+
<style lang="scss">
|
|
164
|
+
@use 'mediacube-ui-v2/styles/mixins' as mixins;
|
|
165
|
+
@use 'mediacube-ui-v2/tokens/spacings' as spacings;
|
|
166
|
+
|
|
167
|
+
.class-name {
|
|
168
|
+
&__inner {
|
|
169
|
+
@include mixins.child-indent-bottom(spacings.$space-200);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
</style>
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The following style files are available:
|
|
176
|
+
|
|
177
|
+
- functions
|
|
178
|
+
- mixins
|
|
179
|
+
- spacing
|
|
180
|
+
- toast
|
|
134
181
|
|
|
135
182
|
## Storybook interface support
|
|
136
183
|
|
package/README.template.md
CHANGED
|
@@ -94,7 +94,6 @@ TypeScript cannot handle type information for `.vue` imports by default, so we r
|
|
|
94
94
|
**SVG example:**
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
98
97
|
<svg
|
|
99
98
|
data-token-name="check"
|
|
100
99
|
width="24px"
|
|
@@ -113,24 +112,72 @@ TypeScript cannot handle type information for `.vue` imports by default, so we r
|
|
|
113
112
|
|
|
114
113
|
Make sure to specify the `data-token-name` attribute.
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
115
|
+
## Variables
|
|
116
|
+
Variables used to build DS styles. Available for use in your project
|
|
117
|
+
|
|
118
|
+
For global use:
|
|
119
|
+
```scss
|
|
120
|
+
@use mediacube-ui-v2/variables as *;
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### For each component use tokens
|
|
124
|
+
|
|
125
|
+
```scss
|
|
126
|
+
//For example
|
|
127
|
+
<style lang="scss">
|
|
128
|
+
@use 'mediacube-ui-v2/tokens/colors' as colors;
|
|
129
|
+
|
|
130
|
+
.class-name {
|
|
131
|
+
&__background {
|
|
132
|
+
background: colors.$color-red;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The following tokens are available:
|
|
139
|
+
|
|
140
|
+
- animations
|
|
141
|
+
- border-radius
|
|
142
|
+
- box-shadows
|
|
143
|
+
- colors
|
|
144
|
+
- durations
|
|
145
|
+
- easings
|
|
146
|
+
- font-families
|
|
147
|
+
- font-sizes
|
|
148
|
+
- font-weights
|
|
149
|
+
- gradients
|
|
150
|
+
- letter-spacing
|
|
151
|
+
- line-height
|
|
152
|
+
- media-queries
|
|
153
|
+
- opacities
|
|
154
|
+
- sizes
|
|
155
|
+
- spacings
|
|
156
|
+
- z-indexes
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### For each component use style helpers
|
|
160
|
+
|
|
161
|
+
```scss
|
|
162
|
+
//For example
|
|
163
|
+
<style lang="scss">
|
|
164
|
+
@use 'mediacube-ui-v2/styles/mixins' as mixins;
|
|
165
|
+
@use 'mediacube-ui-v2/tokens/spacings' as spacings;
|
|
166
|
+
|
|
167
|
+
.class-name {
|
|
168
|
+
&__inner {
|
|
169
|
+
@include mixins.child-indent-bottom(spacings.$space-200);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
</style>
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The following style files are available:
|
|
176
|
+
|
|
177
|
+
- functions
|
|
178
|
+
- mixins
|
|
179
|
+
- spacing
|
|
180
|
+
- toast
|
|
134
181
|
|
|
135
182
|
## Storybook interface support
|
|
136
183
|
|