@kb.ui/react 0.10.4 → 0.12.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 (109) hide show
  1. package/README.md +142 -707
  2. package/dist/components/Accordion/Accordion.d.ts +33 -0
  3. package/dist/components/Avatar/Avatar.d.ts +19 -0
  4. package/dist/components/Code/Code.d.ts +26 -3
  5. package/dist/components/Code/tokenize.d.ts +5 -0
  6. package/dist/components/CodeBlock/CodeBlock.d.ts +10 -0
  7. package/dist/components/Collection/Collection.d.ts +99 -0
  8. package/dist/components/Collection/useCollection.d.ts +66 -0
  9. package/dist/components/CollectionList/CollectionList.d.ts +12 -0
  10. package/dist/components/CollectionRow/CollectionRow.d.ts +17 -0
  11. package/dist/components/Combobox/Combobox.d.ts +14 -2
  12. package/dist/components/ConfirmAction/ConfirmAction.d.ts +42 -0
  13. package/dist/components/CopyableText/CopyableText.d.ts +38 -0
  14. package/dist/components/CopyableText/content.d.ts +14 -0
  15. package/dist/components/Dashboard/Dashboard.d.ts +17 -0
  16. package/dist/components/DescriptionList/DescriptionList.d.ts +20 -0
  17. package/dist/components/Dialog/Dialog.d.ts +3 -1
  18. package/dist/components/Disclosure/Disclosure.d.ts +21 -0
  19. package/dist/components/EmptyState/EmptyState.d.ts +30 -0
  20. package/dist/components/Form/Form.d.ts +19 -0
  21. package/dist/components/FormSection/FormSection.d.ts +26 -0
  22. package/dist/components/Gallery/Gallery.d.ts +26 -0
  23. package/dist/components/Grid/Grid.d.ts +17 -6
  24. package/dist/components/Image/Image.d.ts +20 -0
  25. package/dist/components/Link/Link.d.ts +15 -2
  26. package/dist/components/PageHeader/PageHeader.d.ts +27 -0
  27. package/dist/components/Panel/Panel.d.ts +3 -1
  28. package/dist/components/Popover/Popover.d.ts +55 -0
  29. package/dist/components/Settings/Settings.d.ts +11 -0
  30. package/dist/components/Skeleton/Skeleton.d.ts +34 -0
  31. package/dist/components/Spinner/Spinner.d.ts +26 -0
  32. package/dist/components/Stack/Stack.d.ts +15 -0
  33. package/dist/components/StatsRow/StatsRow.d.ts +33 -0
  34. package/dist/components/SupportingPane/SupportingPane.d.ts +15 -0
  35. package/dist/components/Table/Table.d.ts +65 -0
  36. package/dist/components/Tabs/Tabs.d.ts +69 -0
  37. package/dist/components/Tabs/index.d.ts +1 -0
  38. package/dist/components/Thumbnail/Thumbnail.d.ts +14 -0
  39. package/dist/components/Toast/Toast.d.ts +72 -0
  40. package/dist/index.d.ts +39 -4
  41. package/dist/index.js +3901 -1238
  42. package/dist/index.js.map +1 -1
  43. package/dist/styles.css +1 -1
  44. package/dist/utils/CollapsiblePanel.d.ts +10 -0
  45. package/dist/utils/useClipboard.d.ts +28 -0
  46. package/docs/components/Accordion.md +66 -0
  47. package/docs/components/Avatar.md +80 -0
  48. package/docs/components/Badge.md +37 -0
  49. package/docs/components/Button.md +46 -0
  50. package/docs/components/Callout.md +41 -0
  51. package/docs/components/Card.md +41 -0
  52. package/docs/components/Checkbox.md +60 -0
  53. package/docs/components/Code.md +77 -0
  54. package/docs/components/CodeBlock.md +77 -0
  55. package/docs/components/Collection.md +183 -0
  56. package/docs/components/CollectionList.md +44 -0
  57. package/docs/components/CollectionRow.md +62 -0
  58. package/docs/components/Combobox.md +88 -0
  59. package/docs/components/ConfirmAction.md +100 -0
  60. package/docs/components/Container.md +41 -0
  61. package/docs/components/CopyableText.md +93 -0
  62. package/docs/components/Dashboard.md +81 -0
  63. package/docs/components/DescriptionList.md +61 -0
  64. package/docs/components/Dialog.md +84 -0
  65. package/docs/components/Disclosure.md +53 -0
  66. package/docs/components/EmptyState.md +50 -0
  67. package/docs/components/ErrorSummary.md +48 -0
  68. package/docs/components/Fieldset.md +42 -0
  69. package/docs/components/FileInput.md +74 -0
  70. package/docs/components/Form.md +67 -0
  71. package/docs/components/FormActions.md +45 -0
  72. package/docs/components/FormSection.md +57 -0
  73. package/docs/components/Gallery.md +84 -0
  74. package/docs/components/Grid.md +66 -0
  75. package/docs/components/Heading.md +40 -0
  76. package/docs/components/Image.md +62 -0
  77. package/docs/components/Inline.md +42 -0
  78. package/docs/components/Input.md +82 -0
  79. package/docs/components/Link.md +52 -0
  80. package/docs/components/Menu.md +44 -0
  81. package/docs/components/MultiSelect.md +59 -0
  82. package/docs/components/NumberField.md +65 -0
  83. package/docs/components/PageHeader.md +68 -0
  84. package/docs/components/Panel.md +153 -0
  85. package/docs/components/Popover.md +89 -0
  86. package/docs/components/Progress.md +37 -0
  87. package/docs/components/RadioGroup.md +69 -0
  88. package/docs/components/ScrollArea.md +40 -0
  89. package/docs/components/Select.md +71 -0
  90. package/docs/components/Separator.md +40 -0
  91. package/docs/components/Settings.md +57 -0
  92. package/docs/components/Skeleton.md +86 -0
  93. package/docs/components/Spinner.md +45 -0
  94. package/docs/components/Split.md +47 -0
  95. package/docs/components/Stack.md +54 -0
  96. package/docs/components/Stat.md +34 -0
  97. package/docs/components/StatsRow.md +80 -0
  98. package/docs/components/Status.md +48 -0
  99. package/docs/components/SupportingPane.md +59 -0
  100. package/docs/components/Switch.md +73 -0
  101. package/docs/components/Table.md +105 -0
  102. package/docs/components/Tabs.md +89 -0
  103. package/docs/components/Text.md +36 -0
  104. package/docs/components/Textarea.md +47 -0
  105. package/docs/components/Thumbnail.md +66 -0
  106. package/docs/components/Toast.md +130 -0
  107. package/docs/components/Toolbar.md +39 -0
  108. package/docs/components/Tooltip.md +42 -0
  109. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -1,37 +1,72 @@
1
+ export type { AccordionHeaderProps, AccordionItemProps, AccordionPanelProps, AccordionProps, AccordionTriggerProps, } from "./components/Accordion/Accordion";
2
+ export { Accordion } from "./components/Accordion/Accordion";
3
+ export { Avatar, type AvatarProps, type AvatarShape } from "./components/Avatar/Avatar";
1
4
  export { Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, } from "./components/Badge/Badge";
2
5
  export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, } from "./components/Button/Button";
3
6
  export { Callout, type CalloutProps, type CalloutTone } from "./components/Callout/Callout";
4
7
  export { Card, type CardProps } from "./components/Card/Card";
5
8
  export { Checkbox, type CheckboxProps } from "./components/Checkbox/Checkbox";
6
- export { Code, type CodeProps } from "./components/Code/Code";
7
- export { Combobox, type ComboboxOption, type ComboboxProps, type ComboboxSlot, } from "./components/Combobox/Combobox";
9
+ export { Code, type CodeLanguage, type CodePart, type CodeProps, type CodeSyntaxKind, type CodeToken, tokenizeCode, } from "./components/Code/Code";
10
+ export { CodeBlock, type CodeBlockProps } from "./components/CodeBlock/CodeBlock";
11
+ export type { CollectionBulkAction, CollectionBulkActionsProps, CollectionColumn, CollectionFilter, CollectionPaginationProps, CollectionProps, } from "./components/Collection/Collection";
12
+ export { Collection } from "./components/Collection/Collection";
13
+ export type { CollectionController, CollectionData, CollectionSort, CollectionState, UseCollectionOptions, } from "./components/Collection/useCollection";
14
+ export { useCollection } from "./components/Collection/useCollection";
15
+ export { CollectionList, type CollectionListElement, type CollectionListProps, } from "./components/CollectionList/CollectionList";
16
+ export { CollectionRow, type CollectionRowProps } from "./components/CollectionRow/CollectionRow";
17
+ export { Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, type ComboboxSlot, } from "./components/Combobox/Combobox";
18
+ export { ConfirmAction, type ConfirmActionProps, type ConfirmActionSlot, } from "./components/ConfirmAction/ConfirmAction";
8
19
  export { Container, type ContainerElement, type ContainerProps, type ContainerSize, } from "./components/Container/Container";
20
+ export { CopyableText, type CopyableTextFormat, type CopyableTextPart, type CopyableTextProps, type CopyableTextTone, } from "./components/CopyableText/CopyableText";
21
+ export { Dashboard, type DashboardPart, type DashboardProps, } from "./components/Dashboard/Dashboard";
22
+ export { DescriptionList, type DescriptionListDetailProps, type DescriptionListItemProps, type DescriptionListProps, type DescriptionListTermProps, } from "./components/DescriptionList/DescriptionList";
9
23
  export { Dialog, type DialogActionsProps, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogProps, type DialogSectionProps, type DialogTitleProps, type DialogTriggerProps, } from "./components/Dialog/Dialog";
24
+ export type { DisclosurePanelProps, DisclosureProps, DisclosureTriggerProps, } from "./components/Disclosure/Disclosure";
25
+ export { Disclosure } from "./components/Disclosure/Disclosure";
26
+ export { EmptyState, type EmptyStateHeadingLevel, type EmptyStateProps, type EmptyStateSize, type EmptyStateTone, type EmptyStateVariant, } from "./components/EmptyState/EmptyState";
10
27
  export { ErrorSummary, type ErrorSummaryHeadingLevel, type ErrorSummaryItem, type ErrorSummaryPart, type ErrorSummaryProps, } from "./components/ErrorSummary/ErrorSummary";
11
28
  export { Fieldset, type FieldsetPart, type FieldsetProps, } from "./components/Fieldset/Fieldset";
12
29
  export { FileInput, type FileInputItem, type FileInputProps, } from "./components/FileInput/FileInput";
30
+ export { Form, type FormPart, type FormProps, type FormWidth } from "./components/Form/Form";
13
31
  export { FormActions, type FormActionsAlign, type FormActionsProps, } from "./components/FormActions/FormActions";
14
- export { Grid, type GridProps } from "./components/Grid/Grid";
32
+ export { FormSection, type FormSectionHeadingLevel, type FormSectionLayout, type FormSectionPart, type FormSectionProps, } from "./components/FormSection/FormSection";
33
+ export { Gallery, type GalleryItemProps, type GalleryPart, type GalleryProps, } from "./components/Gallery/Gallery";
34
+ export { Grid, type GridColumns, type GridElement, type GridLayout, type GridMinItemWidth, type GridProps, } from "./components/Grid/Grid";
15
35
  export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize, } from "./components/Heading/Heading";
36
+ export { Image, type ImageProps, type ImageRatio } from "./components/Image/Image";
16
37
  export { Inline, type InlineElement, type InlineJustify, type InlineProps, } from "./components/Inline/Inline";
17
38
  export { Input, type InputProps, type InputSize } from "./components/Input/Input";
18
- export { Link, type LinkProps } from "./components/Link/Link";
39
+ export { Link, type LinkComponent, type LinkProps, type LinkProviderProps, useLinkComponent, } from "./components/Link/Link";
19
40
  export { Menu, type MenuContentProps, type MenuItemProps, type MenuProps, type MenuSeparatorProps, type MenuTriggerProps, } from "./components/Menu/Menu";
20
41
  export { MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectSlot, } from "./components/MultiSelect/MultiSelect";
21
42
  export { NumberField, type NumberFieldProps, type NumberFieldSize, } from "./components/NumberField/NumberField";
43
+ export { PageHeader, type PageHeaderHeadingLevel, type PageHeaderProps, type PageHeaderSize, } from "./components/PageHeader/PageHeader";
22
44
  export { Panel, type PanelBodyProps, type PanelDensity, type PanelFooterProps, type PanelGroupDirection, type PanelGroupProps, type PanelHandleProps, type PanelHeaderProps, type PanelProps, type PanelRail, type PanelToggleProps, type PanelTone, type PanelToolbarProps, type PanelWellProps, } from "./components/Panel/Panel";
45
+ export type { PopoverCloseProps, PopoverContentProps, PopoverDescriptionProps, PopoverProps, PopoverSectionProps, PopoverTitleProps, PopoverTriggerProps, } from "./components/Popover/Popover";
46
+ export { Popover } from "./components/Popover/Popover";
23
47
  export { Progress, type ProgressProps } from "./components/Progress/Progress";
24
48
  export { RadioGroup, type RadioGroupItemProps, type RadioGroupProps, } from "./components/RadioGroup/RadioGroup";
25
49
  export { ScrollArea, type ScrollAreaProps } from "./components/ScrollArea/ScrollArea";
26
50
  export { Select, type SelectOption, type SelectProps } from "./components/Select/Select";
27
51
  export { Separator, type SeparatorOrientation, type SeparatorProps, } from "./components/Separator/Separator";
52
+ export { Settings, type SettingsPart, type SettingsProps } from "./components/Settings/Settings";
53
+ export { Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonSize, type SkeletonTone, type SkeletonVariant, } from "./components/Skeleton/Skeleton";
54
+ export { Spinner, type SpinnerAppearance, type SpinnerProps, type SpinnerSize, type SpinnerTone, type SpinnerVariant, } from "./components/Spinner/Spinner";
28
55
  export { Split, type SplitCollapse, type SplitElement, type SplitProps, type SplitRatio, } from "./components/Split/Split";
56
+ export { Stack, type StackAlign, type StackElement, type StackJustify, type StackProps, } from "./components/Stack/Stack";
29
57
  export { Stat, type StatProps, type StatSize } from "./components/Stat/Stat";
58
+ export { StatsRow, type StatsRowAppearance, type StatsRowItemProps, type StatsRowProps, type StatsRowTone, type StatsRowTrend, } from "./components/StatsRow/StatsRow";
30
59
  export { Status, type StatusAppearance, type StatusProps, type StatusTone, } from "./components/Status/Status";
60
+ export { SupportingPane, type SupportingPanePart, type SupportingPaneProps, } from "./components/SupportingPane/SupportingPane";
31
61
  export { Switch, type SwitchProps, type SwitchSize, type SwitchTone, } from "./components/Switch/Switch";
62
+ export { Table, type TableBodyProps, type TableCaptionProps, type TableCellOptions, type TableCellProps, type TableColumnHeaderProps, type TableFootProps, type TableHeadProps, type TableProps, type TableRowActionsProps, type TableRowHeaderProps, type TableRowProps, type TableScrollContainerProps, type TableSelectionCheckboxProps, type TableSortDirection, } from "./components/Table/Table";
63
+ export { Tabs, type TabsClassKey, type TabsIndicatorProps, type TabsListProps, type TabsOrientation, type TabsPanelProps, type TabsProps, type TabsSize, type TabsTabProps, type TabsVariant, } from "./components/Tabs/Tabs";
32
64
  export { Text, type TextElement, type TextProps, type TextSize, type TextTone, } from "./components/Text/Text";
33
65
  export { Textarea, type TextareaPart, type TextareaProps, type TextareaResize, } from "./components/Textarea/Textarea";
66
+ export { Thumbnail, type ThumbnailProps } from "./components/Thumbnail/Thumbnail";
67
+ export { createToastManager, Toast, type ToastActionProps, type ToastAddOptions, type ToastCloseProps, type ToastContentProps, type ToastDescriptionProps, type ToastManager, type ToastObject, type ToastPlacement, type ToastPromiseOptions, type ToastProps, type ToastProviderProps, type ToastTitleProps, type ToastTone, type ToastUpdateOptions, type ToastViewportProps, useToastManager, } from "./components/Toast/Toast";
34
68
  export { Toolbar, type ToolbarButtonProps, type ToolbarGroupProps, type ToolbarProps, type ToolbarSeparatorProps, } from "./components/Toolbar/Toolbar";
35
69
  export { Tooltip, type TooltipProps } from "./components/Tooltip/Tooltip";
36
70
  export { type ClassNames, kb } from "./utils/kb";
37
71
  export type { LayoutAlign, LayoutGap } from "./utils/layout";
72
+ export type { CopyFeedbackProps, CopyState } from "./utils/useClipboard";