klun-ui 0.2.0 → 0.3.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/CHANGELOG.md +157 -0
- package/README.md +2 -2
- package/dist/Chip-DiCYJmnv.d.cts +18 -0
- package/dist/Chip-DiCYJmnv.d.ts +18 -0
- package/dist/{chunk-UJOMGMCV.js → chunk-I4OHTBZQ.js} +36 -9
- package/dist/chunk-I4OHTBZQ.js.map +1 -0
- package/dist/{chunk-T7O3RMWL.cjs → chunk-YSCRS555.cjs} +36 -9
- package/dist/chunk-YSCRS555.cjs.map +1 -0
- package/dist/index.cjs +158 -158
- package/dist/index.d.cts +13 -17
- package/dist/index.d.ts +13 -17
- package/dist/index.js +1 -1
- package/dist/styles.css +40 -25
- package/dist/templates/index.cjs +8561 -113
- package/dist/templates/index.cjs.map +1 -1
- package/dist/templates/index.d.cts +393 -1
- package/dist/templates/index.d.ts +393 -1
- package/dist/templates/index.js +8424 -32
- package/dist/templates/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-T7O3RMWL.cjs.map +0 -1
- package/dist/chunk-UJOMGMCV.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties, TimeHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, FormHTMLAttributes, ReactElement, ChangeEvent, TextareaHTMLAttributes, ElementType, MouseEvent as MouseEvent$1 } from 'react';
|
|
3
|
+
import { C as ChipColor } from './Chip-DiCYJmnv.cjs';
|
|
4
|
+
export { a as Chip, b as ChipProps } from './Chip-DiCYJmnv.cjs';
|
|
3
5
|
|
|
4
6
|
type ClassValue = string | number | false | null | undefined;
|
|
5
7
|
/** Tiny classnames joiner — filters falsy values and joins with a space. */
|
|
@@ -627,20 +629,6 @@ interface ChartTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
627
629
|
/** Klun UI ChartTooltip — floating chart readout with title + keyed series rows. */
|
|
628
630
|
declare const ChartTooltip: react.ForwardRefExoticComponent<ChartTooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
629
631
|
|
|
630
|
-
type ChipColor = "gray" | "blue" | "orange" | "red" | "green" | "purple" | "yellow" | "teal" | "sky" | "pink";
|
|
631
|
-
interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
632
|
-
color?: ChipColor;
|
|
633
|
-
selected?: boolean;
|
|
634
|
-
/** Show a leading color dot. */
|
|
635
|
-
dot?: boolean;
|
|
636
|
-
/** Show a dismiss (×) button; receives the click handler. */
|
|
637
|
-
onDismiss?: () => void;
|
|
638
|
-
disabled?: boolean;
|
|
639
|
-
children?: ReactNode;
|
|
640
|
-
}
|
|
641
|
-
/** Klun UI Chip — compact, optionally-selectable color category pill. */
|
|
642
|
-
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLSpanElement>>;
|
|
643
|
-
|
|
644
632
|
interface CodeViewerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
645
633
|
code: string;
|
|
646
634
|
title?: ReactNode;
|
|
@@ -1729,7 +1717,10 @@ interface CascaderOption {
|
|
|
1729
1717
|
}
|
|
1730
1718
|
interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1731
1719
|
options: CascaderOption[];
|
|
1720
|
+
/** Selected path, root → leaf. Controlled. */
|
|
1732
1721
|
value?: string[];
|
|
1722
|
+
/** Initial path in uncontrolled mode. */
|
|
1723
|
+
defaultValue?: string[];
|
|
1733
1724
|
onChange?: (path: string[]) => void;
|
|
1734
1725
|
placeholder?: string;
|
|
1735
1726
|
size?: "small" | "medium" | "large";
|
|
@@ -1739,11 +1730,16 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">
|
|
|
1739
1730
|
separator?: string;
|
|
1740
1731
|
/** Emit onChange on every level, not just leaves. */
|
|
1741
1732
|
changeOnSelect?: boolean;
|
|
1733
|
+
/** Show a clear button once a path is selected. */
|
|
1734
|
+
clearable?: boolean;
|
|
1735
|
+
/** Render a panel row yourself — the trigger still uses `option.label`. */
|
|
1736
|
+
renderOption?: (option: CascaderOption, level: number) => ReactNode;
|
|
1742
1737
|
}
|
|
1743
1738
|
/**
|
|
1744
1739
|
* Cascader — multi-column drill-down selector for hierarchical data
|
|
1745
|
-
* (region, category…). Controlled via `value` (array of keys) /
|
|
1746
|
-
* `
|
|
1740
|
+
* (region, category, department…). Controlled via `value` (array of keys) /
|
|
1741
|
+
* `onChange` — or uncontrolled with `defaultValue`. `options`:
|
|
1742
|
+
* [{ value, label, disabled?, children? }]. `ref` forwards to the root.
|
|
1747
1743
|
*/
|
|
1748
1744
|
declare const Cascader: react.ForwardRefExoticComponent<CascaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
1749
1745
|
|
|
@@ -3209,4 +3205,4 @@ interface PopoverProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">
|
|
|
3209
3205
|
*/
|
|
3210
3206
|
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3211
3207
|
|
|
3212
|
-
export { type Accent, Accordion, type AccordionItem, type AccordionProps, Alert, type AlertProps, type AlertStatus, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerStatus, type BannerVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, BulkAction, BulkActionBar, type BulkActionBarProps, type BulkActionProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupSize, type ButtonKind, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, CharacterCounter, type CharacterCounterProps, ChartLegend, type ChartLegendItem, type ChartLegendProps, ChartTooltip, type ChartTooltipProps, type ChartTooltipRow, Checkbox, CheckboxCard, type CheckboxCardAlign, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize,
|
|
3208
|
+
export { type Accent, Accordion, type AccordionItem, type AccordionProps, Alert, type AlertProps, type AlertStatus, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerStatus, type BannerVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, BulkAction, BulkActionBar, type BulkActionBarProps, type BulkActionProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupSize, type ButtonKind, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, CharacterCounter, type CharacterCounterProps, ChartLegend, type ChartLegendItem, type ChartLegendProps, ChartTooltip, type ChartTooltipProps, type ChartTooltipRow, Checkbox, CheckboxCard, type CheckboxCardAlign, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ChipColor, CircularProgress, type CircularProgressColor, type CircularProgressProps, type ClassValue, CodeViewer, type CodeViewerProps, Col, type ColProps, type ColSize, Collapse, type CollapseProps, ColorDot, type ColorDotProps, type ColorDotSize, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, type ColorSliderSize, type CommandGroup, type CommandItem, CommandMenu, type CommandMenuProps, type CompactButtonAppearance, type CompactButtonProps, type CompactButtonSize, CompactSelect, type CompactSelectAppearance, CompactSelectForInput, type CompactSelectForInputProps, type CompactSelectForInputSide, type CompactSelectForInputSize, type CompactSelectProps, type CompactSelectSize, type ComponentSize, ConfigProvider, type ConfigProviderProps, Confirm, type ConfirmIntent, type ConfirmOptions, type ConfirmRequireInput, type ConfirmResult, ContentLabel, type ContentLabelColor, type ContentLabelProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, type ContextMenuState, CopyButton, type CopyButtonProps, type CopyButtonSize, type CopyButtonVariant, type CountdownResult, CounterInput, type CounterInputProps, type CounterInputSize, CrossRefBadge, type CrossRefBadgeProps, type CrossRefKind, type CrossRefPreview, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, type DefaultButtonProps, type DescriptionItem, Descriptions, type DescriptionsLayout, type DescriptionsProps, type DescriptionsSize, type DescriptionsVariant, type DiffHunk, type DiffLine, type DiffLineType, type DiffMode, type DiffSide, DiffViewer, type DiffViewerProps, DigitInput, type DigitInputProps, type DigitInputSize, type Direction, Divider, type DividerProps, type DividerVariant, type DotTone, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, ExpiryCountdown, type ExpiryCountdownProps, type FancyButtonProps, type FancyButtonSize, type FancyButtonVariant, type FieldSize, FileUpload, type FileUploadProps, Flex, type FlexGap, type FlexProps, Form, type FormInstance, FormItem, type FormItemProps, FormList, type FormListField, type FormListOperations, type FormListProps, type FormProps, type FormRule, Format, type FormatApi, GaugeBar, type GaugeBarColor, type GaugeBarProps, type GaugeBarSize, Grid, type Gutter, Hint, type HintProps, HorizontalFilter, type HorizontalFilterItem, type HorizontalFilterProps, type HorizontalFilterSize, type ImageItem, ImageUpload, type ImageUploadProps, type ImageUploadShape, ImageViewer, type ImageViewerProps, InlineInput, type InlineInputProps, type InlineInputTone, type InlineInputWeight, InlineSelect, type InlineSelectProps, type InlineSelectTone, type InlineSelectWeight, Input, type InputProps, Kbd, type KbdProps, KeyIcon, type KeyIconAppearance, type KeyIconColor, type KeyIconProps, type KeyIconSize, type KlunConfig, Label, type LabelProps, Layout, LayoutContent, type LayoutContentProps, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, type LayoutProps, LayoutSider, type LinkButtonProps, type LinkButtonSize, type LinkButtonVariant, List, ListItem, type ListItemProps, type ListProps, LiveDot, type LiveDotProps, type Locale, type LogLevel, type LogLine, LogViewer, type LogViewerProps, Markdown, type MarkdownProps, Masonry, type MasonryBreakpoints, type MasonryColumns, type MasonryGutter, type MasonryProps, Menu, type MenuItem, type MenuProps, Message, type MessageApi, type MessageOptions, type MessageProps, type MessageStatus, Modal, type ModalProps, Money, type MoneyOptions, type MoneyPeriod, type MoneyProps, type MoneyResult, type MoneySize, type MoneyTone, type NamePath, Notification, type NotificationApi, type NotificationOptions, type NotificationPlacement, type NotificationProps, type NotificationStatus, PageHeader, type PageHeaderProps, type PageHeaderTab, Pagination, type PaginationProps, PasswordStrength, type PasswordStrengthLevel, type PasswordStrengthProps, type PctOptions, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressColor, Radio, RadioCard, type RadioCardAlign, type RadioCardProps, type RadioProps, type RadioSize, type Radius, RangeSlider, type RangeSliderProps, type RangeSliderSize, Rating, type RatingProps, type RelTimeOptions, RelativeTime, type RelativeTimeProps, type Responsive, Result, type ResultProps, type ResultStatus, RichEditorToolbar, type RichEditorToolbarProps, Row, type RowAlign, type RowJustify, type RowProps, type Rules, type ScreenMap, type SegmentItem, SegmentedControl, type SegmentedControlProps, SegmentedProgress, type SegmentedProgressColor, type SegmentedProgressProps, Select, SelectMenu, type SelectMenuOption, type SelectMenuProps, type SelectMenuSize, type SelectProps, type SiderProps, type SiderTheme, type SizeOptions, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderSize, type SortDir, Space, type SpaceProps, type SpaceSize, Spinner, type SpinnerProps, type SpinnerSize, Splitter, type SplitterLayout, SplitterPanel, type SplitterPanelProps, type SplitterProps, StatCard, type StatCardProps, type StatCardTint, Statistic, type StatisticProps, StatusBadge, type StatusBadgeProps, StatusDot, type StatusDotProps, type StatusTone, type Step, StepIndicator, type StepIndicatorProps, Switch, type SwitchProps, type SwitchSize, type TabItem, Table, type TableColumn, type TableMenuItem, type TableProps, type TableSort, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Textarea, type TextareaProps, type TextareaSize, type Theme, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, Toast, type ToastAction, type ToastOptions, type ToastPosition, type ToastPromiseMessages, type ToastProps, type ToastStatus, Toaster, type ToasterProps, Tooltip, type TooltipProps, Tree, type TreeNode, type TreeProps, type UseFormOptions, type UseMessageDefaults, type UseNotificationDefaults, type WikiLinkResolver, Wizard, type WizardProps, type WizardStep, arSA, cx, deDE, enUS, esES, fmt, frFR, idID, itIT, jaJP, koKR, locales, nlNL, parsePatch, plPL, primaryColorVars, ptBR, renderMarkdown, ruRU, toast, trTR, useBreakpoint, useConfig, useContextMenu, useForm, useLocale, useMappedSize, useMessage, useNotification, useSize, viVN, zhCN, zhTW };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, CSSProperties, TimeHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, FormHTMLAttributes, ReactElement, ChangeEvent, TextareaHTMLAttributes, ElementType, MouseEvent as MouseEvent$1 } from 'react';
|
|
3
|
+
import { C as ChipColor } from './Chip-DiCYJmnv.js';
|
|
4
|
+
export { a as Chip, b as ChipProps } from './Chip-DiCYJmnv.js';
|
|
3
5
|
|
|
4
6
|
type ClassValue = string | number | false | null | undefined;
|
|
5
7
|
/** Tiny classnames joiner — filters falsy values and joins with a space. */
|
|
@@ -627,20 +629,6 @@ interface ChartTooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"
|
|
|
627
629
|
/** Klun UI ChartTooltip — floating chart readout with title + keyed series rows. */
|
|
628
630
|
declare const ChartTooltip: react.ForwardRefExoticComponent<ChartTooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
629
631
|
|
|
630
|
-
type ChipColor = "gray" | "blue" | "orange" | "red" | "green" | "purple" | "yellow" | "teal" | "sky" | "pink";
|
|
631
|
-
interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
632
|
-
color?: ChipColor;
|
|
633
|
-
selected?: boolean;
|
|
634
|
-
/** Show a leading color dot. */
|
|
635
|
-
dot?: boolean;
|
|
636
|
-
/** Show a dismiss (×) button; receives the click handler. */
|
|
637
|
-
onDismiss?: () => void;
|
|
638
|
-
disabled?: boolean;
|
|
639
|
-
children?: ReactNode;
|
|
640
|
-
}
|
|
641
|
-
/** Klun UI Chip — compact, optionally-selectable color category pill. */
|
|
642
|
-
declare const Chip: react.ForwardRefExoticComponent<ChipProps & react.RefAttributes<HTMLSpanElement>>;
|
|
643
|
-
|
|
644
632
|
interface CodeViewerProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
645
633
|
code: string;
|
|
646
634
|
title?: ReactNode;
|
|
@@ -1729,7 +1717,10 @@ interface CascaderOption {
|
|
|
1729
1717
|
}
|
|
1730
1718
|
interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1731
1719
|
options: CascaderOption[];
|
|
1720
|
+
/** Selected path, root → leaf. Controlled. */
|
|
1732
1721
|
value?: string[];
|
|
1722
|
+
/** Initial path in uncontrolled mode. */
|
|
1723
|
+
defaultValue?: string[];
|
|
1733
1724
|
onChange?: (path: string[]) => void;
|
|
1734
1725
|
placeholder?: string;
|
|
1735
1726
|
size?: "small" | "medium" | "large";
|
|
@@ -1739,11 +1730,16 @@ interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">
|
|
|
1739
1730
|
separator?: string;
|
|
1740
1731
|
/** Emit onChange on every level, not just leaves. */
|
|
1741
1732
|
changeOnSelect?: boolean;
|
|
1733
|
+
/** Show a clear button once a path is selected. */
|
|
1734
|
+
clearable?: boolean;
|
|
1735
|
+
/** Render a panel row yourself — the trigger still uses `option.label`. */
|
|
1736
|
+
renderOption?: (option: CascaderOption, level: number) => ReactNode;
|
|
1742
1737
|
}
|
|
1743
1738
|
/**
|
|
1744
1739
|
* Cascader — multi-column drill-down selector for hierarchical data
|
|
1745
|
-
* (region, category…). Controlled via `value` (array of keys) /
|
|
1746
|
-
* `
|
|
1740
|
+
* (region, category, department…). Controlled via `value` (array of keys) /
|
|
1741
|
+
* `onChange` — or uncontrolled with `defaultValue`. `options`:
|
|
1742
|
+
* [{ value, label, disabled?, children? }]. `ref` forwards to the root.
|
|
1747
1743
|
*/
|
|
1748
1744
|
declare const Cascader: react.ForwardRefExoticComponent<CascaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
1749
1745
|
|
|
@@ -3209,4 +3205,4 @@ interface PopoverProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children">
|
|
|
3209
3205
|
*/
|
|
3210
3206
|
declare const Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLSpanElement>>;
|
|
3211
3207
|
|
|
3212
|
-
export { type Accent, Accordion, type AccordionItem, type AccordionProps, Alert, type AlertProps, type AlertStatus, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerStatus, type BannerVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, BulkAction, BulkActionBar, type BulkActionBarProps, type BulkActionProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupSize, type ButtonKind, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, CharacterCounter, type CharacterCounterProps, ChartLegend, type ChartLegendItem, type ChartLegendProps, ChartTooltip, type ChartTooltipProps, type ChartTooltipRow, Checkbox, CheckboxCard, type CheckboxCardAlign, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize,
|
|
3208
|
+
export { type Accent, Accordion, type AccordionItem, type AccordionProps, Alert, type AlertProps, type AlertStatus, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerStatus, type BannerVariant, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, BulkAction, BulkActionBar, type BulkActionBarProps, type BulkActionProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupSize, type ButtonKind, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, Cascader, type CascaderOption, type CascaderProps, CharacterCounter, type CharacterCounterProps, ChartLegend, type ChartLegendItem, type ChartLegendProps, ChartTooltip, type ChartTooltipProps, type ChartTooltipRow, Checkbox, CheckboxCard, type CheckboxCardAlign, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, ChipColor, CircularProgress, type CircularProgressColor, type CircularProgressProps, type ClassValue, CodeViewer, type CodeViewerProps, Col, type ColProps, type ColSize, Collapse, type CollapseProps, ColorDot, type ColorDotProps, type ColorDotSize, ColorPicker, type ColorPickerProps, ColorSlider, type ColorSliderProps, type ColorSliderSize, type CommandGroup, type CommandItem, CommandMenu, type CommandMenuProps, type CompactButtonAppearance, type CompactButtonProps, type CompactButtonSize, CompactSelect, type CompactSelectAppearance, CompactSelectForInput, type CompactSelectForInputProps, type CompactSelectForInputSide, type CompactSelectForInputSize, type CompactSelectProps, type CompactSelectSize, type ComponentSize, ConfigProvider, type ConfigProviderProps, Confirm, type ConfirmIntent, type ConfirmOptions, type ConfirmRequireInput, type ConfirmResult, ContentLabel, type ContentLabelColor, type ContentLabelProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, type ContextMenuState, CopyButton, type CopyButtonProps, type CopyButtonSize, type CopyButtonVariant, type CountdownResult, CounterInput, type CounterInputProps, type CounterInputSize, CrossRefBadge, type CrossRefBadgeProps, type CrossRefKind, type CrossRefPreview, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, type DefaultButtonProps, type DescriptionItem, Descriptions, type DescriptionsLayout, type DescriptionsProps, type DescriptionsSize, type DescriptionsVariant, type DiffHunk, type DiffLine, type DiffLineType, type DiffMode, type DiffSide, DiffViewer, type DiffViewerProps, DigitInput, type DigitInputProps, type DigitInputSize, type Direction, Divider, type DividerProps, type DividerVariant, type DotTone, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, type DropdownItem, type DropdownProps, EmptyState, type EmptyStateProps, ExpiryCountdown, type ExpiryCountdownProps, type FancyButtonProps, type FancyButtonSize, type FancyButtonVariant, type FieldSize, FileUpload, type FileUploadProps, Flex, type FlexGap, type FlexProps, Form, type FormInstance, FormItem, type FormItemProps, FormList, type FormListField, type FormListOperations, type FormListProps, type FormProps, type FormRule, Format, type FormatApi, GaugeBar, type GaugeBarColor, type GaugeBarProps, type GaugeBarSize, Grid, type Gutter, Hint, type HintProps, HorizontalFilter, type HorizontalFilterItem, type HorizontalFilterProps, type HorizontalFilterSize, type ImageItem, ImageUpload, type ImageUploadProps, type ImageUploadShape, ImageViewer, type ImageViewerProps, InlineInput, type InlineInputProps, type InlineInputTone, type InlineInputWeight, InlineSelect, type InlineSelectProps, type InlineSelectTone, type InlineSelectWeight, Input, type InputProps, Kbd, type KbdProps, KeyIcon, type KeyIconAppearance, type KeyIconColor, type KeyIconProps, type KeyIconSize, type KlunConfig, Label, type LabelProps, Layout, LayoutContent, type LayoutContentProps, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, type LayoutProps, LayoutSider, type LinkButtonProps, type LinkButtonSize, type LinkButtonVariant, List, ListItem, type ListItemProps, type ListProps, LiveDot, type LiveDotProps, type Locale, type LogLevel, type LogLine, LogViewer, type LogViewerProps, Markdown, type MarkdownProps, Masonry, type MasonryBreakpoints, type MasonryColumns, type MasonryGutter, type MasonryProps, Menu, type MenuItem, type MenuProps, Message, type MessageApi, type MessageOptions, type MessageProps, type MessageStatus, Modal, type ModalProps, Money, type MoneyOptions, type MoneyPeriod, type MoneyProps, type MoneyResult, type MoneySize, type MoneyTone, type NamePath, Notification, type NotificationApi, type NotificationOptions, type NotificationPlacement, type NotificationProps, type NotificationStatus, PageHeader, type PageHeaderProps, type PageHeaderTab, Pagination, type PaginationProps, PasswordStrength, type PasswordStrengthLevel, type PasswordStrengthProps, type PctOptions, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressColor, Radio, RadioCard, type RadioCardAlign, type RadioCardProps, type RadioProps, type RadioSize, type Radius, RangeSlider, type RangeSliderProps, type RangeSliderSize, Rating, type RatingProps, type RelTimeOptions, RelativeTime, type RelativeTimeProps, type Responsive, Result, type ResultProps, type ResultStatus, RichEditorToolbar, type RichEditorToolbarProps, Row, type RowAlign, type RowJustify, type RowProps, type Rules, type ScreenMap, type SegmentItem, SegmentedControl, type SegmentedControlProps, SegmentedProgress, type SegmentedProgressColor, type SegmentedProgressProps, Select, SelectMenu, type SelectMenuOption, type SelectMenuProps, type SelectMenuSize, type SelectProps, type SiderProps, type SiderTheme, type SizeOptions, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderSize, type SortDir, Space, type SpaceProps, type SpaceSize, Spinner, type SpinnerProps, type SpinnerSize, Splitter, type SplitterLayout, SplitterPanel, type SplitterPanelProps, type SplitterProps, StatCard, type StatCardProps, type StatCardTint, Statistic, type StatisticProps, StatusBadge, type StatusBadgeProps, StatusDot, type StatusDotProps, type StatusTone, type Step, StepIndicator, type StepIndicatorProps, Switch, type SwitchProps, type SwitchSize, type TabItem, Table, type TableColumn, type TableMenuItem, type TableProps, type TableSort, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Textarea, type TextareaProps, type TextareaSize, type Theme, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, Toast, type ToastAction, type ToastOptions, type ToastPosition, type ToastPromiseMessages, type ToastProps, type ToastStatus, Toaster, type ToasterProps, Tooltip, type TooltipProps, Tree, type TreeNode, type TreeProps, type UseFormOptions, type UseMessageDefaults, type UseNotificationDefaults, type WikiLinkResolver, Wizard, type WizardProps, type WizardStep, arSA, cx, deDE, enUS, esES, fmt, frFR, idID, itIT, jaJP, koKR, locales, nlNL, parsePatch, plPL, primaryColorVars, ptBR, renderMarkdown, ruRU, toast, trTR, useBreakpoint, useConfig, useContextMenu, useForm, useLocale, useMappedSize, useMessage, useNotification, useSize, viVN, zhCN, zhTW };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Accordion, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, BulkAction, BulkActionBar, Button, ButtonGroup, Card, Carousel, Cascader, CharacterCounter, ChartLegend, ChartTooltip, Checkbox, CheckboxCard, CheckboxGroup, Chip, CircularProgress, CodeViewer, Col, Collapse, ColorDot, ColorPicker, ColorSlider, CommandMenu, CompactSelect, CompactSelectForInput, ConfigProvider, Confirm, ContentLabel, ContextMenu, CopyButton, CounterInput, CrossRefBadge, DatePicker, DateRangePicker, DateTimePicker, Descriptions, DiffViewer, DigitInput, Divider, Drawer, Dropdown, EmptyState, ExpiryCountdown, FileUpload, Flex, Form, FormItem, FormList, Format, GaugeBar, Grid, Hint, HorizontalFilter, ImageUpload, ImageViewer, InlineInput, InlineSelect, Input, Kbd, KeyIcon, Label, Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, List, ListItem, LiveDot, LogViewer, Markdown, Masonry, Menu, Message, Modal, Money, Notification, PageHeader, Pagination, PasswordStrength, Popconfirm, Popover, ProgressBar, Radio, RadioCard, RangeSlider, Rating, RelativeTime, Result, RichEditorToolbar, Row, SegmentedControl, SegmentedProgress, Select, SelectMenu, Skeleton, Slider, Space, Spinner, Splitter, SplitterPanel, StatCard, Statistic, StatusBadge, StatusDot, StepIndicator, Switch, Table, Tabs, Tag, Textarea, TimePicker, Timeline, Toast, Toaster, Tooltip, Tree, Wizard, arSA, deDE, enUS, esES, fmt, frFR, idID, itIT, jaJP, koKR, locales, nlNL, parsePatch, plPL, primaryColorVars, ptBR, renderMarkdown, ruRU, toast, trTR, useBreakpoint, useConfig, useContextMenu, useForm, useLocale, useMappedSize, useMessage, useNotification, useSize, viVN, zhCN, zhTW } from './chunk-
|
|
1
|
+
export { Accordion, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, BulkAction, BulkActionBar, Button, ButtonGroup, Card, Carousel, Cascader, CharacterCounter, ChartLegend, ChartTooltip, Checkbox, CheckboxCard, CheckboxGroup, Chip, CircularProgress, CodeViewer, Col, Collapse, ColorDot, ColorPicker, ColorSlider, CommandMenu, CompactSelect, CompactSelectForInput, ConfigProvider, Confirm, ContentLabel, ContextMenu, CopyButton, CounterInput, CrossRefBadge, DatePicker, DateRangePicker, DateTimePicker, Descriptions, DiffViewer, DigitInput, Divider, Drawer, Dropdown, EmptyState, ExpiryCountdown, FileUpload, Flex, Form, FormItem, FormList, Format, GaugeBar, Grid, Hint, HorizontalFilter, ImageUpload, ImageViewer, InlineInput, InlineSelect, Input, Kbd, KeyIcon, Label, Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, List, ListItem, LiveDot, LogViewer, Markdown, Masonry, Menu, Message, Modal, Money, Notification, PageHeader, Pagination, PasswordStrength, Popconfirm, Popover, ProgressBar, Radio, RadioCard, RangeSlider, Rating, RelativeTime, Result, RichEditorToolbar, Row, SegmentedControl, SegmentedProgress, Select, SelectMenu, Skeleton, Slider, Space, Spinner, Splitter, SplitterPanel, StatCard, Statistic, StatusBadge, StatusDot, StepIndicator, Switch, Table, Tabs, Tag, Textarea, TimePicker, Timeline, Toast, Toaster, Tooltip, Tree, Wizard, arSA, deDE, enUS, esES, fmt, frFR, idID, itIT, jaJP, koKR, locales, nlNL, parsePatch, plPL, primaryColorVars, ptBR, renderMarkdown, ruRU, toast, trTR, useBreakpoint, useConfig, useContextMenu, useForm, useLocale, useMappedSize, useMessage, useNotification, useSize, viVN, zhCN, zhTW } from './chunk-I4OHTBZQ.js';
|
|
2
2
|
export { cx } from './chunk-T225J6LV.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/styles.css
CHANGED
|
@@ -2239,8 +2239,8 @@ body {
|
|
|
2239
2239
|
display: inline-flex;
|
|
2240
2240
|
align-items: center;
|
|
2241
2241
|
justify-content: center;
|
|
2242
|
-
width: 32px;
|
|
2243
|
-
height: 32px;
|
|
2242
|
+
width: var(--klun-control-h-sm, 32px);
|
|
2243
|
+
height: var(--klun-control-h-sm, 32px);
|
|
2244
2244
|
margin-left: 4px;
|
|
2245
2245
|
border: none;
|
|
2246
2246
|
cursor: pointer;
|
|
@@ -2259,7 +2259,7 @@ body {
|
|
|
2259
2259
|
display: inline-flex;
|
|
2260
2260
|
align-items: center;
|
|
2261
2261
|
gap: 6px;
|
|
2262
|
-
height: 32px;
|
|
2262
|
+
height: var(--klun-control-h-sm, 32px);
|
|
2263
2263
|
padding: 0 12px;
|
|
2264
2264
|
border: none;
|
|
2265
2265
|
cursor: pointer;
|
|
@@ -4318,8 +4318,8 @@ body {
|
|
|
4318
4318
|
display: inline-flex;
|
|
4319
4319
|
align-items: center;
|
|
4320
4320
|
gap: 6px;
|
|
4321
|
-
height:
|
|
4322
|
-
padding: 0 12px;
|
|
4321
|
+
height: var(--klun-control-h-sm, 32px);
|
|
4322
|
+
padding: 0 var(--klun-control-px-sm, 12px);
|
|
4323
4323
|
border: none;
|
|
4324
4324
|
border-radius: var(--klun-radius-lg);
|
|
4325
4325
|
background: var(--klun-bg-white-0);
|
|
@@ -4353,8 +4353,8 @@ body {
|
|
|
4353
4353
|
display: inline-flex;
|
|
4354
4354
|
align-items: center;
|
|
4355
4355
|
justify-content: center;
|
|
4356
|
-
width: 28px;
|
|
4357
|
-
height: 28px;
|
|
4356
|
+
width: var(--klun-control-h-xs, 28px);
|
|
4357
|
+
height: var(--klun-control-h-xs, 28px);
|
|
4358
4358
|
border: none;
|
|
4359
4359
|
border-radius: var(--klun-radius-md);
|
|
4360
4360
|
background: transparent;
|
|
@@ -4516,7 +4516,7 @@ body {
|
|
|
4516
4516
|
display: inline-flex;
|
|
4517
4517
|
align-items: center;
|
|
4518
4518
|
gap: 6px;
|
|
4519
|
-
height: 32px;
|
|
4519
|
+
height: var(--klun-control-h-sm, 32px);
|
|
4520
4520
|
padding: 0 8px 0 10px;
|
|
4521
4521
|
border: none;
|
|
4522
4522
|
border-radius: var(--klun-radius-md);
|
|
@@ -4570,8 +4570,8 @@ body {
|
|
|
4570
4570
|
display: inline-flex;
|
|
4571
4571
|
align-items: center;
|
|
4572
4572
|
justify-content: center;
|
|
4573
|
-
min-width: 32px;
|
|
4574
|
-
height: 32px;
|
|
4573
|
+
min-width: var(--klun-control-h-sm, 32px);
|
|
4574
|
+
height: var(--klun-control-h-sm, 32px);
|
|
4575
4575
|
padding: 0 6px;
|
|
4576
4576
|
border: none;
|
|
4577
4577
|
border-radius: var(--klun-radius-md);
|
|
@@ -4808,7 +4808,7 @@ body {
|
|
|
4808
4808
|
display: flex;
|
|
4809
4809
|
align-items: center;
|
|
4810
4810
|
gap: 6px;
|
|
4811
|
-
height: 32px;
|
|
4811
|
+
height: var(--klun-control-h-sm, 32px);
|
|
4812
4812
|
padding-left: var(--klun-tree-indent, 6px);
|
|
4813
4813
|
padding-right: 8px;
|
|
4814
4814
|
border-radius: var(--klun-radius-md);
|
|
@@ -6056,7 +6056,8 @@ body {
|
|
|
6056
6056
|
|
|
6057
6057
|
/* src/components/forms/Cascader.css */
|
|
6058
6058
|
.klun-cascader {
|
|
6059
|
-
--_h: 40px;
|
|
6059
|
+
--_h: var(--klun-control-h-lg, 40px);
|
|
6060
|
+
--_px: var(--klun-field-px-md, 12px);
|
|
6060
6061
|
--_font: var(--klun-text-paragraph-sm);
|
|
6061
6062
|
--_radius: var(--klun-radius-lg);
|
|
6062
6063
|
position: relative;
|
|
@@ -6064,17 +6065,20 @@ body {
|
|
|
6064
6065
|
min-width: 240px;
|
|
6065
6066
|
}
|
|
6066
6067
|
.klun-cascader--small {
|
|
6067
|
-
--_h: 36px;
|
|
6068
|
+
--_h: var(--klun-control-h-md, 36px);
|
|
6069
|
+
--_px: var(--klun-field-px-sm, 10px);
|
|
6068
6070
|
--_font: var(--klun-text-paragraph-sm);
|
|
6069
6071
|
--_radius: var(--klun-radius-lg);
|
|
6070
6072
|
}
|
|
6071
6073
|
.klun-cascader--medium {
|
|
6072
|
-
--_h: 40px;
|
|
6074
|
+
--_h: var(--klun-control-h-lg, 40px);
|
|
6075
|
+
--_px: var(--klun-field-px-md, 12px);
|
|
6073
6076
|
--_font: var(--klun-text-paragraph-sm);
|
|
6074
6077
|
--_radius: var(--klun-radius-lg);
|
|
6075
6078
|
}
|
|
6076
6079
|
.klun-cascader--large {
|
|
6077
|
-
--_h: 48px;
|
|
6080
|
+
--_h: var(--klun-control-h-xl, 48px);
|
|
6081
|
+
--_px: var(--klun-field-px-lg, 14px);
|
|
6078
6082
|
--_font: var(--klun-text-paragraph-md);
|
|
6079
6083
|
--_radius: var(--klun-radius-xl);
|
|
6080
6084
|
}
|
|
@@ -6084,7 +6088,7 @@ body {
|
|
|
6084
6088
|
gap: 8px;
|
|
6085
6089
|
width: 100%;
|
|
6086
6090
|
height: var(--_h);
|
|
6087
|
-
padding: 0
|
|
6091
|
+
padding: 0 var(--_px);
|
|
6088
6092
|
border: none;
|
|
6089
6093
|
border-radius: var(--_radius);
|
|
6090
6094
|
text-align: left;
|
|
@@ -6127,6 +6131,17 @@ body {
|
|
|
6127
6131
|
.klun-cascader[data-open] .klun-cascader__caret {
|
|
6128
6132
|
transform: rotate(180deg);
|
|
6129
6133
|
}
|
|
6134
|
+
.klun-cascader__clear {
|
|
6135
|
+
display: inline-flex;
|
|
6136
|
+
flex: none;
|
|
6137
|
+
align-items: center;
|
|
6138
|
+
font-size: 16px;
|
|
6139
|
+
color: var(--klun-icon-soft-400);
|
|
6140
|
+
cursor: pointer;
|
|
6141
|
+
}
|
|
6142
|
+
.klun-cascader__clear:hover {
|
|
6143
|
+
color: var(--klun-icon-sub-600);
|
|
6144
|
+
}
|
|
6130
6145
|
.klun-cascader__panel {
|
|
6131
6146
|
position: absolute;
|
|
6132
6147
|
top: calc(100% + 6px);
|
|
@@ -6152,7 +6167,7 @@ body {
|
|
|
6152
6167
|
align-items: center;
|
|
6153
6168
|
gap: 8px;
|
|
6154
6169
|
width: 100%;
|
|
6155
|
-
min-height:
|
|
6170
|
+
min-height: var(--klun-control-h-md, 36px);
|
|
6156
6171
|
padding: 6px 8px;
|
|
6157
6172
|
border: none;
|
|
6158
6173
|
border-radius: var(--klun-radius-md);
|
|
@@ -8045,7 +8060,7 @@ body {
|
|
|
8045
8060
|
align-items: center;
|
|
8046
8061
|
gap: 10px;
|
|
8047
8062
|
width: 100%;
|
|
8048
|
-
min-height: 36px;
|
|
8063
|
+
min-height: var(--klun-control-h-md, 36px);
|
|
8049
8064
|
padding: 7px 10px;
|
|
8050
8065
|
border: none;
|
|
8051
8066
|
border-radius: var(--klun-radius-md);
|
|
@@ -8870,11 +8885,11 @@ body {
|
|
|
8870
8885
|
display: none;
|
|
8871
8886
|
}
|
|
8872
8887
|
.klun-horizontal-filter--small .klun-horizontal-filter__item {
|
|
8873
|
-
height:
|
|
8888
|
+
height: var(--klun-control-h-xs, 28px);
|
|
8874
8889
|
font: var(--klun-text-label-xs);
|
|
8875
8890
|
}
|
|
8876
8891
|
.klun-horizontal-filter--medium .klun-horizontal-filter__item {
|
|
8877
|
-
height: 36px;
|
|
8892
|
+
height: var(--klun-control-h-md, 36px);
|
|
8878
8893
|
font: var(--klun-text-label-sm);
|
|
8879
8894
|
}
|
|
8880
8895
|
.klun-horizontal-filter__item {
|
|
@@ -9527,7 +9542,7 @@ body {
|
|
|
9527
9542
|
align-items: center;
|
|
9528
9543
|
gap: 12px;
|
|
9529
9544
|
width: 100%;
|
|
9530
|
-
height: 40px;
|
|
9545
|
+
height: var(--klun-control-h-lg, 40px);
|
|
9531
9546
|
padding: 0 10px;
|
|
9532
9547
|
border: none;
|
|
9533
9548
|
border-radius: var(--klun-radius-md);
|
|
@@ -10039,8 +10054,8 @@ body {
|
|
|
10039
10054
|
display: inline-flex;
|
|
10040
10055
|
align-items: center;
|
|
10041
10056
|
justify-content: center;
|
|
10042
|
-
width: 32px;
|
|
10043
|
-
height: 32px;
|
|
10057
|
+
width: var(--klun-control-h-sm, 32px);
|
|
10058
|
+
height: var(--klun-control-h-sm, 32px);
|
|
10044
10059
|
border: none;
|
|
10045
10060
|
border-radius: 8px;
|
|
10046
10061
|
background: transparent;
|
|
@@ -10297,7 +10312,7 @@ body {
|
|
|
10297
10312
|
margin-top: 12px;
|
|
10298
10313
|
}
|
|
10299
10314
|
.klun-popconfirm__cancel {
|
|
10300
|
-
height: 32px;
|
|
10315
|
+
height: var(--klun-control-h-sm, 32px);
|
|
10301
10316
|
padding: 0 12px;
|
|
10302
10317
|
border: none;
|
|
10303
10318
|
border-radius: var(--klun-radius-lg);
|
|
@@ -10315,7 +10330,7 @@ body {
|
|
|
10315
10330
|
display: inline-flex;
|
|
10316
10331
|
align-items: center;
|
|
10317
10332
|
gap: 6px;
|
|
10318
|
-
height: 32px;
|
|
10333
|
+
height: var(--klun-control-h-sm, 32px);
|
|
10319
10334
|
padding: 0 14px;
|
|
10320
10335
|
border: none;
|
|
10321
10336
|
border-radius: var(--klun-radius-lg);
|