@spark-web/select 1.0.9 → 1.0.12
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.
|
@@ -60,11 +60,11 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
|
|
|
60
60
|
required: required,
|
|
61
61
|
value: value,
|
|
62
62
|
width: "full",
|
|
63
|
-
children: [placeholder
|
|
63
|
+
children: [!value || placeholder ? /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
64
64
|
value: "",
|
|
65
65
|
disabled: true,
|
|
66
66
|
children: placeholder
|
|
67
|
-
}), optionsOrGroups.map(function (optionOrGroup) {
|
|
67
|
+
}) : null, optionsOrGroups.map(function (optionOrGroup) {
|
|
68
68
|
if ('options' in optionOrGroup) {
|
|
69
69
|
return /*#__PURE__*/jsxRuntime.jsx("optgroup", {
|
|
70
70
|
label: optionOrGroup.label,
|
|
@@ -60,11 +60,11 @@ var Select = /*#__PURE__*/react.forwardRef(function (_ref, forwardedRef) {
|
|
|
60
60
|
required: required,
|
|
61
61
|
value: value,
|
|
62
62
|
width: "full",
|
|
63
|
-
children: [placeholder
|
|
63
|
+
children: [!value || placeholder ? /*#__PURE__*/jsxRuntime.jsx("option", {
|
|
64
64
|
value: "",
|
|
65
65
|
disabled: true,
|
|
66
66
|
children: placeholder
|
|
67
|
-
}), optionsOrGroups.map(function (optionOrGroup) {
|
|
67
|
+
}) : null, optionsOrGroups.map(function (optionOrGroup) {
|
|
68
68
|
if ('options' in optionOrGroup) {
|
|
69
69
|
return /*#__PURE__*/jsxRuntime.jsx("optgroup", {
|
|
70
70
|
label: optionOrGroup.label,
|
|
@@ -56,11 +56,11 @@ var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
|
|
|
56
56
|
required: required,
|
|
57
57
|
value: value,
|
|
58
58
|
width: "full",
|
|
59
|
-
children: [placeholder
|
|
59
|
+
children: [!value || placeholder ? /*#__PURE__*/jsx("option", {
|
|
60
60
|
value: "",
|
|
61
61
|
disabled: true,
|
|
62
62
|
children: placeholder
|
|
63
|
-
}), optionsOrGroups.map(function (optionOrGroup) {
|
|
63
|
+
}) : null, optionsOrGroups.map(function (optionOrGroup) {
|
|
64
64
|
if ('options' in optionOrGroup) {
|
|
65
65
|
return /*#__PURE__*/jsx("optgroup", {
|
|
66
66
|
label: optionOrGroup.label,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/select",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/spark-web-select.cjs.js",
|
|
6
6
|
"module": "dist/spark-web-select.esm.js",
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@babel/runtime": "^7.18.9",
|
|
12
12
|
"@emotion/css": "^11.9.0",
|
|
13
|
-
"@spark-web/box": "^1.0.
|
|
14
|
-
"@spark-web/icon": "^1.1
|
|
15
|
-
"@spark-web/text-input": "^2.0.
|
|
16
|
-
"@spark-web/theme": "^3.0.
|
|
13
|
+
"@spark-web/box": "^1.0.9",
|
|
14
|
+
"@spark-web/icon": "^1.2.1",
|
|
15
|
+
"@spark-web/text-input": "^2.0.3",
|
|
16
|
+
"@spark-web/theme": "^3.0.6"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@spark-web/field": "^3.0.
|
|
20
|
-
"@spark-web/utils": "^1.2.
|
|
19
|
+
"@spark-web/field": "^3.0.5",
|
|
20
|
+
"@spark-web/utils": "^1.2.2",
|
|
21
21
|
"@types/react": "^17.0.12",
|
|
22
22
|
"react": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@spark-web/field": "^3.0.
|
|
25
|
+
"@spark-web/field": "^3.0.5",
|
|
26
26
|
"react": ">=17.0.2"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=14"
|
|
30
30
|
}
|
|
31
31
|
}
|