@televet/kibble-ui 0.1.0-beta.8 → 0.1.0
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/README.md +30 -383
- package/build/index.d.ts +3 -4
- package/build/index.es.js +175 -1369
- package/build/index.es.js.map +1 -1
- package/build/index.js +12355 -2281
- package/build/index.js.map +1 -1
- package/build/theme/theme.d.ts +1 -2
- package/package.json +20 -23
- package/build/components/Button/index.d.ts +0 -5
- package/build/providers/ThemeProvider/index.d.ts +0 -5
- package/build/theme/blur.d.ts +0 -12
- package/build/theme/borders.d.ts +0 -15
- package/build/theme/breakpoints.d.ts +0 -9
- package/build/theme/colors.d.ts +0 -210
- package/build/theme/fontSizes.d.ts +0 -17
- package/build/theme/fontWeights.d.ts +0 -13
- package/build/theme/fonts.d.ts +0 -7
- package/build/theme/index.d.ts +0 -32
- package/build/theme/letterSpacings.d.ts +0 -17
- package/build/theme/lineHeights.d.ts +0 -19
- package/build/theme/radii.d.ts +0 -13
- package/build/theme/shadows.d.ts +0 -27
- package/build/theme/sizes.d.ts +0 -27
- package/build/theme/space.d.ts +0 -37
- package/build/theme/tokens/fonts/fonts.d.ts +0 -6
- package/build/theme/transition.d.ts +0 -28
- package/build/theme/zIndeces.d.ts +0 -17
package/build/index.es.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useContext, createElement, createContext as createContext$
|
|
2
|
+
import React__default, { useContext, createElement, createContext as createContext$1, Fragment as Fragment$1, forwardRef, useRef, useLayoutEffect, useState, useMemo } from 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
|
-
import styled$1, { ThemeProvider as ThemeProvider$3 } from 'styled-components';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
|
|
@@ -571,8 +570,8 @@ var createCache = function createCache(options) {
|
|
|
571
570
|
return cache;
|
|
572
571
|
};
|
|
573
572
|
|
|
574
|
-
function _extends$
|
|
575
|
-
_extends$
|
|
573
|
+
function _extends$3() {
|
|
574
|
+
_extends$3 = Object.assign || function (target) {
|
|
576
575
|
for (var i = 1; i < arguments.length; i++) {
|
|
577
576
|
var source = arguments[i];
|
|
578
577
|
|
|
@@ -586,7 +585,7 @@ function _extends$6() {
|
|
|
586
585
|
return target;
|
|
587
586
|
};
|
|
588
587
|
|
|
589
|
-
return _extends$
|
|
588
|
+
return _extends$3.apply(this, arguments);
|
|
590
589
|
}
|
|
591
590
|
|
|
592
591
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -609,7 +608,7 @@ function createCommonjsModule(fn, module) {
|
|
|
609
608
|
*/
|
|
610
609
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
611
610
|
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t$1=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
612
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t$1:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element
|
|
611
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t$1:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t$1;var Memo=r;var Portal=d;
|
|
613
612
|
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t$1};
|
|
614
613
|
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
615
614
|
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
@@ -619,7 +618,7 @@ var reactIs_production_min = {
|
|
|
619
618
|
ConcurrentMode: ConcurrentMode,
|
|
620
619
|
ContextConsumer: ContextConsumer,
|
|
621
620
|
ContextProvider: ContextProvider,
|
|
622
|
-
Element: Element
|
|
621
|
+
Element: Element,
|
|
623
622
|
ForwardRef: ForwardRef,
|
|
624
623
|
Fragment: Fragment,
|
|
625
624
|
Lazy: Lazy,
|
|
@@ -1341,7 +1340,7 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1341
1340
|
var isBrowser$4 = typeof document !== 'undefined';
|
|
1342
1341
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
1343
1342
|
|
|
1344
|
-
var EmotionCacheContext = /* #__PURE__ */createContext$
|
|
1343
|
+
var EmotionCacheContext = /* #__PURE__ */createContext$1( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1345
1344
|
// because this module is primarily intended for the browser and node
|
|
1346
1345
|
// but it's also required in react native and similar environments sometimes
|
|
1347
1346
|
// and we could have a special build just for that
|
|
@@ -1359,7 +1358,7 @@ EmotionCacheContext.Provider;
|
|
|
1359
1358
|
|
|
1360
1359
|
var withEmotionCache = function withEmotionCache(func) {
|
|
1361
1360
|
// $FlowFixMe
|
|
1362
|
-
return /*#__PURE__*/forwardRef
|
|
1361
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
1363
1362
|
// the cache will never be null in the browser
|
|
1364
1363
|
var cache = useContext(EmotionCacheContext);
|
|
1365
1364
|
return func(props, cache, ref);
|
|
@@ -1390,7 +1389,7 @@ if (!isBrowser$4) {
|
|
|
1390
1389
|
};
|
|
1391
1390
|
}
|
|
1392
1391
|
|
|
1393
|
-
var ThemeContext = /* #__PURE__ */createContext$
|
|
1392
|
+
var ThemeContext = /* #__PURE__ */createContext$1({});
|
|
1394
1393
|
|
|
1395
1394
|
if (process.env.NODE_ENV !== 'production') {
|
|
1396
1395
|
ThemeContext.displayName = 'EmotionThemeContext';
|
|
@@ -1411,7 +1410,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
1411
1410
|
throw new Error('[ThemeProvider] Please make your theme prop a plain object');
|
|
1412
1411
|
}
|
|
1413
1412
|
|
|
1414
|
-
return _extends$
|
|
1413
|
+
return _extends$3({}, outerTheme, theme);
|
|
1415
1414
|
};
|
|
1416
1415
|
|
|
1417
1416
|
var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
@@ -3944,15 +3943,6 @@ function isCssVar(value) {
|
|
|
3944
3943
|
} // Empty assertions
|
|
3945
3944
|
var __DEV__ = process.env.NODE_ENV !== "production";
|
|
3946
3945
|
process.env.NODE_ENV === "test";
|
|
3947
|
-
|
|
3948
|
-
function omit(object, keys) {
|
|
3949
|
-
var result = {};
|
|
3950
|
-
Object.keys(object).forEach(function (key) {
|
|
3951
|
-
if (keys.includes(key)) return;
|
|
3952
|
-
result[key] = object[key];
|
|
3953
|
-
});
|
|
3954
|
-
return result;
|
|
3955
|
-
}
|
|
3956
3946
|
function pick(object, keys) {
|
|
3957
3947
|
var result = {};
|
|
3958
3948
|
keys.forEach(function (key) {
|
|
@@ -4181,16 +4171,6 @@ function canUseDOM() {
|
|
|
4181
4171
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
4182
4172
|
}
|
|
4183
4173
|
var isBrowser$2 = canUseDOM();
|
|
4184
|
-
var dataAttr = function dataAttr(condition) {
|
|
4185
|
-
return condition ? "" : undefined;
|
|
4186
|
-
};
|
|
4187
|
-
var cx = function cx() {
|
|
4188
|
-
for (var _len = arguments.length, classNames = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4189
|
-
classNames[_key] = arguments[_key];
|
|
4190
|
-
}
|
|
4191
|
-
|
|
4192
|
-
return classNames.filter(Boolean).join(" ");
|
|
4193
|
-
};
|
|
4194
4174
|
|
|
4195
4175
|
/* eslint-disable no-nested-ternary */
|
|
4196
4176
|
function runIfFn(valueOrFn) {
|
|
@@ -4215,7 +4195,7 @@ function once(fn) {
|
|
|
4215
4195
|
return result;
|
|
4216
4196
|
};
|
|
4217
4197
|
}
|
|
4218
|
-
var noop$
|
|
4198
|
+
var noop$1 = function noop() {};
|
|
4219
4199
|
var warn = once(function (options) {
|
|
4220
4200
|
return function () {
|
|
4221
4201
|
var condition = options.condition,
|
|
@@ -4274,7 +4254,7 @@ Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
|
|
|
4274
4254
|
*
|
|
4275
4255
|
* @param options create context options
|
|
4276
4256
|
*/
|
|
4277
|
-
function createContext
|
|
4257
|
+
function createContext(options) {
|
|
4278
4258
|
if (options === void 0) {
|
|
4279
4259
|
options = {};
|
|
4280
4260
|
}
|
|
@@ -4318,56 +4298,7 @@ var IdProvider = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
4318
4298
|
}, children);
|
|
4319
4299
|
});
|
|
4320
4300
|
|
|
4321
|
-
|
|
4322
|
-
function assignRef(ref, value) {
|
|
4323
|
-
if (ref == null) return;
|
|
4324
|
-
|
|
4325
|
-
if (typeof ref === "function") {
|
|
4326
|
-
ref(value);
|
|
4327
|
-
return;
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4330
|
-
try {
|
|
4331
|
-
// @ts-ignore
|
|
4332
|
-
ref.current = value;
|
|
4333
|
-
} catch (error) {
|
|
4334
|
-
throw new Error("Cannot assign value '" + value + "' to ref '" + ref + "'");
|
|
4335
|
-
}
|
|
4336
|
-
}
|
|
4337
|
-
/**
|
|
4338
|
-
* React hook that merges react refs into a single memoized function
|
|
4339
|
-
*
|
|
4340
|
-
* @example
|
|
4341
|
-
* import React from "react";
|
|
4342
|
-
* import { useMergeRefs } from `@chakra-ui/hooks`;
|
|
4343
|
-
*
|
|
4344
|
-
* const Component = React.forwardRef((props, ref) => {
|
|
4345
|
-
* const internalRef = React.useRef();
|
|
4346
|
-
* return <div {...props} ref={useMergeRefs(internalRef, ref)} />;
|
|
4347
|
-
* });
|
|
4348
|
-
*/
|
|
4349
|
-
|
|
4350
|
-
function useMergeRefs() {
|
|
4351
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4352
|
-
refs[_key] = arguments[_key];
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
return React.useMemo(function () {
|
|
4356
|
-
if (refs.every(function (ref) {
|
|
4357
|
-
return ref == null;
|
|
4358
|
-
})) {
|
|
4359
|
-
return null;
|
|
4360
|
-
}
|
|
4361
|
-
|
|
4362
|
-
return function (node) {
|
|
4363
|
-
refs.forEach(function (ref) {
|
|
4364
|
-
if (ref) assignRef(ref, node);
|
|
4365
|
-
});
|
|
4366
|
-
};
|
|
4367
|
-
}, refs);
|
|
4368
|
-
}
|
|
4369
|
-
|
|
4370
|
-
var _createContext$1 = createContext$2({
|
|
4301
|
+
var _createContext$1 = createContext({
|
|
4371
4302
|
strict: false,
|
|
4372
4303
|
name: "PortalManagerContext"
|
|
4373
4304
|
}),
|
|
@@ -4386,12 +4317,12 @@ if (__DEV__) {
|
|
|
4386
4317
|
PortalManager.displayName = "PortalManager";
|
|
4387
4318
|
}
|
|
4388
4319
|
|
|
4389
|
-
createContext
|
|
4320
|
+
createContext({
|
|
4390
4321
|
strict: false,
|
|
4391
4322
|
name: "PortalContext"
|
|
4392
4323
|
});
|
|
4393
4324
|
|
|
4394
|
-
var doc
|
|
4325
|
+
var doc = {
|
|
4395
4326
|
body: {
|
|
4396
4327
|
classList: {
|
|
4397
4328
|
add: function add() {},
|
|
@@ -4430,20 +4361,20 @@ var doc$1 = {
|
|
|
4430
4361
|
};
|
|
4431
4362
|
}
|
|
4432
4363
|
};
|
|
4433
|
-
var ssrDocument
|
|
4364
|
+
var ssrDocument = doc;
|
|
4434
4365
|
|
|
4435
|
-
var noop
|
|
4366
|
+
var noop = function noop() {};
|
|
4436
4367
|
|
|
4437
|
-
var win
|
|
4438
|
-
document: ssrDocument
|
|
4368
|
+
var win = {
|
|
4369
|
+
document: ssrDocument,
|
|
4439
4370
|
navigator: {
|
|
4440
4371
|
userAgent: ""
|
|
4441
4372
|
},
|
|
4442
4373
|
CustomEvent: function CustomEvent() {
|
|
4443
4374
|
return this;
|
|
4444
4375
|
},
|
|
4445
|
-
addEventListener: noop
|
|
4446
|
-
removeEventListener: noop
|
|
4376
|
+
addEventListener: noop,
|
|
4377
|
+
removeEventListener: noop,
|
|
4447
4378
|
getComputedStyle: function getComputedStyle() {
|
|
4448
4379
|
return {
|
|
4449
4380
|
getPropertyValue: function getPropertyValue() {
|
|
@@ -4454,8 +4385,8 @@ var win$1 = {
|
|
|
4454
4385
|
matchMedia: function matchMedia() {
|
|
4455
4386
|
return {
|
|
4456
4387
|
matches: false,
|
|
4457
|
-
addListener: noop
|
|
4458
|
-
removeListener: noop
|
|
4388
|
+
addListener: noop,
|
|
4389
|
+
removeListener: noop
|
|
4459
4390
|
};
|
|
4460
4391
|
},
|
|
4461
4392
|
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
@@ -4473,30 +4404,63 @@ var win$1 = {
|
|
|
4473
4404
|
setTimeout: function setTimeout() {
|
|
4474
4405
|
return 0;
|
|
4475
4406
|
},
|
|
4476
|
-
clearTimeout: noop
|
|
4407
|
+
clearTimeout: noop,
|
|
4477
4408
|
setInterval: function setInterval() {
|
|
4478
4409
|
return 0;
|
|
4479
4410
|
},
|
|
4480
|
-
clearInterval: noop
|
|
4411
|
+
clearInterval: noop
|
|
4481
4412
|
};
|
|
4482
|
-
var ssrWindow
|
|
4413
|
+
var ssrWindow = win;
|
|
4483
4414
|
|
|
4484
|
-
var mockEnv
|
|
4485
|
-
window: ssrWindow
|
|
4486
|
-
document: ssrDocument
|
|
4415
|
+
var mockEnv = {
|
|
4416
|
+
window: ssrWindow,
|
|
4417
|
+
document: ssrDocument
|
|
4487
4418
|
};
|
|
4488
|
-
var defaultEnv
|
|
4419
|
+
var defaultEnv = isBrowser$2 ? {
|
|
4489
4420
|
window: window,
|
|
4490
4421
|
document: document
|
|
4491
|
-
} : mockEnv
|
|
4492
|
-
var EnvironmentContext
|
|
4422
|
+
} : mockEnv;
|
|
4423
|
+
var EnvironmentContext = /*#__PURE__*/createContext$1(defaultEnv);
|
|
4493
4424
|
|
|
4494
4425
|
if (__DEV__) {
|
|
4495
|
-
EnvironmentContext
|
|
4426
|
+
EnvironmentContext.displayName = "EnvironmentContext";
|
|
4496
4427
|
}
|
|
4497
4428
|
|
|
4498
4429
|
function useEnvironment() {
|
|
4499
|
-
return useContext(EnvironmentContext
|
|
4430
|
+
return useContext(EnvironmentContext);
|
|
4431
|
+
}
|
|
4432
|
+
function EnvironmentProvider(props) {
|
|
4433
|
+
var children = props.children,
|
|
4434
|
+
environmentProp = props.environment;
|
|
4435
|
+
|
|
4436
|
+
var _useState = useState(null),
|
|
4437
|
+
node = _useState[0],
|
|
4438
|
+
setNode = _useState[1];
|
|
4439
|
+
|
|
4440
|
+
var context = useMemo(function () {
|
|
4441
|
+
var _ref;
|
|
4442
|
+
|
|
4443
|
+
var doc = node == null ? void 0 : node.ownerDocument;
|
|
4444
|
+
var win = node == null ? void 0 : node.ownerDocument.defaultView;
|
|
4445
|
+
var nodeEnv = doc ? {
|
|
4446
|
+
document: doc,
|
|
4447
|
+
window: win
|
|
4448
|
+
} : undefined;
|
|
4449
|
+
var env = (_ref = environmentProp != null ? environmentProp : nodeEnv) != null ? _ref : defaultEnv;
|
|
4450
|
+
return env;
|
|
4451
|
+
}, [node, environmentProp]);
|
|
4452
|
+
var showEnvGetter = !node && !environmentProp;
|
|
4453
|
+
return /*#__PURE__*/React__default.createElement(EnvironmentContext.Provider, {
|
|
4454
|
+
value: context
|
|
4455
|
+
}, children, showEnvGetter && /*#__PURE__*/React__default.createElement("span", {
|
|
4456
|
+
ref: function ref(el) {
|
|
4457
|
+
if (el) setNode(el);
|
|
4458
|
+
}
|
|
4459
|
+
}));
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4462
|
+
if (__DEV__) {
|
|
4463
|
+
EnvironmentProvider.displayName = "EnvironmentProvider";
|
|
4500
4464
|
}
|
|
4501
4465
|
|
|
4502
4466
|
var classNames = {
|
|
@@ -4509,8 +4473,8 @@ var classNames = {
|
|
|
4509
4473
|
*/
|
|
4510
4474
|
var mockBody = {
|
|
4511
4475
|
classList: {
|
|
4512
|
-
add: noop$
|
|
4513
|
-
remove: noop$
|
|
4476
|
+
add: noop$1,
|
|
4477
|
+
remove: noop$1
|
|
4514
4478
|
}
|
|
4515
4479
|
};
|
|
4516
4480
|
|
|
@@ -4559,7 +4523,7 @@ function getColorScheme(fallback) {
|
|
|
4559
4523
|
|
|
4560
4524
|
function addListener(fn) {
|
|
4561
4525
|
if (!("matchMedia" in window)) {
|
|
4562
|
-
return noop$
|
|
4526
|
+
return noop$1;
|
|
4563
4527
|
}
|
|
4564
4528
|
|
|
4565
4529
|
var mediaQueryList = window.matchMedia(queries.dark);
|
|
@@ -4759,8 +4723,8 @@ function ColorModeProvider(props) {
|
|
|
4759
4723
|
var context = React.useMemo(function () {
|
|
4760
4724
|
return {
|
|
4761
4725
|
colorMode: value != null ? value : colorMode,
|
|
4762
|
-
toggleColorMode: value ? noop$
|
|
4763
|
-
setColorMode: value ? noop$
|
|
4726
|
+
toggleColorMode: value ? noop$1 : toggleColorMode,
|
|
4727
|
+
setColorMode: value ? noop$1 : setColorMode
|
|
4764
4728
|
};
|
|
4765
4729
|
}, [colorMode, setColorMode, toggleColorMode, value]);
|
|
4766
4730
|
return /*#__PURE__*/React.createElement(ColorModeContext.Provider, {
|
|
@@ -4772,8 +4736,8 @@ if (__DEV__) {
|
|
|
4772
4736
|
ColorModeProvider.displayName = "ColorModeProvider";
|
|
4773
4737
|
}
|
|
4774
4738
|
|
|
4775
|
-
function _extends$
|
|
4776
|
-
_extends$
|
|
4739
|
+
function _extends$2() {
|
|
4740
|
+
_extends$2 = Object.assign || function (target) {
|
|
4777
4741
|
for (var i = 1; i < arguments.length; i++) {
|
|
4778
4742
|
var source = arguments[i];
|
|
4779
4743
|
|
|
@@ -4787,7 +4751,7 @@ function _extends$5() {
|
|
|
4787
4751
|
return target;
|
|
4788
4752
|
};
|
|
4789
4753
|
|
|
4790
|
-
return _extends$
|
|
4754
|
+
return _extends$2.apply(this, arguments);
|
|
4791
4755
|
}
|
|
4792
4756
|
|
|
4793
4757
|
var tokenToCSSVar = function tokenToCSSVar(scale, value) {
|
|
@@ -5196,7 +5160,7 @@ var t = {
|
|
|
5196
5160
|
};
|
|
5197
5161
|
},
|
|
5198
5162
|
prop: function prop(property, scale, transform) {
|
|
5199
|
-
return _extends$
|
|
5163
|
+
return _extends$2({
|
|
5200
5164
|
property: property,
|
|
5201
5165
|
scale: scale
|
|
5202
5166
|
}, scale && {
|
|
@@ -5672,7 +5636,7 @@ var ring = {
|
|
|
5672
5636
|
ringInset: t.prop("--chakra-ring-inset")
|
|
5673
5637
|
};
|
|
5674
5638
|
|
|
5675
|
-
var space
|
|
5639
|
+
var space = {
|
|
5676
5640
|
margin: t.spaceT("margin"),
|
|
5677
5641
|
marginTop: t.spaceT("marginTop"),
|
|
5678
5642
|
marginBlockStart: t.spaceT("marginBlockStart"),
|
|
@@ -5700,29 +5664,29 @@ var space$1 = {
|
|
|
5700
5664
|
paddingY: t.space(["paddingTop", "paddingBottom"]),
|
|
5701
5665
|
paddingBlock: t.space("paddingBlock")
|
|
5702
5666
|
};
|
|
5703
|
-
Object.assign(space
|
|
5704
|
-
m: space
|
|
5705
|
-
mt: space
|
|
5706
|
-
mr: space
|
|
5707
|
-
me: space
|
|
5708
|
-
marginEnd: space
|
|
5709
|
-
mb: space
|
|
5710
|
-
ml: space
|
|
5711
|
-
ms: space
|
|
5712
|
-
marginStart: space
|
|
5713
|
-
mx: space
|
|
5714
|
-
my: space
|
|
5715
|
-
p: space
|
|
5716
|
-
pt: space
|
|
5717
|
-
py: space
|
|
5718
|
-
px: space
|
|
5719
|
-
pb: space
|
|
5720
|
-
pl: space
|
|
5721
|
-
ps: space
|
|
5722
|
-
paddingStart: space
|
|
5723
|
-
pr: space
|
|
5724
|
-
pe: space
|
|
5725
|
-
paddingEnd: space
|
|
5667
|
+
Object.assign(space, {
|
|
5668
|
+
m: space.margin,
|
|
5669
|
+
mt: space.marginTop,
|
|
5670
|
+
mr: space.marginRight,
|
|
5671
|
+
me: space.marginInlineEnd,
|
|
5672
|
+
marginEnd: space.marginInlineEnd,
|
|
5673
|
+
mb: space.marginBottom,
|
|
5674
|
+
ml: space.marginLeft,
|
|
5675
|
+
ms: space.marginInlineStart,
|
|
5676
|
+
marginStart: space.marginInlineStart,
|
|
5677
|
+
mx: space.marginX,
|
|
5678
|
+
my: space.marginY,
|
|
5679
|
+
p: space.padding,
|
|
5680
|
+
pt: space.paddingTop,
|
|
5681
|
+
py: space.paddingY,
|
|
5682
|
+
px: space.paddingX,
|
|
5683
|
+
pb: space.paddingBottom,
|
|
5684
|
+
pl: space.paddingLeft,
|
|
5685
|
+
ps: space.paddingInlineStart,
|
|
5686
|
+
paddingStart: space.paddingInlineStart,
|
|
5687
|
+
pr: space.paddingRight,
|
|
5688
|
+
pe: space.paddingInlineEnd,
|
|
5689
|
+
paddingEnd: space.paddingInlineEnd
|
|
5726
5690
|
});
|
|
5727
5691
|
/**
|
|
5728
5692
|
* Types for space related CSS properties
|
|
@@ -5755,7 +5719,7 @@ var transform = {
|
|
|
5755
5719
|
rotate: t.degreeT("--chakra-rotate")
|
|
5756
5720
|
};
|
|
5757
5721
|
|
|
5758
|
-
var transition$
|
|
5722
|
+
var transition$1 = {
|
|
5759
5723
|
transition: true,
|
|
5760
5724
|
transitionDelay: true,
|
|
5761
5725
|
animation: true,
|
|
@@ -6254,11 +6218,11 @@ var pseudoSelectors = {
|
|
|
6254
6218
|
};
|
|
6255
6219
|
var pseudoPropNames = objectKeys(pseudoSelectors);
|
|
6256
6220
|
|
|
6257
|
-
var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space
|
|
6258
|
-
Object.assign({}, space
|
|
6221
|
+
var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space, scroll, typography$1, textDecoration, transform, list$1, transition$1);
|
|
6222
|
+
Object.assign({}, space, layout, flexbox, grid, position);
|
|
6259
6223
|
var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
|
|
6260
6224
|
|
|
6261
|
-
var styleProps = _extends$
|
|
6225
|
+
var styleProps = _extends$2({}, systemProps, pseudoSelectors);
|
|
6262
6226
|
|
|
6263
6227
|
var isStyleProp = function isStyleProp(prop) {
|
|
6264
6228
|
return prop in styleProps;
|
|
@@ -6744,7 +6708,7 @@ function createThemeVars(flatTokens, options) {
|
|
|
6744
6708
|
};
|
|
6745
6709
|
}
|
|
6746
6710
|
|
|
6747
|
-
function _objectWithoutPropertiesLoose$
|
|
6711
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
6748
6712
|
if (source == null) return {};
|
|
6749
6713
|
var target = {};
|
|
6750
6714
|
var sourceKeys = Object.keys(source);
|
|
@@ -6759,7 +6723,7 @@ function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
|
6759
6723
|
return target;
|
|
6760
6724
|
}
|
|
6761
6725
|
|
|
6762
|
-
var _excluded
|
|
6726
|
+
var _excluded = ["__cssMap", "__cssVars", "__breakpoints"];
|
|
6763
6727
|
var tokens = ["colors", "borders", "borderWidths", "borderStyles", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "space", "shadows", "sizes", "zIndices", "transition", "blur"];
|
|
6764
6728
|
function extractTokens(theme) {
|
|
6765
6729
|
var _tokens = tokens;
|
|
@@ -6772,7 +6736,7 @@ function omitVars(rawTheme) {
|
|
|
6772
6736
|
rawTheme.__cssMap;
|
|
6773
6737
|
rawTheme.__cssVars;
|
|
6774
6738
|
rawTheme.__breakpoints;
|
|
6775
|
-
var cleanTheme = _objectWithoutPropertiesLoose$
|
|
6739
|
+
var cleanTheme = _objectWithoutPropertiesLoose$1(rawTheme, _excluded);
|
|
6776
6740
|
|
|
6777
6741
|
return cleanTheme;
|
|
6778
6742
|
}
|
|
@@ -6837,183 +6801,13 @@ function toCSSVar(rawTheme) {
|
|
|
6837
6801
|
"--chakra-space-y-reverse": "0"
|
|
6838
6802
|
};
|
|
6839
6803
|
Object.assign(theme, {
|
|
6840
|
-
__cssVars: _extends$
|
|
6804
|
+
__cssVars: _extends$2({}, defaultCssVars, cssVars),
|
|
6841
6805
|
__cssMap: cssMap,
|
|
6842
6806
|
__breakpoints: analyzeBreakpoints(theme.breakpoints)
|
|
6843
6807
|
});
|
|
6844
6808
|
return theme;
|
|
6845
6809
|
}
|
|
6846
6810
|
|
|
6847
|
-
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
6848
|
-
|
|
6849
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
6850
|
-
var hasMap = typeof Map === 'function';
|
|
6851
|
-
var hasSet = typeof Set === 'function';
|
|
6852
|
-
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
6853
|
-
|
|
6854
|
-
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
6855
|
-
|
|
6856
|
-
function equal(a, b) {
|
|
6857
|
-
// START: fast-deep-equal es6/index.js 3.1.1
|
|
6858
|
-
if (a === b) return true;
|
|
6859
|
-
|
|
6860
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6861
|
-
if (a.constructor !== b.constructor) return false;
|
|
6862
|
-
|
|
6863
|
-
var length, i, keys;
|
|
6864
|
-
if (Array.isArray(a)) {
|
|
6865
|
-
length = a.length;
|
|
6866
|
-
if (length != b.length) return false;
|
|
6867
|
-
for (i = length; i-- !== 0;)
|
|
6868
|
-
if (!equal(a[i], b[i])) return false;
|
|
6869
|
-
return true;
|
|
6870
|
-
}
|
|
6871
|
-
|
|
6872
|
-
// START: Modifications:
|
|
6873
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
6874
|
-
// to co-exist with es5.
|
|
6875
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
6876
|
-
// Basically, take:
|
|
6877
|
-
//
|
|
6878
|
-
// ```js
|
|
6879
|
-
// for (i of a.entries())
|
|
6880
|
-
// if (!b.has(i[0])) return false;
|
|
6881
|
-
// ```
|
|
6882
|
-
//
|
|
6883
|
-
// ... and convert to:
|
|
6884
|
-
//
|
|
6885
|
-
// ```js
|
|
6886
|
-
// it = a.entries();
|
|
6887
|
-
// while (!(i = it.next()).done)
|
|
6888
|
-
// if (!b.has(i.value[0])) return false;
|
|
6889
|
-
// ```
|
|
6890
|
-
//
|
|
6891
|
-
// **Note**: `i` access switches to `i.value`.
|
|
6892
|
-
var it;
|
|
6893
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
6894
|
-
if (a.size !== b.size) return false;
|
|
6895
|
-
it = a.entries();
|
|
6896
|
-
while (!(i = it.next()).done)
|
|
6897
|
-
if (!b.has(i.value[0])) return false;
|
|
6898
|
-
it = a.entries();
|
|
6899
|
-
while (!(i = it.next()).done)
|
|
6900
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
6901
|
-
return true;
|
|
6902
|
-
}
|
|
6903
|
-
|
|
6904
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
6905
|
-
if (a.size !== b.size) return false;
|
|
6906
|
-
it = a.entries();
|
|
6907
|
-
while (!(i = it.next()).done)
|
|
6908
|
-
if (!b.has(i.value[0])) return false;
|
|
6909
|
-
return true;
|
|
6910
|
-
}
|
|
6911
|
-
// END: Modifications
|
|
6912
|
-
|
|
6913
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
6914
|
-
length = a.length;
|
|
6915
|
-
if (length != b.length) return false;
|
|
6916
|
-
for (i = length; i-- !== 0;)
|
|
6917
|
-
if (a[i] !== b[i]) return false;
|
|
6918
|
-
return true;
|
|
6919
|
-
}
|
|
6920
|
-
|
|
6921
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
6922
|
-
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
6923
|
-
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
6924
|
-
|
|
6925
|
-
keys = Object.keys(a);
|
|
6926
|
-
length = keys.length;
|
|
6927
|
-
if (length !== Object.keys(b).length) return false;
|
|
6928
|
-
|
|
6929
|
-
for (i = length; i-- !== 0;)
|
|
6930
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
6931
|
-
// END: fast-deep-equal
|
|
6932
|
-
|
|
6933
|
-
// START: react-fast-compare
|
|
6934
|
-
// custom handling for DOM elements
|
|
6935
|
-
if (hasElementType && a instanceof Element) return false;
|
|
6936
|
-
|
|
6937
|
-
// custom handling for React/Preact
|
|
6938
|
-
for (i = length; i-- !== 0;) {
|
|
6939
|
-
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
6940
|
-
// React-specific: avoid traversing React elements' _owner
|
|
6941
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
6942
|
-
// __v = $_original / $_vnode
|
|
6943
|
-
// __o = $_owner
|
|
6944
|
-
// These properties contain circular references and are not needed when
|
|
6945
|
-
// comparing the actual elements (and not their owners)
|
|
6946
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
6947
|
-
|
|
6948
|
-
continue;
|
|
6949
|
-
}
|
|
6950
|
-
|
|
6951
|
-
// all other properties should be traversed as usual
|
|
6952
|
-
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
6953
|
-
}
|
|
6954
|
-
// END: react-fast-compare
|
|
6955
|
-
|
|
6956
|
-
// START: fast-deep-equal
|
|
6957
|
-
return true;
|
|
6958
|
-
}
|
|
6959
|
-
|
|
6960
|
-
return a !== a && b !== b;
|
|
6961
|
-
}
|
|
6962
|
-
// end fast-deep-equal
|
|
6963
|
-
|
|
6964
|
-
var reactFastCompare = function isEqual(a, b) {
|
|
6965
|
-
try {
|
|
6966
|
-
return equal(a, b);
|
|
6967
|
-
} catch (error) {
|
|
6968
|
-
if (((error.message || '').match(/stack|recursion/i))) {
|
|
6969
|
-
// warn on circular references, don't crash
|
|
6970
|
-
// browsers give this different errors name and messages:
|
|
6971
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6972
|
-
// firefox: "InternalError", too much recursion"
|
|
6973
|
-
// edge: "Error", "Out of stack space"
|
|
6974
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
6975
|
-
return false;
|
|
6976
|
-
}
|
|
6977
|
-
// some other error. we should definitely know about these
|
|
6978
|
-
throw error;
|
|
6979
|
-
}
|
|
6980
|
-
};
|
|
6981
|
-
|
|
6982
|
-
/**
|
|
6983
|
-
* Creates a named context, provider, and hook.
|
|
6984
|
-
*
|
|
6985
|
-
* @param options create context options
|
|
6986
|
-
*/
|
|
6987
|
-
function createContext$1(options) {
|
|
6988
|
-
if (options === void 0) {
|
|
6989
|
-
options = {};
|
|
6990
|
-
}
|
|
6991
|
-
|
|
6992
|
-
var _options = options,
|
|
6993
|
-
_options$strict = _options.strict,
|
|
6994
|
-
strict = _options$strict === void 0 ? true : _options$strict,
|
|
6995
|
-
_options$errorMessage = _options.errorMessage,
|
|
6996
|
-
errorMessage = _options$errorMessage === void 0 ? "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider" : _options$errorMessage,
|
|
6997
|
-
name = _options.name;
|
|
6998
|
-
var Context = /*#__PURE__*/React.createContext(undefined);
|
|
6999
|
-
Context.displayName = name;
|
|
7000
|
-
|
|
7001
|
-
function useContext() {
|
|
7002
|
-
var context = React.useContext(Context);
|
|
7003
|
-
|
|
7004
|
-
if (!context && strict) {
|
|
7005
|
-
var error = new Error(errorMessage);
|
|
7006
|
-
error.name = "ContextError";
|
|
7007
|
-
Error.captureStackTrace == null ? void 0 : Error.captureStackTrace(error, useContext);
|
|
7008
|
-
throw error;
|
|
7009
|
-
}
|
|
7010
|
-
|
|
7011
|
-
return context;
|
|
7012
|
-
}
|
|
7013
|
-
|
|
7014
|
-
return [Context.Provider, useContext, Context];
|
|
7015
|
-
}
|
|
7016
|
-
|
|
7017
6811
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
7018
6812
|
|
|
7019
6813
|
var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
|
|
@@ -7214,7 +7008,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
7214
7008
|
});
|
|
7215
7009
|
|
|
7216
7010
|
Styled.withComponent = function (nextTag, nextOptions) {
|
|
7217
|
-
return createStyled(nextTag, _extends$
|
|
7011
|
+
return createStyled(nextTag, _extends$3({}, options, nextOptions, {
|
|
7218
7012
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
7219
7013
|
})).apply(void 0, styles);
|
|
7220
7014
|
};
|
|
@@ -7232,24 +7026,6 @@ tags.forEach(function (tagName) {
|
|
|
7232
7026
|
newStyled[tagName] = newStyled(tagName);
|
|
7233
7027
|
});
|
|
7234
7028
|
|
|
7235
|
-
function _extends$4() {
|
|
7236
|
-
_extends$4 = Object.assign || function (target) {
|
|
7237
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
7238
|
-
var source = arguments[i];
|
|
7239
|
-
|
|
7240
|
-
for (var key in source) {
|
|
7241
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7242
|
-
target[key] = source[key];
|
|
7243
|
-
}
|
|
7244
|
-
}
|
|
7245
|
-
}
|
|
7246
|
-
|
|
7247
|
-
return target;
|
|
7248
|
-
};
|
|
7249
|
-
|
|
7250
|
-
return _extends$4.apply(this, arguments);
|
|
7251
|
-
}
|
|
7252
|
-
|
|
7253
7029
|
var ThemeProvider$1 = function ThemeProvider(props) {
|
|
7254
7030
|
var cssVarsRoot = props.cssVarsRoot,
|
|
7255
7031
|
theme = props.theme,
|
|
@@ -7274,17 +7050,8 @@ var CSSVars = function CSSVars(_ref) {
|
|
|
7274
7050
|
}
|
|
7275
7051
|
});
|
|
7276
7052
|
};
|
|
7277
|
-
function useTheme() {
|
|
7278
|
-
var theme = React.useContext(ThemeContext);
|
|
7279
|
-
|
|
7280
|
-
if (!theme) {
|
|
7281
|
-
throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");
|
|
7282
|
-
}
|
|
7283
|
-
|
|
7284
|
-
return theme;
|
|
7285
|
-
}
|
|
7286
7053
|
|
|
7287
|
-
createContext
|
|
7054
|
+
createContext({
|
|
7288
7055
|
name: "StylesContext",
|
|
7289
7056
|
errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "
|
|
7290
7057
|
});
|
|
@@ -7311,19 +7078,7 @@ var GlobalStyle = function GlobalStyle() {
|
|
|
7311
7078
|
});
|
|
7312
7079
|
};
|
|
7313
7080
|
|
|
7314
|
-
function
|
|
7315
|
-
return omit(props, ["styleConfig", "size", "variant", "colorScheme"]);
|
|
7316
|
-
}
|
|
7317
|
-
|
|
7318
|
-
function useChakra() {
|
|
7319
|
-
var colorModeResult = useColorMode();
|
|
7320
|
-
var theme = useTheme();
|
|
7321
|
-
return _extends$4({}, colorModeResult, {
|
|
7322
|
-
theme: theme
|
|
7323
|
-
});
|
|
7324
|
-
}
|
|
7325
|
-
|
|
7326
|
-
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
7081
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
7327
7082
|
if (source == null) return {};
|
|
7328
7083
|
var target = {};
|
|
7329
7084
|
var sourceKeys = Object.keys(source);
|
|
@@ -7356,7 +7111,7 @@ var shouldForwardProp = function shouldForwardProp(prop) {
|
|
|
7356
7111
|
return validHTMLProps.has(prop) || !allPropNames.has(prop);
|
|
7357
7112
|
};
|
|
7358
7113
|
|
|
7359
|
-
var _excluded$1
|
|
7114
|
+
var _excluded$1 = ["theme", "css", "__css", "sx"],
|
|
7360
7115
|
_excluded2 = ["baseStyle"];
|
|
7361
7116
|
|
|
7362
7117
|
/**
|
|
@@ -7379,7 +7134,7 @@ var toCSSObject = function toCSSObject(_ref) {
|
|
|
7379
7134
|
var cssProp = props.css,
|
|
7380
7135
|
__css = props.__css,
|
|
7381
7136
|
sx = props.sx,
|
|
7382
|
-
rest = _objectWithoutPropertiesLoose
|
|
7137
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
7383
7138
|
|
|
7384
7139
|
var styleProps = objectFilter(rest, function (_, prop) {
|
|
7385
7140
|
return isStyleProp(prop);
|
|
@@ -7393,7 +7148,7 @@ var toCSSObject = function toCSSObject(_ref) {
|
|
|
7393
7148
|
function styled(component, options) {
|
|
7394
7149
|
var _ref2 = options != null ? options : {},
|
|
7395
7150
|
baseStyle = _ref2.baseStyle,
|
|
7396
|
-
styledOptions = _objectWithoutPropertiesLoose
|
|
7151
|
+
styledOptions = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
7397
7152
|
|
|
7398
7153
|
if (!styledOptions.shouldForwardProp) {
|
|
7399
7154
|
styledOptions.shouldForwardProp = shouldForwardProp;
|
|
@@ -7405,72 +7160,6 @@ function styled(component, options) {
|
|
|
7405
7160
|
return newStyled(component, styledOptions)(styleObject);
|
|
7406
7161
|
}
|
|
7407
7162
|
|
|
7408
|
-
/**
|
|
7409
|
-
* All credit goes to Chance (Reach UI), Haz (Reakit) and (fluentui)
|
|
7410
|
-
* for creating the base type definitions upon which we improved on
|
|
7411
|
-
*/
|
|
7412
|
-
function forwardRef(component) {
|
|
7413
|
-
return /*#__PURE__*/React.forwardRef(component);
|
|
7414
|
-
}
|
|
7415
|
-
|
|
7416
|
-
var _excluded$6 = ["styleConfig"];
|
|
7417
|
-
function useStyleConfig(themeKey, props, opts) {
|
|
7418
|
-
var _styleConfig$defaultP;
|
|
7419
|
-
|
|
7420
|
-
if (props === void 0) {
|
|
7421
|
-
props = {};
|
|
7422
|
-
}
|
|
7423
|
-
|
|
7424
|
-
if (opts === void 0) {
|
|
7425
|
-
opts = {};
|
|
7426
|
-
}
|
|
7427
|
-
|
|
7428
|
-
var _props = props,
|
|
7429
|
-
styleConfigProp = _props.styleConfig,
|
|
7430
|
-
rest = _objectWithoutPropertiesLoose$2(_props, _excluded$6);
|
|
7431
|
-
|
|
7432
|
-
var _useChakra = useChakra(),
|
|
7433
|
-
theme = _useChakra.theme,
|
|
7434
|
-
colorMode = _useChakra.colorMode;
|
|
7435
|
-
|
|
7436
|
-
var themeStyleConfig = memoizedGet(theme, "components." + themeKey);
|
|
7437
|
-
var styleConfig = styleConfigProp || themeStyleConfig;
|
|
7438
|
-
var mergedProps = mergeWith({
|
|
7439
|
-
theme: theme,
|
|
7440
|
-
colorMode: colorMode
|
|
7441
|
-
}, (_styleConfig$defaultP = styleConfig == null ? void 0 : styleConfig.defaultProps) != null ? _styleConfig$defaultP : {}, filterUndefined(omit(rest, ["children"])));
|
|
7442
|
-
/**
|
|
7443
|
-
* Store the computed styles in a `ref` to avoid unneeded re-computation
|
|
7444
|
-
*/
|
|
7445
|
-
|
|
7446
|
-
var stylesRef = useRef({});
|
|
7447
|
-
|
|
7448
|
-
if (styleConfig) {
|
|
7449
|
-
var _styleConfig$baseStyl, _styleConfig$variants, _styleConfig$variants2, _styleConfig$sizes$me, _styleConfig$sizes, _opts;
|
|
7450
|
-
|
|
7451
|
-
var baseStyles = runIfFn((_styleConfig$baseStyl = styleConfig.baseStyle) != null ? _styleConfig$baseStyl : {}, mergedProps);
|
|
7452
|
-
var variants = runIfFn((_styleConfig$variants = (_styleConfig$variants2 = styleConfig.variants) == null ? void 0 : _styleConfig$variants2[mergedProps.variant]) != null ? _styleConfig$variants : {}, mergedProps);
|
|
7453
|
-
var sizes = runIfFn((_styleConfig$sizes$me = (_styleConfig$sizes = styleConfig.sizes) == null ? void 0 : _styleConfig$sizes[mergedProps.size]) != null ? _styleConfig$sizes$me : {}, mergedProps);
|
|
7454
|
-
var styles = mergeWith({}, baseStyles, sizes, variants);
|
|
7455
|
-
|
|
7456
|
-
if ((_opts = opts) != null && _opts.isMultiPart && styleConfig.parts) {
|
|
7457
|
-
styleConfig.parts.forEach(function (part) {
|
|
7458
|
-
var _styles$part;
|
|
7459
|
-
|
|
7460
|
-
styles[part] = (_styles$part = styles[part]) != null ? _styles$part : {};
|
|
7461
|
-
});
|
|
7462
|
-
}
|
|
7463
|
-
|
|
7464
|
-
var isStyleEqual = reactFastCompare(stylesRef.current, styles);
|
|
7465
|
-
|
|
7466
|
-
if (!isStyleEqual) {
|
|
7467
|
-
stylesRef.current = styles;
|
|
7468
|
-
}
|
|
7469
|
-
}
|
|
7470
|
-
|
|
7471
|
-
return stylesRef.current;
|
|
7472
|
-
}
|
|
7473
|
-
|
|
7474
7163
|
function factory() {
|
|
7475
7164
|
var cache = new Map();
|
|
7476
7165
|
return new Proxy(styled, {
|
|
@@ -7497,144 +7186,7 @@ function factory() {
|
|
|
7497
7186
|
});
|
|
7498
7187
|
}
|
|
7499
7188
|
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
var doc = {
|
|
7503
|
-
body: {
|
|
7504
|
-
classList: {
|
|
7505
|
-
add: function add() {},
|
|
7506
|
-
remove: function remove() {}
|
|
7507
|
-
}
|
|
7508
|
-
},
|
|
7509
|
-
addEventListener: function addEventListener() {},
|
|
7510
|
-
removeEventListener: function removeEventListener() {},
|
|
7511
|
-
activeElement: {
|
|
7512
|
-
blur: function blur() {},
|
|
7513
|
-
nodeName: ""
|
|
7514
|
-
},
|
|
7515
|
-
querySelector: function querySelector() {
|
|
7516
|
-
return null;
|
|
7517
|
-
},
|
|
7518
|
-
querySelectorAll: function querySelectorAll() {
|
|
7519
|
-
return [];
|
|
7520
|
-
},
|
|
7521
|
-
getElementById: function getElementById() {
|
|
7522
|
-
return null;
|
|
7523
|
-
},
|
|
7524
|
-
createEvent: function createEvent() {
|
|
7525
|
-
return {
|
|
7526
|
-
initEvent: function initEvent() {}
|
|
7527
|
-
};
|
|
7528
|
-
},
|
|
7529
|
-
createElement: function createElement() {
|
|
7530
|
-
return {
|
|
7531
|
-
children: [],
|
|
7532
|
-
childNodes: [],
|
|
7533
|
-
style: {},
|
|
7534
|
-
setAttribute: function setAttribute() {},
|
|
7535
|
-
getElementsByTagName: function getElementsByTagName() {
|
|
7536
|
-
return [];
|
|
7537
|
-
}
|
|
7538
|
-
};
|
|
7539
|
-
}
|
|
7540
|
-
};
|
|
7541
|
-
var ssrDocument = doc;
|
|
7542
|
-
|
|
7543
|
-
var noop = function noop() {};
|
|
7544
|
-
|
|
7545
|
-
var win = {
|
|
7546
|
-
document: ssrDocument,
|
|
7547
|
-
navigator: {
|
|
7548
|
-
userAgent: ""
|
|
7549
|
-
},
|
|
7550
|
-
CustomEvent: function CustomEvent() {
|
|
7551
|
-
return this;
|
|
7552
|
-
},
|
|
7553
|
-
addEventListener: noop,
|
|
7554
|
-
removeEventListener: noop,
|
|
7555
|
-
getComputedStyle: function getComputedStyle() {
|
|
7556
|
-
return {
|
|
7557
|
-
getPropertyValue: function getPropertyValue() {
|
|
7558
|
-
return "";
|
|
7559
|
-
}
|
|
7560
|
-
};
|
|
7561
|
-
},
|
|
7562
|
-
matchMedia: function matchMedia() {
|
|
7563
|
-
return {
|
|
7564
|
-
matches: false,
|
|
7565
|
-
addListener: noop,
|
|
7566
|
-
removeListener: noop
|
|
7567
|
-
};
|
|
7568
|
-
},
|
|
7569
|
-
requestAnimationFrame: function requestAnimationFrame(callback) {
|
|
7570
|
-
if (typeof setTimeout === "undefined") {
|
|
7571
|
-
callback();
|
|
7572
|
-
return null;
|
|
7573
|
-
}
|
|
7574
|
-
|
|
7575
|
-
return setTimeout(callback, 0);
|
|
7576
|
-
},
|
|
7577
|
-
cancelAnimationFrame: function cancelAnimationFrame(id) {
|
|
7578
|
-
if (typeof setTimeout === "undefined") return;
|
|
7579
|
-
clearTimeout(id);
|
|
7580
|
-
},
|
|
7581
|
-
setTimeout: function setTimeout() {
|
|
7582
|
-
return 0;
|
|
7583
|
-
},
|
|
7584
|
-
clearTimeout: noop,
|
|
7585
|
-
setInterval: function setInterval() {
|
|
7586
|
-
return 0;
|
|
7587
|
-
},
|
|
7588
|
-
clearInterval: noop
|
|
7589
|
-
};
|
|
7590
|
-
var ssrWindow = win;
|
|
7591
|
-
|
|
7592
|
-
var mockEnv = {
|
|
7593
|
-
window: ssrWindow,
|
|
7594
|
-
document: ssrDocument
|
|
7595
|
-
};
|
|
7596
|
-
var defaultEnv = isBrowser$2 ? {
|
|
7597
|
-
window: window,
|
|
7598
|
-
document: document
|
|
7599
|
-
} : mockEnv;
|
|
7600
|
-
var EnvironmentContext = /*#__PURE__*/createContext$3(defaultEnv);
|
|
7601
|
-
|
|
7602
|
-
if (__DEV__) {
|
|
7603
|
-
EnvironmentContext.displayName = "EnvironmentContext";
|
|
7604
|
-
}
|
|
7605
|
-
function EnvironmentProvider(props) {
|
|
7606
|
-
var children = props.children,
|
|
7607
|
-
environmentProp = props.environment;
|
|
7608
|
-
|
|
7609
|
-
var _useState = useState(null),
|
|
7610
|
-
node = _useState[0],
|
|
7611
|
-
setNode = _useState[1];
|
|
7612
|
-
|
|
7613
|
-
var context = useMemo(function () {
|
|
7614
|
-
var _ref;
|
|
7615
|
-
|
|
7616
|
-
var doc = node == null ? void 0 : node.ownerDocument;
|
|
7617
|
-
var win = node == null ? void 0 : node.ownerDocument.defaultView;
|
|
7618
|
-
var nodeEnv = doc ? {
|
|
7619
|
-
document: doc,
|
|
7620
|
-
window: win
|
|
7621
|
-
} : undefined;
|
|
7622
|
-
var env = (_ref = environmentProp != null ? environmentProp : nodeEnv) != null ? _ref : defaultEnv;
|
|
7623
|
-
return env;
|
|
7624
|
-
}, [node, environmentProp]);
|
|
7625
|
-
var showEnvGetter = !node && !environmentProp;
|
|
7626
|
-
return /*#__PURE__*/React__default.createElement(EnvironmentContext.Provider, {
|
|
7627
|
-
value: context
|
|
7628
|
-
}, children, showEnvGetter && /*#__PURE__*/React__default.createElement("span", {
|
|
7629
|
-
ref: function ref(el) {
|
|
7630
|
-
if (el) setNode(el);
|
|
7631
|
-
}
|
|
7632
|
-
}));
|
|
7633
|
-
}
|
|
7634
|
-
|
|
7635
|
-
if (__DEV__) {
|
|
7636
|
-
EnvironmentProvider.displayName = "EnvironmentProvider";
|
|
7637
|
-
}
|
|
7189
|
+
factory();
|
|
7638
7190
|
|
|
7639
7191
|
/**
|
|
7640
7192
|
* The global provider that must be added to make all Chakra components
|
|
@@ -7702,8 +7254,8 @@ var spacing = {
|
|
|
7702
7254
|
96: "24rem"
|
|
7703
7255
|
};
|
|
7704
7256
|
|
|
7705
|
-
function _extends$
|
|
7706
|
-
_extends$
|
|
7257
|
+
function _extends$1() {
|
|
7258
|
+
_extends$1 = Object.assign || function (target) {
|
|
7707
7259
|
for (var i = 1; i < arguments.length; i++) {
|
|
7708
7260
|
var source = arguments[i];
|
|
7709
7261
|
|
|
@@ -7717,7 +7269,7 @@ function _extends$3() {
|
|
|
7717
7269
|
return target;
|
|
7718
7270
|
};
|
|
7719
7271
|
|
|
7720
|
-
return _extends$
|
|
7272
|
+
return _extends$1.apply(this, arguments);
|
|
7721
7273
|
}
|
|
7722
7274
|
|
|
7723
7275
|
var largeSizes = {
|
|
@@ -7746,7 +7298,7 @@ var container$1 = {
|
|
|
7746
7298
|
xl: "1280px"
|
|
7747
7299
|
};
|
|
7748
7300
|
|
|
7749
|
-
var sizes$
|
|
7301
|
+
var sizes$l = _extends$1({}, spacing, largeSizes, {
|
|
7750
7302
|
container: container$1
|
|
7751
7303
|
});
|
|
7752
7304
|
|
|
@@ -9273,8 +8825,8 @@ function orient(options) {
|
|
|
9273
8825
|
return orientation === "vertical" ? vertical : horizontal;
|
|
9274
8826
|
}
|
|
9275
8827
|
|
|
9276
|
-
function _extends
|
|
9277
|
-
_extends
|
|
8828
|
+
function _extends() {
|
|
8829
|
+
_extends = Object.assign || function (target) {
|
|
9278
8830
|
for (var i = 1; i < arguments.length; i++) {
|
|
9279
8831
|
var source = arguments[i];
|
|
9280
8832
|
|
|
@@ -9288,7 +8840,7 @@ function _extends$2() {
|
|
|
9288
8840
|
return target;
|
|
9289
8841
|
};
|
|
9290
8842
|
|
|
9291
|
-
return _extends
|
|
8843
|
+
return _extends.apply(this, arguments);
|
|
9292
8844
|
}
|
|
9293
8845
|
|
|
9294
8846
|
var createBreakpoints = function createBreakpoints(config) {
|
|
@@ -9296,7 +8848,7 @@ var createBreakpoints = function createBreakpoints(config) {
|
|
|
9296
8848
|
condition: true,
|
|
9297
8849
|
message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
|
|
9298
8850
|
});
|
|
9299
|
-
return _extends
|
|
8851
|
+
return _extends({
|
|
9300
8852
|
base: "0em"
|
|
9301
8853
|
}, config);
|
|
9302
8854
|
};
|
|
@@ -9900,7 +9452,7 @@ var baseStyle$B = function baseStyle(props) {
|
|
|
9900
9452
|
};
|
|
9901
9453
|
|
|
9902
9454
|
function getSize$3(size) {
|
|
9903
|
-
var themeSize = sizes$
|
|
9455
|
+
var themeSize = sizes$l[size];
|
|
9904
9456
|
return {
|
|
9905
9457
|
container: {
|
|
9906
9458
|
width: size,
|
|
@@ -10070,7 +9622,7 @@ var variantGhost = function variantGhost(props) {
|
|
|
10070
9622
|
var variantOutline$1 = function variantOutline(props) {
|
|
10071
9623
|
var c = props.colorScheme;
|
|
10072
9624
|
var borderColor = mode("gray.200", "whiteAlpha.300")(props);
|
|
10073
|
-
return _extends$
|
|
9625
|
+
return _extends$1({
|
|
10074
9626
|
border: "1px solid",
|
|
10075
9627
|
borderColor: c === "gray" ? borderColor : "currentColor"
|
|
10076
9628
|
}, variantGhost(props));
|
|
@@ -10447,7 +9999,7 @@ var baseStyleDialogContainer$1 = {
|
|
|
10447
9999
|
|
|
10448
10000
|
var baseStyleDialog$1 = function baseStyleDialog(props) {
|
|
10449
10001
|
var isFullHeight = props.isFullHeight;
|
|
10450
|
-
return _extends$
|
|
10002
|
+
return _extends$1({}, isFullHeight && {
|
|
10451
10003
|
height: "100vh"
|
|
10452
10004
|
}, {
|
|
10453
10005
|
zIndex: "modal",
|
|
@@ -11182,7 +10734,7 @@ function getSize(size) {
|
|
|
11182
10734
|
var fontSize = typography.fontSizes[_fontSize.toString()];
|
|
11183
10735
|
|
|
11184
10736
|
return {
|
|
11185
|
-
field: _extends$
|
|
10737
|
+
field: _extends$1({}, sizeStyle.field, {
|
|
11186
10738
|
paddingInlineEnd: $inputPadding.reference,
|
|
11187
10739
|
verticalAlign: "top"
|
|
11188
10740
|
}),
|
|
@@ -11216,7 +10768,7 @@ var numberInput = {
|
|
|
11216
10768
|
|
|
11217
10769
|
var _Input$variants$unsty$1;
|
|
11218
10770
|
|
|
11219
|
-
var baseStyle$f = _extends$
|
|
10771
|
+
var baseStyle$f = _extends$1({}, Input.baseStyle.field, {
|
|
11220
10772
|
textAlign: "center"
|
|
11221
10773
|
});
|
|
11222
10774
|
|
|
@@ -11338,7 +10890,7 @@ function filledStyle(props) {
|
|
|
11338
10890
|
var bgColor = mode(c + ".500", c + ".200")(props);
|
|
11339
10891
|
var gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t, bgColor) + " 50%,\n transparent 100%\n )";
|
|
11340
10892
|
var addStripe = !isIndeterminate && hasStripe;
|
|
11341
|
-
return _extends$
|
|
10893
|
+
return _extends$1({}, addStripe && stripeStyle, isIndeterminate ? {
|
|
11342
10894
|
bgImage: gradient
|
|
11343
10895
|
} : {
|
|
11344
10896
|
bgColor: bgColor
|
|
@@ -11359,7 +10911,7 @@ var baseStyleTrack$2 = function baseStyleTrack(props) {
|
|
|
11359
10911
|
};
|
|
11360
10912
|
|
|
11361
10913
|
var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) {
|
|
11362
|
-
return _extends$
|
|
10914
|
+
return _extends$1({
|
|
11363
10915
|
transitionProperty: "common",
|
|
11364
10916
|
transitionDuration: "slow"
|
|
11365
10917
|
}, filledStyle(props));
|
|
@@ -11411,9 +10963,9 @@ var baseStyleControl = function baseStyleControl(props) {
|
|
|
11411
10963
|
_Checkbox$baseStyle$c = _Checkbox$baseStyle.control,
|
|
11412
10964
|
control = _Checkbox$baseStyle$c === void 0 ? {} : _Checkbox$baseStyle$c;
|
|
11413
10965
|
|
|
11414
|
-
return _extends$
|
|
10966
|
+
return _extends$1({}, control, {
|
|
11415
10967
|
borderRadius: "full",
|
|
11416
|
-
_checked: _extends$
|
|
10968
|
+
_checked: _extends$1({}, control["_checked"], {
|
|
11417
10969
|
_before: {
|
|
11418
10970
|
content: "\"\"",
|
|
11419
10971
|
display: "inline-block",
|
|
@@ -11475,7 +11027,7 @@ var radio = {
|
|
|
11475
11027
|
};
|
|
11476
11028
|
|
|
11477
11029
|
var baseStyleField = function baseStyleField(props) {
|
|
11478
|
-
return _extends$
|
|
11030
|
+
return _extends$1({}, Input.baseStyle.field, {
|
|
11479
11031
|
bg: mode("white", "gray.700")(props),
|
|
11480
11032
|
appearance: "none",
|
|
11481
11033
|
paddingBottom: "1px",
|
|
@@ -11611,7 +11163,7 @@ function thumbOrientation(props) {
|
|
|
11611
11163
|
|
|
11612
11164
|
var baseStyleContainer$1 = function baseStyleContainer(props) {
|
|
11613
11165
|
var orientation = props.orientation;
|
|
11614
|
-
return _extends$
|
|
11166
|
+
return _extends$1({
|
|
11615
11167
|
display: "inline-block",
|
|
11616
11168
|
position: "relative",
|
|
11617
11169
|
cursor: "pointer",
|
|
@@ -11643,7 +11195,7 @@ var baseStyleTrack$1 = function baseStyleTrack(props) {
|
|
|
11643
11195
|
};
|
|
11644
11196
|
|
|
11645
11197
|
var baseStyleThumb$1 = function baseStyleThumb(props) {
|
|
11646
|
-
return _extends$
|
|
11198
|
+
return _extends$1({
|
|
11647
11199
|
display: "flex",
|
|
11648
11200
|
alignItems: "center",
|
|
11649
11201
|
justifyContent: "center",
|
|
@@ -11929,12 +11481,12 @@ var numericStyles = {
|
|
|
11929
11481
|
var variantSimple = function variantSimple(props) {
|
|
11930
11482
|
var c = props.colorScheme;
|
|
11931
11483
|
return {
|
|
11932
|
-
th: _extends$
|
|
11484
|
+
th: _extends$1({
|
|
11933
11485
|
color: mode("gray.600", "gray.400")(props),
|
|
11934
11486
|
borderBottom: "1px",
|
|
11935
11487
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11936
11488
|
}, numericStyles),
|
|
11937
|
-
td: _extends$
|
|
11489
|
+
td: _extends$1({
|
|
11938
11490
|
borderBottom: "1px",
|
|
11939
11491
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11940
11492
|
}, numericStyles),
|
|
@@ -11956,12 +11508,12 @@ var variantSimple = function variantSimple(props) {
|
|
|
11956
11508
|
var variantStripe = function variantStripe(props) {
|
|
11957
11509
|
var c = props.colorScheme;
|
|
11958
11510
|
return {
|
|
11959
|
-
th: _extends$
|
|
11511
|
+
th: _extends$1({
|
|
11960
11512
|
color: mode("gray.600", "gray.400")(props),
|
|
11961
11513
|
borderBottom: "1px",
|
|
11962
11514
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11963
11515
|
}, numericStyles),
|
|
11964
|
-
td: _extends$
|
|
11516
|
+
td: _extends$1({
|
|
11965
11517
|
borderBottom: "1px",
|
|
11966
11518
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11967
11519
|
}, numericStyles),
|
|
@@ -12370,7 +11922,7 @@ var tag = {
|
|
|
12370
11922
|
|
|
12371
11923
|
var _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field;
|
|
12372
11924
|
|
|
12373
|
-
var baseStyle$1 = _extends$
|
|
11925
|
+
var baseStyle$1 = _extends$1({}, Input.baseStyle.field, {
|
|
12374
11926
|
paddingY: "8px",
|
|
12375
11927
|
minHeight: "80px",
|
|
12376
11928
|
lineHeight: "short",
|
|
@@ -12395,7 +11947,7 @@ var variants = {
|
|
|
12395
11947
|
},
|
|
12396
11948
|
unstyled: (_Input$variants$unsty = Input.variants.unstyled.field) != null ? _Input$variants$unsty : {}
|
|
12397
11949
|
};
|
|
12398
|
-
var sizes
|
|
11950
|
+
var sizes = {
|
|
12399
11951
|
xs: (_Input$sizes$xs$field = Input.sizes.xs.field) != null ? _Input$sizes$xs$field : {},
|
|
12400
11952
|
sm: (_Input$sizes$sm$field = Input.sizes.sm.field) != null ? _Input$sizes$sm$field : {},
|
|
12401
11953
|
md: (_Input$sizes$md$field = Input.sizes.md.field) != null ? _Input$sizes$md$field : {},
|
|
@@ -12407,7 +11959,7 @@ var defaultProps = {
|
|
|
12407
11959
|
};
|
|
12408
11960
|
var textarea = {
|
|
12409
11961
|
baseStyle: baseStyle$1,
|
|
12410
|
-
sizes: sizes
|
|
11962
|
+
sizes: sizes,
|
|
12411
11963
|
variants: variants,
|
|
12412
11964
|
defaultProps: defaultProps
|
|
12413
11965
|
};
|
|
@@ -12470,7 +12022,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
12470
12022
|
Tooltip: tooltip
|
|
12471
12023
|
});
|
|
12472
12024
|
|
|
12473
|
-
var borders
|
|
12025
|
+
var borders = {
|
|
12474
12026
|
none: 0,
|
|
12475
12027
|
"1px": "1px solid",
|
|
12476
12028
|
"2px": "2px solid",
|
|
@@ -12482,7 +12034,7 @@ var borders$1 = {
|
|
|
12482
12034
|
* Breakpoints for responsive design
|
|
12483
12035
|
*/
|
|
12484
12036
|
|
|
12485
|
-
var breakpoints
|
|
12037
|
+
var breakpoints = createBreakpoints({
|
|
12486
12038
|
sm: "30em",
|
|
12487
12039
|
md: "48em",
|
|
12488
12040
|
lg: "62em",
|
|
@@ -12719,7 +12271,7 @@ var colors$1 = {
|
|
|
12719
12271
|
}
|
|
12720
12272
|
};
|
|
12721
12273
|
|
|
12722
|
-
var radii
|
|
12274
|
+
var radii = {
|
|
12723
12275
|
none: "0",
|
|
12724
12276
|
sm: "0.125rem",
|
|
12725
12277
|
base: "0.25rem",
|
|
@@ -12731,7 +12283,7 @@ var radii$1 = {
|
|
|
12731
12283
|
full: "9999px"
|
|
12732
12284
|
};
|
|
12733
12285
|
|
|
12734
|
-
var shadows
|
|
12286
|
+
var shadows = {
|
|
12735
12287
|
xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
|
|
12736
12288
|
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
12737
12289
|
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
@@ -12745,19 +12297,19 @@ var shadows$1 = {
|
|
|
12745
12297
|
"dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"
|
|
12746
12298
|
};
|
|
12747
12299
|
|
|
12748
|
-
var transitionProperty
|
|
12300
|
+
var transitionProperty = {
|
|
12749
12301
|
common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",
|
|
12750
12302
|
colors: "background-color, border-color, color, fill, stroke",
|
|
12751
12303
|
dimensions: "width, height",
|
|
12752
12304
|
position: "left, right, top, bottom",
|
|
12753
12305
|
background: "background-color, background-image, background-position"
|
|
12754
12306
|
};
|
|
12755
|
-
var transitionTimingFunction
|
|
12307
|
+
var transitionTimingFunction = {
|
|
12756
12308
|
"ease-in": "cubic-bezier(0.4, 0, 1, 1)",
|
|
12757
12309
|
"ease-out": "cubic-bezier(0, 0, 0.2, 1)",
|
|
12758
12310
|
"ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
12759
12311
|
};
|
|
12760
|
-
var transitionDuration
|
|
12312
|
+
var transitionDuration = {
|
|
12761
12313
|
"ultra-fast": "50ms",
|
|
12762
12314
|
faster: "100ms",
|
|
12763
12315
|
fast: "150ms",
|
|
@@ -12766,13 +12318,13 @@ var transitionDuration$1 = {
|
|
|
12766
12318
|
slower: "400ms",
|
|
12767
12319
|
"ultra-slow": "500ms"
|
|
12768
12320
|
};
|
|
12769
|
-
var transition
|
|
12770
|
-
property: transitionProperty
|
|
12771
|
-
easing: transitionTimingFunction
|
|
12772
|
-
duration: transitionDuration
|
|
12321
|
+
var transition = {
|
|
12322
|
+
property: transitionProperty,
|
|
12323
|
+
easing: transitionTimingFunction,
|
|
12324
|
+
duration: transitionDuration
|
|
12773
12325
|
};
|
|
12774
12326
|
|
|
12775
|
-
var zIndices
|
|
12327
|
+
var zIndices = {
|
|
12776
12328
|
hide: -1,
|
|
12777
12329
|
auto: "auto",
|
|
12778
12330
|
base: 0,
|
|
@@ -12788,7 +12340,7 @@ var zIndices$1 = {
|
|
|
12788
12340
|
tooltip: 1800
|
|
12789
12341
|
};
|
|
12790
12342
|
|
|
12791
|
-
var blur
|
|
12343
|
+
var blur = {
|
|
12792
12344
|
none: 0,
|
|
12793
12345
|
sm: "4px",
|
|
12794
12346
|
base: "8px",
|
|
@@ -12799,18 +12351,18 @@ var blur$1 = {
|
|
|
12799
12351
|
"3xl": "64px"
|
|
12800
12352
|
};
|
|
12801
12353
|
|
|
12802
|
-
var foundations = _extends$
|
|
12803
|
-
breakpoints: breakpoints
|
|
12804
|
-
zIndices: zIndices
|
|
12805
|
-
radii: radii
|
|
12806
|
-
blur: blur
|
|
12354
|
+
var foundations = _extends$1({
|
|
12355
|
+
breakpoints: breakpoints,
|
|
12356
|
+
zIndices: zIndices,
|
|
12357
|
+
radii: radii,
|
|
12358
|
+
blur: blur,
|
|
12807
12359
|
colors: colors$1
|
|
12808
12360
|
}, typography, {
|
|
12809
|
-
sizes: sizes$
|
|
12810
|
-
shadows: shadows
|
|
12361
|
+
sizes: sizes$l,
|
|
12362
|
+
shadows: shadows,
|
|
12811
12363
|
space: spacing,
|
|
12812
|
-
borders: borders
|
|
12813
|
-
transition: transition
|
|
12364
|
+
borders: borders,
|
|
12365
|
+
transition: transition
|
|
12814
12366
|
});
|
|
12815
12367
|
|
|
12816
12368
|
var styles = {
|
|
@@ -12853,7 +12405,7 @@ var config = {
|
|
|
12853
12405
|
initialColorMode: "light",
|
|
12854
12406
|
cssVarPrefix: "chakra"
|
|
12855
12407
|
};
|
|
12856
|
-
var theme$1 = _extends$
|
|
12408
|
+
var theme$1 = _extends$1({
|
|
12857
12409
|
direction: direction
|
|
12858
12410
|
}, foundations, {
|
|
12859
12411
|
components: components,
|
|
@@ -12861,519 +12413,6 @@ var theme$1 = _extends$3({
|
|
|
12861
12413
|
config: config
|
|
12862
12414
|
});
|
|
12863
12415
|
|
|
12864
|
-
/*! *****************************************************************************
|
|
12865
|
-
Copyright (c) Microsoft Corporation.
|
|
12866
|
-
|
|
12867
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
12868
|
-
purpose with or without fee is hereby granted.
|
|
12869
|
-
|
|
12870
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12871
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12872
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12873
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12874
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12875
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
12876
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
12877
|
-
***************************************************************************** */
|
|
12878
|
-
|
|
12879
|
-
var __assign = function() {
|
|
12880
|
-
__assign = Object.assign || function __assign(t) {
|
|
12881
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12882
|
-
s = arguments[i];
|
|
12883
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
12884
|
-
}
|
|
12885
|
-
return t;
|
|
12886
|
-
};
|
|
12887
|
-
return __assign.apply(this, arguments);
|
|
12888
|
-
};
|
|
12889
|
-
|
|
12890
|
-
function __makeTemplateObject(cooked, raw) {
|
|
12891
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
12892
|
-
return cooked;
|
|
12893
|
-
}
|
|
12894
|
-
|
|
12895
|
-
/**
|
|
12896
|
-
* Creates a named context, provider, and hook.
|
|
12897
|
-
*
|
|
12898
|
-
* @param options create context options
|
|
12899
|
-
*/
|
|
12900
|
-
function createContext(options) {
|
|
12901
|
-
if (options === void 0) {
|
|
12902
|
-
options = {};
|
|
12903
|
-
}
|
|
12904
|
-
|
|
12905
|
-
var _options = options,
|
|
12906
|
-
_options$strict = _options.strict,
|
|
12907
|
-
strict = _options$strict === void 0 ? true : _options$strict,
|
|
12908
|
-
_options$errorMessage = _options.errorMessage,
|
|
12909
|
-
errorMessage = _options$errorMessage === void 0 ? "useContext: `context` is undefined. Seems you forgot to wrap component within the Provider" : _options$errorMessage,
|
|
12910
|
-
name = _options.name;
|
|
12911
|
-
var Context = /*#__PURE__*/React.createContext(undefined);
|
|
12912
|
-
Context.displayName = name;
|
|
12913
|
-
|
|
12914
|
-
function useContext() {
|
|
12915
|
-
var context = React.useContext(Context);
|
|
12916
|
-
|
|
12917
|
-
if (!context && strict) {
|
|
12918
|
-
var error = new Error(errorMessage);
|
|
12919
|
-
error.name = "ContextError";
|
|
12920
|
-
Error.captureStackTrace == null ? void 0 : Error.captureStackTrace(error, useContext);
|
|
12921
|
-
throw error;
|
|
12922
|
-
}
|
|
12923
|
-
|
|
12924
|
-
return context;
|
|
12925
|
-
}
|
|
12926
|
-
|
|
12927
|
-
return [Context.Provider, useContext, Context];
|
|
12928
|
-
}
|
|
12929
|
-
|
|
12930
|
-
/**
|
|
12931
|
-
* Styles to visually hide an element
|
|
12932
|
-
* but make it accessible to screen-readers
|
|
12933
|
-
*/
|
|
12934
|
-
var visuallyHiddenStyle = {
|
|
12935
|
-
border: "0px",
|
|
12936
|
-
clip: "rect(0px, 0px, 0px, 0px)",
|
|
12937
|
-
height: "1px",
|
|
12938
|
-
width: "1px",
|
|
12939
|
-
margin: "-1px",
|
|
12940
|
-
padding: "0px",
|
|
12941
|
-
overflow: "hidden",
|
|
12942
|
-
whiteSpace: "nowrap",
|
|
12943
|
-
position: "absolute"
|
|
12944
|
-
};
|
|
12945
|
-
/**
|
|
12946
|
-
* Visually hidden component used to hide
|
|
12947
|
-
* elements on screen
|
|
12948
|
-
*/
|
|
12949
|
-
|
|
12950
|
-
var VisuallyHidden = chakra("span", {
|
|
12951
|
-
baseStyle: visuallyHiddenStyle
|
|
12952
|
-
});
|
|
12953
|
-
|
|
12954
|
-
if (__DEV__) {
|
|
12955
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
12956
|
-
}
|
|
12957
|
-
/**
|
|
12958
|
-
* Visually hidden input component for designing
|
|
12959
|
-
* custom input components using the html `input`
|
|
12960
|
-
* as a proxy
|
|
12961
|
-
*/
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
var VisuallyHiddenInput = chakra("input", {
|
|
12965
|
-
baseStyle: visuallyHiddenStyle
|
|
12966
|
-
});
|
|
12967
|
-
|
|
12968
|
-
if (__DEV__) {
|
|
12969
|
-
VisuallyHiddenInput.displayName = "VisuallyHiddenInput";
|
|
12970
|
-
}
|
|
12971
|
-
|
|
12972
|
-
function _extends$1() {
|
|
12973
|
-
_extends$1 = Object.assign || function (target) {
|
|
12974
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12975
|
-
var source = arguments[i];
|
|
12976
|
-
|
|
12977
|
-
for (var key in source) {
|
|
12978
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12979
|
-
target[key] = source[key];
|
|
12980
|
-
}
|
|
12981
|
-
}
|
|
12982
|
-
}
|
|
12983
|
-
|
|
12984
|
-
return target;
|
|
12985
|
-
};
|
|
12986
|
-
|
|
12987
|
-
return _extends$1.apply(this, arguments);
|
|
12988
|
-
}
|
|
12989
|
-
|
|
12990
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
12991
|
-
if (source == null) return {};
|
|
12992
|
-
var target = {};
|
|
12993
|
-
var sourceKeys = Object.keys(source);
|
|
12994
|
-
var key, i;
|
|
12995
|
-
|
|
12996
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
12997
|
-
key = sourceKeys[i];
|
|
12998
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
12999
|
-
target[key] = source[key];
|
|
13000
|
-
}
|
|
13001
|
-
|
|
13002
|
-
return target;
|
|
13003
|
-
}
|
|
13004
|
-
|
|
13005
|
-
var _excluded$5 = ["label", "thickness", "speed", "emptyColor", "className"];
|
|
13006
|
-
var spin = keyframes({
|
|
13007
|
-
"0%": {
|
|
13008
|
-
transform: "rotate(0deg)"
|
|
13009
|
-
},
|
|
13010
|
-
"100%": {
|
|
13011
|
-
transform: "rotate(360deg)"
|
|
13012
|
-
}
|
|
13013
|
-
});
|
|
13014
|
-
|
|
13015
|
-
/**
|
|
13016
|
-
* Spinner is used to indicate the loading state of a page or a component,
|
|
13017
|
-
* It renders a `div` by default.
|
|
13018
|
-
*
|
|
13019
|
-
* @see Docs https://chakra-ui.com/spinner
|
|
13020
|
-
*/
|
|
13021
|
-
var Spinner = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13022
|
-
var styles = useStyleConfig("Spinner", props);
|
|
13023
|
-
|
|
13024
|
-
var _omitThemingProps = omitThemingProps(props),
|
|
13025
|
-
_omitThemingProps$lab = _omitThemingProps.label,
|
|
13026
|
-
label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab,
|
|
13027
|
-
_omitThemingProps$thi = _omitThemingProps.thickness,
|
|
13028
|
-
thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi,
|
|
13029
|
-
_omitThemingProps$spe = _omitThemingProps.speed,
|
|
13030
|
-
speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe,
|
|
13031
|
-
_omitThemingProps$emp = _omitThemingProps.emptyColor,
|
|
13032
|
-
emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp,
|
|
13033
|
-
className = _omitThemingProps.className,
|
|
13034
|
-
rest = _objectWithoutPropertiesLoose$1(_omitThemingProps, _excluded$5);
|
|
13035
|
-
|
|
13036
|
-
var _className = cx("chakra-spinner", className);
|
|
13037
|
-
|
|
13038
|
-
var spinnerStyles = _extends$1({
|
|
13039
|
-
display: "inline-block",
|
|
13040
|
-
borderColor: "currentColor",
|
|
13041
|
-
borderStyle: "solid",
|
|
13042
|
-
borderRadius: "99999px",
|
|
13043
|
-
borderWidth: thickness,
|
|
13044
|
-
borderBottomColor: emptyColor,
|
|
13045
|
-
borderLeftColor: emptyColor,
|
|
13046
|
-
animation: spin + " " + speed + " linear infinite"
|
|
13047
|
-
}, styles);
|
|
13048
|
-
|
|
13049
|
-
return /*#__PURE__*/React.createElement(chakra.div, _extends$1({
|
|
13050
|
-
ref: ref,
|
|
13051
|
-
__css: spinnerStyles,
|
|
13052
|
-
className: _className
|
|
13053
|
-
}, rest), label && /*#__PURE__*/React.createElement(VisuallyHidden, null, label));
|
|
13054
|
-
});
|
|
13055
|
-
|
|
13056
|
-
if (__DEV__) {
|
|
13057
|
-
Spinner.displayName = "Spinner";
|
|
13058
|
-
}
|
|
13059
|
-
|
|
13060
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
13061
|
-
if (source == null) return {};
|
|
13062
|
-
var target = {};
|
|
13063
|
-
var sourceKeys = Object.keys(source);
|
|
13064
|
-
var key, i;
|
|
13065
|
-
|
|
13066
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
13067
|
-
key = sourceKeys[i];
|
|
13068
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
13069
|
-
target[key] = source[key];
|
|
13070
|
-
}
|
|
13071
|
-
|
|
13072
|
-
return target;
|
|
13073
|
-
}
|
|
13074
|
-
|
|
13075
|
-
function _extends() {
|
|
13076
|
-
_extends = Object.assign || function (target) {
|
|
13077
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
13078
|
-
var source = arguments[i];
|
|
13079
|
-
|
|
13080
|
-
for (var key in source) {
|
|
13081
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13082
|
-
target[key] = source[key];
|
|
13083
|
-
}
|
|
13084
|
-
}
|
|
13085
|
-
}
|
|
13086
|
-
|
|
13087
|
-
return target;
|
|
13088
|
-
};
|
|
13089
|
-
|
|
13090
|
-
return _extends.apply(this, arguments);
|
|
13091
|
-
}
|
|
13092
|
-
|
|
13093
|
-
var _excluded$4 = ["size", "colorScheme", "variant", "className", "spacing", "isAttached", "isDisabled"];
|
|
13094
|
-
|
|
13095
|
-
var _createContext = createContext({
|
|
13096
|
-
strict: false,
|
|
13097
|
-
name: "ButtonGroupContext"
|
|
13098
|
-
}),
|
|
13099
|
-
ButtonGroupProvider = _createContext[0],
|
|
13100
|
-
useButtonGroup = _createContext[1];
|
|
13101
|
-
var ButtonGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13102
|
-
var size = props.size,
|
|
13103
|
-
colorScheme = props.colorScheme,
|
|
13104
|
-
variant = props.variant,
|
|
13105
|
-
className = props.className,
|
|
13106
|
-
_props$spacing = props.spacing,
|
|
13107
|
-
spacing = _props$spacing === void 0 ? "0.5rem" : _props$spacing,
|
|
13108
|
-
isAttached = props.isAttached,
|
|
13109
|
-
isDisabled = props.isDisabled,
|
|
13110
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
13111
|
-
|
|
13112
|
-
var _className = cx("chakra-button__group", className);
|
|
13113
|
-
|
|
13114
|
-
var context = React.useMemo(function () {
|
|
13115
|
-
return {
|
|
13116
|
-
size: size,
|
|
13117
|
-
colorScheme: colorScheme,
|
|
13118
|
-
variant: variant,
|
|
13119
|
-
isDisabled: isDisabled
|
|
13120
|
-
};
|
|
13121
|
-
}, [size, colorScheme, variant, isDisabled]);
|
|
13122
|
-
var groupStyles = {
|
|
13123
|
-
display: "inline-flex"
|
|
13124
|
-
};
|
|
13125
|
-
|
|
13126
|
-
if (isAttached) {
|
|
13127
|
-
groupStyles = _extends({}, groupStyles, {
|
|
13128
|
-
"> *:first-of-type:not(:last-of-type)": {
|
|
13129
|
-
borderEndRadius: 0
|
|
13130
|
-
},
|
|
13131
|
-
"> *:not(:first-of-type):not(:last-of-type)": {
|
|
13132
|
-
borderRadius: 0
|
|
13133
|
-
},
|
|
13134
|
-
"> *:not(:first-of-type):last-of-type": {
|
|
13135
|
-
borderStartRadius: 0
|
|
13136
|
-
}
|
|
13137
|
-
});
|
|
13138
|
-
} else {
|
|
13139
|
-
groupStyles = _extends({}, groupStyles, {
|
|
13140
|
-
"& > *:not(style) ~ *:not(style)": {
|
|
13141
|
-
marginStart: spacing
|
|
13142
|
-
}
|
|
13143
|
-
});
|
|
13144
|
-
}
|
|
13145
|
-
|
|
13146
|
-
return /*#__PURE__*/React.createElement(ButtonGroupProvider, {
|
|
13147
|
-
value: context
|
|
13148
|
-
}, /*#__PURE__*/React.createElement(chakra.div, _extends({
|
|
13149
|
-
ref: ref,
|
|
13150
|
-
role: "group",
|
|
13151
|
-
__css: groupStyles,
|
|
13152
|
-
className: _className
|
|
13153
|
-
}, rest)));
|
|
13154
|
-
});
|
|
13155
|
-
|
|
13156
|
-
if (__DEV__) {
|
|
13157
|
-
ButtonGroup.displayName = "ButtonGroup";
|
|
13158
|
-
}
|
|
13159
|
-
|
|
13160
|
-
var _excluded$3 = ["label", "placement", "spacing", "children", "className", "__css"];
|
|
13161
|
-
var ButtonSpinner = function ButtonSpinner(props) {
|
|
13162
|
-
var label = props.label,
|
|
13163
|
-
placement = props.placement,
|
|
13164
|
-
_props$spacing = props.spacing,
|
|
13165
|
-
spacing = _props$spacing === void 0 ? "0.5rem" : _props$spacing,
|
|
13166
|
-
_props$children = props.children,
|
|
13167
|
-
children = _props$children === void 0 ? /*#__PURE__*/React.createElement(Spinner, {
|
|
13168
|
-
color: "currentColor",
|
|
13169
|
-
width: "1em",
|
|
13170
|
-
height: "1em"
|
|
13171
|
-
}) : _props$children,
|
|
13172
|
-
className = props.className,
|
|
13173
|
-
__css = props.__css,
|
|
13174
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
13175
|
-
|
|
13176
|
-
var _className = cx("chakra-button__spinner", className);
|
|
13177
|
-
|
|
13178
|
-
var marginProp = placement === "start" ? "marginEnd" : "marginStart";
|
|
13179
|
-
var spinnerStyles = React.useMemo(function () {
|
|
13180
|
-
var _extends2;
|
|
13181
|
-
|
|
13182
|
-
return _extends((_extends2 = {
|
|
13183
|
-
display: "flex",
|
|
13184
|
-
alignItems: "center",
|
|
13185
|
-
position: label ? "relative" : "absolute"
|
|
13186
|
-
}, _extends2[marginProp] = label ? spacing : 0, _extends2.fontSize = "1em", _extends2.lineHeight = "normal", _extends2), __css);
|
|
13187
|
-
}, [__css, label, marginProp, spacing]);
|
|
13188
|
-
return /*#__PURE__*/React.createElement(chakra.div, _extends({
|
|
13189
|
-
className: _className
|
|
13190
|
-
}, rest, {
|
|
13191
|
-
__css: spinnerStyles
|
|
13192
|
-
}), children);
|
|
13193
|
-
};
|
|
13194
|
-
|
|
13195
|
-
if (__DEV__) {
|
|
13196
|
-
ButtonSpinner.displayName = "ButtonSpinner";
|
|
13197
|
-
}
|
|
13198
|
-
|
|
13199
|
-
var _excluded$2 = ["children", "className"];
|
|
13200
|
-
var ButtonIcon = function ButtonIcon(props) {
|
|
13201
|
-
var children = props.children,
|
|
13202
|
-
className = props.className,
|
|
13203
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
13204
|
-
|
|
13205
|
-
var _children = /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, {
|
|
13206
|
-
"aria-hidden": true,
|
|
13207
|
-
focusable: false
|
|
13208
|
-
}) : children;
|
|
13209
|
-
|
|
13210
|
-
var _className = cx("chakra-button__icon", className);
|
|
13211
|
-
|
|
13212
|
-
return /*#__PURE__*/React.createElement(chakra.span, _extends({
|
|
13213
|
-
display: "inline-flex",
|
|
13214
|
-
alignSelf: "center",
|
|
13215
|
-
flexShrink: 0
|
|
13216
|
-
}, rest, {
|
|
13217
|
-
className: _className
|
|
13218
|
-
}), _children);
|
|
13219
|
-
};
|
|
13220
|
-
|
|
13221
|
-
if (__DEV__) {
|
|
13222
|
-
ButtonIcon.displayName = "ButtonIcon";
|
|
13223
|
-
}
|
|
13224
|
-
|
|
13225
|
-
function useButtonType(value) {
|
|
13226
|
-
var _React$useState = React.useState(!value),
|
|
13227
|
-
isButton = _React$useState[0],
|
|
13228
|
-
setIsButton = _React$useState[1];
|
|
13229
|
-
|
|
13230
|
-
var refCallback = React.useCallback(function (node) {
|
|
13231
|
-
if (!node) return;
|
|
13232
|
-
setIsButton(node.tagName === "BUTTON");
|
|
13233
|
-
}, []);
|
|
13234
|
-
var type = isButton ? "button" : undefined;
|
|
13235
|
-
return {
|
|
13236
|
-
ref: refCallback,
|
|
13237
|
-
type: type
|
|
13238
|
-
};
|
|
13239
|
-
}
|
|
13240
|
-
|
|
13241
|
-
var _excluded$1 = ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "spinnerPlacement", "className", "as"];
|
|
13242
|
-
var Button$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13243
|
-
var group = useButtonGroup();
|
|
13244
|
-
var styles = useStyleConfig("Button", _extends({}, group, props));
|
|
13245
|
-
|
|
13246
|
-
var _omitThemingProps = omitThemingProps(props),
|
|
13247
|
-
_omitThemingProps$isD = _omitThemingProps.isDisabled,
|
|
13248
|
-
isDisabled = _omitThemingProps$isD === void 0 ? group == null ? void 0 : group.isDisabled : _omitThemingProps$isD,
|
|
13249
|
-
isLoading = _omitThemingProps.isLoading,
|
|
13250
|
-
isActive = _omitThemingProps.isActive,
|
|
13251
|
-
isFullWidth = _omitThemingProps.isFullWidth,
|
|
13252
|
-
children = _omitThemingProps.children,
|
|
13253
|
-
leftIcon = _omitThemingProps.leftIcon,
|
|
13254
|
-
rightIcon = _omitThemingProps.rightIcon,
|
|
13255
|
-
loadingText = _omitThemingProps.loadingText,
|
|
13256
|
-
_omitThemingProps$ico = _omitThemingProps.iconSpacing,
|
|
13257
|
-
iconSpacing = _omitThemingProps$ico === void 0 ? "0.5rem" : _omitThemingProps$ico,
|
|
13258
|
-
type = _omitThemingProps.type,
|
|
13259
|
-
spinner = _omitThemingProps.spinner,
|
|
13260
|
-
_omitThemingProps$spi = _omitThemingProps.spinnerPlacement,
|
|
13261
|
-
spinnerPlacement = _omitThemingProps$spi === void 0 ? "start" : _omitThemingProps$spi,
|
|
13262
|
-
className = _omitThemingProps.className,
|
|
13263
|
-
as = _omitThemingProps.as,
|
|
13264
|
-
rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$1);
|
|
13265
|
-
/**
|
|
13266
|
-
* When button is used within ButtonGroup (i.e flushed with sibling buttons),
|
|
13267
|
-
* it is important to add a `zIndex` on focus.
|
|
13268
|
-
*
|
|
13269
|
-
* So let's read the component styles and then add `zIndex` to it.
|
|
13270
|
-
*/
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
var buttonStyles = React.useMemo(function () {
|
|
13274
|
-
var _styles$_focus;
|
|
13275
|
-
|
|
13276
|
-
var _focus = mergeWith({}, (_styles$_focus = styles == null ? void 0 : styles["_focus"]) != null ? _styles$_focus : {}, {
|
|
13277
|
-
zIndex: 1
|
|
13278
|
-
});
|
|
13279
|
-
|
|
13280
|
-
return _extends({
|
|
13281
|
-
display: "inline-flex",
|
|
13282
|
-
appearance: "none",
|
|
13283
|
-
alignItems: "center",
|
|
13284
|
-
justifyContent: "center",
|
|
13285
|
-
userSelect: "none",
|
|
13286
|
-
position: "relative",
|
|
13287
|
-
whiteSpace: "nowrap",
|
|
13288
|
-
verticalAlign: "middle",
|
|
13289
|
-
outline: "none",
|
|
13290
|
-
width: isFullWidth ? "100%" : "auto"
|
|
13291
|
-
}, styles, !!group && {
|
|
13292
|
-
_focus: _focus
|
|
13293
|
-
});
|
|
13294
|
-
}, [styles, group, isFullWidth]);
|
|
13295
|
-
|
|
13296
|
-
var _useButtonType = useButtonType(as),
|
|
13297
|
-
_ref = _useButtonType.ref,
|
|
13298
|
-
defaultType = _useButtonType.type;
|
|
13299
|
-
|
|
13300
|
-
var contentProps = {
|
|
13301
|
-
rightIcon: rightIcon,
|
|
13302
|
-
leftIcon: leftIcon,
|
|
13303
|
-
iconSpacing: iconSpacing,
|
|
13304
|
-
children: children
|
|
13305
|
-
};
|
|
13306
|
-
return /*#__PURE__*/React.createElement(chakra.button, _extends({
|
|
13307
|
-
disabled: isDisabled || isLoading,
|
|
13308
|
-
ref: useMergeRefs(ref, _ref),
|
|
13309
|
-
as: as,
|
|
13310
|
-
type: type != null ? type : defaultType,
|
|
13311
|
-
"data-active": dataAttr(isActive),
|
|
13312
|
-
"data-loading": dataAttr(isLoading),
|
|
13313
|
-
__css: buttonStyles,
|
|
13314
|
-
className: cx("chakra-button", className)
|
|
13315
|
-
}, rest), isLoading && spinnerPlacement === "start" && /*#__PURE__*/React.createElement(ButtonSpinner, {
|
|
13316
|
-
className: "chakra-button__spinner--start",
|
|
13317
|
-
label: loadingText,
|
|
13318
|
-
placement: "start",
|
|
13319
|
-
spacing: iconSpacing
|
|
13320
|
-
}, spinner), isLoading ? loadingText || /*#__PURE__*/React.createElement(chakra.span, {
|
|
13321
|
-
opacity: 0
|
|
13322
|
-
}, /*#__PURE__*/React.createElement(ButtonContent, contentProps)) : /*#__PURE__*/React.createElement(ButtonContent, contentProps), isLoading && spinnerPlacement === "end" && /*#__PURE__*/React.createElement(ButtonSpinner, {
|
|
13323
|
-
className: "chakra-button__spinner--end",
|
|
13324
|
-
label: loadingText,
|
|
13325
|
-
placement: "end",
|
|
13326
|
-
spacing: iconSpacing
|
|
13327
|
-
}, spinner));
|
|
13328
|
-
});
|
|
13329
|
-
|
|
13330
|
-
if (__DEV__) {
|
|
13331
|
-
Button$1.displayName = "Button";
|
|
13332
|
-
}
|
|
13333
|
-
|
|
13334
|
-
function ButtonContent(props) {
|
|
13335
|
-
var leftIcon = props.leftIcon,
|
|
13336
|
-
rightIcon = props.rightIcon,
|
|
13337
|
-
children = props.children,
|
|
13338
|
-
iconSpacing = props.iconSpacing;
|
|
13339
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, leftIcon && /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
13340
|
-
marginEnd: iconSpacing
|
|
13341
|
-
}, leftIcon), children, rightIcon && /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
13342
|
-
marginStart: iconSpacing
|
|
13343
|
-
}, rightIcon));
|
|
13344
|
-
}
|
|
13345
|
-
|
|
13346
|
-
var _excluded = ["icon", "children", "isRound", "aria-label"];
|
|
13347
|
-
var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13348
|
-
var icon = props.icon,
|
|
13349
|
-
children = props.children,
|
|
13350
|
-
isRound = props.isRound,
|
|
13351
|
-
ariaLabel = props["aria-label"],
|
|
13352
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
13353
|
-
/**
|
|
13354
|
-
* Passing the icon as prop or children should work
|
|
13355
|
-
*/
|
|
13356
|
-
|
|
13357
|
-
|
|
13358
|
-
var element = icon || children;
|
|
13359
|
-
|
|
13360
|
-
var _children = /*#__PURE__*/React.isValidElement(element) ? /*#__PURE__*/React.cloneElement(element, {
|
|
13361
|
-
"aria-hidden": true,
|
|
13362
|
-
focusable: false
|
|
13363
|
-
}) : null;
|
|
13364
|
-
|
|
13365
|
-
return /*#__PURE__*/React.createElement(Button$1, _extends({
|
|
13366
|
-
padding: "0",
|
|
13367
|
-
borderRadius: isRound ? "full" : undefined,
|
|
13368
|
-
ref: ref,
|
|
13369
|
-
"aria-label": ariaLabel
|
|
13370
|
-
}, rest), _children);
|
|
13371
|
-
});
|
|
13372
|
-
|
|
13373
|
-
if (__DEV__) {
|
|
13374
|
-
IconButton.displayName = "IconButton";
|
|
13375
|
-
}
|
|
13376
|
-
|
|
13377
12416
|
var ChakraProvider = ChakraProvider$1;
|
|
13378
12417
|
ChakraProvider.defaultProps = {
|
|
13379
12418
|
theme: theme$1
|
|
@@ -13457,9 +12496,6 @@ var pallette = {
|
|
|
13457
12496
|
800: '#2A2D3C',
|
|
13458
12497
|
900: '#15171E',
|
|
13459
12498
|
},
|
|
13460
|
-
televet: {
|
|
13461
|
-
100: '#A4DAE4',
|
|
13462
|
-
},
|
|
13463
12499
|
teal: {
|
|
13464
12500
|
50: '#EBF7F9',
|
|
13465
12501
|
100: '#C8E9EF',
|
|
@@ -13634,253 +12670,23 @@ var semanticTokens = {
|
|
|
13634
12670
|
error: pallette.red[500],
|
|
13635
12671
|
},
|
|
13636
12672
|
};
|
|
13637
|
-
var colors =
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
none: 0,
|
|
13641
|
-
sm: '4px',
|
|
13642
|
-
base: '8px',
|
|
13643
|
-
md: '12px',
|
|
13644
|
-
lg: '16px',
|
|
13645
|
-
xl: '24px',
|
|
13646
|
-
'2xl': '40px',
|
|
13647
|
-
'3xl': '64px',
|
|
13648
|
-
};
|
|
13649
|
-
|
|
13650
|
-
var breakpoints = createBreakpoints({
|
|
13651
|
-
sm: '30em',
|
|
13652
|
-
md: '48em',
|
|
13653
|
-
lg: '62em',
|
|
13654
|
-
xl: '80em',
|
|
13655
|
-
'2xl': '96em',
|
|
13656
|
-
});
|
|
13657
|
-
|
|
13658
|
-
var borders = {
|
|
13659
|
-
none: 0,
|
|
13660
|
-
'1px': '1px solid',
|
|
13661
|
-
'2px': '2px solid',
|
|
13662
|
-
'4px': '4px solid',
|
|
13663
|
-
'8px': '8px solid',
|
|
13664
|
-
};
|
|
13665
|
-
|
|
13666
|
-
var radii = {
|
|
13667
|
-
none: '0',
|
|
13668
|
-
sm: '0.125rem',
|
|
13669
|
-
base: '0.25rem',
|
|
13670
|
-
md: '0.375rem',
|
|
13671
|
-
lg: '0.5rem',
|
|
13672
|
-
xl: '0.75rem',
|
|
13673
|
-
'2xl': '1rem',
|
|
13674
|
-
'3xl': '1.5rem',
|
|
13675
|
-
full: '9999px',
|
|
13676
|
-
};
|
|
13677
|
-
|
|
13678
|
-
var shadows = {
|
|
13679
|
-
xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',
|
|
13680
|
-
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
13681
|
-
base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
|
13682
|
-
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
13683
|
-
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
13684
|
-
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
13685
|
-
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
13686
|
-
outline: '0 0 0 3px rgba(66, 153, 225, 0.6)',
|
|
13687
|
-
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
13688
|
-
none: 'none',
|
|
13689
|
-
'dark-lg': 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
|
|
13690
|
-
};
|
|
13691
|
-
|
|
13692
|
-
var space = {
|
|
13693
|
-
px: '1px',
|
|
13694
|
-
0.5: '0.125rem',
|
|
13695
|
-
1: '0.25rem',
|
|
13696
|
-
1.5: '0.375rem',
|
|
13697
|
-
2: '0.5rem',
|
|
13698
|
-
2.5: '0.625rem',
|
|
13699
|
-
3: '0.75rem',
|
|
13700
|
-
3.5: '0.875rem',
|
|
13701
|
-
4: '1rem',
|
|
13702
|
-
5: '1.25rem',
|
|
13703
|
-
6: '1.5rem',
|
|
13704
|
-
7: '1.75rem',
|
|
13705
|
-
8: '2rem',
|
|
13706
|
-
9: '2.25rem',
|
|
13707
|
-
10: '2.5rem',
|
|
13708
|
-
12: '3rem',
|
|
13709
|
-
14: '3.5rem',
|
|
13710
|
-
16: '4rem',
|
|
13711
|
-
20: '5rem',
|
|
13712
|
-
24: '6rem',
|
|
13713
|
-
28: '7rem',
|
|
13714
|
-
32: '8rem',
|
|
13715
|
-
36: '9rem',
|
|
13716
|
-
40: '10rem',
|
|
13717
|
-
44: '11rem',
|
|
13718
|
-
48: '12rem',
|
|
13719
|
-
52: '13rem',
|
|
13720
|
-
56: '14rem',
|
|
13721
|
-
60: '15rem',
|
|
13722
|
-
64: '16rem',
|
|
13723
|
-
72: '18rem',
|
|
13724
|
-
80: '20rem',
|
|
13725
|
-
96: '24rem',
|
|
13726
|
-
};
|
|
13727
|
-
|
|
13728
|
-
var sizes = {
|
|
13729
|
-
max: 'max-content',
|
|
13730
|
-
min: 'min-content',
|
|
13731
|
-
full: '100%',
|
|
13732
|
-
'3xs': '14rem',
|
|
13733
|
-
'2xs': '16rem',
|
|
13734
|
-
xs: '20rem',
|
|
13735
|
-
sm: '24rem',
|
|
13736
|
-
md: '28rem',
|
|
13737
|
-
lg: '32rem',
|
|
13738
|
-
xl: '36rem',
|
|
13739
|
-
'2xl': '42rem',
|
|
13740
|
-
'3xl': '48rem',
|
|
13741
|
-
'4xl': '56rem',
|
|
13742
|
-
'5xl': '64rem',
|
|
13743
|
-
'6xl': '72rem',
|
|
13744
|
-
'7xl': '80rem',
|
|
13745
|
-
'8xl': '90rem',
|
|
13746
|
-
container: {
|
|
13747
|
-
sm: '640px',
|
|
13748
|
-
md: '768px',
|
|
13749
|
-
lg: '1024px',
|
|
13750
|
-
xl: '1280px',
|
|
13751
|
-
},
|
|
12673
|
+
var colors = {
|
|
12674
|
+
pallette: pallette,
|
|
12675
|
+
semanticTokens: semanticTokens,
|
|
13752
12676
|
};
|
|
13753
12677
|
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
colors: 'background-color, border-color, color, fill, stroke',
|
|
13757
|
-
dimensions: 'width, height',
|
|
13758
|
-
position: 'left, right, top, bottom',
|
|
13759
|
-
background: 'background-color, background-image, background-position',
|
|
13760
|
-
};
|
|
13761
|
-
var transitionTimingFunction = {
|
|
13762
|
-
'ease-in': 'cubic-bezier(0.4, 0, 1, 1)',
|
|
13763
|
-
'ease-out': 'cubic-bezier(0, 0, 0.2, 1)',
|
|
13764
|
-
'ease-in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
13765
|
-
};
|
|
13766
|
-
var transitionDuration = {
|
|
13767
|
-
'ultra-fast': '50ms',
|
|
13768
|
-
faster: '100ms',
|
|
13769
|
-
fast: '150ms',
|
|
13770
|
-
normal: '200ms',
|
|
13771
|
-
slow: '300ms',
|
|
13772
|
-
slower: '400ms',
|
|
13773
|
-
'ultra-slow': '500ms',
|
|
13774
|
-
};
|
|
13775
|
-
var transition = {
|
|
13776
|
-
property: transitionProperty,
|
|
13777
|
-
easing: transitionTimingFunction,
|
|
13778
|
-
duration: transitionDuration,
|
|
13779
|
-
};
|
|
13780
|
-
|
|
13781
|
-
var fonts = {
|
|
13782
|
-
heading: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
|
|
13783
|
-
body: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
|
|
13784
|
-
mono: "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace",
|
|
13785
|
-
};
|
|
13786
|
-
|
|
13787
|
-
var fontSizes = {
|
|
13788
|
-
xs: '0.75rem',
|
|
13789
|
-
sm: '0.875rem',
|
|
13790
|
-
md: '1rem',
|
|
13791
|
-
lg: '1.125rem',
|
|
13792
|
-
xl: '1.25rem',
|
|
13793
|
-
'2xl': '1.5rem',
|
|
13794
|
-
'3xl': '1.875rem',
|
|
13795
|
-
'4xl': '2.25rem',
|
|
13796
|
-
'5xl': '3rem',
|
|
13797
|
-
'6xl': '3.75rem',
|
|
13798
|
-
'7xl': '4.5rem',
|
|
13799
|
-
'8xl': '6rem',
|
|
13800
|
-
'9xl': '8rem',
|
|
13801
|
-
};
|
|
13802
|
-
|
|
13803
|
-
var fontWeights = {
|
|
13804
|
-
hairline: 100,
|
|
13805
|
-
thin: 200,
|
|
13806
|
-
light: 300,
|
|
13807
|
-
normal: 400,
|
|
13808
|
-
medium: 500,
|
|
13809
|
-
semibold: 600,
|
|
13810
|
-
bold: 700,
|
|
13811
|
-
extrabold: 800,
|
|
13812
|
-
black: 900,
|
|
13813
|
-
};
|
|
13814
|
-
|
|
13815
|
-
var lineHeights = {
|
|
13816
|
-
normal: 'normal',
|
|
13817
|
-
none: 1,
|
|
13818
|
-
shorter: 1.25,
|
|
13819
|
-
short: 1.375,
|
|
13820
|
-
base: 1.5,
|
|
13821
|
-
tall: 1.625,
|
|
13822
|
-
taller: '2',
|
|
13823
|
-
'3': '.75rem',
|
|
13824
|
-
'4': '1rem',
|
|
13825
|
-
'5': '1.25rem',
|
|
13826
|
-
'6': '1.5rem',
|
|
13827
|
-
'7': '1.75rem',
|
|
13828
|
-
'8': '2rem',
|
|
13829
|
-
'9': '2.25rem',
|
|
13830
|
-
'10': '2.5rem',
|
|
13831
|
-
};
|
|
13832
|
-
|
|
13833
|
-
var zIndices = {
|
|
13834
|
-
hide: -1,
|
|
13835
|
-
auto: 'auto',
|
|
13836
|
-
base: 0,
|
|
13837
|
-
docked: 10,
|
|
13838
|
-
dropdown: 1000,
|
|
13839
|
-
sticky: 1100,
|
|
13840
|
-
banner: 1200,
|
|
13841
|
-
overlay: 1300,
|
|
13842
|
-
modal: 1400,
|
|
13843
|
-
popover: 1500,
|
|
13844
|
-
skipLink: 1600,
|
|
13845
|
-
toast: 1700,
|
|
13846
|
-
tooltip: 1800,
|
|
13847
|
-
};
|
|
13848
|
-
|
|
13849
|
-
// @ts-ignore
|
|
12678
|
+
// theme/index.js
|
|
12679
|
+
// import { ThemeTypings } from '@chakra-ui/react';
|
|
13850
12680
|
var theme = extendTheme({
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
breakpoints: breakpoints,
|
|
13854
|
-
colors: colors,
|
|
13855
|
-
radii: radii,
|
|
13856
|
-
shadows: shadows,
|
|
13857
|
-
sizes: sizes,
|
|
13858
|
-
fonts: fonts,
|
|
13859
|
-
fontSizes: fontSizes,
|
|
13860
|
-
fontWeights: fontWeights,
|
|
13861
|
-
lineHeights: lineHeights,
|
|
13862
|
-
space: space,
|
|
13863
|
-
transition: transition,
|
|
13864
|
-
zIndices: zIndices,
|
|
12681
|
+
colors: colors.pallette,
|
|
12682
|
+
semanticTokens: colors.semanticTokens,
|
|
13865
12683
|
});
|
|
13866
12684
|
|
|
13867
12685
|
var ThemeProvider = function (_a) {
|
|
13868
12686
|
var children = _a.children;
|
|
13869
|
-
return (React__default.createElement(ThemeProvider$
|
|
13870
|
-
React__default.createElement(ThemeProvider$1, { theme: theme },
|
|
13871
|
-
children,
|
|
13872
|
-
React__default.createElement(Wrapper, null, "hello"),
|
|
13873
|
-
React__default.createElement(Button$1, { color: 'background.error' }, "Button"))));
|
|
13874
|
-
};
|
|
13875
|
-
var Wrapper = styled$1.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
13876
|
-
var theme = _a.theme;
|
|
13877
|
-
return theme.colors.blackAlpha[100];
|
|
13878
|
-
});
|
|
13879
|
-
var templateObject_1;
|
|
13880
|
-
|
|
13881
|
-
var Button = function (props) {
|
|
13882
|
-
return React__default.createElement(Button$1, __assign({}, props));
|
|
12687
|
+
return (React__default.createElement(ThemeProvider$2, { theme: theme },
|
|
12688
|
+
React__default.createElement(ThemeProvider$1, { theme: theme }, children)));
|
|
13883
12689
|
};
|
|
13884
12690
|
|
|
13885
|
-
export {
|
|
12691
|
+
export { ThemeProvider, theme };
|
|
13886
12692
|
//# sourceMappingURL=index.es.js.map
|