ish-ui 1.0.21 → 1.0.23

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.
@@ -6,5 +6,5 @@ import { EditInPlaceDateTimeFieldProps, FieldInputProps, FieldMetaProps } from '
6
6
  interface InputTypes {
7
7
  type?: 'date' | 'time' | 'datetime';
8
8
  }
9
- declare function EditInPlaceDateTimeField<IP extends FieldInputProps, MP extends FieldMetaProps>({ type, formatDate, formatTime, formatDateTime, timezone, input, fieldClasses, inline, meta: { error, invalid, active, dispatch }, labelAdornment, label, disabled, formatValue, className, onKeyPress, placeholder, persistValue, warning, defaultValue, rightAligned, processActionId }: EditInPlaceDateTimeFieldProps<IP, MP> & InputTypes): React.JSX.Element;
9
+ declare function EditInPlaceDateTimeField<IP extends FieldInputProps, MP extends FieldMetaProps>({ type, formatDate, formatTime, formatDateTime, timezone, input, fieldClasses, inline, meta: { error, invalid, active, dispatch }, labelAdornment, label, disabled, formatValue, className, onKeyPress, placeholder, persistValue, warning, defaultValue, rightAligned, processActionId, variant, }: EditInPlaceDateTimeFieldProps<IP, MP> & InputTypes): React.JSX.Element;
10
10
  export default EditInPlaceDateTimeField;
@@ -37,7 +37,7 @@ const useStyles = makeAppStyles(theme => ({
37
37
  display: 'inline-block',
38
38
  }
39
39
  }));
40
- function EditInPlaceDateTimeField({ type, formatDate, formatTime, formatDateTime, timezone, input, fieldClasses = {}, inline, meta: { error, invalid, active, dispatch }, labelAdornment, label, disabled, formatValue, className, onKeyPress, placeholder = 'No value', persistValue, warning, defaultValue, rightAligned, processActionId }) {
40
+ function EditInPlaceDateTimeField({ type, formatDate, formatTime, formatDateTime, timezone, input, fieldClasses = {}, inline, meta: { error, invalid, active, dispatch }, labelAdornment, label, disabled, formatValue, className, onKeyPress, placeholder = 'No value', persistValue, warning, defaultValue, rightAligned, processActionId, variant, }) {
41
41
  const [textValue, setTextValue] = useState(defaultValue || '');
42
42
  const [pickerOpened, setPickerOpened] = useState(false);
43
43
  const inputNode = useRef(null);
@@ -169,7 +169,7 @@ function EditInPlaceDateTimeField({ type, formatDate, formatTime, formatDateTime
169
169
  'pointer-events-none': disabled
170
170
  }) },
171
171
  React.createElement("div", { id: input.name, className: "w-100" },
172
- React.createElement(DateTimeField, { type: type, toolbarTitle: label, open: pickerOpened, value: dateValue, onChange: onChange, onClose: onClose, renderInput: () => (React.createElement(EditInPlaceFieldBase, { name: input.name, value: textValue, error: error, invalid: invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, rightAligned: rightAligned, shrink: Boolean(label || input.value), disabled: disabled, labelAdornment: labelAdornment, placeholder: placeholder, editIcon: React.createElement(IconButton, { tabIndex: -1, onClick: openPicker, classes: {
172
+ React.createElement(DateTimeField, { type: type, toolbarTitle: label, open: pickerOpened, value: dateValue, onChange: onChange, onClose: onClose, renderInput: () => (React.createElement(EditInPlaceFieldBase, { name: input.name, value: textValue, variant: variant, error: error, invalid: invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, rightAligned: rightAligned, shrink: Boolean(label || input.value), disabled: disabled, labelAdornment: labelAdornment, placeholder: placeholder, editIcon: React.createElement(IconButton, { tabIndex: -1, onClick: openPicker, classes: {
173
173
  root: clsx(fieldClasses.text, inline ? classes.inlinePickerButton : classes.pickerButton)
174
174
  } }, type === 'time'
175
175
  ? React.createElement(QueryBuilder, { fontSize: "inherit", color: "inherit" })
@@ -6,5 +6,5 @@ import { EditInPlaceFieldProps, FieldInputProps, FieldMetaProps } from '../model
6
6
  interface InputTypes {
7
7
  type?: 'password' | 'number' | 'text';
8
8
  }
9
- declare function EditInPlaceField<IP extends FieldInputProps, MP extends FieldMetaProps>({ inputRef, input, label, maxLength, disabled, min, max, step, className, onKeyPress, labelAdornment, truncateLines, rightAligned, defaultValue, onKeyDown, multiline, inline, warning, preformatDisplayValue, type, meta: { error, invalid }, placeholder, fieldClasses, InputProps }: EditInPlaceFieldProps<IP, MP> & InputTypes): React.JSX.Element;
9
+ declare function EditInPlaceField<IP extends FieldInputProps, MP extends FieldMetaProps>({ inputRef, input, label, maxLength, disabled, min, max, step, className, onKeyPress, labelAdornment, truncateLines, rightAligned, defaultValue, onKeyDown, multiline, inline, warning, preformatDisplayValue, type, meta: { error, invalid }, placeholder, fieldClasses, InputProps, editIcon, variant }: EditInPlaceFieldProps<IP, MP> & InputTypes): React.JSX.Element;
10
10
  export default EditInPlaceField;
@@ -31,7 +31,7 @@ const useStyles = makeAppStyles(theme => ({
31
31
  opacity: 0.5
32
32
  }
33
33
  }));
34
- function EditInPlaceField({ inputRef, input, label, maxLength, disabled, min, max, step, className, onKeyPress, labelAdornment, truncateLines, rightAligned, defaultValue, onKeyDown, multiline, inline, warning, preformatDisplayValue, type = 'text', meta: { error, invalid }, placeholder = 'No value', fieldClasses = {}, InputProps = {} }) {
34
+ function EditInPlaceField({ inputRef, input, label, maxLength, disabled, min, max, step, className, onKeyPress, labelAdornment, truncateLines, rightAligned, defaultValue, onKeyDown, multiline, inline, warning, preformatDisplayValue, type = 'text', meta: { error, invalid }, placeholder = 'No value', fieldClasses = {}, InputProps = {}, editIcon, variant }) {
35
35
  const classes = useStyles();
36
36
  const onBlur = () => {
37
37
  (input === null || input === void 0 ? void 0 : input.onBlur) && input.onBlur(input.value);
@@ -43,7 +43,7 @@ function EditInPlaceField({ inputRef, input, label, maxLength, disabled, min, ma
43
43
  [classes.rightAligned]: rightAligned,
44
44
  [classes.inlineContainer]: inline
45
45
  }) },
46
- React.createElement(EditInPlaceFieldBase, { name: input.name, value: inputValue, error: error, invalid: invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, endAdornmentClass: classes.endAdornment, rightAligned: rightAligned, shrink: Boolean(label || input.value), disabled: disabled, labelAdornment: labelAdornment, placeholder: placeholder, hideArrows: ['percentage', 'number'].includes(type), editIcon: React.createElement(Edit, { fontSize: "inherit" }), InputProps: Object.assign({ multiline,
46
+ React.createElement(EditInPlaceFieldBase, { name: input.name, value: inputValue, variant: variant, error: error, invalid: invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, endAdornmentClass: classes.endAdornment, rightAligned: rightAligned, shrink: Boolean(label || input.value), disabled: disabled, labelAdornment: labelAdornment, placeholder: placeholder, hideArrows: ['percentage', 'number'].includes(type), editIcon: editIcon === undefined ? React.createElement(Edit, { fontSize: "inherit" }) : editIcon, InputProps: Object.assign({ multiline,
47
47
  onKeyPress,
48
48
  onBlur, onFocus: input.onFocus, maxRows: truncateLines, inputProps: {
49
49
  ref: inputRef,
@@ -89,6 +89,10 @@ const EditInPlaceFieldBase = ({ value, invalid, className, inline, label, fieldC
89
89
  return OutlinedInput;
90
90
  }
91
91
  }, [variant]);
92
+ console.log('!!!!!!', {
93
+ label,
94
+ InputProps
95
+ });
92
96
  return (React.createElement(FormControl, { fullWidth: true, error: invalid, variant: variant, margin: "none", className: clsx(className, classes.inputWrapper) },
93
97
  label && (React.createElement(InputLabel, { classes: {
94
98
  root: clsx(fieldClasses.label, 'd-flex', 'overflow-visible', rightAligned && classes.rightLabel),
@@ -96,7 +100,7 @@ const EditInPlaceFieldBase = ({ value, invalid, className, inline, label, fieldC
96
100
  React.createElement("span", { className: classes.label }, label),
97
101
  labelAdornment)),
98
102
  CustomInput ||
99
- React.createElement(InputComp, Object.assign({}, InputProps || {}, { label: label, inputRef: inputNode, inputProps: Object.assign({ placeholder,
103
+ React.createElement(InputComp, Object.assign({}, InputProps || {}, { inputRef: inputNode, inputProps: Object.assign({ placeholder,
100
104
  disabled, className: clsx(fieldClasses.text, {
101
105
  [classes.inlineInput]: inline,
102
106
  [classes.readonly]: disabled,
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { EditInPlaceSearchSelectFieldProps, FieldInputProps, FieldMetaProps } from '../model';
3
- declare function EditInPlaceSearchSelect<InputProps extends FieldInputProps, MetaProps extends FieldMetaProps>({ label, disabled, className, labelAdornment, inline, loading, creatable, allowEmpty, fieldClasses, selectAdornment, selectValueMark, selectLabelMark, selectLabelCondition, selectFilterCondition, defaultValue, disableUnderline, items, rowHeight, remoteRowCount, loadMoreRows, onCreateOption, itemRenderer, onInputChange, onClearRows, onInnerValueChange, hideMenuOnNoResults, hideEditIcon, remoteData, createLabel, returnType, alwaysDisplayDefault, valueRenderer, popperAnchor, input, meta: { error, invalid }, placeholder, sort, sortPropKey, inputRef, warning, multiple, rightAligned, hasError, categoryKey }: EditInPlaceSearchSelectFieldProps<InputProps, MetaProps>): React.JSX.Element;
3
+ declare function EditInPlaceSearchSelect<InputProps extends FieldInputProps, MetaProps extends FieldMetaProps>({ label, disabled, className, labelAdornment, inline, loading, creatable, allowEmpty, fieldClasses, selectAdornment, selectValueMark, selectLabelMark, selectLabelCondition, selectFilterCondition, defaultValue, disableUnderline, items, rowHeight, remoteRowCount, loadMoreRows, onCreateOption, itemRenderer, onInputChange, onClearRows, onInnerValueChange, hideMenuOnNoResults, hideEditIcon, remoteData, createLabel, returnType, alwaysDisplayDefault, valueRenderer, popperAnchor, input, meta: { error, invalid }, placeholder, sort, sortPropKey, inputRef, warning, multiple, rightAligned, hasError, categoryKey, editIcon, variant }: EditInPlaceSearchSelectFieldProps<InputProps, MetaProps>): React.JSX.Element;
4
4
  export default EditInPlaceSearchSelect;
@@ -50,7 +50,7 @@ const PopperAdapter = React.memo(params => {
50
50
  // @ts-ignore
51
51
  : React.createElement(Popper, Object.assign({}, params, { style: inline ? null : params.style })));
52
52
  });
53
- function EditInPlaceSearchSelect({ label, disabled, className, labelAdornment, inline, loading, creatable, allowEmpty, fieldClasses = {}, selectAdornment, selectValueMark = 'value', selectLabelMark = 'label', selectLabelCondition, selectFilterCondition, defaultValue, disableUnderline, items = [], rowHeight, remoteRowCount, loadMoreRows, onCreateOption, itemRenderer, onInputChange, onClearRows, onInnerValueChange, hideMenuOnNoResults, hideEditIcon, remoteData, createLabel, returnType = 'string', alwaysDisplayDefault, valueRenderer, popperAnchor, input, meta: { error, invalid }, placeholder, sort, sortPropKey, inputRef, warning, multiple, rightAligned, hasError, categoryKey }) {
53
+ function EditInPlaceSearchSelect({ label, disabled, className, labelAdornment, inline, loading, creatable, allowEmpty, fieldClasses = {}, selectAdornment, selectValueMark = 'value', selectLabelMark = 'label', selectLabelCondition, selectFilterCondition, defaultValue, disableUnderline, items = [], rowHeight, remoteRowCount, loadMoreRows, onCreateOption, itemRenderer, onInputChange, onClearRows, onInnerValueChange, hideMenuOnNoResults, hideEditIcon, remoteData, createLabel, returnType = 'string', alwaysDisplayDefault, valueRenderer, popperAnchor, input, meta: { error, invalid }, placeholder, sort, sortPropKey, inputRef, warning, multiple, rightAligned, hasError, categoryKey, editIcon, variant }) {
54
54
  const classes = useStyles();
55
55
  const sortedItems = useMemo(() => {
56
56
  const sorted = items && (sort
@@ -265,8 +265,8 @@ function EditInPlaceSearchSelect({ label, disabled, className, labelAdornment, i
265
265
  : (React.createElement("div", { className: classes.inputEndAdornment },
266
266
  allowEmpty && input.value && (React.createElement(IconButton, { size: "small", onClick: onClear, color: "inherit" },
267
267
  React.createElement(CloseIcon, { fontSize: "inherit" }))),
268
- React.createElement(IconButton, { size: "small", color: "inherit", className: clsx(classes.expandIcon, 'pl-0 pr-0'), disableRipple: true },
269
- React.createElement(ExpandMore, { className: inline && 'fsInherit' }))))), [disabled, loading, inline, allowEmpty, input.value]);
268
+ editIcon === undefined ? React.createElement(IconButton, { size: "small", color: "inherit", className: clsx(classes.expandIcon, 'pl-0 pr-0'), disableRipple: true },
269
+ React.createElement(ExpandMore, { className: inline && 'fsInherit' })) : editIcon))), [disabled, loading, inline, allowEmpty, input.value]);
270
270
  const inputValue = useMemo(() => {
271
271
  if (multiple) {
272
272
  return (input.value || []).map(v => sortedItems.find(s => s[selectValueMark] === v));
@@ -301,7 +301,7 @@ function EditInPlaceSearchSelect({ label, disabled, className, labelAdornment, i
301
301
  groupUl: 'm-0'
302
302
  }, groupBy: categoryKey && (option => option[categoryKey]), renderOption: renderOption, getOptionLabel: getOptionLabel, filterOptions: filterItems, ListboxComponent: inline || categoryKey ? null : ListBoxAdapter, PopperComponent: categoryKey ? null : PopperAdapter, renderInput: (_a) => {
303
303
  var { InputLabelProps, InputProps, inputProps } = _a, params = __rest(_a, ["InputLabelProps", "InputProps", "inputProps"]);
304
- return (React.createElement(EditInPlaceFieldBase, Object.assign({}, params, { name: input.name, value: displayedValue, error: error, invalid: hasError || invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, endAdornmentClass: classes.selectAdornment, rightAligned: rightAligned, shrink: Boolean(label || input.value), labelAdornment: labelAdornment, placeholder: renderedPlaceholder, editIcon: !hideEditIcon && renderIcons, InputProps: Object.assign(Object.assign({}, InputProps), { onChange: handleInputChange, onFocus: edit, onClick: onEditButtonFocus, onBlur,
304
+ return (React.createElement(EditInPlaceFieldBase, Object.assign({}, params, { variant: variant, name: input.name, value: displayedValue, error: error, invalid: hasError || invalid, inline: inline, label: label, warning: warning, fieldClasses: fieldClasses, endAdornmentClass: classes.selectAdornment, rightAligned: rightAligned, shrink: Boolean(label || input.value), labelAdornment: labelAdornment, placeholder: renderedPlaceholder, editIcon: !hideEditIcon && renderIcons, InputProps: Object.assign(Object.assign({}, InputProps), { onChange: handleInputChange, onFocus: edit, onClick: onEditButtonFocus, onBlur,
305
305
  disableUnderline, classes: {
306
306
  underline: fieldClasses.underline,
307
307
  input: clsx(disabled && classes.readonly, fieldClasses.text),
@@ -3,3 +3,4 @@ export type StringKeyObject<V = any> = {
3
3
  };
4
4
  export type StringKeyAndValueObject = StringKeyObject<string>;
5
5
  export type StringValueType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
6
+ export type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any ? A : never;
@@ -4,6 +4,7 @@ import { InputProps } from '@mui/material/Input/Input';
4
4
  import { AnyArgFunction } from '../model/CommonFunctions';
5
5
  import { ShowConfirmCaller } from '../model/Confirm';
6
6
  import { PopperPlacementType } from '@mui/material';
7
+ import { FormControlTypeMap } from '@mui/material/FormControl/FormControl';
7
8
  export type EventHandler<Event> = (event: Event, name?: string) => void;
8
9
  export interface EventOrValueHandler<Event> extends EventHandler<Event> {
9
10
  (value: any): void;
@@ -65,6 +66,10 @@ export interface SelectItemRendererProps<E = any> {
65
66
  parentProps: any;
66
67
  search?: string;
67
68
  }
69
+ export interface SelectItemDefault {
70
+ value?: any;
71
+ label?: string;
72
+ }
68
73
  export interface ColoredCheckboxFieldProps<IP, MP> {
69
74
  input?: Partial<Omit<IP, 'onBlur'>> & {
70
75
  onBlur?: AnyArgFunction;
@@ -102,6 +107,8 @@ export interface EditInPlaceFieldProps<IP, MP> {
102
107
  onKeyDown?: any;
103
108
  multiline?: boolean;
104
109
  inline?: boolean;
110
+ editIcon?: ReactNode;
111
+ variant?: FormControlTypeMap['props']['variant'];
105
112
  }
106
113
  export interface EditInPlaceDateTimeFieldProps<IP, MP> {
107
114
  inputRef?: MutableRefObject<any>;
@@ -127,6 +134,7 @@ export interface EditInPlaceDateTimeFieldProps<IP, MP> {
127
134
  disabled?: boolean;
128
135
  persistValue?: boolean;
129
136
  rightAligned?: boolean;
137
+ variant?: FormControlTypeMap['props']['variant'];
130
138
  }
131
139
  export interface EditInPlaceSearchSelectFieldProps<IP, MP> {
132
140
  inputRef?: MutableRefObject<any>;
@@ -134,7 +142,7 @@ export interface EditInPlaceSearchSelectFieldProps<IP, MP> {
134
142
  onBlur?: AnyArgFunction;
135
143
  });
136
144
  meta?: Partial<MP>;
137
- items?: any[];
145
+ items?: (SelectItemDefault | any)[];
138
146
  label?: ReactNode;
139
147
  disabled?: boolean;
140
148
  className?: string;
@@ -181,6 +189,8 @@ export interface EditInPlaceSearchSelectFieldProps<IP, MP> {
181
189
  position: 'start' | 'end';
182
190
  content: ReactElement;
183
191
  };
192
+ editIcon?: ReactNode;
193
+ variant?: FormControlTypeMap['props']['variant'];
184
194
  }
185
195
  export interface CodeFieldProps<IP, MP> {
186
196
  input?: Partial<Omit<IP, 'onBlur'>> & {
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { FieldInputProps, FieldMetaProps, TagLike, TagsFieldProps } from '../model';
3
- declare function TagInputList<T extends TagLike, IP extends FieldInputProps, MP extends FieldMetaProps>({ input, tags, placeholder, labelAdornment, meta, label, disabled, className, warning, allowParentSelect, fieldClasses }: TagsFieldProps<T, IP, MP>): React.JSX.Element;
3
+ declare function TagInputList<T extends TagLike, IP extends FieldInputProps, MP extends FieldMetaProps>({ input, tags, placeholder, labelAdornment, meta, label, disabled, className, warning, allowParentSelect, fieldClasses, editIcon, variant }: TagsFieldProps<T, IP, MP>): React.JSX.Element;
4
4
  export default TagInputList;
@@ -25,8 +25,7 @@ import { Edit } from '@mui/icons-material';
25
25
  import { selectStyles } from '../formFields';
26
26
  import AddTagMenu from './AddTagMenu';
27
27
  import EditInPlaceFieldBase from '../formFields/EditInPlaceFieldBase';
28
- import { getAllMenuTags, getHighlightedPartLabel, getMenuTags } from '../utils';
29
- import { stubComponent } from '../utils/stubs';
28
+ import { getAllMenuTags, getHighlightedPartLabel, getMenuTags, stubComponent } from '../utils';
30
29
  import getCaretCoordinates from '../utils/DOM/getCaretCoordinates';
31
30
  import { makeAppStyles } from '../styles';
32
31
  const useStyles = makeAppStyles((theme) => (Object.assign(Object.assign({}, selectStyles(theme)), { inputEndAdornment: {
@@ -84,7 +83,7 @@ const getInputString = (tagIds, allTags) => ((tagIds === null || tagIds === void
84
83
  return (tag ? `${acc}#${tag.name} ` : acc);
85
84
  }, '')
86
85
  : '');
87
- function TagInputList({ input, tags, placeholder, labelAdornment, meta, label = 'Tags', disabled, className, warning, allowParentSelect, fieldClasses = {} }) {
86
+ function TagInputList({ input, tags, placeholder, labelAdornment, meta, label = 'Tags', disabled, className, warning, allowParentSelect, fieldClasses = {}, editIcon, variant }) {
88
87
  const [menuIsOpen, setMenuIsOpen] = useState(false);
89
88
  const [activeTag, setActiveTag] = useState(null);
90
89
  const [isEditing, setIsEditing] = useState(false);
@@ -256,8 +255,8 @@ function TagInputList({ input, tags, placeholder, labelAdornment, meta, label =
256
255
  inputRoot: classes.inputWrapper,
257
256
  noOptions: 'd-none'
258
257
  }, renderInput: (_a) => {
259
- var { InputLabelProps, InputProps, inputProps } = _a, params = __rest(_a, ["InputLabelProps", "InputProps", "inputProps"]);
260
- return (React.createElement(EditInPlaceFieldBase, Object.assign({}, params, { name: input.name, value: input.value, error: meta.error, invalid: meta === null || meta === void 0 ? void 0 : meta.invalid, label: label, warning: warning, disabled: disabled, fieldClasses: fieldClasses, shrink: Boolean(label || input.value), labelAdornment: labelAdornment, placeholder: placeholder || 'No value', editIcon: React.createElement(Edit, { fontSize: "inherit" }), InputProps: Object.assign(Object.assign({}, InputProps), { onChange: handleInputChange, onFocus,
258
+ var { InputProps, inputProps } = _a, params = __rest(_a, ["InputProps", "inputProps"]);
259
+ return (React.createElement(EditInPlaceFieldBase, Object.assign({}, params, { variant: variant, name: input.name, value: input.value, error: meta.error, invalid: meta === null || meta === void 0 ? void 0 : meta.invalid, label: label, warning: warning, disabled: disabled, fieldClasses: fieldClasses, shrink: Boolean(label || input.value), labelAdornment: labelAdornment, placeholder: placeholder || 'No value', editIcon: editIcon === undefined ? React.createElement(Edit, { fontSize: "inherit" }) : editIcon, InputProps: Object.assign(Object.assign({}, InputProps), { onChange: handleInputChange, onFocus,
261
260
  onBlur, inputProps: Object.assign(Object.assign({}, inputProps), { ref: ref => {
262
261
  inputProps.ref.current = ref;
263
262
  inputNode.current = ref;
@@ -69,6 +69,9 @@ const createOverrides = (palette) => ({
69
69
  },
70
70
  MuiSelect: {
71
71
  styleOverrides: {
72
+ outlined: {
73
+ padding: 'inherit'
74
+ },
72
75
  select: {
73
76
  '&:focus': {
74
77
  backgroundColor: 'none',
@@ -178,7 +181,7 @@ const createOverrides = (palette) => ({
178
181
  marginLeft: 0
179
182
  }
180
183
  }
181
- }
184
+ },
182
185
  }
183
186
  });
184
187
  const commonTypography = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ish-ui",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "UI elements for onCourse and other ish apps",
5
5
  "main": "main.ts",
6
6
  "devDependencies": {
@@ -93,7 +93,7 @@
93
93
  "scripts": {
94
94
  "test": "exit 0",
95
95
  "start": "cross-env NODE_ENV=development webpack serve --config tools/webpack/webpack.config.dev.js",
96
- "build": "tsc && tsc-alias",
96
+ "build": "tsc -p tsconfig.prod.json && tsc-alias",
97
97
  "serve": "cross-env NODE_ENV=production webpack --config tools/webpack/webpack.config.prod.js && cross-env serve dist/",
98
98
  "lint": "eslint --ext .js,.jsx,.ts,.tsx src/"
99
99
  },
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "exclude": [
4
+ "./dev"
5
+ ]
6
+ }