@modul/mbui 0.0.20-beta-test-ac75fb8e → 0.0.20-beta-pv-52992-d5155aa6
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/Drawer/Drawer.d.ts +10 -4
- package/dist/Drawer/Drawer.js +29 -5
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +2 -2
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Input-OTP/Input.js +3 -2
- package/dist/Input-OTP/Input.js.map +1 -1
- package/dist/Select/SelectAccount.d.ts +8 -0
- package/dist/Select/SelectAccount.js +50 -0
- package/dist/Select/SelectAccount.js.map +1 -0
- package/dist/Select/SelectAccountCard.js +5 -33
- package/dist/Select/SelectAccountCard.js.map +1 -1
- package/dist/Select/SelectAsync.js +12 -73
- package/dist/Select/SelectAsync.js.map +1 -1
- package/dist/Select/SelectBase.js +13 -73
- package/dist/Select/SelectBase.js.map +1 -1
- package/dist/Select/components/components.d.ts +15 -0
- package/dist/Select/components/components.js +80 -0
- package/dist/Select/components/components.js.map +1 -0
- package/dist/Select/components/index.d.ts +1 -0
- package/dist/Select/components/index.js +17 -0
- package/dist/Select/components/index.js.map +1 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/Select/index.js +3 -1
- package/dist/Select/index.js.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/src/@/config/index.ts +0 -5
- package/src/Drawer/Drawer.tsx +82 -3
- package/src/Drawer/index.ts +1 -1
- package/src/Input-OTP/Input.tsx +2 -2
- package/src/Select/SelectAccount.tsx +101 -0
- package/src/Select/SelectAccountCard.tsx +1 -51
- package/src/Select/SelectAsync.tsx +1 -162
- package/src/Select/SelectBase.tsx +19 -168
- package/src/Select/components/components.tsx +186 -0
- package/src/Select/components/index.tsx +15 -0
- package/src/Select/index.ts +1 -0
- package/src/assets/css/global.css +1 -4
- package/src/index.ts +10 -16
- package/dist/Badge/Badge.d.ts +0 -10
- package/dist/Badge/Badge.js +0 -52
- package/dist/Badge/Badge.js.map +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Badge/index.js +0 -7
- package/dist/Badge/index.js.map +0 -1
- package/dist/Checkbox/Checkbox.d.ts +0 -4
- package/dist/Checkbox/Checkbox.js +0 -35
- package/dist/Checkbox/Checkbox.js.map +0 -1
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Checkbox/index.js +0 -6
- package/dist/Checkbox/index.js.map +0 -1
- package/src/Badge/Badge.tsx +0 -58
- package/src/Badge/index.ts +0 -1
- package/src/Checkbox/Checkbox.tsx +0 -44
- package/src/Checkbox/index.ts +0 -1
- package/src/pages/payments/SmsSign/sms-sign.tsx +0 -75
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Placeholder = exports.Menu = exports.SingleValue = exports.ValueContainer = exports.DropdownIndicator = exports.LoadingIndicator = exports.IndicatorsContainer = exports.Option = exports.optionClasses = exports.colourStyles = exports.Control = exports.Input = void 0;
|
|
4
|
+
var components_1 = require("./components");
|
|
5
|
+
Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return components_1.Input; } });
|
|
6
|
+
Object.defineProperty(exports, "Control", { enumerable: true, get: function () { return components_1.Control; } });
|
|
7
|
+
Object.defineProperty(exports, "colourStyles", { enumerable: true, get: function () { return components_1.colourStyles; } });
|
|
8
|
+
Object.defineProperty(exports, "optionClasses", { enumerable: true, get: function () { return components_1.optionClasses; } });
|
|
9
|
+
Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return components_1.Option; } });
|
|
10
|
+
Object.defineProperty(exports, "IndicatorsContainer", { enumerable: true, get: function () { return components_1.IndicatorsContainer; } });
|
|
11
|
+
Object.defineProperty(exports, "LoadingIndicator", { enumerable: true, get: function () { return components_1.LoadingIndicator; } });
|
|
12
|
+
Object.defineProperty(exports, "DropdownIndicator", { enumerable: true, get: function () { return components_1.DropdownIndicator; } });
|
|
13
|
+
Object.defineProperty(exports, "ValueContainer", { enumerable: true, get: function () { return components_1.ValueContainer; } });
|
|
14
|
+
Object.defineProperty(exports, "SingleValue", { enumerable: true, get: function () { return components_1.SingleValue; } });
|
|
15
|
+
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return components_1.Menu; } });
|
|
16
|
+
Object.defineProperty(exports, "Placeholder", { enumerable: true, get: function () { return components_1.Placeholder; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Select/components/index.tsx"],"names":[],"mappings":";;;AAAA,2CAcqB;AAbpB,mGAAA,KAAK,OAAA;AACL,qGAAA,OAAO,OAAA;AACP,0GAAA,YAAY,OAAA;AACZ,2GAAA,aAAa,OAAA;AACb,oGAAA,MAAM,OAAA;AACN,iHAAA,mBAAmB,OAAA;AACnB,8GAAA,gBAAgB,OAAA;AAChB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AACd,yGAAA,WAAW,OAAA;AACX,kGAAA,IAAI,OAAA;AACJ,yGAAA,WAAW,OAAA"}
|
package/dist/Select/index.d.ts
CHANGED
package/dist/Select/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Select = exports.SelectBase = exports.SelectAsync = exports.SelectAccountCard = void 0;
|
|
3
|
+
exports.Select = exports.SelectBase = exports.SelectAsync = exports.SelectAccount = exports.SelectAccountCard = void 0;
|
|
4
4
|
var SelectAccountCard_1 = require("./SelectAccountCard");
|
|
5
5
|
Object.defineProperty(exports, "SelectAccountCard", { enumerable: true, get: function () { return SelectAccountCard_1.SelectAccountCard; } });
|
|
6
|
+
var SelectAccount_1 = require("./SelectAccount");
|
|
7
|
+
Object.defineProperty(exports, "SelectAccount", { enumerable: true, get: function () { return SelectAccount_1.SelectAccount; } });
|
|
6
8
|
var SelectAsync_1 = require("./SelectAsync");
|
|
7
9
|
Object.defineProperty(exports, "SelectAsync", { enumerable: true, get: function () { return SelectAsync_1.SelectAsync; } });
|
|
8
10
|
var SelectBase_1 = require("./SelectBase");
|
package/dist/Select/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Select/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Select/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ import { BottomNavigation, BottomNavigationList, BottomNavigationListItem, Botto
|
|
|
8
8
|
import * as Icon from './Icon';
|
|
9
9
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './Collapsible';
|
|
10
10
|
import { AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem } from './Collapsible';
|
|
11
|
-
import { Button,
|
|
11
|
+
import { Button, ButtonWidget } from './Button';
|
|
12
12
|
import { Audio } from './Audio';
|
|
13
13
|
import { cn } from './@/lib/utils';
|
|
14
|
-
import { Drawer, DrawerTrigger, DrawerClose, DrawerContent
|
|
14
|
+
import { Drawer, DrawerTrigger, DrawerTitle, DrawerClose, DrawerContent } from './Drawer';
|
|
15
15
|
import { Page } from './Page';
|
|
16
16
|
import { Chip } from './Chip';
|
|
17
17
|
import { InputField, InputLabel, InputMask } from './Input';
|
|
@@ -19,16 +19,13 @@ import { Alert } from './Alert';
|
|
|
19
19
|
import { Switch } from './Switch';
|
|
20
20
|
import { Label } from './Label';
|
|
21
21
|
import { Textarea } from './Textarea';
|
|
22
|
-
import { SelectAccountCard, SelectAsync } from './Select';
|
|
22
|
+
import { SelectAccountCard, SelectAsync, SelectAccount, Select } from './Select';
|
|
23
23
|
import { Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage } from './Form';
|
|
24
24
|
import { Calendar } from './Calendar';
|
|
25
25
|
import { DatePicker } from './DatePicker';
|
|
26
|
-
import {
|
|
27
|
-
import { Progress } from './Progress';
|
|
26
|
+
import { Progress } from "./Progress";
|
|
28
27
|
import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel } from './AlertDialog';
|
|
29
28
|
import { MessageTyping } from "./Chat";
|
|
30
29
|
import { FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses } from './FavoritePyments';
|
|
31
30
|
import { DigitKeyPad } from "./DigitKeyPad";
|
|
32
|
-
|
|
33
|
-
import { Checkbox } from './Checkbox';
|
|
34
|
-
export { Tooltip, Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, buttonVariants, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerClose, DrawerContent, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, SelectAsync, InputMask, Select, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, Badge, badgeVariants, Checkbox, farvoriteLinkClasses, DigitKeyPad, ButtonWidget, DrawerPortal, };
|
|
31
|
+
export { Tooltip, Tabs, Slider, Popover, Logo, InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, Collapsible, CollapsibleTrigger, CollapsibleContent, AccountCollapsible, AccountCollapsibleHeader, AccountCollapsibleTrigger, AccountCollapsibleContent, AccountCollapsibleContentItem, Button, InputField, InputLabel, Audio, cn, Icon, Drawer, DrawerTrigger, DrawerTitle, DrawerClose, DrawerContent, BottomNavigation, BottomNavigationList, BottomNavigationListItem, BottomNavigationLink, Page, Chip, Progress, Alert, Switch, Label, Textarea, SelectAccountCard, SelectAccount, SelectAsync, Select, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, InputMask, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, MessageTyping, FavoritePaymentsList, FavoritePaymentsItem, FarvoritePaymentDescription, farvoriteLinkClasses, DigitKeyPad, ButtonWidget, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormItem = exports.FormField = exports.FormLabel = exports.Form = exports.Select = exports.SelectAsync = exports.SelectAccount = exports.SelectAccountCard = exports.Textarea = exports.Label = exports.Switch = exports.Alert = exports.Progress = exports.Chip = exports.Page = exports.BottomNavigationLink = exports.BottomNavigationListItem = exports.BottomNavigationList = exports.BottomNavigation = exports.DrawerContent = exports.DrawerClose = exports.DrawerTitle = exports.DrawerTrigger = exports.Drawer = exports.Icon = exports.cn = exports.Audio = exports.InputLabel = exports.InputField = exports.Button = exports.AccountCollapsibleContentItem = exports.AccountCollapsibleContent = exports.AccountCollapsibleTrigger = exports.AccountCollapsibleHeader = exports.AccountCollapsible = exports.CollapsibleContent = exports.CollapsibleTrigger = exports.Collapsible = exports.InputOTPSeparator = exports.InputOTPSlot = exports.InputOTPGroup = exports.InputOTP = exports.Logo = exports.Popover = exports.Slider = exports.Tabs = exports.Tooltip = void 0;
|
|
4
|
+
exports.ButtonWidget = exports.DigitKeyPad = exports.farvoriteLinkClasses = exports.FarvoritePaymentDescription = exports.FavoritePaymentsItem = exports.FavoritePaymentsList = exports.MessageTyping = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialog = exports.InputMask = exports.DatePicker = exports.Calendar = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const Tooltip_1 = require("./Tooltip");
|
|
7
7
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "AccountCollapsibleContent", { enumerable: true,
|
|
|
37
37
|
Object.defineProperty(exports, "AccountCollapsibleContentItem", { enumerable: true, get: function () { return Collapsible_2.AccountCollapsibleContentItem; } });
|
|
38
38
|
const Button_1 = require("./Button");
|
|
39
39
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
40
|
-
Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: function () { return Button_1.buttonVariants; } });
|
|
41
40
|
Object.defineProperty(exports, "ButtonWidget", { enumerable: true, get: function () { return Button_1.ButtonWidget; } });
|
|
42
41
|
const Audio_1 = require("./Audio");
|
|
43
42
|
Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return Audio_1.Audio; } });
|
|
@@ -46,9 +45,9 @@ Object.defineProperty(exports, "cn", { enumerable: true, get: function () { retu
|
|
|
46
45
|
const Drawer_1 = require("./Drawer");
|
|
47
46
|
Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return Drawer_1.Drawer; } });
|
|
48
47
|
Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return Drawer_1.DrawerTrigger; } });
|
|
48
|
+
Object.defineProperty(exports, "DrawerTitle", { enumerable: true, get: function () { return Drawer_1.DrawerTitle; } });
|
|
49
49
|
Object.defineProperty(exports, "DrawerClose", { enumerable: true, get: function () { return Drawer_1.DrawerClose; } });
|
|
50
50
|
Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return Drawer_1.DrawerContent; } });
|
|
51
|
-
Object.defineProperty(exports, "DrawerPortal", { enumerable: true, get: function () { return Drawer_1.DrawerPortal; } });
|
|
52
51
|
const Page_1 = require("./Page");
|
|
53
52
|
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
54
53
|
const Chip_1 = require("./Chip");
|
|
@@ -68,6 +67,8 @@ Object.defineProperty(exports, "Textarea", { enumerable: true, get: function ()
|
|
|
68
67
|
const Select_1 = require("./Select");
|
|
69
68
|
Object.defineProperty(exports, "SelectAccountCard", { enumerable: true, get: function () { return Select_1.SelectAccountCard; } });
|
|
70
69
|
Object.defineProperty(exports, "SelectAsync", { enumerable: true, get: function () { return Select_1.SelectAsync; } });
|
|
70
|
+
Object.defineProperty(exports, "SelectAccount", { enumerable: true, get: function () { return Select_1.SelectAccount; } });
|
|
71
|
+
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
|
|
71
72
|
const Form_1 = require("./Form");
|
|
72
73
|
Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return Form_1.Form; } });
|
|
73
74
|
Object.defineProperty(exports, "FormLabel", { enumerable: true, get: function () { return Form_1.FormLabel; } });
|
|
@@ -80,8 +81,6 @@ const Calendar_1 = require("./Calendar");
|
|
|
80
81
|
Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return Calendar_1.Calendar; } });
|
|
81
82
|
const DatePicker_1 = require("./DatePicker");
|
|
82
83
|
Object.defineProperty(exports, "DatePicker", { enumerable: true, get: function () { return DatePicker_1.DatePicker; } });
|
|
83
|
-
const Select_2 = require("./Select");
|
|
84
|
-
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_2.Select; } });
|
|
85
84
|
const Progress_1 = require("./Progress");
|
|
86
85
|
Object.defineProperty(exports, "Progress", { enumerable: true, get: function () { return Progress_1.Progress; } });
|
|
87
86
|
const AlertDialog_1 = require("./AlertDialog");
|
|
@@ -103,9 +102,4 @@ Object.defineProperty(exports, "FarvoritePaymentDescription", { enumerable: true
|
|
|
103
102
|
Object.defineProperty(exports, "farvoriteLinkClasses", { enumerable: true, get: function () { return FavoritePyments_1.farvoriteLinkClasses; } });
|
|
104
103
|
const DigitKeyPad_1 = require("./DigitKeyPad");
|
|
105
104
|
Object.defineProperty(exports, "DigitKeyPad", { enumerable: true, get: function () { return DigitKeyPad_1.DigitKeyPad; } });
|
|
106
|
-
const Badge_1 = require("./Badge");
|
|
107
|
-
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
|
|
108
|
-
Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return Badge_1.badgeVariants; } });
|
|
109
|
-
const Checkbox_1 = require("./Checkbox");
|
|
110
|
-
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
111
105
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modul/mbui",
|
|
3
|
-
"version": "0.0.20-beta-
|
|
3
|
+
"version": "0.0.20-beta-pv-52992-d5155aa6",
|
|
4
4
|
"packageManager": "yarn@3.5.1",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"@hookform/resolvers": "3.9.0",
|
|
25
25
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
26
26
|
"@radix-ui/react-alert-dialog": "1.1.1",
|
|
27
|
-
"@radix-ui/react-checkbox": "1.1.1",
|
|
28
27
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
29
28
|
"@radix-ui/react-dropdown-menu": "2.1.1",
|
|
30
29
|
"@radix-ui/react-label": "2.1.0",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"tailwind-merge": "^2.3.0",
|
|
50
49
|
"tailwindcss": "^3.4.4",
|
|
51
50
|
"tailwindcss-animate": "^1.0.7",
|
|
52
|
-
"vaul": "0.9.
|
|
51
|
+
"vaul": "0.9.1",
|
|
53
52
|
"zod": "3.23.8"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
package/src/@/config/index.ts
CHANGED
|
@@ -75,15 +75,10 @@ export default {
|
|
|
75
75
|
from: { height: 'var(--radix-accordion-content-height)' },
|
|
76
76
|
to: { height: '0' },
|
|
77
77
|
},
|
|
78
|
-
'caret-blink': {
|
|
79
|
-
'0%,70%,100%': { opacity: '1' },
|
|
80
|
-
'20%,50%': { opacity: '0' },
|
|
81
|
-
},
|
|
82
78
|
},
|
|
83
79
|
animation: {
|
|
84
80
|
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
85
81
|
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
86
|
-
'caret-blink': 'caret-blink 1.25s ease-out infinite',
|
|
87
82
|
},
|
|
88
83
|
},
|
|
89
84
|
}
|
package/src/Drawer/Drawer.tsx
CHANGED
|
@@ -1,10 +1,89 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { Drawer as DrawerPrimitive } from 'vaul'
|
|
3
|
+
import { cn } from '../@/lib/utils'
|
|
4
|
+
import { useContext } from 'react'
|
|
5
|
+
|
|
6
|
+
const DrawerContext = React.createContext({direction: 'bottom', modal: false})
|
|
7
|
+
|
|
8
|
+
const Drawer = ({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => {
|
|
9
|
+
return (
|
|
10
|
+
<DrawerContext.Provider value={{direction: props.direction, modal: props.modal}}>
|
|
11
|
+
<DrawerPrimitive.Root {...props} />
|
|
12
|
+
</DrawerContext.Provider>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Drawer.displayName = 'Drawer'
|
|
3
17
|
|
|
4
|
-
const Drawer = DrawerPrimitive.Root
|
|
5
18
|
const DrawerTrigger = DrawerPrimitive.Trigger
|
|
6
|
-
|
|
19
|
+
|
|
7
20
|
const DrawerPortal = DrawerPrimitive.Portal
|
|
21
|
+
|
|
8
22
|
const DrawerClose = DrawerPrimitive.Close
|
|
9
23
|
|
|
10
|
-
|
|
24
|
+
const DrawerOverlay = DrawerPrimitive.Overlay
|
|
25
|
+
|
|
26
|
+
const DrawerTitle = React.forwardRef<
|
|
27
|
+
React.ElementRef<typeof DrawerPrimitive.Title>,
|
|
28
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
|
|
29
|
+
>(({ className, ...props }, ref) => (
|
|
30
|
+
<DrawerPrimitive.Title
|
|
31
|
+
ref={ref}
|
|
32
|
+
className={cn(className)}
|
|
33
|
+
{...props}
|
|
34
|
+
/>
|
|
35
|
+
))
|
|
36
|
+
|
|
37
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName
|
|
38
|
+
|
|
39
|
+
const DrawerContent = React.forwardRef<
|
|
40
|
+
React.ElementRef<typeof DrawerPrimitive.Content>,
|
|
41
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
|
|
42
|
+
>(({ className, children, ...props }, ref) => {
|
|
43
|
+
const {direction = 'bottom', modal = false} = useContext(DrawerContext)
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<DrawerPortal>
|
|
47
|
+
{modal && <DrawerOverlay className='z-50 fixed inset-0 bg-[--drawer-overlay-bg]' />}
|
|
48
|
+
<DrawerPrimitive.Content
|
|
49
|
+
ref={ref}
|
|
50
|
+
className={cn(
|
|
51
|
+
`z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`,
|
|
52
|
+
direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm',
|
|
53
|
+
className
|
|
54
|
+
)}
|
|
55
|
+
{...props}
|
|
56
|
+
>
|
|
57
|
+
{direction !== 'top' && (
|
|
58
|
+
<div className="pt-[4px] pb-[16px]">
|
|
59
|
+
<span className="block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" />
|
|
60
|
+
</div>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{children}
|
|
64
|
+
|
|
65
|
+
{direction === 'top' && (
|
|
66
|
+
<div className="pt-[24px] pb-[16px]">
|
|
67
|
+
<svg
|
|
68
|
+
className="mx-auto"
|
|
69
|
+
width="38"
|
|
70
|
+
height="10"
|
|
71
|
+
viewBox="0 0 38 10"
|
|
72
|
+
fill="none"
|
|
73
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
74
|
+
>
|
|
75
|
+
<path
|
|
76
|
+
d="M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z"
|
|
77
|
+
fill="var(--cl-graphite-5)"
|
|
78
|
+
/>
|
|
79
|
+
</svg>
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
</DrawerPrimitive.Content>
|
|
83
|
+
</DrawerPortal>
|
|
84
|
+
)
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
DrawerContent.displayName = 'DrawerContent'
|
|
88
|
+
|
|
89
|
+
export { Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerClose }
|
package/src/Drawer/index.ts
CHANGED
package/src/Input-OTP/Input.tsx
CHANGED
|
@@ -37,7 +37,7 @@ const InputOTPSlot = React.forwardRef<
|
|
|
37
37
|
ref={ref}
|
|
38
38
|
className={cn(
|
|
39
39
|
'relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all',
|
|
40
|
-
isActive && '
|
|
40
|
+
isActive && 'z-10 ring-2 ring-ring ring-offset-background',
|
|
41
41
|
className
|
|
42
42
|
)}
|
|
43
43
|
{...props}
|
|
@@ -46,7 +46,7 @@ const InputOTPSlot = React.forwardRef<
|
|
|
46
46
|
{char}
|
|
47
47
|
{hasFakeCaret && (
|
|
48
48
|
<div className="absolute inset-0 flex justify-center items-center pointer-events-none">
|
|
49
|
-
|
|
49
|
+
<div className="bg-foreground w-px h-4 animate-caret-blink duration-1000" />
|
|
50
50
|
</div>
|
|
51
51
|
)}
|
|
52
52
|
</div>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import { CheckSmall } from '../../src/Icon'
|
|
3
|
+
import Select, { components, OptionProps, SingleValueProps, GroupBase, Props } from 'react-select'
|
|
4
|
+
import { cn } from '../@/lib/utils'
|
|
5
|
+
import {
|
|
6
|
+
colourStyles,
|
|
7
|
+
Control,
|
|
8
|
+
DropdownIndicator,
|
|
9
|
+
IndicatorsContainer,
|
|
10
|
+
Input,
|
|
11
|
+
LoadingIndicator,
|
|
12
|
+
Menu,
|
|
13
|
+
optionClasses,
|
|
14
|
+
Placeholder,
|
|
15
|
+
ValueContainer,
|
|
16
|
+
} from './components'
|
|
17
|
+
|
|
18
|
+
const Option = ({ children, ...props }: OptionProps) => {
|
|
19
|
+
const {
|
|
20
|
+
isSelected,
|
|
21
|
+
isFocused,
|
|
22
|
+
isDisabled,
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
data: { label, account, balance, cur },
|
|
25
|
+
} = props
|
|
26
|
+
return (
|
|
27
|
+
<components.Option
|
|
28
|
+
className={cn(optionClasses, 'items-start', { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled })}
|
|
29
|
+
{...props}
|
|
30
|
+
>
|
|
31
|
+
<span className="flex basis-0 grow">
|
|
32
|
+
<span>
|
|
33
|
+
<span className="text-[16px`] leading-[1.375]">{label}</span>
|
|
34
|
+
<br />
|
|
35
|
+
<span className="text-[12px] text-light">{account}</span>
|
|
36
|
+
</span>
|
|
37
|
+
<span className="ml-auto shrink-0">{cur}</span>
|
|
38
|
+
</span>
|
|
39
|
+
|
|
40
|
+
<span className="ml-[16px] shrink-0 size-[24px]">
|
|
41
|
+
{isSelected && (
|
|
42
|
+
<CheckSmall
|
|
43
|
+
width="24"
|
|
44
|
+
height="24"
|
|
45
|
+
className="text-primary"
|
|
46
|
+
/>
|
|
47
|
+
)}
|
|
48
|
+
</span>
|
|
49
|
+
</components.Option>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const SingleValue = ({ children, ...props }: SingleValueProps) => {
|
|
54
|
+
const {
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
data: { account, cur },
|
|
57
|
+
} = props
|
|
58
|
+
return (
|
|
59
|
+
<components.SingleValue
|
|
60
|
+
className="col-start-1 col-end-3 row-start-1 row-end-2"
|
|
61
|
+
{...props}
|
|
62
|
+
>
|
|
63
|
+
{account} ({cur})
|
|
64
|
+
</components.SingleValue>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
type SelectAccountProps<
|
|
69
|
+
Option,
|
|
70
|
+
IsMulti extends boolean = false,
|
|
71
|
+
Group extends GroupBase<Option> = GroupBase<Option>
|
|
72
|
+
> = Props<Option, IsMulti, Group>
|
|
73
|
+
|
|
74
|
+
function SelectAccount<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(
|
|
75
|
+
props: SelectAccountProps<Option, IsMulti, Group>
|
|
76
|
+
) {
|
|
77
|
+
return (
|
|
78
|
+
<Select
|
|
79
|
+
components={{
|
|
80
|
+
Control,
|
|
81
|
+
Option,
|
|
82
|
+
SingleValue,
|
|
83
|
+
DropdownIndicator,
|
|
84
|
+
IndicatorSeparator: () => null,
|
|
85
|
+
Menu,
|
|
86
|
+
ValueContainer,
|
|
87
|
+
Placeholder,
|
|
88
|
+
Input,
|
|
89
|
+
LoadingIndicator,
|
|
90
|
+
IndicatorsContainer,
|
|
91
|
+
}}
|
|
92
|
+
styles={colourStyles}
|
|
93
|
+
unstyled={true}
|
|
94
|
+
{...props}
|
|
95
|
+
/>
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
SelectAccount.displayName = 'SelectAccount'
|
|
100
|
+
|
|
101
|
+
export { SelectAccount }
|
|
@@ -5,14 +5,12 @@ import Select, {
|
|
|
5
5
|
ControlProps,
|
|
6
6
|
OptionProps,
|
|
7
7
|
DropdownIndicatorProps,
|
|
8
|
-
StylesConfig,
|
|
9
8
|
SingleValueProps,
|
|
10
|
-
MenuProps,
|
|
11
|
-
ValueContainerProps,
|
|
12
9
|
Props,
|
|
13
10
|
GroupBase,
|
|
14
11
|
} from 'react-select'
|
|
15
12
|
import { cn } from '../@/lib/utils'
|
|
13
|
+
import { colourStyles, Menu, optionClasses, ValueContainer } from './components'
|
|
16
14
|
|
|
17
15
|
const selectTriggerClasses: string = `
|
|
18
16
|
flex
|
|
@@ -30,19 +28,6 @@ const selectTriggerClasses: string = `
|
|
|
30
28
|
shadow-[0px_8px_18px_0px_rgba(73,113,208,0.38)]
|
|
31
29
|
cursor-pointer
|
|
32
30
|
`
|
|
33
|
-
|
|
34
|
-
const colourStyles: StylesConfig = {
|
|
35
|
-
control: () => ({}),
|
|
36
|
-
option: () => ({}),
|
|
37
|
-
input: () => ({}),
|
|
38
|
-
dropdownIndicator: () => ({}),
|
|
39
|
-
indicatorsContainer: () => ({}),
|
|
40
|
-
menu: () => ({}),
|
|
41
|
-
menuList: () => ({}),
|
|
42
|
-
singleValue: () => ({}),
|
|
43
|
-
valueContainer: () => ({}),
|
|
44
|
-
}
|
|
45
|
-
|
|
46
31
|
const Control = ({ children, ...props }: ControlProps) => {
|
|
47
32
|
const { isFocused } = props
|
|
48
33
|
return (
|
|
@@ -58,19 +43,6 @@ const Control = ({ children, ...props }: ControlProps) => {
|
|
|
58
43
|
)
|
|
59
44
|
}
|
|
60
45
|
|
|
61
|
-
const optionClasses = `
|
|
62
|
-
flex
|
|
63
|
-
items-center
|
|
64
|
-
py-[16px]
|
|
65
|
-
px-[12px]
|
|
66
|
-
w-full
|
|
67
|
-
first:rounded-t-md
|
|
68
|
-
last:rounded-b-md
|
|
69
|
-
cursor-default
|
|
70
|
-
select-none
|
|
71
|
-
outline-none
|
|
72
|
-
`
|
|
73
|
-
|
|
74
46
|
const Option = ({ children, ...props }: OptionProps) => {
|
|
75
47
|
const {
|
|
76
48
|
isSelected,
|
|
@@ -123,17 +95,6 @@ const DropdownIndicator = ({ children, ...props }: DropdownIndicatorProps) => {
|
|
|
123
95
|
)
|
|
124
96
|
}
|
|
125
97
|
|
|
126
|
-
const ValueContainer = ({ children, ...props }: ValueContainerProps) => {
|
|
127
|
-
return (
|
|
128
|
-
<components.ValueContainer
|
|
129
|
-
className="flex-1 grid"
|
|
130
|
-
{...props}
|
|
131
|
-
>
|
|
132
|
-
{children}
|
|
133
|
-
</components.ValueContainer>
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
98
|
const SingleValue = ({ children, ...props }: SingleValueProps) => {
|
|
138
99
|
// @ts-ignore
|
|
139
100
|
const { label, account, balance, cur } = props.data
|
|
@@ -152,17 +113,6 @@ const SingleValue = ({ children, ...props }: SingleValueProps) => {
|
|
|
152
113
|
)
|
|
153
114
|
}
|
|
154
115
|
|
|
155
|
-
const Menu = ({ children, ...props }: MenuProps) => {
|
|
156
|
-
return (
|
|
157
|
-
<components.Menu
|
|
158
|
-
className="z-[1] absolute inset-x-0 bg-page shadow-md mt-[8px] rounded-md"
|
|
159
|
-
{...props}
|
|
160
|
-
>
|
|
161
|
-
{children}
|
|
162
|
-
</components.Menu>
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
116
|
type SelectAccountCardProps<
|
|
167
117
|
Option,
|
|
168
118
|
IsMulti extends boolean = false,
|