onekijs-ui 0.19.21 → 0.19.23
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/components/alert/components/AlertComponent.d.ts +4 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/style.d.ts +4 -0
- package/dist/components/alert/typings.d.ts +11 -0
- package/dist/components/card/typings.d.ts +1 -0
- package/dist/components/icon/CrossIcon.d.ts +2 -1
- package/dist/components/icon/typings.d.ts +3 -1
- package/dist/components/properties/typings.d.ts +2 -1
- package/dist/components/wizard/typings.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +279 -114
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +277 -115
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert/components/AlertComponent.tsx +56 -0
- package/src/components/alert/index.tsx +9 -0
- package/src/components/alert/style.ts +57 -0
- package/src/components/alert/typings.ts +12 -0
- package/src/components/card/FormCard.tsx +8 -2
- package/src/components/card/typings.ts +1 -0
- package/src/components/icon/CloseAllIcon.tsx +4 -1
- package/src/components/icon/CloseIcon.tsx +4 -1
- package/src/components/icon/CrossIcon.tsx +4 -1
- package/src/components/icon/DebugIcon.tsx +4 -1
- package/src/components/icon/ErrorIcon.tsx +4 -1
- package/src/components/icon/FileIcon.tsx +4 -1
- package/src/components/icon/FilterIcon.tsx +4 -1
- package/src/components/icon/FolderIcon.tsx +4 -1
- package/src/components/icon/HelpIcon.tsx +4 -1
- package/src/components/icon/HideIcon.tsx +4 -1
- package/src/components/icon/InfoIcon.tsx +7 -3
- package/src/components/icon/LoadingIcon.tsx +5 -0
- package/src/components/icon/MenuIcon.tsx +4 -1
- package/src/components/icon/RefreshIcon.tsx +4 -1
- package/src/components/icon/RemoveIcon.tsx +4 -1
- package/src/components/icon/SearchIcon.tsx +4 -1
- package/src/components/icon/ShowIcon.tsx +4 -1
- package/src/components/icon/SuccessIcon.tsx +4 -1
- package/src/components/icon/TogglerIcon.tsx +5 -1
- package/src/components/icon/WarningIcon.tsx +4 -1
- package/src/components/icon/typings.ts +3 -1
- package/src/components/properties/components/PropertiesComponent.tsx +17 -5
- package/src/components/properties/components/Property.tsx +9 -2
- package/src/components/properties/style.ts +24 -2
- package/src/components/properties/typings.ts +2 -1
- package/src/components/table/style.ts +5 -0
- package/src/components/wizard/components/Step.tsx +3 -0
- package/src/components/wizard/typings.ts +1 -0
- package/src/index.ts +5 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingPropertyTheme, StylableProps } from '../../styles/typings';
|
|
3
|
+
import { IconProps } from '../icon/typings';
|
|
4
|
+
export type AlertProps = StylableProps & {
|
|
5
|
+
kind?: 'success' | 'info' | 'warning' | 'error' | 'debug';
|
|
6
|
+
icon?: boolean;
|
|
7
|
+
IconComponent?: React.FC<IconProps>;
|
|
8
|
+
marginBottom?: SpacingPropertyTheme;
|
|
9
|
+
marginTop?: SpacingPropertyTheme;
|
|
10
|
+
size?: 'small' | 'medium' | 'large';
|
|
11
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { IconProps } from './typings';
|
|
3
|
+
declare const CrossIcon: import("styled-components").StyledComponent<React.FC<IconProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export default CrossIcon;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
|
-
import { ColorPropertyTheme } from '../../styles/typings';
|
|
3
|
+
import { ColorPropertyTheme, SpacingPropertyTheme, TLength } from '../../styles/typings';
|
|
4
4
|
export type IconProps = React.InputHTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
color?: ColorPropertyTheme | Property.Color;
|
|
6
|
+
marginRight?: SpacingPropertyTheme | Property.MarginRight<TLength>;
|
|
7
|
+
marginLeft?: SpacingPropertyTheme | Property.MarginLeft<TLength>;
|
|
6
8
|
};
|
|
7
9
|
export type TogglerIconProps = IconProps & {
|
|
8
10
|
open?: boolean;
|
|
@@ -16,6 +16,7 @@ export type PropertiesProps = {
|
|
|
16
16
|
export type PropertyProps = {
|
|
17
17
|
value: ReactNode;
|
|
18
18
|
name: string;
|
|
19
|
+
help?: ReactNode;
|
|
19
20
|
ErrorBoundaryComponent?: ComponentType<PropsWithChildren<PropertyProps>>;
|
|
20
21
|
};
|
|
21
22
|
export type PropertiesContext = {
|
|
@@ -25,4 +26,4 @@ export type PropertiesContext = {
|
|
|
25
26
|
lg?: GridSize;
|
|
26
27
|
xl?: GridSize;
|
|
27
28
|
};
|
|
28
|
-
export type PropertiesList = AnonymousObject<ReactNode
|
|
29
|
+
export type PropertiesList = AnonymousObject<ReactNode | Partial<PropertyProps>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -158,6 +158,10 @@ export { default as useTableController } from './components/table/hooks/useTable
|
|
|
158
158
|
export { default as useTableService } from './components/table/hooks/useTableService';
|
|
159
159
|
export { default as useTextColumn } from './components/table/hooks/useTextColumn';
|
|
160
160
|
export { default as useTextareaColumn } from './components/table/hooks/useTextareaColumn';
|
|
161
|
+
export { default as AlertComponent } from './components/alert/components/AlertComponent';
|
|
162
|
+
export { default as Alert } from './components/alert';
|
|
163
|
+
export { default as alertStyle } from './components/alert/style';
|
|
164
|
+
export { AlertProps } from './components/alert/typings';
|
|
161
165
|
export { default as FormCardDisplayer } from './components/card/FormCardDisplayer';
|
|
162
166
|
export { filterListStyle, tableStyle } from './components/table/style';
|
|
163
167
|
export { ArrayTableProps, Cell, CheckboxColumn, CheckboxColumnOptions, ControllerTableProps, EnumColumnOptions, FormCellDisplayerProps, FormTableContext, FormTableItemDisplayerProps, FormTableProps, TableValueDisplayerProps, InputColumn, InputColumnOptions, LinkColumnOptions, SelectCell, SelectColumn, SelectColumnOptions, TableBodyCellProps, TableBodyProps, TableBodyRowProps, TableCellDisplayerProps, TableColumn, TableColumnComputedWidth, TableColumnOptions, TableColumnSpec, TableColumnWidth, TableColumnsState, TableConfig, TableController, TableExpandedProps, TableFilterOperator, TableFilterOperatorProps, TableFooterCellProps, TableFooterProps, TableHeaderCellProps, TableHeaderProps, TableItem, TableItemAdaptee, TableItemAdapter, TableItems, TableNotFoundProps, TableProps, TableRowHandler, TableSortProps, TableState, TextareaColumn, TextareaColumnOptions, UseTableController, UseTableOptions, TableCellSerializer, TableSerializerFormat } from './components/table/typings';
|