@ac-kit/ui-common 0.0.0-stage → 0.2.0
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/CHANGELOG.md +244 -0
- package/LICENSE +28 -0
- package/README.md +633 -2
- package/dist/anchored/anchored.d.ts +19 -0
- package/dist/anchored/anchored.d.ts.map +1 -0
- package/dist/anchored/anchored.js +2 -0
- package/dist/anchored/anchored.js.map +1 -0
- package/dist/button/button.d.ts +35 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.js +22 -0
- package/dist/button/button.js.map +1 -0
- package/dist/dialog/dialog.d.ts +33 -0
- package/dist/dialog/dialog.d.ts.map +1 -0
- package/dist/dialog/dialog.js +23 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/focus/owns-arrow-keys.d.ts +31 -0
- package/dist/focus/owns-arrow-keys.d.ts.map +1 -0
- package/dist/focus/owns-arrow-keys.js +64 -0
- package/dist/focus/owns-arrow-keys.js.map +1 -0
- package/dist/focus/roving-focus.d.ts +34 -0
- package/dist/focus/roving-focus.d.ts.map +1 -0
- package/dist/focus/roving-focus.js +72 -0
- package/dist/focus/roving-focus.js.map +1 -0
- package/dist/focus/typeahead.d.ts +112 -0
- package/dist/focus/typeahead.d.ts.map +1 -0
- package/dist/focus/typeahead.js +178 -0
- package/dist/focus/typeahead.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/knob/knob.d.ts +106 -0
- package/dist/knob/knob.d.ts.map +1 -0
- package/dist/knob/knob.js +116 -0
- package/dist/knob/knob.js.map +1 -0
- package/dist/menu/menu.d.ts +157 -0
- package/dist/menu/menu.d.ts.map +1 -0
- package/dist/menu/menu.js +162 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/meter/meter.d.ts +63 -0
- package/dist/meter/meter.d.ts.map +1 -0
- package/dist/meter/meter.js +57 -0
- package/dist/meter/meter.js.map +1 -0
- package/dist/preact/_anchor.d.ts +13 -0
- package/dist/preact/_anchor.d.ts.map +1 -0
- package/dist/preact/_anchor.js +39 -0
- package/dist/preact/_anchor.js.map +1 -0
- package/dist/preact/_dom.d.ts +14 -0
- package/dist/preact/_dom.d.ts.map +1 -0
- package/dist/preact/_dom.js +31 -0
- package/dist/preact/_dom.js.map +1 -0
- package/dist/preact/_live-announcer.d.ts +26 -0
- package/dist/preact/_live-announcer.d.ts.map +1 -0
- package/dist/preact/_live-announcer.js +101 -0
- package/dist/preact/_live-announcer.js.map +1 -0
- package/dist/preact/button.d.ts +40 -0
- package/dist/preact/button.d.ts.map +1 -0
- package/dist/preact/button.js +22 -0
- package/dist/preact/button.js.map +1 -0
- package/dist/preact/dialog.d.ts +43 -0
- package/dist/preact/dialog.d.ts.map +1 -0
- package/dist/preact/dialog.js +89 -0
- package/dist/preact/dialog.js.map +1 -0
- package/dist/preact/index.d.ts +20 -0
- package/dist/preact/index.d.ts.map +1 -0
- package/dist/preact/index.js +20 -0
- package/dist/preact/index.js.map +1 -0
- package/dist/preact/join-classes.d.ts +10 -0
- package/dist/preact/join-classes.d.ts.map +1 -0
- package/dist/preact/join-classes.js +12 -0
- package/dist/preact/join-classes.js.map +1 -0
- package/dist/preact/knob.d.ts +51 -0
- package/dist/preact/knob.d.ts.map +1 -0
- package/dist/preact/knob.js +144 -0
- package/dist/preact/knob.js.map +1 -0
- package/dist/preact/menu-button.d.ts +117 -0
- package/dist/preact/menu-button.d.ts.map +1 -0
- package/dist/preact/menu-button.js +330 -0
- package/dist/preact/menu-button.js.map +1 -0
- package/dist/preact/meter.d.ts +34 -0
- package/dist/preact/meter.d.ts.map +1 -0
- package/dist/preact/meter.js +21 -0
- package/dist/preact/meter.js.map +1 -0
- package/dist/preact/progress-ring.d.ts +42 -0
- package/dist/preact/progress-ring.d.ts.map +1 -0
- package/dist/preact/progress-ring.js +26 -0
- package/dist/preact/progress-ring.js.map +1 -0
- package/dist/preact/radio-group.d.ts +50 -0
- package/dist/preact/radio-group.d.ts.map +1 -0
- package/dist/preact/radio-group.js +42 -0
- package/dist/preact/radio-group.js.map +1 -0
- package/dist/preact/readout.d.ts +22 -0
- package/dist/preact/readout.d.ts.map +1 -0
- package/dist/preact/readout.js +13 -0
- package/dist/preact/readout.js.map +1 -0
- package/dist/preact/slider.d.ts +40 -0
- package/dist/preact/slider.d.ts.map +1 -0
- package/dist/preact/slider.js +164 -0
- package/dist/preact/slider.js.map +1 -0
- package/dist/preact/spin-button.d.ts +67 -0
- package/dist/preact/spin-button.d.ts.map +1 -0
- package/dist/preact/spin-button.js +132 -0
- package/dist/preact/spin-button.js.map +1 -0
- package/dist/preact/switch.d.ts +25 -0
- package/dist/preact/switch.d.ts.map +1 -0
- package/dist/preact/switch.js +19 -0
- package/dist/preact/switch.js.map +1 -0
- package/dist/preact/tabs.d.ts +97 -0
- package/dist/preact/tabs.d.ts.map +1 -0
- package/dist/preact/tabs.js +264 -0
- package/dist/preact/tabs.js.map +1 -0
- package/dist/preact/toaster.d.ts +43 -0
- package/dist/preact/toaster.d.ts.map +1 -0
- package/dist/preact/toaster.js +356 -0
- package/dist/preact/toaster.js.map +1 -0
- package/dist/preact/toggle-button.d.ts +26 -0
- package/dist/preact/toggle-button.d.ts.map +1 -0
- package/dist/preact/toggle-button.js +16 -0
- package/dist/preact/toggle-button.js.map +1 -0
- package/dist/preact/toolbar.d.ts +24 -0
- package/dist/preact/toolbar.d.ts.map +1 -0
- package/dist/preact/toolbar.js +142 -0
- package/dist/preact/toolbar.js.map +1 -0
- package/dist/preact/tooltip.d.ts +67 -0
- package/dist/preact/tooltip.d.ts.map +1 -0
- package/dist/preact/tooltip.js +165 -0
- package/dist/preact/tooltip.js.map +1 -0
- package/dist/preact/tree.d.ts +93 -0
- package/dist/preact/tree.d.ts.map +1 -0
- package/dist/preact/tree.js +399 -0
- package/dist/preact/tree.js.map +1 -0
- package/dist/preact/use-element-binding.d.ts +32 -0
- package/dist/preact/use-element-binding.d.ts.map +1 -0
- package/dist/preact/use-element-binding.js +51 -0
- package/dist/preact/use-element-binding.js.map +1 -0
- package/dist/progress/progress.d.ts +51 -0
- package/dist/progress/progress.d.ts.map +1 -0
- package/dist/progress/progress.js +43 -0
- package/dist/progress/progress.js.map +1 -0
- package/dist/readout/readout.d.ts +41 -0
- package/dist/readout/readout.d.ts.map +1 -0
- package/dist/readout/readout.js +26 -0
- package/dist/readout/readout.js.map +1 -0
- package/dist/slider/_clamped-value.d.ts +7 -0
- package/dist/slider/_clamped-value.d.ts.map +1 -0
- package/dist/slider/_clamped-value.js +9 -0
- package/dist/slider/_clamped-value.js.map +1 -0
- package/dist/slider/slider-attributes.d.ts +50 -0
- package/dist/slider/slider-attributes.d.ts.map +1 -0
- package/dist/slider/slider-attributes.js +38 -0
- package/dist/slider/slider-attributes.js.map +1 -0
- package/dist/slider/slider-range.d.ts +59 -0
- package/dist/slider/slider-range.d.ts.map +1 -0
- package/dist/slider/slider-range.js +73 -0
- package/dist/slider/slider-range.js.map +1 -0
- package/dist/slider/slider-track.d.ts +37 -0
- package/dist/slider/slider-track.d.ts.map +1 -0
- package/dist/slider/slider-track.js +35 -0
- package/dist/slider/slider-track.js.map +1 -0
- package/dist/slider/stepped-value.d.ts +31 -0
- package/dist/slider/stepped-value.d.ts.map +1 -0
- package/dist/slider/stepped-value.js +55 -0
- package/dist/slider/stepped-value.js.map +1 -0
- package/dist/spin-button/spin-button.d.ts +110 -0
- package/dist/spin-button/spin-button.d.ts.map +1 -0
- package/dist/spin-button/spin-button.js +179 -0
- package/dist/spin-button/spin-button.js.map +1 -0
- package/dist/switch/switch.d.ts +30 -0
- package/dist/switch/switch.d.ts.map +1 -0
- package/dist/switch/switch.js +26 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/tabs/tabs.d.ts +157 -0
- package/dist/tabs/tabs.d.ts.map +1 -0
- package/dist/tabs/tabs.js +120 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/toast/toast-queue.d.ts +212 -0
- package/dist/toast/toast-queue.d.ts.map +1 -0
- package/dist/toast/toast-queue.js +290 -0
- package/dist/toast/toast-queue.js.map +1 -0
- package/dist/toast/toasts-obscure.d.ts +25 -0
- package/dist/toast/toasts-obscure.d.ts.map +1 -0
- package/dist/toast/toasts-obscure.js +30 -0
- package/dist/toast/toasts-obscure.js.map +1 -0
- package/dist/toggle-button/toggle-button.d.ts +44 -0
- package/dist/toggle-button/toggle-button.d.ts.map +1 -0
- package/dist/toggle-button/toggle-button.js +31 -0
- package/dist/toggle-button/toggle-button.js.map +1 -0
- package/dist/tone.d.ts +8 -0
- package/dist/tone.d.ts.map +1 -0
- package/dist/tone.js +2 -0
- package/dist/tone.js.map +1 -0
- package/dist/toolbar/toolbar.d.ts +35 -0
- package/dist/toolbar/toolbar.d.ts.map +1 -0
- package/dist/toolbar/toolbar.js +23 -0
- package/dist/toolbar/toolbar.js.map +1 -0
- package/dist/tooltip/tooltip.d.ts +183 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -0
- package/dist/tooltip/tooltip.js +185 -0
- package/dist/tooltip/tooltip.js.map +1 -0
- package/dist/tree/tree.d.ts +302 -0
- package/dist/tree/tree.d.ts.map +1 -0
- package/dist/tree/tree.js +439 -0
- package/dist/tree/tree.js.map +1 -0
- package/package.json +110 -3
- package/styles.css +1883 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# @ac-kit/ui-common
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0b4fe43: A menu button, a tooltip and toasts, over the Popover API and CSS anchor
|
|
8
|
+
positioning, and a typeahead for lists.
|
|
9
|
+
|
|
10
|
+
- `MenuButton` (`/preact`), with `MenuItem`, `MenuItemCheckbox`,
|
|
11
|
+
`MenuItemRadio`, `MenuGroup` and `MenuSeparator`, follows the WAI-ARIA menu
|
|
12
|
+
button and menu patterns: Enter, Space and the arrows open it on its first
|
|
13
|
+
or last item, the arrows, Home, End and typed names move in it, Enter
|
|
14
|
+
chooses and closes, Space checks a checkbox or radio item and keeps it open,
|
|
15
|
+
Escape, Tab and a press outside close it, and focus returns to the button
|
|
16
|
+
before an item's callback runs. A disabled item stays focusable and is not
|
|
17
|
+
chosen. `onOpenChange` reports the open state; the items' checked states are
|
|
18
|
+
the caller's.
|
|
19
|
+
- `Tooltip` (`/preact`) describes or names its trigger (`relation`), shows on
|
|
20
|
+
a mouse or pen hover after `showDelayMs` and at once on a keyboard focus,
|
|
21
|
+
stays while the trigger or the tooltip is hovered or focused, and hides on
|
|
22
|
+
Escape (without closing a dialog around it) and on a press, per WCAG 2.2
|
|
23
|
+
success criterion 1.4.13. The tooltips of a `TooltipGroup` show one at a
|
|
24
|
+
time, the next without its delay.
|
|
25
|
+
- `Toaster` (`/preact`) shows a `ToastQueue`'s toasts in a named region at an
|
|
26
|
+
edge of the viewport and announces each one through a polite or assertive
|
|
27
|
+
live region; while a modal dialog holds focus, both move into it so they are
|
|
28
|
+
neither inert nor silent. F8 takes focus to the toasts and back, Escape
|
|
29
|
+
dismisses the focused one, and their clocks stop while hovered, focused or
|
|
30
|
+
with the page hidden. A toast with an action stays until dismissed unless
|
|
31
|
+
given a duration; showing a toast again with its id updates it in place.
|
|
32
|
+
Toasts covering part of the focused control fade until hovered (WCAG 2.2
|
|
33
|
+
success criterion 2.4.11).
|
|
34
|
+
- The core gains the framework-free parts every adapter shares:
|
|
35
|
+
`menuButtonAttributes`, `menuAttributes`, `menuItemAttributes`,
|
|
36
|
+
`menuButtonKeyAction`, `menuKeyAction`; `tooltipAttributes`,
|
|
37
|
+
`tooltipTriggerAttributes`, `tooltipStep`, `TOOLTIP_CLOSED`,
|
|
38
|
+
`TooltipGroup`; `ToastQueue`, `toasterAttributes`, `toastAttributes`,
|
|
39
|
+
`toastAnnouncement`, `toastsObscure`; `Typeahead`, `typeaheadIndex` (grapheme- and
|
|
40
|
+
locale-aware, case- and accent-insensitive), `isTypeaheadKey`; and the
|
|
41
|
+
`AnchoredSide` and `AnchoredAlign` placement types.
|
|
42
|
+
- `styles.css` places a menu or tooltip on its `data-side` and `data-align`,
|
|
43
|
+
flipping it when the viewport has no room and shifting it inside, with new
|
|
44
|
+
`--ack-menu-*`, `--ack-tooltip-*`, `--ack-toast-*` and `--ack-toaster-inset`
|
|
45
|
+
properties; their transitions stop under `prefers-reduced-motion: reduce`.
|
|
46
|
+
A browser without anchor positioning needs a polyfill, or shows them in the
|
|
47
|
+
middle of the viewport.
|
|
48
|
+
|
|
49
|
+
The package now depends on `@ac-kit/browser`.
|
|
50
|
+
- 0b4fe43: Tabs, a progress ring, a spin button and a tree view.
|
|
51
|
+
|
|
52
|
+
- `Tabs` (`/preact`), with `TabList`, `Tab` and `TabPanel`, follows the
|
|
53
|
+
WAI-ARIA tabs pattern: one tab stop on the selected tab, the arrows along
|
|
54
|
+
the list moving round (mirrored right to left), Home and End to the ends,
|
|
55
|
+
then the panel or its first control. Activation is `automatic` (a tab shows
|
|
56
|
+
its panel as the arrows reach it) or `manual` (Enter, Space or a click). A
|
|
57
|
+
disabled tab is focusable and never selected. With `onDelete`, Delete closes
|
|
58
|
+
the focused tab, focus moving to the next and the nearest enabled tab
|
|
59
|
+
selected in its place. Hidden panels stay rendered `hidden="until-found"`,
|
|
60
|
+
so they keep their state and find in page selects the tab of a match. The
|
|
61
|
+
selection is the caller's.
|
|
62
|
+
- `ProgressRing` (`/preact`) is a `progressbar` drawn as an arc from twelve
|
|
63
|
+
o'clock, with its value and `valueText`, or turning while indeterminate
|
|
64
|
+
(still under `prefers-reduced-motion: reduce`); it can draw its value text
|
|
65
|
+
inside.
|
|
66
|
+
- `SpinButton` (`/preact`) follows the WAI-ARIA spinbutton pattern: Arrow Up
|
|
67
|
+
and Down, Page Up and Down by ten steps, Home and End to the bounds it has,
|
|
68
|
+
either bound optional. With `parse`, the value is also typed, committed on
|
|
69
|
+
Enter or blur snapped to the steps and bounds, reverted on Escape, and
|
|
70
|
+
marked invalid while it is not a number. Its − and + buttons are named, out
|
|
71
|
+
of the tab order, never take focus, stop at the bounds, and announce the new
|
|
72
|
+
value politely when focus is elsewhere. `onChange` fires once per key,
|
|
73
|
+
press or entry.
|
|
74
|
+
- `Tree` (`/preact`) follows the WAI-ARIA tree view pattern over the caller's
|
|
75
|
+
nodes (`roots`, `childrenOf`, `textValueOf`, `renderItem`): one tab stop,
|
|
76
|
+
the pattern's keys including `*`, typeahead and the multiple-selection keys,
|
|
77
|
+
mirrored right to left; `selectionMode` `single`, `multiple` or `none`,
|
|
78
|
+
`selectionFollowsFocus`, `onActivate` (Enter and a click), disabled nodes
|
|
79
|
+
focusable but never selected or activated, and lazy children shown busy
|
|
80
|
+
until loaded (`isBranch`). Expansion and selection are the caller's. Every
|
|
81
|
+
row states its level, position and set size; a row is drawn again only when
|
|
82
|
+
its own state changes, and focus moves to the nearest row left when the
|
|
83
|
+
focused one goes away.
|
|
84
|
+
- The core gains the framework-free parts: `tabListAttributes`,
|
|
85
|
+
`tabAttributes`, `tabPanelAttributes`, `tabsKeyAction`;
|
|
86
|
+
`progressAttributes`; `SpinButtonRange`, `snapSpinButtonValue`,
|
|
87
|
+
`spinButtonValue`, `spinButtonAttributes`; `TreeSource`, `TreeRows`,
|
|
88
|
+
`visibleTreeRows` (iterative, a node's row in O(1), a node shown twice
|
|
89
|
+
refused), `treeKeyAction`, `nextTreeSelection`, `expandTreeSiblings`,
|
|
90
|
+
`treePath`, `treeTabStop`, `treeAttributes`, `treeItemAttributes`; and
|
|
91
|
+
`typeaheadCharacter` and `Typeahead.find`, which the menu now uses too.
|
|
92
|
+
- `styles.css` draws them with new `--ack-tabs-*`, `--ack-tab-*`,
|
|
93
|
+
`--ack-progress-ring-*`, `--ack-spin-button-*` and `--ack-tree-*`
|
|
94
|
+
properties; a selected tab and a selected row carry a bar besides their
|
|
95
|
+
colour, forced colours draw them in system colours, and every new
|
|
96
|
+
transition and animation stops under `prefers-reduced-motion: reduce`.
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- 0b4fe43: `Knob` and `Slider` fixes. A `Knob` that is disabled drops a tap pending in its
|
|
101
|
+
double-tap window, so enabling it again before the deadline no longer requests
|
|
102
|
+
entry. A `Slider` swallows the click after a press released away from where it
|
|
103
|
+
started, even with no move in between, and lets through the click of a press
|
|
104
|
+
whose moves never left the press point. The arrow keys, Page Up and Page Down,
|
|
105
|
+
Home and End of both step from the value they show: a value of `200` in
|
|
106
|
+
`[0, 100]` shows `100`, and ArrowLeft gives `99`.
|
|
107
|
+
- Updated dependencies [0b4fe43]
|
|
108
|
+
- Updated dependencies [0b4fe43]
|
|
109
|
+
- Updated dependencies [0b4fe43]
|
|
110
|
+
- Updated dependencies [0b4fe43]
|
|
111
|
+
- Updated dependencies [0b4fe43]
|
|
112
|
+
- Updated dependencies [0b4fe43]
|
|
113
|
+
- Updated dependencies [0b4fe43]
|
|
114
|
+
- Updated dependencies [0b4fe43]
|
|
115
|
+
- Updated dependencies [0b4fe43]
|
|
116
|
+
- Updated dependencies [0b4fe43]
|
|
117
|
+
- Updated dependencies [0b4fe43]
|
|
118
|
+
- Updated dependencies [0b4fe43]
|
|
119
|
+
- Updated dependencies [0b4fe43]
|
|
120
|
+
- Updated dependencies [0b4fe43]
|
|
121
|
+
- Updated dependencies [0b4fe43]
|
|
122
|
+
- Updated dependencies [0b4fe43]
|
|
123
|
+
- Updated dependencies [0b4fe43]
|
|
124
|
+
- Updated dependencies [0b4fe43]
|
|
125
|
+
- Updated dependencies [0b4fe43]
|
|
126
|
+
- Updated dependencies [0b4fe43]
|
|
127
|
+
- Updated dependencies [0b4fe43]
|
|
128
|
+
- Updated dependencies [0b4fe43]
|
|
129
|
+
- Updated dependencies [0b4fe43]
|
|
130
|
+
- Updated dependencies [0b4fe43]
|
|
131
|
+
- Updated dependencies [0b4fe43]
|
|
132
|
+
- Updated dependencies [0b4fe43]
|
|
133
|
+
- Updated dependencies [0b4fe43]
|
|
134
|
+
- Updated dependencies [0b4fe43]
|
|
135
|
+
- Updated dependencies [0b4fe43]
|
|
136
|
+
- Updated dependencies [0b4fe43]
|
|
137
|
+
- Updated dependencies [0b4fe43]
|
|
138
|
+
- Updated dependencies [0b4fe43]
|
|
139
|
+
- Updated dependencies [0b4fe43]
|
|
140
|
+
- Updated dependencies [0b4fe43]
|
|
141
|
+
- Updated dependencies [0b4fe43]
|
|
142
|
+
- Updated dependencies [0b4fe43]
|
|
143
|
+
- Updated dependencies [0b4fe43]
|
|
144
|
+
- Updated dependencies [0b4fe43]
|
|
145
|
+
- Updated dependencies [0b4fe43]
|
|
146
|
+
- Updated dependencies [0b4fe43]
|
|
147
|
+
- Updated dependencies [0b4fe43]
|
|
148
|
+
- Updated dependencies [0b4fe43]
|
|
149
|
+
- @ac-kit/algo@0.6.0
|
|
150
|
+
- @ac-kit/browser@0.4.0
|
|
151
|
+
- @ac-kit/core@0.13.0
|
|
152
|
+
- @ac-kit/math-geometry@0.4.0
|
|
153
|
+
- @ac-kit/math-linear@0.4.0
|
|
154
|
+
- @ac-kit/math-scalar@0.4.0
|
|
155
|
+
- @ac-kit/ui-gesture@0.1.1
|
|
156
|
+
- @ac-kit/format-svg@0.1.5
|
|
157
|
+
|
|
158
|
+
## 0.1.0
|
|
159
|
+
|
|
160
|
+
### Minor Changes
|
|
161
|
+
|
|
162
|
+
- 34e8cfa: First release: knob, slider, toggle button, readout, meter, switch, radio
|
|
163
|
+
group, button, icon button, toolbar and modal dialog, as headless cores
|
|
164
|
+
(`switchAttributes`, `buttonAttributes`, `toolbarAttributes`,
|
|
165
|
+
`dialogAttributes`, `rovingFocusIndex`, `ownsArrowKeys`, …), Preact components
|
|
166
|
+
and one stylesheet themed through custom properties (`--ack-switch-*`,
|
|
167
|
+
`--ack-radio-*`, `--ack-button-*`, `--ack-toolbar-*`, `--ack-dialog-*`, …).
|
|
168
|
+
The stylesheet opens with the order statement `@layer ack.common, ack.music;`
|
|
169
|
+
and every control root carries `ack-control`.
|
|
170
|
+
|
|
171
|
+
Pointer input goes through `@ac-kit/ui-gesture/dom`, so capture, cancellation
|
|
172
|
+
and the browser's default actions behave the same in every control, and a
|
|
173
|
+
slider lets the page scroll across its track. A `Toolbar` has one tab stop and
|
|
174
|
+
moves between its controls with the arrow keys, Home and End, leaving the
|
|
175
|
+
arrows to a child that owns them (a radio group, a slider or knob, a text
|
|
176
|
+
field). A `Dialog` is a native modal `<dialog>`: Escape and a press that starts
|
|
177
|
+
and ends on the backdrop close it when `isDismissible`, and `onClose` is asked
|
|
178
|
+
once.
|
|
179
|
+
|
|
180
|
+
`@ac-kit/ui-common/preact` exports `useElementBinding` and `useLatest` for
|
|
181
|
+
components that bind a gesture of their own, and `joinClasses(base, extra)`,
|
|
182
|
+
which puts a caller's `class` after a component root's own classes, for
|
|
183
|
+
components built on the package such as `@ac-kit/ui-music`'s.
|
|
184
|
+
- 34e8cfa: `@ac-kit/ui-controls` is removed from the repository, and its npm deprecation
|
|
185
|
+
is pending the publication of these three packages; its last published
|
|
186
|
+
versions stay installable. Its generic controls moved to
|
|
187
|
+
`@ac-kit/ui-common`, its piano keyboard and dBFS meter scale to
|
|
188
|
+
`@ac-kit/ui-music`, and its `TapGesture` to `@ac-kit/ui-gesture`'s
|
|
189
|
+
`PressGesture`. Each package's README has a "Coming from `@ac-kit/ui-controls`"
|
|
190
|
+
table naming every renamed export, and the one stylesheet of `ui-controls`
|
|
191
|
+
becomes `@ac-kit/ui-common/styles.css` followed by `@ac-kit/ui-music/styles.css`.
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- Updated dependencies [34e8cfa]
|
|
196
|
+
- Updated dependencies [34e8cfa]
|
|
197
|
+
- Updated dependencies [34e8cfa]
|
|
198
|
+
- Updated dependencies [34e8cfa]
|
|
199
|
+
- Updated dependencies [34e8cfa]
|
|
200
|
+
- Updated dependencies [34e8cfa]
|
|
201
|
+
- Updated dependencies [34e8cfa]
|
|
202
|
+
- Updated dependencies [34e8cfa]
|
|
203
|
+
- Updated dependencies [34e8cfa]
|
|
204
|
+
- Updated dependencies [34e8cfa]
|
|
205
|
+
- Updated dependencies [34e8cfa]
|
|
206
|
+
- Updated dependencies [34e8cfa]
|
|
207
|
+
- Updated dependencies [34e8cfa]
|
|
208
|
+
- Updated dependencies [34e8cfa]
|
|
209
|
+
- Updated dependencies [34e8cfa]
|
|
210
|
+
- Updated dependencies [34e8cfa]
|
|
211
|
+
- Updated dependencies [34e8cfa]
|
|
212
|
+
- Updated dependencies [34e8cfa]
|
|
213
|
+
- Updated dependencies [34e8cfa]
|
|
214
|
+
- Updated dependencies [34e8cfa]
|
|
215
|
+
- Updated dependencies [34e8cfa]
|
|
216
|
+
- Updated dependencies [34e8cfa]
|
|
217
|
+
- Updated dependencies [34e8cfa]
|
|
218
|
+
- Updated dependencies [34e8cfa]
|
|
219
|
+
- Updated dependencies [34e8cfa]
|
|
220
|
+
- Updated dependencies [34e8cfa]
|
|
221
|
+
- Updated dependencies [34e8cfa]
|
|
222
|
+
- Updated dependencies [34e8cfa]
|
|
223
|
+
- Updated dependencies [34e8cfa]
|
|
224
|
+
- Updated dependencies [34e8cfa]
|
|
225
|
+
- Updated dependencies [34e8cfa]
|
|
226
|
+
- Updated dependencies [34e8cfa]
|
|
227
|
+
- Updated dependencies [34e8cfa]
|
|
228
|
+
- Updated dependencies [34e8cfa]
|
|
229
|
+
- Updated dependencies [34e8cfa]
|
|
230
|
+
- Updated dependencies [34e8cfa]
|
|
231
|
+
- Updated dependencies [34e8cfa]
|
|
232
|
+
- Updated dependencies [34e8cfa]
|
|
233
|
+
- Updated dependencies [34e8cfa]
|
|
234
|
+
- Updated dependencies [34e8cfa]
|
|
235
|
+
- Updated dependencies [34e8cfa]
|
|
236
|
+
- Updated dependencies [34e8cfa]
|
|
237
|
+
- Updated dependencies [34e8cfa]
|
|
238
|
+
- @ac-kit/algo@0.5.0
|
|
239
|
+
- @ac-kit/core@0.12.0
|
|
240
|
+
- @ac-kit/math-scalar@0.3.0
|
|
241
|
+
- @ac-kit/math-linear@0.3.0
|
|
242
|
+
- @ac-kit/format-svg@0.1.4
|
|
243
|
+
- @ac-kit/math-geometry@0.3.0
|
|
244
|
+
- @ac-kit/ui-gesture@0.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2026 Anthony Champagne and contributors
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|