@chekinapp/ui 0.0.114 → 0.0.115
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.cjs +23 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13190,6 +13190,7 @@ function SelectTrigger({
|
|
|
13190
13190
|
invalid,
|
|
13191
13191
|
placeholder,
|
|
13192
13192
|
valueLabel,
|
|
13193
|
+
leftIcon,
|
|
13193
13194
|
onClick,
|
|
13194
13195
|
onKeyDown,
|
|
13195
13196
|
onBlur
|
|
@@ -13213,12 +13214,14 @@ function SelectTrigger({
|
|
|
13213
13214
|
onKeyDown,
|
|
13214
13215
|
onBlur,
|
|
13215
13216
|
className: cn(
|
|
13216
|
-
"relative m-0 box-border flex h-12 w-full cursor-pointer items-center justify-between gap-2 rounded-[6px] border-0
|
|
13217
|
+
"relative m-0 box-border flex h-12 w-full cursor-pointer items-center justify-between gap-2 rounded-[6px] border-0 pr-4 text-left text-[16px] font-medium leading-5 outline-none transition-colors duration-200",
|
|
13218
|
+
leftIcon ? "pl-10" : "pl-4",
|
|
13217
13219
|
isEmpty ? "bg-[var(--empty-field-background)] text-[var(--chekin-color-gray-1)]" : "bg-transparent text-[var(--chekin-color-brand-navy)]",
|
|
13218
13220
|
disabled && !loading && "cursor-not-allowed opacity-50",
|
|
13219
13221
|
loading && "!cursor-progress"
|
|
13220
13222
|
),
|
|
13221
13223
|
children: [
|
|
13224
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
13222
13225
|
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { id: valueId, className: "block min-w-0 flex-1 truncate text-left", children: valueLabel ?? (isOpen ? placeholder : null) }),
|
|
13223
13226
|
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
13224
13227
|
import_lucide_react45.ChevronDown,
|
|
@@ -13268,6 +13271,7 @@ function ComboboxTrigger({
|
|
|
13268
13271
|
onClear,
|
|
13269
13272
|
clearLabel,
|
|
13270
13273
|
leadingContent,
|
|
13274
|
+
leftIcon,
|
|
13271
13275
|
containerClassName,
|
|
13272
13276
|
inputClassName,
|
|
13273
13277
|
hideIndicator,
|
|
@@ -13298,11 +13302,13 @@ function ComboboxTrigger({
|
|
|
13298
13302
|
containerClassName
|
|
13299
13303
|
),
|
|
13300
13304
|
children: [
|
|
13305
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
13301
13306
|
/* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
|
|
13302
13307
|
"div",
|
|
13303
13308
|
{
|
|
13304
13309
|
className: cn(
|
|
13305
|
-
"flex min-w-0 flex-1 items-center gap-2 py-[10px]
|
|
13310
|
+
"flex min-w-0 flex-1 items-center gap-2 py-[10px]",
|
|
13311
|
+
leftIcon ? "pl-10" : "pl-4",
|
|
13306
13312
|
isMulti && "flex-wrap"
|
|
13307
13313
|
),
|
|
13308
13314
|
children: [
|
|
@@ -13864,6 +13870,7 @@ function DefaultControl(props) {
|
|
|
13864
13870
|
clearLabel,
|
|
13865
13871
|
hideIndicator,
|
|
13866
13872
|
autoFocus,
|
|
13873
|
+
leftIcon,
|
|
13867
13874
|
components
|
|
13868
13875
|
} = props;
|
|
13869
13876
|
const Chip = components.MultiValueChip ?? DefaultMultiValueChip;
|
|
@@ -13901,6 +13908,7 @@ function DefaultControl(props) {
|
|
|
13901
13908
|
clearLabel,
|
|
13902
13909
|
hideIndicator,
|
|
13903
13910
|
autoFocus,
|
|
13911
|
+
leftIcon,
|
|
13904
13912
|
leadingContent: isMulti ? selectedOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
13905
13913
|
Chip,
|
|
13906
13914
|
{
|
|
@@ -13931,7 +13939,8 @@ function StaticControl(props) {
|
|
|
13931
13939
|
disabled,
|
|
13932
13940
|
valueLabel,
|
|
13933
13941
|
placeholder,
|
|
13934
|
-
onContainerClick
|
|
13942
|
+
onContainerClick,
|
|
13943
|
+
leftIcon
|
|
13935
13944
|
} = props;
|
|
13936
13945
|
return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
13937
13946
|
SelectTrigger,
|
|
@@ -13949,6 +13958,7 @@ function StaticControl(props) {
|
|
|
13949
13958
|
invalid,
|
|
13950
13959
|
placeholder,
|
|
13951
13960
|
valueLabel,
|
|
13961
|
+
leftIcon,
|
|
13952
13962
|
onClick: onContainerClick,
|
|
13953
13963
|
onKeyDown: () => void 0
|
|
13954
13964
|
}
|
|
@@ -14100,7 +14110,8 @@ function SelectInternal(props, ref) {
|
|
|
14100
14110
|
onInputChange,
|
|
14101
14111
|
searchPosition = "trigger",
|
|
14102
14112
|
menuHeader,
|
|
14103
|
-
onMenuScrollToBottom
|
|
14113
|
+
onMenuScrollToBottom,
|
|
14114
|
+
leftIcon
|
|
14104
14115
|
} = props;
|
|
14105
14116
|
const isSearchInDropdown = searchPosition === "dropdown";
|
|
14106
14117
|
const isMulti = props.isMulti === true;
|
|
@@ -14222,6 +14233,7 @@ function SelectInternal(props, ref) {
|
|
|
14222
14233
|
clearLabel: isMulti ? t("clear_all") : t("clear"),
|
|
14223
14234
|
hideIndicator,
|
|
14224
14235
|
autoFocus,
|
|
14236
|
+
leftIcon,
|
|
14225
14237
|
components
|
|
14226
14238
|
}
|
|
14227
14239
|
),
|
|
@@ -14240,7 +14252,8 @@ function SelectInternal(props, ref) {
|
|
|
14240
14252
|
legend: resolvedLabel,
|
|
14241
14253
|
label: resolvedLabel,
|
|
14242
14254
|
tooltip,
|
|
14243
|
-
onClick: state.handleContainerClick
|
|
14255
|
+
onClick: state.handleContainerClick,
|
|
14256
|
+
labelClassName: leftIcon ? "pl-[28px]" : void 0
|
|
14244
14257
|
}
|
|
14245
14258
|
),
|
|
14246
14259
|
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
|
|
@@ -14995,7 +15008,8 @@ function createCountTrigger(opts) {
|
|
|
14995
15008
|
disabled,
|
|
14996
15009
|
placeholder,
|
|
14997
15010
|
selectedOptions,
|
|
14998
|
-
onContainerClick
|
|
15011
|
+
onContainerClick,
|
|
15012
|
+
leftIcon
|
|
14999
15013
|
} = props;
|
|
15000
15014
|
const count = selectedOptions.length;
|
|
15001
15015
|
const total = totalCount ?? count;
|
|
@@ -15017,12 +15031,14 @@ function createCountTrigger(opts) {
|
|
|
15017
15031
|
disabled: isBlocked,
|
|
15018
15032
|
onClick: onContainerClick,
|
|
15019
15033
|
className: cn(
|
|
15020
|
-
"relative m-0 box-border flex h-12 w-full cursor-pointer items-center justify-between gap-2 rounded-[6px] border-0
|
|
15034
|
+
"relative m-0 box-border flex h-12 w-full cursor-pointer items-center justify-between gap-2 rounded-[6px] border-0 pr-4 text-left text-[16px] font-medium leading-5 outline-none transition-colors duration-200",
|
|
15035
|
+
leftIcon ? "pl-10" : "pl-4",
|
|
15021
15036
|
isEmpty ? "bg-[var(--empty-field-background)] text-[var(--chekin-color-gray-1)]" : "bg-transparent text-[var(--chekin-color-brand-navy)]",
|
|
15022
15037
|
disabled && !loading && "cursor-not-allowed opacity-50",
|
|
15023
15038
|
loading && "!cursor-progress"
|
|
15024
15039
|
),
|
|
15025
15040
|
children: [
|
|
15041
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
15026
15042
|
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { id: valueId, className: "block min-w-0 flex-1 truncate text-left", children: display }),
|
|
15027
15043
|
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
15028
15044
|
import_lucide_react48.ChevronDown,
|