@oliasoft-open-source/react-ui-library 8.0.0-beta-3 → 8.0.0-beta-5
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 +1 -2
- package/dist/components/menu/menu-popover.d.ts +3 -1
- package/dist/components/menu/menu-popover.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.interface.d.ts +1 -2
- package/dist/components/menu/menu.interface.d.ts.map +1 -1
- package/dist/components/menu/menu.stories.d.ts +1 -0
- package/dist/components/menu/menu.stories.d.ts.map +1 -1
- package/dist/components/menu/trigger/component.d.ts +2 -2
- package/dist/components/menu/trigger/component.d.ts.map +1 -1
- package/dist/components/menu/trigger/text.d.ts +3 -4
- package/dist/components/menu/trigger/text.d.ts.map +1 -1
- package/dist/components/menu/trigger/trigger.d.ts +18 -5
- package/dist/components/menu/trigger/trigger.d.ts.map +1 -1
- package/dist/components/top-bar/element/element.d.ts.map +1 -1
- package/dist/components/top-bar/top-bar.stories.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +115 -125
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1181,7 +1181,6 @@ The `Menu` component is used to render a menu with various options or sections.
|
|
|
1181
1181
|
| `badgeTitle` | The title text for a badge, if applicable. | `''` (empty) |
|
|
1182
1182
|
| `badgeDot` | A boolean indicating whether to display a dot badge. | `false` |
|
|
1183
1183
|
| `loading` | A boolean indicating whether the menu is in a loading state. | `false` |
|
|
1184
|
-
| `fullHeightTrigger` | A boolean indicating whether the trigger should have full height. | `false` |
|
|
1185
1184
|
| `closeOnOptionClick` | A boolean indicating whether the menu should close when an option is clicked. | `false` |
|
|
1186
1185
|
| `groupOrder` | The order of the menu group. | `null` |
|
|
1187
1186
|
| `maxHeight` | The maximum height of the menu. | - |
|
|
@@ -1193,6 +1192,7 @@ The `Menu` component is used to render a menu with various options or sections.
|
|
|
1193
1192
|
| `warning` | The warning message for the menu. | `null` |
|
|
1194
1193
|
| `tabIndex` | Tab index for the menu trigger. | - |
|
|
1195
1194
|
| `active` | Whether the trigger appears active. | `false` |
|
|
1195
|
+
| `offset` | Main-axis gap between the trigger and the menu (submenus stay at 0). | `0` |
|
|
1196
1196
|
|
|
1197
1197
|
### Menu Properties
|
|
1198
1198
|
|
|
@@ -1208,7 +1208,6 @@ The `menu` prop accepts an object with the following properties:
|
|
|
1208
1208
|
- `placement`: The placement of the menu.
|
|
1209
1209
|
- `showAllButton`: The configuration for the "show all" button.
|
|
1210
1210
|
- `testId`: The test ID for the menu.
|
|
1211
|
-
- `fullHeightTrigger`: A boolean indicating whether the trigger should have full height.
|
|
1212
1211
|
|
|
1213
1212
|
### Usage Example
|
|
1214
1213
|
|
|
@@ -6,6 +6,8 @@ export interface IMenuPopoverProps {
|
|
|
6
6
|
portalTriggerRef?: RefObject<HTMLElement | null>;
|
|
7
7
|
isNested?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
+
offset?: number;
|
|
10
|
+
testId?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare const MenuPopover: ({ children, placement, triggerRef, portalTriggerRef, isNested, className, }: IMenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const MenuPopover: ({ children, placement, triggerRef, portalTriggerRef, isNested, className, offset, testId, }: IMenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
//# sourceMappingURL=menu-popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-popover.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu-popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-popover.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu-popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,6FASzB,iBAAiB,4CAuBnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IMenuProps } from './menu.interface';
|
|
2
2
|
export type { IMenuProps, IMenuMenu, IMenuSection, INestedMenu } from './menu.interface';
|
|
3
|
-
export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active,
|
|
3
|
+
export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active, groupOrder, offset, }: IMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,IAAI,GAAI,uMAmBlB,UAAU,4CAkGZ,CAAC"}
|
|
@@ -15,7 +15,6 @@ export interface IMenuMenu {
|
|
|
15
15
|
placement?: string;
|
|
16
16
|
showAllButton?: IMenuShowAllButton;
|
|
17
17
|
testId?: string;
|
|
18
|
-
fullHeightTrigger?: boolean;
|
|
19
18
|
}
|
|
20
19
|
/** Nested submenu — `sections` must be `IMenuSection[]`, not custom ReactNode. */
|
|
21
20
|
export type INestedMenu = Omit<IMenuMenu, 'sections'> & {
|
|
@@ -29,7 +28,6 @@ export interface IMenuProps {
|
|
|
29
28
|
badgeTitle?: string;
|
|
30
29
|
badgeDot?: boolean;
|
|
31
30
|
loading?: boolean;
|
|
32
|
-
fullHeightTrigger?: boolean;
|
|
33
31
|
closeOnOptionClick?: boolean;
|
|
34
32
|
groupOrder?: TGroupOrder;
|
|
35
33
|
maxHeight?: TStringOrNumber;
|
|
@@ -40,6 +38,7 @@ export interface IMenuProps {
|
|
|
40
38
|
error?: string;
|
|
41
39
|
warning?: string;
|
|
42
40
|
tabIndex?: number;
|
|
41
|
+
offset?: number;
|
|
43
42
|
}
|
|
44
43
|
export interface IMenuSection {
|
|
45
44
|
type: TMenuType | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.interface.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.interface.ts"],"names":[],"m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AED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,YAAY,EAAE,CAAC;CACpC"}
|
|
@@ -25,6 +25,7 @@ export declare const Submenus: import('storybook/internal/csf').AnnotatedStoryFn
|
|
|
25
25
|
export declare const WithoutCloseOnOptionClick: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
26
26
|
export declare const FullWidth: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
27
27
|
export declare const Small: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
28
|
+
export declare const Offset: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
28
29
|
export declare const JSXItems: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
29
30
|
export declare const JSXContent: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
30
31
|
export declare const ShowAll: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, IMenuProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAQ,MAAM,QAAQ,CAAC;wBAYrC,IAAI;AANT,wBAMU;AAGV,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAEzC,eAAO,MAAM,cAAc,8GAAoB,CAAC;AAGhD,eAAO,MAAM,kBAAkB,8GAAoB,CAAC;AAKpD,eAAO,MAAM,WAAW,8GAAoB,CAAC;AAG7C,eAAO,MAAM,aAAa,8GAAoB,CAAC;AAS/C,eAAO,MAAM,UAAU,8GAAoB,CAAC;AAG5C,eAAO,MAAM,WAAW,8GAAoB,CAAC;AAG7C,eAAO,MAAM,kBAAkB,8GAAoB,CAAC;AAGpD,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAGvC,eAAO,MAAM,QAAQ,8GAAoB,CAAC;AAK1C,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAGvC,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,MAAM,8GAAoB,CAAC;AAGxC,eAAO,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,8GAAoB,CAAC;AAK1C,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAGvC,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,MAAM,8GAAoB,CAAC;AAGxC,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAMzC,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAKvC,eAAO,MAAM,GAAG,8GAAoB,CAAC;AAKrC,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAGvC,eAAO,MAAM,QAAQ,8GAAoB,CAAC;AAG1C,eAAO,MAAM,yBAAyB,8GAAoB,CAAC;AAG3D,eAAO,MAAM,SAAS,8GAAoB,CAAC;AAK3C,eAAO,MAAM,KAAK,8GAAoB,CAAC;AAKvC,eAAO,MAAM,MAAM,8GAAoB,CAAC;AAKxC,eAAO,MAAM,QAAQ,8GAAoB,CAAC;AAG1C,eAAO,MAAM,UAAU,8GAAoB,CAAC;AAQ5C,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAGzC,eAAO,MAAM,IAAI,8GAAoB,CAAC;AAKtC,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC,UAAU,CAS1D,CAAC;AAmCF,eAAO,MAAM,YAAY,+CAQxB,CAAC"}
|
|
@@ -6,8 +6,8 @@ export interface IMenuComponentProps extends HTMLAttributes<HTMLElement> {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* When `component` is a single attachable element (usually library `Button`),
|
|
9
|
-
* forward the Pressable host (ref + DOM props) onto it. Otherwise
|
|
10
|
-
*
|
|
9
|
+
* forward the Pressable host (ref + DOM props) onto it. Otherwise the root
|
|
10
|
+
* div is the host (OverlayTriggerChild / Trigger forward the press shell here).
|
|
11
11
|
*/
|
|
12
12
|
export declare const Component: React.ForwardRefExoticComponent<IMenuComponentProps & React.RefAttributes<HTMLElement>>;
|
|
13
13
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA4B,cAAc,EAAgC,SAAS,EAAO,MAAM,OAAO,CAAC;AAMtH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACtE,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA4B,cAAc,EAAgC,SAAS,EAAO,MAAM,OAAO,CAAC;AAMtH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACtE,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,yFAiCrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { default as React, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { TMenuCarat } from '../types';
|
|
3
|
-
interface IMenuTextProps {
|
|
3
|
+
export interface IMenuTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
label: ReactNode | string;
|
|
5
5
|
title?: string;
|
|
6
6
|
carat?: TMenuCarat | string;
|
|
@@ -8,6 +8,5 @@ interface IMenuTextProps {
|
|
|
8
8
|
isOpen?: boolean;
|
|
9
9
|
selected?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const Text:
|
|
12
|
-
export {};
|
|
11
|
+
export declare const Text: React.ForwardRefExoticComponent<IMenuTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
12
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/text.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrE,OAAO,EAAa,UAAU,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,uFAoChB,CAAC"}
|
|
@@ -2,21 +2,34 @@ import { default as React, HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { TStringOrNumber } from '../../../typings/common-type-definitions';
|
|
3
3
|
import { TTriggerType } from '../../../typings/common-types';
|
|
4
4
|
import { IMenuButtonProps } from './button';
|
|
5
|
+
interface TriggerTooltipProps {
|
|
6
|
+
tooltip?: TStringOrNumber | ReactNode;
|
|
7
|
+
error?: TStringOrNumber | ReactNode;
|
|
8
|
+
warning?: TStringOrNumber | ReactNode;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/** Wraps the Pressable host — keep outside OverlayTriggerChild so focus stays on the control. */
|
|
12
|
+
export declare const TriggerTooltip: ({ tooltip, error, warning, children }: TriggerTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
13
|
/** Button-shared fields — sourced from IMenuButtonProps so Trigger stays aligned with Button. */
|
|
6
14
|
type MenuTriggerButtonFields = Pick<IMenuButtonProps, 'colored' | 'small' | 'width' | 'disabled' | 'loading' | 'groupOrder' | 'error' | 'warning' | 'active' | 'tabIndex' | 'testId'>;
|
|
7
|
-
export interface IMenuTriggerProps extends Omit<HTMLAttributes<
|
|
15
|
+
export interface IMenuTriggerProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, MenuTriggerButtonFields {
|
|
8
16
|
trigger: TTriggerType | string;
|
|
9
17
|
label?: IMenuButtonProps['label'] | null;
|
|
10
18
|
title?: string;
|
|
11
|
-
badgeTitle?: string;
|
|
12
|
-
badgeDot?: boolean;
|
|
13
19
|
isNested?: boolean;
|
|
14
20
|
component?: ReactNode;
|
|
15
|
-
fullHeight?: boolean;
|
|
16
21
|
isOpen?: boolean;
|
|
17
|
-
tooltip?: TStringOrNumber | ReactNode;
|
|
18
22
|
selected?: boolean;
|
|
19
23
|
}
|
|
24
|
+
export declare const withBadge: (children: ReactNode, { isNested, badgeTitle, badgeDot }: {
|
|
25
|
+
isNested?: boolean;
|
|
26
|
+
badgeTitle?: string;
|
|
27
|
+
badgeDot?: boolean;
|
|
28
|
+
}) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Renders the menu trigger control only (Button / Text / Component).
|
|
31
|
+
* OverlayTriggerChild owns the Pressable host — do not wrap a focus shell here.
|
|
32
|
+
*/
|
|
20
33
|
export declare const Trigger: React.ForwardRefExoticComponent<IMenuTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
21
34
|
export {};
|
|
22
35
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/trigger/trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAe,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAU,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMpD,UAAU,mBAAmB;IAC3B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iGAAiG;AACjG,eAAO,MAAM,cAAc,GAAI,uCAAuC,mBAAmB,4CASxF,CAAC;AAEF,iGAAiG;AACjG,KAAK,uBAAuB,GAAG,IAAI,CACjC,gBAAgB,EACd,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,YAAY,GACZ,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,QAAQ,CACX,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,EAAE,uBAAuB;IAC5G,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,GACpB,UAAU,SAAS,EACnB,oCAAoC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,0TAQlG,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,OAAO,uFAiFnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../src/components/top-bar/element/element.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAe,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMtH,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,iBAAiB,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,aAAa,mBAAmB,
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../src/components/top-bar/element/element.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAe,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMtH,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,YAAY,GAAG,cAAc,GAAG,YAAY,GAAG,iBAAiB,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,aAAa,mBAAmB,mDAkDvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-bar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/top-bar/top-bar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAU,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"top-bar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/top-bar/top-bar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAU,MAAM,WAAW,CAAC;wBAsH5C,IAAI;AAvBT,wBAuBU;AAIV,eAAO,MAAM,OAAO,gHAAoB,CAAC;AAEzC,eAAO,MAAM,WAAW,gHAAoB,CAAC;AAK7C,eAAO,MAAM,YAAY,gHAAoB,CAAC;AAQ9C,eAAO,MAAM,WAAW,gHAAoB,CAAC;AAQ7C,eAAO,MAAM,YAAY,+CA2BxB,CAAC"}
|