react-asc 21.0.0 → 21.0.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/components/Button/Button.d.ts +1 -0
- package/components/TreeView/TreeItem.d.ts +2 -2
- package/index.es.js +8 -7
- package/index.js +8 -7
- package/package.json +1 -1
- package/react-asc.scss +160 -120
- package/readme.md +54 -56
|
@@ -8,5 +8,6 @@ export interface IButtonProps extends React.ComponentProps<"button"> {
|
|
|
8
8
|
startIcon?: React.SVGProps<SVGSVGElement>;
|
|
9
9
|
endIcon?: React.SVGProps<SVGSVGElement>;
|
|
10
10
|
shadow?: boolean;
|
|
11
|
+
block?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const Button: React.FunctionComponent<IButtonProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface ITreeItemProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLLIElement>, HTMLLIElement> {
|
|
3
|
-
nodeId
|
|
4
|
-
label
|
|
3
|
+
nodeId?: string;
|
|
4
|
+
label?: string;
|
|
5
5
|
isExpanded?: boolean;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
isSelectable?: boolean;
|
package/index.es.js
CHANGED
|
@@ -506,12 +506,12 @@ const Badge = (props) => {
|
|
|
506
506
|
React.createElement("span", { className: getCssClassesBadge() }, content)));
|
|
507
507
|
};
|
|
508
508
|
|
|
509
|
-
var css_248z$O = ".Button-module_button__qeIer {\n text-transform: uppercase !important;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\r box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius); }\n .Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow); }\n .Button-module_button__qeIer:hover {\n cursor: pointer; }\n .Button-module_button__qeIer:focus:not(.Button-module_button__qeIer.Button-module_disabled__jiOqa) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px #00000013, 0 0 0 0.25rem #0d6efd40; }\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary) !important; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px; }\n";
|
|
510
|
-
var styles$O = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","disabled":"Button-module_disabled__jiOqa","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
509
|
+
var css_248z$O = ".Button-module_button__qeIer {\n text-transform: uppercase !important;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\r box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius); }\n .Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow); }\n .Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%; }\n .Button-module_button__qeIer:hover {\n cursor: pointer; }\n .Button-module_button__qeIer:focus:not(.Button-module_button__qeIer.Button-module_disabled__jiOqa) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px #00000013, 0 0 0 0.25rem #0d6efd40; }\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary) !important; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px; }\n";
|
|
510
|
+
var styles$O = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","disabled":"Button-module_disabled__jiOqa","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
511
511
|
styleInject(css_248z$O);
|
|
512
512
|
|
|
513
513
|
const Button = (props) => {
|
|
514
|
-
const { children, variant = VARIANT.contained, color = COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true } = props, rest = __rest(props, ["children", "variant", "color", "isRounded", "isActive", "className", "startIcon", "endIcon", "shadow"]);
|
|
514
|
+
const { children, variant = VARIANT.contained, color = COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block } = props, rest = __rest(props, ["children", "variant", "color", "isRounded", "isActive", "className", "startIcon", "endIcon", "shadow", "block"]);
|
|
515
515
|
const getCssClasses = () => {
|
|
516
516
|
const cssClasses = [];
|
|
517
517
|
cssClasses.push(styles$O.button);
|
|
@@ -534,6 +534,7 @@ const Button = (props) => {
|
|
|
534
534
|
cssClasses.push('active');
|
|
535
535
|
}
|
|
536
536
|
shadow && cssClasses.push(styles$O.shadow);
|
|
537
|
+
block && cssClasses.push(styles$O.block);
|
|
537
538
|
className && cssClasses.push(className);
|
|
538
539
|
return cssClasses.filter(css => css).join(' ');
|
|
539
540
|
};
|
|
@@ -2230,7 +2231,7 @@ const Stepper = (props) => {
|
|
|
2230
2231
|
React.createElement(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset }))));
|
|
2231
2232
|
};
|
|
2232
2233
|
|
|
2233
|
-
var css_248z$8 = ".Typography-module_typography__sw-td {\n text-overflow: ellipsis;\n font-family: var(--fontFamily); }\n\nh1 {\n font-size:
|
|
2234
|
+
var css_248z$8 = ".Typography-module_typography__sw-td {\n text-overflow: ellipsis;\n font-family: var(--fontFamily); }\n\nh1 {\n font-size: calc(1.375rem + 1.5vw); }\n\nh2 {\n font-size: calc(1.325rem + 0.9vw); }\n\nh3 {\n font-size: calc(1.3rem + 0.6vw); }\n\nh4 {\n font-size: calc(1.275rem + 0.3vw); }\n\nh5 {\n font-size: 1.25rem; }\n\nh6 {\n font-size: 1rem; }\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2; }\n";
|
|
2234
2235
|
var styles$8 = {"typography":"Typography-module_typography__sw-td"};
|
|
2235
2236
|
styleInject(css_248z$8);
|
|
2236
2237
|
|
|
@@ -2577,7 +2578,7 @@ const TimeSelect = (props) => {
|
|
|
2577
2578
|
React.createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
|
|
2578
2579
|
};
|
|
2579
2580
|
|
|
2580
|
-
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important; }\n .TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important; }\n";
|
|
2581
|
+
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px; }\n .TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important; }\n";
|
|
2581
2582
|
var styles$1 = {"treeView":"TreeView-module_treeView__VVj-4"};
|
|
2582
2583
|
styleInject(css_248z$1);
|
|
2583
2584
|
|
|
@@ -2624,9 +2625,9 @@ const TreeItem = (props) => {
|
|
|
2624
2625
|
};
|
|
2625
2626
|
return (React.createElement("li", { className: getCssClasses(), style: { paddingLeft: `${(48 * (children ? 0 : 1))}px` } },
|
|
2626
2627
|
React.createElement("div", { className: "d-flex align-items-center" },
|
|
2627
|
-
children &&
|
|
2628
|
+
children && nodeId &&
|
|
2628
2629
|
React.createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React.createElement(ChevronRightSolidIcon, null) : React.createElement(ChevronDownSolidIcon, null) }),
|
|
2629
|
-
isSelectable &&
|
|
2630
|
+
isSelectable && nodeId &&
|
|
2630
2631
|
React.createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
|
|
2631
2632
|
label),
|
|
2632
2633
|
children && _isExpanded ? React.createElement("ul", null, children) : null));
|
package/index.js
CHANGED
|
@@ -514,12 +514,12 @@ const Badge = (props) => {
|
|
|
514
514
|
React__default["default"].createElement("span", { className: getCssClassesBadge() }, content)));
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
var css_248z$O = ".Button-module_button__qeIer {\n text-transform: uppercase !important;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\r box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius); }\n .Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow); }\n .Button-module_button__qeIer:hover {\n cursor: pointer; }\n .Button-module_button__qeIer:focus:not(.Button-module_button__qeIer.Button-module_disabled__jiOqa) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px #00000013, 0 0 0 0.25rem #0d6efd40; }\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary) !important; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px; }\n";
|
|
518
|
-
var styles$O = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","disabled":"Button-module_disabled__jiOqa","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
517
|
+
var css_248z$O = ".Button-module_button__qeIer {\n text-transform: uppercase !important;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\r box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius); }\n .Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow); }\n .Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%; }\n .Button-module_button__qeIer:hover {\n cursor: pointer; }\n .Button-module_button__qeIer:focus:not(.Button-module_button__qeIer.Button-module_disabled__jiOqa) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px #00000013, 0 0 0 0.25rem #0d6efd40; }\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary); }\n .Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover {\n background-color: var(--primary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent); }\n .Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover {\n background-color: var(--accent-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary); }\n .Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover {\n background-color: var(--secondary-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light); }\n .Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover {\n background-color: var(--light-dark); }\n\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark); }\n .Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover {\n background-color: var(--dark-dark); }\n\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed; }\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary) !important; }\n .Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover {\n text-decoration: none;\n background: var(--primary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary) !important; }\n .Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover {\n text-decoration: none;\n background: var(--secondary-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent) !important; }\n .Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover {\n text-decoration: none;\n background: var(--accent-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important; }\n .Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover {\n text-decoration: none;\n background: var(--light-highlight) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark) !important; }\n .Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover {\n text-decoration: none;\n background: var(--dark-highlight) !important; }\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary) !important;\n border-color: var(--primary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover {\n background: var(--primary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary) !important;\n border-color: var(--secondary) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover {\n background: var(--secondary-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent) !important;\n border-color: var(--accent) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover {\n background: var(--accent-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text) !important;\n border-color: var(--light) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover {\n background: var(--light-highlight) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark) !important;\n border-color: var(--dark) !important; }\n .Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover {\n background: var(--dark-highlight) !important; }\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px; }\n .Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px; }\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px; }\n .Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px; }\n";
|
|
518
|
+
var styles$O = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","disabled":"Button-module_disabled__jiOqa","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
519
519
|
styleInject(css_248z$O);
|
|
520
520
|
|
|
521
521
|
const Button = (props) => {
|
|
522
|
-
const { children, variant = exports.VARIANT.contained, color = exports.COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true } = props, rest = __rest(props, ["children", "variant", "color", "isRounded", "isActive", "className", "startIcon", "endIcon", "shadow"]);
|
|
522
|
+
const { children, variant = exports.VARIANT.contained, color = exports.COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block } = props, rest = __rest(props, ["children", "variant", "color", "isRounded", "isActive", "className", "startIcon", "endIcon", "shadow", "block"]);
|
|
523
523
|
const getCssClasses = () => {
|
|
524
524
|
const cssClasses = [];
|
|
525
525
|
cssClasses.push(styles$O.button);
|
|
@@ -542,6 +542,7 @@ const Button = (props) => {
|
|
|
542
542
|
cssClasses.push('active');
|
|
543
543
|
}
|
|
544
544
|
shadow && cssClasses.push(styles$O.shadow);
|
|
545
|
+
block && cssClasses.push(styles$O.block);
|
|
545
546
|
className && cssClasses.push(className);
|
|
546
547
|
return cssClasses.filter(css => css).join(' ');
|
|
547
548
|
};
|
|
@@ -2238,7 +2239,7 @@ const Stepper = (props) => {
|
|
|
2238
2239
|
React__default["default"].createElement(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset }))));
|
|
2239
2240
|
};
|
|
2240
2241
|
|
|
2241
|
-
var css_248z$8 = ".Typography-module_typography__sw-td {\n text-overflow: ellipsis;\n font-family: var(--fontFamily); }\n\nh1 {\n font-size:
|
|
2242
|
+
var css_248z$8 = ".Typography-module_typography__sw-td {\n text-overflow: ellipsis;\n font-family: var(--fontFamily); }\n\nh1 {\n font-size: calc(1.375rem + 1.5vw); }\n\nh2 {\n font-size: calc(1.325rem + 0.9vw); }\n\nh3 {\n font-size: calc(1.3rem + 0.6vw); }\n\nh4 {\n font-size: calc(1.275rem + 0.3vw); }\n\nh5 {\n font-size: 1.25rem; }\n\nh6 {\n font-size: 1rem; }\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2; }\n";
|
|
2242
2243
|
var styles$8 = {"typography":"Typography-module_typography__sw-td"};
|
|
2243
2244
|
styleInject(css_248z$8);
|
|
2244
2245
|
|
|
@@ -2585,7 +2586,7 @@ const TimeSelect = (props) => {
|
|
|
2585
2586
|
React__default["default"].createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: e => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) }))));
|
|
2586
2587
|
};
|
|
2587
2588
|
|
|
2588
|
-
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important; }\n .TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important; }\n";
|
|
2589
|
+
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px; }\n .TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important; }\n";
|
|
2589
2590
|
var styles$1 = {"treeView":"TreeView-module_treeView__VVj-4"};
|
|
2590
2591
|
styleInject(css_248z$1);
|
|
2591
2592
|
|
|
@@ -2632,9 +2633,9 @@ const TreeItem = (props) => {
|
|
|
2632
2633
|
};
|
|
2633
2634
|
return (React__default["default"].createElement("li", { className: getCssClasses(), style: { paddingLeft: `${(48 * (children ? 0 : 1))}px` } },
|
|
2634
2635
|
React__default["default"].createElement("div", { className: "d-flex align-items-center" },
|
|
2635
|
-
children &&
|
|
2636
|
+
children && nodeId &&
|
|
2636
2637
|
React__default["default"].createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React__default["default"].createElement(ChevronRightSolidIcon, null) : React__default["default"].createElement(ChevronDownSolidIcon, null) }),
|
|
2637
|
-
isSelectable &&
|
|
2638
|
+
isSelectable && nodeId &&
|
|
2638
2639
|
React__default["default"].createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
|
|
2639
2640
|
label),
|
|
2640
2641
|
children && _isExpanded ? React__default["default"].createElement("ul", null, children) : null));
|
package/package.json
CHANGED
package/react-asc.scss
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--breakpoint-xs: 0;
|
|
3
|
+
--breakpoint-sm: 576px;
|
|
4
|
+
--breakpoint-md: 768px;
|
|
5
|
+
--breakpoint-lg: 992px;
|
|
6
|
+
--breakpoint-xl: 1200px;
|
|
7
|
+
--breakpoint-xxl: 1400px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--buttonMinWidth: 62px;
|
|
12
|
+
--buttonPadding: 11px 15px;
|
|
13
|
+
}
|
|
14
|
+
|
|
1
15
|
:root {
|
|
2
16
|
--primary-light: #6573c3;
|
|
3
17
|
--primary: #3f51b5;
|
|
@@ -35,121 +49,182 @@
|
|
|
35
49
|
--bodyBg: white;
|
|
36
50
|
--bodyColor: #212529;
|
|
37
51
|
|
|
38
|
-
--
|
|
52
|
+
--highlight: rgba(204, 216, 224, 0.2); // ???
|
|
53
|
+
|
|
39
54
|
--shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
|
|
40
|
-
|
|
55
|
+
0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
41
56
|
|
|
42
|
-
--
|
|
43
|
-
|
|
57
|
+
--muted: #6c757d !important;
|
|
58
|
+
}
|
|
44
59
|
|
|
60
|
+
:root {
|
|
45
61
|
--fontFamily: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
|
|
46
62
|
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
47
63
|
--fontSize: 16px;
|
|
48
64
|
--fontWeight: 400;
|
|
49
65
|
|
|
50
|
-
--
|
|
66
|
+
--fontLineHeight: 1.5;
|
|
67
|
+
}
|
|
51
68
|
|
|
52
|
-
|
|
69
|
+
:root {
|
|
70
|
+
.ml-0 {
|
|
71
|
+
margin-left: var(--0);
|
|
72
|
+
}
|
|
53
73
|
|
|
54
|
-
|
|
74
|
+
.ml-1 {
|
|
75
|
+
margin-left: var(--1);
|
|
76
|
+
}
|
|
55
77
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--breakpoint-lg: 992px;
|
|
60
|
-
--breakpoint-xl: 1200px;
|
|
61
|
-
--breakpoint-xxl: 1400px;
|
|
62
|
-
}
|
|
78
|
+
.ml-2 {
|
|
79
|
+
margin-left: var(--2);
|
|
80
|
+
}
|
|
63
81
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
.ml-3 {
|
|
83
|
+
margin-left: var(--3);
|
|
84
|
+
}
|
|
67
85
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
margin-right: 0;
|
|
71
|
-
}
|
|
86
|
+
.ml-auto {
|
|
87
|
+
margin-left: var(--auto);
|
|
72
88
|
}
|
|
73
|
-
}
|
|
74
89
|
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
}
|
|
90
|
+
.mr-0 {
|
|
91
|
+
margin-right: var(--0);
|
|
92
|
+
}
|
|
78
93
|
|
|
79
|
-
.
|
|
80
|
-
|
|
81
|
-
}
|
|
94
|
+
.mr-1 {
|
|
95
|
+
margin-right: var(--1);
|
|
96
|
+
}
|
|
82
97
|
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
}
|
|
98
|
+
.mr-2 {
|
|
99
|
+
margin-right: var(--2);
|
|
100
|
+
}
|
|
86
101
|
|
|
87
|
-
.
|
|
88
|
-
|
|
89
|
-
}
|
|
102
|
+
.mr-3 {
|
|
103
|
+
margin-right: var(--3);
|
|
104
|
+
}
|
|
90
105
|
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
}
|
|
106
|
+
.mr-auto {
|
|
107
|
+
margin-right: var(--auto);
|
|
108
|
+
}
|
|
94
109
|
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
}
|
|
110
|
+
.mt-0 {
|
|
111
|
+
margin-top: var(--0);
|
|
112
|
+
}
|
|
98
113
|
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
}
|
|
114
|
+
.mt-1 {
|
|
115
|
+
margin-top: var(--1);
|
|
116
|
+
}
|
|
102
117
|
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
}
|
|
118
|
+
.mt-2 {
|
|
119
|
+
margin-top: var(--2);
|
|
120
|
+
}
|
|
106
121
|
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
}
|
|
122
|
+
.mt-3 {
|
|
123
|
+
margin-top: var(--3);
|
|
124
|
+
}
|
|
110
125
|
|
|
111
|
-
.
|
|
112
|
-
|
|
113
|
-
}
|
|
126
|
+
.mt-4 {
|
|
127
|
+
margin-top: var(--4);
|
|
128
|
+
}
|
|
114
129
|
|
|
115
|
-
.
|
|
116
|
-
|
|
117
|
-
}
|
|
130
|
+
.mb-0 {
|
|
131
|
+
margin-bottom: var(--0);
|
|
132
|
+
}
|
|
118
133
|
|
|
119
|
-
.
|
|
120
|
-
|
|
121
|
-
}
|
|
134
|
+
.mb-1 {
|
|
135
|
+
margin-bottom: var(--1);
|
|
136
|
+
}
|
|
122
137
|
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
}
|
|
138
|
+
.mb-2 {
|
|
139
|
+
margin-bottom: var(--2);
|
|
140
|
+
}
|
|
126
141
|
|
|
127
|
-
.
|
|
128
|
-
|
|
142
|
+
.mb-3 {
|
|
143
|
+
margin-bottom: var(--3);
|
|
144
|
+
}
|
|
129
145
|
}
|
|
130
146
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
147
|
+
:root {
|
|
148
|
+
.pt-1 {
|
|
149
|
+
padding-top: var(--1);
|
|
150
|
+
}
|
|
134
151
|
|
|
135
|
-
.
|
|
136
|
-
|
|
137
|
-
}
|
|
152
|
+
.pt-2 {
|
|
153
|
+
padding-top: var(--2);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pt-3 {
|
|
157
|
+
padding-top: var(--3);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.pb-1 {
|
|
161
|
+
padding-bottom: var(--1);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pb-2 {
|
|
165
|
+
padding-bottom: var(--2);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pb-3 {
|
|
169
|
+
padding-bottom: var(--3);
|
|
170
|
+
}
|
|
138
171
|
|
|
139
|
-
.
|
|
140
|
-
|
|
172
|
+
.pb-4 {
|
|
173
|
+
padding-bottom: var(--4);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.p-3 {
|
|
177
|
+
padding: var(--3);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.p-1 {
|
|
181
|
+
padding: var(--1);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.p-2 {
|
|
185
|
+
padding: var(--2);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-3 {
|
|
189
|
+
padding: var(--3);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.p-4 {
|
|
193
|
+
padding: var(--3);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.pt-0 {
|
|
197
|
+
padding-top: var(--0);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.pb-0 {
|
|
201
|
+
padding-bottom: var(--0);
|
|
202
|
+
}
|
|
141
203
|
}
|
|
142
204
|
|
|
143
|
-
|
|
144
|
-
|
|
205
|
+
:root {
|
|
206
|
+
--borderRadius: 5px;
|
|
207
|
+
--0: 0px !important;
|
|
208
|
+
--1: 15px !important;
|
|
209
|
+
--2: 25px !important;
|
|
210
|
+
--3: 35px !important;
|
|
211
|
+
--4: 45px !important;
|
|
212
|
+
--auto: auto !important;
|
|
145
213
|
}
|
|
146
214
|
|
|
147
|
-
.
|
|
148
|
-
|
|
215
|
+
.input-group-append {
|
|
216
|
+
.btn {
|
|
217
|
+
min-width: auto;
|
|
218
|
+
|
|
219
|
+
.svg-icon {
|
|
220
|
+
margin-left: 0;
|
|
221
|
+
margin-right: 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
149
224
|
}
|
|
150
225
|
|
|
151
|
-
.
|
|
152
|
-
|
|
226
|
+
.text-muted {
|
|
227
|
+
color: var(--muted);
|
|
153
228
|
}
|
|
154
229
|
|
|
155
230
|
.d-flex {
|
|
@@ -171,12 +246,15 @@
|
|
|
171
246
|
.flex-row {
|
|
172
247
|
flex-direction: row;
|
|
173
248
|
}
|
|
249
|
+
|
|
174
250
|
.flex-row-reverse {
|
|
175
251
|
flex-direction: row-reverse;
|
|
176
252
|
}
|
|
253
|
+
|
|
177
254
|
.flex-column {
|
|
178
255
|
flex-direction: column;
|
|
179
256
|
}
|
|
257
|
+
|
|
180
258
|
.flex-column-reverse {
|
|
181
259
|
flex-direction: column-reverse;
|
|
182
260
|
}
|
|
@@ -189,54 +267,16 @@
|
|
|
189
267
|
height: 100%;
|
|
190
268
|
}
|
|
191
269
|
|
|
192
|
-
.pt-1 {
|
|
193
|
-
padding-top: 10px !important;
|
|
194
|
-
}
|
|
195
270
|
|
|
196
|
-
.pt-2 {
|
|
197
|
-
padding-top: 20px !important;
|
|
198
|
-
}
|
|
199
271
|
|
|
200
|
-
.
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
.pb-1 {
|
|
207
|
-
padding-bottom: 10px !important;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.pb-2 {
|
|
211
|
-
padding-bottom: 20px !important;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.pb-3 {
|
|
215
|
-
padding-bottom: 30px !important;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.pb-4 {
|
|
219
|
-
padding-bottom: 40px !important;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.p-3 {
|
|
223
|
-
padding: 1rem!important;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.pt-0 {
|
|
227
|
-
padding-top: 0px !important;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.pb-0 {
|
|
232
|
-
padding-bottom: 0px !important;
|
|
272
|
+
.text-center {
|
|
273
|
+
text-align: center;
|
|
233
274
|
}
|
|
234
275
|
|
|
235
276
|
.rounded-pill {
|
|
236
|
-
|
|
277
|
+
border-radius: 50rem !important;
|
|
237
278
|
}
|
|
238
279
|
|
|
239
|
-
|
|
240
280
|
@media (max-width: 576px) {
|
|
241
281
|
.flex-row {
|
|
242
282
|
flex-direction: column !important;
|
|
@@ -244,10 +284,10 @@
|
|
|
244
284
|
}
|
|
245
285
|
@media (min-width: 768px) {
|
|
246
286
|
.justify-content-md-center {
|
|
247
|
-
justify-content: center!important;
|
|
287
|
+
justify-content: center !important;
|
|
248
288
|
}
|
|
249
289
|
.align-items-md-center {
|
|
250
|
-
align-items: center!important;
|
|
290
|
+
align-items: center !important;
|
|
251
291
|
}
|
|
252
292
|
}
|
|
253
293
|
|
package/readme.md
CHANGED
|
@@ -1,85 +1,83 @@
|
|
|
1
1
|
# react-asc
|
|
2
|
-
handcrafted components inspired by Material Design and bundled with rollup.
|
|
3
2
|
|
|
3
|
+
handcrafted components inspired by Material Design and bundled with rollup.
|
|
4
4
|
|
|
5
5
|
## showcase
|
|
6
|
-
react-asc interactive showcase [link](https://react-asc.netlify.app)
|
|
7
6
|
|
|
7
|
+
react-asc interactive showcase [link](https://react-asc.netlify.app)
|
|
8
8
|
|
|
9
9
|
## usage
|
|
10
10
|
|
|
11
11
|
### install package
|
|
12
|
-
`npm install react-asc`
|
|
13
12
|
|
|
13
|
+
`npm install react-asc`
|
|
14
14
|
|
|
15
15
|
### install modern-normalize
|
|
16
|
-
`npm install modern-normalize`
|
|
17
16
|
|
|
17
|
+
`npm install modern-normalize`
|
|
18
18
|
|
|
19
|
-
### Include
|
|
19
|
+
### Include styles
|
|
20
20
|
|
|
21
21
|
```scss
|
|
22
22
|
@import "modern-normalize";
|
|
23
23
|
@import "react-asc/react-asc.scss";
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
### Usage
|
|
26
27
|
|
|
27
|
-
### Start using it
|
|
28
28
|
```js
|
|
29
|
-
import React from
|
|
30
|
-
import { Button } from
|
|
29
|
+
import React from "react";
|
|
30
|
+
import { Button } from "react-asc";
|
|
31
31
|
|
|
32
32
|
const MyApp = () => {
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
)
|
|
36
|
-
}
|
|
33
|
+
return <Button>some button</Button>;
|
|
34
|
+
};
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
## Credit
|
|
37
|
+
## Included Components
|
|
38
|
+
|
|
39
|
+
- Alert (beta)
|
|
40
|
+
- AppBar
|
|
41
|
+
- AutoComplete (beta)
|
|
42
|
+
- Backdrop
|
|
43
|
+
- Badge
|
|
44
|
+
- Breadcrumb
|
|
45
|
+
- Button
|
|
46
|
+
- ButtonGroup
|
|
47
|
+
- Card
|
|
48
|
+
- Checkbox
|
|
49
|
+
- Chip
|
|
50
|
+
- ConditionalWrapper
|
|
51
|
+
- DateSelect
|
|
52
|
+
- Drawer
|
|
53
|
+
- ExpansionPanel
|
|
54
|
+
- FileInput
|
|
55
|
+
- FloatingActionButton
|
|
56
|
+
- Form (beta)
|
|
57
|
+
- Grid
|
|
58
|
+
- Icon
|
|
59
|
+
- IconButton
|
|
60
|
+
- Link
|
|
61
|
+
- List
|
|
62
|
+
- LoadingIndicator
|
|
63
|
+
- Menu
|
|
64
|
+
- Modal + ModalService
|
|
65
|
+
- NumberSelect
|
|
66
|
+
- Select
|
|
67
|
+
- Sidebar
|
|
68
|
+
- Snackbar + SnackbarService
|
|
69
|
+
- SpeedDial
|
|
70
|
+
- Stepper (beta)
|
|
71
|
+
- Table (beta)
|
|
72
|
+
- Tabs
|
|
73
|
+
- Textarea
|
|
74
|
+
- TimeSelect
|
|
75
|
+
- Tooltip
|
|
76
|
+
- TreeView (beta)
|
|
77
|
+
- Typography
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## Credit
|
|
83
81
|
|
|
84
82
|
uses fontawesome icons as SVGs
|
|
85
83
|
https://fontawesome.com/license
|