@ship-ui/core 0.14.16 → 0.14.18

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/index.d.ts CHANGED
@@ -144,7 +144,7 @@ declare class ShipCardComponent {
144
144
 
145
145
  declare class ShipCheckboxComponent {
146
146
  currentClassList: _angular_core.Signal<string>;
147
- showClasses: _angular_core.Signal<string[] | "">;
147
+ showClasses: _angular_core.Signal<string[]>;
148
148
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShipCheckboxComponent, never>;
149
149
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ShipCheckboxComponent, "sh-checkbox", never, {}, {}, never, ["*"], true, never>;
150
150
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.14.16",
4
+ "version": "0.14.18",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=19",
7
7
  "@angular/core": ">=19"
@@ -16,7 +16,7 @@ $shipButtonShadow: false !default;
16
16
  display: inline-flex;
17
17
  align-items: center;
18
18
  justify-content: center;
19
- gap: p2r(8);
19
+ gap: p2r(11);
20
20
  position: relative;
21
21
  padding: p2r(0 12);
22
22
  transition: color 80ms linear;
@@ -46,8 +46,12 @@ $shipButtonShadow: false !default;
46
46
  transition: rotate 125ms ease-in-out;
47
47
  }
48
48
 
49
- &:has(sh-icon:first-child):has(sh-icon:last-child) {
50
- padding: p2r(0 9);
49
+ sh-icon:first-child {
50
+ margin-left: p2r(-3);
51
+ }
52
+
53
+ sh-icon:last-child {
54
+ margin-right: p2r(-3);
51
55
  }
52
56
 
53
57
  &.rotated-icon sh-icon {
@@ -59,14 +63,18 @@ $shipButtonShadow: false !default;
59
63
  --btn-f: var(--paragraph-30);
60
64
 
61
65
  padding: p2r(0 8);
62
- gap: p2r(4);
66
+ gap: p2r(5);
63
67
 
64
68
  sh-icon {
65
69
  font-size: p2r(16);
66
70
  }
67
71
 
68
- &:has(sh-icon:first-child):has(sh-icon:last-child) {
69
- padding: p2r(0 7);
72
+ sh-icon:first-child {
73
+ margin-left: p2r(-1);
74
+ }
75
+
76
+ sh-icon:last-child {
77
+ margin-right: p2r(-1);
70
78
  }
71
79
  }
72
80
 
@@ -64,6 +64,23 @@ $shipCheckbox: true !default;
64
64
  }
65
65
  }
66
66
 
67
+ &.raised,
68
+ &.flat {
69
+ &:has(input) {
70
+ &:not(:has(input:checked)) .box {
71
+ background: transparent;
72
+ border: 1px solid var(--box-bc);
73
+ }
74
+ }
75
+
76
+ &:not(:has(input)) {
77
+ .box:not(.active) {
78
+ background: transparent;
79
+ border: 1px solid var(--box-bc);
80
+ }
81
+ }
82
+ }
83
+
67
84
  &.indeterminate {
68
85
  .box sh-icon {
69
86
  &.indeterminate-indicator {