@alphakits/ui 2.5.10 → 2.5.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.
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  export type Props = {
3
- placeholder: string;
3
+ placeholder?: string;
4
4
  value?: string;
5
5
  onChange: (value: string) => void;
6
6
  onClear: () => void;
package/dist/index.d.ts CHANGED
@@ -68,6 +68,7 @@ export * from './radio-group';
68
68
  export * from './radio-groups';
69
69
  export * from './section-wrapper';
70
70
  export * from './select';
71
+ export * from './settings-hint';
71
72
  export * from './sidepanel';
72
73
  export * from './sidepanel-header';
73
74
  export * from './skeleton';
package/dist/index.js CHANGED
@@ -8,12 +8,12 @@ import { BottomSheet as d } from "./bottom-sheet/component.js";
8
8
  import { Box as c, Radiuses as T, Spaces as O } from "./box/component.js";
9
9
  import { Button as I } from "./button/component.js";
10
10
  import { ButtonArrow as C } from "./button-arrow/component.js";
11
- import { Calendar as k } from "./calendar/component.js";
12
- import { useCalendar as M } from "./calendar/use-calendar.js";
11
+ import { Calendar as g } from "./calendar/component.js";
12
+ import { useCalendar as E } from "./calendar/use-calendar.js";
13
13
  import { usePeriod as P } from "./calendar/use-period.js";
14
14
  import { DAYS_IN_WEEK as F, MONTHS_IN_YEAR as R, SUNDAY_INDEX as y, dateInLimits as B, limitDate as L, monthName as b, russianWeekDay as w } from "./calendar/utils.js";
15
15
  import { CalendarInput as N } from "./calendar-input/component.js";
16
- import { DATE_FORMAT as v, DATE_MASK as G, IS_BROWSER as H, NATIVE_DATE_FORMAT as U, SUPPORTS_INPUT_TYPE_DATE as q, isCompleteDateInput as z, isInputDateSupported as K, parseDateString as V } from "./calendar-input/utils.js";
16
+ import { DATE_FORMAT as H, DATE_MASK as v, IS_BROWSER as G, NATIVE_DATE_FORMAT as U, SUPPORTS_INPUT_TYPE_DATE as q, isCompleteDateInput as z, isInputDateSupported as K, parseDateString as V } from "./calendar-input/utils.js";
17
17
  import { Card as J } from "./card/component.js";
18
18
  import { Cell as Q } from "./cell/component.js";
19
19
  import { Checkbox as $ } from "./checkbox/component.js";
@@ -27,15 +27,15 @@ import { FormattedDate as co } from "./date/component.js";
27
27
  import { DateSwitcher as Oo } from "./date-switcher/component.js";
28
28
  import { DecoratedItem as Io } from "./decorated-item/component.js";
29
29
  import { Divider as Co } from "./divider/component.js";
30
- import { Dot as ko } from "./dot/component.js";
31
- import { EmptyPage as Mo } from "./empty-page/component.js";
30
+ import { Dot as go } from "./dot/component.js";
31
+ import { EmptyPage as Eo } from "./empty-page/component.js";
32
32
  import { FilterTag as Po } from "./filter-tag/component.js";
33
33
  import { Flex as Fo } from "./flex/component.js";
34
34
  import { FlexColumns as yo } from "./flex-columns/component.js";
35
35
  import { Footer as Lo } from "./footer/component.js";
36
36
  import { FiltersForm as wo } from "./form/templates/filters-form/index.js";
37
37
  import { FormControl as No } from "./form-control/component.js";
38
- import { ErrorMessage as vo, FastField as Go, Field as Ho, FieldArray as Uo, Form as qo, Formik as zo, connect as Ko, useField as Vo, useFormik as jo, useFormikContext as Jo, withFormik as Xo } from "formik";
38
+ import { ErrorMessage as Ho, FastField as vo, Field as Go, FieldArray as Uo, Form as qo, Formik as zo, connect as Ko, useField as Vo, useFormik as jo, useFormikContext as Jo, withFormik as Xo } from "formik";
39
39
  import { Col as Zo, Grid as $o, Row as or } from "./grid/component.js";
40
40
  import { HeaderSearch as er } from "./header-search/component.js";
41
41
  import { useCrudFormRequests as pr } from "./hooks/use-crud-form-requests/index.js";
@@ -48,16 +48,16 @@ import { Image as cr } from "./image/component.js";
48
48
  import { textSizes as Or } from "./image/types.js";
49
49
  import { ImageGallery as Ir } from "./image-gallery/component.js";
50
50
  import { ImageUploader as Cr } from "./image-uploader/component.js";
51
- import { InfoBlockHeader as kr } from "./info-block-header/component.js";
52
- import { InfoBlockItem as Mr } from "./info-block-item/component.js";
51
+ import { InfoBlockHeader as gr } from "./info-block-header/component.js";
52
+ import { InfoBlockItem as Er } from "./info-block-item/component.js";
53
53
  import { InfoBlockWrapper as Pr } from "./info-block-wrapper/component.js";
54
54
  import { Input as Fr } from "./input/component.js";
55
55
  import { InputAutocomplete as yr } from "./input-autocomplete/component.js";
56
56
  import { InputGhost as Lr } from "./input-ghost/component.js";
57
57
  import { Link as wr } from "./link/component.js";
58
58
  import { ListAllert as Nr } from "./list-allert/component.js";
59
- import { Loader as vr } from "./loader/component.js";
60
- import { MaskedInput as Hr, PLACEHOLDER_CHAR as Ur } from "./masked-input/component.js";
59
+ import { Loader as Hr } from "./loader/component.js";
60
+ import { MaskedInput as Gr, PLACEHOLDER_CHAR as Ur } from "./masked-input/component.js";
61
61
  import { Menu as zr } from "./menu/component.js";
62
62
  import { Message as Vr } from "./message/component.js";
63
63
  import { ModalContext as Jr, ModalProvider as Xr } from "./modal/context.js";
@@ -74,60 +74,61 @@ import { Popover as ce } from "./popover/component.js";
74
74
  import { Portal as Oe } from "./portal/component.js";
75
75
  import { ProgressBar as Ie } from "./progress-bar/component.js";
76
76
  import { ProgressIndex as Ce } from "./progress-index/component.js";
77
- import { Radio as ke } from "./radio/component.js";
78
- import { RadioGroup as Me } from "./radio-group/component.js";
77
+ import { Radio as ge } from "./radio/component.js";
78
+ import { RadioGroup as Ee } from "./radio-group/component.js";
79
79
  import { RadioGroups as Pe } from "./radio-groups/component.js";
80
80
  import { SectionWrapper as Fe } from "./section-wrapper/component.js";
81
81
  import { Select as ye } from "./select/component.js";
82
82
  import { Arrow as Le } from "./select/components/arrow/component.js";
83
83
  import { BaseSelect as we } from "./select/components/base-select/component.js";
84
84
  import { SelectField as Ne } from "./select/components/field/component.js";
85
- import { Optgroup as ve } from "./select/components/optgroup/component.js";
86
- import { Option as He } from "./select/components/option/component.js";
85
+ import { Optgroup as He } from "./select/components/optgroup/component.js";
86
+ import { Option as Ge } from "./select/components/option/component.js";
87
87
  import { OptionsList as qe } from "./select/components/options-list/component.js";
88
88
  import { VirtualOptionsList as Ke } from "./select/components/virtual-options-list/component.js";
89
89
  import { useLazyLoading as je } from "./select/presets/use-lazy-loading/index.js";
90
90
  import { useSelectWithLoading as Xe } from "./select/presets/use-select-with-loading/hook.js";
91
91
  import { convertToOptions as Ze, isGroup as $e, isOptionShape as ot, joinOptions as rt, lastIndexOf as et, processOptions as tt, useVisibleOptions as pt } from "./select/utils.js";
92
- import { Sidepanel as ft } from "./sidepanel/component.js";
93
- import { SidepanelHeader as xt } from "./sidepanel-header/component.js";
94
- import { Skeleton as it } from "./skeleton/component.js";
95
- import { Space as ut } from "./space/component.js";
96
- import { Spinner as dt } from "./spinner/component.js";
97
- import { Stack as ct } from "./stack/component.js";
98
- import { StackingContext as Ot, stackingOrder as ht } from "./stack/context.js";
99
- import { Status as At } from "./status/component.js";
100
- import { SteppedProgressBar as Dt, useSteps as kt } from "./stepped-progress-bar/index.js";
101
- import { Sticker as Mt } from "./sticker/component.js";
102
- import { SuffixInput as Pt } from "./suffix-input/component.js";
103
- import { SuperListHeader as Ft } from "./super-list-header/component.js";
104
- import { SuperListItem as yt } from "./super-list-item/component.js";
105
- import { Switch as Lt } from "./switch/component.js";
106
- import { Table as wt } from "./table/component.js";
107
- import { TableCell as Nt } from "./table/components/cell/component.js";
108
- import { TableStatus as vt } from "./table-status/component.js";
109
- import { Tag as Ht } from "./tag/component.js";
110
- import { TagsList as qt } from "./tags-list/component.js";
111
- import { Textarea as Kt } from "./textarea/component.js";
112
- import { LOACAL_STORAGE_THEME_KEY as jt, STYLE_TAG_ID as Jt, THEME as Xt, THEME_DATA_ATTR as Qt, ThemeProvider as Zt, useTheme as $t } from "./theme-provider/component.js";
113
- import { defaultThemes as rp } from "./theme-provider/default-themes.js";
114
- import { Toast as tp } from "./toast/component.js";
115
- import { ToastNotifier as mp } from "./toast-notifier/component.js";
116
- import { ToastPlate as ap } from "./toast-plate/component.js";
117
- import { Tooltip as sp } from "./tooltip/component.js";
118
- import { Typography as np } from "./typography/component.js";
119
- import { add as lp, addDays as dp, addMonths as Sp, addYears as cp, eachDayOfInterval as Tp, eachMonthOfInterval as Op, eachYearOfInterval as hp, endOfDay as Ip, endOfISOWeek as Ap, endOfWeek as Cp, endOfYear as Dp, format as kp, isAfter as Ep, isBefore as Mp, isEqual as gp, isLastDayOfMonth as Pp, isSameDay as _p, isSameMonth as Fp, isSameYear as Rp, isThisMonth as yp, isThisYear as Bp, isToday as Lp, isWithinInterval as bp, lastDayOfMonth as wp, max as Wp, min as Np, parse as Yp, parseISO as vp, startOfDay as Gp, startOfISOWeek as Hp, startOfMonth as Up, startOfWeek as qp, startOfYear as zp, subDays as Kp, subMonths as Vp, subWeeks as jp, subYears as Jp, weekDaysShort as Xp } from "./utils/date/index.js";
120
- import { debounce as Zp } from "./utils/debounce.js";
121
- import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as om, THINSP as rm, formatAmount as em, isCurrencyFirst as tm } from "./utils/format-amount/util.js";
122
- import { formatDate as mm, locales as fm } from "./utils/format-date/index.js";
123
- import { safeStringify as xm } from "./utils/safe-stringify.js";
124
- import { showCompactSuccess as im, showError as nm, showSuccess as um } from "./utils/show-toast/index.js";
125
- import { splitAmount as dm } from "./utils/split-amount/util.js";
126
- import { capitalize as cm } from "./utils/string.js";
127
- import { WelcomeContainer as Om } from "./welcome-layout/component.js";
128
- import { withSuffix as Im } from "./with-suffix/component.js";
92
+ import { SettingsHint as ft } from "./settings-hint/component.js";
93
+ import { Sidepanel as xt } from "./sidepanel/component.js";
94
+ import { SidepanelHeader as it } from "./sidepanel-header/component.js";
95
+ import { Skeleton as ut } from "./skeleton/component.js";
96
+ import { Space as dt } from "./space/component.js";
97
+ import { Spinner as ct } from "./spinner/component.js";
98
+ import { Stack as Ot } from "./stack/component.js";
99
+ import { StackingContext as It, stackingOrder as At } from "./stack/context.js";
100
+ import { Status as Dt } from "./status/component.js";
101
+ import { SteppedProgressBar as kt, useSteps as Et } from "./stepped-progress-bar/index.js";
102
+ import { Sticker as Pt } from "./sticker/component.js";
103
+ import { SuffixInput as Ft } from "./suffix-input/component.js";
104
+ import { SuperListHeader as yt } from "./super-list-header/component.js";
105
+ import { SuperListItem as Lt } from "./super-list-item/component.js";
106
+ import { Switch as wt } from "./switch/component.js";
107
+ import { Table as Nt } from "./table/component.js";
108
+ import { TableCell as Ht } from "./table/components/cell/component.js";
109
+ import { TableStatus as Gt } from "./table-status/component.js";
110
+ import { Tag as qt } from "./tag/component.js";
111
+ import { TagsList as Kt } from "./tags-list/component.js";
112
+ import { Textarea as jt } from "./textarea/component.js";
113
+ import { LOACAL_STORAGE_THEME_KEY as Xt, STYLE_TAG_ID as Qt, THEME as Zt, THEME_DATA_ATTR as $t, ThemeProvider as op, useTheme as rp } from "./theme-provider/component.js";
114
+ import { defaultThemes as tp } from "./theme-provider/default-themes.js";
115
+ import { Toast as mp } from "./toast/component.js";
116
+ import { ToastNotifier as ap } from "./toast-notifier/component.js";
117
+ import { ToastPlate as sp } from "./toast-plate/component.js";
118
+ import { Tooltip as np } from "./tooltip/component.js";
119
+ import { Typography as lp } from "./typography/component.js";
120
+ import { add as Sp, addDays as cp, addMonths as Tp, addYears as Op, eachDayOfInterval as hp, eachMonthOfInterval as Ip, eachYearOfInterval as Ap, endOfDay as Cp, endOfISOWeek as Dp, endOfWeek as gp, endOfYear as kp, format as Ep, isAfter as Mp, isBefore as Pp, isEqual as _p, isLastDayOfMonth as Fp, isSameDay as Rp, isSameMonth as yp, isSameYear as Bp, isThisMonth as Lp, isThisYear as bp, isToday as wp, isWithinInterval as Wp, lastDayOfMonth as Np, max as Yp, min as Hp, parse as vp, parseISO as Gp, startOfDay as Up, startOfISOWeek as qp, startOfMonth as zp, startOfWeek as Kp, startOfYear as Vp, subDays as jp, subMonths as Jp, subWeeks as Xp, subYears as Qp, weekDaysShort as Zp } from "./utils/date/index.js";
121
+ import { debounce as om } from "./utils/debounce.js";
122
+ import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as em, THINSP as tm, formatAmount as pm, isCurrencyFirst as mm } from "./utils/format-amount/util.js";
123
+ import { formatDate as am, locales as xm } from "./utils/format-date/index.js";
124
+ import { safeStringify as im } from "./utils/safe-stringify.js";
125
+ import { showCompactSuccess as um, showError as lm, showSuccess as dm } from "./utils/show-toast/index.js";
126
+ import { splitAmount as cm } from "./utils/split-amount/util.js";
127
+ import { capitalize as Om } from "./utils/string.js";
128
+ import { WelcomeContainer as Im } from "./welcome-layout/component.js";
129
+ import { withSuffix as Cm } from "./with-suffix/component.js";
129
130
  export {
130
- om as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
131
+ em as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
131
132
  e as Amount,
132
133
  p as AmountInput,
133
134
  Le as Arrow,
@@ -140,7 +141,7 @@ export {
140
141
  c as Box,
141
142
  I as Button,
142
143
  C as ButtonArrow,
143
- k as Calendar,
144
+ g as Calendar,
144
145
  N as CalendarInput,
145
146
  J as Card,
146
147
  Q as Cell,
@@ -152,17 +153,17 @@ export {
152
153
  ao as Collapse,
153
154
  so as ConfirmPopup,
154
155
  lo as CopyButton,
155
- v as DATE_FORMAT,
156
- G as DATE_MASK,
156
+ H as DATE_FORMAT,
157
+ v as DATE_MASK,
157
158
  F as DAYS_IN_WEEK,
158
159
  Oo as DateSwitcher,
159
160
  Io as DecoratedItem,
160
161
  Co as Divider,
161
- ko as Dot,
162
- Mo as EmptyPage,
163
- vo as ErrorMessage,
164
- Go as FastField,
165
- Ho as Field,
162
+ go as Dot,
163
+ Eo as EmptyPage,
164
+ Ho as ErrorMessage,
165
+ vo as FastField,
166
+ Go as Field,
166
167
  Uo as FieldArray,
167
168
  Po as FilterTag,
168
169
  wo as FiltersForm,
@@ -175,24 +176,24 @@ export {
175
176
  zo as Formik,
176
177
  $o as Grid,
177
178
  er as HeaderSearch,
178
- H as IS_BROWSER,
179
+ G as IS_BROWSER,
179
180
  dr as IconButton,
180
181
  cr as Image,
181
182
  Ir as ImageGallery,
182
183
  Cr as ImageUploader,
183
- kr as InfoBlockHeader,
184
- Mr as InfoBlockItem,
184
+ gr as InfoBlockHeader,
185
+ Er as InfoBlockItem,
185
186
  Pr as InfoBlockWrapper,
186
187
  Fr as Input,
187
188
  yr as InputAutocomplete,
188
189
  Lr as InputGhost,
189
- jt as LOACAL_STORAGE_THEME_KEY,
190
+ Xt as LOACAL_STORAGE_THEME_KEY,
190
191
  ue as LabeledButton,
191
192
  wr as Link,
192
193
  Nr as ListAllert,
193
- vr as Loader,
194
+ Hr as Loader,
194
195
  R as MONTHS_IN_YEAR,
195
- Hr as MaskedInput,
196
+ Gr as MaskedInput,
196
197
  zr as Menu,
197
198
  Vr as Message,
198
199
  Jr as ModalContext,
@@ -200,8 +201,8 @@ export {
200
201
  Zr as Mq,
201
202
  U as NATIVE_DATE_FORMAT,
202
203
  ee as Notification,
203
- ve as Optgroup,
204
- He as Option,
204
+ He as Optgroup,
205
+ Ge as Option,
205
206
  qe as OptionsList,
206
207
  Ur as PLACEHOLDER_CHAR,
207
208
  pe as Padding,
@@ -213,117 +214,118 @@ export {
213
214
  Oe as Portal,
214
215
  Ie as ProgressBar,
215
216
  Ce as ProgressIndex,
216
- ke as Radio,
217
- Me as RadioGroup,
217
+ ge as Radio,
218
+ Ee as RadioGroup,
218
219
  Pe as RadioGroups,
219
220
  T as Radiuses,
220
221
  or as Row,
221
- Jt as STYLE_TAG_ID,
222
+ Qt as STYLE_TAG_ID,
222
223
  y as SUNDAY_INDEX,
223
224
  q as SUPPORTS_INPUT_TYPE_DATE,
224
225
  Fe as SectionWrapper,
225
226
  ye as Select,
226
227
  Ne as SelectField,
227
- ft as Sidepanel,
228
- xt as SidepanelHeader,
229
- it as Skeleton,
230
- ut as Space,
228
+ ft as SettingsHint,
229
+ xt as Sidepanel,
230
+ it as SidepanelHeader,
231
+ ut as Skeleton,
232
+ dt as Space,
231
233
  O as Spaces,
232
- dt as Spinner,
233
- ct as Stack,
234
- Ot as StackingContext,
235
- At as Status,
236
- Dt as SteppedProgressBar,
237
- Mt as Sticker,
238
- Pt as SuffixInput,
239
- Ft as SuperListHeader,
240
- yt as SuperListItem,
241
- Lt as Switch,
242
- Xt as THEME,
243
- Qt as THEME_DATA_ATTR,
244
- rm as THINSP,
245
- wt as Table,
246
- Nt as TableCell,
247
- vt as TableStatus,
248
- Ht as Tag,
249
- qt as TagsList,
250
- Kt as Textarea,
251
- Zt as ThemeProvider,
252
- tp as Toast,
253
- mp as ToastNotifier,
254
- ap as ToastPlate,
255
- sp as Tooltip,
256
- np as Typography,
234
+ ct as Spinner,
235
+ Ot as Stack,
236
+ It as StackingContext,
237
+ Dt as Status,
238
+ kt as SteppedProgressBar,
239
+ Pt as Sticker,
240
+ Ft as SuffixInput,
241
+ yt as SuperListHeader,
242
+ Lt as SuperListItem,
243
+ wt as Switch,
244
+ Zt as THEME,
245
+ $t as THEME_DATA_ATTR,
246
+ tm as THINSP,
247
+ Nt as Table,
248
+ Ht as TableCell,
249
+ Gt as TableStatus,
250
+ qt as Tag,
251
+ Kt as TagsList,
252
+ jt as Textarea,
253
+ op as ThemeProvider,
254
+ mp as Toast,
255
+ ap as ToastNotifier,
256
+ sp as ToastPlate,
257
+ np as Tooltip,
258
+ lp as Typography,
257
259
  Ke as VirtualOptionsList,
258
- Om as WelcomeContainer,
259
- lp as add,
260
- dp as addDays,
261
- Sp as addMonths,
262
- cp as addYears,
263
- cm as capitalize,
260
+ Im as WelcomeContainer,
261
+ Sp as add,
262
+ cp as addDays,
263
+ Tp as addMonths,
264
+ Op as addYears,
265
+ Om as capitalize,
264
266
  Ko as connect,
265
267
  Ze as convertToOptions,
266
268
  B as dateInLimits,
267
- Zp as debounce,
268
- rp as defaultThemes,
269
- Tp as eachDayOfInterval,
270
- Op as eachMonthOfInterval,
271
- hp as eachYearOfInterval,
272
- Ip as endOfDay,
273
- Ap as endOfISOWeek,
274
- Cp as endOfWeek,
275
- Dp as endOfYear,
276
- kp as format,
277
- em as formatAmount,
278
- mm as formatDate,
279
- Ep as isAfter,
280
- Mp as isBefore,
269
+ om as debounce,
270
+ tp as defaultThemes,
271
+ hp as eachDayOfInterval,
272
+ Ip as eachMonthOfInterval,
273
+ Ap as eachYearOfInterval,
274
+ Cp as endOfDay,
275
+ Dp as endOfISOWeek,
276
+ gp as endOfWeek,
277
+ kp as endOfYear,
278
+ Ep as format,
279
+ pm as formatAmount,
280
+ am as formatDate,
281
+ Mp as isAfter,
282
+ Pp as isBefore,
281
283
  z as isCompleteDateInput,
282
- tm as isCurrencyFirst,
283
- gp as isEqual,
284
+ mm as isCurrencyFirst,
285
+ _p as isEqual,
284
286
  $e as isGroup,
285
287
  K as isInputDateSupported,
286
- Pp as isLastDayOfMonth,
288
+ Fp as isLastDayOfMonth,
287
289
  ot as isOptionShape,
288
- _p as isSameDay,
289
- Fp as isSameMonth,
290
- Rp as isSameYear,
291
- yp as isThisMonth,
292
- Bp as isThisYear,
293
- Lp as isToday,
294
- bp as isWithinInterval,
290
+ Rp as isSameDay,
291
+ yp as isSameMonth,
292
+ Bp as isSameYear,
293
+ Lp as isThisMonth,
294
+ bp as isThisYear,
295
+ wp as isToday,
296
+ Wp as isWithinInterval,
295
297
  rt as joinOptions,
296
- wp as lastDayOfMonth,
298
+ Np as lastDayOfMonth,
297
299
  et as lastIndexOf,
298
300
  L as limitDate,
299
- fm as locales,
300
- Wp as max,
301
- Np as min,
301
+ xm as locales,
302
+ Yp as max,
303
+ Hp as min,
302
304
  b as monthName,
303
- Yp as parse,
305
+ vp as parse,
304
306
  V as parseDateString,
305
- vp as parseISO,
307
+ Gp as parseISO,
306
308
  tt as processOptions,
307
309
  w as russianWeekDay,
308
- xm as safeStringify,
310
+ im as safeStringify,
309
311
  io as showAlert,
310
- im as showCompactSuccess,
312
+ um as showCompactSuccess,
311
313
  no as showConfirm,
312
- nm as showError,
313
- um as showSuccess,
314
- dm as splitAmount,
315
- ht as stackingOrder,
316
- Gp as startOfDay,
317
- Hp as startOfISOWeek,
318
- Up as startOfMonth,
319
- qp as startOfWeek,
320
- zp as startOfYear,
321
- Kp as subDays,
322
- Vp as subMonths,
323
- jp as subWeeks,
324
- Jp as subYears,
314
+ lm as showError,
315
+ dm as showSuccess,
316
+ cm as splitAmount,
317
+ At as stackingOrder,
318
+ Up as startOfDay,
319
+ qp as startOfISOWeek,
320
+ zp as startOfMonth,
321
+ Kp as startOfWeek,
322
+ Vp as startOfYear,
323
+ jp as subDays,
324
+ Jp as subMonths,
325
+ Xp as subWeeks,
326
+ Qp as subYears,
325
327
  Or as textSizes,
326
- M as useCalendar,
328
+ E as useCalendar,
327
329
  xr as useClickOutside,
328
330
  pr as useCrudFormRequests,
329
331
  Vo as useField,
@@ -336,10 +338,10 @@ export {
336
338
  P as usePeriod,
337
339
  ur as usePrevious,
338
340
  Xe as useSelectWithLoading,
339
- kt as useSteps,
340
- $t as useTheme,
341
+ Et as useSteps,
342
+ rp as useTheme,
341
343
  pt as useVisibleOptions,
342
- Xp as weekDaysShort,
344
+ Zp as weekDaysShort,
343
345
  Xo as withFormik,
344
- Im as withSuffix
346
+ Cm as withSuffix
345
347
  };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export type SettingsHintProps = {
3
+ title?: string;
4
+ text: string | React.ReactNode;
5
+ image?: string;
6
+ children?: React.ReactNode;
7
+ reversed?: boolean;
8
+ className?: string;
9
+ dataTestId?: string;
10
+ };
11
+ export declare const SettingsHint: React.FC<SettingsHintProps>;
@@ -0,0 +1,30 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import d from "classnames";
3
+ import { Typography as t } from "../typography/component.js";
4
+ import a from "./index.module.css.js";
5
+ const p = "https://escapenavigator-images.s3.eu-central-1.amazonaws.com/inside/art/explanation.webp", x = ({
6
+ title: i,
7
+ text: o,
8
+ image: m = p,
9
+ children: r,
10
+ reversed: c = !1,
11
+ className: n,
12
+ dataTestId: l
13
+ }) => /* @__PURE__ */ s(
14
+ "div",
15
+ {
16
+ className: d(a.component, { [a.reversed]: c }, n),
17
+ "data-test-id": l,
18
+ children: [
19
+ /* @__PURE__ */ e("div", { className: a.imageWrapper, children: /* @__PURE__ */ e("img", { alt: i || "hint", className: a.image, src: m }) }),
20
+ /* @__PURE__ */ s("div", { className: a.content, children: [
21
+ i && /* @__PURE__ */ e(t.Title, { view: "xsmall", weight: "bold", color: "primary", tag: "div", children: i }),
22
+ /* @__PURE__ */ e(t.Text, { view: "primary-medium", color: "secondary", weight: "regular", tag: "div", children: o }),
23
+ r && /* @__PURE__ */ e("div", { className: a.actions, children: r })
24
+ ] })
25
+ ]
26
+ }
27
+ );
28
+ export {
29
+ x as SettingsHint
30
+ };
@@ -0,0 +1 @@
1
+ .component_it8r{display:flex;align-items:center;gap:var(--gap-xl, 24px);width:100%;padding:var(--gap-s, 12px) var(--gap-xl, 24px);box-sizing:border-box;border-radius:var(--radius-l, 16px);background:linear-gradient(135deg,color-mix(in srgb,var(--color-bg-accent) 8%,var(--color-bg-primary)),var(--color-bg-primary));border:1px solid color-mix(in srgb,var(--color-bg-accent) 16%,transparent)}.reversed_fnLe{flex-direction:row-reverse}.imageWrapper_0IGy{flex-shrink:0;display:flex;align-items:center;justify-content:center}.image_t2Cz{width:160px;height:160px;-o-object-fit:contain;object-fit:contain}.content_mfC2{display:flex;flex-direction:column;gap:var(--gap-xs, 8px)}.actions_QFJu{margin-top:var(--gap-xs, 8px)}@media(max-width:600px){.component_it8r,.reversed_fnLe{flex-direction:column;text-align:center;gap:var(--gap-m, 16px);padding:var(--gap-s, 12px) var(--gap-m, 16px)}.image_t2Cz{width:120px;height:120px}.actions_QFJu{align-self:center}}
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1,4 @@
1
+ import { SettingsHint as i } from "./component.js";
2
+ export {
3
+ i as SettingsHint
4
+ };
@@ -0,0 +1,19 @@
1
+ import * as __css from './index.css';
2
+ export const __cssModule = __css;
3
+ const e = "component_it8r", t = "reversed_fnLe", n = "imageWrapper_0IGy", o = "image_t2Cz", c = "content_mfC2", s = "actions_QFJu", a = {
4
+ component: e,
5
+ reversed: t,
6
+ imageWrapper: n,
7
+ image: o,
8
+ content: c,
9
+ actions: s
10
+ };
11
+ export {
12
+ s as actions,
13
+ e as component,
14
+ c as content,
15
+ a as default,
16
+ o as image,
17
+ n as imageWrapper,
18
+ t as reversed
19
+ };
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { Query } from '../../types';
3
3
  type Props = {
4
4
  tags: React.ReactElement[];
5
- searchPlaceholder: string;
5
+ searchPlaceholder?: string;
6
6
  searchText?: string;
7
7
  addParam: (val: Query) => void;
8
8
  onCreateClick?: () => void;
@@ -4,14 +4,14 @@ import $ from "@alphakits/icons/dist/PlusS";
4
4
  import A from "classnames";
5
5
  import { useState as h, useEffect as b, useRef as B, useCallback as v } from "react";
6
6
  import { useDebounce as E } from "rooks";
7
- import { Button as g } from "../../../button/component.js";
7
+ import { Button as C } from "../../../button/component.js";
8
8
  import { Flex as F } from "../../../flex/component.js";
9
9
  import { HeaderSearch as H } from "../../../header-search/component.js";
10
10
  import { translate as I } from "../../languages/index.js";
11
11
  import r from "./index.module.css.js";
12
12
  const U = ({
13
13
  tags: a,
14
- searchPlaceholder: C = "Type something..",
14
+ searchPlaceholder: g,
15
15
  searchText: o,
16
16
  hideSearch: x,
17
17
  compact: S = !1,
@@ -19,9 +19,9 @@ const U = ({
19
19
  leftHeaderAddons: c,
20
20
  addParam: i,
21
21
  onCreateClick: m,
22
- onFiltersClick: y,
23
- createButtonLabel: N,
24
- showFiltersButton: j,
22
+ onFiltersClick: N,
23
+ createButtonLabel: j,
24
+ showFiltersButton: y,
25
25
  filtersButtonLabel: D,
26
26
  language: k
27
27
  }) => {
@@ -52,7 +52,7 @@ const U = ({
52
52
  value: w,
53
53
  onChange: l,
54
54
  onClear: z,
55
- placeholder: C
55
+ placeholder: g
56
56
  }
57
57
  ),
58
58
  c && c
@@ -60,21 +60,21 @@ const U = ({
60
60
  /* @__PURE__ */ n("div", { className: r.buttons, children: [
61
61
  V,
62
62
  !!m && /* @__PURE__ */ t(
63
- g,
63
+ C,
64
64
  {
65
65
  dataTestId: "createbtn",
66
66
  onClick: m,
67
67
  view: "primary",
68
68
  leftAddons: /* @__PURE__ */ t($, {}),
69
69
  size: "xs",
70
- children: N || I(k)("create")
70
+ children: j || I(k)("create")
71
71
  }
72
72
  ),
73
- j && /* @__PURE__ */ t(
74
- g,
73
+ y && /* @__PURE__ */ t(
74
+ C,
75
75
  {
76
76
  leftAddons: /* @__PURE__ */ t(R, {}),
77
- onClick: y,
77
+ onClick: N,
78
78
  view: "outlined",
79
79
  size: "xs",
80
80
  children: D
@@ -13,7 +13,7 @@ import e from "./index.module.css.js";
13
13
  import { TableError as st } from "./components/error/index.js";
14
14
  function Lt({
15
15
  columns: o,
16
- searchPlaceholder: N = "Поиск по таблице",
16
+ searchPlaceholder: N,
17
17
  records: j,
18
18
  hideSearch: P,
19
19
  rightHeaderAddons: g,
@@ -1,8 +1,8 @@
1
1
  import { currency as M } from "../data/currency-codes.js";
2
2
  import { getCurrencySymbol as _ } from "../get-currency-symbol/util.js";
3
3
  import { splitAmount as C } from "../split-amount/util.js";
4
- const O = 3, R = 4, T = "−", a = " ", l = ",", S = (t) => t === "EUR" || t === "USD" || t === "CHF" || t === "GBP" || t === "CAD" || t === "AUD" || t === "TRY" || t === "GEL" || t === "ILS" || t === "UAH", U = (t, r, n) => r ? t ? S(n) ? `${r}${a}${t}` : `${t}${a}${r}` : "" : t, E = (t) => t ? t.length > 2 ? t.slice(0, 2) : t.length < 2 ? `${t}0` : t : "00", N = (t, r, n) => {
5
- const o = E(t);
4
+ const O = 3, R = 4, T = "−", a = " ", l = ",", S = (t) => t === "USD" || t === "CHF" || t === "GBP" || t === "CAD" || t === "AUD" || t === "TRY" || t === "GEL" || t === "ILS" || t === "UAH", N = (t, r, n) => r ? t ? S(n) ? `${r}${a}${t}` : `${t}${a}${r}` : "" : t, U = (t) => t ? t.length > 2 ? t.slice(0, 2) : t.length < 2 ? `${t}0` : t : "00", h = (t, r, n) => {
5
+ const o = U(t);
6
6
  return !n && o === "00" ? null : !n && o[1] === "0" ? o.slice(0, 1) : o === "00" && !r ? null : o;
7
7
  }, d = ({
8
8
  value: t,
@@ -27,10 +27,10 @@ const O = 3, R = 4, T = "−", a = " ", l = ",", S = (t) => t === "EUR" || t =
27
27
  ), f = t < 0 ? T + m : m, A = s ? f + l + s : f;
28
28
  return {
29
29
  majorPart: f,
30
- minorPart: N(s, n, e),
30
+ minorPart: h(s, n, e),
31
31
  currencySymbol: i,
32
32
  formatted: A,
33
- formattedWithCurrency: U(
33
+ formattedWithCurrency: N(
34
34
  A,
35
35
  i || "",
36
36
  r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "2.5.10",
3
+ "version": "2.5.12",
4
4
  "files": [
5
5
  "dist"
6
6
  ],