@tangible/ui 0.2.38 → 0.2.40
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/README.md +2 -2
- package/components/Avatar/Avatar.js +20 -5
- package/components/Avatar/types.d.ts +15 -0
- package/components/Button/Button.js +10 -3
- package/components/Button/types.d.ts +31 -3
- package/components/Button/types.js +2 -0
- package/components/ColorPicker/ColorField.d.ts +1 -1
- package/components/ColorPicker/ColorField.js +9 -1
- package/components/DatePicker/DateRangePicker.d.ts +1 -0
- package/components/DatePicker/DateRangePicker.js +24 -6
- package/components/DatePicker/PickerTrigger.js +1 -1
- package/components/DatePicker/types.d.ts +20 -3
- package/components/DatePicker/types.js +1 -0
- package/components/IconButton/IconButtonCore.js +13 -5
- package/components/IconButton/index.d.ts +2 -1
- package/components/IconButton/index.js +1 -0
- package/components/IconButton/types.d.ts +37 -2
- package/components/IconButton/types.js +4 -1
- package/components/MultiSelect/MultiSelect.js +9 -3
- package/components/NavMenu/NavMenu.js +37 -3
- package/components/Notice/Notice.d.ts +13 -0
- package/components/Notice/Notice.js +10 -2
- package/components/Progress/Progress.js +73 -2
- package/components/Progress/index.d.ts +2 -1
- package/components/Progress/index.js +1 -0
- package/components/Progress/types.d.ts +130 -2
- package/components/Progress/types.js +3 -1
- package/components/Select/Select.js +2 -1
- package/components/Tooltip/Tooltip.js +23 -0
- package/components/index.d.ts +28 -26
- package/components/index.js +10 -10
- package/figma-tokens.json +1 -1
- package/icons/icons.svg +15 -5
- package/icons/lms/index.d.ts +7 -4
- package/icons/lms/index.js +9 -44
- package/icons/lms.svg +4 -4
- package/icons/manifest.json +96 -12
- package/icons/registry.d.ts +20 -0
- package/icons/registry.js +11 -0
- package/icons/searchsync/index.d.ts +21 -0
- package/icons/searchsync/index.js +82 -0
- package/icons/searchsync.svg +9 -0
- package/icons/sprite-registry.js +10 -0
- package/icons/sprite-version.js +1 -1
- package/icons/sprite.d.ts +1 -1
- package/icons/sprite.js +2 -1
- package/icons/sprite.php +3 -2
- package/icons/system/index.d.ts +6 -0
- package/icons/system/index.js +33 -0
- package/icons/system.svg +3 -0
- package/package.json +1 -1
- package/skills/building-with-tui/SKILL.md +81 -30
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +221 -64
- package/styles/all.expanded.unlayered.css +221 -64
- package/styles/all.unlayered.css +1 -1
- package/styles/app.css +2 -0
- package/styles/components/button.scss +18 -0
- package/styles/components/checkbox.scss +21 -13
- package/styles/components/icon-button.scss +44 -25
- package/styles/components/nav-menu.scss +3 -0
- package/styles/components/notice.scss +38 -0
- package/styles/components/progress.scss +96 -0
- package/styles/components/radio.scss +35 -7
- package/styles/components/segmented-control.scss +98 -18
- package/styles/components/table.scss +39 -24
- package/tui-manifest.json +151 -39
- package/utils/portal.d.ts +4 -3
- package/utils/portal.js +16 -2
- package/utils/use-loading-announcer.d.ts +2 -0
- package/utils/use-loading-announcer.js +101 -0
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { createElement as _c } from "react";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export function Filter(props) {
|
|
5
|
+
return _c("svg", Object.assign({
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M17.094 4.5c1.49 0 2.298 1.744 1.335 2.88l-3.93 4.643v7.94l-5-2.5v-5.44L5.57 7.381C4.608 6.244 5.416 4.5 6.906 4.5zM6.905 6a.25.25 0 0 0-.191.411L11 11.476v5.06l2 1v-6.06l4.285-5.065A.25.25 0 0 0 17.093 6z",clipRule:"evenodd"}));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function Filters(props) {
|
|
15
|
+
return _c("svg", Object.assign({
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
viewBox: "0 0 24 24",
|
|
18
|
+
width: "1em",
|
|
19
|
+
height: "1em",
|
|
20
|
+
fill: "currentColor"
|
|
21
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M15.094 4.5c1.49 0 2.298 1.744 1.335 2.88l-3.93 4.643v7.94l-5-2.5v-5.44L3.57 7.381C2.608 6.244 3.416 4.5 4.906 4.5zM4.906 6a.25.25 0 0 0-.191.411L9 11.476v5.06l2 1v-6.06l4.285-5.065A.25.25 0 0 0 15.094 6z",clipRule:"evenodd"}), _c("path", {d:"M20 19h-5v-1.5h5zM20 15h-5v-1.5h5zM20 11h-4V9.5h4z"}));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function Pagination(props) {
|
|
25
|
+
return _c("svg", Object.assign({
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
width: "1em",
|
|
29
|
+
height: "1em",
|
|
30
|
+
fill: "currentColor"
|
|
31
|
+
}, props), _c("path", {d:"M7 8a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z"}), _c("path", {fillRule:"evenodd",d:"M14.103 8.005A1 1 0 0 1 15 9v6a1 1 0 0 1-.898.995L14 16h-4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zM10.5 14.25c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25zM21.103 8.005A1 1 0 0 1 22 9v6a1 1 0 0 1-.898.995L21 16h-4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zM17.5 14.25c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25z",clipRule:"evenodd"}));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function ResultCount(props) {
|
|
35
|
+
return _c("svg", Object.assign({
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
width: "1em",
|
|
39
|
+
height: "1em",
|
|
40
|
+
fill: "currentColor"
|
|
41
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M16.243 4.853 15.74 8.5h2.76V10h-2.967l-.552 4H18.5v1.5h-3.726l-.53 3.852-1.487-.204.503-3.648H9.774l-.53 3.852-1.487-.204.503-3.648H5.5V14h2.967l.552-4H5.5V8.5h3.726l.53-3.853 1.487.206L10.74 8.5h3.486l.53-3.853zM9.981 14h3.486l.552-4h-3.486z",clipRule:"evenodd"}));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function Results(props) {
|
|
45
|
+
return _c("svg", Object.assign({
|
|
46
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
+
viewBox: "0 0 24 24",
|
|
48
|
+
width: "1em",
|
|
49
|
+
height: "1em",
|
|
50
|
+
fill: "currentColor"
|
|
51
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M9.25 13c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 9.25 20h-3.5A1.75 1.75 0 0 1 4 18.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM18.25 13c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 18.25 20h-3.5A1.75 1.75 0 0 1 13 18.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM9.25 4c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 9.25 11h-3.5A1.75 1.75 0 0 1 4 9.25v-3.5C4 4.784 4.784 4 5.75 4zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM18.25 4c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 18.25 11h-3.5A1.75 1.75 0 0 1 13 9.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25z",clipRule:"evenodd"}));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SearchBox(props) {
|
|
55
|
+
return _c("svg", Object.assign({
|
|
56
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
57
|
+
viewBox: "0 0 24 24",
|
|
58
|
+
width: "1em",
|
|
59
|
+
height: "1em",
|
|
60
|
+
fill: "currentColor"
|
|
61
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M13.97 8.75a2.75 2.75 0 0 1 2.4 4.089l1.63 1.63-1.06 1.061-1.631-1.63a2.75 2.75 0 1 1-1.339-5.15m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5",clipRule:"evenodd"}), _c("path", {fillRule:"evenodd",d:"M16.25 6.25a5.5 5.5 0 0 1 5.5 5.5v.5a5.5 5.5 0 0 1-5.5 5.5h-8.5a5.5 5.5 0 0 1-5.5-5.5v-.5a5.5 5.5 0 0 1 5.5-5.5zm-8.5 1.5a4 4 0 0 0-4 4v.5a4 4 0 0 0 4 4h8.5a4 4 0 0 0 4-4v-.5a4 4 0 0 0-4-4z",clipRule:"evenodd"}));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function Search(props) {
|
|
65
|
+
return _c("svg", Object.assign({
|
|
66
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
67
|
+
viewBox: "0 0 24 24",
|
|
68
|
+
width: "1em",
|
|
69
|
+
height: "1em",
|
|
70
|
+
fill: "currentColor"
|
|
71
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M11 7a4 4 0 0 1 3.308 6.247l2.472 2.473-1.06 1.06-2.473-2.472A4 4 0 1 1 11 7m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",clipRule:"evenodd"}), _c("path", {fillRule:"evenodd",d:"M17.75 4A2.25 2.25 0 0 1 20 6.25v11.5A2.25 2.25 0 0 1 17.75 20H6.25A2.25 2.25 0 0 1 4 17.75V6.25A2.25 2.25 0 0 1 6.25 4zM6.25 5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75z",clipRule:"evenodd"}));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const searchsyncIcons = {
|
|
75
|
+
'filter': Filter,
|
|
76
|
+
'filters': Filters,
|
|
77
|
+
'pagination': Pagination,
|
|
78
|
+
'result-count': ResultCount,
|
|
79
|
+
'results': Results,
|
|
80
|
+
'search': Search,
|
|
81
|
+
'search-box': SearchBox,
|
|
82
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<symbol id="tui-searchsync-filter" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17.094 4.5c1.49 0 2.298 1.744 1.335 2.88l-3.93 4.643v7.94l-5-2.5v-5.44L5.57 7.381C4.608 6.244 5.416 4.5 6.906 4.5zM6.905 6a.25.25 0 0 0-.191.411L11 11.476v5.06l2 1v-6.06l4.285-5.065A.25.25 0 0 0 17.093 6z" clip-rule="evenodd"/></symbol>
|
|
3
|
+
<symbol id="tui-searchsync-filters" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.094 4.5c1.49 0 2.298 1.744 1.335 2.88l-3.93 4.643v7.94l-5-2.5v-5.44L3.57 7.381C2.608 6.244 3.416 4.5 4.906 4.5zM4.906 6a.25.25 0 0 0-.191.411L9 11.476v5.06l2 1v-6.06l4.285-5.065A.25.25 0 0 0 15.094 6z" clip-rule="evenodd"/><path d="M20 19h-5v-1.5h5zM20 15h-5v-1.5h5zM20 11h-4V9.5h4z"/></symbol>
|
|
4
|
+
<symbol id="tui-searchsync-pagination" viewBox="0 0 24 24"><path d="M7 8a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z"/><path fill-rule="evenodd" d="M14.103 8.005A1 1 0 0 1 15 9v6a1 1 0 0 1-.898.995L14 16h-4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zM10.5 14.25c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25zM21.103 8.005A1 1 0 0 1 22 9v6a1 1 0 0 1-.898.995L21 16h-4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zM17.5 14.25c0 .138.112.25.25.25h2.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25z" clip-rule="evenodd"/></symbol>
|
|
5
|
+
<symbol id="tui-searchsync-result-count" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16.243 4.853 15.74 8.5h2.76V10h-2.967l-.552 4H18.5v1.5h-3.726l-.53 3.852-1.487-.204.503-3.648H9.774l-.53 3.852-1.487-.204.503-3.648H5.5V14h2.967l.552-4H5.5V8.5h3.726l.53-3.853 1.487.206L10.74 8.5h3.486l.53-3.853zM9.981 14h3.486l.552-4h-3.486z" clip-rule="evenodd"/></symbol>
|
|
6
|
+
<symbol id="tui-searchsync-results" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.25 13c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 9.25 20h-3.5A1.75 1.75 0 0 1 4 18.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM18.25 13c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 18.25 20h-3.5A1.75 1.75 0 0 1 13 18.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM9.25 4c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 9.25 11h-3.5A1.75 1.75 0 0 1 4 9.25v-3.5C4 4.784 4.784 4 5.75 4zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25zM18.25 4c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 18.25 11h-3.5A1.75 1.75 0 0 1 13 9.25v-3.5c0-.966.784-1.75 1.75-1.75zm-3.5 1.5a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25z" clip-rule="evenodd"/></symbol>
|
|
7
|
+
<symbol id="tui-searchsync-search-box" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.97 8.75a2.75 2.75 0 0 1 2.4 4.089l1.63 1.63-1.06 1.061-1.631-1.63a2.75 2.75 0 1 1-1.339-5.15m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5" clip-rule="evenodd"/><path fill-rule="evenodd" d="M16.25 6.25a5.5 5.5 0 0 1 5.5 5.5v.5a5.5 5.5 0 0 1-5.5 5.5h-8.5a5.5 5.5 0 0 1-5.5-5.5v-.5a5.5 5.5 0 0 1 5.5-5.5zm-8.5 1.5a4 4 0 0 0-4 4v.5a4 4 0 0 0 4 4h8.5a4 4 0 0 0 4-4v-.5a4 4 0 0 0-4-4z" clip-rule="evenodd"/></symbol>
|
|
8
|
+
<symbol id="tui-searchsync-search" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11 7a4 4 0 0 1 3.308 6.247l2.472 2.473-1.06 1.06-2.473-2.472A4 4 0 1 1 11 7m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5" clip-rule="evenodd"/><path fill-rule="evenodd" d="M17.75 4A2.25 2.25 0 0 1 20 6.25v11.5A2.25 2.25 0 0 1 17.75 20H6.25A2.25 2.25 0 0 1 4 17.75V6.25A2.25 2.25 0 0 1 6.25 4zM6.25 5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75z" clip-rule="evenodd"/></symbol>
|
|
9
|
+
</svg>
|
package/icons/sprite-registry.js
CHANGED
|
@@ -140,6 +140,13 @@ export const iconRegistry = {
|
|
|
140
140
|
'reaction/triangle-down-outline': spriteIcon('tui-reaction-triangle-down-outline', '0 0 24 24', 'reaction/triangle-down-outline'),
|
|
141
141
|
'reaction/triangle-up-fill': spriteIcon('tui-reaction-triangle-up-fill', '0 0 24 24', 'reaction/triangle-up-fill'),
|
|
142
142
|
'reaction/triangle-up-outline': spriteIcon('tui-reaction-triangle-up-outline', '0 0 24 24', 'reaction/triangle-up-outline'),
|
|
143
|
+
'searchsync/filter': spriteIcon('tui-searchsync-filter', '0 0 24 24', 'searchsync/filter'),
|
|
144
|
+
'searchsync/filters': spriteIcon('tui-searchsync-filters', '0 0 24 24', 'searchsync/filters'),
|
|
145
|
+
'searchsync/pagination': spriteIcon('tui-searchsync-pagination', '0 0 24 24', 'searchsync/pagination'),
|
|
146
|
+
'searchsync/result-count': spriteIcon('tui-searchsync-result-count', '0 0 24 24', 'searchsync/result-count'),
|
|
147
|
+
'searchsync/results': spriteIcon('tui-searchsync-results', '0 0 24 24', 'searchsync/results'),
|
|
148
|
+
'searchsync/search': spriteIcon('tui-searchsync-search', '0 0 24 24', 'searchsync/search'),
|
|
149
|
+
'searchsync/search-box': spriteIcon('tui-searchsync-search-box', '0 0 24 24', 'searchsync/search-box'),
|
|
143
150
|
'system/activity': spriteIcon('tui-system-activity', '0 0 24 24', 'system/activity'),
|
|
144
151
|
'system/alert-circle-fill': spriteIcon('tui-system-alert-circle-fill', '0 0 24 24', 'system/alert-circle-fill'),
|
|
145
152
|
'system/alert-circle-outline': spriteIcon('tui-system-alert-circle-outline', '0 0 24 24', 'system/alert-circle-outline'),
|
|
@@ -155,6 +162,7 @@ export const iconRegistry = {
|
|
|
155
162
|
'system/bell-unread': spriteIcon('tui-system-bell-unread', '0 0 24 24', 'system/bell-unread'),
|
|
156
163
|
'system/bell': spriteIcon('tui-system-bell', '0 0 24 24', 'system/bell'),
|
|
157
164
|
'system/building': spriteIcon('tui-system-building', '0 0 24 24', 'system/building'),
|
|
165
|
+
'system/calendar': spriteIcon('tui-system-calendar', '0 0 24 24', 'system/calendar'),
|
|
158
166
|
'system/cart': spriteIcon('tui-system-cart', '0 0 24 24', 'system/cart'),
|
|
159
167
|
'system/chart': spriteIcon('tui-system-chart', '0 0 24 24', 'system/chart'),
|
|
160
168
|
'system/check-circle-fill': spriteIcon('tui-system-check-circle-fill', '0 0 24 24', 'system/check-circle-fill'),
|
|
@@ -179,6 +187,8 @@ export const iconRegistry = {
|
|
|
179
187
|
'system/circle-small-outline': spriteIcon('tui-system-circle-small-outline', '0 0 24 24', 'system/circle-small-outline'),
|
|
180
188
|
'system/close-circle-fill': spriteIcon('tui-system-close-circle-fill', '0 0 24 24', 'system/close-circle-fill'),
|
|
181
189
|
'system/close-circle-outline': spriteIcon('tui-system-close-circle-outline', '0 0 24 24', 'system/close-circle-outline'),
|
|
190
|
+
'system/clock-fill': spriteIcon('tui-system-clock-fill', '0 0 24 24', 'system/clock-fill'),
|
|
191
|
+
'system/clock-outline': spriteIcon('tui-system-clock-outline', '0 0 24 24', 'system/clock-outline'),
|
|
182
192
|
'system/close-small': spriteIcon('tui-system-close-small', '0 0 24 24', 'system/close-small'),
|
|
183
193
|
'system/close': spriteIcon('tui-system-close', '0 0 24 24', 'system/close'),
|
|
184
194
|
'system/cloud-check': spriteIcon('tui-system-cloud-check', '0 0 24 24', 'system/cloud-check'),
|
package/icons/sprite-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SPRITE_VERSION = '0.2.
|
|
1
|
+
export const SPRITE_VERSION = '0.2.40';
|
package/icons/sprite.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* `data:` URLs in `<use>`; fetching and inserting avoids both, so a CDN copy
|
|
12
12
|
* of TUI or a single-file bundle still works.
|
|
13
13
|
*/
|
|
14
|
-
export declare const iconSets: readonly ["system", "cred", "reaction", "player", "lms", "membersync"];
|
|
14
|
+
export declare const iconSets: readonly ["system", "cred", "reaction", "player", "lms", "membersync", "searchsync"];
|
|
15
15
|
export type IconSetName = (typeof iconSets)[number];
|
|
16
16
|
/** Fired on the document after a sprite is inserted (re-runs the dev check). */
|
|
17
17
|
export declare const SPRITE_EVENT = "tui-icon-sprite";
|
package/icons/sprite.js
CHANGED
|
@@ -13,7 +13,7 @@ import { SPRITE_VERSION } from './sprite-version.js';
|
|
|
13
13
|
* `data:` URLs in `<use>`; fetching and inserting avoids both, so a CDN copy
|
|
14
14
|
* of TUI or a single-file bundle still works.
|
|
15
15
|
*/
|
|
16
|
-
export const iconSets = ['system', 'cred', 'reaction', 'player', 'lms', 'membersync'];
|
|
16
|
+
export const iconSets = ['system', 'cred', 'reaction', 'player', 'lms', 'membersync', 'searchsync'];
|
|
17
17
|
/** Marks a sprite container; its value lists the sets it holds ("all" for icons.svg). */
|
|
18
18
|
const SPRITE_ATTR = 'data-tui-icon-sprite';
|
|
19
19
|
/** The TUI version that produced a container, so a newer copy can top it up. */
|
|
@@ -33,6 +33,7 @@ function defaultSpriteUrl(set) {
|
|
|
33
33
|
case 'player': return new URL('./player.svg', import.meta.url).href;
|
|
34
34
|
case 'lms': return new URL('./lms.svg', import.meta.url).href;
|
|
35
35
|
case 'membersync': return new URL('./membersync.svg', import.meta.url).href;
|
|
36
|
+
case 'searchsync': return new URL('./searchsync.svg', import.meta.url).href;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
const pending = new WeakMap();
|
package/icons/sprite.php
CHANGED
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
// Replaced with the package version at build time.
|
|
24
|
-
$GLOBALS['tangible_ui_icon_sprite_copies'][__DIR__] = '0.2.
|
|
24
|
+
$GLOBALS['tangible_ui_icon_sprite_copies'][__DIR__] = '0.2.40';
|
|
25
25
|
|
|
26
26
|
if (!function_exists('tangible_ui_print_icon_sprite')) {
|
|
27
27
|
/**
|
|
28
28
|
* @param string|string[] $sets Icon sets to print: 'system', 'cred',
|
|
29
|
-
* 'reaction', 'player', 'lms', 'membersync'
|
|
29
|
+
* 'reaction', 'player', 'lms', 'membersync',
|
|
30
|
+
* 'searchsync'.
|
|
30
31
|
*/
|
|
31
32
|
function tangible_ui_print_icon_sprite($sets = ['system']): void {
|
|
32
33
|
static $printed = [];
|
package/icons/system/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const BoltOutline: IconComponent;
|
|
|
21
21
|
export declare const BoltPlusFill: IconComponent;
|
|
22
22
|
export declare const BoltPlusOutline: IconComponent;
|
|
23
23
|
export declare const Building: IconComponent;
|
|
24
|
+
export declare const Calendar: IconComponent;
|
|
24
25
|
export declare const Cart: IconComponent;
|
|
25
26
|
export declare const Chart: IconComponent;
|
|
26
27
|
export declare const CheckCircleFill: IconComponent;
|
|
@@ -43,6 +44,8 @@ export declare const CircleFill: IconComponent;
|
|
|
43
44
|
export declare const CircleOutline: IconComponent;
|
|
44
45
|
export declare const CircleSmallFill: IconComponent;
|
|
45
46
|
export declare const CircleSmallOutline: IconComponent;
|
|
47
|
+
export declare const ClockFill: IconComponent;
|
|
48
|
+
export declare const ClockOutline: IconComponent;
|
|
46
49
|
export declare const CloseCircleFill: IconComponent;
|
|
47
50
|
export declare const CloseCircleOutline: IconComponent;
|
|
48
51
|
export declare const CloseSmall: IconComponent;
|
|
@@ -155,6 +158,7 @@ export declare const systemIcons: {
|
|
|
155
158
|
'bell-unread': IconComponent;
|
|
156
159
|
'bell': IconComponent;
|
|
157
160
|
'building': IconComponent;
|
|
161
|
+
'calendar': IconComponent;
|
|
158
162
|
'cart': IconComponent;
|
|
159
163
|
'chart': IconComponent;
|
|
160
164
|
'check-circle-fill': IconComponent;
|
|
@@ -179,6 +183,8 @@ export declare const systemIcons: {
|
|
|
179
183
|
'circle-small-outline': IconComponent;
|
|
180
184
|
'close-circle-fill': IconComponent;
|
|
181
185
|
'close-circle-outline': IconComponent;
|
|
186
|
+
'clock-fill': IconComponent;
|
|
187
|
+
'clock-outline': IconComponent;
|
|
182
188
|
'close-small': IconComponent;
|
|
183
189
|
'close': IconComponent;
|
|
184
190
|
'cloud-check': IconComponent;
|
package/icons/system/index.js
CHANGED
|
@@ -191,6 +191,16 @@ export function Building(props) {
|
|
|
191
191
|
}, props), _c("g", null, _c("path", {d:"M9 11.75H7v-1.5h2zM12 11.75h-2v-1.5h2zM9 8.75H7v-1.5h2zM12 8.75h-2v-1.5h2zM17.5 16.75H16v-1.5h1.5zM17.5 13.75H16v-1.5h1.5z"}), _c("path", {fillRule:"evenodd",d:"M13.204 4.01A2 2 0 0 1 15 6v3h3a2 2 0 0 1 2 2v7l-.01.204a2 2 0 0 1-1.786 1.785L18 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7zM6 5.5a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h1V15a1 1 0 0 1 .897-.995L8 14h3l.102.005A1 1 0 0 1 12 15v3.5h1.5V6a.5.5 0 0 0-.5-.5zm2.5 13h2v-3h-2zm6.5 0h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3z",clipRule:"evenodd"})));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
export function Calendar(props) {
|
|
195
|
+
return _c("svg", Object.assign({
|
|
196
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
197
|
+
viewBox: "0 0 24 24",
|
|
198
|
+
width: "1em",
|
|
199
|
+
height: "1em",
|
|
200
|
+
fill: "currentColor"
|
|
201
|
+
}, props), _c("path", {d:"M9 17H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8-4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}), _c("path", {fillRule:"evenodd",d:"M16 3.25a.75.75 0 0 1 .75.75v1H18a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-1.99-1.796L4 18V7a2 2 0 0 1 2-2h1.25V4a.75.75 0 0 1 1.5 0v1h2.5V4a.75.75 0 0 1 1.5 0v1h2.5V4a.75.75 0 0 1 .75-.75M5.5 18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V9.75h-13zM6 6.5a.5.5 0 0 0-.5.5v1.25h13V7a.5.5 0 0 0-.5-.5h-1.25V7a.75.75 0 0 1-1.5 0v-.5h-2.5V7a.75.75 0 0 1-1.5 0v-.5h-2.5V7a.75.75 0 0 1-1.5 0v-.5z",clipRule:"evenodd"}));
|
|
202
|
+
}
|
|
203
|
+
|
|
194
204
|
export function Cart(props) {
|
|
195
205
|
return _c("svg", Object.assign({
|
|
196
206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -411,6 +421,26 @@ export function CircleSmallOutline(props) {
|
|
|
411
421
|
}, props), _c("path", {d:"M14.5 12a2.5 2.5 0 1 0-2.5 2.5V16a4 4 0 1 1 0-8 4 4 0 0 1 0 8v-1.5a2.5 2.5 0 0 0 2.5-2.5"}));
|
|
412
422
|
}
|
|
413
423
|
|
|
424
|
+
export function ClockFill(props) {
|
|
425
|
+
return _c("svg", Object.assign({
|
|
426
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
427
|
+
viewBox: "0 0 24 24",
|
|
428
|
+
width: "1em",
|
|
429
|
+
height: "1em",
|
|
430
|
+
fill: "currentColor"
|
|
431
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 3.25a.75.75 0 0 0-.75.75v4c0 .138.04.265.104.376l.022.039q.027.038.058.071c.043.051.092.1.15.138l3 2a.75.75 0 1 0 .832-1.248l-2.666-1.777V8a.75.75 0 0 0-.75-.75",clipRule:"evenodd"}));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export function ClockOutline(props) {
|
|
435
|
+
return _c("svg", Object.assign({
|
|
436
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
437
|
+
viewBox: "0 0 24 24",
|
|
438
|
+
width: "1em",
|
|
439
|
+
height: "1em",
|
|
440
|
+
fill: "currentColor"
|
|
441
|
+
}, props), _c("path", {d:"M12 7.25a.75.75 0 0 1 .75.75v3.599l2.666 1.777a.75.75 0 1 1-.832 1.248l-3-2a.8.8 0 0 1-.15-.138q-.031-.033-.058-.071l-.021-.039A.74.74 0 0 1 11.25 12V8a.75.75 0 0 1 .75-.75"}), _c("path", {fillRule:"evenodd",d:"M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13",clipRule:"evenodd"}));
|
|
442
|
+
}
|
|
443
|
+
|
|
414
444
|
export function CloseCircleFill(props) {
|
|
415
445
|
return _c("svg", Object.assign({
|
|
416
446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1377,6 +1407,7 @@ export const systemIcons = {
|
|
|
1377
1407
|
'bell-unread': BellUnread,
|
|
1378
1408
|
'bell': Bell,
|
|
1379
1409
|
'building': Building,
|
|
1410
|
+
'calendar': Calendar,
|
|
1380
1411
|
'cart': Cart,
|
|
1381
1412
|
'chart': Chart,
|
|
1382
1413
|
'check-circle-fill': CheckCircleFill,
|
|
@@ -1401,6 +1432,8 @@ export const systemIcons = {
|
|
|
1401
1432
|
'circle-small-outline': CircleSmallOutline,
|
|
1402
1433
|
'close-circle-fill': CloseCircleFill,
|
|
1403
1434
|
'close-circle-outline': CloseCircleOutline,
|
|
1435
|
+
'clock-fill': ClockFill,
|
|
1436
|
+
'clock-outline': ClockOutline,
|
|
1404
1437
|
'close-small': CloseSmall,
|
|
1405
1438
|
'close': Close,
|
|
1406
1439
|
'cloud-check': CloudCheck,
|
package/icons/system.svg
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<symbol id="tui-system-bolt-plus-fill" viewBox="0 0 24 24"><path d="M13.522 11h3.487c.416 0 .79.26.91.647a.95.95 0 0 1-.25 1.106l-.603.527a4.5 4.5 0 0 0-5.957 5.208l-1.447 1.265a1 1 0 0 1-1.58-1.147L10.489 13H6.973a.995.995 0 0 1-.909-.647 1 1 0 0 1 .278-1.106l8.005-7a1.002 1.002 0 0 1 1.58 1.147z"/><path fill-rule="evenodd" d="M15.5 21a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m2.5-3.5a.577.577 0 0 1-.577.577h-1.346v1.346a.577.577 0 1 1-1.154 0v-1.346h-1.346a.577.577 0 0 1 0-1.154h1.346v-1.346a.577.577 0 1 1 1.154 0v1.346h1.346c.32 0 .577.258.577.577" clip-rule="evenodd"/></symbol>
|
|
19
19
|
<symbol id="tui-system-bolt-plus-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.335 12.5h3.344l-.593.519q.204-.02.414-.019c.55 0 1.078.099 1.566.28l.603-.527a.95.95 0 0 0 .25-1.106.94.94 0 0 0-.91-.647h-3.487l2.405-5.606a1.002 1.002 0 0 0-1.58-1.147l-8.005 7a1 1 0 0 0-.278 1.106c.147.388.52.647.909.647h3.515l-2.405 5.606a1 1 0 0 0 1.58 1.147l1.446-1.265a4.5 4.5 0 0 1 .004-1.996l-.786.687zm-.66-1H8.33l5.35-4.678z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M19 17.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-1.577.577a.577.577 0 0 0 0-1.154h-1.346v-1.346a.577.577 0 1 0-1.154 0v1.346h-1.346a.577.577 0 1 0 0 1.154h1.346v1.346a.577.577 0 1 0 1.154 0v-1.346z" clip-rule="evenodd"/></symbol>
|
|
20
20
|
<symbol id="tui-system-building" viewBox="0 0 24 24"><g><path d="M9 11.75H7v-1.5h2zM12 11.75h-2v-1.5h2zM9 8.75H7v-1.5h2zM12 8.75h-2v-1.5h2zM17.5 16.75H16v-1.5h1.5zM17.5 13.75H16v-1.5h1.5z"/><path fill-rule="evenodd" d="M13.204 4.01A2 2 0 0 1 15 6v3h3a2 2 0 0 1 2 2v7l-.01.204a2 2 0 0 1-1.786 1.785L18 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7zM6 5.5a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h1V15a1 1 0 0 1 .897-.995L8 14h3l.102.005A1 1 0 0 1 12 15v3.5h1.5V6a.5.5 0 0 0-.5-.5zm2.5 13h2v-3h-2zm6.5 0h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3z" clip-rule="evenodd"/></g></symbol>
|
|
21
|
+
<symbol id="tui-system-calendar" viewBox="0 0 24 24"><path d="M9 17H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8-4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"/><path fill-rule="evenodd" d="M16 3.25a.75.75 0 0 1 .75.75v1H18a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-1.99-1.796L4 18V7a2 2 0 0 1 2-2h1.25V4a.75.75 0 0 1 1.5 0v1h2.5V4a.75.75 0 0 1 1.5 0v1h2.5V4a.75.75 0 0 1 .75-.75M5.5 18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V9.75h-13zM6 6.5a.5.5 0 0 0-.5.5v1.25h13V7a.5.5 0 0 0-.5-.5h-1.25V7a.75.75 0 0 1-1.5 0v-.5h-2.5V7a.75.75 0 0 1-1.5 0v-.5h-2.5V7a.75.75 0 0 1-1.5 0v-.5z" clip-rule="evenodd"/></symbol>
|
|
21
22
|
<symbol id="tui-system-cart" viewBox="0 0 24 24"><path d="M9.5 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M16.5 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"/><path fill-rule="evenodd" d="M7.615 7h12.259l-.937 6.092A2.25 2.25 0 0 1 16.713 15h-7.43a2.25 2.25 0 0 1-2.223-1.9L5.858 5.5H4V4h3.14zm.926 5.867a.75.75 0 0 0 .741.633h7.43a.75.75 0 0 0 .742-.636l.672-4.364H7.852z" clip-rule="evenodd"/></symbol>
|
|
22
23
|
<symbol id="tui-system-chart" viewBox="0 0 24 24"><g><path d="M5.75 20h-1.5v-5h1.5zM9.25 20h-1.5v-9h1.5zM12.75 20h-1.5v-6h1.5zM16.25 20h-1.5v-8h1.5zM19.75 20h-1.5V9h1.5zM20.443 4.604l-8.018 5.881L8.438 6.5 4.461 9.592l-.922-1.184 4.5-3.5.524-.406 4.013 4.014 6.98-5.12z"/></g></symbol>
|
|
23
24
|
<symbol id="tui-system-check-circle-fill" viewBox="0 0 24 24"><path d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-1.065 9.775-2.262-2.271-.976.97 3.234 3.248 5.745-5.72-.972-.976z"/></symbol>
|
|
@@ -40,6 +41,8 @@
|
|
|
40
41
|
<symbol id="tui-system-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
|
|
41
42
|
<symbol id="tui-system-circle-small-fill" viewBox="0 0 24 24"><path d="M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></symbol>
|
|
42
43
|
<symbol id="tui-system-circle-small-outline" viewBox="0 0 24 24"><path d="M14.5 12a2.5 2.5 0 1 0-2.5 2.5V16a4 4 0 1 1 0-8 4 4 0 0 1 0 8v-1.5a2.5 2.5 0 0 0 2.5-2.5"/></symbol>
|
|
44
|
+
<symbol id="tui-system-clock-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 3.25a.75.75 0 0 0-.75.75v4c0 .138.04.265.104.376l.022.039q.027.038.058.071c.043.051.092.1.15.138l3 2a.75.75 0 1 0 .832-1.248l-2.666-1.777V8a.75.75 0 0 0-.75-.75" clip-rule="evenodd"/></symbol>
|
|
45
|
+
<symbol id="tui-system-clock-outline" viewBox="0 0 24 24"><path d="M12 7.25a.75.75 0 0 1 .75.75v3.599l2.666 1.777a.75.75 0 1 1-.832 1.248l-3-2a.8.8 0 0 1-.15-.138q-.031-.033-.058-.071l-.021-.039A.74.74 0 0 1 11.25 12V8a.75.75 0 0 1 .75-.75"/><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
|
|
43
46
|
<symbol id="tui-system-close-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-4.995 4.066L12 13.06l-3.005 3.005-1.06-1.06L10.94 12 7.934 8.995l1.06-1.06L12 10.94l3.005-3.006 1.06 1.061L13.062 12l3.005 3.005z" clip-rule="evenodd"/></symbol>
|
|
44
47
|
<symbol id="tui-system-close-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13m8-6.5a8 8 0 1 1-16 0 8 8 0 0 1 16 0" clip-rule="evenodd"/><path d="m12 13.06 3.005 3.006 1.06-1.06L13.062 12l3.005-3.005-1.06-1.06L12 10.94 8.995 7.934l-1.061 1.06L10.939 12l-3.005 3.005 1.06 1.061z"/></symbol>
|
|
45
48
|
<symbol id="tui-system-close-small" viewBox="0 0 24 24"><path d="m12 13.06 3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.94 12l-3.712 3.712 1.06 1.061z"/></symbol>
|
package/package.json
CHANGED
|
@@ -75,22 +75,16 @@ the filter drops load-bearing API:
|
|
|
75
75
|
their full `--tui-<component>-*` API — the only shipped listing, since consumers have no SCSS) and
|
|
76
76
|
`story` (all 46, pointing into <https://storybook-tangible-ui.pages.dev>).
|
|
77
77
|
|
|
78
|
-
### Types
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
`@tangible/ui
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
`ComboboxFilterMode`, `IconButton`'s `Shape`/`Variant`, `NoticeHandle`, `ProgressSegment`,
|
|
89
|
-
`OptionValue`, `TooltipTheme`, … (`SidebarFooterProps` was on this list until 0.2.18, which
|
|
90
|
-
also exported the new `SidebarToggleProps`.)
|
|
91
|
-
- **All of DatePicker** — the barrel exports zero DatePicker types: `DatePickerProps`,
|
|
92
|
-
`DateRangePickerProps`, `CalendarProps`, `DateRange`, `DateRangePreset`, `WeekStart`.
|
|
93
|
-
- **`SliderProps`**, which is missing entirely.
|
|
78
|
+
### Types from the barrel
|
|
79
|
+
|
|
80
|
+
Every type and `default*Labels` value a component's own index exports also comes from
|
|
81
|
+
`@tangible/ui` (since #90; a unit test keeps it that way). Names declared by more than one
|
|
82
|
+
component carry a component prefix: `PopoverSide`/`PopoverAlign`, `TooltipSide`/`TooltipAlign`,
|
|
83
|
+
`IconButtonShape`/`IconButtonVariant`/`IconButtonTheme`, `ProgressMode`/`ProgressLabelPosition`,
|
|
84
|
+
`SelectOptionValue` (beside the existing `MultiSelectOptionValue`/`MultiSelectDisplayMode`).
|
|
85
|
+
The colour and gradient parsers stay at `@tangible/ui/utils/color` and
|
|
86
|
+
`@tangible/ui/utils/color/gradient`, and DatePicker's date helpers (`addDays`, …) at
|
|
87
|
+
`@tangible/ui/components/DatePicker`.
|
|
94
88
|
|
|
95
89
|
Also: `@tanstack/react-table` is a real dependency of TUI, not a peer, so it installs
|
|
96
90
|
automatically — but under pnpm it has no root symlink, so `ColumnDef` will not resolve from app
|
|
@@ -135,6 +129,9 @@ Only **Modal** takes a `container` prop. If you need to place it yourself, creat
|
|
|
135
129
|
node silently does nothing. For the rest of the family, the fix is to put the *trigger* inside a
|
|
136
130
|
`.tui-interface`. `getPortalRootFor` is importable from `@tangible/ui/utils/portal` if you need to
|
|
137
131
|
resolve the same root yourself.
|
|
132
|
+
It returns `null` while server-rendering (no `document`); the portalled
|
|
133
|
+
components render their panels on mount, so they server-render (Astro, Next) and hydrate without
|
|
134
|
+
`client:only`.
|
|
138
135
|
|
|
139
136
|
If `<html>` itself is the `.tui-interface`, portal roots mount inside `<body>`, not on `<html>`.
|
|
140
137
|
|
|
@@ -214,7 +211,7 @@ TUI's own icons (chevrons, close, check, …) are imported directly from 0.2.30,
|
|
|
214
211
|
they never need listing. To find the names your code passes, search for every `<set>/<name>` string
|
|
215
212
|
literal, single- or double-quoted, not just `icon=`: Button takes `leftIconName`/`rightIconName`, and names also arrive
|
|
216
213
|
through `icon` fields in data (NavMenu items, Tabs, StepList), e.g.
|
|
217
|
-
`rg -o "['\"](system|lms|cred|reaction|player|membersync)/[a-z0-9-]+" src | sort -u`. A name you use but forget to list renders an empty `<span data-tui-icon-missing="…">` and a
|
|
214
|
+
`rg -o "['\"](system|lms|cred|reaction|player|membersync|searchsync)/[a-z0-9-]+" src | sort -u`. A name you use but forget to list renders an empty `<span data-tui-icon-missing="…">` and a
|
|
218
215
|
dev-mode warning. Or skip names altogether: every icon prop also takes the component itself,
|
|
219
216
|
`<IconButton icon={Trash} label="Delete" />`, which never touches the registry.
|
|
220
217
|
Import each icon from the set that owns its file: the `lms/info`, `lms/help-circle-fill` and
|
|
@@ -295,7 +292,8 @@ never from the size (page title `h1`, card title `h2` is a sensible default):
|
|
|
295
292
|
|
|
296
293
|
| Role | Class | Colour |
|
|
297
294
|
|---|---|---|
|
|
298
|
-
| Page title | `tui-text-style-headline-
|
|
295
|
+
| Page title (top-level page) | `tui-text-style-headline-02` (32 / 600) | default |
|
|
296
|
+
| Drill-down page title (a team inside Team Members), auth card title | `tui-text-style-headline-04` (24 / 600) | default |
|
|
299
297
|
| Card or section title | `tui-text-style-headline-07` (16 / 600) | default |
|
|
300
298
|
| Page, card and empty-state description; key labels | `tui-text-style-body-sm` | `--tui-color-fg-muted` |
|
|
301
299
|
| Body and value text | `tui-text-style-body-sm` | default |
|
|
@@ -306,6 +304,20 @@ never from the size (page title `h1`, card title `h2` is a sensible default):
|
|
|
306
304
|
| Stat trend | 12 / 400, coloured by **sentiment**, not arrow: `--tui-theme-{success,danger,secondary}-stronger` | |
|
|
307
305
|
| Empty-state title | 16 / 600 / 1.4 in the body face | default |
|
|
308
306
|
|
|
307
|
+
**On small screens, step the page title down to 24.** The templates keep it at 32 on desktop and 24
|
|
308
|
+
at phone width, where 32 is too big for longer titles. TUI ships no breakpoints, so the app does it in
|
|
309
|
+
its own query by re-pointing the page title's size knob to `headline-04`'s size; weight and line height
|
|
310
|
+
already match:
|
|
311
|
+
|
|
312
|
+
```css
|
|
313
|
+
@media (width < 40rem) {
|
|
314
|
+
:root { --tui-text-headline-02-size: 1.5rem; }
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
The knob reaches every `headline-02` in the app, so keep that level for page titles. Pick the breakpoint
|
|
319
|
+
your shell already uses.
|
|
320
|
+
|
|
309
321
|
A brand heading face goes on `--tui-text-headline-family`. It reaches every headline level, so page and
|
|
310
322
|
card titles, and nothing in the body face (stat values and empty-state titles stay body). Field help on a light `bg-muted` panel measures 4.39:1 in `fg-muted`, under AA, so set
|
|
311
323
|
`--tui-field-helper-fg: var(--tui-color-fg-secondary)` on that panel.
|
|
@@ -376,20 +388,21 @@ in (`label`, `aria-label`, titles) are already yours. Wire the rest to your tran
|
|
|
376
388
|
Oct 24 2026.
|
|
377
389
|
|
|
378
390
|
**`labels` objects** (pass a partial; unset keys keep the default). The defaults are exported as
|
|
379
|
-
`default<Name>Labels
|
|
391
|
+
`default<Name>Labels`, all from the barrel.
|
|
380
392
|
|
|
381
393
|
| Component | Keys |
|
|
382
394
|
|---|---|
|
|
383
395
|
| Avatar / AvatarGroup | `description` / `group`, `groupAll`, `overflow` |
|
|
384
|
-
| Button | `newTab` (" (opens in new tab)", the hidden hint on `target="_blank"` links) |
|
|
396
|
+
| Button | `newTab` (" (opens in new tab)", the hidden hint on `target="_blank"` links), `loadingStart`, `loadingEnd` (empty: see below) |
|
|
385
397
|
| Calendar | `prevMonth`, `nextMonth`, `prevYear`, `nextYear`, `openMonthPicker`, `day`, `today`, `selected` |
|
|
386
398
|
| ColorField | `trigger`, `dynamic`, `modes`, `solidTab`, `gradientTab` (its popover takes ColorPicker's) |
|
|
387
399
|
| ColorPicker | `group`, `area`, `hue`, `alpha`, `format`, `value`, `copy`, `copied`, `variable`, `formats`, `channels`, channel names, value texts |
|
|
388
400
|
| Combobox | `clear` |
|
|
389
401
|
| DataTable / BulkActionsBar | `selectAll`, `selectRow`, `pageStatus`, `sortBy`, `sorted` / `selected`, `actions` |
|
|
390
402
|
| DatePicker | `title`, `titleWithTime`, `now`, `close`, `placeholder`, `timeSection`, `dateSection`, `month`, `dayOfMonth`, `year`, `hour`, `minute`, `am`, `pm`, `meridiem`, `trigger`, `triggerEmpty` |
|
|
391
|
-
| DateRangePicker | `from`, `to`, `apply`, `cancel`, `placeholder`, `presets`, `trigger`, `triggerEmpty` |
|
|
403
|
+
| DateRangePicker | `from`, `to`, `apply`, `cancel`, `placeholder`, `presets`, `trigger`, `triggerEmpty`, `openEnd` |
|
|
392
404
|
| Field | `required` (the visually hidden "required" after the label) |
|
|
405
|
+
| IconButton | `loadingStart`, `loadingEnd` (empty: see below) |
|
|
393
406
|
| GradientPicker | `group`, `bar`, `stop`, `value`, `copy`, `copied`, `reverse`, stop editing, type and geometry labels |
|
|
394
407
|
| MoveHandle | `moveUp`, `moveDown`, `drag`, `locked` (no exported default object) |
|
|
395
408
|
| MultiCombobox | `clear`, `remove`, `status` |
|
|
@@ -414,6 +427,20 @@ the × closes it); SearchInput `searchLabel`, `clearLabel`; Select `clearLabel`;
|
|
|
414
427
|
**Composed strings:** Button `loading` names itself "<label>, loading" in English. Pass
|
|
415
428
|
`loadingLabel` with the translated whole.
|
|
416
429
|
|
|
430
|
+
**Announcing loading (0.2.40+, opt-in).** A loading Button or IconButton keeps focus, but screen
|
|
431
|
+
readers rarely re-read the busy name on the focused element, and nothing says when it finishes.
|
|
432
|
+
Pass `labels={{ loadingStart: 'Saving…', loadingEnd: 'Saved' }}` (translated) and each transition
|
|
433
|
+
is spoken through a polite live region that mounts empty with the button. Both default to empty,
|
|
434
|
+
which is off. The region is portaled (into the open modal holding the button, else the
|
|
435
|
+
interface's portal root), so it never sits next to the button in the DOM: connected groups and
|
|
436
|
+
input-group slots are unaffected. If the button unmounts when the action completes (a dialog that
|
|
437
|
+
closes on save), the end can't be spoken from the button: use a Toast. Don't put `aria-busy` on
|
|
438
|
+
a wrapper around the button (a form, a card) while it loads: NVDA and Chromium hold live output
|
|
439
|
+
under a busy ancestor. When you test with a screen reader, listen for double speech: some re-read
|
|
440
|
+
the busy name ("Save, loading") as well as `loadingStart`. The region goes inside the nearest
|
|
441
|
+
dialog holding the button (Modal, a `Popover modal`, the Sidebar drawer), since the rest of the
|
|
442
|
+
page is hidden from assistive tech while one is open.
|
|
443
|
+
|
|
417
444
|
## Customising
|
|
418
445
|
|
|
419
446
|
Tokens, not class overrides. Four layers, and you only touch two:
|
|
@@ -484,6 +511,15 @@ description, and `label` would hide it from screen readers. `IconButton showTool
|
|
|
484
511
|
in a `<span>` to dodge the describedby. Set `--tui-tooltip-max-width` (default 250px, never wider
|
|
485
512
|
than the viewport) for a one-line tooltip, rather than a className.
|
|
486
513
|
|
|
514
|
+
**An avatar beside the visible name is `decorative`** (0.2.40+). A named Avatar renders
|
|
515
|
+
`role="img" aria-label={name}`, and inside a button or link that name joins the control's: an
|
|
516
|
+
account-menu button with an avatar and an email announces "Mary Ghen mary@example.com".
|
|
517
|
+
`<Avatar name="Mary Ghen" decorative />` keeps the initials and color and renders
|
|
518
|
+
`aria-hidden="true"` with no role or label, so the button is named by its email alone. Don't wrap
|
|
519
|
+
the avatar in an `aria-hidden` span instead: Avatar forwards no rest props, and the wrapper picks
|
|
520
|
+
up descender space unless it's `display: flex`. `decorative` ignores `tooltip` and hides any
|
|
521
|
+
`indicatorLabel` (a dev warning fires), so put status in the visible text.
|
|
522
|
+
|
|
487
523
|
`className` is for layout integration (margin, grid placement), not appearance. Beyond the token
|
|
488
524
|
API the sanctioned escape hatch is to **swizzle** — copy the component source and own the fork.
|
|
489
525
|
|
|
@@ -494,6 +530,10 @@ API the sanctioned escape hatch is to **swizzle** — copy the component source
|
|
|
494
530
|
*between* slots (a slot's bottom padding when another follows it). A lone `Card.Body` is both
|
|
495
531
|
first and last, so padding alone sizes it. To make a compact card with Head + Body + Foot, set
|
|
496
532
|
both.
|
|
533
|
+
- **Inline Foot width.** In `mode="inline"` the Foot's flex basis defaults to 500px
|
|
534
|
+
(`--tui-card-foot-basis`), room for a row of actions. A Foot holding one small button still
|
|
535
|
+
reserves it, so set `--tui-card-foot-basis: max-content` on those cards. The same applies to
|
|
536
|
+
Notice's inline Foot (`--tui-notice-foot-basis`).
|
|
497
537
|
- **`tuiCard` is a public container name.** Card is `container-type: inline-size;
|
|
498
538
|
container-name: tuiCard`, so content inside can respond to the card's own width:
|
|
499
539
|
`@container tuiCard (max-width: 36rem) { .my-link { margin-inline-start: 0; } }`. Name it
|
|
@@ -591,7 +631,7 @@ a text field the user can also type into freely:
|
|
|
591
631
|
onChange={(e) => setText(e.target.value)}
|
|
592
632
|
suffix={
|
|
593
633
|
<DatePicker.Trigger asChild>
|
|
594
|
-
<IconButton icon="
|
|
634
|
+
<IconButton icon="system/calendar" label="Pick a date" variant="ghost" size="sm" />
|
|
595
635
|
</DatePicker.Trigger>
|
|
596
636
|
}
|
|
597
637
|
/>
|
|
@@ -649,18 +689,31 @@ synthesise a second toggle. For a second control that toggles the same item (an
|
|
|
649
689
|
## Component names, and what isn't there
|
|
650
690
|
|
|
651
691
|
46 components. If you are hunting for a name: **Alert → `Notice`**, **Menu → `Dropdown`**,
|
|
652
|
-
**Table → `DataTable`**, **Pagination → `Pager`**, **Drawer / side sheet / off-canvas panel → `Sidebar`** (`<Sidebar drawer open onClose position="left">`: a modal dialog with a focus trap, Escape and backdrop dismissal; `initialFocusSelector` or `data-autofocus` picks where focus lands on open; don't dock a `Modal` to an edge), **Nav menu / sidebar links / top nav bar → `NavMenu`** (inside `Sidebar.Nav` or your `<nav>`; `asChild` for router links, `current` for `aria-current`; `orientation="horizontal"` for a bar whose items open flyouts, `flyoutTrigger="hover"` to also open on mouse hover; `suffix` for a row badge/count — a `Chip`, with visually hidden context for bare numbers, never interactive; row states restyle via `--tui-nav-menu-item-*`, per level via `--tui-nav-menu-{sub,bar,flyout}-item-*` — set `bar-item-*` for a dark header so flyout rows keep the panel's colours; don't hand-roll menus with `role="menu"`),
|
|
692
|
+
**Table → `DataTable`**, **Pagination → `Pager`**, **Drawer / side sheet / off-canvas panel → `Sidebar`** (`<Sidebar drawer open onClose position="left">`: a modal dialog with a focus trap, Escape and backdrop dismissal; `initialFocusSelector` or `data-autofocus` picks where focus lands on open; don't dock a `Modal` to an edge), **Nav menu / sidebar links / top nav bar → `NavMenu`** (inside `Sidebar.Nav` or your `<nav>`; `asChild` for router links, `current` for `aria-current`; `orientation="horizontal"` for a bar whose items open flyouts; Items can sit straight in `NavMenu` (they get an implicit list) or in a `NavMenu.Group` when the cluster needs a name, `flyoutTrigger="hover"` to also open on mouse hover; `suffix` for a row badge/count — a `Chip`, with visually hidden context for bare numbers, never interactive; row states restyle via `--tui-nav-menu-item-*`, per level via `--tui-nav-menu-{sub,bar,flyout}-item-*` — set `bar-item-*` for a dark header so flyout rows keep the panel's colours; don't hand-roll menus with `role="menu"`),
|
|
653
693
|
**Badge → `Chip`** or `ContentIndicator`, **Spinner → `Progress`** or `Button loading`,
|
|
654
694
|
**ConfirmDialog / AlertDialog → `Modal role="alertdialog"`** (needs both `aria-labelledby` and
|
|
655
695
|
`aria-describedby`; the backdrop stops dismissing by default, Escape still cancels; put the actions in
|
|
656
696
|
`Modal.Foot`, which is already an end-aligned flex row — `justify="between"` separates a destructive one).
|
|
657
697
|
**Snackbar → `Toast`** (`ToastProvider` + `useToast()`).
|
|
698
|
+
**Stacked status bar / composition bar → `Progress breakdown`** (0.2.40+): `segments` of
|
|
699
|
+
`{ label, value, theme }`, each its own count colored by meaning (fills use the theme's `-strong`
|
|
700
|
+
step, 3:1 against the track in both modes), labelled by count or, with `showPercent`, by share.
|
|
701
|
+
It renders a list named by `aria-label`/`aria-labelledby`, not a progressbar. Widths are shares
|
|
702
|
+
of the sum; pass `max` only for "of N" (the rest stays empty track and gets a "Remaining"
|
|
703
|
+
legend item, `labels.remaining`). Name it, or a dev warning fires. Don't use `primary` and `info`
|
|
704
|
+
together (same blue). `showLabels={false}` leaves sighted users with color alone, so show the
|
|
705
|
+
numbers elsewhere; `showPercent` replaces counts for screen readers too. Don't re-point
|
|
706
|
+
`--tui-progress-zN-fill` per position and pass a legend as children: plain `segments` without
|
|
707
|
+
`breakdown` stay cumulative ("Pending 100%").
|
|
658
708
|
**Password / API key / token field → `SecretInput`** (a `TextInput` variant: masked, with a reveal
|
|
659
709
|
toggle whose name flips Show/Hide; `isSet` is a boolean so a stored secret never reaches the client,
|
|
660
710
|
it shows a "Saved" placeholder and typing replaces it; `locked` makes it read-only with no toggle). No Breadcrumb, no Skeleton, and no *standalone* time picker — but
|
|
661
711
|
`DatePicker` / `DateRangePicker` take `withTime` for an hour/minute field (12- or 24-hour via
|
|
662
712
|
`hour12`) plus a display-only `zoneLabel`; the value is a plain `Date` with wall-clock semantics,
|
|
663
|
-
so timezone interpretation stays yours.
|
|
713
|
+
so timezone interpretation stays yours. A range with a start and no end (a membership, a
|
|
714
|
+
subscription) is opt-in: `DateRangePicker allowOpenEnd` lets Apply commit `{ from, to: null }`,
|
|
715
|
+
the trigger reads `labels.openEnd` ("From Aug 8, 2024"), and emptying the To field clears the end.
|
|
716
|
+
Without it a committed range always has both endpoints.
|
|
664
717
|
|
|
665
718
|
Two clusters are easy to pick wrong:
|
|
666
719
|
|
|
@@ -673,12 +726,13 @@ Two clusters are easy to pick wrong:
|
|
|
673
726
|
chips in the trigger), `MultiCombobox` (multi, free-typing token field). All five share one
|
|
674
727
|
listbox engine, so navigation and ARIA behave identically; the trigger is the choice.
|
|
675
728
|
|
|
676
|
-
Icons are a registry,
|
|
677
|
-
(36), `player` (24), `membersync` (22), `cred` (12). `@tangible/ui/icons/manifest` is the
|
|
729
|
+
Icons are a registry, seven sets, 290 entries (Nov 20 2026): `system` (144), `lms` (45), `reaction`
|
|
730
|
+
(36), `player` (24), `membersync` (22), `cred` (12), `searchsync` (7). `@tangible/ui/icons/manifest` is the
|
|
678
731
|
machine-readable list. Search it across all sets, by name and by `aliasOf`: an alias names the same
|
|
679
732
|
glyph a second way (`system/refresh` and `system/rotate` are `system/arrow-counterclockwise`).
|
|
680
733
|
General-purpose glyphs live in `system` (`system/info`, `system/help-circle-fill`,
|
|
681
|
-
`system/question-mark`); their old
|
|
734
|
+
`system/question-mark`, `system/calendar`, `system/clock-outline`, `system/clock-fill`); their old
|
|
735
|
+
`lms/` keys (`lms/duration-fill` for the filled clock) still work as aliases.
|
|
682
736
|
|
|
683
737
|
```tsx
|
|
684
738
|
<Icon name="system/check" /> {/* decorative — hidden from AT automatically */}
|
|
@@ -767,9 +821,6 @@ list** — an issue closes on its own, a bullet here does not. This section used
|
|
|
767
821
|
inline and went stale within a week; one of its entries turned out never to reproduce at all.
|
|
768
822
|
Re-verify before you work around anything.
|
|
769
823
|
|
|
770
|
-
- **`DateRangePicker` cannot express an open-ended range** — Apply is inert unless *both* endpoints
|
|
771
|
-
are set, so "starts now, no end date" is unreachable.
|
|
772
|
-
([#86](https://github.com/TangibleInc/tangible-ui/issues/86))
|
|
773
824
|
- **`tui-manifest.json` is lossy** — see "Where the API lives" above for the shape of it.
|
|
774
825
|
([#87](https://github.com/TangibleInc/tangible-ui/issues/87))
|
|
775
826
|
|