@capillarytech/blaze-ui 5.0.9 → 5.0.10
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/.npmrc +2 -0
- package/CapCondition/messages.d.ts +85 -0
- package/CapCondition/messages.d.ts.map +1 -0
- package/CapConditionPreview/MIGRATION_ANALYSIS.md +70 -0
- package/CapConditionPreview/README.md +40 -0
- package/CapConditionPreview/constants.d.ts +24 -0
- package/CapConditionPreview/constants.d.ts.map +1 -0
- package/CapConditionPreview/index.d.ts +7 -0
- package/CapConditionPreview/index.d.ts.map +1 -0
- package/CapConditionPreview/index.js +132 -184
- package/CapConditionPreview/index.js.map +1 -1
- package/CapConditionPreview/tests/USE_CASES_CapConditionPreview.md +65 -0
- package/CapConditionPreview/types.d.ts +82 -0
- package/CapConditionPreview/types.d.ts.map +1 -0
- package/CapNavigation/index.js +24081 -45909
- package/CapNavigation/index.js.map +1 -1
- package/CapTopBar/index.js +28663 -44982
- package/CapTopBar/index.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +721 -1042
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/.DS_Store +0 -0
- package/CapTopBar/CapOrgSelect.d.ts +0 -12
- package/CapTopBar/CapOrgSelect.d.ts.map +0 -1
- package/CapTopBar/CapOrgSelectUtils.d.ts +0 -38
- package/CapTopBar/CapOrgSelectUtils.d.ts.map +0 -1
- package/CapTopBar/README.md +0 -146
- package/CapTopBar/constants.d.ts +0 -2
- package/CapTopBar/constants.d.ts.map +0 -1
- package/CapTopBar/index.d.ts +0 -11
- package/CapTopBar/index.d.ts.map +0 -1
- package/CapTopBar/themeConfig.d.ts +0 -6
- package/CapTopBar/themeConfig.d.ts.map +0 -1
- package/CapTopBar/types.d.ts +0 -106
- package/CapTopBar/types.d.ts.map +0 -1
- package/CapTopBar/utils.d.ts +0 -8
- package/CapTopBar/utils.d.ts.map +0 -1
package/package.json
CHANGED
package/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SelectProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Wrapper component that maintains backward compatibility with the old Select API
|
|
5
|
-
* while using CapUnifiedSelect internally.
|
|
6
|
-
*
|
|
7
|
-
* This component transforms the org/OU data structure (accessibleOus) to tree structure (children)
|
|
8
|
-
* and handles the callback signature difference.
|
|
9
|
-
*/
|
|
10
|
-
export declare const CapOrgSelect: React.FC<SelectProps>;
|
|
11
|
-
export default CapOrgSelect;
|
|
12
|
-
//# sourceMappingURL=CapOrgSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapOrgSelect.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/CapOrgSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsE9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OptionData } from '../CapUnifiedSelect/types';
|
|
3
|
-
import type { TreeMaps } from '../CapUnifiedSelect/types';
|
|
4
|
-
import type { SelectProps } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* Transforms org/OU data structure (accessibleOus) to tree structure (children)
|
|
7
|
-
* and adds sitemap icons for organizations with OUs
|
|
8
|
-
*/
|
|
9
|
-
export declare const transformOrgOuToTreeOptions: (items?: SelectProps["items"]) => OptionData[];
|
|
10
|
-
/**
|
|
11
|
-
* Determines the selected value (prefer OU value if selected, otherwise org value)
|
|
12
|
-
*/
|
|
13
|
-
export declare const getSelectedValue: (selectedItem?: string | number, selectedOuItem?: string | number) => string | number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Extracts label text from a node, handling both string and React element labels
|
|
16
|
-
*/
|
|
17
|
-
export declare const extractLabelText: (node?: OptionData) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Creates the prefix component for selected value display (logo + first letter)
|
|
20
|
-
*/
|
|
21
|
-
export declare const createPrefix: (value: string | number | undefined, treeMaps: TreeMaps, showCapillaryIcon: boolean) => React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Finds the parent org value for a given OU value
|
|
24
|
-
*/
|
|
25
|
-
export declare const findParentOrgValue: (selectedValue: string | number, treeMaps: TreeMaps) => string | number | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Transforms CapUnifiedSelect's onChange to handleItemChange signature
|
|
28
|
-
*/
|
|
29
|
-
export declare const handleSelectChange: (newValue: string | number | (string | number)[] | undefined, treeMaps: TreeMaps, handleItemChange?: SelectProps["handleItemChange"]) => void;
|
|
30
|
-
/**
|
|
31
|
-
* Checks if select should be disabled (fixed org or only one org exists)
|
|
32
|
-
*/
|
|
33
|
-
export declare const isSelectDisabled: (fixedOrg: boolean, items?: SelectProps["items"]) => boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Determines if treeSelect or select should be used based on whether items have OUs
|
|
36
|
-
*/
|
|
37
|
-
export declare const getSelectType: (items?: SelectProps["items"]) => "treeSelect" | "select";
|
|
38
|
-
//# sourceMappingURL=CapOrgSelectUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapOrgSelectUtils.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/CapOrgSelectUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAM1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,QAAO,WAAW,CAAC,OAAO,CAAM,KAC/B,UAAU,EA2BZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,eAAe,MAAM,GAAG,MAAM,EAC9B,iBAAiB,MAAM,GAAG,MAAM,KAC/B,MAAM,GAAG,MAAM,GAAG,SAKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,UAAU,KAAG,MA0BpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,GAAG,MAAM,GAAG,SAAS,EAClC,UAAU,QAAQ,EAClB,mBAAmB,OAAO,KACzB,KAAK,CAAC,SAsCR,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,MAAM,GAAG,MAAM,EAC9B,UAAU,QAAQ,KACjB,MAAM,GAAG,MAAM,GAAG,SAiBpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,EAC3D,UAAU,QAAQ,EAClB,mBAAmB,WAAW,CAAC,kBAAkB,CAAC,KACjD,IAmCF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,OAAO,EACjB,QAAO,WAAW,CAAC,OAAO,CAAM,KAC/B,OAEF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,QAAO,WAAW,CAAC,OAAO,CAAM,KAAG,YAAY,GAAG,QAG/E,CAAC"}
|
package/CapTopBar/README.md
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
# CapTopBar
|
|
2
|
-
|
|
3
|
-
CapTopBar component migrated from Ant Design v3 to v6.
|
|
4
|
-
|
|
5
|
-
## Migration Summary
|
|
6
|
-
|
|
7
|
-
This component has been migrated to use Ant Design v6 APIs and design tokens.
|
|
8
|
-
|
|
9
|
-
## Breaking Changes
|
|
10
|
-
|
|
11
|
-
**No breaking changes** - The component maintains **100% backward compatibility** with existing code. Deprecated Ant Design APIs continue to work exactly as before. However, deprecated APIs will show console warnings in development mode and should be migrated to the new API for future compatibility.
|
|
12
|
-
|
|
13
|
-
## Deprecated Props
|
|
14
|
-
|
|
15
|
-
The following Ant Design component APIs are deprecated but still supported for backward compatibility:
|
|
16
|
-
|
|
17
|
-
### `visible` / `onVisibleChange` (Drawer, Dropdown, Popover Components)
|
|
18
|
-
|
|
19
|
-
- **Status:** ⚠️ Deprecated
|
|
20
|
-
- **Ant Design Components:** Drawer, Dropdown, Popover
|
|
21
|
-
- **Deprecated Props:** `visible`, `onVisibleChange`
|
|
22
|
-
- **Replacement:** Use `open` and `onOpenChange` props instead
|
|
23
|
-
- **Migration:** Replace `visible` with `open` and `onVisibleChange` with `onOpenChange`
|
|
24
|
-
- **Removal:** Will be removed in next major version
|
|
25
|
-
|
|
26
|
-
**Before (Deprecated):**
|
|
27
|
-
```tsx
|
|
28
|
-
<CapDrawer visible={true} onVisibleChange={handleChange} />
|
|
29
|
-
<CapDropdown visible={true} onVisibleChange={handleChange} />
|
|
30
|
-
<CapPopover visible={true} onVisibleChange={handleChange} />
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**After (Recommended):**
|
|
34
|
-
```tsx
|
|
35
|
-
<CapDrawer open={true} onOpenChange={handleChange} />
|
|
36
|
-
<CapDropdown open={true} onOpenChange={handleChange} />
|
|
37
|
-
<CapPopover open={true} onOpenChange={handleChange} />
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Note:** A deprecation warning will be shown in development mode when using `visible` instead of `open`.
|
|
41
|
-
|
|
42
|
-
### `overlay` / `overlayClassName` (Dropdown Component)
|
|
43
|
-
|
|
44
|
-
- **Status:** ⚠️ Deprecated
|
|
45
|
-
- **Ant Design Component:** Dropdown
|
|
46
|
-
- **Deprecated Props:** `overlay`, `overlayClassName`
|
|
47
|
-
- **Replacement:** Use `menu` and `popupClassName` props instead
|
|
48
|
-
- **Migration:** Replace `overlay` with `menu` (object format) and `overlayClassName` with `popupClassName`
|
|
49
|
-
- **Removal:** Will be removed in next major version
|
|
50
|
-
|
|
51
|
-
**Before (Deprecated):**
|
|
52
|
-
```tsx
|
|
53
|
-
<CapDropdown overlay={<CapMenu>...</CapMenu>} overlayClassName="custom-class" />
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**After (Recommended):**
|
|
57
|
-
```tsx
|
|
58
|
-
<CapDropdown
|
|
59
|
-
menu={{ items: [...] }}
|
|
60
|
-
popupClassName="custom-class"
|
|
61
|
-
/>
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**Note:** A deprecation warning will be shown in development mode when using `overlay` instead of `menu`.
|
|
65
|
-
|
|
66
|
-
## Style Changes
|
|
67
|
-
|
|
68
|
-
**Approach**: The component uses CSS Modules with design tokens. Custom styling is applied through:
|
|
69
|
-
- CSS Modules classes for component-specific styles
|
|
70
|
-
- Design tokens via theme config (`getCapThemeConfig.ts`) for Antd component styling
|
|
71
|
-
- `:global` overrides with `// OVERRIDE:` comments for non-tokenizable cases
|
|
72
|
-
|
|
73
|
-
### Tokenized Styles
|
|
74
|
-
|
|
75
|
-
The following Antd component styles are now controlled via design tokens in `getCapThemeConfig.ts`:
|
|
76
|
-
|
|
77
|
-
- **Layout.Header**: `headerBg`, `headerPadding`, `headerHeight`
|
|
78
|
-
- **Drawer**: `headerBg`, `headerPadding`, `bodyPadding`
|
|
79
|
-
- **Dropdown**: `controlItemHeight`
|
|
80
|
-
- **Menu**: `itemColor`, `itemSelectedColor`, `itemHoverColor`, `itemActiveBorderBottomWidth`
|
|
81
|
-
- **Divider**: `verticalMarginInline`
|
|
82
|
-
|
|
83
|
-
### Non-Tokenizable Overrides
|
|
84
|
-
|
|
85
|
-
The following styles remain as `:global` overrides with `// OVERRIDE:` comments:
|
|
86
|
-
|
|
87
|
-
1. **Menu horizontal margin-right** (line 119-123): Media query specific margin - layout specific, no token available
|
|
88
|
-
2. **Divider horizontal width and margin** (line 171-174): Custom width and margin in user profile context - component specific
|
|
89
|
-
3. **Popover padding-top, width, inner-content padding, arrow display** (line 321-332): Layout-specific popover customization - no tokens available
|
|
90
|
-
|
|
91
|
-
## Code Improvements
|
|
92
|
-
|
|
93
|
-
1. **Removed PropTypes**: Replaced with TypeScript interfaces in `types.ts`
|
|
94
|
-
2. **Converted to functional component**: Changed from class component to functional component with hooks
|
|
95
|
-
3. **Using CSS Modules**: All styles use CSS Modules with `styles[classname]` pattern
|
|
96
|
-
4. **Improved backward compatibility**: Deprecated props are handled internally by child components (CapDrawer, CapDropdown, CapPopover)
|
|
97
|
-
5. **Type safety**: Full TypeScript support with proper types exported
|
|
98
|
-
|
|
99
|
-
## Component Architecture Changes
|
|
100
|
-
|
|
101
|
-
- **Class Component → Functional Component**: Converted from React class component to functional component
|
|
102
|
-
- **State Management**: Replaced `this.state` with `useState` hooks
|
|
103
|
-
- **Methods → Callbacks**: Converted class methods to `useCallback` hooks for performance optimization
|
|
104
|
-
- **Props Types**: Migrated from PropTypes to TypeScript interfaces
|
|
105
|
-
|
|
106
|
-
## What Stayed the Same
|
|
107
|
-
|
|
108
|
-
- All component props and API surface area
|
|
109
|
-
- Component behavior and functionality
|
|
110
|
-
- Styling appearance (maintained through tokens and CSS Modules)
|
|
111
|
-
- Backward compatibility for all existing usage
|
|
112
|
-
|
|
113
|
-
## What Changed
|
|
114
|
-
|
|
115
|
-
- **Removed**: PropTypes dependency
|
|
116
|
-
- **Removed**: Class component pattern
|
|
117
|
-
- **Added**: TypeScript type definitions
|
|
118
|
-
- **Added**: CSS Modules support
|
|
119
|
-
- **Added**: Design token integration
|
|
120
|
-
- **Updated**: Antd imports to use `antd-v5` (v6)
|
|
121
|
-
|
|
122
|
-
## Usage Example
|
|
123
|
-
|
|
124
|
-
```tsx
|
|
125
|
-
import CapTopBar from '@capillarytech/blaze-ui';
|
|
126
|
-
|
|
127
|
-
<CapTopBar
|
|
128
|
-
menuProps={{
|
|
129
|
-
items: [
|
|
130
|
-
{ key: '1', label: 'Home' },
|
|
131
|
-
{ key: '2', label: 'About' },
|
|
132
|
-
],
|
|
133
|
-
onMenuItemClick: (item) => console.log(item),
|
|
134
|
-
}}
|
|
135
|
-
topbarIcons={[
|
|
136
|
-
{ iconType: 'bell', onClickHandler: () => console.log('bell clicked') },
|
|
137
|
-
]}
|
|
138
|
-
dropdownMenuProps={[
|
|
139
|
-
{ key: 'profile', label: 'Profile', onClickHandler: () => {} },
|
|
140
|
-
{ key: 'logout', label: 'Logout', onClickHandler: () => {} },
|
|
141
|
-
]}
|
|
142
|
-
breadcrumbs="Home / Dashboard"
|
|
143
|
-
isLatestLeftNavigationEnabled={true}
|
|
144
|
-
leftNavbarExpanded={false}
|
|
145
|
-
/>
|
|
146
|
-
```
|
package/CapTopBar/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,iBAAiB,CAAC"}
|
package/CapTopBar/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* CapTopBar
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { CapTopBarProps } from './types';
|
|
8
|
-
declare const CapTopBar: React.FC<CapTopBarProps>;
|
|
9
|
-
export default CapTopBar;
|
|
10
|
-
export type { CapTopBarProps } from './types';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/CapTopBar/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAsBrD,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,SAAS,CAAC;AAkB3D,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyavC,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ThemeConfig } from 'antd-v5';
|
|
2
|
-
/** ConfigProvider theme for CapTopBar-scoped Drawer overrides */
|
|
3
|
-
export declare const topBarTheme: ThemeConfig;
|
|
4
|
-
/** ConfigProvider theme for horizontal menu overrides */
|
|
5
|
-
export declare const menuTheme: ThemeConfig;
|
|
6
|
-
//# sourceMappingURL=themeConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeConfig.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/themeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,iEAAiE;AACjE,eAAO,MAAM,WAAW,EAAE,WAQzB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,SAAS,EAAE,WAevB,CAAC"}
|
package/CapTopBar/types.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { CapMenuProps } from '../CapMenu';
|
|
3
|
-
export interface UserData {
|
|
4
|
-
user?: {
|
|
5
|
-
firstName?: string;
|
|
6
|
-
lastName?: string;
|
|
7
|
-
loginName?: string;
|
|
8
|
-
iso_lang?: string;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export interface DropdownMenuProps {
|
|
14
|
-
key: string;
|
|
15
|
-
label: string;
|
|
16
|
-
onClickHandler?: () => void;
|
|
17
|
-
[key: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export interface LogOutProps {
|
|
20
|
-
key?: string;
|
|
21
|
-
label?: string;
|
|
22
|
-
onClickHandler?: () => void;
|
|
23
|
-
}
|
|
24
|
-
export interface TopbarIcon {
|
|
25
|
-
iconType: string;
|
|
26
|
-
onClickHandler?: () => void;
|
|
27
|
-
className?: string;
|
|
28
|
-
toolTip?: string;
|
|
29
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
30
|
-
content?: ReactNode;
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
export interface DrawerListProps {
|
|
34
|
-
fixedProduct?: boolean;
|
|
35
|
-
productsList?: Array<{
|
|
36
|
-
key?: string;
|
|
37
|
-
name?: string;
|
|
38
|
-
value?: string;
|
|
39
|
-
[key: string]: unknown;
|
|
40
|
-
}>;
|
|
41
|
-
selectedProduct?: string;
|
|
42
|
-
handleProductChange?: (product: unknown) => void;
|
|
43
|
-
title?: string;
|
|
44
|
-
[key: string]: unknown;
|
|
45
|
-
}
|
|
46
|
-
export interface SelectProps {
|
|
47
|
-
fixedOrg?: boolean;
|
|
48
|
-
items?: Array<{
|
|
49
|
-
key?: string | number;
|
|
50
|
-
label?: string;
|
|
51
|
-
value?: string | number;
|
|
52
|
-
accessibleOus?: Array<{
|
|
53
|
-
key?: string | number;
|
|
54
|
-
label?: string;
|
|
55
|
-
value?: string | number;
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
}>;
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
}>;
|
|
60
|
-
selectedItem?: string | number;
|
|
61
|
-
selectedOuItem?: string | number;
|
|
62
|
-
handleItemChange?: (value: string | number | undefined, item: unknown, ouValue?: string | number) => void;
|
|
63
|
-
showSearch?: boolean;
|
|
64
|
-
showHeader?: boolean;
|
|
65
|
-
selectPlaceholder?: string;
|
|
66
|
-
showCapillaryIcon?: boolean;
|
|
67
|
-
className?: string;
|
|
68
|
-
title?: string;
|
|
69
|
-
/**
|
|
70
|
-
* @deprecated Search placeholder is not customizable in CapUnifiedSelect.
|
|
71
|
-
* The search input uses a hardcoded placeholder 'Search'.
|
|
72
|
-
* Use `selectPlaceholder` to customize the dropdown placeholder instead.
|
|
73
|
-
*/
|
|
74
|
-
placeholder?: string;
|
|
75
|
-
noResultText?: string;
|
|
76
|
-
[key: string]: unknown;
|
|
77
|
-
}
|
|
78
|
-
export interface MenuProps extends Omit<CapMenuProps, 'items'> {
|
|
79
|
-
items?: Array<{
|
|
80
|
-
key: string;
|
|
81
|
-
label: string;
|
|
82
|
-
[key: string]: unknown;
|
|
83
|
-
}>;
|
|
84
|
-
onMenuItemClick?: (item: {
|
|
85
|
-
key: string;
|
|
86
|
-
label: string;
|
|
87
|
-
[key: string]: unknown;
|
|
88
|
-
}) => void;
|
|
89
|
-
}
|
|
90
|
-
export interface CapTopBarProps {
|
|
91
|
-
drawerListProps?: DrawerListProps;
|
|
92
|
-
selectProps?: SelectProps;
|
|
93
|
-
menuProps?: MenuProps;
|
|
94
|
-
dropdownMenuProps?: DropdownMenuProps[];
|
|
95
|
-
topbarIcons?: TopbarIcon[];
|
|
96
|
-
breadcrumbs?: string;
|
|
97
|
-
showDocumentationBot?: boolean;
|
|
98
|
-
isLatestLeftNavigationEnabled?: boolean;
|
|
99
|
-
leftNavbarExpanded?: boolean;
|
|
100
|
-
headerOverideCss?: React.CSSProperties;
|
|
101
|
-
userData?: UserData;
|
|
102
|
-
request?: unknown;
|
|
103
|
-
getAPICallObject?: unknown;
|
|
104
|
-
children?: ReactNode;
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=types.d.ts.map
|
package/CapTopBar/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapTopBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,Q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ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,4BAA4B,GAAI,gCAAgC;IAAE,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,SA2CjJ,CAAC"}
|