pds-dev-kit-web 0.3.50 → 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 +2 -2
- package/dist/index.d.ts +9 -8
- package/dist/index.js +48 -2
- 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 +6 -1
- package/dist/src/common/index.js +4 -1
- package/dist/src/common/services/i18n/resources/en.json +2795 -2546
- package/dist/src/common/services/i18n/resources/es.json +311 -62
- package/dist/src/common/services/i18n/resources/index.d.ts +1032 -36
- package/dist/src/common/services/i18n/resources/jp.json +311 -62
- package/dist/src/common/services/i18n/resources/ko.json +308 -59
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +11 -7
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +5 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +2 -1
- package/dist/src/common/styles/colorSet/UIColor.json +10 -3
- package/dist/src/common/styles/colorSet/index.d.ts +19 -3
- package/dist/src/common/styles/colorSet/index.js +4 -4
- 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.js +1 -1
- 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/{hybrid → desktop}/components/IconButton/IconButton.d.ts +1 -1
- package/dist/src/{hybrid → desktop}/components/IconButton/IconButton.js +5 -5
- package/dist/src/{hybrid → desktop}/components/IconButton/index.d.ts +0 -0
- package/dist/src/{hybrid → desktop}/components/IconButton/index.js +0 -0
- 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 -1
- 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 +25 -1
- package/dist/src/desktop/components/index.js +49 -1
- package/dist/src/desktop/index.d.ts +2 -2
- package/dist/src/desktop/index.js +25 -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 -2
- package/dist/src/hybrid/components/index.js +3 -3
- package/dist/src/hybrid/index.d.ts +2 -2
- package/dist/src/hybrid/index.js +2 -2
- 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 +21 -0
- package/dist/src/mobile/components/IconButton/IconButton.js +148 -0
- package/dist/src/mobile/components/IconButton/index.d.ts +1 -0
- package/dist/src/mobile/components/IconButton/index.js +8 -0
- 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 +21 -1
- package/dist/src/mobile/components/index.js +41 -1
- package/dist/src/mobile/index.d.ts +2 -2
- package/dist/src/mobile/index.js +21 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/NavigationContainer/variation/Navigation.js +1 -1
- package/package.json +5 -1
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextLabel = exports.StatusBlock = exports.Hero = void 0;
|
|
3
|
+
exports.UserDesktopTabBar = exports.UserDesktopNavBar = exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Select = exports.ReactionButton = exports.Radio = exports.MainButton = exports.ImageSlide = exports.IconButton = exports.Hero = exports.FloatingActionButton = exports.FilterBar = exports.EditApplyTextField = exports.DesktopTapBar = exports.DesktopHeaderBar = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.CardList = exports.Card = void 0;
|
|
4
|
+
var Card_1 = require("./Card");
|
|
5
|
+
Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
|
|
6
|
+
var CardList_1 = require("./CardList");
|
|
7
|
+
Object.defineProperty(exports, "CardList", { enumerable: true, get: function () { return CardList_1.CardList; } });
|
|
8
|
+
var Checkbox_1 = require("./Checkbox");
|
|
9
|
+
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
10
|
+
var Chip_1 = require("./Chip");
|
|
11
|
+
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return Chip_1.Chip; } });
|
|
12
|
+
var ContextMenu_1 = require("./ContextMenu");
|
|
13
|
+
Object.defineProperty(exports, "ContextMenu", { enumerable: true, get: function () { return ContextMenu_1.ContextMenu; } });
|
|
14
|
+
var ContextMenuItem_1 = require("./ContextMenuItem");
|
|
15
|
+
Object.defineProperty(exports, "ContextMenuItem", { enumerable: true, get: function () { return ContextMenuItem_1.ContextMenuItem; } });
|
|
16
|
+
var DesktopHeaderBar_1 = require("./DesktopHeaderBar");
|
|
17
|
+
Object.defineProperty(exports, "DesktopHeaderBar", { enumerable: true, get: function () { return DesktopHeaderBar_1.DesktopHeaderBar; } });
|
|
18
|
+
var DesktopTabBar_1 = require("./DesktopTabBar");
|
|
19
|
+
Object.defineProperty(exports, "DesktopTapBar", { enumerable: true, get: function () { return DesktopTabBar_1.DesktopTapBar; } });
|
|
20
|
+
var EditApplyTextField_1 = require("./EditApplyTextField");
|
|
21
|
+
Object.defineProperty(exports, "EditApplyTextField", { enumerable: true, get: function () { return EditApplyTextField_1.EditApplyTextField; } });
|
|
22
|
+
var FilterBar_1 = require("./FilterBar");
|
|
23
|
+
Object.defineProperty(exports, "FilterBar", { enumerable: true, get: function () { return FilterBar_1.FilterBar; } });
|
|
24
|
+
var FloatingActionButton_1 = require("./FloatingActionButton");
|
|
25
|
+
Object.defineProperty(exports, "FloatingActionButton", { enumerable: true, get: function () { return FloatingActionButton_1.FloatingActionButton; } });
|
|
4
26
|
var Hero_1 = require("./Hero");
|
|
5
27
|
Object.defineProperty(exports, "Hero", { enumerable: true, get: function () { return Hero_1.Hero; } });
|
|
28
|
+
var IconButton_1 = require("./IconButton");
|
|
29
|
+
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return IconButton_1.IconButton; } });
|
|
30
|
+
var ImageSlide_1 = require("./ImageSlide");
|
|
31
|
+
Object.defineProperty(exports, "ImageSlide", { enumerable: true, get: function () { return ImageSlide_1.ImageSlide; } });
|
|
32
|
+
var MainButton_1 = require("./MainButton");
|
|
33
|
+
Object.defineProperty(exports, "MainButton", { enumerable: true, get: function () { return MainButton_1.MainButton; } });
|
|
34
|
+
var Radio_1 = require("./Radio");
|
|
35
|
+
Object.defineProperty(exports, "Radio", { enumerable: true, get: function () { return Radio_1.Radio; } });
|
|
36
|
+
var ReactionButton_1 = require("./ReactionButton");
|
|
37
|
+
Object.defineProperty(exports, "ReactionButton", { enumerable: true, get: function () { return ReactionButton_1.ReactionButton; } });
|
|
38
|
+
var Select_1 = require("./Select");
|
|
39
|
+
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
|
|
6
40
|
var StatusBlock_1 = require("./StatusBlock");
|
|
7
41
|
Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return StatusBlock_1.StatusBlock; } });
|
|
42
|
+
var TextButton_1 = require("./TextButton");
|
|
43
|
+
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
|
|
44
|
+
var TextField_1 = require("./TextField");
|
|
45
|
+
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
8
46
|
var TextLabel_1 = require("./TextLabel");
|
|
9
47
|
Object.defineProperty(exports, "TextLabel", { enumerable: true, get: function () { return TextLabel_1.TextLabel; } });
|
|
48
|
+
var UploadIconButton_1 = require("./UploadIconButton");
|
|
49
|
+
Object.defineProperty(exports, "UploadIconButton", { enumerable: true, get: function () { return UploadIconButton_1.UploadIconButton; } });
|
|
50
|
+
var UploadMainButton_1 = require("./UploadMainButton");
|
|
51
|
+
Object.defineProperty(exports, "UploadMainButton", { enumerable: true, get: function () { return UploadMainButton_1.UploadMainButton; } });
|
|
52
|
+
var UploadTextButton_1 = require("./UploadTextButton");
|
|
53
|
+
Object.defineProperty(exports, "UploadTextButton", { enumerable: true, get: function () { return UploadTextButton_1.UploadTextButton; } });
|
|
54
|
+
var UserDesktopNavBar_1 = require("./UserDesktopNavBar");
|
|
55
|
+
Object.defineProperty(exports, "UserDesktopNavBar", { enumerable: true, get: function () { return UserDesktopNavBar_1.UserDesktopNavBar; } });
|
|
56
|
+
var UserDesktopTabBar_1 = require("./UserDesktopTabBar");
|
|
57
|
+
Object.defineProperty(exports, "UserDesktopTabBar", { enumerable: true, get: function () { return UserDesktopTabBar_1.UserDesktopTabBar; } });
|
|
@@ -9,5 +9,5 @@ import { LayoutWT } from './layout/LayoutWT';
|
|
|
9
9
|
import { GlobalMenuContainer as WTGlobalMenuContainer } from './layout/LayoutWT/Containers';
|
|
10
10
|
import { ContainersBox as WTContainersBox } from './layout/LayoutWT/ContainersBox';
|
|
11
11
|
export { LayoutWT, WTGlobalMenuContainer, WTContainersBox };
|
|
12
|
-
import { Hero as D_Hero, StatusBlock as D_StatusBlock, TextLabel as D_TextLabel } from './components';
|
|
13
|
-
export { D_Hero, D_StatusBlock, D_TextLabel };
|
|
12
|
+
import { Card as D_Card, CardList as D_CardList, Checkbox as D_Checkbox, Chip as D_Chip, ContextMenu as D_ContextMenu, ContextMenuItem as D_ContextMenuItem, DesktopHeaderBar as D_DesktopHeaderBar, DesktopTapBar as D_DesktopTapBar, EditApplyTextField as D_EditApplyTextField, FilterBar as D_FilterBar, FloatingActionButton as D_FloatingActionButton, Hero as D_Hero, IconButton as D_IconButton, ImageSlide as D_ImageSlide, MainButton as D_MainButton, Radio as D_Radio, ReactionButton as D_ReactionButton, Select as D_Select, StatusBlock as D_StatusBlock, TextButton as D_TextButton, TextField as D_TextField, TextLabel as D_TextLabel, UploadIconButton as D_UploadIconButton, UploadMainButton as D_UploadMainButton, UploadTextButton as D_UploadTextButton, UserDesktopNavBar as D_UserDesktopNavBar, UserDesktopTabBar as D_UserDesktopTabBar } from './components';
|
|
13
|
+
export { D_Card, D_CardList, D_Checkbox, D_Chip, D_ContextMenu, D_ContextMenuItem, D_DesktopHeaderBar, D_DesktopTapBar, D_EditApplyTextField, D_FilterBar, D_FloatingActionButton, D_Hero, D_IconButton, D_ImageSlide, D_MainButton, D_Radio, D_Select, D_ReactionButton, D_StatusBlock, D_TextButton, D_TextField, D_TextLabel, D_UploadIconButton, D_UploadMainButton, D_UploadTextButton, D_UserDesktopNavBar, D_UserDesktopTabBar };
|
|
@@ -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.D_TextLabel = exports.D_StatusBlock = exports.D_Hero = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WFContainersBox = exports.LayoutWF = void 0;
|
|
5
|
+
exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = exports.D_ReactionButton = exports.D_Select = exports.D_Radio = exports.D_MainButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DesktopTapBar = exports.D_DesktopHeaderBar = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_CardList = exports.D_Card = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WFContainersBox = exports.LayoutWF = void 0;
|
|
6
6
|
// layoutWF
|
|
7
7
|
var LayoutWF_1 = require("./layout/LayoutWF");
|
|
8
8
|
Object.defineProperty(exports, "LayoutWF", { enumerable: true, get: function () { return LayoutWF_1.LayoutWF; } });
|
|
@@ -24,6 +24,30 @@ var ContainersBox_3 = require("./layout/LayoutWT/ContainersBox");
|
|
|
24
24
|
Object.defineProperty(exports, "WTContainersBox", { enumerable: true, get: function () { return ContainersBox_3.ContainersBox; } });
|
|
25
25
|
// components
|
|
26
26
|
var components_1 = require("./components");
|
|
27
|
+
Object.defineProperty(exports, "D_Card", { enumerable: true, get: function () { return components_1.Card; } });
|
|
28
|
+
Object.defineProperty(exports, "D_CardList", { enumerable: true, get: function () { return components_1.CardList; } });
|
|
29
|
+
Object.defineProperty(exports, "D_Checkbox", { enumerable: true, get: function () { return components_1.Checkbox; } });
|
|
30
|
+
Object.defineProperty(exports, "D_Chip", { enumerable: true, get: function () { return components_1.Chip; } });
|
|
31
|
+
Object.defineProperty(exports, "D_ContextMenu", { enumerable: true, get: function () { return components_1.ContextMenu; } });
|
|
32
|
+
Object.defineProperty(exports, "D_ContextMenuItem", { enumerable: true, get: function () { return components_1.ContextMenuItem; } });
|
|
33
|
+
Object.defineProperty(exports, "D_DesktopHeaderBar", { enumerable: true, get: function () { return components_1.DesktopHeaderBar; } });
|
|
34
|
+
Object.defineProperty(exports, "D_DesktopTapBar", { enumerable: true, get: function () { return components_1.DesktopTapBar; } });
|
|
35
|
+
Object.defineProperty(exports, "D_EditApplyTextField", { enumerable: true, get: function () { return components_1.EditApplyTextField; } });
|
|
36
|
+
Object.defineProperty(exports, "D_FilterBar", { enumerable: true, get: function () { return components_1.FilterBar; } });
|
|
37
|
+
Object.defineProperty(exports, "D_FloatingActionButton", { enumerable: true, get: function () { return components_1.FloatingActionButton; } });
|
|
27
38
|
Object.defineProperty(exports, "D_Hero", { enumerable: true, get: function () { return components_1.Hero; } });
|
|
39
|
+
Object.defineProperty(exports, "D_IconButton", { enumerable: true, get: function () { return components_1.IconButton; } });
|
|
40
|
+
Object.defineProperty(exports, "D_ImageSlide", { enumerable: true, get: function () { return components_1.ImageSlide; } });
|
|
41
|
+
Object.defineProperty(exports, "D_MainButton", { enumerable: true, get: function () { return components_1.MainButton; } });
|
|
42
|
+
Object.defineProperty(exports, "D_Radio", { enumerable: true, get: function () { return components_1.Radio; } });
|
|
43
|
+
Object.defineProperty(exports, "D_ReactionButton", { enumerable: true, get: function () { return components_1.ReactionButton; } });
|
|
44
|
+
Object.defineProperty(exports, "D_Select", { enumerable: true, get: function () { return components_1.Select; } });
|
|
28
45
|
Object.defineProperty(exports, "D_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
|
|
46
|
+
Object.defineProperty(exports, "D_TextButton", { enumerable: true, get: function () { return components_1.TextButton; } });
|
|
47
|
+
Object.defineProperty(exports, "D_TextField", { enumerable: true, get: function () { return components_1.TextField; } });
|
|
29
48
|
Object.defineProperty(exports, "D_TextLabel", { enumerable: true, get: function () { return components_1.TextLabel; } });
|
|
49
|
+
Object.defineProperty(exports, "D_UploadIconButton", { enumerable: true, get: function () { return components_1.UploadIconButton; } });
|
|
50
|
+
Object.defineProperty(exports, "D_UploadMainButton", { enumerable: true, get: function () { return components_1.UploadMainButton; } });
|
|
51
|
+
Object.defineProperty(exports, "D_UploadTextButton", { enumerable: true, get: function () { return components_1.UploadTextButton; } });
|
|
52
|
+
Object.defineProperty(exports, "D_UserDesktopNavBar", { enumerable: true, get: function () { return components_1.UserDesktopNavBar; } });
|
|
53
|
+
Object.defineProperty(exports, "D_UserDesktopTabBar", { enumerable: true, get: function () { return components_1.UserDesktopTabBar; } });
|
|
@@ -38,7 +38,7 @@ var S_ContentsContainer1 = styled_components_1.default.div(templateObject_2 || (
|
|
|
38
38
|
var containerColor = _a.containerColor;
|
|
39
39
|
return "background-color: " + containerColor;
|
|
40
40
|
});
|
|
41
|
-
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\
|
|
41
|
+
var S_ContentsContainer2 = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border-left: 1px solid ", ";\n flex-grow: 1;\n min-width: 480px;\n ", ";\n ", ";\n"], ["\n background-color: ", ";\n border-left: 1px solid ", ";\n flex-grow: 1;\n min-width: 480px;\n ", ";\n ", ";\n"])), function (_a) {
|
|
42
42
|
var theme = _a.theme;
|
|
43
43
|
return theme.ui_contentscontainer02_background;
|
|
44
44
|
}, function (_a) {
|
|
@@ -6,9 +6,9 @@ export declare type FillIconNameKeys = keyof typeof fillIcons;
|
|
|
6
6
|
export declare type LineIconNameKeys = keyof typeof lineIcons;
|
|
7
7
|
export declare type UiColors = keyof typeof uiColors;
|
|
8
8
|
export declare type IconProps = {
|
|
9
|
-
iconName
|
|
9
|
+
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
10
10
|
size?: 12 | 16 | 20 | 24 | 32 | 48 | 56 | 64 | 72;
|
|
11
|
-
colorKey
|
|
11
|
+
colorKey?: UiColors;
|
|
12
12
|
fillType?: 'line' | 'fill';
|
|
13
13
|
} & Record<string, any>;
|
|
14
14
|
declare const Icon: ({ iconName, size, colorKey, fillType, ...rest }: IconProps) => JSX.Element;
|
|
@@ -30,7 +30,7 @@ var fill_1 = __importDefault(require("../../../common/assets/icons/fill"));
|
|
|
30
30
|
var line_1 = __importDefault(require("../../../common/assets/icons/line"));
|
|
31
31
|
var ui_colors_1 = require("../../../common/styles/ui-colors");
|
|
32
32
|
var Icon = function (_a) {
|
|
33
|
-
var
|
|
33
|
+
var _b = _a.iconName, iconName = _b === void 0 ? 'ic_unavailable' : _b, _c = _a.size, size = _c === void 0 ? 24 : _c, _d = _a.colorKey, colorKey = _d === void 0 ? 'ui_cpnt_icon_sys_grey_01' : _d, _e = _a.fillType, fillType = _e === void 0 ? 'line' : _e, rest = __rest(_a, ["iconName", "size", "colorKey", "fillType"]);
|
|
34
34
|
var SelectedIcon = fillType === 'line'
|
|
35
35
|
? line_1.default[iconName] || fill_1.default[iconName]
|
|
36
36
|
: fill_1.default[iconName] || line_1.default[iconName];
|
|
@@ -4,11 +4,13 @@ export declare type ImageViewProps = {
|
|
|
4
4
|
shapeType?: 'round' | 'circular' | 'rectangle';
|
|
5
5
|
radius?: 8 | 16 | 24;
|
|
6
6
|
width?: number | 'responsive';
|
|
7
|
-
height?: number;
|
|
7
|
+
height?: number | 'responsive';
|
|
8
8
|
noImageHeight?: number;
|
|
9
|
+
noImageWidth?: number;
|
|
9
10
|
ratio?: '16_9' | '9_16' | '16_10' | '10_16' | '4_3' | '3_4' | '1_1' | 'auto';
|
|
10
11
|
scaleType?: 'fill' | 'contain' | 'cover' | 'none';
|
|
11
12
|
borderMode?: 'use' | 'none';
|
|
13
|
+
backgroundFillMode?: 'use' | 'none';
|
|
12
14
|
};
|
|
13
|
-
declare const ImageView: ({ src, shapeType, radius, width, height, noImageHeight, ratio, scaleType, borderMode }: ImageViewProps) => JSX.Element;
|
|
15
|
+
declare const ImageView: ({ src, shapeType, radius, width, height, noImageHeight, noImageWidth, ratio, scaleType, borderMode, backgroundFillMode }: ImageViewProps) => JSX.Element;
|
|
14
16
|
export default ImageView;
|
|
@@ -3,36 +3,40 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
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
|
+
};
|
|
6
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
27
|
};
|
|
9
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
29
|
var react_1 = __importDefault(require("react"));
|
|
11
|
-
var styled_components_1 =
|
|
30
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
12
31
|
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,
|
|
14
|
-
return (react_1.default.createElement(
|
|
15
|
-
react_1.default.createElement(
|
|
32
|
+
var src = _a.src, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, _c = _a.radius, radius = _c === void 0 ? 8 : _c, width = _a.width, height = _a.height, noImageHeight = _a.noImageHeight, noImageWidth = _a.noImageWidth, _d = _a.ratio, ratio = _d === void 0 ? 'auto' : _d, _e = _a.scaleType, scaleType = _e === void 0 ? 'none' : _e, _f = _a.borderMode, borderMode = _f === void 0 ? 'none' : _f, _g = _a.backgroundFillMode, backgroundFillMode = _g === void 0 ? 'none' : _g;
|
|
33
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, ratio === 'auto' ? (react_1.default.createElement(S_AutoImageViewWrapper, { "$height": height, "$width": width, noImageHeight: noImageHeight, noImageWidth: noImageWidth, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
|
|
34
|
+
react_1.default.createElement(S_AutoImageView, { src: src, "$height": height, "$width": width, scaleType: scaleType }))) : (react_1.default.createElement(S_RatioImageViewWrapper, { "$width": width, borderMode: borderMode, shapeType: shapeType, radius: radius, backgroundFillMode: backgroundFillMode },
|
|
35
|
+
react_1.default.createElement(S_RatioImageView, { "$src": src, scaleType: scaleType, ratio: ratio })))));
|
|
16
36
|
};
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
return
|
|
20
|
-
}, function (_a) {
|
|
21
|
-
var $width = _a.$width;
|
|
22
|
-
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
23
|
-
});
|
|
24
|
-
var S_ImageView = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-position: center;\n background-repeat: no-repeat;\n box-sizing: border-box;\n overflow: hidden;\n width: 100%;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n background-position: center;\n background-repeat: no-repeat;\n box-sizing: border-box;\n overflow: hidden;\n width: 100%;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
25
|
-
var theme = _a.theme, $src = _a.$src;
|
|
26
|
-
return !$src && "background-color: " + theme.ui_temp_grey_04;
|
|
27
|
-
}, function (_a) {
|
|
28
|
-
var $src = _a.$src, ratio = _a.ratio;
|
|
29
|
-
return ratio !== 'auto' && "background-image: url(" + $src + ")";
|
|
30
|
-
}, function (_a) {
|
|
31
|
-
var $height = _a.$height, ratio = _a.ratio;
|
|
32
|
-
return ratio === 'auto' && $height && "height: " + $height + "px";
|
|
33
|
-
}, function (_a) {
|
|
34
|
-
var $height = _a.$height, noImageHeight = _a.noImageHeight, ratio = _a.ratio;
|
|
35
|
-
return ratio === 'auto' && ($height || noImageHeight) && "min-height: " + ($height || noImageHeight) + "px";
|
|
37
|
+
var wrapperStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"], ["\n box-sizing: border-box;\n display: inline-block;\n vertical-align: bottom;\n overflow: hidden;\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
38
|
+
var theme = _a.theme, backgroundFillMode = _a.backgroundFillMode;
|
|
39
|
+
return backgroundFillMode === 'use' ? "background-color: " + theme.ui_temp_grey_04 : '';
|
|
36
40
|
}, function (_a) {
|
|
37
41
|
var borderMode = _a.borderMode, theme = _a.theme;
|
|
38
42
|
return borderMode === 'use' && "border: 1px solid " + theme.ui_profile_image_border;
|
|
@@ -44,6 +48,17 @@ var S_ImageView = styled_components_1.default.div(templateObject_2 || (templateO
|
|
|
44
48
|
circular: 'border-radius: 50%',
|
|
45
49
|
rectangle: ''
|
|
46
50
|
}[shapeType];
|
|
51
|
+
});
|
|
52
|
+
var S_RatioImageViewWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n min-width: ", ";\n width: ", ";\n"], ["\n ", "\n min-width: ", ";\n width: ", ";\n"])), wrapperStyle, function (_a) {
|
|
53
|
+
var $width = _a.$width;
|
|
54
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
55
|
+
}, function (_a) {
|
|
56
|
+
var $width = _a.$width;
|
|
57
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
58
|
+
});
|
|
59
|
+
var S_RatioImageView = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-position: center;\n background-repeat: no-repeat;\n width: 100%;\n ", ";\n ", ";\n ", ";\n"], ["\n background-position: center;\n background-repeat: no-repeat;\n width: 100%;\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
60
|
+
var theme = _a.theme, $src = _a.$src;
|
|
61
|
+
return $src ? "background-image: url(" + $src + ")" : "background-color: " + theme.ui_temp_grey_04;
|
|
47
62
|
}, function (_a) {
|
|
48
63
|
var scaleType = _a.scaleType;
|
|
49
64
|
return scaleType &&
|
|
@@ -56,6 +71,7 @@ var S_ImageView = styled_components_1.default.div(templateObject_2 || (templateO
|
|
|
56
71
|
}, function (_a) {
|
|
57
72
|
var ratio = _a.ratio;
|
|
58
73
|
return ratio &&
|
|
74
|
+
ratio !== 'auto' &&
|
|
59
75
|
{
|
|
60
76
|
'16_9': 'padding-top: 56.25%',
|
|
61
77
|
'9_16': 'padding-top: 177.77%',
|
|
@@ -63,13 +79,79 @@ var S_ImageView = styled_components_1.default.div(templateObject_2 || (templateO
|
|
|
63
79
|
'10_16': 'padding-top: 159.74%',
|
|
64
80
|
'4_3': 'padding-top: 75%',
|
|
65
81
|
'3_4': 'padding-top: 133.33%',
|
|
66
|
-
'1_1': 'padding-top: 100%'
|
|
67
|
-
auto: ''
|
|
82
|
+
'1_1': 'padding-top: 100%'
|
|
68
83
|
}[ratio];
|
|
69
84
|
});
|
|
70
|
-
var
|
|
85
|
+
var onlyWidthWrapperStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"], ["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"])), function (_a) {
|
|
86
|
+
var noImageHeight = _a.noImageHeight;
|
|
87
|
+
return (noImageHeight ? noImageHeight + "px" : 'auto');
|
|
88
|
+
}, function (_a) {
|
|
89
|
+
var $width = _a.$width;
|
|
90
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
91
|
+
}, function (_a) {
|
|
92
|
+
var noImageHeight = _a.noImageHeight;
|
|
93
|
+
return (noImageHeight ? noImageHeight + "px" : 'auto');
|
|
94
|
+
}, function (_a) {
|
|
95
|
+
var $width = _a.$width;
|
|
96
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
97
|
+
}, function (_a) {
|
|
98
|
+
var theme = _a.theme, noImageHeight = _a.noImageHeight;
|
|
99
|
+
return noImageHeight ? "background-color: " + theme.ui_temp_grey_04 : '';
|
|
100
|
+
});
|
|
101
|
+
var onlyHeightWrapperStyle = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"], ["\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n ", ";\n"])), function (_a) {
|
|
102
|
+
var $height = _a.$height;
|
|
103
|
+
return ($height === 'responsive' ? '100%' : $height + "px");
|
|
104
|
+
}, function (_a) {
|
|
105
|
+
var noImageWidth = _a.noImageWidth;
|
|
106
|
+
return (noImageWidth ? noImageWidth + "px" : 'auto');
|
|
107
|
+
}, function (_a) {
|
|
108
|
+
var $height = _a.$height;
|
|
109
|
+
return ($height === 'responsive' ? '100%' : $height + "px");
|
|
110
|
+
}, function (_a) {
|
|
111
|
+
var noImageWidth = _a.noImageWidth;
|
|
112
|
+
return (noImageWidth ? noImageWidth + "px" : 'auto');
|
|
113
|
+
}, function (_a) {
|
|
114
|
+
var theme = _a.theme, noImageWidth = _a.noImageWidth;
|
|
115
|
+
return noImageWidth ? "background-color: " + theme.ui_temp_grey_04 : '';
|
|
116
|
+
});
|
|
117
|
+
var bothWrapperStyle = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n"], ["\n min-height: ", ";\n height: ", ";\n min-width: ", ";\n width: ", ";\n"])), function (_a) {
|
|
118
|
+
var $height = _a.$height;
|
|
119
|
+
return ($height === 'responsive' ? '100%' : $height + "px");
|
|
120
|
+
}, function (_a) {
|
|
121
|
+
var $height = _a.$height;
|
|
122
|
+
return ($height === 'responsive' ? '100%' : $height + "px");
|
|
123
|
+
}, function (_a) {
|
|
124
|
+
var $width = _a.$width;
|
|
125
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
126
|
+
}, function (_a) {
|
|
127
|
+
var $width = _a.$width;
|
|
128
|
+
return ($width === 'responsive' ? '100%' : $width + "px");
|
|
129
|
+
});
|
|
130
|
+
var onlyWidthStyle = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 100%;\n height: auto;\n"], ["\n width: 100%;\n height: auto;\n"])));
|
|
131
|
+
var onlyHeightStyle = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: auto;\n height: 100%;\n"], ["\n width: auto;\n height: 100%;\n"])));
|
|
132
|
+
var bothStyle = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
133
|
+
var S_AutoImageViewWrapper = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n ", ";\n ", ";\n ", ";\n"], ["\n ", "\n ", ";\n ", ";\n ", ";\n"])), wrapperStyle, function (_a) {
|
|
134
|
+
var $width = _a.$width, $height = _a.$height;
|
|
135
|
+
return $width && !$height && onlyWidthWrapperStyle;
|
|
136
|
+
}, function (_a) {
|
|
137
|
+
var $width = _a.$width, $height = _a.$height;
|
|
138
|
+
return !$width && $height && onlyHeightWrapperStyle;
|
|
139
|
+
}, function (_a) {
|
|
140
|
+
var $width = _a.$width, $height = _a.$height;
|
|
141
|
+
return $width && $height && bothWrapperStyle;
|
|
142
|
+
});
|
|
143
|
+
var S_AutoImageView = styled_components_1.default.img(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n vertical-align: bottom;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n vertical-align: bottom;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
|
|
71
144
|
var scaleType = _a.scaleType;
|
|
72
|
-
return (scaleType !== 'none' ? "object-fit: " + scaleType + ";
|
|
145
|
+
return (scaleType !== 'none' ? "object-fit: " + scaleType + ";" : '');
|
|
146
|
+
}, function (_a) {
|
|
147
|
+
var $width = _a.$width, $height = _a.$height;
|
|
148
|
+
return $width && !$height && onlyWidthStyle;
|
|
149
|
+
}, function (_a) {
|
|
150
|
+
var $width = _a.$width, $height = _a.$height;
|
|
151
|
+
return !$width && $height && onlyHeightStyle;
|
|
152
|
+
}, function (_a) {
|
|
153
|
+
var $width = _a.$width, $height = _a.$height;
|
|
154
|
+
return $width && $height && bothStyle;
|
|
73
155
|
});
|
|
74
156
|
exports.default = ImageView;
|
|
75
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
157
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type SwitchProps = {
|
|
3
|
+
status?: 'off' | 'on';
|
|
4
|
+
state?: 'normal' | 'disabled';
|
|
5
|
+
name: string;
|
|
6
|
+
onClick?: (status: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
declare function Switch({ status, state, name, onClick }: SwitchProps): JSX.Element;
|
|
9
|
+
export default Switch;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 = __importStar(require("react"));
|
|
30
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
31
|
+
function Switch(_a) {
|
|
32
|
+
var _b = _a.status, status = _b === void 0 ? 'off' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, name = _a.name, onClick = _a.onClick;
|
|
33
|
+
var _d = (0, react_1.useState)(false), checked = _d[0], setChecked = _d[1];
|
|
34
|
+
var handleChange = function (e) {
|
|
35
|
+
setChecked(e.target.checked);
|
|
36
|
+
onClick && onClick(e.target.checked);
|
|
37
|
+
};
|
|
38
|
+
(0, react_1.useEffect)(function () {
|
|
39
|
+
if (status === 'off') {
|
|
40
|
+
setChecked(false);
|
|
41
|
+
}
|
|
42
|
+
if (status === 'on') {
|
|
43
|
+
setChecked(true);
|
|
44
|
+
}
|
|
45
|
+
}, [status]);
|
|
46
|
+
return (react_1.default.createElement(S_Switch, null,
|
|
47
|
+
react_1.default.createElement(S_Input, { type: "checkbox", hidden: true, id: name, checked: checked, disabled: state === 'disabled', onChange: handleChange }),
|
|
48
|
+
react_1.default.createElement(S_Label, { htmlFor: name, disabled: state === 'disabled' })));
|
|
49
|
+
}
|
|
50
|
+
var S_Switch = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
51
|
+
var S_Label = styled_components_1.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 56px;\n height: 32px;\n border-radius: 24px;\n background: ", ";\n cursor: pointer;\n\n &::after {\n content: '';\n display: block;\n border-radius: 24px;\n width: 24px;\n height: 24px;\n margin: ", ";\n background: ", ";\n }\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 56px;\n height: 32px;\n border-radius: 24px;\n background: ", ";\n cursor: pointer;\n\n &::after {\n content: '';\n display: block;\n border-radius: 24px;\n width: 24px;\n height: 24px;\n margin: ", ";\n background: ", ";\n }\n"])), function (_a) {
|
|
52
|
+
var theme = _a.theme, disabled = _a.disabled;
|
|
53
|
+
return disabled ? theme.ui_cpnt_selcontrols_base_off_disabled : theme.ui_cpnt_selcontrols_base_off;
|
|
54
|
+
}, function (_a) {
|
|
55
|
+
var theme = _a.theme;
|
|
56
|
+
return theme.spacing.spacingA;
|
|
57
|
+
}, function (_a) {
|
|
58
|
+
var theme = _a.theme;
|
|
59
|
+
return theme.ui_cpnt_selcontrols_circular;
|
|
60
|
+
});
|
|
61
|
+
var S_Input = styled_components_1.default.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:checked + ", " {\n background: ", ";\n\n &::after {\n position: absolute;\n right: 0px;\n margin-top: ", ";\n margin-bottom: ", ";\n margin-right: ", ";\n }\n }\n"], ["\n &:checked + ", " {\n background: ", ";\n\n &::after {\n position: absolute;\n right: 0px;\n margin-top: ", ";\n margin-bottom: ", ";\n margin-right: ", ";\n }\n }\n"])), S_Label, function (_a) {
|
|
62
|
+
var theme = _a.theme, disabled = _a.disabled;
|
|
63
|
+
return disabled ? theme.ui_cpnt_selcontrols_base_on_disabled : theme.ui_cpnt_selcontrols_base_on;
|
|
64
|
+
}, function (_a) {
|
|
65
|
+
var theme = _a.theme;
|
|
66
|
+
return theme.spacing.spacingA;
|
|
67
|
+
}, function (_a) {
|
|
68
|
+
var theme = _a.theme;
|
|
69
|
+
return theme.spacing.spacingA;
|
|
70
|
+
}, function (_a) {
|
|
71
|
+
var theme = _a.theme;
|
|
72
|
+
return theme.spacing.spacingA;
|
|
73
|
+
});
|
|
74
|
+
exports.default = Switch;
|
|
75
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Switch } from './Switch';
|
|
@@ -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.Switch = void 0;
|
|
7
|
+
var Switch_1 = require("./Switch");
|
|
8
|
+
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return __importDefault(Switch_1).default; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Divider } from './Divider';
|
|
2
2
|
import { Icon } from './Icon';
|
|
3
|
-
import { IconButton } from './IconButton';
|
|
4
3
|
import { ImageView } from './ImageView';
|
|
5
4
|
import { Spacing } from './Spacing';
|
|
6
|
-
|
|
5
|
+
import { Switch } from './Switch';
|
|
6
|
+
export { Divider, Icon, ImageView, Spacing, Switch };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Switch = exports.Spacing = exports.ImageView = exports.Icon = exports.Divider = void 0;
|
|
4
4
|
var Divider_1 = require("./Divider");
|
|
5
5
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return Divider_1.Divider; } });
|
|
6
6
|
var Icon_1 = require("./Icon");
|
|
7
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; } });
|
|
10
8
|
var ImageView_1 = require("./ImageView");
|
|
11
9
|
Object.defineProperty(exports, "ImageView", { enumerable: true, get: function () { return ImageView_1.ImageView; } });
|
|
12
10
|
var Spacing_1 = require("./Spacing");
|
|
13
11
|
Object.defineProperty(exports, "Spacing", { enumerable: true, get: function () { return Spacing_1.Spacing; } });
|
|
12
|
+
var Switch_1 = require("./Switch");
|
|
13
|
+
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.Switch; } });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Divider, Icon,
|
|
2
|
-
export { Divider, Icon,
|
|
1
|
+
import { Divider, Icon, ImageView, Spacing, Switch } from './components';
|
|
2
|
+
export { Divider, Icon, ImageView, Spacing, Switch };
|
package/dist/src/hybrid/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/* eslint-disable import/order */
|
|
3
3
|
/* eslint-disable import/first */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.Switch = exports.Spacing = exports.ImageView = exports.Icon = exports.Divider = void 0;
|
|
6
6
|
// component
|
|
7
7
|
var components_1 = require("./components");
|
|
8
8
|
Object.defineProperty(exports, "Divider", { enumerable: true, get: function () { return components_1.Divider; } });
|
|
9
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; } });
|
|
11
10
|
Object.defineProperty(exports, "ImageView", { enumerable: true, get: function () { return components_1.ImageView; } });
|
|
12
11
|
Object.defineProperty(exports, "Spacing", { enumerable: true, get: function () { return components_1.Spacing; } });
|
|
12
|
+
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return components_1.Switch; } });
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { TFunctionResult } from 'i18next';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Path } from 'react-hook-form';
|
|
4
|
+
import { desktopFontSize, fontWeight } from '../../../../common/styles/theme';
|
|
5
|
+
import { uiColors } from '../../../../common/styles/ui-colors';
|
|
6
|
+
import { IFormValues } from '../../../../common/types/form';
|
|
7
|
+
export declare type DesktopFontSize = keyof typeof desktopFontSize;
|
|
8
|
+
export declare type FontWeight = keyof typeof fontWeight;
|
|
9
|
+
export declare type UiColors = keyof typeof uiColors;
|
|
10
|
+
export declare type TextFieldBaseProps = {
|
|
11
|
+
name: Path<IFormValues>;
|
|
12
|
+
hintText?: string | number | null | TFunctionResult;
|
|
13
|
+
defaultText?: string | number | null | TFunctionResult;
|
|
14
|
+
validation?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
preventBlankMode?: 'none' | 'trim' | 'all';
|
|
18
|
+
textLineType: 'single' | 'multi' | 'auto';
|
|
19
|
+
multiRows?: number;
|
|
20
|
+
autoMinRows?: number;
|
|
21
|
+
autoMaxRows?: number;
|
|
22
|
+
inputType?: string;
|
|
23
|
+
state?: 'normal' | 'read_only' | 'disabled';
|
|
24
|
+
colorTheme?: 'none' | 'dark';
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
maxLength?: number;
|
|
28
|
+
textSize: DesktopFontSize;
|
|
29
|
+
textWeight: FontWeight;
|
|
30
|
+
fieldPadding?: string;
|
|
31
|
+
fieldHeight?: number;
|
|
32
|
+
deleteIconMode?: 'none' | 'use';
|
|
33
|
+
deleteIconSize?: 12 | 16 | 20 | 24;
|
|
34
|
+
deleteIconColor?: UiColors;
|
|
35
|
+
isFocused?: boolean;
|
|
36
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
37
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
38
|
+
onFocus?: () => void;
|
|
39
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
40
|
+
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
41
|
+
onTarget?: () => void;
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
} & Record<string, any>;
|
|
44
|
+
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
45
|
+
export default TextFieldBase;
|