@refine-studio/ui 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +102 -2
- package/dist/components/accordion/accordion.d.ts +15 -0
- package/dist/components/accordion/accordion.js +58 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert/alert.d.ts +24 -0
- package/dist/components/alert/alert.js +98 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +36 -0
- package/dist/components/alert-dialog/alert-dialog.js +112 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +77 -0
- package/dist/components/app-shell/app-shell.js +224 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +32 -0
- package/dist/components/avatar/avatar.js +83 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +50 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/breadcrumb.js +82 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/button/button.d.ts +15 -0
- package/dist/components/button/button.js +75 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/card/card.d.ts +46 -0
- package/dist/components/card/card.js +124 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/checkbox.js +31 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/chip/chip.d.ts +25 -0
- package/dist/components/chip/chip.js +54 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/code/code.d.ts +15 -0
- package/dist/components/code/code.js +63 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/collapsible/collapsible.d.ts +14 -0
- package/dist/components/collapsible/collapsible.js +55 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +33 -0
- package/dist/components/combobox/combobox.js +244 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/command-menu/command-menu.d.ts +35 -0
- package/dist/components/command-menu/command-menu.js +116 -0
- package/dist/components/command-menu/command-menu.js.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +45 -0
- package/dist/components/context-menu/context-menu.js +136 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/data-table/data-table.d.ts +49 -0
- package/dist/components/data-table/data-table.js +171 -0
- package/dist/components/data-table/data-table.js.map +1 -0
- package/dist/components/data-table/sort-rows.d.ts +6 -0
- package/dist/components/data-table/sort-rows.js +33 -0
- package/dist/components/data-table/sort-rows.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +42 -0
- package/dist/components/dialog/dialog.js +118 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +45 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +137 -0
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/dropdown-menu/menu-styles.d.ts +10 -0
- package/dist/components/dropdown-menu/menu-styles.js +34 -0
- package/dist/components/dropdown-menu/menu-styles.js.map +1 -0
- package/dist/components/empty-state/empty-state.d.ts +12 -0
- package/dist/components/empty-state/empty-state.js +46 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/eyebrow/eyebrow.d.ts +9 -0
- package/dist/components/eyebrow/eyebrow.js +25 -0
- package/dist/components/eyebrow/eyebrow.js.map +1 -0
- package/dist/components/field/field.d.ts +56 -0
- package/dist/components/field/field.js +135 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/glow-border/glow-border.d.ts +9 -0
- package/dist/components/glow-border/glow-border.js +39 -0
- package/dist/components/glow-border/glow-border.js.map +1 -0
- package/dist/components/hex-field/hex-field.d.ts +12 -0
- package/dist/components/hex-field/hex-field.js +86 -0
- package/dist/components/hex-field/hex-field.js.map +1 -0
- package/dist/components/input/input.d.ts +14 -0
- package/dist/components/input/input.js +52 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +9 -0
- package/dist/components/kbd/kbd.js +26 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/label/label.d.ts +6 -0
- package/dist/components/label/label.js +17 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/logo/logo-paths.d.ts +5 -0
- package/dist/components/logo/logo-paths.js +20 -0
- package/dist/components/logo/logo-paths.js.map +1 -0
- package/dist/components/logo/logo.d.ts +18 -0
- package/dist/components/logo/logo.js +94 -0
- package/dist/components/logo/logo.js.map +1 -0
- package/dist/components/marquee/marquee.d.ts +15 -0
- package/dist/components/marquee/marquee.js +54 -0
- package/dist/components/marquee/marquee.js.map +1 -0
- package/dist/components/page-header/page-header.d.ts +15 -0
- package/dist/components/page-header/page-header.js +50 -0
- package/dist/components/page-header/page-header.js.map +1 -0
- package/dist/components/pagination/pagination.d.ts +28 -0
- package/dist/components/pagination/pagination.js +95 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/popover/popover.d.ts +14 -0
- package/dist/components/popover/popover.js +48 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/progress/progress.d.ts +14 -0
- package/dist/components/progress/progress.js +41 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +10 -0
- package/dist/components/radio-group/radio-group.js +33 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/section-heading/section-heading.d.ts +18 -0
- package/dist/components/section-heading/section-heading.js +57 -0
- package/dist/components/section-heading/section-heading.js.map +1 -0
- package/dist/components/select/select.d.ts +32 -0
- package/dist/components/select/select.js +100 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/separator.d.ts +10 -0
- package/dist/components/separator/separator.js +37 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/sheet/sheet.d.ts +29 -0
- package/dist/components/sheet/sheet.js +130 -0
- package/dist/components/sheet/sheet.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +5 -0
- package/dist/components/skeleton/skeleton.js +18 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/slider.d.ts +10 -0
- package/dist/components/slider/slider.js +36 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +9 -0
- package/dist/components/spinner/spinner.js +40 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/spotlight/spotlight.d.ts +9 -0
- package/dist/components/spotlight/spotlight.js +32 -0
- package/dist/components/spotlight/spotlight.js.map +1 -0
- package/dist/components/starfield/starfield.d.ts +11 -0
- package/dist/components/starfield/starfield.js +76 -0
- package/dist/components/starfield/starfield.js.map +1 -0
- package/dist/components/stat/stat.d.ts +28 -0
- package/dist/components/stat/stat.js +100 -0
- package/dist/components/stat/stat.js.map +1 -0
- package/dist/components/switch/switch.d.ts +13 -0
- package/dist/components/switch/switch.js +44 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/table.d.ts +52 -0
- package/dist/components/table/table.js +96 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +24 -0
- package/dist/components/tabs/tabs.js +89 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +5 -0
- package/dist/components/textarea/textarea.js +20 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/theme-switcher/theme-switcher.d.ts +7 -0
- package/dist/components/theme-switcher/theme-switcher.js +57 -0
- package/dist/components/theme-switcher/theme-switcher.js.map +1 -0
- package/dist/components/toaster/toaster.d.ts +7 -0
- package/dist/components/toaster/toaster.js +43 -0
- package/dist/components/toaster/toaster.js.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +24 -0
- package/dist/components/toggle-group/toggle-group.js +84 -0
- package/dist/components/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +19 -0
- package/dist/components/tooltip/tooltip.js +49 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/fonts/geist-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-mono.LICENSE +93 -0
- package/dist/fonts/geist-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts/geist.LICENSE +93 -0
- package/dist/icons/create-refine-icon.d.ts +13 -0
- package/dist/icons/create-refine-icon.js +37 -0
- package/dist/icons/create-refine-icon.js.map +1 -0
- package/dist/icons/icon.d.ts +10 -0
- package/dist/icons/icon.js +13 -0
- package/dist/icons/icon.js.map +1 -0
- package/dist/icons/refine-icon-names.d.ts +1857 -0
- package/dist/icons/refine-icon-names.js +471 -0
- package/dist/icons/refine-icon-names.js.map +1 -0
- package/dist/icons/refine-icons.d.ts +1852 -0
- package/dist/icons/refine-icons.js +604 -0
- package/dist/icons/refine-icons.js.map +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +61 -0
- package/dist/lib/cn.d.ts +5 -0
- package/dist/lib/cn.js +49 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/use-breakpoint.d.ts +16 -0
- package/dist/lib/use-breakpoint.js +52 -0
- package/dist/lib/use-breakpoint.js.map +1 -0
- package/dist/styles.css +697 -0
- package/dist/theme/theme-provider.d.ts +31 -0
- package/dist/theme/theme-provider.js +115 -0
- package/dist/theme/theme-provider.js.map +1 -0
- package/dist/theme/theme-scope.d.ts +12 -0
- package/dist/theme/theme-scope.js +22 -0
- package/dist/theme/theme-scope.js.map +1 -0
- package/dist/theme/theme.d.ts +20 -0
- package/dist/theme/theme.js +37 -0
- package/dist/theme/theme.js.map +1 -0
- package/package.json +91 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.js","names":["Toggle","TogglePrimitive","ToggleGroup","ToggleGroupPrimitive"],"sources":["../../../src/components/toggle-group/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Toggle as TogglePrimitive, ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';\nimport { type ComponentProps, createContext, use } from 'react';\n\nimport { cn } from '../../lib/cn';\n\nexport const toggleVariants = cva(\n [\n // base\n 'inline-flex shrink-0 items-center justify-center gap-1.5 rounded-control font-medium whitespace-nowrap text-muted-foreground select-none',\n 'transition-[background-color,color,box-shadow] duration-150 ease-out-expo',\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-[1.1em]\",\n 'focus-ring',\n // hover\n 'hover:bg-hover hover:text-foreground',\n // active\n 'active:scale-[0.98]',\n // disabled\n 'disabled:pointer-events-none disabled:opacity-45',\n ],\n {\n variants: {\n variant: {\n ghost: 'data-[state=on]:bg-pressed data-[state=on]:text-foreground',\n outline: 'border border-input data-[state=on]:border-foreground/30 data-[state=on]:bg-pressed data-[state=on]:text-foreground',\n segmented:\n 'data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm data-[state=on]:hover:bg-background',\n },\n size: {\n sm: 'h-control-xs px-2 text-caption',\n md: 'h-control-sm px-3 text-body-sm',\n lg: 'h-control-md px-4 text-body-sm',\n },\n },\n defaultVariants: {\n variant: 'ghost',\n size: 'md',\n },\n },\n);\n\ntype ToggleVariantProps = VariantProps<typeof toggleVariants>;\n\ninterface ToggleProps extends ComponentProps<typeof TogglePrimitive.Root>, ToggleVariantProps {}\n\n/**\n * Renders a two-state button that stays pressed while on, such as \"Billable only\".\n */\nexport const Toggle = ({ className, size, variant, ...props }: ToggleProps) => {\n return (\n <TogglePrimitive.Root className={cn(toggleVariants({ size, variant }), className)} data-slot=\"toggle\" {...props} />\n );\n};\n\nconst ToggleGroupContext = createContext<ToggleVariantProps>({\n size: 'md',\n variant: 'segmented',\n});\n\ntype ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & ToggleVariantProps;\n\n/**\n * Groups toggles; the default `segmented` variant sits the items in a muted track, as a view switcher.\n */\nexport const ToggleGroup = ({ className, size = 'md', variant = 'segmented', ...props }: ToggleGroupProps) => {\n return (\n <ToggleGroupContext\n value={{\n size,\n variant,\n }}\n >\n <ToggleGroupPrimitive.Root\n className={cn(\n 'inline-flex w-fit items-center gap-1',\n {\n 'rounded-control bg-muted p-1': variant === 'segmented',\n },\n className,\n )}\n data-slot=\"toggle-group\"\n data-variant={variant}\n {...props}\n />\n </ToggleGroupContext>\n );\n};\n\n/**\n * Renders one option of a `ToggleGroup`, inheriting the group's size and variant.\n */\nexport const ToggleGroupItem = ({ className, size, variant, ...props }: ComponentProps<typeof ToggleGroupPrimitive.Item> & ToggleVariantProps) => {\n const group = use(ToggleGroupContext);\n\n return (\n <ToggleGroupPrimitive.Item\n className={cn(toggleVariants({ size: size ?? group.size, variant: variant ?? group.variant }), className)}\n data-slot=\"toggle-group-item\"\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAQA,IAAa,iBAAiB,IAC5B;CAEE;CACA;CACA;CACA;CAEA;CAEA;CAEA;AACF,GACA;CACE,UAAU;EACR,SAAS;GACP,OAAO;GACP,SAAS;GACT,WACE;EACJ;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;;;;AASA,IAAaA,YAAU,EAAE,WAAW,MAAM,SAAS,GAAG,YAAyB;CAC7E,OACE,oBAACC,OAAgB,MAAjB;EAAsB,WAAW,GAAG,eAAe;GAAE;GAAM;EAAQ,CAAC,GAAG,SAAS;EAAG,aAAU;EAAS,GAAI;CAAQ,CAAA;AAEtH;AAEA,IAAM,qBAAqB,cAAkC;CAC3D,MAAM;CACN,SAAS;AACX,CAAC;;;;AAOD,IAAaC,iBAAe,EAAE,WAAW,OAAO,MAAM,UAAU,aAAa,GAAG,YAA8B;CAC5G,OACE,oBAAC,oBAAD;EACE,OAAO;GACL;GACA;EACF;EAEA,UAAA,oBAACC,YAAqB,MAAtB;GACE,WAAW,GACT,wCACA,EACE,gCAAgC,YAAY,YAC9C,GACA,SACF;GACA,aAAU;GACV,gBAAc;GACd,GAAI;EACL,CAAA;CACiB,CAAA;AAExB;;;;AAKA,IAAa,mBAAmB,EAAE,WAAW,MAAM,SAAS,GAAG,YAAmF;CAChJ,MAAM,QAAQ,IAAI,kBAAkB;CAEpC,OACE,oBAACA,YAAqB,MAAtB;EACE,WAAW,GAAG,eAAe;GAAE,MAAM,QAAQ,MAAM;GAAM,SAAS,WAAW,MAAM;EAAQ,CAAC,GAAG,SAAS;EACxG,aAAU;EACV,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Shares the hover delay between tooltips, so moving across a toolbar opens the next one instantly.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TooltipProvider: ({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) => import("react").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Holds one tooltip; wraps itself in a provider so it also works on its own.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Tooltip: (props: ComponentProps<typeof TooltipPrimitive.Root>) => import("react").JSX.Element;
|
|
11
|
+
export declare const TooltipTrigger: (props: ComponentProps<typeof TooltipPrimitive.Trigger>) => import("react").JSX.Element;
|
|
12
|
+
interface TooltipContentProps extends ComponentProps<typeof TooltipPrimitive.Content> {
|
|
13
|
+
showArrow?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Portals a compact label on the popover surface, so it follows the colour mode; `<kbd>` renders as a muted key cap.
|
|
17
|
+
*/
|
|
18
|
+
export declare const TooltipContent: ({ children, className, showArrow, sideOffset, ...props }: TooltipContentProps) => import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "../../lib/cn.js";
|
|
3
|
+
import { Tooltip } from "radix-ui";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/tooltip/tooltip.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Shares the hover delay between tooltips, so moving across a toolbar opens the next one instantly.
|
|
8
|
+
*/
|
|
9
|
+
var TooltipProvider = ({ delayDuration = 300, ...props }) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(Tooltip.Provider, {
|
|
11
|
+
"data-slot": "tooltip-provider",
|
|
12
|
+
delayDuration,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Holds one tooltip; wraps itself in a provider so it also works on its own.
|
|
18
|
+
*/
|
|
19
|
+
var Tooltip$1 = (props) => {
|
|
20
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Tooltip.Root, {
|
|
21
|
+
"data-slot": "tooltip",
|
|
22
|
+
...props
|
|
23
|
+
}) });
|
|
24
|
+
};
|
|
25
|
+
var TooltipTrigger = (props) => {
|
|
26
|
+
return /* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
27
|
+
"data-slot": "tooltip-trigger",
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Portals a compact label on the popover surface, so it follows the colour mode; `<kbd>` renders as a muted key cap.
|
|
33
|
+
*/
|
|
34
|
+
var TooltipContent = ({ children, className, showArrow = false, sideOffset = 6, ...props }) => {
|
|
35
|
+
return /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsxs(Tooltip.Content, {
|
|
36
|
+
className: cn("z-50 inline-flex max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-2 rounded-control border bg-popover px-2.5 py-1.5 text-caption font-medium text-balance text-popover-foreground shadow-float", "[&_kbd]:rounded-sm [&_kbd]:bg-muted [&_kbd]:px-1 [&_kbd]:font-mono [&_kbd]:text-caption", "animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", className),
|
|
37
|
+
"data-slot": "tooltip-content",
|
|
38
|
+
sideOffset,
|
|
39
|
+
...props,
|
|
40
|
+
children: [children, showArrow && /* @__PURE__ */ jsx(Tooltip.Arrow, {
|
|
41
|
+
className: "fill-popover",
|
|
42
|
+
height: 5,
|
|
43
|
+
width: 10
|
|
44
|
+
})]
|
|
45
|
+
}) });
|
|
46
|
+
};
|
|
47
|
+
export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":["TooltipPrimitive","Tooltip"],"sources":["../../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../../lib/cn';\n\n/**\n * Shares the hover delay between tooltips, so moving across a toolbar opens the next one instantly.\n */\nexport const TooltipProvider = ({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) => {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n};\n\n/**\n * Holds one tooltip; wraps itself in a provider so it also works on its own.\n */\nexport const Tooltip = (props: ComponentProps<typeof TooltipPrimitive.Root>) => {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n );\n};\n\nexport const TooltipTrigger = (props: ComponentProps<typeof TooltipPrimitive.Trigger>) => {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n};\n\ninterface TooltipContentProps extends ComponentProps<typeof TooltipPrimitive.Content> {\n showArrow?: boolean;\n}\n\n/**\n * Portals a compact label on the popover surface, so it follows the colour mode; `<kbd>` renders as a muted key cap.\n */\nexport const TooltipContent = ({\n children,\n className,\n showArrow = false,\n sideOffset = 6,\n ...props\n}: TooltipContentProps) => {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n className={cn(\n // base\n 'z-50 inline-flex max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-2 rounded-control border bg-popover px-2.5 py-1.5 text-caption font-medium text-balance text-popover-foreground shadow-float',\n '[&_kbd]:rounded-sm [&_kbd]:bg-muted [&_kbd]:px-1 [&_kbd]:font-mono [&_kbd]:text-caption',\n // animation\n 'animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n className,\n )}\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n {...props}\n >\n {children}\n {showArrow && <TooltipPrimitive.Arrow className=\"fill-popover\" height={5} width={10} />}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n};\n"],"mappings":";;;;;;;;AAUA,IAAa,mBAAmB,EAAE,gBAAgB,KAAK,GAAG,YAA8D;CACtH,OAAO,oBAACA,QAAiB,UAAlB;EAA2B,aAAU;EAAkC;EAAe,GAAI;CAAQ,CAAA;AAC3G;;;;AAKA,IAAaC,aAAW,UAAwD;CAC9E,OACE,oBAAC,iBAAD,EAAA,UACE,oBAACD,QAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ,CAAA,EACxC,CAAA;AAErB;AAEA,IAAa,kBAAkB,UAA2D;CACxF,OAAO,oBAACA,QAAiB,SAAlB;EAA0B,aAAU;EAAkB,GAAI;CAAQ,CAAA;AAC3E;;;;AASA,IAAa,kBAAkB,EAC7B,UACA,WACA,YAAY,OACZ,aAAa,GACb,GAAG,YACsB;CACzB,OACE,oBAACA,QAAiB,QAAlB,EAAA,UACE,qBAACA,QAAiB,SAAlB;EACE,WAAW,GAET,6NACA,2FAEA,+LACA,kGACA,SACF;EACA,aAAU;EACE;EACZ,GAAI;EAZN,UAAA,CAcG,UACA,aAAa,oBAACA,QAAiB,OAAlB;GAAwB,WAAU;GAAe,QAAQ;GAAG,OAAO;EAAK,CAAA,CAC9D;CACH,CAAA,EAAA,CAAA;AAE7B"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentProps, SVGProps } from 'react';
|
|
2
|
+
export interface RefineIconProps extends ComponentProps<'svg'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
type RefineIconPath = SVGProps<SVGPathElement>;
|
|
6
|
+
/**
|
|
7
|
+
* Builds a React icon from one sprite symbol, taking the same `size`, `strokeWidth` and `className` props as a lucide icon.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createRefineIcon: (name: string, viewBox: string, paths: RefineIconPath[]) => {
|
|
10
|
+
({ className, size, strokeWidth, ...props }: RefineIconProps): import("react").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/create-refine-icon.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Builds a React icon from one sprite symbol, taking the same `size`, `strokeWidth` and `className` props as a lucide icon.
|
|
6
|
+
*/
|
|
7
|
+
var createRefineIcon = (name, viewBox, paths) => {
|
|
8
|
+
/**
|
|
9
|
+
* Renders the icon in currentColor at a 1.75 stroke, which matches lucide's visual weight.
|
|
10
|
+
*/
|
|
11
|
+
const RefineIcon = ({ className, size = 24, strokeWidth = 1.75, ...props }) => {
|
|
12
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
className: cn("shrink-0", className),
|
|
15
|
+
"data-icon": name,
|
|
16
|
+
"data-slot": "icon",
|
|
17
|
+
fill: "none",
|
|
18
|
+
height: size,
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round",
|
|
22
|
+
strokeWidth,
|
|
23
|
+
viewBox,
|
|
24
|
+
width: size,
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
...props,
|
|
27
|
+
children: paths.map((path) => {
|
|
28
|
+
return /* @__PURE__ */ jsx("path", { ...path }, path.d);
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
RefineIcon.displayName = `RefineIcon${name.replaceAll("_", "")}`;
|
|
33
|
+
return RefineIcon;
|
|
34
|
+
};
|
|
35
|
+
export { createRefineIcon };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=create-refine-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refine-icon.js","names":[],"sources":["../../src/icons/create-refine-icon.tsx"],"sourcesContent":["import type { ComponentProps, SVGProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\nexport interface RefineIconProps extends ComponentProps<'svg'> {\n size?: number | string;\n}\n\ntype RefineIconPath = SVGProps<SVGPathElement>;\n\n/**\n * Builds a React icon from one sprite symbol, taking the same `size`, `strokeWidth` and `className` props as a lucide icon.\n */\nexport const createRefineIcon = (name: string, viewBox: string, paths: RefineIconPath[]) => {\n /**\n * Renders the icon in currentColor at a 1.75 stroke, which matches lucide's visual weight.\n */\n const RefineIcon = ({ className, size = 24, strokeWidth = 1.75, ...props }: RefineIconProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n className={cn('shrink-0', className)}\n data-icon={name}\n data-slot=\"icon\"\n fill=\"none\"\n height={size}\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={strokeWidth}\n viewBox={viewBox}\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n {paths.map((path) => {\n return <path key={path.d} {...path} />;\n })}\n </svg>\n );\n };\n\n RefineIcon.displayName = `RefineIcon${name.replaceAll('_', '')}`;\n\n return RefineIcon;\n};\n"],"mappings":";;;;;;AAaA,IAAa,oBAAoB,MAAc,SAAiB,UAA4B;;;;CAI1F,MAAM,cAAc,EAAE,WAAW,OAAO,IAAI,cAAc,MAAM,GAAG,YAA6B;EAC9F,OACE,oBAAC,OAAD;GACE,eAAY;GACZ,WAAW,GAAG,YAAY,SAAS;GACnC,aAAW;GACX,aAAU;GACV,MAAK;GACL,QAAQ;GACR,QAAO;GACP,eAAc;GACd,gBAAe;GACF;GACJ;GACT,OAAO;GACP,OAAM;GACN,GAAI;GAEH,UAAA,MAAM,KAAK,SAAS;IACnB,OAAO,oBAAC,QAAD,EAAmB,GAAI,KAAO,GAAnB,KAAK,CAAc;GACvC,CAAC;EACE,CAAA;CAET;CAEA,WAAW,cAAc,aAAa,KAAK,WAAW,KAAK,EAAE;CAE7D,OAAO;AACT"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RefineIconProps } from './create-refine-icon';
|
|
2
|
+
import { type IconName } from './refine-icon-names';
|
|
3
|
+
interface IconProps extends Omit<RefineIconProps, 'name'> {
|
|
4
|
+
name: IconName;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Draws the Refine icon with this sprite name, so an app can keep icon names in data. It takes the same props as every Refine icon.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Icon: ({ name, ...props }: IconProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { REFINE_ICON_NAMES } from "./refine-icon-names.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/icon.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Draws the Refine icon with this sprite name, so an app can keep icon names in data. It takes the same props as every Refine icon.
|
|
6
|
+
*/
|
|
7
|
+
var Icon = ({ name, ...props }) => {
|
|
8
|
+
const RefineIcon = REFINE_ICON_NAMES[name];
|
|
9
|
+
return /* @__PURE__ */ jsx(RefineIcon, { ...props });
|
|
10
|
+
};
|
|
11
|
+
export { Icon };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","names":[],"sources":["../../src/icons/icon.tsx"],"sourcesContent":["import type { RefineIconProps } from './create-refine-icon';\nimport { type IconName, REFINE_ICON_NAMES } from './refine-icon-names';\n\ninterface IconProps extends Omit<RefineIconProps, 'name'> {\n name: IconName;\n}\n\n/**\n * Draws the Refine icon with this sprite name, so an app can keep icon names in data. It takes the same props as every Refine icon.\n */\nexport const Icon = ({ name, ...props }: IconProps) => {\n const RefineIcon = REFINE_ICON_NAMES[name];\n\n return <RefineIcon {...props} />;\n};\n"],"mappings":";;;;;;AAUA,IAAa,QAAQ,EAAE,MAAM,GAAG,YAAuB;CACrD,MAAM,aAAa,kBAAkB;CAErC,OAAO,oBAAC,YAAD,EAAY,GAAI,MAAQ,CAAA;AACjC"}
|