@orangecheck/design 0.5.3 → 0.6.0
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +107 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +102 -2
- package/dist/index.mjs.map +1 -1
- package/dist/primitives.d.mts +11 -1
- package/dist/primitives.d.ts +11 -1
- package/dist/primitives.js +103 -0
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +98 -2
- package/dist/primitives.mjs.map +1 -1
- package/package.json +5 -2
package/dist/primitives.d.mts
CHANGED
|
@@ -4,6 +4,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
9
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
7
10
|
import { LucideIcon } from 'lucide-react';
|
|
8
11
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
12
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
@@ -31,6 +34,13 @@ declare function Input({ className, type, ...props }: React.ComponentProps<'inpu
|
|
|
31
34
|
|
|
32
35
|
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
33
36
|
|
|
37
|
+
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
34
44
|
declare const alertVariants: (props?: ({
|
|
35
45
|
variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
|
|
36
46
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -295,4 +305,4 @@ interface QrCodeProps {
|
|
|
295
305
|
}
|
|
296
306
|
declare function QrCode({ value, size, label, className }: QrCodeProps): react_jsx_runtime.JSX.Element;
|
|
297
307
|
|
|
298
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AlertWithAction, type AlertWithActionProps, AlertWithCountdown, type AlertWithCountdownProps, Badge, Bar, type BarProps, BitcoinAddress, type BitcoinAddressProps, Button, Card, type CardProps, ConfirmHost, type ConfirmOptions, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Input, Label, Modal, type ModalProps, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PromptHost, type PromptOptions, QrCode, type QrCodeProps, SatsAmount, type SatsAmountProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, StatBlock, type StatBlockProps, StatusPill, type StatusPillProps, type StatusTone, Textarea, ThemeToggle, ThemeToggleLink, Toaster, Working, WorkingPanel, type WorkingProps, badgeVariants, buttonVariants, confirm, prompt };
|
|
308
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AlertWithAction, type AlertWithActionProps, AlertWithCountdown, type AlertWithCountdownProps, Badge, Bar, type BarProps, BitcoinAddress, type BitcoinAddressProps, Button, Card, type CardProps, Checkbox, ConfirmHost, type ConfirmOptions, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Input, Label, Modal, type ModalProps, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PromptHost, type PromptOptions, QrCode, type QrCodeProps, RadioGroup, RadioGroupItem, SatsAmount, type SatsAmountProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, StatBlock, type StatBlockProps, StatusPill, type StatusPillProps, type StatusTone, Switch, Textarea, ThemeToggle, ThemeToggleLink, Toaster, Working, WorkingPanel, type WorkingProps, badgeVariants, buttonVariants, confirm, prompt };
|
package/dist/primitives.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
9
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
7
10
|
import { LucideIcon } from 'lucide-react';
|
|
8
11
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
12
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
@@ -31,6 +34,13 @@ declare function Input({ className, type, ...props }: React.ComponentProps<'inpu
|
|
|
31
34
|
|
|
32
35
|
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
33
36
|
|
|
37
|
+
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
34
44
|
declare const alertVariants: (props?: ({
|
|
35
45
|
variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
|
|
36
46
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -295,4 +305,4 @@ interface QrCodeProps {
|
|
|
295
305
|
}
|
|
296
306
|
declare function QrCode({ value, size, label, className }: QrCodeProps): react_jsx_runtime.JSX.Element;
|
|
297
307
|
|
|
298
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AlertWithAction, type AlertWithActionProps, AlertWithCountdown, type AlertWithCountdownProps, Badge, Bar, type BarProps, BitcoinAddress, type BitcoinAddressProps, Button, Card, type CardProps, ConfirmHost, type ConfirmOptions, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Input, Label, Modal, type ModalProps, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PromptHost, type PromptOptions, QrCode, type QrCodeProps, SatsAmount, type SatsAmountProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, StatBlock, type StatBlockProps, StatusPill, type StatusPillProps, type StatusTone, Textarea, ThemeToggle, ThemeToggleLink, Toaster, Working, WorkingPanel, type WorkingProps, badgeVariants, buttonVariants, confirm, prompt };
|
|
308
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AlertWithAction, type AlertWithActionProps, AlertWithCountdown, type AlertWithCountdownProps, Badge, Bar, type BarProps, BitcoinAddress, type BitcoinAddressProps, Button, Card, type CardProps, Checkbox, ConfirmHost, type ConfirmOptions, CopyButton, type CopyButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ErrorBoundary, Input, Label, Modal, type ModalProps, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PromptHost, type PromptOptions, QrCode, type QrCodeProps, RadioGroup, RadioGroupItem, SatsAmount, type SatsAmountProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, type SkeletonProps, Sparkline, type SparklineProps, StatBlock, type StatBlockProps, StatusPill, type StatusPillProps, type StatusTone, Switch, Textarea, ThemeToggle, ThemeToggleLink, Toaster, Working, WorkingPanel, type WorkingProps, badgeVariants, buttonVariants, confirm, prompt };
|
package/dist/primitives.js
CHANGED
|
@@ -6,7 +6,10 @@ var clsx = require('clsx');
|
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
9
|
+
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
9
10
|
var lucideReact = require('lucide-react');
|
|
11
|
+
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
12
|
+
var SwitchPrimitive = require('@radix-ui/react-switch');
|
|
10
13
|
var nextThemes = require('next-themes');
|
|
11
14
|
var React2 = require('react');
|
|
12
15
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
@@ -38,6 +41,9 @@ function _interopNamespace(e) {
|
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
44
|
+
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
45
|
+
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
46
|
+
var SwitchPrimitive__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitive);
|
|
41
47
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
42
48
|
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
43
49
|
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
@@ -148,6 +154,99 @@ function Label({ className, ...props }) {
|
|
|
148
154
|
}
|
|
149
155
|
);
|
|
150
156
|
}
|
|
157
|
+
function Checkbox({ className, ...props }) {
|
|
158
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
159
|
+
CheckboxPrimitive__namespace.Root,
|
|
160
|
+
{
|
|
161
|
+
"data-slot": "checkbox",
|
|
162
|
+
className: cn(
|
|
163
|
+
"peer border-input bg-input/30 size-4 shrink-0 rounded-sm border shadow-xs transition-[color,box-shadow,background-color] outline-none",
|
|
164
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
165
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
166
|
+
"data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground",
|
|
167
|
+
"aria-invalid:ring-brand/25 dark:aria-invalid:ring-brand/35 aria-invalid:border-brand",
|
|
168
|
+
className
|
|
169
|
+
),
|
|
170
|
+
...props,
|
|
171
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
CheckboxPrimitive__namespace.Indicator,
|
|
173
|
+
{
|
|
174
|
+
"data-slot": "checkbox-indicator",
|
|
175
|
+
className: "flex items-center justify-center text-current",
|
|
176
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-3.5", strokeWidth: 3 })
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
function RadioGroup({
|
|
183
|
+
className,
|
|
184
|
+
...props
|
|
185
|
+
}) {
|
|
186
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
187
|
+
RadioGroupPrimitive__namespace.Root,
|
|
188
|
+
{
|
|
189
|
+
"data-slot": "radio-group",
|
|
190
|
+
className: cn("grid gap-2", className),
|
|
191
|
+
...props
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
function RadioGroupItem({
|
|
196
|
+
className,
|
|
197
|
+
...props
|
|
198
|
+
}) {
|
|
199
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
200
|
+
RadioGroupPrimitive__namespace.Item,
|
|
201
|
+
{
|
|
202
|
+
"data-slot": "radio-group-item",
|
|
203
|
+
className: cn(
|
|
204
|
+
"border-input bg-input/30 text-primary aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow,background-color] outline-none",
|
|
205
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
206
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
207
|
+
"data-[state=checked]:border-primary",
|
|
208
|
+
"aria-invalid:ring-brand/25 dark:aria-invalid:ring-brand/35 aria-invalid:border-brand",
|
|
209
|
+
className
|
|
210
|
+
),
|
|
211
|
+
...props,
|
|
212
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
213
|
+
RadioGroupPrimitive__namespace.Indicator,
|
|
214
|
+
{
|
|
215
|
+
"data-slot": "radio-group-indicator",
|
|
216
|
+
className: "relative flex items-center justify-center",
|
|
217
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "fill-primary text-primary absolute size-2" })
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
function Switch({ className, ...props }) {
|
|
224
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
225
|
+
SwitchPrimitive__namespace.Root,
|
|
226
|
+
{
|
|
227
|
+
"data-slot": "switch",
|
|
228
|
+
className: cn(
|
|
229
|
+
"peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-[color,box-shadow,background-color] outline-none",
|
|
230
|
+
"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
231
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
232
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
233
|
+
"aria-invalid:ring-brand/25 dark:aria-invalid:ring-brand/35",
|
|
234
|
+
className
|
|
235
|
+
),
|
|
236
|
+
...props,
|
|
237
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
238
|
+
SwitchPrimitive__namespace.Thumb,
|
|
239
|
+
{
|
|
240
|
+
"data-slot": "switch-thumb",
|
|
241
|
+
className: cn(
|
|
242
|
+
"bg-background pointer-events-none block size-4 rounded-full shadow-sm ring-0 transition-transform",
|
|
243
|
+
"data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0.5"
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
151
250
|
var alertVariants = classVarianceAuthority.cva(
|
|
152
251
|
"relative grid w-full grid-cols-[0_1fr] items-start gap-x-0 gap-y-0.5 rounded-md border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
153
252
|
{
|
|
@@ -1510,6 +1609,7 @@ exports.Bar = Bar;
|
|
|
1510
1609
|
exports.BitcoinAddress = BitcoinAddress;
|
|
1511
1610
|
exports.Button = Button;
|
|
1512
1611
|
exports.Card = Card;
|
|
1612
|
+
exports.Checkbox = Checkbox;
|
|
1513
1613
|
exports.ConfirmHost = ConfirmHost;
|
|
1514
1614
|
exports.CopyButton = CopyButton;
|
|
1515
1615
|
exports.Dialog = Dialog;
|
|
@@ -1533,6 +1633,8 @@ exports.PopoverContent = PopoverContent;
|
|
|
1533
1633
|
exports.PopoverTrigger = PopoverTrigger;
|
|
1534
1634
|
exports.PromptHost = PromptHost;
|
|
1535
1635
|
exports.QrCode = QrCode;
|
|
1636
|
+
exports.RadioGroup = RadioGroup;
|
|
1637
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
1536
1638
|
exports.SatsAmount = SatsAmount;
|
|
1537
1639
|
exports.Select = Select;
|
|
1538
1640
|
exports.SelectContent = SelectContent;
|
|
@@ -1559,6 +1661,7 @@ exports.Skeleton = Skeleton;
|
|
|
1559
1661
|
exports.Sparkline = Sparkline;
|
|
1560
1662
|
exports.StatBlock = StatBlock;
|
|
1561
1663
|
exports.StatusPill = StatusPill;
|
|
1664
|
+
exports.Switch = Switch;
|
|
1562
1665
|
exports.Textarea = Textarea;
|
|
1563
1666
|
exports.ThemeToggle = ThemeToggle;
|
|
1564
1667
|
exports.ThemeToggleLink = ThemeToggleLink;
|