@appartmint/mint 1.0.0 → 1.0.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.
@@ -82,7 +82,7 @@
82
82
  overflow: visible;
83
83
 
84
84
  & > #{class(image)},
85
- & > mint-image #{class(image)} {
85
+ & > #{prefix(image-widget)} #{class(image)} {
86
86
  width: calc(50% + $card-padding);
87
87
  height: fit-content;
88
88
  margin-right: $card-padding * -2;
@@ -109,7 +109,7 @@
109
109
  flex-direction: row-reverse;
110
110
 
111
111
  & > #{class(image)},
112
- & > mint-image #{class(image)} {
112
+ & > #{prefix(image-widget)} #{class(image)} {
113
113
  margin-right: 0;
114
114
  margin-left: $card-padding * -2;
115
115
  }
@@ -118,12 +118,12 @@
118
118
  }
119
119
 
120
120
  & > #{class(image)}:only-child,
121
- & > mint-image:only-child #{class(image)} {
121
+ & > #{prefix(image-widget)}:only-child #{class(image)} {
122
122
  width: 100%;
123
123
  }
124
124
 
125
125
  & > #{class(image)},
126
- & > mint-image #{class(image)} {
126
+ & > #{prefix(image-widget)} #{class(image)} {
127
127
  overflow: hidden;
128
128
 
129
129
  @include break(sm) {
@@ -171,7 +171,7 @@
171
171
  }
172
172
 
173
173
  & > #{class(image)},
174
- & > mint-image #{class(image)} {
174
+ & > #{prefix(image-widget)} #{class(image)} {
175
175
  width: 100%;
176
176
  height: 100%;
177
177
  max-width: $card-logo-size;
@@ -224,7 +224,7 @@
224
224
  flex-direction: column !important;
225
225
 
226
226
  & > #{class(image)},
227
- & > mint-image #{class(image)} {
227
+ & > #{prefix(image-widget)} #{class(image)} {
228
228
  overflow: hidden;
229
229
 
230
230
  @include break(sm) {
@@ -86,7 +86,7 @@ main {
86
86
  flex-grow: 1;
87
87
  width: 100%;
88
88
 
89
- &+:not(mint-footer) {
89
+ &+:not(#{prefix(footer-partial)}) {
90
90
  height: 0;
91
91
  overflow: hidden;
92
92
  }
@@ -136,7 +136,7 @@ button {
136
136
  filter: grayscale(1) brightness(0.75) !important;
137
137
  pointer-events: none !important;
138
138
 
139
- &#{class(fall-in)}#{neg(class(mint-show))} {
139
+ &#{class(fall-in)}#{neg(class(show))} {
140
140
  filter: grayscale(1) brightness(0.75) opacity(0%) !important;
141
141
  }
142
142
  }
@@ -114,7 +114,7 @@ textarea {
114
114
  filter: opacity(0);
115
115
  transition: filter 0.3s;
116
116
 
117
- &.mint-show {
117
+ &#{class(show)} {
118
118
  filter: opacity(1);
119
119
  }
120
120
  }
@@ -197,5 +197,12 @@ export abstract class MintObject {
197
197
  const newObjects = update?.filter((object) => !original.some((existingObject) => existingObject?.[key] === object?.[key]));
198
198
  newObjects?.forEach(newObject => original.push(newObject));
199
199
  }
200
+
201
+ /**
202
+ * Get an object's key by value
203
+ */
204
+ static getKeyByValue(object: any, value: any): string | undefined {
205
+ return Object.keys(object).find((key) => object[key] === value);
206
+ }
200
207
  };
201
208
  export default MintObject;