@useblu/ocean-core 1.117.0 → 1.119.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.119.0](https://github.com/ocean-ds/ocean-web/compare/v1.118.0...v1.119.0) (2025-12-08)
7
+
8
+ ### Features
9
+
10
+ - style cancel button on input search ([#1202](https://github.com/ocean-ds/ocean-web/issues/1202)) ([221d12c](https://github.com/ocean-ds/ocean-web/commit/221d12c519dcaf24af4f1be573c0559403719f0b))
11
+
12
+ # [1.118.0](https://github.com/ocean-ds/ocean-web/compare/v1.117.0...v1.118.0) (2025-12-08)
13
+
14
+ ### Features
15
+
16
+ - card list expandable ([#1197](https://github.com/ocean-ds/ocean-web/issues/1197)) ([3016461](https://github.com/ocean-ds/ocean-web/commit/3016461f3a408dafb3645e53a00d2ce769e60691))
17
+
6
18
  # [1.117.0](https://github.com/ocean-ds/ocean-web/compare/v1.116.0...v1.117.0) (2025-12-08)
7
19
 
8
20
  ### Features
package/ocean.css CHANGED
@@ -1356,6 +1356,27 @@
1356
1356
  color: #ced1e1;
1357
1357
  font-weight: 400;
1358
1358
  }
1359
+ .ods-input [type=search i] {
1360
+ padding: 0 4px 0 16px;
1361
+ }
1362
+ .ods-input [type=search i]::-webkit-search-cancel-button {
1363
+ -webkit-appearance: none;
1364
+ appearance: none;
1365
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjAwNzggNC40ODc2N0MxNS4wNzQxIDQuNDg3MTEgMTUuMTM5OCA0LjQ5OTcyIDE1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zMjggNC41IDUuMDAwMzdDNC41IDQuODY3ODYgNC41NTI4NCA0Ljc0MDYgNC42NDY0OCA0LjY0Njg1QzQuNzQwMjUgNC41NTMxMSA0Ljg2NzQyIDQuNTAwMzcgNSA0LjUwMDM3QzUuMTMyNSA0LjUwMDQyIDUuMjU5OCA0LjU1MzE3IDUuMzUzNTIgNC42NDY4NUwxMCA5LjI5MzMzTDE0LjY0NjUgNC42NDY4NUwxNC42NTIzIDQuNjQwMDFDMTQuNjk4MyA0LjU5MjQxIDE0Ljc1MzcgNC41NTQ4NyAxNC44MTQ1IDQuNTI4NjlDMTQuODc1NSA0LjUwMjQ4IDE0Ljk0MTQgNC40ODgyNSAxNS4wMDc4IDQuNDg3NjdaIiBmaWxsPSIjMzkzQjQ3IiBzdHJva2U9IiNBQUFEQzAiLz4KPC9zdmc+Cgo=");
1366
+ background-position: center;
1367
+ background-repeat: no-repeat;
1368
+ background-size: 20px 20px;
1369
+ border-radius: 50%;
1370
+ cursor: pointer;
1371
+ height: 20px;
1372
+ padding: 6px;
1373
+ -webkit-transition: background-color 250ms ease-out;
1374
+ transition: background-color 250ms ease-out;
1375
+ width: 20px;
1376
+ }
1377
+ .ods-input [type=search i]::-webkit-search-cancel-button:hover {
1378
+ background-color: #e0e2ee;
1379
+ }
1359
1380
  .ods-input__number-controls {
1360
1381
  cursor: pointer;
1361
1382
  }
@@ -2783,9 +2804,10 @@
2783
2804
  box-shadow: none;
2784
2805
  display: flex;
2785
2806
  flex-direction: row;
2786
- left: 0;
2807
+ left: auto;
2787
2808
  margin: 0;
2788
2809
  max-height: none;
2810
+ max-width: 100%;
2789
2811
  min-width: auto;
2790
2812
  overflow-x: auto;
2791
2813
  overflow-y: hidden;
@@ -2793,7 +2815,7 @@
2793
2815
  position: absolute;
2794
2816
  right: 0;
2795
2817
  top: 0;
2796
- width: 100%;
2818
+ width: auto;
2797
2819
  z-index: 102;
2798
2820
  /* stylelint-disable-next-line order/properties-alphabetical-order */
2799
2821
  -webkit-overflow-scrolling: touch;
@@ -2804,7 +2826,7 @@
2804
2826
  }
2805
2827
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu--bottom-left, .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu--bottom-right, .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu--top-left, .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu--top-right {
2806
2828
  bottom: 0;
2807
- left: 0;
2829
+ left: auto;
2808
2830
  right: 0;
2809
2831
  top: 0;
2810
2832
  }
@@ -2815,9 +2837,6 @@
2815
2837
  margin: 0;
2816
2838
  padding: 0;
2817
2839
  }
2818
- .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu li:first-of-type {
2819
- margin-left: auto;
2820
- }
2821
2840
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item {
2822
2841
  align-items: center;
2823
2842
  border-radius: 0;
@@ -2843,6 +2862,9 @@
2843
2862
  background: #2da94f;
2844
2863
  color: white;
2845
2864
  }
2865
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2866
+ background: #7adc94;
2867
+ }
2846
2868
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive .ods-internal-list-actions__menu-item-icon {
2847
2869
  color: white;
2848
2870
  }
@@ -2850,6 +2872,9 @@
2850
2872
  background: #ff8a14;
2851
2873
  color: white;
2852
2874
  }
2875
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2876
+ background: #ffbd7a;
2877
+ }
2853
2878
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning .ods-internal-list-actions__menu-item-icon {
2854
2879
  color: white;
2855
2880
  }
@@ -2857,6 +2882,9 @@
2857
2882
  background: #f5456e;
2858
2883
  color: white;
2859
2884
  }
2885
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2886
+ background: #d31441;
2887
+ }
2860
2888
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative .ods-internal-list-actions__menu-item-icon {
2861
2889
  color: white;
2862
2890
  }
@@ -2864,6 +2892,9 @@
2864
2892
  background: #aaadc0;
2865
2893
  color: white;
2866
2894
  }
2895
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2896
+ background: #67697a;
2897
+ }
2867
2898
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral .ods-internal-list-actions__menu-item-icon {
2868
2899
  color: white;
2869
2900
  }
@@ -2871,57 +2902,44 @@
2871
2902
  background: #f3f5fe;
2872
2903
  color: #393b47;
2873
2904
  }
2905
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--default:hover:not(.ods-internal-list-actions__menu-item--disabled), .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item:not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral):hover:not(.ods-internal-list-actions__menu-item--disabled) {
2906
+ background: #e0e2ee;
2907
+ }
2874
2908
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--default .ods-internal-list-actions__menu-item-icon, .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item:not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative):not(.ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral).ods-internal-list-actions__menu-item-icon {
2875
2909
  color: #393b47;
2876
2910
  }
2877
2911
 
2878
2912
  @-webkit-keyframes slideInFromRight {
2879
2913
  from {
2880
- opacity: 0;
2881
- transform: scaleX(0);
2882
- transform-origin: right center;
2914
+ transform: translateX(100%);
2883
2915
  }
2884
2916
  to {
2885
- opacity: 1;
2886
- transform: scaleX(1);
2887
- transform-origin: right center;
2917
+ transform: translateX(0);
2888
2918
  }
2889
2919
  }
2890
2920
 
2891
2921
  @keyframes slideInFromRight {
2892
2922
  from {
2893
- opacity: 0;
2894
- transform: scaleX(0);
2895
- transform-origin: right center;
2923
+ transform: translateX(100%);
2896
2924
  }
2897
2925
  to {
2898
- opacity: 1;
2899
- transform: scaleX(1);
2900
- transform-origin: right center;
2926
+ transform: translateX(0);
2901
2927
  }
2902
2928
  }
2903
2929
  @-webkit-keyframes slideOutToRight {
2904
2930
  from {
2905
- opacity: 1;
2906
- transform: scaleX(1);
2907
- transform-origin: right center;
2931
+ transform: translateX(0);
2908
2932
  }
2909
2933
  to {
2910
- opacity: 0;
2911
- transform: scaleX(0);
2912
- transform-origin: right center;
2934
+ transform: translateX(100%);
2913
2935
  }
2914
2936
  }
2915
2937
  @keyframes slideOutToRight {
2916
2938
  from {
2917
- opacity: 1;
2918
- transform: scaleX(1);
2919
- transform-origin: right center;
2939
+ transform: translateX(0);
2920
2940
  }
2921
2941
  to {
2922
- opacity: 0;
2923
- transform: scaleX(0);
2924
- transform-origin: right center;
2942
+ transform: translateX(100%);
2925
2943
  }
2926
2944
  }
2927
2945
  .ods-link {
@@ -3016,6 +3034,13 @@
3016
3034
  .ods-list .ods-list-action__container:not(:last-of-type) > .ods-list-action--card {
3017
3035
  border-bottom: 1px solid #e0e2ee;
3018
3036
  }
3037
+ .ods-list .ods-list-expandable--card {
3038
+ border: 0;
3039
+ border-radius: 0;
3040
+ }
3041
+ .ods-list .ods-list-expandable--card:not(:last-of-type) {
3042
+ border-bottom: 1px solid #e0e2ee;
3043
+ }
3019
3044
  .ods-list .ods-list-selectable__root:last-of-type .ods-list-selectable__root--text--divider {
3020
3045
  display: none;
3021
3046
  }
@@ -5958,6 +5983,7 @@
5958
5983
  cursor: pointer;
5959
5984
  display: flex;
5960
5985
  gap: 12px;
5986
+ overflow: hidden;
5961
5987
  padding: 16px 8px 16px 16px;
5962
5988
  position: relative;
5963
5989
  text-align: left;
@@ -5967,6 +5993,14 @@
5967
5993
  .ods-list-action__container {
5968
5994
  width: 100%;
5969
5995
  }
5996
+ .ods-list-action__content {
5997
+ align-items: center;
5998
+ display: flex;
5999
+ flex: 1;
6000
+ gap: 12px;
6001
+ min-width: 0;
6002
+ transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
6003
+ }
5970
6004
  .ods-list-action--card {
5971
6005
  border-color: #ced1e1;
5972
6006
  }
@@ -5978,14 +6012,14 @@
5978
6012
  border-bottom: 1px solid #e0e2ee;
5979
6013
  margin: 0 16px;
5980
6014
  }
5981
- .ods-list-action:hover:not(.ods-list-action--disabled):not(.ods-list-action--loading) {
6015
+ .ods-list-action:hover:not(.ods-list-action--disabled):not(.ods-list-action--loading):not(.ods-list-action--swipe-open) {
5982
6016
  background-color: #f3f5fe;
5983
6017
  }
5984
6018
  .ods-list-action:focus-visible {
5985
6019
  outline: 2px solid #0025e0;
5986
6020
  outline-offset: 2px;
5987
6021
  }
5988
- .ods-list-action:active:not(.ods-list-action--disabled):not(.ods-list-action--loading) {
6022
+ .ods-list-action:active:not(.ods-list-action--disabled):not(.ods-list-action--loading):not(.ods-list-action--swipe-open) {
5989
6023
  background-color: #ced1e1;
5990
6024
  }
5991
6025
  .ods-list-action__icon {
@@ -6012,6 +6046,9 @@
6012
6046
  .ods-list-action__action svg {
6013
6047
  color: #aaadc0;
6014
6048
  }
6049
+ .ods-list-action__indicator {
6050
+ flex-shrink: 0;
6051
+ }
6015
6052
  .ods-list-action__skeleton {
6016
6053
  display: flex;
6017
6054
  flex-direction: column;
@@ -6031,10 +6068,116 @@
6031
6068
  opacity: 0.6;
6032
6069
  }
6033
6070
 
6071
+ .ods-list-action--swipe-mode .ods-list-action__content:not(:has(.ods-list-action__indicator)) {
6072
+ margin-right: 24px;
6073
+ }
6034
6074
  .ods-list-action--swipe-mode .ods-list-action__indicator {
6035
6075
  margin-right: 24px;
6036
6076
  }
6037
6077
 
6078
+ .ods-list-expandable {
6079
+ background-color: white;
6080
+ display: flex;
6081
+ flex-direction: column;
6082
+ min-width: 0;
6083
+ overflow: hidden;
6084
+ position: relative;
6085
+ width: 100%;
6086
+ }
6087
+ .ods-list-expandable--disabled {
6088
+ cursor: not-allowed;
6089
+ opacity: 0.6;
6090
+ }
6091
+ .ods-list-expandable__divider {
6092
+ border-bottom: 1px solid #e0e2ee;
6093
+ margin: 0 16px;
6094
+ }
6095
+ .ods-list-expandable--card {
6096
+ border: 1px solid #e0e2ee;
6097
+ border-radius: 8px;
6098
+ }
6099
+ .ods-list-expandable--text {
6100
+ border: 0;
6101
+ border-radius: 0;
6102
+ }
6103
+ .ods-list-expandable__main {
6104
+ align-items: center;
6105
+ background-color: transparent;
6106
+ border: 0;
6107
+ cursor: pointer;
6108
+ display: flex;
6109
+ gap: 12px;
6110
+ min-width: 0;
6111
+ padding: 16px 8px 16px 16px;
6112
+ text-align: left;
6113
+ transition: background-color 0.2s ease;
6114
+ width: 100%;
6115
+ }
6116
+ .ods-list-expandable__main:hover:not(.ods-card-list-expandable--loading .ods-list-expandable__main) {
6117
+ background-color: #f3f5fe;
6118
+ }
6119
+ .ods-list-expandable__main:focus-visible {
6120
+ outline: 2px solid #0025e0;
6121
+ outline-offset: -2px;
6122
+ }
6123
+ .ods-list-expandable__icon {
6124
+ align-items: center;
6125
+ color: #5872f5;
6126
+ display: flex;
6127
+ flex-shrink: 0;
6128
+ }
6129
+ .ods-list-expandable__icon--inactive svg {
6130
+ color: #ced1e1;
6131
+ }
6132
+ .ods-list-expandable__trailing {
6133
+ align-items: center;
6134
+ display: flex;
6135
+ flex-shrink: 0;
6136
+ gap: 8px;
6137
+ margin-left: auto;
6138
+ }
6139
+ .ods-list-expandable__indicator {
6140
+ align-items: center;
6141
+ display: flex;
6142
+ flex-shrink: 0;
6143
+ }
6144
+ .ods-list-expandable__action {
6145
+ align-items: center;
6146
+ display: flex;
6147
+ flex-shrink: 0;
6148
+ }
6149
+ .ods-list-expandable__action svg {
6150
+ color: #aaadc0;
6151
+ transition: transform 0.2s ease;
6152
+ }
6153
+ .ods-list-expandable__content {
6154
+ box-sizing: border-box;
6155
+ overflow: hidden;
6156
+ width: 100%;
6157
+ word-wrap: break-word;
6158
+ }
6159
+ .ods-list-expandable__skeleton {
6160
+ box-sizing: border-box;
6161
+ display: flex;
6162
+ flex-direction: column;
6163
+ gap: 8px;
6164
+ padding: 0;
6165
+ width: 100%;
6166
+ }
6167
+ .ods-list-expandable__skeleton .ods-skeleton-bar {
6168
+ max-width: 100%;
6169
+ width: 100%;
6170
+ }
6171
+ .ods-list-expandable--loading .ods-list-expandable__main {
6172
+ box-sizing: border-box;
6173
+ cursor: default;
6174
+ overflow: hidden;
6175
+ pointer-events: none;
6176
+ }
6177
+ .ods-list-expandable--expanded .ods-list-expandable__main:hover {
6178
+ background-color: #f3f5fe;
6179
+ }
6180
+
6038
6181
  .ods-list-selectable__indicator {
6039
6182
  margin-left: 12px;
6040
6183
  }