@accelint/design-toolkit 9.4.1 → 9.6.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/catalog-info.yaml +2 -2
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/styles.module.css +1 -1
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +104 -0
- package/dist/components/audio/index.js +242 -0
- package/dist/components/audio/index.js.map +1 -0
- package/dist/components/audio/styles.module.css +77 -0
- package/dist/components/audio/types.d.ts +45 -0
- package/dist/components/audio/types.js +12 -0
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/breadcrumbs/item.d.ts +2 -2
- package/dist/components/breadcrumbs/styles.module.css +1 -0
- package/dist/components/button/__internal__/clear.js +42 -0
- package/dist/components/button/__internal__/clear.js.map +1 -0
- package/dist/components/button/__internal__/styles.module.css +23 -0
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/styles.module.css +1 -1
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/chip/styles.module.css +4 -4
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/clock/index.js +1 -0
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +42 -14
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +15 -3
- package/dist/components/combobox-field/types.d.ts +4 -0
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +4 -4
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/context.d.ts +2 -2
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header-title.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/header.js +1 -1
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +2 -2
- package/dist/components/hero/title.d.ts +3 -3
- package/dist/components/hotkey/context.d.ts +2 -2
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/index.js +10 -14
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/kanban/styles.module.css +1 -1
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/list/styles.module.css +1 -1
- package/dist/components/media-controls/context.d.ts +66 -0
- package/dist/components/media-controls/context.js +77 -0
- package/dist/components/media-controls/context.js.map +1 -0
- package/dist/components/media-controls/fullscreen-button.d.ts +55 -0
- package/dist/components/media-controls/fullscreen-button.js +80 -0
- package/dist/components/media-controls/fullscreen-button.js.map +1 -0
- package/dist/components/media-controls/index.d.ts +68 -0
- package/dist/components/media-controls/index.js +78 -0
- package/dist/components/media-controls/index.js.map +1 -0
- package/dist/components/media-controls/mute-button.d.ts +47 -0
- package/dist/components/media-controls/mute-button.js +73 -0
- package/dist/components/media-controls/mute-button.js.map +1 -0
- package/dist/components/media-controls/play-button.d.ts +47 -0
- package/dist/components/media-controls/play-button.js +71 -0
- package/dist/components/media-controls/play-button.js.map +1 -0
- package/dist/components/media-controls/playback-rate.d.ts +58 -0
- package/dist/components/media-controls/playback-rate.js +114 -0
- package/dist/components/media-controls/playback-rate.js.map +1 -0
- package/dist/components/media-controls/seek-button.d.ts +60 -0
- package/dist/components/media-controls/seek-button.js +116 -0
- package/dist/components/media-controls/seek-button.js.map +1 -0
- package/dist/components/media-controls/styles.module.css +145 -0
- package/dist/components/media-controls/time-display.d.ts +69 -0
- package/dist/components/media-controls/time-display.js +95 -0
- package/dist/components/media-controls/time-display.js.map +1 -0
- package/dist/components/media-controls/time-range.d.ts +46 -0
- package/dist/components/media-controls/time-range.js +63 -0
- package/dist/components/media-controls/time-range.js.map +1 -0
- package/dist/components/media-controls/types.d.ts +127 -0
- package/dist/components/media-controls/types.js +12 -0
- package/dist/components/media-controls/volume-slider.d.ts +54 -0
- package/dist/components/media-controls/volume-slider.js +70 -0
- package/dist/components/media-controls/volume-slider.js.map +1 -0
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/styles.module.css +1 -1
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +2 -2
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/options/styles.module.css +1 -1
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/prev.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/combinator-selector.js +5 -4
- package/dist/components/query-builder/combinator-selector.js.map +1 -1
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +2 -2
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/search-field/styles.module.css +1 -1
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/status-indicator/index.d.ts +41 -0
- package/dist/components/status-indicator/index.js +49 -0
- package/dist/components/status-indicator/index.js.map +1 -0
- package/dist/components/status-indicator/styles.module.css +34 -0
- package/dist/components/status-indicator/types.d.ts +21 -0
- package/dist/components/status-indicator/types.js +12 -0
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/table/styles.module.css +5 -1
- package/dist/components/tabs/context.d.ts +4 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/styles.module.css +1 -1
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/tooltip/context.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/styles.module.css +1 -1
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/tree/styles.module.css +1 -1
- package/dist/components/video/index.d.ts +97 -0
- package/dist/components/video/index.js +261 -0
- package/dist/components/video/index.js.map +1 -0
- package/dist/components/video/styles.module.css +99 -0
- package/dist/components/video/types.d.ts +52 -0
- package/dist/components/video/types.js +12 -0
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/index.d.ts +18 -1
- package/dist/index.js +14 -1
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +29 -11
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/back.d.ts
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
|
33
33
|
* </DrawerView>
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
declare function DrawerBack():
|
|
36
|
+
declare function DrawerBack(): react_jsx_runtime21.JSX.Element | null;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { DrawerBack };
|
|
39
39
|
//# sourceMappingURL=back.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerCloseProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/close.d.ts
|
|
18
18
|
|
|
@@ -34,7 +34,7 @@ import * as react_jsx_runtime124 from "react/jsx-runtime";
|
|
|
34
34
|
* </DrawerHeader>
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare function DrawerClose(props: DrawerCloseProps):
|
|
37
|
+
declare function DrawerClose(props: DrawerCloseProps): react_jsx_runtime23.JSX.Element;
|
|
38
38
|
declare namespace DrawerClose {
|
|
39
39
|
var displayName: string;
|
|
40
40
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/content.d.ts
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime122 from "react/jsx-runtime";
|
|
|
37
37
|
declare function DrawerContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: ComponentPropsWithRef<'div'>):
|
|
40
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime9.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { DrawerContent };
|
|
43
43
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerContextValue, DrawerEvent } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react7 from "react";
|
|
16
16
|
import { Broadcast } from "@accelint/bus";
|
|
17
17
|
import { UniqueId } from "@accelint/core";
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ import { UniqueId } from "@accelint/core";
|
|
|
25
25
|
* const { register, unregister, placement } = useContext(DrawerContext);
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
declare const DrawerContext:
|
|
28
|
+
declare const DrawerContext: react7.Context<DrawerContextValue>;
|
|
29
29
|
/**
|
|
30
30
|
* Event bus instance for drawer-related events.
|
|
31
31
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/footer.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
|
39
39
|
declare function DrawerFooter({
|
|
40
40
|
className,
|
|
41
41
|
...rest
|
|
42
|
-
}: ComponentPropsWithRef<'footer'>):
|
|
42
|
+
}: ComponentPropsWithRef<'footer'>): react_jsx_runtime27.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { DrawerFooter };
|
|
45
45
|
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerTitleProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/header-title.d.ts
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ declare function DrawerHeaderTitle({
|
|
|
41
41
|
className,
|
|
42
42
|
level,
|
|
43
43
|
...rest
|
|
44
|
-
}: DrawerTitleProps):
|
|
44
|
+
}: DrawerTitleProps): react_jsx_runtime29.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { DrawerHeaderTitle };
|
|
47
47
|
//# sourceMappingURL=header-title.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/header.d.ts
|
|
18
18
|
|
|
@@ -52,7 +52,7 @@ declare function DrawerHeader({
|
|
|
52
52
|
title,
|
|
53
53
|
children,
|
|
54
54
|
...rest
|
|
55
|
-
}: ComponentPropsWithRef<'header'>):
|
|
55
|
+
}: ComponentPropsWithRef<'header'>): react_jsx_runtime31.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { DrawerHeader };
|
|
58
58
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -24,8 +24,8 @@ import { useContext } from "react";
|
|
|
24
24
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
25
25
|
import { Header } from "react-aria-components";
|
|
26
26
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
-
import styles from "./styles.module.css";
|
|
28
27
|
import { Cancel } from "@accelint/icons";
|
|
28
|
+
import styles from "./styles.module.css";
|
|
29
29
|
|
|
30
30
|
//#region src/components/drawer/header.tsx
|
|
31
31
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/index.d.ts
|
|
18
18
|
|
|
@@ -63,7 +63,7 @@ declare function Drawer({
|
|
|
63
63
|
size,
|
|
64
64
|
onChange,
|
|
65
65
|
...rest
|
|
66
|
-
}: DrawerProps):
|
|
66
|
+
}: DrawerProps): react_jsx_runtime33.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Drawer };
|
|
69
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/layout-main.d.ts
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
|
38
38
|
declare function DrawerLayoutMain({
|
|
39
39
|
className,
|
|
40
40
|
...rest
|
|
41
|
-
}: ComponentPropsWithRef<'main'>):
|
|
41
|
+
}: ComponentPropsWithRef<'main'>): react_jsx_runtime28.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { DrawerLayoutMain };
|
|
44
44
|
//# sourceMappingURL=layout-main.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerLayoutProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/layout.d.ts
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ declare function DrawerLayout({
|
|
|
42
42
|
extend,
|
|
43
43
|
push,
|
|
44
44
|
...rest
|
|
45
|
-
}: DrawerLayoutProps):
|
|
45
|
+
}: DrawerLayoutProps): react_jsx_runtime30.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { DrawerLayout };
|
|
48
48
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/menu-item.d.ts
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ declare function DrawerMenuItem({
|
|
|
45
45
|
toggle,
|
|
46
46
|
textValue,
|
|
47
47
|
...rest
|
|
48
|
-
}: DrawerMenuItemProps):
|
|
48
|
+
}: DrawerMenuItemProps): react_jsx_runtime32.JSX.Element | null;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { DrawerMenuItem };
|
|
51
51
|
//# sourceMappingURL=menu-item.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/menu.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ declare function DrawerMenu({
|
|
|
39
39
|
position,
|
|
40
40
|
children,
|
|
41
41
|
...rest
|
|
42
|
-
}: DrawerMenuProps):
|
|
42
|
+
}: DrawerMenuProps): react_jsx_runtime34.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { DrawerMenu };
|
|
45
45
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/panel.d.ts
|
|
17
17
|
|
|
@@ -36,7 +36,7 @@ import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
|
36
36
|
declare function DrawerPanel({
|
|
37
37
|
className,
|
|
38
38
|
...rest
|
|
39
|
-
}: ComponentPropsWithRef<'div'>):
|
|
39
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime35.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { DrawerPanel };
|
|
42
42
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/trigger.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
|
47
47
|
declare function DrawerTrigger({
|
|
48
48
|
for: events,
|
|
49
49
|
...rest
|
|
50
|
-
}: DrawerTriggerProps):
|
|
50
|
+
}: DrawerTriggerProps): react_jsx_runtime38.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { DrawerTrigger };
|
|
53
53
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { ViewStackViewProps } from "../view-stack/types.js";
|
|
14
14
|
import "client-only";
|
|
15
15
|
import { ComponentPropsWithRef } from "react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/drawer/view.d.ts
|
|
19
19
|
|
|
@@ -44,7 +44,7 @@ declare function DrawerView({
|
|
|
44
44
|
children,
|
|
45
45
|
className,
|
|
46
46
|
...rest
|
|
47
|
-
}: ViewStackViewProps & ComponentPropsWithRef<'div'>):
|
|
47
|
+
}: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime36.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { DrawerView };
|
|
50
50
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { FlashcardComponentProps, FlashcardDetailsListProps, FlashcardProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react9 from "react";
|
|
16
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/flashcard/index.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing Flashcard state across child components.
|
|
21
21
|
*/
|
|
22
|
-
declare const FlashcardContext:
|
|
22
|
+
declare const FlashcardContext: react9.Context<FlashcardProps>;
|
|
23
23
|
/**
|
|
24
24
|
* Flashcard - A quick visual identifier for map entity data.
|
|
25
25
|
*
|
|
@@ -46,7 +46,7 @@ declare const FlashcardContext: react21.Context<FlashcardProps>;
|
|
|
46
46
|
* </Flashcard>
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
declare function Flashcard(props: FlashcardProps):
|
|
49
|
+
declare function Flashcard(props: FlashcardProps): react_jsx_runtime40.JSX.Element;
|
|
50
50
|
declare namespace Flashcard {
|
|
51
51
|
var displayName: string;
|
|
52
52
|
}
|
|
@@ -68,7 +68,7 @@ declare namespace Flashcard {
|
|
|
68
68
|
* </Flashcard>
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function FlashcardHero(props: FlashcardComponentProps):
|
|
71
|
+
declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime40.JSX.Element;
|
|
72
72
|
declare namespace FlashcardHero {
|
|
73
73
|
var displayName: string;
|
|
74
74
|
}
|
|
@@ -92,7 +92,7 @@ declare namespace FlashcardHero {
|
|
|
92
92
|
* </Flashcard>
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
|
-
declare function FlashcardAdditionalData(props: FlashcardComponentProps):
|
|
95
|
+
declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime40.JSX.Element | null;
|
|
96
96
|
declare namespace FlashcardAdditionalData {
|
|
97
97
|
var displayName: string;
|
|
98
98
|
}
|
|
@@ -119,7 +119,7 @@ declare namespace FlashcardAdditionalData {
|
|
|
119
119
|
* </Flashcard>
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare function FlashcardDetailsList(props: FlashcardDetailsListProps):
|
|
122
|
+
declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime40.JSX.Element;
|
|
123
123
|
declare namespace FlashcardDetailsList {
|
|
124
124
|
var displayName: string;
|
|
125
125
|
}
|
|
@@ -141,7 +141,7 @@ declare namespace FlashcardDetailsList {
|
|
|
141
141
|
* </FlashcardDetailsList>
|
|
142
142
|
* ```
|
|
143
143
|
*/
|
|
144
|
-
declare function FlashcardDetailsLabel(props: FlashcardComponentProps):
|
|
144
|
+
declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime40.JSX.Element;
|
|
145
145
|
declare namespace FlashcardDetailsLabel {
|
|
146
146
|
var displayName: string;
|
|
147
147
|
}
|
|
@@ -163,7 +163,7 @@ declare namespace FlashcardDetailsLabel {
|
|
|
163
163
|
* </FlashcardDetailsList>
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare function FlashcardDetailsValue(props: FlashcardComponentProps):
|
|
166
|
+
declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime40.JSX.Element;
|
|
167
167
|
declare namespace FlashcardDetailsValue {
|
|
168
168
|
var displayName: string;
|
|
169
169
|
}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { HeroProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react8 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/hero/context.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing Hero props across component tree.
|
|
21
21
|
*/
|
|
22
|
-
declare const HeroContext:
|
|
22
|
+
declare const HeroContext: react8.Context<ContextValue<HeroProps, HTMLElement>>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { HeroContext };
|
|
25
25
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HeroProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime156 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/index.d.ts
|
|
18
18
|
|
|
@@ -56,7 +56,7 @@ import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
|
56
56
|
declare function Hero({
|
|
57
57
|
ref,
|
|
58
58
|
...props
|
|
59
|
-
}: HeroProps):
|
|
59
|
+
}: HeroProps): react_jsx_runtime156.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { Hero };
|
|
62
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react33 from "react";
|
|
15
15
|
import * as react_aria_components0 from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/subtitle.d.ts
|
|
@@ -30,7 +30,7 @@ import * as react_aria_components0 from "react-aria-components";
|
|
|
30
30
|
* </Hero>
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
declare const HeroSubtitle:
|
|
33
|
+
declare const HeroSubtitle: react33.ForwardRefExoticComponent<react_aria_components0.TextProps & react33.RefAttributes<HTMLElement>>;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { HeroSubtitle };
|
|
36
36
|
//# sourceMappingURL=subtitle.d.ts.map
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as react25 from "react";
|
|
15
|
+
import * as react_aria_components0 from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/title.d.ts
|
|
18
18
|
/**
|
|
@@ -28,7 +28,7 @@ import * as react_aria_components1 from "react-aria-components";
|
|
|
28
28
|
* </Hero>
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
declare const HeroTitle:
|
|
31
|
+
declare const HeroTitle: react25.ForwardRefExoticComponent<react_aria_components0.HeadingProps & react25.RefAttributes<HTMLHeadingElement>>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { HeroTitle };
|
|
34
34
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -15,7 +15,7 @@ import { HotkeyProps } from "./types.js";
|
|
|
15
15
|
import "client-only";
|
|
16
16
|
import * as react27 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/hotkey/context.d.ts
|
|
21
21
|
/**
|
|
@@ -42,7 +42,7 @@ declare const HotkeyContext: react27.Context<ContextValue<HotkeyProps, HTMLEleme
|
|
|
42
42
|
declare function HotkeyProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<HotkeyProps>):
|
|
45
|
+
}: ProviderProps<HotkeyProps>): react_jsx_runtime98.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { HotkeyContext, HotkeyProvider };
|
|
48
48
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HotkeyProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hotkey/index.d.ts
|
|
18
18
|
|
|
@@ -66,7 +66,7 @@ declare function Hotkey({
|
|
|
66
66
|
ref,
|
|
67
67
|
children,
|
|
68
68
|
...props
|
|
69
|
-
}: HotkeyProps):
|
|
69
|
+
}: HotkeyProps): react_jsx_runtime99.JSX.Element;
|
|
70
70
|
//#endregion
|
|
71
71
|
export { Hotkey };
|
|
72
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hotkey/set.d.ts
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
|
37
37
|
declare function HotkeySet({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: ComponentPropsWithRef<'div'>):
|
|
40
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime100.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { HotkeySet };
|
|
43
43
|
//# sourceMappingURL=set.d.ts.map
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { IconProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react28 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime101 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/icon/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* Context for sharing Icon props across component tree.
|
|
23
23
|
*/
|
|
24
|
-
declare const IconContext:
|
|
24
|
+
declare const IconContext: react28.Context<ContextValue<IconProps, HTMLSpanElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* IconProvider - Context provider for setting default Icon props.
|
|
27
27
|
*
|
|
@@ -42,7 +42,7 @@ declare const IconContext: react25.Context<ContextValue<IconProps, HTMLSpanEleme
|
|
|
42
42
|
declare function IconProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<IconProps>):
|
|
45
|
+
}: ProviderProps<IconProps>): react_jsx_runtime101.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { IconContext, IconProvider };
|
|
48
48
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { IconProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime112 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/icon/index.d.ts
|
|
18
18
|
|
|
@@ -61,7 +61,7 @@ import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
|
61
61
|
declare function Icon({
|
|
62
62
|
ref,
|
|
63
63
|
...props
|
|
64
|
-
}: IconProps):
|
|
64
|
+
}: IconProps): react_jsx_runtime112.JSX.Element;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { Icon };
|
|
67
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { InputProps as InputProps$1 } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react30 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/input/context.d.ts
|
|
@@ -20,7 +20,7 @@ import { ContextValue } from "react-aria-components";
|
|
|
20
20
|
* Context for sharing Input props across component tree.
|
|
21
21
|
* Used internally by field components to pass props to Input.
|
|
22
22
|
*/
|
|
23
|
-
declare const InputContext:
|
|
23
|
+
declare const InputContext: react30.Context<ContextValue<InputProps$1, HTMLInputElement>>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { InputContext };
|
|
26
26
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { InputProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/input/index.d.ts
|
|
18
18
|
|
|
@@ -52,7 +52,7 @@ import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
|
52
52
|
declare function Input({
|
|
53
53
|
ref,
|
|
54
54
|
...props
|
|
55
|
-
}: InputProps):
|
|
55
|
+
}: InputProps): react_jsx_runtime114.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { Input };
|
|
58
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
'use client';
|
|
15
15
|
|
|
16
16
|
import { IconProvider } from "../icon/context.js";
|
|
17
|
-
import {
|
|
18
|
-
import { Button as Button$1 } from "../button/index.js";
|
|
17
|
+
import { ClearButton } from "../button/__internal__/clear.js";
|
|
19
18
|
import { InputContext as InputContext$1 } from "./context.js";
|
|
20
19
|
import "client-only";
|
|
20
|
+
import { useCallback } from "react";
|
|
21
21
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
22
22
|
import { Input as Input$1, InputContext, composeRenderProps, useContextProps } from "react-aria-components";
|
|
23
23
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
-
import CancelFill from "@accelint/icons/cancel-fill";
|
|
25
24
|
import { useControlledState } from "@react-stately/utils";
|
|
26
25
|
import styles from "./styles.module.css";
|
|
27
26
|
|
|
@@ -78,10 +77,14 @@ function Input({ ref = null, ...props }) {
|
|
|
78
77
|
const suffix = !!suffixProp && styles.hasSuffix;
|
|
79
78
|
const clear = isClearable && styles.isClearable;
|
|
80
79
|
const isEmpty = value == null || value === "";
|
|
81
|
-
|
|
80
|
+
const handleChange = useCallback((event) => {
|
|
82
81
|
onChange?.(event);
|
|
83
82
|
if (!event.defaultPrevented) setValue(event.target.value);
|
|
84
|
-
}
|
|
83
|
+
}, [onChange, setValue]);
|
|
84
|
+
const handleClearButtonPress = useCallback(() => {
|
|
85
|
+
handleChange(clearInputEvent);
|
|
86
|
+
ref?.current?.focus();
|
|
87
|
+
}, [handleChange, ref]);
|
|
85
88
|
return /* @__PURE__ */ jsx(IconProvider, {
|
|
86
89
|
size: "small",
|
|
87
90
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -123,17 +126,10 @@ function Input({ ref = null, ...props }) {
|
|
|
123
126
|
className: clsx(styles.suffix, prefix, suffix, clear, classNames?.suffix),
|
|
124
127
|
children: suffixProp
|
|
125
128
|
}),
|
|
126
|
-
!readOnly && isClearable && /* @__PURE__ */ jsx(
|
|
129
|
+
!readOnly && isClearable && /* @__PURE__ */ jsx(ClearButton, {
|
|
127
130
|
className: composeRenderProps(classNames?.clear, (className) => clsx(styles.clear, prefix, suffix, clear, className)),
|
|
128
|
-
excludeFromTabOrder: true,
|
|
129
|
-
size: "small",
|
|
130
|
-
variant: "icon",
|
|
131
131
|
isDisabled: disabled,
|
|
132
|
-
onPress:
|
|
133
|
-
handleChange(clearInputEvent);
|
|
134
|
-
ref?.current?.focus();
|
|
135
|
-
},
|
|
136
|
-
children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(CancelFill, {}) })
|
|
132
|
+
onPress: handleClearButtonPress
|
|
137
133
|
})
|
|
138
134
|
]
|
|
139
135
|
})
|