@tale-ui/react 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -25
- package/_cx.d.ts +4 -0
- package/_cx.js +15 -0
- package/accordion/Accordion.styled.d.ts +14 -0
- package/accordion/Accordion.styled.js +79 -0
- package/accordion/index.d.ts +1 -1
- package/accordion/index.js +1 -1
- package/alert-dialog/AlertDialog.styled.d.ts +13 -0
- package/alert-dialog/AlertDialog.styled.js +58 -0
- package/alert-dialog/index.d.ts +1 -1
- package/alert-dialog/index.js +1 -1
- package/autocomplete/Autocomplete.styled.d.ts +11 -0
- package/autocomplete/Autocomplete.styled.js +134 -0
- package/autocomplete/index.d.ts +1 -1
- package/autocomplete/index.js +1 -1
- package/avatar/Avatar.styled.d.ts +10 -0
- package/avatar/Avatar.styled.js +42 -0
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +1 -1
- package/button/Button.styled.d.ts +10 -0
- package/button/Button.styled.js +23 -0
- package/button/index.d.ts +2 -2
- package/button/index.js +1 -1
- package/checkbox/Checkbox.styled.d.ts +3 -0
- package/checkbox/Checkbox.styled.js +31 -0
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +1 -1
- package/collapsible/Collapsible.styled.d.ts +4 -0
- package/collapsible/Collapsible.styled.js +41 -0
- package/collapsible/index.d.ts +1 -1
- package/collapsible/index.js +1 -1
- package/combobox/Combobox.styled.d.ts +38 -0
- package/combobox/Combobox.styled.js +115 -0
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/container/Container.d.ts +12 -0
- package/container/Container.js +40 -0
- package/container/index.d.ts +2 -0
- package/container/index.js +18 -0
- package/context-menu/ContextMenu.styled.d.ts +21 -0
- package/context-menu/ContextMenu.styled.js +111 -0
- package/context-menu/index.d.ts +1 -1
- package/context-menu/index.js +1 -1
- package/context-menu/root/ContextMenuRoot.d.ts +1 -2
- package/dialog/Dialog.styled.d.ts +34 -0
- package/dialog/Dialog.styled.js +58 -0
- package/dialog/index.d.ts +1 -1
- package/dialog/index.js +1 -1
- package/drawer/Drawer.styled.d.ts +28 -0
- package/drawer/Drawer.styled.js +71 -0
- package/drawer/index.d.ts +1 -1
- package/drawer/index.js +1 -1
- package/esm/_cx.d.ts +4 -0
- package/esm/_cx.js +9 -0
- package/esm/accordion/Accordion.styled.d.ts +14 -0
- package/esm/accordion/Accordion.styled.js +72 -0
- package/esm/accordion/index.d.ts +1 -1
- package/esm/accordion/index.js +1 -1
- package/esm/alert-dialog/AlertDialog.styled.d.ts +13 -0
- package/esm/alert-dialog/AlertDialog.styled.js +51 -0
- package/esm/alert-dialog/index.d.ts +1 -1
- package/esm/alert-dialog/index.js +1 -1
- package/esm/autocomplete/Autocomplete.styled.d.ts +11 -0
- package/esm/autocomplete/Autocomplete.styled.js +49 -0
- package/esm/autocomplete/index.d.ts +1 -1
- package/esm/autocomplete/index.js +1 -1
- package/esm/avatar/Avatar.styled.d.ts +10 -0
- package/esm/avatar/Avatar.styled.js +35 -0
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/button/Button.styled.d.ts +10 -0
- package/esm/button/Button.styled.js +16 -0
- package/esm/button/index.d.ts +2 -2
- package/esm/button/index.js +1 -1
- package/esm/checkbox/Checkbox.styled.d.ts +3 -0
- package/esm/checkbox/Checkbox.styled.js +24 -0
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.js +1 -1
- package/esm/collapsible/Collapsible.styled.d.ts +4 -0
- package/esm/collapsible/Collapsible.styled.js +34 -0
- package/esm/collapsible/index.d.ts +1 -1
- package/esm/collapsible/index.js +1 -1
- package/esm/combobox/Combobox.styled.d.ts +38 -0
- package/esm/combobox/Combobox.styled.js +102 -0
- package/esm/combobox/index.d.ts +1 -1
- package/esm/combobox/index.js +1 -1
- package/esm/container/Container.d.ts +12 -0
- package/esm/container/Container.js +32 -0
- package/esm/container/index.d.ts +2 -0
- package/esm/container/index.js +1 -0
- package/esm/context-menu/ContextMenu.styled.d.ts +21 -0
- package/esm/context-menu/ContextMenu.styled.js +104 -0
- package/esm/context-menu/index.d.ts +1 -1
- package/esm/context-menu/index.js +1 -1
- package/esm/context-menu/root/ContextMenuRoot.d.ts +1 -2
- package/esm/dialog/Dialog.styled.d.ts +34 -0
- package/esm/dialog/Dialog.styled.js +51 -0
- package/esm/dialog/index.d.ts +1 -1
- package/esm/dialog/index.js +1 -1
- package/esm/drawer/Drawer.styled.d.ts +28 -0
- package/esm/drawer/Drawer.styled.js +64 -0
- package/esm/drawer/index.d.ts +1 -1
- package/esm/drawer/index.js +1 -1
- package/esm/field/Field.styled.d.ts +14 -0
- package/esm/field/Field.styled.js +45 -0
- package/esm/field/index.d.ts +1 -1
- package/esm/field/index.js +1 -1
- package/esm/fieldset/Fieldset.styled.d.ts +3 -0
- package/esm/fieldset/Fieldset.styled.js +24 -0
- package/esm/fieldset/index.d.ts +1 -1
- package/esm/fieldset/index.js +1 -1
- package/esm/form/Form.styled.d.ts +12 -0
- package/esm/form/Form.styled.js +14 -0
- package/esm/form/index.d.ts +2 -2
- package/esm/form/index.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/input/Input.styled.d.ts +8 -0
- package/esm/input/Input.styled.js +15 -0
- package/esm/input/index.d.ts +2 -2
- package/esm/input/index.js +1 -1
- package/esm/menu/Menu.styled.d.ts +57 -0
- package/esm/menu/Menu.styled.js +106 -0
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/index.js +1 -1
- package/esm/menubar/Menubar.styled.d.ts +7 -0
- package/esm/menubar/Menubar.styled.js +14 -0
- package/esm/menubar/index.d.ts +1 -1
- package/esm/menubar/index.js +1 -1
- package/esm/meter/Meter.styled.d.ts +6 -0
- package/esm/meter/Meter.styled.js +45 -0
- package/esm/meter/index.d.ts +1 -1
- package/esm/meter/index.js +1 -1
- package/esm/navigation-menu/NavigationMenu.styled.d.ts +23 -0
- package/esm/navigation-menu/NavigationMenu.styled.js +89 -0
- package/esm/navigation-menu/index.d.ts +1 -1
- package/esm/navigation-menu/index.js +1 -1
- package/esm/number-field/NumberField.styled.d.ts +16 -0
- package/esm/number-field/NumberField.styled.js +59 -0
- package/esm/number-field/index.d.ts +1 -1
- package/esm/number-field/index.js +1 -1
- package/esm/popover/Popover.styled.d.ts +42 -0
- package/esm/popover/Popover.styled.js +62 -0
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.js +1 -1
- package/esm/preview-card/PreviewCard.styled.d.ts +39 -0
- package/esm/preview-card/PreviewCard.styled.js +32 -0
- package/esm/preview-card/index.d.ts +1 -1
- package/esm/preview-card/index.js +1 -1
- package/esm/progress/Progress.styled.d.ts +8 -0
- package/esm/progress/Progress.styled.js +36 -0
- package/esm/progress/index.d.ts +1 -1
- package/esm/progress/index.js +1 -1
- package/esm/radio/Radio.styled.d.ts +11 -0
- package/esm/radio/Radio.styled.js +27 -0
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/scroll-area/ScrollArea.styled.d.ts +7 -0
- package/esm/scroll-area/ScrollArea.styled.js +55 -0
- package/esm/scroll-area/index.d.ts +1 -1
- package/esm/scroll-area/index.js +1 -1
- package/esm/select/Select.styled.d.ts +33 -0
- package/esm/select/Select.styled.js +118 -0
- package/esm/select/index.d.ts +1 -1
- package/esm/select/index.js +1 -1
- package/esm/separator/Separator.styled.d.ts +7 -0
- package/esm/separator/Separator.styled.js +16 -0
- package/esm/separator/index.d.ts +2 -2
- package/esm/separator/index.js +1 -1
- package/esm/slider/Slider.styled.d.ts +16 -0
- package/esm/slider/Slider.styled.js +55 -0
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.js +1 -1
- package/esm/switch/Switch.styled.d.ts +3 -0
- package/esm/switch/Switch.styled.js +24 -0
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/tabs/Tabs.styled.d.ts +14 -0
- package/esm/tabs/Tabs.styled.js +54 -0
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.js +1 -1
- package/esm/toast/Toast.styled.d.ts +21 -0
- package/esm/toast/Toast.styled.js +80 -0
- package/esm/toast/index.d.ts +1 -1
- package/esm/toast/index.js +1 -1
- package/esm/toggle/Toggle.styled.d.ts +10 -0
- package/esm/toggle/Toggle.styled.js +26 -0
- package/esm/toggle/index.d.ts +2 -2
- package/esm/toggle/index.js +1 -1
- package/esm/toolbar/Toolbar.styled.d.ts +7 -0
- package/esm/toolbar/Toolbar.styled.js +64 -0
- package/esm/toolbar/index.d.ts +1 -1
- package/esm/toolbar/index.js +1 -1
- package/esm/tooltip/Tooltip.styled.d.ts +39 -0
- package/esm/tooltip/Tooltip.styled.js +32 -0
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.js +1 -1
- package/field/Field.styled.d.ts +14 -0
- package/field/Field.styled.js +70 -0
- package/field/index.d.ts +1 -1
- package/field/index.js +1 -1
- package/fieldset/Fieldset.styled.d.ts +3 -0
- package/fieldset/Fieldset.styled.js +31 -0
- package/fieldset/index.d.ts +1 -1
- package/fieldset/index.js +1 -1
- package/form/Form.styled.d.ts +12 -0
- package/form/Form.styled.js +21 -0
- package/form/index.d.ts +2 -2
- package/form/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +12 -12
- package/input/Input.styled.d.ts +8 -0
- package/input/Input.styled.js +22 -0
- package/input/index.d.ts +2 -2
- package/input/index.js +1 -1
- package/menu/Menu.styled.d.ts +57 -0
- package/menu/Menu.styled.js +120 -0
- package/menu/index.d.ts +1 -1
- package/menu/index.js +1 -1
- package/menubar/Menubar.styled.d.ts +7 -0
- package/menubar/Menubar.styled.js +21 -0
- package/menubar/index.d.ts +1 -1
- package/menubar/index.js +1 -1
- package/meter/Meter.styled.d.ts +6 -0
- package/meter/Meter.styled.js +52 -0
- package/meter/index.d.ts +1 -1
- package/meter/index.js +1 -1
- package/navigation-menu/NavigationMenu.styled.d.ts +23 -0
- package/navigation-menu/NavigationMenu.styled.js +96 -0
- package/navigation-menu/index.d.ts +1 -1
- package/navigation-menu/index.js +1 -1
- package/number-field/NumberField.styled.d.ts +16 -0
- package/number-field/NumberField.styled.js +77 -0
- package/number-field/index.d.ts +1 -1
- package/number-field/index.js +1 -1
- package/package.json +21 -4
- package/popover/Popover.styled.d.ts +42 -0
- package/popover/Popover.styled.js +69 -0
- package/popover/index.d.ts +1 -1
- package/popover/index.js +1 -1
- package/preview-card/PreviewCard.styled.d.ts +39 -0
- package/preview-card/PreviewCard.styled.js +39 -0
- package/preview-card/index.d.ts +1 -1
- package/preview-card/index.js +1 -1
- package/progress/Progress.styled.d.ts +8 -0
- package/progress/Progress.styled.js +49 -0
- package/progress/index.d.ts +1 -1
- package/progress/index.js +1 -1
- package/radio/Radio.styled.d.ts +11 -0
- package/radio/Radio.styled.js +34 -0
- package/radio/index.d.ts +1 -1
- package/radio/index.js +1 -1
- package/scroll-area/ScrollArea.styled.d.ts +7 -0
- package/scroll-area/ScrollArea.styled.js +67 -0
- package/scroll-area/index.d.ts +1 -1
- package/scroll-area/index.js +1 -1
- package/select/Select.styled.d.ts +33 -0
- package/select/Select.styled.js +125 -0
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/separator/Separator.styled.d.ts +7 -0
- package/separator/Separator.styled.js +23 -0
- package/separator/index.d.ts +2 -2
- package/separator/index.js +1 -1
- package/slider/Slider.styled.d.ts +16 -0
- package/slider/Slider.styled.js +67 -0
- package/slider/index.d.ts +1 -1
- package/slider/index.js +1 -1
- package/switch/Switch.styled.d.ts +3 -0
- package/switch/Switch.styled.js +31 -0
- package/switch/index.d.ts +1 -1
- package/switch/index.js +1 -1
- package/tabs/Tabs.styled.d.ts +14 -0
- package/tabs/Tabs.styled.js +61 -0
- package/tabs/index.d.ts +1 -1
- package/tabs/index.js +1 -1
- package/toast/Toast.styled.d.ts +21 -0
- package/toast/Toast.styled.js +87 -0
- package/toast/index.d.ts +1 -1
- package/toast/index.js +1 -1
- package/toggle/Toggle.styled.d.ts +10 -0
- package/toggle/Toggle.styled.js +33 -0
- package/toggle/index.d.ts +2 -2
- package/toggle/index.js +7 -1
- package/toolbar/Toolbar.styled.d.ts +7 -0
- package/toolbar/Toolbar.styled.js +71 -0
- package/toolbar/index.d.ts +1 -1
- package/toolbar/index.js +1 -1
- package/tooltip/Tooltip.styled.d.ts +39 -0
- package/tooltip/Tooltip.styled.js +39 -0
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +1 -1
package/form/index.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./checkbox/index.js";
|
|
|
7
7
|
export * from "./checkbox-group/index.js";
|
|
8
8
|
export * from "./collapsible/index.js";
|
|
9
9
|
export * from "./combobox/index.js";
|
|
10
|
+
export * from "./container/index.js";
|
|
10
11
|
export * from "./context-menu/index.js";
|
|
11
12
|
export * from "./csp-provider/index.js";
|
|
12
13
|
export * from "./dialog/index.js";
|
|
@@ -35,7 +36,6 @@ export * from "./switch/index.js";
|
|
|
35
36
|
export * from "./tabs/index.js";
|
|
36
37
|
export * from "./toast/index.js";
|
|
37
38
|
export * from "./toggle/index.js";
|
|
38
|
-
export * from "./toggle-group/index.js";
|
|
39
39
|
export * from "./toolbar/index.js";
|
|
40
40
|
export * from "./tooltip/index.js";
|
|
41
41
|
export * from "./use-render/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @tale-ui/react v0.
|
|
2
|
+
* @tale-ui/react v0.2.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -109,6 +109,17 @@ Object.keys(_combobox).forEach(function (key) {
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
|
+
var _container = require("./container");
|
|
113
|
+
Object.keys(_container).forEach(function (key) {
|
|
114
|
+
if (key === "default" || key === "__esModule") return;
|
|
115
|
+
if (key in exports && exports[key] === _container[key]) return;
|
|
116
|
+
Object.defineProperty(exports, key, {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () {
|
|
119
|
+
return _container[key];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
112
123
|
var _contextMenu = require("./context-menu");
|
|
113
124
|
Object.keys(_contextMenu).forEach(function (key) {
|
|
114
125
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -417,17 +428,6 @@ Object.keys(_toggle).forEach(function (key) {
|
|
|
417
428
|
}
|
|
418
429
|
});
|
|
419
430
|
});
|
|
420
|
-
var _toggleGroup = require("./toggle-group");
|
|
421
|
-
Object.keys(_toggleGroup).forEach(function (key) {
|
|
422
|
-
if (key === "default" || key === "__esModule") return;
|
|
423
|
-
if (key in exports && exports[key] === _toggleGroup[key]) return;
|
|
424
|
-
Object.defineProperty(exports, key, {
|
|
425
|
-
enumerable: true,
|
|
426
|
-
get: function () {
|
|
427
|
-
return _toggleGroup[key];
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
431
|
var _toolbar = require("./toolbar");
|
|
432
432
|
Object.keys(_toolbar).forEach(function (key) {
|
|
433
433
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Input as H } from "./Input.js";
|
|
3
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface InputProps extends Omit<React.ComponentPropsWithoutRef<typeof H>, 'size'> {
|
|
5
|
+
size?: Size | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Input = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _Input2 = require("./Input");
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const Input = exports.Input = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
size = 'md',
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input2.Input, {
|
|
17
|
+
className: (0, _cx.cx)(size !== 'md' ? `tale-input tale-input--${size}` : 'tale-input', className),
|
|
18
|
+
ref: ref,
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
if (process.env.NODE_ENV !== "production") Input.displayName = "Input";
|
|
22
|
+
Input.displayName = 'Input';
|
package/input/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Input } from "./Input.js";
|
|
2
|
-
export type
|
|
1
|
+
export { Input } from "./Input.styled.js";
|
|
2
|
+
export type { InputProps } from "./Input.styled.js";
|
package/input/index.js
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { MenuRootProps, MenuRootActions, MenuRootChangeEventReason, MenuRootChangeEventDetails, MenuRootOrientation } from "./root/MenuRoot.js";
|
|
4
|
+
import type { MenuTriggerProps, MenuTriggerState } from "./trigger/MenuTrigger.js";
|
|
5
|
+
import type { MenuPortalProps } from "./portal/MenuPortal.js";
|
|
6
|
+
import type { MenuPopupProps, MenuPopupState } from "./popup/MenuPopup.js";
|
|
7
|
+
import type { MenuSubmenuRootProps, MenuSubmenuRootState, MenuSubmenuRootChangeEventReason, MenuSubmenuRootChangeEventDetails } from "./submenu-root/MenuSubmenuRoot.js";
|
|
8
|
+
import type { MenuSubmenuTriggerProps, MenuSubmenuTriggerState } from "./submenu-trigger/MenuSubmenuTrigger.js";
|
|
9
|
+
export declare const Root: <Payload>(props: H.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace Root {
|
|
11
|
+
type Props<Payload = unknown> = MenuRootProps<Payload>;
|
|
12
|
+
type Actions = MenuRootActions;
|
|
13
|
+
type ChangeEventReason = MenuRootChangeEventReason;
|
|
14
|
+
type ChangeEventDetails = MenuRootChangeEventDetails;
|
|
15
|
+
type Orientation = MenuRootOrientation;
|
|
16
|
+
}
|
|
17
|
+
export declare const Trigger: H.Trigger;
|
|
18
|
+
export declare namespace Trigger {
|
|
19
|
+
type Props<Payload = unknown> = MenuTriggerProps<Payload>;
|
|
20
|
+
type State = MenuTriggerState;
|
|
21
|
+
}
|
|
22
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<MenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export declare namespace Portal {
|
|
24
|
+
type Props = MenuPortalProps;
|
|
25
|
+
}
|
|
26
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export declare const RadioGroup: React.NamedExoticComponent<Omit<import("./index.js").MenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const SubmenuRoot: typeof H.SubmenuRoot;
|
|
32
|
+
export declare namespace SubmenuRoot {
|
|
33
|
+
type Props = MenuSubmenuRootProps;
|
|
34
|
+
type State = MenuSubmenuRootState;
|
|
35
|
+
type ChangeEventReason = MenuSubmenuRootChangeEventReason;
|
|
36
|
+
type ChangeEventDetails = MenuSubmenuRootChangeEventDetails;
|
|
37
|
+
}
|
|
38
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<import("../index.js").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export { MenuHandle as Handle } from "./store/MenuHandle.js";
|
|
40
|
+
export declare const createHandle: typeof H.createHandle;
|
|
41
|
+
export declare const Popup: typeof H.Popup;
|
|
42
|
+
export declare namespace Popup {
|
|
43
|
+
type Props = MenuPopupProps;
|
|
44
|
+
type State = MenuPopupState;
|
|
45
|
+
}
|
|
46
|
+
export declare const Item: typeof H.Item;
|
|
47
|
+
export declare const CheckboxItem: typeof H.CheckboxItem;
|
|
48
|
+
export declare const CheckboxItemIndicator: typeof H.CheckboxItemIndicator;
|
|
49
|
+
export declare const RadioItem: typeof H.RadioItem;
|
|
50
|
+
export declare const RadioItemIndicator: typeof H.RadioItemIndicator;
|
|
51
|
+
export declare const LinkItem: typeof H.LinkItem;
|
|
52
|
+
export declare const SubmenuTrigger: typeof H.SubmenuTrigger;
|
|
53
|
+
export declare namespace SubmenuTrigger {
|
|
54
|
+
type Props = MenuSubmenuTriggerProps;
|
|
55
|
+
type State = MenuSubmenuTriggerState;
|
|
56
|
+
}
|
|
57
|
+
export declare const GroupLabel: typeof H.GroupLabel;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.GroupLabel = exports.Group = exports.CheckboxItemIndicator = exports.CheckboxItem = exports.Backdrop = exports.Arrow = void 0;
|
|
8
|
+
Object.defineProperty(exports, "Handle", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _MenuHandle.MenuHandle;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
exports.createHandle = exports.Trigger = exports.SubmenuTrigger = exports.SubmenuRoot = exports.Separator = exports.Root = exports.RadioItemIndicator = exports.RadioItem = exports.RadioGroup = exports.Positioner = exports.Portal = exports.Popup = exports.LinkItem = exports.Item = void 0;
|
|
15
|
+
var React = _interopRequireWildcard(require("react"));
|
|
16
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
17
|
+
var _cx = require("../_cx");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
var _MenuHandle = require("./store/MenuHandle");
|
|
20
|
+
const Root = exports.Root = H.Root;
|
|
21
|
+
const Trigger = exports.Trigger = H.Trigger;
|
|
22
|
+
const Portal = exports.Portal = H.Portal;
|
|
23
|
+
const Backdrop = exports.Backdrop = H.Backdrop;
|
|
24
|
+
const Positioner = exports.Positioner = H.Positioner;
|
|
25
|
+
const Arrow = exports.Arrow = H.Arrow;
|
|
26
|
+
const Group = exports.Group = H.Group;
|
|
27
|
+
const RadioGroup = exports.RadioGroup = H.RadioGroup;
|
|
28
|
+
const SubmenuRoot = exports.SubmenuRoot = H.SubmenuRoot;
|
|
29
|
+
const Separator = exports.Separator = H.Separator;
|
|
30
|
+
const createHandle = exports.createHandle = H.createHandle;
|
|
31
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Popup, {
|
|
35
|
+
className: (0, _cx.cx)('tale-menu__popup', className),
|
|
36
|
+
ref: ref,
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
StyledPopup.displayName = 'Menu.Popup';
|
|
40
|
+
const Popup = exports.Popup = StyledPopup;
|
|
41
|
+
const StyledItem = /*#__PURE__*/React.forwardRef(({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Item, {
|
|
45
|
+
className: (0, _cx.cx)('tale-menu__item', className),
|
|
46
|
+
ref: ref,
|
|
47
|
+
...props
|
|
48
|
+
}));
|
|
49
|
+
StyledItem.displayName = 'Menu.Item';
|
|
50
|
+
const Item = exports.Item = StyledItem;
|
|
51
|
+
const StyledCheckboxItem = /*#__PURE__*/React.forwardRef(({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.CheckboxItem, {
|
|
55
|
+
className: (0, _cx.cx)('tale-menu__checkbox-item', className),
|
|
56
|
+
ref: ref,
|
|
57
|
+
...props
|
|
58
|
+
}));
|
|
59
|
+
StyledCheckboxItem.displayName = 'Menu.CheckboxItem';
|
|
60
|
+
const CheckboxItem = exports.CheckboxItem = StyledCheckboxItem;
|
|
61
|
+
const StyledCheckboxItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.CheckboxItemIndicator, {
|
|
65
|
+
className: (0, _cx.cx)('tale-menu__item-indicator', className),
|
|
66
|
+
ref: ref,
|
|
67
|
+
...props
|
|
68
|
+
}));
|
|
69
|
+
StyledCheckboxItemIndicator.displayName = 'Menu.CheckboxItemIndicator';
|
|
70
|
+
const CheckboxItemIndicator = exports.CheckboxItemIndicator = StyledCheckboxItemIndicator;
|
|
71
|
+
const StyledRadioItem = /*#__PURE__*/React.forwardRef(({
|
|
72
|
+
className,
|
|
73
|
+
...props
|
|
74
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.RadioItem, {
|
|
75
|
+
className: (0, _cx.cx)('tale-menu__radio-item', className),
|
|
76
|
+
ref: ref,
|
|
77
|
+
...props
|
|
78
|
+
}));
|
|
79
|
+
StyledRadioItem.displayName = 'Menu.RadioItem';
|
|
80
|
+
const RadioItem = exports.RadioItem = StyledRadioItem;
|
|
81
|
+
const StyledRadioItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
82
|
+
className,
|
|
83
|
+
...props
|
|
84
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.RadioItemIndicator, {
|
|
85
|
+
className: (0, _cx.cx)('tale-menu__item-indicator', className),
|
|
86
|
+
ref: ref,
|
|
87
|
+
...props
|
|
88
|
+
}));
|
|
89
|
+
StyledRadioItemIndicator.displayName = 'Menu.RadioItemIndicator';
|
|
90
|
+
const RadioItemIndicator = exports.RadioItemIndicator = StyledRadioItemIndicator;
|
|
91
|
+
const StyledLinkItem = /*#__PURE__*/React.forwardRef(({
|
|
92
|
+
className,
|
|
93
|
+
...props
|
|
94
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.LinkItem, {
|
|
95
|
+
className: (0, _cx.cx)('tale-menu__link-item', className),
|
|
96
|
+
ref: ref,
|
|
97
|
+
...props
|
|
98
|
+
}));
|
|
99
|
+
StyledLinkItem.displayName = 'Menu.LinkItem';
|
|
100
|
+
const LinkItem = exports.LinkItem = StyledLinkItem;
|
|
101
|
+
const StyledSubmenuTrigger = /*#__PURE__*/React.forwardRef(({
|
|
102
|
+
className,
|
|
103
|
+
...props
|
|
104
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.SubmenuTrigger, {
|
|
105
|
+
className: (0, _cx.cx)('tale-menu__submenu-trigger', className),
|
|
106
|
+
ref: ref,
|
|
107
|
+
...props
|
|
108
|
+
}));
|
|
109
|
+
StyledSubmenuTrigger.displayName = 'Menu.SubmenuTrigger';
|
|
110
|
+
const SubmenuTrigger = exports.SubmenuTrigger = StyledSubmenuTrigger;
|
|
111
|
+
const StyledGroupLabel = /*#__PURE__*/React.forwardRef(({
|
|
112
|
+
className,
|
|
113
|
+
...props
|
|
114
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.GroupLabel, {
|
|
115
|
+
className: (0, _cx.cx)('tale-menu__group-label', className),
|
|
116
|
+
ref: ref,
|
|
117
|
+
...props
|
|
118
|
+
}));
|
|
119
|
+
StyledGroupLabel.displayName = 'Menu.GroupLabel';
|
|
120
|
+
const GroupLabel = exports.GroupLabel = StyledGroupLabel;
|
package/menu/index.d.ts
CHANGED
package/menu/index.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Menubar = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _Menubar2 = require("./Menubar");
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const StyledMenubar = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Menubar2.Menubar, {
|
|
16
|
+
className: (0, _cx.cx)('tale-menubar', className),
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
StyledMenubar.displayName = 'Menubar';
|
|
21
|
+
const Menubar = exports.Menubar = StyledMenubar;
|
package/menubar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Menubar } from "./Menubar.js";
|
|
1
|
+
export { Menubar } from "./Menubar.styled.js";
|
|
2
2
|
export type * from "./Menubar.js";
|
package/menubar/index.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export declare const Value: React.ForwardRefExoticComponent<Omit<import("./index.js").MeterValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
export declare const Track: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Indicator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Value = exports.Track = exports.Root = exports.Label = exports.Indicator = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const Root = exports.Root = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Root, {
|
|
16
|
+
className: (0, _cx.cx)('tale-meter', className),
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
21
|
+
Root.displayName = 'Meter.Root';
|
|
22
|
+
const Label = exports.Label = /*#__PURE__*/React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Label, {
|
|
26
|
+
className: (0, _cx.cx)('tale-meter__label', className),
|
|
27
|
+
ref: ref,
|
|
28
|
+
...props
|
|
29
|
+
}));
|
|
30
|
+
if (process.env.NODE_ENV !== "production") Label.displayName = "Label";
|
|
31
|
+
Label.displayName = 'Meter.Label';
|
|
32
|
+
const Value = exports.Value = H.Value;
|
|
33
|
+
const Track = exports.Track = /*#__PURE__*/React.forwardRef(({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Track, {
|
|
37
|
+
className: (0, _cx.cx)('tale-meter__track', className),
|
|
38
|
+
ref: ref,
|
|
39
|
+
...props
|
|
40
|
+
}));
|
|
41
|
+
if (process.env.NODE_ENV !== "production") Track.displayName = "Track";
|
|
42
|
+
Track.displayName = 'Meter.Track';
|
|
43
|
+
const Indicator = exports.Indicator = /*#__PURE__*/React.forwardRef(({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Indicator, {
|
|
47
|
+
className: (0, _cx.cx)('tale-meter__indicator', className),
|
|
48
|
+
ref: ref,
|
|
49
|
+
...props
|
|
50
|
+
}));
|
|
51
|
+
if (process.env.NODE_ENV !== "production") Indicator.displayName = "Indicator";
|
|
52
|
+
Indicator.displayName = 'Meter.Indicator';
|
package/meter/index.d.ts
CHANGED
package/meter/index.js
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { NavigationMenuRootState, NavigationMenuRootProps, NavigationMenuRootActions, NavigationMenuRootChangeEventReason, NavigationMenuRootChangeEventDetails } from "./root/NavigationMenuRoot.js";
|
|
4
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
export declare const Root: typeof H.Root;
|
|
10
|
+
export declare namespace Root {
|
|
11
|
+
type State = NavigationMenuRootState;
|
|
12
|
+
type Props = NavigationMenuRootProps;
|
|
13
|
+
type Actions = NavigationMenuRootActions;
|
|
14
|
+
type ChangeEventReason = NavigationMenuRootChangeEventReason;
|
|
15
|
+
type ChangeEventDetails = NavigationMenuRootChangeEventDetails;
|
|
16
|
+
}
|
|
17
|
+
export declare const List: typeof H.List;
|
|
18
|
+
export declare const Trigger: typeof H.Trigger;
|
|
19
|
+
export declare const Icon: typeof H.Icon;
|
|
20
|
+
export declare const Link: typeof H.Link;
|
|
21
|
+
export declare const Popup: typeof H.Popup;
|
|
22
|
+
export declare const Content: typeof H.Content;
|
|
23
|
+
export declare const Viewport: typeof H.Viewport;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Viewport = exports.Trigger = exports.Root = exports.Positioner = exports.Portal = exports.Popup = exports.List = exports.Link = exports.Item = exports.Icon = exports.Content = exports.Backdrop = exports.Arrow = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const Portal = exports.Portal = H.Portal;
|
|
13
|
+
const Positioner = exports.Positioner = H.Positioner;
|
|
14
|
+
const Backdrop = exports.Backdrop = H.Backdrop;
|
|
15
|
+
const Arrow = exports.Arrow = H.Arrow;
|
|
16
|
+
const Item = exports.Item = H.Item;
|
|
17
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Root, {
|
|
21
|
+
className: (0, _cx.cx)('tale-navigation-menu', className),
|
|
22
|
+
ref: ref,
|
|
23
|
+
...props
|
|
24
|
+
}));
|
|
25
|
+
StyledRoot.displayName = 'NavigationMenu.Root';
|
|
26
|
+
const Root = exports.Root = StyledRoot;
|
|
27
|
+
const StyledList = /*#__PURE__*/React.forwardRef(({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.List, {
|
|
31
|
+
className: (0, _cx.cx)('tale-navigation-menu__list', className),
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
}));
|
|
35
|
+
StyledList.displayName = 'NavigationMenu.List';
|
|
36
|
+
const List = exports.List = StyledList;
|
|
37
|
+
const StyledTrigger = /*#__PURE__*/React.forwardRef(({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Trigger, {
|
|
41
|
+
className: (0, _cx.cx)('tale-navigation-menu__trigger', className),
|
|
42
|
+
ref: ref,
|
|
43
|
+
...props
|
|
44
|
+
}));
|
|
45
|
+
StyledTrigger.displayName = 'NavigationMenu.Trigger';
|
|
46
|
+
const Trigger = exports.Trigger = StyledTrigger;
|
|
47
|
+
const StyledIcon = /*#__PURE__*/React.forwardRef(({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Icon, {
|
|
51
|
+
className: (0, _cx.cx)('tale-navigation-menu__icon', className),
|
|
52
|
+
ref: ref,
|
|
53
|
+
...props
|
|
54
|
+
}));
|
|
55
|
+
StyledIcon.displayName = 'NavigationMenu.Icon';
|
|
56
|
+
const Icon = exports.Icon = StyledIcon;
|
|
57
|
+
const StyledLink = /*#__PURE__*/React.forwardRef(({
|
|
58
|
+
className,
|
|
59
|
+
...props
|
|
60
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Link, {
|
|
61
|
+
className: (0, _cx.cx)('tale-navigation-menu__link', className),
|
|
62
|
+
ref: ref,
|
|
63
|
+
...props
|
|
64
|
+
}));
|
|
65
|
+
StyledLink.displayName = 'NavigationMenu.Link';
|
|
66
|
+
const Link = exports.Link = StyledLink;
|
|
67
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Popup, {
|
|
71
|
+
className: (0, _cx.cx)('tale-navigation-menu__popup', className),
|
|
72
|
+
ref: ref,
|
|
73
|
+
...props
|
|
74
|
+
}));
|
|
75
|
+
StyledPopup.displayName = 'NavigationMenu.Popup';
|
|
76
|
+
const Popup = exports.Popup = StyledPopup;
|
|
77
|
+
const StyledContent = /*#__PURE__*/React.forwardRef(({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Content, {
|
|
81
|
+
className: (0, _cx.cx)('tale-navigation-menu__content', className),
|
|
82
|
+
ref: ref,
|
|
83
|
+
...props
|
|
84
|
+
}));
|
|
85
|
+
StyledContent.displayName = 'NavigationMenu.Content';
|
|
86
|
+
const Content = exports.Content = StyledContent;
|
|
87
|
+
const StyledViewport = /*#__PURE__*/React.forwardRef(({
|
|
88
|
+
className,
|
|
89
|
+
...props
|
|
90
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Viewport, {
|
|
91
|
+
className: (0, _cx.cx)('tale-navigation-menu__viewport', className),
|
|
92
|
+
ref: ref,
|
|
93
|
+
...props
|
|
94
|
+
}));
|
|
95
|
+
StyledViewport.displayName = 'NavigationMenu.Viewport';
|
|
96
|
+
const Viewport = exports.Viewport = StyledViewport;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as NavigationMenu from "./
|
|
1
|
+
export * as NavigationMenu from "./NavigationMenu.styled.js";
|
|
2
2
|
export type * from "./root/NavigationMenuRoot.js";
|
|
3
3
|
export type * from "./trigger/NavigationMenuTrigger.js";
|
|
4
4
|
export type * from "./portal/NavigationMenuPortal.js";
|
package/navigation-menu/index.js
CHANGED
|
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.NavigationMenu = void 0;
|
|
8
|
-
var _NavigationMenu = _interopRequireWildcard(require("./
|
|
8
|
+
var _NavigationMenu = _interopRequireWildcard(require("./NavigationMenu.styled"));
|
|
9
9
|
exports.NavigationMenu = _NavigationMenu;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as H from "./index.parts.js";
|
|
2
|
+
import type { NumberFieldRootState, NumberFieldRootProps, NumberFieldRootChangeEventReason, NumberFieldRootChangeEventDetails, NumberFieldRootCommitEventReason, NumberFieldRootCommitEventDetails } from "./root/NumberFieldRoot.js";
|
|
3
|
+
export declare const Root: typeof H.Root;
|
|
4
|
+
export declare namespace Root {
|
|
5
|
+
type State = NumberFieldRootState;
|
|
6
|
+
type Props = NumberFieldRootProps;
|
|
7
|
+
type ChangeEventReason = NumberFieldRootChangeEventReason;
|
|
8
|
+
type ChangeEventDetails = NumberFieldRootChangeEventDetails;
|
|
9
|
+
type CommitEventReason = NumberFieldRootCommitEventReason;
|
|
10
|
+
type CommitEventDetails = NumberFieldRootCommitEventDetails;
|
|
11
|
+
}
|
|
12
|
+
export declare const Group: typeof H.Group;
|
|
13
|
+
export declare const Decrement: typeof H.Decrement;
|
|
14
|
+
export declare const Input: typeof H.Input;
|
|
15
|
+
export declare const Increment: typeof H.Increment;
|
|
16
|
+
export { ScrubArea, ScrubAreaCursor } from "./index.parts.js";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Root = exports.Input = exports.Increment = exports.Group = exports.Decrement = void 0;
|
|
8
|
+
Object.defineProperty(exports, "ScrubArea", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return H.ScrubArea;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "ScrubAreaCursor", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return H.ScrubAreaCursor;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var React = _interopRequireWildcard(require("react"));
|
|
21
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
22
|
+
var _cx = require("../_cx");
|
|
23
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Root, {
|
|
28
|
+
className: (0, _cx.cx)('tale-number-field', className),
|
|
29
|
+
ref: ref,
|
|
30
|
+
...props
|
|
31
|
+
}));
|
|
32
|
+
StyledRoot.displayName = 'NumberField.Root';
|
|
33
|
+
const Root = exports.Root = StyledRoot;
|
|
34
|
+
const StyledGroup = /*#__PURE__*/React.forwardRef(({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Group, {
|
|
38
|
+
className: (0, _cx.cx)('tale-number-field__group', className),
|
|
39
|
+
ref: ref,
|
|
40
|
+
...props
|
|
41
|
+
}));
|
|
42
|
+
StyledGroup.displayName = 'NumberField.Group';
|
|
43
|
+
const Group = exports.Group = StyledGroup;
|
|
44
|
+
const StyledDecrement = /*#__PURE__*/React.forwardRef(({
|
|
45
|
+
className,
|
|
46
|
+
children = '−',
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Decrement, {
|
|
49
|
+
className: (0, _cx.cx)('tale-number-field__decrement', className),
|
|
50
|
+
ref: ref,
|
|
51
|
+
...props,
|
|
52
|
+
children: children
|
|
53
|
+
}));
|
|
54
|
+
StyledDecrement.displayName = 'NumberField.Decrement';
|
|
55
|
+
const Decrement = exports.Decrement = StyledDecrement;
|
|
56
|
+
const StyledInput = /*#__PURE__*/React.forwardRef(({
|
|
57
|
+
className,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Input, {
|
|
60
|
+
className: (0, _cx.cx)('tale-number-field__input', className),
|
|
61
|
+
ref: ref,
|
|
62
|
+
...props
|
|
63
|
+
}));
|
|
64
|
+
StyledInput.displayName = 'NumberField.Input';
|
|
65
|
+
const Input = exports.Input = StyledInput;
|
|
66
|
+
const StyledIncrement = /*#__PURE__*/React.forwardRef(({
|
|
67
|
+
className,
|
|
68
|
+
children = '+',
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Increment, {
|
|
71
|
+
className: (0, _cx.cx)('tale-number-field__increment', className),
|
|
72
|
+
ref: ref,
|
|
73
|
+
...props,
|
|
74
|
+
children: children
|
|
75
|
+
}));
|
|
76
|
+
StyledIncrement.displayName = 'NumberField.Increment';
|
|
77
|
+
const Increment = exports.Increment = StyledIncrement;
|