@eclass/ui-kit 1.39.3 → 1.39.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -9545,7 +9545,7 @@ function _objectWithoutPropertiesLoose$e(source, excluded) {
|
|
|
9545
9545
|
}
|
|
9546
9546
|
return target;
|
|
9547
9547
|
}
|
|
9548
|
-
var _excluded$
|
|
9548
|
+
var _excluded$g = ["containerRef"];
|
|
9549
9549
|
var _createContext$5 = createContext({
|
|
9550
9550
|
strict: false,
|
|
9551
9551
|
name: "PortalContext"
|
|
@@ -9628,7 +9628,7 @@ var ContainerPortal = function ContainerPortal2(props) {
|
|
|
9628
9628
|
return null;
|
|
9629
9629
|
};
|
|
9630
9630
|
function Portal(props) {
|
|
9631
|
-
var containerRef = props.containerRef, rest = _objectWithoutPropertiesLoose$e(props, _excluded$
|
|
9631
|
+
var containerRef = props.containerRef, rest = _objectWithoutPropertiesLoose$e(props, _excluded$g);
|
|
9632
9632
|
return containerRef ? /* @__PURE__ */ React.createElement(ContainerPortal, _extends$f({
|
|
9633
9633
|
containerRef
|
|
9634
9634
|
}, rest)) : /* @__PURE__ */ React.createElement(DefaultPortal, rest);
|
|
@@ -11401,7 +11401,7 @@ function _objectWithoutPropertiesLoose$d(source, excluded) {
|
|
|
11401
11401
|
}
|
|
11402
11402
|
return target;
|
|
11403
11403
|
}
|
|
11404
|
-
var _excluded$
|
|
11404
|
+
var _excluded$f = ["__cssMap", "__cssVars", "__breakpoints"];
|
|
11405
11405
|
var tokens = ["colors", "borders", "borderWidths", "borderStyles", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "space", "shadows", "sizes", "zIndices", "transition", "blur"];
|
|
11406
11406
|
function extractTokens(theme2) {
|
|
11407
11407
|
var _tokens = tokens;
|
|
@@ -11414,7 +11414,7 @@ function omitVars(rawTheme) {
|
|
|
11414
11414
|
rawTheme.__cssMap;
|
|
11415
11415
|
rawTheme.__cssVars;
|
|
11416
11416
|
rawTheme.__breakpoints;
|
|
11417
|
-
var cleanTheme = _objectWithoutPropertiesLoose$d(rawTheme, _excluded$
|
|
11417
|
+
var cleanTheme = _objectWithoutPropertiesLoose$d(rawTheme, _excluded$f);
|
|
11418
11418
|
return cleanTheme;
|
|
11419
11419
|
}
|
|
11420
11420
|
function flattenTokens(_ref2) {
|
|
@@ -11917,7 +11917,7 @@ var validHTMLProps = /* @__PURE__ */ new Set(["htmlWidth", "htmlHeight", "htmlSi
|
|
|
11917
11917
|
var shouldForwardProp = function shouldForwardProp2(prop2) {
|
|
11918
11918
|
return validHTMLProps.has(prop2) || !allPropNames.has(prop2);
|
|
11919
11919
|
};
|
|
11920
|
-
var _excluded$1$4 = ["theme", "css", "__css", "sx"], _excluded2$
|
|
11920
|
+
var _excluded$1$4 = ["theme", "css", "__css", "sx"], _excluded2$4 = ["baseStyle"];
|
|
11921
11921
|
var toCSSObject = function toCSSObject2(_ref2) {
|
|
11922
11922
|
var baseStyle22 = _ref2.baseStyle;
|
|
11923
11923
|
return function(props) {
|
|
@@ -11933,7 +11933,7 @@ var toCSSObject = function toCSSObject2(_ref2) {
|
|
|
11933
11933
|
};
|
|
11934
11934
|
};
|
|
11935
11935
|
function styled(component, options) {
|
|
11936
|
-
var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$c(_ref2, _excluded2$
|
|
11936
|
+
var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$c(_ref2, _excluded2$4);
|
|
11937
11937
|
if (!styledOptions.shouldForwardProp) {
|
|
11938
11938
|
styledOptions.shouldForwardProp = shouldForwardProp;
|
|
11939
11939
|
}
|
|
@@ -11945,7 +11945,7 @@ function styled(component, options) {
|
|
|
11945
11945
|
function forwardRef(component) {
|
|
11946
11946
|
return /* @__PURE__ */ React.forwardRef(component);
|
|
11947
11947
|
}
|
|
11948
|
-
var _excluded$
|
|
11948
|
+
var _excluded$e = ["styleConfig"];
|
|
11949
11949
|
function useStyleConfig(themeKey, props, opts) {
|
|
11950
11950
|
var _styleConfig$defaultP;
|
|
11951
11951
|
if (props === void 0) {
|
|
@@ -11954,7 +11954,7 @@ function useStyleConfig(themeKey, props, opts) {
|
|
|
11954
11954
|
if (opts === void 0) {
|
|
11955
11955
|
opts = {};
|
|
11956
11956
|
}
|
|
11957
|
-
var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$c(_props, _excluded$
|
|
11957
|
+
var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$c(_props, _excluded$e);
|
|
11958
11958
|
var _useChakra = useChakra(), theme2 = _useChakra.theme, colorMode = _useChakra.colorMode;
|
|
11959
11959
|
var themeStyleConfig = memoizedGet(theme2, "components." + themeKey);
|
|
11960
11960
|
var styleConfig = styleConfigProp || themeStyleConfig;
|
|
@@ -16581,7 +16581,7 @@ function _objectWithoutPropertiesLoose$b(source, excluded) {
|
|
|
16581
16581
|
}
|
|
16582
16582
|
return target;
|
|
16583
16583
|
}
|
|
16584
|
-
var _excluded$
|
|
16584
|
+
var _excluded$d = ["as", "viewBox", "color", "focusable", "children", "className", "__css"];
|
|
16585
16585
|
var fallbackIcon = {
|
|
16586
16586
|
path: /* @__PURE__ */ React.createElement("g", {
|
|
16587
16587
|
stroke: "currentColor",
|
|
@@ -16604,7 +16604,7 @@ var fallbackIcon = {
|
|
|
16604
16604
|
viewBox: "0 0 24 24"
|
|
16605
16605
|
};
|
|
16606
16606
|
var Icon = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
16607
|
-
var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$b(props, _excluded$
|
|
16607
|
+
var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$b(props, _excluded$d);
|
|
16608
16608
|
var _className = cx("chakra-icon", className);
|
|
16609
16609
|
var styles2 = _extends$a({
|
|
16610
16610
|
w: "1em",
|
|
@@ -23322,9 +23322,9 @@ function useImage(props) {
|
|
|
23322
23322
|
}, [status, load, ignoreFallback]);
|
|
23323
23323
|
return ignoreFallback ? "loaded" : status;
|
|
23324
23324
|
}
|
|
23325
|
-
var _excluded$
|
|
23325
|
+
var _excluded$c = ["htmlWidth", "htmlHeight", "alt"], _excluded2$3 = ["fallbackSrc", "fallback", "src", "srcSet", "align", "fit", "loading", "ignoreFallback", "crossOrigin"];
|
|
23326
23326
|
var NativeImage = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23327
|
-
var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$9(props, _excluded$
|
|
23327
|
+
var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$9(props, _excluded$c);
|
|
23328
23328
|
return /* @__PURE__ */ React.createElement("img", _extends$8({
|
|
23329
23329
|
width: htmlWidth,
|
|
23330
23330
|
height: htmlHeight,
|
|
@@ -23406,7 +23406,7 @@ function _objectWithoutPropertiesLoose$8(source, excluded) {
|
|
|
23406
23406
|
}
|
|
23407
23407
|
return target;
|
|
23408
23408
|
}
|
|
23409
|
-
var _excluded$
|
|
23409
|
+
var _excluded$b = ["label", "thickness", "speed", "emptyColor", "className"];
|
|
23410
23410
|
var spin$1 = keyframes$2({
|
|
23411
23411
|
"0%": {
|
|
23412
23412
|
transform: "rotate(0deg)"
|
|
@@ -23417,7 +23417,7 @@ var spin$1 = keyframes$2({
|
|
|
23417
23417
|
});
|
|
23418
23418
|
var Spinner = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23419
23419
|
var styles2 = useStyleConfig("Spinner", props);
|
|
23420
|
-
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$lab = _omitThemingProps.label, label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi, _omitThemingProps$spe = _omitThemingProps.speed, speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = _objectWithoutPropertiesLoose$8(_omitThemingProps, _excluded$
|
|
23420
|
+
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$lab = _omitThemingProps.label, label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi, _omitThemingProps$spe = _omitThemingProps.speed, speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = _objectWithoutPropertiesLoose$8(_omitThemingProps, _excluded$b);
|
|
23421
23421
|
var _className = cx("chakra-spinner", className);
|
|
23422
23422
|
var spinnerStyles = _extends$7({
|
|
23423
23423
|
display: "inline-block",
|
|
@@ -23677,32 +23677,6 @@ var Center = chakra("div", {
|
|
|
23677
23677
|
justifyContent: "center"
|
|
23678
23678
|
}
|
|
23679
23679
|
});
|
|
23680
|
-
var _excluded$b = ["borderLeftWidth", "borderBottomWidth", "borderTopWidth", "borderRightWidth", "borderWidth", "borderStyle", "borderColor"], _excluded2$4 = ["className", "orientation", "__css"];
|
|
23681
|
-
var Divider = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23682
|
-
var _useStyleConfig = useStyleConfig("Divider", props), borderLeftWidth = _useStyleConfig.borderLeftWidth, borderBottomWidth = _useStyleConfig.borderBottomWidth, borderTopWidth = _useStyleConfig.borderTopWidth, borderRightWidth = _useStyleConfig.borderRightWidth, borderWidth = _useStyleConfig.borderWidth, borderStyle = _useStyleConfig.borderStyle, borderColor = _useStyleConfig.borderColor, styles2 = _objectWithoutPropertiesLoose$5(_useStyleConfig, _excluded$b);
|
|
23683
|
-
var _omitThemingProps = omitThemingProps(props), className = _omitThemingProps.className, _omitThemingProps$ori = _omitThemingProps.orientation, orientation = _omitThemingProps$ori === void 0 ? "horizontal" : _omitThemingProps$ori, __css = _omitThemingProps.__css, rest = _objectWithoutPropertiesLoose$5(_omitThemingProps, _excluded2$4);
|
|
23684
|
-
var dividerStyles = {
|
|
23685
|
-
vertical: {
|
|
23686
|
-
borderLeftWidth: borderLeftWidth || borderRightWidth || borderWidth || "1px",
|
|
23687
|
-
height: "100%"
|
|
23688
|
-
},
|
|
23689
|
-
horizontal: {
|
|
23690
|
-
borderBottomWidth: borderBottomWidth || borderTopWidth || borderWidth || "1px",
|
|
23691
|
-
width: "100%"
|
|
23692
|
-
}
|
|
23693
|
-
};
|
|
23694
|
-
return /* @__PURE__ */ React.createElement(chakra.hr, _extends$4({
|
|
23695
|
-
ref,
|
|
23696
|
-
"aria-orientation": orientation
|
|
23697
|
-
}, rest, {
|
|
23698
|
-
__css: _extends$4({}, styles2, {
|
|
23699
|
-
border: "0",
|
|
23700
|
-
borderColor,
|
|
23701
|
-
borderStyle
|
|
23702
|
-
}, dividerStyles[orientation], __css),
|
|
23703
|
-
className: cx("chakra-divider", className)
|
|
23704
|
-
}));
|
|
23705
|
-
});
|
|
23706
23680
|
var _excluded$a = ["direction", "align", "justify", "wrap", "basis", "grow", "shrink"];
|
|
23707
23681
|
var Flex = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23708
23682
|
var direction2 = props.direction, align = props.align, justify = props.justify, wrap3 = props.wrap, basis = props.basis, grow = props.grow, shrink = props.shrink, rest = _objectWithoutPropertiesLoose$5(props, _excluded$a);
|
|
@@ -31769,6 +31743,8 @@ function ModalAlert({
|
|
|
31769
31743
|
justifyContent: "center",
|
|
31770
31744
|
textAlign: "center",
|
|
31771
31745
|
py: "2rem",
|
|
31746
|
+
borderBottom: "1px solid #E6E6E6",
|
|
31747
|
+
marginY: "3.75rem",
|
|
31772
31748
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
31773
31749
|
display: "flex",
|
|
31774
31750
|
justifyContent: "center",
|
|
@@ -31781,12 +31757,6 @@ function ModalAlert({
|
|
|
31781
31757
|
px: "2rem",
|
|
31782
31758
|
children: description
|
|
31783
31759
|
})]
|
|
31784
|
-
}), /* @__PURE__ */ jsx(Divider, {
|
|
31785
|
-
colorScheme: "#E6E6E6",
|
|
31786
|
-
size: "2",
|
|
31787
|
-
opacity: "1",
|
|
31788
|
-
margin: "0",
|
|
31789
|
-
padding: "0"
|
|
31790
31760
|
}), /* @__PURE__ */ jsx(ModalFooter, {
|
|
31791
31761
|
justifyContent: "center",
|
|
31792
31762
|
padding: "0",
|