mimir-ui-kit 1.15.1 → 1.16.0

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.
Files changed (60) hide show
  1. package/dist/Input-BFFPzelg.js +228 -0
  2. package/dist/{ProgressBar-BekX41HR.js → ProgressBar-CwLwhaeM.js} +23 -23
  3. package/dist/assets/Input.css +1 -1
  4. package/dist/assets/ListPhotos.css +1 -1
  5. package/dist/assets/OtpInput.css +1 -1
  6. package/dist/assets/ProgressBar2.css +1 -1
  7. package/dist/assets/SelectSearch.css +1 -1
  8. package/dist/assets/TextArea.css +1 -0
  9. package/dist/assets/UploaderPhotos.css +1 -1
  10. package/dist/assets/index.css +1 -1
  11. package/dist/components/DatePicker/DatePicker.d.ts +1 -9
  12. package/dist/components/DatePicker/DatePicker.js +1 -1
  13. package/dist/components/Input/Input.d.ts +11 -27
  14. package/dist/components/Input/Input.js +9 -120
  15. package/dist/components/Input/index.d.ts +1 -1
  16. package/dist/components/Input/index.js +2 -2
  17. package/dist/components/Input/types.d.ts +11 -0
  18. package/dist/components/InputPassword/InputPassword.d.ts +1 -9
  19. package/dist/components/InputPassword/InputPassword.js +1 -1
  20. package/dist/components/InputPhoneNumber/InputPhoneNumber.d.ts +1 -9
  21. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  22. package/dist/components/ListPhotos/ListPhotos.js +1 -1
  23. package/dist/components/OtpInput/OtpInput.js +5 -5
  24. package/dist/components/SelectSearch/SelectSearch.d.ts +0 -7
  25. package/dist/components/SelectSearch/SelectSearch.js +3802 -640
  26. package/dist/components/SelectSearch/index.d.ts +1 -1
  27. package/dist/components/SelectSearch/types.d.ts +16 -11
  28. package/dist/components/TextArea/TextArea.d.ts +5 -0
  29. package/dist/components/TextArea/TextArea.js +209 -0
  30. package/dist/components/TextArea/hooks.d.ts +1 -0
  31. package/dist/components/TextArea/hooks.js +13 -0
  32. package/dist/components/TextArea/index.d.ts +1 -0
  33. package/dist/components/TextArea/index.js +4 -0
  34. package/dist/components/TextArea/types.d.ts +3 -0
  35. package/dist/components/TextArea/types.js +1 -0
  36. package/dist/components/Toasts/ProgressBar.js +1 -1
  37. package/dist/components/Toasts/Toast.js +1 -1
  38. package/dist/components/Toasts/ToastList.js +1 -1
  39. package/dist/components/Toasts/ToastsProvider.js +1 -1
  40. package/dist/components/Uploader/Uploader.d.ts +10 -1
  41. package/dist/components/Uploader/Uploader.js +62 -56
  42. package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +10 -1
  43. package/dist/components/UploaderPhotos/UploaderPhotos.js +50 -34
  44. package/dist/components/index.d.ts +3 -3
  45. package/dist/components/index.js +4 -4
  46. package/dist/hooks/index.d.ts +1 -0
  47. package/dist/hooks/index.js +2 -0
  48. package/dist/hooks/useMergeRefs/index.d.ts +1 -0
  49. package/dist/hooks/useMergeRefs/index.js +4 -0
  50. package/dist/hooks/useMergeRefs/useMergeRefs.d.ts +4 -0
  51. package/dist/hooks/useMergeRefs/useMergeRefs.js +28 -0
  52. package/dist/icons/components/12px/Close12px.js +1 -1
  53. package/dist/index.js +6 -4
  54. package/package.json +2 -3
  55. package/dist/SelectSearchOption-snHM9uZX.js +0 -3796
  56. package/dist/assets/SelectSearchOption.css +0 -1
  57. package/dist/components/SelectSearchOption/SelectSearchOption.d.ts +0 -10
  58. package/dist/components/SelectSearchOption/SelectSearchOption.js +0 -8
  59. package/dist/components/SelectSearchOption/index.d.ts +0 -2
  60. package/dist/components/SelectSearchOption/index.js +0 -4
@@ -1,5 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { EInputSize, EInputVariant } from './constants';
3
+ import { TIcon } from '../../icons';
3
4
 
4
5
  export type TSize = `${EInputSize}` | EInputSize;
5
6
  export type TVariant = `${EInputVariant}` | EInputVariant;
@@ -8,4 +9,14 @@ export type TCommonCompoundInputProps = {
8
9
  variant?: TVariant;
9
10
  className?: string;
10
11
  };
12
+ type TTextAddon = {
13
+ addonType?: 'text';
14
+ addonContent?: string;
15
+ };
16
+ export type TIconAddon = {
17
+ addonType?: 'icon';
18
+ addonContent: TIcon;
19
+ };
20
+ export type TAddon = TTextAddon | TIconAddon;
11
21
  export type TInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'readOnly' | 'size' | 'placeholder'>;
22
+ export {};
@@ -1,12 +1,4 @@
1
1
  import { TInputProps } from '../Input';
2
2
 
3
3
  export type TProps = TInputProps;
4
- export declare const InputPassword: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & {
5
- size?: import('../Input').TSize;
6
- variant?: import('../Input').TVariant;
7
- className?: string;
8
- wrapperClassName?: string;
9
- label?: import('react').ReactNode;
10
- autofocus?: boolean;
11
- readonly?: boolean;
12
- } & import('react').RefAttributes<HTMLInputElement>>>;
4
+ export declare const InputPassword: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { memo, forwardRef, useState } from "react";
3
3
  import { Icon } from "../../icons/Icon.js";
4
4
  import { Button } from "../Button/Button.js";
5
- import { Input } from "../Input/Input.js";
5
+ import { I as Input } from "../../Input-BFFPzelg.js";
6
6
  import '../../assets/InputPassword.css';const input = "_input_mam1g_2";
7
7
  const wrapper = "_wrapper_mam1g_6";
8
8
  const button = "_button_mam1g_17";
@@ -1,12 +1,4 @@
1
1
  export type ImperativeHandle = Partial<HTMLInputElement> & {
2
2
  getPhoneNumber: () => string;
3
3
  };
4
- export declare const InputPhoneNumber: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & {
5
- size?: import('../Input').TSize;
6
- variant?: import('../Input').TVariant;
7
- className?: string;
8
- wrapperClassName?: string;
9
- label?: import('react').ReactNode;
10
- autofocus?: boolean;
11
- readonly?: boolean;
12
- } & import('react').RefAttributes<HTMLInputElement>>>;
4
+ export declare const InputPhoneNumber: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('../Input/types').TInputProps & import('../Input').TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { memo, forwardRef, useState, useCallback, useImperativeHandle } from "react";
3
3
  import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./utils.js";
4
- import { Input } from "../Input/Input.js";
4
+ import { I as Input } from "../../Input-BFFPzelg.js";
5
5
  const InputPhoneNumber = memo(
6
6
  forwardRef(
7
7
  ({ value = "", onChange, ...props }, ref) => {
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { Button } from "../Button/Button.js";
4
4
  import '../../assets/ListPhotos.css';const cls = {
5
- "list-photos": "_list-photos_1k3c7_2"
5
+ "list-photos": "_list-photos_19pfh_2"
6
6
  };
7
7
  function ListPhotos({ value, onChange }) {
8
8
  const [list, setList] = useState(value);
@@ -3,13 +3,13 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { forwardRef, useImperativeHandle, Fragment } from "react";
4
4
  import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
5
5
  import { useOTPInput } from "./hooks.js";
6
- import { Input } from "../Input/Input.js";
7
- import '../../assets/OtpInput.css';const otp = "_otp_1005h_3";
8
- const input = "_input_1005h_15";
9
- const separator = "_separator_1005h_29";
6
+ import { I as Input } from "../../Input-BFFPzelg.js";
7
+ import '../../assets/OtpInput.css';const otp = "_otp_196ev_3";
8
+ const input = "_input_196ev_14";
9
+ const separator = "_separator_196ev_28";
10
10
  const cls = {
11
11
  otp,
12
- "input-wrapper": "_input-wrapper_1005h_15",
12
+ "input-wrapper": "_input-wrapper_196ev_14",
13
13
  input,
14
14
  separator
15
15
  };
@@ -1,10 +1,3 @@
1
- import { FixedSizeListProps } from 'react-window';
2
1
  import { TSelectSearchProps } from './types';
3
- import { SelectSearchOptionProps } from '../SelectSearchOption';
4
2
 
5
- export type SelectSearchFilterOption = SelectSearchOptionProps & {
6
- key: React.Key | null;
7
- children: React.ReactNode;
8
- };
9
- export type VirtualizedFixedSizeListProps = Omit<FixedSizeListProps, 'children' | 'itemCount'>;
10
3
  export declare const SelectSearch: import('react').ForwardRefExoticComponent<TSelectSearchProps & import('react').RefAttributes<HTMLElement>>;