@esportsplus/ui 0.0.69 → 0.0.72

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.
@@ -3,16 +3,16 @@ import s from './switch';
3
3
  import tex from './text';
4
4
  const select = (data) => {
5
5
  return s(Object.assign(data, {
6
- class: `field--optional ${data?.class || ''}`,
7
6
  field: {
7
+ class: `field--optional ${data?.class || ''}`,
8
8
  content: sel(data.field)
9
9
  }
10
10
  }));
11
11
  };
12
12
  const text = (data) => {
13
13
  return s(Object.assign(data, {
14
- class: `field--optional ${data?.class || ''}`,
15
14
  field: {
15
+ class: `field--optional ${data?.class || ''}`,
16
16
  content: tex(data.field)
17
17
  }
18
18
  }));
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
- "@esportsplus/action": "^0.0.31",
4
+ "@esportsplus/action": "^0.0.36",
5
5
  "@esportsplus/delegated-events": "^0.0.16",
6
- "@esportsplus/reactivity": "^0.0.18",
7
- "@esportsplus/template": "^0.0.15"
6
+ "@esportsplus/reactivity": "^0.0.22",
7
+ "@esportsplus/template": "^0.0.16"
8
8
  },
9
9
  "description": "UI",
10
10
  "devDependencies": {
11
- "@esportsplus/webpack": "^0.0.64",
11
+ "@esportsplus/webpack": "^0.0.97",
12
12
  "modern-normalize": "^1.1.0"
13
13
  },
14
14
  "main": "build/index.js",
@@ -22,5 +22,5 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "types": "build/index.d.ts",
25
- "version": "0.0.69"
25
+ "version": "0.0.72"
26
26
  }
@@ -5,8 +5,8 @@ import tex from './text';
5
5
 
6
6
  const select = (data: Parameters<typeof s>[0] & { field: Parameters<typeof sel>[0] }) => {
7
7
  return s(Object.assign(data, {
8
- class: `field--optional ${data?.class || ''}`,
9
8
  field: {
9
+ class: `field--optional ${data?.class || ''}`,
10
10
  content: sel( data.field )
11
11
  }
12
12
  }));
@@ -14,8 +14,8 @@ const select = (data: Parameters<typeof s>[0] & { field: Parameters<typeof sel>[
14
14
 
15
15
  const text = (data: Parameters<typeof s>[0] & { field: Parameters<typeof tex>[0] }) => {
16
16
  return s(Object.assign(data, {
17
- class: `field--optional ${data?.class || ''}`,
18
17
  field: {
18
+ class: `field--optional ${data?.class || ''}`,
19
19
  content: tex( data.field )
20
20
  }
21
21
  }));
package/webpack.config.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { config, entry, mode } from '@esportsplus/webpack';
1
+ import { config, entry } from '@esportsplus/webpack';
2
2
 
3
3
 
4
- export default ({ production }: { production?: string }) => config.web({
4
+ export default () => config.web({
5
5
  entry: {
6
6
  css: {
7
7
  components: {
@@ -18,7 +18,6 @@ export default ({ production }: { production?: string }) => config.web({
18
18
  }
19
19
  }
20
20
  },
21
- mode: mode(production),
22
21
  // Temporary output until css root directory can be set
23
22
  // through package.json or similar ( like 'main' key )
24
23
  output: {
package/build/entry.d.ts DELETED
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- styles: (files: string[], { font, fonts, normalizer }?: {
3
- font?: string | undefined;
4
- fonts?: string[] | undefined;
5
- normalizer?: boolean | undefined;
6
- }) => string[];
7
- variables: (files: string[]) => string[];
8
- };
9
- export default _default;
package/build/entry.js DELETED
@@ -1,19 +0,0 @@
1
- import { resolve } from '@esportsplus/webpack';
2
- const styles = (files, { font, fonts, normalizer } = {}) => {
3
- files.unshift(...resolve.glob(`./components/**/index.scss`));
4
- files.push(...resolve.glob(`./css-utilities/**/index.scss`));
5
- fonts = font ? [font] : fonts;
6
- if (fonts) {
7
- files.unshift(...resolve.glob(`../storage/fonts/{${fonts.join(',')}}/index.css`));
8
- }
9
- if (normalizer) {
10
- files.unshift('modern-normalize/modern-normalize.css');
11
- }
12
- return files;
13
- };
14
- const variables = (files) => {
15
- files.unshift(...resolve.glob('./components/**/variables.scss'));
16
- files.push(...resolve.glob('./css-utilities/**/variables.scss'));
17
- return files;
18
- };
19
- export default { styles, variables };