@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.
Files changed (100) hide show
  1. package/dist/CdsAccordion/index.js +2 -2
  2. package/dist/CdsAccordion/styles.css +1 -1
  3. package/dist/CdsBreadcrumbs/index.js +2 -2
  4. package/dist/CdsBreadcrumbs/styles.css +1 -1
  5. package/dist/CdsButton/index.js +2 -2
  6. package/dist/CdsButton/styles.css +1 -1
  7. package/dist/CdsCheckbox/index.js +2 -2
  8. package/dist/CdsCheckbox/styles.css +1 -1
  9. package/dist/CdsCombobox/index.js +2 -2
  10. package/dist/CdsCombobox/styles.css +1 -1
  11. package/dist/CdsContainer/index.js +2 -2
  12. package/dist/CdsContainer/styles.css +1 -1
  13. package/dist/CdsContentSwitcher/index.js +2 -2
  14. package/dist/CdsContentSwitcher/styles.css +3 -3
  15. package/dist/CdsDataTable/index.js +2 -2
  16. package/dist/CdsDataTable/styles.css +1 -1
  17. package/dist/CdsDatePicker/index.js +4 -4
  18. package/dist/CdsDatePicker/styles.css +1 -1
  19. package/dist/CdsDrawer/index.js +2 -2
  20. package/dist/CdsDrawer/styles.css +2 -2
  21. package/dist/CdsDropdown/index.js +2 -2
  22. package/dist/CdsDropdown/styles.css +1 -1
  23. package/dist/CdsEmptyState/index.js +2 -2
  24. package/dist/CdsEmptyState/styles.css +1 -1
  25. package/dist/CdsForm/index.js +2 -2
  26. package/dist/CdsForm/styles.css +2 -2
  27. package/dist/CdsGrid/index.js +2 -2
  28. package/dist/CdsGrid/styles.css +1 -1
  29. package/dist/CdsIcon/index.js +2 -2
  30. package/dist/CdsIcon/styles.css +1 -1
  31. package/dist/CdsImage/index.js +2 -2
  32. package/dist/CdsImage/styles.css +1 -1
  33. package/dist/CdsInput/index.js +2 -2
  34. package/dist/CdsInput/styles.css +1 -1
  35. package/dist/CdsLink/index.js +2 -2
  36. package/dist/CdsLink/styles.css +1 -1
  37. package/dist/CdsList/index.js +2 -2
  38. package/dist/CdsList/styles.css +1 -1
  39. package/dist/CdsLoading/index.js +2 -2
  40. package/dist/CdsLoading/styles.css +1 -1
  41. package/dist/CdsModal/index.js +2 -2
  42. package/dist/CdsModal/styles.css +4 -4
  43. package/dist/CdsMultiselect/index.js +2 -2
  44. package/dist/CdsMultiselect/styles.css +1 -1
  45. package/dist/CdsNotification/index.js +2 -2
  46. package/dist/CdsNotification/styles.css +4 -4
  47. package/dist/CdsOverflowMenu/index.js +2 -2
  48. package/dist/CdsOverflowMenu/styles.css +4 -4
  49. package/dist/CdsPagination/index.js +2 -2
  50. package/dist/CdsPagination/styles.css +1 -1
  51. package/dist/CdsRadioButton/index.js +2 -2
  52. package/dist/CdsRadioButton/styles.css +1 -1
  53. package/dist/CdsSearch/index.js +2 -2
  54. package/dist/CdsSearch/styles.css +1 -1
  55. package/dist/CdsSelect/index.js +2 -2
  56. package/dist/CdsSelect/styles.css +1 -1
  57. package/dist/CdsSkeleton/index.js +2 -2
  58. package/dist/CdsSkeleton/styles.css +1 -1
  59. package/dist/CdsStages/index.js +2 -2
  60. package/dist/CdsStages/styles.css +1 -1
  61. package/dist/CdsStatus/index.js +2 -2
  62. package/dist/CdsStatus/styles.css +3 -3
  63. package/dist/CdsSteps/index.js +2 -2
  64. package/dist/CdsSteps/styles.css +3 -3
  65. package/dist/CdsTable/index.js +2 -2
  66. package/dist/CdsTable/styles.css +2 -2
  67. package/dist/CdsTabs/index.js +2 -2
  68. package/dist/CdsTabs/styles.css +1 -1
  69. package/dist/CdsTag/index.js +2 -2
  70. package/dist/CdsTag/styles.css +1 -1
  71. package/dist/CdsTextArea/index.js +2 -2
  72. package/dist/CdsTextArea/styles.css +1 -1
  73. package/dist/CdsTextInput/index.js +2 -2
  74. package/dist/CdsTextInput/styles.css +1 -1
  75. package/dist/CdsToggle/index.js +2 -2
  76. package/dist/CdsToggle/styles.css +1 -1
  77. package/dist/CdsTooltip/index.js +2 -2
  78. package/dist/CdsTooltip/styles.css +3 -3
  79. package/dist/CdsUploader/index.js +3 -3
  80. package/dist/CdsUploader/styles.css +1 -1
  81. package/dist/cds.css +8 -8
  82. package/dist/cds.js +2911 -1779
  83. package/dist/cds.min.css +2 -2
  84. package/dist/cds.min.js +5 -5
  85. package/dist/types/CdsBreadcrumbs.ts +1 -1
  86. package/dist/types/CdsButton.ts +2 -2
  87. package/dist/types/CdsCombobox.ts +1 -1
  88. package/dist/types/CdsContainer.ts +2 -2
  89. package/dist/types/CdsContentSwitcherButton.ts +1 -1
  90. package/dist/types/CdsDataTable.ts +2 -2
  91. package/dist/types/CdsDatePicker.ts +2 -2
  92. package/dist/types/CdsModal.ts +1 -1
  93. package/dist/types/CdsNotification.ts +2 -2
  94. package/dist/types/CdsStatus.ts +4 -4
  95. package/dist/types/CdsSteps.ts +1 -1
  96. package/dist/types/CdsTable.ts +4 -2
  97. package/dist/types/CdsTabs.ts +1 -1
  98. package/dist/types/CdsTag.ts +2 -2
  99. package/dist/types/CdsTooltip.ts +4 -2
  100. package/package.json +7 -5
@@ -1,6 +1,6 @@
1
1
  import { Component, Prop, Vue } from 'vue-property-decorator';
2
2
 
3
- type BreadcrumbsItem = {
3
+ export type BreadcrumbsItem = {
4
4
  text: string;
5
5
  to: string;
6
6
  }
@@ -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,7 +1,7 @@
1
1
  import { Component, Prop, Vue } from 'vue-property-decorator';
2
2
  import { PropType } from 'vue';
3
3
 
4
- type ComboboxOption = {
4
+ export type ComboboxOption = {
5
5
  name: string;
6
6
  value: string | number;
7
7
  }
@@ -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 {
@@ -1,7 +1,7 @@
1
1
  import { Component, Prop, Vue } from 'vue-property-decorator';
2
2
  import { PropType } from 'vue';
3
3
 
4
- type ModalSize = 'sm' | 'md' | 'lg';
4
+ export type ModalSize = 'sm' | 'md' | 'lg';
5
5
 
6
6
  @Component('CdsModal')
7
7
  export default class CdsModal 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 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 {
@@ -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 {
@@ -1,7 +1,7 @@
1
1
  import { Component, Prop, Vue } from 'vue-property-decorator';
2
2
  import { PropType } from 'vue';
3
3
 
4
- type Steps = {
4
+ export type Steps = {
5
5
  label: string;
6
6
  description?: string;
7
7
  error?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { Component, Prop, Vue } from 'vue-property-decorator';
2
2
  import { PropType } from 'vue';
3
3
 
4
- type tableRowSize = 'standard' | 'short';
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: String as PropType<tableRowSize>, default: 'standard' }) public rowSize?: tableRowSize;
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
 
@@ -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 {
@@ -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 {
@@ -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.8.0",
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.10.4",
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.8.2",
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-loader": "^8.0.2",
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",