@shopito/design-system 1.0.104 → 1.0.106
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/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/cjs/components/Autocomplete/Autocomplete.js +39 -0
- package/dist/cjs/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/cjs/components/Autocomplete/Autocomplete.stories.d.ts +7 -0
- package/dist/cjs/components/Autocomplete/Autocomplete.stories.js +62 -0
- package/dist/cjs/components/Autocomplete/Autocomplete.stories.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/esm/components/Autocomplete/Autocomplete.js +35 -0
- package/dist/esm/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/esm/components/Autocomplete/Autocomplete.stories.d.ts +7 -0
- package/dist/esm/components/Autocomplete/Autocomplete.stories.js +59 -0
- package/dist/esm/components/Autocomplete/Autocomplete.stories.js.map +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OptionType, SelectProps as TemplateAutocompleteProps } from '../../';
|
|
3
|
+
export type AutocompleteProps = Omit<TemplateAutocompleteProps, 'value' | 'options' | 'autoComplete' | 'onChange'> & {
|
|
4
|
+
value?: string | null;
|
|
5
|
+
autoComplete?: boolean;
|
|
6
|
+
options?: OptionType[];
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
onChange?: (value: string | null) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const Autocomplete: ({ multiple, children, value, options, loading, error, helperText, onChange, ...props }: AutocompleteProps) => React.JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.Autocomplete = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
var material_1 = require("@mui/material");
|
|
7
|
+
var __1 = require("../../");
|
|
8
|
+
var Autocomplete = function (_a) {
|
|
9
|
+
var multiple = _a.multiple, children = _a.children, value = _a.value, options = _a.options, _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, helperText = _a.helperText, onChange = _a.onChange, props = tslib_1.__rest(_a, ["multiple", "children", "value", "options", "loading", "error", "helperText", "onChange"]);
|
|
10
|
+
var handleTextChange = function (e) {
|
|
11
|
+
var option = options === null || options === void 0 ? void 0 : options.find(function (o) { return o.value === e.target.value; });
|
|
12
|
+
if (option) {
|
|
13
|
+
handleSelectOption(null, option);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
if (onChange) {
|
|
17
|
+
onChange(e.target.value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var handleSelectOption = function (_, newValue) {
|
|
22
|
+
if (onChange) {
|
|
23
|
+
if (typeof newValue === 'string' || !newValue) {
|
|
24
|
+
onChange(newValue);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
onChange(newValue.value);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return (react_1["default"].createElement(material_1.Autocomplete, { freeSolo: true,
|
|
32
|
+
// TODO: obnovit !!!
|
|
33
|
+
// {...props}
|
|
34
|
+
autoComplete: props.autoComplete, options: options || [], value: loading ? 'Loading ...' : value, loading: loading, disabled: props.disabled,
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
getOptionLabel: function (option) { return option.label; }, renderInput: function (params) { return (react_1["default"].createElement(__1.TextField, tslib_1.__assign({}, params, props, { label: props.label, required: true, error: error, helperText: helperText, name: props.name, onChange: handleTextChange }))); }, onChange: handleSelectOption }));
|
|
37
|
+
};
|
|
38
|
+
exports.Autocomplete = Autocomplete;
|
|
39
|
+
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":";;;;AAAA,wDAA2C;AAC3C,0CAAqE;AACrE,4BAIgB;AAcT,IAAM,YAAY,GAAG,UAAC,EAUT;IATlB,IAAA,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,OAAO,aAAA,EACP,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,UAAU,gBAAA,EACV,QAAQ,cAAA,EACL,KAAK,sBATmB,0FAU5B,CADS;IAER,IAAM,gBAAgB,GAAG,UAAC,CAAgC;QACxD,IAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,EAA1B,CAA0B,CAAC,CAAC;QAChE,IAAI,MAAM,EAAE;YACV,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAClC;aAAM;YACL,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aAC1B;SACF;IACH,CAAC,CAAC;IAEF,IAAM,kBAAkB,GAAG,UAAC,CAAM,EAAE,QAAoC;QACtE,IAAI,QAAQ,EAAE;YACZ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAC,QAAQ,EAAE;gBAC7C,QAAQ,CAAC,QAAQ,CAAC,CAAC;aACpB;iBAAM;gBACL,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;aAC1B;SACF;IACH,CAAC,CAAC;IAEF,OAAO,CACL,iCAAC,uBAAoB,IACnB,QAAQ;QACR,oBAAoB;QACpB,aAAa;QACb,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,OAAO,EAAE,OAAO,IAAI,EAAE,EACtB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EACtC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,aAAa;QACb,cAAc,EAAE,UAAC,MAAkB,IAAK,OAAA,MAAM,CAAC,KAAK,EAAZ,CAAY,EACpD,WAAW,EAAE,UAAC,MAAW,IAAK,OAAA,CAC5B,iCAAC,aAAS,uBACJ,MAAM,EACN,KAAK,IACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,QACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,EAAE,gBAAgB,IAC1B,CACH,EAX6B,CAW7B,EACD,QAAQ,EAAE,kBAAkB,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AA3DW,QAAA,YAAY,gBA2DvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AutocompleteProps } from './Autocomplete';
|
|
3
|
+
declare const meta: Meta<AutocompleteProps>;
|
|
4
|
+
type Story = StoryObj<AutocompleteProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.WithError = exports.Basic = void 0;
|
|
4
|
+
var Autocomplete_1 = require("./Autocomplete");
|
|
5
|
+
var meta = {
|
|
6
|
+
component: Autocomplete_1.Autocomplete,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered'
|
|
9
|
+
},
|
|
10
|
+
tags: ['autodocs'],
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: {
|
|
13
|
+
options: ['small', 'normal'],
|
|
14
|
+
control: { type: 'radio' }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var options = [
|
|
19
|
+
{
|
|
20
|
+
label: 'Praha',
|
|
21
|
+
value: 'prague'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Brno',
|
|
25
|
+
value: 'brno'
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
exports["default"] = meta;
|
|
29
|
+
exports.Basic = {
|
|
30
|
+
args: {
|
|
31
|
+
label: 'City',
|
|
32
|
+
size: 'small',
|
|
33
|
+
value: 'prague',
|
|
34
|
+
options: options,
|
|
35
|
+
disabled: false,
|
|
36
|
+
required: true,
|
|
37
|
+
helperText: 'Please enter your city',
|
|
38
|
+
onChange: function (value) {
|
|
39
|
+
console.log('onChange', value);
|
|
40
|
+
},
|
|
41
|
+
onTextChange: function (value) {
|
|
42
|
+
console.log('onTextChange', value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.WithError = {
|
|
47
|
+
args: {
|
|
48
|
+
label: 'City',
|
|
49
|
+
size: 'small',
|
|
50
|
+
options: options,
|
|
51
|
+
required: true,
|
|
52
|
+
error: true,
|
|
53
|
+
helperText: 'This field is required',
|
|
54
|
+
onChange: function (value) {
|
|
55
|
+
console.log('onChange', value);
|
|
56
|
+
},
|
|
57
|
+
onTextChange: function (value) {
|
|
58
|
+
console.log('onTextChange', value);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=Autocomplete.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Autocomplete/Autocomplete.stories.tsx"],"names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C1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,CAAC;KACF;CACF,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './components/Autocomplete/Autocomplete';
|
|
1
2
|
import Box from './components/Box';
|
|
2
3
|
import Breadcrumbs, { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
3
4
|
import Button, { ButtonProps } from './components/Button';
|
|
@@ -47,7 +48,7 @@ import { SystemContext } from './contexts/SystemContext';
|
|
|
47
48
|
import useDialog from './hooks/useDialog';
|
|
48
49
|
import useTheme from './hooks/useTheme';
|
|
49
50
|
import { THEMES } from './theme/constants';
|
|
50
|
-
export { Alert, AlertTitle, AppBar,
|
|
51
|
+
export { Alert, AlertTitle, AppBar, Avatar, AvatarGroup, Badge, ButtonGroup, Card, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, Chip, Collapse, Container, Dialog, DialogActions, DialogContent, DialogContentText, Divider, Drawer, Fab, Fade, FilledInput, FormControl, FormControlLabel, FormGroup, FormHelperText, GlobalStyles, Grid, Grow, Hidden, Icon, IconButton, ImageList, ImageListItem, ImageListItemBar, Input, InputAdornment, InputBase, InputLabel, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, Menu, MenuItem, MenuList, MobileStepper, Modal, NativeSelect, OutlinedInput, Pagination, PaginationItem, Paper, Popover, Popper, RadioGroup, Rating, ScopedCssBaseline, Skeleton, Slide, Slider, Snackbar, SnackbarContent, SpeedDial, SpeedDialAction, SpeedDialIcon, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SvgIcon, SwipeableDrawer, Tab, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, TabScrollButton, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, Zoom, } from '@mui/material';
|
|
51
52
|
export { LoadingButton, Masonry, TabContext, TabList, Timeline, TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator, TreeItem, TreeView, } from '@mui/lab';
|
|
52
53
|
export { Box, Breadcrumbs, Button, ButtonAdd, ButtonDelete, ButtonSubmit, ContentHeader, Checkbox, CheckIcon, ChipSelect, ColorField, DatePickerField, DialogTitle, DragDropUpload, DragDropInput, DropdownMenu, FilterContainer, Flex, Form, FormButtons, FormLabel, Layout, Loader, LoaderScreen, MainPaper, Provider, Radio, Root, Sidebar, SidebarBadge, SimpleLayout, Select, SmallButton, Switch, Table, TableColumn, TableActions, Tabs, Tabs2, TabPanel, TextField, TimeField, UploadInput, VerticalTabs, VerticalTabPanel, };
|
|
53
54
|
export { SystemContext, useDialog, useTheme };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.ListItemIcon = exports.ListItemButton = exports.ListItemAvatar = exports.ListItem = exports.List = exports.Link = exports.LinearProgress = exports.InputLabel = exports.InputBase = exports.InputAdornment = exports.Input = exports.ImageListItemBar = exports.ImageListItem = exports.ImageList = exports.IconButton = exports.Icon = exports.Hidden = exports.Grow = exports.Grid = exports.GlobalStyles = exports.FormHelperText = exports.FormGroup = exports.FormControlLabel = exports.FormControl = exports.FilledInput = exports.Fade = exports.Fab = exports.Drawer = exports.Divider = exports.DialogContentText = exports.DialogContent = exports.DialogActions = exports.Dialog = exports.Container = exports.Collapse = exports.Chip = exports.CircularProgress = exports.CardMedia = exports.CardHeader = exports.CardContent = exports.CardActions = exports.Card = exports.ButtonGroup = exports.Badge = exports.AvatarGroup = exports.Avatar = exports.
|
|
4
|
-
exports.Tooltip = exports.Toolbar = exports.ToggleButtonGroup = exports.ToggleButton = exports.TabScrollButton = exports.TableSortLabel = exports.TableRow = exports.TablePagination = exports.TableHead = exports.TableFooter = exports.TableContainer = exports.TableCell = exports.TableBody = exports.Tab = exports.SwipeableDrawer = exports.SvgIcon = exports.Stepper = exports.StepLabel = exports.StepIcon = exports.StepContent = exports.StepConnector = exports.StepButton = exports.Step = exports.Stack = exports.SpeedDialIcon = exports.SpeedDialAction = exports.SpeedDial = exports.SnackbarContent = exports.Snackbar = exports.Slider = exports.Slide = exports.Skeleton = exports.ScopedCssBaseline = exports.Rating = exports.RadioGroup = exports.Popper = exports.Popover = exports.Paper = exports.PaginationItem = exports.Pagination = exports.OutlinedInput = exports.NativeSelect = exports.Modal = exports.MobileStepper = exports.MenuList = exports.MenuItem = exports.Menu = exports.ListSubheader = exports.ListItemText =
|
|
5
|
-
exports.Table = exports.Switch = exports.SmallButton = exports.Select = exports.SimpleLayout = exports.SidebarBadge = exports.Sidebar = exports.Root = exports.Radio = exports.Provider = exports.MainPaper = exports.LoaderScreen = exports.Loader = exports.Layout = exports.FormLabel = exports.FormButtons = exports.Form = exports.Flex = exports.FilterContainer = exports.DropdownMenu = exports.DragDropInput = exports.DragDropUpload = exports.DialogTitle = exports.DatePickerField = exports.ColorField = exports.ChipSelect = exports.CheckIcon = exports.Checkbox = exports.ContentHeader = exports.ButtonSubmit = exports.ButtonDelete = exports.ButtonAdd = exports.Button = exports.Breadcrumbs = exports.Box = exports.TreeView = exports.TreeItem = exports.TimelineSeparator = exports.TimelineOppositeContent = exports.TimelineItem = exports.TimelineDot = exports.TimelineContent = exports.TimelineConnector = exports.Timeline = exports.TabList = exports.TabContext = exports.Masonry = exports.LoadingButton = exports.Zoom =
|
|
6
|
-
exports.THEMES = exports.NotFound = exports.useTheme = exports.useDialog = exports.SystemContext = exports.VerticalTabPanel = exports.VerticalTabs = exports.UploadInput = exports.TimeField = exports.TextField = exports.TabPanel = exports.Tabs2 = exports.Tabs = exports.TableActions =
|
|
3
|
+
exports.ListItemSecondaryAction = exports.ListItemIcon = exports.ListItemButton = exports.ListItemAvatar = exports.ListItem = exports.List = exports.Link = exports.LinearProgress = exports.InputLabel = exports.InputBase = exports.InputAdornment = exports.Input = exports.ImageListItemBar = exports.ImageListItem = exports.ImageList = exports.IconButton = exports.Icon = exports.Hidden = exports.Grow = exports.Grid = exports.GlobalStyles = exports.FormHelperText = exports.FormGroup = exports.FormControlLabel = exports.FormControl = exports.FilledInput = exports.Fade = exports.Fab = exports.Drawer = exports.Divider = exports.DialogContentText = exports.DialogContent = exports.DialogActions = exports.Dialog = exports.Container = exports.Collapse = exports.Chip = exports.CircularProgress = exports.CardMedia = exports.CardHeader = exports.CardContent = exports.CardActions = exports.Card = exports.ButtonGroup = exports.Badge = exports.AvatarGroup = exports.Avatar = exports.AppBar = exports.AlertTitle = exports.Alert = void 0;
|
|
4
|
+
exports.Typography = exports.Tooltip = exports.Toolbar = exports.ToggleButtonGroup = exports.ToggleButton = exports.TabScrollButton = exports.TableSortLabel = exports.TableRow = exports.TablePagination = exports.TableHead = exports.TableFooter = exports.TableContainer = exports.TableCell = exports.TableBody = exports.Tab = exports.SwipeableDrawer = exports.SvgIcon = exports.Stepper = exports.StepLabel = exports.StepIcon = exports.StepContent = exports.StepConnector = exports.StepButton = exports.Step = exports.Stack = exports.SpeedDialIcon = exports.SpeedDialAction = exports.SpeedDial = exports.SnackbarContent = exports.Snackbar = exports.Slider = exports.Slide = exports.Skeleton = exports.ScopedCssBaseline = exports.Rating = exports.RadioGroup = exports.Popper = exports.Popover = exports.Paper = exports.PaginationItem = exports.Pagination = exports.OutlinedInput = exports.NativeSelect = exports.Modal = exports.MobileStepper = exports.MenuList = exports.MenuItem = exports.Menu = exports.ListSubheader = exports.ListItemText = void 0;
|
|
5
|
+
exports.TableColumn = exports.Table = exports.Switch = exports.SmallButton = exports.Select = exports.SimpleLayout = exports.SidebarBadge = exports.Sidebar = exports.Root = exports.Radio = exports.Provider = exports.MainPaper = exports.LoaderScreen = exports.Loader = exports.Layout = exports.FormLabel = exports.FormButtons = exports.Form = exports.Flex = exports.FilterContainer = exports.DropdownMenu = exports.DragDropInput = exports.DragDropUpload = exports.DialogTitle = exports.DatePickerField = exports.ColorField = exports.ChipSelect = exports.CheckIcon = exports.Checkbox = exports.ContentHeader = exports.ButtonSubmit = exports.ButtonDelete = exports.ButtonAdd = exports.Button = exports.Breadcrumbs = exports.Box = exports.TreeView = exports.TreeItem = exports.TimelineSeparator = exports.TimelineOppositeContent = exports.TimelineItem = exports.TimelineDot = exports.TimelineContent = exports.TimelineConnector = exports.Timeline = exports.TabList = exports.TabContext = exports.Masonry = exports.LoadingButton = exports.Zoom = void 0;
|
|
6
|
+
exports.THEMES = exports.NotFound = exports.useTheme = exports.useDialog = exports.SystemContext = exports.VerticalTabPanel = exports.VerticalTabs = exports.UploadInput = exports.TimeField = exports.TextField = exports.TabPanel = exports.Tabs2 = exports.Tabs = exports.TableActions = void 0;
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./components/Autocomplete/Autocomplete"), exports);
|
|
8
9
|
var Box_1 = tslib_1.__importDefault(require("./components/Box"));
|
|
9
10
|
exports.Box = Box_1["default"];
|
|
10
11
|
var Breadcrumbs_1 = tslib_1.__importDefault(require("./components/Breadcrumbs"));
|
|
@@ -107,7 +108,6 @@ var material_1 = require("@mui/material");
|
|
|
107
108
|
tslib_1.__createBinding(exports, material_1, "Alert");
|
|
108
109
|
tslib_1.__createBinding(exports, material_1, "AlertTitle");
|
|
109
110
|
tslib_1.__createBinding(exports, material_1, "AppBar");
|
|
110
|
-
tslib_1.__createBinding(exports, material_1, "Autocomplete");
|
|
111
111
|
tslib_1.__createBinding(exports, material_1, "Avatar");
|
|
112
112
|
tslib_1.__createBinding(exports, material_1, "AvatarGroup");
|
|
113
113
|
tslib_1.__createBinding(exports, material_1, "Badge");
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"https://my-website.com/debug/source/","sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,iEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot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AAO;AACP,sDAAU;AACV,mDAAO;AACP,oDAAQ;AACR,6DAAiB;AACjB,2DAAe;AACf,uDAAW;AACX,wDAAY;AACZ,mEAAuB;AACvB,6DAAiB;AACjB,oDAAQ;AACR,oDAAQ;AAmFV,yDAA+B;AAE/B,uEAA6C;AAC7C,2DAAiC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OptionType, SelectProps as TemplateAutocompleteProps } from '../../';
|
|
3
|
+
export type AutocompleteProps = Omit<TemplateAutocompleteProps, 'value' | 'options' | 'autoComplete' | 'onChange'> & {
|
|
4
|
+
value?: string | null;
|
|
5
|
+
autoComplete?: boolean;
|
|
6
|
+
options?: OptionType[];
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
onChange?: (value: string | null) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const Autocomplete: ({ multiple, children, value, options, loading, error, helperText, onChange, ...props }: AutocompleteProps) => React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Autocomplete as TemplateAutocomplete } from '@mui/material';
|
|
4
|
+
import { TextField, } from '../../';
|
|
5
|
+
export var Autocomplete = function (_a) {
|
|
6
|
+
var multiple = _a.multiple, children = _a.children, value = _a.value, options = _a.options, _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, helperText = _a.helperText, onChange = _a.onChange, props = __rest(_a, ["multiple", "children", "value", "options", "loading", "error", "helperText", "onChange"]);
|
|
7
|
+
var handleTextChange = function (e) {
|
|
8
|
+
var option = options === null || options === void 0 ? void 0 : options.find(function (o) { return o.value === e.target.value; });
|
|
9
|
+
if (option) {
|
|
10
|
+
handleSelectOption(null, option);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (onChange) {
|
|
14
|
+
onChange(e.target.value);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var handleSelectOption = function (_, newValue) {
|
|
19
|
+
if (onChange) {
|
|
20
|
+
if (typeof newValue === 'string' || !newValue) {
|
|
21
|
+
onChange(newValue);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
onChange(newValue.value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return (React.createElement(TemplateAutocomplete, { freeSolo: true,
|
|
29
|
+
// TODO: obnovit !!!
|
|
30
|
+
// {...props}
|
|
31
|
+
autoComplete: props.autoComplete, options: options || [], value: loading ? 'Loading ...' : value, loading: loading, disabled: props.disabled,
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
getOptionLabel: function (option) { return option.label; }, renderInput: function (params) { return (React.createElement(TextField, __assign({}, params, props, { label: props.label, required: true, error: error, helperText: helperText, name: props.name, onChange: handleTextChange }))); }, onChange: handleSelectOption }));
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAGL,SAAS,GACV,MAAM,QAAQ,CAAC;AAchB,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,EAUT;IATlB,IAAA,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,OAAO,aAAA,EACP,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACb,UAAU,gBAAA,EACV,QAAQ,cAAA,EACL,KAAK,cATmB,0FAU5B,CADS;IAER,IAAM,gBAAgB,GAAG,UAAC,CAAgC;QAC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ChB,QAAQ,EAAE,gBAAgB,IAC1B,CACH,EAX6B,CAW7B,EACD,QAAQ,EAAE,kBAAkB,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AutocompleteProps } from './Autocomplete';
|
|
3
|
+
declare const meta: Meta<AutocompleteProps>;
|
|
4
|
+
type Story = StoryObj<AutocompleteProps>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const WithError: Story;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Autocomplete } from './Autocomplete';
|
|
2
|
+
var meta = {
|
|
3
|
+
component: Autocomplete,
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: 'centered'
|
|
6
|
+
},
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
options: ['small', 'normal'],
|
|
11
|
+
control: { type: 'radio' }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var options = [
|
|
16
|
+
{
|
|
17
|
+
label: 'Praha',
|
|
18
|
+
value: 'prague'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Brno',
|
|
22
|
+
value: 'brno'
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
export default meta;
|
|
26
|
+
export var Basic = {
|
|
27
|
+
args: {
|
|
28
|
+
label: 'City',
|
|
29
|
+
size: 'small',
|
|
30
|
+
value: 'prague',
|
|
31
|
+
options: options,
|
|
32
|
+
disabled: false,
|
|
33
|
+
required: true,
|
|
34
|
+
helperText: 'Please enter your city',
|
|
35
|
+
onChange: function (value) {
|
|
36
|
+
console.log('onChange', value);
|
|
37
|
+
},
|
|
38
|
+
onTextChange: function (value) {
|
|
39
|
+
console.log('onTextChange', value);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export var WithError = {
|
|
44
|
+
args: {
|
|
45
|
+
label: 'City',
|
|
46
|
+
size: 'small',
|
|
47
|
+
options: options,
|
|
48
|
+
required: true,
|
|
49
|
+
error: true,
|
|
50
|
+
helperText: 'This field is required',
|
|
51
|
+
onChange: function (value) {
|
|
52
|
+
console.log('onChange', value);
|
|
53
|
+
},
|
|
54
|
+
onTextChange: function (value) {
|
|
55
|
+
console.log('onTextChange', value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=Autocomplete.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.js","sourceRoot":"https://my-website.com/debug/source/","sources":["components/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,gBAAgB,CAAC;AAEjE,IAAM,IAAI,GAA4B;IACpC,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;CACF,CAAC;AAIF,IAAM,OAAO,GAAG;IACd;QACE,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,MAAM;KACd;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,MAAM,CAAC,IAAM,KAAK,GAAU;IAC1B,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,QAAQ;QACf,OAAO,SAAA;QACP,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,wBAAwB;QACpC,QAAQ,EAAE,UAAC,KAAa;YACtB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACjC,CAAC;QACD,YAAY,EAAE,UAAC,KAAa;YAC1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,CAAC;KACF;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,OAAO;QACb,OAAO,SAAA;QACP,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,wBAAwB;QACpC,QAAQ,EAAE,UAAC,KAAa;YACtB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACjC,CAAC;QACD,YAAY,EAAE,UAAC,KAAa;YAC1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,CAAC;KACF;CACF,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './components/Autocomplete/Autocomplete';
|
|
1
2
|
import Box from './components/Box';
|
|
2
3
|
import Breadcrumbs, { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
3
4
|
import Button, { ButtonProps } from './components/Button';
|
|
@@ -47,7 +48,7 @@ import { SystemContext } from './contexts/SystemContext';
|
|
|
47
48
|
import useDialog from './hooks/useDialog';
|
|
48
49
|
import useTheme from './hooks/useTheme';
|
|
49
50
|
import { THEMES } from './theme/constants';
|
|
50
|
-
export { Alert, AlertTitle, AppBar,
|
|
51
|
+
export { Alert, AlertTitle, AppBar, Avatar, AvatarGroup, Badge, ButtonGroup, Card, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, Chip, Collapse, Container, Dialog, DialogActions, DialogContent, DialogContentText, Divider, Drawer, Fab, Fade, FilledInput, FormControl, FormControlLabel, FormGroup, FormHelperText, GlobalStyles, Grid, Grow, Hidden, Icon, IconButton, ImageList, ImageListItem, ImageListItemBar, Input, InputAdornment, InputBase, InputLabel, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, Menu, MenuItem, MenuList, MobileStepper, Modal, NativeSelect, OutlinedInput, Pagination, PaginationItem, Paper, Popover, Popper, RadioGroup, Rating, ScopedCssBaseline, Skeleton, Slide, Slider, Snackbar, SnackbarContent, SpeedDial, SpeedDialAction, SpeedDialIcon, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SvgIcon, SwipeableDrawer, Tab, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, TabScrollButton, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, Zoom, } from '@mui/material';
|
|
51
52
|
export { LoadingButton, Masonry, TabContext, TabList, Timeline, TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator, TreeItem, TreeView, } from '@mui/lab';
|
|
52
53
|
export { Box, Breadcrumbs, Button, ButtonAdd, ButtonDelete, ButtonSubmit, ContentHeader, Checkbox, CheckIcon, ChipSelect, ColorField, DatePickerField, DialogTitle, DragDropUpload, DragDropInput, DropdownMenu, FilterContainer, Flex, Form, FormButtons, FormLabel, Layout, Loader, LoaderScreen, MainPaper, Provider, Radio, Root, Sidebar, SidebarBadge, SimpleLayout, Select, SmallButton, Switch, Table, TableColumn, TableActions, Tabs, Tabs2, TabPanel, TextField, TimeField, UploadInput, VerticalTabs, VerticalTabPanel, };
|
|
53
54
|
export { SystemContext, useDialog, useTheme };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './components/Autocomplete/Autocomplete';
|
|
1
2
|
import Box from './components/Box';
|
|
2
3
|
import Breadcrumbs from './components/Breadcrumbs';
|
|
3
4
|
import Button from './components/Button';
|
|
@@ -46,7 +47,7 @@ import { SystemContext } from './contexts/SystemContext';
|
|
|
46
47
|
import useDialog from './hooks/useDialog';
|
|
47
48
|
import useTheme from './hooks/useTheme';
|
|
48
49
|
import { THEMES } from './theme/constants';
|
|
49
|
-
export { Alert, AlertTitle, AppBar,
|
|
50
|
+
export { Alert, AlertTitle, AppBar, Avatar, AvatarGroup, Badge, ButtonGroup, Card, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, Chip, Collapse, Container, Dialog, DialogActions, DialogContent, DialogContentText, Divider, Drawer, Fab, Fade, FilledInput, FormControl, FormControlLabel, FormGroup, FormHelperText, GlobalStyles, Grid, Grow, Hidden, Icon, IconButton, ImageList, ImageListItem, ImageListItemBar, Input, InputAdornment, InputBase, InputLabel, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListItemText, ListSubheader, Menu, MenuItem, MenuList, MobileStepper, Modal, NativeSelect, OutlinedInput, Pagination, PaginationItem, Paper, Popover, Popper, RadioGroup, Rating, ScopedCssBaseline, Skeleton, Slide, Slider, Snackbar, SnackbarContent, SpeedDial, SpeedDialAction, SpeedDialIcon, Stack, Step, StepButton, StepConnector, StepContent, StepIcon, StepLabel, Stepper, SvgIcon, SwipeableDrawer, Tab, TableBody, TableCell, TableContainer, TableFooter, TableHead, TablePagination, TableRow, TableSortLabel, TabScrollButton, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, Zoom, } from '@mui/material';
|
|
50
51
|
export { LoadingButton, Masonry, TabContext, TabList, Timeline, TimelineConnector, TimelineContent, TimelineDot, TimelineItem, TimelineOppositeContent, TimelineSeparator, TreeItem, TreeView, } from '@mui/lab';
|
|
51
52
|
// Chart.register(...registerables);
|
|
52
53
|
export { Box, Breadcrumbs, Button, ButtonAdd, ButtonDelete, ButtonSubmit, ContentHeader, Checkbox, CheckIcon, ChipSelect, ColorField, DatePickerField, DialogTitle, DragDropUpload, DragDropInput, DropdownMenu, FilterContainer, Flex, Form, FormButtons, FormLabel, Layout, Loader, LoaderScreen, MainPaper, Provider, Radio, Root, Sidebar, SidebarBadge, SimpleLayout, Select, SmallButton, Switch, Table, TableColumn, TableActions, Tabs, Tabs2, TabPanel, TextField, TimeField, UploadInput, VerticalTabs, VerticalTabPanel, };
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"https://my-website.com/debug/source/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,WAAiC,MAAM,0BAA0B,CAAC;AACzE,OAAO,MAAuB,MAAM,qBAAqB,CAAC;AAC1D,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,QAA2B,MAAM,uBAAuB,CAAC;AAChE,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,OAAO,UAEN,MAAM,oCAAoC,CAAC;AAC5C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,eAEN,MAAM,8CAA8C,CAAC;AACtD,OAAO,WAAiC,MAAM,0BAA0B,CAAC;AACzE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,IAAmB,MAAM,mBAAmB,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,MAAuB,MAAM,qBAAqB,CAAC;AAC1D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,YAAY,MAAM,2BAA2B,CAAC;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