@ovok/native 1.16.1-dev.2091 → 1.16.1-dev.2095
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/lib/commonjs/modules/wearables/components/wearable-provider-icon.js +45 -0
- package/lib/commonjs/modules/wearables/components/wearable-provider-icon.js.map +1 -0
- package/lib/commonjs/modules/wearables/constants/wearable-providers.js +60 -0
- package/lib/commonjs/modules/wearables/constants/wearable-providers.js.map +1 -0
- package/lib/commonjs/modules/wearables/index.js +50 -0
- package/lib/commonjs/modules/wearables/index.js.map +1 -0
- package/lib/commonjs/modules/wearables/types/wearable-provider-icon-props.js +6 -0
- package/lib/commonjs/modules/wearables/types/wearable-provider-icon-props.js.map +1 -0
- package/lib/commonjs/modules/wearables/types/wearable-source.js +6 -0
- package/lib/commonjs/modules/wearables/types/wearable-source.js.map +1 -0
- package/lib/module/modules/wearables/components/wearable-provider-icon.js +39 -0
- package/lib/module/modules/wearables/components/wearable-provider-icon.js.map +1 -0
- package/lib/module/modules/wearables/constants/wearable-providers.js +56 -0
- package/lib/module/modules/wearables/constants/wearable-providers.js.map +1 -0
- package/lib/module/modules/wearables/index.js +7 -0
- package/lib/module/modules/wearables/index.js.map +1 -0
- package/lib/module/modules/wearables/types/wearable-provider-icon-props.js +4 -0
- package/lib/module/modules/wearables/types/wearable-provider-icon-props.js.map +1 -0
- package/lib/module/modules/wearables/types/wearable-source.js +4 -0
- package/lib/module/modules/wearables/types/wearable-source.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/wearables/components/wearable-provider-icon.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/wearables/components/wearable-provider-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/wearables/constants/wearable-providers.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/wearables/constants/wearable-providers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/wearables/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/wearables/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/wearables/types/wearable-provider-icon-props.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/wearables/types/wearable-source.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/wearables/types/wearable-source.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/wearables/components/wearable-provider-icon.d.ts +3 -0
- package/lib/typescript/module/src/modules/wearables/components/wearable-provider-icon.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/wearables/constants/wearable-providers.d.ts +8 -0
- package/lib/typescript/module/src/modules/wearables/constants/wearable-providers.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/wearables/index.d.ts +5 -0
- package/lib/typescript/module/src/modules/wearables/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/wearables/types/wearable-provider-icon-props.d.ts +6 -0
- package/lib/typescript/module/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/wearables/types/wearable-source.d.ts +4 -0
- package/lib/typescript/module/src/modules/wearables/types/wearable-source.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WearableProviderIcon = void 0;
|
|
7
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
8
|
+
var _wearableProviders = require("../constants/wearable-providers.js");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
const VIEW_BOX = 48;
|
|
12
|
+
const WearableProviderIcon = ({
|
|
13
|
+
provider,
|
|
14
|
+
size = 40
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
name,
|
|
18
|
+
color,
|
|
19
|
+
monogram
|
|
20
|
+
} = _wearableProviders.WEARABLE_PROVIDERS[provider];
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
22
|
+
width: size,
|
|
23
|
+
height: size,
|
|
24
|
+
viewBox: `0 0 ${VIEW_BOX} ${VIEW_BOX}`,
|
|
25
|
+
accessible: true,
|
|
26
|
+
accessibilityRole: "image",
|
|
27
|
+
accessibilityLabel: name,
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
29
|
+
width: VIEW_BOX,
|
|
30
|
+
height: VIEW_BOX,
|
|
31
|
+
rx: 12,
|
|
32
|
+
fill: color
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
34
|
+
x: VIEW_BOX / 2,
|
|
35
|
+
y: 32,
|
|
36
|
+
textAnchor: "middle",
|
|
37
|
+
fontSize: 24,
|
|
38
|
+
fontWeight: "700",
|
|
39
|
+
fill: "#FFFFFF",
|
|
40
|
+
children: monogram
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
exports.WearableProviderIcon = WearableProviderIcon;
|
|
45
|
+
//# sourceMappingURL=wearable-provider-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_wearableProviders","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","VIEW_BOX","WearableProviderIcon","provider","size","name","color","monogram","WEARABLE_PROVIDERS","jsxs","width","height","viewBox","accessible","accessibilityRole","accessibilityLabel","children","jsx","Rect","rx","fill","Text","x","y","textAnchor","fontSize","fontWeight","exports"],"sourceRoot":"../../../../../src","sources":["modules/wearables/components/wearable-provider-icon.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,kBAAA,GAAAD,OAAA;AAAqE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAErE,MAAMkB,QAAQ,GAAG,EAAE;AAEZ,MAAMC,oBAAoB,GAAGA,CAAC;EACnCC,QAAQ;EACRC,IAAI,GAAG;AACkB,CAAC,KAAK;EAC/B,MAAM;IAAEC,IAAI;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGC,qCAAkB,CAACL,QAAQ,CAAC;EAE9D,oBACE,IAAAtB,WAAA,CAAA4B,IAAA,EAAChC,eAAA,CAAAe,OAAG;IACFkB,KAAK,EAAEN,IAAK;IACZO,MAAM,EAAEP,IAAK;IACbQ,OAAO,EAAE,OAAOX,QAAQ,IAAIA,QAAQ,EAAG;IACvCY,UAAU;IACVC,iBAAiB,EAAC,OAAO;IACzBC,kBAAkB,EAAEV,IAAK;IAAAW,QAAA,gBAEzB,IAAAnC,WAAA,CAAAoC,GAAA,EAACxC,eAAA,CAAAyC,IAAI;MAACR,KAAK,EAAET,QAAS;MAACU,MAAM,EAAEV,QAAS;MAACkB,EAAE,EAAE,EAAG;MAACC,IAAI,EAAEd;IAAM,CAAE,CAAC,eAChE,IAAAzB,WAAA,CAAAoC,GAAA,EAACxC,eAAA,CAAA4C,IAAI;MACHC,CAAC,EAAErB,QAAQ,GAAG,CAAE;MAChBsB,CAAC,EAAE,EAAG;MACNC,UAAU,EAAC,QAAQ;MACnBC,QAAQ,EAAE,EAAG;MACbC,UAAU,EAAC,KAAK;MAChBN,IAAI,EAAC,SAAS;MAAAJ,QAAA,EAEbT;IAAQ,CACL,CAAC;EAAA,CACJ,CAAC;AAEV,CAAC;AAACoB,OAAA,CAAAzB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.WEARABLE_PROVIDERS = void 0;
|
|
7
|
+
// Original monograms in each brand's colour, not the providers' logos.
|
|
8
|
+
const WEARABLE_PROVIDERS = exports.WEARABLE_PROVIDERS = {
|
|
9
|
+
oura: {
|
|
10
|
+
name: "Oura",
|
|
11
|
+
color: "#1C1C1E",
|
|
12
|
+
monogram: "O"
|
|
13
|
+
},
|
|
14
|
+
whoop: {
|
|
15
|
+
name: "WHOOP",
|
|
16
|
+
color: "#000000",
|
|
17
|
+
monogram: "W"
|
|
18
|
+
},
|
|
19
|
+
strava: {
|
|
20
|
+
name: "Strava",
|
|
21
|
+
color: "#FC4C02",
|
|
22
|
+
monogram: "S"
|
|
23
|
+
},
|
|
24
|
+
withings: {
|
|
25
|
+
name: "Withings",
|
|
26
|
+
color: "#00A3A1",
|
|
27
|
+
monogram: "W"
|
|
28
|
+
},
|
|
29
|
+
polar: {
|
|
30
|
+
name: "Polar Flow",
|
|
31
|
+
color: "#D10027",
|
|
32
|
+
monogram: "P"
|
|
33
|
+
},
|
|
34
|
+
suunto: {
|
|
35
|
+
name: "Suunto",
|
|
36
|
+
color: "#303030",
|
|
37
|
+
monogram: "S"
|
|
38
|
+
},
|
|
39
|
+
garmin: {
|
|
40
|
+
name: "Garmin Connect",
|
|
41
|
+
color: "#007CC3",
|
|
42
|
+
monogram: "G"
|
|
43
|
+
},
|
|
44
|
+
ultrahuman: {
|
|
45
|
+
name: "Ultrahuman",
|
|
46
|
+
color: "#111111",
|
|
47
|
+
monogram: "U"
|
|
48
|
+
},
|
|
49
|
+
"apple-health": {
|
|
50
|
+
name: "Apple Health",
|
|
51
|
+
color: "#FF2D55",
|
|
52
|
+
monogram: "♥"
|
|
53
|
+
},
|
|
54
|
+
"health-connect": {
|
|
55
|
+
name: "Health Connect",
|
|
56
|
+
color: "#1A73E8",
|
|
57
|
+
monogram: "♥"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=wearable-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WEARABLE_PROVIDERS","exports","oura","name","color","monogram","whoop","strava","withings","polar","suunto","garmin","ultrahuman"],"sourceRoot":"../../../../../src","sources":["modules/wearables/constants/wearable-providers.ts"],"mappings":";;;;;;AAQA;AACO,MAAMA,kBAAiE,GAAAC,OAAA,CAAAD,kBAAA,GAC5E;EACEE,IAAI,EAAE;IAAEC,IAAI,EAAE,MAAM;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACvDC,KAAK,EAAE;IAAEH,IAAI,EAAE,OAAO;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACzDE,MAAM,EAAE;IAAEJ,IAAI,EAAE,QAAQ;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC3DG,QAAQ,EAAE;IAAEL,IAAI,EAAE,UAAU;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC/DI,KAAK,EAAE;IAAEN,IAAI,EAAE,YAAY;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC9DK,MAAM,EAAE;IAAEP,IAAI,EAAE,QAAQ;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC3DM,MAAM,EAAE;IAAER,IAAI,EAAE,gBAAgB;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACnEO,UAAU,EAAE;IAAET,IAAI,EAAE,YAAY;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACnE,cAAc,EAAE;IAAEF,IAAI,EAAE,cAAc;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACzE,gBAAgB,EAAE;IAChBF,IAAI,EAAE,gBAAgB;IACtBC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE;EACZ;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _wearableProviderIcon = require("./components/wearable-provider-icon.js");
|
|
7
|
+
Object.keys(_wearableProviderIcon).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _wearableProviderIcon[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _wearableProviderIcon[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _wearableProviders = require("./constants/wearable-providers.js");
|
|
18
|
+
Object.keys(_wearableProviders).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _wearableProviders[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _wearableProviders[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _wearableProviderIconProps = require("./types/wearable-provider-icon-props.js");
|
|
29
|
+
Object.keys(_wearableProviderIconProps).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _wearableProviderIconProps[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _wearableProviderIconProps[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _wearableSource = require("./types/wearable-source.js");
|
|
40
|
+
Object.keys(_wearableSource).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _wearableSource[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _wearableSource[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_wearableProviderIcon","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_wearableProviders","_wearableProviderIconProps","_wearableSource"],"sourceRoot":"../../../../src","sources":["modules/wearables/index.ts"],"mappings":";;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,qBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,qBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,qBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,kBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,kBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,0BAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,0BAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,0BAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,0BAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,eAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,eAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,eAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,eAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/wearables/types/wearable-provider-icon-props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/wearables/types/wearable-source.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Svg, { Rect, Text } from "react-native-svg";
|
|
4
|
+
import { WEARABLE_PROVIDERS } from "../constants/wearable-providers.js";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const VIEW_BOX = 48;
|
|
7
|
+
export const WearableProviderIcon = ({
|
|
8
|
+
provider,
|
|
9
|
+
size = 40
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
name,
|
|
13
|
+
color,
|
|
14
|
+
monogram
|
|
15
|
+
} = WEARABLE_PROVIDERS[provider];
|
|
16
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
17
|
+
width: size,
|
|
18
|
+
height: size,
|
|
19
|
+
viewBox: `0 0 ${VIEW_BOX} ${VIEW_BOX}`,
|
|
20
|
+
accessible: true,
|
|
21
|
+
accessibilityRole: "image",
|
|
22
|
+
accessibilityLabel: name,
|
|
23
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
24
|
+
width: VIEW_BOX,
|
|
25
|
+
height: VIEW_BOX,
|
|
26
|
+
rx: 12,
|
|
27
|
+
fill: color
|
|
28
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
29
|
+
x: VIEW_BOX / 2,
|
|
30
|
+
y: 32,
|
|
31
|
+
textAnchor: "middle",
|
|
32
|
+
fontSize: 24,
|
|
33
|
+
fontWeight: "700",
|
|
34
|
+
fill: "#FFFFFF",
|
|
35
|
+
children: monogram
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=wearable-provider-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Svg","Rect","Text","WEARABLE_PROVIDERS","jsx","_jsx","jsxs","_jsxs","VIEW_BOX","WearableProviderIcon","provider","size","name","color","monogram","width","height","viewBox","accessible","accessibilityRole","accessibilityLabel","children","rx","fill","x","y","textAnchor","fontSize","fontWeight"],"sourceRoot":"../../../../../src","sources":["modules/wearables/components/wearable-provider-icon.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAIC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAIlD,SAASC,kBAAkB,QAAQ,oCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErE,MAAMC,QAAQ,GAAG,EAAE;AAEnB,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCC,QAAQ;EACRC,IAAI,GAAG;AACkB,CAAC,KAAK;EAC/B,MAAM;IAAEC,IAAI;IAAEC,KAAK;IAAEC;EAAS,CAAC,GAAGX,kBAAkB,CAACO,QAAQ,CAAC;EAE9D,oBACEH,KAAA,CAACP,GAAG;IACFe,KAAK,EAAEJ,IAAK;IACZK,MAAM,EAAEL,IAAK;IACbM,OAAO,EAAE,OAAOT,QAAQ,IAAIA,QAAQ,EAAG;IACvCU,UAAU;IACVC,iBAAiB,EAAC,OAAO;IACzBC,kBAAkB,EAAER,IAAK;IAAAS,QAAA,gBAEzBhB,IAAA,CAACJ,IAAI;MAACc,KAAK,EAAEP,QAAS;MAACQ,MAAM,EAAER,QAAS;MAACc,EAAE,EAAE,EAAG;MAACC,IAAI,EAAEV;IAAM,CAAE,CAAC,eAChER,IAAA,CAACH,IAAI;MACHsB,CAAC,EAAEhB,QAAQ,GAAG,CAAE;MAChBiB,CAAC,EAAE,EAAG;MACNC,UAAU,EAAC,QAAQ;MACnBC,QAAQ,EAAE,EAAG;MACbC,UAAU,EAAC,KAAK;MAChBL,IAAI,EAAC,SAAS;MAAAF,QAAA,EAEbP;IAAQ,CACL,CAAC;EAAA,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Original monograms in each brand's colour, not the providers' logos.
|
|
4
|
+
export const WEARABLE_PROVIDERS = {
|
|
5
|
+
oura: {
|
|
6
|
+
name: "Oura",
|
|
7
|
+
color: "#1C1C1E",
|
|
8
|
+
monogram: "O"
|
|
9
|
+
},
|
|
10
|
+
whoop: {
|
|
11
|
+
name: "WHOOP",
|
|
12
|
+
color: "#000000",
|
|
13
|
+
monogram: "W"
|
|
14
|
+
},
|
|
15
|
+
strava: {
|
|
16
|
+
name: "Strava",
|
|
17
|
+
color: "#FC4C02",
|
|
18
|
+
monogram: "S"
|
|
19
|
+
},
|
|
20
|
+
withings: {
|
|
21
|
+
name: "Withings",
|
|
22
|
+
color: "#00A3A1",
|
|
23
|
+
monogram: "W"
|
|
24
|
+
},
|
|
25
|
+
polar: {
|
|
26
|
+
name: "Polar Flow",
|
|
27
|
+
color: "#D10027",
|
|
28
|
+
monogram: "P"
|
|
29
|
+
},
|
|
30
|
+
suunto: {
|
|
31
|
+
name: "Suunto",
|
|
32
|
+
color: "#303030",
|
|
33
|
+
monogram: "S"
|
|
34
|
+
},
|
|
35
|
+
garmin: {
|
|
36
|
+
name: "Garmin Connect",
|
|
37
|
+
color: "#007CC3",
|
|
38
|
+
monogram: "G"
|
|
39
|
+
},
|
|
40
|
+
ultrahuman: {
|
|
41
|
+
name: "Ultrahuman",
|
|
42
|
+
color: "#111111",
|
|
43
|
+
monogram: "U"
|
|
44
|
+
},
|
|
45
|
+
"apple-health": {
|
|
46
|
+
name: "Apple Health",
|
|
47
|
+
color: "#FF2D55",
|
|
48
|
+
monogram: "♥"
|
|
49
|
+
},
|
|
50
|
+
"health-connect": {
|
|
51
|
+
name: "Health Connect",
|
|
52
|
+
color: "#1A73E8",
|
|
53
|
+
monogram: "♥"
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=wearable-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WEARABLE_PROVIDERS","oura","name","color","monogram","whoop","strava","withings","polar","suunto","garmin","ultrahuman"],"sourceRoot":"../../../../../src","sources":["modules/wearables/constants/wearable-providers.ts"],"mappings":";;AAQA;AACA,OAAO,MAAMA,kBAAiE,GAC5E;EACEC,IAAI,EAAE;IAAEC,IAAI,EAAE,MAAM;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACvDC,KAAK,EAAE;IAAEH,IAAI,EAAE,OAAO;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACzDE,MAAM,EAAE;IAAEJ,IAAI,EAAE,QAAQ;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC3DG,QAAQ,EAAE;IAAEL,IAAI,EAAE,UAAU;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC/DI,KAAK,EAAE;IAAEN,IAAI,EAAE,YAAY;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC9DK,MAAM,EAAE;IAAEP,IAAI,EAAE,QAAQ;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EAC3DM,MAAM,EAAE;IAAER,IAAI,EAAE,gBAAgB;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACnEO,UAAU,EAAE;IAAET,IAAI,EAAE,YAAY;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACnE,cAAc,EAAE;IAAEF,IAAI,EAAE,cAAc;IAAEC,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE;EAAI,CAAC;EACzE,gBAAgB,EAAE;IAChBF,IAAI,EAAE,gBAAgB;IACtBC,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE;EACZ;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/wearables/index.ts"],"mappings":";;AAAA,cAAc,wCAAqC;AACnD,cAAc,mCAAgC;AAC9C,cAAc,yCAAsC;AACpD,cAAc,4BAAyB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/wearables/types/wearable-provider-icon-props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/wearables/types/wearable-source.ts"],"mappings":"","ignoreList":[]}
|
package/lib/typescript/commonjs/src/modules/wearables/components/wearable-provider-icon.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-provider-icon.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/components/wearable-provider-icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAMvF,eAAO,MAAM,oBAAoB,GAAI,qBAGlC,yBAAyB,gCAyB3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WearableSource } from "../types/wearable-source";
|
|
2
|
+
export type WearableProviderBrand = {
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
monogram: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const WEARABLE_PROVIDERS: Record<WearableSource, WearableProviderBrand>;
|
|
8
|
+
//# sourceMappingURL=wearable-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-providers.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/constants/wearable-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAgB1E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/wearables/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC"}
|
package/lib/typescript/commonjs/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-provider-icon-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/types/wearable-provider-icon-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-source.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/types/wearable-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GACtB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,CAAC"}
|
package/lib/typescript/module/src/modules/wearables/components/wearable-provider-icon.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-provider-icon.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/components/wearable-provider-icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAMvF,eAAO,MAAM,oBAAoB,GAAI,qBAGlC,yBAAyB,gCAyB3B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WearableSource } from "../types/wearable-source";
|
|
2
|
+
export type WearableProviderBrand = {
|
|
3
|
+
name: string;
|
|
4
|
+
color: string;
|
|
5
|
+
monogram: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const WEARABLE_PROVIDERS: Record<WearableSource, WearableProviderBrand>;
|
|
8
|
+
//# sourceMappingURL=wearable-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-providers.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/constants/wearable-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAgB1E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/wearables/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC"}
|
package/lib/typescript/module/src/modules/wearables/types/wearable-provider-icon-props.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-provider-icon-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/types/wearable-provider-icon-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wearable-source.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/wearables/types/wearable-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GACtB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,CAAC"}
|