@castlabs/ui 7.5.2 → 7.6.1

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": "7.5.2",
3
+ "version": "7.6.1",
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.",
@@ -9,8 +9,7 @@
9
9
  @use '../../styles/global' as *;
10
10
 
11
11
  $dropdown-border: 0.125rem; // a 2px border to add so there is space for the outline
12
- $dropdown-color-chevron: rgba($color-ci-white, 0.5);
13
- $dropdown-color-chevron-bright: rgba($color-ci-clay, 0.5);
12
+ $dropdown-color-chevron: $color-ci-clay;
14
13
  $dropdown-line-height: 1.25;
15
14
 
16
15
  .cl-dropdown {
@@ -44,7 +43,7 @@ $dropdown-line-height: 1.25;
44
43
  align-items: center;
45
44
  background-color: var(--cl-color-background);
46
45
  box-shadow: -8px 0 4px var(--cl-color-background);
47
- color: $dropdown-color-chevron-bright;
46
+ color: $dropdown-color-chevron;
48
47
  display: flex;
49
48
  font-size: px(18);
50
49
  height: calc(100% - 8px);
@@ -59,6 +59,7 @@
59
59
 
60
60
  border-radius: $brand-border-radius !important; // overrule BS
61
61
  cursor: not-allowed;
62
+ max-height: 36px;
62
63
  min-width: 36px;
63
64
  padding: $spacing-tiny;
64
65
  pointer-events: none;
@@ -90,3 +91,40 @@
90
91
  }
91
92
  }
92
93
  }
94
+
95
+ .cl-pagination-autosize {
96
+ // for use by simple code that can't hide bubbles by itself
97
+ // will hide all but the first, last and +/-5 bubbles around the .active one
98
+ .page-item {
99
+ display: none;
100
+
101
+ &:first-of-type,
102
+ &.active,
103
+ &.disabled,
104
+ &:last-of-type {
105
+ display: list-item;
106
+ }
107
+
108
+ @include media-breakpoint-up(md) {
109
+ &.active {
110
+ display: list-item;
111
+
112
+ + .page-item,
113
+ + .page-item + .page-item,
114
+ + .page-item + .page-item + .page-item,
115
+ + .page-item + .page-item + .page-item + .page-item,
116
+ + .page-item + .page-item + .page-item + .page-item + .page-item {
117
+ display: list-item;
118
+ }
119
+ }
120
+
121
+ &:has(+ .active),
122
+ &:has(+ * + .active),
123
+ &:has(+ * + * + .active),
124
+ &:has(+ * + * + * + .active),
125
+ &:has(+ * + * + * + * + .active) {
126
+ display: list-item;
127
+ }
128
+ }
129
+ }
130
+ }
@@ -11,8 +11,11 @@
11
11
  $sidenav-color-separator: rgba(#fff, 0.25);
12
12
 
13
13
  $sidenav-color-account: $color-ci-night;
14
- $sidenav-color-organization: #313644; // color.adjust($sidenav-color-account, $lightness: 5%);
15
- $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness: 10%);
14
+ $sidenav-color-organization: $color-ci-night-2;
15
+ $sidenav-color-app: $color-ci-night-3;
16
+ $sidenav-color: $color-ci-haze;
17
+ $sidenav-color-text: $color-ci-night;
18
+ $sidenav-color-text-minor: $color-ci-ash;
16
19
 
17
20
  @mixin cl-nav-fadeout($color) {
18
21
  overflow: hidden;
@@ -36,8 +39,9 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
36
39
  // --- drawer ----------------------------------------------------------------
37
40
 
38
41
  .cl-nav-drawer {
39
- #{'--cl-color-background'}: $color-ci-eggshell;
40
- #{'--cl-color-text'}: $color-ci-night;
42
+ #{'--cl-color-background'}: $sidenav-color;
43
+ #{'--cl-color-text'}: $sidenav-color-text;
44
+ #{'--cl-color-accent'}: $color-ci-petrol;
41
45
  background-color: var(--cl-color-background);
42
46
  color: var(--cl-color-text);
43
47
  }
@@ -184,7 +188,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
184
188
  div.cl-nav-organization,
185
189
  a.cl-nav-organization {
186
190
  min-height: 3.25rem;
187
- padding: 0 $spacing-small $spacing-tiny;
191
+ padding: $spacing-micro $spacing-small $spacing-micro + $spacing-tiny;
188
192
  position: relative;
189
193
 
190
194
  &::after {
@@ -297,10 +301,16 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
297
301
  position: relative;
298
302
  width: 100%;
299
303
 
304
+ @include media-breakpoint-up(md) {
305
+ // reduce nav item heigt a bit on larger screens
306
+ padding-bottom: $spacing-tiny - px(1);
307
+ padding-top: $spacing-tiny - px(1);
308
+ }
309
+
300
310
  .cl-nav-item-info {
301
311
  @extend %cl-p-small;
302
312
 
303
- color: $color-ci-ash;
313
+ color: $sidenav-color-text-minor;
304
314
  letter-spacing: 0.025em;
305
315
  line-height: 1.4;
306
316
  margin-top: px(3);
@@ -348,6 +358,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
348
358
  }
349
359
 
350
360
  .cl-dropdown {
361
+ // service drawer
351
362
  #{'--cl-color-text'}: $color-ci-eggshell;
352
363
  #{'--cl-color-background'}: $sidenav-color-app;
353
364
  #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
@@ -372,11 +383,15 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
372
383
  + .cl-dropdown-arrow {
373
384
  background-color: $sidenav-color-app;
374
385
  }
386
+
387
+ .cl-subentry {
388
+ color: $color-ci-clay;
389
+ }
375
390
  }
376
391
 
377
392
  .cl-nav-separator {
378
393
  // -------------------------------------------------------
379
- background-color: $color-ci-clay;
394
+ background-color: $color-ci-steel;
380
395
  border: 0;
381
396
  height: $brand-line-width;
382
397
  margin: $spacing-small 0;
@@ -6,6 +6,6 @@
6
6
 
7
7
  &,
8
8
  + .cl-section {
9
- margin-top: 0 !important; // do not merge form-sections with other sections
9
+ margin-top: 0 !important; // don’t merge form-sections with other sections
10
10
  }
11
11
  }
@@ -13,8 +13,11 @@ $color-ci-red: #fa423c; // rgba(250, 66, 60, 1)
13
13
  $color-ci-sky: #71c0ff; // rgba(113, 192, 255, 1)
14
14
  $color-ci-eggshell: #fbf9f2; // rgba(251, 249, 242, 1);
15
15
  $color-ci-night: #262a35; // rgba(38, 42, 53, 1);
16
- $color-ci-night-2: #2c303c; // rgba(38, 42, 53, 1); // interim color for sidenav
17
- $color-ci-night-3: #333742; // rgba(38, 42, 53, 1); // interim color for sidenav
16
+
17
+ $color-ci-night-2: #333947;
18
+ $color-ci-night-3: #3c4253;
19
+ $color-ci-night-4: #454c5f;
20
+
18
21
  $color-ci-clay: #cfc8c8; // rgba(207, 200, 200, 1);
19
22
  $color-ci-ash: #6d5e5e; // rgba(109, 94, 94, 1);
20
23
  $color-ci-berry: #6e1c3b; // rgba(110, 28, 59, 1);
@@ -22,11 +22,11 @@
22
22
  padding: math.div($spacing, 2) $spacing-tiny math.div($spacing, 2) $spacing-tiny;
23
23
 
24
24
  > *:first-child {
25
- margin-top: 0; // do not apply top spacing to first element in a cel
25
+ margin-top: 0; // don’t apply top spacing to first element in a cel
26
26
  }
27
27
 
28
28
  > *:last-child {
29
- margin-bottom: 0; // do not apply bottom spacing to last element in a cel
29
+ margin-bottom: 0; // don’t apply bottom spacing to last element in a cel
30
30
  }
31
31
  }
32
32
  }
@@ -225,7 +225,7 @@ $cl-url-postfix: '' !default;
225
225
  }
226
226
 
227
227
  /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
228
- readers do not read off random characters that represent icons */
228
+ readers don’t read off random characters that represent icons */
229
229
  .fa-500px::before {
230
230
  content: '\f26e';
231
231
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  @use '../global' as *;
9
9
 
10
- // note: order of selectors in this file are important. do not move colors around or
10
+ // note: order of selectors in this file are important. don’t move colors around or
11
11
  // .cl-color-* overrides might not work
12
12
 
13
13
  :root {
@@ -19,7 +19,7 @@
19
19
 
20
20
  .container .containe,
21
21
  .container-fluid .container {
22
- // nested containers should not limit themselves
22
+ // nested containers shouldn’t limit themselves
23
23
  margin-left: 0;
24
24
  margin-right: 0;
25
25
  max-width: 100%;
@@ -177,7 +177,7 @@ main {
177
177
  overflow-wrap: anywhere;
178
178
  }
179
179
 
180
- b, // <b> defined just for fallback - don't use!
180
+ b, // <b> defined just for fallback - dont use!
181
181
  strong {
182
182
  font-weight: 600;
183
183
  }
@@ -250,7 +250,7 @@ hr {
250
250
  }
251
251
  }
252
252
 
253
- // --- redefine bs utilities we use so we don't need to pull the whole set -----
253
+ // --- redefine bs utilities we use so we dont need to pull the whole set -----
254
254
 
255
255
  @each $bp, $px in $grid-breakpoints {
256
256
  .text-#{$bp}-start {
package/types/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { App, DefineComponent } from 'vue'
3
3
  declare function install (Vue: App): void
4
4
  export default install
5
5
 
6
- export function castlabsUi (Vue: App): void
6
+ export function clUi (Vue: App): void
7
7
 
8
8
  export const ClAlert: DefineComponent
9
9
  export const ClBackCancelOk: DefineComponent