@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.
- package/dist/css/mint.css +13 -1
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/util/object.d.ts +4 -0
- package/dist/js/imports/util/object.d.ts.map +1 -1
- package/dist/js/index.js +6 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/components/_buttons.scss +9 -1
- package/src/scss/imports/components/_index.scss +1 -0
- package/src/scss/imports/components/_tables.scss +18 -0
- package/src/ts/imports/util/object.ts +7 -0
|
@@ -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;
|