@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.
Files changed (49) hide show
  1. package/README.md +20 -3
  2. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +4 -4
  3. package/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css +14 -0
  4. package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css +14 -0
  5. package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css +14 -0
  6. package/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css +14 -0
  7. package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css +14 -0
  8. package/assets/Appearance/light/mode/Component_LightMode.module.css +6 -6
  9. package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css +14 -0
  10. package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css +14 -0
  11. package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css +14 -0
  12. package/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css +14 -0
  13. package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css +14 -0
  14. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +3 -3
  15. package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css +14 -0
  16. package/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css +14 -0
  17. package/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css +14 -0
  18. package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css +14 -0
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css +14 -0
  20. package/cbt.config.js +12 -3
  21. package/es/AppContainer/AppContainer.js +2 -0
  22. package/es/DateTime/DateWidget.js +32 -6
  23. package/es/Provider/LibraryContext.js +5 -1
  24. package/es/Select/Select.js +3 -1
  25. package/es/Tab/Tab.js +62 -11
  26. package/es/Tab/Tab.module.css +25 -0
  27. package/es/Tab/Tabs.js +37 -6
  28. package/es/Tab/Tabs.module.css +48 -3
  29. package/es/Tab/__tests__/Tab.spec.js +112 -0
  30. package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +316 -0
  31. package/es/Tab/props/defaultProps.js +3 -2
  32. package/es/Tab/props/propTypes.js +12 -3
  33. package/es/Tab/utils/tabConfigs.js +5 -0
  34. package/es/utils/datetime/common.js +10 -3
  35. package/lib/AppContainer/AppContainer.js +4 -0
  36. package/lib/DateTime/DateWidget.js +33 -6
  37. package/lib/Provider/LibraryContext.js +5 -1
  38. package/lib/Select/Select.js +3 -1
  39. package/lib/Tab/Tab.js +62 -9
  40. package/lib/Tab/Tab.module.css +25 -0
  41. package/lib/Tab/Tabs.js +34 -3
  42. package/lib/Tab/Tabs.module.css +48 -3
  43. package/lib/Tab/__tests__/Tab.spec.js +115 -0
  44. package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +316 -0
  45. package/lib/Tab/props/defaultProps.js +3 -2
  46. package/lib/Tab/props/propTypes.js +14 -3
  47. package/lib/Tab/utils/tabConfigs.js +7 -1
  48. package/lib/utils/datetime/common.js +10 -2
  49. 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: dateFormat.monthNames[m],
73
- MMMM: dateFormat.monthNames[m + 12],
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-255",
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.1",
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.3",
86
- "@zohodesk/layout": "3.1.0",
87
- "@zohodesk/svg": "1.3.5",
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.1",
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.3",
106
- "@zohodesk/variables": "1.3.1",
107
- "@zohodesk/svg": "1.3.5",
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.1.0",
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"