@modul/mbui 0.0.13-beta-pv-53036-69a68bb4 → 0.0.13-beta-pv-53127-63b6a630
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/Base/Input/Base.d.ts +4 -0
- package/dist/Base/Input/Base.js +20 -0
- package/dist/Base/Input/Base.js.map +1 -0
- package/dist/Base/Input/Input.d.ts +4 -0
- package/dist/Base/Input/Input.js +18 -0
- package/dist/Base/Input/Input.js.map +1 -0
- package/dist/Base/Input/index.d.ts +2 -0
- package/dist/Base/Input/index.js +7 -0
- package/dist/Base/Input/index.js.map +1 -0
- package/dist/Base/Input/types.d.ts +9 -0
- package/dist/Base/Input/types.js +3 -0
- package/dist/Base/Input/types.js.map +1 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/{Alert/Alert.d.ts → Info/Info.d.ts} +4 -4
- package/dist/{Alert/Alert.js → Info/Info.js} +7 -7
- package/dist/Info/Info.js.map +1 -0
- package/dist/Info/index.d.ts +1 -0
- package/dist/Info/index.js +6 -0
- package/dist/Info/index.js.map +1 -0
- package/dist/Input/Input.js +1 -1
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/index.d.ts +0 -1
- package/dist/Input/index.js +1 -3
- package/dist/Input/index.js.map +1 -1
- package/dist/Input-OTP/Input.d.ts +4 -4
- package/dist/Page/Page.js +1 -1
- package/dist/Page/Page.js.map +1 -1
- package/dist/Progress/Progress.d.ts +4 -0
- package/dist/Progress/Progress.js +12 -0
- package/dist/Progress/Progress.js.map +1 -0
- package/dist/Progress/index.d.ts +1 -0
- package/dist/Progress/index.js +6 -0
- package/dist/Progress/index.js.map +1 -0
- package/dist/index.d.ts +20 -26
- package/dist/index.js +10 -31
- package/dist/index.js.map +1 -1
- package/package.json +4 -10
- package/src/@/config/index.ts +1 -0
- package/src/Drawer/Drawer.tsx +2 -2
- package/src/DrawerCompanyList/CompanyList.tsx +63 -0
- package/src/DrawerCompanyList/index.ts +1 -0
- package/src/{Alert/Alert.tsx → Info/Info.tsx} +6 -6
- package/src/Info/index.ts +1 -0
- package/src/Input/Input.tsx +1 -1
- package/src/Input/index.ts +1 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Page/Page.tsx +1 -1
- package/src/Progress/Progress.tsx +23 -0
- package/src/Progress/index.ts +1 -0
- package/src/assets/css/global.css +10 -22
- package/src/index.ts +42 -48
- package/dist/Alert/Alert.js.map +0 -1
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Alert/index.js +0 -6
- package/dist/Alert/index.js.map +0 -1
- package/dist/Calendar/Calendar.d.ts +0 -8
- package/dist/Calendar/Calendar.js +0 -45
- package/dist/Calendar/Calendar.js.map +0 -1
- package/dist/Calendar/index.d.ts +0 -1
- package/dist/Calendar/index.js +0 -6
- package/dist/Calendar/index.js.map +0 -1
- package/dist/DatePicker/DatePicker.d.ts +0 -9
- package/dist/DatePicker/DatePicker.js +0 -23
- package/dist/DatePicker/DatePicker.js.map +0 -1
- package/dist/DatePicker/index.d.ts +0 -1
- package/dist/DatePicker/index.js +0 -6
- package/dist/DatePicker/index.js.map +0 -1
- package/dist/Form/Form.d.ts +0 -23
- package/dist/Form/Form.js +0 -73
- package/dist/Form/Form.js.map +0 -1
- package/dist/Form/index.d.ts +0 -1
- package/dist/Form/index.js +0 -13
- package/dist/Form/index.js.map +0 -1
- package/dist/Input/InputMask.d.ts +0 -3
- package/dist/Input/InputMask.js +0 -12
- package/dist/Input/InputMask.js.map +0 -1
- package/dist/Label/Label.d.ts +0 -5
- package/dist/Label/Label.js +0 -13
- package/dist/Label/Label.js.map +0 -1
- package/dist/Label/index.d.ts +0 -1
- package/dist/Label/index.js +0 -6
- package/dist/Label/index.js.map +0 -1
- package/dist/Select/Select.d.ts +0 -3
- package/dist/Select/Select.js +0 -11
- package/dist/Select/Select.js.map +0 -1
- package/dist/Select/SelectAccountCard.d.ts +0 -4
- package/dist/Select/SelectAccountCard.js +0 -75
- package/dist/Select/SelectAccountCard.js.map +0 -1
- package/dist/Select/SelectAsync.d.ts +0 -8
- package/dist/Select/SelectAsync.js +0 -73
- package/dist/Select/SelectAsync.js.map +0 -1
- package/dist/Select/SelectBase.d.ts +0 -6
- package/dist/Select/SelectBase.js +0 -72
- package/dist/Select/SelectBase.js.map +0 -1
- package/dist/Select/index.d.ts +0 -4
- package/dist/Select/index.js +0 -12
- package/dist/Select/index.js.map +0 -1
- package/dist/Switch/Switch.d.ts +0 -4
- package/dist/Switch/Switch.js +0 -31
- package/dist/Switch/Switch.js.map +0 -1
- package/dist/Switch/index.d.ts +0 -1
- package/dist/Switch/index.js +0 -6
- package/dist/Switch/index.js.map +0 -1
- package/dist/Textarea/Textarea.d.ts +0 -5
- package/dist/Textarea/Textarea.js +0 -12
- package/dist/Textarea/Textarea.js.map +0 -1
- package/dist/Textarea/index.d.ts +0 -1
- package/dist/Textarea/index.js +0 -6
- package/dist/Textarea/index.js.map +0 -1
- package/src/Alert/index.ts +0 -1
- package/src/Calendar/Calendar.tsx +0 -61
- package/src/Calendar/index.ts +0 -1
- package/src/DatePicker/DatePicker.tsx +0 -38
- package/src/DatePicker/index.ts +0 -1
- package/src/Form/Form.tsx +0 -152
- package/src/Form/index.ts +0 -1
- package/src/Input/InputMask.tsx +0 -15
- package/src/Select/Select.tsx +0 -8
- package/src/Select/SelectAccountCard.tsx +0 -162
- package/src/Select/SelectAsync.tsx +0 -183
- package/src/Select/SelectBase.tsx +0 -181
- package/src/Select/index.ts +0 -4
- package/src/Switch/Switch.tsx +0 -47
- package/src/Switch/index.ts +0 -1
- package/src/Textarea/Textarea.tsx +0 -24
- package/src/Textarea/index.ts +0 -1
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|
|
4
4
|
import { cn } from '../@/lib/utils'
|
|
5
5
|
// import { cn } from "@/lib/utils" порешать с алиасами
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const infoVariants = cva('px-[16px] py-[12px] rounded-1 text-[14px]', {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
light: 'bg-[--cl-graphite-7]',
|
|
@@ -19,13 +19,13 @@ const alertVariants = cva('px-[16px] py-[12px] rounded-sm text-[14px]', {
|
|
|
19
19
|
})
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
export interface IProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof
|
|
22
|
+
export interface IProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof infoVariants> {
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const Info = React.forwardRef<HTMLDivElement, IProps>(({ className, variant, children, ...props }, ref) => {
|
|
26
26
|
return (
|
|
27
27
|
<div
|
|
28
|
-
className={cn(
|
|
28
|
+
className={cn(infoVariants({ variant, className }))}
|
|
29
29
|
{...props}
|
|
30
30
|
>
|
|
31
31
|
{children}
|
|
@@ -33,6 +33,6 @@ const Alert = React.forwardRef<HTMLDivElement, IProps>(({ className, variant, ch
|
|
|
33
33
|
)
|
|
34
34
|
})
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Info.displayName = 'Info'
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Info }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Info } from './Info'
|
package/src/Input/Input.tsx
CHANGED
|
@@ -21,7 +21,7 @@ const InputField = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<
|
|
|
21
21
|
<input
|
|
22
22
|
type={type}
|
|
23
23
|
className={cn(
|
|
24
|
-
'
|
|
24
|
+
'border-input file:border-0 bg-transparent font-normal file:bg-transparent disabled:opacity-50 border rounded-1 focus-visible:ring-1 focus-visible:ring-ring w-full h-[44px] file:font-medium file:text-sm placeholder:text-muted-foreground leading-[1.17] transition-colors focus-visible:outline-none disabled:cursor-not-allowed',
|
|
25
25
|
className
|
|
26
26
|
)}
|
|
27
27
|
ref={ref}
|
package/src/Input/index.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { InputField, InputLabel } from './Input'
|
|
2
|
-
export { InputMask } from './InputMask'
|
|
1
|
+
export { InputField, InputLabel } from './Input'
|
package/src/Label/Label.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import * as LabelPrimitive from '@radix-ui/react-label'
|
|
|
3
3
|
import { cva, type VariantProps } from 'class-variance-authority'
|
|
4
4
|
import { cn } from '../@/lib/utils'
|
|
5
5
|
|
|
6
|
-
const labelVariants = cva('peer-disabled:opacity-70 peer-disabled:cursor-not-allowed')
|
|
6
|
+
const labelVariants = cva('peer-disabled:opacity-70 font-medium text-[12px] leading-[1.33] peer-disabled:cursor-not-allowed')
|
|
7
7
|
|
|
8
8
|
const Label = React.forwardRef<
|
|
9
9
|
React.ElementRef<typeof LabelPrimitive.Root>,
|
package/src/Page/Page.tsx
CHANGED
|
@@ -15,7 +15,7 @@ const Navbar: FC<IProps> = ({ children, className }) => {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const Content: FC<IProps> = ({ children, className }) => {
|
|
18
|
-
return <div className={cn('px-[20px] py-[16px]
|
|
18
|
+
return <div className={cn('px-[20px] py-[16px]', className)}>{children}</div>
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const Page: IPage = ({ children, className }: IProps) => {
|
|
@@ -0,0 +1,23 @@
|
|
|
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 }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from './Progress'
|
|
@@ -3,26 +3,6 @@
|
|
|
3
3
|
@tailwind utilities;
|
|
4
4
|
|
|
5
5
|
@layer base {
|
|
6
|
-
html,
|
|
7
|
-
body {
|
|
8
|
-
height: 100%;
|
|
9
|
-
min-height: 100%;
|
|
10
|
-
color: var(--text-base)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
body {
|
|
14
|
-
margin: 0;
|
|
15
|
-
/* max-width: 640px; */
|
|
16
|
-
min-width: 320px;
|
|
17
|
-
-webkit-overflow-scrolling: touch;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@supports (-webkit-touch-callout: none) {
|
|
21
|
-
html,
|
|
22
|
-
body {
|
|
23
|
-
height: -webkit-fill-available;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
6
|
|
|
27
7
|
@font-face {
|
|
28
8
|
font-weight: 100 900;
|
|
@@ -109,6 +89,7 @@
|
|
|
109
89
|
/* --text-quaternary:; */
|
|
110
90
|
|
|
111
91
|
--page-bg: var(--cl-white);
|
|
92
|
+
--dialog-bg: var(--cl-white);
|
|
112
93
|
|
|
113
94
|
|
|
114
95
|
/* ЦВЕТ КНОПОК */
|
|
@@ -149,7 +130,6 @@
|
|
|
149
130
|
/* =========================================== */
|
|
150
131
|
/* ЦВЕТ КНОПОК */
|
|
151
132
|
|
|
152
|
-
|
|
153
133
|
/* ЦВЕТ ПОЛЯ ВВОДА */
|
|
154
134
|
/* =========================================== */
|
|
155
135
|
|
|
@@ -157,7 +137,6 @@
|
|
|
157
137
|
/* =========================================== */
|
|
158
138
|
/* ЦВЕТ ПОЛЯ ВВОДА */
|
|
159
139
|
|
|
160
|
-
|
|
161
140
|
/* BORDER */
|
|
162
141
|
/* =========================================== */
|
|
163
142
|
--border-color: var(--cl-graphite-5);
|
|
@@ -172,6 +151,15 @@
|
|
|
172
151
|
--shadow-md: 0 2px 10px rgba(36, 48, 54, 0.12);
|
|
173
152
|
/* =========================================== */
|
|
174
153
|
/* SHADOWS */
|
|
154
|
+
|
|
155
|
+
/* PROGRESS */
|
|
156
|
+
/* =========================================== */
|
|
157
|
+
--progress-height: 4px;
|
|
158
|
+
--progress-bg: var(--cl-graphite-6);
|
|
159
|
+
/* =========================================== */
|
|
160
|
+
/* PROGRESS */
|
|
161
|
+
|
|
162
|
+
|
|
175
163
|
}
|
|
176
164
|
|
|
177
165
|
|
package/src/index.ts
CHANGED
|
@@ -1,40 +1,48 @@
|
|
|
1
|
-
import { Tooltip } from
|
|
2
|
-
import { Tabs } from
|
|
3
|
-
import { Slider } from
|
|
4
|
-
import { Popover } from
|
|
5
|
-
import Logo from
|
|
6
|
-
import { InputOTP,
|
|
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";
|
|
7
11
|
import {
|
|
8
|
-
BottomNavigation,
|
|
9
|
-
BottomNavigationList,
|
|
10
|
-
BottomNavigationListItem,
|
|
11
|
-
BottomNavigationLink
|
|
12
|
-
} from
|
|
13
|
-
import * as Icon from
|
|
14
|
-
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";
|
|
15
23
|
import {
|
|
16
24
|
AccountCollapsible,
|
|
17
25
|
AccountCollapsibleHeader,
|
|
18
26
|
AccountCollapsibleTrigger,
|
|
19
27
|
AccountCollapsibleContent,
|
|
20
28
|
AccountCollapsibleContentItem,
|
|
21
|
-
} from
|
|
22
|
-
import { Button } from
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
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";
|
|
34
|
+
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"
|
|
38
46
|
|
|
39
47
|
export {
|
|
40
48
|
Tooltip,
|
|
@@ -55,6 +63,7 @@ export {
|
|
|
55
63
|
AccountCollapsibleContent,
|
|
56
64
|
AccountCollapsibleContentItem,
|
|
57
65
|
Button,
|
|
66
|
+
Input,
|
|
58
67
|
InputField,
|
|
59
68
|
InputLabel,
|
|
60
69
|
Audio,
|
|
@@ -71,21 +80,6 @@ export {
|
|
|
71
80
|
BottomNavigationLink,
|
|
72
81
|
Page,
|
|
73
82
|
Chip,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Textarea,
|
|
78
|
-
SelectAccountCard,
|
|
79
|
-
Form,
|
|
80
|
-
FormLabel,
|
|
81
|
-
FormField,
|
|
82
|
-
FormItem,
|
|
83
|
-
FormControl,
|
|
84
|
-
FormDescription,
|
|
85
|
-
FormMessage,
|
|
86
|
-
Calendar,
|
|
87
|
-
DatePicker,
|
|
88
|
-
SelectAsync,
|
|
89
|
-
InputMask,
|
|
90
|
-
Select,
|
|
91
|
-
}
|
|
83
|
+
Info,
|
|
84
|
+
Progress,
|
|
85
|
+
};
|
package/dist/Alert/Alert.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uEAAiE;AAEjE,0CAAmC;AACnC,uDAAuD;AAEvD,MAAM,aAAa,GAAG,IAAA,8BAAG,EAAC,4CAA4C,EAAE;IACvE,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,KAAK,GAAG,KAAK,CAAC,UAAU,CAAyB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC1G,OAAO,CACN,6BACC,SAAS,EAAE,IAAA,UAAE,EAAC,aAAa,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KAChD,KAAK,IAER,QAAQ,CACJ,CACN,CAAA;AACF,CAAC,CAAC,CAAA;AAIO,sBAAK;AAFd,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA"}
|
package/dist/Alert/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert } from './Alert';
|
package/dist/Alert/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Alert = void 0;
|
|
4
|
-
var Alert_1 = require("./Alert");
|
|
5
|
-
Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return Alert_1.Alert; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Alert/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Alert/index.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAAtB,8FAAA,KAAK,OAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DayPicker } from 'react-day-picker';
|
|
3
|
-
export declare type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
5
|
-
declare namespace Calendar {
|
|
6
|
-
var displayName: string;
|
|
7
|
-
}
|
|
8
|
-
export { Calendar };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Calendar = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const react_day_picker_1 = require("react-day-picker");
|
|
7
|
-
const utils_1 = require("../@/lib/utils");
|
|
8
|
-
const locale_1 = require("date-fns/locale");
|
|
9
|
-
const daySelectedClasses = 'bg-btn-primary text-btn-primary rounded-sm';
|
|
10
|
-
const dayTodayClasses = 'bg-btn-secondary text-btn-secondary rounded-sm';
|
|
11
|
-
const rangeMiddleClasses = 'date-range-middle aria-selected:bg-btn-primary/50 aria-selected:text-white';
|
|
12
|
-
const btnNavClasses = 'opacity-50 hover:opacity-100 ring-offset-2 focus-visible:opacity-100 focus-visible:outline-primary border-input border rounded-sm shadow-sm';
|
|
13
|
-
function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
14
|
-
return (React.createElement(react_day_picker_1.DayPicker, { locale: locale_1.ru, showOutsideDays: showOutsideDays, className: (0, utils_1.cn)('inline-flex', className), classNames: {
|
|
15
|
-
months: 'relative',
|
|
16
|
-
month: 'flex flex-col space-y-[16px] items-center',
|
|
17
|
-
month_grid: 'w-full border-collapse',
|
|
18
|
-
month_caption: 'inline m-x-auto',
|
|
19
|
-
caption_label: 'text-sm font-medium capitalize',
|
|
20
|
-
nav: 'flex justify-between absolute start-0 end-0',
|
|
21
|
-
button_previous: btnNavClasses,
|
|
22
|
-
button_next: btnNavClasses,
|
|
23
|
-
weekdays: 'flex',
|
|
24
|
-
weekday: 'text-light w-[32px] font-normal text-[14px]',
|
|
25
|
-
week: 'flex w-full mt-2',
|
|
26
|
-
day_button: 'w-[32px] h-[32px] p-0',
|
|
27
|
-
day: (0, utils_1.cn)('aria-selected:opacity-100 text-[14px] leading-[1]', props.mode === 'range'
|
|
28
|
-
? '[&:(.day-range-middle)]:rounded-0 [&:has(>.day-range-end)]:rounded-r-sm [&:has(>.day-range-start)]:rounded-l-sm first:[&:has([aria-selected])]:rounded-l-sm last:[&:has([aria-selected])]:rounded-r-sm'
|
|
29
|
-
: '[&:([aria-selected])]:rounded-sm'),
|
|
30
|
-
range_start: 'day-range-start',
|
|
31
|
-
range_end: 'day-range-end',
|
|
32
|
-
range_middle: rangeMiddleClasses,
|
|
33
|
-
selected: daySelectedClasses,
|
|
34
|
-
today: dayTodayClasses,
|
|
35
|
-
outside: 'day-outside opacity-50 aria-selected:bg-primary aria-selected:text-[white] aria-selected:opacity-30',
|
|
36
|
-
disabled: 'text-light opacity-50',
|
|
37
|
-
hidden: 'invisible',
|
|
38
|
-
...classNames,
|
|
39
|
-
}, components: {
|
|
40
|
-
// Chevron: () => <Left className="w-4 h-4" />,
|
|
41
|
-
}, ...props }));
|
|
42
|
-
}
|
|
43
|
-
exports.Calendar = Calendar;
|
|
44
|
-
Calendar.displayName = 'Calendar';
|
|
45
|
-
//# sourceMappingURL=Calendar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../src/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uDAA4C;AAC5C,0CAAmC;AACnC,4CAAoC;AAEpC,MAAM,kBAAkB,GAAG,4CAA4C,CAAA;AACvE,MAAM,eAAe,GAAG,gDAAgD,CAAA;AACxE,MAAM,kBAAkB,GAAG,4EAA4E,CAAA;AACvG,MAAM,aAAa,GAClB,6IAA6I,CAAA;AAG9I,SAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,KAAK,EAAiB;IAC3F,OAAO,CACN,oBAAC,4BAAS,IACT,MAAM,EAAE,WAAE,EACV,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,IAAA,UAAE,EAAC,aAAa,EAAE,SAAS,CAAC,EACvC,UAAU,EAAE;YACX,MAAM,EAAE,UAAU;YAClB,KAAK,EAAE,2CAA2C;YAClD,UAAU,EAAE,wBAAwB;YACpC,aAAa,EAAE,iBAAiB;YAChC,aAAa,EAAE,gCAAgC;YAC/C,GAAG,EAAE,6CAA6C;YAClD,eAAe,EAAE,aAAa;YAC9B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,6CAA6C;YACtD,IAAI,EAAE,kBAAkB;YACxB,UAAU,EAAE,uBAAuB;YACnC,GAAG,EAAE,IAAA,UAAE,EACN,mDAAmD,EACnD,KAAK,CAAC,IAAI,KAAK,OAAO;gBACrB,CAAC,CAAC,wMAAwM;gBAC1M,CAAC,CAAC,kCAAkC,CACrC;YACD,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,eAAe;YAC1B,YAAY,EAAE,kBAAkB;YAChC,QAAQ,EAAE,kBAAkB;YAC5B,KAAK,EAAE,eAAe;YACtB,OAAO,EACN,qGAAqG;YACtG,QAAQ,EAAE,uBAAuB;YACjC,MAAM,EAAE,WAAW;YACnB,GAAG,UAAU;SACb,EACD,UAAU,EACT;QACC,+CAA+C;SAC/C,KAEE,KAAK,GACR,CACF,CAAA;AACF,CAAC;AAIQ,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA"}
|
package/dist/Calendar/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Calendar } from './Calendar';
|
package/dist/Calendar/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Calendar = void 0;
|
|
4
|
-
var Calendar_1 = require("./Calendar");
|
|
5
|
-
Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return Calendar_1.Calendar; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Calendar/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatePicker = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const date_fns_1 = require("date-fns");
|
|
7
|
-
const utils_1 = require("../@/lib/utils");
|
|
8
|
-
const Calendar_1 = require("../Calendar");
|
|
9
|
-
const Icon_1 = require("../Icon");
|
|
10
|
-
const Popover_1 = require("../Popover");
|
|
11
|
-
const locale_1 = require("date-fns/locale");
|
|
12
|
-
const trigegrClasses = 'inline-flex items-center border-input px-[12px] border rounded-sm h-[44px] text-left';
|
|
13
|
-
const DatePicker = ({ placeholder, triggerDisabled, date, classTrigger, ...props }) => {
|
|
14
|
-
return (React.createElement(Popover_1.Popover, null,
|
|
15
|
-
React.createElement(Popover_1.Popover.Trigger, { asChild: true },
|
|
16
|
-
React.createElement("button", { className: (0, utils_1.cn)(trigegrClasses, { 'bg-light text-light': triggerDisabled }, classTrigger), disabled: triggerDisabled },
|
|
17
|
-
date ? React.createElement("span", { className: 'w-[calc(100%-26px)] truncate' }, (0, date_fns_1.format)(date, 'PPP', { locale: locale_1.ru })) : React.createElement("span", { className: 'w-[calc(100%-26px)] text-light truncate' }, placeholder),
|
|
18
|
-
React.createElement(Icon_1.Calendar, { width: 18, height: 18, className: "ml-[8px] text-light shrink-0" }))),
|
|
19
|
-
React.createElement(Popover_1.Popover.Content, { className: "bg-page p-0 w-auto", align: "center" },
|
|
20
|
-
React.createElement(Calendar_1.Calendar, { ...props }))));
|
|
21
|
-
};
|
|
22
|
-
exports.DatePicker = DatePicker;
|
|
23
|
-
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,uCAAiC;AACjC,0CAAmC;AACnC,0CAAsC;AACtC,kCAAkD;AAClD,wCAAoC;AACpC,4CAAoC;AAEpC,MAAM,cAAc,GAAG,sFAAsF,CAAA;AAS7G,MAAM,UAAU,GAAqB,CAAC,EAAC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAG,GAAG,KAAK,EAAC,EAAE,EAAE;IAEtG,OAAO,CACN,oBAAC,iBAAO;QACP,oBAAC,iBAAO,CAAC,OAAO,IAAC,OAAO;YACvB,gCAAQ,SAAS,EAAE,IAAA,UAAE,EAAC,cAAc,EAAE,EAAC,qBAAqB,EAAC,eAAe,EAAC,EAAE,YAAY,CAAC,EAAE,QAAQ,EAAE,eAAe;gBACrH,IAAI,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,8BAA8B,IAAE,IAAA,iBAAM,EAAC,IAAI,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,WAAE,EAAC,CAAC,CAAQ,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,yCAAyC,IAAE,WAAW,CAAQ;gBAClL,oBAAC,eAAY,IAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAC,8BAA8B,GAAG,CACxE,CACQ;QAClB,oBAAC,iBAAO,CAAC,OAAO,IACf,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,QAAQ;YAEd,oBAAC,mBAAQ,OAAK,KAAK,GAAG,CACL,CACT,CACV,CAAA;AACF,CAAC,CAAA;AAEQ,gCAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DatePicker } from './DatePicker';
|
package/dist/DatePicker/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatePicker = void 0;
|
|
4
|
-
var DatePicker_1 = require("./DatePicker");
|
|
5
|
-
Object.defineProperty(exports, "DatePicker", { enumerable: true, get: function () { return DatePicker_1.DatePicker; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DatePicker/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
package/dist/Form/Form.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
-
import { ControllerProps, FieldValues } from 'react-hook-form';
|
|
4
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends import("react-hook-form").Path<TFieldValues> = import("react-hook-form").Path<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
6
|
-
declare const useFormField: () => {
|
|
7
|
-
invalid: boolean;
|
|
8
|
-
isDirty: boolean;
|
|
9
|
-
isTouched: boolean;
|
|
10
|
-
isValidating: boolean;
|
|
11
|
-
error?: import("react-hook-form").FieldError;
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
formItemId: string;
|
|
15
|
-
formDescriptionId: string;
|
|
16
|
-
formMessageId: string;
|
|
17
|
-
};
|
|
18
|
-
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
20
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
-
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
-
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };
|
package/dist/Form/Form.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.Form = exports.useFormField = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const react_slot_1 = require("@radix-ui/react-slot");
|
|
7
|
-
const react_hook_form_1 = require("react-hook-form");
|
|
8
|
-
const utils_1 = require("../@/lib/utils");
|
|
9
|
-
const Label_1 = require("../Label");
|
|
10
|
-
const Form = react_hook_form_1.FormProvider;
|
|
11
|
-
exports.Form = Form;
|
|
12
|
-
const FormFieldContext = React.createContext({});
|
|
13
|
-
const FormField = ({ ...props }) => {
|
|
14
|
-
return (React.createElement(FormFieldContext.Provider, { value: { name: props.name } },
|
|
15
|
-
React.createElement(react_hook_form_1.Controller, { ...props })));
|
|
16
|
-
};
|
|
17
|
-
exports.FormField = FormField;
|
|
18
|
-
const useFormField = () => {
|
|
19
|
-
const fieldContext = React.useContext(FormFieldContext);
|
|
20
|
-
const itemContext = React.useContext(FormItemContext);
|
|
21
|
-
const { getFieldState, formState } = (0, react_hook_form_1.useFormContext)();
|
|
22
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
23
|
-
if (!fieldContext) {
|
|
24
|
-
throw new Error('useFormField should be used within <FormField>');
|
|
25
|
-
}
|
|
26
|
-
const { id } = itemContext;
|
|
27
|
-
return {
|
|
28
|
-
id,
|
|
29
|
-
name: fieldContext.name,
|
|
30
|
-
formItemId: `${id}-form-item`,
|
|
31
|
-
formDescriptionId: `${id}-form-item-description`,
|
|
32
|
-
formMessageId: `${id}-form-item-message`,
|
|
33
|
-
...fieldState,
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
exports.useFormField = useFormField;
|
|
37
|
-
const FormItemContext = React.createContext({});
|
|
38
|
-
const FormItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
39
|
-
const id = React.useId();
|
|
40
|
-
return (React.createElement(FormItemContext.Provider, { value: { id } },
|
|
41
|
-
React.createElement("div", { ref: ref, className: (0, utils_1.cn)('space-y-2', className), ...props })));
|
|
42
|
-
});
|
|
43
|
-
exports.FormItem = FormItem;
|
|
44
|
-
FormItem.displayName = 'FormItem';
|
|
45
|
-
const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
|
|
46
|
-
const { error, formItemId } = useFormField();
|
|
47
|
-
return (React.createElement(Label_1.Label, { ref: ref, className: (0, utils_1.cn)(error && 'text-destructive', className), htmlFor: formItemId, ...props }));
|
|
48
|
-
});
|
|
49
|
-
exports.FormLabel = FormLabel;
|
|
50
|
-
FormLabel.displayName = 'FormLabel';
|
|
51
|
-
const FormControl = React.forwardRef(({ ...props }, ref) => {
|
|
52
|
-
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
53
|
-
return (React.createElement(react_slot_1.Slot, { ref: ref, id: formItemId, "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`, "aria-invalid": !!error, ...props }));
|
|
54
|
-
});
|
|
55
|
-
exports.FormControl = FormControl;
|
|
56
|
-
FormControl.displayName = 'FormControl';
|
|
57
|
-
const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
|
|
58
|
-
const { formDescriptionId } = useFormField();
|
|
59
|
-
return (React.createElement("p", { ref: ref, id: formDescriptionId, className: (0, utils_1.cn)('text-[0.8rem] text-light', className), ...props }));
|
|
60
|
-
});
|
|
61
|
-
exports.FormDescription = FormDescription;
|
|
62
|
-
FormDescription.displayName = 'FormDescription';
|
|
63
|
-
const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
64
|
-
const { error, formMessageId } = useFormField();
|
|
65
|
-
const body = error ? String(error?.message) : children;
|
|
66
|
-
if (!body) {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
return (React.createElement("p", { ref: ref, id: formMessageId, className: (0, utils_1.cn)('text-[0.8rem] font-medium text-destructive', className), ...props }, body));
|
|
70
|
-
});
|
|
71
|
-
exports.FormMessage = FormMessage;
|
|
72
|
-
FormMessage.displayName = 'FormMessage';
|
|
73
|
-
//# sourceMappingURL=Form.js.map
|
package/dist/Form/Form.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../../src/Form/Form.tsx"],"names":[],"mappings":"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"}
|
package/dist/Form/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField } from './Form';
|
package/dist/Form/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormField = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormLabel = exports.FormItem = exports.Form = exports.useFormField = void 0;
|
|
4
|
-
var Form_1 = require("./Form");
|
|
5
|
-
Object.defineProperty(exports, "useFormField", { enumerable: true, get: function () { return Form_1.useFormField; } });
|
|
6
|
-
Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return Form_1.Form; } });
|
|
7
|
-
Object.defineProperty(exports, "FormItem", { enumerable: true, get: function () { return Form_1.FormItem; } });
|
|
8
|
-
Object.defineProperty(exports, "FormLabel", { enumerable: true, get: function () { return Form_1.FormLabel; } });
|
|
9
|
-
Object.defineProperty(exports, "FormControl", { enumerable: true, get: function () { return Form_1.FormControl; } });
|
|
10
|
-
Object.defineProperty(exports, "FormDescription", { enumerable: true, get: function () { return Form_1.FormDescription; } });
|
|
11
|
-
Object.defineProperty(exports, "FormMessage", { enumerable: true, get: function () { return Form_1.FormMessage; } });
|
|
12
|
-
Object.defineProperty(exports, "FormField", { enumerable: true, get: function () { return Form_1.FormField; } });
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Form/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":";;;AAAA,+BAAsH;AAA7G,oGAAA,YAAY,OAAA;AAAE,4FAAA,IAAI,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,uGAAA,eAAe,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,iGAAA,SAAS,OAAA"}
|
package/dist/Input/InputMask.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InputMask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const react_imask_1 = require("react-imask");
|
|
7
|
-
const inputClasses = 'form-input border-input file:border-0 bg-transparent font-normal file:bg-transparent disabled:opacity-50 border rounded-sm focus-visible:ring-1 focus-visible:ring-ring w-full h-[44px] file:font-medium file:text-sm placeholder:text-muted-foreground leading-[1.17] transition-colors focus-visible:outline-none disabled:cursor-not-allowed';
|
|
8
|
-
const InputMask = ({ ...props }) => {
|
|
9
|
-
return (React.createElement(react_imask_1.IMaskInput, { className: inputClasses, ...props }));
|
|
10
|
-
};
|
|
11
|
-
exports.InputMask = InputMask;
|
|
12
|
-
//# sourceMappingURL=InputMask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputMask.js","sourceRoot":"","sources":["../../src/Input/InputMask.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,6CAAwC;AAExC,MAAM,YAAY,GAAG,iVAAiV,CAAA;AAEtW,MAAM,SAAS,GAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5C,OAAO,CACN,oBAAC,wBAAU,IACV,SAAS,EAAE,YAAY,KACnB,KAAK,GACR,CACF,CAAA;AACF,CAAC,CAAA;AAEQ,8BAAS"}
|
package/dist/Label/Label.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
-
export { Label };
|
package/dist/Label/Label.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Label = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const LabelPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-label"));
|
|
7
|
-
const class_variance_authority_1 = require("class-variance-authority");
|
|
8
|
-
const utils_1 = require("../@/lib/utils");
|
|
9
|
-
const labelVariants = (0, class_variance_authority_1.cva)('peer-disabled:opacity-70 peer-disabled:cursor-not-allowed');
|
|
10
|
-
const Label = React.forwardRef(({ className, ...props }, ref) => (React.createElement(LabelPrimitive.Root, { ref: ref, className: (0, utils_1.cn)(labelVariants(), className), ...props })));
|
|
11
|
-
exports.Label = Label;
|
|
12
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
13
|
-
//# sourceMappingURL=Label.js.map
|
package/dist/Label/Label.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../src/Label/Label.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,mFAAuD;AACvD,uEAAiE;AACjE,0CAAmC;AAEnC,MAAM,aAAa,GAAG,IAAA,8BAAG,EAAC,2DAA2D,CAAC,CAAA;AAEtF,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAG5B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,oBAAC,cAAc,CAAC,IAAI,IACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EAAC,aAAa,EAAE,EAAE,SAAS,CAAC,KACrC,KAAK,GACR,CACF,CAAC,CAAA;AAGO,sBAAK;AAFd,KAAK,CAAC,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAA"}
|
package/dist/Label/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Label } from './Label';
|
package/dist/Label/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Label = void 0;
|
|
4
|
-
var Label_1 = require("./Label");
|
|
5
|
-
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return Label_1.Label; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Label/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Label/index.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAAtB,8FAAA,KAAK,OAAA"}
|
package/dist/Select/Select.d.ts
DELETED