@modul/mbui 0.0.13-beta-pv-53127-63b6a630 → 0.0.13-beta-pv-53036-3ecb0556

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 (136) hide show
  1. package/dist/{Info/Info.d.ts → Alert/Alert.d.ts} +4 -4
  2. package/dist/{Info/Info.js → Alert/Alert.js} +7 -7
  3. package/dist/Alert/Alert.js.map +1 -0
  4. package/dist/Alert/index.d.ts +1 -0
  5. package/dist/Alert/index.js +6 -0
  6. package/dist/Alert/index.js.map +1 -0
  7. package/dist/AlertDialog/AlertDialog.d.ts +20 -0
  8. package/dist/AlertDialog/AlertDialog.js +42 -0
  9. package/dist/AlertDialog/AlertDialog.js.map +1 -0
  10. package/dist/AlertDialog/index.d.ts +1 -0
  11. package/dist/AlertDialog/index.js +16 -0
  12. package/dist/AlertDialog/index.js.map +1 -0
  13. package/dist/Button/Button.d.ts +1 -1
  14. package/dist/Calendar/Calendar.d.ts +8 -0
  15. package/dist/Calendar/Calendar.js +45 -0
  16. package/dist/Calendar/Calendar.js.map +1 -0
  17. package/dist/Calendar/index.d.ts +1 -0
  18. package/dist/Calendar/index.js +6 -0
  19. package/dist/Calendar/index.js.map +1 -0
  20. package/dist/Chip/Chip.d.ts +1 -1
  21. package/dist/DatePicker/DatePicker.d.ts +9 -0
  22. package/dist/DatePicker/DatePicker.js +23 -0
  23. package/dist/DatePicker/DatePicker.js.map +1 -0
  24. package/dist/DatePicker/index.d.ts +1 -0
  25. package/dist/DatePicker/index.js +6 -0
  26. package/dist/DatePicker/index.js.map +1 -0
  27. package/dist/Drawer/Drawer.js +1 -1
  28. package/dist/Drawer/Drawer.js.map +1 -1
  29. package/dist/Form/Form.d.ts +23 -0
  30. package/dist/Form/Form.js +73 -0
  31. package/dist/Form/Form.js.map +1 -0
  32. package/dist/Form/index.d.ts +1 -0
  33. package/dist/Form/index.js +13 -0
  34. package/dist/Form/index.js.map +1 -0
  35. package/dist/Input/Input.js +1 -1
  36. package/dist/Input/Input.js.map +1 -1
  37. package/dist/Input/InputMask.d.ts +3 -0
  38. package/dist/Input/InputMask.js +12 -0
  39. package/dist/Input/InputMask.js.map +1 -0
  40. package/dist/Input/index.d.ts +1 -0
  41. package/dist/Input/index.js +3 -1
  42. package/dist/Input/index.js.map +1 -1
  43. package/dist/Input-OTP/Input.d.ts +4 -4
  44. package/dist/Label/Label.d.ts +5 -0
  45. package/dist/Label/Label.js +13 -0
  46. package/dist/Label/Label.js.map +1 -0
  47. package/dist/Label/index.d.ts +1 -0
  48. package/dist/Label/index.js +6 -0
  49. package/dist/Label/index.js.map +1 -0
  50. package/dist/Page/Page.js +1 -1
  51. package/dist/Page/Page.js.map +1 -1
  52. package/dist/Select/Select.d.ts +3 -0
  53. package/dist/Select/Select.js +11 -0
  54. package/dist/Select/Select.js.map +1 -0
  55. package/dist/Select/SelectAccountCard.d.ts +5 -0
  56. package/dist/Select/SelectAccountCard.js +77 -0
  57. package/dist/Select/SelectAccountCard.js.map +1 -0
  58. package/dist/Select/SelectAsync.d.ts +8 -0
  59. package/dist/Select/SelectAsync.js +73 -0
  60. package/dist/Select/SelectAsync.js.map +1 -0
  61. package/dist/Select/SelectBase.d.ts +6 -0
  62. package/dist/Select/SelectBase.js +72 -0
  63. package/dist/Select/SelectBase.js.map +1 -0
  64. package/dist/Select/index.d.ts +4 -0
  65. package/dist/Select/index.js +12 -0
  66. package/dist/Select/index.js.map +1 -0
  67. package/dist/Switch/Switch.d.ts +4 -0
  68. package/dist/Switch/Switch.js +31 -0
  69. package/dist/Switch/Switch.js.map +1 -0
  70. package/dist/Switch/index.d.ts +1 -0
  71. package/dist/Switch/index.js +6 -0
  72. package/dist/Switch/index.js.map +1 -0
  73. package/dist/Textarea/Textarea.d.ts +5 -0
  74. package/dist/Textarea/Textarea.js +12 -0
  75. package/dist/Textarea/Textarea.js.map +1 -0
  76. package/dist/Textarea/index.d.ts +1 -0
  77. package/dist/Textarea/index.js +6 -0
  78. package/dist/Textarea/index.js.map +1 -0
  79. package/dist/index.d.ts +27 -20
  80. package/dist/index.js +41 -10
  81. package/dist/index.js.map +1 -1
  82. package/package.json +11 -4
  83. package/src/{Info/Info.tsx → Alert/Alert.tsx} +6 -6
  84. package/src/Alert/index.ts +1 -0
  85. package/src/AlertDialog/AlertDialog.tsx +138 -0
  86. package/src/AlertDialog/index.ts +13 -0
  87. package/src/Calendar/Calendar.tsx +61 -0
  88. package/src/Calendar/index.ts +1 -0
  89. package/src/DatePicker/DatePicker.tsx +38 -0
  90. package/src/DatePicker/index.ts +1 -0
  91. package/src/Drawer/Drawer.tsx +2 -2
  92. package/src/Form/Form.tsx +152 -0
  93. package/src/Form/index.ts +1 -0
  94. package/src/Input/Input.tsx +1 -1
  95. package/src/Input/InputMask.tsx +15 -0
  96. package/src/Input/index.ts +2 -1
  97. package/src/Label/Label.tsx +1 -1
  98. package/src/Page/Page.tsx +1 -1
  99. package/src/Select/Select.tsx +8 -0
  100. package/src/Select/SelectAccountCard.tsx +175 -0
  101. package/src/Select/SelectAsync.tsx +183 -0
  102. package/src/Select/SelectBase.tsx +181 -0
  103. package/src/Select/index.ts +4 -0
  104. package/src/Switch/Switch.tsx +47 -0
  105. package/src/Switch/index.ts +1 -0
  106. package/src/Textarea/Textarea.tsx +24 -0
  107. package/src/Textarea/index.ts +1 -0
  108. package/src/assets/css/global.css +22 -9
  109. package/src/index.ts +67 -41
  110. package/dist/Base/Input/Base.d.ts +0 -4
  111. package/dist/Base/Input/Base.js +0 -20
  112. package/dist/Base/Input/Base.js.map +0 -1
  113. package/dist/Base/Input/Input.d.ts +0 -4
  114. package/dist/Base/Input/Input.js +0 -18
  115. package/dist/Base/Input/Input.js.map +0 -1
  116. package/dist/Base/Input/index.d.ts +0 -2
  117. package/dist/Base/Input/index.js +0 -7
  118. package/dist/Base/Input/index.js.map +0 -1
  119. package/dist/Base/Input/types.d.ts +0 -9
  120. package/dist/Base/Input/types.js +0 -3
  121. package/dist/Base/Input/types.js.map +0 -1
  122. package/dist/Info/Info.js.map +0 -1
  123. package/dist/Info/index.d.ts +0 -1
  124. package/dist/Info/index.js +0 -6
  125. package/dist/Info/index.js.map +0 -1
  126. package/dist/Progress/Progress.d.ts +0 -4
  127. package/dist/Progress/Progress.js +0 -12
  128. package/dist/Progress/Progress.js.map +0 -1
  129. package/dist/Progress/index.d.ts +0 -1
  130. package/dist/Progress/index.js +0 -6
  131. package/dist/Progress/index.js.map +0 -1
  132. package/src/DrawerCompanyList/CompanyList.tsx +0 -63
  133. package/src/DrawerCompanyList/index.ts +0 -1
  134. package/src/Info/index.ts +0 -1
  135. package/src/Progress/Progress.tsx +0 -23
  136. package/src/Progress/index.ts +0 -1
package/src/index.ts CHANGED
@@ -1,48 +1,51 @@
1
- import { Tooltip } from "./Tooltip";
2
- import { Tabs } from "./Tabs";
3
- import { Slider } from "./Slider";
4
- import { Popover } from "./Popover";
5
- import Logo from "./Logo";
6
- import { InputOTP,
7
- InputOTPGroup,
8
- InputOTPSlot,
9
- InputOTPSeparator
10
- } from "./Input-OTP";
1
+ import { Tooltip } from './Tooltip'
2
+ import { Tabs } from './Tabs'
3
+ import { Slider } from './Slider'
4
+ import { Popover } from './Popover'
5
+ import Logo from './Logo'
6
+ import { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from './Input-OTP'
11
7
  import {
12
- BottomNavigation,
13
- BottomNavigationList,
14
- BottomNavigationListItem,
15
- BottomNavigationLink
16
- } from "./BottomNavigation";
17
- import * as Icon from "./Icon";
18
- import {
19
- Collapsible,
20
- CollapsibleTrigger,
21
- CollapsibleContent
22
- } from "./Collapsible";
8
+ BottomNavigation,
9
+ BottomNavigationList,
10
+ BottomNavigationListItem,
11
+ BottomNavigationLink,
12
+ } from './BottomNavigation'
13
+ import * as Icon from './Icon'
14
+ import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './Collapsible'
23
15
  import {
24
16
  AccountCollapsible,
25
17
  AccountCollapsibleHeader,
26
18
  AccountCollapsibleTrigger,
27
19
  AccountCollapsibleContent,
28
20
  AccountCollapsibleContentItem,
29
- } from "./Collapsible";
30
- import { Button } from "./Button";
31
- import { Input } from "./Base/Input";
32
- import { Audio } from "./Audio";
33
- import { cn } from "./@/lib/utils";
21
+ } from './Collapsible'
22
+ import { Button } from './Button'
23
+ import { Audio } from './Audio'
24
+ import { cn } from './@/lib/utils'
25
+ import { Drawer, DrawerTrigger, DrawerTitle, DrawerClose, DrawerContent } from './Drawer'
26
+ import { Page } from './Page'
27
+ import { Chip } from './Chip'
28
+ import { InputField, InputLabel, InputMask } from './Input'
29
+ import { Alert } from './Alert'
30
+ import { Switch } from './Switch'
31
+ import { Label } from './Label'
32
+ import { Textarea } from './Textarea'
33
+ import { SelectAccountCard, SelectAsync } from './Select'
34
+ import { Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage } from './Form'
35
+ import { Calendar } from './Calendar'
36
+ import { DatePicker } from './DatePicker'
37
+ import { Select } from './Select'
34
38
  import {
35
- Drawer,
36
- DrawerTrigger,
37
- DrawerTitle,
38
- DrawerClose,
39
- DrawerContent
40
- } from './Drawer'
41
- import { Page } from "./Page";
42
- import { Chip } from "./Chip";
43
- import { InputField, InputLabel } from "./Input";
44
- import { Info } from "./Info";
45
- import { Progress } from "./Progress"
39
+ AlertDialog,
40
+ AlertDialogTrigger,
41
+ AlertDialogContent,
42
+ AlertDialogHeader,
43
+ AlertDialogFooter,
44
+ AlertDialogTitle,
45
+ AlertDialogDescription,
46
+ AlertDialogAction,
47
+ AlertDialogCancel,
48
+ } from './AlertDialog'
46
49
 
47
50
  export {
48
51
  Tooltip,
@@ -63,7 +66,6 @@ export {
63
66
  AccountCollapsibleContent,
64
67
  AccountCollapsibleContentItem,
65
68
  Button,
66
- Input,
67
69
  InputField,
68
70
  InputLabel,
69
71
  Audio,
@@ -80,6 +82,30 @@ export {
80
82
  BottomNavigationLink,
81
83
  Page,
82
84
  Chip,
83
- Info,
84
- Progress,
85
- };
85
+ Alert,
86
+ Switch,
87
+ Label,
88
+ Textarea,
89
+ SelectAccountCard,
90
+ Form,
91
+ FormLabel,
92
+ FormField,
93
+ FormItem,
94
+ FormControl,
95
+ FormDescription,
96
+ FormMessage,
97
+ Calendar,
98
+ DatePicker,
99
+ SelectAsync,
100
+ InputMask,
101
+ Select,
102
+ AlertDialog,
103
+ AlertDialogTrigger,
104
+ AlertDialogContent,
105
+ AlertDialogHeader,
106
+ AlertDialogFooter,
107
+ AlertDialogTitle,
108
+ AlertDialogDescription,
109
+ AlertDialogAction,
110
+ AlertDialogCancel,
111
+ }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IInputProps } from './types';
3
- declare const Base: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<HTMLInputElement>>;
4
- export default Base;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = (0, tslib_1.__importDefault)(require("react"));
5
- const react_imask_1 = require("react-imask");
6
- const Base = react_1.default.forwardRef(({ onChange, type = 'text', mask, ...props }, ref) => {
7
- const handleChange = (event) => {
8
- // @ts-ignore
9
- const val = event.target.value;
10
- onChange?.(val, event);
11
- };
12
- if (!mask) {
13
- return (react_1.default.createElement("input", { type: type, ref: ref, onChange: handleChange, ...props }));
14
- }
15
- return (
16
- // @ts-ignore
17
- react_1.default.createElement(react_imask_1.IMaskInput, { type: type, inputRef: ref, mask: mask, onChange: handleChange, ...props }));
18
- });
19
- exports.default = Base;
20
- //# sourceMappingURL=Base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/Base/Input/Base.tsx"],"names":[],"mappings":";;;AAAA,+DAAwD;AACxD,6CAAwC;AAGxC,MAAM,IAAI,GAAG,eAAK,CAAC,UAAU,CAC5B,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAe,EAAE,GAAmC,EAAE,EAAE;IACjG,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAQ,EAAE;QACnE,aAAa;QACb,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAA;QAC9B,QAAQ,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,IAAI,CAAC,IAAI,EAAE;QACV,OAAO,CACN,yCACC,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,YAAY,KAClB,KAAK,GACR,CACF,CAAA;KACD;IAED,OAAO;IACN,aAAa;IACb,8BAAC,wBAAU,IACV,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,YAAY,KAClB,KAAK,GACR,CACF,CAAA;AACF,CAAC,CACD,CAAA;AAED,kBAAe,IAAI,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IInputProps } from './types';
3
- declare const Input: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<HTMLInputElement>>;
4
- export default Input;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = (0, tslib_1.__importDefault)(require("react"));
5
- const Base_1 = (0, tslib_1.__importDefault)(require("./Base"));
6
- const Input = react_1.default.forwardRef(({ onChange, value, clearable, ...props }, ref) => {
7
- const handleClearClick = () => {
8
- onChange?.('');
9
- };
10
- if (!clearable) {
11
- return (react_1.default.createElement(Base_1.default, { ref: ref, onChange: onChange, value: value, ...props }));
12
- }
13
- return (react_1.default.createElement("div", { className: "input_wrap_clear" },
14
- react_1.default.createElement(Base_1.default, { ref: ref, onChange: onChange, value: value, ...props }),
15
- value && (react_1.default.createElement("a", { className: "input_clear icon-cancel", onClick: handleClearClick, style: { visibility: 'initial' } }))));
16
- });
17
- exports.default = Input;
18
- //# sourceMappingURL=Input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/Base/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,+DAA2C;AAC3C,+DAAyB;AAGzB,MAAM,KAAK,GAAG,eAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe,EAAE,GAAmC,EAAE,EAAE;IAC9F,MAAM,gBAAgB,GAAG,GAAS,EAAE;QACnC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAA;IACf,CAAC,CAAA;IAED,IAAI,CAAC,SAAS,EAAE;QACf,OAAO,CACN,8BAAC,cAAI,IACJ,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KACR,KAAK,GACR,CACF,CAAA;KACD;IAED,OAAO,CACN,uCAAK,SAAS,EAAC,kBAAkB;QAChC,8BAAC,cAAI,IACJ,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KACR,KAAK,GACR;QACD,KAAK,IAAI,CACT,qCACC,SAAS,EAAC,yBAAyB,EACnC,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,GAC/B,CACF,CACI,CACN,CAAA;AACF,CAAC,CACD,CAAA;AAED,kBAAe,KAAK,CAAA"}
@@ -1,2 +0,0 @@
1
- import Input from './Input';
2
- export { Input };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Input = void 0;
4
- const tslib_1 = require("tslib");
5
- const Input_1 = (0, tslib_1.__importDefault)(require("./Input"));
6
- exports.Input = Input_1.default;
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Base/Input/index.ts"],"names":[],"mappings":";;;;AAAA,iEAA2B;AAElB,gBAFF,eAAK,CAEE"}
@@ -1,9 +0,0 @@
1
- import React, { ChangeEvent, ChangeEventHandler } from 'react';
2
- declare type CustomChangeEventHandler = (value: string, event?: ChangeEvent<HTMLInputElement>) => void;
3
- declare type CombinedChangeEventHandler = ChangeEventHandler<HTMLInputElement> & CustomChangeEventHandler;
4
- export interface IInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
5
- onChange?: CombinedChangeEventHandler;
6
- mask?: string | RegExp | (string | RegExp)[] | NumberConstructor;
7
- clearable?: boolean;
8
- }
9
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/Base/Input/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/Info/Info.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uEAAiE;AAEjE,0CAAmC;AACnC,uDAAuD;AAEvD,MAAM,YAAY,GAAG,IAAA,8BAAG,EAAC,2CAA2C,EAAE;IACrE,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,KAAK,EAAE,sBAAsB;YAC7B,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE,kBAAkB;YAC3B,QAAQ,EAAE,wBAAwB;SAClC;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,OAAO;KAChB;CACD,CAAC,CAAA;AAMF,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAyB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACzG,OAAO,CACN,6BACC,SAAS,EAAE,IAAA,UAAE,EAAC,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KAC/C,KAAK,IAER,QAAQ,CACJ,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAIO,oBAAI;AAFb,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA"}
@@ -1 +0,0 @@
1
- export { Info } from './Info';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Info = void 0;
4
- var Info_1 = require("./Info");
5
- Object.defineProperty(exports, "Info", { enumerable: true, get: function () { return Info_1.Info; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Info/index.ts"],"names":[],"mappings":";;;AAAA,+BAA6B;AAApB,4FAAA,IAAI,OAAA"}
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import * as ProgressPrimitive from '@radix-ui/react-progress';
3
- declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export { Progress };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Progress = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = (0, tslib_1.__importStar)(require("react"));
6
- const ProgressPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-progress"));
7
- const utils_1 = require("../@/lib/utils");
8
- const Progress = React.forwardRef(({ className, value, ...props }, ref) => (React.createElement(ProgressPrimitive.Root, { ref: ref, className: (0, utils_1.cn)('relative h-[--progress-height] w-full overflow-hidden rounded-full bg-[--progess-bg]', className), ...props },
9
- React.createElement(ProgressPrimitive.Indicator, { className: "bg-primary rounded-full w-full h-full transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } }))));
10
- exports.Progress = Progress;
11
- Progress.displayName = ProgressPrimitive.Root.displayName;
12
- //# sourceMappingURL=Progress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../src/Progress/Progress.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yFAA6D;AAE7D,0CAAmC;AAEnC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1C,oBAAC,iBAAiB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EAAC,sFAAsF,EAAE,SAAS,CAAC,KAC5G,KAAK;IAET,oBAAC,iBAAiB,CAAC,SAAS,IAC3B,SAAS,EAAC,sDAAsD,EAChE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,EAAE,GAC1D,CACsB,CACzB,CAAC,CAAA;AAGO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- export { Progress } from './Progress';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Progress = void 0;
4
- var Progress_1 = require("./Progress");
5
- Object.defineProperty(exports, "Progress", { enumerable: true, get: function () { return Progress_1.Progress; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Progress/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
@@ -1,63 +0,0 @@
1
- import React from 'react'
2
-
3
-
4
- type DrawerListProps = {
5
- children: React.ReactNode
6
- }
7
-
8
- const CompanyList: React.FC<DrawerListProps> = ({ children }) => {
9
- return (
10
- <div
11
- role="list"
12
- className="px-[20px] divide-y"
13
- >
14
- {children}
15
- </div>
16
- )
17
- }
18
-
19
- type DrawerListItemProps = {
20
- value: string
21
- label: string | JSX.Element
22
- isActive?: boolean
23
- onClick?: () => void
24
- }
25
- const DrawerListItem: React.FC<DrawerListItemProps> = ({ label, value, isActive, onClick }) => {
26
- return (
27
- <button
28
- className="flex py-[16px] w-full text-left"
29
- role="listitem"
30
- aria-selected={isActive}
31
- aria-labelledby="1"
32
- onClick={onClick}
33
- >
34
- <span className="w-[calc(100%-50px)]">
35
- <span
36
- className="flex [&+span]:mt-[4px] font-medium text-[14px] text-muted leading-[1.28]"
37
- id="1"
38
- >
39
- <span className="[&+span]:ml-[8px] truncate">{label}</span>
40
-
41
- <span className="inline-flex bg-[#EE7C2D] px-[4px] rounded-full h-[16px] text-[#fff] text-[12px] truncate leading-[16px] shrink-0">
42
- 23
43
- </span>
44
- </span>
45
- <span className="block font-bold text-[20px] leading-[1.2]">{value}</span>
46
- </span>
47
- {isActive && (
48
- <Check
49
- width={16}
50
- height={16}
51
- className="ml-auto text-primary self-center"
52
- />
53
- )}
54
- </button>
55
- )
56
- }
57
-
58
- export { CompanyList }
59
-
60
-
61
- {/* <DrawerTitle className="sr-only">Выбор компании</DrawerTitle>
62
- {children}
63
- <DrawerFooter /> */}
@@ -1 +0,0 @@
1
- export { CompanyList } from './CompanyList'
package/src/Info/index.ts DELETED
@@ -1 +0,0 @@
1
- export { Info } from './Info'
@@ -1,23 +0,0 @@
1
- import * as React from 'react'
2
- import * as ProgressPrimitive from '@radix-ui/react-progress'
3
-
4
- import { cn } from '../@/lib/utils'
5
-
6
- const Progress = React.forwardRef<
7
- React.ElementRef<typeof ProgressPrimitive.Root>,
8
- React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
9
- >(({ className, value, ...props }, ref) => (
10
- <ProgressPrimitive.Root
11
- ref={ref}
12
- className={cn('relative h-[--progress-height] w-full overflow-hidden rounded-full bg-[--progess-bg]', className)}
13
- {...props}
14
- >
15
- <ProgressPrimitive.Indicator
16
- className="bg-primary rounded-full w-full h-full transition-all"
17
- style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
18
- />
19
- </ProgressPrimitive.Root>
20
- ))
21
- Progress.displayName = ProgressPrimitive.Root.displayName
22
-
23
- export { Progress }
@@ -1 +0,0 @@
1
- export { Progress } from './Progress'