@modul/mbui 0.0.22-beta-pv-53283-40bfc57c → 0.0.23-beta-pv-53326-e6101125

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.
@@ -26,7 +26,7 @@ const DrawerContent = React.forwardRef(({ className, children, ...props }, ref)
26
26
  const { direction = 'bottom', modal = false } = (0, react_1.useContext)(DrawerContext);
27
27
  return (React.createElement(DrawerPortal, null,
28
28
  modal && React.createElement(DrawerOverlay, { className: 'z-50 fixed inset-0 bg-[--drawer-overlay-bg]' }),
29
- React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`, direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm', className), ...props },
29
+ React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`z-50 fixed inset-x-0 flex flex-col bg-page shadow-[0_0_6px_6px_rgba(36,48,54,.08)] max-h-[calc(100dvh-var(--page-header-height))] container`, direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm', className), ...props },
30
30
  direction !== 'top' && (React.createElement("div", { className: "pt-[4px] pb-[16px]" },
31
31
  React.createElement("span", { className: "block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" }))),
32
32
  children,
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,0CAAmC;AACnC,iCAAkC;AAElC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA;AAE9E,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,KAAK,EAAqD,EAAE,EAAE;IAClF,OAAO,CACN,oBAAC,aAAa,C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AAC,kEAAkE,GAAG,CAChF,CACN;YAEA,QAAQ;YAER,SAAS,KAAK,KAAK,IAAI,CACvB,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,6BACC,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;oBAElC,8BACC,CAAC,EAAC,+UAA+U,EACjV,IAAI,EAAC,sBAAsB,GAC1B,CACG,CACD,CACN,CACwB,CACZ,CACf,CAAA;AACF,CAAC,CAAC,CAAA;AAI8B,sCAAa;AAF7C,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
package/dist/Tabs/Tabs.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Tabs = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = (0, tslib_1.__importDefault)(require("react"));
6
- const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
6
+ const utils_1 = require("../@/lib/utils");
7
7
  const TabsPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-tabs"));
8
8
  const Tabs = ({ ...props }) => react_1.default.createElement(TabsPrimitive.Root, { ...props });
9
9
  exports.Tabs = Tabs;
@@ -15,7 +15,7 @@ const tabListClasses = `
15
15
  data-[orientation=horizontal]:h-[--tabs-height]
16
16
  data-[orientation=vertical]:flex-col
17
17
  `;
18
- const TabsList = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.List, { ref: ref, className: (0, classnames_1.default)(tabListClasses, className), ...props })));
18
+ const TabsList = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.List, { ref: ref, className: (0, utils_1.cn)(tabListClasses, className), ...props })));
19
19
  const triggerClasses = `
20
20
  flex-1
21
21
  shrink-0
@@ -44,7 +44,7 @@ const triggerClasses = `
44
44
  overflow-hidden
45
45
  whitespace-nowrap
46
46
  `;
47
- const TabsTrigger = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.Trigger, { ref: ref, className: (0, classnames_1.default)(triggerClasses, className), ...props })));
47
+ const TabsTrigger = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.Trigger, { ref: ref, className: (0, utils_1.cn)(triggerClasses, className), ...props })));
48
48
  const tabsContentClasses = `
49
49
  ring-offset-background
50
50
  focus-visible:outline-none
@@ -52,7 +52,7 @@ const tabsContentClasses = `
52
52
  focus-visible:ring-ring
53
53
  focus-visible:ring-offset-2
54
54
  `;
55
- const TabsContent = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.Content, { ref: ref, className: (0, classnames_1.default)(tabsContentClasses, className), ...props })));
55
+ const TabsContent = react_1.default.forwardRef(({ className, ...props }, ref) => (react_1.default.createElement(TabsPrimitive.Content, { ref: ref, className: (0, utils_1.cn)(tabsContentClasses, className), ...props })));
56
56
  Tabs.List = TabsList;
57
57
  TabsList.displayName = 'TabsList';
58
58
  Tabs.Trigger = TabsTrigger;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../src/Tabs/Tabs.tsx"],"names":[],"mappings":";;;;AAAA,+DAAyB;AACzB,yEAA2B;AAC3B,iFAAqD;AASrD,MAAM,IAAI,GAAyC,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,8BAAC,aAAa,CAAC,IAAI,OAAK,KAAK,GAAI,CAAA;AA8F7F,oBAAI;AA5Fb,MAAM,cAAc,GAAG;;;;;;;CAOtB,CAAA;AAED,MAAM,QAAQ,GAAG,eAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,8BAAC,aAAa,CAAC,IAAI,IAClB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA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AA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Toaster/index.ts"],"names":[],"mappings":";;;AAAA,qCAAyC;AAAhC,kGAAA,OAAO,OAAA;AAAE,gGAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Toaster/index.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAAjC,kGAAA,OAAO,OAAA;AAAE,gGAAA,KAAK,OAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Tooltip } from './Tooltip';
2
1
  import { Tabs } from './Tabs';
3
2
  import { Slider } from './Slider';
4
3
  import { Popover } from './Popover';
@@ -31,4 +30,4 @@ import { DigitKeyPad } from "./DigitKeyPad";
31
30
  import { Badge, badgeVariants } from './Badge';
32
31
  import { Toaster, toast } from './Toaster';
33
32
  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, 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, Badge, badgeVariants, DigitKeyPad, ButtonWidget, Toaster, toast, Checkbox, };
33
+ export { 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, 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, Badge, badgeVariants, DigitKeyPad, ButtonWidget, Toaster, toast, Checkbox, };
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.buttonVariants = 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.Checkbox = exports.toast = exports.Toaster = exports.ButtonWidget = exports.DigitKeyPad = exports.badgeVariants = exports.Badge = 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 = exports.FormMessage = void 0;
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.buttonVariants = 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 = void 0;
4
+ exports.Checkbox = exports.toast = exports.Toaster = exports.ButtonWidget = exports.DigitKeyPad = exports.badgeVariants = exports.Badge = 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
- const Tooltip_1 = require("./Tooltip");
7
- Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
8
6
  const Tabs_1 = require("./Tabs");
9
7
  Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_1.Tabs; } });
10
8
  const Slider_1 = require("./Slider");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAmC;AAwDlC,wFAxDQ,iBAAO,OAwDR;AAvDR,iCAA6B;AAwD5B,qFAxDQ,WAAI,OAwDR;AAvDL,qCAAiC;AAwDhC,uFAxDQ,eAAM,OAwDR;AAvDP,uCAAmC;AAwDlC,wFAxDQ,iBAAO,OAwDR;AAvDR,+DAAyB;AAwDxB,eAxDM,cAAI,CAwDN;AAvDL,2CAAsF;AAwDrF,yFAxDQ,oBAAQ,OAwDR;AACR,8FAzDkB,yBAAa,OAyDlB;AACb,6FA1DiC,wBAAY,OA0DjC;AACZ,kGA3D+C,6BAAiB,OA2D/C;AA1DlB,yDAK2B;AA0E1B,iGA9EA,mCAAgB,OA8EA;AAChB,qGA9EA,uCAAoB,OA8EA;AACpB,yGA9EA,2CAAwB,OA8EA;AACxB,qGA9EA,uCAAoB,OA8EA;AA5ErB,0DAA8B;AAmE7B,oBAAI;AAlEL,+CAAmF;AAoDlF,4FApDQ,yBAAW,OAoDR;AACX,mGArDqB,gCAAkB,OAqDrB;AAClB,mGAtDyC,gCAAkB,OAsDzC;AArDnB,+CAMsB;AAgDrB,mGArDA,gCAAkB,OAqDA;AAClB,yGArDA,sCAAwB,OAqDA;AACxB,0GArDA,uCAAyB,OAqDA;AACzB,0GArDA,uCAAyB,OA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ui",
3
- "version": "0.0.22-beta-pv-53283-40bfc57c",
3
+ "version": "0.0.23-beta-pv-53326-e6101125",
4
4
  "packageManager": "yarn@3.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,6 @@
41
41
  "clsx": "^2.1.1",
42
42
  "input-otp": "1.2.4",
43
43
  "lodash": "4.17.5",
44
- "react-datepicker": "4.16.0",
45
44
  "react-day-picker": "^9.0.8",
46
45
  "react-hook-form": "7.53.0",
47
46
  "react-imask": "7.6.1",
@@ -80,7 +79,6 @@
80
79
  "axios": "1.7.2",
81
80
  "babel": "^6.23.0",
82
81
  "babel-loader": "^9.1.2",
83
- "classnames": "^2.3.2",
84
82
  "clean-webpack-plugin": "^4.0.0",
85
83
  "config": "3.3.9",
86
84
  "copy-webpack-plugin": "^11.0.0",
@@ -112,8 +110,6 @@
112
110
  "react-dom": "^18.2.0",
113
111
  "storybook": "^8.2.8",
114
112
  "style-loader": "^3.3.3",
115
- "stylus": "^0.59.0",
116
- "stylus-loader": "^7.1.3",
117
113
  "terser-webpack-plugin": "^5.3.10",
118
114
  "ts-loader": "^9.4.2",
119
115
  "tslib": "^2.5.0",
@@ -124,7 +120,6 @@
124
120
  "webpack-dev-server": "4.15.1"
125
121
  },
126
122
  "peerDependencies": {
127
- "classnames": "^2.3.2",
128
123
  "date-fns": "^2.30.0",
129
124
  "react": "^18.2.0",
130
125
  "react-dom": "^18.2.0"
@@ -48,7 +48,7 @@ const DrawerContent = React.forwardRef<
48
48
  <DrawerPrimitive.Content
49
49
  ref={ref}
50
50
  className={cn(
51
- `z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`,
51
+ `z-50 fixed inset-x-0 flex flex-col bg-page shadow-[0_0_6px_6px_rgba(36,48,54,.08)] max-h-[calc(100dvh-var(--page-header-height))] container`,
52
52
  direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm',
53
53
  className
54
54
  )}
package/src/Tabs/Tabs.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import cn from 'classnames'
2
+ import { cn } from '../@/lib/utils'
3
3
  import * as TabsPrimitive from '@radix-ui/react-tabs'
4
4
  import { TabsProps } from '@radix-ui/react-tabs'
5
5
 
@@ -1 +1 @@
1
- export { Toaster, toast} from './Toaster'
1
+ export { Toaster, toast } from './Toaster'
@@ -182,15 +182,15 @@
182
182
 
183
183
  /* DRAWER */
184
184
  /* =========================================== */
185
- --drawer-overlay-bg: rgba(0,0,0,.3);
185
+ --drawer-overlay-bg: rgba(34, 39, 51, .5);
186
+ --drawer-shadow: 0 0 20px 44px rgba(36, 48, 54, 0.12);
187
+
188
+
186
189
  /* =========================================== */
187
190
  /* DRAWER */
188
191
 
189
192
  --page-header-height: 44px;
190
- --page-container-width: 375px;
191
-
192
-
193
-
193
+ --page-container-width: 600px;
194
194
  }
195
195
 
196
196
 
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Tooltip } from './Tooltip'
2
1
  import { Tabs } from './Tabs'
3
2
  import { Slider } from './Slider'
4
3
  import { Popover } from './Popover'
@@ -54,7 +53,6 @@ import { Toaster, toast } from './Toaster'
54
53
  import { Checkbox } from './Checkbox'
55
54
 
56
55
  export {
57
- Tooltip,
58
56
  Tabs,
59
57
  Slider,
60
58
  Popover,
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
- import { TooltipProps } from "@radix-ui/react-tooltip";
4
- declare type TooltipComponents = {
5
- Provider: typeof TooltipProvider;
6
- Trigger: typeof TooltipTrigger;
7
- Content: typeof TooltipContent;
8
- };
9
- declare const Tooltip: React.FC<TooltipProps> & TooltipComponents;
10
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
11
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
12
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export default Tooltip;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = (0, tslib_1.__importDefault)(require("react"));
5
- const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
6
- const TooltipPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-tooltip"));
7
- //
8
- const cssClass = `z-50 overflow-hidden
9
- rounded-md border bg-popover px-3 py-1.5 text-sm
10
- text-popover-foreground
11
- shadow-md animate-in fade-in-0 zoom-in-95
12
- data-[state=closed]:animate-out
13
- data-[state=closed]:fade-out-0
14
- data-[state=closed]:zoom-out-95
15
- data-[side=bottom]:slide-in-from-top-2
16
- data-[side=left]:slide-in-from-right-2
17
- data-[side=right]:slide-in-from-left-2
18
- data-[side=top]:slide-in-from-bottom-2`;
19
- const Tooltip = ({ ...props }) => react_1.default.createElement(TooltipPrimitive.Root, { ...props });
20
- const TooltipProvider = TooltipPrimitive.Provider;
21
- const TooltipTrigger = TooltipPrimitive.Trigger;
22
- const TooltipContent = react_1.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (react_1.default.createElement(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: (0, classnames_1.default)(cssClass, className), ...props })));
23
- Tooltip.Provider = TooltipProvider;
24
- Tooltip.Trigger = TooltipTrigger;
25
- Tooltip.Content = TooltipContent;
26
- TooltipContent.displayName = "TooltipContent";
27
- exports.default = Tooltip;
28
- //# sourceMappingURL=Tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;AAAA,+DAAyB;AACzB,yEAA2B;AAC3B,uFAA2D;AAE3D,EAAE;AACF,MAAM,QAAQ,GAAG;;;;;;;;;;yCAUwB,CAAA;AAiBzC,MAAM,OAAO,GAA+C,CAAC,EAAC,GAAG,KAAK,EAAC,EAAE,EAAE,CAAC,8BAAC,gBAAgB,CAAC,IAAI,OAAK,KAAK,GAAG,CAAA;AAE/G,MAAM,eAAe,GAAG,gBAAgB,CAAC,QAAQ,CAAA;AAEjD,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAA;AAE/C,MAAM,cAAc,GAAG,eAAK,CAAC,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnD,8BAAC,gBAAgB,CAAC,OAAO,IACxB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,IAAA,oBAAE,EAAC,QAAQ,EAAE,SAAS,CAAC,KAC9B,KAAK,GACR,CACF,CAAC,CAAA;AAEF,OAAO,CAAC,QAAQ,GAAG,eAAe,CAAA;AAClC,OAAO,CAAC,OAAO,GAAG,cAAc,CAAA;AAChC,OAAO,CAAC,OAAO,GAAG,cAAc,CAAA;AAChC,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAA;AAE7C,kBAAe,OAAO,CAAA"}
@@ -1,3 +0,0 @@
1
- import Tooltip from './Tooltip';
2
- export { Tooltip };
3
- export default Tooltip;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tooltip = void 0;
4
- const tslib_1 = require("tslib");
5
- const Tooltip_1 = (0, tslib_1.__importDefault)(require("./Tooltip"));
6
- exports.Tooltip = Tooltip_1.default;
7
- exports.default = Tooltip_1.default;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Tooltip/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA+B;AAEtB,kBAFF,iBAAO,CAEE;AAEhB,kBAAe,iBAAO,CAAA"}
@@ -1,56 +0,0 @@
1
- import React from 'react'
2
- import cn from 'classnames'
3
- import * as TooltipPrimitive from '@radix-ui/react-tooltip'
4
- import {TooltipProps} from "@radix-ui/react-tooltip";
5
- //
6
- const cssClass = `z-50 overflow-hidden
7
- rounded-md border bg-popover px-3 py-1.5 text-sm
8
- text-popover-foreground
9
- shadow-md animate-in fade-in-0 zoom-in-95
10
- data-[state=closed]:animate-out
11
- data-[state=closed]:fade-out-0
12
- data-[state=closed]:zoom-out-95
13
- data-[side=bottom]:slide-in-from-top-2
14
- data-[side=left]:slide-in-from-right-2
15
- data-[side=right]:slide-in-from-left-2
16
- data-[side=top]:slide-in-from-bottom-2`
17
- // import './ant-tooltip.styl'
18
-
19
- // "_error": mdStyle === "error",
20
- // "_white": mdStyle === "white",
21
- //
22
- // "_sm": mdSize === "sm",
23
- // "_md": mdSize === "md",
24
- // "_lg": mdSize === "lg",
25
- // "_xl": mdSize === "xl",
26
-
27
- type TooltipComponents = {
28
- Provider: typeof TooltipProvider,
29
- Trigger: typeof TooltipTrigger,
30
- Content: typeof TooltipContent,
31
- }
32
-
33
- const Tooltip: React.FC<TooltipProps> & TooltipComponents = ({...props}) => <TooltipPrimitive.Root {...props}/>
34
-
35
- const TooltipProvider = TooltipPrimitive.Provider
36
-
37
- const TooltipTrigger = TooltipPrimitive.Trigger
38
-
39
- const TooltipContent = React.forwardRef<
40
- React.ElementRef<typeof TooltipPrimitive.Content>,
41
- React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
42
- >(({ className, sideOffset = 4, ...props }, ref) => (
43
- <TooltipPrimitive.Content
44
- ref={ref}
45
- sideOffset={sideOffset}
46
- className={cn(cssClass, className)}
47
- {...props}
48
- />
49
- ))
50
-
51
- Tooltip.Provider = TooltipProvider
52
- Tooltip.Trigger = TooltipTrigger
53
- Tooltip.Content = TooltipContent
54
- TooltipContent.displayName = "TooltipContent"
55
-
56
- export default Tooltip
@@ -1,5 +0,0 @@
1
- import Tooltip from './Tooltip'
2
-
3
- export { Tooltip }
4
-
5
- export default Tooltip