smbls 0.15.4 → 0.15.6

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.15.4",
6
+ "version": "0.15.6",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/Button.js CHANGED
@@ -7,10 +7,7 @@ const style = {
7
7
  appearance: 'none',
8
8
  border: 'none',
9
9
  cursor: 'pointer',
10
- fontFamily: 'inherit',
11
- '& > *': {
12
- pointerEvents: 'none'
13
- }
10
+ fontFamily: 'inherit'
14
11
  }
15
12
 
16
13
  export const Button = {
package/src/Link.js CHANGED
@@ -15,6 +15,6 @@ export const Link = {
15
15
  attr: {
16
16
  href: element => exec(element.props.href, element) || exec(element.props, element).href,
17
17
  target: ({ props }) => props.target,
18
- 'aria-label': ({ props }) => props.aria.label || props.text
18
+ 'aria-label': ({ props }) => props.aria ? props.aria.label : props.text
19
19
  }
20
20
  }
package/src/User.js CHANGED
@@ -4,26 +4,25 @@ import { Img, Flex } from '.'
4
4
 
5
5
  export const User = {
6
6
  extend: Img,
7
- props: {
7
+ key: 'nikoloza',
8
+ props: ({ key }) => ({
8
9
  borderRadius: '100%',
9
10
  boxSize: 'B',
10
- src: 'https://p194.p3.n0.cdn.getcloudapp.com/items/yAubz2KN/IMG_2375.jpg?v=c59a92ea47a959e386e952c3d84c08e5',
11
- style: {
12
- cursor: 'pointer'
13
- }
14
- }
11
+ src: `https://avatars.dicebear.com/api/adventurer-neutral/${key}.svg`,
12
+ cursor: 'pointer'
13
+ })
15
14
  }
16
15
 
17
16
  export const UserBundle = {
18
17
  extend: Flex,
19
18
  childExtend: {
20
19
  extend: User,
21
- props: {
20
+ props: ({ key }) => ({
22
21
  boxSize: 'B1',
23
22
  border: '0.1312em, black .85, solid',
24
23
  ':not(:last-child)': {
25
24
  margin: '0 -Y2 0 0'
26
25
  }
27
- }
26
+ })
28
27
  }
29
28
  }