@chekinapp/ui 0.0.107 → 0.0.108
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 +47 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -50
- package/dist/index.d.ts +50 -50
- package/dist/index.js +36 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -94,22 +94,14 @@ __export(index_exports, {
|
|
|
94
94
|
CopyString: () => CopyString,
|
|
95
95
|
Counter: () => Counter,
|
|
96
96
|
CounterSize: () => CounterSize,
|
|
97
|
+
CreatableMultiSelect: () => CreatableMultiSelect,
|
|
97
98
|
CustomCheckboxDropdownGroup: () => CustomCheckboxDropdownGroup,
|
|
98
99
|
DEFAULT_DISPLAY_FORMAT: () => DEFAULT_DISPLAY_FORMAT,
|
|
99
100
|
DEVICE_BREAKPOINTS: () => DEVICE_BREAKPOINTS,
|
|
100
|
-
DashboardCreatableMultiSelect: () => DashboardCreatableMultiSelect,
|
|
101
|
-
DashboardDateRangePicker: () => DashboardDateRangePicker,
|
|
102
|
-
DashboardDatepicker: () => DashboardDatepicker,
|
|
103
|
-
DashboardFileInput: () => DashboardFileInput,
|
|
104
|
-
DashboardInfiniteScrollSelect: () => DashboardInfiniteScrollSelect,
|
|
105
|
-
DashboardInput: () => DashboardInput,
|
|
106
|
-
DashboardMultiSelect: () => DashboardMultiSelect,
|
|
107
|
-
DashboardSelect: () => DashboardSelect,
|
|
108
|
-
DashboardSelectIconsBox: () => DashboardSelectIconsBox,
|
|
109
|
-
DashboardTextarea: () => DashboardTextarea,
|
|
110
|
-
DashboardTimePicker: () => DashboardTimePicker,
|
|
111
101
|
DataTable: () => DataTable,
|
|
102
|
+
DateRangePicker: () => DateRangePicker,
|
|
112
103
|
DateTableFilter: () => DateTableFilter,
|
|
104
|
+
Datepicker: () => Datepicker,
|
|
113
105
|
DebouncedSearchInput: () => DebouncedSearchInput,
|
|
114
106
|
DefaultSelectTrigger: () => DefaultSelectTrigger,
|
|
115
107
|
Dialog: () => Dialog,
|
|
@@ -162,6 +154,7 @@ __export(index_exports, {
|
|
|
162
154
|
ExpandableContent: () => ExpandableContent,
|
|
163
155
|
ExternalLink: () => ExternalLink,
|
|
164
156
|
FieldErrorMessage: () => FieldErrorMessage,
|
|
157
|
+
FileInput: () => FileInput,
|
|
165
158
|
FileInputButton: () => FileInputButton,
|
|
166
159
|
FormBox: () => FormBox,
|
|
167
160
|
FormBoxContent: () => Content5,
|
|
@@ -177,7 +170,9 @@ __export(index_exports, {
|
|
|
177
170
|
IconsDropdown: () => IconsDropdown,
|
|
178
171
|
Image: () => Image2,
|
|
179
172
|
ImageFullScreenView: () => ImageFullScreenView,
|
|
173
|
+
InfiniteScrollSelect: () => InfiniteScrollSelect,
|
|
180
174
|
InfoBox: () => InfoBox,
|
|
175
|
+
Input: () => Input,
|
|
181
176
|
InputOTP: () => InputOTP,
|
|
182
177
|
InputOTPGroup: () => InputOTPGroup,
|
|
183
178
|
InputOTPSeparator: () => InputOTPSeparator,
|
|
@@ -207,6 +202,7 @@ __export(index_exports, {
|
|
|
207
202
|
Modal: () => Modal,
|
|
208
203
|
ModalButton: () => ModalButton,
|
|
209
204
|
ModalLoader: () => ModalLoader,
|
|
205
|
+
MultiSelect: () => MultiSelect,
|
|
210
206
|
NumberedList: () => NumberedList,
|
|
211
207
|
OverlayLoader: () => OverlayLoader,
|
|
212
208
|
Pagination: () => Pagination,
|
|
@@ -236,6 +232,8 @@ __export(index_exports, {
|
|
|
236
232
|
SectionGroup: () => SectionGroup,
|
|
237
233
|
SectionTag: () => SectionTag,
|
|
238
234
|
SectionTagColors: () => SectionTagColors,
|
|
235
|
+
Select: () => Select,
|
|
236
|
+
SelectIconsBox: () => SelectIconsBox,
|
|
239
237
|
Separator: () => Separator3,
|
|
240
238
|
Sheet: () => Sheet,
|
|
241
239
|
SheetClose: () => SheetClose,
|
|
@@ -300,7 +298,9 @@ __export(index_exports, {
|
|
|
300
298
|
TabsContent: () => TabsContent,
|
|
301
299
|
TabsList: () => TabsList,
|
|
302
300
|
TabsTrigger: () => TabsTrigger,
|
|
301
|
+
Textarea: () => Textarea,
|
|
303
302
|
ThreeDotsLoader: () => ThreeDotsLoader,
|
|
303
|
+
TimePicker: () => TimePicker,
|
|
304
304
|
Timeline: () => Timeline,
|
|
305
305
|
TimelineConnector: () => TimelineConnector,
|
|
306
306
|
TimelineContent: () => TimelineContent,
|
|
@@ -12430,7 +12430,7 @@ var checkIfEmpty = ({
|
|
|
12430
12430
|
return !value && !defaultValue;
|
|
12431
12431
|
};
|
|
12432
12432
|
var checkInputValueIfEmpty = (value) => value.length === 0;
|
|
12433
|
-
var
|
|
12433
|
+
var Input = React43.forwardRef(
|
|
12434
12434
|
({
|
|
12435
12435
|
value,
|
|
12436
12436
|
defaultValue,
|
|
@@ -12688,7 +12688,7 @@ var DashboardInput = React43.forwardRef(
|
|
|
12688
12688
|
);
|
|
12689
12689
|
}
|
|
12690
12690
|
);
|
|
12691
|
-
|
|
12691
|
+
Input.displayName = "Input";
|
|
12692
12692
|
|
|
12693
12693
|
// src/dashboard/select/Select.tsx
|
|
12694
12694
|
var React47 = __toESM(require("react"), 1);
|
|
@@ -13127,7 +13127,7 @@ function useSelectSearch({
|
|
|
13127
13127
|
|
|
13128
13128
|
// src/dashboard/select/Select.tsx
|
|
13129
13129
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
13130
|
-
function
|
|
13130
|
+
function SelectInternal({
|
|
13131
13131
|
options = [],
|
|
13132
13132
|
value,
|
|
13133
13133
|
onChange,
|
|
@@ -13357,8 +13357,8 @@ function DashboardSelectInternal({
|
|
|
13357
13357
|
}
|
|
13358
13358
|
);
|
|
13359
13359
|
}
|
|
13360
|
-
var
|
|
13361
|
-
|
|
13360
|
+
var Select = React47.forwardRef(
|
|
13361
|
+
SelectInternal
|
|
13362
13362
|
);
|
|
13363
13363
|
|
|
13364
13364
|
// src/dashboard/multi-select/MultiSelect.tsx
|
|
@@ -13398,7 +13398,7 @@ function MultiSelectChip({
|
|
|
13398
13398
|
// src/dashboard/multi-select/MultiSelect.tsx
|
|
13399
13399
|
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
13400
13400
|
var isValueSelected = (selected, option) => selected.some((item) => item.value === option.value);
|
|
13401
|
-
function
|
|
13401
|
+
function MultiSelectInternal({
|
|
13402
13402
|
options = [],
|
|
13403
13403
|
value,
|
|
13404
13404
|
onChange,
|
|
@@ -13800,16 +13800,16 @@ function DashboardMultiSelectInternal({
|
|
|
13800
13800
|
}
|
|
13801
13801
|
);
|
|
13802
13802
|
}
|
|
13803
|
-
var
|
|
13804
|
-
|
|
13803
|
+
var MultiSelect = React48.forwardRef(
|
|
13804
|
+
MultiSelectInternal
|
|
13805
13805
|
);
|
|
13806
13806
|
|
|
13807
13807
|
// src/dashboard/creatable-multi-select/CreatableMultiSelect.tsx
|
|
13808
13808
|
var React49 = __toESM(require("react"), 1);
|
|
13809
13809
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
13810
|
-
var
|
|
13811
|
-
function
|
|
13812
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
13810
|
+
var CreatableMultiSelect = React49.forwardRef(
|
|
13811
|
+
function CreatableMultiSelect2(props, ref) {
|
|
13812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(MultiSelect, { ref, ...props, isCreatable: true });
|
|
13813
13813
|
}
|
|
13814
13814
|
);
|
|
13815
13815
|
|
|
@@ -13915,7 +13915,7 @@ var DEFAULT_ITEM_HEIGHT = 60;
|
|
|
13915
13915
|
var DEFAULT_LIST_HEIGHT = 322;
|
|
13916
13916
|
var DEFAULT_OVERSCAN = 5;
|
|
13917
13917
|
var DEFAULT_LOAD_MORE_THRESHOLD = 5;
|
|
13918
|
-
function
|
|
13918
|
+
function InfiniteScrollSelectInternal({
|
|
13919
13919
|
options = [],
|
|
13920
13920
|
value,
|
|
13921
13921
|
onChange,
|
|
@@ -14194,8 +14194,8 @@ function DashboardInfiniteScrollSelectInternal({
|
|
|
14194
14194
|
}
|
|
14195
14195
|
);
|
|
14196
14196
|
}
|
|
14197
|
-
var
|
|
14198
|
-
|
|
14197
|
+
var InfiniteScrollSelect = React50.forwardRef(
|
|
14198
|
+
InfiniteScrollSelectInternal
|
|
14199
14199
|
);
|
|
14200
14200
|
|
|
14201
14201
|
// src/dashboard/textarea/Textarea.tsx
|
|
@@ -14209,8 +14209,8 @@ function getEmptyState(empty, value, defaultValue) {
|
|
|
14209
14209
|
if (value !== void 0) return !String(value);
|
|
14210
14210
|
return !defaultValue;
|
|
14211
14211
|
}
|
|
14212
|
-
var
|
|
14213
|
-
function
|
|
14212
|
+
var Textarea = React51.forwardRef(
|
|
14213
|
+
function Textarea2({
|
|
14214
14214
|
className,
|
|
14215
14215
|
textareaClassName,
|
|
14216
14216
|
label,
|
|
@@ -15007,8 +15007,8 @@ function dateFromParts(day, monthIndex, year) {
|
|
|
15007
15007
|
if (!isValidCalendarDate(yearNum, monthIndex, dayNum)) return null;
|
|
15008
15008
|
return new Date(yearNum, monthIndex, dayNum);
|
|
15009
15009
|
}
|
|
15010
|
-
var
|
|
15011
|
-
function
|
|
15010
|
+
var Datepicker = React53.forwardRef(
|
|
15011
|
+
function Datepicker2({
|
|
15012
15012
|
label,
|
|
15013
15013
|
value,
|
|
15014
15014
|
defaultValue,
|
|
@@ -15986,7 +15986,7 @@ function DateRangePopover({
|
|
|
15986
15986
|
|
|
15987
15987
|
// src/dashboard/date-range-picker/DateRangePicker.tsx
|
|
15988
15988
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
15989
|
-
var
|
|
15989
|
+
var DateRangePicker = React57.forwardRef(function DateRangePicker2({
|
|
15990
15990
|
label,
|
|
15991
15991
|
value: externalValue,
|
|
15992
15992
|
defaultValue,
|
|
@@ -16423,14 +16423,14 @@ var FORMAT_SETTINGS = {
|
|
|
16423
16423
|
},
|
|
16424
16424
|
hours: { intervalUnit: "H", interval: 1, minTime: "00:00", maxTime: "23:00" }
|
|
16425
16425
|
};
|
|
16426
|
-
var
|
|
16427
|
-
function
|
|
16426
|
+
var TimePicker = React59.forwardRef(
|
|
16427
|
+
function TimePicker2({ format: formatName = "time", timeSettings, options, ...selectProps }, ref) {
|
|
16428
16428
|
const resolvedOptions = React59.useMemo(() => {
|
|
16429
16429
|
if (options) return options;
|
|
16430
16430
|
const settings = timeSettings ?? FORMAT_SETTINGS[formatName];
|
|
16431
16431
|
return buildOptions(settings);
|
|
16432
16432
|
}, [formatName, options, timeSettings]);
|
|
16433
|
-
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
16433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(Select, { ref, ...selectProps, options: resolvedOptions });
|
|
16434
16434
|
}
|
|
16435
16435
|
);
|
|
16436
16436
|
|
|
@@ -16442,8 +16442,8 @@ var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
|
16442
16442
|
function defaultDownload(url) {
|
|
16443
16443
|
window.open(url, "_blank", "noopener,noreferrer");
|
|
16444
16444
|
}
|
|
16445
|
-
var
|
|
16446
|
-
function
|
|
16445
|
+
var FileInput = React60.forwardRef(
|
|
16446
|
+
function FileInput2({
|
|
16447
16447
|
label,
|
|
16448
16448
|
value,
|
|
16449
16449
|
onChange,
|
|
@@ -16612,7 +16612,7 @@ var DashboardFileInput = React60.forwardRef(
|
|
|
16612
16612
|
// src/dashboard/select-icons-box/SelectIconsBox.tsx
|
|
16613
16613
|
var React61 = __toESM(require("react"), 1);
|
|
16614
16614
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
16615
|
-
function
|
|
16615
|
+
function SelectIconsBox({
|
|
16616
16616
|
children,
|
|
16617
16617
|
icons,
|
|
16618
16618
|
renderIcon,
|
|
@@ -19125,22 +19125,14 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19125
19125
|
CopyString,
|
|
19126
19126
|
Counter,
|
|
19127
19127
|
CounterSize,
|
|
19128
|
+
CreatableMultiSelect,
|
|
19128
19129
|
CustomCheckboxDropdownGroup,
|
|
19129
19130
|
DEFAULT_DISPLAY_FORMAT,
|
|
19130
19131
|
DEVICE_BREAKPOINTS,
|
|
19131
|
-
DashboardCreatableMultiSelect,
|
|
19132
|
-
DashboardDateRangePicker,
|
|
19133
|
-
DashboardDatepicker,
|
|
19134
|
-
DashboardFileInput,
|
|
19135
|
-
DashboardInfiniteScrollSelect,
|
|
19136
|
-
DashboardInput,
|
|
19137
|
-
DashboardMultiSelect,
|
|
19138
|
-
DashboardSelect,
|
|
19139
|
-
DashboardSelectIconsBox,
|
|
19140
|
-
DashboardTextarea,
|
|
19141
|
-
DashboardTimePicker,
|
|
19142
19132
|
DataTable,
|
|
19133
|
+
DateRangePicker,
|
|
19143
19134
|
DateTableFilter,
|
|
19135
|
+
Datepicker,
|
|
19144
19136
|
DebouncedSearchInput,
|
|
19145
19137
|
DefaultSelectTrigger,
|
|
19146
19138
|
Dialog,
|
|
@@ -19193,6 +19185,7 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19193
19185
|
ExpandableContent,
|
|
19194
19186
|
ExternalLink,
|
|
19195
19187
|
FieldErrorMessage,
|
|
19188
|
+
FileInput,
|
|
19196
19189
|
FileInputButton,
|
|
19197
19190
|
FormBox,
|
|
19198
19191
|
FormBoxContent,
|
|
@@ -19208,7 +19201,9 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19208
19201
|
IconsDropdown,
|
|
19209
19202
|
Image,
|
|
19210
19203
|
ImageFullScreenView,
|
|
19204
|
+
InfiniteScrollSelect,
|
|
19211
19205
|
InfoBox,
|
|
19206
|
+
Input,
|
|
19212
19207
|
InputOTP,
|
|
19213
19208
|
InputOTPGroup,
|
|
19214
19209
|
InputOTPSeparator,
|
|
@@ -19238,6 +19233,7 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19238
19233
|
Modal,
|
|
19239
19234
|
ModalButton,
|
|
19240
19235
|
ModalLoader,
|
|
19236
|
+
MultiSelect,
|
|
19241
19237
|
NumberedList,
|
|
19242
19238
|
OverlayLoader,
|
|
19243
19239
|
Pagination,
|
|
@@ -19267,6 +19263,8 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19267
19263
|
SectionGroup,
|
|
19268
19264
|
SectionTag,
|
|
19269
19265
|
SectionTagColors,
|
|
19266
|
+
Select,
|
|
19267
|
+
SelectIconsBox,
|
|
19270
19268
|
Separator,
|
|
19271
19269
|
Sheet,
|
|
19272
19270
|
SheetClose,
|
|
@@ -19331,7 +19329,9 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
19331
19329
|
TabsContent,
|
|
19332
19330
|
TabsList,
|
|
19333
19331
|
TabsTrigger,
|
|
19332
|
+
Textarea,
|
|
19334
19333
|
ThreeDotsLoader,
|
|
19334
|
+
TimePicker,
|
|
19335
19335
|
Timeline,
|
|
19336
19336
|
TimelineConnector,
|
|
19337
19337
|
TimelineContent,
|