@fluentui-react-native/experimental-shimmer 0.13.5 → 0.13.7
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.json +66 -1
- package/CHANGELOG.md +18 -2
- package/eslint.config.js +3 -0
- package/lib/Shimmer.js +38 -58
- package/lib/Shimmer.js.map +1 -1
- package/lib/Shimmer.styling.js +3 -3
- package/lib/Shimmer.styling.js.map +1 -1
- package/lib/Shimmer.styling.win32.js +9 -9
- package/lib/Shimmer.styling.win32.js.map +1 -1
- package/lib/Shimmer.test.js +13 -71
- package/lib/Shimmer.test.js.map +1 -1
- package/lib/Shimmer.types.shared.js +1 -1
- package/lib/Shimmer.types.shared.js.map +1 -1
- package/lib/Shimmer.win32.js +33 -50
- package/lib/Shimmer.win32.js.map +1 -1
- package/lib/ShimmerTokens.android.js +9 -11
- package/lib/ShimmerTokens.android.js.map +1 -1
- package/lib/ShimmerTokens.ios.js +9 -11
- package/lib/ShimmerTokens.ios.js.map +1 -1
- package/lib/ShimmerTokens.js +10 -12
- package/lib/ShimmerTokens.js.map +1 -1
- package/lib/ShimmerTokens.win32.js +11 -13
- package/lib/ShimmerTokens.win32.js.map +1 -1
- package/lib/SvgShapeToPath.js +7 -7
- package/lib/SvgShapeToPath.js.map +1 -1
- package/lib/consts.android.js +3 -3
- package/lib/consts.android.js.map +1 -1
- package/lib/consts.ios.js +3 -3
- package/lib/consts.ios.js.map +1 -1
- package/lib/consts.js +3 -3
- package/lib/consts.js.map +1 -1
- package/lib/consts.win32.js +3 -3
- package/lib/consts.win32.js.map +1 -1
- package/lib-commonjs/Shimmer.js +45 -65
- package/lib-commonjs/Shimmer.js.map +1 -1
- package/lib-commonjs/Shimmer.styling.js +5 -5
- package/lib-commonjs/Shimmer.styling.js.map +1 -1
- package/lib-commonjs/Shimmer.styling.win32.js +11 -11
- package/lib-commonjs/Shimmer.styling.win32.js.map +1 -1
- package/lib-commonjs/Shimmer.test.js +16 -74
- package/lib-commonjs/Shimmer.test.js.map +1 -1
- package/lib-commonjs/Shimmer.win32.js +42 -59
- package/lib-commonjs/Shimmer.win32.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.android.js +10 -12
- package/lib-commonjs/ShimmerTokens.android.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.ios.js +10 -12
- package/lib-commonjs/ShimmerTokens.ios.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.js +12 -14
- package/lib-commonjs/ShimmerTokens.js.map +1 -1
- package/lib-commonjs/ShimmerTokens.win32.js +12 -14
- package/lib-commonjs/ShimmerTokens.win32.js.map +1 -1
- package/lib-commonjs/SvgShapeToPath.js +7 -7
- package/lib-commonjs/SvgShapeToPath.js.map +1 -1
- package/lib-commonjs/Win32ShimmerNativeComponent.js +1 -13
- package/lib-commonjs/Win32ShimmerNativeComponent.js.map +1 -1
- package/package.json +36 -17
- package/.eslintrc.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.js","sourceRoot":"","sources":["../src/Shimmer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shimmer.js","sourceRoot":"","sources":["../src/Shimmer.tsx"],"names":[],"mappings":";;;;;;AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,iCAAgE;AAEhE,+CAAqD;AAGrD,gEAAmG;AACnG,gEAAuC;AACvC,uDAA8F;AAE9F,uDAAoD;AAEpD,mDAA8C;AAE9C,MAAM,UAAU,GAAG,IAAA,2BAAe,EAAC,iCAAe,CAAC,CAAC;AACvC,QAAA,OAAO,GAAG,IAAA,mBAAO,EAAc;IAC1C,WAAW,EAAE,2BAAW;IACxB,GAAG,iCAAe;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,sBAAG;KACV;IACD,SAAS,EAAE,CAAC,KAAmB,EAAE,QAA+B,EAAE,EAAE;QAClE,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,KAAK,GAAG,IA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,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAE,mBAAmB,CAAC,cAAc,EACzC,MAAM,EAAE,mBAAmB,CAAC,eAAe,EAC3C,IAAI,EAAC,gBAAgB,EACrB,EAAE,EAAE,mBAAmB,CAAC,qBAAqB,EAC7C,QAAQ,EAAC,mBAAmB,GAC5B,CACA,CACO,CACd,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stylingSettings = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const framework_1 = require("@fluentui-react-native/framework");
|
|
5
|
+
const Shimmer_types_1 = require("./Shimmer.types");
|
|
6
|
+
const ShimmerTokens_1 = require("./ShimmerTokens");
|
|
7
7
|
exports.stylingSettings = {
|
|
8
8
|
tokens: [ShimmerTokens_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
|
|
9
9
|
tokensThatAreAlsoProps: 'all',
|
|
10
10
|
slotProps: {
|
|
11
|
-
root: (0, framework_1.buildProps)(
|
|
11
|
+
root: (0, framework_1.buildProps)((tokens) => ({
|
|
12
12
|
accessibilityRole: 'progressbar',
|
|
13
13
|
accessible: true,
|
|
14
14
|
style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
|
|
@@ -19,7 +19,7 @@ exports.stylingSettings = {
|
|
|
19
19
|
shimmerColorOpacity: tokens.shimmerColorOpacity,
|
|
20
20
|
shimmerWaveColor: tokens.shimmerWaveColor,
|
|
21
21
|
shimmerWaveColorOpacity: tokens.shimmerWaveColorOpacity,
|
|
22
|
-
})
|
|
22
|
+
}), [
|
|
23
23
|
'angle',
|
|
24
24
|
'delay',
|
|
25
25
|
'duration',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.styling.js","sourceRoot":"","sources":["../src/Shimmer.styling.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"Shimmer.styling.js","sourceRoot":"","sources":["../src/Shimmer.styling.ts"],"names":[],"mappings":";;;AACA,gEAA8D;AAG9D,mDAA8C;AAC9C,mDAAuD;AAE1C,QAAA,eAAe,GAAqE;IAC/F,MAAM,EAAE,CAAC,oCAAoB,EAAE,2BAAW,CAAC;IAC3C,sBAAsB,EAAE,KAAK;IAC7B,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC;YAC1B,iBAAiB,EAAE,aAAa;YAChC,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE;YACtE,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;YAC/C,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,uBAAuB,EAAE,MAAM,CAAC,uBAAuB;SACxD,CAAC,EACF;YACE,OAAO;YACP,OAAO;YACP,UAAU;YACV,cAAc;YACd,qBAAqB;YACrB,kBAAkB;YAClB,yBAAyB;YACzB,iBAAiB;SAClB,CACF;KACF;CACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stylingSettings = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const framework_1 = require("@fluentui-react-native/framework");
|
|
5
|
+
const Shimmer_types_1 = require("./Shimmer.types");
|
|
6
|
+
const ShimmerTokens_win32_1 = require("./ShimmerTokens.win32");
|
|
7
7
|
/**
|
|
8
8
|
* tell the styling hook how to build up the tokens
|
|
9
9
|
*/
|
|
@@ -11,25 +11,25 @@ exports.stylingSettings = {
|
|
|
11
11
|
tokens: [ShimmerTokens_win32_1.defaultShimmerTokens, Shimmer_types_1.shimmerName],
|
|
12
12
|
tokensThatAreAlsoProps: 'all',
|
|
13
13
|
slotProps: {
|
|
14
|
-
root: (0, framework_1.buildProps)(
|
|
14
|
+
root: (0, framework_1.buildProps)((tokens) => ({
|
|
15
15
|
accessibilityRole: 'progressbar',
|
|
16
16
|
accessible: true,
|
|
17
17
|
style: { overflow: 'hidden', backgroundColor: tokens.backgroundColor },
|
|
18
|
-
})
|
|
19
|
-
shimmerWaveContainer: (0, framework_1.buildProps)(
|
|
18
|
+
}), ['backgroundColor']),
|
|
19
|
+
shimmerWaveContainer: (0, framework_1.buildProps)((tokens) => ({
|
|
20
20
|
delay: tokens.delay,
|
|
21
21
|
duration: tokens.duration,
|
|
22
22
|
shimmerColor: tokens.shimmerColor,
|
|
23
|
-
})
|
|
24
|
-
shimmerWave: (0, framework_1.buildProps)(
|
|
23
|
+
}), ['delay', 'duration', 'shimmerColor']),
|
|
24
|
+
shimmerWave: (0, framework_1.buildProps)((tokens) => ({
|
|
25
25
|
angle: tokens.angle,
|
|
26
26
|
shimmerColor: tokens.shimmerColor,
|
|
27
27
|
shimmerWaveColor: tokens.shimmerWaveColor,
|
|
28
28
|
shimmerWaveWidth: tokens.shimmerWaveWidth,
|
|
29
|
-
})
|
|
30
|
-
clippingMask: (0, framework_1.buildProps)(
|
|
29
|
+
}), ['angle', 'shimmerColor', 'shimmerWaveColor', 'shimmerWaveWidth']),
|
|
30
|
+
clippingMask: (0, framework_1.buildProps)((tokens) => ({
|
|
31
31
|
backgroundColor: tokens.backgroundColor,
|
|
32
|
-
})
|
|
32
|
+
}), ['backgroundColor']),
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=Shimmer.styling.win32.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.styling.win32.js","sourceRoot":"","sources":["../src/Shimmer.styling.win32.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"Shimmer.styling.win32.js","sourceRoot":"","sources":["../src/Shimmer.styling.win32.ts"],"names":[],"mappings":";;;AACA,gEAA8D;AAG9D,mDAA8C;AAE9C,+DAA6D;AAE7D;;GAEG;AACU,QAAA,eAAe,GAAqE;IAC/F,MAAM,EAAE,CAAC,0CAAoB,EAAE,2BAAW,CAAC;IAC3C,sBAAsB,EAAE,KAAK;IAC7B,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC;YAC1B,iBAAiB,EAAE,aAAa;YAChC,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE;SACvE,CAAC,EACF,CAAC,iBAAiB,CAAC,CACpB;QAED,oBAAoB,EAAE,IAAA,sBAAU,EAC9B,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC;YAC1B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,YAAY;SAClC,CAAC,EACF,CAAC,OAAO,EAAE,UAAU,EAAE,cAAc,CAAC,CACtC;QAED,WAAW,EAAE,IAAA,sBAAU,EACrB,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC;YAC1B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;SAC1C,CAAC,EACF,CAAC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAClE;QAED,YAAY,EAAE,IAAA,sBAAU,EACtB,CAAC,MAAqB,EAAE,EAAE,CAAC,CAAC;YAC1B,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC,CAAC,EACF,CAAC,iBAAiB,CAAC,CACpB;KACF;CACF,CAAC"}
|
|
@@ -22,46 +22,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
-
function step(op) {
|
|
39
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
-
switch (op[0]) {
|
|
44
|
-
case 0: case 1: t = op; break;
|
|
45
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
-
default:
|
|
49
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
-
if (t[2]) _.ops.pop();
|
|
54
|
-
_.trys.pop(); continue;
|
|
55
|
-
}
|
|
56
|
-
op = body.call(thisArg, _);
|
|
57
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
26
|
+
const React = __importStar(require("react"));
|
|
27
|
+
const renderer = __importStar(require("react-test-renderer"));
|
|
28
|
+
const Shimmer_1 = require("./Shimmer");
|
|
65
29
|
function shimmerRects() {
|
|
66
30
|
return [
|
|
67
31
|
{
|
|
@@ -93,44 +57,22 @@ function shimmerRects() {
|
|
|
93
57
|
},
|
|
94
58
|
];
|
|
95
59
|
}
|
|
96
|
-
|
|
97
|
-
describe('Shimmer component tests',
|
|
98
|
-
beforeAll(
|
|
60
|
+
const style = { width: 300, height: 100 };
|
|
61
|
+
describe('Shimmer component tests', () => {
|
|
62
|
+
beforeAll(() => {
|
|
99
63
|
// mocks out setTimeout and other timer functions with mock functions, test will fail without this as we're using Animated API
|
|
100
64
|
jest.useFakeTimers();
|
|
101
65
|
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
|
102
66
|
});
|
|
103
|
-
it('Shimmer default',
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
case 1:
|
|
114
|
-
_a.sent();
|
|
115
|
-
return [2 /*return*/];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}); });
|
|
119
|
-
it('Shimmer with style prop', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
|
-
var tree;
|
|
121
|
-
return __generator(this, function (_a) {
|
|
122
|
-
switch (_a.label) {
|
|
123
|
-
case 0:
|
|
124
|
-
tree = renderer.create(React.createElement(Shimmer_1.Shimmer, { elements: shimmerRects(), style: style })).toJSON();
|
|
125
|
-
expect(tree).toMatchSnapshot();
|
|
126
|
-
return [4 /*yield*/, renderer.act(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
127
|
-
return [2 /*return*/, null];
|
|
128
|
-
}); }); })];
|
|
129
|
-
case 1:
|
|
130
|
-
_a.sent();
|
|
131
|
-
return [2 /*return*/];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}); });
|
|
67
|
+
it('Shimmer default', async () => {
|
|
68
|
+
const tree = renderer.create(React.createElement(Shimmer_1.Shimmer, { elements: shimmerRects() })).toJSON();
|
|
69
|
+
expect(tree).toMatchSnapshot();
|
|
70
|
+
await renderer.act(async () => null);
|
|
71
|
+
});
|
|
72
|
+
it('Shimmer with style prop', async () => {
|
|
73
|
+
const tree = renderer.create(React.createElement(Shimmer_1.Shimmer, { elements: shimmerRects(), style: style })).toJSON();
|
|
74
|
+
expect(tree).toMatchSnapshot();
|
|
75
|
+
await renderer.act(async () => null);
|
|
76
|
+
});
|
|
135
77
|
});
|
|
136
78
|
//# sourceMappingURL=Shimmer.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shimmer.test.js","sourceRoot":"","sources":["../src/Shimmer.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,8DAAgD;AAEhD,uCAAoC;AAGpC,SAAS,YAAY;IACnB,OAAO;QACL;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;QACD;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;QACD;YACE,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,CAAC;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,EAAE;YACV,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN;KACF,CAAC;AACJ,CAAC;AAED,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAE1C,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,8HAA8H;QAC9H,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;QAC/B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,iBAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAC7E,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QAC/B,MAAM,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,iBAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAC3F,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;QAC/B,MAAM,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -4,28 +4,6 @@
|
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
* @format
|
|
6
6
|
*/
|
|
7
|
-
var __assign = (this && this.__assign) || function () {
|
|
8
|
-
__assign = Object.assign || function(t) {
|
|
9
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10
|
-
s = arguments[i];
|
|
11
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
12
|
-
t[p] = s[p];
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
};
|
|
16
|
-
return __assign.apply(this, arguments);
|
|
17
|
-
};
|
|
18
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
};
|
|
29
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
9
|
};
|
|
@@ -33,16 +11,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
11
|
exports.Shimmer = void 0;
|
|
34
12
|
/** @jsxRuntime classic */
|
|
35
13
|
/** @jsx withSlots */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
const react_native_1 = require("react-native");
|
|
15
|
+
const framework_1 = require("@fluentui-react-native/framework");
|
|
16
|
+
const framework_2 = require("@fluentui-react-native/framework");
|
|
17
|
+
const assert_never_1 = require("assert-never");
|
|
18
|
+
const react_native_svg_1 = require("react-native-svg");
|
|
19
|
+
const Shimmer_styling_win32_1 = require("./Shimmer.styling.win32");
|
|
20
|
+
const Shimmer_types_shared_1 = require("./Shimmer.types.shared");
|
|
21
|
+
const SvgShapeToPath_1 = require("./SvgShapeToPath");
|
|
22
|
+
const Win32ShimmerNativeComponent_1 = __importDefault(require("./Win32ShimmerNativeComponent"));
|
|
23
|
+
const clippingMask = (props) => {
|
|
46
24
|
/**
|
|
47
25
|
* Absolute positioning is used to overlay the clipping mask on top of the shimmer wave.
|
|
48
26
|
*
|
|
@@ -50,24 +28,24 @@ var clippingMask = function (props) {
|
|
|
50
28
|
* viewPort, starting from the origin of the viewPort and minimum coordinates of the viewBox.
|
|
51
29
|
* 'slice' removes the unnecessary remainder.
|
|
52
30
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
const { backgroundColor, viewBoxHeight, viewBoxWidth } = props;
|
|
32
|
+
const svgProps = {
|
|
55
33
|
style: { position: 'absolute', height: viewBoxHeight, width: viewBoxWidth },
|
|
56
34
|
viewBox: '0 0 ' + viewBoxWidth + ' ' + viewBoxHeight,
|
|
57
35
|
preserveAspectRatio: 'xMinYMin slice',
|
|
58
36
|
};
|
|
59
|
-
return ((0, framework_2.withSlots)(react_native_svg_1.Svg,
|
|
37
|
+
return ((0, framework_2.withSlots)(react_native_svg_1.Svg, { ...svgProps },
|
|
60
38
|
(0, framework_2.withSlots)(react_native_svg_1.Defs, null,
|
|
61
39
|
(0, framework_2.withSlots)(react_native_svg_1.ClipPath, { id: "shimmerCuts" },
|
|
62
40
|
(0, framework_2.withSlots)(react_native_svg_1.Path, { d: props.clipPath, clipRule: "evenodd" }))),
|
|
63
41
|
(0, framework_2.withSlots)(react_native_svg_1.Rect, { width: "100%", height: "100%", fill: backgroundColor, clipPath: "url(#shimmerCuts)" })));
|
|
64
42
|
};
|
|
65
|
-
|
|
66
|
-
|
|
43
|
+
const wave = (props) => {
|
|
44
|
+
const { shimmerColor, shimmerColorOpacity, shimmerWaveColor, shimmerWaveColorOpacity, viewBoxHeight, viewBoxWidth } = props;
|
|
67
45
|
/**
|
|
68
46
|
* See the comment above for an explanation of preserveAspectRatio.
|
|
69
47
|
*/
|
|
70
|
-
|
|
48
|
+
const svgProps = {
|
|
71
49
|
style: { height: viewBoxHeight, width: viewBoxWidth },
|
|
72
50
|
viewBox: '0 0 ' + viewBoxWidth + ' ' + viewBoxHeight,
|
|
73
51
|
preserveAspectRatio: 'xMinYMin slice',
|
|
@@ -80,7 +58,7 @@ var wave = function (props) {
|
|
|
80
58
|
*/
|
|
81
59
|
if (typeof (0, react_native_1.processColor)(shimmerWaveColor) !== 'object' && typeof (0, react_native_1.processColor)(shimmerColor) !== 'object') {
|
|
82
60
|
// The typical path where the provided shimmer colors are not OpaqueColorValues.
|
|
83
|
-
return ((0, framework_2.withSlots)(react_native_svg_1.Svg,
|
|
61
|
+
return ((0, framework_2.withSlots)(react_native_svg_1.Svg, { ...svgProps },
|
|
84
62
|
(0, framework_2.withSlots)(react_native_svg_1.LinearGradient, { id: "gradient" },
|
|
85
63
|
(0, framework_2.withSlots)(react_native_svg_1.Stop, { stopColor: shimmerColor, stopOpacity: shimmerColorOpacity }),
|
|
86
64
|
(0, framework_2.withSlots)(react_native_svg_1.Stop, { offset: "20%", stopColor: shimmerWaveColor, stopOpacity: shimmerWaveColorOpacity }),
|
|
@@ -91,23 +69,27 @@ var wave = function (props) {
|
|
|
91
69
|
// The unexpected path where either of the provided shimmer colors are OpaqueColorValues.
|
|
92
70
|
// scaleX is used to mimic the gradient occupying 40% of the fill since we don't know the provided width of the
|
|
93
71
|
// shimmer wave.
|
|
94
|
-
return ((0, framework_2.withSlots)(react_native_svg_1.Svg,
|
|
72
|
+
return ((0, framework_2.withSlots)(react_native_svg_1.Svg, { ...svgProps },
|
|
95
73
|
(0, framework_2.withSlots)(react_native_svg_1.Rect, { width: props.shimmerWaveWidth, height: "100%", fill: shimmerWaveColor, fillOpacity: shimmerWaveColorOpacity, scaleX: "0.4" })));
|
|
96
74
|
}
|
|
97
75
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return ((0, framework_2.withSlots)(Win32ShimmerNativeComponent_1.default,
|
|
76
|
+
const waveContainer = (props) => {
|
|
77
|
+
const { shimmerColor, viewBoxHeight, viewBoxWidth } = props;
|
|
78
|
+
return ((0, framework_2.withSlots)(Win32ShimmerNativeComponent_1.default, { ...{ ...props, style: { backgroundColor: shimmerColor, height: viewBoxHeight, width: viewBoxWidth, overflow: 'hidden' } } }));
|
|
101
79
|
};
|
|
102
|
-
exports.Shimmer = (0, framework_1.compose)(
|
|
80
|
+
exports.Shimmer = (0, framework_1.compose)({
|
|
81
|
+
displayName: Shimmer_types_shared_1.shimmerName,
|
|
82
|
+
...Shimmer_styling_win32_1.stylingSettings,
|
|
83
|
+
slots: {
|
|
103
84
|
root: react_native_1.View,
|
|
104
85
|
clippingMask: clippingMask,
|
|
105
86
|
shimmerWave: wave,
|
|
106
87
|
shimmerWaveContainer: waveContainer,
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
88
|
+
},
|
|
89
|
+
useRender: (props, useSlots) => {
|
|
90
|
+
const Slots = useSlots(props);
|
|
91
|
+
return (rest) => {
|
|
92
|
+
const { elements, ...mergedProps } = (0, framework_1.mergeProps)(props, rest);
|
|
111
93
|
/**
|
|
112
94
|
* Generate a clip path from the provided element shapes, with their path parameter strings generated from their corresponding properties.
|
|
113
95
|
* Ideally this would be better possible with functions from the shape elements themselves and not to rely on our own calculations.
|
|
@@ -118,22 +100,22 @@ exports.Shimmer = (0, framework_1.compose)(__assign(__assign({ displayName: Shim
|
|
|
118
100
|
* Since we're programmatically generating the visual, we can assert our viewBox is `0 0 xMax yMax` where xMax and yMax are the greatest
|
|
119
101
|
* X and Y points used by a shape.
|
|
120
102
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
103
|
+
let clipPathsAsMask = [];
|
|
104
|
+
let xMax = 0;
|
|
105
|
+
let yMax = 0;
|
|
124
106
|
if (elements) {
|
|
125
|
-
elements.forEach(
|
|
107
|
+
elements.forEach((element) => {
|
|
126
108
|
if (element.type == 'circle') {
|
|
127
109
|
clipPathsAsMask = clipPathsAsMask.concat((0, SvgShapeToPath_1.convertCircleToSvgPath)(element));
|
|
128
|
-
|
|
129
|
-
|
|
110
|
+
const xMaxCandidate = element.cx + element.radius;
|
|
111
|
+
const yMaxCandidate = element.cy + element.radius;
|
|
130
112
|
xMax = xMax >= xMaxCandidate ? xMax : xMaxCandidate;
|
|
131
113
|
yMax = yMax >= yMaxCandidate ? yMax : yMaxCandidate;
|
|
132
114
|
}
|
|
133
115
|
else if (element.type == 'rect') {
|
|
134
116
|
clipPathsAsMask = clipPathsAsMask.concat((0, SvgShapeToPath_1.convertRectToSvgPath)(element));
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
const xMaxCandidate = element.x + element.width;
|
|
118
|
+
const yMaxCandidate = element.y + element.height;
|
|
137
119
|
xMax = xMax >= xMaxCandidate ? xMax : xMaxCandidate;
|
|
138
120
|
yMax = yMax >= yMaxCandidate ? yMax : yMaxCandidate;
|
|
139
121
|
}
|
|
@@ -148,11 +130,12 @@ exports.Shimmer = (0, framework_1.compose)(__assign(__assign({ displayName: Shim
|
|
|
148
130
|
* and drawing a rectangle around the entire svg viewBox, causing all inner elements to be "clipped out"
|
|
149
131
|
* instead of "clipped around," generating the visual we desire with the linear gradient below the mask.
|
|
150
132
|
*/
|
|
151
|
-
|
|
152
|
-
return ((0, framework_2.withSlots)(Slots.root,
|
|
133
|
+
const mergedClipPath = clipPathsAsMask.join(' ').concat('M 0 0 h ' + xMax + ' v ' + yMax + ' h -' + xMax + ' z ');
|
|
134
|
+
return ((0, framework_2.withSlots)(Slots.root, { ...mergedProps },
|
|
153
135
|
(0, framework_2.withSlots)(Slots.shimmerWaveContainer, { viewBoxHeight: yMax, viewBoxWidth: xMax },
|
|
154
136
|
(0, framework_2.withSlots)(Slots.shimmerWave, { viewBoxHeight: yMax, viewBoxWidth: xMax })),
|
|
155
137
|
(0, framework_2.withSlots)(Slots.clippingMask, { clipPath: mergedClipPath, viewBoxHeight: yMax, viewBoxWidth: xMax })));
|
|
156
138
|
};
|
|
157
|
-
}
|
|
139
|
+
},
|
|
140
|
+
});
|
|
158
141
|
//# sourceMappingURL=Shimmer.win32.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shimmer.win32.js","sourceRoot":"","sources":["../src/Shimmer.win32.tsx"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"Shimmer.win32.js","sourceRoot":"","sources":["../src/Shimmer.win32.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,0BAA0B;AAC1B,qBAAqB;AACrB,+CAAkD;AAGlD,gEAAuE;AACvE,gEAA6D;AAC7D,+CAA2C;AAE3C,uDAAyF;AAEzF,mEAA0D;A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
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
};
|
|
4
|
+
const consts_1 = require("./consts");
|
|
5
|
+
const defaultShimmerTokens = (theme) => ({
|
|
6
|
+
angle: consts_1.shimmerDefaultAngle,
|
|
7
|
+
delay: consts_1.shimmerDefaultDelay,
|
|
8
|
+
duration: consts_1.shimmerDefaultDuration,
|
|
9
|
+
shimmerColor: theme.colors.neutralStencil1,
|
|
10
|
+
shimmerColorOpacity: 1,
|
|
11
|
+
shimmerWaveColor: theme.colors.neutralStencil2,
|
|
12
|
+
shimmerWaveColorOpacity: 1,
|
|
13
|
+
});
|
|
16
14
|
exports.defaultShimmerTokens = defaultShimmerTokens;
|
|
17
15
|
//# sourceMappingURL=ShimmerTokens.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShimmerTokens.android.js","sourceRoot":"","sources":["../src/ShimmerTokens.android.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"ShimmerTokens.android.js","sourceRoot":"","sources":["../src/ShimmerTokens.android.ts"],"names":[],"mappings":";;;AAGA,qCAA4F;AAGrF,MAAM,oBAAoB,GAAwC,CAAC,KAAY,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,4BAAmB;IAC1B,KAAK,EAAE,4BAAmB;IAC1B,QAAQ,EAAE,+BAAsB;IAChC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe;IAC1C,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe;IAC9C,uBAAuB,EAAE,CAAC;CACT,CAAA,CAAC;AATT,QAAA,oBAAoB,wBASX"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultShimmerTokens = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
};
|
|
4
|
+
const consts_1 = require("./consts");
|
|
5
|
+
const defaultShimmerTokens = (theme) => ({
|
|
6
|
+
angle: consts_1.shimmerDefaultAngle,
|
|
7
|
+
delay: consts_1.shimmerDefaultDelay,
|
|
8
|
+
duration: consts_1.shimmerDefaultDuration,
|
|
9
|
+
shimmerColor: theme.colors.neutralStencil1,
|
|
10
|
+
shimmerColorOpacity: 1,
|
|
11
|
+
shimmerWaveColor: theme.colors.neutralStencil2,
|
|
12
|
+
shimmerWaveColorOpacity: 1,
|
|
13
|
+
});
|
|
16
14
|
exports.defaultShimmerTokens = defaultShimmerTokens;
|
|
17
15
|
//# sourceMappingURL=ShimmerTokens.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShimmerTokens.ios.js","sourceRoot":"","sources":["../src/ShimmerTokens.ios.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"ShimmerTokens.ios.js","sourceRoot":"","sources":["../src/ShimmerTokens.ios.ts"],"names":[],"mappings":";;;AAGA,qCAA4F;AAGrF,MAAM,oBAAoB,GAAwC,CAAC,KAAY,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,4BAAmB;IAC1B,KAAK,EAAE,4BAAmB;IAC1B,QAAQ,EAAE,+BAAsB;IAChC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe;IAC1C,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe;IAC9C,uBAAuB,EAAE,CAAC;CACT,CAAA,CAAC;AATT,QAAA,oBAAoB,wBASX"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultShimmerTokens = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
};
|
|
4
|
+
const theming_utils_1 = require("@fluentui-react-native/theming-utils");
|
|
5
|
+
const consts_1 = require("./consts");
|
|
6
|
+
const defaultShimmerTokens = (theme) => ({
|
|
7
|
+
angle: consts_1.shimmerDefaultAngle,
|
|
8
|
+
backgroundColor: theme.colors.transparentBackground,
|
|
9
|
+
delay: consts_1.shimmerDefaultDelay,
|
|
10
|
+
duration: consts_1.shimmerDefaultDuration,
|
|
11
|
+
shimmerColor: (0, theming_utils_1.getCurrentAppearance)(theme.host.appearance, 'light') === 'light' ? '#E1E1E1' : '#404040',
|
|
12
|
+
shimmerColorOpacity: 1,
|
|
13
|
+
shimmerWaveColor: (0, theming_utils_1.getCurrentAppearance)(theme.host.appearance, 'light') === 'light' ? 'white' : 'black',
|
|
14
|
+
shimmerWaveColorOpacity: 1,
|
|
15
|
+
});
|
|
18
16
|
exports.defaultShimmerTokens = defaultShimmerTokens;
|
|
19
17
|
//# sourceMappingURL=ShimmerTokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShimmerTokens.js","sourceRoot":"","sources":["../src/ShimmerTokens.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"ShimmerTokens.js","sourceRoot":"","sources":["../src/ShimmerTokens.ts"],"names":[],"mappings":";;;AACA,wEAA4E;AAG5E,qCAA4F;AAGrF,MAAM,oBAAoB,GAAwC,CAAC,KAAY,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,4BAAmB;IAC1B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,qBAAqB;IACnD,KAAK,EAAE,4BAAmB;IAC1B,QAAQ,EAAE,+BAAsB;IAChC,YAAY,EAAE,IAAA,oCAAoB,EAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;IACtG,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,IAAA,oCAAoB,EAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;IACtG,uBAAuB,EAAE,CAAC;CACT,CAAA,CAAC;AAVT,QAAA,oBAAoB,wBAUX"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultShimmerTokens = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
};
|
|
4
|
+
const consts_1 = require("./consts");
|
|
5
|
+
const defaultShimmerTokens = (theme) => ({
|
|
6
|
+
angle: consts_1.shimmerDefaultAngle,
|
|
7
|
+
backgroundColor: theme.colors.background,
|
|
8
|
+
delay: consts_1.shimmerDefaultDelay,
|
|
9
|
+
duration: consts_1.shimmerDefaultDuration,
|
|
10
|
+
shimmerColor: theme.colors.bodyFrameDivider,
|
|
11
|
+
shimmerColorOpacity: 1,
|
|
12
|
+
shimmerWaveColor: '#E1E1E1',
|
|
13
|
+
shimmerWaveColorOpacity: 1,
|
|
14
|
+
shimmerWaveWidth: '100%',
|
|
15
|
+
});
|
|
18
16
|
exports.defaultShimmerTokens = defaultShimmerTokens;
|
|
19
17
|
//# sourceMappingURL=ShimmerTokens.win32.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShimmerTokens.win32.js","sourceRoot":"","sources":["../src/ShimmerTokens.win32.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"ShimmerTokens.win32.js","sourceRoot":"","sources":["../src/ShimmerTokens.win32.ts"],"names":[],"mappings":";;;AAGA,qCAA4F;AAGrF,MAAM,oBAAoB,GAAwC,CAAC,KAAY,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,4BAAmB;IAC1B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU;IACxC,KAAK,EAAE,4BAAmB;IAC1B,QAAQ,EAAE,+BAAsB;IAChC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB;IAC3C,mBAAmB,EAAE,CAAC;IACtB,gBAAgB,EAAE,SAAS;IAC3B,uBAAuB,EAAE,CAAC;IAC1B,gBAAgB,EAAE,MAAM;CACP,CAAA,CAAC;AAXT,QAAA,oBAAoB,wBAWX"}
|