@semcore/select 4.53.0-prerelease.0 → 4.53.0-prerelease.4
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/lib/cjs/InputSearch.js +52 -52
- package/lib/cjs/InputSearch.js.map +1 -1
- package/lib/cjs/Select.js +93 -138
- package/lib/cjs/Select.js.map +1 -1
- package/lib/cjs/context.js +3 -2
- package/lib/cjs/context.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/select.shadow.css +2 -2
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/InputSearch.js +45 -48
- package/lib/es6/InputSearch.js.map +1 -1
- package/lib/es6/Select.js +85 -133
- package/lib/es6/Select.js.map +1 -1
- package/lib/es6/context.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/select.shadow.css +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/InputSearch.mjs +45 -43
- package/lib/esm/Select.mjs +80 -119
- package/lib/esm/style/select.shadow.css +2 -2
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/index.d.ts +39 -27
- package/package.json +13 -13
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport DropdownMenu, {\n DropdownMenuContext,\n DropdownMenuItemProps,\n DropdownMenuProps,\n DropdownMenuHandlers,\n DropdownMenuTriggerProps,\n} from '@semcore/dropdown-menu';\nimport Dropdown from '@semcore/dropdown';\nimport { ButtonTrigger, BaseTriggerProps, ButtonTriggerProps } from '@semcore/base-trigger';\nimport Divider from '@semcore/divider';\nimport Input, { InputValueProps } from '@semcore/input';\nimport { BoxProps, Flex } from '@semcore/flex-box';\n\n/** @deprecated */\nexport interface ISelectInputSearch extends SelectInputSearch, UnknownProperties {}\nexport type SelectInputSearch = InputValueProps & {};\n\nexport type OptionValue = string | number;\nexport type SelectValue = string | number | Array<string | number> | null;\n\nexport type SelectOption = {\n value: OptionValue;\n children?: React.ReactNode;\n label?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface ISelectProps<T extends SelectValue = SelectValue> extends SelectProps<T> {}\nexport type SelectProps<T extends SelectValue = SelectValue> = DropdownMenuProps &\n BaseTriggerProps & {\n /**\n * Options array\n */\n options?: SelectOption[];\n /**\n * The value or values array selected by default when using multiselect\n * @type SelectValue\n */\n defaultValue?: T;\n /**\n * The selected value or values array when using multiselect\n * @type SelectValue\n */\n value?: T;\n /**\n * Callback on value change\n * @type (value: SelectValue, e: React.SyntheticEvent) => boolean | void\n */\n onChange?:\n | ((value: T, e: React.SyntheticEvent) => boolean | void)\n | React.Dispatch<React.SetStateAction<T>>;\n /**\n * Trigger placeholder at not selected value\n */\n placeholder?: React.ReactNode;\n /**\n * Trigger state\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Disables select\n */\n disabled?: boolean;\n /**\n * If provided, adds a hidden <input /> tag with the given name for enhancing accessibility.\n */\n name?: string;\n locale?: string;\n /**\n * If enabled, after opening select popper view will be scrolled to selected option or, if there are multiple selected options, to the first selected option.\n * @default true\n */\n scrollToSelected?: boolean;\n };\n\n/** @deprecated */\nexport interface ISelectOption extends SelectOption, UnknownProperties {}\n\n/** @deprecated */\nexport interface ISelectOptionProps extends SelectOptionProps, UnknownProperties {}\nexport type SelectOptionProps = DropdownMenuItemProps & {\n /**\n * Enables selected state\n */\n selected?: boolean;\n /** Value of the option */\n value: string | number;\n};\n\n/** @deprecated */\nexport interface ISelectOptionCheckboxProps extends SelectOptionCheckboxProps, UnknownProperties {}\nexport type SelectOptionCheckboxProps = BoxProps & {\n /** Checkbox theme */\n theme?: string;\n /** Visual indeterminate state */\n indeterminate?: boolean;\n\n selected?: boolean;\n};\n\ndeclare const InputSearch: Intergalactic.Component<'div', SelectInputSearch> & {\n SearchIcon: typeof Input.Addon;\n Value: typeof Input.Value;\n Clear: typeof Input.Addon;\n};\n\n/** @deprecated */\nexport interface ISelectContext extends SelectContext, UnknownProperties {}\nexport type SelectContext = DropdownMenuContext & {\n getOptionProps: PropGetterFn;\n getOptionCheckboxProps: PropGetterFn;\n getDividerProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface ISelectHandlers extends SelectHandlers, UnknownProperties {}\nexport type SelectHandlers = DropdownMenuHandlers & {\n value: (index: SelectValue) => void;\n};\n\ntype IntergalacticSelectComponent<PropsExtending = {}> = (<\n Value extends SelectValue,\n Tag extends Intergalactic.Tag = 'div',\n>(\n props: Intergalactic.InternalTypings.ComponentProps<\n Tag,\n 'div',\n SelectProps<Value>,\n SelectContext,\n [handlers: SelectHandlers]\n > &\n PropsExtending,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', SelectProps>;\n\ndeclare const Select: IntergalacticSelectComponent & {\n Trigger: Intergalactic.Component<\n typeof Dropdown.Trigger,\n DropdownMenuTriggerProps & ButtonTriggerProps,\n {},\n [handlers: SelectHandlers]\n > & {\n Addon: typeof ButtonTrigger.Addon;\n Text: typeof ButtonTrigger.Text;\n };\n Popper: typeof DropdownMenu.Popper;\n List: typeof DropdownMenu.List;\n Menu: typeof DropdownMenu.Menu;\n Group: typeof Dropdown.Group;\n Option: Intergalactic.Component<\n 'option',\n SelectOptionProps,\n SelectContext,\n [handlers: SelectHandlers]\n > & {\n Addon: typeof DropdownMenu.Item.Addon;\n Checkbox: Intergalactic.Component<'div', SelectOptionCheckboxProps>;\n Content: typeof Flex;\n Hint: typeof Flex;\n };\n /**\n * @deprecated Use Select.Group\n */\n OptionTitle: typeof DropdownMenu.ItemTitle;\n /**\n * @deprecated Use Select.Option.Hint or Select.Group with subTitle property\n */\n OptionHint: typeof DropdownMenu.ItemHint;\n Divider: typeof Divider;\n InputSearch: typeof InputSearch;\n Input: typeof InputSearch;\n};\n\ndeclare const wrapSelect: <PropsExtending extends {}>(\n wrapper: (\n props: Intergalactic.InternalTypings.UntypeRefAndTag<\n Intergalactic.InternalTypings.ComponentPropsNesting<IntergalacticSelectComponent>\n > &\n PropsExtending,\n ) => React.ReactNode,\n) => IntergalacticSelectComponent<PropsExtending>;\n\nexport { InputSearch, wrapSelect };\nexport default Select;\n"],"mappings":""}
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","InputSearch"],"sources":["../../src/index.js"],"sourcesContent":["export { default as InputSearch } from './InputSearch';\nexport { default } from './Select';\nexport * from './Select';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,WAAW,QAAQ,eAAe;AACtD,SAASD,OAAO,QAAQ,UAAU;AAClC,cAAc,UAAU"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","InputSearch"],"sources":["../../src/index.js"],"sourcesContent":["export { default as InputSearch } from './InputSearch';\nexport { default } from './Select';\nexport * from './Select';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,WAAW,QAAQ,eAAe;AACtD,SAASD,OAAO,QAAQ,UAAU;AAClC,cAAc,UAAU"}
|
|
@@ -68,10 +68,10 @@ SOptionCheckbox[theme][indeterminate]:before {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
SOptionCheckbox[selected] {
|
|
71
|
-
background-color: var(--intergalactic-dropdown-menu-item-selected, oklch(0.
|
|
71
|
+
background-color: var(--intergalactic-dropdown-menu-item-selected, oklch(0.525 0.265 263 / 0.077));
|
|
72
72
|
|
|
73
73
|
&:hover {
|
|
74
|
-
background-color: var(--intergalactic-dropdown-menu-item-selected-hover, oklch(0.
|
|
74
|
+
background-color: var(--intergalactic-dropdown-menu-item-selected-hover, oklch(0.52 0.268 263.2 / 0.191));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -6,12 +6,12 @@ import it from './it.json';
|
|
|
6
6
|
import ja from './ja.json';
|
|
7
7
|
import ko from './ko.json';
|
|
8
8
|
import nl from './nl.json';
|
|
9
|
-
import pl from './pl.json';
|
|
10
9
|
import pt from './pt.json';
|
|
11
|
-
import sv from './sv.json';
|
|
12
10
|
import tr from './tr.json';
|
|
13
11
|
import vi from './vi.json';
|
|
14
12
|
import zh from './zh.json';
|
|
13
|
+
import pl from './pl.json';
|
|
14
|
+
import sv from './sv.json';
|
|
15
15
|
export var localizedMessages = {
|
|
16
16
|
de: de,
|
|
17
17
|
en: en,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pt","tr","vi","zh","pl","sv","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pt from './pt.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\nimport pl from './pl.json';\nimport sv from './sv.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bd,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA;AACF,CAAC"}
|
package/lib/esm/InputSearch.mjs
CHANGED
|
@@ -1,58 +1,61 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import CloseM from "@semcore/icon/Close/m";
|
|
8
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
9
|
+
import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
|
|
10
|
+
import React from "react";
|
|
11
11
|
import SearchM from "@semcore/icon/Search/m";
|
|
12
|
+
import CloseM from "@semcore/icon/Close/m";
|
|
12
13
|
import Input from "@semcore/input";
|
|
13
|
-
import
|
|
14
|
+
import { ButtonLink } from "@semcore/button";
|
|
14
15
|
import { selectContext } from "./context.mjs";
|
|
16
|
+
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
15
17
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
16
18
|
/*!__reshadow-styles__:"./style/input-search.shadow.css"*/
|
|
17
19
|
var style = (
|
|
18
20
|
/*__reshadow_css_start__*/
|
|
19
21
|
(sstyled.insert(
|
|
20
22
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
23
|
+
".___SInputSearch_q1zk7_gg_._size_m_q1zk7_gg_{height:32px}.___SSearchClear_q1zk7_gg_{padding:0 var(--intergalactic-spacing-2x, 8px)}.___SSearchClear_q1zk7_gg_.__hide_q1zk7_gg_{visibility:hidden}.___SOutline_q1zk7_gg_{top:-1px;left:-1px;width:100%;border-radius:var(--intergalactic-control-rounded, 6px) var(--intergalactic-control-rounded, 6px)0 0;box-sizing:content-box}",
|
|
22
24
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
25
|
+
"q1zk7_gg_"
|
|
24
26
|
), /*__reshadow_css_end__*/
|
|
25
27
|
{
|
|
26
|
-
"__SInputSearch": "
|
|
27
|
-
"_size_m": "
|
|
28
|
-
"__SSearchClear": "
|
|
29
|
-
"_hide": "
|
|
30
|
-
"__SOutline": "
|
|
28
|
+
"__SInputSearch": "___SInputSearch_q1zk7_gg_",
|
|
29
|
+
"_size_m": "_size_m_q1zk7_gg_",
|
|
30
|
+
"__SSearchClear": "___SSearchClear_q1zk7_gg_",
|
|
31
|
+
"_hide": "__hide_q1zk7_gg_",
|
|
32
|
+
"__SOutline": "___SOutline_q1zk7_gg_"
|
|
31
33
|
})
|
|
32
34
|
);
|
|
33
|
-
var InputSearchRoot = /* @__PURE__ */
|
|
35
|
+
var InputSearchRoot = /* @__PURE__ */ function(_Component) {
|
|
36
|
+
_inherits(InputSearchRoot2, _Component);
|
|
37
|
+
var _super = _createSuper(InputSearchRoot2);
|
|
34
38
|
function InputSearchRoot2() {
|
|
35
39
|
var _this;
|
|
36
40
|
_classCallCheck(this, InputSearchRoot2);
|
|
37
41
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
42
|
args[_key] = arguments[_key];
|
|
39
43
|
}
|
|
40
|
-
_this =
|
|
41
|
-
_defineProperty(_this, "inputRef", /* @__PURE__ */ React.createRef());
|
|
42
|
-
_defineProperty(_this, "closeIconRef", /* @__PURE__ */ React.createRef());
|
|
43
|
-
_defineProperty(_this, "handleClear", function(e) {
|
|
44
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
45
|
+
_defineProperty(_assertThisInitialized(_this), "inputRef", /* @__PURE__ */ React.createRef());
|
|
46
|
+
_defineProperty(_assertThisInitialized(_this), "closeIconRef", /* @__PURE__ */ React.createRef());
|
|
47
|
+
_defineProperty(_assertThisInitialized(_this), "handleClear", function(e) {
|
|
44
48
|
_this.handlers.value("", e);
|
|
45
49
|
setTimeout(function() {
|
|
46
50
|
if (document.activeElement === document.body || document.activeElement === _this.closeIconRef.current) {
|
|
47
51
|
var _this$inputRef$curren;
|
|
48
|
-
(_this$inputRef$curren = _this.inputRef.current) === null || _this$inputRef$curren === void 0
|
|
52
|
+
(_this$inputRef$curren = _this.inputRef.current) === null || _this$inputRef$curren === void 0 ? void 0 : _this$inputRef$curren.focus();
|
|
49
53
|
}
|
|
50
54
|
}, 0);
|
|
51
55
|
});
|
|
52
56
|
return _this;
|
|
53
57
|
}
|
|
54
|
-
|
|
55
|
-
return _createClass(InputSearchRoot2, [{
|
|
58
|
+
_createClass(InputSearchRoot2, [{
|
|
56
59
|
key: "uncontrolledProps",
|
|
57
60
|
value: function uncontrolledProps() {
|
|
58
61
|
return {
|
|
@@ -62,27 +65,25 @@ var InputSearchRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
62
65
|
}, {
|
|
63
66
|
key: "getValueProps",
|
|
64
67
|
value: function getValueProps() {
|
|
65
|
-
var
|
|
68
|
+
var getI18nText = this.asProps.getI18nText;
|
|
66
69
|
return {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"ref": this.inputRef,
|
|
71
|
-
"placeholder": getI18nText("Select.InputSearch.Value:placeholder"),
|
|
70
|
+
autoFocus: true,
|
|
71
|
+
ref: this.inputRef,
|
|
72
|
+
placeholder: getI18nText("Select.InputSearch.Value:placeholder"),
|
|
72
73
|
"aria-label": getI18nText("Select.InputSearch.Value:aria-label")
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
76
|
}, {
|
|
76
77
|
key: "getClearProps",
|
|
77
78
|
value: function getClearProps() {
|
|
78
|
-
var _this$
|
|
79
|
+
var _this$asProps = this.asProps, value = _this$asProps.value, getI18nText = _this$asProps.getI18nText;
|
|
79
80
|
return {
|
|
80
|
-
|
|
81
|
+
ref: this.closeIconRef,
|
|
81
82
|
/* hide through css because the width of the input changes */
|
|
82
|
-
|
|
83
|
+
hide: !value,
|
|
83
84
|
"aria-hidden": !value,
|
|
84
85
|
"aria-label": getI18nText("clearSearch"),
|
|
85
|
-
|
|
86
|
+
onClick: this.handleClear
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
}, {
|
|
@@ -91,14 +92,15 @@ var InputSearchRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
91
92
|
var _ref = this.asProps, _ref5;
|
|
92
93
|
var Value = InputSearch.Value;
|
|
93
94
|
var SInputSearch = Input;
|
|
94
|
-
var _this$
|
|
95
|
-
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SInputSearch, _ref5.cn("SInputSearch", {
|
|
95
|
+
var _this$asProps2 = this.asProps, size = _this$asProps2.size, styles = _this$asProps2.styles, hasChildren = _this$asProps2.children, Children = _this$asProps2.Children;
|
|
96
|
+
return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SInputSearch, _ref5.cn("SInputSearch", {
|
|
96
97
|
"size": size || this.context.size || "m",
|
|
97
98
|
"styles": styles
|
|
98
99
|
}), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref5.cn("Children", {})) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(InputSearch.SearchIcon, null), /* @__PURE__ */ React.createElement(Value, _ref5.cn("Value", _objectSpread({}, assignProps({}, _ref)))), /* @__PURE__ */ React.createElement(InputSearch.Clear, null)));
|
|
99
100
|
}
|
|
100
101
|
}]);
|
|
101
|
-
|
|
102
|
+
return InputSearchRoot2;
|
|
103
|
+
}(Component);
|
|
102
104
|
_defineProperty(InputSearchRoot, "displayName", "InputSearch");
|
|
103
105
|
_defineProperty(InputSearchRoot, "style", style);
|
|
104
106
|
_defineProperty(InputSearchRoot, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -108,27 +110,27 @@ _defineProperty(InputSearchRoot, "defaultProps", {
|
|
|
108
110
|
locale: "en"
|
|
109
111
|
});
|
|
110
112
|
_defineProperty(InputSearchRoot, "contextType", selectContext);
|
|
111
|
-
function
|
|
113
|
+
var SearchIcon = function SearchIcon2(props) {
|
|
112
114
|
var _ref2 = arguments[0], _ref6;
|
|
113
115
|
var SSearchIcon = Input.Addon;
|
|
114
116
|
var styles = props.styles;
|
|
115
|
-
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SSearchIcon, _ref6.cn("SSearchIcon", _objectSpread({}, assignProps({}, _ref2))), /* @__PURE__ */ React.createElement(SearchM, _ref6.cn("SearchM", {})));
|
|
116
|
-
}
|
|
117
|
-
function
|
|
117
|
+
return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSearchIcon, _ref6.cn("SSearchIcon", _objectSpread({}, assignProps({}, _ref2))), /* @__PURE__ */ React.createElement(SearchM, _ref6.cn("SearchM", {})));
|
|
118
|
+
};
|
|
119
|
+
var SearchValue = function SearchValue2(props) {
|
|
118
120
|
var _ref3 = arguments[0], _ref7;
|
|
119
121
|
var SSearchValue = Input.Value;
|
|
120
122
|
var styles = props.styles;
|
|
121
|
-
return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SSearchValue, _ref7.cn("SSearchValue", _objectSpread({}, assignProps({}, _ref3))));
|
|
122
|
-
}
|
|
123
|
-
function
|
|
123
|
+
return _ref7 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSearchValue, _ref7.cn("SSearchValue", _objectSpread({}, assignProps({}, _ref3))));
|
|
124
|
+
};
|
|
125
|
+
var SearchClear = function SearchClear2(props) {
|
|
124
126
|
var _ref4 = arguments[0], _ref8;
|
|
125
127
|
var SSearchClear = ButtonLink;
|
|
126
128
|
var styles = props.styles;
|
|
127
|
-
return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SSearchClear, _ref8.cn("SSearchClear", _objectSpread({}, assignProps({
|
|
129
|
+
return _ref8 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSearchClear, _ref8.cn("SSearchClear", _objectSpread({}, assignProps({
|
|
128
130
|
"addonLeft": CloseM,
|
|
129
131
|
"use": "secondary"
|
|
130
132
|
}, _ref4))));
|
|
131
|
-
}
|
|
133
|
+
};
|
|
132
134
|
var InputSearch = createComponent(InputSearchRoot, {
|
|
133
135
|
SearchIcon,
|
|
134
136
|
Value: SearchValue,
|