@castlabs/ui 7.6.0 → 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.6.0",
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.",
@@ -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
+ }
@@ -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
  }
@@ -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