@televet/kibble-ui 0.1.0-beta.2 → 0.1.0-beta.21
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 +37 -230
- package/build/components/Banner/index.d.ts +3 -0
- package/build/components/Input/index.d.ts +3 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +541 -173
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +16 -15
- package/build/theme/{colors.d.ts → tokens/colors.d.ts} +32 -31
- package/package.json +17 -28
- package/build/index.es.js +0 -13886
- package/build/index.es.js.map +0 -1
- package/build/providers/ThemeProvider/ThemeProvider.d.ts +0 -5
- package/build/theme/breakpoints.d.ts +0 -9
- package/build/theme/theme.d.ts +0 -3
- package/build/theme/tokens/colors/colors.d.ts +0 -190
- package/build/theme/tokens/fonts/fonts.d.ts +0 -6
- /package/build/theme/{blur.d.ts → tokens/blur.d.ts} +0 -0
- /package/build/theme/{borders.d.ts → tokens/borders.d.ts} +0 -0
- /package/build/theme/{fontSizes.d.ts → tokens/fontSizes.d.ts} +0 -0
- /package/build/theme/{fontWeights.d.ts → tokens/fontWeights.d.ts} +0 -0
- /package/build/theme/{fonts.d.ts → tokens/fonts.d.ts} +0 -0
- /package/build/theme/{letterSpacings.d.ts → tokens/letterSpacings.d.ts} +0 -0
- /package/build/theme/{lineHeights.d.ts → tokens/lineHeights.d.ts} +0 -0
- /package/build/theme/{radii.d.ts → tokens/radii.d.ts} +0 -0
- /package/build/theme/{shadows.d.ts → tokens/shadows.d.ts} +0 -0
- /package/build/theme/{sizes.d.ts → tokens/sizes.d.ts} +0 -0
- /package/build/theme/{space.d.ts → tokens/space.d.ts} +0 -0
- /package/build/theme/{transition.d.ts → tokens/transition.d.ts} +0 -0
- /package/build/theme/{zIndeces.d.ts → tokens/zIndeces.d.ts} +0 -0
package/build/index.js
CHANGED
|
@@ -597,8 +597,8 @@ var createCache = function createCache(options) {
|
|
|
597
597
|
return cache;
|
|
598
598
|
};
|
|
599
599
|
|
|
600
|
-
function _extends$
|
|
601
|
-
_extends$
|
|
600
|
+
function _extends$9() {
|
|
601
|
+
_extends$9 = Object.assign || function (target) {
|
|
602
602
|
for (var i = 1; i < arguments.length; i++) {
|
|
603
603
|
var source = arguments[i];
|
|
604
604
|
|
|
@@ -612,7 +612,7 @@ function _extends$6() {
|
|
|
612
612
|
return target;
|
|
613
613
|
};
|
|
614
614
|
|
|
615
|
-
return _extends$
|
|
615
|
+
return _extends$9.apply(this, arguments);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -1437,7 +1437,7 @@ var getTheme = function getTheme(outerTheme, theme) {
|
|
|
1437
1437
|
throw new Error('[ThemeProvider] Please make your theme prop a plain object');
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
return _extends$
|
|
1440
|
+
return _extends$9({}, outerTheme, theme);
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
1443
1443
|
var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
@@ -4393,11 +4393,11 @@ function useMergeRefs() {
|
|
|
4393
4393
|
}, refs);
|
|
4394
4394
|
}
|
|
4395
4395
|
|
|
4396
|
-
var _createContext$1 = createContext({
|
|
4396
|
+
var _createContext$1$1 = createContext({
|
|
4397
4397
|
strict: false,
|
|
4398
4398
|
name: "PortalManagerContext"
|
|
4399
4399
|
}),
|
|
4400
|
-
PortalManagerContextProvider = _createContext$1[0];
|
|
4400
|
+
PortalManagerContextProvider = _createContext$1$1[0];
|
|
4401
4401
|
function PortalManager(props) {
|
|
4402
4402
|
var children = props.children,
|
|
4403
4403
|
zIndex = props.zIndex;
|
|
@@ -4831,8 +4831,8 @@ if (__DEV__) {
|
|
|
4831
4831
|
ColorModeProvider.displayName = "ColorModeProvider";
|
|
4832
4832
|
}
|
|
4833
4833
|
|
|
4834
|
-
function _extends$
|
|
4835
|
-
_extends$
|
|
4834
|
+
function _extends$8() {
|
|
4835
|
+
_extends$8 = Object.assign || function (target) {
|
|
4836
4836
|
for (var i = 1; i < arguments.length; i++) {
|
|
4837
4837
|
var source = arguments[i];
|
|
4838
4838
|
|
|
@@ -4846,7 +4846,7 @@ function _extends$5() {
|
|
|
4846
4846
|
return target;
|
|
4847
4847
|
};
|
|
4848
4848
|
|
|
4849
|
-
return _extends$
|
|
4849
|
+
return _extends$8.apply(this, arguments);
|
|
4850
4850
|
}
|
|
4851
4851
|
|
|
4852
4852
|
var tokenToCSSVar = function tokenToCSSVar(scale, value) {
|
|
@@ -5255,7 +5255,7 @@ var t = {
|
|
|
5255
5255
|
};
|
|
5256
5256
|
},
|
|
5257
5257
|
prop: function prop(property, scale, transform) {
|
|
5258
|
-
return _extends$
|
|
5258
|
+
return _extends$8({
|
|
5259
5259
|
property: property,
|
|
5260
5260
|
scale: scale
|
|
5261
5261
|
}, scale && {
|
|
@@ -6317,7 +6317,7 @@ var systemProps = mergeWith({}, background, border, color, flexbox, layout, filt
|
|
|
6317
6317
|
Object.assign({}, space$1, layout, flexbox, grid, position);
|
|
6318
6318
|
var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
|
|
6319
6319
|
|
|
6320
|
-
var styleProps = _extends$
|
|
6320
|
+
var styleProps = _extends$8({}, systemProps, pseudoSelectors);
|
|
6321
6321
|
|
|
6322
6322
|
var isStyleProp = function isStyleProp(prop) {
|
|
6323
6323
|
return prop in styleProps;
|
|
@@ -6803,7 +6803,7 @@ function createThemeVars(flatTokens, options) {
|
|
|
6803
6803
|
};
|
|
6804
6804
|
}
|
|
6805
6805
|
|
|
6806
|
-
function _objectWithoutPropertiesLoose$
|
|
6806
|
+
function _objectWithoutPropertiesLoose$6(source, excluded) {
|
|
6807
6807
|
if (source == null) return {};
|
|
6808
6808
|
var target = {};
|
|
6809
6809
|
var sourceKeys = Object.keys(source);
|
|
@@ -6818,7 +6818,7 @@ function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
|
6818
6818
|
return target;
|
|
6819
6819
|
}
|
|
6820
6820
|
|
|
6821
|
-
var _excluded$
|
|
6821
|
+
var _excluded$a = ["__cssMap", "__cssVars", "__breakpoints"];
|
|
6822
6822
|
var tokens = ["colors", "borders", "borderWidths", "borderStyles", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "space", "shadows", "sizes", "zIndices", "transition", "blur"];
|
|
6823
6823
|
function extractTokens(theme) {
|
|
6824
6824
|
var _tokens = tokens;
|
|
@@ -6831,7 +6831,7 @@ function omitVars(rawTheme) {
|
|
|
6831
6831
|
rawTheme.__cssMap;
|
|
6832
6832
|
rawTheme.__cssVars;
|
|
6833
6833
|
rawTheme.__breakpoints;
|
|
6834
|
-
var cleanTheme = _objectWithoutPropertiesLoose$
|
|
6834
|
+
var cleanTheme = _objectWithoutPropertiesLoose$6(rawTheme, _excluded$a);
|
|
6835
6835
|
|
|
6836
6836
|
return cleanTheme;
|
|
6837
6837
|
}
|
|
@@ -6896,7 +6896,7 @@ function toCSSVar(rawTheme) {
|
|
|
6896
6896
|
"--chakra-space-y-reverse": "0"
|
|
6897
6897
|
};
|
|
6898
6898
|
Object.assign(theme, {
|
|
6899
|
-
__cssVars: _extends$
|
|
6899
|
+
__cssVars: _extends$8({}, defaultCssVars, cssVars),
|
|
6900
6900
|
__cssMap: cssMap,
|
|
6901
6901
|
__breakpoints: analyzeBreakpoints(theme.breakpoints)
|
|
6902
6902
|
});
|
|
@@ -7238,7 +7238,7 @@ var createStyled = function createStyled(tag, options) {
|
|
|
7238
7238
|
});
|
|
7239
7239
|
|
|
7240
7240
|
Styled.withComponent = function (nextTag, nextOptions) {
|
|
7241
|
-
return createStyled(nextTag, _extends$
|
|
7241
|
+
return createStyled(nextTag, _extends$9({}, options, nextOptions, {
|
|
7242
7242
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
7243
7243
|
})).apply(void 0, styles);
|
|
7244
7244
|
};
|
|
@@ -7256,8 +7256,8 @@ tags.forEach(function (tagName) {
|
|
|
7256
7256
|
newStyled[tagName] = newStyled(tagName);
|
|
7257
7257
|
});
|
|
7258
7258
|
|
|
7259
|
-
function _extends$
|
|
7260
|
-
_extends$
|
|
7259
|
+
function _extends$7() {
|
|
7260
|
+
_extends$7 = Object.assign || function (target) {
|
|
7261
7261
|
for (var i = 1; i < arguments.length; i++) {
|
|
7262
7262
|
var source = arguments[i];
|
|
7263
7263
|
|
|
@@ -7271,7 +7271,7 @@ function _extends$4() {
|
|
|
7271
7271
|
return target;
|
|
7272
7272
|
};
|
|
7273
7273
|
|
|
7274
|
-
return _extends$
|
|
7274
|
+
return _extends$7.apply(this, arguments);
|
|
7275
7275
|
}
|
|
7276
7276
|
|
|
7277
7277
|
var ThemeProvider = function ThemeProvider(props) {
|
|
@@ -7313,10 +7313,12 @@ function useTheme() {
|
|
|
7313
7313
|
return theme;
|
|
7314
7314
|
}
|
|
7315
7315
|
|
|
7316
|
-
createContext({
|
|
7316
|
+
var _createContext$2 = createContext({
|
|
7317
7317
|
name: "StylesContext",
|
|
7318
7318
|
errorMessage: "useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "
|
|
7319
|
-
})
|
|
7319
|
+
}),
|
|
7320
|
+
StylesProvider = _createContext$2[0],
|
|
7321
|
+
useStyles = _createContext$2[1];
|
|
7320
7322
|
/**
|
|
7321
7323
|
* Applies styles defined in `theme.styles.global` globally
|
|
7322
7324
|
* using emotion's `Global` component
|
|
@@ -7347,12 +7349,12 @@ function omitThemingProps(props) {
|
|
|
7347
7349
|
function useChakra() {
|
|
7348
7350
|
var colorModeResult = useColorMode();
|
|
7349
7351
|
var theme = useTheme();
|
|
7350
|
-
return _extends$
|
|
7352
|
+
return _extends$7({}, colorModeResult, {
|
|
7351
7353
|
theme: theme
|
|
7352
7354
|
});
|
|
7353
7355
|
}
|
|
7354
7356
|
|
|
7355
|
-
function _objectWithoutPropertiesLoose$
|
|
7357
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
7356
7358
|
if (source == null) return {};
|
|
7357
7359
|
var target = {};
|
|
7358
7360
|
var sourceKeys = Object.keys(source);
|
|
@@ -7408,7 +7410,7 @@ var toCSSObject = function toCSSObject(_ref) {
|
|
|
7408
7410
|
var cssProp = props.css,
|
|
7409
7411
|
__css = props.__css,
|
|
7410
7412
|
sx = props.sx,
|
|
7411
|
-
rest = _objectWithoutPropertiesLoose$
|
|
7413
|
+
rest = _objectWithoutPropertiesLoose$5(props, _excluded$1$1);
|
|
7412
7414
|
|
|
7413
7415
|
var styleProps = objectFilter(rest, function (_, prop) {
|
|
7414
7416
|
return isStyleProp(prop);
|
|
@@ -7422,7 +7424,7 @@ var toCSSObject = function toCSSObject(_ref) {
|
|
|
7422
7424
|
function styled(component, options) {
|
|
7423
7425
|
var _ref2 = options != null ? options : {},
|
|
7424
7426
|
baseStyle = _ref2.baseStyle,
|
|
7425
|
-
styledOptions = _objectWithoutPropertiesLoose$
|
|
7427
|
+
styledOptions = _objectWithoutPropertiesLoose$5(_ref2, _excluded2);
|
|
7426
7428
|
|
|
7427
7429
|
if (!styledOptions.shouldForwardProp) {
|
|
7428
7430
|
styledOptions.shouldForwardProp = shouldForwardProp;
|
|
@@ -7442,7 +7444,7 @@ function forwardRef(component) {
|
|
|
7442
7444
|
return /*#__PURE__*/React__namespace.forwardRef(component);
|
|
7443
7445
|
}
|
|
7444
7446
|
|
|
7445
|
-
var _excluded$
|
|
7447
|
+
var _excluded$9 = ["styleConfig"];
|
|
7446
7448
|
function useStyleConfig(themeKey, props, opts) {
|
|
7447
7449
|
var _styleConfig$defaultP;
|
|
7448
7450
|
|
|
@@ -7456,7 +7458,7 @@ function useStyleConfig(themeKey, props, opts) {
|
|
|
7456
7458
|
|
|
7457
7459
|
var _props = props,
|
|
7458
7460
|
styleConfigProp = _props.styleConfig,
|
|
7459
|
-
rest = _objectWithoutPropertiesLoose$
|
|
7461
|
+
rest = _objectWithoutPropertiesLoose$5(_props, _excluded$9);
|
|
7460
7462
|
|
|
7461
7463
|
var _useChakra = useChakra(),
|
|
7462
7464
|
theme = _useChakra.theme,
|
|
@@ -7499,6 +7501,11 @@ function useStyleConfig(themeKey, props, opts) {
|
|
|
7499
7501
|
|
|
7500
7502
|
return stylesRef.current;
|
|
7501
7503
|
}
|
|
7504
|
+
function useMultiStyleConfig(themeKey, props) {
|
|
7505
|
+
return useStyleConfig(themeKey, props, {
|
|
7506
|
+
isMultiPart: true
|
|
7507
|
+
});
|
|
7508
|
+
}
|
|
7502
7509
|
|
|
7503
7510
|
function factory() {
|
|
7504
7511
|
var cache = new Map();
|
|
@@ -7594,8 +7601,8 @@ var spacing = {
|
|
|
7594
7601
|
96: "24rem"
|
|
7595
7602
|
};
|
|
7596
7603
|
|
|
7597
|
-
function _extends$
|
|
7598
|
-
_extends$
|
|
7604
|
+
function _extends$6() {
|
|
7605
|
+
_extends$6 = Object.assign || function (target) {
|
|
7599
7606
|
for (var i = 1; i < arguments.length; i++) {
|
|
7600
7607
|
var source = arguments[i];
|
|
7601
7608
|
|
|
@@ -7609,7 +7616,7 @@ function _extends$3() {
|
|
|
7609
7616
|
return target;
|
|
7610
7617
|
};
|
|
7611
7618
|
|
|
7612
|
-
return _extends$
|
|
7619
|
+
return _extends$6.apply(this, arguments);
|
|
7613
7620
|
}
|
|
7614
7621
|
|
|
7615
7622
|
var largeSizes = {
|
|
@@ -7638,7 +7645,7 @@ var container$1 = {
|
|
|
7638
7645
|
xl: "1280px"
|
|
7639
7646
|
};
|
|
7640
7647
|
|
|
7641
|
-
var sizes$m = _extends$
|
|
7648
|
+
var sizes$m = _extends$6({}, spacing, largeSizes, {
|
|
7642
7649
|
container: container$1
|
|
7643
7650
|
});
|
|
7644
7651
|
|
|
@@ -7713,7 +7720,7 @@ function boundAlpha(a) {
|
|
|
7713
7720
|
*/
|
|
7714
7721
|
function convertToPercentage(n) {
|
|
7715
7722
|
if (n <= 1) {
|
|
7716
|
-
return Number(n) * 100
|
|
7723
|
+
return "".concat(Number(n) * 100, "%");
|
|
7717
7724
|
}
|
|
7718
7725
|
return n;
|
|
7719
7726
|
}
|
|
@@ -8166,12 +8173,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
8166
8173
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
8167
8174
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
8168
8175
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
8169
|
-
var CSS_UNIT = "(?:"
|
|
8176
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
8170
8177
|
// Actual matching.
|
|
8171
8178
|
// Parentheses and commas are optional, but not required.
|
|
8172
8179
|
// Whitespace can take the place of commas or opening paren
|
|
8173
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
8174
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
8180
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
8181
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
8175
8182
|
var matchers = {
|
|
8176
8183
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
8177
8184
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -8397,7 +8404,7 @@ var TinyColor = /** @class */ (function () {
|
|
|
8397
8404
|
var h = Math.round(hsv.h * 360);
|
|
8398
8405
|
var s = Math.round(hsv.s * 100);
|
|
8399
8406
|
var v = Math.round(hsv.v * 100);
|
|
8400
|
-
return this.a === 1 ? "hsv("
|
|
8407
|
+
return this.a === 1 ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")");
|
|
8401
8408
|
};
|
|
8402
8409
|
/**
|
|
8403
8410
|
* Returns the object as a HSLA object.
|
|
@@ -8415,7 +8422,7 @@ var TinyColor = /** @class */ (function () {
|
|
|
8415
8422
|
var h = Math.round(hsl.h * 360);
|
|
8416
8423
|
var s = Math.round(hsl.s * 100);
|
|
8417
8424
|
var l = Math.round(hsl.l * 100);
|
|
8418
|
-
return this.a === 1 ? "hsl("
|
|
8425
|
+
return this.a === 1 ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")");
|
|
8419
8426
|
};
|
|
8420
8427
|
/**
|
|
8421
8428
|
* Returns the hex value of the color.
|
|
@@ -8468,13 +8475,13 @@ var TinyColor = /** @class */ (function () {
|
|
|
8468
8475
|
var r = Math.round(this.r);
|
|
8469
8476
|
var g = Math.round(this.g);
|
|
8470
8477
|
var b = Math.round(this.b);
|
|
8471
|
-
return this.a === 1 ? "rgb("
|
|
8478
|
+
return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")");
|
|
8472
8479
|
};
|
|
8473
8480
|
/**
|
|
8474
8481
|
* Returns the object as a RGBA object.
|
|
8475
8482
|
*/
|
|
8476
8483
|
TinyColor.prototype.toPercentageRgb = function () {
|
|
8477
|
-
var fmt = function (x) { return Math.round(bound01(x, 255) * 100)
|
|
8484
|
+
var fmt = function (x) { return "".concat(Math.round(bound01(x, 255) * 100), "%"); };
|
|
8478
8485
|
return {
|
|
8479
8486
|
r: fmt(this.r),
|
|
8480
8487
|
g: fmt(this.g),
|
|
@@ -8488,8 +8495,8 @@ var TinyColor = /** @class */ (function () {
|
|
|
8488
8495
|
TinyColor.prototype.toPercentageRgbString = function () {
|
|
8489
8496
|
var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };
|
|
8490
8497
|
return this.a === 1
|
|
8491
|
-
? "rgb("
|
|
8492
|
-
: "rgba("
|
|
8498
|
+
? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)")
|
|
8499
|
+
: "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
|
|
8493
8500
|
};
|
|
8494
8501
|
/**
|
|
8495
8502
|
* The 'real' name of the color -if there is one.
|
|
@@ -9165,8 +9172,8 @@ function orient(options) {
|
|
|
9165
9172
|
return orientation === "vertical" ? vertical : horizontal;
|
|
9166
9173
|
}
|
|
9167
9174
|
|
|
9168
|
-
function _extends$
|
|
9169
|
-
_extends$
|
|
9175
|
+
function _extends$5() {
|
|
9176
|
+
_extends$5 = Object.assign || function (target) {
|
|
9170
9177
|
for (var i = 1; i < arguments.length; i++) {
|
|
9171
9178
|
var source = arguments[i];
|
|
9172
9179
|
|
|
@@ -9180,7 +9187,7 @@ function _extends$2() {
|
|
|
9180
9187
|
return target;
|
|
9181
9188
|
};
|
|
9182
9189
|
|
|
9183
|
-
return _extends$
|
|
9190
|
+
return _extends$5.apply(this, arguments);
|
|
9184
9191
|
}
|
|
9185
9192
|
|
|
9186
9193
|
var createBreakpoints = function createBreakpoints(config) {
|
|
@@ -9188,7 +9195,7 @@ var createBreakpoints = function createBreakpoints(config) {
|
|
|
9188
9195
|
condition: true,
|
|
9189
9196
|
message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
|
|
9190
9197
|
});
|
|
9191
|
-
return _extends$
|
|
9198
|
+
return _extends$5({
|
|
9192
9199
|
base: "0em"
|
|
9193
9200
|
}, config);
|
|
9194
9201
|
};
|
|
@@ -9962,7 +9969,7 @@ var variantGhost = function variantGhost(props) {
|
|
|
9962
9969
|
var variantOutline$1 = function variantOutline(props) {
|
|
9963
9970
|
var c = props.colorScheme;
|
|
9964
9971
|
var borderColor = mode("gray.200", "whiteAlpha.300")(props);
|
|
9965
|
-
return _extends$
|
|
9972
|
+
return _extends$6({
|
|
9966
9973
|
border: "1px solid",
|
|
9967
9974
|
borderColor: c === "gray" ? borderColor : "currentColor"
|
|
9968
9975
|
}, variantGhost(props));
|
|
@@ -10345,7 +10352,7 @@ var baseStyleDialogContainer$1 = {
|
|
|
10345
10352
|
|
|
10346
10353
|
var baseStyleDialog$1 = function baseStyleDialog(props) {
|
|
10347
10354
|
var isFullHeight = props.isFullHeight;
|
|
10348
|
-
return _extends$
|
|
10355
|
+
return _extends$6({}, isFullHeight && {
|
|
10349
10356
|
height: "100vh"
|
|
10350
10357
|
}, {
|
|
10351
10358
|
zIndex: "modal",
|
|
@@ -11080,7 +11087,7 @@ function getSize(size) {
|
|
|
11080
11087
|
var fontSize = typography.fontSizes[_fontSize.toString()];
|
|
11081
11088
|
|
|
11082
11089
|
return {
|
|
11083
|
-
field: _extends$
|
|
11090
|
+
field: _extends$6({}, sizeStyle.field, {
|
|
11084
11091
|
paddingInlineEnd: $inputPadding.reference,
|
|
11085
11092
|
verticalAlign: "top"
|
|
11086
11093
|
}),
|
|
@@ -11114,7 +11121,7 @@ var numberInput = {
|
|
|
11114
11121
|
|
|
11115
11122
|
var _Input$variants$unsty$1;
|
|
11116
11123
|
|
|
11117
|
-
var baseStyle$f = _extends$
|
|
11124
|
+
var baseStyle$f = _extends$6({}, Input.baseStyle.field, {
|
|
11118
11125
|
textAlign: "center"
|
|
11119
11126
|
});
|
|
11120
11127
|
|
|
@@ -11236,7 +11243,7 @@ function filledStyle(props) {
|
|
|
11236
11243
|
var bgColor = mode(c + ".500", c + ".200")(props);
|
|
11237
11244
|
var gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t, bgColor) + " 50%,\n transparent 100%\n )";
|
|
11238
11245
|
var addStripe = !isIndeterminate && hasStripe;
|
|
11239
|
-
return _extends$
|
|
11246
|
+
return _extends$6({}, addStripe && stripeStyle, isIndeterminate ? {
|
|
11240
11247
|
bgImage: gradient
|
|
11241
11248
|
} : {
|
|
11242
11249
|
bgColor: bgColor
|
|
@@ -11257,7 +11264,7 @@ var baseStyleTrack$2 = function baseStyleTrack(props) {
|
|
|
11257
11264
|
};
|
|
11258
11265
|
|
|
11259
11266
|
var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) {
|
|
11260
|
-
return _extends$
|
|
11267
|
+
return _extends$6({
|
|
11261
11268
|
transitionProperty: "common",
|
|
11262
11269
|
transitionDuration: "slow"
|
|
11263
11270
|
}, filledStyle(props));
|
|
@@ -11309,9 +11316,9 @@ var baseStyleControl = function baseStyleControl(props) {
|
|
|
11309
11316
|
_Checkbox$baseStyle$c = _Checkbox$baseStyle.control,
|
|
11310
11317
|
control = _Checkbox$baseStyle$c === void 0 ? {} : _Checkbox$baseStyle$c;
|
|
11311
11318
|
|
|
11312
|
-
return _extends$
|
|
11319
|
+
return _extends$6({}, control, {
|
|
11313
11320
|
borderRadius: "full",
|
|
11314
|
-
_checked: _extends$
|
|
11321
|
+
_checked: _extends$6({}, control["_checked"], {
|
|
11315
11322
|
_before: {
|
|
11316
11323
|
content: "\"\"",
|
|
11317
11324
|
display: "inline-block",
|
|
@@ -11374,7 +11381,7 @@ var radio = {
|
|
|
11374
11381
|
};
|
|
11375
11382
|
|
|
11376
11383
|
var baseStyleField = function baseStyleField(props) {
|
|
11377
|
-
return _extends$
|
|
11384
|
+
return _extends$6({}, Input.baseStyle.field, {
|
|
11378
11385
|
bg: mode("white", "gray.700")(props),
|
|
11379
11386
|
appearance: "none",
|
|
11380
11387
|
paddingBottom: "1px",
|
|
@@ -11510,7 +11517,7 @@ function thumbOrientation(props) {
|
|
|
11510
11517
|
|
|
11511
11518
|
var baseStyleContainer$1 = function baseStyleContainer(props) {
|
|
11512
11519
|
var orientation = props.orientation;
|
|
11513
|
-
return _extends$
|
|
11520
|
+
return _extends$6({
|
|
11514
11521
|
display: "inline-block",
|
|
11515
11522
|
position: "relative",
|
|
11516
11523
|
cursor: "pointer",
|
|
@@ -11542,7 +11549,7 @@ var baseStyleTrack$1 = function baseStyleTrack(props) {
|
|
|
11542
11549
|
};
|
|
11543
11550
|
|
|
11544
11551
|
var baseStyleThumb$1 = function baseStyleThumb(props) {
|
|
11545
|
-
return _extends$
|
|
11552
|
+
return _extends$6({
|
|
11546
11553
|
display: "flex",
|
|
11547
11554
|
alignItems: "center",
|
|
11548
11555
|
justifyContent: "center",
|
|
@@ -11828,12 +11835,12 @@ var numericStyles = {
|
|
|
11828
11835
|
var variantSimple = function variantSimple(props) {
|
|
11829
11836
|
var c = props.colorScheme;
|
|
11830
11837
|
return {
|
|
11831
|
-
th: _extends$
|
|
11838
|
+
th: _extends$6({
|
|
11832
11839
|
color: mode("gray.600", "gray.400")(props),
|
|
11833
11840
|
borderBottom: "1px",
|
|
11834
11841
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11835
11842
|
}, numericStyles),
|
|
11836
|
-
td: _extends$
|
|
11843
|
+
td: _extends$6({
|
|
11837
11844
|
borderBottom: "1px",
|
|
11838
11845
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11839
11846
|
}, numericStyles),
|
|
@@ -11855,12 +11862,12 @@ var variantSimple = function variantSimple(props) {
|
|
|
11855
11862
|
var variantStripe = function variantStripe(props) {
|
|
11856
11863
|
var c = props.colorScheme;
|
|
11857
11864
|
return {
|
|
11858
|
-
th: _extends$
|
|
11865
|
+
th: _extends$6({
|
|
11859
11866
|
color: mode("gray.600", "gray.400")(props),
|
|
11860
11867
|
borderBottom: "1px",
|
|
11861
11868
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11862
11869
|
}, numericStyles),
|
|
11863
|
-
td: _extends$
|
|
11870
|
+
td: _extends$6({
|
|
11864
11871
|
borderBottom: "1px",
|
|
11865
11872
|
borderColor: mode(c + ".100", c + ".700")(props)
|
|
11866
11873
|
}, numericStyles),
|
|
@@ -12269,7 +12276,7 @@ var tag = {
|
|
|
12269
12276
|
|
|
12270
12277
|
var _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field;
|
|
12271
12278
|
|
|
12272
|
-
var baseStyle$1 = _extends$
|
|
12279
|
+
var baseStyle$1 = _extends$6({}, Input.baseStyle.field, {
|
|
12273
12280
|
paddingY: "8px",
|
|
12274
12281
|
minHeight: "80px",
|
|
12275
12282
|
lineHeight: "short",
|
|
@@ -12381,7 +12388,7 @@ var borders$1 = {
|
|
|
12381
12388
|
* Breakpoints for responsive design
|
|
12382
12389
|
*/
|
|
12383
12390
|
|
|
12384
|
-
var breakpoints
|
|
12391
|
+
var breakpoints = createBreakpoints({
|
|
12385
12392
|
sm: "30em",
|
|
12386
12393
|
md: "48em",
|
|
12387
12394
|
lg: "62em",
|
|
@@ -12698,8 +12705,8 @@ var blur$1 = {
|
|
|
12698
12705
|
"3xl": "64px"
|
|
12699
12706
|
};
|
|
12700
12707
|
|
|
12701
|
-
var foundations = _extends$
|
|
12702
|
-
breakpoints: breakpoints
|
|
12708
|
+
var foundations = _extends$6({
|
|
12709
|
+
breakpoints: breakpoints,
|
|
12703
12710
|
zIndices: zIndices$1,
|
|
12704
12711
|
radii: radii$1,
|
|
12705
12712
|
blur: blur$1,
|
|
@@ -12752,7 +12759,7 @@ var config = {
|
|
|
12752
12759
|
initialColorMode: "light",
|
|
12753
12760
|
cssVarPrefix: "chakra"
|
|
12754
12761
|
};
|
|
12755
|
-
var theme$1 = _extends$
|
|
12762
|
+
var theme$1 = _extends$6({
|
|
12756
12763
|
direction: direction
|
|
12757
12764
|
}, foundations, {
|
|
12758
12765
|
components: components,
|
|
@@ -12760,6 +12767,116 @@ var theme$1 = _extends$3({
|
|
|
12760
12767
|
config: config
|
|
12761
12768
|
});
|
|
12762
12769
|
|
|
12770
|
+
function _extends$4() {
|
|
12771
|
+
_extends$4 = Object.assign || function (target) {
|
|
12772
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12773
|
+
var source = arguments[i];
|
|
12774
|
+
|
|
12775
|
+
for (var key in source) {
|
|
12776
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12777
|
+
target[key] = source[key];
|
|
12778
|
+
}
|
|
12779
|
+
}
|
|
12780
|
+
}
|
|
12781
|
+
|
|
12782
|
+
return target;
|
|
12783
|
+
};
|
|
12784
|
+
|
|
12785
|
+
return _extends$4.apply(this, arguments);
|
|
12786
|
+
}
|
|
12787
|
+
|
|
12788
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
12789
|
+
if (source == null) return {};
|
|
12790
|
+
var target = {};
|
|
12791
|
+
var sourceKeys = Object.keys(source);
|
|
12792
|
+
var key, i;
|
|
12793
|
+
|
|
12794
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
12795
|
+
key = sourceKeys[i];
|
|
12796
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
12797
|
+
target[key] = source[key];
|
|
12798
|
+
}
|
|
12799
|
+
|
|
12800
|
+
return target;
|
|
12801
|
+
}
|
|
12802
|
+
|
|
12803
|
+
var _excluded$8 = ["as", "viewBox", "color", "focusable", "children", "className", "__css"];
|
|
12804
|
+
var fallbackIcon = {
|
|
12805
|
+
path: /*#__PURE__*/React__namespace.createElement("g", {
|
|
12806
|
+
stroke: "currentColor",
|
|
12807
|
+
strokeWidth: "1.5"
|
|
12808
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
12809
|
+
strokeLinecap: "round",
|
|
12810
|
+
fill: "none",
|
|
12811
|
+
d: "M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
|
|
12812
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
12813
|
+
fill: "currentColor",
|
|
12814
|
+
strokeLinecap: "round",
|
|
12815
|
+
d: "M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
|
|
12816
|
+
}), /*#__PURE__*/React__namespace.createElement("circle", {
|
|
12817
|
+
fill: "none",
|
|
12818
|
+
strokeMiterlimit: "10",
|
|
12819
|
+
cx: "12",
|
|
12820
|
+
cy: "12",
|
|
12821
|
+
r: "11.25"
|
|
12822
|
+
})),
|
|
12823
|
+
viewBox: "0 0 24 24"
|
|
12824
|
+
};
|
|
12825
|
+
var Icon = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12826
|
+
var element = props.as,
|
|
12827
|
+
viewBox = props.viewBox,
|
|
12828
|
+
_props$color = props.color,
|
|
12829
|
+
color = _props$color === void 0 ? "currentColor" : _props$color,
|
|
12830
|
+
_props$focusable = props.focusable,
|
|
12831
|
+
focusable = _props$focusable === void 0 ? false : _props$focusable,
|
|
12832
|
+
children = props.children,
|
|
12833
|
+
className = props.className,
|
|
12834
|
+
__css = props.__css,
|
|
12835
|
+
rest = _objectWithoutPropertiesLoose$4(props, _excluded$8);
|
|
12836
|
+
|
|
12837
|
+
var _className = cx("chakra-icon", className);
|
|
12838
|
+
|
|
12839
|
+
var styles = _extends$4({
|
|
12840
|
+
w: "1em",
|
|
12841
|
+
h: "1em",
|
|
12842
|
+
display: "inline-block",
|
|
12843
|
+
lineHeight: "1em",
|
|
12844
|
+
flexShrink: 0,
|
|
12845
|
+
color: color
|
|
12846
|
+
}, __css);
|
|
12847
|
+
|
|
12848
|
+
var shared = {
|
|
12849
|
+
ref: ref,
|
|
12850
|
+
focusable: focusable,
|
|
12851
|
+
className: _className,
|
|
12852
|
+
__css: styles
|
|
12853
|
+
};
|
|
12854
|
+
|
|
12855
|
+
var _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
|
|
12856
|
+
/**
|
|
12857
|
+
* If you're using an icon library like `react-icons`.
|
|
12858
|
+
* Note: anyone passing the `as` prop, should manage the `viewBox` from the external component
|
|
12859
|
+
*/
|
|
12860
|
+
|
|
12861
|
+
|
|
12862
|
+
if (element && typeof element !== "string") {
|
|
12863
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.svg, _extends$4({
|
|
12864
|
+
as: element
|
|
12865
|
+
}, shared, rest));
|
|
12866
|
+
}
|
|
12867
|
+
|
|
12868
|
+
var _path = children != null ? children : fallbackIcon.path;
|
|
12869
|
+
|
|
12870
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.svg, _extends$4({
|
|
12871
|
+
verticalAlign: "middle",
|
|
12872
|
+
viewBox: _viewBox
|
|
12873
|
+
}, shared, rest), _path);
|
|
12874
|
+
});
|
|
12875
|
+
|
|
12876
|
+
if (__DEV__) {
|
|
12877
|
+
Icon.displayName = "Icon";
|
|
12878
|
+
}
|
|
12879
|
+
|
|
12763
12880
|
/*! *****************************************************************************
|
|
12764
12881
|
Copyright (c) Microsoft Corporation.
|
|
12765
12882
|
|
|
@@ -12786,6 +12903,170 @@ var __assign = function() {
|
|
|
12786
12903
|
return __assign.apply(this, arguments);
|
|
12787
12904
|
};
|
|
12788
12905
|
|
|
12906
|
+
function _extends$3() {
|
|
12907
|
+
_extends$3 = Object.assign || function (target) {
|
|
12908
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12909
|
+
var source = arguments[i];
|
|
12910
|
+
|
|
12911
|
+
for (var key in source) {
|
|
12912
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12913
|
+
target[key] = source[key];
|
|
12914
|
+
}
|
|
12915
|
+
}
|
|
12916
|
+
}
|
|
12917
|
+
|
|
12918
|
+
return target;
|
|
12919
|
+
};
|
|
12920
|
+
|
|
12921
|
+
return _extends$3.apply(this, arguments);
|
|
12922
|
+
}
|
|
12923
|
+
|
|
12924
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
12925
|
+
if (source == null) return {};
|
|
12926
|
+
var target = {};
|
|
12927
|
+
var sourceKeys = Object.keys(source);
|
|
12928
|
+
var key, i;
|
|
12929
|
+
|
|
12930
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
12931
|
+
key = sourceKeys[i];
|
|
12932
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
12933
|
+
target[key] = source[key];
|
|
12934
|
+
}
|
|
12935
|
+
|
|
12936
|
+
return target;
|
|
12937
|
+
}
|
|
12938
|
+
|
|
12939
|
+
var CheckIcon = function CheckIcon(props) {
|
|
12940
|
+
return /*#__PURE__*/React__namespace.createElement(Icon, _extends$3({
|
|
12941
|
+
viewBox: "0 0 24 24"
|
|
12942
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
12943
|
+
fill: "currentColor",
|
|
12944
|
+
d: "M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"
|
|
12945
|
+
}));
|
|
12946
|
+
};
|
|
12947
|
+
var InfoIcon = function InfoIcon(props) {
|
|
12948
|
+
return /*#__PURE__*/React__namespace.createElement(Icon, _extends$3({
|
|
12949
|
+
viewBox: "0 0 24 24"
|
|
12950
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
12951
|
+
fill: "currentColor",
|
|
12952
|
+
d: "M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"
|
|
12953
|
+
}));
|
|
12954
|
+
};
|
|
12955
|
+
var WarningIcon = function WarningIcon(props) {
|
|
12956
|
+
return /*#__PURE__*/React__namespace.createElement(Icon, _extends$3({
|
|
12957
|
+
viewBox: "0 0 24 24"
|
|
12958
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
12959
|
+
fill: "currentColor",
|
|
12960
|
+
d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"
|
|
12961
|
+
}));
|
|
12962
|
+
};
|
|
12963
|
+
|
|
12964
|
+
var _excluded$7 = ["status"];
|
|
12965
|
+
var STATUSES = {
|
|
12966
|
+
info: {
|
|
12967
|
+
icon: InfoIcon,
|
|
12968
|
+
colorScheme: "blue"
|
|
12969
|
+
},
|
|
12970
|
+
warning: {
|
|
12971
|
+
icon: WarningIcon,
|
|
12972
|
+
colorScheme: "orange"
|
|
12973
|
+
},
|
|
12974
|
+
success: {
|
|
12975
|
+
icon: CheckIcon,
|
|
12976
|
+
colorScheme: "green"
|
|
12977
|
+
},
|
|
12978
|
+
error: {
|
|
12979
|
+
icon: WarningIcon,
|
|
12980
|
+
colorScheme: "red"
|
|
12981
|
+
}
|
|
12982
|
+
};
|
|
12983
|
+
|
|
12984
|
+
var _createContext$1 = createContext({
|
|
12985
|
+
name: "AlertContext",
|
|
12986
|
+
errorMessage: "useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in `<Alert />`"
|
|
12987
|
+
}),
|
|
12988
|
+
AlertProvider = _createContext$1[0],
|
|
12989
|
+
useAlertContext = _createContext$1[1];
|
|
12990
|
+
|
|
12991
|
+
/**
|
|
12992
|
+
* Alert is used to communicate the state or status of a
|
|
12993
|
+
* page, feature or action
|
|
12994
|
+
*/
|
|
12995
|
+
var Alert = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12996
|
+
var _props$colorScheme;
|
|
12997
|
+
|
|
12998
|
+
var _omitThemingProps = omitThemingProps(props),
|
|
12999
|
+
_omitThemingProps$sta = _omitThemingProps.status,
|
|
13000
|
+
status = _omitThemingProps$sta === void 0 ? "info" : _omitThemingProps$sta,
|
|
13001
|
+
rest = _objectWithoutPropertiesLoose$3(_omitThemingProps, _excluded$7);
|
|
13002
|
+
|
|
13003
|
+
var colorScheme = (_props$colorScheme = props.colorScheme) != null ? _props$colorScheme : STATUSES[status].colorScheme;
|
|
13004
|
+
var styles = useMultiStyleConfig("Alert", _extends$3({}, props, {
|
|
13005
|
+
colorScheme: colorScheme
|
|
13006
|
+
}));
|
|
13007
|
+
|
|
13008
|
+
var alertStyles = _extends$3({
|
|
13009
|
+
width: "100%",
|
|
13010
|
+
display: "flex",
|
|
13011
|
+
alignItems: "center",
|
|
13012
|
+
position: "relative",
|
|
13013
|
+
overflow: "hidden"
|
|
13014
|
+
}, styles.container);
|
|
13015
|
+
|
|
13016
|
+
return /*#__PURE__*/React__namespace.createElement(AlertProvider, {
|
|
13017
|
+
value: {
|
|
13018
|
+
status: status
|
|
13019
|
+
}
|
|
13020
|
+
}, /*#__PURE__*/React__namespace.createElement(StylesProvider, {
|
|
13021
|
+
value: styles
|
|
13022
|
+
}, /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$3({
|
|
13023
|
+
role: "alert",
|
|
13024
|
+
ref: ref
|
|
13025
|
+
}, rest, {
|
|
13026
|
+
className: cx("chakra-alert", props.className),
|
|
13027
|
+
__css: alertStyles
|
|
13028
|
+
}))));
|
|
13029
|
+
});
|
|
13030
|
+
var AlertTitle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13031
|
+
var styles = useStyles();
|
|
13032
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$3({
|
|
13033
|
+
ref: ref
|
|
13034
|
+
}, props, {
|
|
13035
|
+
className: cx("chakra-alert__title", props.className),
|
|
13036
|
+
__css: styles.title
|
|
13037
|
+
}));
|
|
13038
|
+
});
|
|
13039
|
+
var AlertDescription = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13040
|
+
var styles = useStyles();
|
|
13041
|
+
|
|
13042
|
+
var descriptionStyles = _extends$3({
|
|
13043
|
+
display: "inline"
|
|
13044
|
+
}, styles.description);
|
|
13045
|
+
|
|
13046
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$3({
|
|
13047
|
+
ref: ref
|
|
13048
|
+
}, props, {
|
|
13049
|
+
className: cx("chakra-alert__desc", props.className),
|
|
13050
|
+
__css: descriptionStyles
|
|
13051
|
+
}));
|
|
13052
|
+
});
|
|
13053
|
+
var AlertIcon = function AlertIcon(props) {
|
|
13054
|
+
var _useAlertContext = useAlertContext(),
|
|
13055
|
+
status = _useAlertContext.status;
|
|
13056
|
+
|
|
13057
|
+
var BaseIcon = STATUSES[status].icon;
|
|
13058
|
+
var styles = useStyles();
|
|
13059
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.span, _extends$3({
|
|
13060
|
+
display: "inherit"
|
|
13061
|
+
}, props, {
|
|
13062
|
+
className: cx("chakra-alert__icon", props.className),
|
|
13063
|
+
__css: styles.icon
|
|
13064
|
+
}), /*#__PURE__*/React__namespace.createElement(BaseIcon, {
|
|
13065
|
+
w: "100%",
|
|
13066
|
+
h: "100%"
|
|
13067
|
+
}));
|
|
13068
|
+
};
|
|
13069
|
+
|
|
12789
13070
|
/**
|
|
12790
13071
|
* Styles to visually hide an element
|
|
12791
13072
|
* but make it accessible to screen-readers
|
|
@@ -12828,8 +13109,8 @@ if (__DEV__) {
|
|
|
12828
13109
|
VisuallyHiddenInput.displayName = "VisuallyHiddenInput";
|
|
12829
13110
|
}
|
|
12830
13111
|
|
|
12831
|
-
function _extends$
|
|
12832
|
-
_extends$
|
|
13112
|
+
function _extends$2() {
|
|
13113
|
+
_extends$2 = Object.assign || function (target) {
|
|
12833
13114
|
for (var i = 1; i < arguments.length; i++) {
|
|
12834
13115
|
var source = arguments[i];
|
|
12835
13116
|
|
|
@@ -12843,10 +13124,10 @@ function _extends$1() {
|
|
|
12843
13124
|
return target;
|
|
12844
13125
|
};
|
|
12845
13126
|
|
|
12846
|
-
return _extends$
|
|
13127
|
+
return _extends$2.apply(this, arguments);
|
|
12847
13128
|
}
|
|
12848
13129
|
|
|
12849
|
-
function _objectWithoutPropertiesLoose$
|
|
13130
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
12850
13131
|
if (source == null) return {};
|
|
12851
13132
|
var target = {};
|
|
12852
13133
|
var sourceKeys = Object.keys(source);
|
|
@@ -12861,7 +13142,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
12861
13142
|
return target;
|
|
12862
13143
|
}
|
|
12863
13144
|
|
|
12864
|
-
var _excluded$
|
|
13145
|
+
var _excluded$6 = ["label", "thickness", "speed", "emptyColor", "className"];
|
|
12865
13146
|
var spin = keyframes({
|
|
12866
13147
|
"0%": {
|
|
12867
13148
|
transform: "rotate(0deg)"
|
|
@@ -12890,11 +13171,11 @@ var Spinner = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12890
13171
|
_omitThemingProps$emp = _omitThemingProps.emptyColor,
|
|
12891
13172
|
emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp,
|
|
12892
13173
|
className = _omitThemingProps.className,
|
|
12893
|
-
rest = _objectWithoutPropertiesLoose$
|
|
13174
|
+
rest = _objectWithoutPropertiesLoose$2(_omitThemingProps, _excluded$6);
|
|
12894
13175
|
|
|
12895
13176
|
var _className = cx("chakra-spinner", className);
|
|
12896
13177
|
|
|
12897
|
-
var spinnerStyles = _extends$
|
|
13178
|
+
var spinnerStyles = _extends$2({
|
|
12898
13179
|
display: "inline-block",
|
|
12899
13180
|
borderColor: "currentColor",
|
|
12900
13181
|
borderStyle: "solid",
|
|
@@ -12905,7 +13186,7 @@ var Spinner = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12905
13186
|
animation: spin + " " + speed + " linear infinite"
|
|
12906
13187
|
}, styles);
|
|
12907
13188
|
|
|
12908
|
-
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$
|
|
13189
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$2({
|
|
12909
13190
|
ref: ref,
|
|
12910
13191
|
__css: spinnerStyles,
|
|
12911
13192
|
className: _className
|
|
@@ -12916,7 +13197,7 @@ if (__DEV__) {
|
|
|
12916
13197
|
Spinner.displayName = "Spinner";
|
|
12917
13198
|
}
|
|
12918
13199
|
|
|
12919
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
13200
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
12920
13201
|
if (source == null) return {};
|
|
12921
13202
|
var target = {};
|
|
12922
13203
|
var sourceKeys = Object.keys(source);
|
|
@@ -12931,8 +13212,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
12931
13212
|
return target;
|
|
12932
13213
|
}
|
|
12933
13214
|
|
|
12934
|
-
function _extends() {
|
|
12935
|
-
_extends = Object.assign || function (target) {
|
|
13215
|
+
function _extends$1() {
|
|
13216
|
+
_extends$1 = Object.assign || function (target) {
|
|
12936
13217
|
for (var i = 1; i < arguments.length; i++) {
|
|
12937
13218
|
var source = arguments[i];
|
|
12938
13219
|
|
|
@@ -12946,7 +13227,7 @@ function _extends() {
|
|
|
12946
13227
|
return target;
|
|
12947
13228
|
};
|
|
12948
13229
|
|
|
12949
|
-
return _extends.apply(this, arguments);
|
|
13230
|
+
return _extends$1.apply(this, arguments);
|
|
12950
13231
|
}
|
|
12951
13232
|
|
|
12952
13233
|
var _excluded$4 = ["size", "colorScheme", "variant", "className", "spacing", "isAttached", "isDisabled"];
|
|
@@ -12966,7 +13247,7 @@ var ButtonGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12966
13247
|
spacing = _props$spacing === void 0 ? "0.5rem" : _props$spacing,
|
|
12967
13248
|
isAttached = props.isAttached,
|
|
12968
13249
|
isDisabled = props.isDisabled,
|
|
12969
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
13250
|
+
rest = _objectWithoutPropertiesLoose$1(props, _excluded$4);
|
|
12970
13251
|
|
|
12971
13252
|
var _className = cx("chakra-button__group", className);
|
|
12972
13253
|
|
|
@@ -12983,7 +13264,7 @@ var ButtonGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12983
13264
|
};
|
|
12984
13265
|
|
|
12985
13266
|
if (isAttached) {
|
|
12986
|
-
groupStyles = _extends({}, groupStyles, {
|
|
13267
|
+
groupStyles = _extends$1({}, groupStyles, {
|
|
12987
13268
|
"> *:first-of-type:not(:last-of-type)": {
|
|
12988
13269
|
borderEndRadius: 0
|
|
12989
13270
|
},
|
|
@@ -12995,7 +13276,7 @@ var ButtonGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
12995
13276
|
}
|
|
12996
13277
|
});
|
|
12997
13278
|
} else {
|
|
12998
|
-
groupStyles = _extends({}, groupStyles, {
|
|
13279
|
+
groupStyles = _extends$1({}, groupStyles, {
|
|
12999
13280
|
"& > *:not(style) ~ *:not(style)": {
|
|
13000
13281
|
marginStart: spacing
|
|
13001
13282
|
}
|
|
@@ -13004,7 +13285,7 @@ var ButtonGroup = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13004
13285
|
|
|
13005
13286
|
return /*#__PURE__*/React__namespace.createElement(ButtonGroupProvider, {
|
|
13006
13287
|
value: context
|
|
13007
|
-
}, /*#__PURE__*/React__namespace.createElement(chakra.div, _extends({
|
|
13288
|
+
}, /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$1({
|
|
13008
13289
|
ref: ref,
|
|
13009
13290
|
role: "group",
|
|
13010
13291
|
__css: groupStyles,
|
|
@@ -13030,7 +13311,7 @@ var ButtonSpinner = function ButtonSpinner(props) {
|
|
|
13030
13311
|
}) : _props$children,
|
|
13031
13312
|
className = props.className,
|
|
13032
13313
|
__css = props.__css,
|
|
13033
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
13314
|
+
rest = _objectWithoutPropertiesLoose$1(props, _excluded$3);
|
|
13034
13315
|
|
|
13035
13316
|
var _className = cx("chakra-button__spinner", className);
|
|
13036
13317
|
|
|
@@ -13038,13 +13319,13 @@ var ButtonSpinner = function ButtonSpinner(props) {
|
|
|
13038
13319
|
var spinnerStyles = React__namespace.useMemo(function () {
|
|
13039
13320
|
var _extends2;
|
|
13040
13321
|
|
|
13041
|
-
return _extends((_extends2 = {
|
|
13322
|
+
return _extends$1((_extends2 = {
|
|
13042
13323
|
display: "flex",
|
|
13043
13324
|
alignItems: "center",
|
|
13044
13325
|
position: label ? "relative" : "absolute"
|
|
13045
13326
|
}, _extends2[marginProp] = label ? spacing : 0, _extends2.fontSize = "1em", _extends2.lineHeight = "normal", _extends2), __css);
|
|
13046
13327
|
}, [__css, label, marginProp, spacing]);
|
|
13047
|
-
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends({
|
|
13328
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.div, _extends$1({
|
|
13048
13329
|
className: _className
|
|
13049
13330
|
}, rest, {
|
|
13050
13331
|
__css: spinnerStyles
|
|
@@ -13059,7 +13340,7 @@ var _excluded$2 = ["children", "className"];
|
|
|
13059
13340
|
var ButtonIcon = function ButtonIcon(props) {
|
|
13060
13341
|
var children = props.children,
|
|
13061
13342
|
className = props.className,
|
|
13062
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
13343
|
+
rest = _objectWithoutPropertiesLoose$1(props, _excluded$2);
|
|
13063
13344
|
|
|
13064
13345
|
var _children = /*#__PURE__*/React__namespace.isValidElement(children) ? /*#__PURE__*/React__namespace.cloneElement(children, {
|
|
13065
13346
|
"aria-hidden": true,
|
|
@@ -13068,7 +13349,7 @@ var ButtonIcon = function ButtonIcon(props) {
|
|
|
13068
13349
|
|
|
13069
13350
|
var _className = cx("chakra-button__icon", className);
|
|
13070
13351
|
|
|
13071
|
-
return /*#__PURE__*/React__namespace.createElement(chakra.span, _extends({
|
|
13352
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.span, _extends$1({
|
|
13072
13353
|
display: "inline-flex",
|
|
13073
13354
|
alignSelf: "center",
|
|
13074
13355
|
flexShrink: 0
|
|
@@ -13100,7 +13381,7 @@ function useButtonType(value) {
|
|
|
13100
13381
|
var _excluded$1 = ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "spinnerPlacement", "className", "as"];
|
|
13101
13382
|
var Button$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13102
13383
|
var group = useButtonGroup();
|
|
13103
|
-
var styles = useStyleConfig("Button", _extends({}, group, props));
|
|
13384
|
+
var styles = useStyleConfig("Button", _extends$1({}, group, props));
|
|
13104
13385
|
|
|
13105
13386
|
var _omitThemingProps = omitThemingProps(props),
|
|
13106
13387
|
_omitThemingProps$isD = _omitThemingProps.isDisabled,
|
|
@@ -13120,7 +13401,7 @@ var Button$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13120
13401
|
spinnerPlacement = _omitThemingProps$spi === void 0 ? "start" : _omitThemingProps$spi,
|
|
13121
13402
|
className = _omitThemingProps.className,
|
|
13122
13403
|
as = _omitThemingProps.as,
|
|
13123
|
-
rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$1);
|
|
13404
|
+
rest = _objectWithoutPropertiesLoose$1(_omitThemingProps, _excluded$1);
|
|
13124
13405
|
/**
|
|
13125
13406
|
* When button is used within ButtonGroup (i.e. flushed with sibling buttons),
|
|
13126
13407
|
* it is important to add a `zIndex` on focus.
|
|
@@ -13136,7 +13417,7 @@ var Button$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13136
13417
|
zIndex: 1
|
|
13137
13418
|
});
|
|
13138
13419
|
|
|
13139
|
-
return _extends({
|
|
13420
|
+
return _extends$1({
|
|
13140
13421
|
display: "inline-flex",
|
|
13141
13422
|
appearance: "none",
|
|
13142
13423
|
alignItems: "center",
|
|
@@ -13162,7 +13443,7 @@ var Button$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13162
13443
|
iconSpacing: iconSpacing,
|
|
13163
13444
|
children: children
|
|
13164
13445
|
};
|
|
13165
|
-
return /*#__PURE__*/React__namespace.createElement(chakra.button, _extends({
|
|
13446
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.button, _extends$1({
|
|
13166
13447
|
disabled: isDisabled || isLoading,
|
|
13167
13448
|
ref: useMergeRefs(ref, _ref),
|
|
13168
13449
|
as: as,
|
|
@@ -13202,13 +13483,13 @@ function ButtonContent(props) {
|
|
|
13202
13483
|
}, rightIcon));
|
|
13203
13484
|
}
|
|
13204
13485
|
|
|
13205
|
-
var _excluded = ["icon", "children", "isRound", "aria-label"];
|
|
13486
|
+
var _excluded$5 = ["icon", "children", "isRound", "aria-label"];
|
|
13206
13487
|
var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13207
13488
|
var icon = props.icon,
|
|
13208
13489
|
children = props.children,
|
|
13209
13490
|
isRound = props.isRound,
|
|
13210
13491
|
ariaLabel = props["aria-label"],
|
|
13211
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
13492
|
+
rest = _objectWithoutPropertiesLoose$1(props, _excluded$5);
|
|
13212
13493
|
/**
|
|
13213
13494
|
* Passing the icon as prop or children should work
|
|
13214
13495
|
*/
|
|
@@ -13221,7 +13502,7 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13221
13502
|
focusable: false
|
|
13222
13503
|
}) : null;
|
|
13223
13504
|
|
|
13224
|
-
return /*#__PURE__*/React__namespace.createElement(Button$1, _extends({
|
|
13505
|
+
return /*#__PURE__*/React__namespace.createElement(Button$1, _extends$1({
|
|
13225
13506
|
padding: "0",
|
|
13226
13507
|
borderRadius: isRound ? "full" : undefined,
|
|
13227
13508
|
ref: ref,
|
|
@@ -13233,6 +13514,89 @@ if (__DEV__) {
|
|
|
13233
13514
|
IconButton.displayName = "IconButton";
|
|
13234
13515
|
}
|
|
13235
13516
|
|
|
13517
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
13518
|
+
if (source == null) return {};
|
|
13519
|
+
var target = {};
|
|
13520
|
+
var sourceKeys = Object.keys(source);
|
|
13521
|
+
var key, i;
|
|
13522
|
+
|
|
13523
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
13524
|
+
key = sourceKeys[i];
|
|
13525
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
13526
|
+
target[key] = source[key];
|
|
13527
|
+
}
|
|
13528
|
+
|
|
13529
|
+
return target;
|
|
13530
|
+
}
|
|
13531
|
+
|
|
13532
|
+
function _extends() {
|
|
13533
|
+
_extends = Object.assign || function (target) {
|
|
13534
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13535
|
+
var source = arguments[i];
|
|
13536
|
+
|
|
13537
|
+
for (var key in source) {
|
|
13538
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13539
|
+
target[key] = source[key];
|
|
13540
|
+
}
|
|
13541
|
+
}
|
|
13542
|
+
}
|
|
13543
|
+
|
|
13544
|
+
return target;
|
|
13545
|
+
};
|
|
13546
|
+
|
|
13547
|
+
return _extends.apply(this, arguments);
|
|
13548
|
+
}
|
|
13549
|
+
|
|
13550
|
+
var _excluded = ["children", "isDisabled", "__css"];
|
|
13551
|
+
|
|
13552
|
+
var CloseIcon = function CloseIcon(props) {
|
|
13553
|
+
return /*#__PURE__*/React__namespace.createElement(Icon, _extends({
|
|
13554
|
+
focusable: "false",
|
|
13555
|
+
"aria-hidden": true
|
|
13556
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
13557
|
+
fill: "currentColor",
|
|
13558
|
+
d: "M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"
|
|
13559
|
+
}));
|
|
13560
|
+
};
|
|
13561
|
+
|
|
13562
|
+
/**
|
|
13563
|
+
* A button with a close icon.
|
|
13564
|
+
*
|
|
13565
|
+
* It is used to handle the close functionality in feedback and overlay components
|
|
13566
|
+
* like Alerts, Toasts, Drawers and Modals.
|
|
13567
|
+
*/
|
|
13568
|
+
var CloseButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13569
|
+
var styles = useStyleConfig("CloseButton", props);
|
|
13570
|
+
|
|
13571
|
+
var _omitThemingProps = omitThemingProps(props),
|
|
13572
|
+
children = _omitThemingProps.children,
|
|
13573
|
+
isDisabled = _omitThemingProps.isDisabled,
|
|
13574
|
+
__css = _omitThemingProps.__css,
|
|
13575
|
+
rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded);
|
|
13576
|
+
|
|
13577
|
+
var baseStyle = {
|
|
13578
|
+
outline: 0,
|
|
13579
|
+
display: "flex",
|
|
13580
|
+
alignItems: "center",
|
|
13581
|
+
justifyContent: "center",
|
|
13582
|
+
flexShrink: 0
|
|
13583
|
+
};
|
|
13584
|
+
return /*#__PURE__*/React__namespace.createElement(chakra.button, _extends({
|
|
13585
|
+
type: "button",
|
|
13586
|
+
"aria-label": "Close",
|
|
13587
|
+
ref: ref,
|
|
13588
|
+
disabled: isDisabled,
|
|
13589
|
+
__css: _extends({}, baseStyle, styles, __css)
|
|
13590
|
+
}, rest), children || /*#__PURE__*/React__namespace.createElement(CloseIcon, {
|
|
13591
|
+
width: "1em",
|
|
13592
|
+
height: "1em"
|
|
13593
|
+
}));
|
|
13594
|
+
});
|
|
13595
|
+
|
|
13596
|
+
if (__DEV__) {
|
|
13597
|
+
CloseButton.displayName = "CloseButton";
|
|
13598
|
+
}
|
|
13599
|
+
|
|
13236
13600
|
var ChakraProvider = ChakraProvider$1;
|
|
13237
13601
|
ChakraProvider.defaultProps = {
|
|
13238
13602
|
theme: theme$1
|
|
@@ -13303,7 +13667,7 @@ function mergeThemeCustomizer(source, override, key, object) {
|
|
|
13303
13667
|
return undefined;
|
|
13304
13668
|
}
|
|
13305
13669
|
|
|
13306
|
-
var
|
|
13670
|
+
var baseColors = {
|
|
13307
13671
|
comet: {
|
|
13308
13672
|
50: '#F0F1F5',
|
|
13309
13673
|
100: '#D5D7E2',
|
|
@@ -13316,20 +13680,17 @@ var pallette = {
|
|
|
13316
13680
|
800: '#2A2D3C',
|
|
13317
13681
|
900: '#15171E',
|
|
13318
13682
|
},
|
|
13319
|
-
televet: {
|
|
13320
|
-
100: '#A4DAE4',
|
|
13321
|
-
},
|
|
13322
13683
|
teal: {
|
|
13323
|
-
50: '#
|
|
13324
|
-
100: '#
|
|
13325
|
-
200: '#
|
|
13326
|
-
300: '#
|
|
13327
|
-
400: '#
|
|
13684
|
+
50: '#F7FAFC',
|
|
13685
|
+
100: '#EBF9FB',
|
|
13686
|
+
200: '#DCF6FB',
|
|
13687
|
+
300: '#AFE1EC',
|
|
13688
|
+
400: '#78CBDC',
|
|
13328
13689
|
500: '#39ADC3',
|
|
13329
|
-
600: '#
|
|
13330
|
-
700: '#
|
|
13331
|
-
800: '#
|
|
13332
|
-
900: '#
|
|
13690
|
+
600: '#3CA0B4',
|
|
13691
|
+
700: '#2E8C9E',
|
|
13692
|
+
800: '#236976',
|
|
13693
|
+
900: '#17464F',
|
|
13333
13694
|
},
|
|
13334
13695
|
blue: {
|
|
13335
13696
|
50: '#E7E9FE',
|
|
@@ -13349,7 +13710,7 @@ var pallette = {
|
|
|
13349
13710
|
200: '#FEB2B2',
|
|
13350
13711
|
300: '#FC8181',
|
|
13351
13712
|
400: '#F56565',
|
|
13352
|
-
500: '#
|
|
13713
|
+
500: '#E01F1F',
|
|
13353
13714
|
600: '#C53030',
|
|
13354
13715
|
700: '#9B2C2C',
|
|
13355
13716
|
800: '#822727',
|
|
@@ -13386,7 +13747,7 @@ var pallette = {
|
|
|
13386
13747
|
300: '#68D391',
|
|
13387
13748
|
400: '#48BB78',
|
|
13388
13749
|
500: '#38A169',
|
|
13389
|
-
600: '#
|
|
13750
|
+
600: '#25855A',
|
|
13390
13751
|
700: '#276749',
|
|
13391
13752
|
800: '#22543D',
|
|
13392
13753
|
900: '#1C4532',
|
|
@@ -13434,66 +13795,68 @@ var pallette = {
|
|
|
13434
13795
|
};
|
|
13435
13796
|
var semanticTokens = {
|
|
13436
13797
|
text: {
|
|
13437
|
-
onLight:
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13798
|
+
onLight: baseColors.comet[700],
|
|
13799
|
+
linkOnLight: baseColors.teal[600],
|
|
13800
|
+
onLightSubtle: baseColors.gray[800],
|
|
13801
|
+
onDark: baseColors.white,
|
|
13802
|
+
headline: baseColors.blue[800],
|
|
13803
|
+
placeholder: baseColors.blackAlpha[500],
|
|
13804
|
+
success: baseColors.green[600],
|
|
13805
|
+
warning: baseColors.yellow[600],
|
|
13806
|
+
error: baseColors.red[600],
|
|
13441
13807
|
},
|
|
13442
13808
|
background: {
|
|
13443
|
-
light:
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
error: pallette.red[500],
|
|
13455
|
-
warning: pallette.yellow[500],
|
|
13456
|
-
success: pallette.blue[200],
|
|
13457
|
-
},
|
|
13458
|
-
button: {
|
|
13459
|
-
primaryDefault: pallette.teal[600],
|
|
13460
|
-
primaryHover: pallette.teal[700],
|
|
13461
|
-
primaryActive: pallette.teal[800],
|
|
13462
|
-
secondaryDefault: pallette.gray[300],
|
|
13463
|
-
secondaryHover: pallette.gray[50],
|
|
13464
|
-
secondaryActive: pallette.gray[100],
|
|
13465
|
-
tertiaryDefault: pallette.gray[100],
|
|
13466
|
-
tertiaryHover: pallette.gray[200],
|
|
13467
|
-
tertiaryActive: pallette.gray[200],
|
|
13468
|
-
ghostDefault: pallette.white,
|
|
13469
|
-
ghostHover: pallette.teal[50],
|
|
13470
|
-
ghostActive: pallette.teal[100],
|
|
13471
|
-
},
|
|
13472
|
-
link: {
|
|
13473
|
-
onLight: pallette.teal[600],
|
|
13809
|
+
light: baseColors.gray[300],
|
|
13810
|
+
grayLight: baseColors.gray[50],
|
|
13811
|
+
grayDark: baseColors.gray[300],
|
|
13812
|
+
tealLight: baseColors.teal[50],
|
|
13813
|
+
dark: baseColors.blue[800],
|
|
13814
|
+
table: baseColors.comet[50],
|
|
13815
|
+
overlay: baseColors.blackAlpha[300],
|
|
13816
|
+
info: baseColors.teal[50],
|
|
13817
|
+
error: baseColors.red[50],
|
|
13818
|
+
warning: baseColors.orange[50],
|
|
13819
|
+
success: baseColors.green[50],
|
|
13474
13820
|
},
|
|
13475
13821
|
icon: {
|
|
13476
|
-
onLight:
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13822
|
+
onLight: baseColors.comet[700],
|
|
13823
|
+
onLightSubtle: baseColors.gray[800],
|
|
13824
|
+
onDark: baseColors.white,
|
|
13825
|
+
inactive: baseColors.gray[700],
|
|
13826
|
+
active: baseColors.teal[600],
|
|
13827
|
+
success: baseColors.green[600],
|
|
13828
|
+
warning: baseColors.yellow[600],
|
|
13829
|
+
error: baseColors.red[600],
|
|
13830
|
+
},
|
|
13831
|
+
border: {
|
|
13832
|
+
default: baseColors.gray[200],
|
|
13833
|
+
dark: baseColors.comet[700],
|
|
13834
|
+
focus: baseColors.teal[600],
|
|
13835
|
+
info: baseColors.teal[600],
|
|
13836
|
+
error: baseColors.red[500],
|
|
13837
|
+
warning: baseColors.yellow[500],
|
|
13838
|
+
success: baseColors.green[400],
|
|
13482
13839
|
},
|
|
13483
13840
|
divider: {
|
|
13484
|
-
onLight:
|
|
13841
|
+
onLight: baseColors.gray[100],
|
|
13485
13842
|
},
|
|
13486
13843
|
status: {
|
|
13487
|
-
open:
|
|
13488
|
-
confirmed:
|
|
13489
|
-
success:
|
|
13490
|
-
warning:
|
|
13491
|
-
action:
|
|
13492
|
-
negative:
|
|
13493
|
-
error:
|
|
13844
|
+
open: baseColors.blue[300],
|
|
13845
|
+
confirmed: baseColors.teal[500],
|
|
13846
|
+
success: baseColors.green[400],
|
|
13847
|
+
warning: baseColors.yellow[400],
|
|
13848
|
+
action: baseColors.orange[400],
|
|
13849
|
+
negative: baseColors.red[300],
|
|
13850
|
+
error: baseColors.red[500],
|
|
13851
|
+
archived: baseColors.gray[800],
|
|
13852
|
+
closed: baseColors.gray[900],
|
|
13853
|
+
},
|
|
13854
|
+
general: {
|
|
13855
|
+
brand: baseColors.teal[500],
|
|
13856
|
+
error: baseColors.red[500],
|
|
13494
13857
|
},
|
|
13495
13858
|
};
|
|
13496
|
-
var colors = __assign(__assign({},
|
|
13859
|
+
var colors = __assign(__assign({}, baseColors), semanticTokens);
|
|
13497
13860
|
|
|
13498
13861
|
var blur = {
|
|
13499
13862
|
none: 0,
|
|
@@ -13506,14 +13869,6 @@ var blur = {
|
|
|
13506
13869
|
'3xl': '64px',
|
|
13507
13870
|
};
|
|
13508
13871
|
|
|
13509
|
-
var breakpoints = createBreakpoints({
|
|
13510
|
-
sm: '30em',
|
|
13511
|
-
md: '48em',
|
|
13512
|
-
lg: '62em',
|
|
13513
|
-
xl: '80em',
|
|
13514
|
-
'2xl': '96em',
|
|
13515
|
-
});
|
|
13516
|
-
|
|
13517
13872
|
var borders = {
|
|
13518
13873
|
none: 0,
|
|
13519
13874
|
'1px': '1px solid',
|
|
@@ -13638,9 +13993,9 @@ var transition = {
|
|
|
13638
13993
|
};
|
|
13639
13994
|
|
|
13640
13995
|
var fonts = {
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
mono:
|
|
13996
|
+
body: 'LinearSans, Noto Sans, Arial, Helvetica, sans-serif',
|
|
13997
|
+
heading: 'LinearSans, Noto Sans, Arial, Helvetica, sans-serif',
|
|
13998
|
+
mono: 'LinearSans, Noto Sans, Arial, Helvetica, sans-serif',
|
|
13644
13999
|
};
|
|
13645
14000
|
|
|
13646
14001
|
var fontSizes = {
|
|
@@ -13709,7 +14064,6 @@ var zIndices = {
|
|
|
13709
14064
|
var theme = extendTheme({
|
|
13710
14065
|
blur: blur,
|
|
13711
14066
|
borders: borders,
|
|
13712
|
-
breakpoints: breakpoints,
|
|
13713
14067
|
colors: colors,
|
|
13714
14068
|
radii: radii,
|
|
13715
14069
|
shadows: shadows,
|
|
@@ -13721,19 +14075,33 @@ var theme = extendTheme({
|
|
|
13721
14075
|
space: space,
|
|
13722
14076
|
transition: transition,
|
|
13723
14077
|
zIndices: zIndices,
|
|
14078
|
+
semanticTokens: semanticTokens,
|
|
14079
|
+
config: {
|
|
14080
|
+
initialColorMode: 'light',
|
|
14081
|
+
useSystemColorMode: false,
|
|
14082
|
+
},
|
|
13724
14083
|
});
|
|
13725
14084
|
|
|
13726
14085
|
var KibbleThemeProvider = function (_a) {
|
|
13727
14086
|
var children = _a.children;
|
|
13728
|
-
return (React__default["default"].createElement(
|
|
13729
|
-
React__default["default"].createElement(ThemeProvider, { theme: theme }, children)));
|
|
14087
|
+
return (React__default["default"].createElement(ChakraProvider, { theme: theme },
|
|
14088
|
+
React__default["default"].createElement(styledComponents.ThemeProvider, { theme: theme }, children)));
|
|
13730
14089
|
};
|
|
13731
14090
|
|
|
13732
14091
|
var Button = function (_a) {
|
|
13733
14092
|
var children = _a.children;
|
|
13734
|
-
return React__default["default"].createElement(Button$1,
|
|
14093
|
+
return (React__default["default"].createElement(Button$1, { colorScheme: 'teal', variant: 'outline' }, children));
|
|
14094
|
+
};
|
|
14095
|
+
|
|
14096
|
+
var Banner = function () {
|
|
14097
|
+
return (React__default["default"].createElement(Alert, { status: "success" },
|
|
14098
|
+
React__default["default"].createElement(AlertIcon, null),
|
|
14099
|
+
React__default["default"].createElement(AlertTitle, { mr: 2 }, "Your design system is too fancy!"),
|
|
14100
|
+
React__default["default"].createElement(AlertDescription, null, "You should consider being less fancy."),
|
|
14101
|
+
React__default["default"].createElement(CloseButton, { position: "absolute", right: "8px", top: "8px" })));
|
|
13735
14102
|
};
|
|
13736
14103
|
|
|
14104
|
+
exports.Banner = Banner;
|
|
13737
14105
|
exports.Button = Button;
|
|
13738
14106
|
exports.KibbleThemeProvider = KibbleThemeProvider;
|
|
13739
14107
|
exports.theme = theme;
|