@oliasoft-open-source/react-ui-library 10.8.0-beta-2 → 10.8.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/dist/global.css +1645 -1655
- package/dist/index.d.ts +6 -34
- package/dist/index.js +106 -372
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare interface AuditLogItem {
|
|
|
56
56
|
|
|
57
57
|
export declare type AuditLogOperation = 'Created' | 'Cloned' | 'Reverted' | 'Restored' | 'Imported' | 'Updated';
|
|
58
58
|
|
|
59
|
-
export declare const Badge: ({ children, color, textColor: textColorProp, title, dot, margin, small, }: IBadgeProps) => JSX.Element;
|
|
59
|
+
export declare const Badge: ({ children, color, textColor: textColorProp, title, dot, margin, small, borderColor, borderRadius, minWidth, }: IBadgeProps) => JSX.Element;
|
|
60
60
|
|
|
61
61
|
export declare const Breadcrumb: ({ links, small }: IBreadcrumbProps) => JSX.Element;
|
|
62
62
|
|
|
@@ -265,6 +265,9 @@ export declare interface IBadgeProps {
|
|
|
265
265
|
dot?: boolean;
|
|
266
266
|
margin?: TStringOrNumber | null;
|
|
267
267
|
small?: boolean;
|
|
268
|
+
borderColor?: string;
|
|
269
|
+
borderRadius?: TStringOrNumber;
|
|
270
|
+
minWidth?: TStringOrNumber;
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
export declare interface IBreadcrumbProps {
|
|
@@ -959,27 +962,12 @@ export declare interface IMentionsConfig {
|
|
|
959
962
|
|
|
960
963
|
/** Top-level `menu` prop. `sections` may be custom ReactNode. */
|
|
961
964
|
export declare interface IMenuMenu {
|
|
962
|
-
|
|
963
|
-
* Trigger appearance. Use `'Search'` for a Select-style search input that filters options
|
|
964
|
-
* (structure is preserved: submenus stay visible when any descendant matches). Not supported
|
|
965
|
-
* for custom `sections` content — when `sections` is a React element, `'Search'` is ignored.
|
|
966
|
-
* With `'Search'`, `component` is unused.
|
|
967
|
-
*/
|
|
968
|
-
trigger: TMenuTriggerType | string;
|
|
965
|
+
trigger: TTriggerType | string;
|
|
969
966
|
title?: string;
|
|
970
967
|
colored?: boolean | string;
|
|
971
968
|
basic?: boolean;
|
|
972
969
|
small?: boolean;
|
|
973
|
-
/**
|
|
974
|
-
* Selected / closed-state value shown in the Search trigger while the input is empty.
|
|
975
|
-
* For other triggers, the button/text label.
|
|
976
|
-
*/
|
|
977
970
|
label?: ReactNode | string;
|
|
978
|
-
/**
|
|
979
|
-
* Fallback text in the Search trigger when `label` is empty and the user has not typed.
|
|
980
|
-
* Styled like Select's placeholder. Unused for other trigger types.
|
|
981
|
-
*/
|
|
982
|
-
placeholder?: ReactNode;
|
|
983
971
|
component?: ReactNode;
|
|
984
972
|
sections?: ReactNode | IMenuSection[];
|
|
985
973
|
placement?: string;
|
|
@@ -1006,11 +994,6 @@ export declare interface IMenuProps {
|
|
|
1006
994
|
warning?: string;
|
|
1007
995
|
tabIndex?: number;
|
|
1008
996
|
offset?: number;
|
|
1009
|
-
/**
|
|
1010
|
-
* With the Search trigger, applies Select's in-table input chrome (transparent background,
|
|
1011
|
-
* border only on hover/focus/error/warning). No-op for other trigger types.
|
|
1012
|
-
*/
|
|
1013
|
-
isInTable?: boolean;
|
|
1014
997
|
}
|
|
1015
998
|
|
|
1016
999
|
export declare interface IMenuSection {
|
|
@@ -2152,7 +2135,7 @@ export declare const Mention: ({ children }: {
|
|
|
2152
2135
|
children: ReactNode;
|
|
2153
2136
|
}) => JSX.Element;
|
|
2154
2137
|
|
|
2155
|
-
export declare const Menu: ({ menu, width, disabled, badgeTitle, badgeDot, loading, closeOnOptionClick, maxHeight, testId, open: openProp, setOpen: setOpenProp, tooltip, error, warning, tabIndex, active, groupOrder, offset,
|
|
2138
|
+
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) => JSX.Element;
|
|
2156
2139
|
|
|
2157
2140
|
export declare enum MenuCarat {
|
|
2158
2141
|
FALSE = "false",
|
|
@@ -2160,15 +2143,6 @@ export declare enum MenuCarat {
|
|
|
2160
2143
|
DOWN = "down"
|
|
2161
2144
|
}
|
|
2162
2145
|
|
|
2163
|
-
/** Menu trigger variants. Extends shared `TriggerType` with Search. */
|
|
2164
|
-
export declare enum MenuTriggerType {
|
|
2165
|
-
TEXT = "Text",
|
|
2166
|
-
BUTTON = "Button",
|
|
2167
|
-
DROP_DOWN_BUTTON = "DropDownButton",
|
|
2168
|
-
COMPONENT = "Component",
|
|
2169
|
-
SEARCH = "Search"
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
2146
|
export declare enum MenuType {
|
|
2173
2147
|
HEADING = "Heading",
|
|
2174
2148
|
DIVIDER = "Divider",
|
|
@@ -2380,8 +2354,6 @@ declare type TMenuElement = TBaseElementProps & {
|
|
|
2380
2354
|
sections?: any[] | ReactNode;
|
|
2381
2355
|
};
|
|
2382
2356
|
|
|
2383
|
-
export declare type TMenuTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Component' | 'Search';
|
|
2384
|
-
|
|
2385
2357
|
export declare type TMenuType = 'Heading' | 'Divider' | 'Option' | 'Menu';
|
|
2386
2358
|
|
|
2387
2359
|
export declare type TMessageType = 'Info' | 'Success' | 'Warning' | 'Error';
|