@symbo.ls/dropdown 3.2.3 → 3.3.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.
Files changed (2) hide show
  1. package/index.js +29 -3
  2. package/package.json +10 -2
package/index.js CHANGED
@@ -51,8 +51,8 @@ export const DropdownList = {
51
51
  },
52
52
 
53
53
  ':not(:first-child)': {
54
- '@dark': { border: 'gray4 .65, solid' },
55
- '@light': { border: 'gray11, solid' },
54
+ '@dark': { border: 'solid gray4.65' },
55
+ '@light': { border: 'solid gray11' },
56
56
  borderWidth: '1px 0 0'
57
57
  }
58
58
  }
@@ -90,9 +90,10 @@ export const DropdownParentFocus = {
90
90
  Input_trigger: {
91
91
  type: 'checkbox',
92
92
  opacity: '0',
93
+ visibility: 'hidden',
93
94
  position: 'absolute',
94
95
  inset: '0',
95
- onUpdate: el => el.node.blur()
96
+ onUpdate: (el) => el.node.blur()
96
97
  },
97
98
 
98
99
  Dropdown: {
@@ -102,3 +103,28 @@ export const DropdownParentFocus = {
102
103
  }
103
104
  }
104
105
  }
106
+ export const DropdownSiblingFocus = {
107
+ props: {
108
+ position: 'relative',
109
+ tabindex: '0',
110
+ style: {
111
+ '&:focus-within': {
112
+ zIndex: 1000,
113
+ '& ~ [dropdown]': {
114
+ transform: 'translate3d(0,0,0)',
115
+ opacity: 1,
116
+ visibility: 'visible'
117
+ }
118
+ }
119
+ }
120
+ },
121
+
122
+ Input_trigger: {
123
+ type: 'checkbox',
124
+ opacity: '0',
125
+ visibility: 'hidden',
126
+ position: 'absolute',
127
+ inset: '0',
128
+ onUpdate: (el) => el.node.blur()
129
+ }
130
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/dropdown",
3
- "version": "3.2.3",
3
+ "version": "3.3.2",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
@@ -8,5 +8,13 @@
8
8
  "@symbo.ls/atoms": "^3.2.3",
9
9
  "@symbo.ls/button": "^3.2.3"
10
10
  },
11
- "source": "src/index.js"
11
+ "source": "index.js",
12
+ "type": "module",
13
+ "module": "index.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./index.js",
17
+ "default": "./index.js"
18
+ }
19
+ }
12
20
  }