@ship-ui/core 0.14.21 → 0.14.22

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ship-ui/core",
3
3
  "license": "MIT",
4
- "version": "0.14.21",
4
+ "version": "0.14.22",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=19",
7
7
  "@angular/core": ">=19"
@@ -34,6 +34,10 @@ $shipList: true !default;
34
34
  line-height: p2r(24);
35
35
  }
36
36
 
37
+ &[shsortable] [item]:active {
38
+ transform: scale(1);
39
+ }
40
+
37
41
  > [action],
38
42
  > [item] {
39
43
  border-radius: var(--list-s);
@@ -69,16 +73,13 @@ $shipList: true !default;
69
73
  }
70
74
  }
71
75
 
72
- :has(input[type='checkbox']),
73
- :has(input[type='radio']),
76
+ :has(input),
74
77
  > [action] {
75
78
  cursor: pointer;
76
79
  }
77
80
 
78
- > [item]:has(input[type='checkbox']:checked),
79
- > [action]:has(input[type='checkbox']:checked),
80
- > [item]:has(input[type='radio']:checked),
81
- > [action]:has(input[type='radio']:checked),
81
+ > [item]:has(input:checked),
82
+ > [action]:has(input:checked),
82
83
  > [action].active,
83
84
  > [action].selected {
84
85
  --list-color: var(--base-12);
@@ -88,10 +89,8 @@ $shipList: true !default;
88
89
  }
89
90
 
90
91
  &.primary {
91
- > [item]:has(input[type='checkbox']:checked),
92
- > [action]:has(input[type='checkbox']:checked),
93
- > [item]:has(input[type='radio']:checked),
94
- > [action]:has(input[type='radio']:checked),
92
+ > [item]:has(input:checked),
93
+ > [action]:has(input:checked),
95
94
  > [action].active,
96
95
  > [action].selected {
97
96
  sh-icon:first-child {
@@ -101,10 +100,8 @@ $shipList: true !default;
101
100
  }
102
101
 
103
102
  &.accent {
104
- > [item]:has(input[type='checkbox']:checked),
105
- > [action]:has(input[type='checkbox']:checked),
106
- > [item]:has(input[type='radio']:checked),
107
- > [action]:has(input[type='radio']:checked),
103
+ > [item]:has(input:checked),
104
+ > [action]:has(input:checked),
108
105
  > [action].active,
109
106
  > [action].selected {
110
107
  sh-icon:first-child {
@@ -114,10 +111,8 @@ $shipList: true !default;
114
111
  }
115
112
 
116
113
  &.warn {
117
- > [item]:has(input[type='checkbox']:checked),
118
- > [action]:has(input[type='checkbox']:checked),
119
- > [item]:has(input[type='radio']:checked),
120
- > [action]:has(input[type='radio']:checked),
114
+ > [item]:has(input:checked),
115
+ > [action]:has(input:checked),
121
116
  > [action].active,
122
117
  > [action].selected {
123
118
  sh-icon:first-child {
@@ -127,10 +122,8 @@ $shipList: true !default;
127
122
  }
128
123
 
129
124
  &.error {
130
- > [item]:has(input[type='checkbox']:checked),
131
- > [action]:has(input[type='checkbox']:checked),
132
- > [item]:has(input[type='radio']:checked),
133
- > [action]:has(input[type='radio']:checked),
125
+ > [item]:has(input:checked),
126
+ > [action]:has(input:checked),
134
127
  > [action].active,
135
128
  > [action].selected {
136
129
  sh-icon:first-child {
@@ -140,10 +133,8 @@ $shipList: true !default;
140
133
  }
141
134
 
142
135
  &.success {
143
- > [item]:has(input[type='checkbox']:checked),
144
- > [action]:has(input[type='checkbox']:checked),
145
- > [item]:has(input[type='radio']:checked),
146
- > [action]:has(input[type='radio']:checked),
136
+ > [item]:has(input:checked),
137
+ > [action]:has(input:checked),
147
138
  > [action].active,
148
139
  > [action].selected {
149
140
  sh-icon:first-child {