@castlabs/ui 5.1.0 → 5.1.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.1.0",
3
+ "version": "5.1.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.",
@@ -40,6 +40,9 @@
40
40
  "bootstrap": "5.3.3",
41
41
  "simplebar": "6.3.0"
42
42
  },
43
+ "optionalDependencies": {
44
+ "@rollup/rollup-linux-x64-gnu": "4.35.0"
45
+ },
43
46
  "devDependencies": {
44
47
  "@castlabs/ui-editor": "file:../castlabs-ui-editor",
45
48
  "@tsconfig/node22": "22.0.0",
@@ -8,6 +8,7 @@ $table-padding-vertical: 0.5rem;
8
8
  $table-padding-horizontal: 0.5rem;
9
9
  $table-icon-size: 2rem;
10
10
  $table-responsive: sm;
11
+ $table-lineheight: 1.2em;
11
12
 
12
13
  %cl-table-data {
13
14
  border: 0;
@@ -42,6 +43,8 @@ $table-responsive: sm;
42
43
  }
43
44
 
44
45
  tbody {
46
+ line-height: $table-lineheight;
47
+
45
48
  tr {
46
49
  &:nth-child(odd) {
47
50
  background-color: $color-ci-haze;
@@ -108,6 +111,24 @@ $table-responsive: sm;
108
111
  @extend %cl-a-default;
109
112
  }
110
113
 
114
+ // --- badges/bubbles in tables ----------------------------------------------
115
+
116
+ [class^='cl-badge'],
117
+ [class*=' cl-badge'],
118
+ [class^='cl-hashtag'],
119
+ [class*=' cl-hashtag'],
120
+ [class^='cl-plan'],
121
+ [class*=' cl-plan'],
122
+ [class^='cl-role'],
123
+ [class*=' cl-role'] {
124
+ max-height: 1.375em; // ~17px
125
+ min-height: 0;
126
+ padding-bottom: 2px;
127
+ padding-top: 3px;
128
+ position: relative;
129
+ top: -1px;
130
+ }
131
+
111
132
  // --- wrapping long columns -------------------------------------------------
112
133
 
113
134
  @for $col from 1 through 16 {
@@ -119,6 +140,7 @@ $table-responsive: sm;
119
140
  }
120
141
 
121
142
  // --- responsive phone tables -----------------------------------------------
143
+
122
144
  @include media-breakpoint-down($table-responsive) {
123
145
  &:not(.cl-table-nonresponsive) {
124
146
  td,
@@ -1,8 +1,13 @@
1
1
  .cl-table-data {
2
2
  .cl-td-code {
3
- @include typography-font($typography-font-list-monospace, 400, px(15), 1.25, 0.025em, 80%);
4
-
5
- padding-top: 0.6rem;
3
+ @include typography-font(
4
+ $typography-font-list-monospace,
5
+ 400,
6
+ px(15),
7
+ $table-lineheight * 1.066666667,
8
+ 0.025em,
9
+ 80%
10
+ );
6
11
 
7
12
  @include media-breakpoint-down($table-responsive) {
8
13
  table:not(.cl-table-nonresponsive) & {
@@ -1,9 +1,15 @@
1
1
  .cl-table-data {
2
2
  .cl-td-id,
3
3
  .cl-td-uuid {
4
- @include typography-font($typography-font-list-monospace, 400, px(15), 1, 0.025em, 80%);
4
+ @include typography-font(
5
+ $typography-font-list-monospace,
6
+ 400,
7
+ px(15),
8
+ $table-lineheight * 1.066666667,
9
+ 0.025em,
10
+ 80%
11
+ );
5
12
 
6
- padding-top: 0.6rem;
7
13
  width: 2.5em;
8
14
  word-wrap: unset;
9
15
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  %cl-table-data-cel {
4
4
  td {
5
- @include typography-font($typography-font-list-sans, 400, px(16), 1.2em);
5
+ @include typography-font($typography-font-list-sans, 400, px(16), $table-lineheight);
6
6
 
7
7
  padding-bottom: $table-padding-vertical;
8
8
  padding-top: $table-padding-vertical;