onekijs-ui 0.19.21 → 0.19.22
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/wizard/typings.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +237 -112
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +235 -113
- 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/wizard/components/Step.tsx +3 -0
- package/src/components/wizard/typings.ts +1 -0
- package/src/index.ts +5 -0
|
@@ -4,6 +4,7 @@ import { alignItems } from '../../styles/alignment';
|
|
|
4
4
|
import { display } from '../../styles/display';
|
|
5
5
|
import { color } from '../../styles/typography';
|
|
6
6
|
import { IconProps } from './typings';
|
|
7
|
+
import { marginLeft, marginRight } from '../../styles/spacing';
|
|
7
8
|
|
|
8
9
|
const WarningIconComponent: FC<IconProps> = (props) => {
|
|
9
10
|
return (
|
|
@@ -20,12 +21,14 @@ const WarningIconComponent: FC<IconProps> = (props) => {
|
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export default styled(WarningIconComponent)`
|
|
23
|
-
${({ width = '16px', height = '16px', color: cssColor = 'warning' }) => css`
|
|
24
|
+
${({ width = '16px', height = '16px', color: cssColor = 'warning', marginLeft: ml = '0', marginRight: mr = '0' }) => css`
|
|
24
25
|
width: ${width};
|
|
25
26
|
height: ${height};
|
|
26
27
|
${display('flex')};
|
|
27
28
|
${alignItems('center')};
|
|
28
29
|
${color(cssColor)}
|
|
30
|
+
${marginLeft(ml)}
|
|
31
|
+
${marginRight(mr)}
|
|
29
32
|
.o-icon-warning-svg {
|
|
30
33
|
display: inline-block;
|
|
31
34
|
fill: currentColor;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
-
import { ColorPropertyTheme } from '../../styles/typings';
|
|
2
|
+
import { ColorPropertyTheme, SpacingPropertyTheme, TLength } from '../../styles/typings';
|
|
3
3
|
|
|
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
|
|
|
8
10
|
export type TogglerIconProps = IconProps & {
|
|
@@ -5,6 +5,7 @@ import { addClassname } from '../../../utils/style';
|
|
|
5
5
|
import useStep from '../hooks/useStep';
|
|
6
6
|
import { useWizardState } from '../hooks/useWizardState';
|
|
7
7
|
import { StepProps } from '../typings';
|
|
8
|
+
import Alert from '../../alert';
|
|
8
9
|
|
|
9
10
|
const Step: FCC<StepProps> = ({
|
|
10
11
|
title,
|
|
@@ -19,6 +20,7 @@ const Step: FCC<StepProps> = ({
|
|
|
19
20
|
showTitle = true,
|
|
20
21
|
className,
|
|
21
22
|
onTouch,
|
|
23
|
+
help,
|
|
22
24
|
}) => {
|
|
23
25
|
const { animate, forwardOnly } = useWizardState();
|
|
24
26
|
|
|
@@ -63,6 +65,7 @@ const Step: FCC<StepProps> = ({
|
|
|
63
65
|
<CSSTransition in={true} timeout={animate} appear={true} onEnter={onEnter} onEntering={onEntering}>
|
|
64
66
|
<div className={addClassname('o-step-content', className)}>
|
|
65
67
|
{showTitle && <div className="o-step-content-title">{title}</div>}
|
|
68
|
+
{help && <Alert kind="info" marginBottom='lg'>{help}</Alert>}
|
|
66
69
|
{children}
|
|
67
70
|
</div>
|
|
68
71
|
</CSSTransition>
|
package/src/index.ts
CHANGED
|
@@ -252,6 +252,11 @@ export { default as useTableService } from './components/table/hooks/useTableSer
|
|
|
252
252
|
export { default as useTextColumn } from './components/table/hooks/useTextColumn';
|
|
253
253
|
export { default as useTextareaColumn } from './components/table/hooks/useTextareaColumn';
|
|
254
254
|
|
|
255
|
+
export { default as AlertComponent } from './components/alert/components/AlertComponent';
|
|
256
|
+
export { default as Alert } from './components/alert';
|
|
257
|
+
export { default as alertStyle } from './components/alert/style';
|
|
258
|
+
export { AlertProps } from './components/alert/typings';
|
|
259
|
+
|
|
255
260
|
export { default as FormCardDisplayer } from './components/card/FormCardDisplayer';
|
|
256
261
|
export { filterListStyle, tableStyle } from './components/table/style';
|
|
257
262
|
export {
|