td-stylekit 26.10.3 → 26.12.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [26.12.1](https://github.com/treasure-data/td-stylekit/compare/v26.12.0...v26.12.1) (2022-06-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **CON-10216:** Prevent errors from Google Chrome translate ([#1284](https://github.com/treasure-data/td-stylekit/issues/1284)) ([4dc30e7](https://github.com/treasure-data/td-stylekit/commit/4dc30e7))
7
+
8
+ # [26.12.0](https://github.com/treasure-data/td-stylekit/compare/v26.11.0...v26.12.0) (2022-05-31)
9
+
10
+
11
+ ### Features
12
+
13
+ * **CON-10146:** Correct time formatting four hours-minutes time editor format ([#1282](https://github.com/treasure-data/td-stylekit/issues/1282)) ([f670fb0](https://github.com/treasure-data/td-stylekit/commit/f670fb0))
14
+
15
+ # [26.11.0](https://github.com/treasure-data/td-stylekit/compare/v26.10.3...v26.11.0) (2022-05-30)
16
+
17
+
18
+ ### Features
19
+
20
+ * **CON-10143:** Cannot open Date picker when click on Calendar icon ([#1281](https://github.com/treasure-data/td-stylekit/issues/1281)) ([f4c2b33](https://github.com/treasure-data/td-stylekit/commit/f4c2b33))
21
+
1
22
  ## [26.10.3](https://github.com/treasure-data/td-stylekit/compare/v26.10.2...v26.10.3) (2022-05-27)
2
23
 
3
24
 
@@ -58,7 +58,11 @@ var createActionItem = function createActionItem(item, index, dataInstrumentatio
58
58
  onClick: item.onClick,
59
59
  children: [Icon ? (0, _jsxRuntime.jsx)(Icon, {
60
60
  "data-gs": gs("src", "actionbar", "actionbar.tsx", "icon-button", "icon")
61
- }) : null, item.label && !item.iconOnly ? item.label : null]
61
+ }) : null, item.label && !item.iconOnly ? (0, _jsxRuntime.jsx)("span", {
62
+ "data-gs-c": gsC(item.label),
63
+ "data-gs": gs("src", "actionbar", "actionbar.tsx", "icon-button", "span"),
64
+ children: item.label
65
+ }) : null]
62
66
  }, index);
63
67
  };
64
68
 
@@ -73,6 +73,8 @@ var DATE_FORMATS = ['MMM DD, YYYY', 'MMM DD YYYY', 'MMM D, YYYY', 'MMM D YYYY',
73
73
  exports.DATE_FORMATS = DATE_FORMATS;
74
74
  var TIME_FORMAT_24 = 'HH:mm:ss';
75
75
  var TIME_FORMAT_12 = 'hh:mm:ss A';
76
+ var TIME_FORMAT_SHORT_24 = 'HH:mm';
77
+ var TIME_FORMAT_SHORT_12 = 'hh:mm A';
76
78
  var TIME_FORMAT_MS = ':mm:ss';
77
79
  var TIME_FORMAT_HM = 'hh:mm';
78
80
 
@@ -112,8 +114,10 @@ var resolveDisplayFormat = function resolveDisplayFormat(hasTime, timePeriod, de
112
114
 
113
115
  if (timeEditor === 'minutes-seconds') {
114
116
  timeFormat = TIME_FORMAT_MS;
115
- } else if (timeEditor === 'hours-minutes' || timeEditor === 'minutes') {
117
+ } else if (timeEditor === 'minutes') {
116
118
  timeFormat = TIME_FORMAT_HM;
119
+ } else if (timeEditor === 'hours-minutes') {
120
+ timeFormat = timePeriod === '24' ? TIME_FORMAT_SHORT_24 : TIME_FORMAT_SHORT_12;
117
121
  } else {
118
122
  timeFormat = timePeriod === '24' ? TIME_FORMAT_24 : TIME_FORMAT_12;
119
123
  }
@@ -363,7 +367,9 @@ var UnstyledDateControl = function UnstyledDateControl(_ref) {
363
367
  hidden: inline,
364
368
  disabled: disabled,
365
369
  children: (0, _jsxRuntime.jsx)(_Icon["default"].Medium.Calendar, {
366
- "data-gs": gs("src", "datecontrol", "datecontrol.tsx", "container", "input-wrapper", "input-icon-wrapper", "icon-medium-calendar")
370
+ "data-gs": gs("src", "datecontrol", "datecontrol.tsx", "container", "input-wrapper", "input-icon-wrapper", "icon-medium-calendar"),
371
+ onClick: !show ? onShow : undefined,
372
+ "data-instrumentation": "".concat(dataInstrumentation, "-calendar-icon")
367
373
  })
368
374
  }), (0, _jsxRuntime.jsx)(_elements.DateFormControl, _objectSpread(_objectSpread({
369
375
  "data-gs-c": gsC(name, inputValue),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "td-stylekit",
3
- "version": "26.10.3",
3
+ "version": "26.12.1",
4
4
  "main": "dist/es/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",