pds-dev-kit-web 0.4.2 → 0.5.0
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/.vscode/settings.json +49 -0
- package/README.md +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +46 -3
- package/dist/src/common/assets/icons/line/PostWelcome.d.ts +4 -0
- package/dist/src/common/assets/icons/line/PostWelcome.js +37 -0
- package/dist/src/common/assets/icons/line/TenSecBack.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TenSecBack.js +34 -0
- package/dist/src/common/assets/icons/line/TenSecBackArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TenSecBackArrow.js +34 -0
- package/dist/src/common/assets/icons/line/TenSecForward.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TenSecForward.js +34 -0
- package/dist/src/common/assets/icons/line/TenSecForwardArrow.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TenSecForwardArrow.js +34 -0
- package/dist/src/common/assets/icons/line/index.d.ts +5 -0
- package/dist/src/common/assets/icons/line/index.js +10 -0
- package/dist/src/common/components/Form/Form.d.ts +16 -0
- package/dist/src/common/components/Form/Form.js +40 -0
- package/dist/src/common/components/Form/index.d.ts +1 -0
- package/dist/src/common/components/Form/index.js +8 -0
- package/dist/src/common/components/index.d.ts +2 -0
- package/dist/src/common/components/index.js +5 -0
- package/dist/src/common/decorators/withFormProvider.d.ts +4 -0
- package/dist/src/common/decorators/withFormProvider.js +28 -0
- package/dist/src/common/index.d.ts +7 -3
- package/dist/src/common/index.js +4 -3
- package/dist/src/common/services/i18n/resources/en.json +2794 -2569
- package/dist/src/common/services/i18n/resources/es.json +280 -55
- package/dist/src/common/services/i18n/resources/index.d.ts +936 -36
- package/dist/src/common/services/i18n/resources/jp.json +280 -55
- package/dist/src/common/services/i18n/resources/ko.json +277 -52
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +10 -7
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +4 -1
- package/dist/src/common/styles/colorSet/UIColor.json +10 -3
- package/dist/src/common/styles/colorSet/index.d.ts +71 -58
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +8 -1
- package/dist/src/common/styles/index.d.ts +2 -0
- package/dist/src/common/styles/theme.d.ts +2 -0
- package/dist/src/common/styles/theme.js +4 -2
- package/dist/src/common/styles/ui-colors.d.ts +0 -2
- package/dist/src/common/styles/ui-colors.js +4 -22
- package/dist/src/common/types/form.d.ts +3 -0
- package/dist/src/common/types/form.js +2 -0
- package/dist/src/common/types/icon.d.ts +4 -0
- package/dist/src/common/types/icon.js +2 -0
- package/dist/src/common/types/styled-components.d.ts +2 -0
- package/dist/src/common/types/uiColors.d.ts +2 -0
- package/dist/src/common/types/uiColors.js +2 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +45 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +265 -0
- package/dist/src/desktop/common/components/TextFieldBase/index.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/index.js +8 -0
- package/dist/src/desktop/common/components/index.d.ts +2 -0
- package/dist/src/desktop/common/components/index.js +5 -0
- package/dist/src/desktop/components/Card/Card.d.ts +11 -0
- package/dist/src/desktop/components/Card/Card.js +50 -0
- package/dist/src/desktop/components/Card/index.d.ts +1 -0
- package/dist/src/desktop/components/Card/index.js +8 -0
- package/dist/src/desktop/components/CardList/CardList.d.ts +10 -0
- package/dist/src/desktop/components/CardList/CardList.js +30 -0
- package/dist/src/desktop/components/CardList/index.d.ts +1 -0
- package/dist/src/desktop/components/CardList/index.js +8 -0
- package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/src/desktop/components/Checkbox/Checkbox.js +65 -0
- package/dist/src/desktop/components/Checkbox/index.d.ts +1 -0
- package/dist/src/desktop/components/Checkbox/index.js +8 -0
- package/dist/src/desktop/components/Chip/Chip.d.ts +19 -0
- package/dist/src/desktop/components/Chip/Chip.js +131 -0
- package/dist/src/desktop/components/Chip/index.d.ts +1 -0
- package/dist/src/desktop/components/Chip/index.js +8 -0
- package/dist/src/desktop/components/ContextMenu/ContextMenu.d.ts +7 -0
- package/dist/src/desktop/components/ContextMenu/ContextMenu.js +33 -0
- package/dist/src/desktop/components/ContextMenu/index.d.ts +1 -0
- package/dist/src/desktop/components/ContextMenu/index.js +8 -0
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.d.ts +10 -0
- package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +65 -0
- package/dist/src/desktop/components/ContextMenuItem/index.d.ts +1 -0
- package/dist/src/desktop/components/ContextMenuItem/index.js +8 -0
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.d.ts +39 -0
- package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +81 -0
- package/dist/src/desktop/components/DesktopHeaderBar/index.d.ts +1 -0
- package/dist/src/desktop/components/DesktopHeaderBar/index.js +8 -0
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.d.ts +15 -0
- package/dist/src/desktop/components/DesktopTabBar/DesktopTabBar.js +125 -0
- package/dist/src/desktop/components/DesktopTabBar/index.d.ts +1 -0
- package/dist/src/desktop/components/DesktopTabBar/index.js +8 -0
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +32 -0
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +238 -0
- package/dist/src/desktop/components/EditApplyTextField/index.d.ts +1 -0
- package/dist/src/desktop/components/EditApplyTextField/index.js +8 -0
- package/dist/src/desktop/components/FilterBar/FilterBar.d.ts +19 -0
- package/dist/src/desktop/components/FilterBar/FilterBar.js +53 -0
- package/dist/src/desktop/components/FilterBar/index.d.ts +1 -0
- package/dist/src/desktop/components/FilterBar/index.js +8 -0
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.d.ts +19 -0
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +96 -0
- package/dist/src/desktop/components/FloatingActionButton/index.d.ts +1 -0
- package/dist/src/desktop/components/FloatingActionButton/index.js +8 -0
- package/dist/src/desktop/components/Hero/Hero.js +0 -5
- package/dist/src/desktop/components/IconButton/IconButton.js +3 -4
- package/dist/src/desktop/components/ImageSlide/ImageSlide.d.ts +13 -0
- package/dist/src/desktop/components/ImageSlide/ImageSlide.js +97 -0
- package/dist/src/desktop/components/ImageSlide/index.d.ts +1 -0
- package/dist/src/desktop/components/ImageSlide/index.js +8 -0
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +21 -0
- package/dist/src/desktop/components/MainButton/MainButton.js +190 -0
- package/dist/src/desktop/components/MainButton/index.d.ts +1 -0
- package/dist/src/desktop/components/MainButton/index.js +8 -0
- package/dist/src/desktop/components/Radio/Radio.d.ts +12 -0
- package/dist/src/desktop/components/Radio/Radio.js +45 -0
- package/dist/src/desktop/components/Radio/index.d.ts +1 -0
- package/dist/src/desktop/components/Radio/index.js +8 -0
- package/dist/src/desktop/components/ReactionButton/ReactionButton.d.ts +11 -0
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +108 -0
- package/dist/src/desktop/components/ReactionButton/index.d.ts +1 -0
- package/dist/src/desktop/components/ReactionButton/index.js +8 -0
- package/dist/src/desktop/components/Select/Select.d.ts +16 -0
- package/dist/src/desktop/components/Select/Select.js +136 -0
- package/dist/src/desktop/components/Select/index.d.ts +1 -0
- package/dist/src/desktop/components/Select/index.js +8 -0
- package/dist/src/desktop/components/StatusBlock/StatusBlock.js +1 -3
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +11 -0
- package/dist/src/desktop/components/TextButton/TextButton.js +103 -0
- package/dist/src/desktop/components/TextButton/index.d.ts +1 -0
- package/dist/src/desktop/components/TextButton/index.js +8 -0
- package/dist/src/desktop/components/TextField/TextField.d.ts +42 -0
- package/dist/src/desktop/components/TextField/TextField.js +252 -0
- package/dist/src/desktop/components/TextField/index.d.ts +1 -0
- package/dist/src/desktop/components/TextField/index.js +8 -0
- package/dist/src/desktop/components/TextLabel/TextLabel.d.ts +3 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +7 -4
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +21 -0
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +149 -0
- package/dist/src/desktop/components/UploadIconButton/index.d.ts +1 -0
- package/dist/src/desktop/components/UploadIconButton/index.js +8 -0
- package/dist/src/desktop/components/UploadIconButton/types.d.ts +8 -0
- package/dist/src/desktop/components/UploadIconButton/types.js +11 -0
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +18 -0
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +173 -0
- package/dist/src/desktop/components/UploadMainButton/index.d.ts +1 -0
- package/dist/src/desktop/components/UploadMainButton/index.js +8 -0
- package/dist/src/desktop/components/UploadMainButton/types.d.ts +25 -0
- package/dist/src/desktop/components/UploadMainButton/types.js +28 -0
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +12 -0
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +83 -0
- package/dist/src/desktop/components/UploadTextButton/index.d.ts +1 -0
- package/dist/src/desktop/components/UploadTextButton/index.js +8 -0
- package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.d.ts +20 -0
- package/dist/src/desktop/components/UserDesktopNavBar/UserDesktopNavBar.js +104 -0
- package/dist/src/desktop/components/UserDesktopNavBar/index.d.ts +1 -0
- package/dist/src/desktop/components/UserDesktopNavBar/index.js +8 -0
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.d.ts +11 -0
- package/dist/src/desktop/components/UserDesktopTabBar/UserDesktopTabBar.js +74 -0
- package/dist/src/desktop/components/UserDesktopTabBar/index.d.ts +1 -0
- package/dist/src/desktop/components/UserDesktopTabBar/index.js +8 -0
- package/dist/src/desktop/components/index.d.ts +24 -1
- package/dist/src/desktop/components/index.js +47 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +24 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.js +1 -1
- package/dist/src/hybrid/components/Icon/Icon.d.ts +2 -2
- package/dist/src/hybrid/components/Icon/Icon.js +1 -1
- package/dist/src/hybrid/components/ImageView/ImageView.d.ts +4 -2
- package/dist/src/hybrid/components/ImageView/ImageView.js +110 -28
- package/dist/src/hybrid/components/Switch/Switch.d.ts +9 -0
- package/dist/src/hybrid/components/Switch/Switch.js +75 -0
- package/dist/src/hybrid/components/Switch/index.d.ts +1 -0
- package/dist/src/hybrid/components/Switch/index.js +8 -0
- package/dist/src/hybrid/components/index.d.ts +2 -1
- package/dist/src/hybrid/components/index.js +3 -1
- package/dist/src/hybrid/index.d.ts +2 -2
- package/dist/src/hybrid/index.js +2 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +45 -0
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +265 -0
- package/dist/src/mobile/common/components/TextFieldBase/index.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/index.js +8 -0
- package/dist/src/mobile/common/components/index.d.ts +2 -0
- package/dist/src/mobile/common/components/index.js +5 -0
- package/dist/src/mobile/components/BlogTextField/BlogTextField.d.ts +29 -0
- package/dist/src/mobile/components/BlogTextField/BlogTextField.js +105 -0
- package/dist/src/mobile/components/BlogTextField/index.d.ts +1 -0
- package/dist/src/mobile/components/BlogTextField/index.js +8 -0
- package/dist/src/mobile/components/Card/Card.d.ts +11 -0
- package/dist/src/mobile/components/Card/Card.js +50 -0
- package/dist/src/mobile/components/Card/index.d.ts +1 -0
- package/dist/src/mobile/components/Card/index.js +8 -0
- package/dist/src/mobile/components/CardList/CardList.d.ts +10 -0
- package/dist/src/mobile/components/CardList/CardList.js +30 -0
- package/dist/src/mobile/components/CardList/index.d.ts +1 -0
- package/dist/src/mobile/components/CardList/index.js +8 -0
- package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/src/mobile/components/Checkbox/Checkbox.js +62 -0
- package/dist/src/mobile/components/Checkbox/index.d.ts +1 -0
- package/dist/src/mobile/components/Checkbox/index.js +8 -0
- package/dist/src/mobile/components/Chip/Chip.d.ts +19 -0
- package/dist/src/mobile/components/Chip/Chip.js +131 -0
- package/dist/src/mobile/components/Chip/index.d.ts +1 -0
- package/dist/src/mobile/components/Chip/index.js +8 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.d.ts +7 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +33 -0
- package/dist/src/mobile/components/ContextMenu/index.d.ts +1 -0
- package/dist/src/mobile/components/ContextMenu/index.js +8 -0
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.d.ts +10 -0
- package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +62 -0
- package/dist/src/mobile/components/ContextMenuItem/index.d.ts +1 -0
- package/dist/src/mobile/components/ContextMenuItem/index.js +8 -0
- package/dist/src/mobile/components/IconButton/IconButton.d.ts +1 -6
- package/dist/src/mobile/components/IconButton/IconButton.js +3 -3
- package/dist/src/mobile/components/ImageSlide/ImageSlide.d.ts +13 -0
- package/dist/src/mobile/components/ImageSlide/ImageSlide.js +97 -0
- package/dist/src/mobile/components/ImageSlide/index.d.ts +1 -0
- package/dist/src/mobile/components/ImageSlide/index.js +8 -0
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +21 -0
- package/dist/src/mobile/components/MainButton/MainButton.js +181 -0
- package/dist/src/mobile/components/MainButton/index.d.ts +1 -0
- package/dist/src/mobile/components/MainButton/index.js +8 -0
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.d.ts +19 -0
- package/dist/src/mobile/components/MobileHeaderBar/MobileHeaderBar.js +97 -0
- package/dist/src/mobile/components/MobileHeaderBar/index.d.ts +1 -0
- package/dist/src/mobile/components/MobileHeaderBar/index.js +8 -0
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.d.ts +10 -0
- package/dist/src/mobile/components/MobileTabBar/MobileTabBar.js +46 -0
- package/dist/src/mobile/components/MobileTabBar/index.d.ts +1 -0
- package/dist/src/mobile/components/MobileTabBar/index.js +8 -0
- package/dist/src/mobile/components/Radio/Radio.d.ts +12 -0
- package/dist/src/mobile/components/Radio/Radio.js +45 -0
- package/dist/src/mobile/components/Radio/index.d.ts +1 -0
- package/dist/src/mobile/components/Radio/index.js +8 -0
- package/dist/src/mobile/components/ReactionButton/ReactionButton.d.ts +11 -0
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +108 -0
- package/dist/src/mobile/components/ReactionButton/index.d.ts +1 -0
- package/dist/src/mobile/components/ReactionButton/index.js +8 -0
- package/dist/src/mobile/components/Select/Select.d.ts +16 -0
- package/dist/src/mobile/components/Select/Select.js +132 -0
- package/dist/src/mobile/components/Select/index.d.ts +1 -0
- package/dist/src/mobile/components/Select/index.js +8 -0
- package/dist/src/mobile/components/StatusBlock/StatusBlock.js +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +11 -0
- package/dist/src/mobile/components/TextButton/TextButton.js +100 -0
- package/dist/src/mobile/components/TextButton/index.d.ts +1 -0
- package/dist/src/mobile/components/TextButton/index.js +8 -0
- package/dist/src/mobile/components/TextField/TextField.d.ts +42 -0
- package/dist/src/mobile/components/TextField/TextField.js +252 -0
- package/dist/src/mobile/components/TextField/index.d.ts +1 -0
- package/dist/src/mobile/components/TextField/index.js +8 -0
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +3 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +7 -4
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +21 -0
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +138 -0
- package/dist/src/mobile/components/UploadIconButton/index.d.ts +1 -0
- package/dist/src/mobile/components/UploadIconButton/index.js +8 -0
- package/dist/src/mobile/components/UploadIconButton/types.d.ts +8 -0
- package/dist/src/mobile/components/UploadIconButton/types.js +11 -0
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +18 -0
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +161 -0
- package/dist/src/mobile/components/UploadMainButton/index.d.ts +1 -0
- package/dist/src/mobile/components/UploadMainButton/index.js +8 -0
- package/dist/src/mobile/components/UploadMainButton/types.d.ts +25 -0
- package/dist/src/mobile/components/UploadMainButton/types.js +28 -0
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +12 -0
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +77 -0
- package/dist/src/mobile/components/UploadTextButton/index.d.ts +1 -0
- package/dist/src/mobile/components/UploadTextButton/index.js +8 -0
- package/dist/src/mobile/components/index.d.ts +20 -1
- package/dist/src/mobile/components/index.js +39 -1
- package/dist/src/mobile/index.d.ts +2 -2
- package/dist/src/mobile/index.js +20 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/NavigationContainer/variation/Navigation.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,161 @@
|
|
|
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 hybrid_1 = require("../../../hybrid");
|
|
32
|
+
var TextLabel_1 = require("../TextLabel");
|
|
33
|
+
var types_1 = require("./types");
|
|
34
|
+
function UploadMainButton(_a) {
|
|
35
|
+
var text = _a.text, _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, fontWeight = _a.fontWeight, _d = _a.iconMode, iconMode = _d === void 0 ? 'none' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, _f = _a.iconName, iconName = _f === void 0 ? 'ic_upload' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, _h = _a.state, state = _h === void 0 ? 'normal' : _h, _j = _a.accept, accept = _j === void 0 ? '*' : _j, _k = _a.multipleMode, multipleMode = _k === void 0 ? 'none' : _k, onClick = _a.onClick;
|
|
36
|
+
var selectTextThemeColor = function () {
|
|
37
|
+
if (colorTheme === 'line3' && state === 'disabled') {
|
|
38
|
+
return 'ui_cpnt_button_text_darktheme_disabled';
|
|
39
|
+
}
|
|
40
|
+
if (fillType === 'line' && colorTheme !== 'none' && state !== 'disabled') {
|
|
41
|
+
return types_1.textThemeColorLines[colorTheme];
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
44
|
+
};
|
|
45
|
+
var iconColor = function () {
|
|
46
|
+
if (state === 'disabled') {
|
|
47
|
+
if (colorTheme === 'line3') {
|
|
48
|
+
return 'ui_cpnt_button_icon_darktheme_disabled';
|
|
49
|
+
}
|
|
50
|
+
return 'ui_cpnt_button_icon_disabled';
|
|
51
|
+
}
|
|
52
|
+
if (fillType === 'line' && colorTheme !== 'none') {
|
|
53
|
+
return types_1.iconColorThemeLineColors[colorTheme];
|
|
54
|
+
}
|
|
55
|
+
return types_1.iconFillTypeColors[fillType];
|
|
56
|
+
};
|
|
57
|
+
return (react_1.default.createElement(S_UploadMainButton, { fillType: fillType, size: size, fontWeight: fontWeight, colorTheme: colorTheme, disabled: state === 'disabled' },
|
|
58
|
+
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: onClick }),
|
|
59
|
+
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
60
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
61
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
62
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], btnMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : types_1.textColors[fillType], colorOverride: selectTextThemeColor() }),
|
|
63
|
+
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
64
|
+
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
65
|
+
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
66
|
+
}
|
|
67
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: 24px;\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n width: ", ";\n"], ["\n border-radius: 24px;\n height: 48px;\n min-width: 96px;\n padding: 0 ", ";\n width: ", ";\n"])), function (_a) {
|
|
68
|
+
var theme = _a.theme;
|
|
69
|
+
return theme.spacing.spacingE;
|
|
70
|
+
}, function (_a) {
|
|
71
|
+
var size = _a.size;
|
|
72
|
+
return size === 'rlarge' && '100%';
|
|
73
|
+
});
|
|
74
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 20px;\n height: 40px;\n padding: 0 ", ";\n"], ["\n border-radius: 20px;\n height: 40px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
75
|
+
var theme = _a.theme;
|
|
76
|
+
return theme.spacing.spacingE;
|
|
77
|
+
});
|
|
78
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 16px;\n height: 32px;\n padding: 0 ", ";\n"], ["\n border-radius: 16px;\n height: 32px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
79
|
+
var theme = _a.theme;
|
|
80
|
+
return theme.spacing.spacingD;
|
|
81
|
+
});
|
|
82
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 12px;\n height: 24px;\n padding: 0 ", ";\n"], ["\n border-radius: 12px;\n height: 24px;\n padding: 0 ", ";\n"])), function (_a) {
|
|
83
|
+
var theme = _a.theme;
|
|
84
|
+
return theme.spacing.spacingD;
|
|
85
|
+
});
|
|
86
|
+
var fillDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
87
|
+
var theme = _a.theme;
|
|
88
|
+
return theme.ui_cpnt_button_fill_base_disabled;
|
|
89
|
+
});
|
|
90
|
+
var fill = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", "\n"], ["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
91
|
+
var theme = _a.theme;
|
|
92
|
+
return theme.ui_cpnt_button_fill_base_primary;
|
|
93
|
+
}, function (_a) {
|
|
94
|
+
var theme = _a.theme;
|
|
95
|
+
return "linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n )";
|
|
96
|
+
}, function (_a) {
|
|
97
|
+
var disabled = _a.disabled;
|
|
98
|
+
return disabled && fillDisabled;
|
|
99
|
+
});
|
|
100
|
+
var none = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
|
|
101
|
+
var theme = _a.theme;
|
|
102
|
+
return theme.ui_cpnt_button_line_border_enabled;
|
|
103
|
+
});
|
|
104
|
+
var line1 = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
|
|
105
|
+
var theme = _a.theme;
|
|
106
|
+
return theme.ui_cpnt_button_line_border_error;
|
|
107
|
+
});
|
|
108
|
+
var line2 = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: solid 1px ", ";\n"], ["\n border: solid 1px ", ";\n"])), function (_a) {
|
|
109
|
+
var theme = _a.theme;
|
|
110
|
+
return theme.ui_cpnt_button_line_border_primary;
|
|
111
|
+
});
|
|
112
|
+
var line3 = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border: solid 1px ", ";\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"], ["\n border: solid 1px ", ";\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
113
|
+
var theme = _a.theme;
|
|
114
|
+
return theme.ui_cpnt_button_line_border_darktheme_enabled;
|
|
115
|
+
}, function (_a) {
|
|
116
|
+
var theme = _a.theme;
|
|
117
|
+
return theme.ui_cpnt_button_line_base_darktheme_default;
|
|
118
|
+
}, function (_a) {
|
|
119
|
+
var theme = _a.theme;
|
|
120
|
+
return theme.ui_cpnt_button_line_base_darktheme_pressed;
|
|
121
|
+
});
|
|
122
|
+
var lineDisabled = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n border: solid 1px\n ", ";\n"], ["\n background-color: ", ";\n border: solid 1px\n ", ";\n"])), function (_a) {
|
|
123
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
124
|
+
return colorTheme === 'line3'
|
|
125
|
+
? theme.ui_cpnt_button_line_base_darktheme_default
|
|
126
|
+
: theme.ui_cpnt_button_line_base_default;
|
|
127
|
+
}, function (_a) {
|
|
128
|
+
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
129
|
+
return colorTheme === 'line3'
|
|
130
|
+
? theme.ui_cpnt_button_line_border_darktheme_disabled
|
|
131
|
+
: theme.ui_cpnt_button_line_border_disabled;
|
|
132
|
+
});
|
|
133
|
+
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
134
|
+
var theme = _a.theme;
|
|
135
|
+
return theme.ui_cpnt_button_line_base_default;
|
|
136
|
+
}, function (_a) {
|
|
137
|
+
var theme = _a.theme;
|
|
138
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
139
|
+
}, function (_a) {
|
|
140
|
+
var colorTheme = _a.colorTheme;
|
|
141
|
+
return colorTheme && { none: none, line1: line1, line2: line2, line3: line3 }[colorTheme];
|
|
142
|
+
}, function (_a) {
|
|
143
|
+
var disabled = _a.disabled;
|
|
144
|
+
return disabled && lineDisabled;
|
|
145
|
+
});
|
|
146
|
+
var S_UploadMainButton = styled_components_1.default.label(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
147
|
+
var theme = _a.theme, fontWeight = _a.fontWeight;
|
|
148
|
+
return fontWeight &&
|
|
149
|
+
{
|
|
150
|
+
bold: theme.fontWeight.bold,
|
|
151
|
+
regular: theme.fontWeight.normal
|
|
152
|
+
}[fontWeight];
|
|
153
|
+
}, function (_a) {
|
|
154
|
+
var fillType = _a.fillType;
|
|
155
|
+
return fillType && { fill: fill, line: line }[fillType];
|
|
156
|
+
}, function (_a) {
|
|
157
|
+
var size = _a.size;
|
|
158
|
+
return size && { large: large, medium: medium, small: small, xsmall: xsmall, rlarge: large }[size];
|
|
159
|
+
});
|
|
160
|
+
exports.default = UploadMainButton;
|
|
161
|
+
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, templateObject_13;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UploadMainButton } from './UploadMainButton';
|
|
@@ -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.UploadMainButton = void 0;
|
|
7
|
+
var UploadMainButton_1 = require("./UploadMainButton");
|
|
8
|
+
Object.defineProperty(exports, "UploadMainButton", { enumerable: true, get: function () { return __importDefault(UploadMainButton_1).default; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const textStyles: {
|
|
2
|
+
readonly rlarge: "body1Bold";
|
|
3
|
+
readonly large: "body1Bold";
|
|
4
|
+
readonly medium: "body2Bold";
|
|
5
|
+
readonly small: "caption1Bold";
|
|
6
|
+
readonly xsmall: "caption1Regular";
|
|
7
|
+
};
|
|
8
|
+
export declare const textThemeColorLines: {
|
|
9
|
+
readonly line1: "ui_cpnt_button_text_error";
|
|
10
|
+
readonly line2: "ui_cpnt_button_text_primary";
|
|
11
|
+
readonly line3: "ui_cpnt_button_text_darktheme_enabled";
|
|
12
|
+
};
|
|
13
|
+
export declare const textColors: {
|
|
14
|
+
readonly fill: "usrTextBrandOnPrimary";
|
|
15
|
+
readonly line: "sysTextPrimary";
|
|
16
|
+
};
|
|
17
|
+
export declare const iconFillTypeColors: {
|
|
18
|
+
readonly fill: "ui_cpnt_button_icon_on_primary";
|
|
19
|
+
readonly line: "ui_cpnt_button_icon_enabled";
|
|
20
|
+
};
|
|
21
|
+
export declare const iconColorThemeLineColors: {
|
|
22
|
+
readonly line1: "ui_cpnt_button_icon_error";
|
|
23
|
+
readonly line2: "ui_cpnt_button_icon_primary";
|
|
24
|
+
readonly line3: "ui_cpnt_button_icon_darktheme_enabled";
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.iconColorThemeLineColors = exports.iconFillTypeColors = exports.textColors = exports.textThemeColorLines = exports.textStyles = void 0;
|
|
4
|
+
exports.textStyles = {
|
|
5
|
+
rlarge: 'body1Bold',
|
|
6
|
+
large: 'body1Bold',
|
|
7
|
+
medium: 'body2Bold',
|
|
8
|
+
small: 'caption1Bold',
|
|
9
|
+
xsmall: 'caption1Regular'
|
|
10
|
+
};
|
|
11
|
+
exports.textThemeColorLines = {
|
|
12
|
+
line1: 'ui_cpnt_button_text_error',
|
|
13
|
+
line2: 'ui_cpnt_button_text_primary',
|
|
14
|
+
line3: 'ui_cpnt_button_text_darktheme_enabled'
|
|
15
|
+
};
|
|
16
|
+
exports.textColors = {
|
|
17
|
+
fill: 'usrTextBrandOnPrimary',
|
|
18
|
+
line: 'sysTextPrimary'
|
|
19
|
+
};
|
|
20
|
+
exports.iconFillTypeColors = {
|
|
21
|
+
fill: 'ui_cpnt_button_icon_on_primary',
|
|
22
|
+
line: 'ui_cpnt_button_icon_enabled'
|
|
23
|
+
};
|
|
24
|
+
exports.iconColorThemeLineColors = {
|
|
25
|
+
line1: 'ui_cpnt_button_icon_error',
|
|
26
|
+
line2: 'ui_cpnt_button_icon_primary',
|
|
27
|
+
line3: 'ui_cpnt_button_icon_darktheme_enabled'
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type UploadTextButtonProps = {
|
|
3
|
+
text?: string;
|
|
4
|
+
size?: 'rlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
5
|
+
fontWeight?: 'bold' | 'regular';
|
|
6
|
+
state?: 'normal' | 'disabled';
|
|
7
|
+
accept?: string;
|
|
8
|
+
multipleMode?: 'none' | 'use';
|
|
9
|
+
onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
};
|
|
11
|
+
declare function UploadTextButton({ text, size, fontWeight, state, accept, multipleMode, onClick }: UploadTextButtonProps): JSX.Element;
|
|
12
|
+
export default UploadTextButton;
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
var textStyle = {
|
|
33
|
+
rlarge: 'body1Bold',
|
|
34
|
+
large: 'body1Bold',
|
|
35
|
+
medium: 'body2Bold',
|
|
36
|
+
small: 'caption1Bold',
|
|
37
|
+
xsmall: 'caption1Regular'
|
|
38
|
+
};
|
|
39
|
+
function UploadTextButton(_a) {
|
|
40
|
+
var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, fontWeight = _a.fontWeight, _c = _a.state, state = _c === void 0 ? 'normal' : _c, _d = _a.accept, accept = _d === void 0 ? '*' : _d, _e = _a.multipleMode, multipleMode = _e === void 0 ? 'none' : _e, onClick = _a.onClick;
|
|
41
|
+
return (react_1.default.createElement(S_UploadTextButton, { size: size, fontWeight: fontWeight, disabled: state === 'disabled' },
|
|
42
|
+
react_1.default.createElement("input", { type: "file", hidden: true, disabled: state === 'disabled', accept: accept, multiple: multipleMode === 'use', onChange: onClick }),
|
|
43
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', btnMode: "use" })));
|
|
44
|
+
}
|
|
45
|
+
var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: ", ";\n"], ["\n height: 48px;\n width: ", ";\n"])), function (_a) {
|
|
46
|
+
var size = _a.size;
|
|
47
|
+
return size === 'rlarge' && '100%';
|
|
48
|
+
});
|
|
49
|
+
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n"], ["\n height: 40px;\n"])));
|
|
50
|
+
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n"], ["\n height: 32px;\n"])));
|
|
51
|
+
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n"], ["\n height: 24px;\n"])));
|
|
52
|
+
var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return theme.spacing.spacingB;
|
|
55
|
+
}, function (_a) {
|
|
56
|
+
var theme = _a.theme;
|
|
57
|
+
return theme.ui_cpnt_button_line_base_pressed;
|
|
58
|
+
}, function (_a) {
|
|
59
|
+
var theme = _a.theme, fontWeight = _a.fontWeight;
|
|
60
|
+
return fontWeight &&
|
|
61
|
+
{
|
|
62
|
+
bold: theme.fontWeight.bold,
|
|
63
|
+
regular: theme.fontWeight.normal
|
|
64
|
+
}[fontWeight];
|
|
65
|
+
}, function (_a) {
|
|
66
|
+
var size = _a.size;
|
|
67
|
+
return size &&
|
|
68
|
+
{
|
|
69
|
+
rlarge: large,
|
|
70
|
+
large: large,
|
|
71
|
+
medium: medium,
|
|
72
|
+
small: small,
|
|
73
|
+
xsmall: xsmall
|
|
74
|
+
}[size];
|
|
75
|
+
});
|
|
76
|
+
exports.default = UploadTextButton;
|
|
77
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UploadTextButton } from './UploadTextButton';
|
|
@@ -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.UploadTextButton = void 0;
|
|
7
|
+
var UploadTextButton_1 = require("./UploadTextButton");
|
|
8
|
+
Object.defineProperty(exports, "UploadTextButton", { enumerable: true, get: function () { return __importDefault(UploadTextButton_1).default; } });
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
+
import { BlogTextField } from './BlogTextField';
|
|
2
|
+
import { Card } from './Card';
|
|
3
|
+
import { CardList } from './CardList';
|
|
4
|
+
import { Checkbox } from './Checkbox';
|
|
5
|
+
import { Chip } from './Chip';
|
|
6
|
+
import { ContextMenu } from './ContextMenu';
|
|
7
|
+
import { ContextMenuItem } from './ContextMenuItem';
|
|
1
8
|
import { IconButton } from './IconButton';
|
|
9
|
+
import { ImageSlide } from './ImageSlide';
|
|
10
|
+
import { MainButton } from './MainButton';
|
|
11
|
+
import { MobileHeaderBar } from './MobileHeaderBar';
|
|
12
|
+
import { MobileTabBar } from './MobileTabBar';
|
|
13
|
+
import { Radio } from './Radio';
|
|
14
|
+
import { ReactionButton } from './ReactionButton';
|
|
15
|
+
import { Select } from './Select';
|
|
2
16
|
import { StatusBlock } from './StatusBlock';
|
|
17
|
+
import { TextButton } from './TextButton';
|
|
18
|
+
import { TextField } from './TextField';
|
|
3
19
|
import { TextLabel } from './TextLabel';
|
|
4
|
-
|
|
20
|
+
import { UploadIconButton } from './UploadIconButton';
|
|
21
|
+
import { UploadMainButton } from './UploadMainButton';
|
|
22
|
+
import { UploadTextButton } from './UploadTextButton';
|
|
23
|
+
export { BlogTextField, Card, CardList, Checkbox, Chip, ContextMenu, ContextMenuItem, IconButton, ImageSlide, MainButton, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextLabel = exports.StatusBlock = exports.IconButton = void 0;
|
|
3
|
+
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.CardList = exports.Card = exports.BlogTextField = void 0;
|
|
4
|
+
var BlogTextField_1 = require("./BlogTextField");
|
|
5
|
+
Object.defineProperty(exports, "BlogTextField", { enumerable: true, get: function () { return BlogTextField_1.BlogTextField; } });
|
|
6
|
+
var Card_1 = require("./Card");
|
|
7
|
+
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
8
|
+
var CardList_1 = require("./CardList");
|
|
9
|
+
Object.defineProperty(exports, "CardList", { enumerable: true, get: function () { return CardList_1.CardList; } });
|
|
10
|
+
var Checkbox_1 = require("./Checkbox");
|
|
11
|
+
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
12
|
+
var Chip_1 = require("./Chip");
|
|
13
|
+
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
|
|
14
|
+
var ContextMenu_1 = require("./ContextMenu");
|
|
15
|
+
Object.defineProperty(exports, "ContextMenu", { enumerable: true, get: function () { return ContextMenu_1.ContextMenu; } });
|
|
16
|
+
var ContextMenuItem_1 = require("./ContextMenuItem");
|
|
17
|
+
Object.defineProperty(exports, "ContextMenuItem", { enumerable: true, get: function () { return ContextMenuItem_1.ContextMenuItem; } });
|
|
4
18
|
var IconButton_1 = require("./IconButton");
|
|
5
19
|
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return IconButton_1.IconButton; } });
|
|
20
|
+
var ImageSlide_1 = require("./ImageSlide");
|
|
21
|
+
Object.defineProperty(exports, "ImageSlide", { enumerable: true, get: function () { return ImageSlide_1.ImageSlide; } });
|
|
22
|
+
var MainButton_1 = require("./MainButton");
|
|
23
|
+
Object.defineProperty(exports, "MainButton", { enumerable: true, get: function () { return MainButton_1.MainButton; } });
|
|
24
|
+
var MobileHeaderBar_1 = require("./MobileHeaderBar");
|
|
25
|
+
Object.defineProperty(exports, "MobileHeaderBar", { enumerable: true, get: function () { return MobileHeaderBar_1.MobileHeaderBar; } });
|
|
26
|
+
var MobileTabBar_1 = require("./MobileTabBar");
|
|
27
|
+
Object.defineProperty(exports, "MobileTabBar", { enumerable: true, get: function () { return MobileTabBar_1.MobileTabBar; } });
|
|
28
|
+
var Radio_1 = require("./Radio");
|
|
29
|
+
Object.defineProperty(exports, "Radio", { enumerable: true, get: function () { return Radio_1.Radio; } });
|
|
30
|
+
var ReactionButton_1 = require("./ReactionButton");
|
|
31
|
+
Object.defineProperty(exports, "ReactionButton", { enumerable: true, get: function () { return ReactionButton_1.ReactionButton; } });
|
|
32
|
+
var Select_1 = require("./Select");
|
|
33
|
+
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
|
|
6
34
|
var StatusBlock_1 = require("./StatusBlock");
|
|
7
35
|
Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return StatusBlock_1.StatusBlock; } });
|
|
36
|
+
var TextButton_1 = require("./TextButton");
|
|
37
|
+
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
|
|
38
|
+
var TextField_1 = require("./TextField");
|
|
39
|
+
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
8
40
|
var TextLabel_1 = require("./TextLabel");
|
|
9
41
|
Object.defineProperty(exports, "TextLabel", { enumerable: true, get: function () { return TextLabel_1.TextLabel; } });
|
|
42
|
+
var UploadIconButton_1 = require("./UploadIconButton");
|
|
43
|
+
Object.defineProperty(exports, "UploadIconButton", { enumerable: true, get: function () { return UploadIconButton_1.UploadIconButton; } });
|
|
44
|
+
var UploadMainButton_1 = require("./UploadMainButton");
|
|
45
|
+
Object.defineProperty(exports, "UploadMainButton", { enumerable: true, get: function () { return UploadMainButton_1.UploadMainButton; } });
|
|
46
|
+
var UploadTextButton_1 = require("./UploadTextButton");
|
|
47
|
+
Object.defineProperty(exports, "UploadTextButton", { enumerable: true, get: function () { return UploadTextButton_1.UploadTextButton; } });
|
|
@@ -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 { IconButton as M_IconButton, StatusBlock as M_StatusBlock, TextLabel as M_TextLabel } from './components';
|
|
17
|
-
export { M_IconButton, M_StatusBlock, M_TextLabel };
|
|
16
|
+
import { BlogTextField as M_BlogTextField, Card as M_Card, CardList as M_CardList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, IconButton as M_IconButton, ImageSlide as M_ImageSlide, MainButton as M_MainButton, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, Select as M_Select, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
17
|
+
export { M_BlogTextField, M_Card, M_CardList, M_Checkbox, M_Chip, M_ContextMenu, M_ContextMenuItem, M_IconButton, M_ImageSlide, M_MainButton, M_MobileHeaderBar, M_MobileTabBar, M_Radio, M_ReactionButton, M_Select, M_StatusBlock, M_TextButton, M_TextField, M_TextLabel, M_UploadIconButton, M_UploadMainButton, M_UploadTextButton };
|
package/dist/src/mobile/index.js
CHANGED
|
@@ -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.M_StatusBlock = exports.M_IconButton = 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_UploadTextButton = exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Select = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MainButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_CardList = exports.M_Card = exports.M_BlogTextField = 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,6 +32,25 @@ 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_BlogTextField", { enumerable: true, get: function () { return components_1.BlogTextField; } });
|
|
36
|
+
Object.defineProperty(exports, "M_Card", { enumerable: true, get: function () { return components_1.Card; } });
|
|
37
|
+
Object.defineProperty(exports, "M_CardList", { enumerable: true, get: function () { return components_1.CardList; } });
|
|
38
|
+
Object.defineProperty(exports, "M_Checkbox", { enumerable: true, get: function () { return components_1.Checkbox; } });
|
|
39
|
+
Object.defineProperty(exports, "M_Chip", { enumerable: true, get: function () { return components_1.Chip; } });
|
|
40
|
+
Object.defineProperty(exports, "M_ContextMenu", { enumerable: true, get: function () { return components_1.ContextMenu; } });
|
|
41
|
+
Object.defineProperty(exports, "M_ContextMenuItem", { enumerable: true, get: function () { return components_1.ContextMenuItem; } });
|
|
35
42
|
Object.defineProperty(exports, "M_IconButton", { enumerable: true, get: function () { return components_1.IconButton; } });
|
|
43
|
+
Object.defineProperty(exports, "M_ImageSlide", { enumerable: true, get: function () { return components_1.ImageSlide; } });
|
|
44
|
+
Object.defineProperty(exports, "M_MainButton", { enumerable: true, get: function () { return components_1.MainButton; } });
|
|
45
|
+
Object.defineProperty(exports, "M_MobileHeaderBar", { enumerable: true, get: function () { return components_1.MobileHeaderBar; } });
|
|
46
|
+
Object.defineProperty(exports, "M_MobileTabBar", { enumerable: true, get: function () { return components_1.MobileTabBar; } });
|
|
47
|
+
Object.defineProperty(exports, "M_Radio", { enumerable: true, get: function () { return components_1.Radio; } });
|
|
48
|
+
Object.defineProperty(exports, "M_ReactionButton", { enumerable: true, get: function () { return components_1.ReactionButton; } });
|
|
49
|
+
Object.defineProperty(exports, "M_Select", { enumerable: true, get: function () { return components_1.Select; } });
|
|
36
50
|
Object.defineProperty(exports, "M_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
|
|
51
|
+
Object.defineProperty(exports, "M_TextButton", { enumerable: true, get: function () { return components_1.TextButton; } });
|
|
52
|
+
Object.defineProperty(exports, "M_TextField", { enumerable: true, get: function () { return components_1.TextField; } });
|
|
37
53
|
Object.defineProperty(exports, "M_TextLabel", { enumerable: true, get: function () { return components_1.TextLabel; } });
|
|
54
|
+
Object.defineProperty(exports, "M_UploadIconButton", { enumerable: true, get: function () { return components_1.UploadIconButton; } });
|
|
55
|
+
Object.defineProperty(exports, "M_UploadMainButton", { enumerable: true, get: function () { return components_1.UploadMainButton; } });
|
|
56
|
+
Object.defineProperty(exports, "M_UploadTextButton", { enumerable: true, get: function () { return components_1.UploadTextButton; } });
|
package/dist/src/mobile/layout/LayoutMP/Containers/NavigationContainer/variation/Navigation.js
CHANGED
|
@@ -20,6 +20,6 @@ var S_NavigationContainer = styled_components_1.default.div(templateObject_1 ||
|
|
|
20
20
|
return theme.ui_m_navigationcontainer_background;
|
|
21
21
|
});
|
|
22
22
|
var S_NavigationArea = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
23
|
-
var S_NavigationContent = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 56px;\n"], ["\n height: 56px;\n"])));
|
|
23
|
+
var S_NavigationContent = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n min-height: 56px;\n"], ["\n min-height: 56px;\n"])));
|
|
24
24
|
exports.default = Navigation;
|
|
25
25
|
var templateObject_1, templateObject_2, templateObject_3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pds-dev-kit-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"i18next": "^21.3.2",
|
|
21
21
|
"i18next-browser-languagedetector": "^6.1.2",
|
|
22
22
|
"i18next-intervalplural-postprocessor": "^3.0.0",
|
|
23
|
+
"nuka-carousel": "^4.8.4",
|
|
24
|
+
"react-hook-form": "^7.22.5",
|
|
23
25
|
"react-i18next": "^11.12.0",
|
|
26
|
+
"react-router-dom": "^5.2.0",
|
|
24
27
|
"react-scripts": "4.0.3",
|
|
25
28
|
"styled-components": "^5.2.1",
|
|
26
29
|
"tsc-init": "^2.1.0",
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
"@storybook/react": "^6.3.12",
|
|
80
83
|
"@types/lodash": "^4.14.175",
|
|
81
84
|
"@types/node": "^16.10.2",
|
|
85
|
+
"@types/react-router-dom": "^5.3.3",
|
|
82
86
|
"@types/styled-components": "^5.1.9",
|
|
83
87
|
"@typescript-eslint/parser": "^4.33.0",
|
|
84
88
|
"chromatic": "^6.0.6",
|