@zohodesk/components 1.0.0-temp-255 → 1.0.0-temp-256
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/README.md +20 -3
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +4 -4
- package/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css +14 -0
- package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css +14 -0
- package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css +14 -0
- package/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css +14 -0
- package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css +14 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +6 -6
- package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css +14 -0
- package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css +14 -0
- package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css +14 -0
- package/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css +14 -0
- package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css +14 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +3 -3
- package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css +14 -0
- package/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css +14 -0
- package/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css +14 -0
- package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css +14 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css +14 -0
- package/cbt.config.js +12 -3
- package/es/AppContainer/AppContainer.js +2 -0
- package/es/DateTime/DateWidget.js +32 -6
- package/es/Provider/LibraryContext.js +5 -1
- package/es/Select/Select.js +3 -1
- package/es/Tab/Tab.js +62 -11
- package/es/Tab/Tab.module.css +25 -0
- package/es/Tab/Tabs.js +37 -6
- package/es/Tab/Tabs.module.css +48 -3
- package/es/Tab/__tests__/Tab.spec.js +112 -0
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +316 -0
- package/es/Tab/props/defaultProps.js +3 -2
- package/es/Tab/props/propTypes.js +12 -3
- package/es/Tab/utils/tabConfigs.js +5 -0
- package/es/utils/datetime/common.js +10 -3
- package/lib/AppContainer/AppContainer.js +4 -0
- package/lib/DateTime/DateWidget.js +33 -6
- package/lib/Provider/LibraryContext.js +5 -1
- package/lib/Select/Select.js +3 -1
- package/lib/Tab/Tab.js +62 -9
- package/lib/Tab/Tab.module.css +25 -0
- package/lib/Tab/Tabs.js +34 -3
- package/lib/Tab/Tabs.module.css +48 -3
- package/lib/Tab/__tests__/Tab.spec.js +115 -0
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +316 -0
- package/lib/Tab/props/defaultProps.js +3 -2
- package/lib/Tab/props/propTypes.js +14 -3
- package/lib/Tab/utils/tabConfigs.js +7 -1
- package/lib/utils/datetime/common.js +10 -2
- package/package.json +11 -10
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TAB_POPUP_POSITION_MAPPING = exports.TAB_DIRECTION_MAPPING = exports.TAB_ALIGN_MAPPING = void 0;
|
|
6
|
+
exports.VARIANT = exports.TAB_POPUP_POSITION_MAPPING = exports.TAB_DIRECTION_MAPPING = exports.TAB_ALIGN_MAPPING = void 0;
|
|
7
|
+
var VARIANT = {
|
|
8
|
+
TEXT: 'text',
|
|
9
|
+
ICON: 'icon',
|
|
10
|
+
ICON_WITH_TEXT: 'iconWithText'
|
|
11
|
+
};
|
|
12
|
+
exports.VARIANT = VARIANT;
|
|
7
13
|
var TAB_ALIGN_MAPPING = {
|
|
8
14
|
vertical: 'column',
|
|
9
15
|
horizontal: 'row',
|
|
@@ -46,6 +46,10 @@ function getTimeOffset() {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
function formatDate(dateMill, mask) {
|
|
49
|
+
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
50
|
+
i18nShortMonths = _ref.i18nShortMonths,
|
|
51
|
+
i18nMonths = _ref.i18nMonths;
|
|
52
|
+
|
|
49
53
|
var date = new Date(dateMill);
|
|
50
54
|
var O = getTimeOffset()[0];
|
|
51
55
|
var Z = getTimeOffset()[1];
|
|
@@ -57,6 +61,10 @@ function formatDate(dateMill, mask) {
|
|
|
57
61
|
var M = date.getMinutes();
|
|
58
62
|
var s = date.getSeconds();
|
|
59
63
|
var L = date.getMilliseconds();
|
|
64
|
+
var defaultShortMonths = dateFormat.monthNames.slice(0, 12);
|
|
65
|
+
var defaultMonths = dateFormat.monthNames.slice(12);
|
|
66
|
+
var resolvedShortMonths = Array.isArray(i18nShortMonths) ? i18nShortMonths : defaultShortMonths;
|
|
67
|
+
var resolvedMonths = Array.isArray(i18nMonths) ? i18nMonths : defaultMonths;
|
|
60
68
|
var flags = {
|
|
61
69
|
d: d,
|
|
62
70
|
O: O,
|
|
@@ -69,8 +77,8 @@ function formatDate(dateMill, mask) {
|
|
|
69
77
|
DDDD: dateFormat.dayNames[D + 7],
|
|
70
78
|
M: m + 1,
|
|
71
79
|
MM: pad(m + 1, 2),
|
|
72
|
-
MMM:
|
|
73
|
-
MMMM:
|
|
80
|
+
MMM: resolvedShortMonths[m],
|
|
81
|
+
MMMM: resolvedMonths[m],
|
|
74
82
|
yy: String(y).slice(2),
|
|
75
83
|
YY: String(y).slice(2),
|
|
76
84
|
yyyy: y,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-256",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@testing-library/react-hooks": "^7.0.2",
|
|
75
75
|
"@testing-library/user-event": "^13.0.10",
|
|
76
76
|
"@dot-system/css-audit-tool": "1.0.0",
|
|
77
|
-
"@zohodesk-private/color-variable-preprocessor": "1.3.
|
|
77
|
+
"@zohodesk-private/color-variable-preprocessor": "1.3.3",
|
|
78
78
|
"@zohodesk-private/css-variable-migrator": "1.0.11",
|
|
79
79
|
"@zohodesk-private/node-plugins": "1.1.14",
|
|
80
80
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
@@ -82,17 +82,18 @@
|
|
|
82
82
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
83
83
|
"@zohodesk/dotkit": "1.0.9",
|
|
84
84
|
"@zohodesk/hooks": "2.0.8",
|
|
85
|
-
"@zohodesk/icons": "1.3.
|
|
86
|
-
"@zohodesk/layout": "3.
|
|
87
|
-
"@zohodesk/svg": "1.3.
|
|
85
|
+
"@zohodesk/icons": "1.3.5",
|
|
86
|
+
"@zohodesk/layout": "3.2.0",
|
|
87
|
+
"@zohodesk/svg": "1.3.8",
|
|
88
88
|
"@zohodesk/utils": "1.3.16",
|
|
89
|
-
"@zohodesk/variables": "1.3.
|
|
89
|
+
"@zohodesk/variables": "1.3.2",
|
|
90
90
|
"@zohodesk/virtualizer": "1.0.13",
|
|
91
91
|
"react-sortable-hoc": "^0.8.3",
|
|
92
92
|
"velocity-react": "1.4.3",
|
|
93
93
|
"@zohodesk/react-cli": "1.1.27",
|
|
94
94
|
"@zohodesk/client_build_tool": "0.0.23",
|
|
95
95
|
"color": "4.2.3",
|
|
96
|
+
"@zohodesk/jsx_attribute_wrapper": "1.0.0",
|
|
96
97
|
"@dot-system/css-utility": "0.1.1"
|
|
97
98
|
},
|
|
98
99
|
"dependencies": {
|
|
@@ -102,16 +103,16 @@
|
|
|
102
103
|
"selectn": "1.1.2"
|
|
103
104
|
},
|
|
104
105
|
"peerDependencies": {
|
|
105
|
-
"@zohodesk/icons": "1.3.
|
|
106
|
-
"@zohodesk/variables": "1.3.
|
|
107
|
-
"@zohodesk/svg": "1.3.
|
|
106
|
+
"@zohodesk/icons": "1.3.5",
|
|
107
|
+
"@zohodesk/variables": "1.3.2",
|
|
108
|
+
"@zohodesk/svg": "1.3.8",
|
|
108
109
|
"@zohodesk/virtualizer": "1.0.13",
|
|
109
110
|
"velocity-react": "1.4.3",
|
|
110
111
|
"react-sortable-hoc": "^0.8.3",
|
|
111
112
|
"@zohodesk/hooks": "2.0.8",
|
|
112
113
|
"@zohodesk/utils": "1.3.16",
|
|
113
114
|
"@zohodesk/a11y": "2.3.9",
|
|
114
|
-
"@zohodesk/layout": "3.
|
|
115
|
+
"@zohodesk/layout": "3.2.0",
|
|
115
116
|
"@zohodesk/dotkit": "1.0.9",
|
|
116
117
|
"color": "4.2.3",
|
|
117
118
|
"@dot-system/css-utility": "0.1.1"
|