@appartmint/mint 1.0.1 → 1.0.3

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.
@@ -0,0 +1,18 @@
1
+ /// _tables.scss - Table styles
2
+ /// @author App Art Mint LLC
3
+ ///
4
+ /// @group Components
5
+ @charset 'utf-8';
6
+
7
+ /// Imports
8
+ @use '../util' as *;
9
+
10
+ /// Table
11
+ #{class(table)} {
12
+ #{class(actions)} {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: flex-end;
16
+ gap: 1rem;
17
+ }
18
+ }
@@ -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;