@rip-lang/ui 0.3.44 → 0.3.45
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/components/accordion.rip +2 -2
- package/components/breadcrumb.rip +1 -0
- package/components/collapsible.rip +1 -1
- package/components/combobox.rip +1 -1
- package/components/editable-value.rip +1 -0
- package/components/native-select.rip +1 -0
- package/components/popover.rip +2 -0
- package/package.json +2 -2
package/components/accordion.rip
CHANGED
|
@@ -48,7 +48,7 @@ export Accordion = component
|
|
|
48
48
|
trigger.id = triggerId
|
|
49
49
|
trigger.setAttribute 'aria-expanded', isOpen
|
|
50
50
|
trigger.setAttribute 'aria-controls', panelId
|
|
51
|
-
trigger.setAttribute 'aria-disabled',
|
|
51
|
+
if isDisabled then trigger.setAttribute 'aria-disabled', true else trigger.removeAttribute 'aria-disabled'
|
|
52
52
|
trigger.tabIndex = if isDisabled then -1 else 0
|
|
53
53
|
if content
|
|
54
54
|
content.id = panelId
|
|
@@ -80,7 +80,7 @@ export Accordion = component
|
|
|
80
80
|
first: => @_focusTrigger(0)
|
|
81
81
|
last: => @_focusTrigger(-1)
|
|
82
82
|
select: => @toggle(id) unless disabled
|
|
83
|
-
}
|
|
83
|
+
}, 'vertical'
|
|
84
84
|
|
|
85
85
|
_triggers: ->
|
|
86
86
|
return [] unless @_content
|
|
@@ -31,6 +31,7 @@ export Breadcrumb = component
|
|
|
31
31
|
return unless _ready
|
|
32
32
|
items = _items
|
|
33
33
|
return unless items.length
|
|
34
|
+
@_content?.style.setProperty '--breadcrumb-separator', JSON.stringify(@separator)
|
|
34
35
|
items.forEach (el, idx) =>
|
|
35
36
|
isLast = idx is items.length - 1
|
|
36
37
|
if isLast
|
|
@@ -36,7 +36,7 @@ export Collapsible = component
|
|
|
36
36
|
content = @_root?.querySelector('[data-content]')
|
|
37
37
|
if trigger
|
|
38
38
|
trigger.setAttribute 'aria-expanded', !!@open
|
|
39
|
-
trigger.setAttribute 'aria-disabled', true
|
|
39
|
+
if @disabled then trigger.setAttribute 'aria-disabled', true else trigger.removeAttribute 'aria-disabled'
|
|
40
40
|
trigger.tabIndex = if @disabled then -1 else 0
|
|
41
41
|
if content
|
|
42
42
|
content.hidden = not @open
|
package/components/combobox.rip
CHANGED
|
@@ -86,7 +86,7 @@ export Combobox = component
|
|
|
86
86
|
len = @getItems().length
|
|
87
87
|
ARIA.listNav e,
|
|
88
88
|
next: => @openMenu() unless open; highlightedIndex = @_nextEnabled(highlightedIndex, 1); @_scrollToItem()
|
|
89
|
-
prev: => highlightedIndex = @_nextEnabled(highlightedIndex, -1); @_scrollToItem()
|
|
89
|
+
prev: => @openMenu() unless open; highlightedIndex = @_nextEnabled(highlightedIndex, -1); @_scrollToItem()
|
|
90
90
|
first: => highlightedIndex = 0; @_scrollToItem()
|
|
91
91
|
last: => highlightedIndex = len - 1; @_scrollToItem()
|
|
92
92
|
select: => if highlightedIndex >= 0 then @selectIndex(highlightedIndex) else if len is 1 then @selectIndex(0)
|
package/components/popover.rip
CHANGED
|
@@ -99,6 +99,7 @@ export Popover = component
|
|
|
99
99
|
floating.style.left = "#{x}px"
|
|
100
100
|
floating.style.top = "#{y}px"
|
|
101
101
|
floating.style.zIndex = '50'
|
|
102
|
+
floating.style.visibility = 'visible'
|
|
102
103
|
|
|
103
104
|
~>
|
|
104
105
|
return unless _ready
|
|
@@ -109,6 +110,7 @@ export Popover = component
|
|
|
109
110
|
if floating
|
|
110
111
|
floating.hidden = not open
|
|
111
112
|
if open
|
|
113
|
+
floating.style.visibility = 'hidden'
|
|
112
114
|
floating.setAttribute 'data-open', ''
|
|
113
115
|
floating.setAttribute 'data-placement', @placement
|
|
114
116
|
heading = floating.querySelector('h1,h2,h3,h4,h5,h6')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.45",
|
|
4
4
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"type": "module",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"rip-lang": ">=3.13.
|
|
38
|
+
"rip-lang": ">=3.13.99"
|
|
39
39
|
}
|
|
40
40
|
}
|