@castlabs/ui 4.20.4 → 4.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "4.20.4",
3
+ "version": "4.21.0",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for castLabs.",
@@ -38,17 +38,17 @@
38
38
  "devDependencies": {
39
39
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
40
40
  "@vitejs/plugin-vue": "5.2.1",
41
- "@vitest/eslint-plugin": "1.1.24",
41
+ "@vitest/eslint-plugin": "1.1.25",
42
42
  "@vue/cli-plugin-babel": "5.0.8",
43
43
  "@vue/cli-plugin-typescript": "5.0.8",
44
44
  "@vue/cli-plugin-unit-jest": "5.0.8",
45
45
  "@vue/cli-service": "5.0.8",
46
- "@vue/eslint-config-prettier": "10.1.0",
47
- "@vue/eslint-config-typescript": "14.2.0",
46
+ "@vue/eslint-config-prettier": "10.2.0",
47
+ "@vue/eslint-config-typescript": "14.3.0",
48
48
  "@vue/test-utils": "2.4.6",
49
- "core-js": "3.39.0",
49
+ "core-js": "3.40.0",
50
50
  "dree": "5.1.5",
51
- "eslint": "9.17.0",
51
+ "eslint": "9.19.0",
52
52
  "eslint-plugin-import": "2.31.0",
53
53
  "eslint-plugin-n": "17.15.1",
54
54
  "eslint-plugin-promise": "7.2.1",
@@ -58,15 +58,15 @@
58
58
  "gulp-replace": "1.1.4",
59
59
  "npm-run-all": "4.1.5",
60
60
  "prettier": "3.4.2",
61
- "sass": "1.83.1",
61
+ "sass": "1.83.4",
62
62
  "sass-loader": "16.0.4",
63
- "stylelint-config-standard": "36.0.1",
63
+ "stylelint-config-standard": "37.0.0",
64
64
  "stylelint-config-standard-vue": "1.0.0",
65
65
  "stylelint-config-sass-guidelines": "12.1.0",
66
66
  "stylelint-order": "6.0.4",
67
- "stylelint-scss": "6.10.0",
68
- "typescript": "5.7.2",
69
- "vitest": "2.1.8",
67
+ "stylelint-scss": "6.11.0",
68
+ "typescript": "5.7.3",
69
+ "vitest": "3.0.4",
70
70
  "vue": "3.5.13"
71
71
  }
72
72
  }
@@ -18,11 +18,7 @@
18
18
  }
19
19
 
20
20
  .row > [class^='col-'] {
21
- margin-top: 0;
22
-
23
- > .form-label {
24
- margin-top: $spacing-small;
25
- }
21
+ margin-top: $spacing-small;
26
22
  }
27
23
 
28
24
  > :first-child {
@@ -0,0 +1,7 @@
1
+ .cl-section-form {
2
+ padding-top: 0;
3
+
4
+ @include media-breakpoint-up(sm) {
5
+ padding-top: $spacing-small;
6
+ }
7
+ }
@@ -16,15 +16,6 @@
16
16
  margin-top: $spacing-small * 2;
17
17
  }
18
18
 
19
- // // two successive sections of the same bg color loose a bit of gap
20
- // &.cl-section-regular + .cl-section-regular.cl-section-main-side,
21
- // &.cl-section-alternate + .cl-section-alternate.cl-section-main-side,
22
- // &.cl-section-dark + .cl-section-dark.cl-section-main-side,
23
- // &.cl-section-primary + .cl-section-primary.cl-section-main-side,
24
- // &.cl-section-secondary + .cl-section-secondary.cl-section-main-side {
25
- // margin-top: $spacing-small * -2;
26
- // }
27
-
28
19
  @include media-breakpoint-up(lg) {
29
20
  .col-lg-8 {
30
21
  padding-right: $spacing-medium;
@@ -47,14 +38,3 @@
47
38
  }
48
39
  }
49
40
  }
50
-
51
- // .cl-section-regular:not(.cl-section-main-side) + .cl-section-main-side,
52
- // .cl-section-alternate:not(.cl-section-main-side) + .cl-section-main-side {
53
- // margin-top: $spacing-small * -2;
54
- // padding-top: 0;
55
- // }
56
- //
57
- // .cl-section-main-side + section:not(.cl-section-main-side) {
58
- // margin-top: $spacing-small * -1;
59
- // padding-top: 0;
60
- // }
@@ -72,8 +72,13 @@
72
72
  $grid-spacing: $spacing-small;
73
73
 
74
74
  section {
75
- padding-bottom: $spacing-large;
76
- padding-top: $spacing-medium; // first element usually will add the rest.
75
+ padding-bottom: $spacing-small;
76
+ padding-top: 0; // first element usually will add the rest.
77
+
78
+ @include media-breakpoint-up(sm) {
79
+ padding-bottom: $spacing-large;
80
+ padding-top: $spacing-medium; // first element usually will add the rest.
81
+ }
77
82
  }
78
83
 
79
84
  main {
@@ -31,7 +31,9 @@
31
31
  .cl-section-light + .cl-section-light,
32
32
  .cl-section-primary + .cl-section-primary,
33
33
  .cl-section-secondary + .cl-section-secondary {
34
- margin-top: $spacing-small * -3;
34
+ @include media-breakpoint-up(sm) {
35
+ margin-top: $spacing-small * -3;
36
+ }
35
37
  }
36
38
 
37
39
  .cl-section-primary,
@@ -54,6 +54,7 @@ $castlabs-ui-asset-prefix: '..' !default;
54
54
  @import '../components/navigation/ClNavSide/ClNavDrawer/style';
55
55
  @import '../components/navigation/ClNavSide/ClNavSideMenu/style';
56
56
  @import '../components/navigation/ClNavTop/style';
57
+ @import '../components/section/ClSectionForm/style';
57
58
  @import '../components/section/ClSectionHeadline/style';
58
59
  @import '../components/section/ClSectionMainSide/style';
59
60
  @import '../components/table/ClTable/style';
@@ -47,7 +47,7 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
47
47
  initialCol?: number,
48
48
  initialOrder?: string
49
49
  ): any
50
- export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: string[], initialCol?: number): {
50
+ export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: string[], initialCol?: number, pageNoCallback?: () => number, pageSizeCallback?: () => number): {
51
51
  col: number,
52
52
  order: 'ASC' | 'DESC' | 'NONE',
53
53
  set: (col: number, order: string) => void,
package/types/index.d.ts CHANGED
@@ -105,7 +105,7 @@ export function clTableSorter (
105
105
  initialCol?: number,
106
106
  initialOrder?: string
107
107
  ): any
108
- export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: string[], initialCol?: number): {
108
+ export function clTableSorterObjects<Type> (dataCallback: () => Type[], keys: string[], initialCol?: number, pageNoCallback?: () => number, pageSizeCallback?: () => number): {
109
109
  col: number,
110
110
  order: 'ASC' | 'DESC' | 'NONE',
111
111
  set: (col: number, order: string) => void,