@sikka/hawa 0.8.16-next → 0.8.17-next
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/index.js +5 -2
- package/dist/index.mjs +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4540,7 +4540,7 @@ var Select = function(props) {
|
|
|
4540
4540
|
return "hawa-text-foreground";
|
|
4541
4541
|
},
|
|
4542
4542
|
indicatorsContainer: function() {
|
|
4543
|
-
return cn("
|
|
4543
|
+
return cn("hawa-cursor-pointer hawa-text-muted-foreground", props.hideIndicator ? "hawa-invisible" : "hawa-px-1");
|
|
4544
4544
|
}
|
|
4545
4545
|
},
|
|
4546
4546
|
unstyled: true,
|
|
@@ -4555,12 +4555,15 @@ var Select = function(props) {
|
|
|
4555
4555
|
onChange: function(newValue, action) {
|
|
4556
4556
|
return props.onChange(newValue, action);
|
|
4557
4557
|
},
|
|
4558
|
-
components: {
|
|
4558
|
+
components: props.hideIndicator ? {
|
|
4559
4559
|
Option: Option,
|
|
4560
4560
|
Menu: Menu,
|
|
4561
4561
|
IndicatorsContainer: function() {
|
|
4562
4562
|
return null;
|
|
4563
4563
|
}
|
|
4564
|
+
} : {
|
|
4565
|
+
Option: Option,
|
|
4566
|
+
Menu: Menu
|
|
4564
4567
|
},
|
|
4565
4568
|
getOptionLabel: props.getOptionLabel
|
|
4566
4569
|
}) : /* @__PURE__ */ import_react18.default.createElement(import_creatable.default, {
|
package/dist/index.mjs
CHANGED
|
@@ -4191,8 +4191,8 @@ var Select = (props) => {
|
|
|
4191
4191
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
|
4192
4192
|
singleValue: () => "hawa-text-foreground",
|
|
4193
4193
|
indicatorsContainer: () => cn(
|
|
4194
|
-
"
|
|
4195
|
-
props.hideIndicator
|
|
4194
|
+
"hawa-cursor-pointer hawa-text-muted-foreground",
|
|
4195
|
+
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
|
4196
4196
|
)
|
|
4197
4197
|
},
|
|
4198
4198
|
unstyled: true,
|
|
@@ -4205,7 +4205,15 @@ var Select = (props) => {
|
|
|
4205
4205
|
placeholder: props.placeholder,
|
|
4206
4206
|
autoFocus: true,
|
|
4207
4207
|
onChange: (newValue, action) => props.onChange(newValue, action),
|
|
4208
|
-
components:
|
|
4208
|
+
components: props.hideIndicator ? {
|
|
4209
|
+
Option,
|
|
4210
|
+
Menu,
|
|
4211
|
+
IndicatorsContainer: () => null
|
|
4212
|
+
// Set to null if phoneCode is true, otherwise undefined
|
|
4213
|
+
} : {
|
|
4214
|
+
Option,
|
|
4215
|
+
Menu
|
|
4216
|
+
},
|
|
4209
4217
|
getOptionLabel: props.getOptionLabel
|
|
4210
4218
|
}
|
|
4211
4219
|
)
|