@egov3/system-design 1.2.65 → 1.3.67
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/cjs/components/Accordion/Accordion.module.css.js +22 -0
- package/dist/cjs/components/Accordion/Accordion.module.css.js.map +1 -0
- package/dist/cjs/components/Accordion/index.js +22 -0
- package/dist/cjs/components/Accordion/index.js.map +1 -0
- package/dist/cjs/components/Button/button.module.css.js +22 -0
- package/dist/cjs/components/Button/button.module.css.js.map +1 -0
- package/dist/cjs/components/Button/index.js +22 -0
- package/dist/cjs/components/Button/index.js.map +1 -0
- package/dist/cjs/components/InputField/InputField.module.css.js +22 -0
- package/dist/cjs/components/InputField/InputField.module.css.js.map +1 -0
- package/dist/cjs/components/InputField/index.js +42 -0
- package/dist/cjs/components/InputField/index.js.map +1 -0
- package/dist/cjs/components/Modal/Modal.module.css.js +22 -0
- package/dist/cjs/components/Modal/Modal.module.css.js.map +1 -0
- package/dist/cjs/components/Modal/index.js +28 -0
- package/dist/cjs/components/Modal/index.js.map +1 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.module.css.js +22 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.module.css.js.map +1 -0
- package/dist/cjs/components/RadioGroup/index.js +26 -0
- package/dist/cjs/components/RadioGroup/index.js.map +1 -0
- package/dist/cjs/components/RadioToggle/RadioToggle.module.css.js +22 -0
- package/dist/cjs/components/RadioToggle/RadioToggle.module.css.js.map +1 -0
- package/dist/cjs/components/RadioToggle/index.js +17 -0
- package/dist/cjs/components/RadioToggle/index.js.map +1 -0
- package/dist/cjs/components/SelectBoxButton/SelectBoxButton.module.css.js +22 -0
- package/dist/cjs/components/SelectBoxButton/SelectBoxButton.module.css.js.map +1 -0
- package/dist/cjs/components/SelectBoxButton/index.js +18 -0
- package/dist/cjs/components/SelectBoxButton/index.js.map +1 -0
- package/dist/cjs/components/Typography/index.js +15 -0
- package/dist/cjs/components/Typography/index.js.map +1 -0
- package/dist/cjs/components/index.js +27 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/index.js +4 -3031
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/colors.css.js +17 -0
- package/dist/cjs/styles/colors.css.js.map +1 -0
- package/dist/cjs/styles/typography.module.css.js +22 -0
- package/dist/cjs/styles/typography.module.css.js.map +1 -0
- package/dist/cjs/svg/ClearIcon.js +13 -0
- package/dist/cjs/svg/ClearIcon.js.map +1 -0
- package/dist/cjs/utils/joinClasses.js +12 -0
- package/dist/cjs/utils/joinClasses.js.map +1 -0
- package/dist/esm/components/Accordion/Accordion.module.css.js +18 -0
- package/dist/esm/components/Accordion/Accordion.module.css.js.map +1 -0
- package/dist/esm/components/Accordion/index.js +20 -0
- package/dist/esm/components/Accordion/index.js.map +1 -0
- package/dist/esm/components/Button/button.module.css.js +18 -0
- package/dist/esm/components/Button/button.module.css.js.map +1 -0
- package/dist/esm/components/Button/index.js +20 -0
- package/dist/esm/components/Button/index.js.map +1 -0
- package/dist/esm/components/InputField/InputField.module.css.js +18 -0
- package/dist/esm/components/InputField/InputField.module.css.js.map +1 -0
- package/dist/esm/components/InputField/index.js +40 -0
- package/dist/esm/components/InputField/index.js.map +1 -0
- package/dist/esm/components/Modal/Modal.module.css.js +18 -0
- package/dist/esm/components/Modal/Modal.module.css.js.map +1 -0
- package/dist/esm/components/Modal/index.js +26 -0
- package/dist/esm/components/Modal/index.js.map +1 -0
- package/dist/esm/components/RadioGroup/RadioGroup.module.css.js +18 -0
- package/dist/esm/components/RadioGroup/RadioGroup.module.css.js.map +1 -0
- package/dist/esm/components/RadioGroup/index.js +23 -0
- package/dist/esm/components/RadioGroup/index.js.map +1 -0
- package/dist/esm/components/RadioToggle/RadioToggle.module.css.js +18 -0
- package/dist/esm/components/RadioToggle/RadioToggle.module.css.js.map +1 -0
- package/dist/esm/components/RadioToggle/index.js +15 -0
- package/dist/esm/components/RadioToggle/index.js.map +1 -0
- package/dist/esm/components/SelectBoxButton/SelectBoxButton.module.css.js +18 -0
- package/dist/esm/components/SelectBoxButton/SelectBoxButton.module.css.js.map +1 -0
- package/dist/esm/components/SelectBoxButton/index.js +16 -0
- package/dist/esm/components/SelectBoxButton/index.js.map +1 -0
- package/dist/esm/components/Typography/index.js +13 -0
- package/dist/esm/components/Typography/index.js.map +1 -0
- package/dist/esm/components/index.js +24 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/index.js +1 -3030
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/colors.css.js +15 -0
- package/dist/esm/styles/colors.css.js.map +1 -0
- package/dist/esm/styles/typography.module.css.js +18 -0
- package/dist/esm/styles/typography.module.css.js.map +1 -0
- package/dist/esm/svg/ClearIcon.js +11 -0
- package/dist/esm/svg/ClearIcon.js.map +1 -0
- package/dist/esm/utils/joinClasses.js +10 -0
- package/dist/esm/utils/joinClasses.js.map +1 -0
- package/dist/types/components/Accordion/index.d.ts +10 -0
- package/dist/types/components/Button/index.d.ts +16 -0
- package/dist/types/components/InputField/index.d.ts +25 -0
- package/dist/types/components/Modal/index.d.ts +11 -0
- package/dist/types/components/RadioGroup/index.d.ts +21 -0
- package/dist/types/components/RadioToggle/index.d.ts +8 -0
- package/dist/types/components/SelectBoxButton/index.d.ts +11 -0
- package/dist/{esm → types}/components/Typography/index.d.ts +6 -5
- package/dist/types/index.d.ts +25 -0
- package/package.json +20 -21
- package/dist/cjs/components/Accordion/index.d.ts +0 -8
- package/dist/cjs/components/Button/index.d.ts +0 -14
- package/dist/cjs/components/InputField/index.d.ts +0 -23
- package/dist/cjs/components/Modal/index.d.ts +0 -9
- package/dist/cjs/components/RadioGroup/index.d.ts +0 -20
- package/dist/cjs/components/RadioToggle/index.d.ts +0 -6
- package/dist/cjs/components/SelectBoxButton/index.d.ts +0 -9
- package/dist/cjs/components/Typography/index.d.ts +0 -8
- package/dist/cjs/components/index.d.ts +0 -15
- package/dist/cjs/constants/calendar/index.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -15
- package/dist/cjs/interfaces/Calendar.d.ts +0 -24
- package/dist/cjs/stories/Accordion.stories.d.ts +0 -7
- package/dist/cjs/stories/Button.stories.d.ts +0 -30
- package/dist/cjs/stories/CardWrapperItem.d.ts +0 -4
- package/dist/cjs/stories/InputField.stories.d.ts +0 -22
- package/dist/cjs/stories/Modal.stories.d.ts +0 -8
- package/dist/cjs/stories/RadioGroup.stories.d.ts +0 -23
- package/dist/cjs/stories/RadioToggle.stories.d.ts +0 -13
- package/dist/cjs/stories/Typography.stories.d.ts +0 -12
- package/dist/cjs/svg/ClearIcon.d.ts +0 -4
- package/dist/cjs/svg/index.d.ts +0 -2
- package/dist/cjs/utils/CreateArray.d.ts +0 -1
- package/dist/cjs/utils/GenerateArray.d.ts +0 -1
- package/dist/cjs/utils/date/convertType.d.ts +0 -53
- package/dist/cjs/utils/date/formatDate.d.ts +0 -1
- package/dist/cjs/utils/date/getDaysInMonth.d.ts +0 -1
- package/dist/cjs/utils/date/getMonthNameProper.d.ts +0 -1
- package/dist/cjs/utils/date/getValideMonth.d.ts +0 -6
- package/dist/cjs/utils/date/index.d.ts +0 -6
- package/dist/cjs/utils/date/inverseDate.d.ts +0 -1
- package/dist/cjs/utils/date/isValidateDate.d.ts +0 -3
- package/dist/cjs/utils/date/normalizeDayAndMonth.d.ts +0 -2
- package/dist/cjs/utils/date/range/getDaysRange.d.ts +0 -2
- package/dist/cjs/utils/date/range/getMonthRange.d.ts +0 -1
- package/dist/cjs/utils/date/range/getYearRange.d.ts +0 -1
- package/dist/cjs/utils/date/range/isValidDateRange.d.ts +0 -3
- package/dist/cjs/utils/joinClasses.d.ts +0 -1
- package/dist/cjs/utils/string/SetCharAt.d.ts +0 -1
- package/dist/cjs/utils/string/toPascalCase.d.ts +0 -1
- package/dist/esm/components/Accordion/index.d.ts +0 -8
- package/dist/esm/components/Button/index.d.ts +0 -14
- package/dist/esm/components/InputField/index.d.ts +0 -23
- package/dist/esm/components/Modal/index.d.ts +0 -9
- package/dist/esm/components/RadioGroup/index.d.ts +0 -20
- package/dist/esm/components/RadioToggle/index.d.ts +0 -6
- package/dist/esm/components/SelectBoxButton/index.d.ts +0 -9
- package/dist/esm/components/index.d.ts +0 -15
- package/dist/esm/constants/calendar/index.d.ts +0 -2
- package/dist/esm/index.d.ts +0 -106
- package/dist/esm/interfaces/Calendar.d.ts +0 -24
- package/dist/esm/stories/Accordion.stories.d.ts +0 -7
- package/dist/esm/stories/Button.stories.d.ts +0 -30
- package/dist/esm/stories/CardWrapperItem.d.ts +0 -4
- package/dist/esm/stories/InputField.stories.d.ts +0 -22
- package/dist/esm/stories/Modal.stories.d.ts +0 -8
- package/dist/esm/stories/RadioGroup.stories.d.ts +0 -23
- package/dist/esm/stories/RadioToggle.stories.d.ts +0 -13
- package/dist/esm/stories/Typography.stories.d.ts +0 -12
- package/dist/esm/svg/ClearIcon.d.ts +0 -4
- package/dist/esm/svg/index.d.ts +0 -2
- package/dist/esm/utils/CreateArray.d.ts +0 -1
- package/dist/esm/utils/GenerateArray.d.ts +0 -1
- package/dist/esm/utils/date/convertType.d.ts +0 -53
- package/dist/esm/utils/date/formatDate.d.ts +0 -1
- package/dist/esm/utils/date/getDaysInMonth.d.ts +0 -1
- package/dist/esm/utils/date/getMonthNameProper.d.ts +0 -1
- package/dist/esm/utils/date/getValideMonth.d.ts +0 -6
- package/dist/esm/utils/date/index.d.ts +0 -6
- package/dist/esm/utils/date/inverseDate.d.ts +0 -1
- package/dist/esm/utils/date/isValidateDate.d.ts +0 -3
- package/dist/esm/utils/date/normalizeDayAndMonth.d.ts +0 -2
- package/dist/esm/utils/date/range/getDaysRange.d.ts +0 -2
- package/dist/esm/utils/date/range/getMonthRange.d.ts +0 -1
- package/dist/esm/utils/date/range/getYearRange.d.ts +0 -1
- package/dist/esm/utils/date/range/isValidDateRange.d.ts +0 -3
- package/dist/esm/utils/joinClasses.d.ts +0 -1
- package/dist/esm/utils/string/SetCharAt.d.ts +0 -1
- package/dist/esm/utils/string/toPascalCase.d.ts +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var css_248z = ":root {\n /* Buttons Colors */\n --button-alternative-default-color: rgba(170, 170, 170, 0.64);\n --button-disabled-default-color: #c5ccd3;\n --button-primary-default: #0581da;\n --button-primary-on-hover-color: #1a9cfa;\n --button-secondary-default-color: #e6e9ec;\n --button-secondary-on-hover: #c5ccd3;\n --button-tinted-default-color: #e1f0fb;\n --button-tinted-on-hover-color: #b2d9f5;\n --button-black-default-color: #000;\n --button-black-on-hover-color: #333;\n\n /* Default Colors */\n --default-primary-accent: #0581da;\n --default-white-color: #fff;\n --default-black-color: #000;\n\n /* General lightmode colors */\n --leaf: #c1dc19;\n\n /* Icons Colors */\n --icon-accent-color: #0581da;\n --icon-error-color: #f35929;\n --icon-secondary-color: #758393;\n --icon-success: #57bb09;\n --icon-warning-color: #f3a229;\n\n /* Page Color */\n --page-color-background-gray: #f0f2f4;\n --page-color-background-white: #fff;\n\n /* Surface Colors */\n --surface-surface-1: #f0f2f4;\n --surface-surface-2: #fff;\n --surface-surface-3-color: #e3e7eb;\n --surface-surface-alt: rgba(240, 242, 244, 0.8);\n --surface-surface-black-nonconvert: #000;\n --surface-surface-black-opacity: rgba(0, 0, 0, 0.24);\n --surface-surface-white-nonconvert: #fff;\n --surface-surface-tinted: #e1f0fb;\n\n /* Text Colors */\n --text-accent: #0581da;\n --text-disabled-accent-color: #9bcdf0;\n --text-disabled-color: #929daa;\n --text-primary: #000;\n --text-secondary: #758393;\n --text-white-nonconvert-color: #fff;\n --text-error: #f35929;\n\n /* Border-Stroke Colors */\n --border-stroke-primary: #e6e9ec;\n}\n";
|
|
2
|
+
function styleInject(css, options) {
|
|
3
|
+
if (typeof document === 'undefined') return;
|
|
4
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
5
|
+
const style = document.createElement('style');
|
|
6
|
+
style.type = 'text/css';
|
|
7
|
+
if (style.styleSheet) {
|
|
8
|
+
style.styleSheet.cssText = css;
|
|
9
|
+
} else {
|
|
10
|
+
style.appendChild(document.createTextNode(css));
|
|
11
|
+
}
|
|
12
|
+
head.appendChild(style);
|
|
13
|
+
}
|
|
14
|
+
styleInject(css_248z);
|
|
15
|
+
//# sourceMappingURL=colors.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var css_248z = "/* Headings/Heading 1 */\n.typography-module_heading1__ub7Od {\n font-family: Inter;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 36px; /* 112.5% */\n letter-spacing: -0.32px;\n}\n\n/* Headings/Heading 3 */\n.typography-module_heading3__QLNPD {\n font-family: Inter;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px; /* 116.667% */\n letter-spacing: -0.24px;\n}\n\n/* Subtitles/Subtitle 3 */\n.typography-module_subtitles3__QZScB {\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Medium */\n.typography-module_body1Medium__INZB0 {\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Regular */\n.typography-module_body1Regular__H3iQB {\n font-family: Inter;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 2, Medium */\n.typography-module_body2Medium__Caa0m {\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 2, Regular */\n.typography-module_body2Regular__MEtzs {\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 3, Regular */\n.typography-module_body3Regular__rp6ng {\n font-family: Inter;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 114.286% */\n}\n\n/* Caption/Caption 1, Medium */\n.typography-module_caption1Medium__xXMm- {\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Regular */\n.typography-module_caption1Regular__QVGyq {\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Semibold */\n.typography-module_caption1Semibold__Il1Aq {\n font-family: Inter;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 2, Medium */\n.typography-module_caption2Medium__0Vvmy {\n font-family: Inter;\n font-size: 10px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 120% */\n}\n\n/* Caption/Caption 2, Regular */\n.typography-module_caption2Regular__GxtiS {\n font-family: Inter;\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px; /* 120% */\n}\n\n.typography-module_caption2Semibold__4ysJe {\n font-family: Inter;\n font-size: 10px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 120% */\n}\n";
|
|
2
|
+
var typography = {"heading1":"typography-module_heading1__ub7Od","heading3":"typography-module_heading3__QLNPD","subtitles3":"typography-module_subtitles3__QZScB","body1Medium":"typography-module_body1Medium__INZB0","body1Regular":"typography-module_body1Regular__H3iQB","body2Medium":"typography-module_body2Medium__Caa0m","body2Regular":"typography-module_body2Regular__MEtzs","body3Regular":"typography-module_body3Regular__rp6ng","caption1Medium":"typography-module_caption1Medium__xXMm-","caption1Regular":"typography-module_caption1Regular__QVGyq","caption1Semibold":"typography-module_caption1Semibold__Il1Aq","caption2Medium":"typography-module_caption2Medium__0Vvmy","caption2Regular":"typography-module_caption2Regular__GxtiS","caption2Semibold":"typography-module_caption2Semibold__4ysJe"};
|
|
3
|
+
function styleInject(css, options) {
|
|
4
|
+
if (typeof document === 'undefined') return;
|
|
5
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
6
|
+
const style = document.createElement('style');
|
|
7
|
+
style.type = 'text/css';
|
|
8
|
+
if (style.styleSheet) {
|
|
9
|
+
style.styleSheet.cssText = css;
|
|
10
|
+
} else {
|
|
11
|
+
style.appendChild(document.createTextNode(css));
|
|
12
|
+
}
|
|
13
|
+
head.appendChild(style);
|
|
14
|
+
}
|
|
15
|
+
styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
export { typography as default };
|
|
18
|
+
//# sourceMappingURL=typography.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __rest, __assign } from '/home/runner/work/system-design/system-design/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
var ClearIcon = function (_a) {
|
|
5
|
+
var _b = _a.fill, fill = _b === void 0 ? "none" : _b, _c = _a.pathFill, pathFill = _c === void 0 ? "#fff" : _c, _d = _a.width, width = _d === void 0 ? 20 : _d, _e = _a.height, height = _e === void 0 ? 20 : _e, props = __rest(_a, ["fill", "pathFill", "width", "height"]);
|
|
6
|
+
return (React.createElement("svg", __assign({ "data-testid": "Icons_CLEAR", xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: fill, viewBox: "0 0 20 20" }, props),
|
|
7
|
+
React.createElement("path", { fill: pathFill, fillRule: "evenodd", d: "M10 18.333a8.333 8.333 0 100-16.666 8.333 8.333 0 000 16.666zM7.5 6.027L6.027 7.5l2.5 2.5-2.5 2.5L7.5 13.973l2.5-2.5 2.5 2.5 1.473-1.473-2.5-2.5 2.5-2.5L12.5 6.027l-2.5 2.5-2.5-2.5z", clipRule: "evenodd" })));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ClearIcon };
|
|
11
|
+
//# sourceMappingURL=ClearIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearIcon.js","sources":["../../../src/svg/ClearIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AAEO,IAAM,SAAS,GAAG,UAAC,EAM8B,EAAA;AALtD,IAAA,IAAA,EAAA,GAAA,EAAA,CAAA,IAAa,EAAb,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,GAAA,EAAA,EACb,EAAA,GAAA,EAAA,CAAA,QAAiB,EAAjB,QAAQ,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,KAAA,EACjB,EAAA,GAAA,EAAA,CAAA,KAAU,EAAV,KAAK,GAAA,EAAA,KAAA,MAAA,GAAG,EAAE,GAAA,EAAA,EACV,cAAW,EAAX,MAAM,GAAA,EAAA,KAAA,MAAA,GAAG,EAAE,GAAA,EAAA,EACR,KAAK,GAAA,MAAA,CAAA,EAAA,EALgB,uCAMzB,CADS;IAER,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,QAAA,CAAA,EAAA,aAAA,EACc,aAAa,EACzB,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAC,WAAW,EAAA,EACf,KAAK,CAAA;AAET,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,uLAAuL,EACzL,QAAQ,EAAC,SAAS,EAAA,CACZ,CACJ;AAEV;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var joinClasses = function () {
|
|
2
|
+
var args = [];
|
|
3
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4
|
+
args[_i] = arguments[_i];
|
|
5
|
+
}
|
|
6
|
+
return args.filter(function (item) { return !!item; }).join(" ");
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { joinClasses };
|
|
10
|
+
//# sourceMappingURL=joinClasses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinClasses.js","sources":["../../../src/utils/joinClasses.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,IAAM,WAAW,GAAG,YAAA;IAAC,IAAA,IAAA,GAAA,EAAA;SAAA,IAAA,EAAA,GAAA,CAAkB,EAAlB,EAAA,GAAA,SAAA,CAAA,MAAkB,EAAlB,EAAA,EAAkB,EAAA;QAAlB,IAAA,CAAA,EAAA,CAAA,GAAA,SAAA,CAAA,EAAA,CAAA;;AAC1B,IAAA,OAAA,IAAI,CAAC,MAAM,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,CAAC,IAAI,EAAN,CAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAAvC;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default, { Dispatch, JSX } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IAccordionProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: Dispatch<React__default.SetStateAction<boolean>>;
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
title: JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type { IAccordionProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface IButtonProps {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
isRounded?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
variant?: "default" | "tinted" | "secondary" | "black";
|
|
11
|
+
size?: "mini" | "small" | "medium" | "large";
|
|
12
|
+
style?: React__default.CSSProperties;
|
|
13
|
+
dataTestid?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type { IButtonProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React__default, { JSX, HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IInputFieldProps extends React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
|
+
onFocus?: () => void;
|
|
5
|
+
onBlur?: () => void;
|
|
6
|
+
onEnterPress?: (event: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
7
|
+
onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
value?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React__default.CSSProperties;
|
|
12
|
+
isClearable?: boolean;
|
|
13
|
+
inputLeftIcon?: JSX.Element;
|
|
14
|
+
type?: HTMLInputTypeAttribute;
|
|
15
|
+
id: string;
|
|
16
|
+
labelText?: string;
|
|
17
|
+
ariaLabel: string;
|
|
18
|
+
focused?: boolean;
|
|
19
|
+
setFocused?: (val: boolean) => void;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
dataTestid?: string;
|
|
22
|
+
variant?: "default" | "code";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type { IInputFieldProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React__default, { JSX, Dispatch } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
children: JSX.Element;
|
|
6
|
+
setOpen: Dispatch<React__default.SetStateAction<boolean>>;
|
|
7
|
+
headerTitle?: string;
|
|
8
|
+
variant: "large" | "small";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type { IModalProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface RadioGroupItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface ICustomRadioButtonProps {
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
interface IRadioGroupProps {
|
|
15
|
+
RadioGroupItems: RadioGroupItem[];
|
|
16
|
+
invokeCustomOnChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
setSelectedOption: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
18
|
+
selectedOption: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { ICustomRadioButtonProps, IRadioGroupProps, RadioGroupItem };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React__default, { Dispatch } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ISelectBoxProps {
|
|
4
|
+
labelText?: string;
|
|
5
|
+
setIsOpen: Dispatch<React__default.SetStateAction<boolean>>;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
modalValue?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type { ISelectBoxProps };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
type TFontClass = "heading1" | "heading3" | "subtitles3" | "body1Medium" | "body1Regular" | "body2Medium" | "body2Regular" | "body3Regular" | "caption1Medium" | "caption1Regular" | "caption1Semibold" | "caption2Medium" | "caption2Regular" | "caption2Semibold";
|
|
3
|
-
|
|
4
|
-
tag: keyof JSX.IntrinsicElements |
|
|
4
|
+
interface ITypographyProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
5
|
+
tag: keyof JSX.IntrinsicElements | React__default.JSXElementConstructor<any>;
|
|
5
6
|
fontClass: TFontClass;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
export {};
|
|
8
|
+
|
|
9
|
+
export type { ITypographyProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ITypographyProps } from './components/Typography/index.js';
|
|
2
|
+
import { ISelectBoxProps } from './components/SelectBoxButton/index.js';
|
|
3
|
+
import { IRadioToggleProps } from './components/RadioToggle/index.js';
|
|
4
|
+
import { IModalProps } from './components/Modal/index.js';
|
|
5
|
+
import { IInputFieldProps } from './components/InputField/index.js';
|
|
6
|
+
import { ICustomRadioButtonProps, IRadioGroupProps } from './components/RadioGroup/index.js';
|
|
7
|
+
import { IButtonProps } from './components/Button/index.js';
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import { IAccordionProps } from './components/Accordion/index.js';
|
|
10
|
+
|
|
11
|
+
declare const SystemDesign: {
|
|
12
|
+
Components: {
|
|
13
|
+
Accordion: ({ open, setOpen, children, title, }: IAccordionProps) => React.JSX.Element;
|
|
14
|
+
Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, dataTestid, }: IButtonProps) => React.JSX.Element;
|
|
15
|
+
CustomRadioButton: ({ label, name, checked, onChange, value, }: ICustomRadioButtonProps) => React.JSX.Element;
|
|
16
|
+
InputField: React.ForwardRefExoticComponent<Omit<IInputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
17
|
+
Modal: ({ open, setOpen, children, headerTitle, variant, }: IModalProps) => React.JSX.Element | null;
|
|
18
|
+
RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: IRadioGroupProps) => React.JSX.Element;
|
|
19
|
+
RadioToggle: ({ lock, setLock }: IRadioToggleProps) => React.JSX.Element;
|
|
20
|
+
SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: ISelectBoxProps) => React.JSX.Element;
|
|
21
|
+
Typography: React.FC<ITypographyProps>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { SystemDesign as default };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egov3/system-design",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.67",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
|
-
"types": "dist/
|
|
5
|
+
"types": "dist/types/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -29,23 +29,22 @@
|
|
|
29
29
|
"@babel/preset-env": "^7.16.4",
|
|
30
30
|
"@babel/preset-react": "^7.16.0",
|
|
31
31
|
"@babel/preset-typescript": "^7.16.0",
|
|
32
|
-
"@chromatic-com/storybook": "^
|
|
32
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
33
33
|
"@mdx-js/react": "^2.1.2",
|
|
34
|
-
"@rollup/plugin-commonjs": "^
|
|
35
|
-
"@rollup/plugin-node-resolve": "^
|
|
36
|
-
"@rollup/plugin-typescript": "^
|
|
37
|
-
"@storybook/addon-
|
|
38
|
-
"@storybook/addon-
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
34
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
36
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
37
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
38
|
+
"@storybook/addon-links": "^9.1.5",
|
|
39
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
41
40
|
"@storybook/mdx2-csf": "^1.1.0",
|
|
42
41
|
"@storybook/preset-scss": "^1.0.3",
|
|
43
|
-
"@storybook/react": "^
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@testing-library/react": "^13.3.0",
|
|
42
|
+
"@storybook/react-webpack5": "^9.1.5",
|
|
43
|
+
"@testing-library/dom": "^10.4.1",
|
|
44
|
+
"@testing-library/react": "^16.3.0",
|
|
47
45
|
"@types/jest": "^28.1.6",
|
|
48
|
-
"@types/react": "^
|
|
46
|
+
"@types/react": "^19.0.0",
|
|
47
|
+
"@types/react-dom": "^19.0.0",
|
|
49
48
|
"babel-jest": "^27.3.1",
|
|
50
49
|
"babel-loader": "^8.2.3",
|
|
51
50
|
"css-loader": "^6.5.1",
|
|
@@ -54,20 +53,20 @@
|
|
|
54
53
|
"jest": "^28.1.3",
|
|
55
54
|
"postcss": "^8.5.3",
|
|
56
55
|
"postcss-loader": "^8.1.1",
|
|
57
|
-
"react": "^
|
|
58
|
-
"react-dom": "^
|
|
59
|
-
"rollup": "^
|
|
60
|
-
"rollup-plugin-dts": "^
|
|
56
|
+
"react": "^19.0.0",
|
|
57
|
+
"react-dom": "^19.0.0",
|
|
58
|
+
"rollup": "^4",
|
|
59
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
61
60
|
"rollup-plugin-postcss": "^4.0.2",
|
|
62
61
|
"sass": "^1.85.1",
|
|
63
62
|
"sass-loader": "^12.3.0",
|
|
64
|
-
"storybook": "^
|
|
63
|
+
"storybook": "^9.1.5",
|
|
65
64
|
"style-loader": "^3.3.1",
|
|
66
65
|
"typescript": "^4.7.4",
|
|
67
66
|
"webpack": "^5"
|
|
68
67
|
},
|
|
69
68
|
"dependencies": {
|
|
70
|
-
"@egov3/graphics": "^1.0.
|
|
69
|
+
"@egov3/graphics": "^1.0.50",
|
|
71
70
|
"tsconfig-paths-webpack-plugin": "^4.2.0"
|
|
72
71
|
}
|
|
73
72
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, JSX } from "react";
|
|
2
|
-
export interface IAccordionProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
setOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
title: JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
export declare const Accordion: ({ open, setOpen, children, title, }: IAccordionProps) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface IButtonProps {
|
|
3
|
-
ariaLabel?: string;
|
|
4
|
-
onClick?: () => void;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
isRounded?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
variant?: "default" | "tinted" | "secondary" | "black";
|
|
10
|
-
size?: "mini" | "small" | "medium" | "large";
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
dataTestid?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, dataTestid, }: IButtonProps) => React.JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { HTMLInputTypeAttribute, JSX } from "react";
|
|
2
|
-
export interface IInputFieldProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
3
|
-
onFocus?: () => void;
|
|
4
|
-
onBlur?: () => void;
|
|
5
|
-
onEnterPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
6
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
value?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
isClearable?: boolean;
|
|
12
|
-
inputLeftIcon?: JSX.Element;
|
|
13
|
-
type?: HTMLInputTypeAttribute;
|
|
14
|
-
id: string;
|
|
15
|
-
labelText?: string;
|
|
16
|
-
ariaLabel: string;
|
|
17
|
-
focused?: boolean;
|
|
18
|
-
setFocused?: (val: boolean) => void;
|
|
19
|
-
readOnly?: boolean;
|
|
20
|
-
dataTestid?: string;
|
|
21
|
-
variant?: "default" | "code";
|
|
22
|
-
}
|
|
23
|
-
export declare const InputField: React.ForwardRefExoticComponent<Omit<IInputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, JSX } from "react";
|
|
2
|
-
export interface IModalProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
children: JSX.Element;
|
|
5
|
-
setOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
headerTitle?: string;
|
|
7
|
-
variant: "large" | "small";
|
|
8
|
-
}
|
|
9
|
-
export declare const Modal: ({ open, setOpen, children, headerTitle, variant, }: IModalProps) => JSX.Element | null;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface RadioGroupItem {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ICustomRadioButtonProps {
|
|
7
|
-
label: string;
|
|
8
|
-
name: string;
|
|
9
|
-
checked: boolean;
|
|
10
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
value: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IRadioGroupProps {
|
|
14
|
-
RadioGroupItems: RadioGroupItem[];
|
|
15
|
-
invokeCustomOnChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
setSelectedOption: React.Dispatch<React.SetStateAction<string>>;
|
|
17
|
-
selectedOption: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const CustomRadioButton: ({ label, name, checked, onChange, value, }: ICustomRadioButtonProps) => React.JSX.Element;
|
|
20
|
-
export declare const RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: IRadioGroupProps) => React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, JSX } from "react";
|
|
2
|
-
export interface ISelectBoxProps {
|
|
3
|
-
labelText?: string;
|
|
4
|
-
setIsOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
error?: boolean;
|
|
7
|
-
modalValue?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: ISelectBoxProps) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { FC, JSX } from "react";
|
|
2
|
-
type TFontClass = "heading1" | "heading3" | "subtitles3" | "body1Medium" | "body1Regular" | "body2Medium" | "body2Regular" | "body3Regular" | "caption1Medium" | "caption1Regular" | "caption1Semibold" | "caption2Medium" | "caption2Regular" | "caption2Semibold";
|
|
3
|
-
export interface ITypographyProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
tag: keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>;
|
|
5
|
-
fontClass: TFontClass;
|
|
6
|
-
}
|
|
7
|
-
export declare const Typography: FC<ITypographyProps>;
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Button } from "./Button";
|
|
3
|
-
import "../styles/colors.css";
|
|
4
|
-
export declare const Components: {
|
|
5
|
-
Accordion: ({ open, setOpen, children, title, }: import("./Accordion").IAccordionProps) => import("react").JSX.Element;
|
|
6
|
-
Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, dataTestid, }: import("./Button").IButtonProps) => import("react").JSX.Element;
|
|
7
|
-
CustomRadioButton: ({ label, name, checked, onChange, value, }: import("./RadioGroup").ICustomRadioButtonProps) => import("react").JSX.Element;
|
|
8
|
-
InputField: import("react").ForwardRefExoticComponent<Omit<import("./InputField").IInputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
|
-
Modal: ({ open, setOpen, children, headerTitle, variant, }: import("./Modal").IModalProps) => import("react").JSX.Element | null;
|
|
10
|
-
RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: import("./RadioGroup").IRadioGroupProps) => import("react").JSX.Element;
|
|
11
|
-
RadioToggle: ({ lock, setLock }: import("./RadioToggle").IRadioToggleProps) => import("react").JSX.Element;
|
|
12
|
-
SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: import("./SelectBoxButton").ISelectBoxProps) => import("react").JSX.Element;
|
|
13
|
-
Typography: import("react").FC<import("./Typography").ITypographyProps>;
|
|
14
|
-
};
|
|
15
|
-
export { Button };
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const SystemDesign: {
|
|
3
|
-
Components: {
|
|
4
|
-
Accordion: ({ open, setOpen, children, title, }: import("./components/Accordion").IAccordionProps) => import("react").JSX.Element;
|
|
5
|
-
Button: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, dataTestid, }: import("./components/Button").IButtonProps) => import("react").JSX.Element;
|
|
6
|
-
CustomRadioButton: ({ label, name, checked, onChange, value, }: import("./components/RadioGroup").ICustomRadioButtonProps) => import("react").JSX.Element;
|
|
7
|
-
InputField: import("react").ForwardRefExoticComponent<Omit<import("./components/InputField").IInputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
-
Modal: ({ open, setOpen, children, headerTitle, variant, }: import("./components/Modal").IModalProps) => import("react").JSX.Element | null;
|
|
9
|
-
RadioGroup: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: import("./components/RadioGroup").IRadioGroupProps) => import("react").JSX.Element;
|
|
10
|
-
RadioToggle: ({ lock, setLock }: import("./components/RadioToggle").IRadioToggleProps) => import("react").JSX.Element;
|
|
11
|
-
SelectBoxButton: ({ setIsOpen, labelText, disabled, error, modalValue, }: import("./components/SelectBoxButton").ISelectBoxProps) => import("react").JSX.Element;
|
|
12
|
-
Typography: import("react").FC<import("./components/Typography").ITypographyProps>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default SystemDesign;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface ISelectedPeriod {
|
|
2
|
-
fromDate?: string;
|
|
3
|
-
toDate?: string;
|
|
4
|
-
periodSelected: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface IStrictSelectedPeriod extends Omit<ISelectedPeriod, "fromDate" | "toDate"> {
|
|
7
|
-
fromDate: string;
|
|
8
|
-
toDate: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IDateItem<T = number> {
|
|
11
|
-
day: T;
|
|
12
|
-
month: T;
|
|
13
|
-
year: T;
|
|
14
|
-
}
|
|
15
|
-
export interface IPeriodKeys {
|
|
16
|
-
from: "from";
|
|
17
|
-
to: "to";
|
|
18
|
-
}
|
|
19
|
-
export type TPeriodKeys = keyof IPeriodKeys;
|
|
20
|
-
export interface ICalendarPeriod<T = number> {
|
|
21
|
-
from: IDateItem<T>;
|
|
22
|
-
to: IDateItem<T>;
|
|
23
|
-
}
|
|
24
|
-
export type TTimeUnit = keyof IDateItem;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const AccordionStory: () => React.JSX.Element;
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ open, setOpen, children, title, }: import("../components/Accordion").IAccordionProps) => React.JSX.Element;
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ onClick, children, style, className, isRounded, disabled, variant, size, ariaLabel, dataTestid, }: import("../components/Button").IButtonProps) => import("react").JSX.Element;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
argTypes: {};
|
|
11
|
-
args: {
|
|
12
|
-
onClick: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof meta>;
|
|
17
|
-
export declare const IsRounded: Story;
|
|
18
|
-
export declare const NotRounded: Story;
|
|
19
|
-
export declare const Large: Story;
|
|
20
|
-
export declare const Medium: Story;
|
|
21
|
-
export declare const Small: Story;
|
|
22
|
-
export declare const Mini: Story;
|
|
23
|
-
export declare const VariantDefault: Story;
|
|
24
|
-
export declare const VariantTinted: Story;
|
|
25
|
-
export declare const VariantSecondary: Story;
|
|
26
|
-
export declare const VariantBlack: Story;
|
|
27
|
-
export declare const VariantDefaultDisabled: Story;
|
|
28
|
-
export declare const VariantTintedDisabled: Story;
|
|
29
|
-
export declare const VariantSecondaryDisabled: Story;
|
|
30
|
-
export declare const VariantBlackDisabled: Story;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: React.ForwardRefExoticComponent<Omit<import("../components/InputField").IInputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
argTypes: {};
|
|
11
|
-
args: {
|
|
12
|
-
onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
|
-
ariaLabel: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof meta>;
|
|
18
|
-
export declare const Default: Story;
|
|
19
|
-
export declare const LeftIcon: Story;
|
|
20
|
-
export declare const IsClearable: Story;
|
|
21
|
-
export declare const Label: Story;
|
|
22
|
-
export declare const InputGroup: () => React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ open, setOpen, children, headerTitle, variant, }: import("../components/Modal").IModalProps) => React.JSX.Element | null;
|
|
5
|
-
};
|
|
6
|
-
export default meta;
|
|
7
|
-
export declare const SmallVariant: () => React.JSX.Element;
|
|
8
|
-
export declare const LargeVariant: () => React.JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ RadioGroupItems, invokeCustomOnChange, setSelectedOption, selectedOption, }: import("../components/RadioGroup").IRadioGroupProps) => import("react").JSX.Element;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
argTypes: {};
|
|
11
|
-
args: {
|
|
12
|
-
RadioGroupItems: {
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}[];
|
|
16
|
-
invokeCustomOnChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
17
|
-
setSelectedOption: () => void;
|
|
18
|
-
selectedOption: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
type Story = StoryObj<typeof meta>;
|
|
23
|
-
export declare const Default: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ lock, setLock }: import("../components/RadioToggle").IRadioToggleProps) => React.JSX.Element;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
args: {};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
export declare const Unlock: () => React.JSX.Element;
|
|
13
|
-
export declare const Lock: () => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: React.FC<import("../components/Typography").ITypographyProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
args: {};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
export declare const Typography: () => React.JSX.Element;
|