@useblu/ocean-core 1.116.0 → 1.118.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.118.0](https://github.com/ocean-ds/ocean-web/compare/v1.117.0...v1.118.0) (2025-12-08)
7
+
8
+ ### Features
9
+
10
+ - card list expandable ([#1197](https://github.com/ocean-ds/ocean-web/issues/1197)) ([3016461](https://github.com/ocean-ds/ocean-web/commit/3016461f3a408dafb3645e53a00d2ce769e60691))
11
+
12
+ # [1.117.0](https://github.com/ocean-ds/ocean-web/compare/v1.116.0...v1.117.0) (2025-12-08)
13
+
14
+ ### Features
15
+
16
+ - create list action ([#1204](https://github.com/ocean-ds/ocean-web/issues/1204)) ([e1ccd7e](https://github.com/ocean-ds/ocean-web/commit/e1ccd7ed29bf4da881081db93123d19ec1cc5511))
17
+
6
18
  # [1.116.0](https://github.com/ocean-ds/ocean-web/compare/v1.115.0...v1.116.0) (2025-12-08)
7
19
 
8
20
  ### Features
package/ocean.css CHANGED
@@ -2783,9 +2783,10 @@
2783
2783
  box-shadow: none;
2784
2784
  display: flex;
2785
2785
  flex-direction: row;
2786
- left: 0;
2786
+ left: auto;
2787
2787
  margin: 0;
2788
2788
  max-height: none;
2789
+ max-width: 100%;
2789
2790
  min-width: auto;
2790
2791
  overflow-x: auto;
2791
2792
  overflow-y: hidden;
@@ -2793,7 +2794,7 @@
2793
2794
  position: absolute;
2794
2795
  right: 0;
2795
2796
  top: 0;
2796
- width: 100%;
2797
+ width: auto;
2797
2798
  z-index: 102;
2798
2799
  /* stylelint-disable-next-line order/properties-alphabetical-order */
2799
2800
  -webkit-overflow-scrolling: touch;
@@ -2804,7 +2805,7 @@
2804
2805
  }
2805
2806
  .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
2807
  bottom: 0;
2807
- left: 0;
2808
+ left: auto;
2808
2809
  right: 0;
2809
2810
  top: 0;
2810
2811
  }
@@ -2815,9 +2816,6 @@
2815
2816
  margin: 0;
2816
2817
  padding: 0;
2817
2818
  }
2818
- .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu li:first-of-type {
2819
- margin-left: auto;
2820
- }
2821
2819
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item {
2822
2820
  align-items: center;
2823
2821
  border-radius: 0;
@@ -2843,6 +2841,9 @@
2843
2841
  background: #2da94f;
2844
2842
  color: white;
2845
2843
  }
2844
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2845
+ background: #7adc94;
2846
+ }
2846
2847
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--positive .ods-internal-list-actions__menu-item-icon {
2847
2848
  color: white;
2848
2849
  }
@@ -2850,6 +2851,9 @@
2850
2851
  background: #ff8a14;
2851
2852
  color: white;
2852
2853
  }
2854
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2855
+ background: #ffbd7a;
2856
+ }
2853
2857
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--warning .ods-internal-list-actions__menu-item-icon {
2854
2858
  color: white;
2855
2859
  }
@@ -2857,6 +2861,9 @@
2857
2861
  background: #f5456e;
2858
2862
  color: white;
2859
2863
  }
2864
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2865
+ background: #d31441;
2866
+ }
2860
2867
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--negative .ods-internal-list-actions__menu-item-icon {
2861
2868
  color: white;
2862
2869
  }
@@ -2864,6 +2871,9 @@
2864
2871
  background: #aaadc0;
2865
2872
  color: white;
2866
2873
  }
2874
+ .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral:hover:not(.ods-internal-list-actions__menu-item--disabled) {
2875
+ background: #67697a;
2876
+ }
2867
2877
  .ods-internal-list-actions--force-swipe .ods-internal-list-actions__menu-item--neutral .ods-internal-list-actions__menu-item-icon {
2868
2878
  color: white;
2869
2879
  }
@@ -2871,57 +2881,44 @@
2871
2881
  background: #f3f5fe;
2872
2882
  color: #393b47;
2873
2883
  }
2884
+ .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) {
2885
+ background: #e0e2ee;
2886
+ }
2874
2887
  .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
2888
  color: #393b47;
2876
2889
  }
2877
2890
 
2878
2891
  @-webkit-keyframes slideInFromRight {
2879
2892
  from {
2880
- opacity: 0;
2881
- transform: scaleX(0);
2882
- transform-origin: right center;
2893
+ transform: translateX(100%);
2883
2894
  }
2884
2895
  to {
2885
- opacity: 1;
2886
- transform: scaleX(1);
2887
- transform-origin: right center;
2896
+ transform: translateX(0);
2888
2897
  }
2889
2898
  }
2890
2899
 
2891
2900
  @keyframes slideInFromRight {
2892
2901
  from {
2893
- opacity: 0;
2894
- transform: scaleX(0);
2895
- transform-origin: right center;
2902
+ transform: translateX(100%);
2896
2903
  }
2897
2904
  to {
2898
- opacity: 1;
2899
- transform: scaleX(1);
2900
- transform-origin: right center;
2905
+ transform: translateX(0);
2901
2906
  }
2902
2907
  }
2903
2908
  @-webkit-keyframes slideOutToRight {
2904
2909
  from {
2905
- opacity: 1;
2906
- transform: scaleX(1);
2907
- transform-origin: right center;
2910
+ transform: translateX(0);
2908
2911
  }
2909
2912
  to {
2910
- opacity: 0;
2911
- transform: scaleX(0);
2912
- transform-origin: right center;
2913
+ transform: translateX(100%);
2913
2914
  }
2914
2915
  }
2915
2916
  @keyframes slideOutToRight {
2916
2917
  from {
2917
- opacity: 1;
2918
- transform: scaleX(1);
2919
- transform-origin: right center;
2918
+ transform: translateX(0);
2920
2919
  }
2921
2920
  to {
2922
- opacity: 0;
2923
- transform: scaleX(0);
2924
- transform-origin: right center;
2921
+ transform: translateX(100%);
2925
2922
  }
2926
2923
  }
2927
2924
  .ods-link {
@@ -2999,13 +2996,28 @@
2999
2996
  .ods-list .ods-transaction-list-item__sub-itens .ods-transaction-list-item {
3000
2997
  border: 0;
3001
2998
  }
3002
- .ods-list .ods-card-list-item,
3003
- .ods-list .ods-card-list-action {
2999
+ .ods-list .ods-card-list-item {
3004
3000
  border: 0;
3005
3001
  border-radius: 0;
3006
3002
  }
3007
- .ods-list .ods-card-list-item:not(:last-of-type),
3008
- .ods-list .ods-card-list-action:not(:last-of-type) {
3003
+ .ods-list .ods-card-list-item:not(:last-of-type) {
3004
+ border-bottom: 1px solid #e0e2ee;
3005
+ }
3006
+ .ods-list .ods-list-action__container .ods-list-action {
3007
+ border: 0;
3008
+ border-radius: 0;
3009
+ }
3010
+ .ods-list .ods-list-action__container:last-of-type > .ods-list-action__divider {
3011
+ border: 0;
3012
+ }
3013
+ .ods-list .ods-list-action__container:not(:last-of-type) > .ods-list-action--card {
3014
+ border-bottom: 1px solid #e0e2ee;
3015
+ }
3016
+ .ods-list .ods-list-expandable--card {
3017
+ border: 0;
3018
+ border-radius: 0;
3019
+ }
3020
+ .ods-list .ods-list-expandable--card:not(:last-of-type) {
3009
3021
  border-bottom: 1px solid #e0e2ee;
3010
3022
  }
3011
3023
  .ods-list .ods-list-selectable__root:last-of-type .ods-list-selectable__root--text--divider {
@@ -5942,138 +5954,271 @@
5942
5954
  text-decoration: line-through;
5943
5955
  }
5944
5956
 
5945
- .ods-list-selectable__indicator {
5946
- margin-left: 12px;
5957
+ .ods-list-action {
5958
+ align-items: center;
5959
+ background-color: white;
5960
+ border: 1px solid #ced1e1;
5961
+ border-radius: 8px;
5962
+ cursor: pointer;
5963
+ display: flex;
5964
+ gap: 12px;
5965
+ overflow: hidden;
5966
+ padding: 16px 8px 16px 16px;
5967
+ position: relative;
5968
+ text-align: left;
5969
+ transition: background-color 0.2s ease;
5970
+ width: 100%;
5947
5971
  }
5948
- .ods-list-selectable__indicator--app {
5949
- margin-right: 8px;
5972
+ .ods-list-action__container {
5973
+ width: 100%;
5950
5974
  }
5951
- .ods-list-selectable .ods-checkbox__root,
5952
- .ods-list-selectable .ods-radio__root {
5975
+ .ods-list-action__content {
5953
5976
  align-items: center;
5954
- background-color: white;
5955
- padding: 16px;
5977
+ display: flex;
5978
+ flex: 1;
5979
+ gap: 12px;
5980
+ min-width: 0;
5981
+ transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
5956
5982
  }
5957
- .ods-list-selectable .ods-checkbox__root:hover, .ods-list-selectable .ods-checkbox__root:focus,
5958
- .ods-list-selectable .ods-radio__root:hover,
5959
- .ods-list-selectable .ods-radio__root:focus {
5983
+ .ods-list-action--card {
5984
+ border-color: #ced1e1;
5985
+ }
5986
+ .ods-list-action--text {
5987
+ border: 0;
5988
+ border-radius: 0;
5989
+ }
5990
+ .ods-list-action__divider {
5991
+ border-bottom: 1px solid #e0e2ee;
5992
+ margin: 0 16px;
5993
+ }
5994
+ .ods-list-action:hover:not(.ods-list-action--disabled):not(.ods-list-action--loading):not(.ods-list-action--swipe-open) {
5960
5995
  background-color: #f3f5fe;
5961
- cursor: pointer;
5962
5996
  }
5963
- .ods-list-selectable .ods-checkbox__label,
5964
- .ods-list-selectable .ods-radio__label {
5997
+ .ods-list-action:focus-visible {
5998
+ outline: 2px solid #0025e0;
5999
+ outline-offset: 2px;
6000
+ }
6001
+ .ods-list-action:active:not(.ods-list-action--disabled):not(.ods-list-action--loading):not(.ods-list-action--swipe-open) {
6002
+ background-color: #ced1e1;
6003
+ }
6004
+ .ods-list-action__icon {
5965
6005
  align-items: center;
6006
+ color: #5872f5;
5966
6007
  display: flex;
5967
- padding-left: 16px;
5968
- width: 100%;
6008
+ flex-shrink: 0;
5969
6009
  }
5970
- .ods-list-selectable--loading {
5971
- cursor: default;
6010
+ .ods-list-action__icon--inactive svg {
6011
+ color: #ced1e1;
6012
+ }
6013
+ .ods-list-action__trailing {
6014
+ align-items: center;
6015
+ display: flex;
6016
+ flex-shrink: 0;
6017
+ gap: 8px;
6018
+ margin-left: auto;
6019
+ }
6020
+ .ods-list-action__action {
6021
+ align-items: center;
6022
+ display: flex;
6023
+ flex-shrink: 0;
6024
+ }
6025
+ .ods-list-action__action svg {
6026
+ color: #aaadc0;
6027
+ }
6028
+ .ods-list-action__indicator {
6029
+ flex-shrink: 0;
6030
+ }
6031
+ .ods-list-action__skeleton {
5972
6032
  display: flex;
5973
6033
  flex-direction: column;
5974
6034
  gap: 8px;
6035
+ width: 100%;
6036
+ }
6037
+ .ods-list-action__skeleton .ods-skeleton-bar {
6038
+ max-width: 100%;
6039
+ }
6040
+ .ods-list-action--loading {
6041
+ cursor: default;
6042
+ padding-right: 16px;
5975
6043
  pointer-events: none;
5976
6044
  }
5977
- .ods-list-selectable--app .ods-checkbox__root,
5978
- .ods-list-selectable--app .ods-radio__root {
5979
- display: flex;
5980
- flex-direction: row-reverse;
6045
+ .ods-list-action--disabled {
6046
+ cursor: not-allowed;
6047
+ opacity: 0.6;
5981
6048
  }
5982
6049
 
5983
- .ods-list-selectable--disabled {
5984
- background-color: transparent;
5985
- cursor: not-allowed;
6050
+ .ods-list-action--swipe-mode .ods-list-action__content:not(:has(.ods-list-action__indicator)) {
6051
+ margin-right: 24px;
5986
6052
  }
5987
- .ods-list-selectable--disabled .ods-checkbox__root:hover, .ods-list-selectable--disabled .ods-checkbox__root:focus,
5988
- .ods-list-selectable--disabled .ods-radio__root:hover,
5989
- .ods-list-selectable--disabled .ods-radio__root:focus {
5990
- background-color: transparent;
5991
- cursor: not-allowed;
6053
+ .ods-list-action--swipe-mode .ods-list-action__indicator {
6054
+ margin-right: 24px;
5992
6055
  }
5993
6056
 
5994
- .ods-list-selectable__root {
6057
+ .ods-list-expandable {
6058
+ background-color: white;
6059
+ display: flex;
6060
+ flex-direction: column;
6061
+ min-width: 0;
5995
6062
  overflow: hidden;
6063
+ position: relative;
6064
+ width: 100%;
5996
6065
  }
5997
- .ods-list-selectable__root--card {
6066
+ .ods-list-expandable--disabled {
6067
+ cursor: not-allowed;
6068
+ opacity: 0.6;
6069
+ }
6070
+ .ods-list-expandable__divider {
6071
+ border-bottom: 1px solid #e0e2ee;
6072
+ margin: 0 16px;
6073
+ }
6074
+ .ods-list-expandable--card {
5998
6075
  border: 1px solid #e0e2ee;
5999
6076
  border-radius: 8px;
6000
6077
  }
6001
- .ods-list-selectable__root--card--error {
6002
- border-color: #f5456e;
6003
- }
6004
- .ods-list-selectable__root--text--divider {
6005
- background-color: #e0e2ee;
6006
- height: 1px;
6007
- margin: 0 16px;
6078
+ .ods-list-expandable--text {
6079
+ border: 0;
6080
+ border-radius: 0;
6008
6081
  }
6009
-
6010
- .ods-card-list-action {
6082
+ .ods-list-expandable__main {
6011
6083
  align-items: center;
6012
- background-color: white;
6013
- border: 1px solid #ced1e1;
6014
- border-radius: 8px;
6084
+ background-color: transparent;
6085
+ border: 0;
6015
6086
  cursor: pointer;
6016
6087
  display: flex;
6017
6088
  gap: 12px;
6089
+ min-width: 0;
6018
6090
  padding: 16px 8px 16px 16px;
6019
- position: relative;
6020
6091
  text-align: left;
6021
6092
  transition: background-color 0.2s ease;
6022
6093
  width: 100%;
6023
6094
  }
6024
- .ods-card-list-action:hover:not(.ods-card-list-action--disabled):not(.ods-card-list-action--loading) {
6095
+ .ods-list-expandable__main:hover:not(.ods-card-list-expandable--loading .ods-list-expandable__main) {
6025
6096
  background-color: #f3f5fe;
6026
6097
  }
6027
- .ods-card-list-action:focus-visible {
6098
+ .ods-list-expandable__main:focus-visible {
6028
6099
  outline: 2px solid #0025e0;
6029
- outline-offset: 2px;
6100
+ outline-offset: -2px;
6030
6101
  }
6031
- .ods-card-list-action:active:not(.ods-card-list-action--disabled):not(.ods-card-list-action--loading) {
6032
- background-color: #ced1e1;
6033
- }
6034
- .ods-card-list-action__icon {
6102
+ .ods-list-expandable__icon {
6035
6103
  align-items: center;
6036
6104
  color: #5872f5;
6037
6105
  display: flex;
6038
6106
  flex-shrink: 0;
6039
6107
  }
6040
- .ods-card-list-action__icon--inactive svg {
6108
+ .ods-list-expandable__icon--inactive svg {
6041
6109
  color: #ced1e1;
6042
6110
  }
6043
- .ods-card-list-action__trailing {
6111
+ .ods-list-expandable__trailing {
6044
6112
  align-items: center;
6045
6113
  display: flex;
6046
6114
  flex-shrink: 0;
6047
6115
  gap: 8px;
6048
6116
  margin-left: auto;
6049
6117
  }
6050
- .ods-card-list-action__action {
6118
+ .ods-list-expandable__indicator {
6051
6119
  align-items: center;
6052
6120
  display: flex;
6053
6121
  flex-shrink: 0;
6054
6122
  }
6055
- .ods-card-list-action__action svg {
6123
+ .ods-list-expandable__action {
6124
+ align-items: center;
6125
+ display: flex;
6126
+ flex-shrink: 0;
6127
+ }
6128
+ .ods-list-expandable__action svg {
6056
6129
  color: #aaadc0;
6130
+ transition: transform 0.2s ease;
6057
6131
  }
6058
- .ods-card-list-action__skeleton {
6132
+ .ods-list-expandable__content {
6133
+ box-sizing: border-box;
6134
+ overflow: hidden;
6135
+ width: 100%;
6136
+ word-wrap: break-word;
6137
+ }
6138
+ .ods-list-expandable__skeleton {
6139
+ box-sizing: border-box;
6059
6140
  display: flex;
6060
6141
  flex-direction: column;
6061
6142
  gap: 8px;
6143
+ padding: 0;
6062
6144
  width: 100%;
6063
6145
  }
6064
- .ods-card-list-action__skeleton .ods-skeleton-bar {
6146
+ .ods-list-expandable__skeleton .ods-skeleton-bar {
6065
6147
  max-width: 100%;
6148
+ width: 100%;
6149
+ }
6150
+ .ods-list-expandable--loading .ods-list-expandable__main {
6151
+ box-sizing: border-box;
6152
+ cursor: default;
6153
+ overflow: hidden;
6154
+ pointer-events: none;
6155
+ }
6156
+ .ods-list-expandable--expanded .ods-list-expandable__main:hover {
6157
+ background-color: #f3f5fe;
6158
+ }
6159
+
6160
+ .ods-list-selectable__indicator {
6161
+ margin-left: 12px;
6162
+ }
6163
+ .ods-list-selectable__indicator--app {
6164
+ margin-right: 8px;
6165
+ }
6166
+ .ods-list-selectable .ods-checkbox__root,
6167
+ .ods-list-selectable .ods-radio__root {
6168
+ align-items: center;
6169
+ background-color: white;
6170
+ padding: 16px;
6171
+ }
6172
+ .ods-list-selectable .ods-checkbox__root:hover, .ods-list-selectable .ods-checkbox__root:focus,
6173
+ .ods-list-selectable .ods-radio__root:hover,
6174
+ .ods-list-selectable .ods-radio__root:focus {
6175
+ background-color: #f3f5fe;
6176
+ cursor: pointer;
6066
6177
  }
6067
- .ods-card-list-action--loading {
6178
+ .ods-list-selectable .ods-checkbox__label,
6179
+ .ods-list-selectable .ods-radio__label {
6180
+ align-items: center;
6181
+ display: flex;
6182
+ padding-left: 16px;
6183
+ width: 100%;
6184
+ }
6185
+ .ods-list-selectable--loading {
6068
6186
  cursor: default;
6187
+ display: flex;
6188
+ flex-direction: column;
6189
+ gap: 8px;
6069
6190
  pointer-events: none;
6070
6191
  }
6071
- .ods-card-list-action--disabled {
6192
+ .ods-list-selectable--app .ods-checkbox__root,
6193
+ .ods-list-selectable--app .ods-radio__root {
6194
+ display: flex;
6195
+ flex-direction: row-reverse;
6196
+ }
6197
+
6198
+ .ods-list-selectable--disabled {
6199
+ background-color: transparent;
6200
+ cursor: not-allowed;
6201
+ }
6202
+ .ods-list-selectable--disabled .ods-checkbox__root:hover, .ods-list-selectable--disabled .ods-checkbox__root:focus,
6203
+ .ods-list-selectable--disabled .ods-radio__root:hover,
6204
+ .ods-list-selectable--disabled .ods-radio__root:focus {
6205
+ background-color: transparent;
6072
6206
  cursor: not-allowed;
6073
- opacity: 0.6;
6074
6207
  }
6075
6208
 
6076
- .ods-card-list-action--swipe-mode .ods-card-list-action__indicator {
6077
- margin-right: 24px;
6209
+ .ods-list-selectable__root {
6210
+ overflow: hidden;
6211
+ }
6212
+ .ods-list-selectable__root--card {
6213
+ border: 1px solid #e0e2ee;
6214
+ border-radius: 8px;
6215
+ }
6216
+ .ods-list-selectable__root--card--error {
6217
+ border-color: #f5456e;
6218
+ }
6219
+ .ods-list-selectable__root--text--divider {
6220
+ background-color: #e0e2ee;
6221
+ height: 1px;
6222
+ margin: 0 16px;
6078
6223
  }
6079
6224
  /*# sourceMappingURL=ocean.css.map */