@zenkigen-inc/component-ui 1.9.4 → 1.9.5

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 (49) hide show
  1. package/dist/breadcrumb/breadcrumb-item.d.ts +1 -1
  2. package/dist/breadcrumb/breadcrumb.d.ts +1 -1
  3. package/dist/button/button.d.ts +1 -1
  4. package/dist/checkbox/checkbox.d.ts +1 -1
  5. package/dist/dropdown/dropdown-context.d.ts +1 -1
  6. package/dist/dropdown/dropdown-item.d.ts +1 -1
  7. package/dist/dropdown/dropdown-menu.d.ts +2 -2
  8. package/dist/dropdown/dropdown.d.ts +2 -2
  9. package/dist/dropdown/type.d.ts +1 -1
  10. package/dist/heading/heading.d.ts +1 -1
  11. package/dist/hooks/use-outside-click.d.ts +1 -1
  12. package/dist/icon/icon.d.ts +2 -2
  13. package/dist/icon-button/icon-button.d.ts +2 -2
  14. package/dist/index.esm.js +96 -66
  15. package/dist/index.esm.js.map +1 -1
  16. package/dist/index.js +92 -78
  17. package/dist/index.js.map +1 -1
  18. package/dist/modal/modal-body.d.ts +1 -1
  19. package/dist/modal/modal-footer.d.ts +2 -1
  20. package/dist/modal/modal-header.d.ts +1 -1
  21. package/dist/modal/modal.d.ts +1 -1
  22. package/dist/notification-inline/notification-inline.d.ts +1 -1
  23. package/dist/radio/radio.d.ts +1 -1
  24. package/dist/search/search.d.ts +1 -1
  25. package/dist/select/select-context.d.ts +1 -1
  26. package/dist/select/select-list.d.ts +1 -1
  27. package/dist/select/select.d.ts +2 -2
  28. package/dist/select/type.d.ts +1 -1
  29. package/dist/select-sort/select-item.d.ts +1 -1
  30. package/dist/select-sort/select-sort.d.ts +1 -1
  31. package/dist/tab/tab-item.d.ts +2 -2
  32. package/dist/tab/tab.d.ts +2 -2
  33. package/dist/table/table-cell.d.ts +1 -1
  34. package/dist/table/table-row.d.ts +1 -1
  35. package/dist/table/table.d.ts +1 -1
  36. package/dist/tag/delete-icon.d.ts +1 -1
  37. package/dist/tag/tag.d.ts +1 -1
  38. package/dist/tag/type.d.ts +1 -1
  39. package/dist/text-area/text-area.d.ts +1 -1
  40. package/dist/text-input/text-input.d.ts +1 -1
  41. package/dist/toast/toast-provider.d.ts +2 -2
  42. package/dist/toast/toast.d.ts +2 -2
  43. package/dist/toggle/toggle.d.ts +1 -1
  44. package/dist/tooltip/tail-icon.d.ts +1 -1
  45. package/dist/tooltip/tooltip-content.d.ts +2 -2
  46. package/dist/tooltip/tooltip.d.ts +2 -2
  47. package/dist/tooltip/tooltip.hook.d.ts +2 -2
  48. package/dist/tooltip/type.d.ts +1 -1
  49. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  export declare function ModalBody({ children }: PropsWithChildren): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
+ import React from 'react';
2
3
  type Props = {
3
4
  isNoBorder?: boolean;
4
5
  };
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  type Props = {
3
3
  isNoBorder?: boolean;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MutableRefObject, PropsWithChildren } from 'react';
1
+ import type { CSSProperties, MutableRefObject, PropsWithChildren } from 'react';
2
2
  import { ModalBody } from './modal-body';
3
3
  import { ModalFooter } from './modal-footer';
4
4
  import { ModalHeader } from './modal-header';
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  state?: 'success' | 'warning' | 'information' | 'attention' | 'default';
4
4
  size?: 'small' | 'medium';
@@ -1,4 +1,4 @@
1
- import { ChangeEvent } from 'react';
1
+ import type { ChangeEvent } from 'react';
2
2
  type Props = {
3
3
  name?: string;
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, FormEvent } from 'react';
1
+ import type { ChangeEvent, FormEvent } from 'react';
2
2
  type Props = {
3
3
  size?: 'medium' | 'large';
4
4
  placeholder?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SelectOption } from './type';
2
+ import type { SelectOption } from './type';
3
3
  type UseSelectReturnType = {
4
4
  size?: 'x-small' | 'small' | 'medium' | 'large';
5
5
  placeholder?: string;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
2
  type Props = {
3
3
  maxHeight?: CSSProperties['height'];
4
4
  };
@@ -1,5 +1,5 @@
1
- import { IconName } from '@zenkigen-inc/component-icons';
2
- import { CSSProperties, PropsWithChildren } from 'react';
1
+ import type { IconName } from '@zenkigen-inc/component-icons';
2
+ import type { CSSProperties, PropsWithChildren } from 'react';
3
3
  import { SelectItem } from './select-item';
4
4
  import type { SelectOption } from './type';
5
5
  type Props = {
@@ -1,4 +1,4 @@
1
- import { IconName } from '@zenkigen-inc/component-icons';
1
+ import type { IconName } from '@zenkigen-inc/component-icons';
2
2
  export type SelectOption = {
3
3
  id: string;
4
4
  value: string;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  type Props = {
3
3
  isSortKey: boolean;
4
4
  onClickItem: () => void;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  import type { SortOrder } from './type';
3
3
  type Props = {
4
4
  size?: 'x-small' | 'small' | 'medium' | 'large';
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  id: string;
4
4
  isSelected?: boolean;
@@ -6,5 +6,5 @@ type Props = {
6
6
  children?: ReactNode;
7
7
  onClick: (id: string) => void;
8
8
  };
9
- export declare const TabItem: (props: Props) => import("react").JSX.Element;
9
+ export declare const TabItem: ({ isSelected, ...props }: Props) => import("react").JSX.Element;
10
10
  export {};
package/dist/tab/tab.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  children?: ReactNode;
4
4
  };
5
5
  export declare function Tab({ children }: Props): import("react").JSX.Element;
6
6
  export declare namespace Tab {
7
- var Item: (props: {
7
+ var Item: ({ isSelected, ...props }: {
8
8
  id: string;
9
9
  isSelected?: boolean | undefined;
10
10
  isDisabled?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  children?: ReactNode;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  children?: ReactNode;
4
4
  isHoverBackgroundVisible?: boolean;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
2
  import { TableCell } from './table-cell';
3
3
  import { TableRow } from './table-row';
4
4
  type Props = {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ColorVariant, TagColor } from './type';
2
+ import type { ColorVariant, TagColor } from './type';
3
3
  type Props = {
4
4
  color?: TagColor;
5
5
  variant?: ColorVariant;
package/dist/tag/tag.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ColorVariant, TagColor } from './type';
2
+ import type { ColorVariant, TagColor } from './type';
3
3
  type Props = {
4
4
  id: string;
5
5
  children: string;
@@ -1,3 +1,3 @@
1
- import { tagLightColors } from '@zenkigen-inc/component-theme';
1
+ import type { tagLightColors } from '@zenkigen-inc/component-theme';
2
2
  export type TagColor = keyof typeof tagLightColors;
3
3
  export type ColorVariant = 'normal' | 'light';
@@ -1,4 +1,4 @@
1
- import { CSSProperties, TextareaHTMLAttributes } from 'react';
1
+ import type { CSSProperties, TextareaHTMLAttributes } from 'react';
2
2
  export declare const TextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
3
3
  size?: "medium" | "large" | undefined;
4
4
  value: string;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes } from 'react';
1
+ import type { InputHTMLAttributes } from 'react';
2
2
  export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
3
3
  size?: "medium" | "large" | undefined;
4
4
  value: string;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { ToastState } from './type';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { ToastState } from './type';
3
3
  type AddToastArgs = {
4
4
  message: string;
5
5
  state: ToastState;
@@ -1,5 +1,5 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { ToastState } from './type';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ import type { ToastState } from './type';
3
3
  type Props = {
4
4
  state?: ToastState;
5
5
  width?: CSSProperties['width'];
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  type Props = {
3
3
  id: string;
4
4
  size: 'small' | 'medium';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TooltipHorizontalAlign, TooltipSize, TooltipVerticalPosition } from './type';
2
+ import type { TooltipHorizontalAlign, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  type Props = {
4
4
  size: TooltipSize;
5
5
  verticalPosition: TooltipVerticalPosition;
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
2
- import { TooltipHorizontalAlign, TooltipPosition, TooltipSize, TooltipVerticalPosition } from './type';
1
+ import type { CSSProperties } from 'react';
2
+ import type { TooltipHorizontalAlign, TooltipPosition, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  export declare const TooltipContent: ({ content, horizontalAlign, verticalPosition, size, tooltipPosition, maxWidth, isPortal, }: {
4
4
  content: string;
5
5
  size: TooltipSize;
@@ -1,5 +1,5 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
2
- import { TooltipHorizontalAlign, TooltipSize, TooltipVerticalPosition } from './type';
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ import type { TooltipHorizontalAlign, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  type Props = {
4
4
  content: string;
5
5
  size?: TooltipSize;
@@ -1,5 +1,5 @@
1
- import { CSSProperties } from 'react';
2
- import { TooltipHorizontalAlign, TooltipPosition, TooltipSize, TooltipVerticalPosition } from './type';
1
+ import type { CSSProperties } from 'react';
2
+ import type { TooltipHorizontalAlign, TooltipPosition, TooltipSize, TooltipVerticalPosition } from './type';
3
3
  export declare const useTooltip: () => {
4
4
  calculatePosition: (args: {
5
5
  dimensions: DOMRect;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import type { CSSProperties } from 'react';
2
2
  export type TooltipSize = 'small' | 'medium';
3
3
  export type TooltipVerticalPosition = 'top' | 'bottom';
4
4
  export type TooltipHorizontalAlign = 'left' | 'center' | 'right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenkigen-inc/component-ui",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "repository": "https://github.com/zenkigen/zenkigen-component",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -19,15 +19,15 @@
19
19
  "devDependencies": {
20
20
  "hygen": "6.2.11",
21
21
  "microbundle": "0.15.1",
22
- "typescript": "5.3.3"
22
+ "typescript": "5.4.3"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@types/react": "^18.0.0",
26
26
  "react": "^18.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@zenkigen-inc/component-icons": "1.9.4",
30
- "@zenkigen-inc/component-theme": "1.9.4",
29
+ "@zenkigen-inc/component-icons": "1.9.5",
30
+ "@zenkigen-inc/component-theme": "1.9.5",
31
31
  "clsx": "2.1.0"
32
32
  }
33
33
  }