@koide-labs/ui 0.0.1 → 0.0.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.
@@ -1,8 +1,9 @@
1
+ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
1
2
  import { Command as CommandPrimitive } from 'cmdk';
2
3
  import { ComponentProps } from 'react';
3
4
  import { BaseDialogProps } from '../dialog';
4
5
  import { IconName } from '../icon/icon-names';
5
- export type CommandDialogProps = Omit<BaseDialogProps, "title" | "description" | "background"> & {
6
+ export type CommandDialogProps = DialogPrimitive.Root.Props & Omit<BaseDialogProps, "title" | "description" | "background"> & {
6
7
  placeholder?: string;
7
8
  };
8
9
  export declare function CommandDialog({ placeholder, children, ...props }: CommandDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1621,8 +1621,8 @@ function ko({
1621
1621
  width: "sm",
1622
1622
  background: "default",
1623
1623
  className: B.command,
1624
- ...n,
1625
1624
  closable: !0,
1625
+ ...n,
1626
1626
  children: /* @__PURE__ */ oe(z, { children: [
1627
1627
  /* @__PURE__ */ oe(ye, { className: B["command__input-root"], children: [
1628
1628
  /* @__PURE__ */ E(
@@ -1,5 +1,5 @@
1
1
  import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
- import { ComponentProps, ReactElement, ReactNode } from 'react';
2
+ import { ReactElement, ReactNode } from 'react';
3
3
  import { Size } from '../../styles/tokens';
4
4
  import { ButtonProps } from '../button';
5
5
  import { Background } from '../surface';
@@ -38,7 +38,7 @@ export type BaseDialogProps = {
38
38
  */
39
39
  className?: string;
40
40
  };
41
- export type DialogProps = ComponentProps<typeof DialogPrimitive.Root> & BaseDialogProps & {
41
+ export type DialogProps = DialogPrimitive.Root.Props & BaseDialogProps & {
42
42
  /**
43
43
  * Show close icon
44
44
  */
@@ -1,6 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { ColorToken, Size } from '../../styles/tokens';
3
3
  import { IconName } from './icon-names';
4
+ export type { IconName };
4
5
  export interface IconProps extends Omit<ComponentProps<"svg">, "name"> {
5
6
  /**
6
7
  * Overrides the icon size provider.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koide-labs/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -18,7 +18,7 @@
18
18
  "default": "./dist/integrations/*/index.js"
19
19
  },
20
20
  "./styles/core.css": "./dist/styles/core.css",
21
- "./styles/tokens.js": {
21
+ "./styles/tokens": {
22
22
  "types": "./dist/styles/tokens.d.ts",
23
23
  "default": "./dist/styles/tokens.js"
24
24
  }
File without changes