@castlabs/ui 5.4.4 → 5.5.2

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": "5.4.4",
3
+ "version": "5.5.2",
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.",
@@ -41,26 +41,26 @@
41
41
  "simplebar": "6.3.0"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@rollup/rollup-linux-x64-gnu": "4.40.0"
44
+ "@rollup/rollup-linux-x64-gnu": "4.40.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
48
48
  "@tsconfig/node22": "22.0.1",
49
49
  "@types/jsdom": "21.1.7",
50
- "@types/node": "22.14.1",
50
+ "@types/node": "22.15.3",
51
51
  "@vitejs/plugin-vue": "5.2.3",
52
- "@vitest/eslint-plugin": "1.1.43",
52
+ "@vitest/eslint-plugin": "1.1.44",
53
53
  "@vue/eslint-config-prettier": "10.2.0",
54
54
  "@vue/eslint-config-typescript": "14.5.0",
55
55
  "@vue/test-utils": "2.4.6",
56
56
  "@vue/tsconfig": "0.7.0",
57
- "core-js": "3.41.0",
57
+ "core-js": "3.42.0",
58
58
  "dree": "5.1.5",
59
59
  "eslint-plugin-import": "2.31.0",
60
60
  "eslint-plugin-n": "17.17.0",
61
61
  "eslint-plugin-promise": "7.2.1",
62
- "eslint-plugin-vue": "10.0.0",
63
- "eslint": "9.25.1",
62
+ "eslint-plugin-vue": "10.1.0",
63
+ "eslint": "9.26.0",
64
64
  "gulp-concat": "2.6.1",
65
65
  "gulp-replace": "1.1.4",
66
66
  "gulp": "5.0.0",
@@ -73,7 +73,7 @@
73
73
  "stylelint-order": "7.0.0",
74
74
  "stylelint-scss": "6.11.1",
75
75
  "typescript": "5.8.3",
76
- "vite": "6.3.2",
76
+ "vite": "6.3.4",
77
77
  "vitest": "3.1.2",
78
78
  "vue-tsc": "2.2.10",
79
79
  "vue": "3.5.13"
@@ -15,7 +15,8 @@
15
15
  color: $footer-text-color;
16
16
  margin-top: 0;
17
17
 
18
- .container {
18
+ .container,
19
+ .container-fluid {
19
20
  @extend %container-spacing-medium;
20
21
 
21
22
  padding-bottom: 0;
@@ -9,11 +9,13 @@
9
9
  // --- basic form layout -----------------------------------------------------
10
10
 
11
11
  // &.container,
12
- .container {
12
+ .container,
13
+ .container-fluid {
13
14
  @extend %container-spacing-small;
14
15
  }
15
16
 
16
- .container + * {
17
+ .container + *,
18
+ .container-fluid + * {
17
19
  margin-top: 0; // container already add bottom spacing
18
20
  }
19
21
 
@@ -19,11 +19,13 @@
19
19
  @include typography-links-invisible;
20
20
  }
21
21
 
22
- > .container {
22
+ > .container,
23
+ > .container-fluid {
23
24
  padding: 0;
24
25
  }
25
26
 
26
- > .container > .row > .col-12 {
27
+ > .container > .row > .col-12,
28
+ > .container-fluid > .row > .col-12 {
27
29
  align-items: center;
28
30
  display: flex;
29
31
  flex-direction: row;
@@ -82,7 +84,8 @@
82
84
 
83
85
  .cl-nav-top-large {
84
86
  // cl-nav-top variant that as slightly bigger
85
- > .container > .row > .col-12 {
87
+ > .container > .row > .col-12,
88
+ > .container-fluid > .row > .col-12 {
86
89
  height: 4rem;
87
90
  }
88
91
 
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  .container,
31
+ .container-fluid,
31
32
  .row {
32
33
  min-height: px($height);
33
34
  }
@@ -42,6 +43,7 @@
42
43
  min-height: px($height);
43
44
 
44
45
  .container,
46
+ .container-fluid,
45
47
  .row {
46
48
  min-height: px($height);
47
49
  }
@@ -14,10 +14,26 @@
14
14
  overflow: auto hidden;
15
15
  }
16
16
 
17
+ .cl-table-nowrap {
18
+ text-wrap: nowrap;
19
+ width: fit-content;
20
+
21
+ th,
22
+ td {
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ }
26
+ }
27
+
17
28
  .cl-table-data {
18
29
  @extend %cl-table-data;
19
30
  }
20
31
 
32
+ .cl-table-fixed {
33
+ table-layout: fixed;
34
+ width: min-content;
35
+ }
36
+
21
37
  .cl-table-data-light {
22
38
  @extend %cl-table-data-light;
23
39
  }
@@ -129,16 +129,6 @@ $table-lineheight: 1.2em;
129
129
  top: -1px;
130
130
  }
131
131
 
132
- // --- wrapping long columns -------------------------------------------------
133
-
134
- @for $col from 1 through 16 {
135
- &.cl-table-wrap-col#{$col} {
136
- td:nth-child(#{$col}) {
137
- word-wrap: anywhere;
138
- }
139
- }
140
- }
141
-
142
132
  // --- responsive phone tables -----------------------------------------------
143
133
 
144
134
  @include media-breakpoint-down($table-responsive) {
@@ -166,6 +156,36 @@ $table-lineheight: 1.2em;
166
156
  }
167
157
  }
168
158
 
159
+ // --- column modifiers --------------------------------------------------------
160
+
161
+ @for $col from 1 through 32 {
162
+ .cl-table-wrap-col-#{$col} {
163
+ // deprecated
164
+ td:nth-child(#{$col}) {
165
+ word-wrap: anywhere;
166
+ }
167
+ }
168
+
169
+ .cl-table-col-#{$col}-wrap {
170
+ td:nth-child(#{$col}) {
171
+ word-wrap: anywhere;
172
+ }
173
+ }
174
+
175
+ .cl-table-col-#{$col}-nowrap {
176
+ td:nth-child(#{$col}) {
177
+ word-wrap: nowrap;
178
+ }
179
+ }
180
+
181
+ .cl-table-col-#{$col}-hide {
182
+ th:nth-child(#{$col}),
183
+ td:nth-child(#{$col}) {
184
+ display: none;
185
+ }
186
+ }
187
+ }
188
+
169
189
  %cl-table-data-light {
170
190
  tbody {
171
191
  tr {
@@ -174,4 +194,12 @@ $table-lineheight: 1.2em;
174
194
  }
175
195
  }
176
196
  }
197
+
198
+ tr:nth-child(odd) .cl-td-links {
199
+ background-color: $color-ci-white;
200
+ }
201
+
202
+ tr:nth-child(even) .cl-td-links {
203
+ background-color: $color-ci-haze;
204
+ }
177
205
  }
@@ -2,7 +2,11 @@
2
2
  .cl-th-links {
3
3
  @extend %p-tiny;
4
4
 
5
+ background-color: $color-ci-white;
5
6
  font-weight: 700;
7
+ position: sticky;
8
+ right: 0;
9
+ text-align: end;
6
10
 
7
11
  @include media-breakpoint-down($table-responsive) {
8
12
  table:not(.cl-table-nonresponsive) & {
@@ -14,6 +18,8 @@
14
18
  .cl-td-links {
15
19
  @extend %cl-font-condensed;
16
20
 
21
+ position: sticky;
22
+ right: 0;
17
23
  white-space: nowrap;
18
24
  word-wrap: unset;
19
25
 
@@ -41,4 +47,12 @@
41
47
  }
42
48
  }
43
49
  }
50
+
51
+ tr:nth-child(even) .cl-td-links {
52
+ background-color: $color-ci-white;
53
+ }
54
+
55
+ tr:nth-child(odd) .cl-td-links {
56
+ background-color: $color-ci-haze;
57
+ }
44
58
  }
@@ -23,6 +23,10 @@
23
23
  top: -0.1em;
24
24
  }
25
25
  }
26
+
27
+ .fa-cog {
28
+ cursor: pointer;
29
+ }
26
30
  }
27
31
 
28
32
  .cl-table-data {
@@ -10,12 +10,14 @@
10
10
 
11
11
  // bootstrap uses a narrow container for sm, but we prefer full-width instead
12
12
  @include media-breakpoint-only(sm) {
13
- .container {
13
+ .container,
14
+ .container-fluid {
14
15
  max-width: inherit;
15
16
  }
16
17
  }
17
18
 
18
- .container .container {
19
+ .container .containe,
20
+ .container-fluid .container {
19
21
  // nested containers should not limit themselves
20
22
  margin-left: 0;
21
23
  margin-right: 0;
@@ -57,7 +59,8 @@
57
59
  }
58
60
 
59
61
  // do pull out nested containers or their cel padding will indent them
60
- .container .container > .row {
62
+ .container .container > .row,
63
+ .container-fluid .container > .row {
61
64
  margin-left: -$spacing-tiny;
62
65
  margin-right: -$spacing-tiny;
63
66
  }
@@ -34,6 +34,12 @@ h6.cl-faded,
34
34
  }
35
35
  }
36
36
 
37
+ @for $i from 0 through 512 {
38
+ .cl-width-#{$i * 32} {
39
+ width: px($i * 32);
40
+ }
41
+ }
42
+
37
43
  .cl-text-start,
38
44
  .text-start {
39
45
  text-align: left;