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.
Files changed (50) hide show
  1. package/dist/components/alert/components/AlertComponent.d.ts +4 -0
  2. package/dist/components/alert/index.d.ts +2 -0
  3. package/dist/components/alert/style.d.ts +4 -0
  4. package/dist/components/alert/typings.d.ts +11 -0
  5. package/dist/components/card/typings.d.ts +1 -0
  6. package/dist/components/icon/CrossIcon.d.ts +2 -1
  7. package/dist/components/icon/typings.d.ts +3 -1
  8. package/dist/components/properties/typings.d.ts +2 -1
  9. package/dist/components/wizard/typings.d.ts +1 -0
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.js +279 -114
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.module.js +277 -115
  14. package/dist/index.module.js.map +1 -1
  15. package/package.json +3 -3
  16. package/src/components/alert/components/AlertComponent.tsx +56 -0
  17. package/src/components/alert/index.tsx +9 -0
  18. package/src/components/alert/style.ts +57 -0
  19. package/src/components/alert/typings.ts +12 -0
  20. package/src/components/card/FormCard.tsx +8 -2
  21. package/src/components/card/typings.ts +1 -0
  22. package/src/components/icon/CloseAllIcon.tsx +4 -1
  23. package/src/components/icon/CloseIcon.tsx +4 -1
  24. package/src/components/icon/CrossIcon.tsx +4 -1
  25. package/src/components/icon/DebugIcon.tsx +4 -1
  26. package/src/components/icon/ErrorIcon.tsx +4 -1
  27. package/src/components/icon/FileIcon.tsx +4 -1
  28. package/src/components/icon/FilterIcon.tsx +4 -1
  29. package/src/components/icon/FolderIcon.tsx +4 -1
  30. package/src/components/icon/HelpIcon.tsx +4 -1
  31. package/src/components/icon/HideIcon.tsx +4 -1
  32. package/src/components/icon/InfoIcon.tsx +7 -3
  33. package/src/components/icon/LoadingIcon.tsx +5 -0
  34. package/src/components/icon/MenuIcon.tsx +4 -1
  35. package/src/components/icon/RefreshIcon.tsx +4 -1
  36. package/src/components/icon/RemoveIcon.tsx +4 -1
  37. package/src/components/icon/SearchIcon.tsx +4 -1
  38. package/src/components/icon/ShowIcon.tsx +4 -1
  39. package/src/components/icon/SuccessIcon.tsx +4 -1
  40. package/src/components/icon/TogglerIcon.tsx +5 -1
  41. package/src/components/icon/WarningIcon.tsx +4 -1
  42. package/src/components/icon/typings.ts +3 -1
  43. package/src/components/properties/components/PropertiesComponent.tsx +17 -5
  44. package/src/components/properties/components/Property.tsx +9 -2
  45. package/src/components/properties/style.ts +24 -2
  46. package/src/components/properties/typings.ts +2 -1
  47. package/src/components/table/style.ts +5 -0
  48. package/src/components/wizard/components/Step.tsx +3 -0
  49. package/src/components/wizard/typings.ts +1 -0
  50. package/src/index.ts +5 -0
@@ -0,0 +1,4 @@
1
+ import { FCC } from 'onekijs-framework';
2
+ import { AlertProps } from '../typings';
3
+ declare const AlertComponent: FCC<AlertProps>;
4
+ export default AlertComponent;
@@ -0,0 +1,2 @@
1
+ declare const Alert: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").AlertProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ export default Alert;
@@ -0,0 +1,4 @@
1
+ import { ComponentStyle } from '../../styles/typings';
2
+ import { AlertProps } from './typings';
3
+ declare const alertStyle: ComponentStyle<AlertProps>;
4
+ export default alertStyle;
@@ -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
+ };
@@ -21,4 +21,5 @@ export type CardTitleProps = {
21
21
  };
22
22
  export type FormCardProps = CardProps & FormDecoratorOptions & {
23
23
  name: string;
24
+ help?: ReactNode;
24
25
  };
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- declare const CrossIcon: import("styled-components").StyledComponent<React.FC<React.InputHTMLAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
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>>;
@@ -10,6 +10,7 @@ export type ControlledWizardProps = WizardProps & {
10
10
  export type StepProps = TabProps & {
11
11
  optional?: boolean;
12
12
  showTitle?: boolean;
13
+ help?: ReactNode;
13
14
  onTouch?: () => void;
14
15
  };
15
16
  export type FormStepProps = StepProps & {
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';