@surveycake/rc 3.0.0-alpha.65 → 3.0.0-alpha.66
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/CHANGELOG.md +7 -0
- package/dist/V2/Autocomplete/Autocomplete.stories.d.ts +4 -0
- package/dist/V2/Autocomplete/index.d.ts +6 -0
- package/dist/V2/Autocomplete/styles.d.ts +3 -0
- package/dist/V2/index.d.ts +1 -0
- package/dist/rc.cjs.development.js +104 -52
- package/dist/rc.cjs.development.js.map +1 -1
- package/dist/rc.cjs.production.min.js +1 -1
- package/dist/rc.cjs.production.min.js.map +1 -1
- package/dist/rc.esm.js +104 -52
- package/dist/rc.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.0-alpha.66](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.65...v3.0.0-alpha.66) (2022-12-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add basic Autocomplete ([d4d3a89](https://fox.25sprout.com/surveycake/sdk/rc/commit/d4d3a8977e071f259c179779011f4fdba2f7c501))
|
|
11
|
+
|
|
5
12
|
## [3.0.0-alpha.65](https://fox.25sprout.com/surveycake/sdk/rc/compare/v3.0.0-alpha.64...v3.0.0-alpha.65) (2022-12-01)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutocompleteProps as MUIAutocompleteProps } from '@material-ui/lab/Autocomplete';
|
|
3
|
+
export interface AutocompleteProps<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends MUIAutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
|
|
4
|
+
}
|
|
5
|
+
declare const Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>(props: Pick<MUIAutocompleteProps<T, Multiple, DisableClearable, FreeSolo>, "classes" | "loading" | "defaultValue" | "onChange" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "ref" | "ChipProps" | "closeIcon" | "clearText" | "closeText" | "disabled" | "disablePortal" | "forcePopupIcon" | "fullWidth" | "getLimitTagsText" | "ListboxComponent" | "ListboxProps" | "loadingText" | "limitTags" | "noOptionsText" | "openText" | "PaperComponent" | "PopperComponent" | "popupIcon" | "renderGroup" | "renderOption" | "renderTags" | "size" | "autoComplete" | "autoHighlight" | "autoSelect" | "blurOnSelect" | "clearOnBlur" | "clearOnEscape" | "componentName" | "debug" | "disableClearable" | "disableCloseOnSelect" | "disabledItemsFocusable" | "disableListWrap" | "filterOptions" | "filterSelectedOptions" | "freeSolo" | "getOptionDisabled" | "getOptionLabel" | "getOptionSelected" | "groupBy" | "handleHomeEndKeys" | "includeInputInList" | "inputValue" | "onClose" | "onInputChange" | "onOpen" | "onHighlightChange" | "open" | "openOnFocus" | "options" | "selectOnFocus" | "multiple" | "value" | "innerRef">, ref: React.Ref<HTMLDivElement>) => React.ReactElement;
|
|
6
|
+
export default Autocomplete;
|
package/dist/V2/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as AccordionDetails } from './AccordionDetails';
|
|
|
5
5
|
export { default as AccordionSummary } from './AccordionSummary';
|
|
6
6
|
export { default as Alert } from './Alert';
|
|
7
7
|
export { default as AlertTitle } from './AlertTitle';
|
|
8
|
+
export { default as Autocomplete } from './Autocomplete';
|
|
8
9
|
export { default as Backdrop } from './Backdrop';
|
|
9
10
|
export { default as Box } from './Box';
|
|
10
11
|
export { default as Button } from './Button';
|
|
@@ -72,6 +72,8 @@ var WatchLater = _interopDefault(require('@material-ui/icons/WatchLater'));
|
|
|
72
72
|
var WebAsset = _interopDefault(require('@material-ui/icons/WebAsset'));
|
|
73
73
|
var SvgIcon = _interopDefault(require('@material-ui/core/SvgIcon'));
|
|
74
74
|
var MUIAlertTitle = _interopDefault(require('@material-ui/lab/AlertTitle'));
|
|
75
|
+
var MUIAutocomplete = _interopDefault(require('@material-ui/lab/Autocomplete'));
|
|
76
|
+
var MUIOutlinedInput = _interopDefault(require('@material-ui/core/OutlinedInput'));
|
|
75
77
|
var MUIBackdrop = _interopDefault(require('@material-ui/core/Backdrop'));
|
|
76
78
|
var Box$1 = _interopDefault(require('@material-ui/core/Box'));
|
|
77
79
|
var MUIButton = _interopDefault(require('@material-ui/core/Button'));
|
|
@@ -99,7 +101,6 @@ var MUIIconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
|
99
101
|
var MUIInputAdornment = _interopDefault(require('@material-ui/core/InputAdornment'));
|
|
100
102
|
var MUILink = _interopDefault(require('@material-ui/core/Link'));
|
|
101
103
|
var MuiMenuItem$1 = _interopDefault(require('@material-ui/core/MenuItem'));
|
|
102
|
-
var MUIOutlinedInput = _interopDefault(require('@material-ui/core/OutlinedInput'));
|
|
103
104
|
var emotion = require('emotion');
|
|
104
105
|
var Typography$2 = _interopDefault(require('@material-ui/core/Typography'));
|
|
105
106
|
var MuiSelect$1 = _interopDefault(require('@material-ui/core/Select'));
|
|
@@ -423,6 +424,81 @@ var MuiAlertTitle = {
|
|
|
423
424
|
}
|
|
424
425
|
};
|
|
425
426
|
|
|
427
|
+
function _extends() {
|
|
428
|
+
_extends = Object.assign || function (target) {
|
|
429
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
430
|
+
var source = arguments[i];
|
|
431
|
+
|
|
432
|
+
for (var key in source) {
|
|
433
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
434
|
+
target[key] = source[key];
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
return target;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
return _extends.apply(this, arguments);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
446
|
+
if (source == null) return {};
|
|
447
|
+
var target = {};
|
|
448
|
+
var sourceKeys = Object.keys(source);
|
|
449
|
+
var key, i;
|
|
450
|
+
|
|
451
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
452
|
+
key = sourceKeys[i];
|
|
453
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
454
|
+
target[key] = source[key];
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return target;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
461
|
+
if (!raw) {
|
|
462
|
+
raw = strings.slice(0);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
strings.raw = raw;
|
|
466
|
+
return strings;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
var MuiAutocomplete = {
|
|
470
|
+
root:
|
|
471
|
+
/*#__PURE__*/
|
|
472
|
+
_extends({
|
|
473
|
+
'&.Mui-focused .MuiOutlinedInput-root': {
|
|
474
|
+
borderBottomLeftRadius: 0,
|
|
475
|
+
borderBottomRightRadius: 0
|
|
476
|
+
}
|
|
477
|
+
}, core.typography.body2),
|
|
478
|
+
paper: {
|
|
479
|
+
padding: 0,
|
|
480
|
+
marginTop: -1,
|
|
481
|
+
border: 'solid',
|
|
482
|
+
borderTopLeftRadius: 0,
|
|
483
|
+
borderTopRightRadius: 0,
|
|
484
|
+
borderWidth: 1,
|
|
485
|
+
borderColor: core.palette.primary.main
|
|
486
|
+
},
|
|
487
|
+
listbox: {
|
|
488
|
+
'&::-webkit-scrollbar': {
|
|
489
|
+
width: 0
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
option:
|
|
493
|
+
/*#__PURE__*/
|
|
494
|
+
_extends({}, core.typography.body2),
|
|
495
|
+
tag: {
|
|
496
|
+
margin:
|
|
497
|
+
/*#__PURE__*/
|
|
498
|
+
core.spacing(0)
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
|
|
426
502
|
var MuiBackdrop = {
|
|
427
503
|
root: {
|
|
428
504
|
backgroundColor:
|
|
@@ -551,48 +627,6 @@ var MuiCardActionArea = {
|
|
|
551
627
|
}
|
|
552
628
|
};
|
|
553
629
|
|
|
554
|
-
function _extends() {
|
|
555
|
-
_extends = Object.assign || function (target) {
|
|
556
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
557
|
-
var source = arguments[i];
|
|
558
|
-
|
|
559
|
-
for (var key in source) {
|
|
560
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
561
|
-
target[key] = source[key];
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
return target;
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
return _extends.apply(this, arguments);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
573
|
-
if (source == null) return {};
|
|
574
|
-
var target = {};
|
|
575
|
-
var sourceKeys = Object.keys(source);
|
|
576
|
-
var key, i;
|
|
577
|
-
|
|
578
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
579
|
-
key = sourceKeys[i];
|
|
580
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
581
|
-
target[key] = source[key];
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
return target;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
588
|
-
if (!raw) {
|
|
589
|
-
raw = strings.slice(0);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
strings.raw = raw;
|
|
593
|
-
return strings;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
630
|
var MuiChip = {
|
|
597
631
|
root:
|
|
598
632
|
/*#__PURE__*/
|
|
@@ -1239,6 +1273,7 @@ styles$5.createTheme({
|
|
|
1239
1273
|
MuiAccordionSummary: MuiAccordionSummary,
|
|
1240
1274
|
MuiAlert: MuiAlert,
|
|
1241
1275
|
MuiAlertTitle: MuiAlertTitle,
|
|
1276
|
+
MuiAutocomplete: MuiAutocomplete,
|
|
1242
1277
|
MuiBackdrop: MuiBackdrop,
|
|
1243
1278
|
MuiButton: MuiButton,
|
|
1244
1279
|
MuiCard: MuiCard,
|
|
@@ -1925,6 +1960,31 @@ var AlertTitle = function AlertTitle(props) {
|
|
|
1925
1960
|
|
|
1926
1961
|
AlertTitle.displayName = 'AlertTitle';
|
|
1927
1962
|
|
|
1963
|
+
var OutlinedInput =
|
|
1964
|
+
/*#__PURE__*/
|
|
1965
|
+
React.forwardRef(function OutlinedInput(props, ref) {
|
|
1966
|
+
return React__default.createElement(MUIOutlinedInput, Object.assign({}, props, {
|
|
1967
|
+
ref: ref
|
|
1968
|
+
}));
|
|
1969
|
+
});
|
|
1970
|
+
OutlinedInput.displayName = 'OutlinedInput';
|
|
1971
|
+
|
|
1972
|
+
var Autocomplete =
|
|
1973
|
+
/*#__PURE__*/
|
|
1974
|
+
React.forwardRef(function (props, ref) {
|
|
1975
|
+
return React__default.createElement(MUIAutocomplete, Object.assign({}, props, {
|
|
1976
|
+
ref: ref,
|
|
1977
|
+
disablePortal: true,
|
|
1978
|
+
renderInput: function renderInput(params) {
|
|
1979
|
+
return React__default.createElement(OutlinedInput, Object.assign({}, params, {
|
|
1980
|
+
autoFocus: true,
|
|
1981
|
+
ref: params.InputProps.ref,
|
|
1982
|
+
inputProps: params.inputProps
|
|
1983
|
+
}));
|
|
1984
|
+
}
|
|
1985
|
+
}));
|
|
1986
|
+
});
|
|
1987
|
+
|
|
1928
1988
|
var Backdrop =
|
|
1929
1989
|
/*#__PURE__*/
|
|
1930
1990
|
React.forwardRef(function (props, ref) {
|
|
@@ -2205,15 +2265,6 @@ React.forwardRef(function (props, ref) {
|
|
|
2205
2265
|
});
|
|
2206
2266
|
MenuItem.displayName = 'MenuItem';
|
|
2207
2267
|
|
|
2208
|
-
var OutlinedInput =
|
|
2209
|
-
/*#__PURE__*/
|
|
2210
|
-
React.forwardRef(function OutlinedInput(props, ref) {
|
|
2211
|
-
return React__default.createElement(MUIOutlinedInput, Object.assign({}, props, {
|
|
2212
|
-
ref: ref
|
|
2213
|
-
}));
|
|
2214
|
-
});
|
|
2215
|
-
OutlinedInput.displayName = 'OutlinedInput';
|
|
2216
|
-
|
|
2217
2268
|
var Typography =
|
|
2218
2269
|
/*#__PURE__*/
|
|
2219
2270
|
React.forwardRef(function (props, ref) {
|
|
@@ -2834,6 +2885,7 @@ var index = {
|
|
|
2834
2885
|
AccordionSummary: AccordionSummary,
|
|
2835
2886
|
Alert: Alert,
|
|
2836
2887
|
AlertTitle: AlertTitle,
|
|
2888
|
+
Autocomplete: Autocomplete,
|
|
2837
2889
|
Backdrop: Backdrop,
|
|
2838
2890
|
Box: Box,
|
|
2839
2891
|
Button: Button,
|