@invoicebox/ui 0.1.0-alpha.222 → 0.1.0-alpha.223

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.
@@ -10,7 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
10
10
  var LibCalendar = exports.LibCalendar = (0, _styledComponents["default"])(_reactCalendar["default"]).withConfig({
11
11
  displayName: "styles__LibCalendar",
12
12
  componentId: "sc-1evd6f-0"
13
- })(["border:none;width:240px;min-width:210px;background:transparent;@media (max-width:320px){width:225px;}.react-calendar__navigation{margin-bottom:0;}.react-calendar__navigation__arrow{font-size:24px;background-color:transparent !important;color:", ";}.react-calendar__navigation__arrow:disabled{opacity:0.4;cursor:default;}.react-calendar__navigation__arrow:hover:not([disabled]){opacity:0.6;}.react-calendar__navigation__label{font-size:14px;background-color:transparent !important;cursor:default;}.react-calendar__month-view__weekdays__weekday{color:", ";font-size:12px;font-weight:400;}.react-calendar__month-view__weekdays__weekday abbr{text-decoration:none;}.react-calendar__tile{font-size:12px;color:", ";background-color:transparent !important;padding:4px 6.6667px;border-radius:5px;margin-bottom:4px;}.react-calendar__tile:disabled{opacity:0.4;cursor:default;}.react-calendar__tile:hover:not([disabled]){opacity:0.6;}.react-calendar__tile--active{background-color:", " !important;color:", ";}.react-calendar__tile--active:hover{opacity:1 !important;}", ""], function (_ref) {
13
+ })(["border:none;width:210px;min-width:210px;background:transparent;@media (max-width:320px){width:225px;}.react-calendar__navigation{margin-bottom:16px;height:28px;}.react-calendar__navigation__arrow{font-size:24px;background-color:transparent !important;color:", ";width:28px;height:28px;min-width:28px;display:flex;justify-content:center;align-items:center;}.react-calendar__navigation__arrow:disabled{opacity:0.4;cursor:default;}.react-calendar__navigation__arrow:hover:not([disabled]){opacity:0.6;}.react-calendar__navigation__label{font-size:14px;background-color:transparent !important;cursor:default;}.react-calendar__month-view__weekdays__weekday{color:", ";font-size:12px;font-weight:400;line-height:18px;width:30px;height:22px;flex:0 0 14.29% !important;padding:0;display:flex;justify-content:center;align-items:center;}.react-calendar__month-view__weekdays__weekday abbr{text-decoration:none;}.react-calendar__tile{font-size:12px;color:", ";background-color:transparent !important;padding:0;border-radius:5px;margin-bottom:4px;width:30px;height:22px;flex:0 0 14.29% !important;}.react-calendar__tile:disabled{opacity:0.4;cursor:default;}.react-calendar__tile:hover:not([disabled]){opacity:0.6;}.react-calendar__tile--active{background-color:", " !important;color:", ";}.react-calendar__tile--active:hover{opacity:1 !important;}", ""], function (_ref) {
14
14
  var $arrow = _ref.$arrow;
15
15
  return $arrow;
16
16
  }, function (_ref2) {
@@ -2,5 +2,6 @@ import { FC, ReactNode } from 'react';
2
2
  export type TProps = {
3
3
  children: ReactNode;
4
4
  maxHeight?: number;
5
+ width?: number;
5
6
  };
6
7
  export declare const Scrollbar: FC<TProps>;
@@ -14,7 +14,9 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
14
14
  var Scrollbar = exports.Scrollbar = function Scrollbar(_ref) {
15
15
  var children = _ref.children,
16
16
  _ref$maxHeight = _ref.maxHeight,
17
- maxHeight = _ref$maxHeight === void 0 ? '100%' : _ref$maxHeight;
17
+ maxHeight = _ref$maxHeight === void 0 ? '100%' : _ref$maxHeight,
18
+ _ref$width = _ref.width,
19
+ width = _ref$width === void 0 ? 6 : _ref$width;
18
20
  var palette = (0, _palette.useComponentPalette)('scrollbar');
19
21
  var props = (0, _react.useMemo)(function () {
20
22
  return {
@@ -42,7 +44,7 @@ var Scrollbar = exports.Scrollbar = function Scrollbar(_ref) {
42
44
  trackYProps: {
43
45
  style: {
44
46
  backgroundColor: 'transparent',
45
- width: '6px',
47
+ width: "".concat(width, "px"),
46
48
  height: 'calc(100% - 4px)',
47
49
  top: '2px',
48
50
  right: '2px'
@@ -63,7 +65,7 @@ var Scrollbar = exports.Scrollbar = function Scrollbar(_ref) {
63
65
  }
64
66
  }
65
67
  };
66
- }, [maxHeight, palette]);
68
+ }, [maxHeight, palette.thumb, width]);
67
69
  return /*#__PURE__*/_react["default"].createElement(_reactScrollbarsCustom.Scrollbar, _extends({
68
70
  translateContentSizesToHolder: true
69
71
  }, props), children);
@@ -8,6 +8,7 @@ export type TProps = {
8
8
  value: Date | null;
9
9
  onChange: (value: Date) => void;
10
10
  withTime?: boolean;
11
+ placeholder?: string;
11
12
  dropdownProps?: Pick<TDropdownProps, 'isAutoPosition' | 'positionLeft' | 'positionRight' | 'positionVertical'>;
12
13
  } & Pick<TPureInputProps, 'hasError' | 'name' | 'onBlur' | 'onFocus'> & Pick<TInputLabelProps, 'label'> & Pick<TCalendarProps, 'maxDate' | 'minDate'> & {
13
14
  size?: TSizes;
@@ -41,7 +41,8 @@ var DateInput = exports.DateInput = function DateInput(_ref) {
41
41
  withTime = _ref$withTime === void 0 ? false : _ref$withTime,
42
42
  _ref$size = _ref.size,
43
43
  size = _ref$size === void 0 ? 'M' : _ref$size,
44
- dropdownProps = _ref.dropdownProps;
44
+ dropdownProps = _ref.dropdownProps,
45
+ placeholder = _ref.placeholder;
45
46
  var palette = (0, _palette.useComponentPalette)('dateInput');
46
47
  var inputRef = (0, _react.useRef)(null);
47
48
  var _useState = (0, _react.useState)(false),
@@ -113,7 +114,7 @@ var DateInput = exports.DateInput = function DateInput(_ref) {
113
114
  hasError: hasError,
114
115
  inFocus: inFocus,
115
116
  name: name,
116
- placeholder: _logic.logic.getPlaceholder(withTime),
117
+ placeholder: placeholder || _logic.logic.getPlaceholder(withTime),
117
118
  onFocus: handleFocus,
118
119
  onBlur: handleBlur,
119
120
  value: stringValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.222",
3
+ "version": "0.1.0-alpha.223",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {