@toski-labs/ds 0.5.1 → 0.5.3
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 +38 -0
- package/build/css/theme.css +0 -3
- package/build/css/tokens.css +0 -9
- package/build/json/app-tokens.json +10 -17
- package/build/json/app-tokens.koti.json +10 -17
- package/build/json/app-tokens.pethealth.json +30 -17
- package/build/json/mobile.json +16 -9
- package/build/json/web.json +6 -7
- package/build/json/web.koti.json +6 -7
- package/build/json/web.pethealth.json +26 -7
- package/build/swift/ToskiColors.swift +5 -7
- package/dist/generated/icons.d.ts +50 -0
- package/dist/generated/products.d.ts +2 -2
- package/dist/generated/tokens.d.ts +1 -7
- package/dist/index.js +74 -35
- package/dist/index.js.map +1 -1
- package/icons/icons.json +20 -0
- package/icons/svg/circulo-alerta.svg +3 -0
- package/icons/svg/desfazer.svg +3 -0
- package/icons/svg/encerrar.svg +3 -0
- package/icons/svg/pausar.svg +3 -0
- package/icons/svg/triangulo.svg +3 -0
- package/package.json +1 -1
- package/products/pethealth/animations.md +36 -0
- package/products/pethealth/icon-alt/pethealth-icon-night-1024.png +0 -0
- package/products/pethealth/icon-alt/pethealth-icon-night.svg +1 -0
- package/products/pethealth/icon-alt/pethealth-icon-paper-1024.png +0 -0
- package/products/pethealth/icon-alt/pethealth-icon-paper.svg +1 -0
- package/products/pethealth/mascots/ball-indigo-dark.svg +1 -1
- package/products/pethealth/mascots/pair-error-dark.svg +1 -1
package/dist/index.js
CHANGED
|
@@ -534,6 +534,46 @@ var a = {
|
|
|
534
534
|
filled: !1,
|
|
535
535
|
linejoin: "round",
|
|
536
536
|
shapes: [{ d: "M5.5 5h13A2.5 2.5 0 0 1 21 7.5v9a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5v-9A2.5 2.5 0 0 1 5.5 5ZM4 7l8 6 8-6" }]
|
|
537
|
+
},
|
|
538
|
+
"alert-circle": {
|
|
539
|
+
mobile: "circulo-alerta",
|
|
540
|
+
size: 18,
|
|
541
|
+
stroke: 2,
|
|
542
|
+
filled: !1,
|
|
543
|
+
linejoin: "round",
|
|
544
|
+
shapes: [{ d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M12 8v5 M12 16.5v.5" }]
|
|
545
|
+
},
|
|
546
|
+
undo: {
|
|
547
|
+
mobile: "desfazer",
|
|
548
|
+
size: 20,
|
|
549
|
+
stroke: 2,
|
|
550
|
+
filled: !1,
|
|
551
|
+
linejoin: "round",
|
|
552
|
+
shapes: [{ d: "M9 14L4 9l5-5 M4 9h11a5 5 0 0 1 0 10h-3" }]
|
|
553
|
+
},
|
|
554
|
+
end: {
|
|
555
|
+
mobile: "encerrar",
|
|
556
|
+
size: 20,
|
|
557
|
+
stroke: 2,
|
|
558
|
+
filled: !1,
|
|
559
|
+
linejoin: "round",
|
|
560
|
+
shapes: [{ d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M9 9l6 6 M15 9l-6 6" }]
|
|
561
|
+
},
|
|
562
|
+
pause: {
|
|
563
|
+
mobile: "pausar",
|
|
564
|
+
size: 20,
|
|
565
|
+
stroke: 2,
|
|
566
|
+
filled: !1,
|
|
567
|
+
linejoin: "round",
|
|
568
|
+
shapes: [{ d: "M9 5v14 M15 5v14" }]
|
|
569
|
+
},
|
|
570
|
+
triangle: {
|
|
571
|
+
mobile: "triangulo",
|
|
572
|
+
size: 18,
|
|
573
|
+
stroke: 2,
|
|
574
|
+
filled: !1,
|
|
575
|
+
linejoin: "round",
|
|
576
|
+
shapes: [{ d: "M12 4l9 16H3z M12 10v4 M12 17v.5" }]
|
|
537
577
|
}
|
|
538
578
|
}, o = Object.keys(a);
|
|
539
579
|
function s({ name: e, size: n = 24, stroke: r = 1.8, label: o, className: s, ...c }) {
|
|
@@ -721,11 +761,8 @@ var x = {
|
|
|
721
761
|
segment: "#FFFFFF",
|
|
722
762
|
tabbar: "#FFFDF9",
|
|
723
763
|
"tab-idle": "#7D6858",
|
|
724
|
-
"mascot-outline": "transparent",
|
|
725
|
-
"mascot-nose": "#231B17",
|
|
726
764
|
"accent-text": "#94481A",
|
|
727
765
|
link: "#94481A",
|
|
728
|
-
"ball-outline": "#EFDCC2",
|
|
729
766
|
"phone-ring": "transparent",
|
|
730
767
|
footer: "#231B17",
|
|
731
768
|
"footer-ink": "#F7F1E8",
|
|
@@ -751,11 +788,8 @@ var x = {
|
|
|
751
788
|
segment: "#4A3A2E",
|
|
752
789
|
tabbar: "#1B1511",
|
|
753
790
|
"tab-idle": "#A08B78",
|
|
754
|
-
"mascot-outline": "#F4E4CC",
|
|
755
|
-
"mascot-nose": "#100C0A",
|
|
756
791
|
"accent-text": "#DB9A5B",
|
|
757
792
|
link: "#E8B27C",
|
|
758
|
-
"ball-outline": "#F4E4CC",
|
|
759
793
|
"phone-ring": "#43352B",
|
|
760
794
|
footer: "#1B1511",
|
|
761
795
|
"footer-ink": "#F7F1E8",
|
|
@@ -858,19 +892,24 @@ var x = {
|
|
|
858
892
|
disabledOpacity: .5
|
|
859
893
|
}
|
|
860
894
|
},
|
|
861
|
-
icons: /* @__PURE__ */ "help.settings.alert.archive.download.bath.bug.search.dog.lock.calendar-export.calendar-dot.calendar.camera.phone.check.chevron-down.chevron-right.chevron-left.microchip.share.contact.copy.heart.document-lines.document-off.document.edit.star.close.filter.cat.globe.info.home.bell-off.bell.external-link.location.more.plus.message.snow.weight.people.paw.plan.next.food.receipt.clock.medicine.repeat.spinner.theme.grooming.vaccine.vet.arrow-down.arrow-up.arrow-right.flask.list.mail".split(".")
|
|
895
|
+
icons: /* @__PURE__ */ "help.settings.alert.archive.download.bath.bug.search.dog.lock.calendar-export.calendar-dot.calendar.camera.phone.check.chevron-down.chevron-right.chevron-left.microchip.share.contact.copy.heart.document-lines.document-off.document.edit.star.close.filter.cat.globe.info.home.bell-off.bell.external-link.location.more.plus.message.snow.weight.people.paw.plan.next.food.receipt.clock.medicine.repeat.spinner.theme.grooming.vaccine.vet.arrow-down.arrow-up.arrow-right.flask.list.mail.alert-circle.undo.end.pause.triangle".split(".")
|
|
862
896
|
}, { caramelo: S, ferrugem: C, creme: w } = x.brand, T = {
|
|
863
897
|
body: "M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z",
|
|
864
898
|
ear: "M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z",
|
|
865
899
|
seam: "M24 156 Q36 168 24 180 M44 156 Q32 168 44 180",
|
|
866
900
|
seamGround: "M-26 180 Q-16 190 -26 200 M-10 180 Q-20 190 -10 200"
|
|
867
|
-
}, E = "var(--
|
|
868
|
-
|
|
901
|
+
}, E = "var(--mascot-outline)", D = "var(--mascot-nose)", O = "var(--mascot-ball-outline)", k = {
|
|
902
|
+
"--mascot-outline": "light-dark(transparent, #F4E4CC)",
|
|
903
|
+
"--mascot-nose": "light-dark(#231B17, #100C0A)",
|
|
904
|
+
"--mascot-ball-outline": "light-dark(#EFDCC2, #F4E4CC)"
|
|
905
|
+
};
|
|
906
|
+
function A({ width: e = "100%", ball: r = "bounce", label: a, className: o }) {
|
|
869
907
|
return /* @__PURE__ */ n("svg", {
|
|
870
908
|
width: e,
|
|
871
909
|
viewBox: r === "ground" ? "-40 -6 250 212" : "-6 -6 222 212",
|
|
872
910
|
focusable: "false",
|
|
873
911
|
className: o,
|
|
912
|
+
style: k,
|
|
874
913
|
...a ? {
|
|
875
914
|
role: "img",
|
|
876
915
|
"aria-label": a
|
|
@@ -945,8 +984,8 @@ function k({ width: e = "100%", ball: r = "bounce", label: a, className: o }) {
|
|
|
945
984
|
}
|
|
946
985
|
//#endregion
|
|
947
986
|
//#region src/components/AppIcon.tsx
|
|
948
|
-
var { caramelo:
|
|
949
|
-
function
|
|
987
|
+
var { caramelo: j, ferrugem: M, creme: N, carvao: P } = x.brand;
|
|
988
|
+
function F({ size: e = 36, withBall: r = !0, label: i, className: a }) {
|
|
950
989
|
return /* @__PURE__ */ n("svg", {
|
|
951
990
|
width: e,
|
|
952
991
|
height: e,
|
|
@@ -961,7 +1000,7 @@ function P({ size: e = 36, withBall: r = !0, label: i, className: a }) {
|
|
|
961
1000
|
width: "180",
|
|
962
1001
|
height: "180",
|
|
963
1002
|
rx: "40",
|
|
964
|
-
fill:
|
|
1003
|
+
fill: j
|
|
965
1004
|
}), /* @__PURE__ */ n("svg", {
|
|
966
1005
|
x: "22",
|
|
967
1006
|
y: "25",
|
|
@@ -971,15 +1010,15 @@ function P({ size: e = 36, withBall: r = !0, label: i, className: a }) {
|
|
|
971
1010
|
children: [
|
|
972
1011
|
/* @__PURE__ */ t("path", {
|
|
973
1012
|
d: T.body,
|
|
974
|
-
fill:
|
|
975
|
-
stroke:
|
|
1013
|
+
fill: M,
|
|
1014
|
+
stroke: N,
|
|
976
1015
|
strokeWidth: "5",
|
|
977
1016
|
strokeLinejoin: "round"
|
|
978
1017
|
}),
|
|
979
1018
|
/* @__PURE__ */ t("path", {
|
|
980
1019
|
d: T.ear,
|
|
981
|
-
fill:
|
|
982
|
-
stroke:
|
|
1020
|
+
fill: M,
|
|
1021
|
+
stroke: N,
|
|
983
1022
|
strokeWidth: "4",
|
|
984
1023
|
strokeLinejoin: "round"
|
|
985
1024
|
}),
|
|
@@ -988,27 +1027,27 @@ function P({ size: e = 36, withBall: r = !0, label: i, className: a }) {
|
|
|
988
1027
|
cy: "74",
|
|
989
1028
|
rx: "4.4",
|
|
990
1029
|
ry: "3",
|
|
991
|
-
fill:
|
|
1030
|
+
fill: N
|
|
992
1031
|
}),
|
|
993
1032
|
/* @__PURE__ */ t("ellipse", {
|
|
994
1033
|
cx: "31",
|
|
995
1034
|
cy: "88",
|
|
996
1035
|
rx: "7",
|
|
997
1036
|
ry: "6",
|
|
998
|
-
fill:
|
|
1037
|
+
fill: P
|
|
999
1038
|
}),
|
|
1000
1039
|
/* @__PURE__ */ t("circle", {
|
|
1001
1040
|
cx: "34",
|
|
1002
1041
|
cy: "168",
|
|
1003
1042
|
r: "16",
|
|
1004
|
-
fill:
|
|
1005
|
-
stroke:
|
|
1043
|
+
fill: P,
|
|
1044
|
+
stroke: N,
|
|
1006
1045
|
strokeWidth: "5"
|
|
1007
1046
|
}),
|
|
1008
1047
|
r && /* @__PURE__ */ t("path", {
|
|
1009
1048
|
d: T.seam,
|
|
1010
1049
|
fill: "none",
|
|
1011
|
-
stroke:
|
|
1050
|
+
stroke: N,
|
|
1012
1051
|
strokeWidth: "2.5",
|
|
1013
1052
|
strokeLinecap: "round"
|
|
1014
1053
|
})
|
|
@@ -1018,7 +1057,7 @@ function P({ size: e = 36, withBall: r = !0, label: i, className: a }) {
|
|
|
1018
1057
|
}
|
|
1019
1058
|
//#endregion
|
|
1020
1059
|
//#region src/generated/products.ts
|
|
1021
|
-
var
|
|
1060
|
+
var I = {
|
|
1022
1061
|
pethealth: {
|
|
1023
1062
|
"pethealth-icon-light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\"><title>PetHealthTracker — ícone, Claro (Any)</title><rect width=\"180\" height=\"180\" fill=\"#3E4C8A\"/><clipPath id=\"c\"><rect width=\"180\" height=\"180\"/></clipPath><g clip-path=\"url(#c)\"><g transform=\"translate(90 116) scale(.64) translate(-225 -100)\"><g transform=\"translate(232 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#F4E4CC\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"96\" cy=\"74\" rx=\"4.4\" ry=\"3\" fill=\"#100C0A\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#100C0A\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(204 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><path d=\"M86 80 Q92 76 98 80\" fill=\"none\" stroke=\"#100C0A\" stroke-width=\"3.2\" stroke-linecap=\"round\"></path><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g><path d=\"M217 62 C211 54 200 57 205 66 L217 77 L229 66 C234 57 223 54 217 62 Z\" fill=\"#F4E4CC\"></path></g></g></svg>",
|
|
1024
1063
|
"pethealth-icon-dark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\"><title>PetHealthTracker — ícone, Escuro (Dark, iOS 18+): fundo transparente, o iOS põe o fundo escuro</title><clipPath id=\"c\"><rect width=\"180\" height=\"180\"/></clipPath><g clip-path=\"url(#c)\"><g transform=\"translate(90 116) scale(.64) translate(-225 -100)\"><g transform=\"translate(232 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#F4E4CC\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"96\" cy=\"74\" rx=\"4.4\" ry=\"3\" fill=\"#100C0A\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#100C0A\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(204 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><path d=\"M86 80 Q92 76 98 80\" fill=\"none\" stroke=\"#100C0A\" stroke-width=\"3.2\" stroke-linecap=\"round\"></path><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g><path d=\"M217 62 C211 54 200 57 205 66 L217 77 L229 66 C234 57 223 54 217 62 Z\" fill=\"#A9B4E8\"></path></g></g></svg>",
|
|
@@ -1028,9 +1067,9 @@ var F = {
|
|
|
1028
1067
|
"pair-base-light": "<svg viewBox=\"0 -30 430 230\" role=\"img\" aria-label=\"Cachorro e gato\" width=\"860\" height=\"460\" xmlns=\"http://www.w3.org/2000/svg\"><g transform=\"translate(222 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#231B17\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#231B17\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"96\" cy=\"74\" rx=\"4.4\" ry=\"3\" fill=\"#231B17\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#231B17\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(214 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#231B17\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><path d=\"M86 80 Q92 76 98 80\" fill=\"none\" stroke=\"#231B17\" stroke-width=\"3.2\" stroke-linecap=\"round\"></path><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g></svg>",
|
|
1029
1068
|
"pair-base-dark": "<svg viewBox=\"0 -30 430 230\" role=\"img\" aria-label=\"Cachorro e gato\" width=\"860\" height=\"460\" xmlns=\"http://www.w3.org/2000/svg\"><g transform=\"translate(222 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#F4E4CC\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"96\" cy=\"74\" rx=\"4.4\" ry=\"3\" fill=\"#100C0A\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#100C0A\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(214 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><path d=\"M86 80 Q92 76 98 80\" fill=\"none\" stroke=\"#100C0A\" stroke-width=\"3.2\" stroke-linecap=\"round\"></path><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g></svg>",
|
|
1030
1069
|
"pair-error-light": "<svg viewBox=\"0 -30 430 230\" role=\"img\" aria-label=\"Cachorro e gato\" width=\"860\" height=\"460\" xmlns=\"http://www.w3.org/2000/svg\"><g transform=\"translate(222 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#231B17\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#231B17\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"94\" cy=\"77\" rx=\"4.4\" ry=\"3\" fill=\"#231B17\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#231B17\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(214 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#231B17\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><ellipse cx=\"90\" cy=\"81\" rx=\"3.2\" ry=\"4\" fill=\"#231B17\"></ellipse><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g><g class=\"\" opacity=\"0.6\"><circle cx=\"222\" cy=\"176\" r=\"12\" fill=\"#3E4C8A\" stroke=\"#E3E6F5\" stroke-width=\"4\"></circle><path d=\"M215.4 166.4 Q223.8 176 215.4 185.6 M228.6 166.4 Q220.2 176 228.6 185.6\" fill=\"none\" stroke=\"#F4E4CC\" stroke-width=\"2.4\" stroke-linecap=\"round\"></path></g></svg>",
|
|
1031
|
-
"pair-error-dark": "<svg viewBox=\"0 -30 430 230\" role=\"img\" aria-label=\"Cachorro e gato\" width=\"860\" height=\"460\" xmlns=\"http://www.w3.org/2000/svg\"><g transform=\"translate(222 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#F4E4CC\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"94\" cy=\"77\" rx=\"4.4\" ry=\"3\" fill=\"#100C0A\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#100C0A\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(214 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><ellipse cx=\"90\" cy=\"81\" rx=\"3.2\" ry=\"4\" fill=\"#100C0A\"></ellipse><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g><g class=\"\" opacity=\"0.6\"><circle cx=\"222\" cy=\"176\" r=\"12\" fill=\"#
|
|
1070
|
+
"pair-error-dark": "<svg viewBox=\"0 -30 430 230\" role=\"img\" aria-label=\"Cachorro e gato\" width=\"860\" height=\"460\" xmlns=\"http://www.w3.org/2000/svg\"><g transform=\"translate(222 0) scale(-1 1)\"><path d=\"M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z\" fill=\"#B88250\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z\" fill=\"#6E4529\" stroke=\"#F4E4CC\" stroke-width=\"4\" stroke-linejoin=\"round\"></path><ellipse cx=\"94\" cy=\"77\" rx=\"4.4\" ry=\"3\" fill=\"#100C0A\"></ellipse><ellipse cx=\"31\" cy=\"88\" rx=\"7\" ry=\"6\" fill=\"#100C0A\"></ellipse><ellipse cx=\"29\" cy=\"85.6\" rx=\"2.2\" ry=\"1.5\" fill=\"#F7F1E8\" opacity=\".75\"></ellipse></g><g transform=\"translate(214 0)\"><path d=\"M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z\" fill=\"#7C8199\" stroke=\"#F4E4CC\" stroke-width=\"5\" stroke-linejoin=\"round\"></path><path d=\"M98 32 L111 47 C106 49 101 52 97 56 Z\" fill=\"#E8B4B0\"></path><ellipse cx=\"90\" cy=\"81\" rx=\"3.2\" ry=\"4\" fill=\"#100C0A\"></ellipse><path d=\"M30 95 L38 93 L35 100 Z\" fill=\"#D98C8C\" stroke=\"#D98C8C\" stroke-width=\"2\" stroke-linejoin=\"round\"></path><path d=\"M48 104 L18 98 M48 108 L20 112\" stroke=\"#F4E4CC\" stroke-width=\"2\" stroke-linecap=\"round\" opacity=\".85\"></path></g><g class=\"\" opacity=\"0.6\"><circle cx=\"222\" cy=\"176\" r=\"12\" fill=\"#A9B4E8\" stroke=\"#2A2E45\" stroke-width=\"4\"></circle><path d=\"M215.4 166.4 Q223.8 176 215.4 185.6 M228.6 166.4 Q220.2 176 228.6 185.6\" fill=\"none\" stroke=\"#2C376A\" stroke-width=\"2.4\" stroke-linecap=\"round\"></path></g></svg>",
|
|
1032
1071
|
"ball-indigo-light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"196 124 52 52\" width=\"208\" height=\"208\"><g class=\"\" opacity=\"1\"><circle cx=\"222\" cy=\"150\" r=\"18\" fill=\"#3E4C8A\" stroke=\"#E3E6F5\" stroke-width=\"4\"></circle><path d=\"M212.1 135.6 Q224.7 150 212.1 164.4 M231.9 135.6 Q219.3 150 231.9 164.4\" fill=\"none\" stroke=\"#F4E4CC\" stroke-width=\"2.4\" stroke-linecap=\"round\"></path></g></svg>",
|
|
1033
|
-
"ball-indigo-dark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"196 124 52 52\" width=\"208\" height=\"208\"><g class=\"\" opacity=\"1\"><circle cx=\"222\" cy=\"150\" r=\"18\" fill=\"#
|
|
1072
|
+
"ball-indigo-dark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"196 124 52 52\" width=\"208\" height=\"208\"><g class=\"\" opacity=\"1\"><circle cx=\"222\" cy=\"150\" r=\"18\" fill=\"#A9B4E8\" stroke=\"#2A2E45\" stroke-width=\"4\"></circle><path d=\"M212.1 135.6 Q224.7 150 212.1 164.4 M231.9 135.6 Q219.3 150 231.9 164.4\" fill=\"none\" stroke=\"#2C376A\" stroke-width=\"2.4\" stroke-linecap=\"round\"></path></g></svg>"
|
|
1034
1073
|
},
|
|
1035
1074
|
koti: {
|
|
1036
1075
|
"koti-icon-light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — Bolinha sob o teto (padrão)</title>\n <rect width=\"180\" height=\"180\" fill=\"#7A3F6E\"></rect>\n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#F4E4CC\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#DB9A5B\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#F4E4CC\"></rect>\n</svg>",
|
|
@@ -1042,25 +1081,25 @@ var F = {
|
|
|
1042
1081
|
};
|
|
1043
1082
|
//#endregion
|
|
1044
1083
|
//#region src/components/ProductArt.tsx
|
|
1045
|
-
function
|
|
1084
|
+
function L(e, t, n, r) {
|
|
1046
1085
|
let i = e.replace(/<title>[^<]*<\/title>/, ""), a = i.slice(0, i.indexOf(">")), o = a.match(/viewBox="([^"]+)"/)?.[1] ?? "0 0 1 1", [, , s, c] = o.split(/\s+/).map(Number), l = typeof n == "number" ? `${n}` : n, u = typeof n == "number" ? `${Math.round(n * c / s)}` : "auto", d = r ? `role="img" aria-label="${r.replace(/"/g, """)}"` : "aria-hidden=\"true\"";
|
|
1047
1086
|
i = i.replace(a, `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${o}" width="${l}" height="${u}" ${d} focusable="false"`);
|
|
1048
1087
|
for (let e of new Set([...i.matchAll(/\sid="([^"]+)"/g)].map((e) => e[1]))) i = i.replaceAll(`id="${e}"`, `id="${t}-${e}"`).replaceAll(`url(#${e})`, `url(#${t}-${e})`);
|
|
1049
1088
|
return i;
|
|
1050
1089
|
}
|
|
1051
|
-
function
|
|
1052
|
-
let s = r().replace(/:/g, ""), c =
|
|
1090
|
+
function R({ product: e, variant: n = "light", size: i = 64, label: a, className: o }) {
|
|
1091
|
+
let s = r().replace(/:/g, ""), c = I[e][`${e}-icon-${n}`];
|
|
1053
1092
|
return c ? /* @__PURE__ */ t("span", {
|
|
1054
1093
|
className: o,
|
|
1055
1094
|
style: {
|
|
1056
1095
|
display: "inline-block",
|
|
1057
1096
|
lineHeight: 0
|
|
1058
1097
|
},
|
|
1059
|
-
dangerouslySetInnerHTML: { __html:
|
|
1098
|
+
dangerouslySetInnerHTML: { __html: L(c, s, i, a) }
|
|
1060
1099
|
}) : null;
|
|
1061
1100
|
}
|
|
1062
|
-
function
|
|
1063
|
-
let c = r().replace(/:/g, ""), l =
|
|
1101
|
+
function z({ product: e, art: n = "pair", mode: i, width: a = "100%", label: o, className: s }) {
|
|
1102
|
+
let c = r().replace(/:/g, ""), l = I[e];
|
|
1064
1103
|
return /* @__PURE__ */ t("span", {
|
|
1065
1104
|
className: s,
|
|
1066
1105
|
style: {
|
|
@@ -1073,13 +1112,13 @@ function R({ product: e, art: n = "pair", mode: i, width: a = "100%", label: o,
|
|
|
1073
1112
|
return r ? /* @__PURE__ */ t("span", {
|
|
1074
1113
|
"data-art": i ? void 0 : e,
|
|
1075
1114
|
style: { display: "block" },
|
|
1076
|
-
dangerouslySetInnerHTML: { __html:
|
|
1115
|
+
dangerouslySetInnerHTML: { __html: L(r, `${c}${e}`, "100%", o) }
|
|
1077
1116
|
}, e) : null;
|
|
1078
1117
|
})
|
|
1079
1118
|
});
|
|
1080
1119
|
}
|
|
1081
|
-
function
|
|
1082
|
-
let s = r().replace(/:/g, ""), c =
|
|
1120
|
+
function B({ product: e, mode: n, width: i = "100%", label: a, className: o }) {
|
|
1121
|
+
let s = r().replace(/:/g, ""), c = I[e], l = (n ? [n] : ["light", "dark"]).map((t) => ({
|
|
1083
1122
|
m: t,
|
|
1084
1123
|
svg: c[`${e}-logo-${t === "light" ? "plum" : "paper"}`]
|
|
1085
1124
|
}));
|
|
@@ -1093,11 +1132,11 @@ function z({ product: e, mode: n, width: i = "100%", label: a, className: o }) {
|
|
|
1093
1132
|
children: l.map(({ m: e, svg: r }) => r ? /* @__PURE__ */ t("span", {
|
|
1094
1133
|
"data-art": n ? void 0 : e,
|
|
1095
1134
|
style: { display: "block" },
|
|
1096
|
-
dangerouslySetInnerHTML: { __html:
|
|
1135
|
+
dangerouslySetInnerHTML: { __html: L(r, `${s}${e}`, "100%", a) }
|
|
1097
1136
|
}, e) : null)
|
|
1098
1137
|
});
|
|
1099
1138
|
}
|
|
1100
1139
|
//#endregion
|
|
1101
|
-
export {
|
|
1140
|
+
export { F as AppIcon, d as Button, h as Card, b as CheckList, s as Icon, g as IconBox, _ as Kicker, A as Mascot, p as Pill, R as ProductIcon, B as ProductLogo, z as ProductMascot, y as SectionHeading, u as buttonClasses, a as iconData, o as iconNames, T as mascotPaths, x as tokens };
|
|
1102
1141
|
|
|
1103
1142
|
//# sourceMappingURL=index.js.map
|