aristid-ds 19.0.0-c46677e → 19.0.0-e350845

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 (114) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/Kit/DataDisplay/Comment/index.js +1 -1
  3. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  4. package/dist/Kit/DataDisplay/IdCard/index.d.ts +1 -4
  5. package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
  6. package/dist/Kit/DataDisplay/ItemCard/index.d.ts +24 -2
  7. package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
  8. package/dist/Kit/DataDisplay/ItemCard/types.d.ts +2 -1
  9. package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
  10. package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
  11. package/dist/Kit/DataDisplay/RedirectCard/types.d.ts +3 -2
  12. package/dist/Kit/DataDisplay/Tab/index.d.ts +12 -5
  13. package/dist/Kit/DataDisplay/Tab/index.js +1 -1
  14. package/dist/Kit/DataDisplay/Tab/types.d.ts +2 -1
  15. package/dist/Kit/DataDisplay/Table/index.js +1 -1
  16. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  17. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  18. package/dist/Kit/DataEntry/Input/index.js +1 -1
  19. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
  20. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +1 -1
  21. package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
  22. package/dist/Kit/DataEntry/Select/index.js +1 -1
  23. package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
  24. package/dist/Kit/DataEntry/Upload/index.js +1 -1
  25. package/dist/Kit/Feedback/Alert/Alert.d.ts +1 -1
  26. package/dist/Kit/Feedback/Alert/index.js +1 -1
  27. package/dist/Kit/Feedback/Alert/types.d.ts +2 -2
  28. package/dist/Kit/Feedback/Loader/index.d.ts +7 -2
  29. package/dist/Kit/Feedback/Loader/index.js +1 -1
  30. package/dist/Kit/Feedback/Loader/types.d.ts +2 -1
  31. package/dist/Kit/Feedback/Modal/Modal.d.ts +1 -1
  32. package/dist/Kit/Feedback/Modal/index.js +1 -1
  33. package/dist/Kit/Feedback/Modal/types.d.ts +2 -2
  34. package/dist/Kit/Feedback/Notification/Notification.d.ts +1 -1
  35. package/dist/Kit/Feedback/Notification/index.js +1 -1
  36. package/dist/Kit/Feedback/Notification/types.d.ts +4 -2
  37. package/dist/Kit/Feedback/Progress/Progress.d.ts +1 -1
  38. package/dist/Kit/Feedback/Progress/ProgressWrapper.d.ts +1 -1
  39. package/dist/Kit/Feedback/Progress/SegmentedProgress.d.ts +1 -1
  40. package/dist/Kit/Feedback/Progress/index.js +1 -1
  41. package/dist/Kit/Feedback/Progress/types.d.ts +5 -3
  42. package/dist/Kit/Feedback/Skeleton/KitAvatarSkeleton.d.ts +8 -2
  43. package/dist/Kit/Feedback/Skeleton/KitCustomSkeleton.d.ts +5 -2
  44. package/dist/Kit/Feedback/Skeleton/KitInputSkeleton.d.ts +5 -2
  45. package/dist/Kit/Feedback/Skeleton/KitItemCard.d.ts +7 -2
  46. package/dist/Kit/Feedback/Skeleton/KitItemListSkeleton.d.ts +5 -2
  47. package/dist/Kit/Feedback/Skeleton/index.d.ts +7 -6
  48. package/dist/Kit/Feedback/Skeleton/index.js +1 -1
  49. package/dist/Kit/Feedback/Skeleton/types.d.ts +2 -1
  50. package/dist/Kit/Feedback/SnackBar/SnackBar.d.ts +1 -1
  51. package/dist/Kit/Feedback/SnackBar/index.js +1 -1
  52. package/dist/Kit/Feedback/SnackBar/types.d.ts +4 -1
  53. package/dist/Kit/General/Button/types.d.ts +8 -2
  54. package/dist/Kit/General/Icon/index.d.ts +1 -4
  55. package/dist/Kit/General/Icon/index.js +1 -1
  56. package/dist/Kit/Layout/PageLayout/PageLayout.d.ts +3 -2
  57. package/dist/Kit/Layout/PageLayout/index.d.ts +2 -2
  58. package/dist/Kit/Layout/PageLayout/index.js +1 -1
  59. package/dist/Kit/Layout/PageLayout/types.d.ts +2 -1
  60. package/dist/Kit/Layout/Section/index.d.ts +3 -2
  61. package/dist/Kit/Layout/Section/index.js +1 -1
  62. package/dist/Kit/Navigation/Header/Header.d.ts +1 -1
  63. package/dist/Kit/Navigation/Header/index.d.ts +2 -2
  64. package/dist/Kit/Navigation/Header/index.js +1 -1
  65. package/dist/Kit/Navigation/PageHeader/index.d.ts +1 -4
  66. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  67. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  68. package/dist/Kit/Navigation/SideMenu/SideMenu.d.ts +1 -1
  69. package/dist/Kit/Navigation/SideMenu/index.d.ts +2 -2
  70. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  71. package/dist/Kit/Navigation/SidePanel/index.js +1 -1
  72. package/dist/Kit/Navigation/SidePanel/types.d.ts +2 -0
  73. package/dist/Kit/index.js +29 -29
  74. package/dist/assets/Table.css +1 -1
  75. package/dist/chunks/{Alert.XcTieGyC.js → Alert.BfZeth_J.js} +44 -43
  76. package/dist/chunks/{Comment.CDQ6TIHn.js → Comment.D8sqJVNJ.js} +1 -1
  77. package/dist/chunks/{Error.qh0F36-9.js → Error.C2iDt_Hq.js} +1 -1
  78. package/dist/chunks/{Header.RuTfWnRm.js → Header.DoijOhoE.js} +27 -23
  79. package/dist/chunks/{Icon.COLQ5tUg.js → Icon.B3FbeWDW.js} +14 -13
  80. package/dist/chunks/{IdCard.DSo12E7M.js → IdCard.HA9J-SIc.js} +35 -33
  81. package/dist/chunks/{Input.ZLUsqWHF.js → Input.Biq0zdC2.js} +99 -98
  82. package/dist/chunks/{ItemCard.DnIdj8tJ.js → ItemCard.vJvHDhPZ.js} +18 -17
  83. package/dist/chunks/{ItemList.gnmv2gB1.js → ItemList.Nfp7YkqY.js} +1 -1
  84. package/dist/chunks/{LinkButton.B9r0HIal.js → LinkButton.CLZiNZjr.js} +2 -2
  85. package/dist/chunks/Loader.DPeb_mxq.js +43 -0
  86. package/dist/chunks/{Modal.BzGFIRa0.js → Modal.MNf_uJwg.js} +73 -70
  87. package/dist/chunks/{Notification.BXfrG4vW.js → Notification.Eq2Td3M7.js} +40 -39
  88. package/dist/chunks/{PageHeader.BPrdVy7t.js → PageHeader.PYXZ1T11.js} +20 -19
  89. package/dist/chunks/PageLayout.DUenBJ0_.js +34 -0
  90. package/dist/chunks/{Pagination.DELLMW9W.js → Pagination.DNw3IYTh.js} +1 -1
  91. package/dist/chunks/Progress.CfQttoi2.js +108 -0
  92. package/dist/chunks/{RedirectCard.DkHDJNNl.js → RedirectCard.BGBDcLMl.js} +14 -13
  93. package/dist/chunks/{SearchInput.C1l9FnQs.js → SearchInput.CmMTZsdB.js} +1 -1
  94. package/dist/chunks/Section.C95uswgY.js +16 -0
  95. package/dist/chunks/{Select.DNdoWx7C.js → Select.CUBz_4J_.js} +3 -3
  96. package/dist/chunks/SideMenu.CsVnNUM3.js +252 -0
  97. package/dist/chunks/{SidePanel.BlrtjD8X.js → SidePanel.TrwRMy_x.js} +16 -14
  98. package/dist/chunks/Skeleton.CEtvY6vF.js +88 -0
  99. package/dist/chunks/{SnackBar.4UJxpOdJ.js → SnackBar.Bv7Quq1D.js} +31 -28
  100. package/dist/chunks/{Tab.D3akoQGS.js → Tab.CjKAuMPx.js} +54 -52
  101. package/dist/chunks/{Table.1fob0iIm.js → Table.DmIIySxD.js} +24 -22
  102. package/dist/chunks/{Tag.CLG-Nlfa.js → Tag.CkTQvc4z.js} +2 -2
  103. package/dist/chunks/{TreeSelect.C-K_hSMz.js → TreeSelect.BnDfYjWf.js} +3 -3
  104. package/dist/chunks/{Upload.CrCQ29-e.js → Upload.ClQWgK9P.js} +2 -2
  105. package/dist/chunks/{constants.rBcPntAb.js → constants.BgzfcvTI.js} +1 -1
  106. package/dist/index.es.js +29 -29
  107. package/dist/index.umd.js +4 -4
  108. package/package.json +1 -1
  109. package/dist/chunks/Loader.C6ehUos5.js +0 -38
  110. package/dist/chunks/PageLayout.G9RGRayF.js +0 -31
  111. package/dist/chunks/Progress.BnzAlkZP.js +0 -93
  112. package/dist/chunks/Section.Dxs5OVdP.js +0 -13
  113. package/dist/chunks/SideMenu.D5d7m5Vs.js +0 -251
  114. package/dist/chunks/Skeleton.w4TjsphH.js +0 -57
package/CHANGELOG.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  - **SideMenu:**
8
8
  - Add collapsible sections that auto-expand when they contain the active menu item (@philippechevieux)
9
+ - Forward its `ref` and additional HTML and ARIA props to the wrapper around the `<nav>` (and the panel when an item declares a `panel`), which is now always rendered; `className` and `style` move to it too (@Baloche)
9
10
  - **Ant:**
10
11
  - Export antd types (`FormInstance`, `FormListFieldData`, `FormListOperation`, `TableColumnsType`, `TreeDataNode`, `MenuItem`, `SizeType`, `TreeEventDataNode`) and `AntColor` from the root barrel (@philippechevieux)
11
12
  - **⚠️ Breaking change - Collapse:**
@@ -16,8 +17,48 @@
16
17
  - Add `KitBreadcrumb.Path` sub-component, the "ancestor / ancestor / " path shown ahead of a node's name (used by `KitTreeSelect`'s `showFullPath`), so it can be reused anywhere, for instance in a `secondary`, `neutral` or `ai-secondary` tag (@evoiron)
17
18
  - Add `separator` prop (`'/'` by default) and `breadcrumbColors` prop to `KitBreadcrumb.Path`: the breadcrumb's colors when set, the surrounding color otherwise (@evoiron)
18
19
  - Add `size` prop (`s` | `m`) to `KitBreadcrumb.Path`, same sizes as `KitBreadcrumb`; inherits the surrounding font size when not set (@evoiron)
20
+ - **Button:**
21
+ - Accept `onFocus` and `onBlur` in its props, which the type used to reject (@Baloche)
22
+ - **Alert:**
23
+ - Forward its `ref` to the root element (@Baloche)
19
24
  - **Header:**
20
25
  - Add a `closeMenu()` method to `KitHeader.Profile`, reachable through a ref (`KitHeaderProfileRef`), so the parent can close the profile menu, e.g. once one of its actions is used (@evoiron)
26
+ - Forward its `ref` to the root element (@Baloche)
27
+ - Fix a `style` passed to the header overriding its contrast color instead of being merged with it (@Baloche)
28
+ - **Alert:**
29
+ - Forward its `ref` to the root element (@Baloche)
30
+ - **Icon:**
31
+ - Forward its `ref` to the root element (@Baloche)
32
+ - **Loader:**
33
+ - Forward its `ref` and additional HTML and ARIA props to the root element (@Baloche)
34
+ - **ItemCard:**
35
+ - Forward additional HTML and ARIA props (`id`, `data-testid`, `aria-*`…) to the root element (@Baloche)
36
+ - **PageLayout:**
37
+ - Forward its `ref` and additional HTML and ARIA props to the root element (@Baloche)
38
+ - **Progress:**
39
+ - Forward its `ref` and additional HTML and ARIA props to the root element, including for `KitProgress.Segmented`; a passed `aria-label` now overrides the default one (@Baloche)
40
+ - **Notification:**
41
+ - Forward its `ref` to the root element (@Baloche)
42
+ - **PageHeader:**
43
+ - Forward its `ref` to the root element (@Baloche)
44
+ - **Section:**
45
+ - Forward its `ref` to the root element (@Baloche)
46
+ - **Modal:**
47
+ - Forward its `ref` to the dialog element (@Baloche)
48
+ - **SnackBar:**
49
+ - Forward its `ref` (through `openKitSnackBar`) and additional HTML and ARIA props (`id`, `data-*`, `aria-*`…) to the root element (@Baloche)
50
+ - **Tab:**
51
+ - Forward its `ref` to the element wrapping the tab list and additional HTML and ARIA props to the tab list (@Baloche)
52
+ - **Skeleton:**
53
+ - Forward the `ref` and additional HTML and ARIA props of `KitAvatarSkeleton`, `KitCustomSkeleton`, `KitInputSkeleton`, `KitItemCardSkeleton` and `KitItemListSkeleton` to their root element (@Baloche)
54
+ - **SidePanel:**
55
+ - Expose its root element as `nativeElement` on the `KitSidePanelRef` handle (@Baloche)
56
+ - **IdCard:**
57
+ - Forward its `ref` to the root element (@Baloche)
58
+ - **RedirectCard:**
59
+ - Forward additional HTML and ARIA props (`id`, `data-testid`, `aria-*`…) to the root element (@Baloche)
60
+ - **⚠️ Breaking change - RedirectCard:**
61
+ - `onClick` is now typed with React's `MouseEvent<HTMLElement>` instead of the global DOM `MouseEvent`; a handler annotated with the DOM type no longer compiles under `strictFunctionTypes`, so annotate it with `MouseEvent` from `react` (or let the type be inferred) (@Baloche)
21
62
  - **Tag:**
22
63
  - Add `size` prop (`small` | `medium`, `medium` by default) to `KitTag.Group`, applied to every tag of the group including the `+N others` tag (@evoiron)
23
64
  - Add `onOthersTagTruncatedChange` callback to `KitTag.Group`, called when the `+N others` tag becomes clipped by the row or stops being (@evoiron)
@@ -1 +1 @@
1
- export { n as KitComment, t as KitThread } from "../../../chunks/Comment.CDQ6TIHn.js";
1
+ export { n as KitComment, t as KitThread } from "../../../chunks/Comment.D8sqJVNJ.js";
@@ -1 +1 @@
1
- export { t as KitError } from "../../../chunks/Error.qh0F36-9.js";
1
+ export { t as KitError } from "../../../chunks/Error.C2iDt_Hq.js";
@@ -1,6 +1,3 @@
1
1
  import { KitIdCardProps } from './types';
2
2
  export type { KitIdCardProps } from './types';
3
- export declare const KitIdCard: {
4
- ({ className, title, description, descriptionPrefix, avatarProps, avatar, color, colorLabel, size, disabled, ...idCardProps }: KitIdCardProps): import('node_modules/@types/react').JSX.Element;
5
- displayName: string;
6
- };
3
+ export declare const KitIdCard: import('react').ForwardRefExoticComponent<KitIdCardProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export { t as KitIdCard } from "../../../chunks/IdCard.DSo12E7M.js";
1
+ export { t as KitIdCard } from "../../../chunks/IdCard.HA9J-SIc.js";
@@ -1,7 +1,29 @@
1
- import { KitItemCardProps } from './types';
2
1
  export type { KitItemCardProps } from './types';
3
2
  /**
4
3
  * @deprecated `KitItemCard` will be removed in a future major version. Use `KitCard` instead,
5
4
  * composing `KitIdCard` (title/description), `KitCard.Image`/`KitCard.Media` and `KitCard.Actions`.
6
5
  */
7
- export declare const KitItemCard: import('react').ForwardRefExoticComponent<KitItemCardProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export declare const KitItemCard: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
7
+ title: string;
8
+ className?: string;
9
+ style?: import('react').CSSProperties;
10
+ disabled?: boolean;
11
+ display?: "card" | "list";
12
+ imageAlt?: string;
13
+ imageSrc?: string;
14
+ icon?: import('react').ReactNode;
15
+ description?: string;
16
+ tagGroup?: import('../Tag').KitTagGroupProps;
17
+ breadcrumbItems?: import('../../Navigation/Breadcrumb').KitBreadcrumbItem[];
18
+ draggableHandler?: import('react').ReactNode;
19
+ selected?: boolean;
20
+ loading?: boolean;
21
+ onSelect?: (e: import('node_modules/antd/es').CheckboxChangeEvent) => void;
22
+ activateLabel?: string;
23
+ activated?: boolean;
24
+ onActivate?: import('node_modules/@rc-component/switch/lib').SwitchChangeEventHandler;
25
+ extra?: import('react').ReactNode;
26
+ actions?: import('../types').KitActionButton[];
27
+ actionsLimit?: number;
28
+ imageCover?: boolean;
29
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export { t as KitItemCard } from "../../../chunks/ItemCard.DnIdj8tJ.js";
1
+ export { t as KitItemCard } from "../../../chunks/ItemCard.vJvHDhPZ.js";
@@ -4,11 +4,12 @@ import { CheckboxChangeEvent } from 'antd/es/checkbox';
4
4
  import { SwitchChangeEventHandler } from 'antd/es/switch';
5
5
  import { KitBreadcrumbItem } from '../../Navigation/Breadcrumb/types';
6
6
  import { KitActionButton } from '../types';
7
+ import { KitHTMLAttributes } from '../../../types';
7
8
  /**
8
9
  * @deprecated `KitItemCard` will be removed in a future major version. Use `KitCardProps` instead,
9
10
  * composing `KitIdCardProps` (title/description), `KitCardImageProps`/`KitCardMediaProps` and `KitCardActionsProps`.
10
11
  */
11
- export type KitItemCardProps = {
12
+ export type KitItemCardProps = KitHTMLAttributes<HTMLDivElement> & {
12
13
  title: string;
13
14
  className?: string;
14
15
  style?: CSSProperties;
@@ -1 +1 @@
1
- export { t as KitItemList } from "../../../chunks/ItemList.gnmv2gB1.js";
1
+ export { t as KitItemList } from "../../../chunks/ItemList.Nfp7YkqY.js";
@@ -1 +1 @@
1
- export { t as KitRedirectCard } from "../../../chunks/RedirectCard.DkHDJNNl.js";
1
+ export { t as KitRedirectCard } from "../../../chunks/RedirectCard.BGBDcLMl.js";
@@ -1,6 +1,7 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, MouseEvent, ReactNode } from 'react';
2
2
  import { KitActionButton } from '../types';
3
- export interface KitRedirectCardProps {
3
+ import { KitHTMLAttributes } from '../../../types';
4
+ export interface KitRedirectCardProps extends KitHTMLAttributes<HTMLDivElement> {
4
5
  title: string;
5
6
  className?: string;
6
7
  style?: CSSProperties;
@@ -1,7 +1,14 @@
1
- import { KitTabProps } from './types';
2
1
  export type { KitTabProps, KitTabItem } from './types';
3
- declare const KitTab: {
4
- ({ addTab, centered, className, activeKey: controlledSelectedTabKey, defaultKey, items, onChange, fullwidthTab, size, variant, }: KitTabProps): import('react').JSX.Element;
5
- displayName: string;
6
- };
2
+ declare const KitTab: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
3
+ items: import('./types').KitTabItem[];
4
+ addTab?: () => void;
5
+ centered?: boolean;
6
+ className?: string;
7
+ activeKey?: string;
8
+ defaultKey?: string;
9
+ onChange?: (tabKey: string) => void;
10
+ size?: "small" | "medium" | "large";
11
+ fullwidthTab?: boolean;
12
+ variant?: "classic" | "pill";
13
+ } & import('react').RefAttributes<HTMLDivElement>>;
7
14
  export { KitTab };
@@ -1 +1 @@
1
- export { t as KitTab } from "../../../chunks/Tab.D3akoQGS.js";
1
+ export { t as KitTab } from "../../../chunks/Tab.CjKAuMPx.js";
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { KitHTMLAttributes } from '../../../types';
2
3
  import { IKitBadge } from '../Badge/types';
3
- export type KitTabProps = {
4
+ export type KitTabProps = KitHTMLAttributes<HTMLDivElement> & {
4
5
  items: KitTabItem[];
5
6
  addTab?: () => void;
6
7
  centered?: boolean;
@@ -1 +1 @@
1
- export { t as KitTable, n as KitTableExpandButton } from "../../../chunks/Table.1fob0iIm.js";
1
+ export { t as KitTable, n as KitTableExpandButton } from "../../../chunks/Table.DmIIySxD.js";
@@ -1 +1 @@
1
- export { t as KitTag } from "../../../chunks/Tag.CLG-Nlfa.js";
1
+ export { t as KitTag } from "../../../chunks/Tag.CkTQvc4z.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../../../chunks/useGetPopupContainer.C6KjVnVk.js";
2
2
  import { t } from "../../../chunks/InputWrapper.CoX12MnN.js";
3
3
  import { t as n } from "../../../chunks/useDeprecatedInputWrapper.CfKUxrLS.js";
4
- import { t as r } from "../../../chunks/Input.ZLUsqWHF.js";
4
+ import { t as r } from "../../../chunks/Input.Biq0zdC2.js";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  import { forwardRef as a, useRef as o, useState as s } from "react";
7
7
  import { AutoComplete as c } from "antd";
@@ -1 +1 @@
1
- export { t as KitInput } from "../../../chunks/Input.ZLUsqWHF.js";
1
+ export { t as KitInput } from "../../../chunks/Input.Biq0zdC2.js";
@@ -1 +1 @@
1
- export { t as KitLinkButton } from "../../../../../chunks/LinkButton.B9r0HIal.js";
1
+ export { t as KitLinkButton } from "../../../../../chunks/LinkButton.CLZiNZjr.js";
@@ -2,7 +2,7 @@ import { t as e } from "../../../../../chunks/Divider.BmAL40z9.js";
2
2
  import { KitFontStylesButtons as t } from "../FontStylesButtons/index.js";
3
3
  import { t as n } from "../../../../../chunks/TextColorButton.BVSfzNsr.js";
4
4
  import { KitTextAlignButtons as r } from "../TextAlignButtons/index.js";
5
- import { t as i } from "../../../../../chunks/LinkButton.B9r0HIal.js";
5
+ import { t as i } from "../../../../../chunks/LinkButton.CLZiNZjr.js";
6
6
  import { KitImageButton as a } from "../ImageButton/index.js";
7
7
  import { KitListButtons as o } from "../ListButtons/index.js";
8
8
  import { KitIndentListButtons as s } from "../IndentListButtons/index.js";
@@ -1 +1 @@
1
- export { t as KitSearchInput } from "../../../chunks/SearchInput.C1l9FnQs.js";
1
+ export { t as KitSearchInput } from "../../../chunks/SearchInput.CmMTZsdB.js";
@@ -1 +1 @@
1
- export { t as KitSelect } from "../../../chunks/Select.DNdoWx7C.js";
1
+ export { t as KitSelect } from "../../../chunks/Select.CUBz_4J_.js";
@@ -1 +1 @@
1
- export { t as KitTreeSelect } from "../../../chunks/TreeSelect.C-K_hSMz.js";
1
+ export { t as KitTreeSelect } from "../../../chunks/TreeSelect.BnDfYjWf.js";
@@ -1 +1 @@
1
- export { t as KitUpload } from "../../../chunks/Upload.CrCQ29-e.js";
1
+ export { t as KitUpload } from "../../../chunks/Upload.ClQWgK9P.js";
@@ -1,3 +1,3 @@
1
1
  import { KitAlertProps } from './types';
2
- declare const KitAlert: ({ type, className, onClose, showIcon, message, description, closable, details, customContent, ...alertProps }: KitAlertProps) => import('react').JSX.Element | null;
2
+ declare const KitAlert: import('react').ForwardRefExoticComponent<KitAlertProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export default KitAlert;
@@ -1 +1 @@
1
- export { t as KitAlert } from "../../../chunks/Alert.XcTieGyC.js";
1
+ export { t as KitAlert } from "../../../chunks/Alert.BfZeth_J.js";
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, MouseEvent as ReactMouseEvent, ReactNode } from 'react';
1
+ import { ForwardRefExoticComponent, MouseEvent as ReactMouseEvent, ReactNode, RefAttributes } from 'react';
2
2
  import { KitHTMLAttributes } from '../../../types';
3
3
  import { ToastPosition } from 'react-hot-toast';
4
4
  export type KitAlertType = 'info' | 'success' | 'warning' | 'error';
@@ -22,7 +22,7 @@ export type KitToastedAlert = KitAlertProps & {
22
22
 
23
23
  export type Alertfunc = (props: KitToastedAlert) => string;
24
24
 
25
- export type KitAlertCompoundedComponent = FunctionComponent<KitAlertProps> & {
25
+ export type KitAlertCompoundedComponent = ForwardRefExoticComponent<KitAlertProps & RefAttributes<HTMLDivElement>> & {
26
26
  info: Alertfunc;
27
27
  success: Alertfunc;
28
28
  error: Alertfunc;
@@ -1,3 +1,8 @@
1
- import { KitLoaderProps } from './types';
2
1
  export type { KitLoaderProps } from './types';
3
- export declare const KitLoader: ({ type, infinite, value, className, style, ...props }: KitLoaderProps) => import('node_modules/@types/react').JSX.Element;
2
+ export declare const KitLoader: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLSpanElement> & {
3
+ type?: "linear" | "animated" | "ai";
4
+ infinite?: boolean;
5
+ value?: number;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ } & import('react').RefAttributes<HTMLSpanElement>>;
@@ -1 +1 @@
1
- export { t as KitLoader } from "../../../chunks/Loader.C6ehUos5.js";
1
+ export { t as KitLoader } from "../../../chunks/Loader.DPeb_mxq.js";
@@ -1,4 +1,5 @@
1
- export type KitLoaderProps = {
1
+ import { KitHTMLAttributes } from '../../../types';
2
+ export type KitLoaderProps = KitHTMLAttributes<HTMLSpanElement> & {
2
3
  type?: 'linear' | 'animated' | 'ai';
3
4
  infinite?: boolean;
4
5
  value?: number;
@@ -1,3 +1,3 @@
1
1
  import { KitModalProps } from './types';
2
- declare const Modal: ({ title, extraRight, style, width, height, fullscreen, overlayClassName, isOpen, useChildrenOnly, ...props }: KitModalProps) => import('node_modules/@types/react').JSX.Element;
2
+ declare const Modal: import('react').ForwardRefExoticComponent<KitModalProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export default Modal;
@@ -1 +1 @@
1
- export { t as KitModal, n as KitModalContent, r as KitModalFooter, i as KitModalHeader } from "../../../chunks/Modal.BzGFIRa0.js";
1
+ export { t as KitModal, n as KitModalContent, r as KitModalFooter, i as KitModalHeader } from "../../../chunks/Modal.MNf_uJwg.js";
@@ -1,4 +1,4 @@
1
- import { CSSProperties, FunctionComponent, ReactNode } from 'react';
1
+ import { CSSProperties, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
2
  import { KitHTMLAttributes } from '../../../types';
3
3
  import { default as ReactModal } from 'react-modal';
4
4
  type propsToOmit =
@@ -60,7 +60,7 @@ type ModalFunc = (props: KitConfirmDialogProps) => {
60
60
  update: (configUpdate: ConfigUpdate) => void;
61
61
  };
62
62
 
63
- export type KitModalCompoundedComponent = FunctionComponent<KitModalProps> & {
63
+ export type KitModalCompoundedComponent = ForwardRefExoticComponent<KitModalProps & RefAttributes<HTMLDivElement>> & {
64
64
  info: ModalFunc;
65
65
  success: ModalFunc;
66
66
  error: ModalFunc;
@@ -1,3 +1,3 @@
1
1
  import { KitNotificationProps } from './types';
2
- declare const KitNotification: ({ message, messageExtra, actionExtra, description, descriptionExtra, icon, type, footer, className, closeText, closable, onClose, typeBorder, ...props }: KitNotificationProps) => import('react').JSX.Element | null;
2
+ declare const KitNotification: import('react').ForwardRefExoticComponent<KitNotificationProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export default KitNotification;
@@ -1 +1 @@
1
- export { t as KitNotification } from "../../../chunks/Notification.BXfrG4vW.js";
1
+ export { t as KitNotification } from "../../../chunks/Notification.Eq2Td3M7.js";
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, ReactNode } from 'react';
1
+ import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
2
  import { KitHTMLAttributes } from '../../../types';
3
3
  import { ToastPosition } from 'react-hot-toast';
4
4
  export interface KitNotificationProps extends KitHTMLAttributes<HTMLDivElement> {
@@ -26,7 +26,9 @@ export type Notificationfunc = (props: KitToastedNotification) => string;
26
26
 
27
27
  type CompoundedNotificationFunc = (props: Omit<KitToastedNotification, 'type'>) => string;
28
28
 
29
- export type KitNotificationCompoundedComponent = FunctionComponent<KitNotificationProps> & {
29
+ export type KitNotificationCompoundedComponent = ForwardRefExoticComponent<
30
+ KitNotificationProps & RefAttributes<HTMLDivElement>
31
+ > & {
30
32
  neutral: CompoundedNotificationFunc;
31
33
  info: CompoundedNotificationFunc;
32
34
  success: CompoundedNotificationFunc;
@@ -1,2 +1,2 @@
1
1
  import { KitProgressProps } from './types';
2
- export declare const KitProgress: ({ className, style, percent, strokeColor, label, showPercent, status }: KitProgressProps) => import('node_modules/@types/react').JSX.Element;
2
+ export declare const KitProgress: import('react').ForwardRefExoticComponent<KitProgressProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
1
  import { KitProgressWrapperProps } from './types';
2
- export declare const KitProgressWrapper: ({ className, style, percent, label, children, status, showPercent, hasSegments, }: KitProgressWrapperProps) => import('node_modules/@types/react').JSX.Element;
2
+ export declare const KitProgressWrapper: import('react').ForwardRefExoticComponent<KitProgressWrapperProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
1
  import { KitSegmentedProgressProps } from './types';
2
- export declare const KitSegmentedProgress: ({ className, style, percent, segments, label, showPercent, }: KitSegmentedProgressProps) => import('node_modules/@types/react').JSX.Element;
2
+ export declare const KitSegmentedProgress: import('react').ForwardRefExoticComponent<KitSegmentedProgressProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export { t as KitProgress } from "../../../chunks/Progress.BnzAlkZP.js";
1
+ export { t as KitProgress } from "../../../chunks/Progress.CfQttoi2.js";
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { KitHTMLAttributes } from '../../../types';
3
3
  type Segment = {percent: number; strokeColor: string; tooltip?: string};
4
4
 
@@ -23,8 +23,10 @@ export interface KitProgressWrapperProps extends KitHTMLAttributes<HTMLDivElemen
23
23
  status?: ProgressStatus;
24
24
  }
25
25
 
26
- export type KitProgressCompoundedComponent = FunctionComponent<KitProgressProps> & {
27
- Segmented: ForwardRefExoticComponent<HTMLButtonElement, KitSegmentedProgressProps>;
26
+ export type KitProgressCompoundedComponent = ForwardRefExoticComponent<
27
+ KitProgressProps & RefAttributes<HTMLDivElement>
28
+ > & {
29
+ Segmented: ForwardRefExoticComponent<KitSegmentedProgressProps & RefAttributes<HTMLDivElement>>;
28
30
  };
29
31
 
30
32
  // Deprecated aliases kept so the previous names keep resolving during the migration window.
@@ -1,2 +1,8 @@
1
- import { KitAvatarSkeletonProps } from './types';
2
- export declare const KitAvatarSkeleton: ({ className, style, size, shape, active, }: KitAvatarSkeletonProps) => import('node_modules/@types/react').JSX.Element;
1
+ export declare const KitAvatarSkeleton: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
2
+ style?: import('react').CSSProperties;
3
+ className?: string;
4
+ active?: boolean;
5
+ } & {
6
+ size?: "small" | "medium" | "large" | number;
7
+ shape?: "circle" | "square";
8
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,5 @@
1
- import { KitCustomSkeletonProps } from './types';
2
- export declare const KitCustomSkeleton: ({ className, style, active }: KitCustomSkeletonProps) => import('node_modules/@types/react').JSX.Element;
1
+ export declare const KitCustomSkeleton: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
2
+ style?: import('react').CSSProperties;
3
+ className?: string;
4
+ active?: boolean;
5
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,5 @@
1
- import { KitInputSkeletonProps } from './types';
2
- export declare const KitInputSkeleton: ({ className, style, active }: KitInputSkeletonProps) => import('node_modules/@types/react').JSX.Element;
1
+ export declare const KitInputSkeleton: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
2
+ style?: import('react').CSSProperties;
3
+ className?: string;
4
+ active?: boolean;
5
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,7 @@
1
- import { KitItemCardSkeletonProps } from './types';
2
- export declare const KitItemCardSkeleton: ({ className, style, display, active }: KitItemCardSkeletonProps) => import('node_modules/@types/react').JSX.Element;
1
+ export declare const KitItemCardSkeleton: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
2
+ style?: import('react').CSSProperties;
3
+ className?: string;
4
+ active?: boolean;
5
+ } & {
6
+ display?: "card" | "list";
7
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,5 @@
1
- import { KitItemListSkeletonProps } from './types';
2
- export declare const KitItemListSkeleton: ({ className, style, active }: KitItemListSkeletonProps) => import('node_modules/@types/react').JSX.Element;
1
+ export declare const KitItemListSkeleton: import('react').ForwardRefExoticComponent<import('../../../types').KitHTMLAttributes<HTMLDivElement> & {
2
+ style?: import('react').CSSProperties;
3
+ className?: string;
4
+ active?: boolean;
5
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,13 @@
1
- import { FunctionComponent } from 'react';
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { KitAvatarSkeletonProps, KitCustomSkeletonProps, KitInputSkeletonProps, KitItemCardSkeletonProps, KitItemListSkeletonProps } from './types';
3
3
  export type { KitAvatarSkeletonProps, KitCustomSkeletonProps, KitInputSkeletonProps, KitItemCardSkeletonProps, KitItemListSkeletonProps, KitSkeletonProps, } from './types';
4
+ type SkeletonComponent<Props> = ForwardRefExoticComponent<Props & RefAttributes<HTMLDivElement>>;
4
5
  type CompoundedComponent = {
5
- KitAvatarSkeleton: FunctionComponent<KitAvatarSkeletonProps>;
6
- KitCustomSkeleton: FunctionComponent<KitCustomSkeletonProps>;
7
- KitInputSkeleton: FunctionComponent<KitInputSkeletonProps>;
8
- KitItemCardSkeleton: FunctionComponent<KitItemCardSkeletonProps>;
9
- KitItemListSkeleton: FunctionComponent<KitItemListSkeletonProps>;
6
+ KitAvatarSkeleton: SkeletonComponent<KitAvatarSkeletonProps>;
7
+ KitCustomSkeleton: SkeletonComponent<KitCustomSkeletonProps>;
8
+ KitInputSkeleton: SkeletonComponent<KitInputSkeletonProps>;
9
+ KitItemCardSkeleton: SkeletonComponent<KitItemCardSkeletonProps>;
10
+ KitItemListSkeleton: SkeletonComponent<KitItemListSkeletonProps>;
10
11
  displayName: 'KitSkeleton';
11
12
  };
12
13
  export declare const KitSkeleton: CompoundedComponent;
@@ -1 +1 @@
1
- export { t as KitSkeleton } from "../../../chunks/Skeleton.w4TjsphH.js";
1
+ export { t as KitSkeleton } from "../../../chunks/Skeleton.CEtvY6vF.js";
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
- export type KitSkeletonProps = {
2
+ import { KitHTMLAttributes } from '../../../types';
3
+ export type KitSkeletonProps = KitHTMLAttributes<HTMLDivElement> & {
3
4
  style?: CSSProperties;
4
5
  className?: string;
5
6
  active?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { KitSnackBarProps } from './types';
2
- declare const KitSnackBar: ({ message, actions, closable, onClose, actionsInDropDown, className, style }: KitSnackBarProps) => import('react').JSX.Element;
2
+ declare const KitSnackBar: import('react').ForwardRefExoticComponent<KitSnackBarProps & import('react').RefAttributes<HTMLDivElement>>;
3
3
  export default KitSnackBar;
@@ -1 +1 @@
1
- export { t as KitSnackBarProvider, n as closeKitSnackBar, r as openKitSnackBar } from "../../../chunks/SnackBar.4UJxpOdJ.js";
1
+ export { t as KitSnackBarProvider, n as closeKitSnackBar, r as openKitSnackBar } from "../../../chunks/SnackBar.Bv7Quq1D.js";
@@ -1,6 +1,6 @@
1
1
  import { KitActionButton } from '../../DataDisplay/types';
2
2
  import { KitHTMLAttributes } from '../../../types';
3
- import { ReactNode } from 'react';
3
+ import { ReactNode, Ref } from 'react';
4
4
  export type KitSnackbarProviderProps = {
5
5
  id?: string;
6
6
  };
@@ -10,9 +10,12 @@ export interface KitSnackBarProps extends KitHTMLAttributes<HTMLDivElement> {
10
10
  closable?: boolean;
11
11
  actionsInDropDown?: boolean;
12
12
  onClose?: () => void;
13
+ // Opened through a function call rather than JSX, where `data-*` props are not allowed implicitly
14
+ [dataAttribute: `data-${string}`]: string | undefined;
13
15
  }
14
16
 
15
17
  export interface KitOpenSnackBar extends KitSnackBarProps {
18
+ ref?: Ref<HTMLDivElement>;
16
19
  duration?: number;
17
20
  snackbarId?: string | null;
18
21
  toasterId?: string;
@@ -1,5 +1,5 @@
1
1
  import { KitHTMLAttributes } from '../../../types';
2
- import { CSSProperties, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import { CSSProperties, ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from 'react';
3
3
  import { KitButtonPropertiesCssTokens } from '../../../theme/types/components/General/Button';
4
4
  import { KitDropdownMenu, KitDropdownProps } from '../../Navigation/DropDown/types';
5
5
  export type KitButtonType = 'primary' | 'secondary' | 'tertiary' | 'segmented' | 'link' | 'redirect' | 'action';
@@ -21,7 +21,13 @@ export type loadingConfig = {
21
21
  };
22
22
 
23
23
  // KitButton renders an <a> for the link/redirect types and a <button> otherwise.
24
- export interface KitSimpleButtonProps extends KitHTMLAttributes<HTMLElement> {
24
+ type KitButtonElement = HTMLButtonElement | HTMLAnchorElement;
25
+
26
+ // `color` and `onClick` are redeclared below with the button's own types
27
+ export interface KitSimpleButtonProps
28
+ extends
29
+ Omit<KitHTMLAttributes<KitButtonElement>, 'color' | 'onClick'>,
30
+ Pick<HTMLAttributes<KitButtonElement>, 'onFocus' | 'onBlur'> {
25
31
  type?: KitButtonType;
26
32
  AI?: boolean;
27
33
  size?: 's' | 'm' | 'l';
@@ -1,6 +1,3 @@
1
1
  import { KitIconProps } from './types';
2
2
  export type { KitIconProps } from './types';
3
- export declare const KitIcon: {
4
- ({ className, on, icon, onClick, disableSecureClick, color, style, ...props }: KitIconProps): import('react').JSX.Element;
5
- displayName: string;
6
- };
3
+ export declare const KitIcon: import('react').ForwardRefExoticComponent<KitIconProps & import('react').RefAttributes<HTMLSpanElement>>;
@@ -1 +1 @@
1
- export { t as KitIcon } from "../../../chunks/Icon.COLQ5tUg.js";
1
+ export { t as KitIcon } from "../../../chunks/Icon.B3FbeWDW.js";
@@ -1,3 +1,4 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { KitPageLayoutProps } from './types';
3
- export declare const PageLayout: ({ headerProps, sideMenuProps, backgroundColor, children, }: PropsWithChildren<KitPageLayoutProps>) => import('react').JSX.Element;
2
+ export declare const PageLayout: import('react').ForwardRefExoticComponent<KitPageLayoutProps & {
3
+ children?: import('react').ReactNode | undefined;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, PropsWithChildren } from 'react';
1
+ import { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
2
2
  import { KitPageLayoutProps } from './types';
3
3
  export type { KitPageLayoutProps } from './types';
4
- export declare const KitPageLayout: FunctionComponent<PropsWithChildren<KitPageLayoutProps>>;
4
+ export declare const KitPageLayout: ForwardRefExoticComponent<PropsWithChildren<KitPageLayoutProps> & RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- export { t as KitPageLayout } from "../../../chunks/PageLayout.G9RGRayF.js";
1
+ export { t as KitPageLayout } from "../../../chunks/PageLayout.DUenBJ0_.js";
@@ -1,6 +1,7 @@
1
1
  import { KitHeaderProps } from '../../Navigation/Header/types';
2
2
  import { KitSideMenuProps } from '../../Navigation/SideMenu/types';
3
- export interface KitPageLayoutProps {
3
+ import { KitHTMLAttributes } from '../../../types';
4
+ export interface KitPageLayoutProps extends KitHTMLAttributes<HTMLDivElement> {
4
5
  headerProps: KitHeaderProps;
5
6
  sideMenuProps?: KitSideMenuProps;
6
7
  backgroundColor?: string;
@@ -1,4 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { KitSectionProps } from './types';
3
2
  export type { KitSectionProps } from './types';
4
- export declare const KitSection: ({ className, type, children, ...props }: PropsWithChildren<KitSectionProps>) => import('react').JSX.Element;
3
+ export declare const KitSection: import('react').ForwardRefExoticComponent<KitSectionProps & {
4
+ children?: import('react').ReactNode | undefined;
5
+ } & import('react').RefAttributes<HTMLElement>>;
@@ -1 +1 @@
1
- export { t as KitSection } from "../../../chunks/Section.Dxs5OVdP.js";
1
+ export { t as KitSection } from "../../../chunks/Section.C95uswgY.js";