beyond-system 0.8.3 → 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 +9 -7
- 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
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListItem = exports.List = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var List_1 = tslib_1.__importDefault(require("./List"));
|
|
7
|
-
var List = function (props) {
|
|
8
|
-
return (react_1.default.createElement(List_1.default.Container, null,
|
|
9
|
-
react_1.default.createElement(List_1.default.Item, tslib_1.__assign({}, props)),
|
|
10
|
-
react_1.default.createElement(List_1.default.Item, tslib_1.__assign({}, props, { as: "div" })),
|
|
11
|
-
react_1.default.createElement(List_1.default.Item, tslib_1.__assign({}, props, { as: function (p) { return react_1.default.createElement("ul", tslib_1.__assign({}, p)); } }))));
|
|
12
|
-
};
|
|
13
|
-
exports.List = List;
|
|
14
|
-
var ListItem = function (props) {
|
|
15
|
-
return react_1.default.createElement(List_1.default.Item, tslib_1.__assign({}, props));
|
|
16
|
-
};
|
|
17
|
-
exports.ListItem = ListItem;
|
|
18
|
-
exports.default = {
|
|
19
|
-
title: 'Others/List',
|
|
20
|
-
parameters: {
|
|
21
|
-
component: exports.List,
|
|
22
|
-
},
|
|
23
|
-
args: {
|
|
24
|
-
children: 'Item',
|
|
25
|
-
selected: false,
|
|
26
|
-
disabled: false,
|
|
27
|
-
},
|
|
28
|
-
argTypes: {
|
|
29
|
-
selected: {
|
|
30
|
-
control: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
control: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
onClick: {
|
|
40
|
-
control: {
|
|
41
|
-
action: 'clicked',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=List.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"List.stories.js","sourceRoot":"","sources":["../../../../src/components/react/List/List.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,wDAAkC;AAI3B,IAAM,IAAI,GAAG,UAAC,KAAY;IAC/B,OAAO,CACL,8BAAC,cAAa,CAAC,SAAS;QACtB,8BAAC,cAAa,CAAC,IAAI,uBAAK,KAAK,EAAI;QACjC,8BAAC,cAAa,CAAC,IAAI,uBAAK,KAAK,IAAE,EAAE,EAAC,KAAK,IAAG;QAC1C,8BAAC,cAAa,CAAC,IAAI,uBAAK,KAAK,IAAE,EAAE,EAAE,UAAC,CAAC,IAAK,OAAA,yDAAQ,CAAC,EAAI,EAAb,CAAa,IAAI,CACnC,CAC3B,CAAA;AACH,CAAC,CAAA;AARY,QAAA,IAAI,QAQhB;AAEM,IAAM,QAAQ,GAAG,UAAC,KAAY;IACnC,OAAO,8BAAC,cAAa,CAAC,IAAI,uBAAK,KAAK,EAAI,CAAA;AAC1C,CAAC,CAAA;AAFY,QAAA,QAAQ,YAEpB;AACD,kBAAe;IACb,KAAK,EAAE,aAAa;IACpB,UAAU,EAAE;QACV,SAAS,EAAE,YAAI;KAChB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './List';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { COLORS } from '../../../colors';
|
|
2
|
-
declare const LOADER_SIZES: {
|
|
3
|
-
SM: string;
|
|
4
|
-
MD: string;
|
|
5
|
-
};
|
|
6
|
-
type LoaderProps = {
|
|
7
|
-
size?: keyof typeof LOADER_SIZES;
|
|
8
|
-
color?: keyof typeof COLORS;
|
|
9
|
-
};
|
|
10
|
-
export declare const Loader: import("styled-components").StyledComponent<"span", any, LoaderProps, never>;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import { Loader as LoaderComponent } from './Loader';
|
|
4
|
-
type Props = React.ComponentProps<typeof LoaderComponent>;
|
|
5
|
-
export declare const Loader: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Loader = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Loader_1 = require("./Loader");
|
|
7
|
-
var colors_1 = require("../../../colors");
|
|
8
|
-
var Loader = function (props) {
|
|
9
|
-
return react_1.default.createElement(Loader_1.Loader, tslib_1.__assign({}, props));
|
|
10
|
-
};
|
|
11
|
-
exports.Loader = Loader;
|
|
12
|
-
exports.default = {
|
|
13
|
-
title: 'Fundation/Loader',
|
|
14
|
-
parameters: {
|
|
15
|
-
component: exports.Loader,
|
|
16
|
-
},
|
|
17
|
-
args: {
|
|
18
|
-
color: 'GROWTH_MID',
|
|
19
|
-
size: 'MD',
|
|
20
|
-
},
|
|
21
|
-
argTypes: {
|
|
22
|
-
color: {
|
|
23
|
-
control: {
|
|
24
|
-
type: 'select',
|
|
25
|
-
options: Object.keys(colors_1.COLORS),
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
control: {
|
|
30
|
-
type: 'select',
|
|
31
|
-
options: ['SM', 'MD'],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=Loader.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Loader/Loader.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,mCAAoD;AACpD,mCAAiC;AAI1B,IAAM,MAAM,GAAG,UAAC,KAAY;IACjC,OAAO,8BAAC,eAAe,uBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAFY,QAAA,MAAM,UAElB;AAED,kBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,cAAM;KAClB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,IAAI;KACX;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,eAAM,CAAC;aAC7B;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;aACtB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type DateRange = {
|
|
2
|
-
startDate: Date;
|
|
3
|
-
endDate: Date;
|
|
4
|
-
};
|
|
5
|
-
type Props = {
|
|
6
|
-
value: DateRange;
|
|
7
|
-
onChange: (value: DateRange) => void;
|
|
8
|
-
minDate?: Date;
|
|
9
|
-
maxDate?: Date;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
closeOnSelect?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const MonthPicker: (props: Props) => JSX.Element;
|
|
15
|
-
export default MonthPicker;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import MonthPickerComponent from './MonthPicker';
|
|
4
|
-
type Props = React.ComponentProps<typeof MonthPickerComponent>;
|
|
5
|
-
export declare const MonthPicker: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonthPicker = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var moment_1 = tslib_1.__importDefault(require("moment"));
|
|
7
|
-
var MonthPicker_1 = tslib_1.__importDefault(require("./MonthPicker"));
|
|
8
|
-
var MonthPicker = function (props) {
|
|
9
|
-
var _a = react_1.default.useState({
|
|
10
|
-
startDate: (0, moment_1.default)().startOf('month').toDate(),
|
|
11
|
-
endDate: (0, moment_1.default)().endOf('month').toDate(),
|
|
12
|
-
}), date = _a[0], setDate = _a[1];
|
|
13
|
-
var handleChange = function (value) {
|
|
14
|
-
var _a;
|
|
15
|
-
setDate(value);
|
|
16
|
-
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
17
|
-
};
|
|
18
|
-
return (react_1.default.createElement(MonthPicker_1.default, tslib_1.__assign({}, props, { value: date, onChange: handleChange })));
|
|
19
|
-
};
|
|
20
|
-
exports.MonthPicker = MonthPicker;
|
|
21
|
-
exports.default = {
|
|
22
|
-
title: 'Date Inputs/MonthPicker',
|
|
23
|
-
component: exports.MonthPicker,
|
|
24
|
-
args: {},
|
|
25
|
-
argTypes: {
|
|
26
|
-
value: {
|
|
27
|
-
control: {
|
|
28
|
-
type: 'table',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
onChange: { action: 'changed' },
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=MonthPicker.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MonthPicker.stories.js","sourceRoot":"","sources":["../../../../src/components/react/MonthPicker/MonthPicker.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,0DAA2B;AAG3B,sEAA+D;AAIxD,IAAM,WAAW,GAAG,UAAC,KAAY;IAChC,IAAA,KAAkB,eAAK,CAAC,QAAQ,CAAY;QAChD,SAAS,EAAE,IAAA,gBAAM,GAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE;KAC1C,CAAC,EAHK,IAAI,QAAA,EAAE,OAAO,QAGlB,CAAA;IAEF,IAAM,YAAY,GAAG,UAAC,KAAgB;;QACpC,OAAO,CAAC,KAAK,CAAC,CAAA;QACd,MAAA,KAAK,CAAC,QAAQ,sDAAG,KAAK,CAAC,CAAA;IACzB,CAAC,CAAA;IAED,OAAO,CACL,8BAAC,qBAAoB,uBAAK,KAAK,IAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,IAAI,CACzE,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,WAAW,eAcvB;AAED,kBAAe;IACb,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,mBAAW;IACtB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;aACd;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MonthPicker';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactSelect from 'react-select';
|
|
3
|
-
type SelectProps = {
|
|
4
|
-
shape?: 'square' | 'rounded' | 'line' | 'none';
|
|
5
|
-
fill?: boolean;
|
|
6
|
-
} & React.ComponentProps<typeof ReactSelect>;
|
|
7
|
-
declare const MultiSelect: (props: SelectProps) => JSX.Element;
|
|
8
|
-
export default MultiSelect;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import SelectComponent from './MultiSelect';
|
|
4
|
-
type Props = React.ComponentProps<typeof SelectComponent>;
|
|
5
|
-
export declare const MultiSelect: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MultiSelect = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var MultiSelect_1 = tslib_1.__importDefault(require("./MultiSelect"));
|
|
7
|
-
var options = [
|
|
8
|
-
{ value: 'one', label: 'One' },
|
|
9
|
-
{ value: 'two', label: 'Two' },
|
|
10
|
-
{ value: 'three', label: 'Three' },
|
|
11
|
-
];
|
|
12
|
-
var MultiSelect = function (props) {
|
|
13
|
-
var _a = react_1.default.useState([]), value = _a[0], setValue = _a[1];
|
|
14
|
-
return (react_1.default.createElement(MultiSelect_1.default, tslib_1.__assign({}, props, { options: options, isMulti: true, className: "w-96", value: value, onChange: function (v) { return setValue(v); } })));
|
|
15
|
-
};
|
|
16
|
-
exports.MultiSelect = MultiSelect;
|
|
17
|
-
exports.default = {
|
|
18
|
-
title: 'Inputs/MultiSelect',
|
|
19
|
-
args: {
|
|
20
|
-
placeholder: 'Selecione...',
|
|
21
|
-
shape: 'none',
|
|
22
|
-
fill: false,
|
|
23
|
-
isDisabled: false,
|
|
24
|
-
isLoading: false,
|
|
25
|
-
hideSelectedOptions: false,
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
shape: {
|
|
29
|
-
control: {
|
|
30
|
-
type: 'select',
|
|
31
|
-
options: ['square', 'rounded', 'line', 'none'],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
onChange: { action: 'changed' },
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=MultiSelect.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.stories.js","sourceRoot":"","sources":["../../../../src/components/react/MultiSelect/MultiSelect.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,sEAA2C;AAI3C,IAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAA;AAEM,IAAM,WAAW,GAAG,UAAC,KAAY;IAChC,IAAA,KAAoB,eAAK,CAAC,QAAQ,CAAM,EAAE,CAAC,EAA1C,KAAK,QAAA,EAAE,QAAQ,QAA2B,CAAA;IAEjD,OAAO,CACL,8BAAC,qBAAe,uBACV,KAAK,IACT,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,UAAC,CAAC,IAAK,OAAA,QAAQ,CAAC,CAAC,CAAC,EAAX,CAAW,IAC5B,CACH,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,WAAW,eAavB;AAED,kBAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE;QACJ,WAAW,EAAE,cAAc;QAC3B,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,KAAK;KAC3B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;aAC/C;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './MultiSelect';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const OutlineButton: React.ForwardRefExoticComponent<{
|
|
3
|
-
text: string;
|
|
4
|
-
variant?: "primary" | "light" | "dark" | undefined;
|
|
5
|
-
size?: "SM" | "MD" | undefined;
|
|
6
|
-
shape?: "square" | "round" | undefined;
|
|
7
|
-
leftIcon?: React.ReactNode;
|
|
8
|
-
rightIcon?: React.ReactNode;
|
|
9
|
-
fullWidth?: boolean | undefined;
|
|
10
|
-
loading?: boolean | undefined;
|
|
11
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
-
export default OutlineButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import ButtonComponent from './OutlineButton';
|
|
4
|
-
type Props = React.ComponentProps<typeof ButtonComponent>;
|
|
5
|
-
export declare const OutlineButton: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OutlineButton = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
|
|
7
|
-
var md_1 = require("react-icons/md");
|
|
8
|
-
var OutlineButton_1 = tslib_1.__importDefault(require("./OutlineButton"));
|
|
9
|
-
var OutlineButton_variants_1 = require("./OutlineButton.variants");
|
|
10
|
-
var Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"])));
|
|
11
|
-
var OutlineButton = function (props) {
|
|
12
|
-
return (react_1.default.createElement(Container, null,
|
|
13
|
-
react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props)),
|
|
14
|
-
react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null) })),
|
|
15
|
-
react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { rightIcon: react_1.default.createElement(md_1.MdCheck, null) })),
|
|
16
|
-
react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null), rightIcon: react_1.default.createElement(md_1.MdCheck, null) }))));
|
|
17
|
-
};
|
|
18
|
-
exports.OutlineButton = OutlineButton;
|
|
19
|
-
exports.default = {
|
|
20
|
-
title: 'Buttons/OutlineButton',
|
|
21
|
-
parameters: {
|
|
22
|
-
component: exports.OutlineButton,
|
|
23
|
-
},
|
|
24
|
-
args: {
|
|
25
|
-
text: 'Button',
|
|
26
|
-
variant: 'primary',
|
|
27
|
-
size: 'MD',
|
|
28
|
-
shape: 'square',
|
|
29
|
-
fullWidth: false,
|
|
30
|
-
disabled: false,
|
|
31
|
-
loading: false,
|
|
32
|
-
},
|
|
33
|
-
argTypes: {
|
|
34
|
-
text: {
|
|
35
|
-
control: {
|
|
36
|
-
type: 'text',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
leftIcon: {
|
|
40
|
-
control: {},
|
|
41
|
-
},
|
|
42
|
-
rightIcon: {
|
|
43
|
-
control: {},
|
|
44
|
-
},
|
|
45
|
-
variant: {
|
|
46
|
-
control: {
|
|
47
|
-
type: 'select',
|
|
48
|
-
options: Object.keys(OutlineButton_variants_1.OUTLINE_BUTTON_VARIANTS.color),
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
size: {
|
|
52
|
-
control: {
|
|
53
|
-
type: 'select',
|
|
54
|
-
options: Object.keys(OutlineButton_variants_1.OUTLINE_BUTTON_VARIANTS.size),
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
shape: {
|
|
58
|
-
control: {
|
|
59
|
-
type: 'select',
|
|
60
|
-
options: Object.keys(OutlineButton_variants_1.OUTLINE_BUTTON_VARIANTS.shape),
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
loading: {
|
|
64
|
-
control: {
|
|
65
|
-
type: 'boolean',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
fullWidth: {
|
|
69
|
-
control: {
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
disabled: {
|
|
74
|
-
control: {
|
|
75
|
-
type: 'boolean',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
onClick: {
|
|
79
|
-
control: {
|
|
80
|
-
action: 'clicked',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
var templateObject_1;
|
|
86
|
-
//# sourceMappingURL=OutlineButton.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutlineButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/OutlineButton/OutlineButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,gFAAsC;AAEtC,qCAAwC;AAExC,0EAA6C;AAC7C,mEAAkE;AAIlE,IAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,sKAAA,2FAK3B,IAAA,CAAA;AAEM,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,OAAO,CACL,8BAAC,SAAS;QACR,8BAAC,uBAAe,uBAAK,KAAK,EAAI;QAC9B,8BAAC,uBAAe,uBAAK,KAAK,IAAE,QAAQ,EAAE,8BAAC,YAAO,OAAG,IAAI;QACrD,8BAAC,uBAAe,uBAAK,KAAK,IAAE,SAAS,EAAE,8BAAC,YAAO,OAAG,IAAI;QACtD,8BAAC,uBAAe,uBACV,KAAK,IACT,QAAQ,EAAE,8BAAC,YAAO,OAAG,EACrB,SAAS,EAAE,8BAAC,YAAO,OAAG,IACtB,CACQ,CACb,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,aAAa,iBAazB;AAED,kBAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,UAAU,EAAE;QACV,SAAS,EAAE,qBAAa;KACzB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE;SACZ;QACD,SAAS,EAAE;YACT,OAAO,EAAE,EAAE;SACZ;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,gDAAuB,CAAC,KAAK,CAAC;aACpD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,gDAAuB,CAAC,IAAI,CAAC;aACnD;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,gDAAuB,CAAC,KAAK,CAAC;aACpD;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type StyledButtonProps = {
|
|
2
|
-
padding: string;
|
|
3
|
-
color: string;
|
|
4
|
-
borderRadius: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
fontSize: string;
|
|
7
|
-
gap: string;
|
|
8
|
-
fullWidth: boolean;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
|
|
12
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const OUTLINE_BUTTON_VARIANTS: {
|
|
2
|
-
color: {
|
|
3
|
-
primary: {
|
|
4
|
-
color: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
};
|
|
7
|
-
light: {
|
|
8
|
-
color: string;
|
|
9
|
-
borderColor: string;
|
|
10
|
-
};
|
|
11
|
-
dark: {
|
|
12
|
-
color: string;
|
|
13
|
-
borderColor: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
size: {
|
|
17
|
-
SM: {
|
|
18
|
-
fontSize: string;
|
|
19
|
-
padding: string;
|
|
20
|
-
gap: string;
|
|
21
|
-
};
|
|
22
|
-
MD: {
|
|
23
|
-
fontSize: string;
|
|
24
|
-
padding: string;
|
|
25
|
-
gap: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
shape: {
|
|
29
|
-
square: {
|
|
30
|
-
borderRadius: string;
|
|
31
|
-
};
|
|
32
|
-
round: {
|
|
33
|
-
borderRadius: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './OutlineButton';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DEFAULT_RADIO_VARIANTS } from './RadioInput.variants';
|
|
3
|
-
type RadioInputProps = {
|
|
4
|
-
variant?: keyof typeof DEFAULT_RADIO_VARIANTS.color;
|
|
5
|
-
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
6
|
-
declare const RadioInput: ({ variant, ...props }: RadioInputProps) => JSX.Element;
|
|
7
|
-
export default RadioInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import RadioInputComponent from './RadioInput';
|
|
4
|
-
type Props = React.ComponentProps<typeof RadioInputComponent>;
|
|
5
|
-
export declare const RadioInput: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RadioInput = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var RadioInput_1 = tslib_1.__importDefault(require("./RadioInput"));
|
|
7
|
-
var RadioInput_variants_1 = require("./RadioInput.variants");
|
|
8
|
-
var RadioInput = function (props) {
|
|
9
|
-
return react_1.default.createElement(RadioInput_1.default, tslib_1.__assign({}, props));
|
|
10
|
-
};
|
|
11
|
-
exports.RadioInput = RadioInput;
|
|
12
|
-
exports.default = {
|
|
13
|
-
title: 'Inputs/RadioInput',
|
|
14
|
-
parameters: {
|
|
15
|
-
component: exports.RadioInput,
|
|
16
|
-
},
|
|
17
|
-
args: {
|
|
18
|
-
variant: 'primary',
|
|
19
|
-
size: 'MD',
|
|
20
|
-
checked: false,
|
|
21
|
-
disabled: false,
|
|
22
|
-
},
|
|
23
|
-
argTypes: {
|
|
24
|
-
variant: {
|
|
25
|
-
control: {
|
|
26
|
-
type: 'select',
|
|
27
|
-
options: Object.keys(RadioInput_variants_1.DEFAULT_RADIO_VARIANTS.color),
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
control: {
|
|
32
|
-
type: 'select',
|
|
33
|
-
options: Object.keys(RadioInput_variants_1.DEFAULT_RADIO_VARIANTS.size),
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
checked: {
|
|
37
|
-
control: {
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
disabled: {
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
onCheckedChange: {
|
|
47
|
-
control: {
|
|
48
|
-
action: 'changed',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=RadioInput.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.stories.js","sourceRoot":"","sources":["../../../../src/components/react/RadioInput/RadioInput.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,oEAA8C;AAC9C,6DAA8D;AAIvD,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,OAAO,8BAAC,oBAAmB,uBAAK,KAAK,EAAI,CAAA;AAC3C,CAAC,CAAA;AAFY,QAAA,UAAU,cAEtB;AAED,kBAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,UAAU,EAAE;QACV,SAAS,EAAE,kBAAU;KACtB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,4CAAsB,CAAC,KAAK,CAAC;aACnD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,4CAAsB,CAAC,IAAI,CAAC;aAClD;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,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type StyledRadioInput = {
|
|
2
|
-
indicatorColor: string;
|
|
3
|
-
indicatorHoverColor: string;
|
|
4
|
-
boxColor: string;
|
|
5
|
-
boxHoverColor: string;
|
|
6
|
-
boxActiveColor: string;
|
|
7
|
-
boxActiveHoverColor: string;
|
|
8
|
-
borderColor: string;
|
|
9
|
-
borderHoverColor: string;
|
|
10
|
-
borderActiveColor: string;
|
|
11
|
-
borderActiveHoverColor: string;
|
|
12
|
-
width: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const StyledRadioInput: import("styled-components").StyledComponent<"input", any, StyledRadioInput, never>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_RADIO_VARIANTS: {
|
|
2
|
-
color: {
|
|
3
|
-
primary: {
|
|
4
|
-
indicatorColor: string;
|
|
5
|
-
indicatorHoverColor: string;
|
|
6
|
-
boxColor: string;
|
|
7
|
-
boxHoverColor: string;
|
|
8
|
-
boxActiveColor: string;
|
|
9
|
-
boxActiveHoverColor: string;
|
|
10
|
-
borderColor: string;
|
|
11
|
-
borderHoverColor: string;
|
|
12
|
-
borderActiveColor: string;
|
|
13
|
-
borderActiveHoverColor: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
size: {
|
|
17
|
-
MD: {
|
|
18
|
-
width: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './RadioInput';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactSelect from 'react-select';
|
|
3
|
-
type SelectProps = {
|
|
4
|
-
shape?: 'square' | 'rounded' | 'line' | 'none';
|
|
5
|
-
fill?: boolean;
|
|
6
|
-
} & Omit<React.ComponentProps<typeof ReactSelect>, 'isMulti'>;
|
|
7
|
-
declare const Select: (props: SelectProps) => JSX.Element;
|
|
8
|
-
export default Select;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import SelectComponent from './Select';
|
|
4
|
-
type Props = React.ComponentProps<typeof SelectComponent>;
|
|
5
|
-
export declare const Select: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Select = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
var Select_1 = tslib_1.__importDefault(require("./Select"));
|
|
7
|
-
var options = [
|
|
8
|
-
{ value: 'one', label: 'One' },
|
|
9
|
-
{ value: 'two', label: 'Two' },
|
|
10
|
-
{ value: 'three', label: 'Three' },
|
|
11
|
-
];
|
|
12
|
-
var Select = function (props) {
|
|
13
|
-
return react_1.default.createElement(Select_1.default, tslib_1.__assign({}, props, { options: options, className: "w-96" }));
|
|
14
|
-
};
|
|
15
|
-
exports.Select = Select;
|
|
16
|
-
exports.default = {
|
|
17
|
-
title: 'Inputs/Select',
|
|
18
|
-
args: {
|
|
19
|
-
placeholder: 'Selecione...',
|
|
20
|
-
shape: 'none',
|
|
21
|
-
fill: false,
|
|
22
|
-
isDisabled: false,
|
|
23
|
-
isLoading: false,
|
|
24
|
-
hideSelectedOptions: false,
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
shape: {
|
|
28
|
-
control: {
|
|
29
|
-
type: 'select',
|
|
30
|
-
options: ['square', 'rounded', 'line', 'none'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
onChange: { action: 'changed' },
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=Select.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Select/Select.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,4DAAsC;AAItC,IAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAA;AAEM,IAAM,MAAM,GAAG,UAAC,KAAY;IACjC,OAAO,8BAAC,gBAAe,uBAAK,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,IAAG,CAAA;AAC1E,CAAC,CAAA;AAFY,QAAA,MAAM,UAElB;AAED,kBAAe;IACb,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,cAAc;QAC3B,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,KAAK;KAC3B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;aAC/C;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Select';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as RadixSwitch from '@radix-ui/react-switch';
|
|
3
|
-
import { DEFAULT_SWITCH_VARIANTS } from './Switch.variants';
|
|
4
|
-
type RootSwitchProps = React.ComponentProps<typeof RadixSwitch.Root>;
|
|
5
|
-
type SwitchProps = {
|
|
6
|
-
variant?: keyof typeof DEFAULT_SWITCH_VARIANTS.color;
|
|
7
|
-
size?: keyof typeof DEFAULT_SWITCH_VARIANTS.size;
|
|
8
|
-
} & RootSwitchProps;
|
|
9
|
-
declare const Switch: ({ variant, size, ...props }: SwitchProps) => JSX.Element;
|
|
10
|
-
export default Switch;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
import SwitchComponent from './Switch';
|
|
4
|
-
type Props = React.ComponentProps<typeof SwitchComponent>;
|
|
5
|
-
export declare const Switch: (props: Props) => JSX.Element;
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|