@symbo.ls/dropdown 0.4.3 → 0.6.2
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/index.js +93 -0
- package/dist/index.js.map +1 -0
- package/package.json +5 -5
- package/packages/react/dist/index.js +17 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react/package.json +7 -3
- package/packages/react/src/index.js +8 -0
- package/packages/react/index.js +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var $cSP6Z$symbolsicontext = require("@symbo.ls/icon-text");
|
|
2
|
+
var $cSP6Z$symbolsshape = require("@symbo.ls/shape");
|
|
3
|
+
|
|
4
|
+
function $parcel$export(e, n, v, s) {
|
|
5
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$parcel$export(module.exports, "DropdownList", () => $0756faf4bc20dc6b$export$e40cc1c58d22b809);
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
'use strict';
|
|
12
|
+
const $67293201faa84f19$export$3fa84c57670413d0 = {
|
|
13
|
+
listStyleType: 'none',
|
|
14
|
+
padding: '4px',
|
|
15
|
+
maxHeight: '17.6em'
|
|
16
|
+
};
|
|
17
|
+
const $67293201faa84f19$export$e97f5d2119de78ee = {
|
|
18
|
+
height: `${2.625}em`,
|
|
19
|
+
width: `${11.125}em`,
|
|
20
|
+
position: 'relative',
|
|
21
|
+
padding: 0,
|
|
22
|
+
span: {
|
|
23
|
+
height: '100%',
|
|
24
|
+
display: 'flex',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
justifyContent: 'space-between',
|
|
27
|
+
padding: '0 10px',
|
|
28
|
+
margin: '0 6px',
|
|
29
|
+
svg: {
|
|
30
|
+
display: 'none'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
'&:not(:last-child) > span': {
|
|
34
|
+
borderBottom: '.5px solid rgba(0, 0, 0, .12)'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const $67293201faa84f19$export$e5878d2b38dd3490 = {
|
|
38
|
+
// '&:not(:last-child) > span': {
|
|
39
|
+
// borderBottom: 'none'
|
|
40
|
+
// },
|
|
41
|
+
'span > svg': {
|
|
42
|
+
display: 'inline'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const $67293201faa84f19$export$f1c635b4de687be8 = {
|
|
46
|
+
color: 'red'
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
'use strict';
|
|
51
|
+
const $0756faf4bc20dc6b$export$e40cc1c58d22b809 = {
|
|
52
|
+
style: $67293201faa84f19$export$3fa84c57670413d0,
|
|
53
|
+
tag: 'ul',
|
|
54
|
+
proto: $cSP6Z$symbolsshape.Shape,
|
|
55
|
+
state: {
|
|
56
|
+
active: 0
|
|
57
|
+
},
|
|
58
|
+
childProto: {
|
|
59
|
+
tag: 'li',
|
|
60
|
+
proto: [
|
|
61
|
+
$cSP6Z$symbolsshape.Shape
|
|
62
|
+
],
|
|
63
|
+
style: $67293201faa84f19$export$e97f5d2119de78ee,
|
|
64
|
+
props: (el, s)=>({
|
|
65
|
+
depth: 0,
|
|
66
|
+
round: 0
|
|
67
|
+
})
|
|
68
|
+
,
|
|
69
|
+
span: {
|
|
70
|
+
proto: [
|
|
71
|
+
$cSP6Z$symbolsicontext.IconText
|
|
72
|
+
],
|
|
73
|
+
props: {
|
|
74
|
+
icon: 'checkmark',
|
|
75
|
+
text: ''
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
class: {
|
|
79
|
+
active: (element, state)=>state.active === element.key ? $67293201faa84f19$export$e5878d2b38dd3490 : {
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
on: {
|
|
83
|
+
click: (event, element, state)=>{
|
|
84
|
+
state.update({
|
|
85
|
+
active: element.key
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|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I;QACT,KAAK,EAAE,CAAC;YAAA,yBAAK;QAAA,CAAC;QAEd,KAAK,EAAE,yCAAQ;QACf,KAAK,GAAG,EAAE,EAAE,CAAC,IAAM,CAAC;gBAClB,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;YAEV,CAAC;;QAED,IAAI,EAAE,CAAC;YACL,KAAK,EAAE,CAAC;gBAAA,+BAAQ;YAAA,CAAC;YACjB,KAAK,EAAE,CAAC;gBACN,IAAI,EAAE,CAAW;gBACjB,IAAI,EAAE,CAAE;YACV,CAAC;QACH,CAAC;QACD,KAAK,EAAE,CAAC;YACN,MAAM,GAAG,OAAO,EAAE,KAAK,GAAM,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC,GAAG,GAAI,yCAAc,GAAG,CAAC;gBAAA,CAAC;QAClF,CAAC;QACD,EAAE,EAAE,CAAC;YACH,KAAK,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,GAAK,CAAC;gBACjC,KAAK,CAAC,MAAM,CAAC,CAAC;oBAAC,MAAM,EAAE,OAAO,CAAC,GAAG;gBAAC,CAAC;YACtC,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC","sources":["packages/dropdown/src/index.js","packages/dropdown/src/style.js"],"sourcesContent":["'use strict'\n\nimport { IconText } from '@symbo.ls/icon-text'\nimport { Shape } from '@symbo.ls/shape'\n\nimport { styleRow, styleRowActive, styleDropDown } from './style'\n\nexport const DropdownList = {\n style: styleDropDown,\n tag: 'ul',\n\n proto: Shape,\n\n state: {\n active: 0\n },\n\n childProto: {\n tag: 'li',\n proto: [Shape],\n\n style: styleRow,\n props: (el, s) => ({\n depth: 0,\n round: 0\n // theme: el.parent.props.rowTheme\n }),\n\n span: {\n proto: [IconText],\n props: {\n icon: 'checkmark',\n text: ''\n }\n },\n class: {\n active: (element, state) => (state.active === element.key) ? styleRowActive : {}\n },\n on: {\n click: (event, element, state) => {\n state.update({ active: element.key })\n }\n }\n }\n}\n","'use strict'\n\nexport const styleDropDown = {\n listStyleType: 'none',\n padding: '4px',\n maxHeight: '17.6em'\n}\n\nexport const styleRow = {\n height: `${42 / 16}em`,\n width: `${178 / 16}em`,\n position: 'relative',\n padding: 0,\n span: {\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: '0 10px',\n margin: '0 6px',\n svg: { display: 'none' }\n },\n '&:not(:last-child) > span': {\n borderBottom: '.5px solid rgba(0, 0, 0, .12)'\n }\n}\n\nexport const styleRowActive = {\n // '&:not(:last-child) > span': {\n // borderBottom: 'none'\n // },\n 'span > svg': { display: 'inline' }\n}\n\nexport const styleSelectDropdown = {\n color: 'red'\n}\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/dropdown",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "015f3b6e144e70bdc8ee765dca38cfbcfc775e21",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@symbo.ls/icon-text": "^0.
|
|
9
|
-
"@symbo.ls/shape": "^0.
|
|
8
|
+
"@symbo.ls/icon-text": "^0.6.2",
|
|
9
|
+
"@symbo.ls/shape": "^0.6.2"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var $zhACU$domqlreacttransformer = require("@domql/react-transformer");
|
|
2
|
+
var $zhACU$symbolsdropdown = require("@symbo.ls/dropdown");
|
|
3
|
+
|
|
4
|
+
function $parcel$export(e, n, v, s) {
|
|
5
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$parcel$export(module.exports, "Dropdown", () => $6f330ff22aa4b12c$export$931cbfb6bfb85fc);
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
'use strict';
|
|
12
|
+
const $6f330ff22aa4b12c$export$931cbfb6bfb85fc = (props, state)=>{
|
|
13
|
+
return $zhACU$domqlreacttransformer.reactTransformer($zhACU$symbolsdropdown.Dropdown, props, state);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;AAAA,CAAY;AAKL,KAAK,CAAC,wCAAQ,IAAI,KAAK,EAAE,KAAK,GAAK,CAAC;IACzC,MAAM,CAAC,6CAAgB,CAAC,+BAAS,EAAE,KAAK,EAAE,KAAK;AACjD,CAAC","sources":["packages/dropdown/packages/react/src/index.js"],"sourcesContent":["'use strict'\n\nimport { reactTransformer } from '@domql/react-transformer'\nimport { Dropdown as component } from '@symbo.ls/dropdown'\n\nexport const Dropdown = (props, state) => {\n return reactTransformer(component, props, state)\n}\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/react-dropdown",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "index.js",
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "015f3b6e144e70bdc8ee765dca38cfbcfc775e21",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@domql/react-transformer": "^2.0.0",
|
|
9
|
+
"@symbo.ls/dropdown": "^0.6.2"
|
|
10
|
+
}
|
|
7
11
|
}
|
package/packages/react/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict'
|