@cloudflare/kumo 2.11.0 → 2.12.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/CHANGELOG.md +46 -0
- package/ai/component-registry.json +42 -269
- package/ai/component-registry.md +59 -110
- package/ai/schemas.ts +3 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +2 -0
- package/dist/ai/schemas.js +1 -0
- package/dist/chunks/{autocomplete-o55qql22kc47sjlw.js → autocomplete-msex8kc8sw3fp373.js} +2 -2
- package/dist/chunks/{banner-eq9kh1g8b9oyi6hq.js → banner-nz02b60ech1e2m6f.js} +1 -1
- package/dist/chunks/{breadcrumbs-kgasqdmjbg8y681l.js → breadcrumbs-jvlyp3bw0u8qx4fi.js} +1 -1
- package/dist/chunks/{button-hxznqqdd77atsof9.js → button-iqaz1uluabeo18f0.js} +1 -1
- package/dist/chunks/{chart-ic080rf74tgjrgyk.js → chart-qmls2klknm1pd6hs.js} +1 -1
- package/dist/chunks/{checkbox-bh2l73lmhuj6pshe.js → checkbox-crxoyqsxiupt9kmi.js} +1 -1
- package/dist/chunks/{clipboard-text-gidf1di12egsm2ik.js → clipboard-text-osbgah3jz16ma2vv.js} +4 -4
- package/dist/chunks/{collapsible-iztmqjgwv877bx6n.js → collapsible-jyajpe40jcca357s.js} +1 -1
- package/dist/chunks/{combobox-lsb1ow9xp8x1rdjk.js → combobox-nosdsxdxe2abnqzr.js} +2 -2
- package/dist/chunks/{empty-m9dbasp44rt37k5y.js → empty-kfofsb6khrn1s26v.js} +1 -1
- package/dist/chunks/{field-n2gxrne3rms27myo.js → field-i7lxgmtio7nutt7c.js} +1 -1
- package/dist/chunks/{input-group-guisk75j53d1uu5i.js → input-group-ksh61axy2qgkxl5y.js} +4 -4
- package/dist/chunks/{input-lmu1aox2ng66bkbr.js → input-jthoux2vfxltqtdh.js} +1 -1
- package/dist/chunks/{input-mgdv0d1bgdbaysob.js → input-oc9u4galsdrwy00s.js} +2 -2
- package/dist/chunks/{label-jgamnajeg6rm1yz1.js → label-ow6ait7o31g1umgy.js} +2 -2
- package/dist/chunks/{menubar-nbjb2uvnryypqjq3.js → menubar-fu5u76o529yi19kp.js} +3 -1
- package/dist/chunks/{pagination-oe76uhkp5m9zscrh.js → pagination-hu8y5b8zpef2z4lp.js} +2 -2
- package/dist/chunks/{popover-paah5lvqh1juhfcd.js → popover-jal8z9sv176703lf.js} +3 -3
- package/dist/chunks/{select-ipshr3kdgcnjnmyj.js → select-jdz3yg2pvcjlkroy.js} +4 -4
- package/dist/chunks/{sensitive-input-n12o9f5nq4hs9taw.js → sensitive-input-lba9qvv3ai4xwgux.js} +2 -2
- package/dist/chunks/{sidebar-ky36geri6bjucsgn.js → sidebar-enm5suo7wq163iw5.js} +106 -48
- package/dist/chunks/{switch-entfc87rkpmxuzk0.js → switch-bstb0wl1bi8hjt4z.js} +1 -1
- package/dist/chunks/{table-pcdrtuyq1b11t7nr.js → table-ebfyk2rmebrn82k0.js} +1 -1
- package/dist/chunks/{text-g96suuboob3eum1a.js → text-fsaeol90bjy3pnik.js} +29 -12
- package/dist/chunks/{toast-c068v3bvvpjn5s4d.js → toast-byzrdv104awqbkjh.js} +2 -2
- package/dist/chunks/{toolbar-c3pgxrsuq041bkgt.js → toolbar-djjwqq141iealxa6.js} +4 -3
- package/dist/chunks/{tooltip-fjmcl6d0rrc7ssgu.js → tooltip-k9f7io0k22k5jorq.js} +3 -3
- package/dist/code.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/menubar.d.ts +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-DCA5tjHa.d.ts → index-B7epkoHc.d.ts} +4 -0
- package/dist/{index-BkyMHk632.d.ts → index-Bl6QyQDi2.d.ts} +26 -12
- package/dist/{index-DpzpArsi2.d.ts → index-CMiftS8L2.d.ts} +45 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +27 -27
- package/dist/scripts/theme-generator/config.js +6 -4
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-kumo.css +7 -10
- package/package.json +1 -1
- package/scripts/theme-generator/config.ts +8 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { n as useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
4
|
-
import { n as TooltipProvider, t as Tooltip } from "./tooltip-
|
|
5
|
-
import { t as Button } from "./button-
|
|
4
|
+
import { n as TooltipProvider, t as Tooltip } from "./tooltip-k9f7io0k22k5jorq.js";
|
|
5
|
+
import { t as Button } from "./button-iqaz1uluabeo18f0.js";
|
|
6
6
|
import { t as SkeletonLine } from "./skeleton-line-hlk5vauzo7xsalbo.js";
|
|
7
7
|
import { a as ScrollAreaRoot, i as ScrollAreaViewport, n as ScrollAreaContent, r as ScrollAreaScrollbar, t as ScrollAreaThumb } from "./ScrollAreaThumb-kmhan411yxfo0362.js";
|
|
8
8
|
import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -162,6 +162,38 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
162
162
|
}, []);
|
|
163
163
|
const state = isPeeking ? "peeking" : open ? "expanded" : "collapsed";
|
|
164
164
|
const sidebarWidthValue = resizable ? `${width}px` : SIDEBAR_WIDTH;
|
|
165
|
+
const itemsRef = useRef(/* @__PURE__ */ new Map());
|
|
166
|
+
const registerItem = useCallback((id, node) => {
|
|
167
|
+
const items = itemsRef.current;
|
|
168
|
+
if (node) items.set(id, node);
|
|
169
|
+
else items.delete(id);
|
|
170
|
+
}, []);
|
|
171
|
+
const scrollToItem = useCallback((id, options = {}) => {
|
|
172
|
+
const { align = "auto", behavior = "auto" } = options;
|
|
173
|
+
const target = itemsRef.current.get(id);
|
|
174
|
+
if (!target) return;
|
|
175
|
+
const viewport = target.closest("[data-sidebar=\"viewport\"]");
|
|
176
|
+
if (!viewport) return;
|
|
177
|
+
const targetRect = target.getBoundingClientRect();
|
|
178
|
+
const viewportRect = viewport.getBoundingClientRect();
|
|
179
|
+
const itemScrollOffset = targetRect.top - viewportRect.top + viewport.scrollTop;
|
|
180
|
+
let desired;
|
|
181
|
+
if (align === "center") desired = itemScrollOffset - (viewport.clientHeight - target.offsetHeight) / 2;
|
|
182
|
+
else if (align === "end") desired = itemScrollOffset - (viewport.clientHeight - target.offsetHeight);
|
|
183
|
+
else if (align === "auto") {
|
|
184
|
+
const itemBottom = itemScrollOffset + target.offsetHeight;
|
|
185
|
+
const viewBottom = viewport.scrollTop + viewport.clientHeight;
|
|
186
|
+
if (itemScrollOffset < viewport.scrollTop) desired = itemScrollOffset;
|
|
187
|
+
else if (itemBottom > viewBottom) desired = itemBottom - viewport.clientHeight;
|
|
188
|
+
else return;
|
|
189
|
+
} else desired = itemScrollOffset;
|
|
190
|
+
const clamped = Math.max(0, Math.min(desired, viewport.scrollHeight - viewport.clientHeight));
|
|
191
|
+
const reducedMotion = typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
192
|
+
viewport.scrollTo({
|
|
193
|
+
top: clamped,
|
|
194
|
+
behavior: reducedMotion ? "auto" : behavior
|
|
195
|
+
});
|
|
196
|
+
}, []);
|
|
165
197
|
const contextValue = useMemo(() => ({
|
|
166
198
|
state,
|
|
167
199
|
open,
|
|
@@ -185,7 +217,9 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
185
217
|
startPeek,
|
|
186
218
|
stopPeek,
|
|
187
219
|
contained,
|
|
188
|
-
animationDuration
|
|
220
|
+
animationDuration,
|
|
221
|
+
registerItem,
|
|
222
|
+
scrollToItem
|
|
189
223
|
}), [
|
|
190
224
|
state,
|
|
191
225
|
open,
|
|
@@ -393,24 +427,27 @@ SidebarHeader.displayName = "Sidebar.Header";
|
|
|
393
427
|
* </Sidebar.Content>
|
|
394
428
|
* ```
|
|
395
429
|
*/
|
|
396
|
-
const SidebarContent = forwardRef(({ className, children, ...props }, ref) =>
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
className: "
|
|
406
|
-
children
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
})
|
|
430
|
+
const SidebarContent = forwardRef(({ className, children, ...props }, ref) => {
|
|
431
|
+
return /* @__PURE__ */ jsxs(ScrollAreaRoot, {
|
|
432
|
+
ref,
|
|
433
|
+
"data-sidebar": "content",
|
|
434
|
+
className: cn("relative min-w-0 flex-1 overflow-hidden", className),
|
|
435
|
+
...props,
|
|
436
|
+
children: [/* @__PURE__ */ jsx(ScrollAreaViewport, {
|
|
437
|
+
tabIndex: -1,
|
|
438
|
+
"data-sidebar": "viewport",
|
|
439
|
+
className: cn("h-full px-[11px] py-3 group-not-data-[state=collapsed]/sidebar:px-3.5", "transition-[padding] duration-(--sidebar-animation-duration)", "overflow-x-hidden!", "[mask-image:linear-gradient(to_bottom,transparent_0,black_min(24px,var(--scroll-area-overflow-y-start,24px)),black_calc(100%-min(24px,var(--scroll-area-overflow-y-end,24px))),transparent_100%)]"),
|
|
440
|
+
children: /* @__PURE__ */ jsx(ScrollAreaContent, {
|
|
441
|
+
className: "flex min-w-0! flex-col",
|
|
442
|
+
children
|
|
443
|
+
})
|
|
444
|
+
}), /* @__PURE__ */ jsx(ScrollAreaScrollbar, {
|
|
445
|
+
orientation: "vertical",
|
|
446
|
+
className: cn("flex w-1.5 touch-none p-px select-none", "opacity-0 transition-opacity duration-150", "data-[hovering]:opacity-100 data-[scrolling]:opacity-100", "group-data-[state=collapsed]/sidebar:hidden"),
|
|
447
|
+
children: /* @__PURE__ */ jsx(ScrollAreaThumb, { className: "flex-1 rounded-full bg-kumo-line" })
|
|
448
|
+
})]
|
|
449
|
+
});
|
|
450
|
+
});
|
|
414
451
|
SidebarContent.displayName = "Sidebar.Content";
|
|
415
452
|
/**
|
|
416
453
|
* Bottom-pinned section of the sidebar. Rendered outside the peek zone
|
|
@@ -555,30 +592,29 @@ const SidebarMenu = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
555
592
|
...props
|
|
556
593
|
}));
|
|
557
594
|
SidebarMenu.displayName = "Sidebar.Menu";
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
* ```tsx
|
|
567
|
-
* <Sidebar.MenuItem>
|
|
568
|
-
* <Sidebar.Collapsible>...</Sidebar.Collapsible>
|
|
569
|
-
* </Sidebar.MenuItem>
|
|
570
|
-
* ```
|
|
571
|
-
*/
|
|
572
|
-
const SidebarMenuItem = forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(MenuItemContext.Provider, {
|
|
573
|
-
value: true,
|
|
574
|
-
children: /* @__PURE__ */ jsx("li", {
|
|
595
|
+
const SidebarMenuItem = forwardRef(({ className, children, itemId, ...props }, ref) => {
|
|
596
|
+
const { registerItem } = useSidebar();
|
|
597
|
+
const setRef = useCallback((node) => {
|
|
598
|
+
if (itemId) registerItem(itemId, node);
|
|
599
|
+
if (typeof ref === "function") ref(node);
|
|
600
|
+
else if (ref) ref.current = node;
|
|
601
|
+
}, [
|
|
602
|
+
itemId,
|
|
575
603
|
ref,
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
604
|
+
registerItem
|
|
605
|
+
]);
|
|
606
|
+
return /* @__PURE__ */ jsx(MenuItemContext.Provider, {
|
|
607
|
+
value: true,
|
|
608
|
+
children: /* @__PURE__ */ jsx("li", {
|
|
609
|
+
ref: setRef,
|
|
610
|
+
"data-sidebar": "menu-item",
|
|
611
|
+
"data-sidebar-item-id": itemId,
|
|
612
|
+
className: cn("relative group-data-[state=collapsed]/sidebar:overflow-hidden", className),
|
|
613
|
+
...props,
|
|
614
|
+
children
|
|
615
|
+
})
|
|
616
|
+
});
|
|
617
|
+
});
|
|
582
618
|
SidebarMenuItem.displayName = "Sidebar.MenuItem";
|
|
583
619
|
/**
|
|
584
620
|
* Primary interactive element inside a menu item. Renders as a `<button>` or link.
|
|
@@ -605,10 +641,27 @@ SidebarMenuItem.displayName = "Sidebar.MenuItem";
|
|
|
605
641
|
* </Sidebar.MenuItem>
|
|
606
642
|
* ```
|
|
607
643
|
*/
|
|
608
|
-
const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = false, size = "base", href, target, tooltip, children, ...props }, ref) => {
|
|
609
|
-
const { state, peekable } = useSidebar();
|
|
644
|
+
const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = false, size = "base", href, target, tooltip, itemId, children, ...props }, ref) => {
|
|
645
|
+
const { state, peekable, registerItem } = useSidebar();
|
|
610
646
|
const LinkComponent = useLinkComponent();
|
|
611
647
|
const isInsideMenuItem = useContext(MenuItemContext);
|
|
648
|
+
const registerAutoWrap = useCallback((node) => {
|
|
649
|
+
if (itemId && !isInsideMenuItem) registerItem(itemId, node);
|
|
650
|
+
}, [
|
|
651
|
+
itemId,
|
|
652
|
+
isInsideMenuItem,
|
|
653
|
+
registerItem
|
|
654
|
+
]);
|
|
655
|
+
const registerInteractive = useCallback((node) => {
|
|
656
|
+
if (itemId && isInsideMenuItem) registerItem(itemId, node);
|
|
657
|
+
if (typeof ref === "function") ref(node);
|
|
658
|
+
else if (ref) ref.current = node;
|
|
659
|
+
}, [
|
|
660
|
+
itemId,
|
|
661
|
+
isInsideMenuItem,
|
|
662
|
+
ref,
|
|
663
|
+
registerItem
|
|
664
|
+
]);
|
|
612
665
|
const iconNode = (() => {
|
|
613
666
|
if (!IconProp) return null;
|
|
614
667
|
if (React.isValidElement(IconProp)) return IconProp;
|
|
@@ -626,8 +679,9 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
626
679
|
});
|
|
627
680
|
const buttonClasses = cn("group/menu-button relative flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg outline-none", "before:absolute before:inset-x-0 before:-inset-y-px", size === "base" && "min-h-8.5 px-3 py-0 text-sm font-medium", size === "sm" && "min-h-7 px-2 py-0 text-sm", "text-kumo-default", "transition-[color,box-shadow,outline] duration-(--sidebar-animation-duration)", !active && "hover:bg-(--sidebar-active-bg)", active && "bg-(--sidebar-active-bg)", "has-[[data-active]]:bg-transparent has-[[data-active]]:hover:bg-(--sidebar-active-bg)", "focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong", className);
|
|
628
681
|
let button;
|
|
682
|
+
const itemIdOnButton = isInsideMenuItem ? itemId : void 0;
|
|
629
683
|
if (href) button = /* @__PURE__ */ jsx(LinkComponent, {
|
|
630
|
-
ref,
|
|
684
|
+
ref: registerInteractive,
|
|
631
685
|
...props,
|
|
632
686
|
className: cn(buttonClasses, "no-underline!"),
|
|
633
687
|
href,
|
|
@@ -635,17 +689,19 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
635
689
|
target,
|
|
636
690
|
"data-active": active || void 0,
|
|
637
691
|
"data-sidebar": "menu-button",
|
|
692
|
+
"data-sidebar-item-id": itemIdOnButton,
|
|
638
693
|
"data-kumo-component": "Sidebar",
|
|
639
694
|
"data-kumo-part": "menu-button-link",
|
|
640
695
|
"data-size": size,
|
|
641
696
|
children: content
|
|
642
697
|
});
|
|
643
698
|
else button = /* @__PURE__ */ jsx("button", {
|
|
644
|
-
ref,
|
|
699
|
+
ref: registerInteractive,
|
|
645
700
|
type: "button",
|
|
646
701
|
className: buttonClasses,
|
|
647
702
|
"data-active": active || void 0,
|
|
648
703
|
"data-sidebar": "menu-button",
|
|
704
|
+
"data-sidebar-item-id": itemIdOnButton,
|
|
649
705
|
"data-kumo-component": "Sidebar",
|
|
650
706
|
"data-kumo-part": "menu-button",
|
|
651
707
|
"data-size": size,
|
|
@@ -660,7 +716,9 @@ const SidebarMenuButton = forwardRef(({ className, icon: IconProp, active = fals
|
|
|
660
716
|
render: button
|
|
661
717
|
});
|
|
662
718
|
if (!isInsideMenuItem) return /* @__PURE__ */ jsx("li", {
|
|
719
|
+
ref: registerAutoWrap,
|
|
663
720
|
"data-sidebar": "menu-item",
|
|
721
|
+
"data-sidebar-item-id": itemId,
|
|
664
722
|
className: "relative group-data-[state=collapsed]/sidebar:overflow-hidden",
|
|
665
723
|
children: button
|
|
666
724
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { n as FieldsetRoot, t as FieldsetLegend } from "./FieldsetLegend-j5piwq1giyhrr8s4.js";
|
|
4
|
-
import { t as Field } from "./field-
|
|
4
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
5
5
|
import { t as SwitchRoot } from "./SwitchRoot-e3hnyh3mf8qd30hj.js";
|
|
6
6
|
import { createContext, forwardRef, useContext } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
|
-
import { t as Checkbox } from "./checkbox-
|
|
4
|
+
import { t as Checkbox } from "./checkbox-crxoyqsxiupt9kmi.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/table/table.tsx
|
|
@@ -7,17 +7,24 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
/** Text variant and size definitions mapping names to their Tailwind classes. */
|
|
8
8
|
const KUMO_TEXT_VARIANTS = {
|
|
9
9
|
variant: {
|
|
10
|
+
heading: {
|
|
11
|
+
classes: "text-lg font-semibold",
|
|
12
|
+
description: "Heading text (16px by default, 20px at large size)"
|
|
13
|
+
},
|
|
14
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
10
15
|
heading1: {
|
|
11
16
|
classes: "text-3xl font-semibold",
|
|
12
|
-
description: "
|
|
17
|
+
description: "Deprecated large heading for page titles; use heading instead"
|
|
13
18
|
},
|
|
19
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
14
20
|
heading2: {
|
|
15
21
|
classes: "text-2xl font-semibold",
|
|
16
|
-
description: "
|
|
22
|
+
description: "Deprecated medium heading for section titles; use heading instead"
|
|
17
23
|
},
|
|
24
|
+
/** @deprecated Use `heading` and set `size` and `as` explicitly. */
|
|
18
25
|
heading3: {
|
|
19
26
|
classes: "text-lg font-semibold",
|
|
20
|
-
description: "
|
|
27
|
+
description: "Deprecated small heading for subsections; use heading instead"
|
|
21
28
|
},
|
|
22
29
|
body: {
|
|
23
30
|
classes: "text-kumo-default",
|
|
@@ -67,6 +74,20 @@ const KUMO_TEXT_DEFAULT_VARIANTS = {
|
|
|
67
74
|
variant: "body",
|
|
68
75
|
size: "base"
|
|
69
76
|
};
|
|
77
|
+
const DEPRECATED_HEADING_VARIANTS = [
|
|
78
|
+
"heading1",
|
|
79
|
+
"heading2",
|
|
80
|
+
"heading3"
|
|
81
|
+
];
|
|
82
|
+
function isDeprecatedHeadingVariant(variant) {
|
|
83
|
+
return DEPRECATED_HEADING_VARIANTS.includes(variant);
|
|
84
|
+
}
|
|
85
|
+
function resolveTextSizeClasses(variant, size) {
|
|
86
|
+
if (variant === "heading") return size === "lg" ? "text-xl" : "";
|
|
87
|
+
if (isDeprecatedHeadingVariant(variant)) return "";
|
|
88
|
+
if (["mono", "mono-secondary"].includes(variant)) return size === "lg" ? KUMO_TEXT_VARIANTS.size.base.classes : KUMO_TEXT_VARIANTS.size.sm.classes;
|
|
89
|
+
return resolveVariant(KUMO_TEXT_VARIANTS.size, size, KUMO_TEXT_DEFAULT_VARIANTS.size).classes;
|
|
90
|
+
}
|
|
70
91
|
/**
|
|
71
92
|
* Typography component for rendering text with consistent styling.
|
|
72
93
|
* Renders as `<p>` for body variants and `<span>` for headings/mono.
|
|
@@ -74,8 +95,8 @@ const KUMO_TEXT_DEFAULT_VARIANTS = {
|
|
|
74
95
|
*
|
|
75
96
|
* @example
|
|
76
97
|
* ```tsx
|
|
77
|
-
* <Text variant="
|
|
78
|
-
* <Text variant="
|
|
98
|
+
* <Text variant="heading" size="lg" as="h1">Page Title</Text>
|
|
99
|
+
* <Text variant="heading" as="h2">Section Title</Text>
|
|
79
100
|
* <Text>Default body text</Text>
|
|
80
101
|
* ```
|
|
81
102
|
*/
|
|
@@ -86,19 +107,15 @@ function _Text({ variant = "body", bold = false, size = "base", truncate = false
|
|
|
86
107
|
"success",
|
|
87
108
|
"error"
|
|
88
109
|
].includes(variant);
|
|
89
|
-
|
|
110
|
+
if (isDeprecatedHeadingVariant(variant)) console.warn(`[Kumo Text]: variant="${variant}" is deprecated. Use variant="heading" and set size and as explicitly.`);
|
|
90
111
|
return /* @__PURE__ */ jsx(useMemo(() => {
|
|
91
112
|
if (as) return as;
|
|
92
113
|
if (["mono", "mono-secondary"].includes(variant)) return "span";
|
|
93
|
-
if (
|
|
94
|
-
"heading1",
|
|
95
|
-
"heading2",
|
|
96
|
-
"heading3"
|
|
97
|
-
].includes(variant)) return "span";
|
|
114
|
+
if (variant === "heading" || isDeprecatedHeadingVariant(variant)) return "span";
|
|
98
115
|
return "p";
|
|
99
116
|
}, [variant, as]), {
|
|
100
117
|
ref,
|
|
101
|
-
className: cn("text-kumo-default", resolveVariant(KUMO_TEXT_VARIANTS.variant, variant, KUMO_TEXT_DEFAULT_VARIANTS.variant).classes,
|
|
118
|
+
className: cn("text-kumo-default", resolveVariant(KUMO_TEXT_VARIANTS.variant, variant, KUMO_TEXT_DEFAULT_VARIANTS.variant).classes, resolveTextSizeClasses(variant, size), isCopy && bold ? "font-medium" : "", truncate && "min-w-0 truncate", DANGEROUS_className),
|
|
102
119
|
style: DANGEROUS_style,
|
|
103
120
|
...props,
|
|
104
121
|
children
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
4
|
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-iqaz1uluabeo18f0.js";
|
|
6
6
|
import { a as ToastDescription, c as ToastViewport, l as ToastProvider$1, n as useToastManager, o as ToastRoot, t as createToastManager } from "./createToastManager-kv89sv0xhhsvmq54.js";
|
|
7
7
|
import { a as ToastContent, i as ToastTitle, n as ToastPortal, r as ToastClose } from "./index.parts-lz9cnngidxppvhz7.js";
|
|
8
8
|
import * as e$4 from "react";
|
|
@@ -307,7 +307,7 @@ const TOAST_BACKGROUND_CLASSES = {
|
|
|
307
307
|
info: "bg-kumo-info-tint/50"
|
|
308
308
|
};
|
|
309
309
|
function ToastBackground({ variant }) {
|
|
310
|
-
return /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 rounded-
|
|
310
|
+
return /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 rounded-xl bg-kumo-base/90", variant && TOAST_BACKGROUND_CLASSES[variant]) });
|
|
311
311
|
}
|
|
312
312
|
function ToastIcon({ variant }) {
|
|
313
313
|
if (!variant || variant === "default") return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Button$1 } from "./button-
|
|
4
|
-
import { t as Input$1 } from "./input-
|
|
5
|
-
import { t as InputGroup } from "./input-group-
|
|
3
|
+
import { t as Button$1 } from "./button-iqaz1uluabeo18f0.js";
|
|
4
|
+
import { t as Input$1 } from "./input-jthoux2vfxltqtdh.js";
|
|
5
|
+
import { t as InputGroup } from "./input-group-ksh61axy2qgkxl5y.js";
|
|
6
6
|
import { n as ToolbarButton, r as ToolbarRoot, t as ToolbarInput } from "./ToolbarInput-gxep3ixoe8r6v2to.js";
|
|
7
7
|
import React, { Children, cloneElement, createContext, isValidElement } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -67,6 +67,7 @@ const Button = React.forwardRef(({ children, className, disabled, loading, shape
|
|
|
67
67
|
return /* @__PURE__ */ jsx(ToolbarButton, {
|
|
68
68
|
ref,
|
|
69
69
|
"data-kumo-component": "Toolbar.Button",
|
|
70
|
+
disabled: loading || disabled,
|
|
70
71
|
className: cn(className, TOOLBAR_CONTROL_STYLES),
|
|
71
72
|
render: button,
|
|
72
73
|
...props,
|
|
@@ -38,7 +38,7 @@ function Tooltip({ content, children, align, asChild, render, side, className, c
|
|
|
38
38
|
sideOffset: 10,
|
|
39
39
|
className: "max-w-[var(--available-width)]",
|
|
40
40
|
children: /* @__PURE__ */ jsxs(TooltipPopup, {
|
|
41
|
-
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default", "shadow-
|
|
41
|
+
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default", "shadow-md outline outline-kumo-line", "transition-[transform,scale,opacity] duration-150", "data-[starting-style]:scale-90 data-[starting-style]:opacity-0", "data-[ending-style]:scale-90 data-[ending-style]:opacity-0", "data-[instant]:duration-0", "kumo-tooltip-popup"),
|
|
42
42
|
children: [/* @__PURE__ */ jsx(TooltipArrow, {
|
|
43
43
|
className: cn("flex", "data-[side=bottom]:top-[-8px]", "data-[side=left]:right-[-13px] data-[side=left]:rotate-90", "data-[side=right]:left-[-13px] data-[side=right]:-rotate-90", "data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180"),
|
|
44
44
|
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
@@ -77,11 +77,11 @@ function ArrowSvg(props) {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ jsx("path", {
|
|
79
79
|
d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
|
|
80
|
-
className: "fill-kumo-
|
|
80
|
+
className: "fill-kumo-arrow-edge"
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ jsx("path", {
|
|
83
83
|
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
84
|
-
className: "fill-kumo-
|
|
84
|
+
className: "fill-kumo-arrow-stroke"
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
});
|
package/dist/code.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./chunks/vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Button } from "./chunks/button-
|
|
3
|
+
import { t as Button } from "./chunks/button-iqaz1uluabeo18f0.js";
|
|
4
4
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/code/context.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-
|
|
2
|
+
import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-msex8kc8sw3fp373.js";
|
|
3
3
|
export { Autocomplete, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, autocompleteVariants };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as breadcrumbsVariants, n as KUMO_BREADCRUMBS_DEFAULT_VARIANTS, r as KUMO_BREADCRUMBS_VARIANTS, t as Breadcrumb } from "../chunks/breadcrumbs-
|
|
2
|
+
import { i as breadcrumbsVariants, n as KUMO_BREADCRUMBS_DEFAULT_VARIANTS, r as KUMO_BREADCRUMBS_VARIANTS, t as Breadcrumb } from "../chunks/breadcrumbs-jvlyp3bw0u8qx4fi.js";
|
|
3
3
|
export { Breadcrumb as Breadcrumbs, KUMO_BREADCRUMBS_DEFAULT_VARIANTS, KUMO_BREADCRUMBS_VARIANTS, breadcrumbsVariants };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as buttonVariants, n as LinkButton, r as RefreshButton, t as Button } from "../chunks/button-
|
|
2
|
+
import { i as buttonVariants, n as LinkButton, r as RefreshButton, t as Button } from "../chunks/button-iqaz1uluabeo18f0.js";
|
|
3
3
|
export { Button, LinkButton, RefreshButton, buttonVariants };
|
package/dist/components/chart.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as TimeseriesChart, i as ChartLegend, n as ChoroplethMap, o as Chart, r as SankeyChart, s as ChartPalette, t as BubbleMap } from "../chunks/chart-
|
|
2
|
+
import { a as TimeseriesChart, i as ChartLegend, n as ChoroplethMap, o as Chart, r as SankeyChart, s as ChartPalette, t as BubbleMap } from "../chunks/chart-qmls2klknm1pd6hs.js";
|
|
3
3
|
export { BubbleMap, Chart, ChartLegend, ChartPalette, ChoroplethMap, SankeyChart, TimeseriesChart };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_CHECKBOX_DEFAULT_VARIANTS, r as KUMO_CHECKBOX_VARIANTS, t as Checkbox } from "../chunks/checkbox-
|
|
2
|
+
import { n as KUMO_CHECKBOX_DEFAULT_VARIANTS, r as KUMO_CHECKBOX_VARIANTS, t as Checkbox } from "../chunks/checkbox-crxoyqsxiupt9kmi.js";
|
|
3
3
|
export { Checkbox, KUMO_CHECKBOX_DEFAULT_VARIANTS, KUMO_CHECKBOX_VARIANTS };
|
package/dist/components/empty.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-
|
|
2
|
+
import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-kfofsb6khrn1s26v.js";
|
|
3
3
|
export { Empty, KUMO_EMPTY_DEFAULT_VARIANTS, KUMO_EMPTY_VARIANTS, emptyVariants };
|
package/dist/components/field.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as normalizeFieldError, i as fieldVariants, n as KUMO_FIELD_DEFAULT_VARIANTS, r as KUMO_FIELD_VARIANTS, t as Field } from "../chunks/field-
|
|
2
|
+
import { a as normalizeFieldError, i as fieldVariants, n as KUMO_FIELD_DEFAULT_VARIANTS, r as KUMO_FIELD_VARIANTS, t as Field } from "../chunks/field-i7lxgmtio7nutt7c.js";
|
|
3
3
|
export { Field, KUMO_FIELD_DEFAULT_VARIANTS, KUMO_FIELD_VARIANTS, fieldVariants, normalizeFieldError };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-
|
|
2
|
+
import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-ksh61axy2qgkxl5y.js";
|
|
3
3
|
export { InputGroup, KUMO_INPUT_GROUP_DEFAULT_VARIANTS, KUMO_INPUT_GROUP_VARIANTS };
|
package/dist/components/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as inputVariants, t as Input } from "../chunks/input-
|
|
3
|
-
import { n as Textarea, t as InputArea } from "../chunks/input-
|
|
4
|
-
import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-
|
|
2
|
+
import { r as inputVariants, t as Input } from "../chunks/input-jthoux2vfxltqtdh.js";
|
|
3
|
+
import { n as Textarea, t as InputArea } from "../chunks/input-oc9u4galsdrwy00s.js";
|
|
4
|
+
import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../chunks/input-group-ksh61axy2qgkxl5y.js";
|
|
5
5
|
export { Input, InputArea, InputGroup, KUMO_INPUT_GROUP_DEFAULT_VARIANTS, KUMO_INPUT_GROUP_VARIANTS, Textarea, inputVariants };
|
package/dist/components/label.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as labelVariants, i as labelContentVariants, n as KUMO_LABEL_VARIANTS, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "../chunks/label-
|
|
2
|
+
import { a as labelVariants, i as labelContentVariants, n as KUMO_LABEL_VARIANTS, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "../chunks/label-ow6ait7o31g1umgy.js";
|
|
3
3
|
export { KUMO_LABEL_DEFAULT_VARIANTS, KUMO_LABEL_VARIANTS, Label, labelContentVariants, labelVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MenuBar, t as useMenuNavigation } from "../index-
|
|
1
|
+
import { n as MenuBar, t as useMenuNavigation } from "../index-B7epkoHc.js";
|
|
2
2
|
export { MenuBar, useMenuNavigation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as PopoverContent, c as PopoverTitle, i as PopoverClose, l as PopoverTrigger, n as KUMO_POPOVER_VARIANTS, o as PopoverDescription, r as Popover, s as PopoverRoot, t as KUMO_POPOVER_DEFAULT_VARIANTS } from "../chunks/popover-
|
|
2
|
+
import { a as PopoverContent, c as PopoverTitle, i as PopoverClose, l as PopoverTrigger, n as KUMO_POPOVER_VARIANTS, o as PopoverDescription, r as Popover, s as PopoverRoot, t as KUMO_POPOVER_DEFAULT_VARIANTS } from "../chunks/popover-jal8z9sv176703lf.js";
|
|
3
3
|
export { KUMO_POPOVER_DEFAULT_VARIANTS, KUMO_POPOVER_VARIANTS, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverRoot, PopoverTitle, PopoverTrigger };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_SENSITIVE_INPUT_VARIANTS, r as SensitiveInput, t as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS } from "../chunks/sensitive-input-
|
|
2
|
+
import { n as KUMO_SENSITIVE_INPUT_VARIANTS, r as SensitiveInput, t as KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS } from "../chunks/sensitive-input-lba9qvv3ai4xwgux.js";
|
|
3
3
|
export { KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS, KUMO_SENSITIVE_INPUT_VARIANTS, SensitiveInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, Sidebar, SidebarCollapsible, type SidebarCollapsible as SidebarCollapsibleType, SidebarCollapsibleContent, type SidebarCollapsibleProps, SidebarCollapsibleTrigger, type SidebarCollapsibleTriggerProps, SidebarContent, type SidebarContextValue, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, type SidebarMenuButtonSize, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarResizeHandle, SidebarRoot, type SidebarRootProps, SidebarSeparator, type SidebarSide, SidebarSlidingView, type SidebarSlidingViewProps, SidebarSlidingViews, type SidebarSlidingViewsProps, type SidebarState, SidebarTrigger, type SidebarVariant, useSidebar };
|
|
1
|
+
import { A as SidebarProviderProps, B as SidebarSlidingViewProps, C as SidebarMenuItem, D as SidebarMenuSubButtonProps, E as SidebarMenuSubButton, F as SidebarScrollAlign, G as SidebarVariant, H as SidebarSlidingViewsProps, I as SidebarScrollToItemOptions, K as useSidebar, L as SidebarSeparator, M as SidebarResizeHandle, N as SidebarRoot, O as SidebarMenuSubItem, P as SidebarRootProps, R as SidebarSide, S as SidebarMenuChevron, T as SidebarMenuSub, U as SidebarState, V as SidebarSlidingViews, W as SidebarTrigger, _ as SidebarMenu, a as SidebarCollapsible, b as SidebarMenuButtonProps, c as SidebarCollapsibleTrigger, d as SidebarContextValue, f as SidebarFooter, g as SidebarLoading, h as SidebarHeader, i as Sidebar, j as SidebarRail, k as SidebarProvider, l as SidebarCollapsibleTriggerProps, m as SidebarGroupLabel, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarGroup, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleProps, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarContent, v as SidebarMenuBadge, w as SidebarMenuItemProps, x as SidebarMenuButtonSize, y as SidebarMenuButton, z as SidebarSlidingView } from "../index-CMiftS8L2.js";
|
|
2
|
+
export { KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, Sidebar, SidebarCollapsible, type SidebarCollapsible as SidebarCollapsibleType, SidebarCollapsibleContent, type SidebarCollapsibleProps, SidebarCollapsibleTrigger, type SidebarCollapsibleTriggerProps, SidebarContent, type SidebarContextValue, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, type SidebarMenuButtonSize, SidebarMenuChevron, SidebarMenuItem, type SidebarMenuItemProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarResizeHandle, SidebarRoot, type SidebarRootProps, type SidebarScrollAlign, type SidebarScrollToItemOptions, SidebarSeparator, type SidebarSide, SidebarSlidingView, type SidebarSlidingViewProps, SidebarSlidingViews, type SidebarSlidingViewsProps, type SidebarState, SidebarTrigger, type SidebarVariant, useSidebar };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as useSidebar, C as SidebarRail, D as SidebarSlidingView, E as SidebarSeparator, O as SidebarSlidingViews, S as SidebarProvider, T as SidebarRoot, _ as SidebarMenuChevron, a as SidebarCollapsible, b as SidebarMenuSubButton, c as SidebarContent, d as SidebarGroupLabel, f as SidebarHeader, g as SidebarMenuButton, h as SidebarMenuBadge, i as Sidebar, k as SidebarTrigger, l as SidebarFooter, m as SidebarMenu, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarLoading, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleTrigger, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarGroup, v as SidebarMenuItem, w as SidebarResizeHandle, x as SidebarMenuSubItem, y as SidebarMenuSub } from "../chunks/sidebar-
|
|
2
|
+
import { A as useSidebar, C as SidebarRail, D as SidebarSlidingView, E as SidebarSeparator, O as SidebarSlidingViews, S as SidebarProvider, T as SidebarRoot, _ as SidebarMenuChevron, a as SidebarCollapsible, b as SidebarMenuSubButton, c as SidebarContent, d as SidebarGroupLabel, f as SidebarHeader, g as SidebarMenuButton, h as SidebarMenuBadge, i as Sidebar, k as SidebarTrigger, l as SidebarFooter, m as SidebarMenu, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarLoading, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleTrigger, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarGroup, v as SidebarMenuItem, w as SidebarResizeHandle, x as SidebarMenuSubItem, y as SidebarMenuSub } from "../chunks/sidebar-enm5suo7wq163iw5.js";
|
|
3
3
|
export { KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, Sidebar, SidebarCollapsible, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarResizeHandle, SidebarRoot, SidebarSeparator, SidebarSlidingView, SidebarSlidingViews, SidebarTrigger, useSidebar };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_SWITCH_VARIANTS, r as Switch, t as KUMO_SWITCH_DEFAULT_VARIANTS } from "../chunks/switch-
|
|
2
|
+
import { n as KUMO_SWITCH_VARIANTS, r as Switch, t as KUMO_SWITCH_DEFAULT_VARIANTS } from "../chunks/switch-bstb0wl1bi8hjt4z.js";
|
|
3
3
|
export { KUMO_SWITCH_DEFAULT_VARIANTS, KUMO_SWITCH_VARIANTS, Switch };
|
package/dist/components/table.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_TABLE_VARIANTS, r as Table, t as KUMO_TABLE_DEFAULT_VARIANTS } from "../chunks/table-
|
|
2
|
+
import { n as KUMO_TABLE_VARIANTS, r as Table, t as KUMO_TABLE_DEFAULT_VARIANTS } from "../chunks/table-ebfyk2rmebrn82k0.js";
|
|
3
3
|
export { KUMO_TABLE_DEFAULT_VARIANTS, KUMO_TABLE_VARIANTS, Table };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Text } from "../index-
|
|
1
|
+
import { t as Text } from "../index-Bl6QyQDi2.js";
|
|
2
2
|
export { Text };
|
package/dist/components/text.js
CHANGED
package/dist/components/toast.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as index_parts_exports } from "../chunks/index.parts-lz9cnngidxppvhz7.js";
|
|
3
|
-
import { i as useKumoToastManager, n as Toasty, r as createKumoToastManager, t as ToastProvider } from "../chunks/toast-
|
|
3
|
+
import { i as useKumoToastManager, n as Toasty, r as createKumoToastManager, t as ToastProvider } from "../chunks/toast-byzrdv104awqbkjh.js";
|
|
4
4
|
export { index_parts_exports as Toast, ToastProvider, Toasty, createKumoToastManager, useKumoToastManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "../chunks/toolbar-
|
|
2
|
+
import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "../chunks/toolbar-djjwqq141iealxa6.js";
|
|
3
3
|
export { KUMO_TOOLBAR_DEFAULT_VARIANTS, KUMO_TOOLBAR_VARIANTS, Toolbar };
|