@central-design-system/components 2.8.0 → 2.10.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/dist/CdsAccordion/index.js +2 -2
- package/dist/CdsAccordion/styles.css +1 -1
- package/dist/CdsBreadcrumbs/index.js +2 -2
- package/dist/CdsBreadcrumbs/styles.css +1 -1
- package/dist/CdsButton/index.js +2 -2
- package/dist/CdsButton/styles.css +1 -1
- package/dist/CdsCheckbox/index.js +2 -2
- package/dist/CdsCheckbox/styles.css +1 -1
- package/dist/CdsCombobox/index.js +2 -2
- package/dist/CdsCombobox/styles.css +1 -1
- package/dist/CdsContainer/index.js +2 -2
- package/dist/CdsContainer/styles.css +1 -1
- package/dist/CdsContentSwitcher/index.js +2 -2
- package/dist/CdsContentSwitcher/styles.css +3 -3
- package/dist/CdsDataTable/index.js +2 -2
- package/dist/CdsDataTable/styles.css +1 -1
- package/dist/CdsDatePicker/index.js +4 -4
- package/dist/CdsDatePicker/styles.css +1 -1
- package/dist/CdsDrawer/index.js +2 -2
- package/dist/CdsDrawer/styles.css +2 -2
- package/dist/CdsDropdown/index.js +2 -2
- package/dist/CdsDropdown/styles.css +1 -1
- package/dist/CdsEmptyState/index.js +2 -2
- package/dist/CdsEmptyState/styles.css +1 -1
- package/dist/CdsForm/index.js +2 -2
- package/dist/CdsForm/styles.css +2 -2
- package/dist/CdsGrid/index.js +2 -2
- package/dist/CdsGrid/styles.css +1 -1
- package/dist/CdsIcon/index.js +2 -2
- package/dist/CdsIcon/styles.css +1 -1
- package/dist/CdsImage/index.js +2 -2
- package/dist/CdsImage/styles.css +1 -1
- package/dist/CdsInput/index.js +2 -2
- package/dist/CdsInput/styles.css +1 -1
- package/dist/CdsLink/index.js +2 -2
- package/dist/CdsLink/styles.css +1 -1
- package/dist/CdsList/index.js +2 -2
- package/dist/CdsList/styles.css +1 -1
- package/dist/CdsLoading/index.js +2 -2
- package/dist/CdsLoading/styles.css +1 -1
- package/dist/CdsModal/index.js +2 -2
- package/dist/CdsModal/styles.css +4 -4
- package/dist/CdsMultiselect/index.js +2 -2
- package/dist/CdsMultiselect/styles.css +1 -1
- package/dist/CdsNotification/index.js +2 -2
- package/dist/CdsNotification/styles.css +4 -4
- package/dist/CdsOverflowMenu/index.js +2 -2
- package/dist/CdsOverflowMenu/styles.css +4 -4
- package/dist/CdsPagination/index.js +2 -2
- package/dist/CdsPagination/styles.css +1 -1
- package/dist/CdsRadioButton/index.js +2 -2
- package/dist/CdsRadioButton/styles.css +1 -1
- package/dist/CdsSearch/index.js +2 -2
- package/dist/CdsSearch/styles.css +1 -1
- package/dist/CdsSelect/index.js +2 -2
- package/dist/CdsSelect/styles.css +1 -1
- package/dist/CdsSkeleton/index.js +2 -2
- package/dist/CdsSkeleton/styles.css +1 -1
- package/dist/CdsStages/index.js +2 -2
- package/dist/CdsStages/styles.css +1 -1
- package/dist/CdsStatus/index.js +2 -2
- package/dist/CdsStatus/styles.css +3 -3
- package/dist/CdsSteps/index.js +2 -2
- package/dist/CdsSteps/styles.css +3 -3
- package/dist/CdsTable/index.js +2 -2
- package/dist/CdsTable/styles.css +2 -2
- package/dist/CdsTabs/index.js +2 -2
- package/dist/CdsTabs/styles.css +1 -1
- package/dist/CdsTag/index.js +2 -2
- package/dist/CdsTag/styles.css +1 -1
- package/dist/CdsTextArea/index.js +2 -2
- package/dist/CdsTextArea/styles.css +1 -1
- package/dist/CdsTextInput/index.js +2 -2
- package/dist/CdsTextInput/styles.css +1 -1
- package/dist/CdsToggle/index.js +2 -2
- package/dist/CdsToggle/styles.css +1 -1
- package/dist/CdsTooltip/index.js +2 -2
- package/dist/CdsTooltip/styles.css +3 -3
- package/dist/CdsUploader/index.js +3 -3
- package/dist/CdsUploader/styles.css +1 -1
- package/dist/cds.css +8 -8
- package/dist/cds.js +2911 -1779
- package/dist/cds.min.css +2 -2
- package/dist/cds.min.js +5 -5
- package/dist/types/CdsBreadcrumbs.ts +1 -1
- package/dist/types/CdsButton.ts +2 -2
- package/dist/types/CdsCombobox.ts +1 -1
- package/dist/types/CdsContainer.ts +2 -2
- package/dist/types/CdsContentSwitcherButton.ts +1 -1
- package/dist/types/CdsDataTable.ts +2 -2
- package/dist/types/CdsDatePicker.ts +2 -2
- package/dist/types/CdsModal.ts +1 -1
- package/dist/types/CdsNotification.ts +2 -2
- package/dist/types/CdsStatus.ts +4 -4
- package/dist/types/CdsSteps.ts +1 -1
- package/dist/types/CdsTable.ts +4 -2
- package/dist/types/CdsTabs.ts +1 -1
- package/dist/types/CdsTag.ts +2 -2
- package/dist/types/CdsTooltip.ts +4 -2
- package/package.json +7 -5
package/dist/types/CdsButton.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type ButtonAppearance = 'primary' | 'secondary' | 'transparent';
|
|
5
|
-
type ButtonSize = 'md' | 'lg' | 'xl';
|
|
4
|
+
export type ButtonAppearance = 'primary' | 'secondary' | 'transparent';
|
|
5
|
+
export type ButtonSize = 'md' | 'lg' | 'xl';
|
|
6
6
|
|
|
7
7
|
@Component({ name: 'CdsButton' })
|
|
8
8
|
export default class CdsButton extends Vue {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type ContainerType = 'standard' | 'selectable' | 'clickable' | 'expandable';
|
|
5
|
-
type ContainerColor = 'primary' | 'secondary';
|
|
4
|
+
export type ContainerType = 'standard' | 'selectable' | 'clickable' | 'expandable';
|
|
5
|
+
export type ContainerColor = 'primary' | 'secondary';
|
|
6
6
|
|
|
7
7
|
@Component('CdsContainer')
|
|
8
8
|
export default class CdsContainer extends Vue {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type CdsContentSwitcherButtonTooltipAlign = 'start' | 'center' | 'end';
|
|
4
|
+
export type CdsContentSwitcherButtonTooltipAlign = 'start' | 'center' | 'end';
|
|
5
5
|
|
|
6
6
|
@Component('CdsContentSwitcherButton')
|
|
7
7
|
export default class CdsContentSwitcherButton extends Vue {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type TableAlign = 'left' | 'center' | 'right' | 'null';
|
|
5
|
-
type TableRowSize = 'standard' | 'short';
|
|
4
|
+
export type TableAlign = 'left' | 'center' | 'right' | 'null';
|
|
5
|
+
export type TableRowSize = 'standard' | 'short';
|
|
6
6
|
|
|
7
7
|
@Component('CdsDataTable')
|
|
8
8
|
export default class CdsDataTable extends Vue {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type DatePickerType = 'simple' | 'single' | 'range';
|
|
5
|
-
type DatePickerLocale = 'ru' | 'en';
|
|
4
|
+
export type DatePickerType = 'simple' | 'single' | 'range';
|
|
5
|
+
export type DatePickerLocale = 'ru' | 'en';
|
|
6
6
|
|
|
7
7
|
@Component('CdsDatePicker')
|
|
8
8
|
export default class CdsDatePicker extends Vue {
|
package/dist/types/CdsModal.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type NotificationStatus = 'info' | 'warning' | 'success' | 'error';
|
|
5
|
-
type NotificationLevel = 'inline' | 'page';
|
|
4
|
+
export type NotificationStatus = 'info' | 'warning' | 'success' | 'error';
|
|
5
|
+
export type NotificationLevel = 'inline' | 'page';
|
|
6
6
|
|
|
7
7
|
@Component('CdsNotification')
|
|
8
8
|
export default class CdsNotification extends Vue {
|
package/dist/types/CdsStatus.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type StatusVariant = 'primary' | 'secondary';
|
|
5
|
-
type StatusStatus = 'info' | 'warning' | 'success' | 'error' | 'progress';
|
|
6
|
-
type StatusTooltipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
-
type StatusTooltipAlign = 'start' | 'center' | 'end';
|
|
4
|
+
export type StatusVariant = 'primary' | 'secondary';
|
|
5
|
+
export type StatusStatus = 'info' | 'warning' | 'success' | 'error' | 'progress';
|
|
6
|
+
export type StatusTooltipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
+
export type StatusTooltipAlign = 'start' | 'center' | 'end';
|
|
8
8
|
|
|
9
9
|
@Component('CdsStatus')
|
|
10
10
|
export default class CdsStatus extends Vue {
|
package/dist/types/CdsSteps.ts
CHANGED
package/dist/types/CdsTable.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
export type TableRowSize = 'standard' | 'short';
|
|
5
5
|
|
|
6
6
|
@Component('CdsTable')
|
|
7
7
|
export default class CdsStatus extends Vue {
|
|
@@ -35,7 +35,9 @@ export default class CdsStatus extends Vue {
|
|
|
35
35
|
|
|
36
36
|
@Prop({ type: String, default: null }) public treeKey?: string | null;
|
|
37
37
|
|
|
38
|
-
@Prop({ type:
|
|
38
|
+
@Prop({ type: Boolean, default: false }) public defaultOverflow?: boolean;
|
|
39
|
+
|
|
40
|
+
@Prop({ type: String as PropType<TableRowSize>, default: 'standard' }) public rowSize?: TableRowSize;
|
|
39
41
|
|
|
40
42
|
@Prop({ type: Object, default: {} }) public rowSelection?: object;
|
|
41
43
|
|
package/dist/types/CdsTabs.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type Breakpoint = 'sm' | 'md' | 'lg' | 'xlg' | 'max';
|
|
4
|
+
export type Breakpoint = 'sm' | 'md' | 'lg' | 'xlg' | 'max';
|
|
5
5
|
|
|
6
6
|
@Component('CdsTabs')
|
|
7
7
|
export default class CdsTabs extends Vue {
|
package/dist/types/CdsTag.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type TagSize = 'sm' | 'md';
|
|
5
|
-
type TagColor = 'yellow' | 'green' | 'light-blue' | 'blue' | 'deep-purple' | 'purple' | 'pink';
|
|
4
|
+
export type TagSize = 'sm' | 'md';
|
|
5
|
+
export type TagColor = 'yellow' | 'green' | 'light-blue' | 'blue' | 'deep-purple' | 'purple' | 'pink';
|
|
6
6
|
|
|
7
7
|
@Component('CdsTag')
|
|
8
8
|
export default class CdsTag extends Vue {
|
package/dist/types/CdsTooltip.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type TooltipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
-
type TooltipAlign = 'start' | 'center' | 'end';
|
|
4
|
+
export type TooltipDirection = 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
+
export type TooltipAlign = 'start' | 'center' | 'end';
|
|
6
6
|
|
|
7
7
|
@Component('CdsTooltip')
|
|
8
8
|
export default class CdsTooltip extends Vue {
|
|
@@ -13,4 +13,6 @@ export default class CdsTooltip extends Vue {
|
|
|
13
13
|
@Prop({ type: String as PropType<TooltipAlign>, default: 'center' }) public align?: TooltipAlign;
|
|
14
14
|
|
|
15
15
|
@Prop({ type: String, required: true }) public tip: string;
|
|
16
|
+
|
|
17
|
+
@Prop({ type: Boolean, required: false, default: false }) public disabled?: boolean;
|
|
16
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@central-design-system/components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"change-case": "^3.1.0",
|
|
35
35
|
"flatpickr": "^4.6.9",
|
|
36
|
-
"node-sass": "^4.14.1",
|
|
37
36
|
"v-runtime-template": "^1.10.0",
|
|
38
37
|
"vanilla-masker": "^1.2.0",
|
|
39
38
|
"vue": "^2.6.12",
|
|
40
39
|
"vue-upload-component": "^2.8.20"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "^7.
|
|
42
|
+
"@babel/core": "^7.16.0",
|
|
44
43
|
"@vue/babel-preset-app": "^4.5.10",
|
|
45
44
|
"@vue/server-test-utils": "1.0.0-beta.29",
|
|
46
45
|
"@vue/test-utils": "1.2.0",
|
|
47
46
|
"autoprefixer": "^9.6.4",
|
|
47
|
+
"babel-core": "7.0.0-bridge.0",
|
|
48
48
|
"babel-jest": "^24.8.0",
|
|
49
49
|
"babel-loader": "^8.2.2",
|
|
50
50
|
"chalk": "^4.1.0",
|
|
51
51
|
"clean-webpack-plugin": "^3.0.0",
|
|
52
52
|
"copy-webpack-plugin": "^7.0.0",
|
|
53
|
-
"core-js": "^3.
|
|
53
|
+
"core-js": "^3.19.3",
|
|
54
54
|
"cross-env": "^5.2.0",
|
|
55
55
|
"css-loader": "^5.0.1",
|
|
56
56
|
"css-minimizer-webpack-plugin": "^1.2.0",
|
|
@@ -66,7 +66,9 @@
|
|
|
66
66
|
"jest-transform-stub": "^2.0.0",
|
|
67
67
|
"mini-css-extract-plugin": "^1.3.4",
|
|
68
68
|
"postcss-loader": "^3.0.0",
|
|
69
|
-
"sass
|
|
69
|
+
"node-sass": "^6.0.1",
|
|
70
|
+
"sass-loader": "^10.1.0",
|
|
71
|
+
"sass-rem": "^3.0.0",
|
|
70
72
|
"sinon": "^7.3.2",
|
|
71
73
|
"style-loader": "^1.0.0",
|
|
72
74
|
"terser-webpack-plugin": "^5.1.1",
|