winduum 2.0.0-next.15 → 2.0.0-next.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "winduum",
3
- "version": "2.0.0-next.15",
3
+ "version": "2.0.0-next.16",
4
4
  "type": "module",
5
5
  "types": "types/index.d.ts",
6
6
  "main": "plugin/index.cjs",
@@ -19,7 +19,7 @@ export const showDetails = async (element, options = {}) => {
19
19
 
20
20
  const details = element.closest(options.selector)
21
21
  const { down } = await import('slide-element')
22
- const content = element.closest(options.summarySelector).nextElementSibling
22
+ const content = details.querySelector(options.summarySelector).nextElementSibling
23
23
 
24
24
  details._isHiding = false
25
25
  details.open = true
@@ -42,7 +42,7 @@ export const closeDetails = async (element, options = {}) => {
42
42
 
43
43
  const details = element.closest(options.selector)
44
44
  const { up } = await import('slide-element')
45
- const content = element.closest(options.summarySelector).nextElementSibling
45
+ const content = details.querySelector(options.summarySelector).nextElementSibling
46
46
 
47
47
  details._isHiding = true
48
48
 
@@ -15,9 +15,4 @@
15
15
  align-items: center;
16
16
  display: flex;
17
17
  height: fit-content;
18
-
19
- .x-text {
20
- --x-text-font-size: var(--font-size-sm);
21
- --x-text-line-height: calc(1em + 0.375rem);
22
- }
23
18
  }