dawn-ui-react 1.0.0-alpha.7 → 1.0.0-alpha.9

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.
Files changed (29) hide show
  1. package/dist/{Input-BkHt7FC1.js → Input-kWMjBJ1G.js} +2 -2
  2. package/dist/{clamp-Bd-I2_Rk.js → clamp-adUQHSQX.js} +2 -2
  3. package/dist/components/code-block/code-block-actions.d.ts +2 -0
  4. package/dist/components/code-block/code-block-copy.d.ts +2 -0
  5. package/dist/components/code-block/code-block-download.d.ts +2 -0
  6. package/dist/components/code-block/code-block-header-group.d.ts +2 -0
  7. package/dist/components/code-block/code-block-header.d.ts +3 -0
  8. package/dist/components/code-block/code-block-name.d.ts +2 -0
  9. package/dist/components/code-block/code-block-select.d.ts +2 -0
  10. package/dist/components/code-block/code-block-tabs.d.ts +2 -0
  11. package/dist/components/code-block/code-block-window.d.ts +3 -0
  12. package/dist/components/code-block/code-block.d.ts +3 -0
  13. package/dist/components/code-block/code-block.types.d.ts +26 -0
  14. package/dist/components/code-block/index.d.ts +2 -0
  15. package/dist/components/index.d.ts +1 -0
  16. package/dist/components/popover/index.d.ts +2 -1
  17. package/dist/components/popover/popover-button.d.ts +2 -0
  18. package/dist/components/popover/popover.types.d.ts +2 -0
  19. package/dist/components/tabs/tabs.types.d.ts +1 -1
  20. package/dist/dawn-ui-react.js +1347 -1314
  21. package/dist/dawn-ui-react.umd.cjs +24 -24
  22. package/dist/{field-input-group-input-DnJFuMi4.js → field-input-group-input-CtDhhP9-.js} +2 -2
  23. package/dist/{field-input-group-BwMQAM6n.js → field-input-group-zaT2fZVE.js} +2 -2
  24. package/dist/{form-context-om_k3VKa.js → form-context-D_CUI37x.js} +2 -2
  25. package/dist/{input-group-CWH7SWRv.js → input-group-B9tCZ-1V.js} +1 -1
  26. package/dist/{input-group-input-DOxvfiMV.js → input-group-input-DJJYMhiE.js} +1 -1
  27. package/dist/{input.types-BeeCYL9x.js → input.types-Cv68_8o4.js} +1 -1
  28. package/dist/{useLabelableId-B_P81Wgy.js → useLabelableId-Cu8szM6L.js} +1 -1
  29. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
- import { V as e, X as t, Z as n } from "./form-context-om_k3VKa.js";
2
- import { F as r, K as i, c as a, i as o, n as s, o as c, p as l, r as u, s as d, t as f } from "./useLabelableId-B_P81Wgy.js";
1
+ import { V as e, X as t, Z as n } from "./form-context-D_CUI37x.js";
2
+ import { F as r, K as i, c as a, i as o, n as s, o as c, p as l, r as u, s as d, t as f } from "./useLabelableId-Cu8szM6L.js";
3
3
  import * as p from "react";
4
4
  import { jsx as m } from "react/jsx-runtime";
5
5
  //#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/field/control/FieldControl.js
@@ -1,5 +1,5 @@
1
- import { A as e, C as t, D as n, E as r, F as i, G as a, I as o, J as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, T as _, V as v, W as y, X as b, Z as x, j as S, k as C, w, x as T, z as E } from "./form-context-om_k3VKa.js";
2
- import { C as D, I as ee, W as O, c as k, f as A, l as j, p as M, s as N, u as te } from "./useLabelableId-B_P81Wgy.js";
1
+ import { A as e, C as t, D as n, E as r, F as i, G as a, I as o, J as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, T as _, V as v, W as y, X as b, Z as x, j as S, k as C, w, x as T, z as E } from "./form-context-D_CUI37x.js";
2
+ import { C as D, I as ee, W as O, c as k, f as A, l as j, p as M, s as N, u as te } from "./useLabelableId-Cu8szM6L.js";
3
3
  import * as P from "react";
4
4
  import { useLayoutEffect as ne } from "react";
5
5
  import { jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -0,0 +1,2 @@
1
+ import { CodeBlockActionsProps } from './code-block.types';
2
+ export declare const CodeBlockActions: ({ className, children, ref, ...props }: CodeBlockActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CodeBlockCopyProps } from './code-block.types';
2
+ export declare const CodeBlockCopy: ({ className, children, ref, ...props }: CodeBlockCopyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CodeBlockDownloadProps } from './code-block.types';
2
+ export declare const CodeBlockDownload: ({ className, children, ref, ...props }: CodeBlockDownloadProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CodeBlockHeaderGroupProps } from './code-block.types';
2
+ export declare const CodeBlockHeaderGroup: ({ className, children, ref, ...props }: CodeBlockHeaderGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ type CodeBlockHeaderProps = React.ComponentProps<'div'>;
2
+ export declare const CodeBlockHeader: ({ className, children, ref, ...props }: CodeBlockHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CodeBlockNameProps } from './code-block.types';
2
+ export declare const CodeBlockName: ({ className, children, ref, ...props }: CodeBlockNameProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CodeBlockSelectProps } from './code-block.types';
2
+ export declare const CodeBlockSelect: ({ className, children, ref, ...props }: CodeBlockSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CodeBlockTabsProps } from './code-block.types';
2
+ export declare const CodeBlockTabs: ({ className, children, ref, ...props }: CodeBlockTabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ type CodeBlockWindowProps = React.ComponentProps<'div'>;
2
+ export declare const CodeBlockWindow: ({ className, children, ref, ...props }: CodeBlockWindowProps) => import("react/jsx-runtime").JSX.Element;
3
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CodeBlockProps, CodeBlockProviderState } from './code-block.types';
2
+ export declare const CodeBlock: ({ items, defaultValue, className, children, ref, ...props }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const useCodeBlock: () => CodeBlockProviderState;
@@ -0,0 +1,26 @@
1
+ import { SelectTrigger } from '../select';
2
+ import { Tabs } from '../tabs';
3
+ export type CodeBlockProps = Omit<React.ComponentProps<'div'>, 'defaultValue'> & {
4
+ defaultValue: CodeBlockValue;
5
+ items: CodeBlockValue[];
6
+ };
7
+ export type CodeBlockProviderState = {
8
+ currentValue: CodeBlockValue;
9
+ setCurrentValue: React.Dispatch<React.SetStateAction<CodeBlockValue>>;
10
+ items: CodeBlockValue[];
11
+ };
12
+ export type CodeBlockValue = {
13
+ id: string;
14
+ label: string;
15
+ name: string;
16
+ content: string;
17
+ icon?: React.ReactNode;
18
+ };
19
+ export type CodeBlockTabsProps = React.ComponentProps<typeof Tabs>;
20
+ export type CodeBlockCopyProps = React.ComponentProps<'button'>;
21
+ export type CodeBlockNameProps = React.ComponentProps<'div'>;
22
+ export type CodeBlockSelectProps = React.ComponentProps<typeof SelectTrigger>;
23
+ export type CodeBlockHeaderGroupProps = React.ComponentProps<'div'>;
24
+ export type CodeBlockTitleProps = React.ComponentProps<'div'>;
25
+ export type CodeBlockDownloadProps = React.ComponentProps<'button'>;
26
+ export type CodeBlockActionsProps = React.ComponentProps<'div'>;
@@ -0,0 +1,2 @@
1
+ export type { CodeBlockProps } from './code-block.types';
2
+ export { CodeBlock } from './code-block';
@@ -10,6 +10,7 @@ export * from './button-group';
10
10
  export * from './checkbox';
11
11
  export * from './checkbox-group';
12
12
  export * from './collapsible';
13
+ export * from './code-block';
13
14
  export * from './combobox';
14
15
  export * from './dialog';
15
16
  export * from './drawer';
@@ -1,9 +1,10 @@
1
1
  export { Popover } from './popover';
2
- export type { PopoverContentProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverPanelProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, } from './popover.types';
2
+ export type { PopoverContentProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverPanelProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, PopoverButtonProps, } from './popover.types';
3
3
  export { PopoverDescription } from './popover-description';
4
4
  export { PopoverPanel } from './popover-panel';
5
5
  export { PopoverTitle } from './popover-title';
6
6
  export { PopoverTrigger } from './popover-trigger';
7
7
  export { PopoverHeader } from './popover-header';
8
8
  export { PopoverContent } from './popover-content';
9
+ export { PopoverButton } from './popover-button';
9
10
  export { popoverHandle } from './popover.types';
@@ -0,0 +1,2 @@
1
+ import { PopoverButtonProps } from './popover.types';
2
+ export declare const PopoverButton: ({ variant, tone, className, children, ref, ...props }: PopoverButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { Popover as BasePopover } from '@base-ui/react/popover';
2
+ import { Button } from '..';
2
3
  export type PopoverProps = React.ComponentProps<typeof BasePopover.Root>;
3
4
  export type PopoverTriggerProps = React.ComponentProps<typeof BasePopover.Trigger>;
4
5
  export type PopoverPanelProps = React.ComponentProps<typeof BasePopover.Positioner>;
@@ -6,4 +7,5 @@ export type PopoverTitleProps = React.ComponentProps<typeof BasePopover.Title>;
6
7
  export type PopoverDescriptionProps = React.ComponentProps<typeof BasePopover.Description>;
7
8
  export type PopoverHeaderProps = React.ComponentProps<'div'>;
8
9
  export type PopoverContentProps = React.ComponentProps<'div'>;
10
+ export type PopoverButtonProps = React.ComponentProps<typeof Button>;
9
11
  export declare const popoverHandle: BasePopover.Handle<import('react').ComponentType<{}>>;
@@ -6,7 +6,7 @@ export type TabsTabProps = ComponentProps<typeof BaseTabs.Tab>;
6
6
  export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
7
7
  export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
8
8
  export declare const tabsVariants: (props?: ({
9
- variant?: "default" | "underline" | null | undefined;
9
+ variant?: "ghost" | "default" | "underline" | null | undefined;
10
10
  fill?: boolean | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
12
  export type TabsProps = React.ComponentProps<typeof BaseTabs.Root> & VariantProps<typeof tabsVariants>;