@castlabs/ui 7.19.2 → 7.20.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.19.2",
3
+ "version": "7.20.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.",
@@ -65,7 +65,10 @@
65
65
  [type='date'],
66
66
  [type='time'],
67
67
  [type='datetime-local'] {
68
- padding-block: calc(($form-field-min-height - $form-field-fontsize * $form-field-line-height) / 2 - #{$brand-line-width}); // vertical centering on iOS
68
+ // vertical centering on iOS
69
+
70
+ padding-block: ($form-field-min-height - $form-field-fontsize * $form-field-line-height) * 0.5 -
71
+ 0.0625rem;
69
72
 
70
73
  &::-webkit-datetime-edit-fields-wrapper {
71
74
  padding: 0;
@@ -487,8 +487,7 @@ $sidenav-color-text-minor: var(--cl-color-text-faded);
487
487
  }
488
488
  }
489
489
 
490
- .cl-nav-item-lock,
491
- .cl-nav-item-locked,
490
+ .cl-nav-item-lock, // deprecated
492
491
  .cl-nav-item-disabled {
493
492
  span:first-of-type::after {
494
493
  @include cl-fontawesome('\f023');
@@ -499,7 +498,6 @@ $sidenav-color-text-minor: var(--cl-color-text-faded);
499
498
  }
500
499
  }
501
500
 
502
- .cl-nav-item-locked, // legacy class
503
501
  .cl-nav-item-disabled {
504
502
  opacity: 0.5;
505
503
 
@@ -71,6 +71,13 @@
71
71
  max-width: 848px;
72
72
  }
73
73
 
74
+ // sections with fluid content width use full browser width
75
+ .cl-section-fluid > .container {
76
+ max-width: 100% !important;
77
+ padding-left: 0;
78
+ padding-right: 0;
79
+ }
80
+
74
81
  // -----------------------------------------------------------------------------
75
82
 
76
83
  section {
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.19.2';
2
+ #{'--cl-version'}: 'v7.20.1';
3
3
  }
package/types/index.d.ts CHANGED
@@ -146,6 +146,7 @@ export function clRefClField (ref: unknown): typeof ClField
146
146
  export function clRefClFieldGroup (ref: unknown): typeof ClFieldGroup
147
147
  export function clRefFocus (ref: unknown): void
148
148
  export function clRefHTMLElement (ref: unknown): HTMLElement
149
+ export function clBackOrGoto (router: unknown, routeName: string): void
149
150
 
150
151
  // --- utils/vitest ------------------------------------------------------------
151
152
 
@@ -245,7 +246,6 @@ type ClSidenavEntry = {
245
246
  subtitle: string | undefined
246
247
  badge: string | undefined
247
248
  url: string | undefined
248
- locked: boolean
249
249
  disabled: boolean
250
250
  }
251
251
 
@@ -283,7 +283,6 @@ type CsNavEntry = {
283
283
  title: string
284
284
  subtitle: string
285
285
  url: string
286
- locked: boolean,
287
286
  disabled: boolean,
288
287
  badge: string | undefined
289
288
  }