@dreamcommerce/aurora 2.6.10-1 → 2.6.10-2
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/build/cjs/packages/aurora/src/components/dropdown/components/select.js +5 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/select.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js +5 -2
- package/build/esm/packages/aurora/src/components/dropdown/components/select.js.map +1 -1
- package/package.json +1 -1
|
@@ -45,15 +45,18 @@ selectedOptions, placeholder, onRemoveOptions, hasCloseIcon }) => {
|
|
|
45
45
|
*/
|
|
46
46
|
const { isOpen, toggleDropdown } = index.useDropdownContext();
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Test
|
|
49
49
|
*/
|
|
50
50
|
const filteredOptions = utilities.filterOptionDuplicatesByProperty(selectedOptions, 'value');
|
|
51
|
+
/**
|
|
52
|
+
* value for display purposes, its texts not actual values from options
|
|
53
|
+
*/
|
|
51
54
|
const value = filteredOptions.map((option) => option.text).join(', ');
|
|
52
55
|
console.log('value', value);
|
|
53
56
|
/**
|
|
54
57
|
* disabled options should have hidden inputs with values rendered
|
|
55
58
|
*/
|
|
56
|
-
const notDisabled =
|
|
59
|
+
const notDisabled = filteredOptions.filter((option) => !option.isDisabled);
|
|
57
60
|
const $hiddenInputs = notDisabled.map((option) => (React__default['default'].createElement("input", { key: option.value, type: "hidden", name: name, value: option.value, disabled: isDisabled, readOnly: isReadonly })));
|
|
58
61
|
use_keyboard_open_close.useKeyboardOpenClose(toggleDropdown, isOpen, ref);
|
|
59
62
|
const handleOnClick = (ev) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -37,15 +37,18 @@ selectedOptions, placeholder, onRemoveOptions, hasCloseIcon }) => {
|
|
|
37
37
|
*/
|
|
38
38
|
const { isOpen, toggleDropdown } = useDropdownContext();
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Test
|
|
41
41
|
*/
|
|
42
42
|
const filteredOptions = filterOptionDuplicatesByProperty(selectedOptions, 'value');
|
|
43
|
+
/**
|
|
44
|
+
* value for display purposes, its texts not actual values from options
|
|
45
|
+
*/
|
|
43
46
|
const value = filteredOptions.map((option) => option.text).join(', ');
|
|
44
47
|
console.log('value', value);
|
|
45
48
|
/**
|
|
46
49
|
* disabled options should have hidden inputs with values rendered
|
|
47
50
|
*/
|
|
48
|
-
const notDisabled =
|
|
51
|
+
const notDisabled = filteredOptions.filter((option) => !option.isDisabled);
|
|
49
52
|
const $hiddenInputs = notDisabled.map((option) => (React.createElement("input", { key: option.value, type: "hidden", name: name, value: option.value, disabled: isDisabled, readOnly: isReadonly })));
|
|
50
53
|
useKeyboardOpenClose(toggleDropdown, isOpen, ref);
|
|
51
54
|
const handleOnClick = (ev) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|