@cloudflare/kumo 2.12.0 → 2.13.1
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 +59 -0
- package/ai/component-registry.json +107 -11
- package/ai/component-registry.md +136 -3
- package/ai/schemas.ts +14 -0
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +60 -0
- package/dist/ai/schemas.js +31 -0
- package/dist/chunks/{ToolbarInput-gxep3ixoe8r6v2to.js → ToolbarInput-er5t9irqvuwcjrir.js} +28 -1
- package/dist/chunks/{autocomplete-msex8kc8sw3fp373.js → autocomplete-dn6g4rc8bktdl4an.js} +2 -2
- package/dist/chunks/{banner-nz02b60ech1e2m6f.js → banner-n1ekcvrwashsgv93.js} +1 -1
- package/dist/chunks/{breadcrumbs-jvlyp3bw0u8qx4fi.js → breadcrumbs-ffwe8tzqzmpyikq5.js} +1 -1
- package/dist/chunks/{button-iqaz1uluabeo18f0.js → button-h36q7tklakhd38nx.js} +1 -1
- package/dist/chunks/{checkbox-crxoyqsxiupt9kmi.js → checkbox-jachq6akfh72x12r.js} +1 -1
- package/dist/chunks/{clipboard-text-osbgah3jz16ma2vv.js → clipboard-text-ms46uaujvkjmjnng.js} +2 -2
- package/dist/chunks/{combobox-nosdsxdxe2abnqzr.js → combobox-hxarufzb1z61xnbv.js} +3 -3
- package/dist/chunks/{dialog-nas75qs6d8gj5dxm.js → dialog-o0164pgcyc74lvp9.js} +1 -1
- package/dist/chunks/{empty-kfofsb6khrn1s26v.js → empty-ox60d384lkwbj5n4.js} +1 -1
- package/dist/chunks/{field-i7lxgmtio7nutt7c.js → field-kgz7w7yixmtpg010.js} +1 -1
- package/dist/chunks/{index2.parts-epkfat8l4pvwpd1a.js → index2.parts-kiwz8e3k8utvm4zb.js} +1 -29
- package/dist/chunks/{input-group-ksh61axy2qgkxl5y.js → input-group-kshukialqry0fmra.js} +5 -5
- package/dist/chunks/{input-oc9u4galsdrwy00s.js → input-ikfimmpl5sngvh9s.js} +2 -2
- package/dist/chunks/{input-jthoux2vfxltqtdh.js → input-pehjmr1q131tz38w.js} +1 -1
- package/dist/chunks/{label-ow6ait7o31g1umgy.js → label-ie2gpde0nco1avi7.js} +2 -2
- package/dist/chunks/{menubar-fu5u76o529yi19kp.js → menubar-ljbsj2ulayebjyza.js} +1 -1
- package/dist/chunks/{pagination-hu8y5b8zpef2z4lp.js → pagination-i3jewbdolgru0xnr.js} +13 -9
- package/dist/chunks/{select-jdz3yg2pvcjlkroy.js → select-ndqpqpmqtmn497rq.js} +27 -12
- package/dist/chunks/{sensitive-input-lba9qvv3ai4xwgux.js → sensitive-input-jtbp3mvdynz9wewu.js} +2 -2
- package/dist/chunks/{sidebar-enm5suo7wq163iw5.js → sidebar-ob6c9b8fq0hx7uke.js} +2 -2
- package/dist/chunks/{switch-bstb0wl1bi8hjt4z.js → switch-oghrd7f6i5jqar59.js} +1 -1
- package/dist/chunks/{table-ebfyk2rmebrn82k0.js → table-miggde3uqhhrd5at.js} +2 -2
- package/dist/chunks/{text-fsaeol90bjy3pnik.js → text-jzp4mdlr222iuzxt.js} +4 -4
- package/dist/chunks/{toast-byzrdv104awqbkjh.js → toast-g435fvt74w5orxqo.js} +1 -1
- package/dist/chunks/{toolbar-djjwqq141iealxa6.js → toolbar-e0b61hr6ys6dmwhv.js} +23 -4
- package/dist/chunks/{tooltip-k9f7io0k22k5jorq.js → tooltip-jq15p5jzgfrhslpo.js} +1 -1
- 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/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog.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.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +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.d.ts +2 -2
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-DTjmw8Vy2.d.ts → index-BXsHCLB82.d.ts} +4 -2
- package/dist/{index-CaoLMX-b2.d.ts → index-D97n4Bpf2.d.ts} +4 -2
- package/dist/{index-Dsn2VLZv.d.ts → index-DYYiDxZs.d.ts} +5 -0
- package/dist/{index-Bl6QyQDi2.d.ts → index-Dzzi1o7w2.d.ts} +4 -4
- package/dist/{index-BHclAeEt2.d.ts → index-_Sl5wohy2.d.ts} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +25 -25
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/package.json +2 -2
package/dist/ai/schemas.js
CHANGED
|
@@ -5087,6 +5087,7 @@ const PaginationPropsSchema = object({
|
|
|
5087
5087
|
page: number().optional(),
|
|
5088
5088
|
perPage: number().optional(),
|
|
5089
5089
|
totalCount: number().optional(),
|
|
5090
|
+
hasNextPage: boolean().optional(),
|
|
5090
5091
|
className: string().optional(),
|
|
5091
5092
|
labels: unknown().optional(),
|
|
5092
5093
|
children: union([
|
|
@@ -5154,6 +5155,36 @@ const SankeyChartPropsSchema = object({
|
|
|
5154
5155
|
isDarkMode: boolean().optional()
|
|
5155
5156
|
});
|
|
5156
5157
|
const SelectPropsSchema = object({
|
|
5158
|
+
align: _enum([
|
|
5159
|
+
"start",
|
|
5160
|
+
"center",
|
|
5161
|
+
"end"
|
|
5162
|
+
]).optional(),
|
|
5163
|
+
alignItemWithTrigger: boolean().optional(),
|
|
5164
|
+
alignOffset: unknown().optional(),
|
|
5165
|
+
anchor: union([
|
|
5166
|
+
string(),
|
|
5167
|
+
number(),
|
|
5168
|
+
boolean(),
|
|
5169
|
+
_null(),
|
|
5170
|
+
DynamicValueSchema
|
|
5171
|
+
]).optional(),
|
|
5172
|
+
arrowPadding: number().optional(),
|
|
5173
|
+
collisionAvoidance: unknown().optional(),
|
|
5174
|
+
collisionBoundary: unknown().optional(),
|
|
5175
|
+
collisionPadding: unknown().optional(),
|
|
5176
|
+
disableAnchorTracking: boolean().optional(),
|
|
5177
|
+
positionMethod: _enum(["absolute", "fixed"]).optional(),
|
|
5178
|
+
side: _enum([
|
|
5179
|
+
"top",
|
|
5180
|
+
"bottom",
|
|
5181
|
+
"left",
|
|
5182
|
+
"right",
|
|
5183
|
+
"inline-end",
|
|
5184
|
+
"inline-start"
|
|
5185
|
+
]).optional(),
|
|
5186
|
+
sideOffset: unknown().optional(),
|
|
5187
|
+
sticky: boolean().optional(),
|
|
5157
5188
|
className: string().optional(),
|
|
5158
5189
|
render: union([
|
|
5159
5190
|
string(),
|
|
@@ -99,6 +99,33 @@ const ToolbarButton = /*#__PURE__*/ React$1.forwardRef(function ToolbarButton(co
|
|
|
99
99
|
});
|
|
100
100
|
ToolbarButton.displayName = "ToolbarButton";
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/toolbar/link/ToolbarLink.mjs
|
|
103
|
+
const TOOLBAR_LINK_METADATA = {
|
|
104
|
+
disabled: false,
|
|
105
|
+
focusableWhenDisabled: true
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* A link component.
|
|
109
|
+
* Renders an `<a>` element.
|
|
110
|
+
*
|
|
111
|
+
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
112
|
+
*/
|
|
113
|
+
const ToolbarLink = /*#__PURE__*/ React$1.forwardRef(function ToolbarLink(componentProps, forwardedRef) {
|
|
114
|
+
const { className, render, style, ...elementProps } = componentProps;
|
|
115
|
+
const { orientation } = useToolbarRootContext();
|
|
116
|
+
return /*#__PURE__*/ jsx(CompositeItem, {
|
|
117
|
+
tag: "a",
|
|
118
|
+
render,
|
|
119
|
+
className,
|
|
120
|
+
style,
|
|
121
|
+
metadata: TOOLBAR_LINK_METADATA,
|
|
122
|
+
state: { orientation },
|
|
123
|
+
refs: [forwardedRef],
|
|
124
|
+
props: [elementProps]
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
ToolbarLink.displayName = "ToolbarLink";
|
|
128
|
+
//#endregion
|
|
102
129
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/toolbar/input/ToolbarInput.mjs
|
|
103
130
|
/**
|
|
104
131
|
* A native input element that integrates with Toolbar keyboard navigation.
|
|
@@ -149,4 +176,4 @@ const ToolbarInput = /*#__PURE__*/ React$1.forwardRef(function ToolbarInput(comp
|
|
|
149
176
|
});
|
|
150
177
|
ToolbarInput.displayName = "ToolbarInput";
|
|
151
178
|
//#endregion
|
|
152
|
-
export {
|
|
179
|
+
export { ToolbarRoot as i, ToolbarLink as n, ToolbarButton as r, ToolbarInput as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
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 Field } from "./field-
|
|
5
|
-
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-
|
|
4
|
+
import { t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-pehjmr1q131tz38w.js";
|
|
6
6
|
import { a as ComboboxGroupLabel, c as ComboboxList, l as ComboboxCollection, o as ComboboxGroup, t as ComboboxEmpty, u as ComboboxInput, y as useCoreFilter } from "./ComboboxEmpty-hwv2kjxnf9un635e.js";
|
|
7
7
|
import { n as ComboboxPositioner, r as ComboboxPortal, t as ComboboxPopup } from "./ComboboxPopup-fx7xex6g75t9u0gm.js";
|
|
8
8
|
import { t as Separator$1 } from "./Separator-b8wf5rea6m1cei8k.js";
|
|
@@ -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 { r as Link } from "./link-gp4swsrd3vfnvori.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.js";
|
|
6
6
|
import { createContext, forwardRef, isValidElement, useContext } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/banner/banner-action.tsx
|
|
@@ -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 useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.js";
|
|
6
6
|
import { t as SkeletonLine } from "./skeleton-line-hlk5vauzo7xsalbo.js";
|
|
7
7
|
import { Children, cloneElement, isValidElement, useEffect, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ 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 useLinkComponent } from "./link-provider-kbwllpbo24fvgioj.js";
|
|
5
5
|
import { t as Loader } from "./loader-j2v6fab8iucuxz1z.js";
|
|
6
|
-
import { t as Tooltip } from "./tooltip-
|
|
6
|
+
import { t as Tooltip } from "./tooltip-jq15p5jzgfrhslpo.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { ArrowsClockwise } from "@phosphor-icons/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { r as Label } from "./label-
|
|
3
|
+
import { r as Label } from "./label-ie2gpde0nco1avi7.js";
|
|
4
4
|
import { n as FieldsetRoot, t as FieldsetLegend } from "./FieldsetLegend-j5piwq1giyhrr8s4.js";
|
|
5
5
|
import { n as FieldRoot, t as FieldLabel } from "./FieldLabel-f6vwzm8nefzxwlh8.js";
|
|
6
6
|
import { t as CheckboxRoot } from "./CheckboxRoot-o5bfpje6e4p6pdgm.js";
|
package/dist/chunks/{clipboard-text-osbgah3jz16ma2vv.js → clipboard-text-ms46uaujvkjmjnng.js}
RENAMED
|
@@ -3,9 +3,9 @@ import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
|
3
3
|
import { t as resolveVariant } from "./resolve-variant-l6x5ksfrjtu4m66l.js";
|
|
4
4
|
import { a as TooltipTrigger, i as TooltipPortal, n as TooltipPositioner, s as TooltipRoot, t as TooltipPopup } from "./TooltipPopup-l2zrbjavf1cqclfx.js";
|
|
5
5
|
import { t as TooltipProvider } from "./TooltipProvider-eyhgia63aq2x4frl.js";
|
|
6
|
-
import { t as Button } from "./button-
|
|
6
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.js";
|
|
7
7
|
import { a as ToastDescription, c as ToastViewport, l as ToastProvider, n as useToastManager, o as ToastRoot, r as ToastPositioner, t as createToastManager } from "./createToastManager-kv89sv0xhhsvmq54.js";
|
|
8
|
-
import { r as inputVariants } from "./input-
|
|
8
|
+
import { r as inputVariants } from "./input-pehjmr1q131tz38w.js";
|
|
9
9
|
import { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
4
|
-
import { t as Field } from "./field-
|
|
5
|
-
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-
|
|
4
|
+
import { t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-pehjmr1q131tz38w.js";
|
|
6
6
|
import { a as ComboboxGroupLabel, c as ComboboxList, l as ComboboxCollection, n as ComboboxItem, o as ComboboxGroup, t as ComboboxEmpty, u as ComboboxInput, v as useComboboxFilter } from "./ComboboxEmpty-hwv2kjxnf9un635e.js";
|
|
7
7
|
import { a as ComboboxValue, i as ComboboxItemIndicator, n as ComboboxChip, o as ComboboxRoot, r as ComboboxChips, t as ComboboxChipRemove } from "./ComboboxChipRemove-ksyozjezihhstmbu.js";
|
|
8
8
|
import { n as ComboboxIcon, r as ComboboxTrigger, t as ComboboxClear } from "./ComboboxClear-glm805v81uaaf3su.js";
|
|
@@ -193,7 +193,7 @@ function Empty(props) {
|
|
|
193
193
|
function Input(props) {
|
|
194
194
|
return /* @__PURE__ */ jsx(ComboboxInput, {
|
|
195
195
|
...props,
|
|
196
|
-
className: cn(inputVariants(), "mx-1.5 w-
|
|
196
|
+
className: cn(inputVariants(), "mx-0 -mt-1.5 w-full shrink-0 rounded-b-none first:mb-2", props.className)
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
function List({ className, ...props }) {
|
|
@@ -51,7 +51,7 @@ function useDialogRole() {
|
|
|
51
51
|
return useContext(DialogRoleContext);
|
|
52
52
|
}
|
|
53
53
|
function dialogVariants({ size = KUMO_DIALOG_DEFAULT_VARIANTS.size } = {}) {
|
|
54
|
-
return cn("shadow-m ring ring-kumo-line fixed top-
|
|
54
|
+
return cn("shadow-m ring ring-kumo-line fixed top-8 left-1/2 sm:top-16 w-full max-w-[calc(100vw-2rem)] -translate-x-1/2 overflow-hidden rounded-xl bg-kumo-base text-kumo-default duration-150 data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0", resolveVariant(KUMO_DIALOG_VARIANTS.size, size, KUMO_DIALOG_DEFAULT_VARIANTS.size).classes);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Modal dialog overlay with backdrop. Compound component with `Dialog.Root`,
|
|
@@ -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 Button } from "./button-
|
|
4
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.js";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { r as Label } from "./label-
|
|
3
|
+
import { r as Label } from "./label-ie2gpde0nco1avi7.js";
|
|
4
4
|
import { n as FieldRoot, t as FieldLabel } from "./FieldLabel-f6vwzm8nefzxwlh8.js";
|
|
5
5
|
import { n as FieldError, t as FieldDescription } from "./FieldDescription-ju607ea6gwgzga8p.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,9 +3,8 @@ import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
|
|
|
3
3
|
import { t as useRenderElement } from "./useRenderElement-m8kc7jyuczp71mq8.js";
|
|
4
4
|
import { t as Separator } from "./Separator-b8wf5rea6m1cei8k.js";
|
|
5
5
|
import { n as useToolbarRootContext } from "./ToolbarRootContext-lvi96r1vvs93rhde.js";
|
|
6
|
-
import { n as
|
|
6
|
+
import { i as ToolbarRoot, n as ToolbarLink, r as ToolbarButton, t as ToolbarInput } from "./ToolbarInput-er5t9irqvuwcjrir.js";
|
|
7
7
|
import { t as ToolbarGroupContext } from "./ToolbarGroupContext-nriz3632ymugfj6h.js";
|
|
8
|
-
import { t as CompositeItem } from "./CompositeItem-l7zee38lq5m224d5.js";
|
|
9
8
|
import * as React$1 from "react";
|
|
10
9
|
import { jsx } from "react/jsx-runtime";
|
|
11
10
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/toolbar/separator/ToolbarSeparator.mjs
|
|
@@ -55,33 +54,6 @@ const ToolbarGroup = /*#__PURE__*/ React$1.forwardRef(function ToolbarGroup(comp
|
|
|
55
54
|
});
|
|
56
55
|
ToolbarGroup.displayName = "ToolbarGroup";
|
|
57
56
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/toolbar/link/ToolbarLink.mjs
|
|
59
|
-
const TOOLBAR_LINK_METADATA = {
|
|
60
|
-
disabled: false,
|
|
61
|
-
focusableWhenDisabled: true
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* A link component.
|
|
65
|
-
* Renders an `<a>` element.
|
|
66
|
-
*
|
|
67
|
-
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
68
|
-
*/
|
|
69
|
-
const ToolbarLink = /*#__PURE__*/ React$1.forwardRef(function ToolbarLink(componentProps, forwardedRef) {
|
|
70
|
-
const { className, render, style, ...elementProps } = componentProps;
|
|
71
|
-
const { orientation } = useToolbarRootContext();
|
|
72
|
-
return /*#__PURE__*/ jsx(CompositeItem, {
|
|
73
|
-
tag: "a",
|
|
74
|
-
render,
|
|
75
|
-
className,
|
|
76
|
-
style,
|
|
77
|
-
metadata: TOOLBAR_LINK_METADATA,
|
|
78
|
-
state: { orientation },
|
|
79
|
-
refs: [forwardedRef],
|
|
80
|
-
props: [elementProps]
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
ToolbarLink.displayName = "ToolbarLink";
|
|
84
|
-
//#endregion
|
|
85
57
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/toolbar/index.parts.mjs
|
|
86
58
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
87
59
|
Button: () => ToolbarButton,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Tooltip } from "./tooltip-
|
|
4
|
-
import { t as Button$1 } from "./button-
|
|
5
|
-
import { t as Field } from "./field-
|
|
6
|
-
import { r as inputVariants, t as Input$1 } from "./input-
|
|
3
|
+
import { t as Tooltip } from "./tooltip-jq15p5jzgfrhslpo.js";
|
|
4
|
+
import { t as Button$1 } from "./button-h36q7tklakhd38nx.js";
|
|
5
|
+
import { t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
6
|
+
import { r as inputVariants, t as Input$1 } from "./input-pehjmr1q131tz38w.js";
|
|
7
7
|
import React, { Children, cloneElement, createContext, forwardRef, isValidElement, useContext, useId, useMemo } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/input-group/context.ts
|
|
@@ -43,7 +43,7 @@ const INPUT_GROUP_SIZE = {
|
|
|
43
43
|
addonOuterStart: "pl-2.5",
|
|
44
44
|
addonOuterEnd: "pr-2.5",
|
|
45
45
|
addonButtonOuterStart: "pl-1.5",
|
|
46
|
-
addonButtonOuterEnd: "pr-
|
|
46
|
+
addonButtonOuterEnd: "pr-0.5",
|
|
47
47
|
suffixPad: "pr-4",
|
|
48
48
|
fontSize: "text-base",
|
|
49
49
|
iconSize: 20
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as FieldControl } from "./FieldControl-oz007qbkl6ejp7di.js";
|
|
4
|
-
import { a as normalizeFieldError, t as Field } from "./field-
|
|
5
|
-
import { r as inputVariants } from "./input-
|
|
4
|
+
import { a as normalizeFieldError, t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
5
|
+
import { r as inputVariants } from "./input-pehjmr1q131tz38w.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { useCallback, useEffect, useLayoutEffect, useRef } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -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 { t as Input$1 } from "./Input-ovqfhsmpfcrg5czm.js";
|
|
5
|
-
import { a as normalizeFieldError, t as Field } from "./field-
|
|
5
|
+
import { a as normalizeFieldError, t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/input/input.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Tooltip } from "./tooltip-
|
|
4
|
-
import { t as Button } from "./button-
|
|
3
|
+
import { t as Tooltip } from "./tooltip-jq15p5jzgfrhslpo.js";
|
|
4
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Info } from "@phosphor-icons/react";
|
|
7
7
|
//#region src/components/label/label.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as Tooltip } from "./tooltip-
|
|
3
|
+
import { t as Tooltip } from "./tooltip-jq15p5jzgfrhslpo.js";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { IconContext } from "@phosphor-icons/react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
|
-
import { t as InputGroup } from "./input-group-
|
|
4
|
-
import { t as Select } from "./select-
|
|
3
|
+
import { t as InputGroup } from "./input-group-kshukialqry0fmra.js";
|
|
4
|
+
import { t as Select } from "./select-ndqpqpmqtmn497rq.js";
|
|
5
5
|
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { CaretDoubleLeftIcon, CaretDoubleRightIcon, CaretLeftIcon, CaretRightIcon } from "@phosphor-icons/react";
|
|
@@ -77,14 +77,17 @@ function PaginationPageSize({ value, onChange, options = DEFAULT_PAGE_SIZE_OPTIO
|
|
|
77
77
|
}
|
|
78
78
|
PaginationPageSize.displayName = "Pagination.PageSize";
|
|
79
79
|
function PaginationControls({ controls = KUMO_PAGINATION_DEFAULT_VARIANTS.controls, pageSelector = "input", className }) {
|
|
80
|
-
const { page, maxPage, setPage, editingPage, setEditingPage, labels } = usePaginationContext();
|
|
80
|
+
const { page, totalCount, hasNextPage, maxPage, setPage, editingPage, setEditingPage, labels } = usePaginationContext();
|
|
81
|
+
const hasKnownTotal = totalCount != null;
|
|
82
|
+
const showFullControls = controls === "full" && !(!hasKnownTotal && hasNextPage !== void 0);
|
|
83
|
+
const isNextDisabled = hasKnownTotal ? page === maxPage : hasNextPage !== true;
|
|
81
84
|
return /* @__PURE__ */ jsx("div", {
|
|
82
85
|
"data-slot": "pagination-controls",
|
|
83
86
|
className: cn("flex grow flex-col items-end", className),
|
|
84
87
|
children: /* @__PURE__ */ jsx("nav", {
|
|
85
88
|
"aria-label": labels.navigation,
|
|
86
89
|
children: /* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
87
|
-
|
|
90
|
+
showFullControls && /* @__PURE__ */ jsx(InputGroup.Button, {
|
|
88
91
|
variant: "secondary",
|
|
89
92
|
"aria-label": labels.firstPage,
|
|
90
93
|
disabled: page <= 1,
|
|
@@ -105,7 +108,7 @@ function PaginationControls({ controls = KUMO_PAGINATION_DEFAULT_VARIANTS.contro
|
|
|
105
108
|
},
|
|
106
109
|
children: /* @__PURE__ */ jsx(CaretLeftIcon, { size: 16 })
|
|
107
110
|
}),
|
|
108
|
-
|
|
111
|
+
showFullControls && (pageSelector === "dropdown" ? /* @__PURE__ */ jsx(Select, {
|
|
109
112
|
"aria-label": labels.pageNumber,
|
|
110
113
|
className: "rounded-none ring-kumo-hairline",
|
|
111
114
|
value: page,
|
|
@@ -146,15 +149,15 @@ function PaginationControls({ controls = KUMO_PAGINATION_DEFAULT_VARIANTS.contro
|
|
|
146
149
|
/* @__PURE__ */ jsx(InputGroup.Button, {
|
|
147
150
|
variant: "secondary",
|
|
148
151
|
"aria-label": labels.nextPage,
|
|
149
|
-
disabled:
|
|
152
|
+
disabled: isNextDisabled,
|
|
150
153
|
onClick: () => {
|
|
151
|
-
const nextPage = Math.min(page + 1, maxPage);
|
|
154
|
+
const nextPage = hasKnownTotal ? Math.min(page + 1, maxPage) : page + 1;
|
|
152
155
|
setPage(nextPage);
|
|
153
156
|
setEditingPage(nextPage);
|
|
154
157
|
},
|
|
155
158
|
children: /* @__PURE__ */ jsx(CaretRightIcon, { size: 16 })
|
|
156
159
|
}),
|
|
157
|
-
|
|
160
|
+
showFullControls && /* @__PURE__ */ jsx(InputGroup.Button, {
|
|
158
161
|
variant: "secondary",
|
|
159
162
|
"aria-label": labels.lastPage,
|
|
160
163
|
disabled: page === maxPage,
|
|
@@ -199,7 +202,7 @@ PaginationSeparator.displayName = "Pagination.Separator";
|
|
|
199
202
|
* ```
|
|
200
203
|
*/
|
|
201
204
|
function PaginationRoot(props) {
|
|
202
|
-
const { page = 1, perPage, totalCount, setPage, children, className, labels: labelsProp } = props;
|
|
205
|
+
const { page = 1, perPage, totalCount, hasNextPage, setPage, children, className, labels: labelsProp } = props;
|
|
203
206
|
const text = "text" in props ? props.text : void 0;
|
|
204
207
|
const controls = "controls" in props ? props.controls ?? KUMO_PAGINATION_DEFAULT_VARIANTS.controls : KUMO_PAGINATION_DEFAULT_VARIANTS.controls;
|
|
205
208
|
const [editingPage, setEditingPage] = useState(1);
|
|
@@ -225,6 +228,7 @@ function PaginationRoot(props) {
|
|
|
225
228
|
page,
|
|
226
229
|
perPage,
|
|
227
230
|
totalCount,
|
|
231
|
+
hasNextPage,
|
|
228
232
|
maxPage: useMemo(() => {
|
|
229
233
|
return Math.ceil((totalCount ?? 1) / (perPage ?? 1));
|
|
230
234
|
}, [totalCount, perPage]),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { n as usePortalContainer } from "./portal-provider-gznk6snyqj6egd6d.js";
|
|
4
|
-
import { i as buttonVariants } from "./button-
|
|
5
|
-
import { r as Label } from "./label-
|
|
6
|
-
import { t as Field } from "./field-
|
|
7
|
-
import { n as KUMO_INPUT_VARIANTS } from "./input-
|
|
4
|
+
import { i as buttonVariants } from "./button-h36q7tklakhd38nx.js";
|
|
5
|
+
import { r as Label } from "./label-ie2gpde0nco1avi7.js";
|
|
6
|
+
import { t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
7
|
+
import { n as KUMO_INPUT_VARIANTS } from "./input-pehjmr1q131tz38w.js";
|
|
8
8
|
import { t as Separator$1 } from "./Separator-b8wf5rea6m1cei8k.js";
|
|
9
9
|
import { t as SkeletonLine } from "./skeleton-line-hlk5vauzo7xsalbo.js";
|
|
10
10
|
import { a as SelectItem, c as SelectPositioner, d as SelectIcon, f as SelectValue, h as SelectRoot, i as SelectItemIndicator, m as SelectLabel, n as SelectGroup, o as SelectList, p as SelectTrigger, r as SelectItemText, s as SelectPopup, t as SelectGroupLabel, u as SelectPortal } from "./SelectGroupLabel-m4h5hrft9043nsd1.js";
|
|
@@ -14,7 +14,7 @@ import { CaretUpDownIcon, CheckIcon } from "@phosphor-icons/react";
|
|
|
14
14
|
KUMO_INPUT_VARIANTS.size;
|
|
15
15
|
const KUMO_SELECT_DEFAULT_VARIANTS = { size: "base" };
|
|
16
16
|
function selectVariants({ size = KUMO_SELECT_DEFAULT_VARIANTS.size } = {}) {
|
|
17
|
-
return cn(buttonVariants({ size }), "justify-between font-normal", "focus:opacity-100 focus:ring-kumo-focus/50 focus-visible:ring-inset *:in-focus:opacity-100");
|
|
17
|
+
return cn(buttonVariants({ size }), "bg-kumo-control disabled:bg-kumo-control/50 data-[state=open]:bg-kumo-control", "justify-between font-normal", "focus:opacity-100 focus:ring-kumo-focus/50 focus-visible:ring-inset *:in-focus:opacity-100");
|
|
18
18
|
}
|
|
19
19
|
const triggerIconStyles = {
|
|
20
20
|
xs: {
|
|
@@ -87,7 +87,7 @@ function renderOptionsFromItems(items) {
|
|
|
87
87
|
* </Select>
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
function Select({ children, className, render, renderValue, label, hideLabel, placeholder, loading, size = KUMO_SELECT_DEFAULT_VARIANTS.size, labelTooltip, description, error, required, container: containerProp, ...props }) {
|
|
90
|
+
function Select({ children, className, render, renderValue, label, hideLabel, placeholder, loading, size = KUMO_SELECT_DEFAULT_VARIANTS.size, labelTooltip, description, error, required, container: containerProp, side = "bottom", sideOffset = 4, align = "start", alignOffset, alignItemWithTrigger = false, anchor, arrowPadding, positionMethod, collisionAvoidance, collisionBoundary, collisionPadding, sticky, disableAnchorTracking, ...props }) {
|
|
91
91
|
const labelId = useId();
|
|
92
92
|
const contextContainer = usePortalContainer();
|
|
93
93
|
const container = containerProp ?? contextContainer ?? void 0;
|
|
@@ -150,13 +150,28 @@ function Select({ children, className, render, renderValue, label, hideLabel, pl
|
|
|
150
150
|
selectTrigger,
|
|
151
151
|
/* @__PURE__ */ jsx(SelectPortal, {
|
|
152
152
|
container,
|
|
153
|
-
children: /* @__PURE__ */ jsx(SelectPositioner, {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
children: /* @__PURE__ */ jsx(SelectPositioner, {
|
|
154
|
+
side,
|
|
155
|
+
sideOffset,
|
|
156
|
+
align,
|
|
157
|
+
alignOffset,
|
|
158
|
+
alignItemWithTrigger,
|
|
159
|
+
anchor,
|
|
160
|
+
arrowPadding,
|
|
161
|
+
positionMethod,
|
|
162
|
+
collisionAvoidance,
|
|
163
|
+
collisionBoundary,
|
|
164
|
+
collisionPadding,
|
|
165
|
+
sticky,
|
|
166
|
+
disableAnchorTracking,
|
|
167
|
+
children: /* @__PURE__ */ jsx(SelectPopup, {
|
|
168
|
+
className: cn("flex flex-col", "max-h-[var(--available-height)] bg-kumo-base text-kumo-default", "rounded-lg shadow-lg ring ring-kumo-line", "max-w-(--available-width) min-w-(--anchor-width) py-1.5"),
|
|
169
|
+
children: /* @__PURE__ */ jsx(SelectList, {
|
|
170
|
+
className: cn("min-h-0 flex-1 scroll-pt-2 scroll-pb-2 overflow-y-auto overscroll-none"),
|
|
171
|
+
children: renderedChildren
|
|
172
|
+
})
|
|
158
173
|
})
|
|
159
|
-
})
|
|
174
|
+
})
|
|
160
175
|
})
|
|
161
176
|
]
|
|
162
177
|
});
|
package/dist/chunks/{sensitive-input-lba9qvv3ai4xwgux.js → sensitive-input-jtbp3mvdynz9wewu.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-da1xibnxfkjmtglr.js";
|
|
3
3
|
import { t as Input } from "./Input-ovqfhsmpfcrg5czm.js";
|
|
4
|
-
import { t as Field } from "./field-
|
|
5
|
-
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-
|
|
4
|
+
import { t as Field } from "./field-kgz7w7yixmtpg010.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-pehjmr1q131tz38w.js";
|
|
6
6
|
import { forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Eye, EyeSlash } from "@phosphor-icons/react";
|
|
@@ -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-jq15p5jzgfrhslpo.js";
|
|
5
|
+
import { t as Button } from "./button-h36q7tklakhd38nx.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";
|
|
@@ -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-kgz7w7yixmtpg010.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-jachq6akfh72x12r.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/table/table.tsx
|
|
@@ -19,7 +19,7 @@ const KUMO_TABLE_VARIANTS = {
|
|
|
19
19
|
},
|
|
20
20
|
variant: {
|
|
21
21
|
default: {
|
|
22
|
-
classes: "even:bg-kumo-
|
|
22
|
+
classes: "even:bg-kumo-elevated [--kumo-table-row-bg:var(--color-kumo-base)] even:[--kumo-table-row-bg:var(--color-kumo-elevated)]",
|
|
23
23
|
description: "Default row variant"
|
|
24
24
|
},
|
|
25
25
|
selected: {
|
|
@@ -53,19 +53,19 @@ const KUMO_TEXT_VARIANTS = {
|
|
|
53
53
|
},
|
|
54
54
|
size: {
|
|
55
55
|
xs: {
|
|
56
|
-
classes: "text-xs",
|
|
56
|
+
classes: "text-xs/[inherit]",
|
|
57
57
|
description: "Extra small text"
|
|
58
58
|
},
|
|
59
59
|
sm: {
|
|
60
|
-
classes: "text-sm",
|
|
60
|
+
classes: "text-sm/[inherit]",
|
|
61
61
|
description: "Small text"
|
|
62
62
|
},
|
|
63
63
|
base: {
|
|
64
|
-
classes: "text-base",
|
|
64
|
+
classes: "text-base/[inherit]",
|
|
65
65
|
description: "Default text size"
|
|
66
66
|
},
|
|
67
67
|
lg: {
|
|
68
|
-
classes: "text-lg",
|
|
68
|
+
classes: "text-lg/[inherit]",
|
|
69
69
|
description: "Large text"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -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-h36q7tklakhd38nx.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
6
|
-
import { n as
|
|
3
|
+
import { n as LinkButton, t as Button$1 } from "./button-h36q7tklakhd38nx.js";
|
|
4
|
+
import { t as Input$1 } from "./input-pehjmr1q131tz38w.js";
|
|
5
|
+
import { t as InputGroup } from "./input-group-kshukialqry0fmra.js";
|
|
6
|
+
import { i as ToolbarRoot, n as ToolbarLink, r as ToolbarButton, t as ToolbarInput } from "./ToolbarInput-er5t9irqvuwcjrir.js";
|
|
7
7
|
import React, { Children, cloneElement, createContext, isValidElement } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/toolbar/toolbar.tsx
|
|
@@ -75,6 +75,24 @@ const Button = React.forwardRef(({ children, className, disabled, loading, shape
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
Button.displayName = "Toolbar.Button";
|
|
78
|
+
const Link = React.forwardRef(({ children, className, shape, icon: IconComponent, ...props }, ref) => {
|
|
79
|
+
const toolbar = React.useContext(ToolbarSizeContext);
|
|
80
|
+
const resolvedShape = shape ?? (children == null && IconComponent ? "square" : "base");
|
|
81
|
+
return /* @__PURE__ */ jsx(ToolbarLink, {
|
|
82
|
+
ref,
|
|
83
|
+
"data-kumo-component": "Toolbar.Link",
|
|
84
|
+
className: cn(className, TOOLBAR_CONTROL_STYLES),
|
|
85
|
+
render: /* @__PURE__ */ jsx(LinkButton, {
|
|
86
|
+
icon: IconComponent,
|
|
87
|
+
shape: resolvedShape,
|
|
88
|
+
size: toolbar.size,
|
|
89
|
+
variant: "ghost"
|
|
90
|
+
}),
|
|
91
|
+
...props,
|
|
92
|
+
children
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
Link.displayName = "Toolbar.Link";
|
|
78
96
|
const Input = React.forwardRef(({ className, style, ...props }, ref) => {
|
|
79
97
|
const toolbar = React.useContext(ToolbarSizeContext);
|
|
80
98
|
return /* @__PURE__ */ jsx(ToolbarInput, {
|
|
@@ -113,6 +131,7 @@ const InputGroupRoot = React.forwardRef(({ children, className, ...props }, ref)
|
|
|
113
131
|
InputGroupRoot.displayName = "Toolbar.InputGroup";
|
|
114
132
|
const Toolbar = Object.assign(Root, {
|
|
115
133
|
Button,
|
|
134
|
+
Link,
|
|
116
135
|
Input,
|
|
117
136
|
InputGroup: InputGroupRoot
|
|
118
137
|
});
|
|
@@ -27,7 +27,7 @@ function Tooltip({ content, children, align, asChild, render, side, className, c
|
|
|
27
27
|
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
28
28
|
closeDelay,
|
|
29
29
|
delay,
|
|
30
|
-
className: cn(!shouldUseRender && "m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0
|
|
30
|
+
className: cn(!shouldUseRender && "m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0 shadow-none", "cursor-default", className),
|
|
31
31
|
render: resolvedRender,
|
|
32
32
|
children: asChild ? void 0 : children
|
|
33
33
|
}), /* @__PURE__ */ jsx(TooltipPortal, {
|
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-h36q7tklakhd38nx.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-dn6g4rc8bktdl4an.js";
|
|
3
3
|
export { Autocomplete, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, autocompleteVariants };
|