@tangible/ui 0.2.20 → 0.2.22
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/ColorPicker/ColorField.d.ts +25 -1
- package/components/ColorPicker/ColorField.js +9 -3
- package/components/ColorPicker/index.d.ts +1 -1
- package/components/Toast/Toast.d.ts +14 -0
- package/components/Toast/Toast.js +85 -19
- package/components/index.d.ts +1 -1
- package/figma-tokens.json +237 -21
- package/icons/icons.svg +15 -0
- package/icons/manifest.json +120 -0
- package/icons/registry.d.ts +30 -0
- package/icons/registry.js +15 -0
- package/icons/system/index.d.ts +30 -0
- package/icons/system/index.js +165 -0
- package/package.json +9 -1
- package/skills/building-with-tui/SKILL.md +13 -0
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +65 -24
- package/styles/all.expanded.unlayered.css +65 -24
- package/styles/all.unlayered.css +1 -1
- package/styles/components/color-picker.scss +58 -4
- package/styles/components/content-indicator.scss +1 -1
- package/styles/components/date-picker.scss +14 -0
- package/styles/components/toast.scss +16 -0
- package/styles/core.css +1 -1
- package/styles/core.unlayered.css +1 -1
- package/styles/index.scss +7 -1
- package/styles/system/_palettes.scss +19 -1
- package/styles/system/_tokens.scss +7 -7
- package/tui-manifest.json +9 -4
- package/utils/color/contrast.d.ts +17 -0
- package/utils/color/contrast.js +26 -0
package/icons/system/index.js
CHANGED
|
@@ -20,6 +20,16 @@ export function AlertCircleOutline(props) {
|
|
|
20
20
|
}, props), _c("path", {d:"M13 17h-2v-2h2zm0-4h-2V7h2z"}), _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"}));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export function AlertTriangle(props) {
|
|
24
|
+
return _c("svg", Object.assign({
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
width: "1em",
|
|
28
|
+
height: "1em",
|
|
29
|
+
fill: "currentColor"
|
|
30
|
+
}, props), _c("g", null, _c("path", {d:"M13 17h-2v-2h2zM13 14h-2V9h2z"}), _c("path", {fillRule:"evenodd",d:"M10.475 4.431c.67-1.189 2.382-1.189 3.05 0l7.29 12.96C21.473 18.558 20.63 20 19.29 20H4.71c-1.338 0-2.181-1.442-1.525-2.609zm1.743.736a.25.25 0 0 0-.435 0l-7.29 12.96a.25.25 0 0 0 .217.373h14.58a.25.25 0 0 0 .218-.373z",clipRule:"evenodd"})));
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export function ArrowClockwise(props) {
|
|
24
34
|
return _c("svg", Object.assign({
|
|
25
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -150,6 +160,26 @@ export function BoltPlusOutline(props) {
|
|
|
150
160
|
}, props), _c("path", {fillRule:"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",clipRule:"evenodd"}), _c("path", {fillRule:"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",clipRule:"evenodd"}));
|
|
151
161
|
}
|
|
152
162
|
|
|
163
|
+
export function Building(props) {
|
|
164
|
+
return _c("svg", Object.assign({
|
|
165
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
166
|
+
viewBox: "0 0 24 24",
|
|
167
|
+
width: "1em",
|
|
168
|
+
height: "1em",
|
|
169
|
+
fill: "currentColor"
|
|
170
|
+
}, 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"})));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function Chart(props) {
|
|
174
|
+
return _c("svg", Object.assign({
|
|
175
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
176
|
+
viewBox: "0 0 24 24",
|
|
177
|
+
width: "1em",
|
|
178
|
+
height: "1em",
|
|
179
|
+
fill: "currentColor"
|
|
180
|
+
}, props), _c("g", null, _c("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"})));
|
|
181
|
+
}
|
|
182
|
+
|
|
153
183
|
export function CheckCircleFill(props) {
|
|
154
184
|
return _c("svg", Object.assign({
|
|
155
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -420,6 +450,16 @@ export function Copy(props) {
|
|
|
420
450
|
}, props), _c("path", {d:"M17 10.25h-7v1.5h7zm-7 2.5h7v1.5h-7zm7 2.5h-7v1.5h7z"}), _c("path", {fillRule:"evenodd",d:"M17 6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-1zm1 2.5a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H9a.5.5 0 0 1-.5-.5V9a.5.5 0 0 1 .5-.5zm-12 7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1H9a2 2 0 0 0-2 2v6.5z",clipRule:"evenodd"}));
|
|
421
451
|
}
|
|
422
452
|
|
|
453
|
+
export function CreditCard(props) {
|
|
454
|
+
return _c("svg", Object.assign({
|
|
455
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
456
|
+
viewBox: "0 0 24 24",
|
|
457
|
+
width: "1em",
|
|
458
|
+
height: "1em",
|
|
459
|
+
fill: "currentColor"
|
|
460
|
+
}, props), _c("g", null, _c("path", {d:"M8.5 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"}), _c("path", {fillRule:"evenodd",d:"M18 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM5.5 17a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-6h-13zM6 6.5a.5.5 0 0 0-.5.5v1h13V7a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"})));
|
|
461
|
+
}
|
|
462
|
+
|
|
423
463
|
export function CustomFunction(props) {
|
|
424
464
|
return _c("svg", Object.assign({
|
|
425
465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -520,6 +560,16 @@ export function ExternalLink(props) {
|
|
|
520
560
|
}, props), _c("path", {d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5z"}), _c("path", {d:"M6.5 5.5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5z"}));
|
|
521
561
|
}
|
|
522
562
|
|
|
563
|
+
export function Folder(props) {
|
|
564
|
+
return _c("svg", Object.assign({
|
|
565
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
566
|
+
viewBox: "0 0 24 24",
|
|
567
|
+
width: "1em",
|
|
568
|
+
height: "1em",
|
|
569
|
+
fill: "currentColor"
|
|
570
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M9.37 4.01a2 2 0 0 1 1.216.576l.828.828A2 2 0 0 0 12.828 6H18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3.172zM5.5 10.75V18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-7.25zM6 5.5a.5.5 0 0 0-.5.5v3.25h13V8a.5.5 0 0 0-.5-.5h-5.172a3.5 3.5 0 0 1-2.474-1.025l-.829-.829a.5.5 0 0 0-.353-.146z",clipRule:"evenodd"}));
|
|
571
|
+
}
|
|
572
|
+
|
|
523
573
|
export function Funnel(props) {
|
|
524
574
|
return _c("svg", Object.assign({
|
|
525
575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -590,6 +640,36 @@ export function Highlight(props) {
|
|
|
590
640
|
}, props), _c("path", {d:"M14 18.5V20H6v-1.5zm.567-4.626a1.5 1.5 0 0 1-.346.237l-2.825 1.397L10.5 17h-3l1.731-2.742-.203-3.145a1.5 1.5 0 0 1 .033-.418zm3.979-9.25a1.25 1.25 0 0 1 .457 1.708l-3.625 6.279L9.75 9.36l3.625-6.279a1.25 1.25 0 0 1 1.707-.457z"}));
|
|
591
641
|
}
|
|
592
642
|
|
|
643
|
+
export function HomeFill(props) {
|
|
644
|
+
return _c("svg", Object.assign({
|
|
645
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
646
|
+
viewBox: "0 0 24 24",
|
|
647
|
+
width: "1em",
|
|
648
|
+
height: "1em",
|
|
649
|
+
fill: "currentColor"
|
|
650
|
+
}, props), _c("g", null, _c("path", {d:"M10.683 4.153c.754-.66 1.88-.66 2.634 0l6 5.25A2 2 0 0 1 20 10.908V18a2 2 0 0 1-2 2h-3v-6a1 1 0 0 0-.898-.995L14 13h-4a1 1 0 0 0-1 1v6H6a2 2 0 0 1-2-2v-7.092a2 2 0 0 1 .683-1.505z"}), _c("path", {d:"M13.5 14.5V20h-3v-5.5z"})));
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export function HomeOutline(props) {
|
|
654
|
+
return _c("svg", Object.assign({
|
|
655
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
656
|
+
viewBox: "0 0 24 24",
|
|
657
|
+
width: "1em",
|
|
658
|
+
height: "1em",
|
|
659
|
+
fill: "currentColor"
|
|
660
|
+
}, props), _c("path", {fillRule:"evenodd",d:"M10.683 4.153c.754-.66 1.88-.66 2.634 0l6 5.25A2 2 0 0 1 20 10.908V18a2 2 0 0 1-2 2H6a2 2 0 0 1-1.99-1.796L4 18v-7.092a2 2 0 0 1 .683-1.505zm1.646 1.129a.5.5 0 0 0-.658 0l-6 5.25a.5.5 0 0 0-.171.376V18a.5.5 0 0 0 .5.5h3V14a1 1 0 0 1 1-1h4l.102.005A1 1 0 0 1 15 14v4.5h3a.5.5 0 0 0 .5-.5v-7.092a.5.5 0 0 0-.17-.377zM10.5 18.5h3v-4h-3z",clipRule:"evenodd"}));
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export function Image(props) {
|
|
664
|
+
return _c("svg", Object.assign({
|
|
665
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
666
|
+
viewBox: "0 0 24 24",
|
|
667
|
+
width: "1em",
|
|
668
|
+
height: "1em",
|
|
669
|
+
fill: "currentColor"
|
|
670
|
+
}, props), _c("g", {fillRule:"evenodd",clipRule:"evenodd"}, _c("path", {d:"M14.5 7.25a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m0 1.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"}), _c("path", {d:"M18 4c1.105 0 2 1.024 2 2.286v11.428C20 18.976 19.105 20 18 20H6q-.096 0-.19-.012-.023-.002-.044-.006a2 2 0 0 1-.144-.025l-.048-.01a2 2 0 0 1-.125-.037q-.03-.009-.06-.02a2 2 0 0 1-.155-.065l-.063-.033a2 2 0 0 1-.316-.205l-.069-.06a2 2 0 0 1-.119-.112l-.06-.062-.08-.097-.027-.033-.08-.11-.02-.032c-.25-.382-.4-.854-.4-1.367V6.286C4 5.024 4.895 4 6 4zm-8.613 7.842a.5.5 0 0 0-.774 0L5.5 15.646v2.068c0 .278.1.497.215.629.113.129.217.157.285.157h8.834zM6 5.5c-.068 0-.172.028-.285.157a.96.96 0 0 0-.215.63v6.99l1.952-2.385a2 2 0 0 1 3.096 0l6.225 7.608H18c.068 0 .172-.028.285-.157a.96.96 0 0 0 .215-.63V6.287c0-.278-.1-.496-.215-.629-.113-.129-.217-.157-.285-.157z"})));
|
|
671
|
+
}
|
|
672
|
+
|
|
593
673
|
export function Inbox(props) {
|
|
594
674
|
return _c("svg", Object.assign({
|
|
595
675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -650,6 +730,16 @@ export function LockSmall(props) {
|
|
|
650
730
|
}, props), _c("path", {fillRule:"evenodd",d:"M12 6.25A2.75 2.75 0 0 0 9.25 9v2H9a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-.25V9A2.75 2.75 0 0 0 12 6.25M13.25 11V9a1.25 1.25 0 1 0-2.5 0v2z",clipRule:"evenodd"}));
|
|
651
731
|
}
|
|
652
732
|
|
|
733
|
+
export function LogOut(props) {
|
|
734
|
+
return _c("svg", Object.assign({
|
|
735
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
736
|
+
viewBox: "0 0 24 24",
|
|
737
|
+
width: "1em",
|
|
738
|
+
height: "1em",
|
|
739
|
+
fill: "currentColor"
|
|
740
|
+
}, props), _c("g", null, _c("path", {d:"M10.5 4a2 2 0 0 1 2 2v3H11V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h4.75a.25.25 0 0 0 .25-.25V15h1.5v3.25A1.75 1.75 0 0 1 10.75 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"}), _c("path", {d:"m21.004 12-4.443 4.998-1.121-.996 2.89-3.252H9v-1.5h9.33l-2.89-3.252 1.12-.996z"})));
|
|
741
|
+
}
|
|
742
|
+
|
|
653
743
|
export function Loop(props) {
|
|
654
744
|
return _c("svg", Object.assign({
|
|
655
745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -690,6 +780,26 @@ export function Minus(props) {
|
|
|
690
780
|
}, props), _c("path", {fillRule:"evenodd",d:"M17 13H7v-1.5h10z",clipRule:"evenodd"}));
|
|
691
781
|
}
|
|
692
782
|
|
|
783
|
+
export function MoonFill(props) {
|
|
784
|
+
return _c("svg", Object.assign({
|
|
785
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
786
|
+
viewBox: "0 0 24 24",
|
|
787
|
+
width: "1em",
|
|
788
|
+
height: "1em",
|
|
789
|
+
fill: "currentColor"
|
|
790
|
+
}, props), _c("path", {d:"M10.75 8a6.25 6.25 0 0 0 8.03 5.991.75.75 0 0 1 .911.99 8.25 8.25 0 1 1-8.91-11.141.75.75 0 0 1 .765 1.11A6.2 6.2 0 0 0 10.75 8"}));
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export function MoonOutline(props) {
|
|
794
|
+
return _c("svg", Object.assign({
|
|
795
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
796
|
+
viewBox: "0 0 24 24",
|
|
797
|
+
width: "1em",
|
|
798
|
+
height: "1em",
|
|
799
|
+
fill: "currentColor"
|
|
800
|
+
}, props), _c("path", {d:"M9.25 8c0-.805.123-1.58.352-2.31A6.752 6.752 0 0 0 12 18.75a6.74 6.74 0 0 0 5.627-3.027A7.75 7.75 0 0 1 9.25 8m1.5 0a6.25 6.25 0 0 0 8.03 5.991.75.75 0 0 1 .911.99 8.25 8.25 0 1 1-8.91-11.141.75.75 0 0 1 .765 1.11A6.2 6.2 0 0 0 10.75 8"}));
|
|
801
|
+
}
|
|
802
|
+
|
|
693
803
|
export function Nest(props) {
|
|
694
804
|
return _c("svg", Object.assign({
|
|
695
805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -890,6 +1000,26 @@ export function StarOutline(props) {
|
|
|
890
1000
|
}, props), _c("path", {fillRule:"evenodd",d:"M11.186 14.734a1.75 1.75 0 0 1 1.629 0l1.895.996-.362-2.11a1.75 1.75 0 0 1 .503-1.55l1.534-1.495-2.12-.308.216-1.484 4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427l4.626-.672.216 1.484-2.12.308L9.15 12.07c.412.402.6.982.503 1.55l-.362 2.11zM9.707 8.645a.25.25 0 0 1-.188.137l.216 1.484a1.75 1.75 0 0 0 1.317-.957L12 7.39l.948 1.92a1.75 1.75 0 0 0 1.318.957l.215-1.484a.25.25 0 0 1-.188-.137l-2.069-4.192a.25.25 0 0 0-.448 0z",clipRule:"evenodd"}));
|
|
891
1001
|
}
|
|
892
1002
|
|
|
1003
|
+
export function SunFill(props) {
|
|
1004
|
+
return _c("svg", Object.assign({
|
|
1005
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1006
|
+
viewBox: "0 0 24 24",
|
|
1007
|
+
width: "1em",
|
|
1008
|
+
height: "1em",
|
|
1009
|
+
fill: "currentColor"
|
|
1010
|
+
}, props), _c("g", null, _c("path", {d:"M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.061 0l1.414 1.414a.75.75 0 0 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 0 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.06-1.061zM12.193 8.255a3.73 3.73 0 0 1 2.582 1.224 3.8 3.8 0 0 1 .806 1.406 3.73 3.73 0 0 1 .093 1.87 3.73 3.73 0 0 1-.899 1.766 3.8 3.8 0 0 1-.988.777 3.73 3.73 0 0 1-2.17.432 3.7 3.7 0 0 1-.907-.207 3.751 3.751 0 0 1 1.483-7.268M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.831 5.82a.75.75 0 0 1 1.06 0l1.415 1.413a.75.75 0 0 1-1.06 1.061L5.83 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 0 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"})));
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export function SunOutline(props) {
|
|
1014
|
+
return _c("svg", Object.assign({
|
|
1015
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1016
|
+
viewBox: "0 0 24 24",
|
|
1017
|
+
width: "1em",
|
|
1018
|
+
height: "1em",
|
|
1019
|
+
fill: "currentColor"
|
|
1020
|
+
}, props), _c("g", null, _c("path", {d:"M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.06 0l1.415 1.414a.75.75 0 1 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 1 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.061-1.061z"}), _c("path", {fillRule:"evenodd",d:"M12 8.25a3.75 3.75 0 1 1 0 7.5 3.75 3.75 0 0 1 0-7.5m0 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5",clipRule:"evenodd"}), _c("path", {d:"M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.83 5.82a.75.75 0 0 1 1.061 0l1.415 1.413a.75.75 0 1 1-1.061 1.061L5.831 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 1 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"})));
|
|
1021
|
+
}
|
|
1022
|
+
|
|
893
1023
|
export function Tool(props) {
|
|
894
1024
|
return _c("svg", Object.assign({
|
|
895
1025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -950,6 +1080,16 @@ export function UnlockOutline(props) {
|
|
|
950
1080
|
}, props), _c("path", {d:"M12 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1"}), _c("path", {fillRule:"evenodd",d:"M18 9a2 2 0 0 1 2 2v7l-.01.204A2 2 0 0 1 18 20H6a2 2 0 0 1-1.99-1.796L4 18v-7a2 2 0 0 1 2-2h8.25V7a4.75 4.75 0 1 1 9.5 0v2h-1.5V7a3.25 3.25 0 0 0-6.5 0v2zM6 10.5a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"}));
|
|
951
1081
|
}
|
|
952
1082
|
|
|
1083
|
+
export function Upload(props) {
|
|
1084
|
+
return _c("svg", Object.assign({
|
|
1085
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1086
|
+
viewBox: "0 0 24 24",
|
|
1087
|
+
width: "1em",
|
|
1088
|
+
height: "1em",
|
|
1089
|
+
fill: "currentColor"
|
|
1090
|
+
}, props), _c("g", null, _c("path", {d:"M5.5 18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-4.25H20V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4.25h1.5z"}), _c("path", {d:"m16.998 8.44-.996 1.12-3.252-2.89V17h-1.5V6.67L7.998 9.56l-.996-1.12L12 3.995z"})));
|
|
1091
|
+
}
|
|
1092
|
+
|
|
953
1093
|
export function UserCircleFill(props) {
|
|
954
1094
|
return _c("svg", Object.assign({
|
|
955
1095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -970,6 +1110,16 @@ export function UserCircleOutline(props) {
|
|
|
970
1110
|
}, props), _c("path", {fillRule:"evenodd",d:"M7.05 18.286a8 8 0 1 1 9.9-12.571 8 8 0 0 1-9.898 12.57m8.177-.643A6.47 6.47 0 0 1 12 18.5a6.47 6.47 0 0 1-3.227-.857 3.5 3.5 0 0 1 6.454 0m1.23-.912a5 5 0 0 0-8.914 0 6.5 6.5 0 1 1 8.914 0",clipRule:"evenodd"}), _c("path", {fillRule:"evenodd",d:"M12 11.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0 1.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6",clipRule:"evenodd"}));
|
|
971
1111
|
}
|
|
972
1112
|
|
|
1113
|
+
export function Users(props) {
|
|
1114
|
+
return _c("svg", Object.assign({
|
|
1115
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1116
|
+
viewBox: "0 0 24 24",
|
|
1117
|
+
width: "1em",
|
|
1118
|
+
height: "1em",
|
|
1119
|
+
fill: "currentColor"
|
|
1120
|
+
}, props), _c("g", null, _c("path", {d:"M8 15.25A4.75 4.75 0 0 1 12.75 20h-1.5a3.25 3.25 0 0 0-6.5 0h-1.5A4.75 4.75 0 0 1 8 15.25M16 12.25A4.75 4.75 0 0 1 20.75 17h-1.5a3.25 3.25 0 0 0-5.788-2.031l-1.17-.938A4.74 4.74 0 0 1 16 12.25"}), _c("path", {fillRule:"evenodd",d:"M8 7a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4M16 4a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4",clipRule:"evenodd"})));
|
|
1121
|
+
}
|
|
1122
|
+
|
|
973
1123
|
export function ViewOff(props) {
|
|
974
1124
|
return _c("svg", Object.assign({
|
|
975
1125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -993,6 +1143,7 @@ export function View(props) {
|
|
|
993
1143
|
export const systemIcons = {
|
|
994
1144
|
'alert-circle-fill': AlertCircleFill,
|
|
995
1145
|
'alert-circle-outline': AlertCircleOutline,
|
|
1146
|
+
'alert-triangle': AlertTriangle,
|
|
996
1147
|
'arrow-clockwise': ArrowClockwise,
|
|
997
1148
|
'arrow-counterclockwise': ArrowCounterclockwise,
|
|
998
1149
|
'arrow-down': ArrowDown,
|
|
@@ -1002,6 +1153,8 @@ export const systemIcons = {
|
|
|
1002
1153
|
'attachment': Attachment,
|
|
1003
1154
|
'bell-unread': BellUnread,
|
|
1004
1155
|
'bell': Bell,
|
|
1156
|
+
'building': Building,
|
|
1157
|
+
'chart': Chart,
|
|
1005
1158
|
'check-circle-fill': CheckCircleFill,
|
|
1006
1159
|
'check-circle-outline': CheckCircleOutline,
|
|
1007
1160
|
'check-small': CheckSmall,
|
|
@@ -1029,6 +1182,7 @@ export const systemIcons = {
|
|
|
1029
1182
|
'cloud': Cloud,
|
|
1030
1183
|
'cog': Cog,
|
|
1031
1184
|
'copy': Copy,
|
|
1185
|
+
'credit-card': CreditCard,
|
|
1032
1186
|
'drag': Drag,
|
|
1033
1187
|
'download': Download,
|
|
1034
1188
|
'duplicate': Duplicate,
|
|
@@ -1038,6 +1192,7 @@ export const systemIcons = {
|
|
|
1038
1192
|
'ellipsis-v': EllipsisV,
|
|
1039
1193
|
'envelope': Envelope,
|
|
1040
1194
|
'external-link': ExternalLink,
|
|
1195
|
+
'folder': Folder,
|
|
1041
1196
|
'funnel': Funnel,
|
|
1042
1197
|
'globe': Globe,
|
|
1043
1198
|
'handle-alt': HandleAlt,
|
|
@@ -1045,6 +1200,9 @@ export const systemIcons = {
|
|
|
1045
1200
|
'help': Help,
|
|
1046
1201
|
'hide': Hide,
|
|
1047
1202
|
'highlight': Highlight,
|
|
1203
|
+
'home-fill': HomeFill,
|
|
1204
|
+
'home-outline': HomeOutline,
|
|
1205
|
+
'image': Image,
|
|
1048
1206
|
'inbox': Inbox,
|
|
1049
1207
|
'key': Key,
|
|
1050
1208
|
'link': Link,
|
|
@@ -1052,9 +1210,12 @@ export const systemIcons = {
|
|
|
1052
1210
|
'lock-outline': LockOutline,
|
|
1053
1211
|
'lock-small': LockSmall,
|
|
1054
1212
|
'lock': LockFill,
|
|
1213
|
+
'log-out': LogOut,
|
|
1055
1214
|
'minus-circle-fill': MinusCircleFill,
|
|
1056
1215
|
'minus-circle-outline': MinusCircleOutline,
|
|
1057
1216
|
'minus': Minus,
|
|
1217
|
+
'moon-fill': MoonFill,
|
|
1218
|
+
'moon-outline': MoonOutline,
|
|
1058
1219
|
'paste': Paste,
|
|
1059
1220
|
'pin-small': PinSmall,
|
|
1060
1221
|
'pin': Pin,
|
|
@@ -1064,6 +1225,8 @@ export const systemIcons = {
|
|
|
1064
1225
|
'plus': Plus,
|
|
1065
1226
|
'recurring': Recurring,
|
|
1066
1227
|
'redo': Redo,
|
|
1228
|
+
'sun-fill': SunFill,
|
|
1229
|
+
'sun-outline': SunOutline,
|
|
1067
1230
|
'undo': Undo,
|
|
1068
1231
|
'reverse': Reverse,
|
|
1069
1232
|
'search': Search,
|
|
@@ -1088,8 +1251,10 @@ export const systemIcons = {
|
|
|
1088
1251
|
'unlock-fill': UnlockFill,
|
|
1089
1252
|
'unlock-outline': UnlockOutline,
|
|
1090
1253
|
'unlock': UnlockFill,
|
|
1254
|
+
'upload': Upload,
|
|
1091
1255
|
'user-circle-fill': UserCircleFill,
|
|
1092
1256
|
'user-circle-outline': UserCircleOutline,
|
|
1257
|
+
'users': Users,
|
|
1093
1258
|
'view': View,
|
|
1094
1259
|
'view-off': ViewOff,
|
|
1095
1260
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangible/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"description": "Tangible Design System",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./components/index.js",
|
|
@@ -41,6 +41,14 @@
|
|
|
41
41
|
"import": "./utils/color/contrast.js",
|
|
42
42
|
"types": "./utils/color/contrast.d.ts"
|
|
43
43
|
},
|
|
44
|
+
"./utils/color": {
|
|
45
|
+
"import": "./utils/color/color.js",
|
|
46
|
+
"types": "./utils/color/color.d.ts"
|
|
47
|
+
},
|
|
48
|
+
"./utils/color/gradient": {
|
|
49
|
+
"import": "./utils/color/gradient.js",
|
|
50
|
+
"types": "./utils/color/gradient.d.ts"
|
|
51
|
+
},
|
|
44
52
|
"./icons": {
|
|
45
53
|
"import": "./icons/registry.js",
|
|
46
54
|
"types": "./icons/registry.d.ts"
|
|
@@ -212,6 +212,19 @@ Tokens, not class overrides. Four layers, and you only touch two:
|
|
|
212
212
|
`--_*` is component-private and `$_*` compiles away; neither is yours to set. Names come from
|
|
213
213
|
`tui-manifest.json` → `cssTokens`.
|
|
214
214
|
|
|
215
|
+
Every layer-1 primitive — colour roles **and** the scale (spacing, radius, type sizes, weights,
|
|
216
|
+
shadows) — is emitted at `:where(.tui-interface)`, specificity (0,0,0). A site theme written at
|
|
217
|
+
`:where()` after TUI's sheet therefore overrides all of them uniformly; before 0.2.21 the scale
|
|
218
|
+
block sat at bare `.tui-interface` and such a theme won the colours but silently lost the layout
|
|
219
|
+
tokens.
|
|
220
|
+
|
|
221
|
+
Colour maths ships as public utils: `@tangible/ui/utils/color` (`parseColor`, `formatColor`,
|
|
222
|
+
`rgbToOklch`/`oklchToRgb`, `rgbToHsl`, `hexToRgba`, …), `@tangible/ui/utils/color/gradient`
|
|
223
|
+
(`parseGradient`/`formatGradient`), and `@tangible/ui/utils/color/contrast` (`getContrastTone`,
|
|
224
|
+
`getContrastForeground`, `contrastRatio(hexA, hexB)` — WCAG ratio 1–21, `NaN` on bad input so a
|
|
225
|
+
`>= 4.5` check fails closed). Use them for user-selected colours and theme tooling (deriving or
|
|
226
|
+
validating a ladder), not to pick a component's own theming at runtime.
|
|
227
|
+
|
|
215
228
|
Useful primitives:
|
|
216
229
|
|
|
217
230
|
- Surfaces / text: `--tui-color-bg`, `-bg-surface`, `-bg-elevated`, `-bg-muted`, `-bg-inverted`,
|