@phillips/seldon 1.133.2 → 1.133.4

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.
@@ -8,6 +8,7 @@
8
8
  // ⚛️ Components
9
9
  @use 'components/Button/button';
10
10
  @use 'components/IconButton/iconButton';
11
+ @use 'components/Icon/icon';
11
12
  @use 'components/Grid/grid';
12
13
  @use 'components/Navigation/navigation';
13
14
  @use 'components/Navigation/NavigationItem/navigationItem';
@@ -0,0 +1,11 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-icon {
4
+ align-items: center; /* for alignment of svg */
5
+ display: flex; /* for alignment of svg */
6
+ justify-content: center; /* for alignment of svg */
7
+ svg {
8
+ max-height: 100%;
9
+ max-width: 100%;
10
+ }
11
+ }
@@ -1,2 +1,3 @@
1
+ export declare const getScssVarsMap: () => Record<string, string>;
1
2
  export declare const getScssVar: (scssVar: string, defaultValue: string) => string;
2
3
  export declare const getScssColors: () => string[];
@@ -1,12 +1,18 @@
1
- import l from "../scss/_vars.scss.js";
2
- const c = (r, a) => {
3
- const n = l.split(`
4
- `).map((e) => {
5
- const [o, s] = e.split(": ");
6
- return { name: o, value: s?.replace(";", "") };
7
- }), t = n.findIndex(({ name: e }) => e === r);
8
- return r && t > -1 ? n[t].value : a;
1
+ import n from "../scss/_vars.scss.js";
2
+ const o = () => {
3
+ const a = n.split(`
4
+ `).map((s) => {
5
+ const [t, c] = s.split(": ");
6
+ return { name: t, value: c?.replace(";", "") };
7
+ }), r = {};
8
+ return a.forEach(({ name: s, value: t }) => {
9
+ s && t && (r[s] = t);
10
+ }), r;
11
+ }, e = (a, r) => {
12
+ const s = o();
13
+ return s[a] ?? s[r] ?? r;
9
14
  };
10
15
  export {
11
- c as getScssVar
16
+ e as getScssVar,
17
+ o as getScssVarsMap
12
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.133.2",
3
+ "version": "1.133.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"