beyond-system 0.8.4 → 0.8.5
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/components/react/List/List.js +2 -2
- package/dist/components/react/List/List.js.map +1 -1
- package/dist/styles/global.css +18 -14
- package/package.json +83 -84
- package/dist/colors/base-colors.d.ts +0 -50
- package/dist/colors/gradients.d.ts +0 -7
- package/dist/colors/index.d.ts +0 -3
- package/dist/colors/shadows.d.ts +0 -7
- package/dist/components/react/Calendar/Calendar.d.ts +0 -5
- package/dist/components/react/Calendar/Calendar.stories.d.ts +0 -7
- package/dist/components/react/Calendar/Calendar.stories.js +0 -35
- package/dist/components/react/Calendar/Calendar.stories.js.map +0 -1
- package/dist/components/react/Calendar/index.d.ts +0 -1
- package/dist/components/react/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/react/Checkbox/Checkbox.stories.d.ts +0 -7
- package/dist/components/react/Checkbox/Checkbox.stories.js +0 -51
- package/dist/components/react/Checkbox/Checkbox.stories.js.map +0 -1
- package/dist/components/react/Checkbox/index.d.ts +0 -1
- package/dist/components/react/Chip/Chip.d.ts +0 -11
- package/dist/components/react/Chip/Chip.stories.d.ts +0 -10
- package/dist/components/react/Chip/Chip.stories.js +0 -74
- package/dist/components/react/Chip/Chip.stories.js.map +0 -1
- package/dist/components/react/Chip/index.d.ts +0 -1
- package/dist/components/react/DatePicker/DatePicker.d.ts +0 -15
- package/dist/components/react/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/react/DatePicker/DatePicker.stories.js +0 -46
- package/dist/components/react/DatePicker/DatePicker.stories.js.map +0 -1
- package/dist/components/react/DatePicker/index.d.ts +0 -1
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts +0 -4
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.d.ts +0 -7
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js +0 -44
- package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js.map +0 -1
- package/dist/components/react/DateRangeCalendar/index.d.ts +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts +0 -4
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.d.ts +0 -7
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js +0 -44
- package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js.map +0 -1
- package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts +0 -1
- package/dist/components/react/DateRangePicker/DateRangePicker.d.ts +0 -25
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.d.ts +0 -7
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.js +0 -51
- package/dist/components/react/DateRangePicker/DateRangePicker.stories.js.map +0 -1
- package/dist/components/react/DateRangePicker/index.d.ts +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.d.ts +0 -12
- package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +0 -7
- package/dist/components/react/DefaultButton/DefaultButton.stories.js +0 -86
- package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +0 -1
- package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +0 -15
- package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +0 -45
- package/dist/components/react/DefaultButton/index.d.ts +0 -1
- package/dist/components/react/IconButton/IconButton.d.ts +0 -10
- package/dist/components/react/IconButton/IconButton.stories.d.ts +0 -7
- package/dist/components/react/IconButton/IconButton.stories.js +0 -68
- package/dist/components/react/IconButton/IconButton.stories.js.map +0 -1
- package/dist/components/react/IconButton/IconButton.styles.d.ts +0 -13
- package/dist/components/react/IconButton/IconButton.variants.d.ts +0 -36
- package/dist/components/react/IconButton/index.d.ts +0 -1
- package/dist/components/react/List/List.d.ts +0 -10
- package/dist/components/react/List/List.stories.d.ts +0 -8
- package/dist/components/react/List/List.stories.js +0 -46
- package/dist/components/react/List/List.stories.js.map +0 -1
- package/dist/components/react/List/index.d.ts +0 -1
- package/dist/components/react/Loader/Loader.d.ts +0 -11
- package/dist/components/react/Loader/Loader.stories.d.ts +0 -7
- package/dist/components/react/Loader/Loader.stories.js +0 -36
- package/dist/components/react/Loader/Loader.stories.js.map +0 -1
- package/dist/components/react/Loader/index.d.ts +0 -3
- package/dist/components/react/MonthPicker/MonthPicker.d.ts +0 -15
- package/dist/components/react/MonthPicker/MonthPicker.stories.d.ts +0 -7
- package/dist/components/react/MonthPicker/MonthPicker.stories.js +0 -34
- package/dist/components/react/MonthPicker/MonthPicker.stories.js.map +0 -1
- package/dist/components/react/MonthPicker/index.d.ts +0 -1
- package/dist/components/react/MultiSelect/MultiSelect.d.ts +0 -8
- package/dist/components/react/MultiSelect/MultiSelect.stories.d.ts +0 -7
- package/dist/components/react/MultiSelect/MultiSelect.stories.js +0 -37
- package/dist/components/react/MultiSelect/MultiSelect.stories.js.map +0 -1
- package/dist/components/react/MultiSelect/index.d.ts +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.d.ts +0 -12
- package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +0 -7
- package/dist/components/react/OutlineButton/OutlineButton.stories.js +0 -86
- package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +0 -1
- package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +0 -12
- package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +0 -36
- package/dist/components/react/OutlineButton/index.d.ts +0 -1
- package/dist/components/react/RadioInput/RadioInput.d.ts +0 -7
- package/dist/components/react/RadioInput/RadioInput.stories.d.ts +0 -7
- package/dist/components/react/RadioInput/RadioInput.stories.js +0 -53
- package/dist/components/react/RadioInput/RadioInput.stories.js.map +0 -1
- package/dist/components/react/RadioInput/RadioInput.styles.d.ts +0 -14
- package/dist/components/react/RadioInput/RadioInput.variants.d.ts +0 -21
- package/dist/components/react/RadioInput/index.d.ts +0 -1
- package/dist/components/react/Select/Select.d.ts +0 -8
- package/dist/components/react/Select/Select.stories.d.ts +0 -7
- package/dist/components/react/Select/Select.stories.js +0 -36
- package/dist/components/react/Select/Select.stories.js.map +0 -1
- package/dist/components/react/Select/index.d.ts +0 -1
- package/dist/components/react/Switch/Switch.d.ts +0 -10
- package/dist/components/react/Switch/Switch.stories.d.ts +0 -7
- package/dist/components/react/Switch/Switch.stories.js +0 -53
- package/dist/components/react/Switch/Switch.stories.js.map +0 -1
- package/dist/components/react/Switch/Switch.styles.d.ts +0 -13
- package/dist/components/react/Switch/Switch.variants.d.ts +0 -17
- package/dist/components/react/Switch/index.d.ts +0 -1
- package/dist/components/react/TextArea/TextArea.d.ts +0 -12
- package/dist/components/react/TextArea/TextArea.stories.d.ts +0 -5
- package/dist/components/react/TextArea/TextArea.stories.js +0 -22
- package/dist/components/react/TextArea/TextArea.stories.js.map +0 -1
- package/dist/components/react/TextArea/index.d.ts +0 -1
- package/dist/components/react/TextInput/TextInput.d.ts +0 -36
- package/dist/components/react/TextInput/TextInput.stories.d.ts +0 -8
- package/dist/components/react/TextInput/TextInput.stories.js +0 -85
- package/dist/components/react/TextInput/TextInput.stories.js.map +0 -1
- package/dist/components/react/TextInput/index.d.ts +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.d.ts +0 -7
- package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +0 -7
- package/dist/components/react/TransparentButton/TransparentButton.stories.js +0 -53
- package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +0 -1
- package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +0 -10
- package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +0 -32
- package/dist/components/react/TransparentButton/index.d.ts +0 -1
- package/dist/components/react/index.d.ts +0 -19
- package/dist/config/index.d.ts +0 -1
- package/dist/config/tailwind.config.d.ts +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/initialize.d.ts +0 -3
- package/dist/stories/base-colors/base-colors.stories.d.ts +0 -4
- package/dist/stories/base-colors/base-colors.stories.js +0 -65
- package/dist/stories/base-colors/base-colors.stories.js.map +0 -1
- package/dist/stories/base-colors/base-colors.stories.styles.d.ts +0 -2
- package/dist/stories/gradients/gradients.stories.d.ts +0 -4
- package/dist/stories/gradients/gradients.stories.js +0 -28
- package/dist/stories/gradients/gradients.stories.js.map +0 -1
- package/dist/stories/gradients/gradients.stories.styles.d.ts +0 -2
- package/dist/stories/shadows/shadows.stories.d.ts +0 -4
- package/dist/stories/shadows/shadows.stories.js +0 -26
- package/dist/stories/shadows/shadows.stories.js.map +0 -1
- package/dist/stories/shadows/shadows.stories.styles.d.ts +0 -2
- package/dist/web/border.d.ts +0 -12
- package/dist/web/font.d.ts +0 -34
- package/dist/web/index.d.ts +0 -2
|
@@ -4,13 +4,13 @@ var tslib_1 = require("tslib");
|
|
|
4
4
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
var clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
6
6
|
var ListContainer = (0, react_1.forwardRef)(function (props, ref) {
|
|
7
|
-
return (react_1.default.createElement("div", tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('bg-neutral-50 rounded border border-neutral-300 w-fit shadow-lg', props.className) })));
|
|
7
|
+
return (react_1.default.createElement("div", tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('bg-neutral-50 rounded border border-neutral-300 w-fit shadow-lg', '[&>*]:border-b last:[&>*]:border-b-0 first:[&>*]:rounded-t last:[&>*]:rounded-b ', props.className) })));
|
|
8
8
|
});
|
|
9
9
|
ListContainer.displayName = 'ListContainer';
|
|
10
10
|
var ListItem = (0, react_1.forwardRef)(function (_a, ref) {
|
|
11
11
|
var _b = _a.selected, selected = _b === void 0 ? false : _b, as = _a.as, props = tslib_1.__rest(_a, ["selected", "as"]);
|
|
12
12
|
var Component = (as || 'button');
|
|
13
|
-
return (react_1.default.createElement(Component, tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('outline-none py-1 px-2 flex items-center border-neutral-300 min-w-[150px]
|
|
13
|
+
return (react_1.default.createElement(Component, tslib_1.__assign({}, props, { ref: ref, className: (0, clsx_1.default)('outline-none py-1 px-2 flex items-center border-neutral-300 min-w-[150px] active:bg-growth-mid group cursor-pointer transition text-sm [&>*]:text-sm', {
|
|
14
14
|
'hover:bg-neutral-200 text-neutral-600 [&>*]:active:text-neutral-50 active:text-neutral-50': !selected && !props.disabled,
|
|
15
15
|
'bg-growth-mid text-neutral-50 hover:bg-growth-light': selected && !props.disabled,
|
|
16
16
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/react/List/List.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,sDAAuB;AAOvB,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,UACE,KAAkC,EAClC,GAAuC;IAEvC,OAAO,CACL,0DACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,iEAAiE,EACjE,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA;AAE3C,IAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,UACE,EAAiD,EACjD,GAA0C;IADxC,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,EAAE,QAAA,EAAK,KAAK,sBAAhC,kBAAkC,CAAF;IAGhC,IAAM,SAAS,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAsB,CAAA;IAEvD,OAAO,CACL,8BAAC,SAAS,uBACJ,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../src/components/react/List/List.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,sDAAuB;AAOvB,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,UACE,KAAkC,EAClC,GAAuC;IAEvC,OAAO,CACL,0DACM,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,iEAAiE,EACjE,kFAAkF,EAClF,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA;AAE3C,IAAM,QAAQ,GAAG,IAAA,kBAAU,EACzB,UACE,EAAiD,EACjD,GAA0C;IADxC,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,EAAE,QAAA,EAAK,KAAK,sBAAhC,kBAAkC,CAAF;IAGhC,IAAM,SAAS,GAAG,CAAC,EAAE,IAAI,QAAQ,CAAsB,CAAA;IAEvD,OAAO,CACL,8BAAC,SAAS,uBACJ,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAI,EACb,sJAAsJ,EACtJ;YACE,2FAA2F,EACzF,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;YAC9B,qDAAqD,EACnD,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;SAC9B,EACD;YACE,sCAAsC,EAAE,KAAK,CAAC,QAAQ;YACtD,iCAAiC,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ;SAC9D,EACD,KAAK,CAAC,SAAS,CAChB,IACD,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;CACf,CAAA;AAED,kBAAe,IAAI,CAAA"}
|
package/dist/styles/global.css
CHANGED
|
@@ -1019,20 +1019,6 @@ video {
|
|
|
1019
1019
|
transition-duration: 100ms;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
.first\:rounded-t:first-child {
|
|
1023
|
-
border-top-left-radius: 0.25rem;
|
|
1024
|
-
border-top-right-radius: 0.25rem;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
.last\:rounded-b:last-child {
|
|
1028
|
-
border-bottom-right-radius: 0.25rem;
|
|
1029
|
-
border-bottom-left-radius: 0.25rem;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
.last\:border-b-0:last-child {
|
|
1033
|
-
border-bottom-width: 0px;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
1022
|
.last\:border-none:last-child {
|
|
1037
1023
|
border-style: none;
|
|
1038
1024
|
}
|
|
@@ -1147,11 +1133,29 @@ video {
|
|
|
1147
1133
|
background-color: rgb(191 196 201 / var(--tw-bg-opacity));
|
|
1148
1134
|
}
|
|
1149
1135
|
|
|
1136
|
+
.\[\&\>\*\]\:border-b>* {
|
|
1137
|
+
border-bottom-width: 1px;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1150
1140
|
.\[\&\>\*\]\:text-sm>* {
|
|
1151
1141
|
font-size: 0.875rem;
|
|
1152
1142
|
line-height: 1.25rem;
|
|
1153
1143
|
}
|
|
1154
1144
|
|
|
1145
|
+
.first\:\[\&\>\*\]\:rounded-t>*:first-child {
|
|
1146
|
+
border-top-left-radius: 0.25rem;
|
|
1147
|
+
border-top-right-radius: 0.25rem;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
.last\:\[\&\>\*\]\:rounded-b>*:last-child {
|
|
1151
|
+
border-bottom-right-radius: 0.25rem;
|
|
1152
|
+
border-bottom-left-radius: 0.25rem;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.last\:\[\&\>\*\]\:border-b-0>*:last-child {
|
|
1156
|
+
border-bottom-width: 0px;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1155
1159
|
.\[\&\>\*\]\:active\:text-neutral-50:active>* {
|
|
1156
1160
|
--tw-text-opacity: 1;
|
|
1157
1161
|
color: rgb(250 251 252 / var(--tw-text-opacity));
|
package/package.json
CHANGED
|
@@ -1,84 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "beyond-system",
|
|
3
|
-
"author": "Growth Machine",
|
|
4
|
-
"version": "0.8.
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "
|
|
12
|
-
"build:tailwind": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css",
|
|
13
|
-
"build:module": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
|
|
14
|
-
"build": "yarn run build:tailwind && yarn run build:module",
|
|
15
|
-
"lint": "eslint .",
|
|
16
|
-
"storybook": "
|
|
17
|
-
"build-storybook": "
|
|
18
|
-
"serve-storybook": "serve storybook-static"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"react": ">=16"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"LICENSE",
|
|
26
|
-
"README.md"
|
|
27
|
-
],
|
|
28
|
-
"resolutions": {
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@radix-ui/react-
|
|
34
|
-
"@radix-ui/react-
|
|
35
|
-
"@radix-ui/react-
|
|
36
|
-
"@radix-ui/react-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"react": "18.2.0",
|
|
45
|
-
"react-
|
|
46
|
-
"react-
|
|
47
|
-
"react-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"@
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/addon-
|
|
58
|
-
"@storybook/addon-
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/react": "
|
|
67
|
-
"@types/
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"eslint": "
|
|
75
|
-
"eslint-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"tsconfig-paths": "^4.
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "beyond-system",
|
|
3
|
+
"author": "Growth Machine",
|
|
4
|
+
"version": "0.8.5",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "storybook dev -p 6006",
|
|
12
|
+
"build:tailwind": "tailwindcss -i ./src/styles/global.css -o ./dist/styles/global.css",
|
|
13
|
+
"build:module": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
|
|
14
|
+
"build": "yarn run build:tailwind && yarn run build:module",
|
|
15
|
+
"lint": "eslint .",
|
|
16
|
+
"storybook": "storybook dev -p 6006 -s public",
|
|
17
|
+
"build-storybook": "storybook build -s public",
|
|
18
|
+
"serve-storybook": "serve storybook-static"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=16"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"resolutions": {
|
|
29
|
+
"styled-components": "^5"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@radix-ui/react-checkbox": "^1.0.3",
|
|
33
|
+
"@radix-ui/react-dropdown-menu": "^2.0.4",
|
|
34
|
+
"@radix-ui/react-radio-group": "^1.1.2",
|
|
35
|
+
"@radix-ui/react-slot": "^1.0.1",
|
|
36
|
+
"@radix-ui/react-switch": "^1.0.2",
|
|
37
|
+
"clsx": "^1.2.1",
|
|
38
|
+
"date-fns": "^2.29.3",
|
|
39
|
+
"moment": "^2.29.4",
|
|
40
|
+
"postcss": "^8.4.23",
|
|
41
|
+
"postcss-loader": "^7.1.0",
|
|
42
|
+
"react": "18.2.0",
|
|
43
|
+
"react-date-range": "^1.4.0",
|
|
44
|
+
"react-dom": "18.2.0",
|
|
45
|
+
"react-icons": "^4.8.0",
|
|
46
|
+
"react-input-mask": "^2.0.4",
|
|
47
|
+
"react-select": "^5.7.2",
|
|
48
|
+
"styled-components": "^5.3.9",
|
|
49
|
+
"tailwindcss": "^3.2.7",
|
|
50
|
+
"typescript": "5.0.2"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@babel/core": "^7.21.3",
|
|
54
|
+
"@storybook/addon-actions": "^7.0.9",
|
|
55
|
+
"@storybook/addon-essentials": "^7.0.9",
|
|
56
|
+
"@storybook/addon-interactions": "^7.0.9",
|
|
57
|
+
"@storybook/addon-links": "^7.0.9",
|
|
58
|
+
"@storybook/addon-styling": "^1.0.6",
|
|
59
|
+
"@storybook/nextjs": "7.0.9",
|
|
60
|
+
"@storybook/react": "^7.0.9",
|
|
61
|
+
"@storybook/testing-library": "^0.1.0",
|
|
62
|
+
"@types/node": "18.15.5",
|
|
63
|
+
"@types/react": "18.0.28",
|
|
64
|
+
"@types/react-date-range": "^1.4.4",
|
|
65
|
+
"@types/react-dom": "18.0.11",
|
|
66
|
+
"@types/react-input-mask": "^3.0.2",
|
|
67
|
+
"@types/styled-components": "^5.1.26",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
69
|
+
"autoprefixer": "^10.4.14",
|
|
70
|
+
"babel-loader": "^8.3.0",
|
|
71
|
+
"eslint": "8.36.0",
|
|
72
|
+
"eslint-config-next": "13.2.4",
|
|
73
|
+
"eslint-config-prettier": "^8.8.0",
|
|
74
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
75
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
76
|
+
"next": "13.2.4",
|
|
77
|
+
"prettier": "^2.8.6",
|
|
78
|
+
"storybook": "7.0.9",
|
|
79
|
+
"tsconfig-paths": "^4.2.0",
|
|
80
|
+
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
|
81
|
+
"tscpaths": "^0.0.9"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const COLORS: {
|
|
2
|
-
PRIMARY: string;
|
|
3
|
-
SECONDARY: string;
|
|
4
|
-
TEXT_PRIMARY: string;
|
|
5
|
-
TEXT_SECONDARY: string;
|
|
6
|
-
TEXT_ACCENT: string;
|
|
7
|
-
GROWTH_DARK: string;
|
|
8
|
-
GROWTH_MID: string;
|
|
9
|
-
GROWTH_LIGHT: string;
|
|
10
|
-
GROWTH_LIGHTER: string;
|
|
11
|
-
NEUTRAL_LOW: string;
|
|
12
|
-
NEUTRAL_DARKER: string;
|
|
13
|
-
NEUTRAL_DARK: string;
|
|
14
|
-
NEUTRAL_MID: string;
|
|
15
|
-
NEUTRAL_LIGHT: string;
|
|
16
|
-
NEUTRAL_LIGHTER: string;
|
|
17
|
-
NEUTRAL_HIGH: string;
|
|
18
|
-
INFO_DARK: string;
|
|
19
|
-
INFO_MID: string;
|
|
20
|
-
ALERT_DARK: string;
|
|
21
|
-
ALERT_MID: string;
|
|
22
|
-
ATTENTION_DARK: string;
|
|
23
|
-
ATTENTION_MID: string;
|
|
24
|
-
NICE_DARK: string;
|
|
25
|
-
NICE_MID: string;
|
|
26
|
-
BETTER_DARK: string;
|
|
27
|
-
BETTER_MID: string;
|
|
28
|
-
DASHBOARD: {
|
|
29
|
-
CLOUDY_LIGHT: string;
|
|
30
|
-
CLOUDY_MID: string;
|
|
31
|
-
GRASS_LIGHT: string;
|
|
32
|
-
GRASS_MID: string;
|
|
33
|
-
STRAWBERRY_LIGHT: string;
|
|
34
|
-
STRAWBERRY_MID: string;
|
|
35
|
-
EVENING_LIGHT: string;
|
|
36
|
-
EVENING_MID: string;
|
|
37
|
-
BUBBLEGUM_LIGHT: string;
|
|
38
|
-
BUBBLEGUM_MID: string;
|
|
39
|
-
BLUEY_LIGHT: string;
|
|
40
|
-
BLUEY_MID: string;
|
|
41
|
-
SUNBEAM_LIGHT: string;
|
|
42
|
-
SUNBEAM_MID: string;
|
|
43
|
-
POOLPARTY_LIGHT: string;
|
|
44
|
-
POOLPARTY_MID: string;
|
|
45
|
-
LAVENDER_LIGHT: string;
|
|
46
|
-
LAVENDER_MID: string;
|
|
47
|
-
PUMPKIN_LIGHT: string;
|
|
48
|
-
PUMPKIN_MID: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
package/dist/colors/index.d.ts
DELETED
package/dist/colors/shadows.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import CalendarComponent from './Calendar';
|
|
4
|
-
type Props = React.ComponentProps<typeof CalendarComponent>;
|
|
5
|
-
export declare const Calendar: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Calendar = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Calendar_1 = tslib_1.__importDefault(require("./Calendar"));
|
|
7
|
-
var Calendar = function (props) {
|
|
8
|
-
var _a = react_1.default.useState(new Date()), date = _a[0], setDate = _a[1];
|
|
9
|
-
return react_1.default.createElement(Calendar_1.default, tslib_1.__assign({}, props, { date: date, onChange: setDate }));
|
|
10
|
-
};
|
|
11
|
-
exports.Calendar = Calendar;
|
|
12
|
-
exports.default = {
|
|
13
|
-
title: 'Date Inputs/Calendar',
|
|
14
|
-
component: exports.Calendar,
|
|
15
|
-
args: {
|
|
16
|
-
direction: undefined,
|
|
17
|
-
months: 1,
|
|
18
|
-
},
|
|
19
|
-
argTypes: {
|
|
20
|
-
direction: {
|
|
21
|
-
control: {
|
|
22
|
-
type: 'select',
|
|
23
|
-
options: ['horizontal', 'vertical', undefined],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
months: {
|
|
27
|
-
control: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
min: 1,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
onChange: { action: 'changed' },
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=Calendar.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Calendar/Calendar.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gEAA0C;AAInC,IAAM,QAAQ,GAAG,UAAC,KAAY;IAC7B,IAAA,KAAkB,eAAK,CAAC,QAAQ,CAAO,IAAI,IAAI,EAAE,CAAC,EAAjD,IAAI,QAAA,EAAE,OAAO,QAAoC,CAAA;IAExD,OAAO,8BAAC,kBAAiB,uBAAK,KAAK,IAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,IAAI,CAAA;AACxE,CAAC,CAAA;AAJY,QAAA,QAAQ,YAIpB;AAED,kBAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,gBAAQ;IACnB,IAAI,EAAE;QACJ,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,CAAC;KACV;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACP;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Calendar';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as RadixCheckbox from '@radix-ui/react-checkbox';
|
|
3
|
-
type RootCheckboxProps = React.ComponentProps<typeof RadixCheckbox.Root>;
|
|
4
|
-
type CheckboxProps = {
|
|
5
|
-
size?: 'SM' | 'MD';
|
|
6
|
-
isErrored?: boolean;
|
|
7
|
-
} & RootCheckboxProps;
|
|
8
|
-
declare const Checkbox: ({ size, isErrored, ...props }: CheckboxProps) => JSX.Element;
|
|
9
|
-
export default Checkbox;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import CheckboxComponent from './Checkbox';
|
|
4
|
-
type Props = React.ComponentProps<typeof CheckboxComponent>;
|
|
5
|
-
export declare const Checkbox: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Checkbox = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Checkbox_1 = tslib_1.__importDefault(require("./Checkbox"));
|
|
7
|
-
var Checkbox = function (props) {
|
|
8
|
-
return react_1.default.createElement(Checkbox_1.default, tslib_1.__assign({}, props));
|
|
9
|
-
};
|
|
10
|
-
exports.Checkbox = Checkbox;
|
|
11
|
-
exports.default = {
|
|
12
|
-
title: 'Inputs/Checkbox',
|
|
13
|
-
parameters: {
|
|
14
|
-
component: exports.Checkbox,
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
size: 'MD',
|
|
18
|
-
checked: false,
|
|
19
|
-
disabled: false,
|
|
20
|
-
isErrored: false,
|
|
21
|
-
},
|
|
22
|
-
argTypes: {
|
|
23
|
-
size: {
|
|
24
|
-
control: {
|
|
25
|
-
type: 'select',
|
|
26
|
-
options: ['SM', 'MD'],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
checked: {
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
control: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
isErrored: {
|
|
40
|
-
control: {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
onCheckedChange: {
|
|
45
|
-
control: {
|
|
46
|
-
action: 'changed',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=Checkbox.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gEAA0C;AAInC,IAAM,QAAQ,GAAG,UAAC,KAAY;IACnC,OAAO,8BAAC,kBAAiB,uBAAK,KAAK,EAAI,CAAA;AACzC,CAAC,CAAA;AAFY,QAAA,QAAQ,YAEpB;AAED,kBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,SAAS,EAAE,gBAAQ;KACpB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,SAAS,EAAE,KAAK;KACjB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Checkbox';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
children: string;
|
|
3
|
-
shape?: 'square' | 'round';
|
|
4
|
-
variant?: 'primary' | 'neutral-darker' | 'neutral-dark' | 'neutral-light' | 'alert-mid' | 'attention-mid' | 'nice-mid' | 'better-mid';
|
|
5
|
-
outline?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onRemove?: () => void;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
declare const Checkbox: ({ variant, shape, outline, disabled, onRemove, onClick, children, }: Props) => JSX.Element;
|
|
11
|
-
export default Checkbox;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import ChipComponent from './Chip';
|
|
4
|
-
type Props = React.ComponentProps<typeof ChipComponent>;
|
|
5
|
-
export declare const Chip: (props: Props) => JSX.Element;
|
|
6
|
-
export declare const ChipWithClick: (props: Props) => JSX.Element;
|
|
7
|
-
export declare const ChipWithRemove: (props: Props) => JSX.Element;
|
|
8
|
-
export declare const ChipWithRemoveAndClick: (props: Props) => JSX.Element;
|
|
9
|
-
declare const _default: Meta;
|
|
10
|
-
export default _default;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChipWithRemoveAndClick = exports.ChipWithRemove = exports.ChipWithClick = exports.Chip = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Chip_1 = tslib_1.__importDefault(require("./Chip"));
|
|
7
|
-
var Chip = function (props) {
|
|
8
|
-
return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onClick: undefined, onRemove: undefined }));
|
|
9
|
-
};
|
|
10
|
-
exports.Chip = Chip;
|
|
11
|
-
var ChipWithClick = function (props) {
|
|
12
|
-
return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onRemove: undefined }));
|
|
13
|
-
};
|
|
14
|
-
exports.ChipWithClick = ChipWithClick;
|
|
15
|
-
var ChipWithRemove = function (props) {
|
|
16
|
-
return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props, { onClick: undefined }));
|
|
17
|
-
};
|
|
18
|
-
exports.ChipWithRemove = ChipWithRemove;
|
|
19
|
-
var ChipWithRemoveAndClick = function (props) {
|
|
20
|
-
return react_1.default.createElement(Chip_1.default, tslib_1.__assign({}, props));
|
|
21
|
-
};
|
|
22
|
-
exports.ChipWithRemoveAndClick = ChipWithRemoveAndClick;
|
|
23
|
-
exports.default = {
|
|
24
|
-
title: 'Others/Chip',
|
|
25
|
-
parameters: {
|
|
26
|
-
component: exports.Chip,
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
children: 'Chip',
|
|
30
|
-
variant: 'neutral-light',
|
|
31
|
-
shape: 'round',
|
|
32
|
-
outline: false,
|
|
33
|
-
disabled: false,
|
|
34
|
-
},
|
|
35
|
-
argTypes: {
|
|
36
|
-
variant: {
|
|
37
|
-
control: {
|
|
38
|
-
type: 'select',
|
|
39
|
-
options: [
|
|
40
|
-
'primary',
|
|
41
|
-
'neutral-darker',
|
|
42
|
-
'neutral-dark',
|
|
43
|
-
'neutral-light',
|
|
44
|
-
'alert-mid',
|
|
45
|
-
'attention-mid',
|
|
46
|
-
'nice-mid',
|
|
47
|
-
'better-mid',
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
shape: {
|
|
52
|
-
control: {
|
|
53
|
-
type: 'select',
|
|
54
|
-
options: ['square', 'round'],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
disabled: {
|
|
58
|
-
control: {
|
|
59
|
-
type: 'boolean',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
onRemove: {
|
|
63
|
-
control: {
|
|
64
|
-
action: 'clicked',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
onClick: {
|
|
68
|
-
control: {
|
|
69
|
-
action: 'clicked',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=Chip.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Chip/Chip.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,wDAAkC;AAI3B,IAAM,IAAI,GAAG,UAAC,KAAY;IAC/B,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,IAAI,CAAA;AAC9E,CAAC,CAAA;AAFY,QAAA,IAAI,QAEhB;AAEM,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,QAAQ,EAAE,SAAS,IAAI,CAAA;AAC1D,CAAC,CAAA;AAFY,QAAA,aAAa,iBAEzB;AACM,IAAM,cAAc,GAAG,UAAC,KAAY;IACzC,OAAO,8BAAC,cAAa,uBAAK,KAAK,IAAE,OAAO,EAAE,SAAS,IAAkB,CAAA;AACvE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B;AACM,IAAM,sBAAsB,GAAG,UAAC,KAAY;IACjD,OAAO,8BAAC,cAAa,uBAAK,KAAK,EAAI,CAAA;AACrC,CAAC,CAAA;AAFY,QAAA,sBAAsB,0BAElC;AAED,kBAAe;IACb,KAAK,EAAE,aAAa;IACpB,UAAU,EAAE;QACV,SAAS,EAAE,YAAI;KAChB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,eAAe;QACxB,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE;oBACP,SAAS;oBACT,gBAAgB;oBAChB,cAAc;oBACd,eAAe;oBACf,WAAW;oBACX,eAAe;oBACf,UAAU;oBACV,YAAY;iBACb;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;aAC7B;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Chip';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Calendar from '../Calendar';
|
|
3
|
-
interface DatePickerProps extends React.ComponentProps<typeof Calendar> {
|
|
4
|
-
fill?: boolean;
|
|
5
|
-
shape?: 'square' | 'round' | 'line' | 'none';
|
|
6
|
-
leftIcon?: boolean | React.ReactNode;
|
|
7
|
-
rightIcon?: boolean | React.ReactNode;
|
|
8
|
-
isValid?: boolean;
|
|
9
|
-
isErrored?: boolean;
|
|
10
|
-
paintLeftIcon?: boolean;
|
|
11
|
-
paintRightIcon?: boolean;
|
|
12
|
-
closeOnSelect?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
15
|
-
export default DatePicker;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import DatePickerComponent from './DatePicker';
|
|
4
|
-
type Props = React.ComponentProps<typeof DatePickerComponent>;
|
|
5
|
-
export declare const DatePicker: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatePicker = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var DatePicker_1 = tslib_1.__importDefault(require("./DatePicker"));
|
|
7
|
-
var DatePicker = function (props) {
|
|
8
|
-
return react_1.default.createElement(DatePicker_1.default, tslib_1.__assign({}, props, { date: new Date(), className: "w-56" }));
|
|
9
|
-
};
|
|
10
|
-
exports.DatePicker = DatePicker;
|
|
11
|
-
exports.default = {
|
|
12
|
-
title: 'Date Inputs/DatePicker',
|
|
13
|
-
component: exports.DatePicker,
|
|
14
|
-
args: {
|
|
15
|
-
shape: 'round',
|
|
16
|
-
placeholder: 'dd/mm/yyyy',
|
|
17
|
-
closeOnSelect: true,
|
|
18
|
-
fill: false,
|
|
19
|
-
isValid: false,
|
|
20
|
-
isErrored: false,
|
|
21
|
-
leftIcon: true,
|
|
22
|
-
rightIcon: false,
|
|
23
|
-
paintLeftIcon: true,
|
|
24
|
-
paintRightIcon: false,
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
shape: {
|
|
28
|
-
control: {
|
|
29
|
-
type: 'select',
|
|
30
|
-
options: ['square', 'round', 'line', 'none'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
leftIcon: {
|
|
34
|
-
control: {
|
|
35
|
-
type: 'boolean',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
rightIcon: {
|
|
39
|
-
control: {
|
|
40
|
-
type: 'boolean',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
onChange: { action: 'changed' },
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=DatePicker.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,oEAA8C;AAIvC,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,OAAO,8BAAC,oBAAmB,uBAAK,KAAK,IAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,SAAS,EAAC,MAAM,IAAG,CAAA;AAC9E,CAAC,CAAA;AAFY,QAAA,UAAU,cAEtB;AAED,kBAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,kBAAU;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,KAAK;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;aAC7C;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|