@modul/mbui 0.0.1 → 0.0.2-beta-pv-52768-9b2131f6
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/package.json +38 -3
- package/src/@/config/button.ts +89 -0
- package/src/@/config/index.ts +99 -0
- package/src/@/lib/utils.ts +7 -0
- package/src/Audio/Audio.styl +115 -0
- package/src/Audio/Audio.tsx +359 -0
- package/src/Audio/index.ts +4 -0
- package/src/Audio/types.ts +40 -0
- package/src/Base/Buttons/Button.tsx +66 -41
- package/src/Base/Buttons/index.ts +2 -1
- package/src/Base/Input/Base.tsx +35 -0
- package/src/Base/Input/Input.tsx +31 -11
- package/src/Base/Input/types.ts +3 -2
- package/src/Collapse/Collapse.tsx +88 -0
- package/src/Collapse/ant-collapse.styl +93 -0
- package/src/Collapse/index.ts +5 -0
- package/src/Input-OTP/Input.tsx +71 -0
- package/src/Input-OTP/index.ts +3 -0
- package/src/Logo/Logo.tsx +16 -0
- package/src/Logo/index.ts +3 -0
- package/src/Popover/Popover.tsx +42 -0
- package/src/Popover/index.ts +5 -0
- package/src/Slider/Slider.tsx +21 -0
- package/src/Slider/index.ts +4 -0
- package/src/Slider/slider.styl +62 -0
- package/src/Tabs/Tabs.tsx +63 -0
- package/src/Tabs/ant-tabs.styl +91 -0
- package/src/Tabs/index.ts +5 -0
- package/src/Tooltip/Tooltip.tsx +47 -0
- package/src/Tooltip/index.ts +5 -0
- package/src/assets/css/global.css +125 -0
- package/src/assets/fonts/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/Roboto-Italic.woff2 +0 -0
- package/src/assets/fonts/Roboto.ttf +0 -0
- package/src/assets/fonts/Roboto.woff2 +0 -0
- package/src/assets/images/logo/bank/emblem-white.svg +1 -0
- package/src/assets/images/logo/bank/emblem.svg +1 -0
- package/src/assets/images/logo/bank/logo-white.svg +1 -0
- package/src/assets/images/logo/bank/logo.svg +1 -0
- package/src/assets/images/logo/garant/emblem-white.svg +1 -0
- package/src/assets/images/logo/garant/emblem.svg +1 -0
- package/src/assets/images/logo/garant/logo-white.svg +1 -0
- package/src/assets/images/logo/garant/logo.svg +1 -0
- package/src/assets/images/logo/kassa/emblem-white.svg +1 -0
- package/src/assets/images/logo/kassa/emblem.svg +1 -0
- package/src/assets/images/logo/kassa/logo-white.svg +1 -0
- package/src/assets/images/logo/kassa/logo.svg +1 -0
- package/src/components/BottonNavigation/BottonNavigation.tsx +55 -0
- package/src/components/BottonNavigation/index.ts +6 -0
- package/src/components/SvgIcon/SvgIcon.tsx +32 -0
- package/src/components/SvgIcon/icons/AddList.tsx +18 -0
- package/src/components/SvgIcon/icons/AlertCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/AlertCircleSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/AlertDiamond.tsx +18 -0
- package/src/components/SvgIcon/icons/AlertDiamondSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/AlertShield.tsx +18 -0
- package/src/components/SvgIcon/icons/Android.tsx +18 -0
- package/src/components/SvgIcon/icons/Apple.tsx +18 -0
- package/src/components/SvgIcon/icons/Archive.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowDown.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowLeft.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowRight.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowUp.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowUpCorner.tsx +18 -0
- package/src/components/SvgIcon/icons/ArrowsChange.tsx +18 -0
- package/src/components/SvgIcon/icons/Atm.tsx +18 -0
- package/src/components/SvgIcon/icons/Attach.tsx +18 -0
- package/src/components/SvgIcon/icons/Bank.tsx +18 -0
- package/src/components/SvgIcon/icons/Bold.tsx +18 -0
- package/src/components/SvgIcon/icons/Bonus.tsx +18 -0
- package/src/components/SvgIcon/icons/Building.tsx +18 -0
- package/src/components/SvgIcon/icons/Calendar.tsx +18 -0
- package/src/components/SvgIcon/icons/CalendarCancel.tsx +18 -0
- package/src/components/SvgIcon/icons/Call.tsx +18 -0
- package/src/components/SvgIcon/icons/CallEnd.tsx +18 -0
- package/src/components/SvgIcon/icons/CallMissed.tsx +18 -0
- package/src/components/SvgIcon/icons/Callback.tsx +18 -0
- package/src/components/SvgIcon/icons/Camera.tsx +18 -0
- package/src/components/SvgIcon/icons/Cancel.tsx +18 -0
- package/src/components/SvgIcon/icons/CancelSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Card.tsx +18 -0
- package/src/components/SvgIcon/icons/CardLock.tsx +18 -0
- package/src/components/SvgIcon/icons/CardRefill.tsx +18 -0
- package/src/components/SvgIcon/icons/CardReissue.tsx +18 -0
- package/src/components/SvgIcon/icons/CardScan.tsx +18 -0
- package/src/components/SvgIcon/icons/CardToCard.tsx +18 -0
- package/src/components/SvgIcon/icons/CardUnlock.tsx +18 -0
- package/src/components/SvgIcon/icons/Change.tsx +18 -0
- package/src/components/SvgIcon/icons/Chart.tsx +18 -0
- package/src/components/SvgIcon/icons/Chat.tsx +18 -0
- package/src/components/SvgIcon/icons/ChatSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Check.tsx +18 -0
- package/src/components/SvgIcon/icons/CheckCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/CheckCircleSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/CheckShield.tsx +20 -0
- package/src/components/SvgIcon/icons/CheckSmall.tsx +18 -0
- package/src/components/SvgIcon/icons/Checklist.tsx +18 -0
- package/src/components/SvgIcon/icons/Circle.tsx +18 -0
- package/src/components/SvgIcon/icons/Clock.tsx +18 -0
- package/src/components/SvgIcon/icons/Close.tsx +18 -0
- package/src/components/SvgIcon/icons/Coins.tsx +18 -0
- package/src/components/SvgIcon/icons/Collapse.tsx +18 -0
- package/src/components/SvgIcon/icons/Copy.tsx +18 -0
- package/src/components/SvgIcon/icons/Cup.tsx +18 -0
- package/src/components/SvgIcon/icons/CurrencyChange.tsx +18 -0
- package/src/components/SvgIcon/icons/CurrencyTransfer.tsx +18 -0
- package/src/components/SvgIcon/icons/Deposit.tsx +18 -0
- package/src/components/SvgIcon/icons/Diamond.tsx +18 -0
- package/src/components/SvgIcon/icons/Dislike.tsx +18 -0
- package/src/components/SvgIcon/icons/DislikeSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Doc.tsx +18 -0
- package/src/components/SvgIcon/icons/DocCancel.tsx +18 -0
- package/src/components/SvgIcon/icons/Dollar.tsx +18 -0
- package/src/components/SvgIcon/icons/DoubleArrow.tsx +18 -0
- package/src/components/SvgIcon/icons/DoubleTick.tsx +18 -0
- package/src/components/SvgIcon/icons/Download.tsx +18 -0
- package/src/components/SvgIcon/icons/Dropdown.tsx +18 -0
- package/src/components/SvgIcon/icons/DropdownSmallOld.tsx +20 -0
- package/src/components/SvgIcon/icons/Dropup.tsx +18 -0
- package/src/components/SvgIcon/icons/Edit.tsx +18 -0
- package/src/components/SvgIcon/icons/Email.tsx +18 -0
- package/src/components/SvgIcon/icons/Excel.tsx +18 -0
- package/src/components/SvgIcon/icons/Expand.tsx +18 -0
- package/src/components/SvgIcon/icons/Eye.tsx +18 -0
- package/src/components/SvgIcon/icons/EyeOff.tsx +18 -0
- package/src/components/SvgIcon/icons/Favorite.tsx +18 -0
- package/src/components/SvgIcon/icons/FavoriteSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Fb.tsx +18 -0
- package/src/components/SvgIcon/icons/FbCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/File.tsx +18 -0
- package/src/components/SvgIcon/icons/FileAdd.tsx +18 -0
- package/src/components/SvgIcon/icons/Files.tsx +18 -0
- package/src/components/SvgIcon/icons/Filter.tsx +18 -0
- package/src/components/SvgIcon/icons/Folder.tsx +18 -0
- package/src/components/SvgIcon/icons/Geolocation.tsx +18 -0
- package/src/components/SvgIcon/icons/Gift.tsx +18 -0
- package/src/components/SvgIcon/icons/Globe.tsx +18 -0
- package/src/components/SvgIcon/icons/Heart.tsx +18 -0
- package/src/components/SvgIcon/icons/HeartSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Help.tsx +18 -0
- package/src/components/SvgIcon/icons/Home.tsx +18 -0
- package/src/components/SvgIcon/icons/Housing.tsx +18 -0
- package/src/components/SvgIcon/icons/Ig.tsx +18 -0
- package/src/components/SvgIcon/icons/IgCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Info.tsx +18 -0
- package/src/components/SvgIcon/icons/InfoBook.tsx +18 -0
- package/src/components/SvgIcon/icons/InfoSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Italic.tsx +18 -0
- package/src/components/SvgIcon/icons/Key.tsx +18 -0
- package/src/components/SvgIcon/icons/Left.tsx +18 -0
- package/src/components/SvgIcon/icons/Lightbulb.tsx +18 -0
- package/src/components/SvgIcon/icons/Like.tsx +18 -0
- package/src/components/SvgIcon/icons/LikeSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Link.tsx +18 -0
- package/src/components/SvgIcon/icons/Lock.tsx +18 -0
- package/src/components/SvgIcon/icons/Logout.tsx +18 -0
- package/src/components/SvgIcon/icons/MagicWand.tsx +18 -0
- package/src/components/SvgIcon/icons/Mail.tsx +18 -0
- package/src/components/SvgIcon/icons/MailSend.tsx +18 -0
- package/src/components/SvgIcon/icons/Map.tsx +18 -0
- package/src/components/SvgIcon/icons/MapPin.tsx +18 -0
- package/src/components/SvgIcon/icons/Menu.tsx +18 -0
- package/src/components/SvgIcon/icons/Mic.tsx +18 -0
- package/src/components/SvgIcon/icons/MicOff.tsx +18 -0
- package/src/components/SvgIcon/icons/Minus.tsx +18 -0
- package/src/components/SvgIcon/icons/MinusCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/MinusShort.tsx +18 -0
- package/src/components/SvgIcon/icons/Moneybox.tsx +18 -0
- package/src/components/SvgIcon/icons/More.tsx +18 -0
- package/src/components/SvgIcon/icons/Move.tsx +18 -0
- package/src/components/SvgIcon/icons/Newbie.tsx +20 -0
- package/src/components/SvgIcon/icons/News.tsx +18 -0
- package/src/components/SvgIcon/icons/Notes.tsx +18 -0
- package/src/components/SvgIcon/icons/Notification.tsx +18 -0
- package/src/components/SvgIcon/icons/Ok.tsx +18 -0
- package/src/components/SvgIcon/icons/OkCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Order.tsx +18 -0
- package/src/components/SvgIcon/icons/OrderLoad.tsx +18 -0
- package/src/components/SvgIcon/icons/OrderSend.tsx +18 -0
- package/src/components/SvgIcon/icons/Pause.tsx +18 -0
- package/src/components/SvgIcon/icons/PauseCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Payment.tsx +18 -0
- package/src/components/SvgIcon/icons/PhoneShake.tsx +18 -0
- package/src/components/SvgIcon/icons/Play.tsx +18 -0
- package/src/components/SvgIcon/icons/PlaySolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Plus.tsx +18 -0
- package/src/components/SvgIcon/icons/PlusCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Pos.tsx +18 -0
- package/src/components/SvgIcon/icons/Print.tsx +18 -0
- package/src/components/SvgIcon/icons/QrPay.tsx +18 -0
- package/src/components/SvgIcon/icons/Redirect.tsx +18 -0
- package/src/components/SvgIcon/icons/Refill.tsx +18 -0
- package/src/components/SvgIcon/icons/Refund.tsx +18 -0
- package/src/components/SvgIcon/icons/Reload.tsx +18 -0
- package/src/components/SvgIcon/icons/Reply.tsx +18 -0
- package/src/components/SvgIcon/icons/ReplyShape.tsx +18 -0
- package/src/components/SvgIcon/icons/ReplyShapeSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Request.tsx +18 -0
- package/src/components/SvgIcon/icons/Right.tsx +18 -0
- package/src/components/SvgIcon/icons/Route.tsx +18 -0
- package/src/components/SvgIcon/icons/Ruble.tsx +18 -0
- package/src/components/SvgIcon/icons/Sbp.tsx +18 -0
- package/src/components/SvgIcon/icons/Search.tsx +18 -0
- package/src/components/SvgIcon/icons/Send.tsx +18 -0
- package/src/components/SvgIcon/icons/Services.tsx +18 -0
- package/src/components/SvgIcon/icons/Settings.tsx +18 -0
- package/src/components/SvgIcon/icons/Share.tsx +18 -0
- package/src/components/SvgIcon/icons/ShoppingCart.tsx +18 -0
- package/src/components/SvgIcon/icons/Sign.tsx +18 -0
- package/src/components/SvgIcon/icons/SlotMachine.tsx +18 -0
- package/src/components/SvgIcon/icons/SortDown.tsx +18 -0
- package/src/components/SvgIcon/icons/SortDownSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/SortUp.tsx +18 -0
- package/src/components/SvgIcon/icons/SortUpSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Stop.tsx +18 -0
- package/src/components/SvgIcon/icons/Support.tsx +18 -0
- package/src/components/SvgIcon/icons/Sync.tsx +18 -0
- package/src/components/SvgIcon/icons/Table.tsx +18 -0
- package/src/components/SvgIcon/icons/Tariffs.tsx +18 -0
- package/src/components/SvgIcon/icons/Tg.tsx +18 -0
- package/src/components/SvgIcon/icons/TgCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Timeout.tsx +18 -0
- package/src/components/SvgIcon/icons/Timer.tsx +18 -0
- package/src/components/SvgIcon/icons/Trash.tsx +18 -0
- package/src/components/SvgIcon/icons/TurnOff.tsx +18 -0
- package/src/components/SvgIcon/icons/Twitter.tsx +18 -0
- package/src/components/SvgIcon/icons/TwitterCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Underline.tsx +18 -0
- package/src/components/SvgIcon/icons/Unlink.tsx +18 -0
- package/src/components/SvgIcon/icons/Unsorted.tsx +18 -0
- package/src/components/SvgIcon/icons/UnsortedSolid.tsx +18 -0
- package/src/components/SvgIcon/icons/Upload.tsx +18 -0
- package/src/components/SvgIcon/icons/User.tsx +18 -0
- package/src/components/SvgIcon/icons/UserAdd.tsx +18 -0
- package/src/components/SvgIcon/icons/UserCard.tsx +18 -0
- package/src/components/SvgIcon/icons/UserEdit.tsx +18 -0
- package/src/components/SvgIcon/icons/UserQueue.tsx +18 -0
- package/src/components/SvgIcon/icons/Viber.tsx +18 -0
- package/src/components/SvgIcon/icons/ViberCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/ViewGrid.tsx +18 -0
- package/src/components/SvgIcon/icons/ViewHorizontal.tsx +18 -0
- package/src/components/SvgIcon/icons/ViewList.tsx +18 -0
- package/src/components/SvgIcon/icons/ViewRows.tsx +18 -0
- package/src/components/SvgIcon/icons/ViewVertical.tsx +18 -0
- package/src/components/SvgIcon/icons/Vk.tsx +18 -0
- package/src/components/SvgIcon/icons/VkCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Wallet.tsx +18 -0
- package/src/components/SvgIcon/icons/Warning.tsx +18 -0
- package/src/components/SvgIcon/icons/WarningClean.tsx +18 -0
- package/src/components/SvgIcon/icons/Whatsapp.tsx +18 -0
- package/src/components/SvgIcon/icons/WhatsappCircle.tsx +18 -0
- package/src/components/SvgIcon/icons/Wheelchair.tsx +18 -0
- package/src/components/SvgIcon/icons/index.ts +203 -0
- package/src/components/SvgIcon/index.ts +1 -0
- package/src/DatePicker/index.tsx +0 -4
- package/src/DatePicker/test.ts +0 -0
- package/src/index.ts +0 -6
package/package.json
CHANGED
|
@@ -1,26 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modul/mbui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-beta-pv-52768-9b2131f6",
|
|
4
4
|
"packageManager": "yarn@3.5.1",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"load-icons": "node scripts/icons/load-icons",
|
|
8
|
+
"icons": "yarn load-icons && svgr icons_sources",
|
|
7
9
|
"build:demo": "webpack --config ./demo/webpack.config.js",
|
|
8
10
|
"dev:demo": "webpack serve --config ./demo/webpack.config.js --open",
|
|
9
|
-
"demo": "yarn dlx http-server demo/dist -so -c-1"
|
|
11
|
+
"demo": "yarn dlx http-server demo/dist -so -c-1",
|
|
12
|
+
"storybook": "storybook dev -p 6006",
|
|
13
|
+
"build:storybook": "storybook build"
|
|
10
14
|
},
|
|
11
15
|
"lintConfig": "./.eslintrc.json",
|
|
12
16
|
"files": [
|
|
13
17
|
"src"
|
|
14
18
|
],
|
|
15
19
|
"dependencies": {
|
|
20
|
+
"@radix-ui/react-accordion": "^1.2.0",
|
|
21
|
+
"@radix-ui/react-popover": "^1.1.1",
|
|
22
|
+
"@radix-ui/react-slider": "^1.2.0",
|
|
23
|
+
"@radix-ui/react-slot": "1.1.0",
|
|
24
|
+
"@radix-ui/react-tabs": "^1.1.0",
|
|
25
|
+
"@radix-ui/react-tooltip": "^1.1.2",
|
|
26
|
+
"class-variance-authority": "^0.7.0",
|
|
27
|
+
"clsx": "^2.1.1",
|
|
28
|
+
"input-otp": "1.2.4",
|
|
29
|
+
"lucide-react": "^0.400.0",
|
|
16
30
|
"react-datepicker": "4.16.0",
|
|
17
|
-
"react-imask": "7.1.3"
|
|
31
|
+
"react-imask": "7.1.3",
|
|
32
|
+
"tailwind-merge": "^2.3.0",
|
|
33
|
+
"tailwindcss": "^3.4.4",
|
|
34
|
+
"tailwindcss-animate": "^1.0.7"
|
|
18
35
|
},
|
|
19
36
|
"devDependencies": {
|
|
20
37
|
"@babel/core": "^7.9.0",
|
|
21
38
|
"@babel/preset-env": "^7.9.5",
|
|
22
39
|
"@babel/preset-react": "^7.9.4",
|
|
23
40
|
"@babel/preset-typescript": "^7.21.5",
|
|
41
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
42
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
43
|
+
"@storybook/addon-links": "^7.4.0",
|
|
44
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
45
|
+
"@storybook/blocks": "^7.4.0",
|
|
46
|
+
"@storybook/react": "^7.4.0",
|
|
47
|
+
"@storybook/react-webpack5": "^7.4.0",
|
|
48
|
+
"@storybook/testing-library": "^0.2.0",
|
|
49
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
24
50
|
"@types/node": "^20.1.4",
|
|
25
51
|
"@types/react": "^18.2.6",
|
|
26
52
|
"@types/react-datepicker": "4.15.0",
|
|
@@ -28,6 +54,8 @@
|
|
|
28
54
|
"@typescript-eslint/eslint-plugin": "5.39.0",
|
|
29
55
|
"@typescript-eslint/parser": "5.39.0",
|
|
30
56
|
"@vitejs/plugin-react": "^4.0.0",
|
|
57
|
+
"autoprefixer": "10.4.19",
|
|
58
|
+
"axios": "1.7.2",
|
|
31
59
|
"babel": "^6.23.0",
|
|
32
60
|
"babel-loader": "^9.1.2",
|
|
33
61
|
"classnames": "^2.3.2",
|
|
@@ -35,6 +63,7 @@
|
|
|
35
63
|
"config": "3.3.9",
|
|
36
64
|
"copy-webpack-plugin": "^11.0.0",
|
|
37
65
|
"css-loader": "^6.8.1",
|
|
66
|
+
"date-fns": "^2.30.0",
|
|
38
67
|
"eslint": "8.25.0",
|
|
39
68
|
"eslint-config-prettier": "8.5.0",
|
|
40
69
|
"eslint-plugin-angular": "4.1.0",
|
|
@@ -42,11 +71,16 @@
|
|
|
42
71
|
"eslint-plugin-prettier": "4.2.1",
|
|
43
72
|
"eslint-plugin-react": "7.31.10",
|
|
44
73
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
74
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
45
75
|
"glob": "^10.2.4",
|
|
46
76
|
"html-webpack-plugin": "5.5.1",
|
|
77
|
+
"listr": "0.14.3",
|
|
78
|
+
"postcss": "^8.4.39",
|
|
79
|
+
"postcss-loader": "^8.1.1",
|
|
47
80
|
"prettier": "2.7.1",
|
|
48
81
|
"react": "18.2.0",
|
|
49
82
|
"react-dom": "^18.2.0",
|
|
83
|
+
"storybook": "^7.4.0",
|
|
50
84
|
"style-loader": "^3.3.3",
|
|
51
85
|
"stylus": "^0.59.0",
|
|
52
86
|
"stylus-loader": "^7.1.3",
|
|
@@ -59,6 +93,7 @@
|
|
|
59
93
|
},
|
|
60
94
|
"peerDependencies": {
|
|
61
95
|
"classnames": "^2.3.2",
|
|
96
|
+
"date-fns": "^2.30.0",
|
|
62
97
|
"react": "^18.2.0",
|
|
63
98
|
"react-dom": "^18.2.0"
|
|
64
99
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
textColor: {
|
|
3
|
+
btn: {
|
|
4
|
+
primary: {
|
|
5
|
+
DEFAULT: 'var(--btn-primary)',
|
|
6
|
+
outline: {
|
|
7
|
+
DEFAULT: 'var(--btn-primary-bg)',
|
|
8
|
+
hover: 'var(--btn-primary-hover-bg)',
|
|
9
|
+
focus: 'var(var(--btn-primary-focus-bg)',
|
|
10
|
+
active: 'var(--btn-primary-active-bg)',
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
secondary: 'var(--btn-secondary)',
|
|
14
|
+
success: 'var(--btn-success)',
|
|
15
|
+
ghost: 'var(--btn-ghost)',
|
|
16
|
+
outline: {
|
|
17
|
+
DEFAULT: 'var(--btn-ghost)',
|
|
18
|
+
hover: 'var(--btn-ghost-hover-bg)',
|
|
19
|
+
focus: 'var(var(--btn-ghost-focus-bg)',
|
|
20
|
+
active: 'var(--btn-ghost-active-bg)',
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
backgroundColor: {
|
|
25
|
+
btn: {
|
|
26
|
+
primary: {
|
|
27
|
+
DEFAULT: 'var(--btn-primary-bg)',
|
|
28
|
+
hover: 'var(--btn-primary-hover-bg)',
|
|
29
|
+
focus: 'var(var(--btn-primary-focus-bg)',
|
|
30
|
+
active: 'var(--btn-primary-active-bg)',
|
|
31
|
+
},
|
|
32
|
+
secondary: {
|
|
33
|
+
DEFAULT: 'var(--btn-secondary-bg)',
|
|
34
|
+
hover: 'var(--btn-secondary-hover-bg)',
|
|
35
|
+
focus: 'var(var(--btn-secondary-focus-bg)',
|
|
36
|
+
active: 'var(--btn-secondary-active-bg)',
|
|
37
|
+
},
|
|
38
|
+
success: {
|
|
39
|
+
DEFAULT: 'var(--btn-success-bg)',
|
|
40
|
+
hover: 'var(--btn-success-hover-bg)',
|
|
41
|
+
focus: 'var(var(--btn-success-focus-bg)',
|
|
42
|
+
active: 'var(--btn-success-active-bg)',
|
|
43
|
+
},
|
|
44
|
+
ghost: {
|
|
45
|
+
DEFAULT: 'var(--btn-ghost-bg)',
|
|
46
|
+
hover: 'var(--btn-ghost-hover-bg)',
|
|
47
|
+
focus: 'var(var(--btn-ghost-focus-bg)',
|
|
48
|
+
active: 'var(--btn-ghost-active-bg)',
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
borderColor: {
|
|
53
|
+
btn: {
|
|
54
|
+
primary: {
|
|
55
|
+
DEFAULT: 'var(--btn-primary-bg)',
|
|
56
|
+
hover: 'var(--btn-primary-hover-bg)',
|
|
57
|
+
focus: 'var(var(--btn-primary-focus-bg)',
|
|
58
|
+
active: 'var(--btn-primary-active-bg)',
|
|
59
|
+
outline: {
|
|
60
|
+
DEFAULT: 'var(--btn-primary-bg)',
|
|
61
|
+
hover: 'var(--btn-primary-hover-bg)',
|
|
62
|
+
focus: 'var(var(--btn-primary-focus-bg)',
|
|
63
|
+
active: 'var(--btn-primary-active-bg)',
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
secondary: {
|
|
67
|
+
DEFAULT: 'var(--btn-secondary-bg)',
|
|
68
|
+
hover: 'var(--btn-secondary-hover-bg)',
|
|
69
|
+
focus: 'var(var(--btn-secondary-focus-bg)',
|
|
70
|
+
active: 'var(--btn-secondary-active-bg)',
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
DEFAULT: 'var(--btn-success-bg)',
|
|
74
|
+
hover: 'var(--btn-success-hover-bg)',
|
|
75
|
+
focus: 'var(var(--btn-success-focus-bg)',
|
|
76
|
+
active: 'var(--btn-success-active-bg)',
|
|
77
|
+
},
|
|
78
|
+
ghost: {
|
|
79
|
+
DEFAULT: 'var(--btn-ghost-bg)',
|
|
80
|
+
hover: 'var(--btn-ghost-hover-bg)',
|
|
81
|
+
focus: 'var(var(--btn-ghost-focus-bg)',
|
|
82
|
+
active: 'var(--btn-ghost-active-bg)',
|
|
83
|
+
},
|
|
84
|
+
outline: {
|
|
85
|
+
DEFAULT: 'var(--btn-ghost)',
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import button from "./button"
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
container: {},
|
|
5
|
+
extend: {
|
|
6
|
+
colors: {
|
|
7
|
+
primary: {
|
|
8
|
+
DEFAULT: 'var(--primary)',
|
|
9
|
+
hover: 'var(--primary-hover)',
|
|
10
|
+
focus: 'var(var(--primary-focus)',
|
|
11
|
+
active: 'var(--primary-active)',
|
|
12
|
+
},
|
|
13
|
+
success: {
|
|
14
|
+
DEFAULT: 'var(--success)',
|
|
15
|
+
hover: 'var(--success-hover)',
|
|
16
|
+
focus: 'var(var(--success-focus)',
|
|
17
|
+
active: 'var(--success-active)',
|
|
18
|
+
},
|
|
19
|
+
secondary: {
|
|
20
|
+
DEFAULT: 'var(--secondary)',
|
|
21
|
+
hover: 'var(--secondary-hover)',
|
|
22
|
+
focus: 'var(var(--secondary-focus)',
|
|
23
|
+
active: 'var(--secondary-active)',
|
|
24
|
+
},
|
|
25
|
+
transparent: 'transparent',
|
|
26
|
+
current: 'currentColor',
|
|
27
|
+
},
|
|
28
|
+
...button,
|
|
29
|
+
// textColor: {
|
|
30
|
+
// base: 'var(--text-cl)',
|
|
31
|
+
// 'btn-primary': 'var(--btn-primary-cl)',
|
|
32
|
+
// 'btn-success': 'var(--btn-success-cl)',
|
|
33
|
+
// primary: 'var(--btn-txt-primary)',
|
|
34
|
+
// 'primary-hover': 'var(--btn-txt-primary-hover)',
|
|
35
|
+
// 'primary-focus': 'var(--btn-txt-primary-focus)',
|
|
36
|
+
// 'primary-active': 'var(--btn-txt-primary-active)',
|
|
37
|
+
// },
|
|
38
|
+
|
|
39
|
+
// border: {
|
|
40
|
+
// 'btn-primary-outline': '2px solid red'
|
|
41
|
+
// },
|
|
42
|
+
|
|
43
|
+
// colors: {
|
|
44
|
+
// border: 'hsl(var(--border))',
|
|
45
|
+
// input: 'hsl(var(--input))',
|
|
46
|
+
// ring: 'hsl(var(--ring))',
|
|
47
|
+
// background: 'hsl(var(--background))',
|
|
48
|
+
// foreground: 'hsl(var(--foreground))',
|
|
49
|
+
// primary: {
|
|
50
|
+
// DEFAULT: 'hsl(var(--primary))',
|
|
51
|
+
// foreground: 'hsl(var(--primary-foreground))',
|
|
52
|
+
// },
|
|
53
|
+
// secondary: {
|
|
54
|
+
// DEFAULT: 'hsl(var(--secondary))',
|
|
55
|
+
// foreground: 'hsl(var(--secondary-foreground))',
|
|
56
|
+
// },
|
|
57
|
+
// destructive: {
|
|
58
|
+
// DEFAULT: 'hsl(var(--destructive))',
|
|
59
|
+
// foreground: 'hsl(var(--destructive-foreground))',
|
|
60
|
+
// },
|
|
61
|
+
// muted: {
|
|
62
|
+
// DEFAULT: 'hsl(var(--muted))',
|
|
63
|
+
// foreground: 'hsl(var(--muted-foreground))',
|
|
64
|
+
// },
|
|
65
|
+
// accent: {
|
|
66
|
+
// DEFAULT: 'hsl(var(--accent))',
|
|
67
|
+
// foreground: 'hsl(var(--accent-foreground))',
|
|
68
|
+
// },
|
|
69
|
+
// popover: {
|
|
70
|
+
// DEFAULT: 'hsl(var(--popover))',
|
|
71
|
+
// foreground: 'hsl(var(--popover-foreground))',
|
|
72
|
+
// },
|
|
73
|
+
// card: {
|
|
74
|
+
// DEFAULT: 'hsl(var(--card))',
|
|
75
|
+
// foreground: 'hsl(var(--card-foreground))',
|
|
76
|
+
// },
|
|
77
|
+
// },
|
|
78
|
+
// borderRadius: {
|
|
79
|
+
// lg: `var(--radius)`,
|
|
80
|
+
// md: `calc(var(--radius) - 2px)`,
|
|
81
|
+
// sm: 'calc(var(--radius) - 4px)',
|
|
82
|
+
// },
|
|
83
|
+
|
|
84
|
+
keyframes: {
|
|
85
|
+
'accordion-down': {
|
|
86
|
+
from: { height: '0' },
|
|
87
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
88
|
+
},
|
|
89
|
+
'accordion-up': {
|
|
90
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
91
|
+
to: { height: '0' },
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
animation: {
|
|
95
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
96
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
|
|
2
|
+
.player
|
|
3
|
+
display flex
|
|
4
|
+
align-items center
|
|
5
|
+
|
|
6
|
+
&__btn
|
|
7
|
+
position relative
|
|
8
|
+
margin-right 12px
|
|
9
|
+
width 40px
|
|
10
|
+
height @width
|
|
11
|
+
font-size $fz-large
|
|
12
|
+
color $cl-white
|
|
13
|
+
background-color $cl-green-3
|
|
14
|
+
border 0
|
|
15
|
+
border-radius 50%
|
|
16
|
+
outline 0
|
|
17
|
+
transition background-color .3s ease-in-out
|
|
18
|
+
|
|
19
|
+
&:hover
|
|
20
|
+
&:focus
|
|
21
|
+
background-color $cl-green-4
|
|
22
|
+
|
|
23
|
+
&:active
|
|
24
|
+
background-color $cl-green-2
|
|
25
|
+
|
|
26
|
+
[class*=icon]
|
|
27
|
+
position absolute
|
|
28
|
+
top 50%
|
|
29
|
+
left 53%
|
|
30
|
+
transform translate(-50%, -50%)
|
|
31
|
+
|
|
32
|
+
&__progress
|
|
33
|
+
position relative
|
|
34
|
+
flex-grow 1
|
|
35
|
+
|
|
36
|
+
&-buffer
|
|
37
|
+
position absolute
|
|
38
|
+
top 0
|
|
39
|
+
left 0
|
|
40
|
+
height 2px
|
|
41
|
+
background-color $ca-graphite-5
|
|
42
|
+
border-radius 1px
|
|
43
|
+
|
|
44
|
+
.ant-slider-rail
|
|
45
|
+
cursor pointer
|
|
46
|
+
height 2px
|
|
47
|
+
background-color $ca-graphite-5
|
|
48
|
+
border-radius 1px
|
|
49
|
+
|
|
50
|
+
.ant-slider-track
|
|
51
|
+
position absolute
|
|
52
|
+
top 0
|
|
53
|
+
left 0
|
|
54
|
+
height 2px
|
|
55
|
+
background-color $cl-green-2
|
|
56
|
+
border-radius 1px
|
|
57
|
+
|
|
58
|
+
.ant-slider-handle
|
|
59
|
+
margin 0
|
|
60
|
+
cursor pointer
|
|
61
|
+
position absolute
|
|
62
|
+
top -4px
|
|
63
|
+
width 10px
|
|
64
|
+
height @width
|
|
65
|
+
border-radius 0
|
|
66
|
+
border 0
|
|
67
|
+
background-color transparent
|
|
68
|
+
transform translateX(-50%)
|
|
69
|
+
&::before
|
|
70
|
+
position absolute
|
|
71
|
+
display block
|
|
72
|
+
content ''
|
|
73
|
+
width 2px
|
|
74
|
+
height 8px
|
|
75
|
+
left 50%
|
|
76
|
+
top 50%
|
|
77
|
+
transform translate(-50%, -50%)
|
|
78
|
+
background-color $cl-green-2
|
|
79
|
+
border-radius 1px
|
|
80
|
+
|
|
81
|
+
.player__time
|
|
82
|
+
margin-top 14px
|
|
83
|
+
|
|
84
|
+
& + .player__time
|
|
85
|
+
margin-left 12px
|
|
86
|
+
|
|
87
|
+
&__range
|
|
88
|
+
position relative
|
|
89
|
+
height 2px
|
|
90
|
+
border-radius 1px
|
|
91
|
+
|
|
92
|
+
&__slider
|
|
93
|
+
position absolute
|
|
94
|
+
top 50%
|
|
95
|
+
left 0
|
|
96
|
+
margin-left -5px
|
|
97
|
+
width 10px
|
|
98
|
+
height @width
|
|
99
|
+
transform translateY(-50%)
|
|
100
|
+
|
|
101
|
+
&::after
|
|
102
|
+
content ''
|
|
103
|
+
position absolute
|
|
104
|
+
top 1px
|
|
105
|
+
left 50%
|
|
106
|
+
width 2px
|
|
107
|
+
height 8px
|
|
108
|
+
background-color $cl-green-2
|
|
109
|
+
border-radius 1px
|
|
110
|
+
transform translateX(-50%)
|
|
111
|
+
|
|
112
|
+
&__time
|
|
113
|
+
line-height 1
|
|
114
|
+
font-size 12px
|
|
115
|
+
color $cl-text-success
|