@moontra/moonui 3.1.0 → 3.3.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/chunk-VXDFZPDA.global.js +33 -0
- package/dist/{chunk-X5ULQZNC.global.js.map → chunk-VXDFZPDA.global.js.map} +1 -1
- package/dist/index.d.mts +140 -1
- package/dist/index.d.ts +140 -1
- package/dist/index.global.js +365 -52
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +419 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +399 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/components/ui/__tests__/button-group.test.tsx +183 -0
- package/src/components/ui/__tests__/kbd.test.tsx +86 -0
- package/src/components/ui/__tests__/rating.test.tsx +218 -0
- package/src/components/ui/__tests__/spinner.test.tsx +141 -0
- package/src/components/ui/__tests__/toggle-group.test.tsx +293 -0
- package/src/components/ui/button-group.tsx +125 -0
- package/src/components/ui/index.ts +43 -0
- package/src/components/ui/kbd.tsx +66 -0
- package/src/components/ui/rating.tsx +253 -0
- package/src/components/ui/spinner.tsx +112 -0
- package/src/components/ui/toggle-group.tsx +93 -0
- package/dist/chunk-X5ULQZNC.global.js +0 -33
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
|
30
30
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
31
31
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
32
32
|
var ToastPrimitives = require('@radix-ui/react-toast');
|
|
33
|
+
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
33
34
|
|
|
34
35
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
35
36
|
|
|
@@ -69,6 +70,7 @@ var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive)
|
|
|
69
70
|
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
70
71
|
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
71
72
|
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
73
|
+
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
|
|
72
74
|
|
|
73
75
|
function cn(...inputs) {
|
|
74
76
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
@@ -8139,6 +8141,403 @@ function Toaster() {
|
|
|
8139
8141
|
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
8140
8142
|
] });
|
|
8141
8143
|
}
|
|
8144
|
+
var kbdVariants = classVarianceAuthority.cva(
|
|
8145
|
+
[
|
|
8146
|
+
// Temel klavye-tuşu görünümü — token tabanlı, hardcoded renk yok
|
|
8147
|
+
"inline-flex items-center justify-center rounded",
|
|
8148
|
+
"border border-border bg-muted",
|
|
8149
|
+
"px-1.5 font-mono font-medium text-muted-foreground",
|
|
8150
|
+
// Alt kenarda hafif kabartma (border token'ı ile — [#...] hex sınıfı DEĞİL)
|
|
8151
|
+
"shadow-[0_1px_0_1px_hsl(var(--border))]",
|
|
8152
|
+
"select-none whitespace-nowrap"
|
|
8153
|
+
],
|
|
8154
|
+
{
|
|
8155
|
+
variants: {
|
|
8156
|
+
size: {
|
|
8157
|
+
sm: "h-5 min-w-5 text-[10px]",
|
|
8158
|
+
md: "h-6 min-w-6 text-xs"
|
|
8159
|
+
}
|
|
8160
|
+
},
|
|
8161
|
+
defaultVariants: {
|
|
8162
|
+
size: "md"
|
|
8163
|
+
}
|
|
8164
|
+
}
|
|
8165
|
+
);
|
|
8166
|
+
var Kbd = React10__namespace.forwardRef(
|
|
8167
|
+
({ className, size, children, ...props }, ref) => {
|
|
8168
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8169
|
+
"kbd",
|
|
8170
|
+
{
|
|
8171
|
+
ref,
|
|
8172
|
+
className: cn("moonui-theme", kbdVariants({ size }), className),
|
|
8173
|
+
...props,
|
|
8174
|
+
children
|
|
8175
|
+
}
|
|
8176
|
+
);
|
|
8177
|
+
}
|
|
8178
|
+
);
|
|
8179
|
+
Kbd.displayName = "Kbd";
|
|
8180
|
+
var ratingVariants = classVarianceAuthority.cva(
|
|
8181
|
+
[
|
|
8182
|
+
"moonui-theme inline-flex items-center rounded-md outline-none",
|
|
8183
|
+
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
8184
|
+
],
|
|
8185
|
+
{
|
|
8186
|
+
variants: {
|
|
8187
|
+
size: {
|
|
8188
|
+
sm: "gap-0.5",
|
|
8189
|
+
md: "gap-1",
|
|
8190
|
+
lg: "gap-1.5"
|
|
8191
|
+
}
|
|
8192
|
+
},
|
|
8193
|
+
defaultVariants: {
|
|
8194
|
+
size: "md"
|
|
8195
|
+
}
|
|
8196
|
+
}
|
|
8197
|
+
);
|
|
8198
|
+
var iconSizeMap = {
|
|
8199
|
+
sm: "h-4 w-4",
|
|
8200
|
+
md: "h-5 w-5",
|
|
8201
|
+
lg: "h-6 w-6"
|
|
8202
|
+
};
|
|
8203
|
+
var Rating = React10__namespace.forwardRef(
|
|
8204
|
+
({
|
|
8205
|
+
className,
|
|
8206
|
+
value,
|
|
8207
|
+
defaultValue,
|
|
8208
|
+
onValueChange,
|
|
8209
|
+
max = 5,
|
|
8210
|
+
readOnly = false,
|
|
8211
|
+
precision = "full",
|
|
8212
|
+
icon,
|
|
8213
|
+
size,
|
|
8214
|
+
"aria-label": ariaLabel = "Rating",
|
|
8215
|
+
...props
|
|
8216
|
+
}, ref) => {
|
|
8217
|
+
const resolvedSize = size ?? "md";
|
|
8218
|
+
const iconSizeClass = iconSizeMap[resolvedSize];
|
|
8219
|
+
const step = precision === "half" ? 0.5 : 1;
|
|
8220
|
+
const isControlled = value !== void 0;
|
|
8221
|
+
const [internalValue, setInternalValue] = React10__namespace.useState(defaultValue ?? 0);
|
|
8222
|
+
const currentValue = isControlled ? value ?? 0 : internalValue;
|
|
8223
|
+
const [hoverValue, setHoverValue] = React10__namespace.useState(null);
|
|
8224
|
+
const displayValue = hoverValue !== null ? hoverValue : currentValue;
|
|
8225
|
+
const commit = React10__namespace.useCallback(
|
|
8226
|
+
(next) => {
|
|
8227
|
+
if (readOnly)
|
|
8228
|
+
return;
|
|
8229
|
+
if (!isControlled)
|
|
8230
|
+
setInternalValue(next);
|
|
8231
|
+
onValueChange?.(next);
|
|
8232
|
+
},
|
|
8233
|
+
[readOnly, isControlled, onValueChange]
|
|
8234
|
+
);
|
|
8235
|
+
const handleKeyDown = React10__namespace.useCallback(
|
|
8236
|
+
(event) => {
|
|
8237
|
+
if (readOnly)
|
|
8238
|
+
return;
|
|
8239
|
+
let next = null;
|
|
8240
|
+
switch (event.key) {
|
|
8241
|
+
case "ArrowRight":
|
|
8242
|
+
case "ArrowUp":
|
|
8243
|
+
next = Math.min(max, currentValue + step);
|
|
8244
|
+
break;
|
|
8245
|
+
case "ArrowLeft":
|
|
8246
|
+
case "ArrowDown":
|
|
8247
|
+
next = Math.max(step, currentValue - step);
|
|
8248
|
+
break;
|
|
8249
|
+
case "Home":
|
|
8250
|
+
next = step;
|
|
8251
|
+
break;
|
|
8252
|
+
case "End":
|
|
8253
|
+
next = max;
|
|
8254
|
+
break;
|
|
8255
|
+
default:
|
|
8256
|
+
return;
|
|
8257
|
+
}
|
|
8258
|
+
event.preventDefault();
|
|
8259
|
+
commit(next);
|
|
8260
|
+
},
|
|
8261
|
+
[readOnly, max, currentValue, step, commit]
|
|
8262
|
+
);
|
|
8263
|
+
const renderIcon = (filled) => {
|
|
8264
|
+
if (React10__namespace.isValidElement(icon)) {
|
|
8265
|
+
const element = icon;
|
|
8266
|
+
return React10__namespace.cloneElement(element, {
|
|
8267
|
+
className: cn(
|
|
8268
|
+
iconSizeClass,
|
|
8269
|
+
"shrink-0",
|
|
8270
|
+
filled && "fill-current",
|
|
8271
|
+
element.props?.className
|
|
8272
|
+
)
|
|
8273
|
+
});
|
|
8274
|
+
}
|
|
8275
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8276
|
+
lucideReact.Star,
|
|
8277
|
+
{
|
|
8278
|
+
className: cn(iconSizeClass, "shrink-0", filled && "fill-current"),
|
|
8279
|
+
"aria-hidden": "true"
|
|
8280
|
+
}
|
|
8281
|
+
);
|
|
8282
|
+
};
|
|
8283
|
+
const stars = Array.from({ length: max }, (_, index) => index + 1);
|
|
8284
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8285
|
+
"div",
|
|
8286
|
+
{
|
|
8287
|
+
ref,
|
|
8288
|
+
role: "radiogroup",
|
|
8289
|
+
"aria-label": ariaLabel,
|
|
8290
|
+
"aria-orientation": "horizontal",
|
|
8291
|
+
"aria-readonly": readOnly || void 0,
|
|
8292
|
+
tabIndex: readOnly ? void 0 : 0,
|
|
8293
|
+
onKeyDown: handleKeyDown,
|
|
8294
|
+
onMouseLeave: () => setHoverValue(null),
|
|
8295
|
+
className: cn(ratingVariants({ size }), className),
|
|
8296
|
+
...props,
|
|
8297
|
+
children: stars.map((starValue) => {
|
|
8298
|
+
const fraction = Math.max(0, Math.min(1, displayValue - (starValue - 1)));
|
|
8299
|
+
const halfValue = starValue - 0.5;
|
|
8300
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8301
|
+
"span",
|
|
8302
|
+
{
|
|
8303
|
+
"data-slot": "rating-star",
|
|
8304
|
+
className: cn(
|
|
8305
|
+
"relative inline-flex shrink-0",
|
|
8306
|
+
!readOnly && "cursor-pointer"
|
|
8307
|
+
),
|
|
8308
|
+
children: [
|
|
8309
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "inline-flex text-muted-foreground/30", children: renderIcon(false) }),
|
|
8310
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8311
|
+
"span",
|
|
8312
|
+
{
|
|
8313
|
+
"aria-hidden": "true",
|
|
8314
|
+
className: "pointer-events-none absolute left-0 top-0 h-full overflow-hidden text-amber-400",
|
|
8315
|
+
style: { width: `${fraction * 100}%` },
|
|
8316
|
+
children: renderIcon(true)
|
|
8317
|
+
}
|
|
8318
|
+
),
|
|
8319
|
+
!readOnly && precision === "half" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8320
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8321
|
+
"button",
|
|
8322
|
+
{
|
|
8323
|
+
type: "button",
|
|
8324
|
+
role: "radio",
|
|
8325
|
+
"aria-checked": currentValue === halfValue,
|
|
8326
|
+
"aria-label": `${halfValue} stars`,
|
|
8327
|
+
tabIndex: -1,
|
|
8328
|
+
onClick: () => commit(halfValue),
|
|
8329
|
+
onMouseEnter: () => setHoverValue(halfValue),
|
|
8330
|
+
className: "absolute inset-y-0 left-0 z-10 w-1/2 cursor-pointer bg-transparent"
|
|
8331
|
+
}
|
|
8332
|
+
),
|
|
8333
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8334
|
+
"button",
|
|
8335
|
+
{
|
|
8336
|
+
type: "button",
|
|
8337
|
+
role: "radio",
|
|
8338
|
+
"aria-checked": currentValue === starValue,
|
|
8339
|
+
"aria-label": `${starValue} stars`,
|
|
8340
|
+
tabIndex: -1,
|
|
8341
|
+
onClick: () => commit(starValue),
|
|
8342
|
+
onMouseEnter: () => setHoverValue(starValue),
|
|
8343
|
+
className: "absolute inset-y-0 right-0 z-10 w-1/2 cursor-pointer bg-transparent"
|
|
8344
|
+
}
|
|
8345
|
+
)
|
|
8346
|
+
] }),
|
|
8347
|
+
!readOnly && precision === "full" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8348
|
+
"button",
|
|
8349
|
+
{
|
|
8350
|
+
type: "button",
|
|
8351
|
+
role: "radio",
|
|
8352
|
+
"aria-checked": currentValue === starValue,
|
|
8353
|
+
"aria-label": `${starValue} ${starValue === 1 ? "star" : "stars"}`,
|
|
8354
|
+
tabIndex: -1,
|
|
8355
|
+
onClick: () => commit(starValue),
|
|
8356
|
+
onMouseEnter: () => setHoverValue(starValue),
|
|
8357
|
+
className: "absolute inset-0 z-10 cursor-pointer bg-transparent"
|
|
8358
|
+
}
|
|
8359
|
+
)
|
|
8360
|
+
]
|
|
8361
|
+
},
|
|
8362
|
+
starValue
|
|
8363
|
+
);
|
|
8364
|
+
})
|
|
8365
|
+
}
|
|
8366
|
+
);
|
|
8367
|
+
}
|
|
8368
|
+
);
|
|
8369
|
+
Rating.displayName = "Rating";
|
|
8370
|
+
var spinnerVariants = classVarianceAuthority.cva(
|
|
8371
|
+
[
|
|
8372
|
+
"inline-block shrink-0 rounded-full",
|
|
8373
|
+
"border-current border-t-transparent",
|
|
8374
|
+
"animate-spin motion-reduce:animate-none"
|
|
8375
|
+
],
|
|
8376
|
+
{
|
|
8377
|
+
variants: {
|
|
8378
|
+
size: {
|
|
8379
|
+
sm: "h-4 w-4 border-2",
|
|
8380
|
+
// 16px
|
|
8381
|
+
md: "h-6 w-6 border-2",
|
|
8382
|
+
// 24px
|
|
8383
|
+
lg: "h-8 w-8 border-[3px]",
|
|
8384
|
+
// 32px
|
|
8385
|
+
xl: "h-10 w-10 border-4"
|
|
8386
|
+
// 40px
|
|
8387
|
+
}
|
|
8388
|
+
},
|
|
8389
|
+
defaultVariants: {
|
|
8390
|
+
size: "md"
|
|
8391
|
+
}
|
|
8392
|
+
}
|
|
8393
|
+
);
|
|
8394
|
+
var dotSizeMap = {
|
|
8395
|
+
sm: "h-1 w-1",
|
|
8396
|
+
md: "h-1.5 w-1.5",
|
|
8397
|
+
lg: "h-2 w-2",
|
|
8398
|
+
xl: "h-2.5 w-2.5"
|
|
8399
|
+
};
|
|
8400
|
+
var Spinner = React10__namespace.forwardRef(
|
|
8401
|
+
({ className, size, variant = "default", label = "Loading", ...props }, ref) => {
|
|
8402
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8403
|
+
"div",
|
|
8404
|
+
{
|
|
8405
|
+
ref,
|
|
8406
|
+
role: "status",
|
|
8407
|
+
"aria-live": "polite",
|
|
8408
|
+
className: cn(
|
|
8409
|
+
"moonui-theme inline-flex items-center justify-center",
|
|
8410
|
+
className
|
|
8411
|
+
),
|
|
8412
|
+
...props,
|
|
8413
|
+
children: [
|
|
8414
|
+
variant === "dots" ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center gap-1", "aria-hidden": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8415
|
+
"span",
|
|
8416
|
+
{
|
|
8417
|
+
className: cn(
|
|
8418
|
+
"inline-block rounded-full bg-current",
|
|
8419
|
+
"animate-bounce motion-reduce:animate-none",
|
|
8420
|
+
dotSizeMap[size ?? "md"]
|
|
8421
|
+
),
|
|
8422
|
+
style: { animationDelay: `${i * 0.15}s` }
|
|
8423
|
+
},
|
|
8424
|
+
i
|
|
8425
|
+
)) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(spinnerVariants({ size })), "aria-hidden": "true" }),
|
|
8426
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: label })
|
|
8427
|
+
]
|
|
8428
|
+
}
|
|
8429
|
+
);
|
|
8430
|
+
}
|
|
8431
|
+
);
|
|
8432
|
+
Spinner.displayName = "Spinner";
|
|
8433
|
+
var buttonGroupVariants = classVarianceAuthority.cva(
|
|
8434
|
+
// Temel kapsayıcı: inline-flex; çocuklar akış içinde hizalanır
|
|
8435
|
+
"moonui-theme inline-flex",
|
|
8436
|
+
{
|
|
8437
|
+
variants: {
|
|
8438
|
+
orientation: {
|
|
8439
|
+
// Yatay: butonlar dikeyde ortalanır (içerik-genişliği korunur)
|
|
8440
|
+
horizontal: "flex-row items-center",
|
|
8441
|
+
// Dikey: butonlar aynı genişliğe uzar (items-stretch) → kenarlar hizalanır
|
|
8442
|
+
vertical: "flex-col items-stretch"
|
|
8443
|
+
},
|
|
8444
|
+
attached: {
|
|
8445
|
+
// Bitişik: boşluk yok; radius birleştirme compoundVariants ile uygulanır
|
|
8446
|
+
true: "",
|
|
8447
|
+
// Boşluklu: normal aralık, radius korunur
|
|
8448
|
+
false: "gap-2"
|
|
8449
|
+
}
|
|
8450
|
+
},
|
|
8451
|
+
compoundVariants: [
|
|
8452
|
+
{
|
|
8453
|
+
// Yatay + bitişik: bitişik yatay kenarlar düzleşir, -ml-px ile kenarlık örtüşür
|
|
8454
|
+
orientation: "horizontal",
|
|
8455
|
+
attached: true,
|
|
8456
|
+
class: [
|
|
8457
|
+
"[&>*:not(:first-child)]:rounded-l-none",
|
|
8458
|
+
"[&>*:not(:last-child)]:rounded-r-none",
|
|
8459
|
+
"[&>*:not(:first-child)]:-ml-px"
|
|
8460
|
+
]
|
|
8461
|
+
},
|
|
8462
|
+
{
|
|
8463
|
+
// Dikey + bitişik: bitişik dikey kenarlar düzleşir, -mt-px ile kenarlık örtüşür
|
|
8464
|
+
orientation: "vertical",
|
|
8465
|
+
attached: true,
|
|
8466
|
+
class: [
|
|
8467
|
+
"[&>*:not(:first-child)]:rounded-t-none",
|
|
8468
|
+
"[&>*:not(:last-child)]:rounded-b-none",
|
|
8469
|
+
"[&>*:not(:first-child)]:-mt-px"
|
|
8470
|
+
]
|
|
8471
|
+
}
|
|
8472
|
+
],
|
|
8473
|
+
defaultVariants: {
|
|
8474
|
+
orientation: "horizontal",
|
|
8475
|
+
attached: true
|
|
8476
|
+
}
|
|
8477
|
+
}
|
|
8478
|
+
);
|
|
8479
|
+
var ButtonGroup = React10__namespace.forwardRef(
|
|
8480
|
+
({ className, orientation, attached, size, variant, children, ...props }, ref) => {
|
|
8481
|
+
const shouldPropagate = size !== void 0 || variant !== void 0;
|
|
8482
|
+
const enhancedChildren = shouldPropagate ? React10__namespace.Children.map(children, (child) => {
|
|
8483
|
+
if (!React10__namespace.isValidElement(child) || child.type !== Button) {
|
|
8484
|
+
return child;
|
|
8485
|
+
}
|
|
8486
|
+
const childProps = child.props;
|
|
8487
|
+
return React10__namespace.cloneElement(child, {
|
|
8488
|
+
size: childProps.size ?? size,
|
|
8489
|
+
variant: childProps.variant ?? variant
|
|
8490
|
+
});
|
|
8491
|
+
}) : children;
|
|
8492
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8493
|
+
"div",
|
|
8494
|
+
{
|
|
8495
|
+
ref,
|
|
8496
|
+
role: "group",
|
|
8497
|
+
className: cn(buttonGroupVariants({ orientation, attached }), className),
|
|
8498
|
+
...props,
|
|
8499
|
+
children: enhancedChildren
|
|
8500
|
+
}
|
|
8501
|
+
);
|
|
8502
|
+
}
|
|
8503
|
+
);
|
|
8504
|
+
ButtonGroup.displayName = "ButtonGroup";
|
|
8505
|
+
var ToggleGroupContext = React10__namespace.createContext({
|
|
8506
|
+
size: "default",
|
|
8507
|
+
variant: "default"
|
|
8508
|
+
});
|
|
8509
|
+
var ToggleGroup = React10__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8510
|
+
ToggleGroupPrimitive__namespace.Root,
|
|
8511
|
+
{
|
|
8512
|
+
ref,
|
|
8513
|
+
className: cn(
|
|
8514
|
+
"moonui-theme inline-flex items-center justify-center gap-1",
|
|
8515
|
+
className
|
|
8516
|
+
),
|
|
8517
|
+
...props,
|
|
8518
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
8519
|
+
}
|
|
8520
|
+
));
|
|
8521
|
+
ToggleGroup.displayName = "ToggleGroup";
|
|
8522
|
+
var ToggleGroupItem = React10__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
8523
|
+
const context = React10__namespace.useContext(ToggleGroupContext);
|
|
8524
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8525
|
+
ToggleGroupPrimitive__namespace.Item,
|
|
8526
|
+
{
|
|
8527
|
+
ref,
|
|
8528
|
+
className: cn(
|
|
8529
|
+
toggleVariants({
|
|
8530
|
+
variant: context.variant ?? variant,
|
|
8531
|
+
size: context.size ?? size
|
|
8532
|
+
}),
|
|
8533
|
+
className
|
|
8534
|
+
),
|
|
8535
|
+
...props,
|
|
8536
|
+
children
|
|
8537
|
+
}
|
|
8538
|
+
);
|
|
8539
|
+
});
|
|
8540
|
+
ToggleGroupItem.displayName = "ToggleGroupItem";
|
|
8142
8541
|
|
|
8143
8542
|
Object.defineProperty(exports, 'Palette', {
|
|
8144
8543
|
enumerable: true,
|
|
@@ -8185,6 +8584,7 @@ exports.BreadcrumbList = BreadcrumbList;
|
|
|
8185
8584
|
exports.BreadcrumbPage = BreadcrumbPage;
|
|
8186
8585
|
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
|
8187
8586
|
exports.Button = Button;
|
|
8587
|
+
exports.ButtonGroup = ButtonGroup;
|
|
8188
8588
|
exports.Card = Card;
|
|
8189
8589
|
exports.CardCVCInput = CardCVCInput;
|
|
8190
8590
|
exports.CardContent = CardContent;
|
|
@@ -8256,6 +8656,7 @@ exports.InputOTP = InputOTP;
|
|
|
8256
8656
|
exports.InputOTPGroup = InputOTPGroup;
|
|
8257
8657
|
exports.InputOTPSeparator = InputOTPSeparator;
|
|
8258
8658
|
exports.InputOTPSlot = InputOTPSlot;
|
|
8659
|
+
exports.Kbd = Kbd;
|
|
8259
8660
|
exports.Label = Label;
|
|
8260
8661
|
exports.LockedComponent = LockedComponent;
|
|
8261
8662
|
exports.MonthPicker = MonthPicker;
|
|
@@ -8283,6 +8684,7 @@ exports.MoonUIBreadcrumbList = BreadcrumbList;
|
|
|
8283
8684
|
exports.MoonUIBreadcrumbPage = BreadcrumbPage;
|
|
8284
8685
|
exports.MoonUIBreadcrumbSeparator = BreadcrumbSeparator;
|
|
8285
8686
|
exports.MoonUIButton = Button;
|
|
8687
|
+
exports.MoonUIButtonGroup = ButtonGroup;
|
|
8286
8688
|
exports.MoonUICalendar = Calendar;
|
|
8287
8689
|
exports.MoonUICard = Card;
|
|
8288
8690
|
exports.MoonUICardCVCInput = CardCVCInput;
|
|
@@ -8354,6 +8756,7 @@ exports.MoonUIInputOTP = InputOTP;
|
|
|
8354
8756
|
exports.MoonUIInputOTPGroup = InputOTPGroup;
|
|
8355
8757
|
exports.MoonUIInputOTPSeparator = InputOTPSeparator;
|
|
8356
8758
|
exports.MoonUIInputOTPSlot = InputOTPSlot;
|
|
8759
|
+
exports.MoonUIKbd = Kbd;
|
|
8357
8760
|
exports.MoonUILabel = Label;
|
|
8358
8761
|
exports.MoonUILockedComponent = LockedComponent;
|
|
8359
8762
|
exports.MoonUIMonthPicker = MonthPicker;
|
|
@@ -8376,6 +8779,7 @@ exports.MoonUIRadioGroup = RadioGroup2;
|
|
|
8376
8779
|
exports.MoonUIRadioGroupItem = RadioGroupItem;
|
|
8377
8780
|
exports.MoonUIRadioItemWithLabel = RadioItemWithLabel;
|
|
8378
8781
|
exports.MoonUIRadioLabel = RadioLabel;
|
|
8782
|
+
exports.MoonUIRating = Rating;
|
|
8379
8783
|
exports.MoonUIRichTextEditor = RichTextEditor;
|
|
8380
8784
|
exports.MoonUIScrollArea = ScrollArea;
|
|
8381
8785
|
exports.MoonUIScrollBar = ScrollBar;
|
|
@@ -8400,6 +8804,7 @@ exports.MoonUISkeletonAvatar = SkeletonAvatar;
|
|
|
8400
8804
|
exports.MoonUISkeletonCard = SkeletonCard;
|
|
8401
8805
|
exports.MoonUISkeletonText = SkeletonText;
|
|
8402
8806
|
exports.MoonUISlider = Slider;
|
|
8807
|
+
exports.MoonUISpinner = Spinner;
|
|
8403
8808
|
exports.MoonUISwipeableCard = SwipeableCard;
|
|
8404
8809
|
exports.MoonUISwitch = Switch;
|
|
8405
8810
|
exports.MoonUITable = Table;
|
|
@@ -8425,6 +8830,8 @@ exports.MoonUIToastTitle = ToastTitle;
|
|
|
8425
8830
|
exports.MoonUIToastViewport = ToastViewport;
|
|
8426
8831
|
exports.MoonUIToaster = Toaster;
|
|
8427
8832
|
exports.MoonUIToggle = Toggle;
|
|
8833
|
+
exports.MoonUIToggleGroup = ToggleGroup;
|
|
8834
|
+
exports.MoonUIToggleGroupItem = ToggleGroupItem;
|
|
8428
8835
|
exports.MoonUITooltip = Tooltip;
|
|
8429
8836
|
exports.MoonUITooltipContent = TooltipContent;
|
|
8430
8837
|
exports.MoonUITooltipProvider = TooltipProvider;
|
|
@@ -8452,6 +8859,7 @@ exports.RadioGroup = RadioGroup2;
|
|
|
8452
8859
|
exports.RadioGroupItem = RadioGroupItem;
|
|
8453
8860
|
exports.RadioItemWithLabel = RadioItemWithLabel;
|
|
8454
8861
|
exports.RadioLabel = RadioLabel;
|
|
8862
|
+
exports.Rating = Rating;
|
|
8455
8863
|
exports.RichTextEditor = RichTextEditor;
|
|
8456
8864
|
exports.ScrollArea = ScrollArea;
|
|
8457
8865
|
exports.ScrollBar = ScrollBar;
|
|
@@ -8477,6 +8885,7 @@ exports.SkeletonAvatar = SkeletonAvatar;
|
|
|
8477
8885
|
exports.SkeletonCard = SkeletonCard;
|
|
8478
8886
|
exports.SkeletonText = SkeletonText;
|
|
8479
8887
|
exports.Slider = Slider;
|
|
8888
|
+
exports.Spinner = Spinner;
|
|
8480
8889
|
exports.SwipeableCard = SwipeableCard;
|
|
8481
8890
|
exports.Switch = Switch;
|
|
8482
8891
|
exports.Table = Table;
|
|
@@ -8502,6 +8911,8 @@ exports.ToastTitle = ToastTitle;
|
|
|
8502
8911
|
exports.ToastViewport = ToastViewport;
|
|
8503
8912
|
exports.Toaster = Toaster;
|
|
8504
8913
|
exports.Toggle = Toggle;
|
|
8914
|
+
exports.ToggleGroup = ToggleGroup;
|
|
8915
|
+
exports.ToggleGroupItem = ToggleGroupItem;
|
|
8505
8916
|
exports.Tooltip = Tooltip;
|
|
8506
8917
|
exports.TooltipArrow = TooltipArrow;
|
|
8507
8918
|
exports.TooltipContent = TooltipContent;
|
|
@@ -8509,6 +8920,7 @@ exports.TooltipProvider = TooltipProvider;
|
|
|
8509
8920
|
exports.TooltipTrigger = TooltipTrigger;
|
|
8510
8921
|
exports.aspectRatioVariants = aspectRatioVariants;
|
|
8511
8922
|
exports.badgeVariants = badgeVariants;
|
|
8923
|
+
exports.buttonGroupVariants = buttonGroupVariants;
|
|
8512
8924
|
exports.buttonVariants = buttonVariants;
|
|
8513
8925
|
exports.carouselContentVariants = carouselContentVariants;
|
|
8514
8926
|
exports.carouselItemVariants = carouselItemVariants;
|
|
@@ -8516,18 +8928,25 @@ exports.cn = cn;
|
|
|
8516
8928
|
exports.collapsibleContentVariants = collapsibleContentVariants;
|
|
8517
8929
|
exports.collapsibleTriggerVariants = collapsibleTriggerVariants;
|
|
8518
8930
|
exports.inputOTPSlotVariants = inputOTPSlotVariants;
|
|
8931
|
+
exports.kbdVariants = kbdVariants;
|
|
8519
8932
|
exports.moonUIBadgeVariants = badgeVariants;
|
|
8933
|
+
exports.moonUIButtonGroupVariants = buttonGroupVariants;
|
|
8520
8934
|
exports.moonUIButtonVariants = buttonVariants;
|
|
8521
8935
|
exports.moonUICarouselContentVariants = carouselContentVariants;
|
|
8522
8936
|
exports.moonUICarouselItemVariants = carouselItemVariants;
|
|
8523
8937
|
exports.moonUICreateSortableHeader = createSortableHeader;
|
|
8524
8938
|
exports.moonUIInputOTPSlotVariants = inputOTPSlotVariants;
|
|
8939
|
+
exports.moonUIKbdVariants = kbdVariants;
|
|
8940
|
+
exports.moonUIRatingVariants = ratingVariants;
|
|
8525
8941
|
exports.moonUISkeletonVariants = skeletonVariants;
|
|
8942
|
+
exports.moonUISpinnerVariants = spinnerVariants;
|
|
8526
8943
|
exports.moonUIToggleVariants = toggleVariants;
|
|
8527
8944
|
exports.popoverContentVariants = popoverContentVariants;
|
|
8528
8945
|
exports.progressVariants = progressVariants;
|
|
8946
|
+
exports.ratingVariants = ratingVariants;
|
|
8529
8947
|
exports.separatorVariants = separatorVariants;
|
|
8530
8948
|
exports.skeletonVariants = skeletonVariants;
|
|
8949
|
+
exports.spinnerVariants = spinnerVariants;
|
|
8531
8950
|
exports.toast = toast;
|
|
8532
8951
|
exports.toggleVariants = toggleVariants;
|
|
8533
8952
|
exports.tooltipVariants = tooltipVariants;
|