@fldr/ui 0.3.9 → 0.3.10

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/README.md CHANGED
@@ -43,6 +43,7 @@ Popups portal to `<body>`, so put `data-theme`/`data-mode` there, and give your
43
43
  | `@fldr/ui/query` | `QueryState` (skeleton / error + retry / empty / data), `useToastMutation`, `createFldrQueryClient` for TanStack Query |
44
44
  | `@fldr/ui/router` | Typed TanStack Router links styled as fldr links, buttons, sidebar items and breadcrumbs |
45
45
  | `@fldr/ui/hotkeys` | TanStack Hotkeys plus `Kbd`, `useShortcut`, ⌘K for the command palette, and a `?` shortcuts dialog |
46
+ | `@fldr/ui/brands` | Official full-colour company logos from [svgl](https://svgl.app) (Google, Apple, Microsoft, GitHub, Slack…). Apple, GitHub and X follow dark mode. Phosphor's redrawn `*LogoIcon` marks are banned by lint |
46
47
  | `@fldr/ui/skeleton` | [skullet](https://skullet.lochie.me) skeletons that measure your real component, themed to fldr |
47
48
  | `@fldr/ui/code` | `CodeHighlighted` and `highlightCode` on TanStack Highlight, server or client |
48
49
  | `@fldr/ui/theming` | `defineTheme`, `extendTheme`, `generateThemeCSS` and the built-in fldr themes |
@@ -3468,7 +3468,8 @@
3468
3468
  "bg-kumo-tint",
3469
3469
  "ring-kumo-line",
3470
3470
  "text-kumo-danger",
3471
- "text-kumo-default"
3471
+ "text-kumo-default",
3472
+ "text-kumo-subtle"
3472
3473
  ],
3473
3474
  "subComponents": {
3474
3475
  "Trigger": {
@@ -4081,7 +4081,7 @@ DropdownMenu — accessible dropdown menu anchored to a trigger.
4081
4081
 
4082
4082
  **Colors (kumo tokens used):**
4083
4083
 
4084
- `bg-kumo-control`, `bg-kumo-danger`, `bg-kumo-hairline`, `bg-kumo-tint`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`
4084
+ `bg-kumo-control`, `bg-kumo-danger`, `bg-kumo-hairline`, `bg-kumo-tint`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-subtle`
4085
4085
 
4086
4086
  **Sub-Components:**
4087
4087
 
@@ -1 +1 @@
1
- 1795502513466
1
+ 1795502950437
@@ -18,9 +18,11 @@ export interface LoginPageProps extends Omit<
18
18
  *
19
19
  * @example
20
20
  * ```tsx
21
+ * import { Google } from "@fldr/ui/brands";
22
+ *
21
23
  * <LoginPage
22
24
  * logo={<FldrMark />}
23
- * providers={[{ id: "google", label: "Continue with Google", icon: <GoogleLogoIcon /> }]}
25
+ * providers={[{ id: "google", label: "Continue with Google", icon: <Google /> }]}
24
26
  * onProvider={startOAuth}
25
27
  * onSubmit={({ email, password }) => signIn(email, password)}
26
28
  * legal={<>By continuing you agree to the <a href="/terms">Terms</a>.</>}
package/dist/blocks.d.ts CHANGED
@@ -536,9 +536,11 @@ export interface LoginPageProps extends Omit<AuthCardProps, "className" | "logo"
536
536
  *
537
537
  * @example
538
538
  * ```tsx
539
+ * import { Google } from "@fldr/ui/brands";
540
+ *
539
541
  * <LoginPage
540
542
  * logo={<FldrMark />}
541
- * providers={[{ id: "google", label: "Continue with Google", icon: <GoogleLogoIcon /> }]}
543
+ * providers={[{ id: "google", label: "Continue with Google", icon: <Google /> }]}
542
544
  * onProvider={startOAuth}
543
545
  * onSubmit={({ email, password }) => signIn(email, password)}
544
546
  * legal={<>By continuing you agree to the <a href="/terms">Terms</a>.</>}
package/dist/blocks.js CHANGED
@@ -5,15 +5,15 @@ import { n as LinkButton, t as Button } from "./chunks/button-hzvowfkbathmx8yg.j
5
5
  import { t as Banner } from "./chunks/banner-mo1xl9ww734kgsqh.js";
6
6
  import { t as Checkbox } from "./chunks/checkbox-d5epe4dl78bzy4f8.js";
7
7
  import { t as ClipboardText } from "./chunks/clipboard-text-ejyilhenww9v18l4.js";
8
- import { t as DropdownMenu } from "./chunks/dropdown-e5zk0ez21busnt0b.js";
8
+ import { t as DropdownMenu } from "./chunks/dropdown-oec4g1w9kbsjsg15.js";
9
9
  import { n as KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS, r as KUMO_DELETE_RESOURCE_VARIANTS, t as DeleteResource } from "./chunks/delete-resource-cmlptb61ih8s84r3.js";
10
10
  import { t as Meter } from "./chunks/meter-poh8jpe0qtq6mvee.js";
11
11
  import { t as Select } from "./chunks/select-h2pejw38n5z3l59r.js";
12
12
  import { t as Tabs } from "./chunks/tabs-cja62qojznpj99et.js";
13
13
  import { i as Sidebar } from "./chunks/sidebar-mhlgvpawixxoey2k.js";
14
- import { t as LayerDialog } from "./chunks/layer-dialog-mnaw06pxom8q771w.js";
14
+ import { t as LayerDialog } from "./chunks/layer-dialog-ioa3r4ayemppsspx.js";
15
15
  import { compose, email, required, useAppForm } from "./form.js";
16
- import { a as DataTable, c as selectColumn, o as createColumnHelper, r as DataTableToolbar, t as functionalUpdate } from "./chunks/table-f8vl74hdx3bzqqbf.js";
16
+ import { a as DataTable, c as selectColumn, o as createColumnHelper, r as DataTableToolbar, t as functionalUpdate } from "./chunks/table-n5yarooiknhc18ln.js";
17
17
  import { useCallback, useId, useMemo, useRef, useState } from "react";
18
18
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
19
19
  import { ArrowClockwiseIcon, ArrowDownIcon, ArrowUpIcon, ArrowsLeftRightIcon, ChatCircleIcon, CheckCircleIcon, CircleIcon, DotsThreeIcon, FileIcon, FileImageIcon, FilePdfIcon, FileXlsIcon, FolderSimpleIcon, GlobeIcon, LockIcon, PencilSimpleIcon, ShareNetworkIcon, TrashIcon, UploadSimpleIcon, WarningCircleIcon, XIcon } from "@phosphor-icons/react";
@@ -1088,9 +1088,11 @@ function FolderGrid({ items, selectable = false, selectedIds, defaultSelectedIds
1088
1088
  *
1089
1089
  * @example
1090
1090
  * ```tsx
1091
+ * import { Google } from "@fldr/ui/brands";
1092
+ *
1091
1093
  * <LoginPage
1092
1094
  * logo={<FldrMark />}
1093
- * providers={[{ id: "google", label: "Continue with Google", icon: <GoogleLogoIcon /> }]}
1095
+ * providers={[{ id: "google", label: "Continue with Google", icon: <Google /> }]}
1094
1096
  * onProvider={startOAuth}
1095
1097
  * onSubmit={({ email, password }) => signIn(email, password)}
1096
1098
  * legal={<>By continuing you agree to the <a href="/terms">Terms</a>.</>}
@@ -0,0 +1,143 @@
1
+ import { ComponentType, SVGProps } from "react";
2
+ export * from "@ridemountainpig/svgl-react";
3
+ //#region src/brands/index.d.ts
4
+ export type BrandLogoProps = SVGProps<SVGSVGElement>;
5
+ /**
6
+ * Pairs svgl's light and dark variants into one logo. Both render; CSS in the
7
+ * fldr stylesheet shows the one matching the nearest `data-mode` (or the
8
+ * system scheme when no mode is set).
9
+ */
10
+ export declare function themedLogo(light: ComponentType<BrandLogoProps>, dark: ComponentType<BrandLogoProps>, displayName: string): {
11
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ /** Gives an svgl logo icon-like 1em defaults instead of 100%. */
15
+ export declare function sizedLogo(Logo: ComponentType<BrandLogoProps>, displayName: string): {
16
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export declare const Google: {
20
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export declare const Microsoft: {
24
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
27
+ export declare const Windows: {
28
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
31
+ export declare const Slack: {
32
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ };
35
+ export declare const Notion: {
36
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
37
+ displayName: string;
38
+ };
39
+ export declare const Dropbox: {
40
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
41
+ displayName: string;
42
+ };
43
+ export declare const LinkedIn: {
44
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
45
+ displayName: string;
46
+ };
47
+ export declare const Figma: {
48
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
49
+ displayName: string;
50
+ };
51
+ export declare const Linear: {
52
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
53
+ displayName: string;
54
+ };
55
+ export declare const Stripe: {
56
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
59
+ export declare const Zoom: {
60
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
61
+ displayName: string;
62
+ };
63
+ export declare const Discord: {
64
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
65
+ displayName: string;
66
+ };
67
+ export declare const Gmail: {
68
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
69
+ displayName: string;
70
+ };
71
+ export declare const GoogleDrive: {
72
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
73
+ displayName: string;
74
+ };
75
+ export declare const MicrosoftOutlook: {
76
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
77
+ displayName: string;
78
+ };
79
+ export declare const MicrosoftTeams: {
80
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
81
+ displayName: string;
82
+ };
83
+ export declare const MicrosoftOneDrive: {
84
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
85
+ displayName: string;
86
+ };
87
+ export declare const YouTube: {
88
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
89
+ displayName: string;
90
+ };
91
+ export declare const Facebook: {
92
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
93
+ displayName: string;
94
+ };
95
+ export declare const Instagram: {
96
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
97
+ displayName: string;
98
+ };
99
+ export declare const WhatsApp: {
100
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
101
+ displayName: string;
102
+ };
103
+ export declare const Shopify: {
104
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
105
+ displayName: string;
106
+ };
107
+ export declare const Salesforce: {
108
+ ({ width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
109
+ displayName: string;
110
+ };
111
+ export declare const Apple: {
112
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
113
+ displayName: string;
114
+ };
115
+ export declare const GitHub: {
116
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
117
+ displayName: string;
118
+ };
119
+ export declare const X: {
120
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
121
+ displayName: string;
122
+ };
123
+ export declare const Vercel: {
124
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
125
+ displayName: string;
126
+ };
127
+ export declare const OpenAI: {
128
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
129
+ displayName: string;
130
+ };
131
+ export declare const Anthropic: {
132
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
133
+ displayName: string;
134
+ };
135
+ export declare const AmazonWebServices: {
136
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
137
+ displayName: string;
138
+ };
139
+ export declare const Threads: {
140
+ ({ className, width, height, ...props }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
141
+ displayName: string;
142
+ };
143
+ //#endregion
package/dist/brands.js ADDED
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import { t as cn } from "./chunks/vendor-styling-gs32v7xt5znc8kg0.js";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ import * as svgl from "@ridemountainpig/svgl-react";
5
+ export * from "@ridemountainpig/svgl-react";
6
+ //#region src/brands/index.tsx
7
+ /**
8
+ * Official company logos from svgl (https://svgl.app), full colour.
9
+ *
10
+ * Use these instead of Phosphor's redrawn `*LogoIcon` marks (lint rule
11
+ * `kumo/no-phosphor-brand-logos`). The common brands below default to 1em, so
12
+ * they size like icons; logos with light and dark variants (Apple, GitHub, X…)
13
+ * follow `data-mode`. Every other svgl logo is re-exported as-is and fills its
14
+ * container unless you pass `width`/`height`.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { Apple, GitHub, Google, Microsoft } from "@fldr/ui/brands";
19
+ *
20
+ * <Button icon={<Google />}>Continue with Google</Button>
21
+ * <GitHub width={20} height={20} />
22
+ * ```
23
+ */
24
+ /**
25
+ * Pairs svgl's light and dark variants into one logo. Both render; CSS in the
26
+ * fldr stylesheet shows the one matching the nearest `data-mode` (or the
27
+ * system scheme when no mode is set).
28
+ */
29
+ function themedLogo(light, dark, displayName) {
30
+ const Light = light;
31
+ const Dark = dark;
32
+ function ThemedLogo({ className, width = "1em", height = "1em", ...props }) {
33
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Light, {
34
+ ...props,
35
+ width,
36
+ height,
37
+ className: cn("fldr-brand-light", className)
38
+ }), /* @__PURE__ */ jsx(Dark, {
39
+ ...props,
40
+ width,
41
+ height,
42
+ className: cn("fldr-brand-dark", className)
43
+ })] });
44
+ }
45
+ ThemedLogo.displayName = displayName;
46
+ return ThemedLogo;
47
+ }
48
+ /** Gives an svgl logo icon-like 1em defaults instead of 100%. */
49
+ function sizedLogo(Logo, displayName) {
50
+ function SizedLogo({ width = "1em", height = "1em", ...props }) {
51
+ return /* @__PURE__ */ jsx(Logo, {
52
+ width,
53
+ height,
54
+ ...props
55
+ });
56
+ }
57
+ SizedLogo.displayName = displayName;
58
+ return SizedLogo;
59
+ }
60
+ const Google = sizedLogo(svgl.Google, "Google");
61
+ const Microsoft = sizedLogo(svgl.Microsoft, "Microsoft");
62
+ const Windows = sizedLogo(svgl.Windows, "Windows");
63
+ const Slack = sizedLogo(svgl.Slack, "Slack");
64
+ const Notion = sizedLogo(svgl.Notion, "Notion");
65
+ const Dropbox = sizedLogo(svgl.Dropbox, "Dropbox");
66
+ const LinkedIn = sizedLogo(svgl.LinkedIn, "LinkedIn");
67
+ const Figma = sizedLogo(svgl.Figma, "Figma");
68
+ const Linear = sizedLogo(svgl.Linear, "Linear");
69
+ const Stripe = sizedLogo(svgl.Stripe, "Stripe");
70
+ const Zoom = sizedLogo(svgl.Zoom, "Zoom");
71
+ const Discord = sizedLogo(svgl.Discord, "Discord");
72
+ const Gmail = sizedLogo(svgl.Gmail, "Gmail");
73
+ const GoogleDrive = sizedLogo(svgl.GoogleDrive, "GoogleDrive");
74
+ const MicrosoftOutlook = sizedLogo(svgl.MicrosoftOutlook, "MicrosoftOutlook");
75
+ const MicrosoftTeams = sizedLogo(svgl.MicrosoftTeams, "MicrosoftTeams");
76
+ const MicrosoftOneDrive = sizedLogo(svgl.MicrosoftOneDrive, "MicrosoftOneDrive");
77
+ const YouTube = sizedLogo(svgl.YouTube, "YouTube");
78
+ const Facebook = sizedLogo(svgl.Facebook, "Facebook");
79
+ const Instagram = sizedLogo(svgl.Instagram, "Instagram");
80
+ const WhatsApp = sizedLogo(svgl.WhatsApp, "WhatsApp");
81
+ const Shopify = sizedLogo(svgl.Shopify, "Shopify");
82
+ const Salesforce = sizedLogo(svgl.Salesforce, "Salesforce");
83
+ const Apple = themedLogo(svgl.AppleLight, svgl.AppleDark, "Apple");
84
+ const GitHub = themedLogo(svgl.GitHubLight, svgl.GitHubDark, "GitHub");
85
+ const X = themedLogo(svgl.XLight, svgl.XDark, "X");
86
+ const Vercel = themedLogo(svgl.VercelLight, svgl.VercelDark, "Vercel");
87
+ const OpenAI = themedLogo(svgl.OpenAILight, svgl.OpenAIDark, "OpenAI");
88
+ const Anthropic = themedLogo(svgl.AnthropicLight, svgl.AnthropicDark, "Anthropic");
89
+ const AmazonWebServices = themedLogo(svgl.AmazonWebServicesLight, svgl.AmazonWebServicesDark, "AmazonWebServices");
90
+ const Threads = themedLogo(svgl.ThreadsLight, svgl.ThreadsDark, "Threads");
91
+ //#endregion
92
+ export { AmazonWebServices, Anthropic, Apple, Discord, Dropbox, Facebook, Figma, GitHub, Gmail, Google, GoogleDrive, Instagram, Linear, LinkedIn, Microsoft, MicrosoftOneDrive, MicrosoftOutlook, MicrosoftTeams, Notion, OpenAI, Salesforce, Shopify, Slack, Stripe, Threads, Vercel, WhatsApp, Windows, X, YouTube, Zoom, sizedLogo, themedLogo };
@@ -287,7 +287,7 @@ const DropdownMenuSeparator = React$1.forwardRef(({ className, ...props }, ref)
287
287
  DropdownMenuSeparator.displayName = Separator.displayName;
288
288
  const DropdownMenuShortcut = ({ className, ...props }) => {
289
289
  return /* @__PURE__ */ jsx("span", {
290
- className: cn("ml-auto text-xs tracking-widest opacity-60", className),
290
+ className: cn("ml-auto text-xs text-kumo-subtle", className),
291
291
  ...props
292
292
  });
293
293
  };
@@ -7,7 +7,7 @@ import { t as Button } from "./button-hzvowfkbathmx8yg.js";
7
7
  import { n as useKumoLocale } from "./locale-provider-j4ii538ntyok36r6.js";
8
8
  import { t as Text } from "./text-nqum95flcp07ac9s.js";
9
9
  import { t as LayerCard } from "./layer-card-lsmeuqic9i1isv2b.js";
10
- import { t as DropdownMenu } from "./dropdown-e5zk0ez21busnt0b.js";
10
+ import { t as DropdownMenu } from "./dropdown-oec4g1w9kbsjsg15.js";
11
11
  import { i as ScrollAreaViewport, n as ScrollAreaContent, r as ScrollAreaScrollbar, s as ScrollAreaRoot, t as ScrollAreaThumb } from "./ScrollAreaThumb-hxig41yn4lrurd3o.js";
12
12
  import { t as ButtonGroup } from "./button-group-biv43ksvaipc3p5n.js";
13
13
  import { a as DrawerRoot, g as DrawerBackdrop, h as DrawerClose, i as DrawerTitle, m as DrawerContent, o as DrawerPortal, p as DrawerDescription, r as DrawerTrigger, s as DrawerPopup, t as DrawerViewport } from "./DrawerViewport-mzqpwvqtylnad8ib.js";
@@ -3,7 +3,7 @@ import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
3
3
  import { t as Button } from "./button-hzvowfkbathmx8yg.js";
4
4
  import { t as Checkbox } from "./checkbox-d5epe4dl78bzy4f8.js";
5
5
  import { t as InputGroup } from "./input-group-h9fepskc84e1h11n.js";
6
- import { t as DropdownMenu } from "./dropdown-e5zk0ez21busnt0b.js";
6
+ import { t as DropdownMenu } from "./dropdown-oec4g1w9kbsjsg15.js";
7
7
  import { t as Pagination } from "./pagination-n96r3xdok9nc3pu5.js";
8
8
  import { r as Table } from "./table-bdye068ekayq3u1n.js";
9
9
  import { SkeletonBox } from "../skeleton.js";
@@ -24,7 +24,7 @@ const TableOfContentsRoot = forwardRef(({ className, "aria-label": ariaLabel = "
24
24
  }));
25
25
  const TableOfContentsTitle = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("p", {
26
26
  ref,
27
- className: cn("mb-3 text-xs font-semibold tracking-wide text-kumo-subtle uppercase", className),
27
+ className: cn("mb-2 text-sm text-kumo-subtle", className),
28
28
  ...props
29
29
  }));
30
30
  const TableOfContentsList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("ul", {
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as DropdownMenu } from "../chunks/dropdown-e5zk0ez21busnt0b.js";
2
+ import { t as DropdownMenu } from "../chunks/dropdown-oec4g1w9kbsjsg15.js";
3
3
  export { DropdownMenu };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as LayerDialog } from "../chunks/layer-dialog-mnaw06pxom8q771w.js";
2
+ import { t as LayerDialog } from "../chunks/layer-dialog-ioa3r4ayemppsspx.js";
3
3
  export { LayerDialog };
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { i as TableOfContents, n as KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, r as KUMO_TABLE_OF_CONTENTS_VARIANTS, t as useTableOfContentsActiveId } from "../chunks/table-of-contents-gkjv9ck8etbz64ej.js";
2
+ import { i as TableOfContents, n as KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, r as KUMO_TABLE_OF_CONTENTS_VARIANTS, t as useTableOfContentsActiveId } from "../chunks/table-of-contents-d3pmkrk223umdz9h.js";
3
3
  export { KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, KUMO_TABLE_OF_CONTENTS_VARIANTS, TableOfContents, useTableOfContentsActiveId };
package/dist/hotkeys.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { t as cn } from "./chunks/vendor-styling-gs32v7xt5znc8kg0.js";
3
3
  import { t as Button } from "./chunks/button-hzvowfkbathmx8yg.js";
4
- import { t as DropdownMenu } from "./chunks/dropdown-e5zk0ez21busnt0b.js";
5
- import { t as LayerDialog } from "./chunks/layer-dialog-mnaw06pxom8q771w.js";
4
+ import { t as DropdownMenu } from "./chunks/dropdown-oec4g1w9kbsjsg15.js";
5
+ import { t as LayerDialog } from "./chunks/layer-dialog-ioa3r4ayemppsspx.js";
6
6
  import { useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { MagnifyingGlassIcon } from "@phosphor-icons/react";
@@ -92,10 +92,7 @@ function ShortcutHint({ keys, onTrigger, options, ...props }) {
92
92
  * ```
93
93
  */
94
94
  function MenuShortcut(props) {
95
- return /* @__PURE__ */ jsx(DropdownMenu.Shortcut, {
96
- className: "tracking-normal opacity-100",
97
- children: /* @__PURE__ */ jsx(Kbd, { ...props })
98
- });
95
+ return /* @__PURE__ */ jsx(DropdownMenu.Shortcut, { children: /* @__PURE__ */ jsx(Kbd, { ...props }) });
99
96
  }
100
97
  //#endregion
101
98
  //#region src/hotkeys/command-palette-trigger.tsx
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import { t as Combobox } from "./chunks/combobox-m531jeqdbmqzt2gy.js";
26
26
  import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "./chunks/toolbar-kh6pc12ii7b6dv1x.js";
27
27
  import { t as LayerCard } from "./chunks/layer-card-lsmeuqic9i1isv2b.js";
28
28
  import { a as DialogTitle, i as DialogRoot, n as DialogClose, o as DialogTrigger, r as DialogDescription, t as Dialog } from "./chunks/dialog-g7wavhkdv2gplwq9.js";
29
- import { t as DropdownMenu } from "./chunks/dropdown-e5zk0ez21busnt0b.js";
29
+ import { t as DropdownMenu } from "./chunks/dropdown-oec4g1w9kbsjsg15.js";
30
30
  import { t as Collapsible } from "./chunks/collapsible-ic6813hc4yv5s5hv.js";
31
31
  import { n as KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS, r as KUMO_DELETE_RESOURCE_VARIANTS, t as DeleteResource } from "./chunks/delete-resource-cmlptb61ih8s84r3.js";
32
32
  import { t as SkeletonLine } from "./chunks/skeleton-line-kmhnp0lx3rxhioxa.js";
@@ -52,10 +52,10 @@ import { t as Flow } from "./chunks/flow-fak0fyldoaozd32s.js";
52
52
  import { a as ChartLegend, c as ChartPalette, i as SankeyChart, n as BubbleMap, o as TimeseriesChart, r as ChoroplethMap, s as Chart, t as GlobeMap } from "./chunks/chart-dgh98nbzo2sux2bs.js";
53
53
  import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "./chunks/autocomplete-nsvacdbq7uz0m71c.js";
54
54
  import { A as useSidebar, C as SidebarRail, D as SidebarSlidingView, E as SidebarSeparator, O as SidebarSlidingViews, S as SidebarProvider, T as SidebarRoot, _ as SidebarMenuChevron, a as SidebarCollapsible, b as SidebarMenuSubButton, c as SidebarContent, d as SidebarGroupLabel, f as SidebarHeader, g as SidebarMenuButton, h as SidebarMenuBadge, i as Sidebar, k as SidebarTrigger, l as SidebarFooter, m as SidebarMenu, n as KUMO_SIDEBAR_STYLING, o as SidebarCollapsibleContent, p as SidebarLoading, r as KUMO_SIDEBAR_VARIANTS, s as SidebarCollapsibleTrigger, t as KUMO_SIDEBAR_DEFAULT_VARIANTS, u as SidebarGroup, v as SidebarMenuItem, w as SidebarResizeHandle, x as SidebarMenuSubItem, y as SidebarMenuSub } from "./chunks/sidebar-mhlgvpawixxoey2k.js";
55
- import { i as TableOfContents, n as KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, r as KUMO_TABLE_OF_CONTENTS_VARIANTS, t as useTableOfContentsActiveId } from "./chunks/table-of-contents-gkjv9ck8etbz64ej.js";
55
+ import { i as TableOfContents, n as KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, r as KUMO_TABLE_OF_CONTENTS_VARIANTS, t as useTableOfContentsActiveId } from "./chunks/table-of-contents-d3pmkrk223umdz9h.js";
56
56
  import { i as KUMO_BUTTON_GROUP_VARIANTS, n as KUMO_BUTTON_GROUP_DEFAULT_VARIANTS, r as KUMO_BUTTON_GROUP_STYLING, t as ButtonGroup } from "./chunks/button-group-biv43ksvaipc3p5n.js";
57
57
  import "./components/button-group.js";
58
58
  import { t as TagInput } from "./chunks/tag-input-lbx9yzt33d4wu07o.js";
59
- import { t as LayerDialog } from "./chunks/layer-dialog-mnaw06pxom8q771w.js";
59
+ import { t as LayerDialog } from "./chunks/layer-dialog-ioa3r4ayemppsspx.js";
60
60
  import { i as sliderVariants, n as KUMO_SLIDER_VARIANTS, r as Slider, t as KUMO_SLIDER_DEFAULT_VARIANTS } from "./chunks/slider-e395gihi5cjd62ss.js";
61
61
  export { Autocomplete, Badge, Banner, BannerVariant, Breadcrumb as Breadcrumbs, BubbleMap, Button, ButtonGroup, Chart, ChartLegend, ChartPalette, Checkbox, ChoroplethMap, ClipboardText, CloudflareLogo, Code, CodeBlock, Collapsible, Combobox, CommandPalette, DatePicker, DateRangePicker, DeleteResource, Dialog, DialogClose, DialogDescription, DialogRoot, DialogTitle, DialogTrigger, DropdownMenu, Empty, Field, Flow, GlobeMap, Grid, GridItem, InlineCopyText, Input, InputArea, InputGroup, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, KUMO_BUTTON_GROUP_DEFAULT_VARIANTS, KUMO_BUTTON_GROUP_STYLING, KUMO_BUTTON_GROUP_VARIANTS, KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS, KUMO_CLOUDFLARE_LOGO_VARIANTS, KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS, KUMO_COMMAND_PALETTE_VARIANTS, KUMO_DELETE_RESOURCE_DEFAULT_VARIANTS, KUMO_DELETE_RESOURCE_VARIANTS, KUMO_FIELD_DEFAULT_VARIANTS, KUMO_FIELD_VARIANTS, KUMO_GRID_DEFAULT_VARIANTS, KUMO_GRID_VARIANTS, KUMO_INLINE_COPY_TEXT_DEFAULT_VARIANTS, KUMO_INLINE_COPY_TEXT_STYLING, KUMO_INLINE_COPY_TEXT_VARIANTS, KUMO_LABEL_DEFAULT_VARIANTS, KUMO_LABEL_VARIANTS, KUMO_LINK_DEFAULT_VARIANTS, KUMO_LINK_VARIANTS, KUMO_POPOVER_DEFAULT_VARIANTS, KUMO_POPOVER_VARIANTS, KUMO_RADIO_DEFAULT_VARIANTS, KUMO_RADIO_VARIANTS, KUMO_SENSITIVE_INPUT_DEFAULT_VARIANTS, KUMO_SENSITIVE_INPUT_VARIANTS, KUMO_SIDEBAR_DEFAULT_VARIANTS, KUMO_SIDEBAR_STYLING, KUMO_SIDEBAR_VARIANTS, KUMO_SLIDER_DEFAULT_VARIANTS, KUMO_SLIDER_VARIANTS, KUMO_TABLE_OF_CONTENTS_DEFAULT_VARIANTS, KUMO_TABLE_OF_CONTENTS_VARIANTS, KUMO_TOOLBAR_DEFAULT_VARIANTS, KUMO_TOOLBAR_VARIANTS, KumoLocaleProvider, KumoPortalProvider, Label, LayerCard, LayerDialog, Link, LinkButton, LinkProvider, Loader, MenuBar, Meter, Pagination, Popover, PoweredByCloudflare, Radio, RadioGroup, RefreshButton, SankeyChart, Select, SensitiveInput, Sidebar, SidebarCollapsible, SidebarCollapsibleContent, SidebarCollapsibleTrigger, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarLoading, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarResizeHandle, SidebarRoot, SidebarSeparator, SidebarSlidingView, SidebarSlidingViews, SidebarTrigger, SkeletonLine, Slider, Surface, Switch, Table, TableOfContents, Tabs, TagInput, Text, Textarea, TimeseriesChart, index_parts_exports as Toast, ToastProvider, Toasty, Toolbar, Tooltip, TooltipProvider, autocompleteVariants, buttonVariants, cn, createKumoToastManager, fieldVariants, generateCloudflareLogoSvg, gridItemVariants, gridVariants, inputVariants, labelContentVariants, labelVariants, linkVariants, radioVariants, safeRandomId, sliderVariants, useKumoToastManager, useLinkComponent, useMenuNavigation, useSidebar, useTableOfContentsActiveId };
@@ -56,6 +56,32 @@
56
56
  --skullet-highlight: color-mix(in oklab, var(--text-color-kumo-default) 5%, transparent);
57
57
  --skullet-radius: 0.375rem;
58
58
  }
59
+
60
+ /* Themed brand logos (@fldr/ui/brands) render both variants; show one.
61
+ Order matters: system scheme first, then an explicit data-mode wins. */
62
+ .fldr-brand-dark {
63
+ display: none;
64
+ }
65
+ @media (prefers-color-scheme: dark) {
66
+ .fldr-brand-light {
67
+ display: none;
68
+ }
69
+ .fldr-brand-dark {
70
+ display: inline;
71
+ }
72
+ }
73
+ [data-mode="light"] .fldr-brand-light {
74
+ display: inline;
75
+ }
76
+ [data-mode="light"] .fldr-brand-dark {
77
+ display: none;
78
+ }
79
+ [data-mode="dark"] .fldr-brand-light {
80
+ display: none;
81
+ }
82
+ [data-mode="dark"] .fldr-brand-dark {
83
+ display: inline;
84
+ }
59
85
  }
60
86
 
61
87
  @layer utilities {