base-themes 0.1.2 → 0.1.3
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 +25 -0
- package/CODE_OF_CONDUCT.md +22 -0
- package/CONTRIBUTING.md +98 -0
- package/LICENSE +21 -0
- package/README.md +316 -3
- package/RELEASE.md +80 -0
- package/SECURITY.md +49 -0
- package/bin/base-themes.mjs +143 -0
- package/dist/base-themes.css +1 -1
- package/dist/base-themes.js +857 -302
- package/dist/llms-full.txt +288 -0
- package/dist/llms.txt +79 -0
- package/dist/types/blocks/AuthCard.d.ts +2 -0
- package/dist/types/blocks/CommandPaletteBlock.d.ts +2 -0
- package/dist/types/blocks/DashboardShell.d.ts +2 -0
- package/dist/types/blocks/DataTableBlock.d.ts +2 -0
- package/dist/types/blocks/PricingPanel.d.ts +2 -0
- package/dist/types/blocks/SettingsForm.d.ts +2 -0
- package/dist/types/blocks/TeamActivityFeed.d.ts +2 -0
- package/dist/types/blocks/ThemeShowcaseCard.d.ts +2 -0
- package/dist/types/blocks/index.d.ts +8 -0
- package/dist/types/components/ui/Input.d.ts +3 -0
- package/dist/types/components/ui/index.d.ts +1 -1
- package/dist/types/lib.d.ts +1 -0
- package/docs/adoption-dashboard.md +149 -0
- package/docs/analytics-setup.md +145 -0
- package/docs/community-gallery-proposal.md +64 -0
- package/docs/community-proof-telemetry.md +47 -0
- package/docs/contributor-issue-seeds.md +240 -0
- package/docs/registry-access-telemetry.md +87 -0
- package/docs/release-announcement-kit.md +229 -0
- package/docs/search-console-setup.md +111 -0
- package/docs/theme-token-contract.md +113 -0
- package/examples/dashboard/README.md +24 -0
- package/examples/dashboard/index.html +12 -0
- package/examples/dashboard/package-lock.json +1212 -0
- package/examples/dashboard/package.json +24 -0
- package/examples/dashboard/src/App.tsx +115 -0
- package/examples/dashboard/src/main.tsx +11 -0
- package/examples/dashboard/src/styles.css +129 -0
- package/examples/dashboard/src/vite-env.d.ts +4 -0
- package/examples/dashboard/tsconfig.app.json +23 -0
- package/examples/dashboard/tsconfig.json +7 -0
- package/examples/dashboard/tsconfig.node.json +15 -0
- package/examples/dashboard/vite.config.ts +6 -0
- package/examples/next/README.md +29 -0
- package/examples/next/app/base-themes-demo.tsx +70 -0
- package/examples/next/app/layout.tsx +16 -0
- package/examples/next/app/page.tsx +9 -0
- package/examples/next/app/styles.css +106 -0
- package/examples/next/next-env.d.ts +6 -0
- package/examples/next/next.config.ts +5 -0
- package/examples/next/package-lock.json +1199 -0
- package/examples/next/package.json +27 -0
- package/examples/next/tsconfig.json +36 -0
- package/examples/registry-copy/README.md +73 -0
- package/examples/registry-copy/plan-copy.mjs +130 -0
- package/examples/theme-customization/README.md +26 -0
- package/examples/theme-customization/index.html +12 -0
- package/examples/theme-customization/package-lock.json +1212 -0
- package/examples/theme-customization/package.json +24 -0
- package/examples/theme-customization/src/App.tsx +138 -0
- package/examples/theme-customization/src/main.tsx +11 -0
- package/examples/theme-customization/src/styles.css +138 -0
- package/examples/theme-customization/src/vite-env.d.ts +4 -0
- package/examples/theme-customization/tsconfig.app.json +23 -0
- package/examples/theme-customization/tsconfig.json +7 -0
- package/examples/theme-customization/tsconfig.node.json +15 -0
- package/examples/theme-customization/vite.config.ts +6 -0
- package/examples/vite/README.md +32 -0
- package/examples/vite/index.html +12 -0
- package/examples/vite/package-lock.json +1200 -0
- package/examples/vite/package.json +24 -0
- package/examples/vite/src/App.tsx +101 -0
- package/examples/vite/src/main.tsx +11 -0
- package/examples/vite/src/styles.css +125 -0
- package/examples/vite/src/vite-env.d.ts +4 -0
- package/examples/vite/tsconfig.app.json +23 -0
- package/examples/vite/tsconfig.json +7 -0
- package/examples/vite/tsconfig.node.json +15 -0
- package/examples/vite/vite.config.ts +6 -0
- package/llms-full.txt +288 -0
- package/llms.txt +79 -0
- package/package.json +157 -14
- package/registry/items/accordion.json +101 -0
- package/registry/items/alert-dialog.json +107 -0
- package/registry/items/autocomplete.json +106 -0
- package/registry/items/avatar.json +101 -0
- package/registry/items/block-auth-card.json +105 -0
- package/registry/items/block-command-palette.json +99 -0
- package/registry/items/block-dashboard-shell.json +101 -0
- package/registry/items/block-data-table.json +99 -0
- package/registry/items/block-pricing-panel.json +99 -0
- package/registry/items/block-settings-form.json +107 -0
- package/registry/items/block-team-activity-feed.json +99 -0
- package/registry/items/block-theme-showcase-card.json +99 -0
- package/registry/items/button.json +102 -0
- package/registry/items/checkbox-group.json +106 -0
- package/registry/items/checkbox.json +102 -0
- package/registry/items/collapsible.json +101 -0
- package/registry/items/combobox.json +101 -0
- package/registry/items/context-menu.json +106 -0
- package/registry/items/csp-provider.json +96 -0
- package/registry/items/dialog.json +102 -0
- package/registry/items/direction-provider.json +101 -0
- package/registry/items/drawer.json +101 -0
- package/registry/items/field.json +101 -0
- package/registry/items/fieldset.json +101 -0
- package/registry/items/form.json +101 -0
- package/registry/items/input.json +102 -0
- package/registry/items/menu.json +101 -0
- package/registry/items/menubar.json +106 -0
- package/registry/items/meter.json +101 -0
- package/registry/items/navigation-menu.json +101 -0
- package/registry/items/number-field.json +101 -0
- package/registry/items/otp-field.json +101 -0
- package/registry/items/popover.json +102 -0
- package/registry/items/preview-card.json +101 -0
- package/registry/items/progress.json +101 -0
- package/registry/items/radio-group.json +102 -0
- package/registry/items/radio.json +101 -0
- package/registry/items/scroll-area.json +101 -0
- package/registry/items/select.json +102 -0
- package/registry/items/separator.json +101 -0
- package/registry/items/slider.json +102 -0
- package/registry/items/switch.json +102 -0
- package/registry/items/tabs.json +101 -0
- package/registry/items/theme-bauhaus.json +107 -0
- package/registry/items/theme-bento.json +107 -0
- package/registry/items/theme-calm.json +107 -0
- package/registry/items/theme-cyberpunk.json +108 -0
- package/registry/items/theme-data-dense.json +107 -0
- package/registry/items/theme-editorial.json +107 -0
- package/registry/items/theme-enterprise.json +108 -0
- package/registry/items/theme-fluent.json +107 -0
- package/registry/items/theme-glass.json +107 -0
- package/registry/items/theme-linear.json +107 -0
- package/registry/items/theme-luxury.json +107 -0
- package/registry/items/theme-material.json +107 -0
- package/registry/items/theme-minimal.json +107 -0
- package/registry/items/theme-mono.json +107 -0
- package/registry/items/theme-neo-brutalism.json +107 -0
- package/registry/items/theme-playful.json +107 -0
- package/registry/items/theme-retro.json +107 -0
- package/registry/items/theme-shadcn.json +107 -0
- package/registry/items/theme-soft-ui.json +107 -0
- package/registry/items/theme-terminal.json +107 -0
- package/registry/items/toast.json +106 -0
- package/registry/items/toggle-group.json +101 -0
- package/registry/items/toggle.json +101 -0
- package/registry/items/toolbar.json +101 -0
- package/registry/items/tooltip.json +102 -0
- package/registry/registry.json +564 -49
- package/registry/shadcn-registry.json +415 -0
- package/research/telemetry-fixtures/analytics-events.jsonl +9 -0
- package/research/telemetry-fixtures/bundle-report.json +44 -0
- package/research/telemetry-fixtures/community-proof.csv +5 -0
- package/research/telemetry-fixtures/registry-access.jsonl +10 -0
- package/research/telemetry-fixtures/search-console-export.csv +4 -0
- package/scripts/registry-plan.mjs +434 -0
- package/scripts/render-launch-actions.mjs +405 -0
- package/scripts/render-launch-status.mjs +373 -0
- package/scripts/render-release-announcement.mjs +329 -0
- package/scripts/verify-launch-readiness.mjs +415 -0
- package/scripts/verify-telemetry-fixtures.mjs +85 -0
- package/scripts/verify-telemetry-report.mjs +89 -0
- package/skills/base-themes/SKILL.md +151 -47
- package/src/blocks/AuthCard.tsx +29 -0
- package/src/blocks/Blocks.css +182 -0
- package/src/blocks/CommandPaletteBlock.tsx +32 -0
- package/src/blocks/DashboardShell.tsx +36 -0
- package/src/blocks/DataTableBlock.tsx +44 -0
- package/src/blocks/PricingPanel.tsx +28 -0
- package/src/blocks/SettingsForm.tsx +37 -0
- package/src/blocks/TeamActivityFeed.tsx +38 -0
- package/src/blocks/ThemeShowcaseCard.tsx +32 -0
- package/src/blocks/index.ts +8 -0
- package/src/components/ui/Accordion.css +42 -0
- package/src/components/ui/Accordion.tsx +41 -0
- package/src/components/ui/AlertDialog.css +40 -0
- package/src/components/ui/AlertDialog.tsx +52 -0
- package/src/components/ui/Autocomplete.css +3 -0
- package/src/components/ui/Autocomplete.tsx +50 -0
- package/src/components/ui/Avatar.css +45 -0
- package/src/components/ui/Avatar.tsx +36 -0
- package/src/components/ui/Button.css +79 -0
- package/src/components/ui/Button.tsx +20 -0
- package/src/components/ui/Checkbox.css +37 -0
- package/src/components/ui/Checkbox.tsx +32 -0
- package/src/components/ui/CheckboxGroup.tsx +21 -0
- package/src/components/ui/Collapsible.css +34 -0
- package/src/components/ui/Collapsible.tsx +29 -0
- package/src/components/ui/Combobox.css +75 -0
- package/src/components/ui/Combobox.tsx +53 -0
- package/src/components/ui/ContextMenu.css +9 -0
- package/src/components/ui/ContextMenu.tsx +47 -0
- package/src/components/ui/CspProvider.tsx +10 -0
- package/src/components/ui/Dialog.css +41 -0
- package/src/components/ui/Dialog.tsx +45 -0
- package/src/components/ui/DirectionProvider.tsx +17 -0
- package/src/components/ui/Drawer.css +77 -0
- package/src/components/ui/Drawer.tsx +56 -0
- package/src/components/ui/Field.css +19 -0
- package/src/components/ui/Field.tsx +24 -0
- package/src/components/ui/Fieldset.css +16 -0
- package/src/components/ui/Fieldset.tsx +19 -0
- package/src/components/ui/Form.css +5 -0
- package/src/components/ui/Form.tsx +12 -0
- package/src/components/ui/Input.css +50 -0
- package/src/components/ui/Input.tsx +62 -0
- package/src/components/ui/Menu.css +59 -0
- package/src/components/ui/Menu.tsx +50 -0
- package/src/components/ui/Menubar.css +26 -0
- package/src/components/ui/Menubar.tsx +42 -0
- package/src/components/ui/Meter.css +45 -0
- package/src/components/ui/Meter.tsx +37 -0
- package/src/components/ui/NavigationMenu.css +103 -0
- package/src/components/ui/NavigationMenu.tsx +64 -0
- package/src/components/ui/NumberField.css +38 -0
- package/src/components/ui/NumberField.tsx +28 -0
- package/src/components/ui/OtpField.css +28 -0
- package/src/components/ui/OtpField.tsx +24 -0
- package/src/components/ui/Popover.css +25 -0
- package/src/components/ui/Popover.tsx +37 -0
- package/src/components/ui/PreviewCard.css +33 -0
- package/src/components/ui/PreviewCard.tsx +43 -0
- package/src/components/ui/Progress.css +33 -0
- package/src/components/ui/Progress.tsx +28 -0
- package/src/components/ui/Radio.tsx +22 -0
- package/src/components/ui/RadioGroup.css +42 -0
- package/src/components/ui/RadioGroup.tsx +29 -0
- package/src/components/ui/ScrollArea.css +42 -0
- package/src/components/ui/ScrollArea.tsx +22 -0
- package/src/components/ui/Select.css +86 -0
- package/src/components/ui/Select.tsx +39 -0
- package/src/components/ui/Separator.css +14 -0
- package/src/components/ui/Separator.tsx +12 -0
- package/src/components/ui/Slider.css +39 -0
- package/src/components/ui/Slider.tsx +21 -0
- package/src/components/ui/Switch.css +45 -0
- package/src/components/ui/Switch.tsx +29 -0
- package/src/components/ui/Tabs.css +72 -0
- package/src/components/ui/Tabs.tsx +44 -0
- package/src/components/ui/Toast.css +75 -0
- package/src/components/ui/Toast.tsx +48 -0
- package/src/components/ui/Toggle.tsx +12 -0
- package/src/components/ui/ToggleGroup.css +35 -0
- package/src/components/ui/ToggleGroup.tsx +30 -0
- package/src/components/ui/Toolbar.css +60 -0
- package/src/components/ui/Toolbar.tsx +36 -0
- package/src/components/ui/Tooltip.css +14 -0
- package/src/components/ui/Tooltip.tsx +31 -0
- package/src/components/ui/index.ts +83 -0
- package/src/components/ui/useDirection.ts +1 -0
- package/src/components/ui/useToastManager.ts +11 -0
- package/src/docs/blockMeta.json +66 -0
- package/src/docs/componentMeta.json +322 -0
- package/src/docs/staticPageMeta.json +143 -0
- package/src/docs/themeMeta.json +22 -0
- package/src/styles/tokenContract.json +61 -0
- package/workers/analytics-receiver.mjs +170 -0
- package/wrangler.analytics.jsonc +12 -0
package/dist/base-themes.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { Accordion as e } from "@base-ui/react/accordion";
|
|
2
2
|
import { forwardRef as t, useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
3
3
|
import o from "clsx";
|
|
4
|
-
import { Bold as s, Check as c, ChevronDown as l, Italic as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { AlertDialog as
|
|
7
|
-
import { Autocomplete as
|
|
8
|
-
import { Avatar as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { CheckboxGroup as
|
|
12
|
-
import { Collapsible as
|
|
13
|
-
import { Combobox as
|
|
14
|
-
import { ContextMenu as
|
|
15
|
-
import { CSPProvider as
|
|
16
|
-
import { Dialog as
|
|
17
|
-
import { DirectionProvider as
|
|
18
|
-
import { Drawer as
|
|
19
|
-
import { Field as
|
|
20
|
-
import { Fieldset as
|
|
21
|
-
import { Form as
|
|
22
|
-
import { Input as
|
|
23
|
-
import { Menu as
|
|
24
|
-
import { Menubar as
|
|
25
|
-
import { Meter as
|
|
26
|
-
import { NavigationMenu as
|
|
27
|
-
import { NumberField as
|
|
28
|
-
import { OTPFieldPreview as
|
|
29
|
-
import { Popover as
|
|
30
|
-
import { PreviewCard as
|
|
31
|
-
import { Progress as
|
|
32
|
-
import { Radio as
|
|
33
|
-
import { RadioGroup as
|
|
34
|
-
import { ScrollArea as
|
|
35
|
-
import { Select as
|
|
36
|
-
import { Separator as
|
|
37
|
-
import { Slider as
|
|
38
|
-
import { Switch as
|
|
39
|
-
import { Tabs as
|
|
40
|
-
import { Toggle as
|
|
41
|
-
import { Toast as
|
|
42
|
-
import { ToggleGroup as
|
|
43
|
-
import { Toolbar as
|
|
44
|
-
import { Tooltip as
|
|
4
|
+
import { Bold as s, Check as c, ChevronDown as l, Italic as ee, Link as te, Minus as ne, Plus as re, Search as ie, X as u } from "lucide-react";
|
|
5
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
import { AlertDialog as p } from "@base-ui/react/alert-dialog";
|
|
7
|
+
import { Autocomplete as m } from "@base-ui/react/autocomplete";
|
|
8
|
+
import { Avatar as h } from "@base-ui/react/avatar";
|
|
9
|
+
import { Button as ae } from "@base-ui/react/button";
|
|
10
|
+
import { Checkbox as g } from "@base-ui/react/checkbox";
|
|
11
|
+
import { CheckboxGroup as oe } from "@base-ui/react/checkbox-group";
|
|
12
|
+
import { Collapsible as _ } from "@base-ui/react/collapsible";
|
|
13
|
+
import { Combobox as v } from "@base-ui/react/combobox";
|
|
14
|
+
import { ContextMenu as y } from "@base-ui/react/context-menu";
|
|
15
|
+
import { CSPProvider as se } from "@base-ui/react/csp-provider";
|
|
16
|
+
import { Dialog as b } from "@base-ui/react/dialog";
|
|
17
|
+
import { DirectionProvider as ce, useDirection as le } from "@base-ui/react/direction-provider";
|
|
18
|
+
import { Drawer as x } from "@base-ui/react/drawer";
|
|
19
|
+
import { Field as S } from "@base-ui/react/field";
|
|
20
|
+
import { Fieldset as ue } from "@base-ui/react/fieldset";
|
|
21
|
+
import { Form as de } from "@base-ui/react/form";
|
|
22
|
+
import { Input as fe } from "@base-ui/react/input";
|
|
23
|
+
import { Menu as C, Menu as w } from "@base-ui/react/menu";
|
|
24
|
+
import { Menubar as pe } from "@base-ui/react/menubar";
|
|
25
|
+
import { Meter as T } from "@base-ui/react/meter";
|
|
26
|
+
import { NavigationMenu as E } from "@base-ui/react/navigation-menu";
|
|
27
|
+
import { NumberField as D } from "@base-ui/react/number-field";
|
|
28
|
+
import { OTPFieldPreview as me } from "@base-ui/react/otp-field";
|
|
29
|
+
import { Popover as O } from "@base-ui/react/popover";
|
|
30
|
+
import { PreviewCard as k } from "@base-ui/react/preview-card";
|
|
31
|
+
import { Progress as A } from "@base-ui/react/progress";
|
|
32
|
+
import { Radio as he, Radio as ge } from "@base-ui/react/radio";
|
|
33
|
+
import { RadioGroup as _e } from "@base-ui/react/radio-group";
|
|
34
|
+
import { ScrollArea as j } from "@base-ui/react/scroll-area";
|
|
35
|
+
import { Select as M } from "@base-ui/react/select";
|
|
36
|
+
import { Separator as ve } from "@base-ui/react/separator";
|
|
37
|
+
import { Slider as N } from "@base-ui/react/slider";
|
|
38
|
+
import { Switch as ye } from "@base-ui/react/switch";
|
|
39
|
+
import { Tabs as P } from "@base-ui/react/tabs";
|
|
40
|
+
import { Toggle as be } from "@base-ui/react/toggle";
|
|
41
|
+
import { Toast as F } from "@base-ui/react/toast";
|
|
42
|
+
import { ToggleGroup as xe } from "@base-ui/react/toggle-group";
|
|
43
|
+
import { Toolbar as I } from "@base-ui/react/toolbar";
|
|
44
|
+
import { Tooltip as L } from "@base-ui/react/tooltip";
|
|
45
45
|
//#region src/components/ui/Accordion.tsx
|
|
46
|
-
function
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
function Se({ items: t, defaultValue: n, className: r, ...i }) {
|
|
47
|
+
return /* @__PURE__ */ d(e.Root, {
|
|
48
48
|
defaultValue: n ?? t.slice(0, 1).map((e) => e.value),
|
|
49
49
|
className: o("bento-accordion", r),
|
|
50
50
|
...i,
|
|
51
|
-
children: t.map((t) => /* @__PURE__ */
|
|
51
|
+
children: t.map((t) => /* @__PURE__ */ f(e.Item, {
|
|
52
52
|
className: "bento-accordion-item",
|
|
53
53
|
value: t.value,
|
|
54
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ d(e.Header, {
|
|
55
55
|
className: "bento-accordion-header",
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ f(e.Trigger, {
|
|
57
57
|
className: "bento-accordion-trigger",
|
|
58
|
-
children: [t.label, /* @__PURE__ */
|
|
58
|
+
children: [t.label, /* @__PURE__ */ d(l, { size: 15 })]
|
|
59
59
|
})
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ d(e.Panel, {
|
|
61
61
|
className: "bento-accordion-panel",
|
|
62
62
|
children: t.content
|
|
63
63
|
})]
|
|
@@ -66,24 +66,24 @@ function me({ items: t, defaultValue: n, className: r, ...i }) {
|
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/ui/AlertDialog.tsx
|
|
69
|
-
function
|
|
70
|
-
return /* @__PURE__ */
|
|
69
|
+
function Ce({ trigger: e, title: t, description: n, confirmLabel: r = "Confirm", cancelLabel: i = "Cancel", onConfirm: a, className: s }) {
|
|
70
|
+
return /* @__PURE__ */ f(p.Root, { children: [/* @__PURE__ */ d(p.Trigger, { render: e }), /* @__PURE__ */ f(p.Portal, { children: [/* @__PURE__ */ d(p.Backdrop, { className: "bento-alert-backdrop" }), /* @__PURE__ */ f(p.Popup, {
|
|
71
71
|
className: o("bento-alert-popup", s),
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */ p
|
|
73
|
+
/* @__PURE__ */ d(p.Title, {
|
|
74
74
|
className: "bento-alert-title",
|
|
75
75
|
children: t
|
|
76
76
|
}),
|
|
77
|
-
/* @__PURE__ */ p
|
|
77
|
+
/* @__PURE__ */ d(p.Description, {
|
|
78
78
|
className: "bento-alert-description",
|
|
79
79
|
children: n
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ f("div", {
|
|
82
82
|
className: "bento-alert-actions",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ f(p.Close, {
|
|
84
84
|
className: "bento-button outline",
|
|
85
85
|
children: [" ", i]
|
|
86
|
-
}), /* @__PURE__ */ p
|
|
86
|
+
}), /* @__PURE__ */ d(p.Close, {
|
|
87
87
|
className: "bento-button accent",
|
|
88
88
|
onClick: a,
|
|
89
89
|
children: r
|
|
@@ -94,36 +94,36 @@ function he({ trigger: e, title: t, description: n, confirmLabel: r = "Confirm",
|
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/components/ui/Autocomplete.tsx
|
|
97
|
-
function
|
|
98
|
-
return /* @__PURE__ */
|
|
97
|
+
function we({ options: e, label: t, placeholder: n = "Search...", className: r, ...i }) {
|
|
98
|
+
return /* @__PURE__ */ d("div", {
|
|
99
99
|
className: o("bento-combobox bento-autocomplete", r),
|
|
100
|
-
children: /* @__PURE__ */ m
|
|
100
|
+
children: /* @__PURE__ */ f(m.Root, {
|
|
101
101
|
items: e,
|
|
102
102
|
...i,
|
|
103
103
|
children: [
|
|
104
|
-
t && /* @__PURE__ */
|
|
104
|
+
t && /* @__PURE__ */ d("label", {
|
|
105
105
|
className: "field-label",
|
|
106
106
|
children: t
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */ m
|
|
108
|
+
/* @__PURE__ */ f(m.InputGroup, {
|
|
109
109
|
className: "bento-combobox-input-wrap",
|
|
110
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ d(ie, { size: 15 }), /* @__PURE__ */ d(m.Input, {
|
|
111
111
|
className: "bento-combobox-input",
|
|
112
112
|
placeholder: n
|
|
113
113
|
})]
|
|
114
114
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ d(m.Portal, { children: /* @__PURE__ */ d(m.Positioner, {
|
|
116
116
|
className: "bento-combobox-positioner",
|
|
117
117
|
sideOffset: 8,
|
|
118
|
-
children: /* @__PURE__ */ m
|
|
118
|
+
children: /* @__PURE__ */ f(m.Popup, {
|
|
119
119
|
className: "bento-combobox-popup",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ d(m.Empty, {
|
|
121
121
|
className: "bento-combobox-empty",
|
|
122
122
|
children: "No results"
|
|
123
|
-
}), /* @__PURE__ */
|
|
123
|
+
}), /* @__PURE__ */ d(m.List, { children: (e) => /* @__PURE__ */ f(m.Item, {
|
|
124
124
|
className: "bento-combobox-item",
|
|
125
125
|
value: e.value,
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ d(m.Value, { children: e.label }), /* @__PURE__ */ d(c, { size: 14 })]
|
|
127
127
|
}, e.value) })]
|
|
128
128
|
})
|
|
129
129
|
}) })
|
|
@@ -133,55 +133,55 @@ function ge({ options: e, label: t, placeholder: n = "Search...", className: r,
|
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/components/ui/Avatar.tsx
|
|
136
|
-
var
|
|
136
|
+
var R = t(({ src: e, alt: t, fallback: n, size: r, className: i, ...a }, s) => /* @__PURE__ */ f(h.Root, {
|
|
137
137
|
ref: s,
|
|
138
138
|
className: o("bento-avatar", r && r !== "md" && r, i),
|
|
139
139
|
...a,
|
|
140
|
-
children: [e && /* @__PURE__ */
|
|
140
|
+
children: [e && /* @__PURE__ */ d(h.Image, {
|
|
141
141
|
src: e,
|
|
142
142
|
alt: t
|
|
143
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ d(h.Fallback, { children: n })]
|
|
144
144
|
}));
|
|
145
|
-
|
|
146
|
-
var
|
|
145
|
+
R.displayName = "Avatar";
|
|
146
|
+
var z = t(({ className: e, ...t }, n) => /* @__PURE__ */ d("div", {
|
|
147
147
|
ref: n,
|
|
148
148
|
className: o("bento-avatar-group", e),
|
|
149
149
|
...t
|
|
150
150
|
}));
|
|
151
|
-
|
|
151
|
+
z.displayName = "AvatarGroup";
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/components/ui/Button.tsx
|
|
154
|
-
var
|
|
154
|
+
var B = t(({ variant: e = "primary", className: t, ...n }, r) => /* @__PURE__ */ d(ae, {
|
|
155
155
|
ref: r,
|
|
156
156
|
className: o("bento-button", e !== "primary" && e, t),
|
|
157
157
|
...n
|
|
158
158
|
}));
|
|
159
|
-
|
|
159
|
+
B.displayName = "Button";
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/components/ui/Checkbox.tsx
|
|
162
|
-
var
|
|
163
|
-
let a = /* @__PURE__ */
|
|
162
|
+
var V = t(({ label: e, className: t, id: n, ...r }, i) => {
|
|
163
|
+
let a = /* @__PURE__ */ d(g.Root, {
|
|
164
164
|
ref: i,
|
|
165
165
|
id: n,
|
|
166
166
|
className: o("bento-checkbox", t),
|
|
167
167
|
...r,
|
|
168
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ d(g.Indicator, { children: /* @__PURE__ */ d(c, { size: 14 }) })
|
|
169
169
|
});
|
|
170
|
-
return e ? /* @__PURE__ */
|
|
170
|
+
return e ? /* @__PURE__ */ f("label", {
|
|
171
171
|
className: "bento-checkbox-label",
|
|
172
172
|
htmlFor: n,
|
|
173
173
|
children: [a, e]
|
|
174
174
|
}) : a;
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
V.displayName = "Checkbox";
|
|
177
177
|
//#endregion
|
|
178
178
|
//#region src/components/ui/CheckboxGroup.tsx
|
|
179
|
-
function
|
|
180
|
-
return /* @__PURE__ */
|
|
179
|
+
function Te({ options: e, className: t, defaultValue: n, ...r }) {
|
|
180
|
+
return /* @__PURE__ */ d(oe, {
|
|
181
181
|
className: o("bento-checkbox-group", t),
|
|
182
182
|
defaultValue: n,
|
|
183
183
|
...r,
|
|
184
|
-
children: e.map((e) => /* @__PURE__ */
|
|
184
|
+
children: e.map((e) => /* @__PURE__ */ d(V, {
|
|
185
185
|
name: e.value,
|
|
186
186
|
value: e.value,
|
|
187
187
|
label: e.label
|
|
@@ -190,14 +190,14 @@ function _e({ options: e, className: t, defaultValue: n, ...r }) {
|
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region src/components/ui/Collapsible.tsx
|
|
193
|
-
function
|
|
194
|
-
return /* @__PURE__ */
|
|
193
|
+
function Ee({ label: e, children: t, defaultOpen: n, className: r }) {
|
|
194
|
+
return /* @__PURE__ */ f(_.Root, {
|
|
195
195
|
defaultOpen: n,
|
|
196
196
|
className: o("bento-collapsible", r),
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ f(_.Trigger, {
|
|
198
198
|
className: "bento-collapsible-trigger",
|
|
199
|
-
children: [e, /* @__PURE__ */
|
|
200
|
-
}), /* @__PURE__ */
|
|
199
|
+
children: [e, /* @__PURE__ */ d(l, { size: 15 })]
|
|
200
|
+
}), /* @__PURE__ */ d(_.Panel, {
|
|
201
201
|
className: "bento-collapsible-panel",
|
|
202
202
|
children: t
|
|
203
203
|
})]
|
|
@@ -205,27 +205,27 @@ function ve({ label: e, children: t, defaultOpen: n, className: r }) {
|
|
|
205
205
|
}
|
|
206
206
|
//#endregion
|
|
207
207
|
//#region src/components/ui/Combobox.tsx
|
|
208
|
-
function
|
|
208
|
+
function H({ options: e, placeholder: t = "Search...", label: n, className: r }) {
|
|
209
209
|
let [i, s] = a(""), c = e.filter((e) => e.label.toLowerCase().includes(i.toLowerCase()));
|
|
210
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ f("div", {
|
|
211
211
|
className: o("bento-combobox", r),
|
|
212
|
-
children: [n && /* @__PURE__ */
|
|
212
|
+
children: [n && /* @__PURE__ */ d("label", {
|
|
213
213
|
className: "field-label",
|
|
214
214
|
children: n
|
|
215
|
-
}), /* @__PURE__ */
|
|
215
|
+
}), /* @__PURE__ */ f(v.Root, {
|
|
216
216
|
inputValue: i,
|
|
217
217
|
onInputValueChange: s,
|
|
218
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ d(v.Input, {
|
|
219
219
|
className: "bento-combobox-input",
|
|
220
220
|
placeholder: t
|
|
221
|
-
}), /* @__PURE__ */
|
|
221
|
+
}), /* @__PURE__ */ d(v.Portal, { children: /* @__PURE__ */ d(v.Positioner, {
|
|
222
222
|
sideOffset: 8,
|
|
223
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ d(v.Popup, {
|
|
224
224
|
className: "bento-combobox-popup",
|
|
225
|
-
children: c.length === 0 ? /* @__PURE__ */
|
|
225
|
+
children: c.length === 0 ? /* @__PURE__ */ d("div", {
|
|
226
226
|
className: "bento-combobox-no-results",
|
|
227
227
|
children: "No results"
|
|
228
|
-
}) : c.map((e) => /* @__PURE__ */
|
|
228
|
+
}) : c.map((e) => /* @__PURE__ */ d(v.Item, {
|
|
229
229
|
className: "bento-combobox-item",
|
|
230
230
|
value: e.value,
|
|
231
231
|
children: e.label
|
|
@@ -237,16 +237,16 @@ function ye({ options: e, placeholder: t = "Search...", label: n, className: r }
|
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region src/components/ui/ContextMenu.tsx
|
|
240
|
-
function
|
|
241
|
-
return /* @__PURE__ */
|
|
240
|
+
function De({ children: e, items: t, className: n }) {
|
|
241
|
+
return /* @__PURE__ */ f(y.Root, { children: [/* @__PURE__ */ d(y.Trigger, {
|
|
242
242
|
className: "bento-context-menu-trigger",
|
|
243
243
|
children: e
|
|
244
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ d(y.Portal, { children: /* @__PURE__ */ d(y.Positioner, {
|
|
245
245
|
className: "bento-menu-positioner",
|
|
246
246
|
sideOffset: 8,
|
|
247
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ d(y.Popup, {
|
|
248
248
|
className: o("bento-menu-popup", n),
|
|
249
|
-
children: t.map((e, t) => e === "separator" ? /* @__PURE__ */
|
|
249
|
+
children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ d(y.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ f(y.Item, {
|
|
250
250
|
className: "bento-menu-item",
|
|
251
251
|
disabled: e.disabled,
|
|
252
252
|
onClick: e.onClick,
|
|
@@ -257,28 +257,28 @@ function be({ children: e, items: t, className: n }) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/ui/CspProvider.tsx
|
|
260
|
-
function
|
|
261
|
-
return /* @__PURE__ */
|
|
260
|
+
function Oe(e) {
|
|
261
|
+
return /* @__PURE__ */ d(se, { ...e });
|
|
262
262
|
}
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/components/ui/Dialog.tsx
|
|
265
|
-
function
|
|
266
|
-
return /* @__PURE__ */
|
|
265
|
+
function ke({ trigger: e, title: t, description: n, children: r, className: i }) {
|
|
266
|
+
return /* @__PURE__ */ f(b.Root, { children: [/* @__PURE__ */ d(b.Trigger, { render: e }), /* @__PURE__ */ f(b.Portal, { children: [/* @__PURE__ */ d(b.Backdrop, { className: "bento-dialog-backdrop" }), /* @__PURE__ */ f(b.Popup, {
|
|
267
267
|
className: o("bento-dialog-popup", i),
|
|
268
268
|
children: [
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ f("div", {
|
|
270
270
|
className: "bento-dialog-topline",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ d(b.Title, {
|
|
272
272
|
className: "bento-dialog-title",
|
|
273
273
|
children: t
|
|
274
|
-
}), /* @__PURE__ */
|
|
274
|
+
}), /* @__PURE__ */ d(b.Close, {
|
|
275
275
|
className: "bento-button icon",
|
|
276
276
|
"aria-label": "Close dialog",
|
|
277
|
-
render: /* @__PURE__ */
|
|
278
|
-
children: /* @__PURE__ */
|
|
277
|
+
render: /* @__PURE__ */ d("button", { type: "button" }),
|
|
278
|
+
children: /* @__PURE__ */ d(u, { size: 18 })
|
|
279
279
|
})]
|
|
280
280
|
}),
|
|
281
|
-
n && /* @__PURE__ */
|
|
281
|
+
n && /* @__PURE__ */ d(b.Description, {
|
|
282
282
|
className: "bento-dialog-description",
|
|
283
283
|
children: n
|
|
284
284
|
}),
|
|
@@ -288,10 +288,10 @@ function Se({ trigger: e, title: t, description: n, children: r, className: i })
|
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
290
|
//#region src/components/ui/DirectionProvider.tsx
|
|
291
|
-
function
|
|
292
|
-
return /* @__PURE__ */
|
|
291
|
+
function Ae({ children: e, direction: t = "ltr" }) {
|
|
292
|
+
return /* @__PURE__ */ d(ce, {
|
|
293
293
|
direction: t,
|
|
294
|
-
children: /* @__PURE__ */
|
|
294
|
+
children: /* @__PURE__ */ d("span", {
|
|
295
295
|
dir: t,
|
|
296
296
|
style: { display: "contents" },
|
|
297
297
|
children: e
|
|
@@ -300,28 +300,28 @@ function Ce({ children: e, direction: t = "ltr" }) {
|
|
|
300
300
|
}
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region src/components/ui/Drawer.tsx
|
|
303
|
-
function
|
|
304
|
-
return /* @__PURE__ */
|
|
303
|
+
function je({ trigger: e, title: t, description: n, children: r, side: i = "right", className: a }) {
|
|
304
|
+
return /* @__PURE__ */ f(x.Root, { children: [/* @__PURE__ */ d(x.Trigger, { render: e }), /* @__PURE__ */ f(x.Portal, { children: [/* @__PURE__ */ d(x.Backdrop, { className: "bento-drawer-backdrop" }), /* @__PURE__ */ f(x.Popup, {
|
|
305
305
|
className: o("bento-drawer-popup", a),
|
|
306
306
|
"data-side": i,
|
|
307
307
|
children: [
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ f("div", {
|
|
309
309
|
className: "bento-drawer-header",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ d(x.Title, {
|
|
311
311
|
className: "bento-drawer-title",
|
|
312
312
|
children: t
|
|
313
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ d(x.Close, {
|
|
314
314
|
className: "bento-button icon",
|
|
315
315
|
"aria-label": "Close drawer",
|
|
316
|
-
render: /* @__PURE__ */
|
|
317
|
-
children: /* @__PURE__ */
|
|
316
|
+
render: /* @__PURE__ */ d("button", { type: "button" }),
|
|
317
|
+
children: /* @__PURE__ */ d(u, { size: 18 })
|
|
318
318
|
})]
|
|
319
319
|
}),
|
|
320
|
-
n && /* @__PURE__ */
|
|
320
|
+
n && /* @__PURE__ */ d(x.Description, {
|
|
321
321
|
className: "bento-drawer-description",
|
|
322
322
|
children: n
|
|
323
323
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ d("div", {
|
|
325
325
|
className: "bento-drawer-body",
|
|
326
326
|
children: r
|
|
327
327
|
})
|
|
@@ -330,22 +330,22 @@ function we({ trigger: e, title: t, description: n, children: r, side: i = "righ
|
|
|
330
330
|
}
|
|
331
331
|
//#endregion
|
|
332
332
|
//#region src/components/ui/Field.tsx
|
|
333
|
-
function
|
|
334
|
-
return /* @__PURE__ */
|
|
333
|
+
function U({ label: e, description: t, error: n, children: r, className: i, ...a }) {
|
|
334
|
+
return /* @__PURE__ */ f(S.Root, {
|
|
335
335
|
className: o("bento-field", i),
|
|
336
336
|
invalid: !!n,
|
|
337
337
|
...a,
|
|
338
338
|
children: [
|
|
339
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ d(S.Label, {
|
|
340
340
|
className: "field-label",
|
|
341
341
|
children: e
|
|
342
342
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
t && /* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ d(S.Control, { render: r }),
|
|
344
|
+
t && /* @__PURE__ */ d(S.Description, {
|
|
345
345
|
className: "bento-field-description",
|
|
346
346
|
children: t
|
|
347
347
|
}),
|
|
348
|
-
n && /* @__PURE__ */
|
|
348
|
+
n && /* @__PURE__ */ d(S.Error, {
|
|
349
349
|
className: "bento-field-error",
|
|
350
350
|
children: n
|
|
351
351
|
})
|
|
@@ -354,11 +354,11 @@ function Te({ label: e, description: t, error: n, children: r, className: i, ...
|
|
|
354
354
|
}
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/components/ui/Fieldset.tsx
|
|
357
|
-
function
|
|
358
|
-
return /* @__PURE__ */
|
|
357
|
+
function W({ legend: e, children: t, className: n, ...r }) {
|
|
358
|
+
return /* @__PURE__ */ f(ue.Root, {
|
|
359
359
|
className: o("bento-fieldset", n),
|
|
360
360
|
...r,
|
|
361
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ d(ue.Legend, {
|
|
362
362
|
className: "bento-fieldset-legend",
|
|
363
363
|
children: e
|
|
364
364
|
}), t]
|
|
@@ -366,57 +366,57 @@ function Ee({ legend: e, children: t, className: n, ...r }) {
|
|
|
366
366
|
}
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region src/components/ui/Form.tsx
|
|
369
|
-
var
|
|
369
|
+
var Me = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(de, {
|
|
370
370
|
ref: n,
|
|
371
371
|
className: o("bento-form", e),
|
|
372
372
|
...t
|
|
373
373
|
}));
|
|
374
|
-
|
|
374
|
+
Me.displayName = "Form";
|
|
375
375
|
//#endregion
|
|
376
376
|
//#region src/components/ui/Input.tsx
|
|
377
|
-
var
|
|
378
|
-
let a = /* @__PURE__ */
|
|
377
|
+
var G = t(({ label: e, className: t, id: n, ...r }, i) => {
|
|
378
|
+
let a = /* @__PURE__ */ d(fe, {
|
|
379
379
|
ref: i,
|
|
380
380
|
id: n,
|
|
381
381
|
className: o("bento-input", t),
|
|
382
382
|
...r
|
|
383
383
|
});
|
|
384
|
-
return e ? /* @__PURE__ */
|
|
384
|
+
return e ? /* @__PURE__ */ f("div", {
|
|
385
385
|
className: "bento-field",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ d("label", {
|
|
387
387
|
className: "bento-field-label",
|
|
388
388
|
htmlFor: n,
|
|
389
389
|
children: e
|
|
390
390
|
}), a]
|
|
391
391
|
}) : a;
|
|
392
392
|
});
|
|
393
|
-
|
|
394
|
-
var
|
|
395
|
-
let a = /* @__PURE__ */
|
|
393
|
+
G.displayName = "Input";
|
|
394
|
+
var Ne = t(({ label: e, className: t, id: n, ...r }, i) => {
|
|
395
|
+
let a = /* @__PURE__ */ d("textarea", {
|
|
396
396
|
ref: i,
|
|
397
397
|
id: n,
|
|
398
398
|
className: o("bento-textarea", t),
|
|
399
399
|
...r
|
|
400
400
|
});
|
|
401
|
-
return e ? /* @__PURE__ */
|
|
401
|
+
return e ? /* @__PURE__ */ f("div", {
|
|
402
402
|
className: "bento-field",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ d("label", {
|
|
404
404
|
className: "bento-field-label",
|
|
405
405
|
htmlFor: n,
|
|
406
406
|
children: e
|
|
407
407
|
}), a]
|
|
408
408
|
}) : a;
|
|
409
409
|
});
|
|
410
|
-
|
|
410
|
+
Ne.displayName = "Textarea";
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region src/components/ui/Menu.tsx
|
|
413
|
-
function
|
|
414
|
-
return /* @__PURE__ */
|
|
413
|
+
function Pe({ trigger: e, items: t, className: n }) {
|
|
414
|
+
return /* @__PURE__ */ f(C.Root, { children: [/* @__PURE__ */ d(C.Trigger, { render: e }), /* @__PURE__ */ d(C.Portal, { children: /* @__PURE__ */ d(C.Positioner, {
|
|
415
415
|
className: "bento-menu-positioner",
|
|
416
416
|
sideOffset: 8,
|
|
417
|
-
children: /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ d(C.Popup, {
|
|
418
418
|
className: o("bento-menu-popup", n),
|
|
419
|
-
children: t.map((e, t) => e === "separator" ? /* @__PURE__ */
|
|
419
|
+
children: t.map((e, t) => e === "separator" ? /* @__PURE__ */ d(C.Separator, { className: "bento-menu-separator" }, t) : /* @__PURE__ */ f(C.Item, {
|
|
420
420
|
className: "bento-menu-item",
|
|
421
421
|
disabled: e.disabled,
|
|
422
422
|
onClick: e.onClick,
|
|
@@ -427,18 +427,18 @@ function Oe({ trigger: e, items: t, className: n }) {
|
|
|
427
427
|
}
|
|
428
428
|
//#endregion
|
|
429
429
|
//#region src/components/ui/Menubar.tsx
|
|
430
|
-
function
|
|
431
|
-
return /* @__PURE__ */
|
|
430
|
+
function Fe({ menus: e, className: t }) {
|
|
431
|
+
return /* @__PURE__ */ d(pe, {
|
|
432
432
|
className: o("bento-menubar", t),
|
|
433
|
-
children: e.map((e) => /* @__PURE__ */
|
|
433
|
+
children: e.map((e) => /* @__PURE__ */ f(w.Root, { children: [/* @__PURE__ */ d(w.Trigger, {
|
|
434
434
|
className: "bento-menubar-trigger",
|
|
435
435
|
children: e.label
|
|
436
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ d(w.Portal, { children: /* @__PURE__ */ d(w.Positioner, {
|
|
437
437
|
className: "bento-menu-positioner",
|
|
438
438
|
sideOffset: 8,
|
|
439
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ d(w.Popup, {
|
|
440
440
|
className: "bento-menu-popup",
|
|
441
|
-
children: e.items.map((e) => /* @__PURE__ */
|
|
441
|
+
children: e.items.map((e) => /* @__PURE__ */ f(w.Item, {
|
|
442
442
|
className: "bento-menu-item",
|
|
443
443
|
disabled: e.disabled,
|
|
444
444
|
children: [e.icon, e.label]
|
|
@@ -449,54 +449,54 @@ function ke({ menus: e, className: t }) {
|
|
|
449
449
|
}
|
|
450
450
|
//#endregion
|
|
451
451
|
//#region src/components/ui/Meter.tsx
|
|
452
|
-
var
|
|
453
|
-
let l = (e - t) / (n - t) * 100,
|
|
454
|
-
return /* @__PURE__ */
|
|
452
|
+
var K = t(({ value: e = 0, min: t = 0, max: n = 100, showValue: r, className: a, ...s }, c) => {
|
|
453
|
+
let l = (e - t) / (n - t) * 100, ee = i(() => l >= 80 ? "bento-meter-high" : l < 30 ? "bento-meter-low" : "bento-meter-mid", [l]);
|
|
454
|
+
return /* @__PURE__ */ f("div", {
|
|
455
455
|
className: o("bento-meter", a),
|
|
456
|
-
children: [r && /* @__PURE__ */
|
|
456
|
+
children: [r && /* @__PURE__ */ f("div", {
|
|
457
457
|
className: "bento-meter-label",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ d("span", { children: s["aria-label"] ?? "Meter" }), /* @__PURE__ */ f("span", {
|
|
459
459
|
className: "bento-meter-value",
|
|
460
460
|
children: [Math.round(l), "%"]
|
|
461
461
|
})]
|
|
462
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ d(T.Root, {
|
|
463
463
|
ref: c,
|
|
464
464
|
value: e,
|
|
465
465
|
min: t,
|
|
466
466
|
max: n,
|
|
467
467
|
...s,
|
|
468
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ d(T.Track, {
|
|
469
469
|
className: "bento-meter-track",
|
|
470
|
-
children: /* @__PURE__ */
|
|
470
|
+
children: /* @__PURE__ */ d(T.Indicator, { className: o("bento-meter-indicator", ee) })
|
|
471
471
|
})
|
|
472
472
|
})]
|
|
473
473
|
});
|
|
474
474
|
});
|
|
475
|
-
|
|
475
|
+
K.displayName = "Meter";
|
|
476
476
|
//#endregion
|
|
477
477
|
//#region src/components/ui/NavigationMenu.tsx
|
|
478
|
-
function
|
|
479
|
-
return /* @__PURE__ */
|
|
478
|
+
function Ie({ items: e, className: t }) {
|
|
479
|
+
return /* @__PURE__ */ d(E.Root, {
|
|
480
480
|
className: o("bento-nav-menu", t),
|
|
481
|
-
children: /* @__PURE__ */
|
|
481
|
+
children: /* @__PURE__ */ d(E.List, {
|
|
482
482
|
className: "bento-nav-menu-list",
|
|
483
|
-
children: e.map((e, t) => e.children ? /* @__PURE__ */
|
|
483
|
+
children: e.map((e, t) => e.children ? /* @__PURE__ */ f(E.Item, { children: [/* @__PURE__ */ f(E.Trigger, {
|
|
484
484
|
className: "bento-nav-menu-trigger",
|
|
485
|
-
children: [e.label, /* @__PURE__ */
|
|
486
|
-
}), /* @__PURE__ */
|
|
485
|
+
children: [e.label, /* @__PURE__ */ d(l, { size: 14 })]
|
|
486
|
+
}), /* @__PURE__ */ d(E.Portal, { children: /* @__PURE__ */ d(E.Positioner, {
|
|
487
487
|
sideOffset: 8,
|
|
488
|
-
children: /* @__PURE__ */
|
|
488
|
+
children: /* @__PURE__ */ d(E.Popup, {
|
|
489
489
|
className: "bento-nav-menu-popup",
|
|
490
|
-
children: e.children.map((e, t) => /* @__PURE__ */
|
|
490
|
+
children: e.children.map((e, t) => /* @__PURE__ */ d(E.Item, {
|
|
491
491
|
className: "bento-nav-menu-item",
|
|
492
|
-
render: /* @__PURE__ */
|
|
492
|
+
render: /* @__PURE__ */ d("a", { href: e.href }),
|
|
493
493
|
children: e.label
|
|
494
494
|
}, t))
|
|
495
495
|
})
|
|
496
|
-
}) })] }, t) : /* @__PURE__ */
|
|
496
|
+
}) })] }, t) : /* @__PURE__ */ d(E.Item, { children: /* @__PURE__ */ d(E.Link, {
|
|
497
497
|
className: "bento-nav-menu-trigger",
|
|
498
498
|
href: e.href,
|
|
499
|
-
render: /* @__PURE__ */
|
|
499
|
+
render: /* @__PURE__ */ d("a", { href: e.href }),
|
|
500
500
|
children: e.label
|
|
501
501
|
}) }, t))
|
|
502
502
|
})
|
|
@@ -504,26 +504,26 @@ function je({ items: e, className: t }) {
|
|
|
504
504
|
}
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region src/components/ui/NumberField.tsx
|
|
507
|
-
function
|
|
508
|
-
return /* @__PURE__ */
|
|
507
|
+
function Le({ label: e, className: t, ...n }) {
|
|
508
|
+
return /* @__PURE__ */ f(D.Root, {
|
|
509
509
|
className: o("bento-number-field", t),
|
|
510
510
|
...n,
|
|
511
|
-
children: [e && /* @__PURE__ */
|
|
511
|
+
children: [e && /* @__PURE__ */ d("label", {
|
|
512
512
|
className: "field-label",
|
|
513
513
|
children: e
|
|
514
|
-
}), /* @__PURE__ */
|
|
514
|
+
}), /* @__PURE__ */ f(D.Group, {
|
|
515
515
|
className: "bento-number-field-group",
|
|
516
516
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ d(D.Decrement, {
|
|
518
518
|
className: "bento-number-field-button",
|
|
519
519
|
"aria-label": "Decrease",
|
|
520
|
-
children: /* @__PURE__ */
|
|
520
|
+
children: /* @__PURE__ */ d(ne, { size: 14 })
|
|
521
521
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ d(D.Input, { className: "bento-number-field-input" }),
|
|
523
|
+
/* @__PURE__ */ d(D.Increment, {
|
|
524
524
|
className: "bento-number-field-button",
|
|
525
525
|
"aria-label": "Increase",
|
|
526
|
-
children: /* @__PURE__ */
|
|
526
|
+
children: /* @__PURE__ */ d(re, { size: 14 })
|
|
527
527
|
})
|
|
528
528
|
]
|
|
529
529
|
})]
|
|
@@ -531,34 +531,34 @@ function Me({ label: e, className: t, ...n }) {
|
|
|
531
531
|
}
|
|
532
532
|
//#endregion
|
|
533
533
|
//#region src/components/ui/OtpField.tsx
|
|
534
|
-
function
|
|
535
|
-
return /* @__PURE__ */
|
|
534
|
+
function Re({ length: e = 6, label: t, className: n, ...r }) {
|
|
535
|
+
return /* @__PURE__ */ f(me.Root, {
|
|
536
536
|
className: o("bento-otp-field", n),
|
|
537
537
|
length: e,
|
|
538
538
|
...r,
|
|
539
|
-
children: [t && /* @__PURE__ */
|
|
539
|
+
children: [t && /* @__PURE__ */ d("label", {
|
|
540
540
|
className: "field-label",
|
|
541
541
|
children: t
|
|
542
|
-
}), /* @__PURE__ */
|
|
542
|
+
}), /* @__PURE__ */ d("div", {
|
|
543
543
|
className: "bento-otp-inputs",
|
|
544
|
-
children: Array.from({ length: e }, (e, t) => /* @__PURE__ */
|
|
544
|
+
children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ d(me.Input, { className: "bento-otp-input" }, t))
|
|
545
545
|
})]
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
548
|
//#endregion
|
|
549
549
|
//#region src/components/ui/Popover.tsx
|
|
550
|
-
function
|
|
551
|
-
return /* @__PURE__ */
|
|
550
|
+
function ze({ trigger: e, title: t, description: n, children: r, className: i }) {
|
|
551
|
+
return /* @__PURE__ */ f(O.Root, { children: [/* @__PURE__ */ d(O.Trigger, { render: e }), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Positioner, {
|
|
552
552
|
sideOffset: 10,
|
|
553
|
-
children: /* @__PURE__ */
|
|
553
|
+
children: /* @__PURE__ */ f(O.Popup, {
|
|
554
554
|
className: o("bento-popover-popup", i),
|
|
555
555
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
t && /* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ d(O.Arrow, { className: "bento-popover-arrow" }),
|
|
557
|
+
t && /* @__PURE__ */ d(O.Title, {
|
|
558
558
|
className: "bento-popover-title",
|
|
559
559
|
children: t
|
|
560
560
|
}),
|
|
561
|
-
n && /* @__PURE__ */
|
|
561
|
+
n && /* @__PURE__ */ d(O.Description, {
|
|
562
562
|
className: "bento-popover-description",
|
|
563
563
|
children: n
|
|
564
564
|
}),
|
|
@@ -569,22 +569,22 @@ function Pe({ trigger: e, title: t, description: n, children: r, className: i })
|
|
|
569
569
|
}
|
|
570
570
|
//#endregion
|
|
571
571
|
//#region src/components/ui/PreviewCard.tsx
|
|
572
|
-
function
|
|
573
|
-
return /* @__PURE__ */
|
|
572
|
+
function Be({ trigger: e, title: t, description: n, imageUrl: r, imageAlt: i, className: a }) {
|
|
573
|
+
return /* @__PURE__ */ f(k.Root, { children: [/* @__PURE__ */ d(k.Trigger, { render: e }), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ d(k.Positioner, {
|
|
574
574
|
sideOffset: 10,
|
|
575
|
-
children: /* @__PURE__ */
|
|
575
|
+
children: /* @__PURE__ */ f(k.Popup, {
|
|
576
576
|
className: o("bento-preview-card", a),
|
|
577
577
|
children: [
|
|
578
|
-
/* @__PURE__ */
|
|
579
|
-
r && /* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ d(k.Arrow, { className: "bento-preview-card-arrow" }),
|
|
579
|
+
r && /* @__PURE__ */ d("img", {
|
|
580
580
|
src: r,
|
|
581
581
|
alt: i ?? ""
|
|
582
582
|
}),
|
|
583
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ d("h3", {
|
|
584
584
|
className: "bento-preview-card-title",
|
|
585
585
|
children: t
|
|
586
586
|
}),
|
|
587
|
-
n && /* @__PURE__ */
|
|
587
|
+
n && /* @__PURE__ */ d("p", {
|
|
588
588
|
className: "bento-preview-card-description",
|
|
589
589
|
children: n
|
|
590
590
|
})
|
|
@@ -594,101 +594,101 @@ function Fe({ trigger: e, title: t, description: n, imageUrl: r, imageAlt: i, cl
|
|
|
594
594
|
}
|
|
595
595
|
//#endregion
|
|
596
596
|
//#region src/components/ui/Progress.tsx
|
|
597
|
-
var
|
|
597
|
+
var q = t(({ value: e, showValue: t, className: n, ...r }, i) => /* @__PURE__ */ f("div", {
|
|
598
598
|
className: o("bento-progress", n),
|
|
599
|
-
children: [t && /* @__PURE__ */
|
|
599
|
+
children: [t && /* @__PURE__ */ f("div", {
|
|
600
600
|
className: "bento-progress-label",
|
|
601
|
-
children: [/* @__PURE__ */
|
|
601
|
+
children: [/* @__PURE__ */ d("span", { children: r["aria-label"] ?? "Progress" }), /* @__PURE__ */ f("span", {
|
|
602
602
|
className: "bento-progress-value",
|
|
603
603
|
children: [e ?? 0, "%"]
|
|
604
604
|
})]
|
|
605
|
-
}), /* @__PURE__ */
|
|
605
|
+
}), /* @__PURE__ */ d(A.Root, {
|
|
606
606
|
ref: i,
|
|
607
607
|
value: e,
|
|
608
608
|
...r,
|
|
609
|
-
children: /* @__PURE__ */
|
|
609
|
+
children: /* @__PURE__ */ d(A.Track, {
|
|
610
610
|
className: "bento-progress-track",
|
|
611
|
-
children: /* @__PURE__ */
|
|
611
|
+
children: /* @__PURE__ */ d(A.Indicator, { className: "bento-progress-indicator" })
|
|
612
612
|
})
|
|
613
613
|
})]
|
|
614
614
|
}));
|
|
615
|
-
|
|
615
|
+
q.displayName = "Progress";
|
|
616
616
|
//#endregion
|
|
617
617
|
//#region src/components/ui/Radio.tsx
|
|
618
|
-
function
|
|
619
|
-
let r = /* @__PURE__ */
|
|
618
|
+
function Ve({ label: e, className: t, ...n }) {
|
|
619
|
+
let r = /* @__PURE__ */ d(he.Root, {
|
|
620
620
|
className: o("bento-radio", t),
|
|
621
621
|
...n,
|
|
622
|
-
children: /* @__PURE__ */
|
|
622
|
+
children: /* @__PURE__ */ d(he.Indicator, { className: "bento-radio-indicator" })
|
|
623
623
|
});
|
|
624
|
-
return e ? /* @__PURE__ */
|
|
624
|
+
return e ? /* @__PURE__ */ f("label", {
|
|
625
625
|
className: "bento-radio-label",
|
|
626
626
|
children: [r, e]
|
|
627
627
|
}) : r;
|
|
628
628
|
}
|
|
629
629
|
//#endregion
|
|
630
630
|
//#region src/components/ui/RadioGroup.tsx
|
|
631
|
-
function
|
|
632
|
-
return /* @__PURE__ */
|
|
631
|
+
function He({ options: e, defaultValue: t, className: n, ...r }) {
|
|
632
|
+
return /* @__PURE__ */ d(_e, {
|
|
633
633
|
defaultValue: t,
|
|
634
634
|
className: o("bento-radio-group", n),
|
|
635
635
|
...r,
|
|
636
|
-
children: e.map((e) => /* @__PURE__ */
|
|
636
|
+
children: e.map((e) => /* @__PURE__ */ f("label", {
|
|
637
637
|
className: "bento-radio-label",
|
|
638
|
-
children: [/* @__PURE__ */
|
|
638
|
+
children: [/* @__PURE__ */ d(ge.Root, {
|
|
639
639
|
className: "bento-radio",
|
|
640
640
|
value: e.value,
|
|
641
|
-
children: /* @__PURE__ */
|
|
641
|
+
children: /* @__PURE__ */ d(ge.Indicator, { className: "bento-radio-indicator" })
|
|
642
642
|
}), e.label]
|
|
643
643
|
}, e.value))
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region src/components/ui/ScrollArea.tsx
|
|
648
|
-
var
|
|
648
|
+
var Ue = t(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ f(j.Root, {
|
|
649
649
|
ref: r,
|
|
650
650
|
className: o("bento-scroll-area", e),
|
|
651
651
|
...n,
|
|
652
652
|
children: [
|
|
653
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ d(j.Viewport, {
|
|
654
654
|
className: "bento-scroll-area-viewport",
|
|
655
655
|
children: t
|
|
656
656
|
}),
|
|
657
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ d(j.Scrollbar, {
|
|
658
658
|
className: "bento-scroll-area-scrollbar",
|
|
659
|
-
children: /* @__PURE__ */
|
|
659
|
+
children: /* @__PURE__ */ d(j.Thumb, { className: "bento-scroll-area-thumb" })
|
|
660
660
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ d(j.Corner, { className: "bento-scroll-area-corner" })
|
|
662
662
|
]
|
|
663
663
|
}));
|
|
664
|
-
|
|
664
|
+
Ue.displayName = "ScrollArea";
|
|
665
665
|
//#endregion
|
|
666
666
|
//#region src/components/ui/Select.tsx
|
|
667
|
-
function
|
|
668
|
-
return /* @__PURE__ */
|
|
667
|
+
function J({ items: e, label: t, placeholder: n, defaultValue: r, ...i }) {
|
|
668
|
+
return /* @__PURE__ */ f(M.Root, {
|
|
669
669
|
defaultValue: r,
|
|
670
670
|
items: e,
|
|
671
671
|
...i,
|
|
672
672
|
children: [
|
|
673
|
-
t && /* @__PURE__ */
|
|
673
|
+
t && /* @__PURE__ */ d("label", {
|
|
674
674
|
className: "field-label",
|
|
675
675
|
htmlFor: i.id,
|
|
676
676
|
children: t
|
|
677
677
|
}),
|
|
678
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ f(M.Trigger, {
|
|
679
679
|
id: i.id,
|
|
680
680
|
className: "bento-select-trigger",
|
|
681
|
-
children: [/* @__PURE__ */
|
|
681
|
+
children: [/* @__PURE__ */ d(M.Value, { placeholder: n }), /* @__PURE__ */ d(M.Icon, { children: /* @__PURE__ */ d(l, { size: 16 }) })]
|
|
682
682
|
}),
|
|
683
|
-
/* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ d(M.Portal, { children: /* @__PURE__ */ d(M.Positioner, {
|
|
684
684
|
className: "bento-select-positioner",
|
|
685
685
|
sideOffset: 8,
|
|
686
|
-
children: /* @__PURE__ */
|
|
686
|
+
children: /* @__PURE__ */ d(M.Popup, {
|
|
687
687
|
className: o("bento-select-popup"),
|
|
688
|
-
children: Object.entries(e).map(([e, t]) => /* @__PURE__ */
|
|
688
|
+
children: Object.entries(e).map(([e, t]) => /* @__PURE__ */ f(M.Item, {
|
|
689
689
|
className: "bento-select-item",
|
|
690
690
|
value: e,
|
|
691
|
-
children: [/* @__PURE__ */
|
|
691
|
+
children: [/* @__PURE__ */ d(M.ItemIndicator, { children: /* @__PURE__ */ d(c, { size: 15 }) }), /* @__PURE__ */ d(M.ItemText, { children: t })]
|
|
692
692
|
}, e))
|
|
693
693
|
})
|
|
694
694
|
}) })
|
|
@@ -697,107 +697,107 @@ function Be({ items: e, label: t, placeholder: n, defaultValue: r, ...i }) {
|
|
|
697
697
|
}
|
|
698
698
|
//#endregion
|
|
699
699
|
//#region src/components/ui/Separator.tsx
|
|
700
|
-
var
|
|
700
|
+
var Y = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(ve, {
|
|
701
701
|
ref: n,
|
|
702
702
|
className: o("bento-separator", e),
|
|
703
703
|
...t
|
|
704
704
|
}));
|
|
705
|
-
|
|
705
|
+
Y.displayName = "Separator";
|
|
706
706
|
//#endregion
|
|
707
707
|
//#region src/components/ui/Slider.tsx
|
|
708
|
-
var
|
|
708
|
+
var We = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(N.Root, {
|
|
709
709
|
ref: n,
|
|
710
710
|
className: o("bento-slider", e),
|
|
711
711
|
...t,
|
|
712
|
-
children: /* @__PURE__ */
|
|
712
|
+
children: /* @__PURE__ */ d(N.Control, {
|
|
713
713
|
className: "bento-slider-control",
|
|
714
|
-
children: /* @__PURE__ */
|
|
714
|
+
children: /* @__PURE__ */ f(N.Track, {
|
|
715
715
|
className: "bento-slider-track",
|
|
716
|
-
children: [/* @__PURE__ */
|
|
716
|
+
children: [/* @__PURE__ */ d(N.Indicator, { className: "bento-slider-indicator" }), /* @__PURE__ */ d(N.Thumb, { className: "bento-slider-thumb" })]
|
|
717
717
|
})
|
|
718
718
|
})
|
|
719
719
|
}));
|
|
720
|
-
|
|
720
|
+
We.displayName = "Slider";
|
|
721
721
|
//#endregion
|
|
722
722
|
//#region src/components/ui/Switch.tsx
|
|
723
|
-
var
|
|
724
|
-
let a = /* @__PURE__ */
|
|
723
|
+
var X = t(({ label: e, className: t, id: n, ...r }, i) => {
|
|
724
|
+
let a = /* @__PURE__ */ d(ye.Root, {
|
|
725
725
|
ref: i,
|
|
726
726
|
id: n,
|
|
727
727
|
className: o("bento-switch", t),
|
|
728
728
|
...r,
|
|
729
|
-
children: /* @__PURE__ */
|
|
729
|
+
children: /* @__PURE__ */ d(ye.Thumb, { className: "bento-switch-thumb" })
|
|
730
730
|
});
|
|
731
|
-
return e ? /* @__PURE__ */
|
|
731
|
+
return e ? /* @__PURE__ */ f("label", {
|
|
732
732
|
className: "bento-switch-label",
|
|
733
733
|
htmlFor: n,
|
|
734
734
|
children: [a, e]
|
|
735
735
|
}) : a;
|
|
736
736
|
});
|
|
737
|
-
|
|
737
|
+
X.displayName = "Switch";
|
|
738
738
|
//#endregion
|
|
739
739
|
//#region src/components/ui/Tabs.tsx
|
|
740
|
-
function
|
|
741
|
-
return /* @__PURE__ */
|
|
740
|
+
function Ge({ panels: e, defaultValue: t, className: n, ...r }) {
|
|
741
|
+
return /* @__PURE__ */ f(P.Root, {
|
|
742
742
|
defaultValue: t ?? e[0]?.value,
|
|
743
743
|
className: o("bento-tabs", n),
|
|
744
744
|
...r,
|
|
745
|
-
children: [/* @__PURE__ */
|
|
745
|
+
children: [/* @__PURE__ */ f(P.List, {
|
|
746
746
|
className: o("bento-tabs-list", `cols-${e.length}`),
|
|
747
|
-
children: [e.map((e) => /* @__PURE__ */
|
|
747
|
+
children: [e.map((e) => /* @__PURE__ */ d(P.Tab, {
|
|
748
748
|
className: "bento-tabs-tab",
|
|
749
749
|
value: e.value,
|
|
750
750
|
children: e.label
|
|
751
|
-
}, e.value)), /* @__PURE__ */
|
|
752
|
-
}), e.map((e) => /* @__PURE__ */
|
|
751
|
+
}, e.value)), /* @__PURE__ */ d(P.Indicator, { className: "bento-tabs-indicator" })]
|
|
752
|
+
}), e.map((e) => /* @__PURE__ */ f(P.Panel, {
|
|
753
753
|
className: "bento-tabs-panel",
|
|
754
754
|
value: e.value,
|
|
755
|
-
children: [e.title && /* @__PURE__ */
|
|
755
|
+
children: [e.title && /* @__PURE__ */ d("strong", {
|
|
756
756
|
className: "bento-tabs-panel-title",
|
|
757
757
|
children: e.title
|
|
758
|
-
}), /* @__PURE__ */
|
|
758
|
+
}), /* @__PURE__ */ d("p", { children: e.content })]
|
|
759
759
|
}, e.value))]
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
762
|
//#endregion
|
|
763
763
|
//#region src/components/ui/Toggle.tsx
|
|
764
|
-
var
|
|
764
|
+
var Ke = t(({ className: e, ...t }, n) => /* @__PURE__ */ d(be, {
|
|
765
765
|
ref: n,
|
|
766
766
|
className: o("bento-toggle", e),
|
|
767
767
|
...t
|
|
768
768
|
}));
|
|
769
|
-
|
|
769
|
+
Ke.displayName = "Toggle";
|
|
770
770
|
//#endregion
|
|
771
771
|
//#region src/components/ui/Toast.tsx
|
|
772
|
-
function
|
|
773
|
-
let { toasts: e } =
|
|
774
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
772
|
+
function qe() {
|
|
773
|
+
let { toasts: e } = F.useToastManager();
|
|
774
|
+
return e.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
775
775
|
className: "bento-toast-provider",
|
|
776
|
-
children: e.map((e) => /* @__PURE__ */
|
|
776
|
+
children: e.map((e) => /* @__PURE__ */ f(F.Root, {
|
|
777
777
|
className: "bento-toast",
|
|
778
778
|
toast: e,
|
|
779
|
-
children: [/* @__PURE__ */
|
|
779
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d(F.Title, {
|
|
780
780
|
className: "bento-toast-title",
|
|
781
781
|
children: e.title
|
|
782
|
-
}), e.description && /* @__PURE__ */
|
|
782
|
+
}), e.description && /* @__PURE__ */ d(F.Description, {
|
|
783
783
|
className: "bento-toast-description",
|
|
784
784
|
children: e.description
|
|
785
|
-
})] }), /* @__PURE__ */
|
|
785
|
+
})] }), /* @__PURE__ */ d(F.Close, {
|
|
786
786
|
className: "bento-toast-close",
|
|
787
787
|
"aria-label": "Dismiss",
|
|
788
|
-
render: /* @__PURE__ */
|
|
789
|
-
children: /* @__PURE__ */
|
|
788
|
+
render: /* @__PURE__ */ d("button", { type: "button" }),
|
|
789
|
+
children: /* @__PURE__ */ d(u, { size: 15 })
|
|
790
790
|
})]
|
|
791
791
|
}, e.id))
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
return /* @__PURE__ */
|
|
794
|
+
function Je({ children: e }) {
|
|
795
|
+
return /* @__PURE__ */ f(F.Provider, { children: [e, /* @__PURE__ */ d(qe, {})] });
|
|
796
796
|
}
|
|
797
797
|
//#endregion
|
|
798
798
|
//#region src/components/ui/useToastManager.ts
|
|
799
|
-
function
|
|
800
|
-
let e =
|
|
799
|
+
function Ye() {
|
|
800
|
+
let e = F.useToastManager();
|
|
801
801
|
return {
|
|
802
802
|
add: (t, n) => e.add({
|
|
803
803
|
title: t,
|
|
@@ -808,12 +808,12 @@ function Je() {
|
|
|
808
808
|
}
|
|
809
809
|
//#endregion
|
|
810
810
|
//#region src/components/ui/ToggleGroup.tsx
|
|
811
|
-
function
|
|
812
|
-
return /* @__PURE__ */
|
|
811
|
+
function Xe({ options: e, defaultValue: t, className: n, ...r }) {
|
|
812
|
+
return /* @__PURE__ */ d(xe, {
|
|
813
813
|
defaultValue: t,
|
|
814
814
|
className: o("bento-toggle-group", n),
|
|
815
815
|
...r,
|
|
816
|
-
children: e.map((e) => /* @__PURE__ */
|
|
816
|
+
children: e.map((e) => /* @__PURE__ */ d(be, {
|
|
817
817
|
className: "bento-toggle",
|
|
818
818
|
value: e.value,
|
|
819
819
|
children: e.label
|
|
@@ -822,42 +822,42 @@ function Ye({ options: e, defaultValue: t, className: n, ...r }) {
|
|
|
822
822
|
}
|
|
823
823
|
//#endregion
|
|
824
824
|
//#region src/components/ui/Toolbar.tsx
|
|
825
|
-
function
|
|
826
|
-
return /* @__PURE__ */
|
|
825
|
+
function Ze({ className: e, showSearch: t = !0, ...n }) {
|
|
826
|
+
return /* @__PURE__ */ f(I.Root, {
|
|
827
827
|
className: o("bento-toolbar", e),
|
|
828
828
|
...n,
|
|
829
|
-
children: [/* @__PURE__ */
|
|
829
|
+
children: [/* @__PURE__ */ f(I.Group, {
|
|
830
830
|
className: "bento-toolbar-group",
|
|
831
831
|
children: [
|
|
832
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ d(Qe, {
|
|
833
833
|
"aria-label": "Bold",
|
|
834
|
-
children: /* @__PURE__ */
|
|
834
|
+
children: /* @__PURE__ */ d(s, { size: 15 })
|
|
835
835
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ d(Qe, {
|
|
837
837
|
"aria-label": "Italic",
|
|
838
|
-
children: /* @__PURE__ */
|
|
838
|
+
children: /* @__PURE__ */ d(ee, { size: 15 })
|
|
839
839
|
}),
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ d(I.Separator, { className: "bento-toolbar-separator" }),
|
|
841
|
+
/* @__PURE__ */ d(I.Link, {
|
|
842
842
|
className: "bento-toolbar-button",
|
|
843
843
|
href: "https://base-ui.com",
|
|
844
844
|
target: "_blank",
|
|
845
845
|
rel: "noreferrer",
|
|
846
846
|
"aria-label": "Base UI docs",
|
|
847
|
-
children: /* @__PURE__ */
|
|
847
|
+
children: /* @__PURE__ */ d(te, { size: 15 })
|
|
848
848
|
})
|
|
849
849
|
]
|
|
850
|
-
}), t && /* @__PURE__ */
|
|
850
|
+
}), t && /* @__PURE__ */ f("div", {
|
|
851
851
|
className: "bento-toolbar-search",
|
|
852
|
-
children: [/* @__PURE__ */
|
|
852
|
+
children: [/* @__PURE__ */ d(ie, { size: 14 }), /* @__PURE__ */ d(I.Input, {
|
|
853
853
|
className: "bento-toolbar-input",
|
|
854
854
|
placeholder: "Search docs"
|
|
855
855
|
})]
|
|
856
856
|
})]
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
return /* @__PURE__ */
|
|
859
|
+
function Qe({ children: e, ...t }) {
|
|
860
|
+
return /* @__PURE__ */ d(I.Button, {
|
|
861
861
|
className: "bento-toolbar-button",
|
|
862
862
|
...t,
|
|
863
863
|
children: e
|
|
@@ -865,19 +865,570 @@ function Ze({ children: e, ...t }) {
|
|
|
865
865
|
}
|
|
866
866
|
//#endregion
|
|
867
867
|
//#region src/components/ui/Tooltip.tsx
|
|
868
|
-
function
|
|
869
|
-
return /* @__PURE__ */
|
|
868
|
+
function $e({ content: e, children: t, className: n }) {
|
|
869
|
+
return /* @__PURE__ */ f(L.Root, { children: [/* @__PURE__ */ d(L.Trigger, { render: t }), /* @__PURE__ */ d(L.Portal, { children: /* @__PURE__ */ d(L.Positioner, {
|
|
870
870
|
sideOffset: 8,
|
|
871
|
-
children: /* @__PURE__ */
|
|
871
|
+
children: /* @__PURE__ */ f(L.Popup, {
|
|
872
872
|
className: o("bento-tooltip-popup", n),
|
|
873
|
-
children: [e, /* @__PURE__ */
|
|
873
|
+
children: [e, /* @__PURE__ */ d(L.Arrow, { className: "bento-tooltip-arrow" })]
|
|
874
874
|
})
|
|
875
875
|
}) })] });
|
|
876
876
|
}
|
|
877
|
-
|
|
877
|
+
$e.Provider = L.Provider;
|
|
878
878
|
//#endregion
|
|
879
|
-
//#region src/
|
|
880
|
-
|
|
879
|
+
//#region src/blocks/AuthCard.tsx
|
|
880
|
+
function et() {
|
|
881
|
+
return /* @__PURE__ */ f("section", {
|
|
882
|
+
className: "base-block",
|
|
883
|
+
"aria-label": "Authentication card block",
|
|
884
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
885
|
+
className: "base-block-title",
|
|
886
|
+
children: "Sign in to workspace"
|
|
887
|
+
}), /* @__PURE__ */ d("p", {
|
|
888
|
+
className: "base-block-copy",
|
|
889
|
+
children: "A focused authentication card with remembered-device controls."
|
|
890
|
+
})] }), /* @__PURE__ */ f("div", {
|
|
891
|
+
className: "base-block-form",
|
|
892
|
+
children: [
|
|
893
|
+
/* @__PURE__ */ d(U, {
|
|
894
|
+
label: "Email",
|
|
895
|
+
children: /* @__PURE__ */ d(G, {
|
|
896
|
+
id: "block-auth-email",
|
|
897
|
+
type: "email",
|
|
898
|
+
placeholder: "you@example.com"
|
|
899
|
+
})
|
|
900
|
+
}),
|
|
901
|
+
/* @__PURE__ */ d(U, {
|
|
902
|
+
label: "Password",
|
|
903
|
+
children: /* @__PURE__ */ d(G, {
|
|
904
|
+
id: "block-auth-password",
|
|
905
|
+
type: "password",
|
|
906
|
+
placeholder: "Enter password"
|
|
907
|
+
})
|
|
908
|
+
}),
|
|
909
|
+
/* @__PURE__ */ d(X, {
|
|
910
|
+
id: "block-auth-remember",
|
|
911
|
+
label: "Remember this device"
|
|
912
|
+
}),
|
|
913
|
+
/* @__PURE__ */ d(B, {
|
|
914
|
+
type: "button",
|
|
915
|
+
children: "Continue"
|
|
916
|
+
}),
|
|
917
|
+
/* @__PURE__ */ d(Y, {}),
|
|
918
|
+
/* @__PURE__ */ d(B, {
|
|
919
|
+
type: "button",
|
|
920
|
+
variant: "outline",
|
|
921
|
+
children: "Continue with SSO"
|
|
922
|
+
})
|
|
923
|
+
]
|
|
924
|
+
})]
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
//#endregion
|
|
928
|
+
//#region src/blocks/CommandPaletteBlock.tsx
|
|
929
|
+
var Z = [
|
|
930
|
+
{
|
|
931
|
+
value: "create-theme",
|
|
932
|
+
label: "Create theme"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
value: "open-registry",
|
|
936
|
+
label: "Open registry"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
value: "view-components",
|
|
940
|
+
label: "View components"
|
|
941
|
+
}
|
|
942
|
+
];
|
|
943
|
+
function tt() {
|
|
944
|
+
return /* @__PURE__ */ f("section", {
|
|
945
|
+
className: "base-block",
|
|
946
|
+
"aria-label": "Command palette block",
|
|
947
|
+
children: [
|
|
948
|
+
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
949
|
+
className: "base-block-title",
|
|
950
|
+
children: "Command Palette"
|
|
951
|
+
}), /* @__PURE__ */ d("p", {
|
|
952
|
+
className: "base-block-copy",
|
|
953
|
+
children: "A quick-action panel for product navigation, search, and agent-oriented commands."
|
|
954
|
+
})] }),
|
|
955
|
+
/* @__PURE__ */ d(H, {
|
|
956
|
+
label: "Jump to",
|
|
957
|
+
placeholder: "Search commands...",
|
|
958
|
+
options: Z
|
|
959
|
+
}),
|
|
960
|
+
/* @__PURE__ */ d("div", {
|
|
961
|
+
className: "base-block-list",
|
|
962
|
+
children: Z.map((e) => /* @__PURE__ */ f("div", {
|
|
963
|
+
className: "base-block-list-item",
|
|
964
|
+
children: [/* @__PURE__ */ f("div", {
|
|
965
|
+
className: "base-block-list-main",
|
|
966
|
+
children: [/* @__PURE__ */ d("strong", { children: e.label }), /* @__PURE__ */ d("span", { children: e.value })]
|
|
967
|
+
}), /* @__PURE__ */ d(B, {
|
|
968
|
+
type: "button",
|
|
969
|
+
variant: "ghost",
|
|
970
|
+
children: "Run"
|
|
971
|
+
})]
|
|
972
|
+
}, e.value))
|
|
973
|
+
})
|
|
974
|
+
]
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
//#endregion
|
|
978
|
+
//#region src/blocks/DashboardShell.tsx
|
|
979
|
+
var nt = [
|
|
980
|
+
{
|
|
981
|
+
label: "Revenue",
|
|
982
|
+
value: "$48.2k"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
label: "Active seats",
|
|
986
|
+
value: "1,248"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
label: "Deploys",
|
|
990
|
+
value: "36"
|
|
991
|
+
}
|
|
992
|
+
];
|
|
993
|
+
function rt() {
|
|
994
|
+
return /* @__PURE__ */ f("section", {
|
|
995
|
+
className: "base-block",
|
|
996
|
+
"aria-label": "Dashboard shell block",
|
|
997
|
+
children: [
|
|
998
|
+
/* @__PURE__ */ f("div", {
|
|
999
|
+
className: "base-block-header",
|
|
1000
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1001
|
+
className: "base-block-title",
|
|
1002
|
+
children: "Operations Dashboard"
|
|
1003
|
+
}), /* @__PURE__ */ d("p", {
|
|
1004
|
+
className: "base-block-copy",
|
|
1005
|
+
children: "A compact dashboard header with metrics, progress, and a primary action."
|
|
1006
|
+
})] }), /* @__PURE__ */ d(B, {
|
|
1007
|
+
variant: "outline",
|
|
1008
|
+
children: "Export"
|
|
1009
|
+
})]
|
|
1010
|
+
}),
|
|
1011
|
+
/* @__PURE__ */ d("div", {
|
|
1012
|
+
className: "base-block-grid",
|
|
1013
|
+
children: nt.map((e) => /* @__PURE__ */ f("div", {
|
|
1014
|
+
className: "base-block-stat",
|
|
1015
|
+
children: [/* @__PURE__ */ d("strong", { children: e.value }), /* @__PURE__ */ d("span", { children: e.label })]
|
|
1016
|
+
}, e.label))
|
|
1017
|
+
}),
|
|
1018
|
+
/* @__PURE__ */ d("div", {
|
|
1019
|
+
className: "base-block-panel",
|
|
1020
|
+
children: /* @__PURE__ */ d(q, {
|
|
1021
|
+
value: 72,
|
|
1022
|
+
showValue: !0,
|
|
1023
|
+
"aria-label": "Quarterly target"
|
|
1024
|
+
})
|
|
1025
|
+
}),
|
|
1026
|
+
/* @__PURE__ */ d(K, {
|
|
1027
|
+
value: 84,
|
|
1028
|
+
showValue: !0,
|
|
1029
|
+
"aria-label": "System health"
|
|
1030
|
+
})
|
|
1031
|
+
]
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
//#endregion
|
|
1035
|
+
//#region src/blocks/DataTableBlock.tsx
|
|
1036
|
+
var it = {
|
|
1037
|
+
all: "All statuses",
|
|
1038
|
+
active: "Active",
|
|
1039
|
+
pending: "Pending"
|
|
1040
|
+
}, at = [
|
|
1041
|
+
{
|
|
1042
|
+
project: "Checkout refresh",
|
|
1043
|
+
owner: "Ava",
|
|
1044
|
+
status: "Active"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
project: "Theme QA",
|
|
1048
|
+
owner: "Mina",
|
|
1049
|
+
status: "Pending"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
project: "Registry docs",
|
|
1053
|
+
owner: "Noah",
|
|
1054
|
+
status: "Active"
|
|
1055
|
+
}
|
|
1056
|
+
];
|
|
1057
|
+
function ot() {
|
|
1058
|
+
return /* @__PURE__ */ f("section", {
|
|
1059
|
+
className: "base-block",
|
|
1060
|
+
"aria-label": "Data table block",
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ f("div", {
|
|
1063
|
+
className: "base-block-header",
|
|
1064
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1065
|
+
className: "base-block-title",
|
|
1066
|
+
children: "Projects"
|
|
1067
|
+
}), /* @__PURE__ */ d("p", {
|
|
1068
|
+
className: "base-block-copy",
|
|
1069
|
+
children: "A small operational table with filters and row status badges."
|
|
1070
|
+
})] }), /* @__PURE__ */ d(J, {
|
|
1071
|
+
id: "block-project-status",
|
|
1072
|
+
defaultValue: "all",
|
|
1073
|
+
items: it
|
|
1074
|
+
})]
|
|
1075
|
+
}),
|
|
1076
|
+
/* @__PURE__ */ f("table", {
|
|
1077
|
+
className: "base-block-table",
|
|
1078
|
+
children: [/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ f("tr", { children: [
|
|
1079
|
+
/* @__PURE__ */ d("th", { children: "Project" }),
|
|
1080
|
+
/* @__PURE__ */ d("th", { children: "Owner" }),
|
|
1081
|
+
/* @__PURE__ */ d("th", { children: "Status" })
|
|
1082
|
+
] }) }), /* @__PURE__ */ d("tbody", { children: at.map((e) => /* @__PURE__ */ f("tr", { children: [
|
|
1083
|
+
/* @__PURE__ */ d("td", { children: e.project }),
|
|
1084
|
+
/* @__PURE__ */ d("td", { children: e.owner }),
|
|
1085
|
+
/* @__PURE__ */ d("td", { children: /* @__PURE__ */ d("span", {
|
|
1086
|
+
className: "base-block-pill",
|
|
1087
|
+
children: e.status
|
|
1088
|
+
}) })
|
|
1089
|
+
] }, e.project)) })]
|
|
1090
|
+
}),
|
|
1091
|
+
/* @__PURE__ */ d(B, {
|
|
1092
|
+
type: "button",
|
|
1093
|
+
variant: "outline",
|
|
1094
|
+
children: "View all projects"
|
|
1095
|
+
})
|
|
1096
|
+
]
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
//#endregion
|
|
1100
|
+
//#region src/blocks/PricingPanel.tsx
|
|
1101
|
+
var st = [
|
|
1102
|
+
"Unlimited themes",
|
|
1103
|
+
"Registry metadata",
|
|
1104
|
+
"Agent workflow docs"
|
|
1105
|
+
];
|
|
1106
|
+
function ct() {
|
|
1107
|
+
return /* @__PURE__ */ f("section", {
|
|
1108
|
+
className: "base-block",
|
|
1109
|
+
"aria-label": "Pricing panel block",
|
|
1110
|
+
children: [
|
|
1111
|
+
/* @__PURE__ */ f("div", {
|
|
1112
|
+
className: "base-block-split",
|
|
1113
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1114
|
+
className: "base-block-title",
|
|
1115
|
+
children: "Team plan"
|
|
1116
|
+
}), /* @__PURE__ */ d("p", {
|
|
1117
|
+
className: "base-block-copy",
|
|
1118
|
+
children: "A compact pricing panel for SaaS settings, upgrade, or billing screens."
|
|
1119
|
+
})] }), /* @__PURE__ */ f("div", {
|
|
1120
|
+
className: "base-block-price",
|
|
1121
|
+
children: ["$29", /* @__PURE__ */ d("span", { children: "/seat" })]
|
|
1122
|
+
})]
|
|
1123
|
+
}),
|
|
1124
|
+
/* @__PURE__ */ d("div", {
|
|
1125
|
+
className: "base-block-list",
|
|
1126
|
+
children: st.map((e) => /* @__PURE__ */ f("div", {
|
|
1127
|
+
className: "base-block-list-item",
|
|
1128
|
+
children: [/* @__PURE__ */ d(V, {
|
|
1129
|
+
defaultChecked: !0,
|
|
1130
|
+
"aria-label": e
|
|
1131
|
+
}), /* @__PURE__ */ d("div", {
|
|
1132
|
+
className: "base-block-list-main",
|
|
1133
|
+
children: /* @__PURE__ */ d("strong", { children: e })
|
|
1134
|
+
})]
|
|
1135
|
+
}, e))
|
|
1136
|
+
}),
|
|
1137
|
+
/* @__PURE__ */ d(B, {
|
|
1138
|
+
type: "button",
|
|
1139
|
+
children: "Upgrade plan"
|
|
1140
|
+
})
|
|
1141
|
+
]
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region src/blocks/SettingsForm.tsx
|
|
1146
|
+
var lt = {
|
|
1147
|
+
compact: "Compact",
|
|
1148
|
+
comfortable: "Comfortable",
|
|
1149
|
+
spacious: "Spacious"
|
|
1150
|
+
};
|
|
1151
|
+
function ut() {
|
|
1152
|
+
return /* @__PURE__ */ f("section", {
|
|
1153
|
+
className: "base-block",
|
|
1154
|
+
"aria-label": "Settings form block",
|
|
1155
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1156
|
+
className: "base-block-title",
|
|
1157
|
+
children: "Workspace Settings"
|
|
1158
|
+
}), /* @__PURE__ */ d("p", {
|
|
1159
|
+
className: "base-block-copy",
|
|
1160
|
+
children: "A production-style settings form for team preferences and workspace defaults."
|
|
1161
|
+
})] }), /* @__PURE__ */ d(W, {
|
|
1162
|
+
legend: "Workspace",
|
|
1163
|
+
children: /* @__PURE__ */ f("div", {
|
|
1164
|
+
className: "base-block-form",
|
|
1165
|
+
children: [
|
|
1166
|
+
/* @__PURE__ */ d(U, {
|
|
1167
|
+
label: "Workspace name",
|
|
1168
|
+
description: "Visible to invited team members.",
|
|
1169
|
+
children: /* @__PURE__ */ d(G, {
|
|
1170
|
+
id: "block-workspace-name",
|
|
1171
|
+
defaultValue: "Product Operations"
|
|
1172
|
+
})
|
|
1173
|
+
}),
|
|
1174
|
+
/* @__PURE__ */ d(J, {
|
|
1175
|
+
id: "block-density",
|
|
1176
|
+
label: "Interface density",
|
|
1177
|
+
defaultValue: "comfortable",
|
|
1178
|
+
items: lt
|
|
1179
|
+
}),
|
|
1180
|
+
/* @__PURE__ */ d(X, {
|
|
1181
|
+
id: "block-weekly-summary",
|
|
1182
|
+
defaultChecked: !0,
|
|
1183
|
+
label: "Send weekly summary"
|
|
1184
|
+
}),
|
|
1185
|
+
/* @__PURE__ */ f("div", {
|
|
1186
|
+
className: "base-block-actions",
|
|
1187
|
+
children: [/* @__PURE__ */ d(B, {
|
|
1188
|
+
type: "button",
|
|
1189
|
+
children: "Save settings"
|
|
1190
|
+
}), /* @__PURE__ */ d(B, {
|
|
1191
|
+
type: "button",
|
|
1192
|
+
variant: "outline",
|
|
1193
|
+
children: "Cancel"
|
|
1194
|
+
})]
|
|
1195
|
+
})
|
|
1196
|
+
]
|
|
1197
|
+
})
|
|
1198
|
+
})]
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
//#endregion
|
|
1202
|
+
//#region src/blocks/TeamActivityFeed.tsx
|
|
1203
|
+
var dt = [
|
|
1204
|
+
{
|
|
1205
|
+
title: "Published enterprise theme",
|
|
1206
|
+
meta: "Mina, 12m ago"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
title: "Reviewed registry copy plan",
|
|
1210
|
+
meta: "Ava, 34m ago"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
title: "Updated dashboard block",
|
|
1214
|
+
meta: "Noah, 1h ago"
|
|
1215
|
+
}
|
|
1216
|
+
];
|
|
1217
|
+
function ft() {
|
|
1218
|
+
return /* @__PURE__ */ f("section", {
|
|
1219
|
+
className: "base-block",
|
|
1220
|
+
"aria-label": "Team activity feed block",
|
|
1221
|
+
children: [
|
|
1222
|
+
/* @__PURE__ */ f("div", {
|
|
1223
|
+
className: "base-block-header",
|
|
1224
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1225
|
+
className: "base-block-title",
|
|
1226
|
+
children: "Team Activity"
|
|
1227
|
+
}), /* @__PURE__ */ d("p", {
|
|
1228
|
+
className: "base-block-copy",
|
|
1229
|
+
children: "A feed block for recent workspace changes and collaboration status."
|
|
1230
|
+
})] }), /* @__PURE__ */ f(z, { children: [
|
|
1231
|
+
/* @__PURE__ */ d(R, {
|
|
1232
|
+
fallback: "AV",
|
|
1233
|
+
size: "sm"
|
|
1234
|
+
}),
|
|
1235
|
+
/* @__PURE__ */ d(R, {
|
|
1236
|
+
fallback: "MN",
|
|
1237
|
+
size: "sm"
|
|
1238
|
+
}),
|
|
1239
|
+
/* @__PURE__ */ d(R, {
|
|
1240
|
+
fallback: "NH",
|
|
1241
|
+
size: "sm"
|
|
1242
|
+
})
|
|
1243
|
+
] })]
|
|
1244
|
+
}),
|
|
1245
|
+
/* @__PURE__ */ d("div", {
|
|
1246
|
+
className: "base-block-list",
|
|
1247
|
+
children: dt.map((e) => /* @__PURE__ */ d("div", {
|
|
1248
|
+
className: "base-block-list-item",
|
|
1249
|
+
children: /* @__PURE__ */ f("div", {
|
|
1250
|
+
className: "base-block-list-main",
|
|
1251
|
+
children: [/* @__PURE__ */ d("strong", { children: e.title }), /* @__PURE__ */ d("span", { children: e.meta })]
|
|
1252
|
+
})
|
|
1253
|
+
}, e.title))
|
|
1254
|
+
}),
|
|
1255
|
+
/* @__PURE__ */ d(B, {
|
|
1256
|
+
type: "button",
|
|
1257
|
+
variant: "outline",
|
|
1258
|
+
children: "Open activity"
|
|
1259
|
+
})
|
|
1260
|
+
]
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region src/blocks/ThemeShowcaseCard.tsx
|
|
1265
|
+
var pt = [{
|
|
1266
|
+
value: "tokens",
|
|
1267
|
+
label: "Tokens",
|
|
1268
|
+
title: "CSS variable contract",
|
|
1269
|
+
content: "Theme styles use shared semantic tokens for surfaces, text, focus, and controls."
|
|
1270
|
+
}, {
|
|
1271
|
+
value: "registry",
|
|
1272
|
+
label: "Registry",
|
|
1273
|
+
title: "Copy-ready metadata",
|
|
1274
|
+
content: "Components and blocks can be resolved from registry metadata for agent workflows."
|
|
1275
|
+
}];
|
|
1276
|
+
function mt() {
|
|
1277
|
+
return /* @__PURE__ */ f("section", {
|
|
1278
|
+
className: "base-block",
|
|
1279
|
+
"aria-label": "Theme showcase block",
|
|
1280
|
+
children: [
|
|
1281
|
+
/* @__PURE__ */ f("div", {
|
|
1282
|
+
className: "base-block-header",
|
|
1283
|
+
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("h2", {
|
|
1284
|
+
className: "base-block-title",
|
|
1285
|
+
children: "Theme Showcase"
|
|
1286
|
+
}), /* @__PURE__ */ d("p", {
|
|
1287
|
+
className: "base-block-copy",
|
|
1288
|
+
children: "A compact block for explaining theme value on landing or docs pages."
|
|
1289
|
+
})] }), /* @__PURE__ */ d("span", {
|
|
1290
|
+
className: "base-block-pill",
|
|
1291
|
+
children: "20 styles"
|
|
1292
|
+
})]
|
|
1293
|
+
}),
|
|
1294
|
+
/* @__PURE__ */ d("div", {
|
|
1295
|
+
className: "base-block-grid",
|
|
1296
|
+
"aria-label": "Theme swatches",
|
|
1297
|
+
children: [
|
|
1298
|
+
"--bt-bg",
|
|
1299
|
+
"--bt-surface",
|
|
1300
|
+
"--bt-primary",
|
|
1301
|
+
"--bt-secondary"
|
|
1302
|
+
].map((e) => /* @__PURE__ */ f("div", {
|
|
1303
|
+
className: "base-block-stat",
|
|
1304
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1305
|
+
className: "base-block-muted",
|
|
1306
|
+
children: e
|
|
1307
|
+
}), /* @__PURE__ */ d("span", { style: {
|
|
1308
|
+
display: "block",
|
|
1309
|
+
height: 24,
|
|
1310
|
+
marginTop: 8,
|
|
1311
|
+
border: "1px solid var(--bt-border)",
|
|
1312
|
+
borderRadius: "var(--bt-radius-sm)",
|
|
1313
|
+
background: `var(${e})`
|
|
1314
|
+
} })]
|
|
1315
|
+
}, e))
|
|
1316
|
+
}),
|
|
1317
|
+
/* @__PURE__ */ d(Ge, {
|
|
1318
|
+
panels: pt,
|
|
1319
|
+
defaultValue: "tokens"
|
|
1320
|
+
}),
|
|
1321
|
+
/* @__PURE__ */ d(B, {
|
|
1322
|
+
type: "button",
|
|
1323
|
+
children: "Open themes"
|
|
1324
|
+
})
|
|
1325
|
+
]
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
//#endregion
|
|
1329
|
+
//#region src/docs/themeMeta.json
|
|
1330
|
+
var ht = [
|
|
1331
|
+
{
|
|
1332
|
+
style: "bento",
|
|
1333
|
+
label: "Bento",
|
|
1334
|
+
description: "Warm modular product cards with soft depth and teal controls."
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
style: "shadcn",
|
|
1338
|
+
label: "Shadcn",
|
|
1339
|
+
description: "Neutral zinc interface styling modeled after shadcn/ui."
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
style: "neo-brutalism",
|
|
1343
|
+
label: "Neo Brutalism",
|
|
1344
|
+
description: "Hard borders, loud accents, and offset block shadows."
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
style: "minimal",
|
|
1348
|
+
label: "Minimal",
|
|
1349
|
+
description: "Swiss-inspired whitespace, thin rules, and quiet monochrome controls."
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
style: "enterprise",
|
|
1353
|
+
label: "Enterprise",
|
|
1354
|
+
description: "Dense operational UI with blue actions and explicit boundaries."
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
style: "linear",
|
|
1358
|
+
label: "Linear",
|
|
1359
|
+
description: "Developer-tool polish with subtle gradients and refined dark mode."
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
style: "glass",
|
|
1363
|
+
label: "Glass",
|
|
1364
|
+
description: "Translucent surfaces, blur, and luminous focus states."
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
style: "terminal",
|
|
1368
|
+
label: "Terminal",
|
|
1369
|
+
description: "Monospace command-line interface with phosphor green command surfaces."
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
style: "material",
|
|
1373
|
+
label: "Material",
|
|
1374
|
+
description: "Layered Google-style surfaces with blue primary actions and soft elevation."
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
style: "fluent",
|
|
1378
|
+
label: "Fluent",
|
|
1379
|
+
description: "Microsoft-style acrylic surfaces, soft blue accents, and gentle borders."
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
style: "retro",
|
|
1383
|
+
label: "Retro",
|
|
1384
|
+
description: "Early desktop UI cues with chunky controls and saturated classic colors."
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
style: "cyberpunk",
|
|
1388
|
+
label: "Cyberpunk",
|
|
1389
|
+
description: "Dark high-energy neon controls for expressive dashboards."
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
style: "editorial",
|
|
1393
|
+
label: "Editorial",
|
|
1394
|
+
description: "Magazine-like typography, ivory surfaces, and ink-forward contrast."
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
style: "calm",
|
|
1398
|
+
label: "Calm",
|
|
1399
|
+
description: "Low-saturation wellness palette with relaxed controls and readable contrast."
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
style: "data-dense",
|
|
1403
|
+
label: "Data Dense",
|
|
1404
|
+
description: "Compact analytics styling for tables, filters, and repeated workflows."
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
style: "playful",
|
|
1408
|
+
label: "Playful",
|
|
1409
|
+
description: "Rounded, bright, friendly components for creative and education tools."
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
style: "luxury",
|
|
1413
|
+
label: "Luxury",
|
|
1414
|
+
description: "Dark premium surfaces, gold accents, and fine-line hierarchy."
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
style: "soft-ui",
|
|
1418
|
+
label: "Soft UI",
|
|
1419
|
+
description: "Low-contrast tactile controls with inset and raised shadows."
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
style: "bauhaus",
|
|
1423
|
+
label: "Bauhaus",
|
|
1424
|
+
description: "Geometric composition with primary colors and strong graphic contrast."
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
style: "mono",
|
|
1428
|
+
label: "Mono",
|
|
1429
|
+
description: "Black-and-white ink system with no decorative color dependency."
|
|
1430
|
+
}
|
|
1431
|
+
], gt = [
|
|
881
1432
|
"bento",
|
|
882
1433
|
"shadcn",
|
|
883
1434
|
"neo-brutalism",
|
|
@@ -898,20 +1449,24 @@ var $e = new Set([
|
|
|
898
1449
|
"soft-ui",
|
|
899
1450
|
"bauhaus",
|
|
900
1451
|
"mono"
|
|
901
|
-
]
|
|
902
|
-
|
|
1452
|
+
], _t = ht;
|
|
1453
|
+
Object.fromEntries(_t.map((e) => [e.style, e.label])), Object.fromEntries(_t.map((e) => [e.style, e.description]));
|
|
1454
|
+
//#endregion
|
|
1455
|
+
//#region src/hooks/useTheme.ts
|
|
1456
|
+
var vt = new Set(gt);
|
|
1457
|
+
function yt() {
|
|
903
1458
|
if (typeof window > "u") return "system";
|
|
904
1459
|
let e = new URLSearchParams(window.location.search).get("theme");
|
|
905
1460
|
if (e === "light" || e === "dark" || e === "system") return e;
|
|
906
1461
|
let t = localStorage.getItem("bento-theme");
|
|
907
1462
|
return t === "light" || t === "dark" || t === "system" ? t : "system";
|
|
908
1463
|
}
|
|
909
|
-
function
|
|
1464
|
+
function bt() {
|
|
910
1465
|
if (typeof window > "u") return "bento";
|
|
911
1466
|
let e = new URLSearchParams(window.location.search).get("style");
|
|
912
|
-
if (e &&
|
|
1467
|
+
if (e && vt.has(e)) return e;
|
|
913
1468
|
let t = localStorage.getItem("bento-style");
|
|
914
|
-
return t &&
|
|
1469
|
+
return t && vt.has(t) ? t : "bento";
|
|
915
1470
|
}
|
|
916
1471
|
function Q(e) {
|
|
917
1472
|
return e === "system" ? typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
|
|
@@ -919,17 +1474,17 @@ function Q(e) {
|
|
|
919
1474
|
function $(e) {
|
|
920
1475
|
document.documentElement.setAttribute("data-theme", e);
|
|
921
1476
|
}
|
|
922
|
-
function
|
|
1477
|
+
function xt(e) {
|
|
923
1478
|
document.documentElement.setAttribute("data-style", e);
|
|
924
1479
|
}
|
|
925
|
-
function
|
|
926
|
-
let [e, t] = a(
|
|
1480
|
+
function St() {
|
|
1481
|
+
let [e, t] = a(yt), [i, o] = a(bt), s = n((e) => {
|
|
927
1482
|
t(e), localStorage.setItem("bento-theme", e), $(Q(e));
|
|
928
1483
|
}, []), c = n((e) => {
|
|
929
|
-
o(e), localStorage.setItem("bento-style", e),
|
|
1484
|
+
o(e), localStorage.setItem("bento-style", e), xt(e);
|
|
930
1485
|
}, []);
|
|
931
1486
|
return r(() => {
|
|
932
|
-
if ($(Q(e)),
|
|
1487
|
+
if ($(Q(e)), xt(i), e !== "system") return;
|
|
933
1488
|
let t = window.matchMedia("(prefers-color-scheme: dark)"), n = () => $(t.matches ? "dark" : "light");
|
|
934
1489
|
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
935
1490
|
}, [e, i]), {
|
|
@@ -941,4 +1496,4 @@ function rt() {
|
|
|
941
1496
|
};
|
|
942
1497
|
}
|
|
943
1498
|
//#endregion
|
|
944
|
-
export {
|
|
1499
|
+
export { Se as Accordion, Ce as AlertDialog, et as AuthCard, we as Autocomplete, R as Avatar, z as AvatarGroup, B as Button, V as Checkbox, Te as CheckboxGroup, Ee as Collapsible, H as Combobox, tt as CommandPaletteBlock, De as ContextMenu, Oe as CspProvider, rt as DashboardShell, ot as DataTableBlock, ke as Dialog, Ae as DirectionProvider, je as Drawer, U as Field, W as Fieldset, Me as Form, G as Input, Pe as Menu, Fe as Menubar, K as Meter, Ie as NavigationMenu, Le as NumberField, Re as OtpField, ze as Popover, Be as PreviewCard, ct as PricingPanel, q as Progress, Ve as Radio, He as RadioGroup, Ue as ScrollArea, J as Select, Y as Separator, ut as SettingsForm, We as Slider, X as Switch, Ge as Tabs, ft as TeamActivityFeed, Ne as Textarea, mt as ThemeShowcaseCard, Je as ToastProvider, Ke as Toggle, Xe as ToggleGroup, Ze as Toolbar, $e as Tooltip, le as useDirection, St as useTheme, Ye as useToastManager };
|