cekat-ui 1.1.0 → 1.2.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.
Files changed (71) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +6 -0
  2. package/dist/components/Avatar/AvatarIcons.d.ts +8 -0
  3. package/dist/components/Avatar/avatar.styles.d.ts +12 -0
  4. package/dist/components/Avatar/avatar.types.d.ts +16 -0
  5. package/dist/components/Avatar/index.d.ts +3 -0
  6. package/dist/components/AvatarGroup/AvatarGroup.d.ts +6 -0
  7. package/dist/components/AvatarGroup/avatargroup.styles.d.ts +8 -0
  8. package/dist/components/AvatarGroup/avatargroup.types.d.ts +16 -0
  9. package/dist/components/AvatarGroup/index.d.ts +3 -0
  10. package/dist/components/AvatarLabelGroup/AvatarLabelGroup.d.ts +6 -0
  11. package/dist/components/AvatarLabelGroup/avatarlabelgroup.styles.d.ts +5 -0
  12. package/dist/components/AvatarLabelGroup/avatarlabelgroup.types.d.ts +14 -0
  13. package/dist/components/AvatarLabelGroup/index.d.ts +3 -0
  14. package/dist/components/AvatarProfilePhoto/AvatarProfilePhoto.d.ts +6 -0
  15. package/dist/components/AvatarProfilePhoto/avatarprofilephoto.styles.d.ts +10 -0
  16. package/dist/components/AvatarProfilePhoto/avatarprofilephoto.types.d.ts +12 -0
  17. package/dist/components/AvatarProfilePhoto/index.d.ts +3 -0
  18. package/dist/components/Badge/Badge.d.ts +6 -0
  19. package/dist/components/Badge/badge.styles.d.ts +20 -0
  20. package/dist/components/Badge/badge.types.d.ts +23 -0
  21. package/dist/components/Badge/index.d.ts +3 -0
  22. package/dist/components/BadgeGroup/BadgeGroup.d.ts +6 -0
  23. package/dist/components/BadgeGroup/badgegroup.styles.d.ts +28 -0
  24. package/dist/components/BadgeGroup/badgegroup.types.d.ts +19 -0
  25. package/dist/components/BadgeGroup/index.d.ts +3 -0
  26. package/dist/components/Button/Button.d.ts +1 -1
  27. package/dist/components/Button/button.styles.d.ts +2 -1
  28. package/dist/components/Button/button.types.d.ts +2 -1
  29. package/dist/components/Checkbox/checkbox.types.d.ts +3 -1
  30. package/dist/components/Dropdown/Dropdown.d.ts +2 -0
  31. package/dist/components/Dropdown/dropdown.styles.d.ts +19 -0
  32. package/dist/components/Dropdown/dropdown.types.d.ts +44 -0
  33. package/dist/components/Dropdown/index.d.ts +3 -0
  34. package/dist/components/Input/Input.d.ts +1 -1
  35. package/dist/components/Input/input.styles.d.ts +21 -3
  36. package/dist/components/Input/input.types.d.ts +24 -1
  37. package/dist/components/InputDropdown/InputDropdown.d.ts +2 -0
  38. package/dist/components/InputDropdown/index.d.ts +3 -0
  39. package/dist/components/InputDropdown/inputDropdown.styles.d.ts +15 -0
  40. package/dist/components/InputDropdown/inputDropdown.types.d.ts +45 -0
  41. package/dist/components/Loading/Loading.d.ts +6 -0
  42. package/dist/components/Loading/LoadingSpinner.d.ts +9 -0
  43. package/dist/components/Loading/index.d.ts +3 -0
  44. package/dist/components/Loading/loading.styles.d.ts +6 -0
  45. package/dist/components/Loading/loading.types.d.ts +10 -0
  46. package/dist/components/Radio/radio.types.d.ts +3 -1
  47. package/dist/components/Tab/Tab.d.ts +6 -0
  48. package/dist/components/Tab/TabList.d.ts +6 -0
  49. package/dist/components/Tab/index.d.ts +4 -0
  50. package/dist/components/Tab/tab.styles.d.ts +15 -0
  51. package/dist/components/Tab/tab.types.d.ts +24 -0
  52. package/dist/components/Tag/Tag.d.ts +6 -0
  53. package/dist/components/Tag/index.d.ts +3 -0
  54. package/dist/components/Tag/tag.styles.d.ts +19 -0
  55. package/dist/components/Tag/tag.types.d.ts +21 -0
  56. package/dist/components/Textarea/Textarea.d.ts +4 -0
  57. package/dist/components/Textarea/index.d.ts +3 -0
  58. package/dist/components/Textarea/textarea.styles.d.ts +14 -0
  59. package/dist/components/Textarea/textarea.types.d.ts +17 -0
  60. package/dist/components/Toggle/toggle.styles.d.ts +2 -1
  61. package/dist/components/Toggle/toggle.types.d.ts +5 -1
  62. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  63. package/dist/components/Tooltip/tooltip.styles.d.ts +2 -0
  64. package/dist/components/Tooltip/tooltip.types.d.ts +1 -0
  65. package/dist/index.d.ts +12 -0
  66. package/dist/index.es.js +2688 -649
  67. package/dist/index.umd.js +1 -1
  68. package/dist/style.css +1904 -416
  69. package/dist/utils/color.d.ts +4 -0
  70. package/package.json +4 -4
  71. package/tailwind.preset.cjs +137 -39
@@ -0,0 +1,4 @@
1
+ import { default as Tab } from './Tab';
2
+ import { default as TabList } from './TabList';
3
+ export { Tab, TabList };
4
+ export type { TabProps, TabVariant, TabSize, TabListProps, TabListOrientation, } from './tab.types';
@@ -0,0 +1,15 @@
1
+ import { TabVariant, TabSize } from './tab.types';
2
+ export declare const tabSizeMap: Record<TabVariant, Record<TabSize, string>>;
3
+ export declare const tabRadiusMap: Record<TabVariant, string>;
4
+ export declare const tabColorMap: Record<TabVariant, {
5
+ active: string;
6
+ inactive: string;
7
+ hoverInactive: string;
8
+ hasFocusRing: boolean;
9
+ }>;
10
+ /** Count badge is always neutral gray in Figma, regardless of tab variant/active state. */
11
+ export declare const tabBadgeClasses = "inline-flex items-center justify-center rounded-full border border-light-200 bg-light-50 px-2 py-0.5 text-caption-sm font-medium text-light-700";
12
+ export declare const tabListStyleMap: Record<TabVariant, {
13
+ gapClass: string;
14
+ hasHairline: boolean;
15
+ }>;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export type TabVariant = 'button-gray' | 'button-white' | 'button-primary' | 'underline' | 'underline-filled' | 'line';
3
+ export type TabSize = 'sm' | 'md';
4
+ export interface TabProps {
5
+ children: React.ReactNode;
6
+ variant?: TabVariant;
7
+ size?: TabSize;
8
+ active?: boolean;
9
+ fullWidth?: boolean;
10
+ count?: number | string;
11
+ disabled?: boolean;
12
+ onClick?: () => void;
13
+ className?: string;
14
+ }
15
+ export type TabListOrientation = 'horizontal' | 'vertical';
16
+ export interface TabListProps {
17
+ children: React.ReactNode;
18
+ /** Controls the default gap and whether a bottom hairline is drawn under the row. */
19
+ variant?: TabVariant;
20
+ orientation?: TabListOrientation;
21
+ /** Wraps the tabs in a padded gray card (used by the "boxed" button-tab treatments). */
22
+ boxed?: boolean;
23
+ className?: string;
24
+ }
@@ -0,0 +1,6 @@
1
+ import { TagProps } from './tag.types';
2
+ declare const Tag: {
3
+ ({ children, size, shape, icon, checked, onCheckedChange, onClose, count, disabled, className, color, customColor, }: TagProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default Tag;
@@ -0,0 +1,3 @@
1
+ import { default as Tag } from './Tag';
2
+ export { Tag };
3
+ export type { TagProps, TagSize, TagShape, TagColor } from './tag.types';
@@ -0,0 +1,19 @@
1
+ import { TagColor } from './tag.types';
2
+ export declare const tagColorStyles: Record<TagColor, {
3
+ bg: string;
4
+ border: string;
5
+ text: string;
6
+ }>;
7
+ export declare const tagStyles: (props?: {
8
+ size?: "sm" | "md" | "lg";
9
+ shape?: "rounded" | "pill";
10
+ hasLeading?: boolean;
11
+ hasTrailing?: boolean;
12
+ interactive?: boolean;
13
+ disabled?: boolean;
14
+ } & import('class-variance-authority/types').ClassProp) => string;
15
+ export declare const tagCheckboxStyles: (props?: {
16
+ checked?: boolean;
17
+ } & import('class-variance-authority/types').ClassProp) => string;
18
+ export declare const tagCountStyles = "shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800";
19
+ export declare const tagCloseButtonStyles = "shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400";
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ export type TagSize = 'sm' | 'md' | 'lg';
3
+ export type TagShape = 'rounded' | 'pill';
4
+ export type TagColor = 'brand' | 'gray' | 'error' | 'warning' | 'success' | 'blue-gray' | 'blue-light' | 'indigo' | 'purple' | 'blue' | 'pink' | 'orange';
5
+ export interface TagProps {
6
+ children: React.ReactNode;
7
+ size?: TagSize;
8
+ /** Corner style. 'rounded' = rounded-md (default), 'pill' = fully rounded. */
9
+ shape?: TagShape;
10
+ icon?: React.ReactNode;
11
+ checked?: boolean;
12
+ onCheckedChange?: (checked: boolean) => void;
13
+ onClose?: () => void;
14
+ count?: number | string;
15
+ disabled?: boolean;
16
+ className?: string;
17
+ /** Named accent color token for the border, background and text. Defaults to 'gray'. */
18
+ color?: TagColor;
19
+ /** Custom accent color as a 6-digit hex (e.g. "#13a8bf"), applied to border, background tint and text. Overrides `color` when set. Ignored if not a valid 6-digit hex. */
20
+ customColor?: string;
21
+ }
@@ -0,0 +1,4 @@
1
+ import { TextareaProps } from './textarea.types';
2
+ import * as React from "react";
3
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export default Textarea;
@@ -0,0 +1,3 @@
1
+ import { default as Textarea } from './Textarea';
2
+ export { Textarea };
3
+ export type { TextareaProps } from './textarea.types';
@@ -0,0 +1,14 @@
1
+ export declare const textareaWrapperStyles = "flex flex-col gap-1 w-full max-w-[320px]";
2
+ export declare const textareaLabelStyles: (props?: {
3
+ error?: boolean;
4
+ } & import('class-variance-authority/types').ClassProp) => string;
5
+ export declare const textareaContainerStyles: (props?: {
6
+ error?: boolean;
7
+ disabled?: boolean;
8
+ } & import('class-variance-authority/types').ClassProp) => string;
9
+ export declare const textareaStyles: (props?: {
10
+ resizable?: boolean;
11
+ } & import('class-variance-authority/types').ClassProp) => string;
12
+ export declare const textareaHintStyles: (props?: {
13
+ error?: boolean;
14
+ } & import('class-variance-authority/types').ClassProp) => string;
@@ -0,0 +1,17 @@
1
+ import { ClassValue } from 'clsx';
2
+ import * as React from "react";
3
+ export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "className"> {
4
+ label?: string;
5
+ required?: boolean;
6
+ hint?: string;
7
+ helpIcon?: React.ReactNode;
8
+ error?: boolean;
9
+ disabled?: boolean;
10
+ resizable?: boolean;
11
+ /** Tighter padding/min-height and a smaller semibold label, for compact form layouts (e.g. a multi-field grid). Opt-in, does not affect default styling. */
12
+ compact?: boolean;
13
+ /** Number of visible text lines. Drives an explicit min-height (rows × 20px line-height) that overrides the default/compact min-height, instead of just being a floor the browser's intrinsic sizing can exceed unpredictably. */
14
+ rows?: number;
15
+ className?: ClassValue;
16
+ wrapperClassName?: ClassValue;
17
+ }
@@ -2,8 +2,9 @@ export declare const toggleTrackStyles: (props?: {
2
2
  size?: "sm" | "md" | "lg";
3
3
  checked?: boolean;
4
4
  disabled?: boolean;
5
+ variant?: "default" | "success";
5
6
  } & import('class-variance-authority/types').ClassProp) => string;
6
7
  export declare const toggleThumbStyles: (props?: {
7
8
  size?: "sm" | "md" | "lg";
8
- checked?: boolean;
9
+ disabled?: boolean;
9
10
  } & import('class-variance-authority/types').ClassProp) => string;
@@ -1,7 +1,11 @@
1
1
  import * as React from 'react';
2
- export type ToggleSize = 'sm' | 'md' | 'lg';
2
+ export type ToggleSize = 'sm' | 'md'
3
+ /** @deprecated `lg` is no longer a distinct size — it now renders identically to `md` and will be removed in a future major version. Migrate to `md`. */
4
+ | 'lg';
5
+ export type ToggleVariant = 'default' | 'success';
3
6
  export interface ToggleProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
4
7
  checked?: boolean;
5
8
  size?: ToggleSize;
9
+ variant?: ToggleVariant;
6
10
  onCheckedChange?: (checked: boolean) => void;
7
11
  }
@@ -1,6 +1,6 @@
1
1
  import { TooltipProps } from './tooltip.types';
2
2
  declare const Tooltip: {
3
- ({ content, side, open, defaultOpen, disabled, delay, className, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ content, supportingText, side, open, defaultOpen, disabled, delay, className, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  export default Tooltip;
@@ -1,6 +1,8 @@
1
1
  export declare const tooltipContentStyles: (props?: {
2
2
  side?: "top" | "bottom" | "left" | "right";
3
+ hasSupportingText?: boolean;
3
4
  } & import('class-variance-authority/types').ClassProp) => string;
5
+ export declare const tooltipSupportingTextStyles = "mt-1 font-medium text-light-100";
4
6
  export declare const tooltipArrowStyles: (props?: {
5
7
  side?: "top" | "bottom" | "left" | "right";
6
8
  } & import('class-variance-authority/types').ClassProp) => string;
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  export type TooltipSide = 'top' | 'bottom' | 'left' | 'right';
3
3
  export interface TooltipProps {
4
4
  content: React.ReactNode;
5
+ supportingText?: React.ReactNode;
5
6
  children: React.ReactElement;
6
7
  side?: TooltipSide;
7
8
  open?: boolean;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,19 @@ export * from './components/Checkbox';
3
3
  export * from './components/Radio';
4
4
  export * from './components/Toggle';
5
5
  export * from './components/Tooltip';
6
+ export * from './components/Tag';
7
+ export * from './components/Badge';
8
+ export * from './components/BadgeGroup';
9
+ export * from './components/Loading';
10
+ export * from './components/Avatar';
11
+ export * from './components/AvatarGroup';
12
+ export * from './components/AvatarLabelGroup';
13
+ export * from './components/AvatarProfilePhoto';
14
+ export * from './components/Tab';
6
15
  export * from './components/Input';
16
+ export * from './components/Textarea';
7
17
  export * from './components/MultiSelectInput';
8
18
  export * from './components/WebsiteInput';
9
19
  export * from './components/WebsiteCopyInput';
20
+ export * from './components/InputDropdown';
21
+ export * from './components/Dropdown';