@nulogy/components 9.0.3 → 10.0.1
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/main.js +119 -117
- package/dist/main.module.js +119 -118
- package/dist/src/Alert/Alert.d.ts +7 -1
- package/dist/src/Alert/index.d.ts +2 -1
- package/dist/src/AsyncSelect/AsyncSelect.d.ts +3 -0
- package/dist/src/Box/Box.d.ts +9 -28
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +5 -2
- package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +6 -1
- package/dist/src/Card/CardSet.d.ts +1 -1
- package/dist/src/Divider/Divider.d.ts +1 -2
- package/dist/src/DropdownMenu/DropdownButton.d.ts +2 -1
- package/dist/src/FieldLabel/HelpText.d.ts +2 -2
- package/dist/src/Flex/Flex.d.ts +6 -2
- package/dist/src/Flex/Flex.story.d.ts +0 -12
- package/dist/src/Form/Field.d.ts +1 -2
- package/dist/src/NavBar/NavBar.d.ts +5 -1
- package/dist/src/Select/Select.d.ts +26 -38
- package/dist/src/Select/Select.spec-utils.d.ts +5 -2
- package/dist/src/Select/Select.story.d.ts +1 -1
- package/dist/src/Select/SelectOption.d.ts +6 -1
- package/dist/src/Select/customReactSelectStyles.d.ts +12 -949
- package/dist/src/StyledProps/index.d.ts +28 -7
- package/dist/src/Tabs/TabContainer.d.ts +1 -2
- package/dist/src/Tooltip/TooltipContainer.d.ts +2 -2
- package/dist/src/Type/Headings.d.ts +8 -8
- package/dist/src/Type/Text.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/theme.d.ts +1 -1
- package/dist/src/theme.type.d.ts +22 -22
- package/package.json +3 -3
- package/dist/src/StyledProps/cursor.d.ts +0 -4
- package/dist/src/StyledProps/textOverflow.d.ts +0 -5
- package/dist/src/StyledProps/transform.d.ts +0 -4
- package/dist/src/StyledProps/transition.d.ts +0 -8
- package/dist/src/StyledProps/visibility.d.ts +0 -4
package/dist/main.module.js
CHANGED
|
@@ -8229,97 +8229,87 @@ var colorStyle = variant({
|
|
|
8229
8229
|
prop: 'colors'
|
|
8230
8230
|
});
|
|
8231
8231
|
|
|
8232
|
-
layout.width
|
|
8233
|
-
layout.height
|
|
8234
|
-
layout.minWidth
|
|
8235
|
-
layout.minHeight
|
|
8236
|
-
layout.maxWidth
|
|
8237
|
-
layout.maxHeight
|
|
8238
|
-
layout.size
|
|
8239
|
-
layout.verticalAlign
|
|
8240
|
-
|
|
8232
|
+
var width = layout.width,
|
|
8233
|
+
height = layout.height,
|
|
8234
|
+
minWidth = layout.minWidth,
|
|
8235
|
+
minHeight = layout.minHeight,
|
|
8236
|
+
maxWidth = layout.maxWidth,
|
|
8237
|
+
maxHeight = layout.maxHeight,
|
|
8238
|
+
size = layout.size,
|
|
8239
|
+
verticalAlign = layout.verticalAlign,
|
|
8240
|
+
display = layout.display,
|
|
8241
8241
|
overflow = layout.overflow;
|
|
8242
8242
|
layout.overflowX;
|
|
8243
8243
|
layout.overflowY;
|
|
8244
|
-
color.opacity;
|
|
8245
|
-
var fontSize = typography.fontSize
|
|
8246
|
-
typography.fontFamily
|
|
8247
|
-
typography.fontWeight
|
|
8248
|
-
|
|
8249
|
-
textAlign = typography.textAlign
|
|
8250
|
-
typography.fontStyle
|
|
8251
|
-
typography.letterSpacing;
|
|
8252
|
-
flexbox.alignItems
|
|
8253
|
-
flexbox.alignContent
|
|
8254
|
-
flexbox.justifyItems
|
|
8255
|
-
flexbox.justifyContent
|
|
8256
|
-
flexbox.flexWrap
|
|
8257
|
-
flexbox.flexDirection
|
|
8258
|
-
flexbox.flex
|
|
8259
|
-
|
|
8244
|
+
var opacity = color.opacity;
|
|
8245
|
+
var fontSize = typography.fontSize,
|
|
8246
|
+
fontFamily = typography.fontFamily,
|
|
8247
|
+
fontWeight = typography.fontWeight,
|
|
8248
|
+
lineHeight = typography.lineHeight,
|
|
8249
|
+
textAlign = typography.textAlign,
|
|
8250
|
+
fontStyle = typography.fontStyle,
|
|
8251
|
+
letterSpacing = typography.letterSpacing;
|
|
8252
|
+
var alignItems = flexbox.alignItems,
|
|
8253
|
+
alignContent = flexbox.alignContent,
|
|
8254
|
+
justifyItems = flexbox.justifyItems,
|
|
8255
|
+
justifyContent = flexbox.justifyContent,
|
|
8256
|
+
flexWrap = flexbox.flexWrap,
|
|
8257
|
+
flexDirection = flexbox.flexDirection,
|
|
8258
|
+
flex = flexbox.flex,
|
|
8259
|
+
flexGrow = flexbox.flexGrow;
|
|
8260
8260
|
flexbox.flexShrink;
|
|
8261
|
-
flexbox.flexBasis
|
|
8262
|
-
flexbox.justifySelf
|
|
8263
|
-
flexbox.alignSelf
|
|
8264
|
-
|
|
8265
|
-
grid.gridGap
|
|
8266
|
-
grid.gridColumnGap
|
|
8267
|
-
grid.gridRowGap
|
|
8268
|
-
grid.gridColumn
|
|
8269
|
-
grid.gridRow
|
|
8270
|
-
grid.gridAutoFlow
|
|
8271
|
-
grid.gridAutoColumns
|
|
8272
|
-
grid.gridAutoRows
|
|
8273
|
-
grid.gridTemplateColumns
|
|
8274
|
-
grid.gridTemplateRows
|
|
8275
|
-
grid.gridTemplateAreas
|
|
8276
|
-
grid.gridArea;
|
|
8261
|
+
var flexBasis = flexbox.flexBasis,
|
|
8262
|
+
justifySelf = flexbox.justifySelf,
|
|
8263
|
+
alignSelf = flexbox.alignSelf,
|
|
8264
|
+
order$1 = flexbox.order;
|
|
8265
|
+
var gridGap = grid.gridGap,
|
|
8266
|
+
gridColumnGap = grid.gridColumnGap,
|
|
8267
|
+
gridRowGap = grid.gridRowGap,
|
|
8268
|
+
gridColumn = grid.gridColumn,
|
|
8269
|
+
gridRow = grid.gridRow,
|
|
8270
|
+
gridAutoFlow = grid.gridAutoFlow,
|
|
8271
|
+
gridAutoColumns = grid.gridAutoColumns,
|
|
8272
|
+
gridAutoRows = grid.gridAutoRows,
|
|
8273
|
+
gridTemplateColumns = grid.gridTemplateColumns,
|
|
8274
|
+
gridTemplateRows = grid.gridTemplateRows,
|
|
8275
|
+
gridTemplateAreas = grid.gridTemplateAreas,
|
|
8276
|
+
gridArea = grid.gridArea;
|
|
8277
8277
|
border.borderWidth;
|
|
8278
8278
|
border.borderStyle;
|
|
8279
|
-
border.borderColor
|
|
8280
|
-
border.borderTop
|
|
8281
|
-
border.borderRight
|
|
8282
|
-
border.borderBottom
|
|
8283
|
-
border.borderLeft
|
|
8284
|
-
border.borderRadius;
|
|
8285
|
-
background.backgroundImage
|
|
8286
|
-
background.backgroundSize
|
|
8287
|
-
background.backgroundPosition
|
|
8288
|
-
background.backgroundRepeat;
|
|
8289
|
-
position.zIndex
|
|
8290
|
-
position.top
|
|
8291
|
-
position.right
|
|
8292
|
-
position.bottom
|
|
8293
|
-
position.left;
|
|
8294
|
-
|
|
8295
|
-
var
|
|
8279
|
+
var borderColor = border.borderColor,
|
|
8280
|
+
borderTop = border.borderTop,
|
|
8281
|
+
borderRight = border.borderRight,
|
|
8282
|
+
borderBottom = border.borderBottom,
|
|
8283
|
+
borderLeft = border.borderLeft,
|
|
8284
|
+
borderRadius$1 = border.borderRadius;
|
|
8285
|
+
var backgroundImage = background.backgroundImage,
|
|
8286
|
+
backgroundSize = background.backgroundSize,
|
|
8287
|
+
backgroundPosition = background.backgroundPosition,
|
|
8288
|
+
backgroundRepeat = background.backgroundRepeat;
|
|
8289
|
+
var zIndex = position.zIndex,
|
|
8290
|
+
top$1 = position.top,
|
|
8291
|
+
right$1 = position.right,
|
|
8292
|
+
bottom$1 = position.bottom,
|
|
8293
|
+
left$1 = position.left;
|
|
8294
|
+
|
|
8295
|
+
var addStyledProps = compose( // After
|
|
8296
|
+
space, margin, padding, width, fontSize, color, fontFamily, textAlign, lineHeight, fontWeight, fontStyle, letterSpacing, display, maxWidth, minWidth, height, maxHeight, minHeight, size, verticalAlign, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexBasis, flexDirection, flex, flexbox, justifySelf, alignSelf, order$1, grid, gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea, border, borderTop, borderRight, borderBottom, borderLeft, border, borderColor, borderRadius$1, shadow, opacity, overflow, position, zIndex, top$1, right$1, bottom$1, left$1, textStyle, colorStyle, buttonStyle, background, backgroundSize, backgroundRepeat, backgroundPosition, backgroundImage, layout, flexGrow, typography, system({
|
|
8297
|
+
visibility: true,
|
|
8296
8298
|
transition: true,
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
transitionDelay: true
|
|
8301
|
-
});
|
|
8302
|
-
|
|
8303
|
-
var transform = system({
|
|
8304
|
-
transform: true
|
|
8305
|
-
});
|
|
8306
|
-
|
|
8307
|
-
var cursor$1 = system({
|
|
8299
|
+
transform: true,
|
|
8300
|
+
whiteSpace: true,
|
|
8301
|
+
textOverflow: true,
|
|
8308
8302
|
cursor: true
|
|
8309
|
-
});
|
|
8310
|
-
|
|
8311
|
-
var visibility = system({
|
|
8312
|
-
visibility: true
|
|
8313
|
-
});
|
|
8303
|
+
}));
|
|
8314
8304
|
|
|
8315
8305
|
var Box = styled.div.withConfig({
|
|
8316
8306
|
displayName: "Box",
|
|
8317
8307
|
componentId: "sc-xda4ls-0"
|
|
8318
|
-
})(
|
|
8308
|
+
})(addStyledProps);
|
|
8319
8309
|
var AnimatedBox = styled(motion.div).withConfig({
|
|
8320
8310
|
displayName: "Box__AnimatedBox",
|
|
8321
8311
|
componentId: "sc-xda4ls-1"
|
|
8322
|
-
})(
|
|
8312
|
+
})(addStyledProps);
|
|
8323
8313
|
|
|
8324
8314
|
/**
|
|
8325
8315
|
* Do not edit directly
|
|
@@ -8715,14 +8705,7 @@ var Flex = styled(Box).withConfig({
|
|
|
8715
8705
|
property: "columnGap",
|
|
8716
8706
|
scale: "space"
|
|
8717
8707
|
}
|
|
8718
|
-
})
|
|
8719
|
-
|
|
8720
|
-
var textOverflow = system({
|
|
8721
|
-
whiteSpace: true,
|
|
8722
|
-
textOverflow: true
|
|
8723
|
-
});
|
|
8724
|
-
|
|
8725
|
-
var addStyledProps = compose(border, shadow, color, cursor$1, layout, overflow, space, textOverflow, transform, transition, typography, visibility, flexbox);
|
|
8708
|
+
}));
|
|
8726
8709
|
|
|
8727
8710
|
var getAttrs = function getAttrs(inline) {
|
|
8728
8711
|
return inline ? {
|
|
@@ -10180,6 +10163,13 @@ var CloseButton$1 = function CloseButton(_ref) {
|
|
|
10180
10163
|
})));
|
|
10181
10164
|
};
|
|
10182
10165
|
|
|
10166
|
+
var NotificationTypes = {
|
|
10167
|
+
danger: "danger",
|
|
10168
|
+
informative: "informative",
|
|
10169
|
+
success: "success",
|
|
10170
|
+
warning: "warning"
|
|
10171
|
+
};
|
|
10172
|
+
|
|
10183
10173
|
var styles = function styles(_ref) {
|
|
10184
10174
|
var theme = _ref.theme;
|
|
10185
10175
|
return {
|
|
@@ -17581,11 +17571,11 @@ var customStyles = function customStyles(_ref6) {
|
|
|
17581
17571
|
}
|
|
17582
17572
|
});
|
|
17583
17573
|
},
|
|
17584
|
-
dropdownIndicator: function dropdownIndicator(provided
|
|
17574
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
17585
17575
|
return Object.assign(Object.assign(Object.assign({}, provided), !hasDefaultOptions && {
|
|
17586
17576
|
display: "none"
|
|
17587
17577
|
}), {
|
|
17588
|
-
color:
|
|
17578
|
+
color: theme.colors.grey
|
|
17589
17579
|
});
|
|
17590
17580
|
},
|
|
17591
17581
|
indicatorsContainer: function indicatorsContainer(provided) {
|
|
@@ -17602,9 +17592,6 @@ var customStyles = function customStyles(_ref6) {
|
|
|
17602
17592
|
transform: "translateY(-50%)"
|
|
17603
17593
|
});
|
|
17604
17594
|
},
|
|
17605
|
-
input: function input() {
|
|
17606
|
-
return {};
|
|
17607
|
-
},
|
|
17608
17595
|
valueContainer: function valueContainer(provided, state) {
|
|
17609
17596
|
return Object.assign(Object.assign(Object.assign({}, provided), {
|
|
17610
17597
|
display: "flex",
|
|
@@ -17630,14 +17617,13 @@ var customStyles = function customStyles(_ref6) {
|
|
|
17630
17617
|
marginBottom: 0,
|
|
17631
17618
|
position: "absolute",
|
|
17632
17619
|
overflowX: "auto",
|
|
17633
|
-
zIndex:
|
|
17620
|
+
zIndex: 100,
|
|
17634
17621
|
width: "100%",
|
|
17635
17622
|
background: theme.colors.white,
|
|
17636
17623
|
borderWidth: "1px",
|
|
17637
17624
|
borderColor: getBorderColor({
|
|
17638
17625
|
errored: error,
|
|
17639
17626
|
isOpen: true,
|
|
17640
|
-
disabled: state.isDisabled,
|
|
17641
17627
|
isFocused: false,
|
|
17642
17628
|
theme: theme
|
|
17643
17629
|
}),
|
|
@@ -18662,7 +18648,7 @@ var StyledOption = styled.div.withConfig({
|
|
|
18662
18648
|
};
|
|
18663
18649
|
}, function (_ref2) {
|
|
18664
18650
|
var theme = _ref2.theme,
|
|
18665
|
-
|
|
18651
|
+
size = _ref2.size;
|
|
18666
18652
|
return stylesForSize({
|
|
18667
18653
|
large: {
|
|
18668
18654
|
div: {
|
|
@@ -18674,14 +18660,16 @@ var StyledOption = styled.div.withConfig({
|
|
|
18674
18660
|
padding: subPx(theme.space.x1)
|
|
18675
18661
|
}
|
|
18676
18662
|
}
|
|
18677
|
-
},
|
|
18663
|
+
}, size);
|
|
18678
18664
|
});
|
|
18679
|
-
|
|
18680
|
-
return /*#__PURE__*/React__default.createElement(StyledOption,
|
|
18681
|
-
|
|
18665
|
+
function SelectOption(props) {
|
|
18666
|
+
return /*#__PURE__*/React__default.createElement(StyledOption, {
|
|
18667
|
+
isSelected: props.isSelected,
|
|
18668
|
+
isFocused: props.isFocused,
|
|
18669
|
+
size: props.size,
|
|
18682
18670
|
"data-testid": "select-option"
|
|
18683
|
-
}
|
|
18684
|
-
}
|
|
18671
|
+
}, /*#__PURE__*/React__default.createElement(components$1.Option, Object.assign({}, props)));
|
|
18672
|
+
}
|
|
18685
18673
|
|
|
18686
18674
|
var getSubset = function getSubset(o, propObj) {
|
|
18687
18675
|
var fields = Object.keys(propObj);
|
|
@@ -18788,7 +18776,8 @@ var AsyncSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
18788
18776
|
defaultOptions = _a.defaultOptions,
|
|
18789
18777
|
loadOptions = _a.loadOptions,
|
|
18790
18778
|
isClearable = _a.isClearable,
|
|
18791
|
-
|
|
18779
|
+
size = _a.size,
|
|
18780
|
+
props = __rest(_a, ["autocomplete", "labelText", "required", "requirementText", "helpText", "noOptionsMessage", "disabled", "errorMessage", "errorList", "id", "initialIsOpen", "maxHeight", "menuPosition", "multiselect", "name", "onChange", "placeholder", "value", "defaultValue", "className", "classNamePrefix", "onBlur", "menuIsOpen", "onMenuOpen", "onMenuClose", "onInputChange", "components", "aria-label", "cacheOptions", "defaultOptions", "loadOptions", "isClearable", "size"]);
|
|
18792
18781
|
|
|
18793
18782
|
var _useTranslation = useTranslation(),
|
|
18794
18783
|
t = _useTranslation.t;
|
|
@@ -18796,6 +18785,7 @@ var AsyncSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
18796
18785
|
var theme = useTheme();
|
|
18797
18786
|
var spaceProps = getSubset(props, propTypes.space);
|
|
18798
18787
|
var error = !!(errorMessage || errorList);
|
|
18788
|
+
var componentSize = useComponentSize(size);
|
|
18799
18789
|
return /*#__PURE__*/React__default.createElement(Field, Object.assign({}, spaceProps), /*#__PURE__*/React__default.createElement(MaybeFieldLabel, {
|
|
18800
18790
|
labelText: labelText,
|
|
18801
18791
|
requirementText: requirementText,
|
|
@@ -18833,7 +18823,11 @@ var AsyncSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
18833
18823
|
onInputChange: onInputChange,
|
|
18834
18824
|
theme: theme,
|
|
18835
18825
|
components: Object.assign({
|
|
18836
|
-
Option:
|
|
18826
|
+
Option: function Option(props) {
|
|
18827
|
+
return /*#__PURE__*/React__default.createElement(SelectOption, Object.assign({
|
|
18828
|
+
size: componentSize
|
|
18829
|
+
}, props));
|
|
18830
|
+
},
|
|
18837
18831
|
Control: SelectControl$1,
|
|
18838
18832
|
MultiValue: SelectMultiValue$1,
|
|
18839
18833
|
ClearIndicator: SelectClearIndicator$1,
|
|
@@ -49092,7 +49086,7 @@ var ReactSelect = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
49092
49086
|
initialIsOpen = _a.initialIsOpen,
|
|
49093
49087
|
maxHeight = _a.maxHeight,
|
|
49094
49088
|
multiselect = _a.multiselect,
|
|
49095
|
-
|
|
49089
|
+
_onChange = _a.onChange,
|
|
49096
49090
|
placeholder = _a.placeholder,
|
|
49097
49091
|
value = _a.value,
|
|
49098
49092
|
defaultValue = _a.defaultValue,
|
|
@@ -49114,9 +49108,6 @@ var ReactSelect = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
49114
49108
|
checkOptionsAreValid(options);
|
|
49115
49109
|
optionsRef.current = options;
|
|
49116
49110
|
}, [options]);
|
|
49117
|
-
var handleChange = React__default.useCallback(function (option) {
|
|
49118
|
-
onChange && onChange(extractValue(option, multiselect));
|
|
49119
|
-
}, [multiselect, onChange]);
|
|
49120
49111
|
React__default.useEffect(function () {
|
|
49121
49112
|
if (ref) {
|
|
49122
49113
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -49129,7 +49120,6 @@ var ReactSelect = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
49129
49120
|
requirementText: requirementText,
|
|
49130
49121
|
helpText: helpText
|
|
49131
49122
|
}, /*#__PURE__*/React__default.createElement(WindowedSelect, Object.assign({
|
|
49132
|
-
size: componentSize,
|
|
49133
49123
|
ref: reactSelectRef,
|
|
49134
49124
|
placeholder: placeholder || t("select"),
|
|
49135
49125
|
windowThreshold: windowThreshold,
|
|
@@ -49146,13 +49136,21 @@ var ReactSelect = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
49146
49136
|
"aria-invalid": error,
|
|
49147
49137
|
defaultMenuIsOpen: initialIsOpen,
|
|
49148
49138
|
inputId: id,
|
|
49149
|
-
onChange:
|
|
49139
|
+
onChange: function onChange(option) {
|
|
49140
|
+
if (!_onChange) return;
|
|
49141
|
+
var value = extractValue(option, multiselect);
|
|
49142
|
+
|
|
49143
|
+
_onChange(value);
|
|
49144
|
+
},
|
|
49150
49145
|
defaultValue: getReactSelectValue(options, defaultValue),
|
|
49151
49146
|
value: getReactSelectValue(options, value),
|
|
49152
49147
|
isMulti: multiselect,
|
|
49153
|
-
theme: themeContext,
|
|
49154
49148
|
components: Object.assign({
|
|
49155
|
-
Option:
|
|
49149
|
+
Option: function Option(props) {
|
|
49150
|
+
return /*#__PURE__*/React__default.createElement(SelectOption, Object.assign({
|
|
49151
|
+
size: componentSize
|
|
49152
|
+
}, props));
|
|
49153
|
+
},
|
|
49156
49154
|
Control: SelectControl,
|
|
49157
49155
|
MultiValue: SelectMultiValue,
|
|
49158
49156
|
ClearIndicator: SelectClearIndicator,
|
|
@@ -49162,8 +49160,7 @@ var ReactSelect = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
49162
49160
|
Input: SelectInput
|
|
49163
49161
|
}, components),
|
|
49164
49162
|
"aria-label": ariaLabel,
|
|
49165
|
-
options: options
|
|
49166
|
-
labelText: labelText
|
|
49163
|
+
options: options
|
|
49167
49164
|
}, props)), /*#__PURE__*/React__default.createElement(InlineValidation, {
|
|
49168
49165
|
mt: "x1",
|
|
49169
49166
|
errorMessage: errorMessage,
|
|
@@ -49210,19 +49207,23 @@ var getReactSelectValue = function getReactSelectValue(options, input) {
|
|
|
49210
49207
|
return getOption(options, input);
|
|
49211
49208
|
};
|
|
49212
49209
|
|
|
49213
|
-
|
|
49214
|
-
if (
|
|
49215
|
-
|
|
49216
|
-
return o
|
|
49217
|
-
|
|
49210
|
+
function extractValue(options, isMulti) {
|
|
49211
|
+
if (Array.isArray(options)) {
|
|
49212
|
+
if (isMulti) {
|
|
49213
|
+
return options && options.length ? options.map(function (o) {
|
|
49214
|
+
return o.value;
|
|
49215
|
+
}) : [];
|
|
49216
|
+
} else {
|
|
49217
|
+
throw new Error("UNEXPECTED ERROR: don't forget to enable isMulti");
|
|
49218
|
+
}
|
|
49218
49219
|
}
|
|
49219
49220
|
|
|
49220
|
-
if (options
|
|
49221
|
+
if (options === null) {
|
|
49221
49222
|
return options;
|
|
49222
49223
|
} else {
|
|
49223
49224
|
return options.value;
|
|
49224
49225
|
}
|
|
49225
|
-
}
|
|
49226
|
+
}
|
|
49226
49227
|
|
|
49227
49228
|
ReactSelect.defaultProps = Object.assign(Object.assign({}, SelectDefaultProps), {
|
|
49228
49229
|
windowThreshold: 300,
|
|
@@ -52295,4 +52296,4 @@ TruncatedText.defaultProps = {
|
|
|
52295
52296
|
tooltipProps: undefined
|
|
52296
52297
|
};
|
|
52297
52298
|
|
|
52298
|
-
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, Box, BrandLogoContainer, NavBar$1 as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu$1 as DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger$1 as MenuTrigger, Modal, NDSProvider, NavBar, NavBarBackground$1 as NavBarBackground, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SmallNavBar$1 as SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, Theme as theme, toast, useWindowDimensions };
|
|
52299
|
+
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, Box, BrandLogoContainer, NavBar$1 as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu$1 as DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger$1 as MenuTrigger, Modal, NDSProvider, NavBar, NavBarBackground$1 as NavBarBackground, NotificationTypes, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SmallNavBar$1 as SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, Theme as theme, toast, useWindowDimensions };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlexProps } from "../Flex/Flex";
|
|
3
|
-
|
|
3
|
+
export declare const NotificationTypes: {
|
|
4
|
+
readonly danger: "danger";
|
|
5
|
+
readonly informative: "informative";
|
|
6
|
+
readonly success: "success";
|
|
7
|
+
readonly warning: "warning";
|
|
8
|
+
};
|
|
9
|
+
export type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes];
|
|
4
10
|
export type AlertProps = FlexProps & {
|
|
5
11
|
isCloseable?: boolean;
|
|
6
12
|
closeAriaLabel?: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as Alert } from "./Alert";
|
|
1
|
+
export { default as Alert, NotificationTypes } from "./Alert";
|
|
2
|
+
export type { NotificationType } from "./Alert";
|
|
@@ -2,9 +2,11 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
import Select from "react-select/base";
|
|
3
3
|
import { AsyncProps } from "react-select/async";
|
|
4
4
|
import { GroupBase } from "react-select";
|
|
5
|
+
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
6
|
type AsyncCustomProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = {
|
|
6
7
|
autocomplete?: AsyncProps<Option, IsMulti, Group>["isSearchable"];
|
|
7
8
|
labelText?: string;
|
|
9
|
+
size?: ComponentSize;
|
|
8
10
|
requirementText?: string;
|
|
9
11
|
helpText?: ReactNode;
|
|
10
12
|
disabled?: AsyncProps<Option, IsMulti, Group>["isDisabled"];
|
|
@@ -15,5 +17,6 @@ type AsyncCustomProps<Option, IsMulti extends boolean, Group extends GroupBase<O
|
|
|
15
17
|
maxHeight?: string;
|
|
16
18
|
defaultValue?: AsyncProps<Option, IsMulti, Group>["defaultInputValue"];
|
|
17
19
|
};
|
|
20
|
+
export type AsyncSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Omit<AsyncProps<Option, IsMulti, Group>, "isSearchable" | "isDisabled" | "isMulti" | "defaultMenuIsOpen" | "defaultInputValue"> & AsyncCustomProps<Option, IsMulti, Group>;
|
|
18
21
|
declare const AsyncSelect: React.ForwardRefExoticComponent<Omit<AsyncProps<unknown, boolean, GroupBase<unknown>>, "isDisabled" | "isMulti" | "isSearchable" | "defaultMenuIsOpen" | "defaultInputValue"> & AsyncCustomProps<unknown, boolean, GroupBase<unknown>> & React.RefAttributes<Select<unknown, boolean, GroupBase<unknown>>>>;
|
|
19
22
|
export default AsyncSelect;
|
package/dist/src/Box/Box.d.ts
CHANGED
|
@@ -1,30 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentPropsWithRef } from "react";
|
|
2
2
|
import { MotionProps } from "framer-motion";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
boxSizing?: string;
|
|
12
|
-
};
|
|
13
|
-
type CssArg = {
|
|
14
|
-
theme: ThemeType;
|
|
15
|
-
};
|
|
16
|
-
export type BoxProps = SharedBoxProps & TransitionProps & React.ComponentPropsWithRef<"div"> & {
|
|
17
|
-
as?: string;
|
|
18
|
-
css?: (props: CssArg) => any;
|
|
19
|
-
};
|
|
20
|
-
declare const Box: React.FC<BoxProps>;
|
|
21
|
-
export type AnimatedBoxProps = SharedBoxProps & MotionProps & {
|
|
22
|
-
role?: string;
|
|
23
|
-
ref?: any;
|
|
24
|
-
onClick?: (event: React.MouseEvent<any>) => void;
|
|
25
|
-
onMouseEnter?: (event: React.MouseEvent<any>) => void;
|
|
26
|
-
onMouseOut?: (event: React.MouseEvent<any>) => void;
|
|
27
|
-
onMouseDown?: (event: React.MouseEvent<any>) => void;
|
|
28
|
-
};
|
|
29
|
-
export declare const AnimatedBox: React.FC<AnimatedBoxProps>;
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
4
|
+
export interface BoxProps extends StyledProps, ComponentPropsWithRef<"div"> {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}
|
|
7
|
+
declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps, never>;
|
|
8
|
+
export interface AnimatedBoxProps extends MotionProps, Omit<BoxProps, "onAnimationStart" | "onDrag" | "onDragStart" | "onDragEnd" | "style" | "transition"> {
|
|
9
|
+
}
|
|
10
|
+
export declare const AnimatedBox: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, import("styled-components").DefaultTheme, AnimatedBoxProps, never>;
|
|
30
11
|
export default Box;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
2
|
import { StyledProps } from "../StyledProps";
|
|
4
3
|
export type NavBarBackgroundProps = {
|
|
5
4
|
theme?: DefaultNDSThemeType;
|
|
6
5
|
} & StyledProps;
|
|
7
|
-
declare const NavBarBackground: import("styled-components").StyledComponent<
|
|
6
|
+
declare const NavBarBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
7
|
+
gap?: import("csstype").Property.Gap<string | number>;
|
|
8
|
+
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
9
|
+
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
10
|
+
}, never>;
|
|
8
11
|
export default NavBarBackground;
|
|
@@ -4,5 +4,10 @@ import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
|
4
4
|
type BreadcrumbsProps = Omit<FlexProps, "size"> & {
|
|
5
5
|
size?: ComponentSize;
|
|
6
6
|
};
|
|
7
|
-
declare const Breadcrumbs:
|
|
7
|
+
declare const Breadcrumbs: {
|
|
8
|
+
({ size, children, ...props }: BreadcrumbsProps): React.JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
as: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
8
13
|
export default Breadcrumbs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BoxProps } from "../Box/Box";
|
|
3
|
-
declare const CardSet: import("styled-components").StyledComponent<React.
|
|
3
|
+
declare const CardSet: import("styled-components").StyledComponent<({ children, ...props }: BoxProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default CardSet;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BoxProps } from "../Box/Box";
|
|
3
|
-
|
|
4
|
-
declare const Divider: ({ borderColor, ...props }: DividerProps) => React.JSX.Element;
|
|
3
|
+
declare const Divider: ({ borderColor, ...props }: BoxProps) => React.JSX.Element;
|
|
5
4
|
export default Divider;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
+
import { StyledProps } from "../StyledProps";
|
|
3
4
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
4
5
|
declare const DropdownButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
6
|
ref?: React.Ref<HTMLButtonElement>;
|
|
6
|
-
} &
|
|
7
|
+
} & StyledProps & {
|
|
7
8
|
size?: ComponentSize;
|
|
8
9
|
color?: string;
|
|
9
10
|
theme?: DefaultNDSThemeType;
|
|
@@ -4,7 +4,7 @@ declare const HelpText: import("styled-components").StyledComponent<"p", import(
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
6
6
|
fontSize?: string;
|
|
7
|
-
} & import("
|
|
8
|
-
theme?: import("
|
|
7
|
+
} & import("..").StyledProps & {
|
|
8
|
+
theme?: import("..").DefaultNDSThemeType;
|
|
9
9
|
}, never>;
|
|
10
10
|
export default HelpText;
|
package/dist/src/Flex/Flex.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
2
|
import { BoxProps } from "../Box/Box";
|
|
3
3
|
export type FlexProps = BoxProps & {
|
|
4
4
|
gap?: CSSProperties["gap"];
|
|
5
5
|
rowGap?: CSSProperties["rowGap"];
|
|
6
6
|
columnGap?: CSSProperties["columnGap"];
|
|
7
7
|
};
|
|
8
|
-
declare const Flex:
|
|
8
|
+
declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps & {
|
|
9
|
+
gap?: CSSProperties["gap"];
|
|
10
|
+
rowGap?: CSSProperties["rowGap"];
|
|
11
|
+
columnGap?: CSSProperties["columnGap"];
|
|
12
|
+
}, never>;
|
|
9
13
|
export default Flex;
|
|
@@ -106,15 +106,3 @@ export declare const WithCustomOrder: {
|
|
|
106
106
|
name: string;
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
-
export declare const Ie11MinHeightSolution1: {
|
|
110
|
-
(): React.JSX.Element;
|
|
111
|
-
story: {
|
|
112
|
-
name: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
export declare const Ie11MinHeightSolution2: {
|
|
116
|
-
(): React.JSX.Element;
|
|
117
|
-
story: {
|
|
118
|
-
name: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
package/dist/src/Form/Field.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BoxProps } from "../Box/Box";
|
|
3
2
|
export type FieldProps = BoxProps;
|
|
4
|
-
declare const Field: import("styled-components").StyledComponent<
|
|
3
|
+
declare const Field: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps, never>;
|
|
5
4
|
export default Field;
|
|
@@ -2,7 +2,11 @@ import React from "react";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
4
|
export declare const getThemeColor: (themeColor: any) => any;
|
|
5
|
-
export declare const NavBarBackground: import("styled-components").StyledComponent<
|
|
5
|
+
export declare const NavBarBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & {
|
|
6
|
+
gap?: import("csstype").Property.Gap<string | number>;
|
|
7
|
+
rowGap?: import("csstype").Property.RowGap<string | number>;
|
|
8
|
+
columnGap?: import("csstype").Property.ColumnGap<string | number>;
|
|
9
|
+
} & {
|
|
6
10
|
backgroundColor: string;
|
|
7
11
|
theme?: DefaultNDSThemeType;
|
|
8
12
|
}, never>;
|