@cleartrip/ct-design-spinner 3.0.0 → 3.1.0-SNAPSHOT-test.6
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/dist/ct-design-spinner.browser.cjs.js +1 -1
- package/dist/ct-design-spinner.browser.cjs.js.map +1 -1
- package/dist/ct-design-spinner.browser.esm.js +1 -1
- package/dist/ct-design-spinner.browser.esm.js.map +1 -1
- package/dist/ct-design-spinner.cjs.js +5 -3
- package/dist/ct-design-spinner.cjs.js.map +1 -1
- package/dist/ct-design-spinner.esm.js +3 -1
- package/dist/ct-design-spinner.esm.js.map +1 -1
- package/dist/ct-design-spinner.umd.js +731 -7
- package/dist/ct-design-spinner.umd.js.map +1 -1
- package/dist/style.d.ts +5 -1
- package/dist/style.d.ts.map +1 -1
- package/dist/type.d.ts +3 -2
- package/dist/type.d.ts.map +1 -1
- package/package.json +11 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=require("react/jsx-runtime"),e=require("
|
|
1
|
+
"use strict";var n=require("react/jsx-runtime"),e=require("@cleartrip/ct-design-theme"),r=require("tslib"),t=require("@emotion/styled"),i=require("@emotion/react");function o(n){return n&&n.__esModule?n:{default:n}}var a,s,d=o(t).default.div(s||(s=r.__makeTemplateObject(["\n border: ",";\n border-radius: 50%;\n border-top: ",";\n width: ",";\n height: ",";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ","\n"],["\n border: ",";\n border-radius: 50%;\n border-top: ",";\n width: ",";\n height: ",";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ","\n"])),(function(n){var e=n.theme,r=n.height,t=parseInt(r||e.size[12])/6;return"".concat(t>0?t:8,"px solid ").concat(e.color.spinner.primaryBg)}),(function(n){var e=n.theme,r=n.height,t=n.borderColor,i=parseInt(r||e.size[12])/6;return"".concat(i>0?i:8,"px solid ").concat(t||e.color.spinner.primary)}),(function(n){var e=n.width,r=n.theme;return e||r.size[12]}),(function(n){var e=n.height,r=n.theme;return e||r.size[12]}),(function(n){var e=n.css;return e&&i.css(a||(a=r.__makeTemplateObject(["\n\t","\n "],["\n\t","\n "])),e)}));exports.Spinner=function(r){var t=r.height,i=void 0===t?"16px":t,o=r.width,a=void 0===o?"16px":o,s=r.borderColor,m=void 0===s?"":s,u=e.useTheme();return n.jsx(d,{theme:u,height:i,width:a,borderColor:m})};
|
|
2
2
|
//# sourceMappingURL=ct-design-spinner.browser.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-spinner.browser.cjs.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["StyledSpinner","default","div","_a","theme","height","spinerHeight","parseInt","size","concat","color","spinner","primaryBg","borderColor","primary","width","css","CSS","templateObject_1","__makeTemplateObject","_b","_c","_d","useTheme","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-spinner.browser.cjs.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["StyledSpinner","default","div","_a","theme","height","spinerHeight","parseInt","size","concat","color","spinner","primaryBg","borderColor","primary","width","css","CSS","templateObject_1","__makeTemplateObject","_b","_c","_d","useTheme","_jsx"],"mappings":"+NAIaA,OAAsBC,QAACC,4fAAiB,eAIlD,2CAKA,eACqD,gBACG,0XAyBzD,SAnCU,SAACC,OAAEC,EAAKD,EAAAC,MAAEC,EAAMF,EAAAE,OAClBC,EAAeC,SAASF,GAAUD,EAAMI,KAAK,KAAO,EAC1D,MAAO,GAAAC,OAAGH,EAAe,EAAIA,EAAe,EAAC,aAAAG,OAAYL,EAAMM,MAAMC,QAAQC,UAC/E,IAEc,SAACT,GAAE,IAAAC,UAAOC,EAAMF,EAAAE,OAAEQ,EAAWV,EAAAU,YACnCP,EAAeC,SAASF,GAAUD,EAAMI,KAAK,KAAO,EAC1D,MAAO,GAAAC,OAAGH,EAAe,EAAIA,EAAe,EAAa,aAAAG,OAAAI,GAAeT,EAAMM,MAAMC,QAAQG,QAC9F,IACS,SAACX,OAAEY,EAAKZ,EAAAY,MAAEX,EAAKD,EAAAC,MAAO,OAAAW,GAASX,EAAMI,KAAK,GAApB,IACrB,SAACL,OAAEE,EAAMF,EAAAE,OAAED,EAAKD,EAAAC,MAAO,OAAAC,GAAUD,EAAMI,KAAK,GAArB,IAqB/B,SAACL,GAAE,IAAAa,EAAGb,EAAAa,IACN,OAAAA,GACAC,EAAGD,IAAAE,IAAAA,EAAAC,EAAAA,qBAAA,CAAA,OAAA,OAAA,CAAA,OACkC,SAAtCH,EAFC,oBChCoB,SAAQb,GAAE,IAAAiB,EAAAjB,EAAAE,OAAAA,OAAM,IAAAe,EAAG,OAAMA,EAAEC,UAAAN,OAAQ,IAAAM,EAAA,SAAQC,EAAAnB,EAAAU,YAAAA,OAAW,IAAAS,EAAG,GAAEA,EAC3ElB,EAAQmB,EAAAA,WACd,OAAOC,MAACxB,EAAa,CAACI,MAAOA,EAAOC,OAAQA,EAAQU,MAAOA,EAAOF,YAAaA,GACjF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import r
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{useTheme as r}from"@cleartrip/ct-design-theme";import{__makeTemplateObject as t}from"tslib";import e from"@emotion/styled";import{css as i}from"@emotion/react";var o,a,s=e.div(a||(a=t(["\n border: ",";\n border-radius: 50%;\n border-top: ",";\n width: ",";\n height: ",";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ","\n"],["\n border: ",";\n border-radius: 50%;\n border-top: ",";\n width: ",";\n height: ",";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ","\n"])),(function(n){var r=n.theme,t=n.height,e=parseInt(t||r.size[12])/6;return"".concat(e>0?e:8,"px solid ").concat(r.color.spinner.primaryBg)}),(function(n){var r=n.theme,t=n.height,e=n.borderColor,i=parseInt(t||r.size[12])/6;return"".concat(i>0?i:8,"px solid ").concat(e||r.color.spinner.primary)}),(function(n){var r=n.width,t=n.theme;return r||t.size[12]}),(function(n){var r=n.height,t=n.theme;return r||t.size[12]}),(function(n){var r=n.css;return r&&i(o||(o=t(["\n\t","\n "],["\n\t","\n "])),r)}));function m(t){var e=t.height,i=void 0===e?"16px":e,o=t.width,a=void 0===o?"16px":o,m=t.borderColor,d=void 0===m?"":m,f=r();return n(s,{theme:f,height:i,width:a,borderColor:d})}export{m as Spinner};
|
|
2
2
|
//# sourceMappingURL=ct-design-spinner.browser.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-spinner.browser.esm.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["StyledSpinner","styled","div","_a","theme","height","spinerHeight","parseInt","size","concat","color","spinner","primaryBg","borderColor","primary","width","css","CSS","templateObject_1","__makeTemplateObject","Spinner","_b","_c","_d","useTheme","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-spinner.browser.esm.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["StyledSpinner","styled","div","_a","theme","height","spinerHeight","parseInt","size","concat","color","spinner","primaryBg","borderColor","primary","width","css","CSS","templateObject_1","__makeTemplateObject","Spinner","_b","_c","_d","useTheme","_jsx"],"mappings":"+MAIO,QAAMA,EAAgBC,EAAOC,ueAAiB,eAIlD,2CAKA,eACqD,gBACG,0XAyBzD,SAnCU,SAACC,OAAEC,EAAKD,EAAAC,MAAEC,EAAMF,EAAAE,OAClBC,EAAeC,SAASF,GAAUD,EAAMI,KAAK,KAAO,EAC1D,MAAO,GAAAC,OAAGH,EAAe,EAAIA,EAAe,EAAC,aAAAG,OAAYL,EAAMM,MAAMC,QAAQC,UAC/E,IAEc,SAACT,GAAE,IAAAC,UAAOC,EAAMF,EAAAE,OAAEQ,EAAWV,EAAAU,YACnCP,EAAeC,SAASF,GAAUD,EAAMI,KAAK,KAAO,EAC1D,MAAO,GAAAC,OAAGH,EAAe,EAAIA,EAAe,EAAa,aAAAG,OAAAI,GAAeT,EAAMM,MAAMC,QAAQG,QAC9F,IACS,SAACX,OAAEY,EAAKZ,EAAAY,MAAEX,EAAKD,EAAAC,MAAO,OAAAW,GAASX,EAAMI,KAAK,GAApB,IACrB,SAACL,OAAEE,EAAMF,EAAAE,OAAED,EAAKD,EAAAC,MAAO,OAAAC,GAAUD,EAAMI,KAAK,GAArB,IAqB/B,SAACL,GAAE,IAAAa,EAAGb,EAAAa,IACN,OAAAA,GACAC,EAAGC,IAAAA,EAAAC,EAAA,CAAA,OAAA,OAAA,CAAA,OACkC,SAAtCH,EAFC,IChCoB,SAAAI,EAAQjB,GAAE,IAAAkB,EAAAlB,EAAAE,OAAAA,OAAM,IAAAgB,EAAG,OAAMA,EAAEC,UAAAP,OAAQ,IAAAO,EAAA,SAAQC,EAAApB,EAAAU,YAAAA,OAAW,IAAAU,EAAG,GAAEA,EAC3EnB,EAAQoB,IACd,OAAOC,EAACzB,EAAa,CAACI,MAAOA,EAAOC,OAAQA,EAAQU,MAAOA,EAAOF,YAAaA,GACjF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var ctDesignTheme = require('@cleartrip/ct-design-theme');
|
|
5
5
|
var tslib = require('tslib');
|
|
6
|
+
var styled = require('@emotion/styled');
|
|
7
|
+
var react = require('@emotion/react');
|
|
6
8
|
|
|
7
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
10
|
|
|
@@ -24,13 +26,13 @@ var StyledSpinner = styled__default.default.div(templateObject_2 || (templateObj
|
|
|
24
26
|
return height || theme.size[12];
|
|
25
27
|
}, function (_a) {
|
|
26
28
|
var css = _a.css;
|
|
27
|
-
return css &&
|
|
29
|
+
return css && react.css(templateObject_1 || (templateObject_1 = tslib.__makeTemplateObject(["\n\t", "\n "], ["\n\t", "\n "])), css);
|
|
28
30
|
});
|
|
29
31
|
var templateObject_1, templateObject_2;
|
|
30
32
|
|
|
31
33
|
function Spinner(_a) {
|
|
32
34
|
var _b = _a.height, height = _b === void 0 ? '16px' : _b, _c = _a.width, width = _c === void 0 ? '16px' : _c, _d = _a.borderColor, borderColor = _d === void 0 ? '' : _d;
|
|
33
|
-
var theme =
|
|
35
|
+
var theme = ctDesignTheme.useTheme();
|
|
34
36
|
return jsxRuntime.jsx(StyledSpinner, { theme: theme, height: height, width: width, borderColor: borderColor });
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-spinner.cjs.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["styled","CSS","__makeTemplateObject","useTheme","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-spinner.cjs.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["styled","CSS","__makeTemplateObject","useTheme","_jsx"],"mappings":";;;;;;;;;;;;AAIO,IAAM,aAAa,GAAGA,uBAAM,CAAC,GAAG,qiBAAc,cACzC,EAGT,0CAEa,EAGb,cACQ,EAA6C,eAC5C,EAA+C,yXAqBvD,EAIF,IACD,CApCW,CAAA,CAAA,EAAA,UAAC,EAAiB,EAAA;QAAf,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA;AACxB,IAAA,IAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5D,OAAO,EAAA,CAAA,MAAA,CAAG,YAAY,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC,EAAA,WAAA,CAAA,CAAA,MAAA,CAAY,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAE,CAAC;AAC3F,CAAC,EAEa,UAAC,EAA8B,EAAA;AAA5B,IAAA,IAAA,KAAK,WAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MAAA,EAAE,WAAW,GAAA,EAAA,CAAA,WAAA,CAAA;AACzC,IAAA,IAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5D,OAAO,EAAA,CAAA,MAAA,CAAG,YAAY,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC,EAAY,WAAA,CAAA,CAAA,MAAA,CAAA,WAAW,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAE,CAAC;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@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { useTheme } from '@cleartrip/ct-design-theme';
|
|
3
3
|
import { __makeTemplateObject } from 'tslib';
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
|
+
import { css } from '@emotion/react';
|
|
4
6
|
|
|
5
7
|
var StyledSpinner = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", ";\n border-radius: 50%;\n border-top: ", ";\n width: ", ";\n height: ", ";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ", "\n"], ["\n border: ", ";\n border-radius: 50%;\n border-top: ", ";\n width: ", ";\n height: ", ";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ", "\n"])), function (_a) {
|
|
6
8
|
var theme = _a.theme, height = _a.height;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-spinner.esm.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["css","CSS","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-spinner.esm.js","sources":["../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":[null,null],"names":["css","CSS","_jsx"],"mappings":";;;;;;AAIO,IAAM,aAAa,GAAG,MAAM,CAAC,GAAG,+hBAAc,cACzC,EA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AA,OAAA,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAAxB,CAAwB,EAqBvD,UAAC,EAAO,EAAA;AAAL,IAAA,IAAAA,KAAG,GAAA,EAAA,CAAA,GAAA,CAAA;IACN,OAAAA,KAAG,IACHC,GAAG,CAAA,gBAAA,KAAA,gBAAA,GAAA,oBAAA,CAAA,CAAA,MAAA,EAAA,KAAA,CAAA,EAAA,CAAA,MACJ,EAAsC,KACvC,CADC,CAAA,CAAA,EAAAD,KAAsC,CACvC,CAAA;AAHE,CAGF,CACD,CAAC;;;ACpCsB,SAAA,OAAO,CAAC,EAAmE,EAAA;AAAjE,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,MAAe,EAAf,MAAM,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,MAAM,GAAA,EAAA,EAAE,aAAc,EAAd,KAAK,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,MAAM,KAAA,EAAE,EAAA,GAAA,EAAA,CAAA,WAAgB,EAAhB,WAAW,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,CAAA;AACjF,IAAA,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;AACzB,IAAA,OAAOE,IAAC,aAAa,EAAA,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,CAAC;AACjG;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('styled
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'styled
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemSpinner = {}, global.jsxRuntime, global.styled));
|
|
5
|
-
})(this, (function (exports, jsxRuntime, styled) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('@emotion/styled'), require('react'), require('@emotion/react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', '@emotion/styled', 'react', '@emotion/react'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemSpinner = {}, global.jsxRuntime, global.styled, global.React, global.react$1));
|
|
5
|
+
})(this, (function (exports, jsxRuntime, styled, react, react$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -22,8 +22,18 @@
|
|
|
22
22
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
23
|
PERFORMANCE OF THIS SOFTWARE.
|
|
24
24
|
***************************************************************************** */
|
|
25
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
25
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
26
26
|
|
|
27
|
+
var __assign = function () {
|
|
28
|
+
__assign = Object.assign || function __assign(t) {
|
|
29
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30
|
+
s = arguments[i];
|
|
31
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
};
|
|
35
|
+
return __assign.apply(this, arguments);
|
|
36
|
+
};
|
|
27
37
|
function __makeTemplateObject(cooked, raw) {
|
|
28
38
|
if (Object.defineProperty) {
|
|
29
39
|
Object.defineProperty(cooked, "raw", {
|
|
@@ -39,6 +49,720 @@
|
|
|
39
49
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
40
50
|
};
|
|
41
51
|
|
|
52
|
+
var border = {
|
|
53
|
+
radius: {
|
|
54
|
+
0: 0,
|
|
55
|
+
2: 2,
|
|
56
|
+
4: 4,
|
|
57
|
+
6: 6,
|
|
58
|
+
8: 8,
|
|
59
|
+
12: 12,
|
|
60
|
+
16: 16,
|
|
61
|
+
20: 20,
|
|
62
|
+
24: 24,
|
|
63
|
+
30: 30,
|
|
64
|
+
32: 32,
|
|
65
|
+
'50P': '50%',
|
|
66
|
+
60: 60
|
|
67
|
+
},
|
|
68
|
+
width: {
|
|
69
|
+
none: 0,
|
|
70
|
+
sm: 1,
|
|
71
|
+
md: 1.5,
|
|
72
|
+
lg: 2,
|
|
73
|
+
xl: 5
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
solid: 'solid',
|
|
77
|
+
dotted: 'dotted',
|
|
78
|
+
none: 'none'
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
var colors = {
|
|
82
|
+
alert: '#DF9641',
|
|
83
|
+
alert100: '#FFF8D4',
|
|
84
|
+
alert500: '#A06800',
|
|
85
|
+
alertBg: '#FCF7F0',
|
|
86
|
+
alertText: '#DF9641',
|
|
87
|
+
aqua100: '#082395',
|
|
88
|
+
aqua250: '#081C82',
|
|
89
|
+
bgPrimary: '#ED6521',
|
|
90
|
+
bgPrimaryHover: '#CE4501',
|
|
91
|
+
black: '#1A1A1A',
|
|
92
|
+
blue100: '#ECF3FF',
|
|
93
|
+
blue500: '#0F6BFF',
|
|
94
|
+
blue900: '#0E3A81',
|
|
95
|
+
bluePrimary500: '#2A55E5',
|
|
96
|
+
blueSecondary: '#F0F5FF',
|
|
97
|
+
blueSky500: '#3C6CE6',
|
|
98
|
+
brand: '#FF4F17',
|
|
99
|
+
brandBg: '#FEF3ED',
|
|
100
|
+
brandText: '#FF4F17',
|
|
101
|
+
brown: '#231B18',
|
|
102
|
+
coralpink: '#F48B6E',
|
|
103
|
+
curacao250: '#9FE3EA',
|
|
104
|
+
curacao900: '#032529',
|
|
105
|
+
darkGrey: '#313131',
|
|
106
|
+
darkNeutral300: '#E0E0E0',
|
|
107
|
+
disabled100: '#E6E6E6',
|
|
108
|
+
disabled250: '#DDDDDD',
|
|
109
|
+
disabledLight: '#EFEFEF',
|
|
110
|
+
disabledText: '#B3B3B3',
|
|
111
|
+
grapetini900: '#5f1ab6',
|
|
112
|
+
gray100: '#2E3042',
|
|
113
|
+
gray250: '#1A1C23',
|
|
114
|
+
gray500: '#ffffffb1',
|
|
115
|
+
greenFresh500: '#61C149',
|
|
116
|
+
highlightBg: 'rgba(255, 255, 255, 0.2)',
|
|
117
|
+
lightCyan: '#ECF9FB',
|
|
118
|
+
lightSkyBlue: '#88CDFF',
|
|
119
|
+
line: '#E7E7E7',
|
|
120
|
+
lineDarkNeutral300: '#E0E0E0',
|
|
121
|
+
link: '#0F6BFF',
|
|
122
|
+
link2: '#3366CC',
|
|
123
|
+
link2Hover: '#1A469D',
|
|
124
|
+
linkBg: '#EFF3FB',
|
|
125
|
+
linkText: '#0F6BFF',
|
|
126
|
+
margarita100: '#F2FAF0',
|
|
127
|
+
margarita250: '#C0E6B6',
|
|
128
|
+
margarita750: '#3A742C',
|
|
129
|
+
mintCream: '#F0FAF6',
|
|
130
|
+
neutral50: '#FFFFFF80',
|
|
131
|
+
neutral100: '#FFFFFF',
|
|
132
|
+
neutral200: '#FAFAFD',
|
|
133
|
+
neutral300: '#F3F3F3',
|
|
134
|
+
neutral350: '#DBDBDB',
|
|
135
|
+
neutral400: '#CAC9C9',
|
|
136
|
+
neutral500: '#B3B3B3',
|
|
137
|
+
neutral700: '#808080',
|
|
138
|
+
neutral900: '#1A1A1A',
|
|
139
|
+
orange100: '#FFF1EC',
|
|
140
|
+
orange200: '#FFF1ED',
|
|
141
|
+
orange250: '#FFB8A5',
|
|
142
|
+
orange500: '#FF4F17',
|
|
143
|
+
pinaColada100: '#FFF9EC',
|
|
144
|
+
pinaColada250: '#FEE3A0',
|
|
145
|
+
pinaColada750: '#98700B',
|
|
146
|
+
pinkVibrant500: '#EF4E9B',
|
|
147
|
+
primaryNeutral900: '#212121',
|
|
148
|
+
purple100: '#350041',
|
|
149
|
+
purple250: '#130016',
|
|
150
|
+
purpleRoyal500: '#8B39F1',
|
|
151
|
+
sandGrey100: '#fef5f2',
|
|
152
|
+
shadow: '#1a1a1a14',
|
|
153
|
+
success: '#11A670',
|
|
154
|
+
success500: '#11A670',
|
|
155
|
+
success600: '#0DA86D',
|
|
156
|
+
successBg: '#ECF8F4',
|
|
157
|
+
successText: '#11A670',
|
|
158
|
+
superBlue25: '#EBEFFF',
|
|
159
|
+
superBlue500: '#4D43FE',
|
|
160
|
+
superGreen500: '#B5EF85',
|
|
161
|
+
superGrey50: '#F9FAFB',
|
|
162
|
+
superGrey200: '#EAECF0',
|
|
163
|
+
superGrey300: '#D0D5DD',
|
|
164
|
+
superGrey400: '#98A2B3',
|
|
165
|
+
superGrey500: '#667085',
|
|
166
|
+
superGrey700: '#344054',
|
|
167
|
+
superGrey800: '#1D2939',
|
|
168
|
+
systemGreen500: '#12B76A',
|
|
169
|
+
systemRed500: '#FA2617',
|
|
170
|
+
transparent: '#00000000',
|
|
171
|
+
warning: '#C83232',
|
|
172
|
+
warningBg: '#FBEFEF',
|
|
173
|
+
warningText: '#C83232',
|
|
174
|
+
yellowSecondary: '#FFC200',
|
|
175
|
+
yellowSun500: '#FDBA12'
|
|
176
|
+
};
|
|
177
|
+
var elevation = {
|
|
178
|
+
bottomE1: '0px 1px 0px #E7E7E7',
|
|
179
|
+
bottomE2: '0px 4px 16px rgba(26, 26, 26, 0.08)',
|
|
180
|
+
bottomE3: '0px 8px 24px rgba(26, 26, 26, 0.1)',
|
|
181
|
+
bottomE4: '0px 10px 32px rgba(26, 26, 26, 0.2)',
|
|
182
|
+
topE1: '0px -1px 0px #E7E7E7',
|
|
183
|
+
topE2: '0px -4px 16px rgba(26, 26, 26, 0.08)',
|
|
184
|
+
topE3: '0px -8px 24px rgba(26, 26, 26, 0.1)',
|
|
185
|
+
topE4: '0px -10px 32px rgba(26, 26, 26, 0.2)',
|
|
186
|
+
modalBlurLight: 'rgb(0 0 0 / 20%) 0px 11px 15px -7px',
|
|
187
|
+
modalBlurMedium: 'rgb(0 0 0 / 14%) 0px 24px 38px 3px',
|
|
188
|
+
modalBlurHeavy: 'rgb(0 0 0 / 12%) 0px 9px 22px 18px'
|
|
189
|
+
};
|
|
190
|
+
var size = {
|
|
191
|
+
0: 0,
|
|
192
|
+
0.5: 2,
|
|
193
|
+
1: 4,
|
|
194
|
+
2: 8,
|
|
195
|
+
'2.5': 10,
|
|
196
|
+
3: 12,
|
|
197
|
+
4: 16,
|
|
198
|
+
5: 20,
|
|
199
|
+
6: 24,
|
|
200
|
+
7: 28,
|
|
201
|
+
8: 32,
|
|
202
|
+
9: 36,
|
|
203
|
+
10: 40,
|
|
204
|
+
11: 44,
|
|
205
|
+
12: 48,
|
|
206
|
+
13: 52,
|
|
207
|
+
14: 56,
|
|
208
|
+
15: 60,
|
|
209
|
+
16: 64,
|
|
210
|
+
19: 76,
|
|
211
|
+
20: 80,
|
|
212
|
+
50: 200,
|
|
213
|
+
55: 220,
|
|
214
|
+
'50P': '50%',
|
|
215
|
+
'100P': '100%'
|
|
216
|
+
};
|
|
217
|
+
var spacing = {
|
|
218
|
+
0: 0,
|
|
219
|
+
0.5: 2,
|
|
220
|
+
0.75: 3,
|
|
221
|
+
1: 4,
|
|
222
|
+
1.5: 6,
|
|
223
|
+
2: 8,
|
|
224
|
+
3: 12,
|
|
225
|
+
4: 16,
|
|
226
|
+
5: 20,
|
|
227
|
+
6: 24,
|
|
228
|
+
7: 28,
|
|
229
|
+
8: 32,
|
|
230
|
+
9: 36,
|
|
231
|
+
10: 40,
|
|
232
|
+
11: 44,
|
|
233
|
+
12: 48,
|
|
234
|
+
13: 52,
|
|
235
|
+
14: 56,
|
|
236
|
+
16: 64
|
|
237
|
+
};
|
|
238
|
+
var typography = {
|
|
239
|
+
weight: {
|
|
240
|
+
bold: 700,
|
|
241
|
+
semibold: 600,
|
|
242
|
+
medium: 500,
|
|
243
|
+
normal: 400
|
|
244
|
+
},
|
|
245
|
+
size: {
|
|
246
|
+
10: 10,
|
|
247
|
+
12: 12,
|
|
248
|
+
14: 14,
|
|
249
|
+
16: 16,
|
|
250
|
+
20: 20,
|
|
251
|
+
24: 24,
|
|
252
|
+
32: 32,
|
|
253
|
+
40: 40,
|
|
254
|
+
48: 48
|
|
255
|
+
},
|
|
256
|
+
lineHeight: {
|
|
257
|
+
12: 12,
|
|
258
|
+
14: 14,
|
|
259
|
+
16: 16,
|
|
260
|
+
18: 18,
|
|
261
|
+
20: 20,
|
|
262
|
+
22: 22,
|
|
263
|
+
24: 24,
|
|
264
|
+
28: 28,
|
|
265
|
+
32: 32,
|
|
266
|
+
40: 40,
|
|
267
|
+
48: 48,
|
|
268
|
+
56: 56
|
|
269
|
+
},
|
|
270
|
+
letterSpacing: {
|
|
271
|
+
nPoint75: -0.75,
|
|
272
|
+
nPoint5: -0.5,
|
|
273
|
+
nPoint4: -0.4,
|
|
274
|
+
nPoint25: -0.25,
|
|
275
|
+
zero: 0,
|
|
276
|
+
point4: 0.4,
|
|
277
|
+
point5: 0.5,
|
|
278
|
+
point75: 0.75
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
var duration = {
|
|
283
|
+
shortest: 150,
|
|
284
|
+
shorter: 200,
|
|
285
|
+
short: 250,
|
|
286
|
+
standard: 300,
|
|
287
|
+
complex: 375,
|
|
288
|
+
enteringScreen: 225,
|
|
289
|
+
leavingScreen: 195
|
|
290
|
+
};
|
|
291
|
+
var easing = {
|
|
292
|
+
easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
293
|
+
easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
|
|
294
|
+
easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
|
|
295
|
+
sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
|
|
296
|
+
};
|
|
297
|
+
function getAutoHeightDuration(height) {
|
|
298
|
+
if (!height) {
|
|
299
|
+
return 0;
|
|
300
|
+
}
|
|
301
|
+
var constant = height / 36;
|
|
302
|
+
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
|
303
|
+
}
|
|
304
|
+
var create = function (props, options) {
|
|
305
|
+
if (props === void 0) {
|
|
306
|
+
props = ['all'];
|
|
307
|
+
}
|
|
308
|
+
if (options === void 0) {
|
|
309
|
+
options = {};
|
|
310
|
+
}
|
|
311
|
+
var _a = options.duration,
|
|
312
|
+
durationOption = _a === void 0 ? duration.standard : _a,
|
|
313
|
+
_b = options.easing,
|
|
314
|
+
easingOption = _b === void 0 ? easing.easeInOut : _b,
|
|
315
|
+
_c = options.delay,
|
|
316
|
+
delay = _c === void 0 ? 0 : _c;
|
|
317
|
+
return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
|
|
318
|
+
return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : "".concat(durationOption, "ms"), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : "".concat(delay, "ms"));
|
|
319
|
+
}).join(',');
|
|
320
|
+
};
|
|
321
|
+
var hover$3 = function (key) {
|
|
322
|
+
var _a;
|
|
323
|
+
var bg = (_a = {}, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.brand] = colors.bgPrimaryHover, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a[colors.neutral100] = colors.neutral100, _a[colors.link2] = colors.link2Hover, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a);
|
|
324
|
+
return bg[key];
|
|
325
|
+
};
|
|
326
|
+
var zIndex = {
|
|
327
|
+
drawer: 1200,
|
|
328
|
+
modal: 1300,
|
|
329
|
+
popOver: 1300,
|
|
330
|
+
tooltip: 1500,
|
|
331
|
+
sideNav: 100,
|
|
332
|
+
toolbar: 50,
|
|
333
|
+
bottomSheet: 100
|
|
334
|
+
};
|
|
335
|
+
var counter$1 = {
|
|
336
|
+
enabled: {
|
|
337
|
+
stroke: colors.neutral900
|
|
338
|
+
},
|
|
339
|
+
disabled: {
|
|
340
|
+
stroke: colors.neutral500
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
var BaseTheme = {
|
|
344
|
+
color: {
|
|
345
|
+
text: {
|
|
346
|
+
primary: colors.neutral900,
|
|
347
|
+
secondary: colors.brandText,
|
|
348
|
+
tertiary: colors.neutral500,
|
|
349
|
+
heading: colors.neutral900,
|
|
350
|
+
subHeading: colors.neutral700,
|
|
351
|
+
disabled: colors.disabledText,
|
|
352
|
+
success: colors.successText,
|
|
353
|
+
alert: colors.alertText,
|
|
354
|
+
alert500: colors.alert500,
|
|
355
|
+
warning: colors.warningText,
|
|
356
|
+
link: colors.linkText,
|
|
357
|
+
brand: colors.brandText,
|
|
358
|
+
neutral: colors.neutral100,
|
|
359
|
+
link2: colors.link2,
|
|
360
|
+
margarita: colors.margarita750,
|
|
361
|
+
primary2: colors.grapetini900,
|
|
362
|
+
secondary2: colors.blue100,
|
|
363
|
+
grapetini900: colors.grapetini900,
|
|
364
|
+
pinaColada750: colors.pinaColada750,
|
|
365
|
+
neutral50: colors.neutral50,
|
|
366
|
+
coralpink: colors.coralpink
|
|
367
|
+
},
|
|
368
|
+
button: {
|
|
369
|
+
outlinedPrimaryLabel: colors.neutral900,
|
|
370
|
+
outlinedPrimaryBorder: colors.neutral900,
|
|
371
|
+
outlinedPrimaryBg: colors.neutral100,
|
|
372
|
+
outlinedSecondaryLabel: colors.brand,
|
|
373
|
+
outlinedSecondaryBorder: colors.brand,
|
|
374
|
+
outlinedSecondaryBg: colors.neutral100,
|
|
375
|
+
outlinedTertiaryLabel: colors.link,
|
|
376
|
+
outlinedTertiaryBorder: colors.link,
|
|
377
|
+
outlinedTertiaryBg: colors.neutral100,
|
|
378
|
+
outlinedNeutralLabel: colors.neutral100,
|
|
379
|
+
outlinedNeutralBorder: colors.neutral100,
|
|
380
|
+
outlinedNeutralBg: colors.transparent,
|
|
381
|
+
outlinedDisabledLabel: colors.disabledText,
|
|
382
|
+
outlinedDisabledBg: colors.neutral300,
|
|
383
|
+
containedPrimaryLabel: colors.neutral100,
|
|
384
|
+
containedPrimaryBg: colors.neutral900,
|
|
385
|
+
containedSecondaryLabel: colors.neutral100,
|
|
386
|
+
containedSecondaryBg: colors.brand,
|
|
387
|
+
containedTertiaryLabel: colors.neutral100,
|
|
388
|
+
containedTertiaryBg: colors.link,
|
|
389
|
+
containedDisabledLabel: colors.disabledText,
|
|
390
|
+
containedDisabledBg: colors.neutral300,
|
|
391
|
+
containedNeutralLabel: colors.neutral900,
|
|
392
|
+
containedNeutralBg: colors.neutral100,
|
|
393
|
+
hover: hover$3
|
|
394
|
+
},
|
|
395
|
+
chip: {
|
|
396
|
+
nonSelectedPrimaryLabel: colors.neutral900,
|
|
397
|
+
disabledPrimaryLabel: colors.disabledText,
|
|
398
|
+
selectedPrimaryLabel: colors.neutral900,
|
|
399
|
+
selectedPrimaryBorder: colors.neutral900,
|
|
400
|
+
selectedPrimaryBg: colors.neutral300,
|
|
401
|
+
disabledPrimaryBg: colors.neutral100
|
|
402
|
+
},
|
|
403
|
+
dropdown: {
|
|
404
|
+
shadow: colors.shadow
|
|
405
|
+
},
|
|
406
|
+
tab: {
|
|
407
|
+
nonSelectedPrimaryLabel: colors.neutral700,
|
|
408
|
+
selectedPrimaryLabel: colors.neutral900
|
|
409
|
+
},
|
|
410
|
+
sidenav: {
|
|
411
|
+
primaryBg: colors.neutral900,
|
|
412
|
+
selectedTabBg: colors.highlightBg
|
|
413
|
+
},
|
|
414
|
+
tooltip: {
|
|
415
|
+
primaryBg: colors.neutral900
|
|
416
|
+
},
|
|
417
|
+
background: {
|
|
418
|
+
primary: colors.neutral900,
|
|
419
|
+
secondary: colors.brand,
|
|
420
|
+
tertiary: colors.link,
|
|
421
|
+
brand: colors.brand,
|
|
422
|
+
brandLightBg: colors.brandBg,
|
|
423
|
+
link: colors.link,
|
|
424
|
+
link2: colors.link2,
|
|
425
|
+
linkLightBg: colors.linkBg,
|
|
426
|
+
success: colors.success,
|
|
427
|
+
successLightBg: colors.successBg,
|
|
428
|
+
alert: colors.alert,
|
|
429
|
+
alertLightBg: colors.alertBg,
|
|
430
|
+
alertSoft: colors.alert100,
|
|
431
|
+
warning: colors.warning,
|
|
432
|
+
warningLightBg: colors.warningBg,
|
|
433
|
+
neutral: colors.neutral100,
|
|
434
|
+
disabled: colors.neutral300,
|
|
435
|
+
disabledSecondaryLight: colors.neutral350,
|
|
436
|
+
disabledSecondary: colors.neutral400,
|
|
437
|
+
disabledDark: colors.disabled100,
|
|
438
|
+
defaultDark: colors.neutral700,
|
|
439
|
+
defaultDarkest: colors.neutral900,
|
|
440
|
+
grey: colors.neutral500,
|
|
441
|
+
secondary2: colors.blue100,
|
|
442
|
+
sandGrey100: colors.sandGrey100
|
|
443
|
+
},
|
|
444
|
+
border: {
|
|
445
|
+
primary: colors.neutral900,
|
|
446
|
+
secondary: colors.brand,
|
|
447
|
+
tertiary: colors.link,
|
|
448
|
+
brand: colors.brand,
|
|
449
|
+
neutral: colors.neutral900,
|
|
450
|
+
link: colors.link,
|
|
451
|
+
default: colors.line,
|
|
452
|
+
defaultDark: colors.neutral700,
|
|
453
|
+
disabled: colors.neutral500,
|
|
454
|
+
disabledDark: colors.disabled100,
|
|
455
|
+
warning: colors.warning,
|
|
456
|
+
divider: colors.neutral300
|
|
457
|
+
},
|
|
458
|
+
spinner: {
|
|
459
|
+
primary: colors.neutral700,
|
|
460
|
+
primaryBg: colors.alertBg
|
|
461
|
+
},
|
|
462
|
+
shimmer: {
|
|
463
|
+
disabledLight: colors.disabledLight,
|
|
464
|
+
disabledDark: colors.disabled250
|
|
465
|
+
},
|
|
466
|
+
coupon: {
|
|
467
|
+
primaryBg: colors.blue100
|
|
468
|
+
},
|
|
469
|
+
alert: {
|
|
470
|
+
success: colors.successBg,
|
|
471
|
+
warning: colors.alertBg,
|
|
472
|
+
info: colors.blue100,
|
|
473
|
+
error: colors.orange100,
|
|
474
|
+
neutral: colors.neutral100
|
|
475
|
+
},
|
|
476
|
+
badge: {
|
|
477
|
+
curacao: colors.curacao250,
|
|
478
|
+
curacao900: colors.curacao900,
|
|
479
|
+
pinaColada: colors.pinaColada250,
|
|
480
|
+
margarita250: colors.margarita250,
|
|
481
|
+
default: colors.neutral300,
|
|
482
|
+
green: colors.successBg,
|
|
483
|
+
margarita100: colors.margarita100,
|
|
484
|
+
yellow: colors.alertBg,
|
|
485
|
+
orange100: colors.orange100,
|
|
486
|
+
orange250: colors.orange250,
|
|
487
|
+
orange500: colors.orange500,
|
|
488
|
+
red: colors.warningBg,
|
|
489
|
+
green500: colors.success500,
|
|
490
|
+
green600: colors.success600,
|
|
491
|
+
purple100: colors.purple100,
|
|
492
|
+
purple250: colors.purple250,
|
|
493
|
+
gray100: colors.gray100,
|
|
494
|
+
gray250: colors.gray250,
|
|
495
|
+
aqua100: colors.aqua100,
|
|
496
|
+
aqua250: colors.aqua250,
|
|
497
|
+
black: colors.black,
|
|
498
|
+
link: colors.link,
|
|
499
|
+
linkText: colors.linkText,
|
|
500
|
+
blue100: colors.blue100,
|
|
501
|
+
blue500: colors.blue500,
|
|
502
|
+
blue900: colors.blue900,
|
|
503
|
+
neutral100: colors.neutral100,
|
|
504
|
+
pinaColada750: colors.pinaColada750,
|
|
505
|
+
pinaColada100: colors.pinaColada100,
|
|
506
|
+
brown: colors.brown
|
|
507
|
+
},
|
|
508
|
+
counter: counter$1,
|
|
509
|
+
calendar: {
|
|
510
|
+
accent: colors.neutral900,
|
|
511
|
+
background: colors.neutral300,
|
|
512
|
+
selected: colors.neutral900
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
elevation: __assign({}, elevation),
|
|
516
|
+
border: __assign({}, border),
|
|
517
|
+
spacing: __assign({}, spacing),
|
|
518
|
+
typography: __assign({}, typography),
|
|
519
|
+
size: __assign({}, size),
|
|
520
|
+
transitions: {
|
|
521
|
+
duration: duration,
|
|
522
|
+
easing: easing,
|
|
523
|
+
create: create,
|
|
524
|
+
getAutoHeightDuration: getAutoHeightDuration
|
|
525
|
+
},
|
|
526
|
+
underline: {
|
|
527
|
+
link: '',
|
|
528
|
+
primary: '',
|
|
529
|
+
secondary: '',
|
|
530
|
+
tertiary: '',
|
|
531
|
+
disabled: '',
|
|
532
|
+
heading: '',
|
|
533
|
+
subHeading: '',
|
|
534
|
+
success: '',
|
|
535
|
+
warning: '',
|
|
536
|
+
neutral: '',
|
|
537
|
+
link2: '',
|
|
538
|
+
primary2: '',
|
|
539
|
+
secondary2: '',
|
|
540
|
+
grapetini900: '',
|
|
541
|
+
pinaColada750: '',
|
|
542
|
+
alert: ''
|
|
543
|
+
},
|
|
544
|
+
zIndex: zIndex
|
|
545
|
+
};
|
|
546
|
+
var B2CTheme = __assign({}, BaseTheme);
|
|
547
|
+
var hover$2 = function (key) {
|
|
548
|
+
var _a;
|
|
549
|
+
var bg = (_a = {}, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.brand] = colors.bgPrimaryHover, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a[colors.neutral100] = colors.neutral100, _a[colors.link2] = colors.link2Hover, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a);
|
|
550
|
+
return bg[key];
|
|
551
|
+
};
|
|
552
|
+
__assign(__assign({}, BaseTheme), {
|
|
553
|
+
color: __assign(__assign({}, BaseTheme.color), {
|
|
554
|
+
text: __assign(__assign({}, BaseTheme.color.text), {
|
|
555
|
+
secondary: colors.link2,
|
|
556
|
+
tertiary: colors.neutral500
|
|
557
|
+
}),
|
|
558
|
+
button: __assign(__assign({}, BaseTheme.color.button), {
|
|
559
|
+
outlinedPrimaryLabel: colors.link2,
|
|
560
|
+
outlinedPrimaryBorder: colors.link2,
|
|
561
|
+
outlinedPrimaryBg: colors.neutral100,
|
|
562
|
+
outlinedSecondaryLabel: colors.neutral900,
|
|
563
|
+
outlinedSecondaryBorder: colors.neutral900,
|
|
564
|
+
outlinedSecondaryBg: colors.neutral100,
|
|
565
|
+
outlinedTertiaryLabel: colors.brand,
|
|
566
|
+
outlinedTertiaryBorder: colors.brand,
|
|
567
|
+
outlinedTertiaryBg: colors.neutral100,
|
|
568
|
+
outlinedDisabledLabel: colors.disabledText,
|
|
569
|
+
outlinedDisabledBg: colors.neutral300,
|
|
570
|
+
containedPrimaryLabel: colors.neutral100,
|
|
571
|
+
containedPrimaryBg: colors.link2,
|
|
572
|
+
containedSecondaryLabel: colors.neutral100,
|
|
573
|
+
containedSecondaryBg: colors.neutral900,
|
|
574
|
+
containedTertiaryLabel: colors.neutral100,
|
|
575
|
+
containedTertiaryBg: colors.brand,
|
|
576
|
+
containedDisabledLabel: colors.disabledText,
|
|
577
|
+
containedDisabledBg: colors.neutral300,
|
|
578
|
+
hover: hover$2
|
|
579
|
+
}),
|
|
580
|
+
chip: __assign(__assign({}, BaseTheme.color.chip), {
|
|
581
|
+
selectedPrimaryLabel: colors.link2,
|
|
582
|
+
selectedPrimaryBorder: colors.link2,
|
|
583
|
+
selectedPrimaryBg: colors.linkBg
|
|
584
|
+
}),
|
|
585
|
+
tab: __assign(__assign({}, BaseTheme.color.tab), {
|
|
586
|
+
nonSelectedPrimaryLabel: colors.neutral900,
|
|
587
|
+
selectedPrimaryLabel: colors.link2
|
|
588
|
+
}),
|
|
589
|
+
background: __assign(__assign({}, BaseTheme.color.background), {
|
|
590
|
+
primary: colors.link2,
|
|
591
|
+
secondary: colors.neutral900,
|
|
592
|
+
tertiary: colors.brand
|
|
593
|
+
}),
|
|
594
|
+
border: __assign(__assign({}, BaseTheme.color.border), {
|
|
595
|
+
primary: colors.link2,
|
|
596
|
+
secondary: colors.neutral900,
|
|
597
|
+
tertiary: colors.brand,
|
|
598
|
+
divider: colors.line
|
|
599
|
+
}),
|
|
600
|
+
spinner: {
|
|
601
|
+
primary: colors.link2,
|
|
602
|
+
primaryBg: colors.alertBg
|
|
603
|
+
},
|
|
604
|
+
calendar: {
|
|
605
|
+
accent: '',
|
|
606
|
+
background: '',
|
|
607
|
+
selected: colors.link2
|
|
608
|
+
}
|
|
609
|
+
})
|
|
610
|
+
});
|
|
611
|
+
var hover$1 = function (key) {
|
|
612
|
+
var _a;
|
|
613
|
+
var bg = (_a = {}, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.brand] = colors.bgPrimaryHover, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a[colors.neutral100] = colors.neutral100, _a[colors.link2] = colors.link2Hover, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.neutral100] = colors.neutral100, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a[colors.bluePrimary500] = colors.bluePrimary500, _a[colors.yellowSecondary] = colors.yellowSecondary, _a);
|
|
614
|
+
return bg[key];
|
|
615
|
+
};
|
|
616
|
+
var counter = {
|
|
617
|
+
enabled: {
|
|
618
|
+
stroke: colors.bluePrimary500
|
|
619
|
+
},
|
|
620
|
+
disabled: {
|
|
621
|
+
stroke: colors.neutral500
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
__assign(__assign({}, BaseTheme), {
|
|
625
|
+
color: __assign(__assign({}, BaseTheme.color), {
|
|
626
|
+
text: __assign(__assign({}, BaseTheme.color.text), {
|
|
627
|
+
link: colors.bluePrimary500
|
|
628
|
+
}),
|
|
629
|
+
button: __assign(__assign({}, BaseTheme.color.button), {
|
|
630
|
+
outlinedPrimaryLabel: colors.primaryNeutral900,
|
|
631
|
+
outlinedPrimaryBg: colors.neutral100,
|
|
632
|
+
containedPrimaryLabel: colors.neutral100,
|
|
633
|
+
containedPrimaryBg: colors.bluePrimary500,
|
|
634
|
+
containedSecondaryLabel: colors.primaryNeutral900,
|
|
635
|
+
containedSecondaryBg: colors.yellowSecondary,
|
|
636
|
+
hover: hover$1
|
|
637
|
+
}),
|
|
638
|
+
chip: __assign(__assign({}, BaseTheme.color.chip), {
|
|
639
|
+
selectedPrimaryLabel: colors.link2,
|
|
640
|
+
selectedPrimaryBorder: colors.link2,
|
|
641
|
+
selectedPrimaryBg: colors.linkBg,
|
|
642
|
+
nonSelectedPrimaryLabel: colors.neutral900
|
|
643
|
+
}),
|
|
644
|
+
tab: __assign(__assign({}, BaseTheme.color.tab), {
|
|
645
|
+
nonSelectedPrimaryLabel: colors.neutral900,
|
|
646
|
+
selectedPrimaryLabel: colors.bluePrimary500
|
|
647
|
+
}),
|
|
648
|
+
background: __assign(__assign({}, BaseTheme.color.background), {
|
|
649
|
+
primary: colors.bluePrimary500,
|
|
650
|
+
secondary: colors.neutral900,
|
|
651
|
+
tertiary: colors.brand,
|
|
652
|
+
linkLightBg: colors.blueSecondary
|
|
653
|
+
}),
|
|
654
|
+
border: __assign(__assign({}, BaseTheme.color.border), {
|
|
655
|
+
primary: colors.bluePrimary500,
|
|
656
|
+
brand: colors.bluePrimary500
|
|
657
|
+
}),
|
|
658
|
+
spinner: {
|
|
659
|
+
primary: colors.link2,
|
|
660
|
+
primaryBg: colors.alertBg
|
|
661
|
+
},
|
|
662
|
+
counter: counter,
|
|
663
|
+
calendar: {
|
|
664
|
+
accent: colors.bluePrimary500,
|
|
665
|
+
background: colors.blueSecondary,
|
|
666
|
+
selected: colors.bluePrimary500
|
|
667
|
+
}
|
|
668
|
+
})
|
|
669
|
+
});
|
|
670
|
+
var hover = function (key) {
|
|
671
|
+
var _a;
|
|
672
|
+
var bg = (_a = {}, _a[colors.neutral100] = colors.neutral100, _a[colors.brand] = colors.bgPrimaryHover, _a[colors.disabledText] = colors.disabledText, _a[colors.neutral300] = colors.neutral300, _a[colors.link2] = colors.link2Hover, _a[colors.neutral100] = colors.neutral100, _a[colors.neutral900] = colors.neutral900, _a[colors.superGrey700] = colors.superGrey700, _a[colors.superGrey300] = colors.superGrey300, _a[colors.superGrey800] = colors.superGrey800, _a[colors.superGreen500] = colors.superGreen500, _a);
|
|
673
|
+
return bg[key];
|
|
674
|
+
};
|
|
675
|
+
__assign(__assign({}, BaseTheme), {
|
|
676
|
+
color: __assign(__assign({}, BaseTheme.color), {
|
|
677
|
+
text: __assign(__assign({}, BaseTheme.color.text), {
|
|
678
|
+
primary: colors.superGrey800,
|
|
679
|
+
secondary: colors.superGrey500,
|
|
680
|
+
tertiary: colors.superGrey400,
|
|
681
|
+
warning: colors.systemRed500,
|
|
682
|
+
disabled: colors.superGrey400,
|
|
683
|
+
subHeading: colors.superGrey400,
|
|
684
|
+
success: colors.systemGreen500,
|
|
685
|
+
link: colors.superBlue500,
|
|
686
|
+
link2: colors.superBlue500
|
|
687
|
+
}),
|
|
688
|
+
button: __assign(__assign({}, BaseTheme.color.button), {
|
|
689
|
+
outlinedPrimaryLabel: colors.superGrey700,
|
|
690
|
+
outlinedPrimaryBorder: colors.superGrey300,
|
|
691
|
+
outlinedTertiaryLabel: colors.superGrey700,
|
|
692
|
+
outlinedTertiaryBorder: colors.superGrey300,
|
|
693
|
+
outlinedDisabledLabel: colors.disabledText,
|
|
694
|
+
containedSecondaryLabel: colors.superGrey800,
|
|
695
|
+
containedPrimaryBg: colors.superBlue500,
|
|
696
|
+
containedSecondaryBg: colors.superGreen500,
|
|
697
|
+
containedTertiaryLabel: colors.superGrey300,
|
|
698
|
+
containedDisabledLabel: colors.disabledText,
|
|
699
|
+
containedPrimaryLabel: colors.neutral100,
|
|
700
|
+
hover: hover
|
|
701
|
+
}),
|
|
702
|
+
chip: __assign(__assign({}, BaseTheme.color.chip), {
|
|
703
|
+
selectedPrimaryLabel: colors.superBlue500,
|
|
704
|
+
selectedPrimaryBorder: colors.superBlue500,
|
|
705
|
+
selectedPrimaryBg: colors.superBlue25,
|
|
706
|
+
disabledPrimaryLabel: colors.superGrey400,
|
|
707
|
+
nonSelectedPrimaryLabel: colors.superGrey700,
|
|
708
|
+
disabledPrimaryBg: colors.superGrey200
|
|
709
|
+
}),
|
|
710
|
+
tab: __assign(__assign({}, BaseTheme.color.tab), {
|
|
711
|
+
nonSelectedPrimaryLabel: colors.superGrey500,
|
|
712
|
+
selectedPrimaryLabel: colors.superBlue500
|
|
713
|
+
}),
|
|
714
|
+
background: __assign(__assign({}, BaseTheme.color.background), {
|
|
715
|
+
primary: colors.superBlue500,
|
|
716
|
+
disabled: colors.superGrey50,
|
|
717
|
+
disabledDark: colors.superGrey300,
|
|
718
|
+
warning: colors.systemRed500
|
|
719
|
+
}),
|
|
720
|
+
border: __assign(__assign({}, BaseTheme.color.border), {
|
|
721
|
+
primary: colors.superBlue500,
|
|
722
|
+
secondary: colors.neutral900,
|
|
723
|
+
disabledDark: colors.superGrey300,
|
|
724
|
+
defaultDark: colors.superGrey400,
|
|
725
|
+
default: colors.superGrey300,
|
|
726
|
+
disabled: colors.superGrey200
|
|
727
|
+
})
|
|
728
|
+
})
|
|
729
|
+
});
|
|
730
|
+
var ThemeContext = react.createContext({
|
|
731
|
+
theme: B2CTheme,
|
|
732
|
+
platform: 'mobile'
|
|
733
|
+
});
|
|
734
|
+
var useTheme = function () {
|
|
735
|
+
var themeContext = react.useContext(ThemeContext);
|
|
736
|
+
var theme = (themeContext || {
|
|
737
|
+
theme: B2CTheme
|
|
738
|
+
}).theme;
|
|
739
|
+
return theme;
|
|
740
|
+
};
|
|
741
|
+
var ThemeManagerClass = function () {
|
|
742
|
+
function ThemeManagerClass() {
|
|
743
|
+
if (ThemeManagerClass.instance) {
|
|
744
|
+
throw new Error('You can only create one instance!');
|
|
745
|
+
}
|
|
746
|
+
ThemeManagerClass.instance = this;
|
|
747
|
+
this.theme = B2CTheme;
|
|
748
|
+
}
|
|
749
|
+
ThemeManagerClass.prototype.set = function (theme) {
|
|
750
|
+
switch (theme) {
|
|
751
|
+
case 'B2C':
|
|
752
|
+
default:
|
|
753
|
+
{
|
|
754
|
+
this.theme = B2CTheme;
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
ThemeManagerClass.prototype.get = function () {
|
|
760
|
+
return this.theme;
|
|
761
|
+
};
|
|
762
|
+
return ThemeManagerClass;
|
|
763
|
+
}();
|
|
764
|
+
Object.freeze(new ThemeManagerClass());
|
|
765
|
+
|
|
42
766
|
var StyledSpinner = styled__default.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", ";\n border-radius: 50%;\n border-top: ", ";\n width: ", ";\n height: ", ";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ", "\n"], ["\n border: ", ";\n border-radius: 50%;\n border-top: ", ";\n width: ", ";\n height: ", ";\n -webkit-animation: spin 2s linear infinite;\n animation: spin 2s linear infinite;\n\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n ", "\n"])), function (_a) {
|
|
43
767
|
var theme = _a.theme, height = _a.height;
|
|
44
768
|
var spinerHeight = parseInt(height || theme.size[12]) / 6;
|
|
@@ -55,13 +779,13 @@
|
|
|
55
779
|
return height || theme.size[12];
|
|
56
780
|
}, function (_a) {
|
|
57
781
|
var css = _a.css;
|
|
58
|
-
return css &&
|
|
782
|
+
return css && react$1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n "], ["\n\t", "\n "])), css);
|
|
59
783
|
});
|
|
60
784
|
var templateObject_1, templateObject_2;
|
|
61
785
|
|
|
62
786
|
function Spinner(_a) {
|
|
63
787
|
var _b = _a.height, height = _b === void 0 ? '16px' : _b, _c = _a.width, width = _c === void 0 ? '16px' : _c, _d = _a.borderColor, borderColor = _d === void 0 ? '' : _d;
|
|
64
|
-
var theme =
|
|
788
|
+
var theme = useTheme();
|
|
65
789
|
return jsxRuntime.jsx(StyledSpinner, { theme: theme, height: height, width: width, borderColor: borderColor });
|
|
66
790
|
}
|
|
67
791
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-spinner.umd.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null],"names":["__makeTemplateObject","cooked","raw","Object","defineProperty","value","SuppressedError","error","suppressed","message","e","Error","name","styled","CSS","useTheme","_jsx"],"mappings":";;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;IA+OO,SAASA,oBAAoBA,CAACC,MAAM,EAAEC,GAAG,EAAE;MAC9C,IAAIC,MAAM,CAACC,cAAc,EAAE;IAAED,IAAAA,MAAM,CAACC,cAAc,CAACH,MAAM,EAAE,KAAK,EAAE;IAAEI,MAAAA,KAAK,EAAEH,GAAAA;IAAI,KAAC,CAAC,CAAA;IAAE,GAAC,MAAM;QAAED,MAAM,CAACC,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AAOC,eAAC,aAAa,EAAA,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,CAAC;IACjG;;;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ct-design-spinner.umd.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.5_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js","../../../core/tokens/dist/ct-design-tokens.esm.js","../../../core/theme/dist/ct-design-theme.esm.js","../packages/components/Spinner/src/style.tsx","../packages/components/Spinner/src/Spinner.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","var border = {\n radius: {\n 0: 0,\n 2: 2,\n 4: 4,\n 6: 6,\n 8: 8,\n 12: 12,\n 16: 16,\n 20: 20,\n 24: 24,\n 30: 30,\n 32: 32,\n '50P': '50%',\n 60: 60,\n },\n width: {\n none: 0,\n sm: 1,\n md: 1.5,\n lg: 2,\n xl: 5,\n },\n style: {\n solid: 'solid',\n dotted: 'dotted',\n none: 'none',\n },\n};\n\nvar colors = {\n alert: '#DF9641',\n alert100: '#FFF8D4',\n alert500: '#A06800',\n alertBg: '#FCF7F0',\n alertText: '#DF9641',\n aqua100: '#082395',\n aqua250: '#081C82',\n bgPrimary: '#ED6521',\n bgPrimaryHover: '#CE4501',\n black: '#1A1A1A',\n blue100: '#ECF3FF',\n blue500: '#0F6BFF',\n blue900: '#0E3A81',\n bluePrimary500: '#2A55E5',\n blueSecondary: '#F0F5FF',\n blueSky500: '#3C6CE6',\n brand: '#FF4F17',\n brandBg: '#FEF3ED',\n brandText: '#FF4F17',\n brown: '#231B18',\n coralpink: '#F48B6E',\n curacao250: '#9FE3EA',\n curacao900: '#032529',\n darkGrey: '#313131',\n darkNeutral300: '#E0E0E0',\n disabled100: '#E6E6E6',\n disabled250: '#DDDDDD',\n disabledLight: '#EFEFEF',\n disabledText: '#B3B3B3',\n grapetini900: '#5f1ab6',\n gray100: '#2E3042',\n gray250: '#1A1C23',\n gray500: '#ffffffb1',\n greenFresh500: '#61C149',\n highlightBg: 'rgba(255, 255, 255, 0.2)',\n lightCyan: '#ECF9FB',\n lightSkyBlue: '#88CDFF',\n line: '#E7E7E7',\n lineDarkNeutral300: '#E0E0E0',\n link: '#0F6BFF',\n link2: '#3366CC',\n link2Hover: '#1A469D',\n linkBg: '#EFF3FB',\n linkText: '#0F6BFF',\n margarita100: '#F2FAF0',\n margarita250: '#C0E6B6',\n margarita750: '#3A742C',\n mintCream: '#F0FAF6',\n neutral50: '#FFFFFF80',\n neutral100: '#FFFFFF',\n neutral200: '#FAFAFD',\n neutral300: '#F3F3F3',\n neutral350: '#DBDBDB',\n neutral400: '#CAC9C9',\n neutral500: '#B3B3B3',\n neutral700: '#808080',\n neutral900: '#1A1A1A',\n orange100: '#FFF1EC',\n orange200: '#FFF1ED',\n orange250: '#FFB8A5',\n orange500: '#FF4F17',\n pinaColada100: '#FFF9EC',\n pinaColada250: '#FEE3A0',\n pinaColada750: '#98700B',\n pinkVibrant500: '#EF4E9B',\n primaryNeutral900: '#212121',\n purple100: '#350041',\n purple250: '#130016',\n purpleRoyal500: '#8B39F1',\n sandGrey100: '#fef5f2',\n shadow: '#1a1a1a14',\n success: '#11A670',\n success500: '#11A670',\n success600: '#0DA86D',\n successBg: '#ECF8F4',\n successText: '#11A670',\n superBlue25: '#EBEFFF',\n superBlue500: '#4D43FE',\n superGreen500: '#B5EF85',\n superGrey50: '#F9FAFB',\n superGrey200: '#EAECF0',\n superGrey300: '#D0D5DD',\n superGrey400: '#98A2B3',\n superGrey500: '#667085',\n superGrey700: '#344054',\n superGrey800: '#1D2939',\n systemGreen500: '#12B76A',\n systemRed500: '#FA2617',\n transparent: '#00000000',\n warning: '#C83232',\n warningBg: '#FBEFEF',\n warningText: '#C83232',\n yellowSecondary: '#FFC200',\n yellowSun500: '#FDBA12',\n};\n\nvar elevation = {\n bottomE1: '0px 1px 0px #E7E7E7',\n bottomE2: '0px 4px 16px rgba(26, 26, 26, 0.08)',\n bottomE3: '0px 8px 24px rgba(26, 26, 26, 0.1)',\n bottomE4: '0px 10px 32px rgba(26, 26, 26, 0.2)',\n topE1: '0px -1px 0px #E7E7E7',\n topE2: '0px -4px 16px rgba(26, 26, 26, 0.08)',\n topE3: '0px -8px 24px rgba(26, 26, 26, 0.1)',\n topE4: '0px -10px 32px rgba(26, 26, 26, 0.2)',\n modalBlurLight: 'rgb(0 0 0 / 20%) 0px 11px 15px -7px',\n modalBlurMedium: 'rgb(0 0 0 / 14%) 0px 24px 38px 3px',\n modalBlurHeavy: 'rgb(0 0 0 / 12%) 0px 9px 22px 18px',\n};\n\nvar size = {\n 0: 0,\n 0.5: 2,\n 1: 4,\n 2: 8,\n '2.5': 10,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 7: 28,\n 8: 32,\n 9: 36,\n 10: 40,\n 11: 44,\n 12: 48,\n 13: 52,\n 14: 56,\n 15: 60,\n 16: 64,\n 19: 76,\n 20: 80,\n 50: 200,\n 55: 220,\n '50P': '50%',\n '100P': '100%',\n};\n\nvar spacing = {\n 0: 0,\n 0.5: 2,\n 0.75: 3,\n 1: 4,\n 1.5: 6,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 7: 28,\n 8: 32,\n 9: 36,\n 10: 40,\n 11: 44,\n 12: 48,\n 13: 52,\n 14: 56,\n 16: 64,\n};\n\nvar typography = {\n weight: {\n bold: 700,\n semibold: 600,\n medium: 500,\n normal: 400,\n },\n size: {\n 10: 10,\n 12: 12,\n 14: 14,\n 16: 16,\n 20: 20,\n 24: 24,\n 32: 32,\n 40: 40,\n 48: 48,\n },\n lineHeight: {\n 12: 12,\n 14: 14,\n 16: 16,\n 18: 18,\n 20: 20,\n 22: 22,\n 24: 24,\n 28: 28,\n 32: 32,\n 40: 40,\n 48: 48,\n 56: 56,\n },\n letterSpacing: {\n nPoint75: -0.75,\n nPoint5: -0.5,\n nPoint4: -0.4,\n nPoint25: -0.25,\n zero: 0,\n point4: 0.4,\n point5: 0.5,\n point75: 0.75,\n },\n};\n\nexport { border, colors, elevation, size, spacing, typography };\n//# sourceMappingURL=ct-design-tokens.esm.js.map\n","import { __assign } from 'tslib';\nimport { colors, elevation, border, spacing, typography, size } from '@cleartrip/ct-design-tokens';\nimport '@emotion/styled';\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { createContext, useContext } from 'react';\nimport { ThemeProvider as ThemeProvider$1 } from '@emotion/react';\n\nvar duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n standard: 300,\n complex: 375,\n enteringScreen: 225,\n leavingScreen: 195,\n};\nvar easing = {\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)',\n};\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n var constant = height / 36;\n return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);\n}\nvar create = function (props, options) {\n if (props === void 0) { props = ['all']; }\n if (options === void 0) { options = {}; }\n var _a = options.duration, durationOption = _a === void 0 ? duration.standard : _a, _b = options.easing, easingOption = _b === void 0 ? easing.easeInOut : _b, _c = options.delay, delay = _c === void 0 ? 0 : _c;\n return (Array.isArray(props) ? props : [props])\n .map(function (animatedProp) {\n return \"\".concat(animatedProp, \" \").concat(typeof durationOption === 'string' ? durationOption : \"\".concat(durationOption, \"ms\"), \" \").concat(easingOption, \" \").concat(typeof delay === 'string' ? delay : \"\".concat(delay, \"ms\"));\n })\n .join(',');\n};\nvar hover$3 = function (key) {\n var _a;\n var bg = (_a = {},\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.brand] = colors.bgPrimaryHover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.link2] = colors.link2Hover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a);\n return bg[key];\n};\nvar zIndex = {\n drawer: 1200,\n modal: 1300,\n popOver: 1300,\n tooltip: 1500,\n sideNav: 100,\n toolbar: 50,\n bottomSheet: 100,\n};\nvar counter$1 = {\n enabled: {\n stroke: colors.neutral900,\n },\n disabled: {\n stroke: colors.neutral500,\n },\n};\nvar BaseTheme = {\n color: {\n text: {\n primary: colors.neutral900,\n secondary: colors.brandText,\n tertiary: colors.neutral500,\n heading: colors.neutral900,\n subHeading: colors.neutral700,\n disabled: colors.disabledText,\n success: colors.successText,\n alert: colors.alertText,\n alert500: colors.alert500,\n warning: colors.warningText,\n link: colors.linkText,\n brand: colors.brandText,\n neutral: colors.neutral100,\n link2: colors.link2,\n margarita: colors.margarita750,\n primary2: colors.grapetini900,\n secondary2: colors.blue100,\n grapetini900: colors.grapetini900,\n pinaColada750: colors.pinaColada750,\n neutral50: colors.neutral50,\n coralpink: colors.coralpink,\n },\n button: {\n outlinedPrimaryLabel: colors.neutral900,\n outlinedPrimaryBorder: colors.neutral900,\n outlinedPrimaryBg: colors.neutral100,\n outlinedSecondaryLabel: colors.brand,\n outlinedSecondaryBorder: colors.brand,\n outlinedSecondaryBg: colors.neutral100,\n outlinedTertiaryLabel: colors.link,\n outlinedTertiaryBorder: colors.link,\n outlinedTertiaryBg: colors.neutral100,\n outlinedNeutralLabel: colors.neutral100,\n outlinedNeutralBorder: colors.neutral100,\n outlinedNeutralBg: colors.transparent,\n outlinedDisabledLabel: colors.disabledText,\n outlinedDisabledBg: colors.neutral300,\n containedPrimaryLabel: colors.neutral100,\n containedPrimaryBg: colors.neutral900,\n containedSecondaryLabel: colors.neutral100,\n containedSecondaryBg: colors.brand,\n containedTertiaryLabel: colors.neutral100,\n containedTertiaryBg: colors.link,\n containedDisabledLabel: colors.disabledText,\n containedDisabledBg: colors.neutral300,\n containedNeutralLabel: colors.neutral900,\n containedNeutralBg: colors.neutral100,\n hover: hover$3,\n },\n chip: {\n nonSelectedPrimaryLabel: colors.neutral900,\n disabledPrimaryLabel: colors.disabledText,\n selectedPrimaryLabel: colors.neutral900,\n selectedPrimaryBorder: colors.neutral900,\n selectedPrimaryBg: colors.neutral300,\n disabledPrimaryBg: colors.neutral100,\n },\n dropdown: {\n shadow: colors.shadow,\n },\n tab: {\n nonSelectedPrimaryLabel: colors.neutral700,\n selectedPrimaryLabel: colors.neutral900,\n },\n sidenav: {\n primaryBg: colors.neutral900,\n selectedTabBg: colors.highlightBg,\n },\n tooltip: {\n primaryBg: colors.neutral900,\n },\n background: {\n primary: colors.neutral900,\n secondary: colors.brand,\n tertiary: colors.link,\n brand: colors.brand,\n brandLightBg: colors.brandBg,\n link: colors.link,\n link2: colors.link2,\n linkLightBg: colors.linkBg,\n success: colors.success,\n successLightBg: colors.successBg,\n alert: colors.alert,\n alertLightBg: colors.alertBg,\n alertSoft: colors.alert100,\n warning: colors.warning,\n warningLightBg: colors.warningBg,\n neutral: colors.neutral100,\n disabled: colors.neutral300,\n disabledSecondaryLight: colors.neutral350,\n disabledSecondary: colors.neutral400,\n disabledDark: colors.disabled100,\n defaultDark: colors.neutral700,\n defaultDarkest: colors.neutral900,\n grey: colors.neutral500,\n secondary2: colors.blue100,\n sandGrey100: colors.sandGrey100,\n },\n border: {\n primary: colors.neutral900,\n secondary: colors.brand,\n tertiary: colors.link,\n brand: colors.brand,\n neutral: colors.neutral900,\n link: colors.link,\n default: colors.line,\n defaultDark: colors.neutral700,\n disabled: colors.neutral500,\n disabledDark: colors.disabled100,\n warning: colors.warning,\n divider: colors.neutral300,\n },\n spinner: {\n primary: colors.neutral700,\n primaryBg: colors.alertBg,\n },\n shimmer: {\n disabledLight: colors.disabledLight,\n disabledDark: colors.disabled250,\n },\n coupon: {\n primaryBg: colors.blue100,\n },\n alert: {\n success: colors.successBg,\n warning: colors.alertBg,\n info: colors.blue100,\n error: colors.orange100,\n neutral: colors.neutral100,\n },\n badge: {\n curacao: colors.curacao250,\n curacao900: colors.curacao900,\n pinaColada: colors.pinaColada250,\n margarita250: colors.margarita250,\n default: colors.neutral300,\n green: colors.successBg,\n margarita100: colors.margarita100,\n yellow: colors.alertBg,\n orange100: colors.orange100,\n orange250: colors.orange250,\n orange500: colors.orange500,\n red: colors.warningBg,\n green500: colors.success500,\n green600: colors.success600,\n purple100: colors.purple100,\n purple250: colors.purple250,\n gray100: colors.gray100,\n gray250: colors.gray250,\n aqua100: colors.aqua100,\n aqua250: colors.aqua250,\n black: colors.black,\n link: colors.link,\n linkText: colors.linkText,\n blue100: colors.blue100,\n blue500: colors.blue500,\n blue900: colors.blue900,\n neutral100: colors.neutral100,\n pinaColada750: colors.pinaColada750,\n pinaColada100: colors.pinaColada100,\n brown: colors.brown,\n },\n counter: counter$1,\n calendar: {\n accent: colors.neutral900,\n background: colors.neutral300,\n selected: colors.neutral900,\n },\n },\n elevation: __assign({}, elevation),\n border: __assign({}, border),\n spacing: __assign({}, spacing),\n typography: __assign({}, typography),\n size: __assign({}, size),\n transitions: {\n duration: duration,\n easing: easing,\n create: create,\n getAutoHeightDuration: getAutoHeightDuration,\n },\n underline: {\n link: '',\n primary: '',\n secondary: '',\n tertiary: '',\n disabled: '',\n heading: '',\n subHeading: '',\n success: '',\n warning: '',\n neutral: '',\n link2: '',\n primary2: '',\n secondary2: '',\n grapetini900: '',\n pinaColada750: '',\n alert: '',\n },\n zIndex: zIndex,\n};\n\nvar B2CTheme = __assign({}, BaseTheme);\n\nvar hover$2 = function (key) {\n var _a;\n var bg = (_a = {},\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.brand] = colors.bgPrimaryHover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.link2] = colors.link2Hover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a);\n return bg[key];\n};\nvar B2BTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { secondary: colors.link2, tertiary: colors.neutral500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: colors.link2, outlinedPrimaryBorder: colors.link2, outlinedPrimaryBg: colors.neutral100, outlinedSecondaryLabel: colors.neutral900, outlinedSecondaryBorder: colors.neutral900, outlinedSecondaryBg: colors.neutral100, outlinedTertiaryLabel: colors.brand, outlinedTertiaryBorder: colors.brand, outlinedTertiaryBg: colors.neutral100, outlinedDisabledLabel: colors.disabledText, outlinedDisabledBg: colors.neutral300, containedPrimaryLabel: colors.neutral100, containedPrimaryBg: colors.link2, containedSecondaryLabel: colors.neutral100, containedSecondaryBg: colors.neutral900, containedTertiaryLabel: colors.neutral100, containedTertiaryBg: colors.brand, containedDisabledLabel: colors.disabledText, containedDisabledBg: colors.neutral300, hover: hover$2 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: colors.link2, selectedPrimaryBorder: colors.link2, selectedPrimaryBg: colors.linkBg }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: colors.neutral900, selectedPrimaryLabel: colors.link2 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand }), border: __assign(__assign({}, BaseTheme.color.border), { primary: colors.link2, secondary: colors.neutral900, tertiary: colors.brand, divider: colors.line }), spinner: {\n primary: colors.link2,\n primaryBg: colors.alertBg,\n }, calendar: {\n accent: '',\n background: '',\n selected: colors.link2,\n } }) });\n\nvar hover$1 = function (key) {\n var _a;\n var bg = (_a = {},\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.brand] = colors.bgPrimaryHover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.link2] = colors.link2Hover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a[colors.bluePrimary500] = colors.bluePrimary500,\n _a[colors.yellowSecondary] = colors.yellowSecondary,\n _a);\n return bg[key];\n};\nvar counter = {\n enabled: {\n stroke: colors.bluePrimary500,\n },\n disabled: {\n stroke: colors.neutral500,\n },\n};\nvar FKTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { link: colors.bluePrimary500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: colors.primaryNeutral900, outlinedPrimaryBg: colors.neutral100, containedPrimaryLabel: colors.neutral100, containedPrimaryBg: colors.bluePrimary500, containedSecondaryLabel: colors.primaryNeutral900, containedSecondaryBg: colors.yellowSecondary, hover: hover$1 }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: colors.link2, selectedPrimaryBorder: colors.link2, selectedPrimaryBg: colors.linkBg, nonSelectedPrimaryLabel: colors.neutral900 }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: colors.neutral900, selectedPrimaryLabel: colors.bluePrimary500 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: colors.bluePrimary500, secondary: colors.neutral900, tertiary: colors.brand, linkLightBg: colors.blueSecondary }), border: __assign(__assign({}, BaseTheme.color.border), { primary: colors.bluePrimary500, brand: colors.bluePrimary500 }), spinner: {\n primary: colors.link2,\n primaryBg: colors.alertBg,\n }, counter: counter, calendar: {\n accent: colors.bluePrimary500,\n background: colors.blueSecondary,\n selected: colors.bluePrimary500,\n } }) });\n\nvar hover = function (key) {\n var _a;\n var bg = (_a = {},\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.brand] = colors.bgPrimaryHover,\n _a[colors.disabledText] = colors.disabledText,\n _a[colors.neutral300] = colors.neutral300,\n _a[colors.link2] = colors.link2Hover,\n _a[colors.neutral100] = colors.neutral100,\n _a[colors.neutral900] = colors.neutral900,\n _a[colors.superGrey700] = colors.superGrey700,\n _a[colors.superGrey300] = colors.superGrey300,\n _a[colors.superGrey800] = colors.superGrey800,\n _a[colors.superGreen500] = colors.superGreen500,\n _a);\n return bg[key];\n};\nvar SMTheme = __assign(__assign({}, BaseTheme), { color: __assign(__assign({}, BaseTheme.color), { text: __assign(__assign({}, BaseTheme.color.text), { primary: colors.superGrey800, secondary: colors.superGrey500, tertiary: colors.superGrey400, warning: colors.systemRed500, disabled: colors.superGrey400, subHeading: colors.superGrey400, success: colors.systemGreen500, link: colors.superBlue500, link2: colors.superBlue500 }), button: __assign(__assign({}, BaseTheme.color.button), { outlinedPrimaryLabel: colors.superGrey700, outlinedPrimaryBorder: colors.superGrey300, outlinedTertiaryLabel: colors.superGrey700, outlinedTertiaryBorder: colors.superGrey300, outlinedDisabledLabel: colors.disabledText, containedSecondaryLabel: colors.superGrey800, containedPrimaryBg: colors.superBlue500, containedSecondaryBg: colors.superGreen500, containedTertiaryLabel: colors.superGrey300, containedDisabledLabel: colors.disabledText, containedPrimaryLabel: colors.neutral100, hover: hover }), chip: __assign(__assign({}, BaseTheme.color.chip), { selectedPrimaryLabel: colors.superBlue500, selectedPrimaryBorder: colors.superBlue500, selectedPrimaryBg: colors.superBlue25, disabledPrimaryLabel: colors.superGrey400, nonSelectedPrimaryLabel: colors.superGrey700, disabledPrimaryBg: colors.superGrey200 }), tab: __assign(__assign({}, BaseTheme.color.tab), { nonSelectedPrimaryLabel: colors.superGrey500, selectedPrimaryLabel: colors.superBlue500 }), background: __assign(__assign({}, BaseTheme.color.background), { primary: colors.superBlue500, disabled: colors.superGrey50, disabledDark: colors.superGrey300, warning: colors.systemRed500 }), border: __assign(__assign({}, BaseTheme.color.border), { primary: colors.superBlue500, secondary: colors.neutral900, disabledDark: colors.superGrey300, defaultDark: colors.superGrey400, default: colors.superGrey300, disabled: colors.superGrey200 }) }) });\n\nvar getTheme = function (themeType) {\n switch (themeType) {\n case 'B2C': {\n return B2CTheme;\n }\n case 'B2B': {\n return B2BTheme;\n }\n case 'FK': {\n return FKTheme;\n }\n case 'SM': {\n return SMTheme;\n }\n default: {\n return B2CTheme;\n }\n }\n};\n\nvar ThemeContext = createContext({\n theme: B2CTheme,\n platform: 'mobile',\n});\nvar ThemeProvider = function (_a) {\n var children = _a.children, _b = _a.theme, themeType = _b === void 0 ? 'B2C' : _b, _c = _a.platform, platform = _c === void 0 ? 'mobile' : _c;\n var theme = getTheme(themeType);\n return (jsx(ThemeContext.Provider, __assign({ value: { theme: theme, platform: platform } }, { children: jsx(ThemeProvider$1, __assign({ theme: theme }, { children: jsx(Fragment, { children: children }) })) })));\n};\nThemeProvider.defaultProps = {\n children: null,\n};\n\nvar useTheme = function () {\n var themeContext = useContext(ThemeContext);\n var theme = (themeContext || { theme: B2CTheme }).theme;\n return theme;\n};\n\nvar useThemeContext = function () {\n return useContext(ThemeContext);\n};\n\nvar ThemeManagerClass = (function () {\n function ThemeManagerClass() {\n if (ThemeManagerClass.instance) {\n throw new Error('You can only create one instance!');\n }\n ThemeManagerClass.instance = this;\n this.theme = B2CTheme;\n }\n ThemeManagerClass.prototype.set = function (theme) {\n switch (theme) {\n case 'B2C':\n default: {\n this.theme = B2CTheme;\n break;\n }\n }\n };\n ThemeManagerClass.prototype.get = function () {\n return this.theme;\n };\n return ThemeManagerClass;\n}());\nvar ThemeManager = Object.freeze(new ThemeManagerClass());\n\nexport { B2BTheme, B2CTheme, BaseTheme, FKTheme, SMTheme, ThemeContext, ThemeManager, ThemeProvider, getTheme, useTheme, useThemeContext };\n//# sourceMappingURL=ct-design-theme.esm.js.map\n",null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__makeTemplateObject","cooked","raw","defineProperty","value","SuppressedError","error","suppressed","message","e","Error","name","border","radius","width","none","sm","md","lg","xl","style","solid","dotted","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","easing","easeInOut","easeOut","easeIn","sharp","getAutoHeightDuration","height","constant","Math","round","pow","create","props","options","_a","durationOption","_b","easingOption","_c","delay","Array","isArray","map","animatedProp","concat","join","hover$3","key","bg","colors","neutral100","neutral900","brand","bgPrimaryHover","disabledText","neutral300","link2","link2Hover","zIndex","drawer","modal","popOver","tooltip","sideNav","toolbar","bottomSheet","counter$1","enabled","stroke","disabled","neutral500","BaseTheme","color","text","primary","secondary","brandText","tertiary","heading","subHeading","neutral700","success","successText","alert","alertText","alert500","warning","warningText","link","linkText","neutral","margarita","margarita750","primary2","grapetini900","secondary2","blue100","pinaColada750","neutral50","coralpink","button","outlinedPrimaryLabel","outlinedPrimaryBorder","outlinedPrimaryBg","outlinedSecondaryLabel","outlinedSecondaryBorder","outlinedSecondaryBg","outlinedTertiaryLabel","outlinedTertiaryBorder","outlinedTertiaryBg","outlinedNeutralLabel","outlinedNeutralBorder","outlinedNeutralBg","transparent","outlinedDisabledLabel","outlinedDisabledBg","containedPrimaryLabel","containedPrimaryBg","containedSecondaryLabel","containedSecondaryBg","containedTertiaryLabel","containedTertiaryBg","containedDisabledLabel","containedDisabledBg","containedNeutralLabel","containedNeutralBg","hover","chip","nonSelectedPrimaryLabel","disabledPrimaryLabel","selectedPrimaryLabel","selectedPrimaryBorder","selectedPrimaryBg","disabledPrimaryBg","dropdown","shadow","tab","sidenav","primaryBg","selectedTabBg","highlightBg","background","brandLightBg","brandBg","linkLightBg","linkBg","successLightBg","successBg","alertLightBg","alertBg","alertSoft","alert100","warningLightBg","warningBg","disabledSecondaryLight","neutral350","disabledSecondary","neutral400","disabledDark","disabled100","defaultDark","defaultDarkest","grey","sandGrey100","default","line","divider","spinner","shimmer","disabledLight","disabled250","coupon","info","orange100","badge","curacao","curacao250","curacao900","pinaColada","pinaColada250","margarita250","green","margarita100","yellow","orange250","orange500","red","green500","success500","green600","success600","purple100","purple250","gray100","gray250","aqua100","aqua250","black","blue500","blue900","pinaColada100","brown","counter","calendar","accent","selected","elevation","spacing","typography","size","transitions","underline","styled","CSS","_jsx"],"mappings":";;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;IAiBO,IAAIA,QAAQ,GAAG,YAAW;MAC7BA,QAAQ,GAAGC,MAAM,CAACC,MAAM,IAAI,SAASF,QAAQA,CAACG,CAAC,EAAE;IAC7C,IAAA,KAAK,IAAIC,CAAC,EAAEC,CAAC,GAAG,CAAC,EAAEC,CAAC,GAAGC,SAAS,CAACC,MAAM,EAAEH,CAAC,GAAGC,CAAC,EAAED,CAAC,EAAE,EAAE;IACjDD,MAAAA,CAAC,GAAGG,SAAS,CAACF,CAAC,CAAC,CAAA;UAChB,KAAK,IAAII,CAAC,IAAIL,CAAC,EAAE,IAAIH,MAAM,CAACS,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC,CAAA;IAChF,KAAA;IACA,IAAA,OAAON,CAAC,CAAA;OACX,CAAA;IACD,EAAA,OAAOH,QAAQ,CAACa,KAAK,CAAC,IAAI,EAAEN,SAAS,CAAC,CAAA;IAC1C,CAAC,CAAA;IAsNM,SAASO,oBAAoBA,CAACC,MAAM,EAAEC,GAAG,EAAE;MAC9C,IAAIf,MAAM,CAACgB,cAAc,EAAE;IAAEhB,IAAAA,MAAM,CAACgB,c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CAAC;;;ICpCsB,SAAA,OAAO,CAAC,EAAmE,EAAA;IAAjE,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,MAAe,EAAf,MAAM,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,MAAM,GAAA,EAAA,EAAE,aAAc,EAAd,KAAK,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,MAAM,KAAA,EAAE,EAAA,GAAA,EAAA,CAAA,WAAgB,EAAhB,WAAW,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAA,EAAA,CAAA;IACjF,IAAA,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAA,OAAOC,eAAC,aAAa,EAAA,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,GAAI,CAAC;IACjG;;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/style.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SpinnerProps } from './type';
|
|
2
|
-
export declare const StyledSpinner: import("styled
|
|
3
|
+
export declare const StyledSpinner: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & SpinnerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
7
|
//# sourceMappingURL=style.d.ts.map
|
package/dist/style.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Spinner/src/style.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Spinner/src/style.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,eAAO,MAAM,aAAa;;;wHAqCzB,CAAC"}
|
package/dist/type.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CSSProperties } from '
|
|
2
|
-
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { CSSWithThemeProps } from '@cleartrip/ct-design-types';
|
|
3
|
+
export interface SpinnerProps extends CSSWithThemeProps {
|
|
3
4
|
height?: string;
|
|
4
5
|
width?: string;
|
|
5
6
|
css?: CSSProperties;
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Spinner/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Spinner/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-spinner",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-SNAPSHOT-test.6",
|
|
4
4
|
"description": "Spinner Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-spinner.cjs.js",
|
|
7
7
|
"jsnext:main": "dist/ct-design-spinner.esm.js",
|
|
8
8
|
"module": "dist/ct-design-spinner.esm.js",
|
|
9
|
+
"react-native": "index.native.ts",
|
|
9
10
|
"sideEffects": false,
|
|
10
11
|
"browser": {
|
|
11
12
|
"./dist/ct-design-spinner.esm.js": "./dist/ct-design-spinner.browser.esm.js",
|
|
@@ -14,15 +15,19 @@
|
|
|
14
15
|
"files": [
|
|
15
16
|
"dist"
|
|
16
17
|
],
|
|
17
|
-
"dependencies": {
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@emotion/react": "^11.14.0",
|
|
20
|
+
"@emotion/styled": "^11.14.0",
|
|
21
|
+
"@cleartrip/ct-design-types": "3.1.0-SNAPSHOT-test.6"
|
|
22
|
+
},
|
|
18
23
|
"devDependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@cleartrip/ct-design-
|
|
24
|
+
"@emotion/babel-plugin": "^11.12.0",
|
|
25
|
+
"@cleartrip/ct-design-container": "3.1.0-SNAPSHOT-test.6",
|
|
26
|
+
"@cleartrip/ct-design-theme": "3.1.0-SNAPSHOT-test.6"
|
|
21
27
|
},
|
|
22
28
|
"peerDependencies": {
|
|
23
29
|
"react": ">=16.8.0",
|
|
24
|
-
"react-dom": ">=16.8.0"
|
|
25
|
-
"styled-components": "^5.3.6"
|
|
30
|
+
"react-dom": ">=16.8.0"
|
|
26
31
|
},
|
|
27
32
|
"publishConfig": {
|
|
28
33
|
"access": "public"
|