pds-dev-kit-web 0.3.39 → 0.3.43

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 (48) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/dist/index.js +6 -1
  3. package/dist/src/common/services/i18n/resources/en.json +34 -7
  4. package/dist/src/common/services/i18n/resources/es.json +34 -7
  5. package/dist/src/common/services/i18n/resources/index.d.ts +108 -0
  6. package/dist/src/common/services/i18n/resources/jp.json +34 -7
  7. package/dist/src/common/services/i18n/resources/ko.json +31 -4
  8. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
  9. package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
  10. package/dist/src/common/styles/colorSet/UIColor.json +7 -1
  11. package/dist/src/common/styles/colorSet/index.d.ts +183 -173
  12. package/dist/src/common/styles/colorSet/index.js +4 -4
  13. package/dist/src/common/styles/colorSet/ui-type.d.ts +6 -0
  14. package/dist/src/desktop/components/Hero/Hero.d.ts +8 -0
  15. package/dist/src/desktop/components/Hero/Hero.js +18 -0
  16. package/dist/src/desktop/components/Hero/index.d.ts +1 -0
  17. package/dist/src/desktop/components/Hero/index.js +8 -0
  18. package/dist/src/desktop/components/StatusBlock/StatusBlock.d.ts +12 -0
  19. package/dist/src/desktop/components/StatusBlock/StatusBlock.js +88 -0
  20. package/dist/src/desktop/components/StatusBlock/index.d.ts +1 -0
  21. package/dist/src/desktop/components/StatusBlock/index.js +8 -0
  22. package/dist/src/desktop/components/index.d.ts +3 -1
  23. package/dist/src/desktop/components/index.js +5 -1
  24. package/dist/src/desktop/index.d.ts +2 -2
  25. package/dist/src/desktop/index.js +3 -1
  26. package/dist/src/hybrid/components/Divider/Divider.d.ts +8 -0
  27. package/dist/src/hybrid/components/Divider/Divider.js +58 -0
  28. package/dist/src/hybrid/components/Divider/index.d.ts +1 -0
  29. package/dist/src/hybrid/components/Divider/index.js +8 -0
  30. package/dist/src/hybrid/components/IconButton/IconButton.d.ts +26 -0
  31. package/dist/src/hybrid/components/IconButton/IconButton.js +154 -0
  32. package/dist/src/hybrid/components/IconButton/index.d.ts +1 -0
  33. package/dist/src/hybrid/components/IconButton/index.js +8 -0
  34. package/dist/src/hybrid/components/ImageView/ImageView.d.ts +2 -1
  35. package/dist/src/hybrid/components/ImageView/ImageView.js +4 -4
  36. package/dist/src/hybrid/components/index.d.ts +3 -1
  37. package/dist/src/hybrid/components/index.js +5 -1
  38. package/dist/src/hybrid/index.d.ts +2 -2
  39. package/dist/src/hybrid/index.js +3 -1
  40. package/dist/src/mobile/components/StatusBlock/StatusBlock.d.ts +12 -0
  41. package/dist/src/mobile/components/StatusBlock/StatusBlock.js +88 -0
  42. package/dist/src/mobile/components/StatusBlock/index.d.ts +1 -0
  43. package/dist/src/mobile/components/StatusBlock/index.js +8 -0
  44. package/dist/src/mobile/components/index.d.ts +2 -1
  45. package/dist/src/mobile/components/index.js +3 -1
  46. package/dist/src/mobile/index.d.ts +2 -2
  47. package/dist/src/mobile/index.js +2 -1
  48. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export { default as Divider } from './Divider';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Divider = void 0;
7
+ var Divider_1 = require("./Divider");
8
+ Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return __importDefault(Divider_1).default; } });
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import fillIcons from '../../../common/assets/icons/fill';
3
+ import lineIcons from '../../../common/assets/icons/line';
4
+ import { uiColors } from '../../../common/styles/ui-colors';
5
+ export declare type FillIconNameKeys = keyof typeof fillIcons;
6
+ export declare type LineIconNameKeys = keyof typeof lineIcons;
7
+ export declare type UiColors = keyof typeof uiColors;
8
+ export declare type IconButtonProps = {
9
+ fillType?: 'fill' | 'line';
10
+ shapeType?: 'circular' | 'rectangle';
11
+ baseSize?: 'large' | 'medium' | 'small' | 'xsmall';
12
+ baseColorKey?: UiColors;
13
+ borderColorKey?: UiColors;
14
+ iconSize?: 12 | 16 | 20 | 24;
15
+ iconFillType?: 'fill' | 'line';
16
+ iconName: FillIconNameKeys | LineIconNameKeys;
17
+ iconColorKey?: UiColors;
18
+ shadow?: 'hidden' | 'visible';
19
+ colorTheme?: 'none' | 'line1' | 'line2';
20
+ type?: 'submit' | 'reset' | 'button';
21
+ state?: 'normal' | 'disabled';
22
+ onClick?: (...args: any) => any;
23
+ onMouseDown?: (...args: any) => any;
24
+ };
25
+ declare function IconButton({ fillType, shapeType, baseSize, baseColorKey, borderColorKey, iconSize, iconFillType, iconName, iconColorKey, shadow, colorTheme, type, state, onClick, onMouseDown }: IconButtonProps): JSX.Element;
26
+ export default IconButton;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importDefault(require("react"));
30
+ var styled_components_1 = __importStar(require("styled-components"));
31
+ var ui_colors_1 = require("../../../common/styles/ui-colors");
32
+ var Icon_1 = __importDefault(require("../Icon/Icon"));
33
+ function IconButton(_a) {
34
+ var _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.shapeType, shapeType = _c === void 0 ? 'rectangle' : _c, _d = _a.baseSize, baseSize = _d === void 0 ? 'small' : _d, baseColorKey = _a.baseColorKey, borderColorKey = _a.borderColorKey, _e = _a.iconSize, iconSize = _e === void 0 ? 24 : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, iconColorKey = _a.iconColorKey, _g = _a.shadow, shadow = _g === void 0 ? 'hidden' : _g, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
35
+ var iconStateColorObj = {
36
+ fill: 'ui_cpnt_button_icon_on_primary',
37
+ line: 'ui_cpnt_button_icon_enabled'
38
+ };
39
+ var iconThemeColorLineObj = {
40
+ line1: 'ui_cpnt_button_icon_error',
41
+ line2: 'ui_cpnt_button_icon_primary'
42
+ };
43
+ var IconColorSelect = function () {
44
+ if (state === 'disabled') {
45
+ return 'ui_cpnt_button_icon_disabled';
46
+ }
47
+ if (colorTheme !== 'none' && fillType === 'line') {
48
+ return iconThemeColorLineObj[colorTheme];
49
+ }
50
+ if (iconColorKey) {
51
+ return iconColorKey;
52
+ }
53
+ return iconStateColorObj[fillType];
54
+ };
55
+ return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: onClick, onMouseDown: onMouseDown },
56
+ react_1.default.createElement(Icon_1.default, { iconName: iconName, size: iconSize, colorKey: IconColorSelect(), fillType: iconFillType })));
57
+ }
58
+ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
59
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
60
+ return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
61
+ ? ''
62
+ : theme.ui_cpnt_button_fill_base_disabled;
63
+ });
64
+ var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
65
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
66
+ return baseColorKey ? ui_colors_1.uiColors[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
67
+ }, function (_a) {
68
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
69
+ return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
70
+ ? ''
71
+ : "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_hover + ",\n " + theme.ui_cpnt_button_fill_on_base_hover + "\n );";
72
+ }, function (_a) {
73
+ var theme = _a.theme, baseColorKey = _a.baseColorKey;
74
+ return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
75
+ ? ''
76
+ : "background-image: linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n );";
77
+ }, function (_a) {
78
+ var state = _a.state;
79
+ return state === 'disabled' && fillDisabled;
80
+ });
81
+ var lineDisabled = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-color: ", ";\n background-color: ", ";\n"], ["\n border-color: ", ";\n background-color: ", ";\n"])), function (_a) {
82
+ var theme = _a.theme;
83
+ return theme.ui_cpnt_button_line_border_disabled;
84
+ }, function (_a) {
85
+ var theme = _a.theme;
86
+ return theme.ui_cpnt_button_line_base_default;
87
+ });
88
+ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
89
+ var theme = _a.theme;
90
+ return theme.ui_cpnt_button_line_base_default;
91
+ }, function (_a) {
92
+ var theme = _a.theme, borderColorKey = _a.borderColorKey;
93
+ return borderColorKey ? ui_colors_1.uiColors[borderColorKey] : theme.ui_cpnt_button_line_border_enabled;
94
+ }, function (_a) {
95
+ var colorTheme = _a.colorTheme;
96
+ switch (colorTheme) {
97
+ case 'line1':
98
+ return line1ColorTheme;
99
+ case 'line2':
100
+ return line2ColorTheme;
101
+ default:
102
+ return '';
103
+ }
104
+ }, function (_a) {
105
+ var theme = _a.theme;
106
+ return "background-color: " + theme.ui_cpnt_button_line_base_hover + "\n ;";
107
+ }, function (_a) {
108
+ var theme = _a.theme;
109
+ return "background-color: " + theme.ui_cpnt_button_line_base_pressed + "\n ;";
110
+ }, function (_a) {
111
+ var state = _a.state;
112
+ return state === 'disabled' && lineDisabled;
113
+ });
114
+ var large = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 48px;\n width: 48px;\n"], ["\n height: 48px;\n width: 48px;\n"])));
115
+ var medium = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
116
+ var small = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 32px;\n width: 32px;\n"], ["\n height: 32px;\n width: 32px;\n"])));
117
+ var xsmall = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
118
+ var line1ColorTheme = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
119
+ var theme = _a.theme;
120
+ return theme.ui_cpnt_button_line_border_error;
121
+ });
122
+ var line2ColorTheme = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border-color: ", ";\n"], ["\n border-color: ", ";\n"])), function (_a) {
123
+ var theme = _a.theme;
124
+ return theme.ui_cpnt_button_line_border_primary;
125
+ });
126
+ var iconButtonStyle = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: flex;\n justify-content: center;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
127
+ var state = _a.state;
128
+ return (state === 'normal' ? 'pointer' : 'default');
129
+ }, function (_a) {
130
+ var shapeType = _a.shapeType;
131
+ return shapeType && { circular: 'border-radius: 50%', rectangle: '' }[shapeType];
132
+ }, function (_a) {
133
+ var theme = _a.theme, shadow = _a.shadow;
134
+ return shadow === 'visible' && "box-shadow: " + theme.boxShadow.elevation2;
135
+ }, function (_a) {
136
+ var fillType = _a.fillType;
137
+ return fillType &&
138
+ {
139
+ fill: fill,
140
+ line: line
141
+ }[fillType];
142
+ }, function (_a) {
143
+ var baseSize = _a.baseSize;
144
+ return baseSize &&
145
+ {
146
+ large: large,
147
+ medium: medium,
148
+ small: small,
149
+ xsmall: xsmall
150
+ }[baseSize];
151
+ });
152
+ var S_IconButton = styled_components_1.default.button(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
153
+ exports.default = IconButton;
154
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
@@ -0,0 +1 @@
1
+ export { default as IconButton } from './IconButton';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IconButton = void 0;
7
+ var IconButton_1 = require("./IconButton");
8
+ Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
@@ -5,9 +5,10 @@ export declare type ImageViewProps = {
5
5
  radius?: 8 | 16 | 24;
6
6
  width?: number | 'responsive';
7
7
  height?: number;
8
+ noImageHeight?: number;
8
9
  ratio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '1_1' | 'auto';
9
10
  scaleType?: 'fill' | 'contain' | 'cover' | 'none';
10
11
  borderMode?: 'use' | 'none';
11
12
  };
12
- declare const ImageView: ({ src, shapeType, radius, width, height, ratio, scaleType, borderMode }: ImageViewProps) => JSX.Element;
13
+ declare const ImageView: ({ src, shapeType, radius, width, height, noImageHeight, ratio, scaleType, borderMode }: ImageViewProps) => JSX.Element;
13
14
  export default ImageView;
@@ -10,9 +10,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  var react_1 = __importDefault(require("react"));
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var ImageView = function (_a) {
13
- var src = _a.src, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, _d = _a.width, width = _d === void 0 ? 'responsive' : _d, height = _a.height, _e = _a.ratio, ratio = _e === void 0 ? 'auto' : _e, _f = _a.scaleType, scaleType = _f === void 0 ? 'none' : _f, _g = _a.borderMode, borderMode = _g === void 0 ? 'none' : _g;
13
+ var src = _a.src, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, _d = _a.width, width = _d === void 0 ? 'responsive' : _d, height = _a.height, noImageHeight = _a.noImageHeight, _e = _a.ratio, ratio = _e === void 0 ? 'auto' : _e, _f = _a.scaleType, scaleType = _f === void 0 ? 'none' : _f, _g = _a.borderMode, borderMode = _g === void 0 ? 'none' : _g;
14
14
  return (react_1.default.createElement(S_ImageViewWrapper, { "$width": width },
15
- react_1.default.createElement(S_ImageView, { "$src": src, shapeType: shapeType, radius: radius, "$width": width, "$height": height, ratio: ratio, scaleType: scaleType, borderMode: borderMode }, ratio === 'auto' && react_1.default.createElement(S_ImageViewImg, { src: src, scaleType: scaleType }))));
15
+ react_1.default.createElement(S_ImageView, { "$src": src, shapeType: shapeType, radius: radius, "$width": width, "$height": height, noImageHeight: noImageHeight, ratio: ratio, scaleType: scaleType, borderMode: borderMode }, ratio === 'auto' && react_1.default.createElement(S_ImageViewImg, { src: src, scaleType: scaleType }))));
16
16
  };
17
17
  var S_ImageViewWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: ", ";\n width: ", ";\n"], ["\n min-width: ", ";\n width: ", ";\n"])), function (_a) {
18
18
  var $width = _a.$width;
@@ -31,8 +31,8 @@ var S_ImageView = styled_components_1.default.div(templateObject_2 || (templateO
31
31
  var $height = _a.$height, ratio = _a.ratio;
32
32
  return ratio === 'auto' && $height && "height: " + $height + "px";
33
33
  }, function (_a) {
34
- var $height = _a.$height, ratio = _a.ratio;
35
- return ratio === 'auto' && $height && "min-height: " + $height + "px";
34
+ var $height = _a.$height, noImageHeight = _a.noImageHeight, ratio = _a.ratio;
35
+ return ratio === 'auto' && ($height || noImageHeight) && "min-height: " + ($height || noImageHeight) + "px";
36
36
  }, function (_a) {
37
37
  var borderMode = _a.borderMode, theme = _a.theme;
38
38
  return borderMode === 'use' && "border: 1px solid " + theme.ui_profile_image_border;
@@ -1,4 +1,6 @@
1
+ import { Divider } from './Divider';
1
2
  import { Icon } from './Icon';
3
+ import { IconButton } from './IconButton';
2
4
  import { ImageView } from './ImageView';
3
5
  import { Spacing } from './Spacing';
4
- export { Icon, ImageView, Spacing };
6
+ export { Divider, Icon, IconButton, ImageView, Spacing };
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Spacing = exports.ImageView = exports.Icon = void 0;
3
+ exports.Spacing = exports.ImageView = exports.IconButton = exports.Icon = exports.Divider = void 0;
4
+ var Divider_1 = require("./Divider");
5
+ Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.Divider; } });
4
6
  var Icon_1 = require("./Icon");
5
7
  Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
8
+ var IconButton_1 = require("./IconButton");
9
+ Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return IconButton_1.IconButton; } });
6
10
  var ImageView_1 = require("./ImageView");
7
11
  Object.defineProperty(exports, "ImageView", { enumerable: true, get: function () { return ImageView_1.ImageView; } });
8
12
  var Spacing_1 = require("./Spacing");
@@ -1,2 +1,2 @@
1
- import { Icon, ImageView, Spacing } from './components';
2
- export { Icon, ImageView, Spacing };
1
+ import { Divider, Icon, IconButton, ImageView, Spacing } from './components';
2
+ export { Divider, Icon, IconButton, ImageView, Spacing };
@@ -2,9 +2,11 @@
2
2
  /* eslint-disable import/order */
3
3
  /* eslint-disable import/first */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Spacing = exports.ImageView = exports.Icon = void 0;
5
+ exports.Spacing = exports.ImageView = exports.IconButton = exports.Icon = exports.Divider = void 0;
6
6
  // component
7
7
  var components_1 = require("./components");
8
+ Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return components_1.Divider; } });
8
9
  Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return components_1.Icon; } });
10
+ Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return components_1.IconButton; } });
9
11
  Object.defineProperty(exports, "ImageView", { enumerable: true, get: function () { return components_1.ImageView; } });
10
12
  Object.defineProperty(exports, "Spacing", { enumerable: true, get: function () { return components_1.Spacing; } });
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare type StatusBlockProps = {
3
+ text?: string;
4
+ size?: 'large' | 'medium' | 'small';
5
+ state?: 'basic' | 'standby' | 'proceeding' | 'cancel' | 'end' | 'error';
6
+ width?: number | 'responsive';
7
+ };
8
+ export declare type StyleProps = {
9
+ $width?: number | 'responsive';
10
+ };
11
+ declare function StatusBlock({ text, size, state, width }: StatusBlockProps): JSX.Element;
12
+ export default StatusBlock;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var react_1 = __importDefault(require("react"));
30
+ var styled_components_1 = __importStar(require("styled-components"));
31
+ var TextLabel_1 = require("../TextLabel");
32
+ function StatusBlock(_a) {
33
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.state, state = _c === void 0 ? 'basic' : _c, _d = _a.width, width = _d === void 0 ? 'responsive' : _d;
34
+ var textLabelStyleThemeObj = {
35
+ large: 'body1Bold',
36
+ medium: 'body1Bold',
37
+ small: 'body2Bold'
38
+ };
39
+ return (react_1.default.createElement(S_StatusBlock, { size: size, state: state, "$width": width },
40
+ react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textLabelStyleThemeObj[size], textAlign: "center", singleLineMode: "use", colorTheme: "sysTextWhite" })));
41
+ }
42
+ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 8px;\n height: 48px;\n"], ["\n border-radius: 8px;\n height: 48px;\n"])));
43
+ var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 8px;\n height: 40px;\n"], ["\n border-radius: 8px;\n height: 40px;\n"])));
44
+ var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 8px;\n height: 32px;\n"], ["\n border-radius: 8px;\n height: 32px;\n"])));
45
+ var basic = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
46
+ var theme = _a.theme;
47
+ return theme.ui_cpnt_statusblock_basic;
48
+ });
49
+ var standby = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
50
+ var theme = _a.theme;
51
+ return theme.ui_cpnt_statusblock_standby;
52
+ });
53
+ var proceeding = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
54
+ var theme = _a.theme;
55
+ return theme.ui_cpnt_statusblock_proceeding;
56
+ });
57
+ var cancel = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
58
+ var theme = _a.theme;
59
+ return theme.ui_cpnt_statusblock_cancel;
60
+ });
61
+ var end = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
62
+ var theme = _a.theme;
63
+ return theme.ui_cpnt_statusblock_end;
64
+ });
65
+ var error = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
66
+ var theme = _a.theme;
67
+ return theme.ui_cpnt_statusblock_error;
68
+ });
69
+ var S_StatusBlock = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n width: ", ";\n\n ", "\n ", ";\n\n & > div {\n width: 100%;\n }\n"], ["\n align-items: center;\n display: flex;\n width: ", ";\n\n ", "\n ", ";\n\n & > div {\n width: 100%;\n }\n"])), function (_a) {
70
+ var $width = _a.$width;
71
+ return ($width === 'responsive' ? '100%' : $width + "px");
72
+ }, function (_a) {
73
+ var size = _a.size;
74
+ return size && { large: large, medium: medium, small: small }[size];
75
+ }, function (_a) {
76
+ var state = _a.state;
77
+ return state &&
78
+ {
79
+ basic: basic,
80
+ standby: standby,
81
+ proceeding: proceeding,
82
+ cancel: cancel,
83
+ end: end,
84
+ error: error
85
+ }[state];
86
+ });
87
+ exports.default = StatusBlock;
88
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
@@ -0,0 +1 @@
1
+ export { default as StatusBlock } from './StatusBlock';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StatusBlock = void 0;
7
+ var StatusBlock_1 = require("./StatusBlock");
8
+ Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return __importDefault(StatusBlock_1).default; } });
@@ -1,2 +1,3 @@
1
+ import { StatusBlock } from './StatusBlock';
1
2
  import { TextLabel } from './TextLabel';
2
- export { TextLabel };
3
+ export { StatusBlock, TextLabel };
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextLabel = void 0;
3
+ exports.TextLabel = exports.StatusBlock = void 0;
4
+ var StatusBlock_1 = require("./StatusBlock");
5
+ Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return StatusBlock_1.StatusBlock; } });
4
6
  var TextLabel_1 = require("./TextLabel");
5
7
  Object.defineProperty(exports, "TextLabel", { enumerable: true, get: function () { return TextLabel_1.TextLabel; } });
@@ -13,5 +13,5 @@ import { LayoutMS } from './layout/LayoutMS';
13
13
  import { NavigationContainer as MSNavigationContainer } from './layout/LayoutMS/Containers';
14
14
  import { ContainersBox as MSContainersBox } from './layout/LayoutMS/ContainersBox';
15
15
  export { LayoutMS, MSNavigationContainer, MSContainersBox };
16
- import { TextLabel as M_TextLabel } from './components';
17
- export { M_TextLabel };
16
+ import { StatusBlock as M_StatusBlock, TextLabel as M_TextLabel } from './components';
17
+ export { M_StatusBlock, M_TextLabel };
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable import/order */
3
3
  /* eslint-disable import/first */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.M_TextLabel = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
5
+ exports.M_TextLabel = exports.M_StatusBlock = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
6
6
  // layoutMF
7
7
  var LayoutMF_1 = require("./layout/LayoutMF");
8
8
  Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return LayoutMF_1.LayoutMF; } });
@@ -32,4 +32,5 @@ var ContainersBox_4 = require("./layout/LayoutMS/ContainersBox");
32
32
  Object.defineProperty(exports, "MSContainersBox", { enumerable: true, get: function () { return ContainersBox_4.ContainersBox; } });
33
33
  // components
34
34
  var components_1 = require("./components");
35
+ Object.defineProperty(exports, "M_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
35
36
  Object.defineProperty(exports, "M_TextLabel", { enumerable: true, get: function () { return components_1.TextLabel; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "0.3.39",
3
+ "version": "0.3.43",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",