@cloudflare/kumo 2.11.0 → 2.13.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 +99 -0
- package/ai/component-registry.json +147 -278
- package/ai/component-registry.md +193 -111
- package/ai/schemas.ts +17 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +62 -0
- package/dist/ai/schemas.js +32 -0
- package/dist/chunks/{ToolbarInput-gxep3ixoe8r6v2to.js → ToolbarInput-er5t9irqvuwcjrir.js} +28 -1
- 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-fktl12ss7vfjryga.js} +3 -3
- package/dist/chunks/{dialog-nas75qs6d8gj5dxm.js → dialog-o0164pgcyc74lvp9.js} +1 -1
- 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/{index2.parts-epkfat8l4pvwpd1a.js → index2.parts-kiwz8e3k8utvm4zb.js} +1 -29
- package/dist/chunks/{input-group-guisk75j53d1uu5i.js → input-group-ijrmolg1svgq4ayn.js} +5 -5
- 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-crizrd9w23nyw7zq.js} +13 -9
- package/dist/chunks/{popover-paah5lvqh1juhfcd.js → popover-jal8z9sv176703lf.js} +3 -3
- package/dist/chunks/{select-ipshr3kdgcnjnmyj.js → select-k4olzuzdl8an5gez.js} +27 -12
- 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-hhq2akb92vd5e1x6.js} +2 -2
- package/dist/chunks/{text-g96suuboob3eum1a.js → text-jzp4mdlr222iuzxt.js} +33 -16
- package/dist/chunks/{toast-c068v3bvvpjn5s4d.js → toast-byzrdv104awqbkjh.js} +2 -2
- package/dist/chunks/{toolbar-c3pgxrsuq041bkgt.js → toolbar-jcocktiw68xtixzj.js} +24 -4
- 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/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.d.ts +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/popover.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.d.ts +2 -2
- 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-DCA5tjHa.d.ts → index-B7epkoHc.d.ts} +4 -0
- package/dist/{index-DTjmw8Vy2.d.ts → index-BXsHCLB82.d.ts} +4 -2
- package/dist/{index-DpzpArsi2.d.ts → index-CMiftS8L2.d.ts} +45 -3
- 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-Dh95FgdH2.d.ts +60 -0
- package/dist/{index-BkyMHk632.d.ts → index-Dzzi1o7w2.d.ts} +30 -16
- package/dist/{index-BHclAeEt2.d.ts → index-_Sl5wohy2.d.ts} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +28 -28
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives.js +1 -1
- 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
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(),
|
|
@@ -5395,6 +5426,7 @@ const TabsPropsSchema = object({
|
|
|
5395
5426
|
});
|
|
5396
5427
|
const TextPropsSchema = object({
|
|
5397
5428
|
variant: _enum([
|
|
5429
|
+
"heading",
|
|
5398
5430
|
"heading1",
|
|
5399
5431
|
"heading2",
|
|
5400
5432
|
"heading3",
|
|
@@ -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-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-jthoux2vfxltqtdh.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-iqaz1uluabeo18f0.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-iqaz1uluabeo18f0.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-k9f7io0k22k5jorq.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";
|
|
@@ -885,7 +885,7 @@ const TimeseriesChart = forwardRef(function TimeseriesChart({ echarts, type = "l
|
|
|
885
885
|
collisionPadding: 8,
|
|
886
886
|
children: /* @__PURE__ */ jsx(TooltipPopup, {
|
|
887
887
|
"data-mode": isDarkMode ? "dark" : "light",
|
|
888
|
-
className: "max-w-xs min-w-[150px] rounded-lg bg-kumo-base p-2 shadow-
|
|
888
|
+
className: "max-w-xs min-w-[150px] rounded-lg bg-kumo-base p-2 shadow-md outline-1 outline-kumo-line",
|
|
889
889
|
children: /* @__PURE__ */ jsx(TooltipContent, {
|
|
890
890
|
state: tooltipState,
|
|
891
891
|
formatValue: tooltipValueFormat ?? yAxisTickLabelFormat,
|
|
@@ -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-ow6ait7o31g1umgy.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-gidf1di12egsm2ik.js → clipboard-text-osbgah3jz16ma2vv.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-iqaz1uluabeo18f0.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-jthoux2vfxltqtdh.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";
|
|
@@ -53,7 +53,7 @@ function AnchoredToasts() {
|
|
|
53
53
|
className: "absolute",
|
|
54
54
|
children: /* @__PURE__ */ jsx(ToastRoot, {
|
|
55
55
|
toast,
|
|
56
|
-
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 font-sans text-xs text-kumo-default", "shadow-lg
|
|
56
|
+
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 font-sans text-xs text-kumo-default", "shadow-lg outline outline-kumo-line", updateKey > 0 && "animate-clipboard-toast-bump"),
|
|
57
57
|
children: /* @__PURE__ */ jsx(ToastDescription, {})
|
|
58
58
|
}, updateKey)
|
|
59
59
|
}, toast.id);
|
|
@@ -180,7 +180,7 @@ const ClipboardText = forwardRef(({ text, textToCopy, className, size = KUMO_CLI
|
|
|
180
180
|
side: tooltipSide,
|
|
181
181
|
sideOffset: 8,
|
|
182
182
|
children: /* @__PURE__ */ jsx(TooltipPopup, {
|
|
183
|
-
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 text-xs text-kumo-default", "shadow-
|
|
183
|
+
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 text-xs text-kumo-default", "shadow-md outline outline-kumo-line"),
|
|
184
184
|
children: tooltipText
|
|
185
185
|
})
|
|
186
186
|
}) })]
|
|
@@ -85,7 +85,7 @@ const CollapsibleDefaultTrigger = forwardRef(({ children, className }, ref) => {
|
|
|
85
85
|
ref,
|
|
86
86
|
"data-kumo-component": "Collapsible",
|
|
87
87
|
"data-kumo-part": "default-trigger",
|
|
88
|
-
className: cn("m-0 border-none bg-transparent p-0 shadow-none", "flex cursor-pointer items-center gap-1 text-base text-kumo-
|
|
88
|
+
className: cn("m-0 border-none bg-transparent p-0 shadow-none", "flex cursor-pointer items-center gap-1 text-base font-medium text-kumo-default select-none", className),
|
|
89
89
|
children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx("span", {
|
|
90
90
|
className: "inline-grid w-4 shrink-0 place-items-center",
|
|
91
91
|
children: /* @__PURE__ */ jsx(CaretDownIcon, {
|
|
@@ -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-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-jthoux2vfxltqtdh.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-iqaz1uluabeo18f0.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-ow6ait7o31g1umgy.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-k9f7io0k22k5jorq.js";
|
|
4
|
+
import { t as Button$1 } from "./button-iqaz1uluabeo18f0.js";
|
|
5
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
6
|
+
import { r as inputVariants, t as Input$1 } from "./input-jthoux2vfxltqtdh.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
|
|
@@ -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-i7lxgmtio7nutt7c.js";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/input/input.tsx
|
|
@@ -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-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { r as inputVariants } from "./input-jthoux2vfxltqtdh.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";
|
|
@@ -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-k9f7io0k22k5jorq.js";
|
|
4
|
+
import { t as Button } from "./button-iqaz1uluabeo18f0.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-k9f7io0k22k5jorq.js";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { IconContext } from "@phosphor-icons/react";
|
|
@@ -72,6 +72,8 @@ const MenuOption = ({ icon, id, isActive, onClick, tooltip }) => {
|
|
|
72
72
|
* Each option renders as a `<button>` with a Tooltip. The active option is
|
|
73
73
|
* visually highlighted with an elevated background.
|
|
74
74
|
*
|
|
75
|
+
* @deprecated Use `Tabs` with `variant="segmented"` instead. `MenuBar` will be removed in a future release.
|
|
76
|
+
*
|
|
75
77
|
* @example
|
|
76
78
|
* ```tsx
|
|
77
79
|
* <MenuBar
|
|
@@ -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-ijrmolg1svgq4ayn.js";
|
|
4
|
+
import { t as Select } from "./select-k4olzuzdl8an5gez.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]),
|
|
@@ -54,7 +54,7 @@ function PopoverContent({ children, side = KUMO_POPOVER_DEFAULT_VARIANTS.side, a
|
|
|
54
54
|
sideOffset,
|
|
55
55
|
positionMethod,
|
|
56
56
|
children: /* @__PURE__ */ jsxs(PopoverPopup, {
|
|
57
|
-
className: cn("flex origin-(--transform-origin) flex-col rounded-lg bg-kumo-base px-4 py-3 text-sm text-kumo-default", "shadow-
|
|
57
|
+
className: cn("flex origin-(--transform-origin) flex-col rounded-lg bg-kumo-base px-4 py-3 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-popover-popup", className),
|
|
58
58
|
children: [/* @__PURE__ */ jsx(PopoverArrow, {
|
|
59
59
|
className: cn("flex", "data-[side=bottom]:-top-2", "data-[side=left]:right-[-13px] data-[side=left]:rotate-90", "data-[side=right]:left-[-13px] data-[side=right]:-rotate-90", "data-[side=top]:-bottom-2 data-[side=top]:rotate-180"),
|
|
60
60
|
children: /* @__PURE__ */ jsx(ArrowSvg, {})
|
|
@@ -116,11 +116,11 @@ function ArrowSvg(props) {
|
|
|
116
116
|
}),
|
|
117
117
|
/* @__PURE__ */ jsx("path", {
|
|
118
118
|
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",
|
|
119
|
-
className: "fill-kumo-
|
|
119
|
+
className: "fill-kumo-arrow-edge"
|
|
120
120
|
}),
|
|
121
121
|
/* @__PURE__ */ jsx("path", {
|
|
122
122
|
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",
|
|
123
|
-
className: "fill-kumo-
|
|
123
|
+
className: "fill-kumo-arrow-stroke"
|
|
124
124
|
})
|
|
125
125
|
]
|
|
126
126
|
});
|
|
@@ -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-iqaz1uluabeo18f0.js";
|
|
5
|
+
import { r as Label } from "./label-ow6ait7o31g1umgy.js";
|
|
6
|
+
import { t as Field } from "./field-i7lxgmtio7nutt7c.js";
|
|
7
|
+
import { n as KUMO_INPUT_VARIANTS } from "./input-jthoux2vfxltqtdh.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-n12o9f5nq4hs9taw.js → sensitive-input-lba9qvv3ai4xwgux.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-i7lxgmtio7nutt7c.js";
|
|
5
|
+
import { n as KUMO_INPUT_VARIANTS, r as inputVariants } from "./input-jthoux2vfxltqtdh.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";
|