@invoicebox/ui 0.1.0-alpha.43 → 0.1.0-alpha.45
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/dist/components/common/Calendar/docs.stories.d.ts +6 -0
- package/dist/components/common/Calendar/docs.stories.js +20 -0
- package/dist/components/common/Calendar/index.css +81 -0
- package/dist/components/common/Calendar/index.d.ts +8 -0
- package/dist/components/common/Calendar/index.js +32 -0
- package/dist/components/common/Calendar/index.stories.d.ts +7 -0
- package/dist/components/common/Calendar/index.stories.js +55 -0
- package/dist/components/common/InvoiceboxLoader/assets/loader.json +1 -0
- package/dist/components/common/Typography/index.stories.js +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/package.json +2 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Installation = void 0;
|
|
7
|
+
var _markdownToJsx = _interopRequireDefault(require("markdown-to-jsx"));
|
|
8
|
+
var _Typography = require("../Typography");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
var meta = {
|
|
11
|
+
title: 'common/Calendar'
|
|
12
|
+
};
|
|
13
|
+
var _default = exports["default"] = meta;
|
|
14
|
+
var Installation = exports.Installation = {
|
|
15
|
+
render: function render() {
|
|
16
|
+
return /*#__PURE__*/React.createElement(_Typography.Typography, {
|
|
17
|
+
variant: "bodyL"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(_markdownToJsx["default"], null, "\n### \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430\n\n\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 [react-calendar](https://github.com/wojtekmaj/react-calendar).\n\u0414\u043B\u044F \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u043E\u0439 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0442\u0438\u043B\u0438.\n\n```ts\nimport 'react-calendar/dist/Calendar.css';\nimport '@invoicebox/ui/dist/components/common/Calendar/index.css';\n```\n"));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.react-calendar {
|
|
2
|
+
border: none;
|
|
3
|
+
width: 240px;
|
|
4
|
+
min-width: 210px;
|
|
5
|
+
background: transparent;
|
|
6
|
+
|
|
7
|
+
@media (max-width: 320px) {
|
|
8
|
+
width: 225px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* navigation block */
|
|
13
|
+
|
|
14
|
+
.react-calendar__navigation {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* navigation arrow */
|
|
19
|
+
|
|
20
|
+
.react-calendar__navigation__arrow {
|
|
21
|
+
font-size: 24px;
|
|
22
|
+
background-color: transparent !important;
|
|
23
|
+
color: #353f47;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.react-calendar__navigation__arrow:disabled {
|
|
27
|
+
opacity: 0.4;
|
|
28
|
+
cursor: default;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.react-calendar__navigation__arrow:hover:not([disabled]) {
|
|
32
|
+
opacity: 0.6;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* navigation label */
|
|
36
|
+
|
|
37
|
+
.react-calendar__navigation__label {
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
background-color: transparent !important;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* weekdays */
|
|
44
|
+
|
|
45
|
+
.react-calendar__month-view__weekdays__weekday {
|
|
46
|
+
color: rgba(53, 63, 71, 0.4);
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.react-calendar__month-view__weekdays__weekday abbr {
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* day */
|
|
56
|
+
|
|
57
|
+
.react-calendar__tile {
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
color: rgba(53, 63, 71, 0.7);
|
|
60
|
+
background-color: transparent !important;
|
|
61
|
+
padding: 4px 6.6667px;
|
|
62
|
+
border-radius: 6px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.react-calendar__tile:disabled {
|
|
66
|
+
opacity: 0.4;
|
|
67
|
+
cursor: default;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.react-calendar__tile:hover:not([disabled]) {
|
|
71
|
+
opacity: 0.6;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.react-calendar__tile--active {
|
|
75
|
+
background-color: #fad247 !important;
|
|
76
|
+
color: #353f47;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.react-calendar__tile--active:hover {
|
|
80
|
+
opacity: 1 !important;
|
|
81
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Calendar = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactCalendar = _interopRequireDefault(require("react-calendar"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
var Calendar = exports.Calendar = function Calendar(_ref) {
|
|
14
|
+
var onChange = _ref.onChange,
|
|
15
|
+
value = _ref.value,
|
|
16
|
+
minDate = _ref.minDate,
|
|
17
|
+
maxDate = _ref.maxDate;
|
|
18
|
+
var handleChange = (0, _react.useCallback)(function (newValue) {
|
|
19
|
+
onChange(newValue);
|
|
20
|
+
}, [onChange]);
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_reactCalendar["default"], {
|
|
22
|
+
locale: "ru",
|
|
23
|
+
minDate: minDate,
|
|
24
|
+
maxDate: maxDate,
|
|
25
|
+
showNeighboringMonth: false,
|
|
26
|
+
minDetail: "month",
|
|
27
|
+
next2Label: null,
|
|
28
|
+
prev2Label: null,
|
|
29
|
+
onChange: handleChange,
|
|
30
|
+
value: value
|
|
31
|
+
});
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Calendar } from '.';
|
|
3
|
+
import 'react-calendar/dist/Calendar.css';
|
|
4
|
+
import './index.css';
|
|
5
|
+
declare const meta: Meta<typeof Calendar>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: StoryObj<typeof Calendar>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = exports.Default = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _addonActions = require("@storybook/addon-actions");
|
|
10
|
+
var _ = require(".");
|
|
11
|
+
require("react-calendar/dist/Calendar.css");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
var meta = {
|
|
22
|
+
title: 'common/Calendar',
|
|
23
|
+
component: _.Calendar,
|
|
24
|
+
tags: ['autodocs']
|
|
25
|
+
};
|
|
26
|
+
var _default = exports["default"] = meta;
|
|
27
|
+
var Component = function Component(_ref) {
|
|
28
|
+
var maxDate = _ref.maxDate,
|
|
29
|
+
minDate = _ref.minDate;
|
|
30
|
+
var _useState = (0, _react.useState)(null),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
value = _useState2[0],
|
|
33
|
+
setValue = _useState2[1];
|
|
34
|
+
var handleChange = (0, _react.useCallback)(function (date) {
|
|
35
|
+
setValue(date);
|
|
36
|
+
(0, _addonActions.action)('change')(date);
|
|
37
|
+
}, []);
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement(_.Calendar, {
|
|
39
|
+
value: value,
|
|
40
|
+
onChange: handleChange,
|
|
41
|
+
maxDate: maxDate ? new Date(maxDate) : undefined,
|
|
42
|
+
minDate: minDate ? new Date(minDate) : undefined
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var maxDate = new Date();
|
|
46
|
+
maxDate.setMonth(maxDate.getMonth() + 1);
|
|
47
|
+
var minDate = new Date();
|
|
48
|
+
minDate.setMonth(minDate.getMonth() - 1);
|
|
49
|
+
var Default = exports.Default = {
|
|
50
|
+
render: Component,
|
|
51
|
+
args: {
|
|
52
|
+
maxDate: maxDate,
|
|
53
|
+
minDate: minDate
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.20","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":90,"w":1000,"h":1000,"nm":"Invoicebox-Sign-Color","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Glas L","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[-279]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":21,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":60,"s":[0]},{"t":80,"s":[279]}],"ix":10},"p":{"a":0,"k":[500.5,499.5,0],"ix":2},"a":{"a":0,"k":[500.5,499.5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":21,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":60,"s":[100,100,100]},{"t":80,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":39,"s":[{"i":[[30.868,0],[23.552,-23.547],[-47.105,-47.105],[-30.87,0],[-23.553,23.547],[47.107,47.105]],"o":[[-30.87,0],[-47.105,47.105],[23.552,23.547],[30.868,0],[47.107,-47.105],[-23.553,-23.547]],"v":[[0,-120.624],[-85.292,-85.292],[-85.292,85.293],[0,120.624],[85.29,85.293],[85.29,-85.292]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":43,"s":[{"i":[[30.864,0.731],[23.659,-9.648],[-46.879,-21.523],[-30.866,-0.731],[-23.66,9.648],[46.881,21.523]],"o":[[-30.866,-0.731],[-47.32,19.296],[23.439,10.761],[30.864,0.731],[47.322,-19.296],[-23.44,-10.761]],"v":[[0.536,-41.244],[-84.91,-27.955],[-85.71,45.963],[-0.595,63.293],[84.85,50.004],[85.65,-23.914]],"c":true}]},{"t":47,"s":[{"i":[[30.868,0],[23.552,-23.547],[-47.105,-47.105],[-30.87,0],[-23.553,23.547],[47.107,47.105]],"o":[[-30.87,0],[-47.105,47.105],[23.552,23.547],[30.868,0],[47.107,-47.105],[-23.553,-23.547]],"v":[[0,-120.624],[-85.292,-85.292],[-85.292,85.293],[0,120.624],[85.29,85.293],[85.29,-85.292]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":39,"s":[{"i":[[-15.306,0],[-10.826,-10.828],[0,-15.307],[10.825,-10.827],[15.303,0],[10.823,10.818],[0,15.305],[-10.823,10.827]],"o":[[15.303,0],[10.823,10.818],[0,15.305],[-10.824,10.818],[-15.306,0],[-10.823,-10.827],[0,-15.307],[10.823,-10.819]],"v":[[0,-57.305],[40.518,-40.513],[57.301,0.001],[40.516,40.522],[0,57.306],[-40.518,40.522],[-57.303,0.001],[-40.518,-40.522]],"c":true}]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":43,"s":[{"i":[[-15.306,0],[-10.826,0],[0,0],[10.825,0],[15.303,0],[10.823,0],[0,0],[-10.823,0]],"o":[[15.303,0],[10.823,0],[0,0],[-10.824,0],[-15.306,0],[-10.823,0],[0,0],[10.823,0]],"v":[[-1,10.024],[39.518,10.024],[56.301,10.024],[39.516,10.024],[-1,10.024],[-41.518,10.024],[-58.303,10.024],[-41.518,10.024]],"c":true}]},{"t":47,"s":[{"i":[[-15.306,0],[-10.826,-10.828],[0,-15.307],[10.825,-10.827],[15.303,0],[10.823,10.818],[0,15.305],[-10.823,10.827]],"o":[[15.303,0],[10.823,10.818],[0,15.305],[-10.824,10.818],[-15.306,0],[-10.823,-10.827],[0,-15.307],[10.823,-10.819]],"v":[[0,-57.305],[40.518,-40.513],[57.301,0.001],[40.516,40.522],[0,57.306],[-40.518,40.522],[-57.303,0.001],[-40.518,-40.522]],"c":true}]}],"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.134852106431,0.138380791159,0.184372441909,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[254.653,489.476],"ix":2},"a":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[780,0],"to":[-130,0],"ti":[130,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":21,"s":[0,0],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":60,"s":[0,0],"to":[130,0],"ti":[-130,0]},{"t":80,"s":[780,0]}],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":450,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"smil","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":4,"s":[-279]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":39,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":43,"s":[19]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":47,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":63,"s":[0]},{"t":83,"s":[279]}],"ix":10},"p":{"a":0,"k":[500.5,499.5,0],"ix":2},"a":{"a":0,"k":[500.5,499.5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":4,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":30,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":63,"s":[100,100,100]},{"t":83,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[32.06,4.125],[19.359,22.884],[-8.376,7.095],[-7.2,-4.858],[0,0],[-17.873,3.06],[-9.496,12.608],[-17.776,-13.382],[13.395,-17.77],[3.166,-2.298]],"o":[[-28.296,20.312],[-32.214,-3.754],[-7.084,-8.386],[6.968,-5.884],[0,0],[17.062,11.533],[18.047,-2.893],[13.375,-17.771],[17.758,13.383],[-2.47,3.289],[0,0]],"v":[[78.769,26.144],[-16.734,50.82],[-97.664,7.972],[-95.329,-20.055],[-71.356,-21.365],[-70.623,-20.868],[-15.576,-8.461],[27.003,-33.617],[83.42,-41.563],[91.353,14.845],[82.841,23.234]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.989351519416,0.838442574295,0.020511326135,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[456.162,628.048],"ix":2},"a":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":4,"s":[780,0],"to":[-130,0],"ti":[130,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":30,"s":[0,0],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":63,"s":[0,0],"to":[130,0],"ti":[-130,0]},{"t":83,"s":[780,0]}],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":4,"op":454,"st":4,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Invoicebox-Sign-Color Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":2,"s":[-279]},{"t":28,"s":[0],"h":1},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":67,"s":[0]},{"t":87,"s":[279]}],"ix":10},"p":{"a":0,"k":[500.5,499.5,0],"ix":2},"a":{"a":0,"k":[500.5,499.5,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":2,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":67,"s":[100,100,100]},{"t":87,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[86.983,0],[0,-86.981],[-86.983,0],[0,86.991]],"o":[[-86.983,0],[0,86.991],[86.983,0],[0,-86.981]],"v":[[0.001,-157.493],[-157.497,-0.005],[0.001,157.493],[157.497,-0.005]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-45.481,0],[0,-45.473],[45.481,0],[0,45.484]],"o":[[45.481,0],[0,45.484],[-45.481,0],[0,-45.473]],"v":[[0.001,-82.479],[82.482,-0.005],[0.001,82.479],[-82.483,-0.005]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.989351519416,0.838442574295,0.020511326135,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[708.471,477.61],"ix":2},"a":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":2,"s":[1409.904,0],"to":[-207.106,0],"ti":[94.769,0]},{"t":28,"s":[0,0],"h":1},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":67,"s":[0,0],"to":[0,0],"ti":[76.992,0]},{"t":87,"s":[1409.904,0]}],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":2,"op":452,"st":2,"bm":0}],"markers":[]}
|
|
@@ -27,7 +27,9 @@ var List = exports.List = {
|
|
|
27
27
|
return /*#__PURE__*/_react["default"].createElement(_.Typography, {
|
|
28
28
|
variant: "bodyL"
|
|
29
29
|
}, Object.keys(_typography.typography).map(function (variant) {
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
key: variant
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_markdownToJsx["default"], null, "\n### ".concat(variant, "\n")), /*#__PURE__*/_react["default"].createElement(_.Typography, {
|
|
31
33
|
variant: variant
|
|
32
34
|
}, dummyText), /*#__PURE__*/_react["default"].createElement(_markdownToJsx["default"], null, "\n```\n".concat(_typography.typography[variant].join('').replaceAll(' ', '').split('\n').filter(Boolean).join('\n'), "\n```\n")), /*#__PURE__*/_react["default"].createElement("hr", null));
|
|
33
35
|
}));
|
package/dist/index.d.ts
CHANGED
|
@@ -13,4 +13,6 @@ export type { TProps as TDropdownProps } from './components/common/Dropdown';
|
|
|
13
13
|
export { Scrollbar } from './components/common/Scrollbar';
|
|
14
14
|
export { Select } from './components/form/Select';
|
|
15
15
|
export type { TProps as TSelectProps } from './components/form/Select';
|
|
16
|
+
export { Calendar } from './components/common/Calendar';
|
|
17
|
+
export type { TProps as TCalendarProps } from './components/common/Calendar';
|
|
16
18
|
export { PaletteProvider } from './palette';
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "Arrow", {
|
|
|
9
9
|
return _Arrow.Arrow;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "Calendar", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Calendar.Calendar;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "Dropdown", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function get() {
|
|
@@ -99,4 +105,5 @@ var _PositiveIntegerInput = require("./components/form/PositiveIntegerInput");
|
|
|
99
105
|
var _Dropdown = require("./components/common/Dropdown");
|
|
100
106
|
var _Scrollbar = require("./components/common/Scrollbar");
|
|
101
107
|
var _Select = require("./components/form/Select");
|
|
108
|
+
var _Calendar = require("./components/common/Calendar");
|
|
102
109
|
var _palette = require("./palette");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invoicebox/ui",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.45",
|
|
4
4
|
"description": "Invoicebox UI",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"scripts": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"hex-to-rgba": "^2.0.1",
|
|
51
51
|
"lottie-react": "^2.4.0",
|
|
52
|
+
"react-calendar": "^4.8.0",
|
|
52
53
|
"react-scrollbars-custom": "^4.1.1",
|
|
53
54
|
"styled-components": "^6.1.8"
|
|
54
55
|
},
|