oolib 2.170.2 → 2.170.4
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.
|
@@ -57,9 +57,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
58
|
exports.Calendar = Calendar;
|
|
59
59
|
var React = __importStar(require("react"));
|
|
60
|
-
var
|
|
60
|
+
var icons_1 = require("../../icons");
|
|
61
61
|
var react_day_picker_1 = require("react-day-picker");
|
|
62
62
|
var twmerge_1 = require("../../utils/twmerge");
|
|
63
|
+
var CaretLeft = icons_1.icons.CaretLeft, CaretRight = icons_1.icons.CaretRight;
|
|
63
64
|
function Calendar(_a) {
|
|
64
65
|
var className = _a.className, classNames = _a.classNames, _b = _a.showOutsideDays, showOutsideDays = _b === void 0 ? true : _b, props = __rest(_a, ["className", "classNames", "showOutsideDays"]);
|
|
65
66
|
return (React.createElement(react_day_picker_1.DayPicker, __assign({ showOutsideDays: showOutsideDays, className: (0, twmerge_1.cn)("p-3", className), classNames: __assign({ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0", month: "space-y-4", caption: "flex justify-center pt-1 relative items-center", caption_label: "text-sm font-medium", nav: "space-x-1 flex items-center", nav_button: "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", nav_button_previous: "absolute left-1", nav_button_next: "absolute right-1", table: "w-full border-collapse space-y-1", head_row: "flex", head_cell: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]", row: "flex w-full mt-2", cell: (0, twmerge_1.cn)("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md", props.mode === "range"
|
|
@@ -67,11 +68,11 @@ function Calendar(_a) {
|
|
|
67
68
|
: "[&:has([aria-selected])]:rounded-md"), day: "h-8 w-8 p-0 font-normal aria-selected:opacity-100", day_range_start: "day-range-start", day_range_end: "day-range-end", day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground", day_today: "bg-accent text-accent-foreground", day_outside: "day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground", day_disabled: "text-muted-foreground opacity-50", day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground", day_hidden: "invisible" }, classNames), components: {
|
|
68
69
|
IconLeft: function (_a) {
|
|
69
70
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
70
|
-
return (React.createElement(
|
|
71
|
+
return (React.createElement(CaretLeft, __assign({ className: (0, twmerge_1.cn)("h-4 w-4", className) }, props)));
|
|
71
72
|
},
|
|
72
73
|
IconRight: function (_a) {
|
|
73
74
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
74
|
-
return (React.createElement(
|
|
75
|
+
return (React.createElement(CaretRight, __assign({ className: (0, twmerge_1.cn)("h-4 w-4", className) }, props)));
|
|
75
76
|
},
|
|
76
77
|
} }, props)));
|
|
77
78
|
}
|
|
@@ -40,7 +40,6 @@ var TextInputs_1 = require("../TextInputs");
|
|
|
40
40
|
var calendar_1 = require("../../../components/shadcn/calendar");
|
|
41
41
|
var date_fns_1 = require("date-fns");
|
|
42
42
|
var twmerge_1 = require("../../../utils/twmerge");
|
|
43
|
-
// import { CheckboxButton } from "../../../components/RadioAndCheckbox";
|
|
44
43
|
function DatePickerWithRangeV3(_a) {
|
|
45
44
|
var className = _a.className, _b = _a.value, value = _b === void 0 ? [null, null] : _b, onChange = _a.onChange, id = _a.id, _c = _a.readOnly, readOnly = _c === void 0 ? false : _c, _d = _a.futureDateOnly, futureDateOnly = _d === void 0 ? false : _d, _e = _a.previousDateOnly, previousDateOnly = _e === void 0 ? false : _e, _f = _a.allowPresentlyOngoing, allowPresentlyOngoing = _f === void 0 ? false : _f, _g = _a.invert, invert = _g === void 0 ? false : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.debug, debug = _j === void 0 ? false : _j, _k = _a.startDateLabel, startDateLabel = _k === void 0 ? "Start Date" : _k, _l = _a.endDateLabel, endDateLabel = _l === void 0 ? "End Date" : _l, _m = _a.withPortal, withPortal = _m === void 0 ? false : _m;
|
|
46
45
|
var _o = (0, react_1.useState)(""), inputValue = _o[0], setInputValue = _o[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oolib",
|
|
3
|
-
"version": "2.170.
|
|
3
|
+
"version": "2.170.4",
|
|
4
4
|
"description": " OKE Component Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -62,23 +62,18 @@
|
|
|
62
62
|
"babel-loader": "^8.2.2",
|
|
63
63
|
"babel-plugin-styled-components": "^1.13.2",
|
|
64
64
|
"chromatic": "^6.1.0",
|
|
65
|
-
"
|
|
65
|
+
"postcss": "^8.5.1",
|
|
66
66
|
"copyfiles": "^2.4.1",
|
|
67
67
|
"cz-conventional-changelog": "^3.3.0",
|
|
68
68
|
"localtunnel": "^2.0.2",
|
|
69
|
-
"lucide-react": "^0.474.0",
|
|
70
69
|
"mdx-embed": "^1.0.0",
|
|
71
|
-
"postcss": "^8.5.1",
|
|
72
70
|
"react": "^17.0.2",
|
|
73
|
-
"react-day-picker": "^8.10.1",
|
|
74
71
|
"react-dom": "^17.0.2",
|
|
75
72
|
"react-json-view": "^1.21.3",
|
|
76
73
|
"react-router-dom": "^6.28.0",
|
|
77
74
|
"semantic-release": "^18.0.0",
|
|
78
75
|
"storybook": "^7.2.1",
|
|
79
|
-
"tailwind-merge": "^2.6.0",
|
|
80
76
|
"tailwindcss": "^3.4.0",
|
|
81
|
-
"tailwindcss-animate": "^1.0.7",
|
|
82
77
|
"typescript": "^5.4.3"
|
|
83
78
|
},
|
|
84
79
|
"peerDependencies": {
|
|
@@ -119,6 +114,11 @@
|
|
|
119
114
|
"phosphor-react": "^1.4.1",
|
|
120
115
|
"react-datepicker": "^7.6.0",
|
|
121
116
|
"react-player": "^2.12.0",
|
|
122
|
-
"recharts": "^2.12.7"
|
|
117
|
+
"recharts": "^2.12.7",
|
|
118
|
+
"react-day-picker": "^8.10.1",
|
|
119
|
+
"clsx": "^2.1.1",
|
|
120
|
+
"date-fns": "^2.0.0",
|
|
121
|
+
"tailwind-merge": "^2.6.0",
|
|
122
|
+
"tailwindcss-animate": "^1.0.7"
|
|
123
123
|
}
|
|
124
124
|
}
|