@bbl-digital/snorre 2.2.120 → 2.2.121
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/bundle.js
CHANGED
@@ -31951,7 +31951,7 @@
|
|
31951
31951
|
})]
|
31952
31952
|
}), (props.values?.length || props.renderCustomValueInput) && !props.loading && showValues && jsxRuntime$1.jsxs("div", {
|
31953
31953
|
ref: valuesRef,
|
31954
|
-
css: () => [styles.listWrapper, Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
31954
|
+
css: () => [styles.listWrapper, props.dynamicallyPlaceInput && Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), props.dynamicallyPlaceInput && Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
31955
31955
|
children: [props.values?.length && jsxRuntime$1.jsx("ul", {
|
31956
31956
|
css: theme => [styles.list(theme)],
|
31957
31957
|
children: props.values.map((item, index) => jsxRuntime$1.jsx("li", {
|
@@ -252,7 +252,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(({
|
|
252
252
|
})]
|
253
253
|
}), (props.values?.length || props.renderCustomValueInput) && !props.loading && showValues && _jsxs("div", {
|
254
254
|
ref: valuesRef,
|
255
|
-
css: () => [styles.listWrapper, Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
255
|
+
css: () => [styles.listWrapper, props.dynamicallyPlaceInput && Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), props.dynamicallyPlaceInput && Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
256
256
|
children: [props.values?.length && _jsx("ul", {
|
257
257
|
css: theme => [styles.list(theme)],
|
258
258
|
children: props.values.map((item, index) => _jsx("li", {
|
@@ -50,6 +50,8 @@ interface IProps {
|
|
50
50
|
actions: ReactNode;
|
51
51
|
/** Renders options shown under input */
|
52
52
|
renderOptions?: ReactNode[] | ReactNode;
|
53
|
+
/** Places values dynamically to the input field, defaults to being placed under the input field */
|
54
|
+
dynamicallyPlaceInput?: boolean;
|
53
55
|
/** Renders a custom input list */
|
54
56
|
renderCustomValueInput?: ReactNode;
|
55
57
|
/** Open custom value input when starting to write */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Autocomplete/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAa,YAAY,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAK3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,UAAU,MAAM;IACd,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gCAAgC;IAChC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IACxD,iCAAiC;IACjC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IACzD,6CAA6C;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CAAA;IAClC,sDAAsD;IACtD,8BAA8B,CAAC,EAAE,OAAO,CAAA;IACxC,yBAAyB;IACzB,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oCAAoC;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,oBAAY,GAAG,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAA;AAEhD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA4SjC,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
@@ -252,7 +252,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(({
|
|
252
252
|
})]
|
253
253
|
}), (props.values?.length || props.renderCustomValueInput) && !props.loading && showValues && _jsxs("div", {
|
254
254
|
ref: valuesRef,
|
255
|
-
css: () => [styles.listWrapper, Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
255
|
+
css: () => [styles.listWrapper, props.dynamicallyPlaceInput && Boolean(optionsHeight) && styles.listWrapperTopPosition(optionsHeight), props.dynamicallyPlaceInput && Boolean(optionsHeight) && props.invalidMessage && styles.listWrapperTopPosition(optionsHeight + 30), props.inputValuesMaxWidth && styles.listWrapperMaxWidth(props.inputValuesMaxWidth)],
|
256
256
|
children: [props.values?.length && _jsx("ul", {
|
257
257
|
css: theme => [styles.list(theme)],
|
258
258
|
children: props.values.map((item, index) => _jsx("li", {
|