@modul/mbui 0.0.16-beta-pv-53139-6c26fe1d → 0.0.16-beta-pv-53139-f8011ffd

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.
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Checkbox = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = (0, tslib_1.__importStar)(require("react"));
6
+ const CheckboxPrimitive = (0, tslib_1.__importStar)(require("@radix-ui/react-checkbox"));
7
+ const icons_1 = require("../Icon/icons");
8
+ const checkboxClasses = {
9
+ root: `
10
+ peer
11
+ size-[18px]
12
+ shrink-0
13
+ rounded-sm
14
+ border-2
15
+ border-input
16
+ focus-visible:outline-none
17
+ focus-visible:ring-1 focus-visible:ring-ring
18
+ disabled:cursor-not-allowed disabled:opacity-50
19
+ data-[state=checked]:bg-primary
20
+ data-[state=checked]:border-primary
21
+ data-[state=checked]:text-white
22
+ `,
23
+ indicator: `
24
+ flex
25
+ justify-center
26
+ items-center
27
+ text-current
28
+ `
29
+ };
30
+ const Checkbox = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CheckboxPrimitive.Root, { ref: ref, className: checkboxClasses.root, ...props },
31
+ React.createElement(CheckboxPrimitive.Indicator, { className: checkboxClasses.indicator },
32
+ React.createElement(icons_1.CheckSmall, { className: "size-[14px]" })))));
33
+ exports.Checkbox = Checkbox;
34
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
35
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yFAA6D;AAC7D,yCAA0C;AAE1C,MAAM,eAAe,GAAG;IACvB,IAAI,EAAE;;;;;;;;;;;;;GAaJ;IACF,SAAS,EAAE;;;;;EAKV;CACD,CAAA;AAED,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAG/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACnC,oBAAC,iBAAiB,CAAC,IAAI,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,CAAC,IAAI,KAC3B,KAAK;IAET,oBAAC,iBAAiB,CAAC,SAAS,IAAC,SAAS,EAAE,eAAe,CAAC,SAAS;QAChE,oBAAC,kBAAU,IAAC,SAAS,EAAC,aAAa,GAAG,CACT,CACN,CACzB,CAAC,CAAA;AAGO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { Checkbox } from './Checkbox';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Checkbox = void 0;
4
+ var Checkbox_1 = require("./Checkbox");
5
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Checkbox/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
package/dist/index.d.ts CHANGED
@@ -27,4 +27,5 @@ import { Select } from './Select';
27
27
  import { Progress } from './Progress';
28
28
  import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel } from './AlertDialog';
29
29
  import { Badge, badgeVariants } from './Badge';
30
- 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, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, SelectAsync, InputMask, Select, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, Badge, badgeVariants, };
30
+ import { Checkbox } from './Checkbox';
31
+ 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, Form, FormLabel, FormField, FormItem, FormControl, FormDescription, FormMessage, Calendar, DatePicker, SelectAsync, InputMask, Select, AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, Badge, badgeVariants, Checkbox };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DatePicker = exports.Calendar = exports.FormMessage = exports.FormDescription = exports.FormControl = exports.FormItem = exports.FormField = exports.FormLabel = exports.Form = 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.badgeVariants = exports.Badge = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialog = exports.Select = exports.InputMask = exports.SelectAsync = void 0;
4
+ exports.Checkbox = exports.badgeVariants = exports.Badge = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialog = exports.Select = exports.InputMask = exports.SelectAsync = 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; } });
@@ -96,4 +96,6 @@ Object.defineProperty(exports, "AlertDialogCancel", { enumerable: true, get: fun
96
96
  const Badge_1 = require("./Badge");
97
97
  Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
98
98
  Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return Badge_1.badgeVariants; } });
99
+ const Checkbox_1 = require("./Checkbox");
100
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
99
101
  //# 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;AAoDlC,wFApDQ,iBAAO,OAoDR;AAnDR,iCAA6B;AAoD5B,qFApDQ,WAAI,OAoDR;AAnDL,qCAAiC;AAoDhC,uFApDQ,eAAM,OAoDR;AAnDP,uCAAmC;AAoDlC,wFApDQ,iBAAO,OAoDR;AAnDR,+DAAyB;AAoDxB,eApDM,cAAI,CAoDN;AAnDL,2CAAsF;AAoDrF,yFApDQ,oBAAQ,OAoDR;AACR,8FArDkB,yBAAa,OAqDlB;AACb,6FAtDiC,wBAAY,OAsDjC;AACZ,kGAvD+C,6BAAiB,OAuD/C;AAtDlB,yDAK2B;AAsE1B,iGA1EA,mCAAgB,OA0EA;AAChB,qGA1EA,uCAAoB,OA0EA;AACpB,yGA1EA,2CAAwB,OA0EA;AACxB,qGA1EA,uCAAoB,OA0EA;AAxErB,0DAA8B;AA+D7B,oBAAI;AA9DL,+CAAmF;AAgDlF,4FAhDQ,yBAAW,OAgDR;AACX,mGAjDqB,gCAAkB,OAiDrB;AAClB,mGAlDyC,gCAAkB,OAkDzC;AAjDnB,+CAMsB;AA4CrB,mGAjDA,gCAAkB,OAiDA;AAClB,yGAjDA,sCAAwB,OAiDA;AACxB,0GAjDA,uCAAyB,OAiDA;AACzB,0GAjDA,uCAAyB,OAiDA;AACzB,8GAjDA,2CAA6B,OAiDA;AA/C9B,qCAAiD;AAgDhD,uFAhDQ,eAAM,OAgDR;AACN,+FAjDgB,uBAAc,OAiDhB;AAhDf,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,mGAnEA,gCAAkB,OAmEA;AAClB,kGAnEA,+BAAiB,OAmEA;AACjB,kGAnEA,+BAAiB,OAmEA;AACjB,iGAnEA,8BAAgB,OAmEA;AAChB,uGAnEA,oCAAsB,OAmEA;AACtB,kGAnEA,+BAAiB,OAmEA;AACjB,kGAnEA,+BAAiB,OAmEA;AAjElB,mCAA8C;AAkE7C,sFAlEQ,aAAK,OAkER;AACL,8FAnEe,qBAAa,OAmEf;AAlEd,yCAAqC;AAmEpC,yFAnEQ,mBAAQ,OAmER"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modul/mbui",
3
- "version": "0.0.16-beta-pv-53139-6c26fe1d",
3
+ "version": "0.0.16-beta-pv-53139-f8011ffd",
4
4
  "packageManager": "yarn@3.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -48,6 +48,7 @@ import {
48
48
  AlertDialogCancel,
49
49
  } from './AlertDialog'
50
50
  import { Badge, badgeVariants } from './Badge'
51
+ import { Checkbox } from './Checkbox'
51
52
 
52
53
  export {
53
54
  Tooltip,
@@ -114,4 +115,5 @@ export {
114
115
  AlertDialogCancel,
115
116
  Badge,
116
117
  badgeVariants,
118
+ Checkbox
117
119
  }