@symbo.ls/avatar
Advanced tools
Comparing version 2.11.204 to 2.11.205
60
index.js
'use strict' | ||
import { Button } from '@symbo.ls/button' | ||
export * from './Avatar' | ||
export * from './AvatarIndicator' | ||
export * from './AvatarBundle' | ||
export const AvatarChooser = { | ||
extend: Button, | ||
tag: 'label', | ||
props: { | ||
round: 'C', | ||
gap: 'Y', | ||
padding: 'W2 A W2 W2', | ||
theme: 'tertiary', | ||
position: 'relative', | ||
cursor: 'pointer' | ||
}, | ||
Avatar: { | ||
props: ({ state }) => ({ | ||
key: state.key, | ||
boxSize: 'B1', | ||
pointerEvents: 'none' | ||
}) | ||
}, | ||
Select: { | ||
props: { | ||
outline: 'none', | ||
pointerEvents: 'all', | ||
appearance: 'none', | ||
border: 'none', | ||
width: '100%', | ||
height: '100%', | ||
background: 'none', | ||
color: 'currentColor', | ||
fontSize: 'A', | ||
lineHeight: 1, | ||
margin: '0 0 0 -B1+X', | ||
padding: '0 A 0 B1+X', | ||
':focus-visible': { | ||
outline: 'none' | ||
} | ||
}, | ||
childExtend: { tag: 'option' }, | ||
$setPropsCollection: ({ parent, state }) => { | ||
return parent.props.options.map(v => { | ||
if (v.text === state.key) return { ...v, selected: true } | ||
return v | ||
}) | ||
}, | ||
on: { | ||
change: (ev, { state }) => { | ||
state.update({ key: ev.target.value }) | ||
console.log(state.key) | ||
} | ||
} | ||
} | ||
} | ||
export * from './AvatarChooser' |
{ | ||
"name": "@symbo.ls/avatar", | ||
"version": "2.11.204", | ||
"version": "2.11.205", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "dab7f6d84335bca5af356b849c51204910670e76", | ||
"gitHead": "34a12e0c41de4a08c45fa5f48b0913510b861c06", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@symbo.ls/atoms": "latest", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4211
8
135